entities
listlengths
1
8.61k
max_stars_repo_path
stringlengths
7
172
max_stars_repo_name
stringlengths
5
89
max_stars_count
int64
0
82k
content
stringlengths
14
1.05M
id
stringlengths
2
6
new_content
stringlengths
15
1.05M
modified
bool
1 class
references
stringlengths
29
1.05M
[ { "context": "er-stub/account/login.json',\n {login: 'testlogin', password: 'testpassword'}).respond(200, '')\n\n ", "end": 373, "score": 0.5380377769470215, "start": 368, "tag": "USERNAME", "value": "login" }, { "context": "in.json',\n {login: 'testlogin', password: '...
src/app/login/loginFactory.spec.coffee
Bunyod/MyDissWeb
0
describe 'LoginSvc', -> beforeEach module('uzhotels.login') beforeEach inject (@$injector, @$httpBackend) -> describe 'login', -> it 'should pass login and password to server URL', -> service = @$injector.get('LoginSvc', {'$http': @$httpBackend}) @$httpBackend.expectPOST( 'assets/server-stub/account/login.json', {login: 'testlogin', password: 'testpassword'}).respond(200, '') service.login('testlogin', 'testpassword') @$httpBackend.flush()
148365
describe 'LoginSvc', -> beforeEach module('uzhotels.login') beforeEach inject (@$injector, @$httpBackend) -> describe 'login', -> it 'should pass login and password to server URL', -> service = @$injector.get('LoginSvc', {'$http': @$httpBackend}) @$httpBackend.expectPOST( 'assets/server-stub/account/login.json', {login: 'testlogin', password: '<PASSWORD>'}).respond(200, '') service.login('testlogin', 'testpassword') @$httpBackend.flush()
true
describe 'LoginSvc', -> beforeEach module('uzhotels.login') beforeEach inject (@$injector, @$httpBackend) -> describe 'login', -> it 'should pass login and password to server URL', -> service = @$injector.get('LoginSvc', {'$http': @$httpBackend}) @$httpBackend.expectPOST( 'assets/server-stub/account/login.json', {login: 'testlogin', password: 'PI:PASSWORD:<PASSWORD>END_PI'}).respond(200, '') service.login('testlogin', 'testpassword') @$httpBackend.flush()
[ { "context": "nizeLines \"\"\"\n General Tso's Chicken: 1\n Dwayne \"The Rock\" Johnson: 2nd\n possessives': \"3\"\n ", "end": 40538, "score": 0.9993297457695007, "start": 40532, "tag": "NAME", "value": "Dwayne" }, { "context": "\"\n General Tso's Chicken: 1\n ...
spec/yaml-spec.coffee
adamzr/language-otl
0
describe "YAML grammar", -> grammar = null beforeEach -> waitsForPromise -> atom.packages.activatePackage("language-otl") runs -> grammar = atom.grammars.grammarForScopeName('source.otl') it "parses the grammar", -> expect(grammar).toBeTruthy() expect(grammar.scopeName).toBe "source.otl" it "selects the grammar for cloud config files", -> waitsForPromise -> atom.workspace.open('cloud.config') runs -> expect(atom.workspace.getActiveTextEditor().getGrammar()).toBe grammar describe "strings", -> describe "double quoted", -> it "parses escaped quotes", -> {tokens} = grammar.tokenizeLine("\"I am \\\"escaped\\\"\"") expect(tokens[0]).toEqual value: "\"", scopes: ["source.otl", "string.quoted.double.otl", "punctuation.definition.string.begin.otl"] expect(tokens[1]).toEqual value: "I am ", scopes: ["source.otl", "string.quoted.double.otl"] expect(tokens[2]).toEqual value: "\\\"", scopes: ["source.otl", "string.quoted.double.otl", "constant.character.escape.otl"] expect(tokens[3]).toEqual value: "escaped", scopes: ["source.otl", "string.quoted.double.otl"] expect(tokens[4]).toEqual value: "\\\"", scopes: ["source.otl", "string.quoted.double.otl", "constant.character.escape.otl"] expect(tokens[5]).toEqual value: "\"", scopes: ["source.otl", "string.quoted.double.otl", "punctuation.definition.string.end.otl"] {tokens} = grammar.tokenizeLine("key: \"I am \\\"escaped\\\"\"") expect(tokens[0]).toEqual value: "key", scopes: ["source.otl", "entity.name.tag.otl"] expect(tokens[1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(tokens[2]).toEqual value: " ", scopes: ["source.otl"] expect(tokens[3]).toEqual value: "\"", scopes: ["source.otl", "string.quoted.double.otl", "punctuation.definition.string.begin.otl"] expect(tokens[4]).toEqual value: "I am ", scopes: ["source.otl", "string.quoted.double.otl"] expect(tokens[5]).toEqual value: "\\\"", scopes: ["source.otl", "string.quoted.double.otl", "constant.character.escape.otl"] expect(tokens[6]).toEqual value: "escaped", scopes: ["source.otl", "string.quoted.double.otl"] expect(tokens[7]).toEqual value: "\\\"", scopes: ["source.otl", "string.quoted.double.otl", "constant.character.escape.otl"] expect(tokens[8]).toEqual value: "\"", scopes: ["source.otl", "string.quoted.double.otl", "punctuation.definition.string.end.otl"] it "parses other escape sequences", -> {tokens} = grammar.tokenizeLine("\"I am \\escaped\"") expect(tokens[0]).toEqual value: "\"", scopes: ["source.otl", "string.quoted.double.otl", "punctuation.definition.string.begin.otl"] expect(tokens[1]).toEqual value: "I am ", scopes: ["source.otl", "string.quoted.double.otl"] expect(tokens[2]).toEqual value: "\\e", scopes: ["source.otl", "string.quoted.double.otl", "constant.character.escape.otl"] expect(tokens[3]).toEqual value: "scaped", scopes: ["source.otl", "string.quoted.double.otl"] expect(tokens[4]).toEqual value: "\"", scopes: ["source.otl", "string.quoted.double.otl", "punctuation.definition.string.end.otl"] {tokens} = grammar.tokenizeLine('"\\uAb123"') expect(tokens[1]).toEqual value: "\\uAb12", scopes: ["source.otl", "string.quoted.double.otl", "constant.character.escape.otl"] expect(tokens[2]).toEqual value: "3", scopes: ["source.otl", "string.quoted.double.otl"] {tokens} = grammar.tokenizeLine('"\\UAb123Fe90"') expect(tokens[1]).toEqual value: "\\UAb123Fe9", scopes: ["source.otl", "string.quoted.double.otl", "constant.character.escape.otl"] expect(tokens[2]).toEqual value: "0", scopes: ["source.otl", "string.quoted.double.otl"] {tokens} = grammar.tokenizeLine('"\\x200"') expect(tokens[1]).toEqual value: "\\x20", scopes: ["source.otl", "string.quoted.double.otl", "constant.character.escape.otl"] expect(tokens[2]).toEqual value: "0", scopes: ["source.otl", "string.quoted.double.otl"] {tokens} = grammar.tokenizeLine('"\\ hi"') expect(tokens[1]).toEqual value: "\\ ", scopes: ["source.otl", "string.quoted.double.otl", "constant.character.escape.otl"] expect(tokens[2]).toEqual value: "hi", scopes: ["source.otl", "string.quoted.double.otl"] it "parses invalid escape sequences", -> {tokens} = grammar.tokenizeLine('"\\uqerww"') expect(tokens[1]).toEqual value: "\\uqerw", scopes: ["source.otl", "string.quoted.double.otl", "invalid.illegal.escape.otl"] expect(tokens[2]).toEqual value: "w", scopes: ["source.otl", "string.quoted.double.otl"] {tokens} = grammar.tokenizeLine('"\\U0123456GF"') expect(tokens[1]).toEqual value: "\\U0123456G", scopes: ["source.otl", "string.quoted.double.otl", "invalid.illegal.escape.otl"] expect(tokens[2]).toEqual value: "F", scopes: ["source.otl", "string.quoted.double.otl"] {tokens} = grammar.tokenizeLine('"\\x2Q1"') expect(tokens[1]).toEqual value: "\\x2Q", scopes: ["source.otl", "string.quoted.double.otl", "invalid.illegal.escape.otl"] expect(tokens[2]).toEqual value: "1", scopes: ["source.otl", "string.quoted.double.otl"] {tokens} = grammar.tokenizeLine('"\\c3"') expect(tokens[1]).toEqual value: "\\c", scopes: ["source.otl", "string.quoted.double.otl", "invalid.illegal.escape.otl"] expect(tokens[2]).toEqual value: "3", scopes: ["source.otl", "string.quoted.double.otl"] describe "single quoted", -> it "parses escaped single quotes", -> {tokens} = grammar.tokenizeLine("'I am ''escaped'''") expect(tokens[0]).toEqual value: "'", scopes: ["source.otl", "string.quoted.single.otl", "punctuation.definition.string.begin.otl"] expect(tokens[1]).toEqual value: "I am ", scopes: ["source.otl", "string.quoted.single.otl"] expect(tokens[2]).toEqual value: "''", scopes: ["source.otl", "string.quoted.single.otl", "constant.character.escape.otl"] expect(tokens[3]).toEqual value: "escaped", scopes: ["source.otl", "string.quoted.single.otl"] expect(tokens[4]).toEqual value: "''", scopes: ["source.otl", "string.quoted.single.otl", "constant.character.escape.otl"] expect(tokens[5]).toEqual value: "'", scopes: ["source.otl", "string.quoted.single.otl", "punctuation.definition.string.end.otl"] {tokens} = grammar.tokenizeLine("key: 'I am ''escaped'''") expect(tokens[0]).toEqual value: "key", scopes: ["source.otl", "entity.name.tag.otl"] expect(tokens[1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(tokens[2]).toEqual value: " ", scopes: ["source.otl"] expect(tokens[3]).toEqual value: "'", scopes: ["source.otl", "string.quoted.single.otl", "punctuation.definition.string.begin.otl"] expect(tokens[4]).toEqual value: "I am ", scopes: ["source.otl", "string.quoted.single.otl"] expect(tokens[5]).toEqual value: "''", scopes: ["source.otl", "string.quoted.single.otl", "constant.character.escape.otl"] expect(tokens[6]).toEqual value: "escaped", scopes: ["source.otl", "string.quoted.single.otl"] expect(tokens[7]).toEqual value: "''", scopes: ["source.otl", "string.quoted.single.otl", "constant.character.escape.otl"] expect(tokens[8]).toEqual value: "'", scopes: ["source.otl", "string.quoted.single.otl", "punctuation.definition.string.end.otl"] it "does not recognize backslashes as escape characters", -> {tokens} = grammar.tokenizeLine("'I am not \\escaped'") expect(tokens[0]).toEqual value: "'", scopes: ["source.otl", "string.quoted.single.otl", "punctuation.definition.string.begin.otl"] expect(tokens[1]).toEqual value: "I am not \\escaped", scopes: ["source.otl", "string.quoted.single.otl"] expect(tokens[2]).toEqual value: "'", scopes: ["source.otl", "string.quoted.single.otl", "punctuation.definition.string.end.otl"] describe "text blocks", -> it "parses simple content", -> lines = grammar.tokenizeLines """ key: | content here second line """ expect(lines[0][0]).toEqual value: "key", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[0][1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[1][0]).toEqual value: " content here", scopes: ["source.otl", "string.unquoted.block.otl"] expect(lines[2][0]).toEqual value: " second line", scopes: ["source.otl", "string.unquoted.block.otl"] it "parses content with empty lines", -> lines = grammar.tokenizeLines """ key: | content here second line """ expect(lines[0][0]).toEqual value: "key", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[0][1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[1][0]).toEqual value: " content here", scopes: ["source.otl", "string.unquoted.block.otl"] expect(lines[2][0]).toEqual value: "", scopes: ["source.otl", "string.unquoted.block.otl"] expect(lines[3][0]).toEqual value: " second line", scopes: ["source.otl", "string.unquoted.block.otl"] it "parses keys with decimals", -> lines = grammar.tokenizeLines """ 2.0: | content here second line """ expect(lines[0][0]).toEqual value: "2.0", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[0][1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[1][0]).toEqual value: " content here", scopes: ["source.otl", "string.unquoted.block.otl"] expect(lines[2][0]).toEqual value: " second line", scopes: ["source.otl", "string.unquoted.block.otl"] it "parses keys with quotes", -> lines = grammar.tokenizeLines """ single'quotes': | content here double"quotes": > content here """ expect(lines[0][0]).toEqual value: "single'quotes'", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[0][1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[1][0]).toEqual value: " content here", scopes: ["source.otl", "string.unquoted.block.otl"] expect(lines[2][0]).toEqual value: "double\"quotes\"", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[2][1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[3][0]).toEqual value: " content here", scopes: ["source.otl", "string.unquoted.block.otl"] it "parses keys with quotes in sequences", -> lines = grammar.tokenizeLines """ - single'quotes': | content here - double"quotes": > content here """ expect(lines[0][0]).toEqual value: "-", scopes: ["source.otl", "punctuation.definition.entry.otl"] expect(lines[0][2]).toEqual value: "single'quotes'", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[0][3]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[1][0]).toEqual value: " content here", scopes: ["source.otl", "string.unquoted.block.otl"] expect(lines[2][0]).toEqual value: "-", scopes: ["source.otl", "punctuation.definition.entry.otl"] expect(lines[2][2]).toEqual value: "double\"quotes\"", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[2][3]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[3][0]).toEqual value: " content here", scopes: ["source.otl", "string.unquoted.block.otl"] it "parses keys with quotes in sequences even when not using | or >", -> lines = grammar.tokenizeLines """ - single'quotes': content here - double"quotes": content here """ expect(lines[0][0]).toEqual value: "-", scopes: ["source.otl", "punctuation.definition.entry.otl"] expect(lines[0][2]).toEqual value: "single'quotes'", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[0][3]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[1][1]).toEqual value: "content here", scopes: ["source.otl", "string.unquoted.otl"] expect(lines[2][0]).toEqual value: "-", scopes: ["source.otl", "punctuation.definition.entry.otl"] expect(lines[2][2]).toEqual value: "double\"quotes\"", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[2][3]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[3][1]).toEqual value: "content here", scopes: ["source.otl", "string.unquoted.otl"] it "parses keys with spaces", -> lines = grammar.tokenizeLines """ a space: | content here more than one space: > content here space after : | content here """ expect(lines[0][0]).toEqual value: "a space", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[0][1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[1][0]).toEqual value: " content here", scopes: ["source.otl", "string.unquoted.block.otl"] expect(lines[2][0]).toEqual value: "more than one space", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[2][1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[3][0]).toEqual value: " content here", scopes: ["source.otl", "string.unquoted.block.otl"] expect(lines[4][0]).toEqual value: "space after", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[4][2]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[5][0]).toEqual value: " content here", scopes: ["source.otl", "string.unquoted.block.otl"] it "parses keys with spaces in sequences", -> lines = grammar.tokenizeLines """ - a space: | content here - more than one space: > content here - space after : | content here """ expect(lines[0][0]).toEqual value: "-", scopes: ["source.otl", "punctuation.definition.entry.otl"] expect(lines[0][2]).toEqual value: "a space", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[0][3]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[1][0]).toEqual value: " content here", scopes: ["source.otl", "string.unquoted.block.otl"] expect(lines[2][0]).toEqual value: "-", scopes: ["source.otl", "punctuation.definition.entry.otl"] expect(lines[2][2]).toEqual value: "more than one space", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[2][3]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[3][0]).toEqual value: " content here", scopes: ["source.otl", "string.unquoted.block.otl"] expect(lines[4][0]).toEqual value: "-", scopes: ["source.otl", "punctuation.definition.entry.otl"] expect(lines[4][2]).toEqual value: "space after", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[4][4]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[5][0]).toEqual value: " content here", scopes: ["source.otl", "string.unquoted.block.otl"] it "properly parses through pound signs in blocks", -> lines = grammar.tokenizeLines """ key: | # this is not a legit comment unquoted block ### this is just a markdown header another unquoted block """ expect(lines[0][0]).toEqual value: "key", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[0][1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[1][0]).toEqual value: " # this is not a legit comment", scopes: ["source.otl", "string.unquoted.block.otl"] expect(lines[2][0]).toEqual value: " unquoted block", scopes: ["source.otl", "string.unquoted.block.otl"] expect(lines[3][0]).toEqual value: " ### this is just a markdown header", scopes: ["source.otl", "string.unquoted.block.otl"] expect(lines[4][0]).toEqual value: " another unquoted block", scopes: ["source.otl", "string.unquoted.block.otl"] it "parses keys following blocks in sequences", -> lines = grammar.tokenizeLines """ - textblock: > multiline text key with spaces: following text """ expect(lines[0][0]).toEqual value: "-", scopes: ["source.otl", "punctuation.definition.entry.otl"] expect(lines[0][2]).toEqual value: "textblock", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[0][3]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[1][0]).toEqual value: " multiline", scopes: ["source.otl", "string.unquoted.block.otl"] expect(lines[2][0]).toEqual value: " text", scopes: ["source.otl", "string.unquoted.block.otl"] expect(lines[3][0]).toEqual value: " ", scopes: ["source.otl"] expect(lines[3][1]).toEqual value: "key with spaces", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[3][2]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[3][3]).toEqual value: " ", scopes: ["source.otl"] expect(lines[3][4]).toEqual value: "following text", scopes: ["source.otl", "string.unquoted.otl"] it "parses content even when not using | or >", -> lines = grammar.tokenizeLines """ - textblock: multiline text key: following text """ expect(lines[0][0]).toEqual value: "-", scopes: ["source.otl", "punctuation.definition.entry.otl"] expect(lines[0][2]).toEqual value: "textblock", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[0][3]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[1][1]).toEqual value: "multiline", scopes: ["source.otl", "string.unquoted.otl"] expect(lines[2][1]).toEqual value: "text", scopes: ["source.otl", "string.unquoted.otl"] expect(lines[3][0]).toEqual value: " ", scopes: ["source.otl"] expect(lines[3][1]).toEqual value: "key", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[3][2]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[3][3]).toEqual value: " ", scopes: ["source.otl"] expect(lines[3][4]).toEqual value: "following text", scopes: ["source.otl", "string.unquoted.otl"] describe "parses content with unindented empty lines", -> it "ending the content", -> lines = grammar.tokenizeLines """ key: | content here second line """ expect(lines[0][0]).toEqual value: "key", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[0][1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[0][3]).toEqual value: "|", scopes: ["source.otl", "string.unquoted.block.otl"] expect(lines[1][0]).toEqual value: " content here", scopes: ["source.otl", "string.unquoted.block.otl"] expect(lines[2][0]).toEqual value: "", scopes: ["source.otl", "string.unquoted.block.otl"] expect(lines[3][0]).toEqual value: " second line", scopes: ["source.otl", "string.unquoted.block.otl"] it "ending with new element", -> lines = grammar.tokenizeLines """ key: | content here second line other: hi """ expect(lines[0][0]).toEqual value: "key", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[0][1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[0][3]).toEqual value: "|", scopes: ["source.otl", "string.unquoted.block.otl"] expect(lines[1][0]).toEqual value: " content here", scopes: ["source.otl", "string.unquoted.block.otl"] expect(lines[2][0]).toEqual value: "", scopes: ["source.otl", "string.unquoted.block.otl"] expect(lines[3][0]).toEqual value: " second line", scopes: ["source.otl", "string.unquoted.block.otl"] expect(lines[4][0]).toEqual value: "other", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[4][1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[4][2]).toEqual value: " ", scopes: ["source.otl"] expect(lines[4][3]).toEqual value: "hi", scopes: ["source.otl", "string.unquoted.otl"] it "ending with new element, part of list", -> lines = grammar.tokenizeLines """ - key: | content here second line - other: hi """ expect(lines[0][0]).toEqual value: "-", scopes: ["source.otl", "punctuation.definition.entry.otl"] expect(lines[0][2]).toEqual value: "key", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[0][3]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[0][5]).toEqual value: "|", scopes: ["source.otl", "string.unquoted.block.otl"] expect(lines[1][0]).toEqual value: " content here", scopes: ["source.otl", "string.unquoted.block.otl"] expect(lines[2][0]).toEqual value: "", scopes: ["source.otl", "string.unquoted.block.otl"] expect(lines[3][0]).toEqual value: " second line", scopes: ["source.otl", "string.unquoted.block.otl"] expect(lines[4][0]).toEqual value: "-", scopes: ["source.otl", "punctuation.definition.entry.otl"] expect(lines[4][1]).toEqual value: " ", scopes: ["source.otl"] expect(lines[4][2]).toEqual value: "other", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[4][3]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[4][4]).toEqual value: " ", scopes: ["source.otl"] expect(lines[4][5]).toEqual value: "hi", scopes: ["source.otl", "string.unquoted.otl"] it "ending with twice unindented new element", -> lines = grammar.tokenizeLines """ root: key: | content here second line other: hi """ expect(lines[1][1]).toEqual value: "key", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[1][2]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[1][4]).toEqual value: "|", scopes: ["source.otl", "string.unquoted.block.otl"] expect(lines[2][0]).toEqual value: " content here", scopes: ["source.otl", "string.unquoted.block.otl"] expect(lines[3][0]).toEqual value: "", scopes: ["source.otl", "string.unquoted.block.otl"] expect(lines[4][0]).toEqual value: " second line", scopes: ["source.otl", "string.unquoted.block.otl"] expect(lines[5][0]).toEqual value: "other", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[5][1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[5][2]).toEqual value: " ", scopes: ["source.otl"] expect(lines[5][3]).toEqual value: "hi", scopes: ["source.otl", "string.unquoted.otl"] it "ending with an indented comment", -> lines = grammar.tokenizeLines """ root: key: | content here second line # hi """ expect(lines[1][1]).toEqual value: "key", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[1][2]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[1][4]).toEqual value: "|", scopes: ["source.otl", "string.unquoted.block.otl"] expect(lines[2][0]).toEqual value: " content here", scopes: ["source.otl", "string.unquoted.block.otl"] expect(lines[3][0]).toEqual value: "", scopes: ["source.otl", "string.unquoted.block.otl"] expect(lines[4][0]).toEqual value: " second line", scopes: ["source.otl", "string.unquoted.block.otl"] expect(lines[5][0]).toEqual value: " ", scopes: ["source.otl"] expect(lines[5][1]).toEqual value: "#", scopes: ["source.otl", "comment.line.number-sign.otl", "punctuation.definition.comment.otl"] expect(lines[5][2]).toEqual value: " hi", scopes: ["source.otl", "comment.line.number-sign.otl"] it "does not confuse keys and strings", -> {tokens} = grammar.tokenizeLine("- 'Section 2.4: 3, 6abc, 12ab, 30, 32a'") expect(tokens[0]).toEqual value: "-", scopes: ["source.otl", "punctuation.definition.entry.otl"] expect(tokens[2]).toEqual value: "'", scopes: ["source.otl", "string.quoted.single.otl", "punctuation.definition.string.begin.otl"] expect(tokens[3]).toEqual value: "Section 2.4: 3, 6abc, 12ab, 30, 32a", scopes: ["source.otl", "string.quoted.single.otl"] it "parses the non-specific tag indicator before values", -> {tokens} = grammar.tokenizeLine("key: ! 'hi'") expect(tokens[0]).toEqual value: "key", scopes: ["source.otl", "entity.name.tag.otl"] expect(tokens[1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(tokens[2]).toEqual value: " ", scopes: ["source.otl"] expect(tokens[3]).toEqual value: "!", scopes: ["source.otl", "punctuation.definition.tag.non-specific.otl"] expect(tokens[5]).toEqual value: "'", scopes: ["source.otl", "string.quoted.single.otl", "punctuation.definition.string.begin.otl"] expect(tokens[6]).toEqual value: "hi", scopes: ["source.otl", "string.quoted.single.otl"] expect(tokens[7]).toEqual value: "'", scopes: ["source.otl", "string.quoted.single.otl", "punctuation.definition.string.end.otl"] it "parses nested keys", -> lines = grammar.tokenizeLines """ first: second: third: 3 fourth: "4th" """ expect(lines[0][0]).toEqual value: "first", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[0][1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[1][0]).toEqual value: " ", scopes: ["source.otl"] expect(lines[1][1]).toEqual value: "second", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[1][2]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[2][0]).toEqual value: " ", scopes: ["source.otl"] expect(lines[2][1]).toEqual value: "third", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[2][2]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[2][3]).toEqual value: " ", scopes: ["source.otl"] expect(lines[2][4]).toEqual value: "3", scopes: ["source.otl", "constant.numeric.otl"] expect(lines[3][0]).toEqual value: " ", scopes: ["source.otl"] expect(lines[3][1]).toEqual value: "fourth", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[3][2]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[3][3]).toEqual value: " ", scopes: ["source.otl"] expect(lines[3][4]).toEqual value: "\"", scopes: ["source.otl", "string.quoted.double.otl", "punctuation.definition.string.begin.otl"] expect(lines[3][5]).toEqual value: "4th", scopes: ["source.otl", "string.quoted.double.otl"] expect(lines[3][6]).toEqual value: "\"", scopes: ["source.otl", "string.quoted.double.otl", "punctuation.definition.string.end.otl"] it "parses keys and values", -> lines = grammar.tokenizeLines """ first: 1st second: 2nd third: th{ree} fourth:invalid """ expect(lines[0][0]).toEqual value: "first", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[0][1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[0][2]).toEqual value: " ", scopes: ["source.otl"] expect(lines[0][3]).toEqual value: "1st", scopes: ["source.otl", "string.unquoted.otl"] expect(lines[1][0]).toEqual value: "second", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[1][1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[1][2]).toEqual value: " ", scopes: ["source.otl"] expect(lines[1][3]).toEqual value: "2nd", scopes: ["source.otl", "string.unquoted.otl"] expect(lines[2][0]).toEqual value: "third", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[2][1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[2][2]).toEqual value: " ", scopes: ["source.otl"] expect(lines[2][3]).toEqual value: "th{ree}", scopes: ["source.otl", "string.unquoted.otl"] expect(lines[3][0]).toEqual value: "fourth:invalid", scopes: ["source.otl", "string.unquoted.otl"] it "parses quoted keys", -> lines = grammar.tokenizeLines """ 'G@role:deployer': - deployer """ expect(lines[0][0]).toEqual value: "'", scopes: ["source.otl", "string.quoted.single.otl", "punctuation.definition.string.begin.otl"] expect(lines[0][1]).toEqual value: "G@role:deployer", scopes: ["source.otl", "string.quoted.single.otl", "entity.name.tag.otl"] expect(lines[0][2]).toEqual value: "'", scopes: ["source.otl", "string.quoted.single.otl", "punctuation.definition.string.end.otl"] expect(lines[0][3]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] lines = grammar.tokenizeLines """ "G@role:deployer": - deployer """ expect(lines[0][0]).toEqual value: '"', scopes: ["source.otl", "string.quoted.double.otl", "punctuation.definition.string.begin.otl"] expect(lines[0][1]).toEqual value: "G@role:deployer", scopes: ["source.otl", "string.quoted.double.otl", "entity.name.tag.otl"] expect(lines[0][2]).toEqual value: '"', scopes: ["source.otl", "string.quoted.double.otl", "punctuation.definition.string.end.otl"] expect(lines[0][3]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] it "parses comments at the beginning of lines", -> lines = grammar.tokenizeLines """ # first: 1 # second ## """ expect(lines[0][0]).toEqual value: "#", scopes: ["source.otl", "comment.line.number-sign.otl", "punctuation.definition.comment.otl"] expect(lines[0][1]).toEqual value: " first: 1", scopes: ["source.otl", "comment.line.number-sign.otl"] expect(lines[1][0]).toEqual value: " ", scopes: ["source.otl"] expect(lines[1][1]).toEqual value: "#", scopes: ["source.otl", "comment.line.number-sign.otl", "punctuation.definition.comment.otl"] expect(lines[1][2]).toEqual value: " second", scopes: ["source.otl", "comment.line.number-sign.otl"] expect(lines[2][0]).toEqual value: "#", scopes: ["source.otl", "comment.line.number-sign.otl", "punctuation.definition.comment.otl"] expect(lines[2][1]).toEqual value: "#", scopes: ["source.otl", "comment.line.number-sign.otl"] it "parses comments at the end of lines", -> lines = grammar.tokenizeLines """ first: 1 # foo second: 2nd #bar third: "3" fourth: four# """ expect(lines[0][0]).toEqual value: "first", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[0][1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[0][3]).toEqual value: "1", scopes: ["source.otl", "constant.numeric.otl"] expect(lines[0][5]).toEqual value: "#", scopes: ["source.otl", "comment.line.number-sign.otl", "punctuation.definition.comment.otl"] expect(lines[0][6]).toEqual value: " foo", scopes: ["source.otl", "comment.line.number-sign.otl"] expect(lines[1][0]).toEqual value: "second", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[1][1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[1][2]).toEqual value: " ", scopes: ["source.otl"] expect(lines[1][3]).toEqual value: "2nd ", scopes: ["source.otl", "string.unquoted.otl"] expect(lines[1][4]).toEqual value: "#", scopes: ["source.otl", "comment.line.number-sign.otl", "punctuation.definition.comment.otl"] expect(lines[1][5]).toEqual value: "bar", scopes: ["source.otl", "comment.line.number-sign.otl"] expect(lines[2][0]).toEqual value: "third", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[2][1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[2][2]).toEqual value: " ", scopes: ["source.otl"] expect(lines[2][3]).toEqual value: "\"", scopes: ["source.otl", "string.quoted.double.otl", "punctuation.definition.string.begin.otl"] expect(lines[2][4]).toEqual value: "3", scopes: ["source.otl", "string.quoted.double.otl"] expect(lines[2][5]).toEqual value: "\"", scopes: ["source.otl", "string.quoted.double.otl", "punctuation.definition.string.end.otl"] expect(lines[3][0]).toEqual value: "fourth", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[3][1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[3][2]).toEqual value: " ", scopes: ["source.otl"] expect(lines[3][3]).toEqual value: "four#", scopes: ["source.otl", "string.unquoted.otl"] lines = grammar.tokenizeLines """ multiline: # comment! This should still be a string # another comment! Ditto # Guess what this is String # comment """ expect(lines[0][3]).toEqual value: "#", scopes: ["source.otl", "comment.line.number-sign.otl", "punctuation.definition.comment.otl"] expect(lines[1][1]).toEqual value: "This should still be a string ", scopes: ["source.otl", "string.unquoted.otl"] expect(lines[1][2]).toEqual value: "#", scopes: ["source.otl", "comment.line.number-sign.otl", "punctuation.definition.comment.otl"] expect(lines[2][1]).toEqual value: "Ditto", scopes: ["source.otl", "string.unquoted.otl"] expect(lines[3][1]).toEqual value: "#", scopes: ["source.otl", "comment.line.number-sign.otl", "punctuation.definition.comment.otl"] expect(lines[4][1]).toEqual value: "String", scopes: ["source.otl", "string.unquoted.otl"] expect(lines[5][0]).toEqual value: "#", scopes: ["source.otl", "comment.line.number-sign.otl", "punctuation.definition.comment.otl"] it "does not confuse keys and comments", -> {tokens} = grammar.tokenizeLine("- Entry 2 # This colon breaks syntax highlighting: see?") expect(tokens[0]).toEqual value: "-", scopes: ["source.otl", "punctuation.definition.entry.otl"] expect(tokens[3]).toEqual value: "#", scopes: ["source.otl", "comment.line.number-sign.otl", "punctuation.definition.comment.otl"] expect(tokens[4]).toEqual value: " This colon breaks syntax highlighting: see?", scopes: ["source.otl", "comment.line.number-sign.otl"] it "does not confuse keys and unquoted strings", -> {tokens} = grammar.tokenizeLine("- { role: common }") expect(tokens[0]).toEqual value: "-", scopes: ["source.otl", "punctuation.definition.entry.otl"] expect(tokens[2]).toEqual value: "{ role: common }", scopes: ["source.otl", "string.unquoted.otl"] it "parses colons in key names", -> lines = grammar.tokenizeLines """ colon::colon: 1 colon::colon: 2nd colon::colon: "3" colon: "this is another : colon" colon: "this is another :colon" """ expect(lines[0][0]).toEqual value: "colon::colon", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[0][1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[0][3]).toEqual value: "1", scopes: ["source.otl", "constant.numeric.otl"] expect(lines[1][0]).toEqual value: "colon::colon", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[1][1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[1][2]).toEqual value: " ", scopes: ["source.otl"] expect(lines[1][3]).toEqual value: "2nd", scopes: ["source.otl", "string.unquoted.otl"] expect(lines[2][0]).toEqual value: "colon::colon", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[2][1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[2][2]).toEqual value: " ", scopes: ["source.otl"] expect(lines[2][3]).toEqual value: "\"", scopes: ["source.otl", "string.quoted.double.otl", "punctuation.definition.string.begin.otl"] expect(lines[2][4]).toEqual value: "3", scopes: ["source.otl", "string.quoted.double.otl"] expect(lines[2][5]).toEqual value: "\"", scopes: ["source.otl", "string.quoted.double.otl", "punctuation.definition.string.end.otl"] expect(lines[3][0]).toEqual value: "colon", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[3][1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[3][2]).toEqual value: " ", scopes: ["source.otl"] expect(lines[3][3]).toEqual value: "\"", scopes: ["source.otl", "string.quoted.double.otl", "punctuation.definition.string.begin.otl"] expect(lines[3][4]).toEqual value: "this is another : colon", scopes: ["source.otl", "string.quoted.double.otl"] expect(lines[3][5]).toEqual value: "\"", scopes: ["source.otl", "string.quoted.double.otl", "punctuation.definition.string.end.otl"] expect(lines[4][0]).toEqual value: "colon", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[4][1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[4][2]).toEqual value: " ", scopes: ["source.otl"] expect(lines[4][3]).toEqual value: "\"", scopes: ["source.otl", "string.quoted.double.otl", "punctuation.definition.string.begin.otl"] expect(lines[4][4]).toEqual value: "this is another :colon", scopes: ["source.otl", "string.quoted.double.otl"] expect(lines[4][5]).toEqual value: "\"", scopes: ["source.otl", "string.quoted.double.otl", "punctuation.definition.string.end.otl"] it "parses spaces in key names", -> lines = grammar.tokenizeLines """ spaced out: 1 more spaces: 2nd with quotes: "3" """ expect(lines[0][0]).toEqual value: "spaced out", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[0][1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[0][3]).toEqual value: "1", scopes: ["source.otl", "constant.numeric.otl"] expect(lines[1][0]).toEqual value: "more spaces", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[1][1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[1][2]).toEqual value: " ", scopes: ["source.otl"] expect(lines[1][3]).toEqual value: "2nd", scopes: ["source.otl", "string.unquoted.otl"] expect(lines[2][0]).toEqual value: "with quotes", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[2][1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[2][2]).toEqual value: " ", scopes: ["source.otl"] expect(lines[2][3]).toEqual value: "\"", scopes: ["source.otl", "string.quoted.double.otl", "punctuation.definition.string.begin.otl"] expect(lines[2][4]).toEqual value: "3", scopes: ["source.otl", "string.quoted.double.otl"] expect(lines[2][5]).toEqual value: "\"", scopes: ["source.otl", "string.quoted.double.otl", "punctuation.definition.string.end.otl"] it "parses quotes in unquoted key names", -> lines = grammar.tokenizeLines """ General Tso's Chicken: 1 Dwayne "The Rock" Johnson: 2nd possessives': "3" Conan "the Barbarian": '4' """ expect(lines[0][0]).toEqual value: "General Tso's Chicken", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[0][1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[0][3]).toEqual value: "1", scopes: ["source.otl", "constant.numeric.otl"] expect(lines[1][0]).toEqual value: "Dwayne \"The Rock\" Johnson", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[1][1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[1][2]).toEqual value: " ", scopes: ["source.otl"] expect(lines[1][3]).toEqual value: "2nd", scopes: ["source.otl", "string.unquoted.otl"] expect(lines[2][0]).toEqual value: "possessives'", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[2][1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[2][2]).toEqual value: " ", scopes: ["source.otl"] expect(lines[2][3]).toEqual value: "\"", scopes: ["source.otl", "string.quoted.double.otl", "punctuation.definition.string.begin.otl"] expect(lines[2][4]).toEqual value: "3", scopes: ["source.otl", "string.quoted.double.otl"] expect(lines[2][5]).toEqual value: "\"", scopes: ["source.otl", "string.quoted.double.otl", "punctuation.definition.string.end.otl"] expect(lines[3][0]).toEqual value: "Conan \"the Barbarian\"", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[3][1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[3][2]).toEqual value: " ", scopes: ["source.otl"] expect(lines[3][3]).toEqual value: "'", scopes: ["source.otl", "string.quoted.single.otl", "punctuation.definition.string.begin.otl"] expect(lines[3][4]).toEqual value: "4", scopes: ["source.otl", "string.quoted.single.otl"] expect(lines[3][5]).toEqual value: "'", scopes: ["source.otl", "string.quoted.single.otl", "punctuation.definition.string.end.otl"] it "parses the merge-key tag", -> {tokens} = grammar.tokenizeLine "<<: *variable" expect(tokens[0]).toEqual value: "<<", scopes: ["source.otl", "entity.name.tag.merge.otl"] expect(tokens[1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(tokens[2]).toEqual value: " ", scopes: ["source.otl"] expect(tokens[3]).toEqual value: "*", scopes: ["source.otl", "variable.other.otl", "punctuation.definition.variable.otl"] expect(tokens[4]).toEqual value: "variable", scopes: ["source.otl", "variable.other.otl"] {tokens} = grammar.tokenizeLine "<< : *variable" expect(tokens[0]).toEqual value: "<<", scopes: ["source.otl", "entity.name.tag.merge.otl"] expect(tokens[1]).toEqual value: " ", scopes: ["source.otl"] expect(tokens[2]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(tokens[3]).toEqual value: " ", scopes: ["source.otl"] expect(tokens[4]).toEqual value: "*", scopes: ["source.otl", "variable.other.otl", "punctuation.definition.variable.otl"] expect(tokens[5]).toEqual value: "variable", scopes: ["source.otl", "variable.other.otl"] {tokens} = grammar.tokenizeLine "<<:*variable" expect(tokens[0]).toEqual value: "<<:*variable", scopes: ["source.otl", "string.unquoted.otl"] it "parses local tags", -> {tokens} = grammar.tokenizeLine "multiline: !something >" expect(tokens[3]).toEqual value: "!", scopes: ["source.otl", "keyword.other.tag.local.otl", "punctuation.definition.tag.local.otl"] expect(tokens[4]).toEqual value: "something", scopes: ["source.otl", "keyword.other.tag.local.otl"] expect(tokens[6]).toEqual value: ">", scopes: ["source.otl", "string.unquoted.block.otl"] {tokens} = grammar.tokenizeLine "- !tag" expect(tokens[2]).toEqual value: "!", scopes: ["source.otl", "keyword.other.tag.local.otl", "punctuation.definition.tag.local.otl"] expect(tokens[3]).toEqual value: "tag", scopes: ["source.otl", "keyword.other.tag.local.otl"] {tokens} = grammar.tokenizeLine "- !" expect(tokens[0]).toEqual value: "- !", scopes: ["source.otl", "string.unquoted.otl"] {tokens} = grammar.tokenizeLine "- !!" expect(tokens[0]).toEqual value: "- !!", scopes: ["source.otl", "string.unquoted.otl"] it "parses the !!omap directive", -> {tokens} = grammar.tokenizeLine "hello: !!omap" expect(tokens[0]).toEqual value: "hello", scopes: ["source.otl", "entity.name.tag.otl"] expect(tokens[1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(tokens[2]).toEqual value: " ", scopes: ["source.otl"] expect(tokens[3]).toEqual value: "!!", scopes: ["source.otl", "keyword.other.omap.otl", "punctuation.definition.tag.omap.otl"] expect(tokens[4]).toEqual value: "omap", scopes: ["source.otl", "keyword.other.omap.otl"] {tokens} = grammar.tokenizeLine "- 'hello': !!omap" expect(tokens[0]).toEqual value: "-", scopes: ["source.otl", "punctuation.definition.entry.otl"] expect(tokens[1]).toEqual value: " ", scopes: ["source.otl"] expect(tokens[2]).toEqual value: "'", scopes: ["source.otl", "string.quoted.single.otl", "punctuation.definition.string.begin.otl"] expect(tokens[3]).toEqual value: "hello", scopes: ["source.otl", "string.quoted.single.otl", "entity.name.tag.otl"] expect(tokens[4]).toEqual value: "'", scopes: ["source.otl", "string.quoted.single.otl", "punctuation.definition.string.end.otl"] expect(tokens[5]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(tokens[6]).toEqual value: " ", scopes: ["source.otl"] expect(tokens[7]).toEqual value: "!!", scopes: ["source.otl", "keyword.other.omap.otl", "punctuation.definition.tag.omap.otl"] expect(tokens[8]).toEqual value: "omap", scopes: ["source.otl", "keyword.other.omap.otl"] {tokens} = grammar.tokenizeLine "hello:!!omap" expect(tokens[0]).toEqual value: "hello:!!omap", scopes: ["source.otl", "string.unquoted.otl"] it "parses dates in YYYY-MM-DD format", -> {tokens} = grammar.tokenizeLine "- date: 2001-01-01" expect(tokens[0]).toEqual value: "-", scopes: ["source.otl", "punctuation.definition.entry.otl"] expect(tokens[1]).toEqual value: " ", scopes: ["source.otl"] expect(tokens[2]).toEqual value: "date", scopes: ["source.otl", "entity.name.tag.otl"] expect(tokens[3]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(tokens[4]).toEqual value: " ", scopes: ["source.otl"] expect(tokens[5]).toEqual value: "2001-01-01", scopes: ["source.otl", "constant.other.date.otl"] {tokens} = grammar.tokenizeLine "apocalypse: 2012-12-21" expect(tokens[0]).toEqual value: "apocalypse", scopes: ["source.otl", "entity.name.tag.otl"] expect(tokens[1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(tokens[2]).toEqual value: " ", scopes: ["source.otl"] expect(tokens[3]).toEqual value: "2012-12-21", scopes: ["source.otl", "constant.other.date.otl"] {tokens} = grammar.tokenizeLine "'the apocalypse is nigh': 2012-12-21" expect(tokens[0]).toEqual value: "'", scopes: ["source.otl", "string.quoted.single.otl", "punctuation.definition.string.begin.otl"] expect(tokens[1]).toEqual value: "the apocalypse is nigh", scopes: ["source.otl", "string.quoted.single.otl", "entity.name.tag.otl"] expect(tokens[2]).toEqual value: "'", scopes: ["source.otl", "string.quoted.single.otl", "punctuation.definition.string.end.otl"] expect(tokens[3]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(tokens[4]).toEqual value: " ", scopes: ["source.otl"] expect(tokens[5]).toEqual value: "2012-12-21", scopes: ["source.otl", "constant.other.date.otl"] lines = grammar.tokenizeLines """ multiline: - 2001-01-01 2001-01-01 """ expect(lines[1][3]).toEqual value: "2001-01-01", scopes: ["source.otl", "constant.other.date.otl"] expect(lines[2][1]).toEqual value: "2001-01-01", scopes: ["source.otl", "constant.other.date.otl"] {tokens} = grammar.tokenizeLine "- 2001-01-01" expect(tokens[0]).toEqual value: "-", scopes: ["source.otl", "punctuation.definition.entry.otl"] expect(tokens[1]).toEqual value: " ", scopes: ["source.otl"] expect(tokens[2]).toEqual value: "2001-01-01", scopes: ["source.otl", "constant.other.date.otl"] {tokens} = grammar.tokenizeLine "- 07-04-1776" expect(tokens[0]).toEqual value: "-", scopes: ["source.otl", "punctuation.definition.entry.otl"] expect(tokens[1]).toEqual value: " ", scopes: ["source.otl"] expect(tokens[2]).toEqual value: "07-04-1776", scopes: ["source.otl", "string.unquoted.otl"] {tokens} = grammar.tokenizeLine "- nope 2001-01-01" expect(tokens[0]).toEqual value: "-", scopes: ["source.otl", "punctuation.definition.entry.otl"] expect(tokens[1]).toEqual value: " ", scopes: ["source.otl"] expect(tokens[2]).toEqual value: "nope 2001-01-01", scopes: ["source.otl", "string.unquoted.otl"] {tokens} = grammar.tokenizeLine "- 2001-01-01 uh oh" expect(tokens[0]).toEqual value: "-", scopes: ["source.otl", "punctuation.definition.entry.otl"] expect(tokens[1]).toEqual value: " ", scopes: ["source.otl"] expect(tokens[2]).toEqual value: "2001-01-01 uh oh", scopes: ["source.otl", "string.unquoted.otl"] it "parses numbers", -> {tokens} = grammar.tokenizeLine "- meaning of life: 42" expect(tokens[0]).toEqual value: "-", scopes: ["source.otl", "punctuation.definition.entry.otl"] expect(tokens[1]).toEqual value: " ", scopes: ["source.otl"] expect(tokens[2]).toEqual value: "meaning of life", scopes: ["source.otl", "entity.name.tag.otl"] expect(tokens[3]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(tokens[4]).toEqual value: " ", scopes: ["source.otl"] expect(tokens[5]).toEqual value: "42", scopes: ["source.otl", "constant.numeric.otl"] {tokens} = grammar.tokenizeLine "hex: 0x726Fa" expect(tokens[0]).toEqual value: "hex", scopes: ["source.otl", "entity.name.tag.otl"] expect(tokens[1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(tokens[2]).toEqual value: " ", scopes: ["source.otl"] expect(tokens[3]).toEqual value: "0x726Fa", scopes: ["source.otl", "constant.numeric.otl"] {tokens} = grammar.tokenizeLine "- 0.7e-9001" expect(tokens[0]).toEqual value: "-", scopes: ["source.otl", "punctuation.definition.entry.otl"] expect(tokens[1]).toEqual value: " ", scopes: ["source.otl"] expect(tokens[2]).toEqual value: "0.7e-9001", scopes: ["source.otl", "constant.numeric.otl"] {tokens} = grammar.tokenizeLine "'over 9000': 9001" expect(tokens[0]).toEqual value: "'", scopes: ["source.otl", "string.quoted.single.otl", "punctuation.definition.string.begin.otl"] expect(tokens[1]).toEqual value: "over 9000", scopes: ["source.otl", "string.quoted.single.otl", "entity.name.tag.otl"] expect(tokens[2]).toEqual value: "'", scopes: ["source.otl", "string.quoted.single.otl", "punctuation.definition.string.end.otl"] expect(tokens[3]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(tokens[4]).toEqual value: " ", scopes: ["source.otl"] expect(tokens[5]).toEqual value: "9001", scopes: ["source.otl", "constant.numeric.otl"] lines = grammar.tokenizeLines """ multiline: - 3.14f 3.14f """ expect(lines[1][3]).toEqual value: "3.14f", scopes: ["source.otl", "constant.numeric.otl"] expect(lines[2][1]).toEqual value: "3.14f", scopes: ["source.otl", "constant.numeric.otl"] {tokens} = grammar.tokenizeLine "- pi 3.14" expect(tokens[0]).toEqual value: "-", scopes: ["source.otl", "punctuation.definition.entry.otl"] expect(tokens[1]).toEqual value: " ", scopes: ["source.otl"] expect(tokens[2]).toEqual value: "pi 3.14", scopes: ["source.otl", "string.unquoted.otl"] {tokens} = grammar.tokenizeLine "- 3.14 uh oh" expect(tokens[0]).toEqual value: "-", scopes: ["source.otl", "punctuation.definition.entry.otl"] expect(tokens[1]).toEqual value: " ", scopes: ["source.otl"] expect(tokens[2]).toEqual value: "3.14 uh oh", scopes: ["source.otl", "string.unquoted.otl"] describe "variables", -> it "tokenizes them", -> {tokens} = grammar.tokenizeLine "&variable" expect(tokens[0]).toEqual value: "&", scopes: ["source.otl", "variable.other.otl", "punctuation.definition.variable.otl"] expect(tokens[1]).toEqual value: "variable", scopes: ["source.otl", "variable.other.otl"] {tokens} = grammar.tokenizeLine "*variable" expect(tokens[0]).toEqual value: "*", scopes: ["source.otl", "variable.other.otl", "punctuation.definition.variable.otl"] expect(tokens[1]).toEqual value: "variable", scopes: ["source.otl", "variable.other.otl"] {tokens} = grammar.tokenizeLine "&v3ryc001" expect(tokens[0]).toEqual value: "&", scopes: ["source.otl", "variable.other.otl", "punctuation.definition.variable.otl"] expect(tokens[1]).toEqual value: "v3ryc001", scopes: ["source.otl", "variable.other.otl"] {tokens} = grammar.tokenizeLine "& variable" expect(tokens[0]).toEqual value: "& variable", scopes: ["source.otl", "string.unquoted.otl"] {tokens} = grammar.tokenizeLine "&variable hey" expect(tokens[0]).toEqual value: "&variable hey", scopes: ["source.otl", "string.unquoted.otl"] describe "constants", -> it "tokenizes true, false, and null as constants", -> {tokens} = grammar.tokenizeLine "key: true" expect(tokens[3]).toEqual value: "true", scopes: ["source.otl", "constant.language.otl"] {tokens} = grammar.tokenizeLine "key: false" expect(tokens[3]).toEqual value: "false", scopes: ["source.otl", "constant.language.otl"] {tokens} = grammar.tokenizeLine "key: null" expect(tokens[3]).toEqual value: "null", scopes: ["source.otl", "constant.language.otl"] {tokens} = grammar.tokenizeLine "key: True" expect(tokens[3]).toEqual value: "True", scopes: ["source.otl", "constant.language.otl"] {tokens} = grammar.tokenizeLine "key: False" expect(tokens[3]).toEqual value: "False", scopes: ["source.otl", "constant.language.otl"] {tokens} = grammar.tokenizeLine "key: Null" expect(tokens[3]).toEqual value: "Null", scopes: ["source.otl", "constant.language.otl"] {tokens} = grammar.tokenizeLine "key: TRUE" expect(tokens[3]).toEqual value: "TRUE", scopes: ["source.otl", "constant.language.otl"] {tokens} = grammar.tokenizeLine "key: FALSE" expect(tokens[3]).toEqual value: "FALSE", scopes: ["source.otl", "constant.language.otl"] {tokens} = grammar.tokenizeLine "key: NULL" expect(tokens[3]).toEqual value: "NULL", scopes: ["source.otl", "constant.language.otl"] {tokens} = grammar.tokenizeLine "key: ~" expect(tokens[3]).toEqual value: "~", scopes: ["source.otl", "constant.language.otl"] {tokens} = grammar.tokenizeLine "key: true$" expect(tokens[3]).toEqual value: "true$", scopes: ["source.otl", "string.unquoted.otl"] {tokens} = grammar.tokenizeLine "key: true false" expect(tokens[3]).toEqual value: "true false", scopes: ["source.otl", "string.unquoted.otl"] it "does not tokenize keys as constants", -> {tokens} = grammar.tokenizeLine "true: something" expect(tokens[0]).toEqual value: "true", scopes: ["source.otl", "entity.name.tag.otl"] describe "structures", -> it "tokenizes directives end markers", -> {tokens} = grammar.tokenizeLine "---" expect(tokens[0]).toEqual value: "---", scopes: ["source.otl", "punctuation.definition.directives.end.otl"] {tokens} = grammar.tokenizeLine " ---" expect(tokens[1]).not.toEqual value: "---", scopes: ["source.otl", "punctuation.definition.directives.end.otl"] it "tokenizes document end markers", -> {tokens} = grammar.tokenizeLine "..." expect(tokens[0]).toEqual value: "...", scopes: ["source.otl", "punctuation.definition.document.end.otl"] it "tokenizes structures in an actual YAML document", -> lines = grammar.tokenizeLines """ --- time: 20:03:20 player: Sammy Sosa action: strike (miss) ... --- time: 20:03:47 player: Sammy Sosa action: grand slam ... """ expect(lines[0][0]).toEqual value: "---", scopes: ["source.otl", "punctuation.definition.directives.end.otl"] expect(lines[4][0]).toEqual value: "...", scopes: ["source.otl", "punctuation.definition.document.end.otl"] expect(lines[5][0]).toEqual value: "---", scopes: ["source.otl", "punctuation.definition.directives.end.otl"] expect(lines[9][0]).toEqual value: "...", scopes: ["source.otl", "punctuation.definition.document.end.otl"] describe "tabs", -> it "marks them as invalid", -> {tokens} = grammar.tokenizeLine "\t\ttabs:" expect(tokens[0]).toEqual value: '\t\t', scopes: ['source.otl', 'invalid.illegal.whitespace.otl']
98090
describe "YAML grammar", -> grammar = null beforeEach -> waitsForPromise -> atom.packages.activatePackage("language-otl") runs -> grammar = atom.grammars.grammarForScopeName('source.otl') it "parses the grammar", -> expect(grammar).toBeTruthy() expect(grammar.scopeName).toBe "source.otl" it "selects the grammar for cloud config files", -> waitsForPromise -> atom.workspace.open('cloud.config') runs -> expect(atom.workspace.getActiveTextEditor().getGrammar()).toBe grammar describe "strings", -> describe "double quoted", -> it "parses escaped quotes", -> {tokens} = grammar.tokenizeLine("\"I am \\\"escaped\\\"\"") expect(tokens[0]).toEqual value: "\"", scopes: ["source.otl", "string.quoted.double.otl", "punctuation.definition.string.begin.otl"] expect(tokens[1]).toEqual value: "I am ", scopes: ["source.otl", "string.quoted.double.otl"] expect(tokens[2]).toEqual value: "\\\"", scopes: ["source.otl", "string.quoted.double.otl", "constant.character.escape.otl"] expect(tokens[3]).toEqual value: "escaped", scopes: ["source.otl", "string.quoted.double.otl"] expect(tokens[4]).toEqual value: "\\\"", scopes: ["source.otl", "string.quoted.double.otl", "constant.character.escape.otl"] expect(tokens[5]).toEqual value: "\"", scopes: ["source.otl", "string.quoted.double.otl", "punctuation.definition.string.end.otl"] {tokens} = grammar.tokenizeLine("key: \"I am \\\"escaped\\\"\"") expect(tokens[0]).toEqual value: "key", scopes: ["source.otl", "entity.name.tag.otl"] expect(tokens[1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(tokens[2]).toEqual value: " ", scopes: ["source.otl"] expect(tokens[3]).toEqual value: "\"", scopes: ["source.otl", "string.quoted.double.otl", "punctuation.definition.string.begin.otl"] expect(tokens[4]).toEqual value: "I am ", scopes: ["source.otl", "string.quoted.double.otl"] expect(tokens[5]).toEqual value: "\\\"", scopes: ["source.otl", "string.quoted.double.otl", "constant.character.escape.otl"] expect(tokens[6]).toEqual value: "escaped", scopes: ["source.otl", "string.quoted.double.otl"] expect(tokens[7]).toEqual value: "\\\"", scopes: ["source.otl", "string.quoted.double.otl", "constant.character.escape.otl"] expect(tokens[8]).toEqual value: "\"", scopes: ["source.otl", "string.quoted.double.otl", "punctuation.definition.string.end.otl"] it "parses other escape sequences", -> {tokens} = grammar.tokenizeLine("\"I am \\escaped\"") expect(tokens[0]).toEqual value: "\"", scopes: ["source.otl", "string.quoted.double.otl", "punctuation.definition.string.begin.otl"] expect(tokens[1]).toEqual value: "I am ", scopes: ["source.otl", "string.quoted.double.otl"] expect(tokens[2]).toEqual value: "\\e", scopes: ["source.otl", "string.quoted.double.otl", "constant.character.escape.otl"] expect(tokens[3]).toEqual value: "scaped", scopes: ["source.otl", "string.quoted.double.otl"] expect(tokens[4]).toEqual value: "\"", scopes: ["source.otl", "string.quoted.double.otl", "punctuation.definition.string.end.otl"] {tokens} = grammar.tokenizeLine('"\\uAb123"') expect(tokens[1]).toEqual value: "\\uAb12", scopes: ["source.otl", "string.quoted.double.otl", "constant.character.escape.otl"] expect(tokens[2]).toEqual value: "3", scopes: ["source.otl", "string.quoted.double.otl"] {tokens} = grammar.tokenizeLine('"\\UAb123Fe90"') expect(tokens[1]).toEqual value: "\\UAb123Fe9", scopes: ["source.otl", "string.quoted.double.otl", "constant.character.escape.otl"] expect(tokens[2]).toEqual value: "0", scopes: ["source.otl", "string.quoted.double.otl"] {tokens} = grammar.tokenizeLine('"\\x200"') expect(tokens[1]).toEqual value: "\\x20", scopes: ["source.otl", "string.quoted.double.otl", "constant.character.escape.otl"] expect(tokens[2]).toEqual value: "0", scopes: ["source.otl", "string.quoted.double.otl"] {tokens} = grammar.tokenizeLine('"\\ hi"') expect(tokens[1]).toEqual value: "\\ ", scopes: ["source.otl", "string.quoted.double.otl", "constant.character.escape.otl"] expect(tokens[2]).toEqual value: "hi", scopes: ["source.otl", "string.quoted.double.otl"] it "parses invalid escape sequences", -> {tokens} = grammar.tokenizeLine('"\\uqerww"') expect(tokens[1]).toEqual value: "\\uqerw", scopes: ["source.otl", "string.quoted.double.otl", "invalid.illegal.escape.otl"] expect(tokens[2]).toEqual value: "w", scopes: ["source.otl", "string.quoted.double.otl"] {tokens} = grammar.tokenizeLine('"\\U0123456GF"') expect(tokens[1]).toEqual value: "\\U0123456G", scopes: ["source.otl", "string.quoted.double.otl", "invalid.illegal.escape.otl"] expect(tokens[2]).toEqual value: "F", scopes: ["source.otl", "string.quoted.double.otl"] {tokens} = grammar.tokenizeLine('"\\x2Q1"') expect(tokens[1]).toEqual value: "\\x2Q", scopes: ["source.otl", "string.quoted.double.otl", "invalid.illegal.escape.otl"] expect(tokens[2]).toEqual value: "1", scopes: ["source.otl", "string.quoted.double.otl"] {tokens} = grammar.tokenizeLine('"\\c3"') expect(tokens[1]).toEqual value: "\\c", scopes: ["source.otl", "string.quoted.double.otl", "invalid.illegal.escape.otl"] expect(tokens[2]).toEqual value: "3", scopes: ["source.otl", "string.quoted.double.otl"] describe "single quoted", -> it "parses escaped single quotes", -> {tokens} = grammar.tokenizeLine("'I am ''escaped'''") expect(tokens[0]).toEqual value: "'", scopes: ["source.otl", "string.quoted.single.otl", "punctuation.definition.string.begin.otl"] expect(tokens[1]).toEqual value: "I am ", scopes: ["source.otl", "string.quoted.single.otl"] expect(tokens[2]).toEqual value: "''", scopes: ["source.otl", "string.quoted.single.otl", "constant.character.escape.otl"] expect(tokens[3]).toEqual value: "escaped", scopes: ["source.otl", "string.quoted.single.otl"] expect(tokens[4]).toEqual value: "''", scopes: ["source.otl", "string.quoted.single.otl", "constant.character.escape.otl"] expect(tokens[5]).toEqual value: "'", scopes: ["source.otl", "string.quoted.single.otl", "punctuation.definition.string.end.otl"] {tokens} = grammar.tokenizeLine("key: 'I am ''escaped'''") expect(tokens[0]).toEqual value: "key", scopes: ["source.otl", "entity.name.tag.otl"] expect(tokens[1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(tokens[2]).toEqual value: " ", scopes: ["source.otl"] expect(tokens[3]).toEqual value: "'", scopes: ["source.otl", "string.quoted.single.otl", "punctuation.definition.string.begin.otl"] expect(tokens[4]).toEqual value: "I am ", scopes: ["source.otl", "string.quoted.single.otl"] expect(tokens[5]).toEqual value: "''", scopes: ["source.otl", "string.quoted.single.otl", "constant.character.escape.otl"] expect(tokens[6]).toEqual value: "escaped", scopes: ["source.otl", "string.quoted.single.otl"] expect(tokens[7]).toEqual value: "''", scopes: ["source.otl", "string.quoted.single.otl", "constant.character.escape.otl"] expect(tokens[8]).toEqual value: "'", scopes: ["source.otl", "string.quoted.single.otl", "punctuation.definition.string.end.otl"] it "does not recognize backslashes as escape characters", -> {tokens} = grammar.tokenizeLine("'I am not \\escaped'") expect(tokens[0]).toEqual value: "'", scopes: ["source.otl", "string.quoted.single.otl", "punctuation.definition.string.begin.otl"] expect(tokens[1]).toEqual value: "I am not \\escaped", scopes: ["source.otl", "string.quoted.single.otl"] expect(tokens[2]).toEqual value: "'", scopes: ["source.otl", "string.quoted.single.otl", "punctuation.definition.string.end.otl"] describe "text blocks", -> it "parses simple content", -> lines = grammar.tokenizeLines """ key: | content here second line """ expect(lines[0][0]).toEqual value: "key", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[0][1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[1][0]).toEqual value: " content here", scopes: ["source.otl", "string.unquoted.block.otl"] expect(lines[2][0]).toEqual value: " second line", scopes: ["source.otl", "string.unquoted.block.otl"] it "parses content with empty lines", -> lines = grammar.tokenizeLines """ key: | content here second line """ expect(lines[0][0]).toEqual value: "key", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[0][1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[1][0]).toEqual value: " content here", scopes: ["source.otl", "string.unquoted.block.otl"] expect(lines[2][0]).toEqual value: "", scopes: ["source.otl", "string.unquoted.block.otl"] expect(lines[3][0]).toEqual value: " second line", scopes: ["source.otl", "string.unquoted.block.otl"] it "parses keys with decimals", -> lines = grammar.tokenizeLines """ 2.0: | content here second line """ expect(lines[0][0]).toEqual value: "2.0", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[0][1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[1][0]).toEqual value: " content here", scopes: ["source.otl", "string.unquoted.block.otl"] expect(lines[2][0]).toEqual value: " second line", scopes: ["source.otl", "string.unquoted.block.otl"] it "parses keys with quotes", -> lines = grammar.tokenizeLines """ single'quotes': | content here double"quotes": > content here """ expect(lines[0][0]).toEqual value: "single'quotes'", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[0][1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[1][0]).toEqual value: " content here", scopes: ["source.otl", "string.unquoted.block.otl"] expect(lines[2][0]).toEqual value: "double\"quotes\"", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[2][1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[3][0]).toEqual value: " content here", scopes: ["source.otl", "string.unquoted.block.otl"] it "parses keys with quotes in sequences", -> lines = grammar.tokenizeLines """ - single'quotes': | content here - double"quotes": > content here """ expect(lines[0][0]).toEqual value: "-", scopes: ["source.otl", "punctuation.definition.entry.otl"] expect(lines[0][2]).toEqual value: "single'quotes'", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[0][3]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[1][0]).toEqual value: " content here", scopes: ["source.otl", "string.unquoted.block.otl"] expect(lines[2][0]).toEqual value: "-", scopes: ["source.otl", "punctuation.definition.entry.otl"] expect(lines[2][2]).toEqual value: "double\"quotes\"", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[2][3]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[3][0]).toEqual value: " content here", scopes: ["source.otl", "string.unquoted.block.otl"] it "parses keys with quotes in sequences even when not using | or >", -> lines = grammar.tokenizeLines """ - single'quotes': content here - double"quotes": content here """ expect(lines[0][0]).toEqual value: "-", scopes: ["source.otl", "punctuation.definition.entry.otl"] expect(lines[0][2]).toEqual value: "single'quotes'", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[0][3]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[1][1]).toEqual value: "content here", scopes: ["source.otl", "string.unquoted.otl"] expect(lines[2][0]).toEqual value: "-", scopes: ["source.otl", "punctuation.definition.entry.otl"] expect(lines[2][2]).toEqual value: "double\"quotes\"", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[2][3]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[3][1]).toEqual value: "content here", scopes: ["source.otl", "string.unquoted.otl"] it "parses keys with spaces", -> lines = grammar.tokenizeLines """ a space: | content here more than one space: > content here space after : | content here """ expect(lines[0][0]).toEqual value: "a space", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[0][1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[1][0]).toEqual value: " content here", scopes: ["source.otl", "string.unquoted.block.otl"] expect(lines[2][0]).toEqual value: "more than one space", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[2][1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[3][0]).toEqual value: " content here", scopes: ["source.otl", "string.unquoted.block.otl"] expect(lines[4][0]).toEqual value: "space after", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[4][2]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[5][0]).toEqual value: " content here", scopes: ["source.otl", "string.unquoted.block.otl"] it "parses keys with spaces in sequences", -> lines = grammar.tokenizeLines """ - a space: | content here - more than one space: > content here - space after : | content here """ expect(lines[0][0]).toEqual value: "-", scopes: ["source.otl", "punctuation.definition.entry.otl"] expect(lines[0][2]).toEqual value: "a space", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[0][3]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[1][0]).toEqual value: " content here", scopes: ["source.otl", "string.unquoted.block.otl"] expect(lines[2][0]).toEqual value: "-", scopes: ["source.otl", "punctuation.definition.entry.otl"] expect(lines[2][2]).toEqual value: "more than one space", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[2][3]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[3][0]).toEqual value: " content here", scopes: ["source.otl", "string.unquoted.block.otl"] expect(lines[4][0]).toEqual value: "-", scopes: ["source.otl", "punctuation.definition.entry.otl"] expect(lines[4][2]).toEqual value: "space after", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[4][4]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[5][0]).toEqual value: " content here", scopes: ["source.otl", "string.unquoted.block.otl"] it "properly parses through pound signs in blocks", -> lines = grammar.tokenizeLines """ key: | # this is not a legit comment unquoted block ### this is just a markdown header another unquoted block """ expect(lines[0][0]).toEqual value: "key", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[0][1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[1][0]).toEqual value: " # this is not a legit comment", scopes: ["source.otl", "string.unquoted.block.otl"] expect(lines[2][0]).toEqual value: " unquoted block", scopes: ["source.otl", "string.unquoted.block.otl"] expect(lines[3][0]).toEqual value: " ### this is just a markdown header", scopes: ["source.otl", "string.unquoted.block.otl"] expect(lines[4][0]).toEqual value: " another unquoted block", scopes: ["source.otl", "string.unquoted.block.otl"] it "parses keys following blocks in sequences", -> lines = grammar.tokenizeLines """ - textblock: > multiline text key with spaces: following text """ expect(lines[0][0]).toEqual value: "-", scopes: ["source.otl", "punctuation.definition.entry.otl"] expect(lines[0][2]).toEqual value: "textblock", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[0][3]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[1][0]).toEqual value: " multiline", scopes: ["source.otl", "string.unquoted.block.otl"] expect(lines[2][0]).toEqual value: " text", scopes: ["source.otl", "string.unquoted.block.otl"] expect(lines[3][0]).toEqual value: " ", scopes: ["source.otl"] expect(lines[3][1]).toEqual value: "key with spaces", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[3][2]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[3][3]).toEqual value: " ", scopes: ["source.otl"] expect(lines[3][4]).toEqual value: "following text", scopes: ["source.otl", "string.unquoted.otl"] it "parses content even when not using | or >", -> lines = grammar.tokenizeLines """ - textblock: multiline text key: following text """ expect(lines[0][0]).toEqual value: "-", scopes: ["source.otl", "punctuation.definition.entry.otl"] expect(lines[0][2]).toEqual value: "textblock", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[0][3]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[1][1]).toEqual value: "multiline", scopes: ["source.otl", "string.unquoted.otl"] expect(lines[2][1]).toEqual value: "text", scopes: ["source.otl", "string.unquoted.otl"] expect(lines[3][0]).toEqual value: " ", scopes: ["source.otl"] expect(lines[3][1]).toEqual value: "key", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[3][2]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[3][3]).toEqual value: " ", scopes: ["source.otl"] expect(lines[3][4]).toEqual value: "following text", scopes: ["source.otl", "string.unquoted.otl"] describe "parses content with unindented empty lines", -> it "ending the content", -> lines = grammar.tokenizeLines """ key: | content here second line """ expect(lines[0][0]).toEqual value: "key", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[0][1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[0][3]).toEqual value: "|", scopes: ["source.otl", "string.unquoted.block.otl"] expect(lines[1][0]).toEqual value: " content here", scopes: ["source.otl", "string.unquoted.block.otl"] expect(lines[2][0]).toEqual value: "", scopes: ["source.otl", "string.unquoted.block.otl"] expect(lines[3][0]).toEqual value: " second line", scopes: ["source.otl", "string.unquoted.block.otl"] it "ending with new element", -> lines = grammar.tokenizeLines """ key: | content here second line other: hi """ expect(lines[0][0]).toEqual value: "key", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[0][1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[0][3]).toEqual value: "|", scopes: ["source.otl", "string.unquoted.block.otl"] expect(lines[1][0]).toEqual value: " content here", scopes: ["source.otl", "string.unquoted.block.otl"] expect(lines[2][0]).toEqual value: "", scopes: ["source.otl", "string.unquoted.block.otl"] expect(lines[3][0]).toEqual value: " second line", scopes: ["source.otl", "string.unquoted.block.otl"] expect(lines[4][0]).toEqual value: "other", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[4][1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[4][2]).toEqual value: " ", scopes: ["source.otl"] expect(lines[4][3]).toEqual value: "hi", scopes: ["source.otl", "string.unquoted.otl"] it "ending with new element, part of list", -> lines = grammar.tokenizeLines """ - key: | content here second line - other: hi """ expect(lines[0][0]).toEqual value: "-", scopes: ["source.otl", "punctuation.definition.entry.otl"] expect(lines[0][2]).toEqual value: "key", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[0][3]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[0][5]).toEqual value: "|", scopes: ["source.otl", "string.unquoted.block.otl"] expect(lines[1][0]).toEqual value: " content here", scopes: ["source.otl", "string.unquoted.block.otl"] expect(lines[2][0]).toEqual value: "", scopes: ["source.otl", "string.unquoted.block.otl"] expect(lines[3][0]).toEqual value: " second line", scopes: ["source.otl", "string.unquoted.block.otl"] expect(lines[4][0]).toEqual value: "-", scopes: ["source.otl", "punctuation.definition.entry.otl"] expect(lines[4][1]).toEqual value: " ", scopes: ["source.otl"] expect(lines[4][2]).toEqual value: "other", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[4][3]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[4][4]).toEqual value: " ", scopes: ["source.otl"] expect(lines[4][5]).toEqual value: "hi", scopes: ["source.otl", "string.unquoted.otl"] it "ending with twice unindented new element", -> lines = grammar.tokenizeLines """ root: key: | content here second line other: hi """ expect(lines[1][1]).toEqual value: "key", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[1][2]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[1][4]).toEqual value: "|", scopes: ["source.otl", "string.unquoted.block.otl"] expect(lines[2][0]).toEqual value: " content here", scopes: ["source.otl", "string.unquoted.block.otl"] expect(lines[3][0]).toEqual value: "", scopes: ["source.otl", "string.unquoted.block.otl"] expect(lines[4][0]).toEqual value: " second line", scopes: ["source.otl", "string.unquoted.block.otl"] expect(lines[5][0]).toEqual value: "other", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[5][1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[5][2]).toEqual value: " ", scopes: ["source.otl"] expect(lines[5][3]).toEqual value: "hi", scopes: ["source.otl", "string.unquoted.otl"] it "ending with an indented comment", -> lines = grammar.tokenizeLines """ root: key: | content here second line # hi """ expect(lines[1][1]).toEqual value: "key", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[1][2]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[1][4]).toEqual value: "|", scopes: ["source.otl", "string.unquoted.block.otl"] expect(lines[2][0]).toEqual value: " content here", scopes: ["source.otl", "string.unquoted.block.otl"] expect(lines[3][0]).toEqual value: "", scopes: ["source.otl", "string.unquoted.block.otl"] expect(lines[4][0]).toEqual value: " second line", scopes: ["source.otl", "string.unquoted.block.otl"] expect(lines[5][0]).toEqual value: " ", scopes: ["source.otl"] expect(lines[5][1]).toEqual value: "#", scopes: ["source.otl", "comment.line.number-sign.otl", "punctuation.definition.comment.otl"] expect(lines[5][2]).toEqual value: " hi", scopes: ["source.otl", "comment.line.number-sign.otl"] it "does not confuse keys and strings", -> {tokens} = grammar.tokenizeLine("- 'Section 2.4: 3, 6abc, 12ab, 30, 32a'") expect(tokens[0]).toEqual value: "-", scopes: ["source.otl", "punctuation.definition.entry.otl"] expect(tokens[2]).toEqual value: "'", scopes: ["source.otl", "string.quoted.single.otl", "punctuation.definition.string.begin.otl"] expect(tokens[3]).toEqual value: "Section 2.4: 3, 6abc, 12ab, 30, 32a", scopes: ["source.otl", "string.quoted.single.otl"] it "parses the non-specific tag indicator before values", -> {tokens} = grammar.tokenizeLine("key: ! 'hi'") expect(tokens[0]).toEqual value: "key", scopes: ["source.otl", "entity.name.tag.otl"] expect(tokens[1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(tokens[2]).toEqual value: " ", scopes: ["source.otl"] expect(tokens[3]).toEqual value: "!", scopes: ["source.otl", "punctuation.definition.tag.non-specific.otl"] expect(tokens[5]).toEqual value: "'", scopes: ["source.otl", "string.quoted.single.otl", "punctuation.definition.string.begin.otl"] expect(tokens[6]).toEqual value: "hi", scopes: ["source.otl", "string.quoted.single.otl"] expect(tokens[7]).toEqual value: "'", scopes: ["source.otl", "string.quoted.single.otl", "punctuation.definition.string.end.otl"] it "parses nested keys", -> lines = grammar.tokenizeLines """ first: second: third: 3 fourth: "4th" """ expect(lines[0][0]).toEqual value: "first", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[0][1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[1][0]).toEqual value: " ", scopes: ["source.otl"] expect(lines[1][1]).toEqual value: "second", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[1][2]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[2][0]).toEqual value: " ", scopes: ["source.otl"] expect(lines[2][1]).toEqual value: "third", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[2][2]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[2][3]).toEqual value: " ", scopes: ["source.otl"] expect(lines[2][4]).toEqual value: "3", scopes: ["source.otl", "constant.numeric.otl"] expect(lines[3][0]).toEqual value: " ", scopes: ["source.otl"] expect(lines[3][1]).toEqual value: "fourth", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[3][2]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[3][3]).toEqual value: " ", scopes: ["source.otl"] expect(lines[3][4]).toEqual value: "\"", scopes: ["source.otl", "string.quoted.double.otl", "punctuation.definition.string.begin.otl"] expect(lines[3][5]).toEqual value: "4th", scopes: ["source.otl", "string.quoted.double.otl"] expect(lines[3][6]).toEqual value: "\"", scopes: ["source.otl", "string.quoted.double.otl", "punctuation.definition.string.end.otl"] it "parses keys and values", -> lines = grammar.tokenizeLines """ first: 1st second: 2nd third: th{ree} fourth:invalid """ expect(lines[0][0]).toEqual value: "first", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[0][1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[0][2]).toEqual value: " ", scopes: ["source.otl"] expect(lines[0][3]).toEqual value: "1st", scopes: ["source.otl", "string.unquoted.otl"] expect(lines[1][0]).toEqual value: "second", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[1][1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[1][2]).toEqual value: " ", scopes: ["source.otl"] expect(lines[1][3]).toEqual value: "2nd", scopes: ["source.otl", "string.unquoted.otl"] expect(lines[2][0]).toEqual value: "third", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[2][1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[2][2]).toEqual value: " ", scopes: ["source.otl"] expect(lines[2][3]).toEqual value: "th{ree}", scopes: ["source.otl", "string.unquoted.otl"] expect(lines[3][0]).toEqual value: "fourth:invalid", scopes: ["source.otl", "string.unquoted.otl"] it "parses quoted keys", -> lines = grammar.tokenizeLines """ 'G@role:deployer': - deployer """ expect(lines[0][0]).toEqual value: "'", scopes: ["source.otl", "string.quoted.single.otl", "punctuation.definition.string.begin.otl"] expect(lines[0][1]).toEqual value: "G@role:deployer", scopes: ["source.otl", "string.quoted.single.otl", "entity.name.tag.otl"] expect(lines[0][2]).toEqual value: "'", scopes: ["source.otl", "string.quoted.single.otl", "punctuation.definition.string.end.otl"] expect(lines[0][3]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] lines = grammar.tokenizeLines """ "G@role:deployer": - deployer """ expect(lines[0][0]).toEqual value: '"', scopes: ["source.otl", "string.quoted.double.otl", "punctuation.definition.string.begin.otl"] expect(lines[0][1]).toEqual value: "G@role:deployer", scopes: ["source.otl", "string.quoted.double.otl", "entity.name.tag.otl"] expect(lines[0][2]).toEqual value: '"', scopes: ["source.otl", "string.quoted.double.otl", "punctuation.definition.string.end.otl"] expect(lines[0][3]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] it "parses comments at the beginning of lines", -> lines = grammar.tokenizeLines """ # first: 1 # second ## """ expect(lines[0][0]).toEqual value: "#", scopes: ["source.otl", "comment.line.number-sign.otl", "punctuation.definition.comment.otl"] expect(lines[0][1]).toEqual value: " first: 1", scopes: ["source.otl", "comment.line.number-sign.otl"] expect(lines[1][0]).toEqual value: " ", scopes: ["source.otl"] expect(lines[1][1]).toEqual value: "#", scopes: ["source.otl", "comment.line.number-sign.otl", "punctuation.definition.comment.otl"] expect(lines[1][2]).toEqual value: " second", scopes: ["source.otl", "comment.line.number-sign.otl"] expect(lines[2][0]).toEqual value: "#", scopes: ["source.otl", "comment.line.number-sign.otl", "punctuation.definition.comment.otl"] expect(lines[2][1]).toEqual value: "#", scopes: ["source.otl", "comment.line.number-sign.otl"] it "parses comments at the end of lines", -> lines = grammar.tokenizeLines """ first: 1 # foo second: 2nd #bar third: "3" fourth: four# """ expect(lines[0][0]).toEqual value: "first", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[0][1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[0][3]).toEqual value: "1", scopes: ["source.otl", "constant.numeric.otl"] expect(lines[0][5]).toEqual value: "#", scopes: ["source.otl", "comment.line.number-sign.otl", "punctuation.definition.comment.otl"] expect(lines[0][6]).toEqual value: " foo", scopes: ["source.otl", "comment.line.number-sign.otl"] expect(lines[1][0]).toEqual value: "second", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[1][1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[1][2]).toEqual value: " ", scopes: ["source.otl"] expect(lines[1][3]).toEqual value: "2nd ", scopes: ["source.otl", "string.unquoted.otl"] expect(lines[1][4]).toEqual value: "#", scopes: ["source.otl", "comment.line.number-sign.otl", "punctuation.definition.comment.otl"] expect(lines[1][5]).toEqual value: "bar", scopes: ["source.otl", "comment.line.number-sign.otl"] expect(lines[2][0]).toEqual value: "third", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[2][1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[2][2]).toEqual value: " ", scopes: ["source.otl"] expect(lines[2][3]).toEqual value: "\"", scopes: ["source.otl", "string.quoted.double.otl", "punctuation.definition.string.begin.otl"] expect(lines[2][4]).toEqual value: "3", scopes: ["source.otl", "string.quoted.double.otl"] expect(lines[2][5]).toEqual value: "\"", scopes: ["source.otl", "string.quoted.double.otl", "punctuation.definition.string.end.otl"] expect(lines[3][0]).toEqual value: "fourth", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[3][1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[3][2]).toEqual value: " ", scopes: ["source.otl"] expect(lines[3][3]).toEqual value: "four#", scopes: ["source.otl", "string.unquoted.otl"] lines = grammar.tokenizeLines """ multiline: # comment! This should still be a string # another comment! Ditto # Guess what this is String # comment """ expect(lines[0][3]).toEqual value: "#", scopes: ["source.otl", "comment.line.number-sign.otl", "punctuation.definition.comment.otl"] expect(lines[1][1]).toEqual value: "This should still be a string ", scopes: ["source.otl", "string.unquoted.otl"] expect(lines[1][2]).toEqual value: "#", scopes: ["source.otl", "comment.line.number-sign.otl", "punctuation.definition.comment.otl"] expect(lines[2][1]).toEqual value: "Ditto", scopes: ["source.otl", "string.unquoted.otl"] expect(lines[3][1]).toEqual value: "#", scopes: ["source.otl", "comment.line.number-sign.otl", "punctuation.definition.comment.otl"] expect(lines[4][1]).toEqual value: "String", scopes: ["source.otl", "string.unquoted.otl"] expect(lines[5][0]).toEqual value: "#", scopes: ["source.otl", "comment.line.number-sign.otl", "punctuation.definition.comment.otl"] it "does not confuse keys and comments", -> {tokens} = grammar.tokenizeLine("- Entry 2 # This colon breaks syntax highlighting: see?") expect(tokens[0]).toEqual value: "-", scopes: ["source.otl", "punctuation.definition.entry.otl"] expect(tokens[3]).toEqual value: "#", scopes: ["source.otl", "comment.line.number-sign.otl", "punctuation.definition.comment.otl"] expect(tokens[4]).toEqual value: " This colon breaks syntax highlighting: see?", scopes: ["source.otl", "comment.line.number-sign.otl"] it "does not confuse keys and unquoted strings", -> {tokens} = grammar.tokenizeLine("- { role: common }") expect(tokens[0]).toEqual value: "-", scopes: ["source.otl", "punctuation.definition.entry.otl"] expect(tokens[2]).toEqual value: "{ role: common }", scopes: ["source.otl", "string.unquoted.otl"] it "parses colons in key names", -> lines = grammar.tokenizeLines """ colon::colon: 1 colon::colon: 2nd colon::colon: "3" colon: "this is another : colon" colon: "this is another :colon" """ expect(lines[0][0]).toEqual value: "colon::colon", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[0][1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[0][3]).toEqual value: "1", scopes: ["source.otl", "constant.numeric.otl"] expect(lines[1][0]).toEqual value: "colon::colon", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[1][1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[1][2]).toEqual value: " ", scopes: ["source.otl"] expect(lines[1][3]).toEqual value: "2nd", scopes: ["source.otl", "string.unquoted.otl"] expect(lines[2][0]).toEqual value: "colon::colon", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[2][1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[2][2]).toEqual value: " ", scopes: ["source.otl"] expect(lines[2][3]).toEqual value: "\"", scopes: ["source.otl", "string.quoted.double.otl", "punctuation.definition.string.begin.otl"] expect(lines[2][4]).toEqual value: "3", scopes: ["source.otl", "string.quoted.double.otl"] expect(lines[2][5]).toEqual value: "\"", scopes: ["source.otl", "string.quoted.double.otl", "punctuation.definition.string.end.otl"] expect(lines[3][0]).toEqual value: "colon", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[3][1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[3][2]).toEqual value: " ", scopes: ["source.otl"] expect(lines[3][3]).toEqual value: "\"", scopes: ["source.otl", "string.quoted.double.otl", "punctuation.definition.string.begin.otl"] expect(lines[3][4]).toEqual value: "this is another : colon", scopes: ["source.otl", "string.quoted.double.otl"] expect(lines[3][5]).toEqual value: "\"", scopes: ["source.otl", "string.quoted.double.otl", "punctuation.definition.string.end.otl"] expect(lines[4][0]).toEqual value: "colon", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[4][1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[4][2]).toEqual value: " ", scopes: ["source.otl"] expect(lines[4][3]).toEqual value: "\"", scopes: ["source.otl", "string.quoted.double.otl", "punctuation.definition.string.begin.otl"] expect(lines[4][4]).toEqual value: "this is another :colon", scopes: ["source.otl", "string.quoted.double.otl"] expect(lines[4][5]).toEqual value: "\"", scopes: ["source.otl", "string.quoted.double.otl", "punctuation.definition.string.end.otl"] it "parses spaces in key names", -> lines = grammar.tokenizeLines """ spaced out: 1 more spaces: 2nd with quotes: "3" """ expect(lines[0][0]).toEqual value: "spaced out", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[0][1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[0][3]).toEqual value: "1", scopes: ["source.otl", "constant.numeric.otl"] expect(lines[1][0]).toEqual value: "more spaces", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[1][1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[1][2]).toEqual value: " ", scopes: ["source.otl"] expect(lines[1][3]).toEqual value: "2nd", scopes: ["source.otl", "string.unquoted.otl"] expect(lines[2][0]).toEqual value: "with quotes", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[2][1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[2][2]).toEqual value: " ", scopes: ["source.otl"] expect(lines[2][3]).toEqual value: "\"", scopes: ["source.otl", "string.quoted.double.otl", "punctuation.definition.string.begin.otl"] expect(lines[2][4]).toEqual value: "3", scopes: ["source.otl", "string.quoted.double.otl"] expect(lines[2][5]).toEqual value: "\"", scopes: ["source.otl", "string.quoted.double.otl", "punctuation.definition.string.end.otl"] it "parses quotes in unquoted key names", -> lines = grammar.tokenizeLines """ General Tso's Chicken: 1 <NAME> "The <NAME>" <NAME>: 2nd possessives': "3" Conan "the Barbarian": '4' """ expect(lines[0][0]).toEqual value: "General Tso's Chicken", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[0][1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[0][3]).toEqual value: "1", scopes: ["source.otl", "constant.numeric.otl"] expect(lines[1][0]).toEqual value: "<NAME> \"<NAME>\" <NAME>", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[1][1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[1][2]).toEqual value: " ", scopes: ["source.otl"] expect(lines[1][3]).toEqual value: "2nd", scopes: ["source.otl", "string.unquoted.otl"] expect(lines[2][0]).toEqual value: "possessives'", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[2][1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[2][2]).toEqual value: " ", scopes: ["source.otl"] expect(lines[2][3]).toEqual value: "\"", scopes: ["source.otl", "string.quoted.double.otl", "punctuation.definition.string.begin.otl"] expect(lines[2][4]).toEqual value: "3", scopes: ["source.otl", "string.quoted.double.otl"] expect(lines[2][5]).toEqual value: "\"", scopes: ["source.otl", "string.quoted.double.otl", "punctuation.definition.string.end.otl"] expect(lines[3][0]).toEqual value: "Conan \"the Barbarian\"", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[3][1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[3][2]).toEqual value: " ", scopes: ["source.otl"] expect(lines[3][3]).toEqual value: "'", scopes: ["source.otl", "string.quoted.single.otl", "punctuation.definition.string.begin.otl"] expect(lines[3][4]).toEqual value: "4", scopes: ["source.otl", "string.quoted.single.otl"] expect(lines[3][5]).toEqual value: "'", scopes: ["source.otl", "string.quoted.single.otl", "punctuation.definition.string.end.otl"] it "parses the merge-key tag", -> {tokens} = grammar.tokenizeLine "<<: *variable" expect(tokens[0]).toEqual value: "<<", scopes: ["source.otl", "entity.name.tag.merge.otl"] expect(tokens[1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(tokens[2]).toEqual value: " ", scopes: ["source.otl"] expect(tokens[3]).toEqual value: "*", scopes: ["source.otl", "variable.other.otl", "punctuation.definition.variable.otl"] expect(tokens[4]).toEqual value: "variable", scopes: ["source.otl", "variable.other.otl"] {tokens} = grammar.tokenizeLine "<< : *variable" expect(tokens[0]).toEqual value: "<<", scopes: ["source.otl", "entity.name.tag.merge.otl"] expect(tokens[1]).toEqual value: " ", scopes: ["source.otl"] expect(tokens[2]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(tokens[3]).toEqual value: " ", scopes: ["source.otl"] expect(tokens[4]).toEqual value: "*", scopes: ["source.otl", "variable.other.otl", "punctuation.definition.variable.otl"] expect(tokens[5]).toEqual value: "variable", scopes: ["source.otl", "variable.other.otl"] {tokens} = grammar.tokenizeLine "<<:*variable" expect(tokens[0]).toEqual value: "<<:*variable", scopes: ["source.otl", "string.unquoted.otl"] it "parses local tags", -> {tokens} = grammar.tokenizeLine "multiline: !something >" expect(tokens[3]).toEqual value: "!", scopes: ["source.otl", "keyword.other.tag.local.otl", "punctuation.definition.tag.local.otl"] expect(tokens[4]).toEqual value: "something", scopes: ["source.otl", "keyword.other.tag.local.otl"] expect(tokens[6]).toEqual value: ">", scopes: ["source.otl", "string.unquoted.block.otl"] {tokens} = grammar.tokenizeLine "- !tag" expect(tokens[2]).toEqual value: "!", scopes: ["source.otl", "keyword.other.tag.local.otl", "punctuation.definition.tag.local.otl"] expect(tokens[3]).toEqual value: "tag", scopes: ["source.otl", "keyword.other.tag.local.otl"] {tokens} = grammar.tokenizeLine "- !" expect(tokens[0]).toEqual value: "- !", scopes: ["source.otl", "string.unquoted.otl"] {tokens} = grammar.tokenizeLine "- !!" expect(tokens[0]).toEqual value: "- !!", scopes: ["source.otl", "string.unquoted.otl"] it "parses the !!omap directive", -> {tokens} = grammar.tokenizeLine "hello: !!omap" expect(tokens[0]).toEqual value: "hello", scopes: ["source.otl", "entity.name.tag.otl"] expect(tokens[1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(tokens[2]).toEqual value: " ", scopes: ["source.otl"] expect(tokens[3]).toEqual value: "!!", scopes: ["source.otl", "keyword.other.omap.otl", "punctuation.definition.tag.omap.otl"] expect(tokens[4]).toEqual value: "omap", scopes: ["source.otl", "keyword.other.omap.otl"] {tokens} = grammar.tokenizeLine "- 'hello': !!omap" expect(tokens[0]).toEqual value: "-", scopes: ["source.otl", "punctuation.definition.entry.otl"] expect(tokens[1]).toEqual value: " ", scopes: ["source.otl"] expect(tokens[2]).toEqual value: "'", scopes: ["source.otl", "string.quoted.single.otl", "punctuation.definition.string.begin.otl"] expect(tokens[3]).toEqual value: "hello", scopes: ["source.otl", "string.quoted.single.otl", "entity.name.tag.otl"] expect(tokens[4]).toEqual value: "'", scopes: ["source.otl", "string.quoted.single.otl", "punctuation.definition.string.end.otl"] expect(tokens[5]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(tokens[6]).toEqual value: " ", scopes: ["source.otl"] expect(tokens[7]).toEqual value: "!!", scopes: ["source.otl", "keyword.other.omap.otl", "punctuation.definition.tag.omap.otl"] expect(tokens[8]).toEqual value: "omap", scopes: ["source.otl", "keyword.other.omap.otl"] {tokens} = grammar.tokenizeLine "hello:!!omap" expect(tokens[0]).toEqual value: "hello:!!omap", scopes: ["source.otl", "string.unquoted.otl"] it "parses dates in YYYY-MM-DD format", -> {tokens} = grammar.tokenizeLine "- date: 2001-01-01" expect(tokens[0]).toEqual value: "-", scopes: ["source.otl", "punctuation.definition.entry.otl"] expect(tokens[1]).toEqual value: " ", scopes: ["source.otl"] expect(tokens[2]).toEqual value: "date", scopes: ["source.otl", "entity.name.tag.otl"] expect(tokens[3]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(tokens[4]).toEqual value: " ", scopes: ["source.otl"] expect(tokens[5]).toEqual value: "2001-01-01", scopes: ["source.otl", "constant.other.date.otl"] {tokens} = grammar.tokenizeLine "apocalypse: 2012-12-21" expect(tokens[0]).toEqual value: "apocalypse", scopes: ["source.otl", "entity.name.tag.otl"] expect(tokens[1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(tokens[2]).toEqual value: " ", scopes: ["source.otl"] expect(tokens[3]).toEqual value: "2012-12-21", scopes: ["source.otl", "constant.other.date.otl"] {tokens} = grammar.tokenizeLine "'the apocalypse is nigh': 2012-12-21" expect(tokens[0]).toEqual value: "'", scopes: ["source.otl", "string.quoted.single.otl", "punctuation.definition.string.begin.otl"] expect(tokens[1]).toEqual value: "the apocalypse is nigh", scopes: ["source.otl", "string.quoted.single.otl", "entity.name.tag.otl"] expect(tokens[2]).toEqual value: "'", scopes: ["source.otl", "string.quoted.single.otl", "punctuation.definition.string.end.otl"] expect(tokens[3]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(tokens[4]).toEqual value: " ", scopes: ["source.otl"] expect(tokens[5]).toEqual value: "2012-12-21", scopes: ["source.otl", "constant.other.date.otl"] lines = grammar.tokenizeLines """ multiline: - 2001-01-01 2001-01-01 """ expect(lines[1][3]).toEqual value: "2001-01-01", scopes: ["source.otl", "constant.other.date.otl"] expect(lines[2][1]).toEqual value: "2001-01-01", scopes: ["source.otl", "constant.other.date.otl"] {tokens} = grammar.tokenizeLine "- 2001-01-01" expect(tokens[0]).toEqual value: "-", scopes: ["source.otl", "punctuation.definition.entry.otl"] expect(tokens[1]).toEqual value: " ", scopes: ["source.otl"] expect(tokens[2]).toEqual value: "2001-01-01", scopes: ["source.otl", "constant.other.date.otl"] {tokens} = grammar.tokenizeLine "- 07-04-1776" expect(tokens[0]).toEqual value: "-", scopes: ["source.otl", "punctuation.definition.entry.otl"] expect(tokens[1]).toEqual value: " ", scopes: ["source.otl"] expect(tokens[2]).toEqual value: "07-04-1776", scopes: ["source.otl", "string.unquoted.otl"] {tokens} = grammar.tokenizeLine "- nope 2001-01-01" expect(tokens[0]).toEqual value: "-", scopes: ["source.otl", "punctuation.definition.entry.otl"] expect(tokens[1]).toEqual value: " ", scopes: ["source.otl"] expect(tokens[2]).toEqual value: "nope 2001-01-01", scopes: ["source.otl", "string.unquoted.otl"] {tokens} = grammar.tokenizeLine "- 2001-01-01 uh oh" expect(tokens[0]).toEqual value: "-", scopes: ["source.otl", "punctuation.definition.entry.otl"] expect(tokens[1]).toEqual value: " ", scopes: ["source.otl"] expect(tokens[2]).toEqual value: "2001-01-01 uh oh", scopes: ["source.otl", "string.unquoted.otl"] it "parses numbers", -> {tokens} = grammar.tokenizeLine "- meaning of life: 42" expect(tokens[0]).toEqual value: "-", scopes: ["source.otl", "punctuation.definition.entry.otl"] expect(tokens[1]).toEqual value: " ", scopes: ["source.otl"] expect(tokens[2]).toEqual value: "meaning of life", scopes: ["source.otl", "entity.name.tag.otl"] expect(tokens[3]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(tokens[4]).toEqual value: " ", scopes: ["source.otl"] expect(tokens[5]).toEqual value: "42", scopes: ["source.otl", "constant.numeric.otl"] {tokens} = grammar.tokenizeLine "hex: 0x726Fa" expect(tokens[0]).toEqual value: "hex", scopes: ["source.otl", "entity.name.tag.otl"] expect(tokens[1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(tokens[2]).toEqual value: " ", scopes: ["source.otl"] expect(tokens[3]).toEqual value: "0x726Fa", scopes: ["source.otl", "constant.numeric.otl"] {tokens} = grammar.tokenizeLine "- 0.7e-9001" expect(tokens[0]).toEqual value: "-", scopes: ["source.otl", "punctuation.definition.entry.otl"] expect(tokens[1]).toEqual value: " ", scopes: ["source.otl"] expect(tokens[2]).toEqual value: "0.7e-9001", scopes: ["source.otl", "constant.numeric.otl"] {tokens} = grammar.tokenizeLine "'over 9000': 9001" expect(tokens[0]).toEqual value: "'", scopes: ["source.otl", "string.quoted.single.otl", "punctuation.definition.string.begin.otl"] expect(tokens[1]).toEqual value: "over 9000", scopes: ["source.otl", "string.quoted.single.otl", "entity.name.tag.otl"] expect(tokens[2]).toEqual value: "'", scopes: ["source.otl", "string.quoted.single.otl", "punctuation.definition.string.end.otl"] expect(tokens[3]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(tokens[4]).toEqual value: " ", scopes: ["source.otl"] expect(tokens[5]).toEqual value: "9001", scopes: ["source.otl", "constant.numeric.otl"] lines = grammar.tokenizeLines """ multiline: - 3.14f 3.14f """ expect(lines[1][3]).toEqual value: "3.14f", scopes: ["source.otl", "constant.numeric.otl"] expect(lines[2][1]).toEqual value: "3.14f", scopes: ["source.otl", "constant.numeric.otl"] {tokens} = grammar.tokenizeLine "- pi 3.14" expect(tokens[0]).toEqual value: "-", scopes: ["source.otl", "punctuation.definition.entry.otl"] expect(tokens[1]).toEqual value: " ", scopes: ["source.otl"] expect(tokens[2]).toEqual value: "pi 3.14", scopes: ["source.otl", "string.unquoted.otl"] {tokens} = grammar.tokenizeLine "- 3.14 uh oh" expect(tokens[0]).toEqual value: "-", scopes: ["source.otl", "punctuation.definition.entry.otl"] expect(tokens[1]).toEqual value: " ", scopes: ["source.otl"] expect(tokens[2]).toEqual value: "3.14 uh oh", scopes: ["source.otl", "string.unquoted.otl"] describe "variables", -> it "tokenizes them", -> {tokens} = grammar.tokenizeLine "&variable" expect(tokens[0]).toEqual value: "&", scopes: ["source.otl", "variable.other.otl", "punctuation.definition.variable.otl"] expect(tokens[1]).toEqual value: "variable", scopes: ["source.otl", "variable.other.otl"] {tokens} = grammar.tokenizeLine "*variable" expect(tokens[0]).toEqual value: "*", scopes: ["source.otl", "variable.other.otl", "punctuation.definition.variable.otl"] expect(tokens[1]).toEqual value: "variable", scopes: ["source.otl", "variable.other.otl"] {tokens} = grammar.tokenizeLine "&v3ryc001" expect(tokens[0]).toEqual value: "&", scopes: ["source.otl", "variable.other.otl", "punctuation.definition.variable.otl"] expect(tokens[1]).toEqual value: "v3ryc001", scopes: ["source.otl", "variable.other.otl"] {tokens} = grammar.tokenizeLine "& variable" expect(tokens[0]).toEqual value: "& variable", scopes: ["source.otl", "string.unquoted.otl"] {tokens} = grammar.tokenizeLine "&variable hey" expect(tokens[0]).toEqual value: "&variable hey", scopes: ["source.otl", "string.unquoted.otl"] describe "constants", -> it "tokenizes true, false, and null as constants", -> {tokens} = grammar.tokenizeLine "key: true" expect(tokens[3]).toEqual value: "true", scopes: ["source.otl", "constant.language.otl"] {tokens} = grammar.tokenizeLine "key: false" expect(tokens[3]).toEqual value: "false", scopes: ["source.otl", "constant.language.otl"] {tokens} = grammar.tokenizeLine "key: null" expect(tokens[3]).toEqual value: "null", scopes: ["source.otl", "constant.language.otl"] {tokens} = grammar.tokenizeLine "key: True" expect(tokens[3]).toEqual value: "True", scopes: ["source.otl", "constant.language.otl"] {tokens} = grammar.tokenizeLine "key: False" expect(tokens[3]).toEqual value: "False", scopes: ["source.otl", "constant.language.otl"] {tokens} = grammar.tokenizeLine "key: Null" expect(tokens[3]).toEqual value: "Null", scopes: ["source.otl", "constant.language.otl"] {tokens} = grammar.tokenizeLine "key: TRUE" expect(tokens[3]).toEqual value: "TRUE", scopes: ["source.otl", "constant.language.otl"] {tokens} = grammar.tokenizeLine "key: FALSE" expect(tokens[3]).toEqual value: "FALSE", scopes: ["source.otl", "constant.language.otl"] {tokens} = grammar.tokenizeLine "key: NULL" expect(tokens[3]).toEqual value: "NULL", scopes: ["source.otl", "constant.language.otl"] {tokens} = grammar.tokenizeLine "key: ~" expect(tokens[3]).toEqual value: "~", scopes: ["source.otl", "constant.language.otl"] {tokens} = grammar.tokenizeLine "key: true$" expect(tokens[3]).toEqual value: "true$", scopes: ["source.otl", "string.unquoted.otl"] {tokens} = grammar.tokenizeLine "key: true false" expect(tokens[3]).toEqual value: "true false", scopes: ["source.otl", "string.unquoted.otl"] it "does not tokenize keys as constants", -> {tokens} = grammar.tokenizeLine "true: something" expect(tokens[0]).toEqual value: "true", scopes: ["source.otl", "entity.name.tag.otl"] describe "structures", -> it "tokenizes directives end markers", -> {tokens} = grammar.tokenizeLine "---" expect(tokens[0]).toEqual value: "---", scopes: ["source.otl", "punctuation.definition.directives.end.otl"] {tokens} = grammar.tokenizeLine " ---" expect(tokens[1]).not.toEqual value: "---", scopes: ["source.otl", "punctuation.definition.directives.end.otl"] it "tokenizes document end markers", -> {tokens} = grammar.tokenizeLine "..." expect(tokens[0]).toEqual value: "...", scopes: ["source.otl", "punctuation.definition.document.end.otl"] it "tokenizes structures in an actual YAML document", -> lines = grammar.tokenizeLines """ --- time: 20:03:20 player: <NAME> action: strike (miss) ... --- time: 20:03:47 player: <NAME> action: grand slam ... """ expect(lines[0][0]).toEqual value: "---", scopes: ["source.otl", "punctuation.definition.directives.end.otl"] expect(lines[4][0]).toEqual value: "...", scopes: ["source.otl", "punctuation.definition.document.end.otl"] expect(lines[5][0]).toEqual value: "---", scopes: ["source.otl", "punctuation.definition.directives.end.otl"] expect(lines[9][0]).toEqual value: "...", scopes: ["source.otl", "punctuation.definition.document.end.otl"] describe "tabs", -> it "marks them as invalid", -> {tokens} = grammar.tokenizeLine "\t\ttabs:" expect(tokens[0]).toEqual value: '\t\t', scopes: ['source.otl', 'invalid.illegal.whitespace.otl']
true
describe "YAML grammar", -> grammar = null beforeEach -> waitsForPromise -> atom.packages.activatePackage("language-otl") runs -> grammar = atom.grammars.grammarForScopeName('source.otl') it "parses the grammar", -> expect(grammar).toBeTruthy() expect(grammar.scopeName).toBe "source.otl" it "selects the grammar for cloud config files", -> waitsForPromise -> atom.workspace.open('cloud.config') runs -> expect(atom.workspace.getActiveTextEditor().getGrammar()).toBe grammar describe "strings", -> describe "double quoted", -> it "parses escaped quotes", -> {tokens} = grammar.tokenizeLine("\"I am \\\"escaped\\\"\"") expect(tokens[0]).toEqual value: "\"", scopes: ["source.otl", "string.quoted.double.otl", "punctuation.definition.string.begin.otl"] expect(tokens[1]).toEqual value: "I am ", scopes: ["source.otl", "string.quoted.double.otl"] expect(tokens[2]).toEqual value: "\\\"", scopes: ["source.otl", "string.quoted.double.otl", "constant.character.escape.otl"] expect(tokens[3]).toEqual value: "escaped", scopes: ["source.otl", "string.quoted.double.otl"] expect(tokens[4]).toEqual value: "\\\"", scopes: ["source.otl", "string.quoted.double.otl", "constant.character.escape.otl"] expect(tokens[5]).toEqual value: "\"", scopes: ["source.otl", "string.quoted.double.otl", "punctuation.definition.string.end.otl"] {tokens} = grammar.tokenizeLine("key: \"I am \\\"escaped\\\"\"") expect(tokens[0]).toEqual value: "key", scopes: ["source.otl", "entity.name.tag.otl"] expect(tokens[1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(tokens[2]).toEqual value: " ", scopes: ["source.otl"] expect(tokens[3]).toEqual value: "\"", scopes: ["source.otl", "string.quoted.double.otl", "punctuation.definition.string.begin.otl"] expect(tokens[4]).toEqual value: "I am ", scopes: ["source.otl", "string.quoted.double.otl"] expect(tokens[5]).toEqual value: "\\\"", scopes: ["source.otl", "string.quoted.double.otl", "constant.character.escape.otl"] expect(tokens[6]).toEqual value: "escaped", scopes: ["source.otl", "string.quoted.double.otl"] expect(tokens[7]).toEqual value: "\\\"", scopes: ["source.otl", "string.quoted.double.otl", "constant.character.escape.otl"] expect(tokens[8]).toEqual value: "\"", scopes: ["source.otl", "string.quoted.double.otl", "punctuation.definition.string.end.otl"] it "parses other escape sequences", -> {tokens} = grammar.tokenizeLine("\"I am \\escaped\"") expect(tokens[0]).toEqual value: "\"", scopes: ["source.otl", "string.quoted.double.otl", "punctuation.definition.string.begin.otl"] expect(tokens[1]).toEqual value: "I am ", scopes: ["source.otl", "string.quoted.double.otl"] expect(tokens[2]).toEqual value: "\\e", scopes: ["source.otl", "string.quoted.double.otl", "constant.character.escape.otl"] expect(tokens[3]).toEqual value: "scaped", scopes: ["source.otl", "string.quoted.double.otl"] expect(tokens[4]).toEqual value: "\"", scopes: ["source.otl", "string.quoted.double.otl", "punctuation.definition.string.end.otl"] {tokens} = grammar.tokenizeLine('"\\uAb123"') expect(tokens[1]).toEqual value: "\\uAb12", scopes: ["source.otl", "string.quoted.double.otl", "constant.character.escape.otl"] expect(tokens[2]).toEqual value: "3", scopes: ["source.otl", "string.quoted.double.otl"] {tokens} = grammar.tokenizeLine('"\\UAb123Fe90"') expect(tokens[1]).toEqual value: "\\UAb123Fe9", scopes: ["source.otl", "string.quoted.double.otl", "constant.character.escape.otl"] expect(tokens[2]).toEqual value: "0", scopes: ["source.otl", "string.quoted.double.otl"] {tokens} = grammar.tokenizeLine('"\\x200"') expect(tokens[1]).toEqual value: "\\x20", scopes: ["source.otl", "string.quoted.double.otl", "constant.character.escape.otl"] expect(tokens[2]).toEqual value: "0", scopes: ["source.otl", "string.quoted.double.otl"] {tokens} = grammar.tokenizeLine('"\\ hi"') expect(tokens[1]).toEqual value: "\\ ", scopes: ["source.otl", "string.quoted.double.otl", "constant.character.escape.otl"] expect(tokens[2]).toEqual value: "hi", scopes: ["source.otl", "string.quoted.double.otl"] it "parses invalid escape sequences", -> {tokens} = grammar.tokenizeLine('"\\uqerww"') expect(tokens[1]).toEqual value: "\\uqerw", scopes: ["source.otl", "string.quoted.double.otl", "invalid.illegal.escape.otl"] expect(tokens[2]).toEqual value: "w", scopes: ["source.otl", "string.quoted.double.otl"] {tokens} = grammar.tokenizeLine('"\\U0123456GF"') expect(tokens[1]).toEqual value: "\\U0123456G", scopes: ["source.otl", "string.quoted.double.otl", "invalid.illegal.escape.otl"] expect(tokens[2]).toEqual value: "F", scopes: ["source.otl", "string.quoted.double.otl"] {tokens} = grammar.tokenizeLine('"\\x2Q1"') expect(tokens[1]).toEqual value: "\\x2Q", scopes: ["source.otl", "string.quoted.double.otl", "invalid.illegal.escape.otl"] expect(tokens[2]).toEqual value: "1", scopes: ["source.otl", "string.quoted.double.otl"] {tokens} = grammar.tokenizeLine('"\\c3"') expect(tokens[1]).toEqual value: "\\c", scopes: ["source.otl", "string.quoted.double.otl", "invalid.illegal.escape.otl"] expect(tokens[2]).toEqual value: "3", scopes: ["source.otl", "string.quoted.double.otl"] describe "single quoted", -> it "parses escaped single quotes", -> {tokens} = grammar.tokenizeLine("'I am ''escaped'''") expect(tokens[0]).toEqual value: "'", scopes: ["source.otl", "string.quoted.single.otl", "punctuation.definition.string.begin.otl"] expect(tokens[1]).toEqual value: "I am ", scopes: ["source.otl", "string.quoted.single.otl"] expect(tokens[2]).toEqual value: "''", scopes: ["source.otl", "string.quoted.single.otl", "constant.character.escape.otl"] expect(tokens[3]).toEqual value: "escaped", scopes: ["source.otl", "string.quoted.single.otl"] expect(tokens[4]).toEqual value: "''", scopes: ["source.otl", "string.quoted.single.otl", "constant.character.escape.otl"] expect(tokens[5]).toEqual value: "'", scopes: ["source.otl", "string.quoted.single.otl", "punctuation.definition.string.end.otl"] {tokens} = grammar.tokenizeLine("key: 'I am ''escaped'''") expect(tokens[0]).toEqual value: "key", scopes: ["source.otl", "entity.name.tag.otl"] expect(tokens[1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(tokens[2]).toEqual value: " ", scopes: ["source.otl"] expect(tokens[3]).toEqual value: "'", scopes: ["source.otl", "string.quoted.single.otl", "punctuation.definition.string.begin.otl"] expect(tokens[4]).toEqual value: "I am ", scopes: ["source.otl", "string.quoted.single.otl"] expect(tokens[5]).toEqual value: "''", scopes: ["source.otl", "string.quoted.single.otl", "constant.character.escape.otl"] expect(tokens[6]).toEqual value: "escaped", scopes: ["source.otl", "string.quoted.single.otl"] expect(tokens[7]).toEqual value: "''", scopes: ["source.otl", "string.quoted.single.otl", "constant.character.escape.otl"] expect(tokens[8]).toEqual value: "'", scopes: ["source.otl", "string.quoted.single.otl", "punctuation.definition.string.end.otl"] it "does not recognize backslashes as escape characters", -> {tokens} = grammar.tokenizeLine("'I am not \\escaped'") expect(tokens[0]).toEqual value: "'", scopes: ["source.otl", "string.quoted.single.otl", "punctuation.definition.string.begin.otl"] expect(tokens[1]).toEqual value: "I am not \\escaped", scopes: ["source.otl", "string.quoted.single.otl"] expect(tokens[2]).toEqual value: "'", scopes: ["source.otl", "string.quoted.single.otl", "punctuation.definition.string.end.otl"] describe "text blocks", -> it "parses simple content", -> lines = grammar.tokenizeLines """ key: | content here second line """ expect(lines[0][0]).toEqual value: "key", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[0][1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[1][0]).toEqual value: " content here", scopes: ["source.otl", "string.unquoted.block.otl"] expect(lines[2][0]).toEqual value: " second line", scopes: ["source.otl", "string.unquoted.block.otl"] it "parses content with empty lines", -> lines = grammar.tokenizeLines """ key: | content here second line """ expect(lines[0][0]).toEqual value: "key", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[0][1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[1][0]).toEqual value: " content here", scopes: ["source.otl", "string.unquoted.block.otl"] expect(lines[2][0]).toEqual value: "", scopes: ["source.otl", "string.unquoted.block.otl"] expect(lines[3][0]).toEqual value: " second line", scopes: ["source.otl", "string.unquoted.block.otl"] it "parses keys with decimals", -> lines = grammar.tokenizeLines """ 2.0: | content here second line """ expect(lines[0][0]).toEqual value: "2.0", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[0][1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[1][0]).toEqual value: " content here", scopes: ["source.otl", "string.unquoted.block.otl"] expect(lines[2][0]).toEqual value: " second line", scopes: ["source.otl", "string.unquoted.block.otl"] it "parses keys with quotes", -> lines = grammar.tokenizeLines """ single'quotes': | content here double"quotes": > content here """ expect(lines[0][0]).toEqual value: "single'quotes'", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[0][1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[1][0]).toEqual value: " content here", scopes: ["source.otl", "string.unquoted.block.otl"] expect(lines[2][0]).toEqual value: "double\"quotes\"", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[2][1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[3][0]).toEqual value: " content here", scopes: ["source.otl", "string.unquoted.block.otl"] it "parses keys with quotes in sequences", -> lines = grammar.tokenizeLines """ - single'quotes': | content here - double"quotes": > content here """ expect(lines[0][0]).toEqual value: "-", scopes: ["source.otl", "punctuation.definition.entry.otl"] expect(lines[0][2]).toEqual value: "single'quotes'", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[0][3]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[1][0]).toEqual value: " content here", scopes: ["source.otl", "string.unquoted.block.otl"] expect(lines[2][0]).toEqual value: "-", scopes: ["source.otl", "punctuation.definition.entry.otl"] expect(lines[2][2]).toEqual value: "double\"quotes\"", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[2][3]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[3][0]).toEqual value: " content here", scopes: ["source.otl", "string.unquoted.block.otl"] it "parses keys with quotes in sequences even when not using | or >", -> lines = grammar.tokenizeLines """ - single'quotes': content here - double"quotes": content here """ expect(lines[0][0]).toEqual value: "-", scopes: ["source.otl", "punctuation.definition.entry.otl"] expect(lines[0][2]).toEqual value: "single'quotes'", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[0][3]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[1][1]).toEqual value: "content here", scopes: ["source.otl", "string.unquoted.otl"] expect(lines[2][0]).toEqual value: "-", scopes: ["source.otl", "punctuation.definition.entry.otl"] expect(lines[2][2]).toEqual value: "double\"quotes\"", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[2][3]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[3][1]).toEqual value: "content here", scopes: ["source.otl", "string.unquoted.otl"] it "parses keys with spaces", -> lines = grammar.tokenizeLines """ a space: | content here more than one space: > content here space after : | content here """ expect(lines[0][0]).toEqual value: "a space", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[0][1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[1][0]).toEqual value: " content here", scopes: ["source.otl", "string.unquoted.block.otl"] expect(lines[2][0]).toEqual value: "more than one space", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[2][1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[3][0]).toEqual value: " content here", scopes: ["source.otl", "string.unquoted.block.otl"] expect(lines[4][0]).toEqual value: "space after", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[4][2]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[5][0]).toEqual value: " content here", scopes: ["source.otl", "string.unquoted.block.otl"] it "parses keys with spaces in sequences", -> lines = grammar.tokenizeLines """ - a space: | content here - more than one space: > content here - space after : | content here """ expect(lines[0][0]).toEqual value: "-", scopes: ["source.otl", "punctuation.definition.entry.otl"] expect(lines[0][2]).toEqual value: "a space", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[0][3]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[1][0]).toEqual value: " content here", scopes: ["source.otl", "string.unquoted.block.otl"] expect(lines[2][0]).toEqual value: "-", scopes: ["source.otl", "punctuation.definition.entry.otl"] expect(lines[2][2]).toEqual value: "more than one space", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[2][3]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[3][0]).toEqual value: " content here", scopes: ["source.otl", "string.unquoted.block.otl"] expect(lines[4][0]).toEqual value: "-", scopes: ["source.otl", "punctuation.definition.entry.otl"] expect(lines[4][2]).toEqual value: "space after", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[4][4]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[5][0]).toEqual value: " content here", scopes: ["source.otl", "string.unquoted.block.otl"] it "properly parses through pound signs in blocks", -> lines = grammar.tokenizeLines """ key: | # this is not a legit comment unquoted block ### this is just a markdown header another unquoted block """ expect(lines[0][0]).toEqual value: "key", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[0][1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[1][0]).toEqual value: " # this is not a legit comment", scopes: ["source.otl", "string.unquoted.block.otl"] expect(lines[2][0]).toEqual value: " unquoted block", scopes: ["source.otl", "string.unquoted.block.otl"] expect(lines[3][0]).toEqual value: " ### this is just a markdown header", scopes: ["source.otl", "string.unquoted.block.otl"] expect(lines[4][0]).toEqual value: " another unquoted block", scopes: ["source.otl", "string.unquoted.block.otl"] it "parses keys following blocks in sequences", -> lines = grammar.tokenizeLines """ - textblock: > multiline text key with spaces: following text """ expect(lines[0][0]).toEqual value: "-", scopes: ["source.otl", "punctuation.definition.entry.otl"] expect(lines[0][2]).toEqual value: "textblock", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[0][3]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[1][0]).toEqual value: " multiline", scopes: ["source.otl", "string.unquoted.block.otl"] expect(lines[2][0]).toEqual value: " text", scopes: ["source.otl", "string.unquoted.block.otl"] expect(lines[3][0]).toEqual value: " ", scopes: ["source.otl"] expect(lines[3][1]).toEqual value: "key with spaces", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[3][2]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[3][3]).toEqual value: " ", scopes: ["source.otl"] expect(lines[3][4]).toEqual value: "following text", scopes: ["source.otl", "string.unquoted.otl"] it "parses content even when not using | or >", -> lines = grammar.tokenizeLines """ - textblock: multiline text key: following text """ expect(lines[0][0]).toEqual value: "-", scopes: ["source.otl", "punctuation.definition.entry.otl"] expect(lines[0][2]).toEqual value: "textblock", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[0][3]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[1][1]).toEqual value: "multiline", scopes: ["source.otl", "string.unquoted.otl"] expect(lines[2][1]).toEqual value: "text", scopes: ["source.otl", "string.unquoted.otl"] expect(lines[3][0]).toEqual value: " ", scopes: ["source.otl"] expect(lines[3][1]).toEqual value: "key", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[3][2]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[3][3]).toEqual value: " ", scopes: ["source.otl"] expect(lines[3][4]).toEqual value: "following text", scopes: ["source.otl", "string.unquoted.otl"] describe "parses content with unindented empty lines", -> it "ending the content", -> lines = grammar.tokenizeLines """ key: | content here second line """ expect(lines[0][0]).toEqual value: "key", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[0][1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[0][3]).toEqual value: "|", scopes: ["source.otl", "string.unquoted.block.otl"] expect(lines[1][0]).toEqual value: " content here", scopes: ["source.otl", "string.unquoted.block.otl"] expect(lines[2][0]).toEqual value: "", scopes: ["source.otl", "string.unquoted.block.otl"] expect(lines[3][0]).toEqual value: " second line", scopes: ["source.otl", "string.unquoted.block.otl"] it "ending with new element", -> lines = grammar.tokenizeLines """ key: | content here second line other: hi """ expect(lines[0][0]).toEqual value: "key", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[0][1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[0][3]).toEqual value: "|", scopes: ["source.otl", "string.unquoted.block.otl"] expect(lines[1][0]).toEqual value: " content here", scopes: ["source.otl", "string.unquoted.block.otl"] expect(lines[2][0]).toEqual value: "", scopes: ["source.otl", "string.unquoted.block.otl"] expect(lines[3][0]).toEqual value: " second line", scopes: ["source.otl", "string.unquoted.block.otl"] expect(lines[4][0]).toEqual value: "other", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[4][1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[4][2]).toEqual value: " ", scopes: ["source.otl"] expect(lines[4][3]).toEqual value: "hi", scopes: ["source.otl", "string.unquoted.otl"] it "ending with new element, part of list", -> lines = grammar.tokenizeLines """ - key: | content here second line - other: hi """ expect(lines[0][0]).toEqual value: "-", scopes: ["source.otl", "punctuation.definition.entry.otl"] expect(lines[0][2]).toEqual value: "key", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[0][3]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[0][5]).toEqual value: "|", scopes: ["source.otl", "string.unquoted.block.otl"] expect(lines[1][0]).toEqual value: " content here", scopes: ["source.otl", "string.unquoted.block.otl"] expect(lines[2][0]).toEqual value: "", scopes: ["source.otl", "string.unquoted.block.otl"] expect(lines[3][0]).toEqual value: " second line", scopes: ["source.otl", "string.unquoted.block.otl"] expect(lines[4][0]).toEqual value: "-", scopes: ["source.otl", "punctuation.definition.entry.otl"] expect(lines[4][1]).toEqual value: " ", scopes: ["source.otl"] expect(lines[4][2]).toEqual value: "other", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[4][3]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[4][4]).toEqual value: " ", scopes: ["source.otl"] expect(lines[4][5]).toEqual value: "hi", scopes: ["source.otl", "string.unquoted.otl"] it "ending with twice unindented new element", -> lines = grammar.tokenizeLines """ root: key: | content here second line other: hi """ expect(lines[1][1]).toEqual value: "key", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[1][2]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[1][4]).toEqual value: "|", scopes: ["source.otl", "string.unquoted.block.otl"] expect(lines[2][0]).toEqual value: " content here", scopes: ["source.otl", "string.unquoted.block.otl"] expect(lines[3][0]).toEqual value: "", scopes: ["source.otl", "string.unquoted.block.otl"] expect(lines[4][0]).toEqual value: " second line", scopes: ["source.otl", "string.unquoted.block.otl"] expect(lines[5][0]).toEqual value: "other", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[5][1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[5][2]).toEqual value: " ", scopes: ["source.otl"] expect(lines[5][3]).toEqual value: "hi", scopes: ["source.otl", "string.unquoted.otl"] it "ending with an indented comment", -> lines = grammar.tokenizeLines """ root: key: | content here second line # hi """ expect(lines[1][1]).toEqual value: "key", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[1][2]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[1][4]).toEqual value: "|", scopes: ["source.otl", "string.unquoted.block.otl"] expect(lines[2][0]).toEqual value: " content here", scopes: ["source.otl", "string.unquoted.block.otl"] expect(lines[3][0]).toEqual value: "", scopes: ["source.otl", "string.unquoted.block.otl"] expect(lines[4][0]).toEqual value: " second line", scopes: ["source.otl", "string.unquoted.block.otl"] expect(lines[5][0]).toEqual value: " ", scopes: ["source.otl"] expect(lines[5][1]).toEqual value: "#", scopes: ["source.otl", "comment.line.number-sign.otl", "punctuation.definition.comment.otl"] expect(lines[5][2]).toEqual value: " hi", scopes: ["source.otl", "comment.line.number-sign.otl"] it "does not confuse keys and strings", -> {tokens} = grammar.tokenizeLine("- 'Section 2.4: 3, 6abc, 12ab, 30, 32a'") expect(tokens[0]).toEqual value: "-", scopes: ["source.otl", "punctuation.definition.entry.otl"] expect(tokens[2]).toEqual value: "'", scopes: ["source.otl", "string.quoted.single.otl", "punctuation.definition.string.begin.otl"] expect(tokens[3]).toEqual value: "Section 2.4: 3, 6abc, 12ab, 30, 32a", scopes: ["source.otl", "string.quoted.single.otl"] it "parses the non-specific tag indicator before values", -> {tokens} = grammar.tokenizeLine("key: ! 'hi'") expect(tokens[0]).toEqual value: "key", scopes: ["source.otl", "entity.name.tag.otl"] expect(tokens[1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(tokens[2]).toEqual value: " ", scopes: ["source.otl"] expect(tokens[3]).toEqual value: "!", scopes: ["source.otl", "punctuation.definition.tag.non-specific.otl"] expect(tokens[5]).toEqual value: "'", scopes: ["source.otl", "string.quoted.single.otl", "punctuation.definition.string.begin.otl"] expect(tokens[6]).toEqual value: "hi", scopes: ["source.otl", "string.quoted.single.otl"] expect(tokens[7]).toEqual value: "'", scopes: ["source.otl", "string.quoted.single.otl", "punctuation.definition.string.end.otl"] it "parses nested keys", -> lines = grammar.tokenizeLines """ first: second: third: 3 fourth: "4th" """ expect(lines[0][0]).toEqual value: "first", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[0][1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[1][0]).toEqual value: " ", scopes: ["source.otl"] expect(lines[1][1]).toEqual value: "second", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[1][2]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[2][0]).toEqual value: " ", scopes: ["source.otl"] expect(lines[2][1]).toEqual value: "third", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[2][2]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[2][3]).toEqual value: " ", scopes: ["source.otl"] expect(lines[2][4]).toEqual value: "3", scopes: ["source.otl", "constant.numeric.otl"] expect(lines[3][0]).toEqual value: " ", scopes: ["source.otl"] expect(lines[3][1]).toEqual value: "fourth", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[3][2]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[3][3]).toEqual value: " ", scopes: ["source.otl"] expect(lines[3][4]).toEqual value: "\"", scopes: ["source.otl", "string.quoted.double.otl", "punctuation.definition.string.begin.otl"] expect(lines[3][5]).toEqual value: "4th", scopes: ["source.otl", "string.quoted.double.otl"] expect(lines[3][6]).toEqual value: "\"", scopes: ["source.otl", "string.quoted.double.otl", "punctuation.definition.string.end.otl"] it "parses keys and values", -> lines = grammar.tokenizeLines """ first: 1st second: 2nd third: th{ree} fourth:invalid """ expect(lines[0][0]).toEqual value: "first", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[0][1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[0][2]).toEqual value: " ", scopes: ["source.otl"] expect(lines[0][3]).toEqual value: "1st", scopes: ["source.otl", "string.unquoted.otl"] expect(lines[1][0]).toEqual value: "second", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[1][1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[1][2]).toEqual value: " ", scopes: ["source.otl"] expect(lines[1][3]).toEqual value: "2nd", scopes: ["source.otl", "string.unquoted.otl"] expect(lines[2][0]).toEqual value: "third", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[2][1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[2][2]).toEqual value: " ", scopes: ["source.otl"] expect(lines[2][3]).toEqual value: "th{ree}", scopes: ["source.otl", "string.unquoted.otl"] expect(lines[3][0]).toEqual value: "fourth:invalid", scopes: ["source.otl", "string.unquoted.otl"] it "parses quoted keys", -> lines = grammar.tokenizeLines """ 'G@role:deployer': - deployer """ expect(lines[0][0]).toEqual value: "'", scopes: ["source.otl", "string.quoted.single.otl", "punctuation.definition.string.begin.otl"] expect(lines[0][1]).toEqual value: "G@role:deployer", scopes: ["source.otl", "string.quoted.single.otl", "entity.name.tag.otl"] expect(lines[0][2]).toEqual value: "'", scopes: ["source.otl", "string.quoted.single.otl", "punctuation.definition.string.end.otl"] expect(lines[0][3]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] lines = grammar.tokenizeLines """ "G@role:deployer": - deployer """ expect(lines[0][0]).toEqual value: '"', scopes: ["source.otl", "string.quoted.double.otl", "punctuation.definition.string.begin.otl"] expect(lines[0][1]).toEqual value: "G@role:deployer", scopes: ["source.otl", "string.quoted.double.otl", "entity.name.tag.otl"] expect(lines[0][2]).toEqual value: '"', scopes: ["source.otl", "string.quoted.double.otl", "punctuation.definition.string.end.otl"] expect(lines[0][3]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] it "parses comments at the beginning of lines", -> lines = grammar.tokenizeLines """ # first: 1 # second ## """ expect(lines[0][0]).toEqual value: "#", scopes: ["source.otl", "comment.line.number-sign.otl", "punctuation.definition.comment.otl"] expect(lines[0][1]).toEqual value: " first: 1", scopes: ["source.otl", "comment.line.number-sign.otl"] expect(lines[1][0]).toEqual value: " ", scopes: ["source.otl"] expect(lines[1][1]).toEqual value: "#", scopes: ["source.otl", "comment.line.number-sign.otl", "punctuation.definition.comment.otl"] expect(lines[1][2]).toEqual value: " second", scopes: ["source.otl", "comment.line.number-sign.otl"] expect(lines[2][0]).toEqual value: "#", scopes: ["source.otl", "comment.line.number-sign.otl", "punctuation.definition.comment.otl"] expect(lines[2][1]).toEqual value: "#", scopes: ["source.otl", "comment.line.number-sign.otl"] it "parses comments at the end of lines", -> lines = grammar.tokenizeLines """ first: 1 # foo second: 2nd #bar third: "3" fourth: four# """ expect(lines[0][0]).toEqual value: "first", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[0][1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[0][3]).toEqual value: "1", scopes: ["source.otl", "constant.numeric.otl"] expect(lines[0][5]).toEqual value: "#", scopes: ["source.otl", "comment.line.number-sign.otl", "punctuation.definition.comment.otl"] expect(lines[0][6]).toEqual value: " foo", scopes: ["source.otl", "comment.line.number-sign.otl"] expect(lines[1][0]).toEqual value: "second", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[1][1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[1][2]).toEqual value: " ", scopes: ["source.otl"] expect(lines[1][3]).toEqual value: "2nd ", scopes: ["source.otl", "string.unquoted.otl"] expect(lines[1][4]).toEqual value: "#", scopes: ["source.otl", "comment.line.number-sign.otl", "punctuation.definition.comment.otl"] expect(lines[1][5]).toEqual value: "bar", scopes: ["source.otl", "comment.line.number-sign.otl"] expect(lines[2][0]).toEqual value: "third", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[2][1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[2][2]).toEqual value: " ", scopes: ["source.otl"] expect(lines[2][3]).toEqual value: "\"", scopes: ["source.otl", "string.quoted.double.otl", "punctuation.definition.string.begin.otl"] expect(lines[2][4]).toEqual value: "3", scopes: ["source.otl", "string.quoted.double.otl"] expect(lines[2][5]).toEqual value: "\"", scopes: ["source.otl", "string.quoted.double.otl", "punctuation.definition.string.end.otl"] expect(lines[3][0]).toEqual value: "fourth", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[3][1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[3][2]).toEqual value: " ", scopes: ["source.otl"] expect(lines[3][3]).toEqual value: "four#", scopes: ["source.otl", "string.unquoted.otl"] lines = grammar.tokenizeLines """ multiline: # comment! This should still be a string # another comment! Ditto # Guess what this is String # comment """ expect(lines[0][3]).toEqual value: "#", scopes: ["source.otl", "comment.line.number-sign.otl", "punctuation.definition.comment.otl"] expect(lines[1][1]).toEqual value: "This should still be a string ", scopes: ["source.otl", "string.unquoted.otl"] expect(lines[1][2]).toEqual value: "#", scopes: ["source.otl", "comment.line.number-sign.otl", "punctuation.definition.comment.otl"] expect(lines[2][1]).toEqual value: "Ditto", scopes: ["source.otl", "string.unquoted.otl"] expect(lines[3][1]).toEqual value: "#", scopes: ["source.otl", "comment.line.number-sign.otl", "punctuation.definition.comment.otl"] expect(lines[4][1]).toEqual value: "String", scopes: ["source.otl", "string.unquoted.otl"] expect(lines[5][0]).toEqual value: "#", scopes: ["source.otl", "comment.line.number-sign.otl", "punctuation.definition.comment.otl"] it "does not confuse keys and comments", -> {tokens} = grammar.tokenizeLine("- Entry 2 # This colon breaks syntax highlighting: see?") expect(tokens[0]).toEqual value: "-", scopes: ["source.otl", "punctuation.definition.entry.otl"] expect(tokens[3]).toEqual value: "#", scopes: ["source.otl", "comment.line.number-sign.otl", "punctuation.definition.comment.otl"] expect(tokens[4]).toEqual value: " This colon breaks syntax highlighting: see?", scopes: ["source.otl", "comment.line.number-sign.otl"] it "does not confuse keys and unquoted strings", -> {tokens} = grammar.tokenizeLine("- { role: common }") expect(tokens[0]).toEqual value: "-", scopes: ["source.otl", "punctuation.definition.entry.otl"] expect(tokens[2]).toEqual value: "{ role: common }", scopes: ["source.otl", "string.unquoted.otl"] it "parses colons in key names", -> lines = grammar.tokenizeLines """ colon::colon: 1 colon::colon: 2nd colon::colon: "3" colon: "this is another : colon" colon: "this is another :colon" """ expect(lines[0][0]).toEqual value: "colon::colon", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[0][1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[0][3]).toEqual value: "1", scopes: ["source.otl", "constant.numeric.otl"] expect(lines[1][0]).toEqual value: "colon::colon", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[1][1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[1][2]).toEqual value: " ", scopes: ["source.otl"] expect(lines[1][3]).toEqual value: "2nd", scopes: ["source.otl", "string.unquoted.otl"] expect(lines[2][0]).toEqual value: "colon::colon", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[2][1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[2][2]).toEqual value: " ", scopes: ["source.otl"] expect(lines[2][3]).toEqual value: "\"", scopes: ["source.otl", "string.quoted.double.otl", "punctuation.definition.string.begin.otl"] expect(lines[2][4]).toEqual value: "3", scopes: ["source.otl", "string.quoted.double.otl"] expect(lines[2][5]).toEqual value: "\"", scopes: ["source.otl", "string.quoted.double.otl", "punctuation.definition.string.end.otl"] expect(lines[3][0]).toEqual value: "colon", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[3][1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[3][2]).toEqual value: " ", scopes: ["source.otl"] expect(lines[3][3]).toEqual value: "\"", scopes: ["source.otl", "string.quoted.double.otl", "punctuation.definition.string.begin.otl"] expect(lines[3][4]).toEqual value: "this is another : colon", scopes: ["source.otl", "string.quoted.double.otl"] expect(lines[3][5]).toEqual value: "\"", scopes: ["source.otl", "string.quoted.double.otl", "punctuation.definition.string.end.otl"] expect(lines[4][0]).toEqual value: "colon", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[4][1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[4][2]).toEqual value: " ", scopes: ["source.otl"] expect(lines[4][3]).toEqual value: "\"", scopes: ["source.otl", "string.quoted.double.otl", "punctuation.definition.string.begin.otl"] expect(lines[4][4]).toEqual value: "this is another :colon", scopes: ["source.otl", "string.quoted.double.otl"] expect(lines[4][5]).toEqual value: "\"", scopes: ["source.otl", "string.quoted.double.otl", "punctuation.definition.string.end.otl"] it "parses spaces in key names", -> lines = grammar.tokenizeLines """ spaced out: 1 more spaces: 2nd with quotes: "3" """ expect(lines[0][0]).toEqual value: "spaced out", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[0][1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[0][3]).toEqual value: "1", scopes: ["source.otl", "constant.numeric.otl"] expect(lines[1][0]).toEqual value: "more spaces", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[1][1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[1][2]).toEqual value: " ", scopes: ["source.otl"] expect(lines[1][3]).toEqual value: "2nd", scopes: ["source.otl", "string.unquoted.otl"] expect(lines[2][0]).toEqual value: "with quotes", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[2][1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[2][2]).toEqual value: " ", scopes: ["source.otl"] expect(lines[2][3]).toEqual value: "\"", scopes: ["source.otl", "string.quoted.double.otl", "punctuation.definition.string.begin.otl"] expect(lines[2][4]).toEqual value: "3", scopes: ["source.otl", "string.quoted.double.otl"] expect(lines[2][5]).toEqual value: "\"", scopes: ["source.otl", "string.quoted.double.otl", "punctuation.definition.string.end.otl"] it "parses quotes in unquoted key names", -> lines = grammar.tokenizeLines """ General Tso's Chicken: 1 PI:NAME:<NAME>END_PI "The PI:NAME:<NAME>END_PI" PI:NAME:<NAME>END_PI: 2nd possessives': "3" Conan "the Barbarian": '4' """ expect(lines[0][0]).toEqual value: "General Tso's Chicken", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[0][1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[0][3]).toEqual value: "1", scopes: ["source.otl", "constant.numeric.otl"] expect(lines[1][0]).toEqual value: "PI:NAME:<NAME>END_PI \"PI:NAME:<NAME>END_PI\" PI:NAME:<NAME>END_PI", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[1][1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[1][2]).toEqual value: " ", scopes: ["source.otl"] expect(lines[1][3]).toEqual value: "2nd", scopes: ["source.otl", "string.unquoted.otl"] expect(lines[2][0]).toEqual value: "possessives'", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[2][1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[2][2]).toEqual value: " ", scopes: ["source.otl"] expect(lines[2][3]).toEqual value: "\"", scopes: ["source.otl", "string.quoted.double.otl", "punctuation.definition.string.begin.otl"] expect(lines[2][4]).toEqual value: "3", scopes: ["source.otl", "string.quoted.double.otl"] expect(lines[2][5]).toEqual value: "\"", scopes: ["source.otl", "string.quoted.double.otl", "punctuation.definition.string.end.otl"] expect(lines[3][0]).toEqual value: "Conan \"the Barbarian\"", scopes: ["source.otl", "entity.name.tag.otl"] expect(lines[3][1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(lines[3][2]).toEqual value: " ", scopes: ["source.otl"] expect(lines[3][3]).toEqual value: "'", scopes: ["source.otl", "string.quoted.single.otl", "punctuation.definition.string.begin.otl"] expect(lines[3][4]).toEqual value: "4", scopes: ["source.otl", "string.quoted.single.otl"] expect(lines[3][5]).toEqual value: "'", scopes: ["source.otl", "string.quoted.single.otl", "punctuation.definition.string.end.otl"] it "parses the merge-key tag", -> {tokens} = grammar.tokenizeLine "<<: *variable" expect(tokens[0]).toEqual value: "<<", scopes: ["source.otl", "entity.name.tag.merge.otl"] expect(tokens[1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(tokens[2]).toEqual value: " ", scopes: ["source.otl"] expect(tokens[3]).toEqual value: "*", scopes: ["source.otl", "variable.other.otl", "punctuation.definition.variable.otl"] expect(tokens[4]).toEqual value: "variable", scopes: ["source.otl", "variable.other.otl"] {tokens} = grammar.tokenizeLine "<< : *variable" expect(tokens[0]).toEqual value: "<<", scopes: ["source.otl", "entity.name.tag.merge.otl"] expect(tokens[1]).toEqual value: " ", scopes: ["source.otl"] expect(tokens[2]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(tokens[3]).toEqual value: " ", scopes: ["source.otl"] expect(tokens[4]).toEqual value: "*", scopes: ["source.otl", "variable.other.otl", "punctuation.definition.variable.otl"] expect(tokens[5]).toEqual value: "variable", scopes: ["source.otl", "variable.other.otl"] {tokens} = grammar.tokenizeLine "<<:*variable" expect(tokens[0]).toEqual value: "<<:*variable", scopes: ["source.otl", "string.unquoted.otl"] it "parses local tags", -> {tokens} = grammar.tokenizeLine "multiline: !something >" expect(tokens[3]).toEqual value: "!", scopes: ["source.otl", "keyword.other.tag.local.otl", "punctuation.definition.tag.local.otl"] expect(tokens[4]).toEqual value: "something", scopes: ["source.otl", "keyword.other.tag.local.otl"] expect(tokens[6]).toEqual value: ">", scopes: ["source.otl", "string.unquoted.block.otl"] {tokens} = grammar.tokenizeLine "- !tag" expect(tokens[2]).toEqual value: "!", scopes: ["source.otl", "keyword.other.tag.local.otl", "punctuation.definition.tag.local.otl"] expect(tokens[3]).toEqual value: "tag", scopes: ["source.otl", "keyword.other.tag.local.otl"] {tokens} = grammar.tokenizeLine "- !" expect(tokens[0]).toEqual value: "- !", scopes: ["source.otl", "string.unquoted.otl"] {tokens} = grammar.tokenizeLine "- !!" expect(tokens[0]).toEqual value: "- !!", scopes: ["source.otl", "string.unquoted.otl"] it "parses the !!omap directive", -> {tokens} = grammar.tokenizeLine "hello: !!omap" expect(tokens[0]).toEqual value: "hello", scopes: ["source.otl", "entity.name.tag.otl"] expect(tokens[1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(tokens[2]).toEqual value: " ", scopes: ["source.otl"] expect(tokens[3]).toEqual value: "!!", scopes: ["source.otl", "keyword.other.omap.otl", "punctuation.definition.tag.omap.otl"] expect(tokens[4]).toEqual value: "omap", scopes: ["source.otl", "keyword.other.omap.otl"] {tokens} = grammar.tokenizeLine "- 'hello': !!omap" expect(tokens[0]).toEqual value: "-", scopes: ["source.otl", "punctuation.definition.entry.otl"] expect(tokens[1]).toEqual value: " ", scopes: ["source.otl"] expect(tokens[2]).toEqual value: "'", scopes: ["source.otl", "string.quoted.single.otl", "punctuation.definition.string.begin.otl"] expect(tokens[3]).toEqual value: "hello", scopes: ["source.otl", "string.quoted.single.otl", "entity.name.tag.otl"] expect(tokens[4]).toEqual value: "'", scopes: ["source.otl", "string.quoted.single.otl", "punctuation.definition.string.end.otl"] expect(tokens[5]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(tokens[6]).toEqual value: " ", scopes: ["source.otl"] expect(tokens[7]).toEqual value: "!!", scopes: ["source.otl", "keyword.other.omap.otl", "punctuation.definition.tag.omap.otl"] expect(tokens[8]).toEqual value: "omap", scopes: ["source.otl", "keyword.other.omap.otl"] {tokens} = grammar.tokenizeLine "hello:!!omap" expect(tokens[0]).toEqual value: "hello:!!omap", scopes: ["source.otl", "string.unquoted.otl"] it "parses dates in YYYY-MM-DD format", -> {tokens} = grammar.tokenizeLine "- date: 2001-01-01" expect(tokens[0]).toEqual value: "-", scopes: ["source.otl", "punctuation.definition.entry.otl"] expect(tokens[1]).toEqual value: " ", scopes: ["source.otl"] expect(tokens[2]).toEqual value: "date", scopes: ["source.otl", "entity.name.tag.otl"] expect(tokens[3]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(tokens[4]).toEqual value: " ", scopes: ["source.otl"] expect(tokens[5]).toEqual value: "2001-01-01", scopes: ["source.otl", "constant.other.date.otl"] {tokens} = grammar.tokenizeLine "apocalypse: 2012-12-21" expect(tokens[0]).toEqual value: "apocalypse", scopes: ["source.otl", "entity.name.tag.otl"] expect(tokens[1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(tokens[2]).toEqual value: " ", scopes: ["source.otl"] expect(tokens[3]).toEqual value: "2012-12-21", scopes: ["source.otl", "constant.other.date.otl"] {tokens} = grammar.tokenizeLine "'the apocalypse is nigh': 2012-12-21" expect(tokens[0]).toEqual value: "'", scopes: ["source.otl", "string.quoted.single.otl", "punctuation.definition.string.begin.otl"] expect(tokens[1]).toEqual value: "the apocalypse is nigh", scopes: ["source.otl", "string.quoted.single.otl", "entity.name.tag.otl"] expect(tokens[2]).toEqual value: "'", scopes: ["source.otl", "string.quoted.single.otl", "punctuation.definition.string.end.otl"] expect(tokens[3]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(tokens[4]).toEqual value: " ", scopes: ["source.otl"] expect(tokens[5]).toEqual value: "2012-12-21", scopes: ["source.otl", "constant.other.date.otl"] lines = grammar.tokenizeLines """ multiline: - 2001-01-01 2001-01-01 """ expect(lines[1][3]).toEqual value: "2001-01-01", scopes: ["source.otl", "constant.other.date.otl"] expect(lines[2][1]).toEqual value: "2001-01-01", scopes: ["source.otl", "constant.other.date.otl"] {tokens} = grammar.tokenizeLine "- 2001-01-01" expect(tokens[0]).toEqual value: "-", scopes: ["source.otl", "punctuation.definition.entry.otl"] expect(tokens[1]).toEqual value: " ", scopes: ["source.otl"] expect(tokens[2]).toEqual value: "2001-01-01", scopes: ["source.otl", "constant.other.date.otl"] {tokens} = grammar.tokenizeLine "- 07-04-1776" expect(tokens[0]).toEqual value: "-", scopes: ["source.otl", "punctuation.definition.entry.otl"] expect(tokens[1]).toEqual value: " ", scopes: ["source.otl"] expect(tokens[2]).toEqual value: "07-04-1776", scopes: ["source.otl", "string.unquoted.otl"] {tokens} = grammar.tokenizeLine "- nope 2001-01-01" expect(tokens[0]).toEqual value: "-", scopes: ["source.otl", "punctuation.definition.entry.otl"] expect(tokens[1]).toEqual value: " ", scopes: ["source.otl"] expect(tokens[2]).toEqual value: "nope 2001-01-01", scopes: ["source.otl", "string.unquoted.otl"] {tokens} = grammar.tokenizeLine "- 2001-01-01 uh oh" expect(tokens[0]).toEqual value: "-", scopes: ["source.otl", "punctuation.definition.entry.otl"] expect(tokens[1]).toEqual value: " ", scopes: ["source.otl"] expect(tokens[2]).toEqual value: "2001-01-01 uh oh", scopes: ["source.otl", "string.unquoted.otl"] it "parses numbers", -> {tokens} = grammar.tokenizeLine "- meaning of life: 42" expect(tokens[0]).toEqual value: "-", scopes: ["source.otl", "punctuation.definition.entry.otl"] expect(tokens[1]).toEqual value: " ", scopes: ["source.otl"] expect(tokens[2]).toEqual value: "meaning of life", scopes: ["source.otl", "entity.name.tag.otl"] expect(tokens[3]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(tokens[4]).toEqual value: " ", scopes: ["source.otl"] expect(tokens[5]).toEqual value: "42", scopes: ["source.otl", "constant.numeric.otl"] {tokens} = grammar.tokenizeLine "hex: 0x726Fa" expect(tokens[0]).toEqual value: "hex", scopes: ["source.otl", "entity.name.tag.otl"] expect(tokens[1]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(tokens[2]).toEqual value: " ", scopes: ["source.otl"] expect(tokens[3]).toEqual value: "0x726Fa", scopes: ["source.otl", "constant.numeric.otl"] {tokens} = grammar.tokenizeLine "- 0.7e-9001" expect(tokens[0]).toEqual value: "-", scopes: ["source.otl", "punctuation.definition.entry.otl"] expect(tokens[1]).toEqual value: " ", scopes: ["source.otl"] expect(tokens[2]).toEqual value: "0.7e-9001", scopes: ["source.otl", "constant.numeric.otl"] {tokens} = grammar.tokenizeLine "'over 9000': 9001" expect(tokens[0]).toEqual value: "'", scopes: ["source.otl", "string.quoted.single.otl", "punctuation.definition.string.begin.otl"] expect(tokens[1]).toEqual value: "over 9000", scopes: ["source.otl", "string.quoted.single.otl", "entity.name.tag.otl"] expect(tokens[2]).toEqual value: "'", scopes: ["source.otl", "string.quoted.single.otl", "punctuation.definition.string.end.otl"] expect(tokens[3]).toEqual value: ":", scopes: ["source.otl", "punctuation.separator.key-value.otl"] expect(tokens[4]).toEqual value: " ", scopes: ["source.otl"] expect(tokens[5]).toEqual value: "9001", scopes: ["source.otl", "constant.numeric.otl"] lines = grammar.tokenizeLines """ multiline: - 3.14f 3.14f """ expect(lines[1][3]).toEqual value: "3.14f", scopes: ["source.otl", "constant.numeric.otl"] expect(lines[2][1]).toEqual value: "3.14f", scopes: ["source.otl", "constant.numeric.otl"] {tokens} = grammar.tokenizeLine "- pi 3.14" expect(tokens[0]).toEqual value: "-", scopes: ["source.otl", "punctuation.definition.entry.otl"] expect(tokens[1]).toEqual value: " ", scopes: ["source.otl"] expect(tokens[2]).toEqual value: "pi 3.14", scopes: ["source.otl", "string.unquoted.otl"] {tokens} = grammar.tokenizeLine "- 3.14 uh oh" expect(tokens[0]).toEqual value: "-", scopes: ["source.otl", "punctuation.definition.entry.otl"] expect(tokens[1]).toEqual value: " ", scopes: ["source.otl"] expect(tokens[2]).toEqual value: "3.14 uh oh", scopes: ["source.otl", "string.unquoted.otl"] describe "variables", -> it "tokenizes them", -> {tokens} = grammar.tokenizeLine "&variable" expect(tokens[0]).toEqual value: "&", scopes: ["source.otl", "variable.other.otl", "punctuation.definition.variable.otl"] expect(tokens[1]).toEqual value: "variable", scopes: ["source.otl", "variable.other.otl"] {tokens} = grammar.tokenizeLine "*variable" expect(tokens[0]).toEqual value: "*", scopes: ["source.otl", "variable.other.otl", "punctuation.definition.variable.otl"] expect(tokens[1]).toEqual value: "variable", scopes: ["source.otl", "variable.other.otl"] {tokens} = grammar.tokenizeLine "&v3ryc001" expect(tokens[0]).toEqual value: "&", scopes: ["source.otl", "variable.other.otl", "punctuation.definition.variable.otl"] expect(tokens[1]).toEqual value: "v3ryc001", scopes: ["source.otl", "variable.other.otl"] {tokens} = grammar.tokenizeLine "& variable" expect(tokens[0]).toEqual value: "& variable", scopes: ["source.otl", "string.unquoted.otl"] {tokens} = grammar.tokenizeLine "&variable hey" expect(tokens[0]).toEqual value: "&variable hey", scopes: ["source.otl", "string.unquoted.otl"] describe "constants", -> it "tokenizes true, false, and null as constants", -> {tokens} = grammar.tokenizeLine "key: true" expect(tokens[3]).toEqual value: "true", scopes: ["source.otl", "constant.language.otl"] {tokens} = grammar.tokenizeLine "key: false" expect(tokens[3]).toEqual value: "false", scopes: ["source.otl", "constant.language.otl"] {tokens} = grammar.tokenizeLine "key: null" expect(tokens[3]).toEqual value: "null", scopes: ["source.otl", "constant.language.otl"] {tokens} = grammar.tokenizeLine "key: True" expect(tokens[3]).toEqual value: "True", scopes: ["source.otl", "constant.language.otl"] {tokens} = grammar.tokenizeLine "key: False" expect(tokens[3]).toEqual value: "False", scopes: ["source.otl", "constant.language.otl"] {tokens} = grammar.tokenizeLine "key: Null" expect(tokens[3]).toEqual value: "Null", scopes: ["source.otl", "constant.language.otl"] {tokens} = grammar.tokenizeLine "key: TRUE" expect(tokens[3]).toEqual value: "TRUE", scopes: ["source.otl", "constant.language.otl"] {tokens} = grammar.tokenizeLine "key: FALSE" expect(tokens[3]).toEqual value: "FALSE", scopes: ["source.otl", "constant.language.otl"] {tokens} = grammar.tokenizeLine "key: NULL" expect(tokens[3]).toEqual value: "NULL", scopes: ["source.otl", "constant.language.otl"] {tokens} = grammar.tokenizeLine "key: ~" expect(tokens[3]).toEqual value: "~", scopes: ["source.otl", "constant.language.otl"] {tokens} = grammar.tokenizeLine "key: true$" expect(tokens[3]).toEqual value: "true$", scopes: ["source.otl", "string.unquoted.otl"] {tokens} = grammar.tokenizeLine "key: true false" expect(tokens[3]).toEqual value: "true false", scopes: ["source.otl", "string.unquoted.otl"] it "does not tokenize keys as constants", -> {tokens} = grammar.tokenizeLine "true: something" expect(tokens[0]).toEqual value: "true", scopes: ["source.otl", "entity.name.tag.otl"] describe "structures", -> it "tokenizes directives end markers", -> {tokens} = grammar.tokenizeLine "---" expect(tokens[0]).toEqual value: "---", scopes: ["source.otl", "punctuation.definition.directives.end.otl"] {tokens} = grammar.tokenizeLine " ---" expect(tokens[1]).not.toEqual value: "---", scopes: ["source.otl", "punctuation.definition.directives.end.otl"] it "tokenizes document end markers", -> {tokens} = grammar.tokenizeLine "..." expect(tokens[0]).toEqual value: "...", scopes: ["source.otl", "punctuation.definition.document.end.otl"] it "tokenizes structures in an actual YAML document", -> lines = grammar.tokenizeLines """ --- time: 20:03:20 player: PI:NAME:<NAME>END_PI action: strike (miss) ... --- time: 20:03:47 player: PI:NAME:<NAME>END_PI action: grand slam ... """ expect(lines[0][0]).toEqual value: "---", scopes: ["source.otl", "punctuation.definition.directives.end.otl"] expect(lines[4][0]).toEqual value: "...", scopes: ["source.otl", "punctuation.definition.document.end.otl"] expect(lines[5][0]).toEqual value: "---", scopes: ["source.otl", "punctuation.definition.directives.end.otl"] expect(lines[9][0]).toEqual value: "...", scopes: ["source.otl", "punctuation.definition.document.end.otl"] describe "tabs", -> it "marks them as invalid", -> {tokens} = grammar.tokenizeLine "\t\ttabs:" expect(tokens[0]).toEqual value: '\t\t', scopes: ['source.otl', 'invalid.illegal.whitespace.otl']
[ { "context": "ey\"\n description: \"If you need one, email `api@robinsloan.com`\"\n default: \"op3n-s3s4m3\"\n }\n", "end": 1125, "score": 0.9999235272407532, "start": 1107, "tag": "EMAIL", "value": "api@robinsloan.com" } ]
lib/rnn-writer-config.coffee
retdop/atom_rnn_plugin
224
module.exports = { numberOfSuggestionsPerRequest: order: 1 type: "integer" title: "Number of suggestions per request" maximum: 10 default: 5 lookbackLength: order: 2 type: "integer" title: "Lookback length" description: "How many characters should we send as sample text?" maximum: 256 default: 48 overrideBracketMatcher: order: 3 type: "boolean" title: "Override automatic matching of quotation marks?" description: "Because it's annoying when you're writing prose..." default: true localSuggestionGenerator: order: 4 type: "string" title: "Location of torch-rnn-server" description: "Including protocol and port" default: "http://localhost:8080" textBargains: order: 5 type: "object" title: "Are you using text.bargains??" properties: usingTextBargains: order: 1 type: "boolean" title: "Yes, I'm using text.bargains" default: false apiKey: order: 2 type: "string" title: "API key" description: "If you need one, email `api@robinsloan.com`" default: "op3n-s3s4m3" }
221234
module.exports = { numberOfSuggestionsPerRequest: order: 1 type: "integer" title: "Number of suggestions per request" maximum: 10 default: 5 lookbackLength: order: 2 type: "integer" title: "Lookback length" description: "How many characters should we send as sample text?" maximum: 256 default: 48 overrideBracketMatcher: order: 3 type: "boolean" title: "Override automatic matching of quotation marks?" description: "Because it's annoying when you're writing prose..." default: true localSuggestionGenerator: order: 4 type: "string" title: "Location of torch-rnn-server" description: "Including protocol and port" default: "http://localhost:8080" textBargains: order: 5 type: "object" title: "Are you using text.bargains??" properties: usingTextBargains: order: 1 type: "boolean" title: "Yes, I'm using text.bargains" default: false apiKey: order: 2 type: "string" title: "API key" description: "If you need one, email `<EMAIL>`" default: "op3n-s3s4m3" }
true
module.exports = { numberOfSuggestionsPerRequest: order: 1 type: "integer" title: "Number of suggestions per request" maximum: 10 default: 5 lookbackLength: order: 2 type: "integer" title: "Lookback length" description: "How many characters should we send as sample text?" maximum: 256 default: 48 overrideBracketMatcher: order: 3 type: "boolean" title: "Override automatic matching of quotation marks?" description: "Because it's annoying when you're writing prose..." default: true localSuggestionGenerator: order: 4 type: "string" title: "Location of torch-rnn-server" description: "Including protocol and port" default: "http://localhost:8080" textBargains: order: 5 type: "object" title: "Are you using text.bargains??" properties: usingTextBargains: order: 1 type: "boolean" title: "Yes, I'm using text.bargains" default: false apiKey: order: 2 type: "string" title: "API key" description: "If you need one, email `PI:EMAIL:<EMAIL>END_PI`" default: "op3n-s3s4m3" }
[ { "context": "oject: atom.project.getPaths()[0]\n oldname: 'Test 1'\n name: 'Test 1'\n command: 'echo test'\n", "end": 466, "score": 0.9905905723571777, "start": 460, "tag": "NAME", "value": "Test 1" }, { "context": "etPaths()[0]\n oldname: 'Test 1'\n name: '...
spec/command-info-pane-spec.coffee
fstiewitz/build-tools-cpp
3
CommandInfoPane = require '../lib/view/command-info-pane' Command = require '../lib/provider/command' describe 'Command Info Pane', -> view = null command = null up = null down = null edit = null remove = null beforeEach -> up = jasmine.createSpy('up') down = jasmine.createSpy('down') edit = jasmine.createSpy('edit') remove = jasmine.createSpy('remove') command = project: atom.project.getPaths()[0] oldname: 'Test 1' name: 'Test 1' command: 'echo test' wd: '.' stdout: highlighting: 'nh' stderr: highlighting: 'hc' profile: 'python' output: console: close_success: true command = new Command(command) view = new CommandInfoPane(command) view.setCallbacks up, down, edit, remove jasmine.attachToDOM(view.element) it 'has a pane', -> expect(view.element).toBeDefined() it 'has 4 panes', -> expect(view.element.children[1].children.length).toBe 4 it 'has the correct values', -> expect(view.info.find('.module')[0].children[1].children[0].innerText).toBe 'echo test' expect(view.info.find('.module')[1].children[1].innerText).toBe 'Display all output streams' expect(view.info.find('.module')[2].children[1].innerText).toBe 'Python' expect(view.info.find('.panel-heading')[4].innerText).toBe 'Output: Console' describe 'On up click', -> beforeEach -> view.find('.icon-triangle-up').click() it 'executes the up callback', -> expect(up).toHaveBeenCalled() describe 'On down click', -> beforeEach -> view.find('.icon-triangle-down').click() it 'executes the down callback', -> expect(down).toHaveBeenCalled() describe 'On edit click', -> beforeEach -> view.find('.icon-pencil').click() it 'executes the edit callback', -> expect(edit).toHaveBeenCalled() describe 'On remove click', -> beforeEach -> view.find('.icon-x').click() it 'executes the remove callback', -> expect(remove).toHaveBeenCalled()
178481
CommandInfoPane = require '../lib/view/command-info-pane' Command = require '../lib/provider/command' describe 'Command Info Pane', -> view = null command = null up = null down = null edit = null remove = null beforeEach -> up = jasmine.createSpy('up') down = jasmine.createSpy('down') edit = jasmine.createSpy('edit') remove = jasmine.createSpy('remove') command = project: atom.project.getPaths()[0] oldname: '<NAME>' name: '<NAME>' command: 'echo test' wd: '.' stdout: highlighting: 'nh' stderr: highlighting: 'hc' profile: 'python' output: console: close_success: true command = new Command(command) view = new CommandInfoPane(command) view.setCallbacks up, down, edit, remove jasmine.attachToDOM(view.element) it 'has a pane', -> expect(view.element).toBeDefined() it 'has 4 panes', -> expect(view.element.children[1].children.length).toBe 4 it 'has the correct values', -> expect(view.info.find('.module')[0].children[1].children[0].innerText).toBe 'echo test' expect(view.info.find('.module')[1].children[1].innerText).toBe 'Display all output streams' expect(view.info.find('.module')[2].children[1].innerText).toBe 'Python' expect(view.info.find('.panel-heading')[4].innerText).toBe 'Output: Console' describe 'On up click', -> beforeEach -> view.find('.icon-triangle-up').click() it 'executes the up callback', -> expect(up).toHaveBeenCalled() describe 'On down click', -> beforeEach -> view.find('.icon-triangle-down').click() it 'executes the down callback', -> expect(down).toHaveBeenCalled() describe 'On edit click', -> beforeEach -> view.find('.icon-pencil').click() it 'executes the edit callback', -> expect(edit).toHaveBeenCalled() describe 'On remove click', -> beforeEach -> view.find('.icon-x').click() it 'executes the remove callback', -> expect(remove).toHaveBeenCalled()
true
CommandInfoPane = require '../lib/view/command-info-pane' Command = require '../lib/provider/command' describe 'Command Info Pane', -> view = null command = null up = null down = null edit = null remove = null beforeEach -> up = jasmine.createSpy('up') down = jasmine.createSpy('down') edit = jasmine.createSpy('edit') remove = jasmine.createSpy('remove') command = project: atom.project.getPaths()[0] oldname: 'PI:NAME:<NAME>END_PI' name: 'PI:NAME:<NAME>END_PI' command: 'echo test' wd: '.' stdout: highlighting: 'nh' stderr: highlighting: 'hc' profile: 'python' output: console: close_success: true command = new Command(command) view = new CommandInfoPane(command) view.setCallbacks up, down, edit, remove jasmine.attachToDOM(view.element) it 'has a pane', -> expect(view.element).toBeDefined() it 'has 4 panes', -> expect(view.element.children[1].children.length).toBe 4 it 'has the correct values', -> expect(view.info.find('.module')[0].children[1].children[0].innerText).toBe 'echo test' expect(view.info.find('.module')[1].children[1].innerText).toBe 'Display all output streams' expect(view.info.find('.module')[2].children[1].innerText).toBe 'Python' expect(view.info.find('.panel-heading')[4].innerText).toBe 'Output: Console' describe 'On up click', -> beforeEach -> view.find('.icon-triangle-up').click() it 'executes the up callback', -> expect(up).toHaveBeenCalled() describe 'On down click', -> beforeEach -> view.find('.icon-triangle-down').click() it 'executes the down callback', -> expect(down).toHaveBeenCalled() describe 'On edit click', -> beforeEach -> view.find('.icon-pencil').click() it 'executes the edit callback', -> expect(edit).toHaveBeenCalled() describe 'On remove click', -> beforeEach -> view.find('.icon-x').click() it 'executes the remove callback', -> expect(remove).toHaveBeenCalled()
[ { "context": "tch err\n\nrequest_session = (token) ->\n# token = 'bd74a5ab-eca4-4d4a-b959-9335d1aa76d4'\n try\n json", "end": 362, "score": 0.6829633116722107, "start": 360, "tag": "KEY", "value": "bd" }, { "context": "h err\n\nrequest_session = (token) ->\n# token = 'bd74a5ab-...
src/scripts/commands/login.coffee
WittBulter/fine
155
open = require 'opn' ora = require 'ora' http = require '../networks/http' request_token = () -> try json = await http.post '/tokens', do http.make_options if not json.token fine.print.error json.message if json.message? fine.print.error 'unable to connect to server' json.token catch err request_session = (token) -> # token = 'bd74a5ab-eca4-4d4a-b959-9335d1aa76d4' try json = await http "/sessions/commands/#{token}", do http.make_options return false if not json or not json.token json.token catch err login = () -> count = 0 wait = new ora token = await do request_token open "https://fine.sh/auth/validate?command_id=#{token}" wait.start 'waiting for login validation...' timer = setInterval((() -> count = count + 1 if count > 60 wait.fail'server timeout.' clearInterval timer return process.exit 0 session = await request_session token return if not session fine.storage.save 'session', session wait.succeed 'login successfully.' clearInterval timer process.exit 1 ), 1200) module.exports = run: login
67431
open = require 'opn' ora = require 'ora' http = require '../networks/http' request_token = () -> try json = await http.post '/tokens', do http.make_options if not json.token fine.print.error json.message if json.message? fine.print.error 'unable to connect to server' json.token catch err request_session = (token) -> # token = '<KEY> <PASSWORD>' try json = await http "/sessions/commands/#{token}", do http.make_options return false if not json or not json.token json.token catch err login = () -> count = 0 wait = new ora token = await do request_token open "https://fine.sh/auth/validate?command_id=#{token}" wait.start 'waiting for login validation...' timer = setInterval((() -> count = count + 1 if count > 60 wait.fail'server timeout.' clearInterval timer return process.exit 0 session = await request_session token return if not session fine.storage.save 'session', session wait.succeed 'login successfully.' clearInterval timer process.exit 1 ), 1200) module.exports = run: login
true
open = require 'opn' ora = require 'ora' http = require '../networks/http' request_token = () -> try json = await http.post '/tokens', do http.make_options if not json.token fine.print.error json.message if json.message? fine.print.error 'unable to connect to server' json.token catch err request_session = (token) -> # token = 'PI:KEY:<KEY>END_PI PI:PASSWORD:<PASSWORD>END_PI' try json = await http "/sessions/commands/#{token}", do http.make_options return false if not json or not json.token json.token catch err login = () -> count = 0 wait = new ora token = await do request_token open "https://fine.sh/auth/validate?command_id=#{token}" wait.start 'waiting for login validation...' timer = setInterval((() -> count = count + 1 if count > 60 wait.fail'server timeout.' clearInterval timer return process.exit 0 session = await request_session token return if not session fine.storage.save 'session', session wait.succeed 'login successfully.' clearInterval timer process.exit 1 ), 1200) module.exports = run: login
[ { "context": "ller\", ->\n\tbeforeEach ->\n\t\t@user_id = \"323123\"\n\n\t\t@user =\n\t\t\t_id:@user_id\n\t\t\tsave: sinon.stub().calls", "end": 463, "score": 0.5839993357658386, "start": 463, "tag": "USERNAME", "value": "" }, { "context": "oreEach ->\n\t\t@user_id = \"323123\"\n\n\t...
test/UnitTests/coffee/User/UserControllerTests.coffee
watercrossing/web-sharelatex
0
sinon = require('sinon') chai = require('chai') should = chai.should() expect = chai.expect modulePath = "../../../../app/js/Features/User/UserController.js" SandboxedModule = require('sandboxed-module') events = require "events" MockResponse = require "../helpers/MockResponse" MockRequest = require "../helpers/MockRequest" ObjectId = require("mongojs").ObjectId assert = require("assert") describe "UserController", -> beforeEach -> @user_id = "323123" @user = _id:@user_id save: sinon.stub().callsArgWith(0) ace:{} @req = user: {} session: destroy:-> user : _id : @user_id email:"old@something.com" body:{} @UserDeleter = deleteUser: sinon.stub().callsArgWith(1) @UserLocator = findById: sinon.stub().callsArgWith(1, null, @user) @User = findById: sinon.stub().callsArgWith(1, null, @user) @NewsLetterManager = unsubscribe: sinon.stub().callsArgWith(1) @UserRegistrationHandler = registerNewUser: sinon.stub() @AuthenticationController = establishUserSession: sinon.stub().callsArg(2) getLoggedInUserId: sinon.stub().returns(@user._id) getSessionUser: sinon.stub().returns(@req.session.user) setInSessionUser: sinon.stub() @AuthenticationManager = authenticate: sinon.stub() setUserPassword: sinon.stub() @ReferalAllocator = allocate:sinon.stub() @SubscriptionDomainHandler = autoAllocate:sinon.stub() @UserUpdater = changeEmailAddress:sinon.stub() @settings = siteUrl: "sharelatex.example.com" @UserHandler = populateGroupLicenceInvite:sinon.stub().callsArgWith(1) @UserSessionsManager = trackSession: sinon.stub() untrackSession: sinon.stub() revokeAllUserSessions: sinon.stub().callsArgWith(2, null) @UserController = SandboxedModule.require modulePath, requires: "./UserLocator": @UserLocator "./UserDeleter": @UserDeleter "./UserUpdater":@UserUpdater "../../models/User": User:@User '../Newsletter/NewsletterManager':@NewsLetterManager "./UserRegistrationHandler":@UserRegistrationHandler "../Authentication/AuthenticationController": @AuthenticationController "../Authentication/AuthenticationManager": @AuthenticationManager "../Referal/ReferalAllocator":@ReferalAllocator "../Subscription/SubscriptionDomainHandler":@SubscriptionDomainHandler "./UserHandler":@UserHandler "./UserSessionsManager": @UserSessionsManager "settings-sharelatex": @settings "logger-sharelatex": log:-> err:-> "../../infrastructure/Metrics": inc:-> @res = send: sinon.stub() sendStatus: sinon.stub() json: sinon.stub() @next = sinon.stub() describe 'tryDeleteUser', -> beforeEach -> @req.body.password = 'wat' @req.logout = sinon.stub() @req.session.destroy = sinon.stub().callsArgWith(0, null) @AuthenticationController.getLoggedInUserId = sinon.stub().returns(@user._id) @AuthenticationManager.authenticate = sinon.stub().callsArgWith(2, null, @user) @UserDeleter.deleteUser = sinon.stub().callsArgWith(1, null) it 'should send 200', (done) -> @res.sendStatus = (code) => code.should.equal 200 done() @UserController.tryDeleteUser @req, @res, @next it 'should try to authenticate user', (done) -> @res.sendStatus = (code) => @AuthenticationManager.authenticate.callCount.should.equal 1 @AuthenticationManager.authenticate.calledWith({_id: @user._id}, @req.body.password).should.equal true done() @UserController.tryDeleteUser @req, @res, @next it 'should delete the user', (done) -> @res.sendStatus = (code) => @UserDeleter.deleteUser.callCount.should.equal 1 @UserDeleter.deleteUser.calledWith(@user._id).should.equal true done() @UserController.tryDeleteUser @req, @res, @next describe 'when no password is supplied', -> beforeEach -> @req.body.password = '' it 'should return 403', (done) -> @res.sendStatus = (code) => code.should.equal 403 done() @UserController.tryDeleteUser @req, @res, @next describe 'when authenticate produces an error', -> beforeEach -> @AuthenticationManager.authenticate = sinon.stub().callsArgWith(2, new Error('woops')) it 'should call next with an error', (done) -> @next = (err) => expect(err).to.not.equal null expect(err).to.be.instanceof Error done() @UserController.tryDeleteUser @req, @res, @next describe 'when authenticate does not produce a user', -> beforeEach -> @AuthenticationManager.authenticate = sinon.stub().callsArgWith(2, null, null) it 'should return 403', (done) -> @res.sendStatus = (code) => code.should.equal 403 done() @UserController.tryDeleteUser @req, @res, @next describe 'when deleteUser produces an error', -> beforeEach -> @UserDeleter.deleteUser = sinon.stub().callsArgWith(1, new Error('woops')) it 'should call next with an error', (done) -> @next = (err) => expect(err).to.not.equal null expect(err).to.be.instanceof Error done() @UserController.tryDeleteUser @req, @res, @next describe 'when session.destroy produces an error', -> beforeEach -> @req.session.destroy = sinon.stub().callsArgWith(0, new Error('woops')) it 'should call next with an error', (done) -> @next = (err) => expect(err).to.not.equal null expect(err).to.be.instanceof Error done() @UserController.tryDeleteUser @req, @res, @next describe "unsubscribe", -> it "should send the user to unsubscribe", (done)-> @res.send = (code)=> @NewsLetterManager.unsubscribe.calledWith(@user).should.equal true done() @UserController.unsubscribe @req, @res describe "updateUserSettings", -> beforeEach -> @newEmail = "hello@world.com" it "should call save", (done)-> @req.body = {} @res.sendStatus = (code)=> @user.save.called.should.equal true done() @UserController.updateUserSettings @req, @res it "should set the first name", (done)-> @req.body = first_name: "bobby " @res.sendStatus = (code)=> @user.first_name.should.equal "bobby" done() @UserController.updateUserSettings @req, @res it "should set the role", (done)-> @req.body = role: "student" @res.sendStatus = (code)=> @user.role.should.equal "student" done() @UserController.updateUserSettings @req, @res it "should set the institution", (done)-> @req.body = institution: "MIT" @res.sendStatus = (code)=> @user.institution.should.equal "MIT" done() @UserController.updateUserSettings @req, @res it "should set some props on ace", (done)-> @req.body = theme: "something" @res.sendStatus = (code)=> @user.ace.theme.should.equal "something" done() @UserController.updateUserSettings @req, @res it "should send an error if the email is 0 len", (done)-> @req.body.email = "" @res.sendStatus = (code)-> code.should.equal 400 done() @UserController.updateUserSettings @req, @res it "should send an error if the email does not contain an @", (done)-> @req.body.email = "bob at something dot com" @res.sendStatus = (code)-> code.should.equal 400 done() @UserController.updateUserSettings @req, @res it "should call the user updater with the new email and user _id", (done)-> @req.body.email = @newEmail.toUpperCase() @UserUpdater.changeEmailAddress.callsArgWith(2) @res.sendStatus = (code)=> code.should.equal 200 @UserUpdater.changeEmailAddress.calledWith(@user_id, @newEmail).should.equal true done() @UserController.updateUserSettings @req, @res it "should update the email on the session", (done)-> @req.body.email = @newEmail.toUpperCase() @UserUpdater.changeEmailAddress.callsArgWith(2) callcount = 0 @User.findById = (id, cb)=> if ++callcount == 2 @user.email = @newEmail cb(null, @user) @res.sendStatus = (code)=> code.should.equal 200 @AuthenticationController.setInSessionUser.calledWith( @req, {email: @newEmail, first_name: undefined, last_name: undefined} ).should.equal true done() @UserController.updateUserSettings @req, @res it "should call populateGroupLicenceInvite", (done)-> @req.body.email = @newEmail.toUpperCase() @UserUpdater.changeEmailAddress.callsArgWith(2) @res.sendStatus = (code)=> code.should.equal 200 @UserHandler.populateGroupLicenceInvite.calledWith(@user).should.equal true done() @UserController.updateUserSettings @req, @res describe 'when using an external auth source', -> beforeEach -> @UserUpdater.changeEmailAddress.callsArgWith(2) @newEmail = 'someone23@example.com' @settings.ldap = {active: true} afterEach -> delete @settings.ldap it 'should not set a new email', (done) -> @req.body.email = @newEmail @res.sendStatus = (code)=> code.should.equal 200 @UserUpdater.changeEmailAddress.calledWith(@user_id, @newEmail).should.equal false done() @UserController.updateUserSettings @req, @res describe "logout", -> it "should destroy the session", (done)-> @req.session.destroy = sinon.stub().callsArgWith(0) @res.redirect = (url)=> url.should.equal "/login" @req.session.destroy.called.should.equal true done() @UserController.logout @req, @res describe "register", -> beforeEach -> @UserRegistrationHandler.registerNewUserAndSendActivationEmail = sinon.stub().callsArgWith(1, null, @user, @url = "mock/url") @req.body.email = @user.email = @email = "email@example.com" @UserController.register @req, @res it "should register the user and send them an email", -> @UserRegistrationHandler.registerNewUserAndSendActivationEmail .calledWith(@email) .should.equal true it "should return the user and activation url", -> @res.json .calledWith({ email: @email, setNewPasswordUrl: @url }) .should.equal true describe 'clearSessions', -> it 'should call revokeAllUserSessions', (done) -> @UserController.clearSessions @req, @res @UserSessionsManager.revokeAllUserSessions.callCount.should.equal 1 done() it 'send a 201 response', (done) -> @res.sendStatus = (status) => status.should.equal 201 done() @UserController.clearSessions @req, @res describe 'when revokeAllUserSessions produces an error', -> it 'should call next with an error', (done) -> @UserSessionsManager.revokeAllUserSessions.callsArgWith(2, new Error('woops')) next = (err) => expect(err).to.not.equal null expect(err).to.be.instanceof Error done() @UserController.clearSessions @req, @res, next describe "changePassword", -> it "should check the old password is the current one at the moment", (done)-> @AuthenticationManager.authenticate.callsArgWith(2) @req.body = currentPassword: "oldpasshere" @res.send = => @AuthenticationManager.authenticate.calledWith(_id:@user._id, "oldpasshere").should.equal true @AuthenticationManager.setUserPassword.called.should.equal false done() @UserController.changePassword @req, @res it "it should not set the new password if they do not match", (done)-> @AuthenticationManager.authenticate.callsArgWith(2, null, {}) @req.body = newPassword1: "1" newPassword2: "2" @res.send = => @AuthenticationManager.setUserPassword.called.should.equal false done() @UserController.changePassword @req, @res it "should set the new password if they do match", (done)-> @AuthenticationManager.authenticate.callsArgWith(2, null, @user) @AuthenticationManager.setUserPassword.callsArgWith(2) @req.body = newPassword1: "newpass" newPassword2: "newpass" @res.send = => @AuthenticationManager.setUserPassword.calledWith(@user._id, "newpass").should.equal true done() @UserController.changePassword @req, @res
159377
sinon = require('sinon') chai = require('chai') should = chai.should() expect = chai.expect modulePath = "../../../../app/js/Features/User/UserController.js" SandboxedModule = require('sandboxed-module') events = require "events" MockResponse = require "../helpers/MockResponse" MockRequest = require "../helpers/MockRequest" ObjectId = require("mongojs").ObjectId assert = require("assert") describe "UserController", -> beforeEach -> @user_id = "323123" @user = _id:@user_id save: sinon.stub().callsArgWith(0) ace:{} @req = user: {} session: destroy:-> user : _id : @user_id email:"<EMAIL>" body:{} @UserDeleter = deleteUser: sinon.stub().callsArgWith(1) @UserLocator = findById: sinon.stub().callsArgWith(1, null, @user) @User = findById: sinon.stub().callsArgWith(1, null, @user) @NewsLetterManager = unsubscribe: sinon.stub().callsArgWith(1) @UserRegistrationHandler = registerNewUser: sinon.stub() @AuthenticationController = establishUserSession: sinon.stub().callsArg(2) getLoggedInUserId: sinon.stub().returns(@user._id) getSessionUser: sinon.stub().returns(@req.session.user) setInSessionUser: sinon.stub() @AuthenticationManager = authenticate: sinon.stub() setUserPassword: sinon.stub() @ReferalAllocator = allocate:sinon.stub() @SubscriptionDomainHandler = autoAllocate:sinon.stub() @UserUpdater = changeEmailAddress:sinon.stub() @settings = siteUrl: "sharelatex.example.com" @UserHandler = populateGroupLicenceInvite:sinon.stub().callsArgWith(1) @UserSessionsManager = trackSession: sinon.stub() untrackSession: sinon.stub() revokeAllUserSessions: sinon.stub().callsArgWith(2, null) @UserController = SandboxedModule.require modulePath, requires: "./UserLocator": @UserLocator "./UserDeleter": @UserDeleter "./UserUpdater":@UserUpdater "../../models/User": User:@User '../Newsletter/NewsletterManager':@NewsLetterManager "./UserRegistrationHandler":@UserRegistrationHandler "../Authentication/AuthenticationController": @AuthenticationController "../Authentication/AuthenticationManager": @AuthenticationManager "../Referal/ReferalAllocator":@ReferalAllocator "../Subscription/SubscriptionDomainHandler":@SubscriptionDomainHandler "./UserHandler":@UserHandler "./UserSessionsManager": @UserSessionsManager "settings-sharelatex": @settings "logger-sharelatex": log:-> err:-> "../../infrastructure/Metrics": inc:-> @res = send: sinon.stub() sendStatus: sinon.stub() json: sinon.stub() @next = sinon.stub() describe 'tryDeleteUser', -> beforeEach -> @req.body.password = '<PASSWORD>' @req.logout = sinon.stub() @req.session.destroy = sinon.stub().callsArgWith(0, null) @AuthenticationController.getLoggedInUserId = sinon.stub().returns(@user._id) @AuthenticationManager.authenticate = sinon.stub().callsArgWith(2, null, @user) @UserDeleter.deleteUser = sinon.stub().callsArgWith(1, null) it 'should send 200', (done) -> @res.sendStatus = (code) => code.should.equal 200 done() @UserController.tryDeleteUser @req, @res, @next it 'should try to authenticate user', (done) -> @res.sendStatus = (code) => @AuthenticationManager.authenticate.callCount.should.equal 1 @AuthenticationManager.authenticate.calledWith({_id: @user._id}, @req.body.password).should.equal true done() @UserController.tryDeleteUser @req, @res, @next it 'should delete the user', (done) -> @res.sendStatus = (code) => @UserDeleter.deleteUser.callCount.should.equal 1 @UserDeleter.deleteUser.calledWith(@user._id).should.equal true done() @UserController.tryDeleteUser @req, @res, @next describe 'when no password is supplied', -> beforeEach -> @req.body.password = '' it 'should return 403', (done) -> @res.sendStatus = (code) => code.should.equal 403 done() @UserController.tryDeleteUser @req, @res, @next describe 'when authenticate produces an error', -> beforeEach -> @AuthenticationManager.authenticate = sinon.stub().callsArgWith(2, new Error('woops')) it 'should call next with an error', (done) -> @next = (err) => expect(err).to.not.equal null expect(err).to.be.instanceof Error done() @UserController.tryDeleteUser @req, @res, @next describe 'when authenticate does not produce a user', -> beforeEach -> @AuthenticationManager.authenticate = sinon.stub().callsArgWith(2, null, null) it 'should return 403', (done) -> @res.sendStatus = (code) => code.should.equal 403 done() @UserController.tryDeleteUser @req, @res, @next describe 'when deleteUser produces an error', -> beforeEach -> @UserDeleter.deleteUser = sinon.stub().callsArgWith(1, new Error('woops')) it 'should call next with an error', (done) -> @next = (err) => expect(err).to.not.equal null expect(err).to.be.instanceof Error done() @UserController.tryDeleteUser @req, @res, @next describe 'when session.destroy produces an error', -> beforeEach -> @req.session.destroy = sinon.stub().callsArgWith(0, new Error('woops')) it 'should call next with an error', (done) -> @next = (err) => expect(err).to.not.equal null expect(err).to.be.instanceof Error done() @UserController.tryDeleteUser @req, @res, @next describe "unsubscribe", -> it "should send the user to unsubscribe", (done)-> @res.send = (code)=> @NewsLetterManager.unsubscribe.calledWith(@user).should.equal true done() @UserController.unsubscribe @req, @res describe "updateUserSettings", -> beforeEach -> @newEmail = "<EMAIL>" it "should call save", (done)-> @req.body = {} @res.sendStatus = (code)=> @user.save.called.should.equal true done() @UserController.updateUserSettings @req, @res it "should set the first name", (done)-> @req.body = first_name: "<NAME> " @res.sendStatus = (code)=> @user.first_name.should.equal "<NAME>" done() @UserController.updateUserSettings @req, @res it "should set the role", (done)-> @req.body = role: "student" @res.sendStatus = (code)=> @user.role.should.equal "student" done() @UserController.updateUserSettings @req, @res it "should set the institution", (done)-> @req.body = institution: "MIT" @res.sendStatus = (code)=> @user.institution.should.equal "MIT" done() @UserController.updateUserSettings @req, @res it "should set some props on ace", (done)-> @req.body = theme: "something" @res.sendStatus = (code)=> @user.ace.theme.should.equal "something" done() @UserController.updateUserSettings @req, @res it "should send an error if the email is 0 len", (done)-> @req.body.email = "" @res.sendStatus = (code)-> code.should.equal 400 done() @UserController.updateUserSettings @req, @res it "should send an error if the email does not contain an @", (done)-> @req.body.email = "bob at something dot com" @res.sendStatus = (code)-> code.should.equal 400 done() @UserController.updateUserSettings @req, @res it "should call the user updater with the new email and user _id", (done)-> @req.body.email = @newEmail.toUpperCase() @UserUpdater.changeEmailAddress.callsArgWith(2) @res.sendStatus = (code)=> code.should.equal 200 @UserUpdater.changeEmailAddress.calledWith(@user_id, @newEmail).should.equal true done() @UserController.updateUserSettings @req, @res it "should update the email on the session", (done)-> @req.body.email = @newEmail.toUpperCase() @UserUpdater.changeEmailAddress.callsArgWith(2) callcount = 0 @User.findById = (id, cb)=> if ++callcount == 2 @user.email = @newEmail cb(null, @user) @res.sendStatus = (code)=> code.should.equal 200 @AuthenticationController.setInSessionUser.calledWith( @req, {email: @newEmail, first_name: undefined, last_name: undefined} ).should.equal true done() @UserController.updateUserSettings @req, @res it "should call populateGroupLicenceInvite", (done)-> @req.body.email = @newEmail.toUpperCase() @UserUpdater.changeEmailAddress.callsArgWith(2) @res.sendStatus = (code)=> code.should.equal 200 @UserHandler.populateGroupLicenceInvite.calledWith(@user).should.equal true done() @UserController.updateUserSettings @req, @res describe 'when using an external auth source', -> beforeEach -> @UserUpdater.changeEmailAddress.callsArgWith(2) @newEmail = '<EMAIL>' @settings.ldap = {active: true} afterEach -> delete @settings.ldap it 'should not set a new email', (done) -> @req.body.email = @newEmail @res.sendStatus = (code)=> code.should.equal 200 @UserUpdater.changeEmailAddress.calledWith(@user_id, @newEmail).should.equal false done() @UserController.updateUserSettings @req, @res describe "logout", -> it "should destroy the session", (done)-> @req.session.destroy = sinon.stub().callsArgWith(0) @res.redirect = (url)=> url.should.equal "/login" @req.session.destroy.called.should.equal true done() @UserController.logout @req, @res describe "register", -> beforeEach -> @UserRegistrationHandler.registerNewUserAndSendActivationEmail = sinon.stub().callsArgWith(1, null, @user, @url = "mock/url") @req.body.email = @user.email = @email = "<EMAIL>" @UserController.register @req, @res it "should register the user and send them an email", -> @UserRegistrationHandler.registerNewUserAndSendActivationEmail .calledWith(@email) .should.equal true it "should return the user and activation url", -> @res.json .calledWith({ email: @email, setNewPasswordUrl: @url }) .should.equal true describe 'clearSessions', -> it 'should call revokeAllUserSessions', (done) -> @UserController.clearSessions @req, @res @UserSessionsManager.revokeAllUserSessions.callCount.should.equal 1 done() it 'send a 201 response', (done) -> @res.sendStatus = (status) => status.should.equal 201 done() @UserController.clearSessions @req, @res describe 'when revokeAllUserSessions produces an error', -> it 'should call next with an error', (done) -> @UserSessionsManager.revokeAllUserSessions.callsArgWith(2, new Error('woops')) next = (err) => expect(err).to.not.equal null expect(err).to.be.instanceof Error done() @UserController.clearSessions @req, @res, next describe "changePassword", -> it "should check the old password is the current one at the moment", (done)-> @AuthenticationManager.authenticate.callsArgWith(2) @req.body = currentPassword: "<PASSWORD>" @res.send = => @AuthenticationManager.authenticate.calledWith(_id:@user._id, "<PASSWORD>").should.equal true @AuthenticationManager.setUserPassword.called.should.equal false done() @UserController.changePassword @req, @res it "it should not set the new password if they do not match", (done)-> @AuthenticationManager.authenticate.callsArgWith(2, null, {}) @req.body = newPassword1: "<PASSWORD>" newPassword2: "<PASSWORD>" @res.send = => @AuthenticationManager.setUserPassword.called.should.equal false done() @UserController.changePassword @req, @res it "should set the new password if they do match", (done)-> @AuthenticationManager.authenticate.callsArgWith(2, null, @user) @AuthenticationManager.setUserPassword.callsArgWith(2) @req.body = newPassword1: "<PASSWORD>" newPassword2: "<PASSWORD>" @res.send = => @AuthenticationManager.setUserPassword.calledWith(@user._id, "<PASSWORD>").should.equal true done() @UserController.changePassword @req, @res
true
sinon = require('sinon') chai = require('chai') should = chai.should() expect = chai.expect modulePath = "../../../../app/js/Features/User/UserController.js" SandboxedModule = require('sandboxed-module') events = require "events" MockResponse = require "../helpers/MockResponse" MockRequest = require "../helpers/MockRequest" ObjectId = require("mongojs").ObjectId assert = require("assert") describe "UserController", -> beforeEach -> @user_id = "323123" @user = _id:@user_id save: sinon.stub().callsArgWith(0) ace:{} @req = user: {} session: destroy:-> user : _id : @user_id email:"PI:EMAIL:<EMAIL>END_PI" body:{} @UserDeleter = deleteUser: sinon.stub().callsArgWith(1) @UserLocator = findById: sinon.stub().callsArgWith(1, null, @user) @User = findById: sinon.stub().callsArgWith(1, null, @user) @NewsLetterManager = unsubscribe: sinon.stub().callsArgWith(1) @UserRegistrationHandler = registerNewUser: sinon.stub() @AuthenticationController = establishUserSession: sinon.stub().callsArg(2) getLoggedInUserId: sinon.stub().returns(@user._id) getSessionUser: sinon.stub().returns(@req.session.user) setInSessionUser: sinon.stub() @AuthenticationManager = authenticate: sinon.stub() setUserPassword: sinon.stub() @ReferalAllocator = allocate:sinon.stub() @SubscriptionDomainHandler = autoAllocate:sinon.stub() @UserUpdater = changeEmailAddress:sinon.stub() @settings = siteUrl: "sharelatex.example.com" @UserHandler = populateGroupLicenceInvite:sinon.stub().callsArgWith(1) @UserSessionsManager = trackSession: sinon.stub() untrackSession: sinon.stub() revokeAllUserSessions: sinon.stub().callsArgWith(2, null) @UserController = SandboxedModule.require modulePath, requires: "./UserLocator": @UserLocator "./UserDeleter": @UserDeleter "./UserUpdater":@UserUpdater "../../models/User": User:@User '../Newsletter/NewsletterManager':@NewsLetterManager "./UserRegistrationHandler":@UserRegistrationHandler "../Authentication/AuthenticationController": @AuthenticationController "../Authentication/AuthenticationManager": @AuthenticationManager "../Referal/ReferalAllocator":@ReferalAllocator "../Subscription/SubscriptionDomainHandler":@SubscriptionDomainHandler "./UserHandler":@UserHandler "./UserSessionsManager": @UserSessionsManager "settings-sharelatex": @settings "logger-sharelatex": log:-> err:-> "../../infrastructure/Metrics": inc:-> @res = send: sinon.stub() sendStatus: sinon.stub() json: sinon.stub() @next = sinon.stub() describe 'tryDeleteUser', -> beforeEach -> @req.body.password = 'PI:PASSWORD:<PASSWORD>END_PI' @req.logout = sinon.stub() @req.session.destroy = sinon.stub().callsArgWith(0, null) @AuthenticationController.getLoggedInUserId = sinon.stub().returns(@user._id) @AuthenticationManager.authenticate = sinon.stub().callsArgWith(2, null, @user) @UserDeleter.deleteUser = sinon.stub().callsArgWith(1, null) it 'should send 200', (done) -> @res.sendStatus = (code) => code.should.equal 200 done() @UserController.tryDeleteUser @req, @res, @next it 'should try to authenticate user', (done) -> @res.sendStatus = (code) => @AuthenticationManager.authenticate.callCount.should.equal 1 @AuthenticationManager.authenticate.calledWith({_id: @user._id}, @req.body.password).should.equal true done() @UserController.tryDeleteUser @req, @res, @next it 'should delete the user', (done) -> @res.sendStatus = (code) => @UserDeleter.deleteUser.callCount.should.equal 1 @UserDeleter.deleteUser.calledWith(@user._id).should.equal true done() @UserController.tryDeleteUser @req, @res, @next describe 'when no password is supplied', -> beforeEach -> @req.body.password = '' it 'should return 403', (done) -> @res.sendStatus = (code) => code.should.equal 403 done() @UserController.tryDeleteUser @req, @res, @next describe 'when authenticate produces an error', -> beforeEach -> @AuthenticationManager.authenticate = sinon.stub().callsArgWith(2, new Error('woops')) it 'should call next with an error', (done) -> @next = (err) => expect(err).to.not.equal null expect(err).to.be.instanceof Error done() @UserController.tryDeleteUser @req, @res, @next describe 'when authenticate does not produce a user', -> beforeEach -> @AuthenticationManager.authenticate = sinon.stub().callsArgWith(2, null, null) it 'should return 403', (done) -> @res.sendStatus = (code) => code.should.equal 403 done() @UserController.tryDeleteUser @req, @res, @next describe 'when deleteUser produces an error', -> beforeEach -> @UserDeleter.deleteUser = sinon.stub().callsArgWith(1, new Error('woops')) it 'should call next with an error', (done) -> @next = (err) => expect(err).to.not.equal null expect(err).to.be.instanceof Error done() @UserController.tryDeleteUser @req, @res, @next describe 'when session.destroy produces an error', -> beforeEach -> @req.session.destroy = sinon.stub().callsArgWith(0, new Error('woops')) it 'should call next with an error', (done) -> @next = (err) => expect(err).to.not.equal null expect(err).to.be.instanceof Error done() @UserController.tryDeleteUser @req, @res, @next describe "unsubscribe", -> it "should send the user to unsubscribe", (done)-> @res.send = (code)=> @NewsLetterManager.unsubscribe.calledWith(@user).should.equal true done() @UserController.unsubscribe @req, @res describe "updateUserSettings", -> beforeEach -> @newEmail = "PI:EMAIL:<EMAIL>END_PI" it "should call save", (done)-> @req.body = {} @res.sendStatus = (code)=> @user.save.called.should.equal true done() @UserController.updateUserSettings @req, @res it "should set the first name", (done)-> @req.body = first_name: "PI:NAME:<NAME>END_PI " @res.sendStatus = (code)=> @user.first_name.should.equal "PI:NAME:<NAME>END_PI" done() @UserController.updateUserSettings @req, @res it "should set the role", (done)-> @req.body = role: "student" @res.sendStatus = (code)=> @user.role.should.equal "student" done() @UserController.updateUserSettings @req, @res it "should set the institution", (done)-> @req.body = institution: "MIT" @res.sendStatus = (code)=> @user.institution.should.equal "MIT" done() @UserController.updateUserSettings @req, @res it "should set some props on ace", (done)-> @req.body = theme: "something" @res.sendStatus = (code)=> @user.ace.theme.should.equal "something" done() @UserController.updateUserSettings @req, @res it "should send an error if the email is 0 len", (done)-> @req.body.email = "" @res.sendStatus = (code)-> code.should.equal 400 done() @UserController.updateUserSettings @req, @res it "should send an error if the email does not contain an @", (done)-> @req.body.email = "bob at something dot com" @res.sendStatus = (code)-> code.should.equal 400 done() @UserController.updateUserSettings @req, @res it "should call the user updater with the new email and user _id", (done)-> @req.body.email = @newEmail.toUpperCase() @UserUpdater.changeEmailAddress.callsArgWith(2) @res.sendStatus = (code)=> code.should.equal 200 @UserUpdater.changeEmailAddress.calledWith(@user_id, @newEmail).should.equal true done() @UserController.updateUserSettings @req, @res it "should update the email on the session", (done)-> @req.body.email = @newEmail.toUpperCase() @UserUpdater.changeEmailAddress.callsArgWith(2) callcount = 0 @User.findById = (id, cb)=> if ++callcount == 2 @user.email = @newEmail cb(null, @user) @res.sendStatus = (code)=> code.should.equal 200 @AuthenticationController.setInSessionUser.calledWith( @req, {email: @newEmail, first_name: undefined, last_name: undefined} ).should.equal true done() @UserController.updateUserSettings @req, @res it "should call populateGroupLicenceInvite", (done)-> @req.body.email = @newEmail.toUpperCase() @UserUpdater.changeEmailAddress.callsArgWith(2) @res.sendStatus = (code)=> code.should.equal 200 @UserHandler.populateGroupLicenceInvite.calledWith(@user).should.equal true done() @UserController.updateUserSettings @req, @res describe 'when using an external auth source', -> beforeEach -> @UserUpdater.changeEmailAddress.callsArgWith(2) @newEmail = 'PI:EMAIL:<EMAIL>END_PI' @settings.ldap = {active: true} afterEach -> delete @settings.ldap it 'should not set a new email', (done) -> @req.body.email = @newEmail @res.sendStatus = (code)=> code.should.equal 200 @UserUpdater.changeEmailAddress.calledWith(@user_id, @newEmail).should.equal false done() @UserController.updateUserSettings @req, @res describe "logout", -> it "should destroy the session", (done)-> @req.session.destroy = sinon.stub().callsArgWith(0) @res.redirect = (url)=> url.should.equal "/login" @req.session.destroy.called.should.equal true done() @UserController.logout @req, @res describe "register", -> beforeEach -> @UserRegistrationHandler.registerNewUserAndSendActivationEmail = sinon.stub().callsArgWith(1, null, @user, @url = "mock/url") @req.body.email = @user.email = @email = "PI:EMAIL:<EMAIL>END_PI" @UserController.register @req, @res it "should register the user and send them an email", -> @UserRegistrationHandler.registerNewUserAndSendActivationEmail .calledWith(@email) .should.equal true it "should return the user and activation url", -> @res.json .calledWith({ email: @email, setNewPasswordUrl: @url }) .should.equal true describe 'clearSessions', -> it 'should call revokeAllUserSessions', (done) -> @UserController.clearSessions @req, @res @UserSessionsManager.revokeAllUserSessions.callCount.should.equal 1 done() it 'send a 201 response', (done) -> @res.sendStatus = (status) => status.should.equal 201 done() @UserController.clearSessions @req, @res describe 'when revokeAllUserSessions produces an error', -> it 'should call next with an error', (done) -> @UserSessionsManager.revokeAllUserSessions.callsArgWith(2, new Error('woops')) next = (err) => expect(err).to.not.equal null expect(err).to.be.instanceof Error done() @UserController.clearSessions @req, @res, next describe "changePassword", -> it "should check the old password is the current one at the moment", (done)-> @AuthenticationManager.authenticate.callsArgWith(2) @req.body = currentPassword: "PI:PASSWORD:<PASSWORD>END_PI" @res.send = => @AuthenticationManager.authenticate.calledWith(_id:@user._id, "PI:PASSWORD:<PASSWORD>END_PI").should.equal true @AuthenticationManager.setUserPassword.called.should.equal false done() @UserController.changePassword @req, @res it "it should not set the new password if they do not match", (done)-> @AuthenticationManager.authenticate.callsArgWith(2, null, {}) @req.body = newPassword1: "PI:PASSWORD:<PASSWORD>END_PI" newPassword2: "PI:PASSWORD:<PASSWORD>END_PI" @res.send = => @AuthenticationManager.setUserPassword.called.should.equal false done() @UserController.changePassword @req, @res it "should set the new password if they do match", (done)-> @AuthenticationManager.authenticate.callsArgWith(2, null, @user) @AuthenticationManager.setUserPassword.callsArgWith(2) @req.body = newPassword1: "PI:PASSWORD:<PASSWORD>END_PI" newPassword2: "PI:PASSWORD:<PASSWORD>END_PI" @res.send = => @AuthenticationManager.setUserPassword.calledWith(@user._id, "PI:PASSWORD:<PASSWORD>END_PI").should.equal true done() @UserController.changePassword @req, @res
[ { "context": "rine automatically\"\n version: '1.0.0'\n author: 'RPMAN'\n link: 'https://github.com/cmrpman'\n reactClas", "end": 890, "score": 0.9997395873069763, "start": 885, "tag": "USERNAME", "value": "RPMAN" }, { "context": ".0'\n author: 'RPMAN'\n link: 'https://github.c...
index.cjsx
cnrpman/plugin-sukumizu-helper
0
{relative, join} = require 'path-extra' fs = require 'fs-extra' {_, $, $$, React, ReactBootstrap, ROOT, resolveTime, layout, toggleModal} = window {Table, ProgressBar, Grid, Input, Col, Alert} = ReactBootstrap {APPDATA_PATH, SERVER_HOSTNAME} = window ss_dat = require join(__dirname,'assets','ss_dat.json') Shiprow = require './shiprow' EXP99 = 1000000 EXPMAX = 5470000 ss = (id) -> ss_dat.ss_mapping[id] getHPcondition = (percent) -> if percent <= 25 4 else if percent <= 50 3 else if percent <= 75 2 else if percent < 100 1 else 0 HPcondition = ['nondamaged', 'slightlydamaged', 'litedamaged', 'middamaged', 'heavydamaged'] module.exports = name: 'sukumizu-helper' priority: 8 displayName: <span><FontAwesome key={0} name='anchor' />{' ' + "Sukumizu Helper"}</span> description: "Choose submerine automatically" version: '1.0.0' author: 'RPMAN' link: 'https://github.com/cmrpman' reactClass: React.createClass getInitialState: -> ss_queue: [] HPcondition_avail: 0 cond_avail: 43 lv_avail: 20 is_show_maruyu: false unix_timestamp: Date.now() data: cond_time_logger: {} cond_fetch_time: Date.now() flush: (ndocks) -> ss_queue = [] ss_in_ndock = {} for ndock in ndocks kn_id = ndock.api_ship_id continue if kn_id == 0 ship_id = _ships[kn_id].api_ship_id ssid = ss(ship_id) continue unless ssid ss_in_ndock[kn_id] = ndock.api_complete_time for kn_id, ship of _ships ship_id = ship.api_ship_id ssid = ss(ship_id) continue unless ssid ss_queue.push kn_id: kn_id ssid: ssid name: ship.api_name exp: ship.api_exp[0] cond: ship.api_cond ndock_finish_time: (if ss_in_ndock[kn_id]? then ss_in_ndock[kn_id] else -1) nowhp: ship.api_nowhp maxhp: ship.api_maxhp HPcond: getHPcondition(ship.api_nowhp * 100 / ship.api_maxhp) lv: ship.api_lv ndock_time: ship.api_ndock_time @data.cond_fetch_time = Date.now() @setState ss_queue: ss_queue flush_timer: () -> @setState unix_timestamp: Date.now() handleResponse: (e) -> {method, path, body, postBody} = e.detail switch path when '/kcsapi/api_port/port' @flush body.api_ndock when '/kcsapi/api_get_member/ndock' @flush body componentDidMount: -> window.addEventListener 'game.response', @handleResponse @interval = setInterval(@flush_timer, 1000); componentWillUnmount: -> window.removeEventListener 'game.response', @handleResponse clearInterval @interval render: -> <div> <link rel="stylesheet" href={join(relative(ROOT, __dirname), 'assets', 'sukumizu-helper.css')} /> { ss_sign = {} ss_queue = [] ss_recommand_queue = [] ss_pending_queue = [] ss_repair_queue = [] ss_avail_queue = [] ss_wait_queue = [] curtime = @state.unix_timestamp for ship in @state.ss_queue if(ship.ssid != ss_dat.maruyu_mapedid || @state.is_show_maruyu) ship.sort_exp = ship.exp ss_queue.push ship #set ss with highest exp to expmax ss_queue.sort((a,b) -> a.exp - b.exp ) ss_queue[ss_queue.length-1].sort_exp = EXPMAX if ss_queue.length - 1 >= 0 #set ss with lv99 to expmax - 1 for ship in ss_queue ship.sort_exp = EXPMAX - 1 if ship.sort_exp == EXP99 #sort using adjusted exp ss_queue.sort((a,b) -> a.sort_exp - b.sort_exp ) for dat,i in ss_queue cont_flag = false dat.wait_type = undefined dat.wait_finish_time = undefined #loss HP if dat.HPcond > @state.HPcondition_avail #need repair but not repaired if dat.ndock_finish_time < 0 dat.wait_finish_time = dat.ndock_time + curtime dat.wait_type = 'need repair' dat.repair_finish_time = dat.ndock_time + curtime ss_repair_queue.push dat #repairing else dat.wait_finish_time = dat.ndock_finish_time dat.wait_type = 'repairing' dat.repair_finish_time = dat.ndock_finish_time ss_pending_queue.push dat cont_flag = true #fatigue if dat.cond < @state.cond_avail ss_pending_queue.push dat unless dat.wait_finish_time #eval cond time? tmp_cond_time = @data.cond_fetch_time + 180000 * Math.ceil((@state.cond_avail - dat.cond) / 3) if !@data.cond_time_logger[dat.kn_id] || Math.abs(tmp_cond_time - @data.cond_time_logger[dat.kn_id]) >= 180000 @data.cond_time_logger[dat.kn_id] = tmp_cond_time else @data.cond_time_logger[dat.kn_id] = Math.min(tmp_cond_time, @data.cond_time_logger[dat.kn_id]) #use logged cond time if longer than repair if !dat.wait_finish_time || dat.wait_finish_time < @data.cond_time_logger[dat.kn_id] dat.wait_finish_time = @data.cond_time_logger[dat.kn_id] #edit type if dat.wait_type dat.wait_type += ' fatigue' else dat.wait_type = 'fatigue' cont_flag = true #not fatigue else @data.cond_time_logger[dat.kn_id] = undefined #rank unmatch if dat.lv < @state.lv_avail cont_flag = true continue if cont_flag #available ss_recommand_queue.push dat [ <h5 className="title">Recommand</h5> <ul> { for dat,i in ss_recommand_queue if ss_sign[dat.ssid] ss_avail_queue.push dat continue ss_sign[dat.ssid] = true; <Shiprow key={"recomms"+i} thename={"recomm"} seq={i} dat={dat} curtime={curtime} showtype={false} showtime={false} HPcondition={HPcondition} /> } </ul> <h5 className="title">Pending</h5> <ul> { ss_pending_queue.sort((a,b) -> a.wait_finish_time - b.wait_finish_time ) for dat,i in ss_pending_queue if ss_sign[dat.ssid] ss_wait_queue.push dat continue ss_sign[dat.ssid] = true; <Shiprow key={"pends"+i} thename={"pend"} seq={i} dat={dat} curtime={curtime} showtype={true} showtime={true} HPcondition={HPcondition} /> } </ul> <h5 className="title">Need Repair</h5> <ul> { #recommand the ship that could be available faster (not only repairing, concerning fatigue) ss_repair_queue.sort((a,b) -> a.wait_finish_time - b.wait_finish_time ) for dat,i in ss_repair_queue <Shiprow key={"repairs"+i} thename={"repair"} seq={i} dat={dat} curtime={curtime} showtype={true} showtime={true} HPcondition={HPcondition} /> } </ul> <h5 className="title">Available</h5> <ul> { for dat,i in ss_avail_queue <Shiprow key={"avails"+i} thename={"avail"} seq={i} dat={dat} curtime={curtime} showtype={false} showtime={false} HPcondition={HPcondition} /> } </ul> <h5 className="title">Waiting</h5> <ul> { for dat,i in ss_wait_queue <Shiprow key={"waits"+i} thename={"wait"} seq={i} dat={dat} curtime={curtime} showtype={true} showtime={true} HPcondition={HPcondition} /> } </ul> ] } </div>
119104
{relative, join} = require 'path-extra' fs = require 'fs-extra' {_, $, $$, React, ReactBootstrap, ROOT, resolveTime, layout, toggleModal} = window {Table, ProgressBar, Grid, Input, Col, Alert} = ReactBootstrap {APPDATA_PATH, SERVER_HOSTNAME} = window ss_dat = require join(__dirname,'assets','ss_dat.json') Shiprow = require './shiprow' EXP99 = 1000000 EXPMAX = 5470000 ss = (id) -> ss_dat.ss_mapping[id] getHPcondition = (percent) -> if percent <= 25 4 else if percent <= 50 3 else if percent <= 75 2 else if percent < 100 1 else 0 HPcondition = ['nondamaged', 'slightlydamaged', 'litedamaged', 'middamaged', 'heavydamaged'] module.exports = name: 'sukumizu-helper' priority: 8 displayName: <span><FontAwesome key={0} name='anchor' />{' ' + "Sukumizu Helper"}</span> description: "Choose submerine automatically" version: '1.0.0' author: 'RPMAN' link: 'https://github.com/cmrpman' reactClass: React.createClass getInitialState: -> ss_queue: [] HPcondition_avail: 0 cond_avail: 43 lv_avail: 20 is_show_maruyu: false unix_timestamp: Date.now() data: cond_time_logger: {} cond_fetch_time: Date.now() flush: (ndocks) -> ss_queue = [] ss_in_ndock = {} for ndock in ndocks kn_id = ndock.api_ship_id continue if kn_id == 0 ship_id = _ships[kn_id].api_ship_id ssid = ss(ship_id) continue unless ssid ss_in_ndock[kn_id] = ndock.api_complete_time for kn_id, ship of _ships ship_id = ship.api_ship_id ssid = ss(ship_id) continue unless ssid ss_queue.push kn_id: kn_id ssid: ssid name: ship.api_name exp: ship.api_exp[0] cond: ship.api_cond ndock_finish_time: (if ss_in_ndock[kn_id]? then ss_in_ndock[kn_id] else -1) nowhp: ship.api_nowhp maxhp: ship.api_maxhp HPcond: getHPcondition(ship.api_nowhp * 100 / ship.api_maxhp) lv: ship.api_lv ndock_time: ship.api_ndock_time @data.cond_fetch_time = Date.now() @setState ss_queue: ss_queue flush_timer: () -> @setState unix_timestamp: Date.now() handleResponse: (e) -> {method, path, body, postBody} = e.detail switch path when '/kcsapi/api_port/port' @flush body.api_ndock when '/kcsapi/api_get_member/ndock' @flush body componentDidMount: -> window.addEventListener 'game.response', @handleResponse @interval = setInterval(@flush_timer, 1000); componentWillUnmount: -> window.removeEventListener 'game.response', @handleResponse clearInterval @interval render: -> <div> <link rel="stylesheet" href={join(relative(ROOT, __dirname), 'assets', 'sukumizu-helper.css')} /> { ss_sign = {} ss_queue = [] ss_recommand_queue = [] ss_pending_queue = [] ss_repair_queue = [] ss_avail_queue = [] ss_wait_queue = [] curtime = @state.unix_timestamp for ship in @state.ss_queue if(ship.ssid != ss_dat.maruyu_mapedid || @state.is_show_maruyu) ship.sort_exp = ship.exp ss_queue.push ship #set ss with highest exp to expmax ss_queue.sort((a,b) -> a.exp - b.exp ) ss_queue[ss_queue.length-1].sort_exp = EXPMAX if ss_queue.length - 1 >= 0 #set ss with lv99 to expmax - 1 for ship in ss_queue ship.sort_exp = EXPMAX - 1 if ship.sort_exp == EXP99 #sort using adjusted exp ss_queue.sort((a,b) -> a.sort_exp - b.sort_exp ) for dat,i in ss_queue cont_flag = false dat.wait_type = undefined dat.wait_finish_time = undefined #loss HP if dat.HPcond > @state.HPcondition_avail #need repair but not repaired if dat.ndock_finish_time < 0 dat.wait_finish_time = dat.ndock_time + curtime dat.wait_type = 'need repair' dat.repair_finish_time = dat.ndock_time + curtime ss_repair_queue.push dat #repairing else dat.wait_finish_time = dat.ndock_finish_time dat.wait_type = 'repairing' dat.repair_finish_time = dat.ndock_finish_time ss_pending_queue.push dat cont_flag = true #fatigue if dat.cond < @state.cond_avail ss_pending_queue.push dat unless dat.wait_finish_time #eval cond time? tmp_cond_time = @data.cond_fetch_time + 180000 * Math.ceil((@state.cond_avail - dat.cond) / 3) if !@data.cond_time_logger[dat.kn_id] || Math.abs(tmp_cond_time - @data.cond_time_logger[dat.kn_id]) >= 180000 @data.cond_time_logger[dat.kn_id] = tmp_cond_time else @data.cond_time_logger[dat.kn_id] = Math.min(tmp_cond_time, @data.cond_time_logger[dat.kn_id]) #use logged cond time if longer than repair if !dat.wait_finish_time || dat.wait_finish_time < @data.cond_time_logger[dat.kn_id] dat.wait_finish_time = @data.cond_time_logger[dat.kn_id] #edit type if dat.wait_type dat.wait_type += ' fatigue' else dat.wait_type = 'fatigue' cont_flag = true #not fatigue else @data.cond_time_logger[dat.kn_id] = undefined #rank unmatch if dat.lv < @state.lv_avail cont_flag = true continue if cont_flag #available ss_recommand_queue.push dat [ <h5 className="title">Recommand</h5> <ul> { for dat,i in ss_recommand_queue if ss_sign[dat.ssid] ss_avail_queue.push dat continue ss_sign[dat.ssid] = true; <Shiprow key={"<KEY>} thename={"recomm"} seq={i} dat={dat} curtime={curtime} showtype={false} showtime={false} HPcondition={HPcondition} /> } </ul> <h5 className="title">Pending</h5> <ul> { ss_pending_queue.sort((a,b) -> a.wait_finish_time - b.wait_finish_time ) for dat,i in ss_pending_queue if ss_sign[dat.ssid] ss_wait_queue.push dat continue ss_sign[dat.ssid] = true; <Shiprow key={"<KEY>} thename={"pend"} seq={i} dat={dat} curtime={curtime} showtype={true} showtime={true} HPcondition={HPcondition} /> } </ul> <h5 className="title">Need Repair</h5> <ul> { #recommand the ship that could be available faster (not only repairing, concerning fatigue) ss_repair_queue.sort((a,b) -> a.wait_finish_time - b.wait_finish_time ) for dat,i in ss_repair_queue <Shiprow key={"rep<KEY>} thename={"repair"} seq={i} dat={dat} curtime={curtime} showtype={true} showtime={true} HPcondition={HPcondition} /> } </ul> <h5 className="title">Available</h5> <ul> { for dat,i in ss_avail_queue <Shiprow key={"<KEY>} thename={"avail"} seq={i} dat={dat} curtime={curtime} showtype={false} showtime={false} HPcondition={HPcondition} /> } </ul> <h5 className="title">Waiting</h5> <ul> { for dat,i in ss_wait_queue <Shiprow key={"<KEY>} thename={"wait"} seq={i} dat={dat} curtime={curtime} showtype={true} showtime={true} HPcondition={HPcondition} /> } </ul> ] } </div>
true
{relative, join} = require 'path-extra' fs = require 'fs-extra' {_, $, $$, React, ReactBootstrap, ROOT, resolveTime, layout, toggleModal} = window {Table, ProgressBar, Grid, Input, Col, Alert} = ReactBootstrap {APPDATA_PATH, SERVER_HOSTNAME} = window ss_dat = require join(__dirname,'assets','ss_dat.json') Shiprow = require './shiprow' EXP99 = 1000000 EXPMAX = 5470000 ss = (id) -> ss_dat.ss_mapping[id] getHPcondition = (percent) -> if percent <= 25 4 else if percent <= 50 3 else if percent <= 75 2 else if percent < 100 1 else 0 HPcondition = ['nondamaged', 'slightlydamaged', 'litedamaged', 'middamaged', 'heavydamaged'] module.exports = name: 'sukumizu-helper' priority: 8 displayName: <span><FontAwesome key={0} name='anchor' />{' ' + "Sukumizu Helper"}</span> description: "Choose submerine automatically" version: '1.0.0' author: 'RPMAN' link: 'https://github.com/cmrpman' reactClass: React.createClass getInitialState: -> ss_queue: [] HPcondition_avail: 0 cond_avail: 43 lv_avail: 20 is_show_maruyu: false unix_timestamp: Date.now() data: cond_time_logger: {} cond_fetch_time: Date.now() flush: (ndocks) -> ss_queue = [] ss_in_ndock = {} for ndock in ndocks kn_id = ndock.api_ship_id continue if kn_id == 0 ship_id = _ships[kn_id].api_ship_id ssid = ss(ship_id) continue unless ssid ss_in_ndock[kn_id] = ndock.api_complete_time for kn_id, ship of _ships ship_id = ship.api_ship_id ssid = ss(ship_id) continue unless ssid ss_queue.push kn_id: kn_id ssid: ssid name: ship.api_name exp: ship.api_exp[0] cond: ship.api_cond ndock_finish_time: (if ss_in_ndock[kn_id]? then ss_in_ndock[kn_id] else -1) nowhp: ship.api_nowhp maxhp: ship.api_maxhp HPcond: getHPcondition(ship.api_nowhp * 100 / ship.api_maxhp) lv: ship.api_lv ndock_time: ship.api_ndock_time @data.cond_fetch_time = Date.now() @setState ss_queue: ss_queue flush_timer: () -> @setState unix_timestamp: Date.now() handleResponse: (e) -> {method, path, body, postBody} = e.detail switch path when '/kcsapi/api_port/port' @flush body.api_ndock when '/kcsapi/api_get_member/ndock' @flush body componentDidMount: -> window.addEventListener 'game.response', @handleResponse @interval = setInterval(@flush_timer, 1000); componentWillUnmount: -> window.removeEventListener 'game.response', @handleResponse clearInterval @interval render: -> <div> <link rel="stylesheet" href={join(relative(ROOT, __dirname), 'assets', 'sukumizu-helper.css')} /> { ss_sign = {} ss_queue = [] ss_recommand_queue = [] ss_pending_queue = [] ss_repair_queue = [] ss_avail_queue = [] ss_wait_queue = [] curtime = @state.unix_timestamp for ship in @state.ss_queue if(ship.ssid != ss_dat.maruyu_mapedid || @state.is_show_maruyu) ship.sort_exp = ship.exp ss_queue.push ship #set ss with highest exp to expmax ss_queue.sort((a,b) -> a.exp - b.exp ) ss_queue[ss_queue.length-1].sort_exp = EXPMAX if ss_queue.length - 1 >= 0 #set ss with lv99 to expmax - 1 for ship in ss_queue ship.sort_exp = EXPMAX - 1 if ship.sort_exp == EXP99 #sort using adjusted exp ss_queue.sort((a,b) -> a.sort_exp - b.sort_exp ) for dat,i in ss_queue cont_flag = false dat.wait_type = undefined dat.wait_finish_time = undefined #loss HP if dat.HPcond > @state.HPcondition_avail #need repair but not repaired if dat.ndock_finish_time < 0 dat.wait_finish_time = dat.ndock_time + curtime dat.wait_type = 'need repair' dat.repair_finish_time = dat.ndock_time + curtime ss_repair_queue.push dat #repairing else dat.wait_finish_time = dat.ndock_finish_time dat.wait_type = 'repairing' dat.repair_finish_time = dat.ndock_finish_time ss_pending_queue.push dat cont_flag = true #fatigue if dat.cond < @state.cond_avail ss_pending_queue.push dat unless dat.wait_finish_time #eval cond time? tmp_cond_time = @data.cond_fetch_time + 180000 * Math.ceil((@state.cond_avail - dat.cond) / 3) if !@data.cond_time_logger[dat.kn_id] || Math.abs(tmp_cond_time - @data.cond_time_logger[dat.kn_id]) >= 180000 @data.cond_time_logger[dat.kn_id] = tmp_cond_time else @data.cond_time_logger[dat.kn_id] = Math.min(tmp_cond_time, @data.cond_time_logger[dat.kn_id]) #use logged cond time if longer than repair if !dat.wait_finish_time || dat.wait_finish_time < @data.cond_time_logger[dat.kn_id] dat.wait_finish_time = @data.cond_time_logger[dat.kn_id] #edit type if dat.wait_type dat.wait_type += ' fatigue' else dat.wait_type = 'fatigue' cont_flag = true #not fatigue else @data.cond_time_logger[dat.kn_id] = undefined #rank unmatch if dat.lv < @state.lv_avail cont_flag = true continue if cont_flag #available ss_recommand_queue.push dat [ <h5 className="title">Recommand</h5> <ul> { for dat,i in ss_recommand_queue if ss_sign[dat.ssid] ss_avail_queue.push dat continue ss_sign[dat.ssid] = true; <Shiprow key={"PI:KEY:<KEY>END_PI} thename={"recomm"} seq={i} dat={dat} curtime={curtime} showtype={false} showtime={false} HPcondition={HPcondition} /> } </ul> <h5 className="title">Pending</h5> <ul> { ss_pending_queue.sort((a,b) -> a.wait_finish_time - b.wait_finish_time ) for dat,i in ss_pending_queue if ss_sign[dat.ssid] ss_wait_queue.push dat continue ss_sign[dat.ssid] = true; <Shiprow key={"PI:KEY:<KEY>END_PI} thename={"pend"} seq={i} dat={dat} curtime={curtime} showtype={true} showtime={true} HPcondition={HPcondition} /> } </ul> <h5 className="title">Need Repair</h5> <ul> { #recommand the ship that could be available faster (not only repairing, concerning fatigue) ss_repair_queue.sort((a,b) -> a.wait_finish_time - b.wait_finish_time ) for dat,i in ss_repair_queue <Shiprow key={"repPI:KEY:<KEY>END_PI} thename={"repair"} seq={i} dat={dat} curtime={curtime} showtype={true} showtime={true} HPcondition={HPcondition} /> } </ul> <h5 className="title">Available</h5> <ul> { for dat,i in ss_avail_queue <Shiprow key={"PI:KEY:<KEY>END_PI} thename={"avail"} seq={i} dat={dat} curtime={curtime} showtype={false} showtime={false} HPcondition={HPcondition} /> } </ul> <h5 className="title">Waiting</h5> <ul> { for dat,i in ss_wait_queue <Shiprow key={"PI:KEY:<KEY>END_PI} thename={"wait"} seq={i} dat={dat} curtime={curtime} showtype={true} showtime={true} HPcondition={HPcondition} /> } </ul> ] } </div>
[ { "context": "strap TypeAhead editor 2.0.0\n\n Copyright (c) 2016 Tomasz Jakub Rup\n\n https://github.com/tomi77/backbone-forms-typea", "end": 92, "score": 0.9998733997344971, "start": 76, "tag": "NAME", "value": "Tomasz Jakub Rup" }, { "context": "t (c) 2016 Tomasz Jakub Rup\n\n ...
src/index.coffee
tomi77/backbone-forms-typeahead
1
### Backbone-Forms Bootstrap TypeAhead editor 2.0.0 Copyright (c) 2016 Tomasz Jakub Rup https://github.com/tomi77/backbone-forms-typeahead Released under the MIT license ### ((root, factory) -> switch when typeof define is 'function' and define.amd define ['underscore', 'backbone', 'backbone-forms', 'typeahead.js'], factory when typeof exports is 'object' require('backbone-forms') require('typeahead.js') factory require('underscore'), require('backbone') else factory root._, root.Backbone return ) @, (_, Backbone) -> Form = Backbone.Form Base = Form.editors.Base Text = Form.editors.Text ### Additional editors that depend on Twitter TypeAhead ### Form.editors.TypeAhead = Text.extend initialize: (options) -> Base::initialize.call @, options _.bindAll @, 'renderOptions' @$el.attr type: 'text' 'data-provide': 'typeahead' autocomplete: 'off' unless @schema?.options? throw new Error "Missing required 'schema.options'" return ### Adds the editor to the DOM ### render: () -> @setValue @value @setOptions @schema.options @ ### Sets the options that populate the data-source attribute @param {Mixed} options ### setOptions: (options) -> switch # If a collection was passed, check if it needs fetching when options instanceof Backbone.Collection # Don't do the fetch if it's already populated if options.length > 0 @renderOptions options else options.fetch success: @renderOptions # If a function was passed, run it to get the options when _.isFunction options options @renderOptions, @ # Otherwise, ready to go straight to renderOptions else @renderOptions options return ### Adds the data-source attribute to the input element @param {Mixed} Options as a simple array e.g. ['option1', 'option2'] or as a Backbone collection ### renderOptions: (options) -> source = switch # Accept array when _.isArray options options # Or Backbone collection when options instanceof Backbone.Collection options.map (row) -> row.toString() # Insert options @$el.data items: source.length source: source # Select correct option @setValue @value return return
98247
### Backbone-Forms Bootstrap TypeAhead editor 2.0.0 Copyright (c) 2016 <NAME> https://github.com/tomi77/backbone-forms-typeahead Released under the MIT license ### ((root, factory) -> switch when typeof define is 'function' and define.amd define ['underscore', 'backbone', 'backbone-forms', 'typeahead.js'], factory when typeof exports is 'object' require('backbone-forms') require('typeahead.js') factory require('underscore'), require('backbone') else factory root._, root.Backbone return ) @, (_, Backbone) -> Form = Backbone.Form Base = Form.editors.Base Text = Form.editors.Text ### Additional editors that depend on Twitter TypeAhead ### Form.editors.TypeAhead = Text.extend initialize: (options) -> Base::initialize.call @, options _.bindAll @, 'renderOptions' @$el.attr type: 'text' 'data-provide': 'typeahead' autocomplete: 'off' unless @schema?.options? throw new Error "Missing required 'schema.options'" return ### Adds the editor to the DOM ### render: () -> @setValue @value @setOptions @schema.options @ ### Sets the options that populate the data-source attribute @param {Mixed} options ### setOptions: (options) -> switch # If a collection was passed, check if it needs fetching when options instanceof Backbone.Collection # Don't do the fetch if it's already populated if options.length > 0 @renderOptions options else options.fetch success: @renderOptions # If a function was passed, run it to get the options when _.isFunction options options @renderOptions, @ # Otherwise, ready to go straight to renderOptions else @renderOptions options return ### Adds the data-source attribute to the input element @param {Mixed} Options as a simple array e.g. ['option1', 'option2'] or as a Backbone collection ### renderOptions: (options) -> source = switch # Accept array when _.isArray options options # Or Backbone collection when options instanceof Backbone.Collection options.map (row) -> row.toString() # Insert options @$el.data items: source.length source: source # Select correct option @setValue @value return return
true
### Backbone-Forms Bootstrap TypeAhead editor 2.0.0 Copyright (c) 2016 PI:NAME:<NAME>END_PI https://github.com/tomi77/backbone-forms-typeahead Released under the MIT license ### ((root, factory) -> switch when typeof define is 'function' and define.amd define ['underscore', 'backbone', 'backbone-forms', 'typeahead.js'], factory when typeof exports is 'object' require('backbone-forms') require('typeahead.js') factory require('underscore'), require('backbone') else factory root._, root.Backbone return ) @, (_, Backbone) -> Form = Backbone.Form Base = Form.editors.Base Text = Form.editors.Text ### Additional editors that depend on Twitter TypeAhead ### Form.editors.TypeAhead = Text.extend initialize: (options) -> Base::initialize.call @, options _.bindAll @, 'renderOptions' @$el.attr type: 'text' 'data-provide': 'typeahead' autocomplete: 'off' unless @schema?.options? throw new Error "Missing required 'schema.options'" return ### Adds the editor to the DOM ### render: () -> @setValue @value @setOptions @schema.options @ ### Sets the options that populate the data-source attribute @param {Mixed} options ### setOptions: (options) -> switch # If a collection was passed, check if it needs fetching when options instanceof Backbone.Collection # Don't do the fetch if it's already populated if options.length > 0 @renderOptions options else options.fetch success: @renderOptions # If a function was passed, run it to get the options when _.isFunction options options @renderOptions, @ # Otherwise, ready to go straight to renderOptions else @renderOptions options return ### Adds the data-source attribute to the input element @param {Mixed} Options as a simple array e.g. ['option1', 'option2'] or as a Backbone collection ### renderOptions: (options) -> source = switch # Accept array when _.isArray options options # Or Backbone collection when options instanceof Backbone.Collection options.map (row) -> row.toString() # Insert options @$el.data items: source.length source: source # Select correct option @setValue @value return return
[ { "context": "RD_CHECK(\n\t\t p_username => $1,\n\t\t\tp_password => $2,\n\t\t\tp_old_password => $3,\n\t\t\tp_workspace_name => ", "end": 264550, "score": 0.5938345193862915, "start": 264549, "tag": "PASSWORD", "value": "2" }, { "context": "e => $1,\n\t\t\tp_password => $2,\n\t\t\t...
OldSnippetPackage/lib/5.0/AfterSeedOmitUpper.cson
insum-labs/atom-apex-snippet
2
'.source.sql, .source.pkb, .source.pks, .source.plsql': #URL: http://docs.oracle.com/database/apex-5.1/AEAPI/Global-Variables.htm 'apex_application.g_browser_language': 'prefix': 'apex_application.g_browser_language' 'body': """APEX_APPLICATION.G_BROWSER_LANGUAGE""" 'description': 'Refers to the web browser\'s current language preference.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/AEAPI/Global-Variables.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/AEAPI/Global-Variables.htm 'apex_application.g_debug': 'prefix': 'apex_application.g_debug' 'body': """APEX_APPLICATION.G_DEBUG""" 'description': 'Refers to whether debugging is currently switched on or off. Valid values for the DEBUG flag are \'Yes\' or \'No\'. Turning debug on shows details about application processing.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/AEAPI/Global-Variables.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/AEAPI/Global-Variables.htm 'apex_application.g_flow_id': 'prefix': 'apex_application.g_flow_id' 'body': """APEX_APPLICATION.G_FLOW_ID""" 'description': 'Specifies the ID of the currently running application.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/AEAPI/Global-Variables.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/AEAPI/Global-Variables.htm 'apex_application.g_flow_owner': 'prefix': 'apex_application.g_flow_owner' 'body': """APEX_APPLICATION.G_FLOW_OWNER""" 'description': 'Specifies the schema to parse for the currently running application.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/AEAPI/Global-Variables.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/AEAPI/Global-Variables.htm 'apex_application.g_flow_schema_owner': 'prefix': 'apex_application.g_flow_schema_owner' 'body': """APEX_APPLICATION.G_FLOW_SCHEMA_OWNER""" 'description': 'Refers to the owner of the Application Express schema.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/AEAPI/Global-Variables.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/AEAPI/Global-Variables.htm 'apex_application.g_flow_step_id': 'prefix': 'apex_application.g_flow_step_id' 'body': """APEX_APPLICATION.G_FLOW_STEP_ID""" 'description': 'Specifies the ID of the currently running page.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/AEAPI/Global-Variables.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/AEAPI/Global-Variables.htm 'apex_application.g_global_notification': 'prefix': 'apex_application.g_global_notification' 'body': """APEX_APPLICATION.G_GLOBAL_NOTIFICATION""" 'description': 'Specifies the application\'s global notification attribute.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/AEAPI/Global-Variables.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/AEAPI/Global-Variables.htm 'apex_application.g_home_link': 'prefix': 'apex_application.g_home_link' 'body': """APEX_APPLICATION.G_HOME_LINK""" 'description': 'Refers to the home page of an application. The Application Express engine redirects to this location if no page is given and if no alternative page is dictated by the authentication scheme\'s logic.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/AEAPI/Global-Variables.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/AEAPI/Global-Variables.htm 'apex_application.g_image_prefix': 'prefix': 'apex_application.g_image_prefix' 'body': """APEX_APPLICATION.G_IMAGE_PREFIX""" 'description': 'Refers to the virtual path the web server uses to point to the images directory distributed with Oracle Application Express.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/AEAPI/Global-Variables.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/AEAPI/Global-Variables.htm 'apex_application.g_login_url': 'prefix': 'apex_application.g_login_url' 'body': """APEX_APPLICATION.G_LOGIN_URL""" 'description': 'Used to display a link to a login page for users that are not currently logged in.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/AEAPI/Global-Variables.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/AEAPI/Global-Variables.htm 'apex_application.g_printer_friendly': 'prefix': 'apex_application.g_printer_friendly' 'body': """APEX_APPLICATION.G_PRINTER_FRIENDLY""" 'description': 'Refers to whether the Application Express engine is running in print view mode. This setting can be referenced in conditions to eliminate elements not desired in a printed document from a page.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/AEAPI/Global-Variables.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/AEAPI/Global-Variables.htm 'apex_application.g_proxy_server': 'prefix': 'apex_application.g_proxy_server' 'body': """APEX_APPLICATION.G_PROXY_SERVER""" 'description': 'Refers to the application attribute \'Proxy Server\'.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/AEAPI/Global-Variables.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/AEAPI/Global-Variables.htm 'apex_application.g_public_user': 'prefix': 'apex_application.g_public_user' 'body': """APEX_APPLICATION.G_PUBLIC_USER""" 'description': 'Refers to the Oracle schema used to connect to the database through the database access descriptor (DAD).' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/AEAPI/Global-Variables.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/AEAPI/Global-Variables.htm 'apex_application.g_request': 'prefix': 'apex_application.g_request' 'body': """APEX_APPLICATION.G_REQUEST""" 'description': 'Specifies the value of the request variable most recently passed to or set within the show or accept modules.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/AEAPI/Global-Variables.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/AEAPI/Global-Variables.htm 'apex_application.g_sysdate': 'prefix': 'apex_application.g_sysdate' 'body': """APEX_APPLICATION.G_SYSDATE""" 'description': 'Refers to the current date on the database server. this uses the DATE DATATYPE.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/AEAPI/Global-Variables.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/AEAPI/Global-Variables.htm 'apex_application.g_user': 'prefix': 'apex_application.g_user' 'body': """APEX_APPLICATION.G_USER""" 'description': 'Specifies the currently logged in user.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/AEAPI/Global-Variables.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app.htm#AEAPI552 'apex_application.help': 'prefix': 'apex_application.help' 'body': """APEX_APPLICATION.HELP""" 'description': 'This function outputs page and item level help text as formatted HTML. You can also use it to customize how help information is displayed in your application.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app.htm#AEAPI552' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app.htm#AEAPI2193 'apex_application.stop_apex_engine': 'prefix': 'apex_application.stop_apex_engine' 'body': """APEX_APPLICATION.STOP_APEX_ENGINE""" 'description': 'This procedure signals the Application Express engine to stop further processing and immediately exit to avoid adding additional HTML code to the HTTP buffer.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app.htm#AEAPI2193' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI566 'apex_application_install.clear_all': 'prefix': 'apex_application_install.clear_all' 'body': """APEX_APPLICATION_INSTALL.CLEAR_ALL""" 'description': 'This procedure clears all values currently maintained in the APEX_APPLICATION_INSTALL package.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI566' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI570 'apex_application_install.generate_application_id': 'prefix': 'apex_application_install.generate_application_id' 'body': """APEX_APPLICATION_INSTALL.GENERATE_APPLICATION_ID""" 'description': 'This procedure generates an available application ID on the instance and sets the application ID in APEX_APPLICATION_INSTALL.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI570' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI574 'apex_application_install.generate_offset': 'prefix': 'apex_application_install.generate_offset' 'body': """APEX_APPLICATION_INSTALL.GENERATE_OFFSET""" 'description': 'This procedure generates the offset value used during application import. Use the offset value to ensure that the metadata for the Application Express application definition does not collide with other metadata on the instance. For a new application installation, it is usually sufficient to call this procedure to have Application Express generate this offset value for you.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI574' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI578 'apex_application_install.get_application_alias': 'prefix': 'apex_application_install.get_application_alias' 'body': """APEX_APPLICATION_INSTALL.GET_APPLICATION_ALIAS""" 'description': 'This function gets the application alias for the application to be imported. This is only used if the application to be imported has an alias specified. An application alias must be unique within a workspace and it is recommended to be unique within an instance.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI578' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI582 'apex_application_install.get_application_id': 'prefix': 'apex_application_install.get_application_id' 'body': """APEX_APPLICATION_INSTALL.GET_APPLICATION_ID""" 'description': 'Use this function to get the application ID of the application to be imported. The application ID should either not exist in the instance or, if it does exist, must be in the workspace where the application is being imported to.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI582' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI586 'apex_application_install.get_application_name': 'prefix': 'apex_application_install.get_application_name' 'body': """APEX_APPLICATION_INSTALL.GET_APPLICATION_NAME""" 'description': 'This function gets the application name of the import application.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI586' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI30120 'apex_application_install.get_auto_install_sup_obj': 'prefix': 'apex_application_install.get_auto_install_sup_obj' 'body': """APEX_APPLICATION_INSTALL.GET_AUTO_INSTALL_SUP_OBJ""" 'description': 'Use this function to get the automatic install of supporting objects setting used during the import of an application. This setting is valid only for command line installs. If the setting is set to TRUE and the application export contains supporting objects, it automatically installs or upgrades the supporting objects when an application imports from the command line.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI30120' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI590 'apex_application_install.get_image_prefix': 'prefix': 'apex_application_install.get_image_prefix' 'body': """APEX_APPLICATION_INSTALL.GET_IMAGE_PREFIX""" 'description': 'This function gets the image prefix of the import application. Most Application Express instances use the default image prefix of /i/.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI590' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI594 'apex_application_install.get_offset': 'prefix': 'apex_application_install.get_offset' 'body': """APEX_APPLICATION_INSTALL.GET_OFFSET""" 'description': 'Use function to get the offset value used during the import of an application.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI594' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI598 'apex_application_install.get_proxy': 'prefix': 'apex_application_install.get_proxy' 'body': """APEX_APPLICATION_INSTALL.GET_PROXY""" 'description': 'Use this function to get the proxy server attribute of an application to be imported.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI598' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI602 'apex_application_install.get_schema': 'prefix': 'apex_application_install.get_schema' 'body': """APEX_APPLICATION_INSTALL.GET_SCHEMA""" 'description': 'Use this function to get the parsing schema ("owner") of the Application Express application.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI602' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI606 'apex_application_install.get_workspace_id': 'prefix': 'apex_application_install.get_workspace_id' 'body': """APEX_APPLICATION_INSTALL.GET_WORKSPACE_ID""" 'description': 'Use this function to get the workspace ID for the application to be imported.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI606' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI610 'apex_application_install.set_application_alias': 'prefix': 'apex_application_install.set_application_alias' 'body': """APEX_APPLICATION_INSTALL.SET_APPLICATION_ALIAS( p_application_alias => $1 );$2""" 'description': 'This procedure sets the application alias for the application to be imported. This is only used if the application to be imported has an alias specified. An application alias must be unique within a workspace and it is recommended to be unique within an instance.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI610' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI615 'apex_application_install.set_application_id': 'prefix': 'apex_application_install.set_application_id' 'body': """APEX_APPLICATION_INSTALL.SET_APPLICATION_ID( p_application_id => $1 );$2""" 'description': 'Use this procedure to set the application ID of the application to be imported. The application ID should either not exist in the instance or, if it does exist, must be in the workspace where the application is being imported to. This number must be a positive integer and must not be from the reserved range of Application Express application IDs.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI615' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI620 'apex_application_install.set_application_name': 'prefix': 'apex_application_install.set_application_name' 'body': """APEX_APPLICATION_INSTALL.SET_APPLICATION_NAME( p_application_name => $1 );$2""" 'description': 'This procedure sets the application name of the import application.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI620' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI30124 'apex_application_install.set_auto_install_sup_obj': 'prefix': 'apex_application_install.set_auto_install_sup_obj' 'body': """APEX_APPLICATION_INSTALL.SET_AUTO_INSTALL_SUP_OBJ( p_auto_install_sup_obj => $1 );$2""" 'description': 'This procedure sets the automatic install of supporting objects value used during application import. This setting is valid only for command line installs. If the value is set to TRUE and the application export contains supporting objects, it automatically installs or upgrades the supporting objects when an application imports from the command line.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI30124' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI625 'apex_application_install.set_image_prefix': 'prefix': 'apex_application_install.set_image_prefix' 'body': """APEX_APPLICATION_INSTALL.SET_IMAGE_PREFIX( p_image_prefix => $1 );$2""" 'description': 'This procedure sets the image prefix of the import application. Most Application Express instances use the default image prefix of /i/.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI625' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI630 'apex_application_install.set_offset': 'prefix': 'apex_application_install.set_offset' 'body': """APEX_APPLICATION_INSTALL.SET_OFFSET( p_offset => $1 );$2""" 'description': 'This procedure sets the offset value used during application import. Use the offset value to ensure that the metadata for the Application Express application definition does not collide with other metadata on the instance. For a new application installation, it is usually sufficient to call the generate_offset procedure to have Application Express generate this offset value for you.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI630' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI635 'apex_application_install.set_proxy': 'prefix': 'apex_application_install.set_proxy' 'body': """APEX_APPLICATION_INSTALL.SET_PROXY( p_proxy => $1 );$2""" 'description': 'Use this procedure to set the proxy server attributes of an application to be imported.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI635' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI640 'apex_application_install.set_schema': 'prefix': 'apex_application_install.set_schema' 'body': """APEX_APPLICATION_INSTALL.SET_SCHEMA( p_schema => $1 );$2""" 'description': 'Use this function to set the parsing schema ("owner") of the Application Express application. The database user of this schema must already exist, and this schema name must already be mapped to the workspace used to import the application.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI640' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI645 'apex_application_install.set_workspace_id': 'prefix': 'apex_application_install.set_workspace_id' 'body': """APEX_APPLICATION_INSTALL.SET_WORKSPACE_ID( p_workspace_id => $1 );$2""" 'description': 'Use this function to set the workspace ID for the application to be imported.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI645' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_authentication.htm#AEAPI29133 'apex_authentication.callback': 'prefix': 'apex_authentication.callback' 'body': """APEX_AUTHENTICATION.CALLBACK( p_session_id => $1, p_app_id => $2, p_ajax_identifier => $3 );$4""" 'description': 'This procedure is the landing resource for external login pages. Call this procedure directly from the browser.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_authentication.htm#AEAPI29133' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_authentication.htm#AEAPI29139 'apex_authentication.get_callback_url': 'prefix': 'apex_authentication.get_callback_url' 'body': """APEX_AUTHENTICATION.GET_CALLBACK_URL""" 'description': 'This function is a plugin helper function to return a URL that is used as a landing request for external login pages. When the browser sends the request, it triggers the authentication plugin ajax callback, which can be used to log the user in.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_authentication.htm#AEAPI29139' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_authentication.htm#AEAPI29144 'apex_authentication.get_login_username_cookie': 'prefix': 'apex_authentication.get_login_username_cookie' 'body': """APEX_AUTHENTICATION.GET_LOGIN_USERNAME_COOKIE""" 'description': 'This function reads the cookie with the username from the default login page.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_authentication.htm#AEAPI29144' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_authentication.htm#AEAPI29149 'apex_authentication.is_authenticated': 'prefix': 'apex_authentication.is_authenticated' 'body': """APEX_AUTHENTICATION.IS_AUTHENTICATED""" 'description': 'This function checks if the user is authenticated in the session and returns TRUE if the user is already logged in or FALSE if the user of the current session is not yet authenticated.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_authentication.htm#AEAPI29149' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_authentication.htm#AEAPI29153 'apex_authentication.is_public_user': 'prefix': 'apex_authentication.is_public_user' 'body': """APEX_AUTHENTICATION.IS_PUBLIC_USER""" 'description': 'This function checks if the user is not authenticated in the session. A FALSE is returned if the user is already logged on or TRUE if the user of the current session is not yet authenticated.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_authentication.htm#AEAPI29153' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_authentication.htm#AEAPI29157 'apex_authentication.login': 'prefix': 'apex_authentication.login' 'body': """APEX_AUTHENTICATION.LOGIN( p_username => $1, p_password => $2 );$3""" 'description': 'This procedure authenticates the user in the current session.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_authentication.htm#AEAPI29157' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_authentication.htm#AEAPI29162 'apex_authentication.logout': 'prefix': 'apex_authentication.logout' 'body': """APEX_AUTHENTICATION.LOGOUT( p_session_id => $1, p_app_id => $2 );$3""" 'description': 'This procedure closes the session and redirects to the applicatio\'s home page. Call this procedure directly from the browser.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_authentication.htm#AEAPI29162' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_authentication.htm#AEAPI29167 'apex_authentication.post_login': 'prefix': 'apex_authentication.post_login' 'body': """APEX_AUTHENTICATION.POST_LOGIN( p_username => $1, p_password => $2 );$3""" 'description': 'This procedure authenticates the user in the current session. It runs a subset of login(), without steps 1 and 2. For steps, see "LOGIN Procedure." It is primarily useful in authentication schemes where user credentials checking is done externally to Application Express.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_authentication.htm#AEAPI29167' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_authentication.htm#AEAPI29172 'apex_authentication.send_login_username_cookie': 'prefix': 'apex_authentication.send_login_username_cookie' 'body': """APEX_AUTHENTICATION.SEND_LOGIN_USERNAME_COOKIE( p_username => $1 );$2""" 'description': 'This procedure sends a cookie with the username.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_authentication.htm#AEAPI29172' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_authorization.htm#AEAPI29592 'apex_authorization.enable_dynamic_groups': 'prefix': 'apex_authorization.enable_dynamic_groups' 'body': """APEX_AUTHORIZATION.ENABLE_DYNAMIC_GROUPS( p_group_names => $1 );$2""" 'description': 'This procedure enables groups in the current session. These groups do not have to be created in the Application Express workspace repository, but can, for example, be loaded from a LDAP repository. Enabling a group that exists in the workspace repository and has other groups granted to it, also enables the granted groups.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_authorization.htm#AEAPI29592' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_authorization.htm#AEAPI29597 'apex_authorization.is_authorized': 'prefix': 'apex_authorization.is_authorized' 'body': """APEX_AUTHORIZATION.IS_AUTHORIZED( p_authorization_name => $1 );$2""" 'description': 'Determine if the current user passes the authorization with name p_authorization_name. For performance reasons, authorization results are cached. Because of this, the function may not always evaluate the authorization when called, but take the result out of the cache.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_authorization.htm#AEAPI29597' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_authorization.htm#AEAPI29604 'apex_authorization.reset_cache': 'prefix': 'apex_authorization.reset_cache' 'body': """APEX_AUTHORIZATION.RESET_CACHE""" 'description': 'This procedure resets the authorization caches for the session and forces a re-evaluation when an authorization is checked next.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_authorization.htm#AEAPI29604' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI680 'apex_collection.add_member': 'prefix': 'apex_collection.add_member' 'body': """APEX_COLLECTION.ADD_MEMBER( p_collection_name => $1 );$2""" 'description': 'Use this procedure to add a new member to an existing collection. An error is raised if the specified collection does not exist for the current user in the same session for the current Application ID. Gaps are not used when adding a new member, so an existing collection with members of sequence IDs (1,2,5,8) adds the new member with a sequence ID of 9.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI680' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI685 'apex_collection.add_member2': 'prefix': 'apex_collection.add_member2' 'body': """APEX_COLLECTION.ADD_MEMBER2( p_collection_name => $1 );$2""" 'description': 'Use this function to add a new member to an existing collection. Calling this function returns the sequence ID of the newly added member. An error is raised if the specified collection does not exist for the current user in the same session for the current Application ID. Gaps are not used when adding a new member, so an existing collection with members of sequence IDs (1,2,5,8) adds the new member with a sequence ID of 9.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI685' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI690 'apex_collection.add_members': 'prefix': 'apex_collection.add_members' 'body': """APEX_COLLECTION.ADD_MEMBERS( p_collection_name => $1 );$2""" 'description': 'Use this procedure to add an array of members to a collection. An error is raised if the specified collection does not exist for the current user in the same session for the current Application ID. Gaps are not used when adding a new member, so an existing collection with members of sequence IDs (1,2,5,8) adds the new member with a sequence ID of 9. The count of elements in the p_c001 PL/SQL table is used as the total number of items across all PL/SQL tables. For example, if p_c001.count is 2 and p_c002.count is 10, only 2 members are added. If p_c001 is null an application error is raised.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI690' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI695 'apex_collection.collection_exists': 'prefix': 'apex_collection.collection_exists' 'body': """APEX_COLLECTION.COLLECTION_EXISTS( p_collection_name => $1 );$2""" 'description': 'Use this function to determine if a collection exists. A TRUE is returned if the specified collection exists for the current user in the current session for the current Application ID, otherwise FALSE is returned.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI695' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI700 'apex_collection.collection_has_changed': 'prefix': 'apex_collection.collection_has_changed' 'body': """APEX_COLLECTION.COLLECTION_HAS_CHANGED( p_collection_name => $1 );$2""" 'description': 'Use this function to determine if a collection has changed since it was created or the collection changed flag was reset.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI700' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI705 'apex_collection.collection_member_count': 'prefix': 'apex_collection.collection_member_count' 'body': """APEX_COLLECTION.COLLECTION_MEMBER_COUNT( p_collection_name => $1 );$2""" 'description': 'Use this function to get the total number of members for the named collection. If gaps exist, the total member count returned is not equal to the highest sequence ID in the collection. If the named collection does not exist for the current user in the current session, an error is raised.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI705' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI710 'apex_collection.create_collection': 'prefix': 'apex_collection.create_collection' 'body': """APEX_COLLECTION.CREATE_COLLECTION( p_collection_name => $1 );$2""" 'description': 'Use this procedure to create an empty collection that does not already exist. If a collection exists with the same name for the current user in the same session for the current Application ID, an application error is raised.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI710' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI720 'apex_collection.create_collection_from_query': 'prefix': 'apex_collection.create_collection_from_query' 'body': """APEX_COLLECTION.CREATE_COLLECTION_FROM_QUERY( p_collection_name => $1, p_query => $2 );$3""" 'description': 'Use this procedure to create a collection from a supplied query. The query is parsed as the application owner. This method can be used with a query with up to 50 columns in the SELECT clause. These columns in the SELECT clause populates the 50 character attributes of the collection (C001 through C050). If a collection exists with the same name for the current user in the same session for the current Application ID, an application error is raised.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI720' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI725 'apex_collection.create_collection_from_query2': 'prefix': 'apex_collection.create_collection_from_query2' 'body': """APEX_COLLECTION.CREATE_COLLECTION_FROM_QUERY2( p_collection_name => $1, p_query => $2 );$3""" 'description': 'Use this procedure to create a collection from a supplied query. This method is identical to CREATE_COLLECTION_FROM_QUERY, however, the first 5 columns of the SELECT clause must be numeric and the next 5 must be date. After the numeric and date columns, there can be up to 50 character columns in the SELECT clause. The query is parsed as the application owner. If a collection exists with the same name for the current user in the same session for the current Application ID, an application error is raised.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI725' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI730 'apex_collection.create_collection_from_query_b': 'prefix': 'apex_collection.create_collection_from_query_b' 'body': """APEX_COLLECTION.CREATE_COLLECTION_FROM_QUERY_B( p_collection_name => $1, p_query => $2, p_names => $3, p_values => $4, p_max_row_count => $5 );$6""" 'description': 'Use this procedure to create a collection from a supplied query using bulk operations. This method offers significantly faster performance than the CREATE_COLLECTION_FROM_QUERY method. The query is parsed as the application owner. If a collection exists with the same name for the current user in the same session for the current Application ID, an application error is raised.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI730' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI735 'apex_collection.create_collection_from_queryb2': 'prefix': 'apex_collection.create_collection_from_queryb2' 'body': """APEX_COLLECTION.CREATE_COLLECTION_FROM_QUERYB2( p_collection_name => $1, p_query => $2, p_names => $3, p_values => $4, p_max_row_count => $5 );$6""" 'description': 'Use this procedure to create a collection from a supplied query using bulk operations. This method offers significantly faster performance than the CREATE_COLLECTION_FROM_QUERY_2 method. The query is parsed as the application owner. If a collection exists with the same name for the current user in the same session for the current Application ID, an application error is raised. It is identical to the CREATE_COLLECTION_FROM_QUERY_B, however, the first five columns of the SELECT clause must be numeric and the next five columns must be date. After the date columns, there can be up to 50 character columns in the SELECT clause' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI735' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI715 'apex_collection.create_or_truncate_collection': 'prefix': 'apex_collection.create_or_truncate_collection' 'body': """APEX_COLLECTION.CREATE_OR_TRUNCATE_COLLECTION( p_collection_name => $1 );$2""" 'description': 'Use this procedure to create a collection. If a collection exists with the same name for the current user in the same session for the current Application ID, all members of the collection are removed. In other words, the named collection is truncated.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI715' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI740 'apex_collection.delete_all_collections': 'prefix': 'apex_collection.delete_all_collections' 'body': """APEX_COLLECTION.DELETE_ALL_COLLECTIONS""" 'description': 'Use this procedure to delete all collections that belong to the current user in the current Application Express session for the current Application ID.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI740' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI744 'apex_collection.delete_all_collections_session': 'prefix': 'apex_collection.delete_all_collections_session' 'body': """APEX_COLLECTION.DELETE_ALL_COLLECTIONS_SESSION""" 'description': 'Use this procedure to delete all collections that belong to the current user in the current Application Express session regardless of the Application ID.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI744' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI748 'apex_collection.delete_collection': 'prefix': 'apex_collection.delete_collection' 'body': """APEX_COLLECTION.DELETE_COLLECTION( p_collection_name => $1 );$2""" 'description': 'Use this procedure to delete a named collection. All members that belong to the collection are removed and the named collection is dropped. If the named collection does not exist for the same user in the current session for the current Application ID, an application error is raised.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI748' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI753 'apex_collection.delete_member': 'prefix': 'apex_collection.delete_member' 'body': """APEX_COLLECTION.DELETE_MEMBER( p_collection_name => $1, p_seq => $2 );$3""" 'description': 'Use this procedure to delete a specified member from a given named collection. If the named collection does not exist for the same user in the current session for the current Application ID, an application error is raised.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI753' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI758 'apex_collection.delete_members': 'prefix': 'apex_collection.delete_members' 'body': """APEX_COLLECTION.DELETE_MEMBERS( p_collection_name => $1, p_attr_number => $2, p_attr_value => $3 );$4""" 'description': 'Use this procedure to delete all members from a given named collection where the attribute specified by the attribute number equals the supplied value. If the named collection does not exist for the same user in the current session for the current Application ID, an application error is raised. If the attribute number specified is invalid or outside the range of 1 to 50, an error is raised.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI758' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI763 'apex_collection.get_member_md5': 'prefix': 'apex_collection.get_member_md5' 'body': """APEX_COLLECTION.GET_MEMBER_MD5( p_collection_name => $1, p_seq => $2 );$3""" 'description': 'Use this function to compute and return the message digest of the attributes for the member specified by the sequence ID. This computation of message digest is equal to the computation performed natively by collections. Thus, the result of this function could be compared to the MD5_ORIGINAL column of the view wwv_flow_collections.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI763' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI768 'apex_collection.merge_members': 'prefix': 'apex_collection.merge_members' 'body': """APEX_COLLECTION.MERGE_MEMBERS( p_collection_name => $1 );$2""" 'description': 'Use this procedure to merge members of the given named collection with the values passed in the arrays. If the named collection does not exist one is created. If a p_init_query is provided, the collection is created from the supplied SQL query. If the named collection exists, the following occurs:' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI768' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI773 'apex_collection.move_member_down': 'prefix': 'apex_collection.move_member_down' 'body': """APEX_COLLECTION.MOVE_MEMBER_DOWN( p_collection_name => $1, p_seq => $2 );$3""" 'description': 'Use this procedure to adjust the sequence ID of specified member in the given named collection down by one (subtract one), swapping sequence ID with the one it is replacing. For example, 3 becomes 2 and 2 becomes 3. If a collection does not exist with the specified name for the current user in the same session and for the current Application ID, an application error is raised. If the member specified by sequence ID p_seq does not exist, an application error is raised. If the member specified by sequence ID p_seq is the lowest sequence in the collection, an application error is NOT returned.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI773' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI778 'apex_collection.move_member_up': 'prefix': 'apex_collection.move_member_up' 'body': """APEX_COLLECTION.MOVE_MEMBER_UP( p_collection_name => $1, p_seq => $2 );$3""" 'description': 'Use this procedure to adjust the sequence ID of specified member in the given named collection up by one (add one), swapping sequence ID with the one it is replacing. For example, 2 becomes 3 and 3 becomes 2. If a collection does not exist with the specified name for the current user in the same session and for the current Application ID, an application error is raised. If the member specified by sequence ID p_seq does not exist, an application error is raised. If the member specified by sequence ID p_seq is the highest sequence in the collection, an application error is not returned.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI778' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI783 'apex_collection.resequence_collection': 'prefix': 'apex_collection.resequence_collection' 'body': """APEX_COLLECTION.RESEQUENCE_COLLECTION( p_collection_name => $1 );$2""" 'description': 'For a named collection, use this procedure to update the seq_id value of each member so that no gaps exist in the sequencing. For example, a collection with the following set of sequence IDs (1,2,3,5,8,9) becomes (1,2,3,4,5,6). If a collection does not exist with the specified name for the current user in the same session and for the current Application ID, an application error is raised.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI783' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI788 'apex_collection.reset_collection_changed': 'prefix': 'apex_collection.reset_collection_changed' 'body': """APEX_COLLECTION.RESET_COLLECTION_CHANGED( p_collection_name => $1 );$2""" 'description': 'Use this procedure to reset the collection changed flag (mark as not changed) for a given collection. If a collection does not exist with the specified name for the current user in the same session and for the current Application ID, an application error is raised.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI788' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI793 'apex_collection.reset_collection_changed_all': 'prefix': 'apex_collection.reset_collection_changed_all' 'body': """APEX_COLLECTION.RESET_COLLECTION_CHANGED_ALL""" 'description': 'Use this procedure to reset the collection changed flag (mark as not changed) for all collections in the use\'s current session.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI793' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI797 'apex_collection.sort_members': 'prefix': 'apex_collection.sort_members' 'body': """APEX_COLLECTION.SORT_MEMBERS( p_collection_name => $1, p_sort_on_column_number => $2 );$3""" 'description': 'Use this procedure to reorder the members of a given collection by the column number specified by p_sort_on_column_number. This sorts the collection by a particular column/attribute in the collection and reassigns the sequence IDs of each number such that no gaps exist. If a collection does not exist with the specified name for the current user in the same session and for the current Application ID, an application error is raised.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI797' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI802 'apex_collection.truncate_collection': 'prefix': 'apex_collection.truncate_collection' 'body': """APEX_COLLECTION.TRUNCATE_COLLECTION( p_collection_name => $1 );$2""" 'description': 'Use this procedure to remove all members from a named collection. If a collection does not exist with the specified name for the current user in the same session and for the current Application ID, an application error is raised.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI802' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI807 'apex_collection.update_member': 'prefix': 'apex_collection.update_member' 'body': """APEX_COLLECTION.UPDATE_MEMBER( p_collection_name => $1 );$2""" 'description': 'Use this procedure to update the specified member in the given named collection. If a collection does not exist with the specified name for the current user in the same session and for the current Application ID, an application error is raised. If the member specified by sequence ID p_seq does not exist, an application error is raised.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI807' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI817 'apex_collection.update_member_attribute': 'prefix': 'apex_collection.update_member_attribute' 'body': """APEX_COLLECTION.UPDATE_MEMBER_ATTRIBUTE( p_collection_name => $1, p_seq => $2, p_attr_number => $3, p_attr_value => $4 );$5""" 'description': 'Update the specified member attribute in the given named collection. If a collection does not exist with the specified name for the current user in the same session for the current Application ID, an application error is raised. If the member specified by sequence ID p_seq does not exist, an application error is raised. If the attribute number specified is invalid or outside the range 1-50, an error is raised. Any attribute value exceeding 4,000 bytes are truncated to 4,000 bytes.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI817' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI822 'apex_collection.update_member_attribute2': 'prefix': 'apex_collection.update_member_attribute2' 'body': """APEX_COLLECTION.UPDATE_MEMBER_ATTRIBUTE2( p_collection_name => $1, p_seq => $2, p_clob_number => $3, p_clob_value => $4 );$5""" 'description': 'Update the specified CLOB member attribute in the given named collection. If a collection does not exist with the specified name for the current user in the same session for the current Application ID, an application error is raised. If the member specified by sequence ID p_seq does not exist, an application error is raised. If the attribute number specified is invalid or outside the valid range (currently only 1 for CLOB), an error is raised.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI822' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI827 'apex_collection.update_member_attribute3': 'prefix': 'apex_collection.update_member_attribute3' 'body': """APEX_COLLECTION.UPDATE_MEMBER_ATTRIBUTE3( p_collection_name => $1, p_seq => $2, p_blob_number => $3, p_blob_value => $4 );$5""" 'description': 'Update the specified BLOB member attribute in the given named collection. If a collection does not exist with the specified name for the current user in the same session for the current Application ID, an application error is raised. If the member specified by sequence ID p_seq does not exist, an application error is raised. If the attribute number specified is invalid or outside the valid range (currently only 1 for BLOB), an error is raised.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI827' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI832 'apex_collection.update_member_attribute4': 'prefix': 'apex_collection.update_member_attribute4' 'body': """APEX_COLLECTION.UPDATE_MEMBER_ATTRIBUTE4( p_collection_name => $1, p_seq => $2, p_xmltype_number => $3, p_xmltype_value => $4 );$5""" 'description': 'Update the specified XMLTYPE member attribute in the given named collection. If a collection does not exist with the specified name for the current user in the same session for the current Application ID, an application error is raised. If the member specified by sequence ID p_seq does not exist, an application error is raised. If the attribute number specified is invalid or outside the valid range (currently only 1 for XMLTYPE), an error is raised.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI832' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI837 'apex_collection.update_member_attribute5': 'prefix': 'apex_collection.update_member_attribute5' 'body': """APEX_COLLECTION.UPDATE_MEMBER_ATTRIBUTE5( p_collection_name => $1, p_seq => $2, p_attr_number => $3, p_number_value => $4 );$5""" 'description': 'Update the specified NUMBER member attribute in the given named collection. If a collection does not exist with the specified name for the current user in the same session for the current Application ID, an application error is raised. If the member specified by sequence ID p_seq does not exist, an application error is raised. If the attribute number specified is invalid or outside the valid range (currently only 1 through 5 for NUMBER), an error is raised.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI837' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI842 'apex_collection.update_member_attribute6': 'prefix': 'apex_collection.update_member_attribute6' 'body': """APEX_COLLECTION.UPDATE_MEMBER_ATTRIBUTE6( p_collection_name => $1, p_seq => $2, p_attr_number => $3, p_date_value => $4 );$5""" 'description': 'Update the specified DATE member attribute in the given named collection. If a collection does not exist with the specified name for the current user in the same session for the current Application ID, an application error is raised. If the member specified by sequence ID p_seq does not exist, an application error is raised. If the attribute number specified is invalid or outside the valid range (currently only 1 through 5 for DATE), an error is raised.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI842' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI812 'apex_collection.update_members': 'prefix': 'apex_collection.update_members' 'body': """APEX_COLLECTION.UPDATE_MEMBERS( p_collection_name => $1 );$2""" 'description': 'Use this procedure to update the array of members for the given named collection. If a collection does not exist with the specified name for the current user in the same session and for the current Application ID, an application error is raised. The count of elements in the p_seq PL/SQL table is used as the total number of items across all PL/SQL tables. That is, if p_seq.count = 2 and p_c001.count = 10, only 2 members are updaapex_application_globalted. If p_seq is null, an application error is raised. If the member specified by sequence ID p_seq does not exist, an application error is raised.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI812' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_css.htm#AEAPI847 'apex_css.add': 'prefix': 'apex_css.add' 'body': """APEX_CSS.ADD( p_css => $1 );$2""" 'description': 'This procedure adds a CSS style snippet that is included inline in the HTML output. Use this procedure to add new CSS style declarations.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_css.htm#AEAPI847' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_css.htm#AEAPI29177 'apex_css.add_3rd_party_library_file': 'prefix': 'apex_css.add_3rd_party_library_file' 'body': """APEX_CSS.ADD_3RD_PARTY_LIBRARY_FILE( p_library => $1, p_file_name => $2 );$3""" 'description': 'This procedure adds the link tag to load a 3rd party css file and also takes into account the specified Content Delivery Network for the application. Supported libraries include: jQuery, jQueryUI, jQueryMobile.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_css.htm#AEAPI29177' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_css.htm#AEAPI852 'apex_css.add_file': 'prefix': 'apex_css.add_file' 'body': """APEX_CSS.ADD_FILE( p_name => $1 );$2""" 'description': 'This procedure adds the link tag to load a CSS library. If a library has already been added, it will not be added a second time.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_css.htm#AEAPI852' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI219 'apex_custom_auth.application_page_item_exists': 'prefix': 'apex_custom_auth.application_page_item_exists' 'body': """APEX_CUSTOM_AUTH.APPLICATION_PAGE_ITEM_EXISTS( p_item_name => $1 );$2""" 'description': 'This function checks for the existence of page-level item within the current page of an application. This function requires the parameter p_item_name. This function returns a Boolean value (TRUE or FALSE).' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI219' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI220 'apex_custom_auth.current_page_is_public': 'prefix': 'apex_custom_auth.current_page_is_public' 'body': """APEX_CUSTOM_AUTH.CURRENT_PAGE_IS_PUBLIC""" 'description': 'This function checks whether the current pag\'s authentication attribute is set to Page Is Public and returns a Boolean value (TRUE or FALSE)' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI220' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI221 'apex_custom_auth.define_user_session': 'prefix': 'apex_custom_auth.define_user_session' 'body': """APEX_CUSTOM_AUTH.DEFINE_USER_SESSION( p_user => $1, p_session_id => $2 );$3""" 'description': 'This procedure combines the SET_USER and SET_SESSION_ID procedures to create one call.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI221' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI222 'apex_custom_auth.get_cookie_props': 'prefix': 'apex_custom_auth.get_cookie_props' 'body': """APEX_CUSTOM_AUTH.GET_COOKIE_PROPS( p_app_id => $1, p_cookie_name => $2, p_cookie_path => $3, p_cookie_domain => $4, p_secure => $5 );$6""" 'description': 'This procedure obtains the properties of the session cookie used in the current authentication scheme for the specified application. These properties can be viewed directly in the Application Builder by viewing the authentication scheme cookie attributes.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI222' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI223 'apex_custom_auth.get_ldap_props': 'prefix': 'apex_custom_auth.get_ldap_props' 'body': """APEX_CUSTOM_AUTH.GET_LDAP_PROPS( p_ldap_host => $1, p_ldap_port => $2, p_use_ssl => $3, p_use_exact_dn => $4, p_search_filter => $5, p_ldap_dn => $6, p_ldap_edit_function => $7 );$8""" 'description': 'This procedure obtains the LDAP attributes of the current authentication scheme for the current application. These properties can be viewed directly in Application Builder by viewing the authentication scheme attributes.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI223' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI224 'apex_custom_auth.get_next_session_id': 'prefix': 'apex_custom_auth.get_next_session_id' 'body': """APEX_CUSTOM_AUTH.GET_NEXT_SESSION_ID""" 'description': 'This function generates the next session ID from the Oracle Application Express sequence generator. This function returns a number.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI224' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI227 'apex_custom_auth.get_security_group_id': 'prefix': 'apex_custom_auth.get_security_group_id' 'body': """APEX_CUSTOM_AUTH.GET_SECURITY_GROUP_ID""" 'description': 'This function returns a number with the value of the security group ID that identifies the workspace of the current user.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI227' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI228 'apex_custom_auth.get_session_id': 'prefix': 'apex_custom_auth.get_session_id' 'body': """APEX_CUSTOM_AUTH.GET_SESSION_ID""" 'description': 'This function returns APEX_APPLICATION.G_INSTANCE global variable. GET_SESSION_ID returns a number.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI228' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI225 'apex_custom_auth.get_session_id_from_cookie': 'prefix': 'apex_custom_auth.get_session_id_from_cookie' 'body': """APEX_CUSTOM_AUTH.GET_SESSION_ID_FROM_COOKIE""" 'description': 'This function returns the Oracle Application Express session ID located by the session cookie in a page request in the current browser session.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI225' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI229 'apex_custom_auth.get_user': 'prefix': 'apex_custom_auth.get_user' 'body': """APEX_CUSTOM_AUTH.GET_USER""" 'description': 'This function returns the APEX_APPLICATION.G_USER global variable (VARCHAR2).' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI229' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI226 'apex_custom_auth.get_username': 'prefix': 'apex_custom_auth.get_username' 'body': """APEX_CUSTOM_AUTH.GET_USERNAME""" 'description': 'This function returns user name registered with the current Oracle Application Express session in the internal sessions table. This user name is usually the same as the authenticated user running the current page.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI226' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI230 'apex_custom_auth.is_session_valid': 'prefix': 'apex_custom_auth.is_session_valid' 'body': """APEX_CUSTOM_AUTH.IS_SESSION_VALID""" 'description': 'This function is a Boolean result obtained from executing the current applicatio\'s authentication scheme to determine if a valid session exists. This function returns the Boolean result of the authentication schem\'s page sentry.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI230' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI231 'apex_custom_auth.login': 'prefix': 'apex_custom_auth.login' 'body': """APEX_CUSTOM_AUTH.LOGIN""" 'description': 'Also referred to as the "Login API," this procedure performs authentication and session registration.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI231' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI232 'apex_custom_auth.logout': 'prefix': 'apex_custom_auth.logout' 'body': """APEX_CUSTOM_AUTH.LOGOUT""" 'description': 'Note:' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI232' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI233 'apex_custom_auth.post_login': 'prefix': 'apex_custom_auth.post_login' 'body': """APEX_CUSTOM_AUTH.POST_LOGIN""" 'description': 'This procedure performs session registration, assuming the authentication step has been completed. It can be called only from within an Oracle Application Express application page context.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI233' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI234 'apex_custom_auth.session_id_exists': 'prefix': 'apex_custom_auth.session_id_exists' 'body': """APEX_CUSTOM_AUTH.SESSION_ID_EXISTS""" 'description': 'This function returns a Boolean result based on the global package variable containing the current Oracle Application Express session ID. Returns TRUE if the result is a positive number and returns FALSE if the result is a negative number.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI234' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI236 'apex_custom_auth.set_session_id': 'prefix': 'apex_custom_auth.set_session_id' 'body': """APEX_CUSTOM_AUTH.SET_SESSION_ID( p_session_id => $1 );$2""" 'description': 'This procedure sets APEX_APPLICATION.G_INSTANCE global variable. This procedure requires the parameter P_SESSION_ID (NUMBER) which specifies a session ID.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI236' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI237 'apex_custom_auth.set_session_id_to_next_value': 'prefix': 'apex_custom_auth.set_session_id_to_next_value' 'body': """APEX_CUSTOM_AUTH.SET_SESSION_ID_TO_NEXT_VALUE""" 'description': 'This procedure combines the operation of GET_NEXT_SESSION_ID and SET_SESSION_ID in one call.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI237' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI235 'apex_custom_auth.set_user': 'prefix': 'apex_custom_auth.set_user' 'body': """APEX_CUSTOM_AUTH.SET_USER( p_user => $1 );$2""" 'description': 'This procedure sets the APEX_APPLICATION.G_USER global variable. SET_USER requires the parameter P_USER (VARCHAR2) which defines a user ID.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI235' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_debug.htm#AEAPI29185 'apex_debug.disable': 'prefix': 'apex_debug.disable' 'body': """APEX_DEBUG.DISABLE""" 'description': 'This procedure turns off debug messaging.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_debug.htm#AEAPI29185' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_debug.htm#AEAPI29189 'apex_debug.enable': 'prefix': 'apex_debug.enable' 'body': """APEX_DEBUG.ENABLE""" 'description': 'This procedure turns on debug messaging. You can specify, by level of importance, the types of debug messages that are monitored.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_debug.htm#AEAPI29189' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_debug.htm#AEAPI29194 'apex_debug.enter': 'prefix': 'apex_debug.enter' 'body': """APEX_DEBUG.ENTER( p_routine_name => $1 );$2""" 'description': 'This procedure logs messages at level c_log_level_app_enter. Use APEX_DEBUG.ENTER() to log the routine name and i\'s arguments at the beginning of a procedure or function.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_debug.htm#AEAPI29194' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_debug.htm#AEAPI29199 'apex_debug.error': 'prefix': 'apex_debug.error' 'body': """APEX_DEBUG.ERROR( p_message => $1 );$2""" 'description': 'This procedure logs messages at level c_log_level_error. This procedure always logs, even if debug mode is turned off.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_debug.htm#AEAPI29199' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_debug.htm#AEAPI29204 'apex_debug.info': 'prefix': 'apex_debug.info' 'body': """APEX_DEBUG.INFO( p_message => $1 );$2""" 'description': 'This procedure logs messages at level c_log_level_info.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_debug.htm#AEAPI29204' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_debug.htm#AEAPI29209 'apex_debug.log_dbms_output': 'prefix': 'apex_debug.log_dbms_output' 'body': """APEX_DEBUG.LOG_DBMS_OUTPUT""" 'description': 'This procedure writes the contents of dbms_output.get_lines to the debug log. Messages of legacy applications which use dbms_output are copied into the debug log. In order to write to the debug log, dbms_output.enable must be performed' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_debug.htm#AEAPI29209' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_debug.htm#AEAPI29213 'apex_debug.log_long_message': 'prefix': 'apex_debug.log_long_message' 'body': """APEX_DEBUG.LOG_LONG_MESSAGE""" 'description': 'Use this procedure to emit debug messages from PLSQL components of Application Express, or PLSQL procedures and functions. This procedure is the same as LOG_MESSAGE, except it allows logging of much longer messages, which are subsequently split into 4,000 character chunks in the debugging output (because a single debug message is constrained to 4,000 characters).' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_debug.htm#AEAPI29213' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_debug.htm#AEAPI29218 'apex_debug.log_message': 'prefix': 'apex_debug.log_message' 'body': """APEX_DEBUG.LOG_MESSAGE""" 'description': 'This procedure logs a debug message.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_debug.htm#AEAPI29218' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_debug.htm#AEAPI29223 'apex_debug.log_page_session_state': 'prefix': 'apex_debug.log_page_session_state' 'body': """APEX_DEBUG.LOG_PAGE_SESSION_STATE""" 'description': 'This procedure logs the sessio\'s item values.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_debug.htm#AEAPI29223' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_debug.htm#AEAPI29228 'apex_debug.message': 'prefix': 'apex_debug.message' 'body': """APEX_DEBUG.MESSAGE( p_message => $1 );$2""" 'description': 'This procedure logs a formatted debug message, general version.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_debug.htm#AEAPI29228' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_debug.htm#AEAPI29233 'apex_debug.remove_debug_by_age': 'prefix': 'apex_debug.remove_debug_by_age' 'body': """APEX_DEBUG.REMOVE_DEBUG_BY_AGE( p_application_id => $1, p_older_than_days => $2 );$3""" 'description': 'Use this procedure to delete from the debug message log all data older than the specified number of days.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_debug.htm#AEAPI29233' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_debug.htm#AEAPI29238 'apex_debug.remove_debug_by_app': 'prefix': 'apex_debug.remove_debug_by_app' 'body': """APEX_DEBUG.REMOVE_DEBUG_BY_APP( p_application_id => $1 );$2""" 'description': 'Use this procedure to delete from the debug message log all data belonging to a specified application.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_debug.htm#AEAPI29238' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_debug.htm#AEAPI29243 'apex_debug.remove_debug_by_view': 'prefix': 'apex_debug.remove_debug_by_view' 'body': """APEX_DEBUG.REMOVE_DEBUG_BY_VIEW( p_application_id => $1, p_view_id => $2 );$3""" 'description': 'Use this procedure to delete all data for a specified view from the message log.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_debug.htm#AEAPI29243' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_debug.htm#AEAPI29248 'apex_debug.remove_session_messages': 'prefix': 'apex_debug.remove_session_messages' 'body': """APEX_DEBUG.REMOVE_SESSION_MESSAGES""" 'description': 'This procedure deletes from the debug message log all data for a given session in your workspace defaults to your current session.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_debug.htm#AEAPI29248' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_debug.htm#AEAPI29253 'apex_debug.tochar': 'prefix': 'apex_debug.tochar' 'body': """APEX_DEBUG.TOCHAR( p_value => $1 );$2""" 'description': 'This procedure converts a BOOLEAN to a VARCHAR2.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_debug.htm#AEAPI29253' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_debug.htm#AEAPI29258 'apex_debug.trace': 'prefix': 'apex_debug.trace' 'body': """APEX_DEBUG.TRACE( p_message => $1 );$2""" 'description': 'This procedure logs messages at level c_log_level_app_trace.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_debug.htm#AEAPI29258' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_debug.htm#AEAPI29263 'apex_debug.warn': 'prefix': 'apex_debug.warn' 'body': """APEX_DEBUG.WARN( p_message => $1 );$2""" 'description': 'This procedure logs messages at level c_log_level_warn.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_debug.htm#AEAPI29263' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_error.htm#AEAPI2217 'apex_error.add_error': 'prefix': 'apex_error.add_error' 'body': """APEX_ERROR.ADD_ERROR( p_message => $1, p_display_location => $2 );$3""" 'description': 'This procedure adds an error message to the error stack that is used to display an error on an error page or inline in a notification. It can be called in a validation or process to add one or more errors to the error stack.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_error.htm#AEAPI2217' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_error.htm#AEAPI2222 'apex_error.add_error2': 'prefix': 'apex_error.add_error2' 'body': """APEX_ERROR.ADD_ERROR2( p_message => $1, p_display_location => $2, p_page_item_name => $3 );$4""" 'description': 'This procedure adds an error message to the error stack that is used to display an error for a page item inline in a notification. It can be called in a validation or process to add one or more errors to the error stack.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_error.htm#AEAPI2222' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_error.htm#AEAPI2227 'apex_error.add_error3': 'prefix': 'apex_error.add_error3' 'body': """APEX_ERROR.ADD_ERROR3( p_error_code => $1, p_display_location => $2, p_page_item_name => $3 );$4""" 'description': 'This procedure adds an error message to the error stack that is used to display text as defined by a shared component. This error message can be displayed to all display locations. It can be called in a validation or process to add one or more errors to the error stack.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_error.htm#AEAPI2227' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_error.htm#AEAPI2232 'apex_error.add_error4': 'prefix': 'apex_error.add_error4' 'body': """APEX_ERROR.ADD_ERROR4( p_message => $1, p_display_location => $2, p_region_id => $3, p_row_num => $4 );$5""" 'description': 'This procedure adds an error message to the error stack that is used to display an error for a tabular form inline in a notification. It can be called in a validation or process to add one or more errors to the error stack.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_error.htm#AEAPI2232' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_error.htm#AEAPI2237 'apex_error.add_error5': 'prefix': 'apex_error.add_error5' 'body': """APEX_ERROR.ADD_ERROR5( p_error_code => $1, p_display_location => $2, p_region_id => $3, p_row_num => $4 );$5""" 'description': 'This procedure adds an error message to the error stack of a tabular form that is used to display text as defined by a shared component. This error message can be displayed to all display locations. It can be called in a validation or process to add one or more errors to the error stack.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_error.htm#AEAPI2237' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_error.htm#AEAPI2242 'apex_error.auto_set_associated_item': 'prefix': 'apex_error.auto_set_associated_item' 'body': """APEX_ERROR.AUTO_SET_ASSOCIATED_ITEM( p_error_result => $1, p_error => $2 );$3""" 'description': 'This procedure automatically sets the associated page item or tabular form column based on a constraint contained in p_error.ora_sqlerrm.This procedure performs the following:' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_error.htm#AEAPI2242' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_error.htm#AEAPI2247 'apex_error.extract_constraint_name': 'prefix': 'apex_error.extract_constraint_name' 'body': """APEX_ERROR.EXTRACT_CONSTRAINT_NAME( p_error => $1 );$2""" 'description': 'This function extracts a constraint name contained in p_error.ora_sqlerrm. The constraint must match the pattern schema.constraint.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_error.htm#AEAPI2247' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_error.htm#AEAPI2252 'apex_error.get_aria_error_attributes': 'prefix': 'apex_error.get_aria_error_attributes' 'body': """APEX_ERROR.GET_ARIA_ERROR_ATTRIBUTES( p_item_name => $1 );$2""" 'description': 'This function is useful for item plug-in developers, to enhance screen reader usability of your item, specifically when that item is associated with an error on a page. This function is called as part of rendering of the item, where the main form element(s) are output. The returned WAI-ARIA attributes include:' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_error.htm#AEAPI2252' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_error.htm#AEAPI2257 'apex_error.get_first_ora_error_text': 'prefix': 'apex_error.get_first_ora_error_text' 'body': """APEX_ERROR.GET_FIRST_ORA_ERROR_TEXT( p_error => $1 );$2""" 'description': 'This function returns the first ORA error message text stored in p_error.ora_sqlerrm. If p_error_ora_sqlerrm does not contain a value, NULL is returned.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_error.htm#AEAPI2257' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_error.htm#AEAPI2262 'apex_error.init_error_result': 'prefix': 'apex_error.init_error_result' 'body': """APEX_ERROR.INIT_ERROR_RESULT( p_error => $1 );$2""" 'description': 'This function returns the t_error_result type initialized with the values stored in p_error.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_error.htm#AEAPI2262' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_escape.htm#AEAPI29271 'apex_escape.html': 'prefix': 'apex_escape.html' 'body': """APEX_ESCAPE.HTML( p_string => $1 );$2""" 'description': 'This function escapes characters which can change the context in an html environment. It is an extended version of the well-known sys.htf.escape_sc.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_escape.htm#AEAPI29271' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_escape.htm#AEAPI29277 'apex_escape.html_attribute': 'prefix': 'apex_escape.html_attribute' 'body': """APEX_ESCAPE.HTML_ATTRIBUTE( p_string => $1 );$2""" 'description': 'Use this function to escape the values of html entity attributes. It hex escapes everything that is not alphanumeric or in one of the following characters\'\'\'\'\'\'\'\' .' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_escape.htm#AEAPI29277' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_escape.htm#AEAPI29282 'apex_escape.html_trunc': 'prefix': 'apex_escape.html_trunc' 'body': """APEX_ESCAPE.HTML_TRUNC( p_string => $1 );$2""" 'description': 'The HTML_TRUNC function escapes html and limits the returned string to p_length characters. This function returns the first p_length characters of an input clob and escapes them. You can use this function if the input clob might be too large to fit in a varchar2 variable and it is sufficient to only display the first part of it.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_escape.htm#AEAPI29282' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_escape.htm#AEAPI29287 'apex_escape.html_whitelist': 'prefix': 'apex_escape.html_whitelist' 'body': """APEX_ESCAPE.HTML_WHITELIST( p_html => $1 );$2""" 'description': 'The HTML_WHITELIST function performs HTML escape on all characters in the input text except the specified whitelist tags. This function can be useful if the input text contains simple html markup but a developer wants to ensure that an attacker cannot use malicious tags for cross-site scripting.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_escape.htm#AEAPI29287' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_escape.htm#AEAPI29292 'apex_escape.js_literal': 'prefix': 'apex_escape.js_literal' 'body': """APEX_ESCAPE.JS_LITERAL( p_string => $1 );$2""" 'description': 'The JS_LITERAL function escapes and optionally enquotes a javascript string. This function replaces non-immune characters with\\HH or\\HHHH equivalents. The result can be injected into javascript code, within <script> tags or inline ("javascript:xxx"). Immune characters include a through z, A through Z, 0 through 9, commas ",", periods "." and underscores "_".' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_escape.htm#AEAPI29292' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_escape.htm#AEAPI29608 'apex_escape.json': 'prefix': 'apex_escape.json' 'body': """APEX_ESCAPE.JSON( p_string => $1 );$2""" 'description': 'This function returns p_string with all special characters escaped.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_escape.htm#AEAPI29608' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_escape.htm#AEAPI29297 'apex_escape.ldap_dn': 'prefix': 'apex_escape.ldap_dn' 'body': """APEX_ESCAPE.LDAP_DN( p_string => $1 );$2""" 'description': 'The LDAP_DN function escapes reserved characters in an LDAP distinguished name, according to RFC 4514. The RFC describes "+,;<=\\as reserved characters (see p_reserved_chars). These are escaped by a backslash, for example, " becomes\\. Non-printable characters, ascii 0 - 31, and ones with a code > 127 (see p_escape_non_ascii) are escaped as\\x, where xx is the hexadecimal character code. The space character at the beginning or end of the string and a # at the beginning is also escaped with a backslash.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_escape.htm#AEAPI29297' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_escape.htm#AEAPI29302 'apex_escape.ldap_search_filter': 'prefix': 'apex_escape.ldap_search_filter' 'body': """APEX_ESCAPE.LDAP_SEARCH_FILTER( p_string => $1 );$2""" 'description': 'The LDAP_SEARCH_FILTER function escapes reserved characters in an LDAP search filter, according to RFC 4515. The RFC describes *(\\ as reserved characters (see p_reserved_chars). These, non-printable characters (ascii 0 - 31) and ones with a code > 127 (see p_escape_non_ascii) are escaped as\\x, where xx is the hexadecimal character code.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_escape.htm#AEAPI29302' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_escape.htm#AEAPI29307 'apex_escape.noop': 'prefix': 'apex_escape.noop' 'body': """APEX_ESCAPE.NOOP( p_string => $1 );$2""" 'description': 'Return p_string unchanged. Use this function to silence automatic injection detection tests, similar to dbms_assert.noop for SQL injection.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_escape.htm#AEAPI29307' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_escape.htm#AEAPI29615 'apex_escape.regexp': 'prefix': 'apex_escape.regexp' 'body': """APEX_ESCAPE.REGEXP( p_string => $1 );$2""" 'description': 'This function escapes characters that can change the context in a regular expression. It should be used to secure user input. The following list depicts ascii characters that the function escapes with a backslash \\:' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_escape.htm#AEAPI29615' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_escape.htm#AEAPI29312 'apex_escape.set_html_escaping_mode': 'prefix': 'apex_escape.set_html_escaping_mode' 'body': """APEX_ESCAPE.SET_HTML_ESCAPING_MODE( p_mode => $1 );$2""" 'description': 'The SET_HTML_ESCAPING_MODE procedure configures HTML escaping mode for wwv_flow_escape.html.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_escape.htm#AEAPI29312' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI250 'apex_instance_admin.add_schema': 'prefix': 'apex_instance_admin.add_schema' 'body': """APEX_INSTANCE_ADMIN.ADD_SCHEMA( p_workspace => $1, p_schema => $2 );$3""" 'description': 'The ADD_SCHEMA procedure adds a schema to a workspace to schema mapping.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI250' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI253 'apex_instance_admin.add_workspace': 'prefix': 'apex_instance_admin.add_workspace' 'body': """APEX_INSTANCE_ADMIN.ADD_WORKSPACE( p_workspace => $1, p_primary_schema => $2, p_additional_schemas => $3 );$4""" 'description': 'The ADD_WORKSPACE procedure adds a workspace to an Application Express Instance.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI253' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI30057 'apex_instance_admin.create_schema_exception': 'prefix': 'apex_instance_admin.create_schema_exception' 'body': """APEX_INSTANCE_ADMIN.CREATE_SCHEMA_EXCEPTION( p_schema => $1, p_workspace => $2 );$3""" 'description': 'This procedure creates an exception which allows assignment of a restricted schema to a specific workspace.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI30057' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI29620 'apex_instance_admin.free_workspace_app_ids': 'prefix': 'apex_instance_admin.free_workspace_app_ids' 'body': """APEX_INSTANCE_ADMIN.FREE_WORKSPACE_APP_IDS( p_workspace_id => $1 );$2""" 'description': 'This procedure removes the reservation of application IDs for a given workspace ID. Use this procedure to undo a reservation, when the reservation is not necessary anymore because it happened by mistake or the workspace no longer exists. To reserve application IDs for a given workspace, see "RESERVE_WORKSPACE_APP_IDS Procedure."' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI29620' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI247 'apex_instance_admin.get_parameter': 'prefix': 'apex_instance_admin.get_parameter' 'body': """APEX_INSTANCE_ADMIN.GET_PARAMETER( p_parameter => $1 );$2""" 'description': 'The GET_PARAMETER function retrieves the value of a parameter used in administering a runtime environment.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI247' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI249 'apex_instance_admin.get_schemas': 'prefix': 'apex_instance_admin.get_schemas' 'body': """APEX_INSTANCE_ADMIN.GET_SCHEMAS( p_workspace => $1 );$2""" 'description': 'The GET_SCHEMAS function retrieves a comma-delimited list of schemas that are mapped to a given workspace.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI249' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI30130 'apex_instance_admin.get_workspace_parameter': 'prefix': 'apex_instance_admin.get_workspace_parameter' 'body': """APEX_INSTANCE_ADMIN.GET_WORKSPACE_PARAMETER( p_workspace => $1, p_parameter => $2 );$3""" 'description': 'The GET_WORKSPACE_PARAMETER procedure gets the workspace parameter.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI30130' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI2268 'apex_instance_admin.remove_application': 'prefix': 'apex_instance_admin.remove_application' 'body': """APEX_INSTANCE_ADMIN.REMOVE_APPLICATION( p_application_id => $1 );$2""" 'description': 'The REMOVE_APPLICATION procedure removes the application specified from the Application Express instance.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI2268' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI983 'apex_instance_admin.remove_saved_report': 'prefix': 'apex_instance_admin.remove_saved_report' 'body': """APEX_INSTANCE_ADMIN.REMOVE_SAVED_REPORT( p_application_id => $1, p_report_id => $2 );$3""" 'description': 'The REMOVE_SAVED_REPORT procedure removes a specific use\'s saved interactive report settings for a particular application.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI983' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI988 'apex_instance_admin.remove_saved_reports': 'prefix': 'apex_instance_admin.remove_saved_reports' 'body': """APEX_INSTANCE_ADMIN.REMOVE_SAVED_REPORTS""" 'description': 'The REMOVE_SAVED_REPORTS procedure removes all user saved interactive report settings for a particular application or for the entire instance.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI988' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI251 'apex_instance_admin.remove_schema': 'prefix': 'apex_instance_admin.remove_schema' 'body': """APEX_INSTANCE_ADMIN.REMOVE_SCHEMA( p_workspace => $1, p_schema => $2 );$3""" 'description': 'This REMOVE_SCHEMA procedure removes a workspace to schema mapping.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI251' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI30062 'apex_instance_admin.remove_schema_exception': 'prefix': 'apex_instance_admin.remove_schema_exception' 'body': """APEX_INSTANCE_ADMIN.REMOVE_SCHEMA_EXCEPTION( p_schema => $1, p_workspace => $2 );$3""" 'description': 'This procedure removes an exception that allows the assignment of a restricted schema to a given workspace.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI30062' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI30067 'apex_instance_admin.remove_schema_exceptions': 'prefix': 'apex_instance_admin.remove_schema_exceptions' 'body': """APEX_INSTANCE_ADMIN.REMOVE_SCHEMA_EXCEPTIONS( p_schema => $1 );$2""" 'description': 'This procedure removes all exceptions that allow the assignment of a given schema to workspaces.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI30067' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI29317 'apex_instance_admin.remove_subscription': 'prefix': 'apex_instance_admin.remove_subscription' 'body': """APEX_INSTANCE_ADMIN.REMOVE_SUBSCRIPTION( p_subscription_id => $1 );$2""" 'description': 'The REMOVE_SUBSCRIPTION procedure removes a specific interactive report subscription.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI29317' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI252 'apex_instance_admin.remove_workspace': 'prefix': 'apex_instance_admin.remove_workspace' 'body': """APEX_INSTANCE_ADMIN.REMOVE_WORKSPACE( p_workspace => $1 );$2""" 'description': 'The REMOVE_WORKSPACE procedure removes a workspace from an Application Express instance.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI252' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI30072 'apex_instance_admin.remove_workspace_exceptions': 'prefix': 'apex_instance_admin.remove_workspace_exceptions' 'body': """APEX_INSTANCE_ADMIN.REMOVE_WORKSPACE_EXCEPTIONS( p_workspace => $1 );$2""" 'description': 'This procedure removes all exceptions that allow the assignment of restricted schemas to given workspace.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI30072' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI29625 'apex_instance_admin.reserve_workspace_app_ids': 'prefix': 'apex_instance_admin.reserve_workspace_app_ids' 'body': """APEX_INSTANCE_ADMIN.RESERVE_WORKSPACE_APP_IDS( p_workspace_id => $1 );$2""" 'description': 'This procedure permanently reserves the IDs of websheet and database applications in a given workspace. Even if the workspace and its applications get removed, developers can not create other applications with one of these IDs. To undo a reservation, see "FREE_WORKSPACE_APP_IDS Procedure."' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI29625' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI30077 'apex_instance_admin.restrict_schema': 'prefix': 'apex_instance_admin.restrict_schema' 'body': """APEX_INSTANCE_ADMIN.RESTRICT_SCHEMA( p_schema => $1 );$2""" 'description': 'This procedure revokes the privilege to assign a schema to workspaces.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI30077' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI29322 'apex_instance_admin.set_log_switch_interval': 'prefix': 'apex_instance_admin.set_log_switch_interval' 'body': """APEX_INSTANCE_ADMIN.SET_LOG_SWITCH_INTERVAL( p_log_name => $1, p_log_switch_after_days => $2 );$3""" 'description': 'Set the log switch interval for each of the logs maintained by Application Express.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI29322' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI246 'apex_instance_admin.set_parameter': 'prefix': 'apex_instance_admin.set_parameter' 'body': """APEX_INSTANCE_ADMIN.SET_PARAMETER( p_parameter => $1 );$2""" 'description': 'The SET_PARAMETER procedure sets a parameter used in administering a runtime environment. You must issue a commit for the parameter change to take affect.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI246' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI29327 'apex_instance_admin.set_workspace_consumer_group': 'prefix': 'apex_instance_admin.set_workspace_consumer_group' 'body': """APEX_INSTANCE_ADMIN.SET_WORKSPACE_CONSUMER_GROUP( p_workspace => $1, p_rm_consumer_group => $2 );$3""" 'description': 'The SET_WORKSPACE_CONSUMER_GROUP procedure sets a Resource Manager Consumer Group to a workspace.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI29327' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI30135 'apex_instance_admin.set_workspace_parameter': 'prefix': 'apex_instance_admin.set_workspace_parameter' 'body': """APEX_INSTANCE_ADMIN.SET_WORKSPACE_PARAMETER( p_workspace => $1, p_parameter => $2, p_value => $3 );$4""" 'description': 'The SET_WORKSPACE_PARAMETER procedure sets the designated workspace parameter.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI30135' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI29332 'apex_instance_admin.truncate_log': 'prefix': 'apex_instance_admin.truncate_log' 'body': """APEX_INSTANCE_ADMIN.TRUNCATE_LOG( p_log => $1 );$2""" 'description': 'The TRUNCATE_LOG procedure truncates the log entries specified by the input parameter.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI29332' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI30082 'apex_instance_admin.unrestrict_schema': 'prefix': 'apex_instance_admin.unrestrict_schema' 'body': """APEX_INSTANCE_ADMIN.UNRESTRICT_SCHEMA( p_schema => $1 );$2""" 'description': 'This procedure re-grants the privilege to assign a schema to workspaces, if it has been revoked before.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI30082' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ir.htm#AEAPI29339 'apex_ir.add_filter': 'prefix': 'apex_ir.add_filter' 'body': """APEX_IR.ADD_FILTER( p_page_id => $1, p_region_id => $2, p_report_column => $3, p_filter_value => $4 );$5""" 'description': 'This procedure creates a filter on an interactive report using a report ID.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ir.htm#AEAPI29339' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ir.htm#AEAPI29344 'apex_ir.add_filter2': 'prefix': 'apex_ir.add_filter2' 'body': """APEX_IR.ADD_FILTER2( p_page_id => $1, p_region_id => $2, p_report_column => $3, p_filter_value => $4 );$5""" 'description': 'This procedure creates a filter on an interactive report using a report alias.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ir.htm#AEAPI29344' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ir.htm#AEAPI29630 'apex_ir.change_report_owner': 'prefix': 'apex_ir.change_report_owner' 'body': """APEX_IR.CHANGE_REPORT_OWNER( p_report_id => $1, p_old_owner => $2, p_new_owner => $3 );$4""" 'description': 'This procedure changes the owner of a saved interactive report using a report ID. This procedure cannot change the owner of default interactive reports.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ir.htm#AEAPI29630' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ir.htm#AEAPI30140 'apex_ir.change_subscription_email': 'prefix': 'apex_ir.change_subscription_email' 'body': """APEX_IR.CHANGE_SUBSCRIPTION_EMAIL( p_subscription_id => $1, p_email_address => $2 );$3""" 'description': 'This procedure changes interactive report subscriptions email address. When an email is sent out, the subscription sends message to the defined email address.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ir.htm#AEAPI30140' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ir.htm#AEAPI30145 'apex_ir.change_subscription_email2': 'prefix': 'apex_ir.change_subscription_email2' 'body': """APEX_IR.CHANGE_SUBSCRIPTION_EMAIL2( p_subscription_id => $1, p_email_address => $2 );$3""" 'description': 'This procedure changes interactive report subscriptions email address. When an email is sent out, the subscription sends message to the defined email address.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ir.htm#AEAPI30145' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ir.htm#AEAPI29349 'apex_ir.change_subscription_lang': 'prefix': 'apex_ir.change_subscription_lang' 'body': """APEX_IR.CHANGE_SUBSCRIPTION_LANG( p_subscription_id => $1, p_language => $2 );$3""" 'description': 'This procedure changes the interactive report subscription language.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ir.htm#AEAPI29349' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ir.htm#AEAPI29354 'apex_ir.clear_report': 'prefix': 'apex_ir.clear_report' 'body': """APEX_IR.CLEAR_REPORT( p_page_id => $1, p_region_id => $2 );$3""" 'description': 'This procedure clears report settings using the report ID.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ir.htm#AEAPI29354' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ir.htm#AEAPI29359 'apex_ir.clear_report2': 'prefix': 'apex_ir.clear_report2' 'body': """APEX_IR.CLEAR_REPORT2( p_page_id => $1, p_region_id => $2 );$3""" 'description': 'This procedure clears report settings using report alias.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ir.htm#AEAPI29359' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ir.htm#AEAPI29364 'apex_ir.delete_report': 'prefix': 'apex_ir.delete_report' 'body': """APEX_IR.DELETE_REPORT( p_report_id => $1 );$2""" 'description': 'This procedure deletes saved interactive reports. It deletes a specific saved report in the current logged in workspace and application.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ir.htm#AEAPI29364' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ir.htm#AEAPI29369 'apex_ir.delete_subscription': 'prefix': 'apex_ir.delete_subscription' 'body': """APEX_IR.DELETE_SUBSCRIPTION( p_subscription_id => $1 );$2""" 'description': 'This procedure deletes interactive report subscriptions.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ir.htm#AEAPI29369' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ir.htm#AEAPI29374 'apex_ir.get_last_viewed_report_id': 'prefix': 'apex_ir.get_last_viewed_report_id' 'body': """APEX_IR.GET_LAST_VIEWED_REPORT_ID( p_page_id => $1, p_region_id => $2 );$3""" 'description': 'This function returns the last viewed base report ID of the specified page and region.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ir.htm#AEAPI29374' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ir.htm#AEAPI29379 'apex_ir.get_report': 'prefix': 'apex_ir.get_report' 'body': """APEX_IR.GET_REPORT( p_page_id => $1, p_region_id => $2 );$3""" 'description': 'This function returns an interactive report runtime query.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ir.htm#AEAPI29379' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ir.htm#AEAPI29384 'apex_ir.reset_report': 'prefix': 'apex_ir.reset_report' 'body': """APEX_IR.RESET_REPORT( p_page_id => $1, p_region_id => $2 );$3""" 'description': 'This procedure resets report settings to the developer defined default settings using the report ID.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ir.htm#AEAPI29384' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ir.htm#AEAPI29389 'apex_ir.reset_report2': 'prefix': 'apex_ir.reset_report2' 'body': """APEX_IR.RESET_REPORT2( p_page_id => $1, p_region_id => $2 );$3""" 'description': 'This procedure resets report settings using the report alias.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ir.htm#AEAPI29389' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI193 'apex_item.checkbox2': 'prefix': 'apex_item.checkbox2' 'body': """APEX_ITEM.CHECKBOX2( p_idx => $1 );$2""" 'description': 'This function creates check boxes.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI193' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI194 'apex_item.date_popup': 'prefix': 'apex_item.date_popup' 'body': """APEX_ITEM.DATE_POPUP( p_idx => $1, p_row => $2 );$3""" 'description': 'Use this function with forms that include date fields. The DATE_POPUP function dynamically generates a date field that has a popup calendar button.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI194' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI199 'apex_item.date_popup2': 'prefix': 'apex_item.date_popup2' 'body': """APEX_ITEM.DATE_POPUP2( p_idx => $1 );$2""" 'description': 'Use this function with forms that include date fields. The DATE_POPUP2 function dynamically generates a date field that has a jQuery based popup calendar with button.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI199' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI195 'apex_item.display_and_save': 'prefix': 'apex_item.display_and_save' 'body': """APEX_ITEM.DISPLAY_AND_SAVE( p_idx => $1 );$2""" 'description': 'Use this function to display an item as text, but save its value to session state.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI195' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI196 'apex_item.hidden': 'prefix': 'apex_item.hidden' 'body': """APEX_ITEM.HIDDEN( p_idx => $1 );$2""" 'description': 'This function dynamically generates hidden form items.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI196' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI197 'apex_item.md5_checksum': 'prefix': 'apex_item.md5_checksum' 'body': """APEX_ITEM.MD5_CHECKSUM""" 'description': 'Use this function for lost update detection. Lost update detection ensures data integrity in applications where data can be accessed concurrently.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI197' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI198 'apex_item.md5_hidden': 'prefix': 'apex_item.md5_hidden' 'body': """APEX_ITEM.MD5_HIDDEN( p_idx => $1 );$2""" 'description': 'Use this function for lost update detection. Lost update detection ensures data integrity in applications where data can be accessed concurrently.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI198' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI200 'apex_item.popup_from_lov': 'prefix': 'apex_item.popup_from_lov' 'body': """APEX_ITEM.POPUP_FROM_LOV( p_idx => $1, p_lov_name => $2 );$3""" 'description': 'This function generates an HTML popup select list from an application shared list of values (LOV). Like other available functions in the APEX_ITEM package, POPUP_FROM_LOV function is designed to generate forms with F01 to F50 form array elements.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI200' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI201 'apex_item.popup_from_query': 'prefix': 'apex_item.popup_from_query' 'body': """APEX_ITEM.POPUP_FROM_QUERY( p_idx => $1, p_lov_query => $2 );$3""" 'description': 'This function generates an HTML popup select list from a query. Like other available functions in the APEX_ITEM package, the POPUP_FROM_QUERY function is designed to generate forms with F01 to F50 form array elements.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI201' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI202 'apex_item.popupkey_from_lov': 'prefix': 'apex_item.popupkey_from_lov' 'body': """APEX_ITEM.POPUPKEY_FROM_LOV( p_idx => $1, p_lov_name => $2 );$3""" 'description': 'This function generates a popup key select list from a shared list of values (LOV). Similar to other available functions in the APEX_ITEM package, the POPUPKEY_FROM_LOV function is designed to generate forms with F01 to F50 form array elements.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI202' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI203 'apex_item.popupkey_from_query': 'prefix': 'apex_item.popupkey_from_query' 'body': """APEX_ITEM.POPUPKEY_FROM_QUERY( p_idx => $1, p_lov_query => $2 );$3""" 'description': 'This function generates a popup key select list from a SQL query. Similar to other available functions in the APEX_ITEM package, the POPUPKEY_FROM_QUERY function is designed to generate forms with F01 to F50 form array elements.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI203' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI204 'apex_item.radiogroup': 'prefix': 'apex_item.radiogroup' 'body': """APEX_ITEM.RADIOGROUP( p_idx => $1 );$2""" 'description': 'This function generates a radio group from a SQL query.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI204' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI205 'apex_item.select_list': 'prefix': 'apex_item.select_list' 'body': """APEX_ITEM.SELECT_LIST( p_idx => $1 );$2""" 'description': 'This function dynamically generates a static select list. Similar to other functions available in the APEX_ITEM package, these select list functions are designed to generate forms with F01 to F50 form array elements.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI205' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI206 'apex_item.select_list_from_lov': 'prefix': 'apex_item.select_list_from_lov' 'body': """APEX_ITEM.SELECT_LIST_FROM_LOV( p_idx => $1, p_lov => $2 );$3""" 'description': 'This function dynamically generates select lists from a shared list of values (LOV). Similar to other functions available in the APEX_ITEM package, these select list functions are designed to generate forms with F01 to F50 form array elements.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI206' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI207 'apex_item.select_list_from_lov_xl': 'prefix': 'apex_item.select_list_from_lov_xl' 'body': """APEX_ITEM.SELECT_LIST_FROM_LOV_XL( p_idx => $1, p_lov => $2 );$3""" 'description': 'This function dynamically generates very large select lists (greater than 32K) from a shared list of values (LOV). Similar to other functions available in the APEX_ITEM package, these select list functions are designed to generate forms with F01 to F50 form array elements. This function is the same as SELECT_LIST_FROM_LOV, but its return value is CLOB. Use this function in SQL queries where you need to handle a column value longer than 4000 characters.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI207' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI208 'apex_item.select_list_from_query': 'prefix': 'apex_item.select_list_from_query' 'body': """APEX_ITEM.SELECT_LIST_FROM_QUERY( p_idx => $1, p_query => $2 );$3""" 'description': 'This function dynamically generates a select list from a query. Similar to other functions available in the APEX_ITEM package, these select list functions are designed to generate forms with F01 to F50 form array elements.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI208' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI209 'apex_item.select_list_from_query_xl': 'prefix': 'apex_item.select_list_from_query_xl' 'body': """APEX_ITEM.SELECT_LIST_FROM_QUERY_XL( p_idx => $1, p_query => $2 );$3""" 'description': 'This function is the same as SELECT_LIST_FROM_QUERY, but its return value is a CLOB. This allows its use in SQL queries where you need to handle a column value longer than 4000 characters. Similar to other functions available in the APEX_ITEM package, these select list functions are designed to generate forms with F01 to F50 form array elements.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI209' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI211 'apex_item.text': 'prefix': 'apex_item.text' 'body': """APEX_ITEM.TEXT( p_idx => $1 );$2""" 'description': 'This function generates text fields (or text input form items) from a SQL query.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI211' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI212 'apex_item.text_from_lov': 'prefix': 'apex_item.text_from_lov' 'body': """APEX_ITEM.TEXT_FROM_LOV( p_lov => $1 );$2""" 'description': 'Use this function to display an item as text, deriving the display value of the named LOV.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI212' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI213 'apex_item.text_from_lov_query': 'prefix': 'apex_item.text_from_lov_query' 'body': """APEX_ITEM.TEXT_FROM_LOV_QUERY( p_query => $1 );$2""" 'description': 'Use this function to display an item as text, deriving the display value from a list of values query.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI213' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI210 'apex_item.textarea': 'prefix': 'apex_item.textarea' 'body': """APEX_ITEM.TEXTAREA( p_idx => $1, p_rows => $2 );$3""" 'description': 'This function creates text areas.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI210' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_javascript.htm#AEAPI29394 'apex_javascript.add_3rd_party_library_file2': 'prefix': 'apex_javascript.add_3rd_party_library_file2' 'body': """APEX_JAVASCRIPT.ADD_3RD_PARTY_LIBRARY_FILE2( p_library => $1, p_file_name => $2 );$3""" 'description': 'This procedure adds the script tag to load a 3rd party javascript library file and also takes into account the specified Content Delivery Network for the application. Supported libraries include: jQuery, jQueryUI, and jQuery Mobile.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_javascript.htm#AEAPI29394' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_javascript.htm#AEAPI1090 'apex_javascript.add_attribute': 'prefix': 'apex_javascript.add_attribute' 'body': """APEX_JAVASCRIPT.ADD_ATTRIBUTE( p_name => $1, p_value => $2, p_omit_null => $3, p_add_comma => $4 );$5""" 'description': 'This function returns the attribute and the attribut\'s escaped text surrounded by double quotation marks.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_javascript.htm#AEAPI1090' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_javascript.htm#AEAPI1095 'apex_javascript.add_attribute2': 'prefix': 'apex_javascript.add_attribute2' 'body': """APEX_JAVASCRIPT.ADD_ATTRIBUTE2( p_name => $1, p_value => $2, p_omit_null => $3, p_add_comma => $4 );$5""" 'description': 'This function returns the attribute and the attribut\'s number.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_javascript.htm#AEAPI1095' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_javascript.htm#AEAPI1100 'apex_javascript.add_attribute3': 'prefix': 'apex_javascript.add_attribute3' 'body': """APEX_JAVASCRIPT.ADD_ATTRIBUTE3( p_name => $1, p_value => $2, p_omit_null => $3, p_add_comma => $4 );$5""" 'description': 'This function returns the attribute and a JavaScript boolean of TRUE, FALSE, or NULL.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_javascript.htm#AEAPI1100' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_javascript.htm#AEAPI1105 'apex_javascript.add_attribute4': 'prefix': 'apex_javascript.add_attribute4' 'body': """APEX_JAVASCRIPT.ADD_ATTRIBUTE4( p_name => $1, p_value => $2, p_omit_null => $3, p_add_comma => $4 );$5""" 'description': 'This function returns the attribute and the attribut\'s date. If p_value is null the value null is returned.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_javascript.htm#AEAPI1105' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_javascript.htm#AEAPI1110 'apex_javascript.add_inline_code': 'prefix': 'apex_javascript.add_inline_code' 'body': """APEX_JAVASCRIPT.ADD_INLINE_CODE( p_code => $1 );$2""" 'description': 'This procedure adds a code snippet that is included inline into the HTML output. For example, you can use this procedure to add new functions or global variable declarations. If you want to execute code you should use ADD_ONLOAD_CODE Procedure.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_javascript.htm#AEAPI1110' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_javascript.htm#AEAPI1115 'apex_javascript.add_library': 'prefix': 'apex_javascript.add_library' 'body': """APEX_JAVASCRIPT.ADD_LIBRARY( p_name => $1, p_directory => $2 );$3""" 'description': 'This procedure adds the script tag to load a JavaScript library. If a library has been added, it is not added a second time.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_javascript.htm#AEAPI1115' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_javascript.htm#AEAPI1120 'apex_javascript.add_onload_code': 'prefix': 'apex_javascript.add_onload_code' 'body': """APEX_JAVASCRIPT.ADD_ONLOAD_CODE( p_code => $1 );$2""" 'description': 'This procedure adds a javascript code snippet to the HTML output which is executed by the onload event. If an entry with the same key exists it is ignored. If p_key is NULL the snippet is always added.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_javascript.htm#AEAPI1120' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_javascript.htm#AEAPI1125 'apex_javascript.add_value': 'prefix': 'apex_javascript.add_value' 'body': """APEX_JAVASCRIPT.ADD_VALUE( p_value => $1, p_add_comma => $2 );$3""" 'description': 'This function returns the escaped text surrounded by double quotation marks. For example, this string could be returned "That\'s a test".' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_javascript.htm#AEAPI1125' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_javascript.htm#AEAPI1130 'apex_javascript.add_value2': 'prefix': 'apex_javascript.add_value2' 'body': """APEX_JAVASCRIPT.ADD_VALUE2( p_value => $1, p_add_comma => $2 );$3""" 'description': 'This function returns p_value as JavaScript number, if p_value is NULL the value null is returned.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_javascript.htm#AEAPI1130' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_javascript.htm#AEAPI1135 'apex_javascript.add_value3': 'prefix': 'apex_javascript.add_value3' 'body': """APEX_JAVASCRIPT.ADD_VALUE3( p_value => $1, p_add_comma => $2 );$3""" 'description': 'This function returns p_value as JavaScript boolean. If p_value is NULL the value null is returned.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_javascript.htm#AEAPI1135' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_javascript.htm#AEAPI1140 'apex_javascript.add_value4': 'prefix': 'apex_javascript.add_value4' 'body': """APEX_JAVASCRIPT.ADD_VALUE4( p_value => $1, p_add_comma => $2 );$3""" 'description': 'This function returns p_value as JavaScript date object, if p_value is NULL the value null is returned.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_javascript.htm#AEAPI1140' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_javascript.htm#AEAPI1145 'apex_javascript.escape': 'prefix': 'apex_javascript.escape' 'body': """APEX_JAVASCRIPT.ESCAPE( p_text => $1 );$2""" 'description': 'This function escapes text to be used in JavaScript. This function makes the following replacements:' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_javascript.htm#AEAPI1145' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29646 'apex_json.close_all': 'prefix': 'apex_json.close_all' 'body': """APEX_JSON.CLOSE_ALL""" 'description': 'This procedure closes all objects and arrays up to the outermost nesting level.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29646' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29650 'apex_json.close_array': 'prefix': 'apex_json.close_array' 'body': """APEX_JSON.CLOSE_ARRAY""" 'description': 'This procedure writes a close bracket symbol as follows:' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29650' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29655 'apex_json.close_object': 'prefix': 'apex_json.close_object' 'body': """APEX_JSON.CLOSE_OBJECT""" 'description': 'This procedure writes a close curly bracket symbol as follows:' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29655' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29660 'apex_json.does_exist': 'prefix': 'apex_json.does_exist' 'body': """APEX_JSON.DOES_EXIST( p_path => $1 );$2""" 'description': 'This function determines whether the given path points to an existing value.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29660' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29667 'apex_json.find_paths_like': 'prefix': 'apex_json.find_paths_like' 'body': """APEX_JSON.FIND_PATHS_LIKE( p_return_path => $1 );$2""" 'description': 'This function returns paths into p_values that match a given pattern.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29667' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29674 'apex_json.flush': 'prefix': 'apex_json.flush' 'body': """APEX_JSON.FLUSH""" 'description': 'This procedure flushes pending changes. Note that close procedures automatically flush.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29674' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI30237 'apex_json.free_output': 'prefix': 'apex_json.free_output' 'body': """APEX_JSON.FREE_OUTPUT""" 'description': 'Frees output resources. Call this procedure after process if you are using INITIALIZE_CLOB_OUTPUT to write to a temporary CLOB.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI30237' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29678 'apex_json.get_boolean': 'prefix': 'apex_json.get_boolean' 'body': """APEX_JSON.GET_BOOLEAN( p_path => $1 );$2""" 'description': 'This function returns a boolean number value.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29678' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI30240 'apex_json.get_clob_output': 'prefix': 'apex_json.get_clob_output' 'body': """APEX_JSON.GET_CLOB_OUTPUT""" 'description': 'Returns the temporary CLOB that you created with INITIALIZE_CLOB_OUTPUT.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI30240' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29685 'apex_json.get_count': 'prefix': 'apex_json.get_count' 'body': """APEX_JSON.GET_COUNT( p_path => $1 );$2""" 'description': 'This function returns the number of array elements or object members.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29685' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29692 'apex_json.get_date': 'prefix': 'apex_json.get_date' 'body': """APEX_JSON.GET_DATE( p_path => $1 );$2""" 'description': 'This function returns a date member value.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29692' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29699 'apex_json.get_members': 'prefix': 'apex_json.get_members' 'body': """APEX_JSON.GET_MEMBERS( p_path => $1 );$2""" 'description': 'This function returns the table of OBJECT_MEMBERS names for an object.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29699' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29706 'apex_json.get_number': 'prefix': 'apex_json.get_number' 'body': """APEX_JSON.GET_NUMBER( p_path => $1 );$2""" 'description': 'This function returns a numeric number value.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29706' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29713 'apex_json.get_value': 'prefix': 'apex_json.get_value' 'body': """APEX_JSON.GET_VALUE( p_path => $1 );$2""" 'description': 'This function returns the t_value.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29713' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29720 'apex_json.get_varchar2': 'prefix': 'apex_json.get_varchar2' 'body': """APEX_JSON.GET_VARCHAR2( p_path => $1 );$2""" 'description': 'This function returns a varchar2 member value. This function converts boolean and number values to varchar2 values.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29720' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI30243 'apex_json.initialize_clob_output': 'prefix': 'apex_json.initialize_clob_output' 'body': """APEX_JSON.INITIALIZE_CLOB_OUTPUT""" 'description': 'Initialize the output interface to write to a temporary CLOB. the default is to write to SYS.HTP. If using CLOB output, you should call FREE_OUTPUT() at the end to free the CLOB.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI30243' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29727 'apex_json.initialize_output': 'prefix': 'apex_json.initialize_output' 'body': """APEX_JSON.INITIALIZE_OUTPUT""" 'description': 'This procedure initializes the output interface. You only have to call this procedure if you want to modify the parameters below. Initially, output is already configured with the defaults mentioned in the parameter table.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29727' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29732 'apex_json.open_array': 'prefix': 'apex_json.open_array' 'body': """APEX_JSON.OPEN_ARRAY""" 'description': 'This procedure writes an open bracket symbol as follows:' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29732' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29737 'apex_json.open_object': 'prefix': 'apex_json.open_object' 'body': """APEX_JSON.OPEN_OBJECT""" 'description': 'This procedure writes an open curly bracket symbol as follows:' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29737' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29742 'apex_json.parse': 'prefix': 'apex_json.parse' 'body': """APEX_JSON.PARSE( p_values => $1, p_source => $2 );$3""" 'description': 'This procedure parses a JSON-formatted varchar2 or clob and puts the members into p_values.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29742' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29747 'apex_json.parse2': 'prefix': 'apex_json.parse2' 'body': """APEX_JSON.PARSE2( p_source => $1 );$2""" 'description': 'This procedure parses a JSON-formatted varchar2 or clob and puts the members into the package global g_values. This simplified API works similar to the parse() procedure for signature 1, but saves the developer from declaring a local variable for parsed JSON data and passing it to each JSON API call.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29747' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29752 'apex_json.stringify': 'prefix': 'apex_json.stringify' 'body': """APEX_JSON.STRINGIFY( p_value => $1 );$2""" 'description': 'This function converts a string to an escaped JSON value.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29752' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29759 'apex_json.stringify2': 'prefix': 'apex_json.stringify2' 'body': """APEX_JSON.STRINGIFY2( p_value => $1 );$2""" 'description': 'This function converts a number to an escaped JSON value.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29759' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29766 'apex_json.stringify3': 'prefix': 'apex_json.stringify3' 'body': """APEX_JSON.STRINGIFY3( p_value => $1 );$2""" 'description': 'This function converts a date to an escaped JSON value.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29766' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29773 'apex_json.stringify4': 'prefix': 'apex_json.stringify4' 'body': """APEX_JSON.STRINGIFY4( p_value => $1 );$2""" 'description': 'This function converts a boolean value to an escaped JSON value.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29773' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29780 'apex_json.to_xmltype': 'prefix': 'apex_json.to_xmltype' 'body': """APEX_JSON.TO_XMLTYPE( p_value => $1 );$2""" 'description': 'This procedure parses a JSON-formatted varchar2 or CLOB and converts it to an xmltype.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29780' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29787 'apex_json.write': 'prefix': 'apex_json.write' 'body': """APEX_JSON.WRITE( p_value => $1 );$2""" 'description': 'This procedure writes an array attribute of type VARCHAR2.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29787' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29832 'apex_json.write10': 'prefix': 'apex_json.write10' 'body': """APEX_JSON.WRITE10( p_name => $1, p_value => $2 );$3""" 'description': 'This procedure writes an object attribute of type NUMBER.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29832' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29837 'apex_json.write11': 'prefix': 'apex_json.write11' 'body': """APEX_JSON.WRITE11( p_name => $1, p_value => $2 );$3""" 'description': 'This procedure writes an object attribute of type date.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29837' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29842 'apex_json.write12': 'prefix': 'apex_json.write12' 'body': """APEX_JSON.WRITE12( p_name => $1, p_value => $2 );$3""" 'description': 'This procedure writes an object attribute of type boolean.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29842' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29847 'apex_json.write13': 'prefix': 'apex_json.write13' 'body': """APEX_JSON.WRITE13( p_name => $1, p_cursor => $2 );$3""" 'description': 'This procedure writes an attribute where the value is an array that contains all rows that the cursor returns. Each row is a separate object.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29847' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29852 'apex_json.write14': 'prefix': 'apex_json.write14' 'body': """APEX_JSON.WRITE14( p_name => $1, p_value => $2 );$3""" 'description': 'This procedure writes an array attribute of type sys.xmltype. The procedure uses a XSL transformation to generate JSON. To determine the JSON type of values, it uses the following rules:' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29852' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29857 'apex_json.write15': 'prefix': 'apex_json.write15' 'body': """APEX_JSON.WRITE15( p_values => $1 );$2""" 'description': 'This procedure writes parts of a parsed APEX_JSON.t_values table.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29857' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29862 'apex_json.write16': 'prefix': 'apex_json.write16' 'body': """APEX_JSON.WRITE16( p_name => $1, p_values => $2 );$3""" 'description': 'This procedure writes parts of a parsed APEX_JSON.t_values table as an object member attribute.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29862' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29792 'apex_json.write2': 'prefix': 'apex_json.write2' 'body': """APEX_JSON.WRITE2( p_value => $1 );$2""" 'description': 'This procedure writes an array attribute. of type clob.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29792' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29797 'apex_json.write3': 'prefix': 'apex_json.write3' 'body': """APEX_JSON.WRITE3( p_value => $1 );$2""" 'description': 'This procedure writes an array attribute of type NUMBER.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29797' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29802 'apex_json.write4': 'prefix': 'apex_json.write4' 'body': """APEX_JSON.WRITE4( p_value => $1 );$2""" 'description': 'This procedure writes an array attribute. of type date' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29802' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29807 'apex_json.write5': 'prefix': 'apex_json.write5' 'body': """APEX_JSON.WRITE5( p_value => $1 );$2""" 'description': 'This procedure writes an array attribute of type boolean.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29807' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29812 'apex_json.write6': 'prefix': 'apex_json.write6' 'body': """APEX_JSON.WRITE6( p_value => $1 );$2""" 'description': 'This procedure writes an array attribute of type sys.xmltype. The procedure uses a XSL transformation to generate JSON. To determine the JSON type of values, it uses the following rules:' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29812' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29817 'apex_json.write7': 'prefix': 'apex_json.write7' 'body': """APEX_JSON.WRITE7( p_cursor => $1 );$2""" 'description': 'This procedure writes an array with all rows that the cursor returns. Each row is a separate object. If the query contains object type, collection, or cursor columns, the procedure uses write(xmltype) to generate JSON. Otherwise, it uses DBMS_SQL to fetch rows and the write() procedures for the appropriate column data types for output. If the column type is varchar2 and the uppercase value is\'TRU\' or\'FALS\', it generates boolean values.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29817' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29822 'apex_json.write8': 'prefix': 'apex_json.write8' 'body': """APEX_JSON.WRITE8( p_name => $1, p_value => $2 );$3""" 'description': 'This procedure writes an object attribute of type VARCHAR2.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29822' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29827 'apex_json.write9': 'prefix': 'apex_json.write9' 'body': """APEX_JSON.WRITE9( p_name => $1, p_value => $2 );$3""" 'description': 'This procedure writes an object attribute of type CLOB.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29827' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_lang.htm#AEAPI29547 'apex_lang.create_language_mapping': 'prefix': 'apex_lang.create_language_mapping' 'body': """APEX_LANG.CREATE_LANGUAGE_MAPPING( p_application_id => $1, p_language => $2, p_translation_application_id => $3 );$4""" 'description': 'Use this procedure to create the language mapping for the translation of an application. Translated applications are published as new applications, but are not directly editable in the Application Builder.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_lang.htm#AEAPI29547' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_lang.htm#AEAPI29552 'apex_lang.delete_language_mapping': 'prefix': 'apex_lang.delete_language_mapping' 'body': """APEX_LANG.DELETE_LANGUAGE_MAPPING( p_application_id => $1, p_language => $2 );$3""" 'description': 'Use this procedure to delete the language mapping for the translation of an application. This procedure deletes all translated strings in the translation repository for the specified language and mapping. Translated applications are published as new applications, but are not directly editable in the Application Builder.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_lang.htm#AEAPI29552' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_lang.htm#AEAPI1151 'apex_lang.lang': 'prefix': 'apex_lang.lang' 'body': """APEX_LANG.LANG""" 'description': 'Use this function to return a translated text string for translations defined in dynamic translations.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_lang.htm#AEAPI1151' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_lang.htm#AEAPI1156 'apex_lang.message': 'prefix': 'apex_lang.message' 'body': """APEX_LANG.MESSAGE""" 'description': 'Use this function to translate text strings (or messages) generated from PL/SQL stored procedures, functions, triggers, packaged procedures, and functions.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_lang.htm#AEAPI1156' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_lang.htm#AEAPI29557 'apex_lang.publish_application': 'prefix': 'apex_lang.publish_application' 'body': """APEX_LANG.PUBLISH_APPLICATION( p_application_id => $1, p_language => $2 );$3""" 'description': 'Use this procedure to publish the translated version of an application. This procedure creates an underlying, hidden replica of the primary application and merges the strings from the translation repository in this new application. Perform a seed and publish process each time you want to update the translated version of your application and synchronize it with the primary application.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_lang.htm#AEAPI29557' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_lang.htm#AEAPI29562 'apex_lang.seed_translations': 'prefix': 'apex_lang.seed_translations' 'body': """APEX_LANG.SEED_TRANSLATIONS( p_application_id => $1, p_language => $2 );$3""" 'description': 'Use this procedure to seed the translation repository for the specified application and language. This procedure populates the translation repository with all of the new, updated and removed translatable strings from your application. Perform a seed and publish process each time you want to update the translated version of your application and synchronize it with the primary application.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_lang.htm#AEAPI29562' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_lang.htm#AEAPI29567 'apex_lang.update_language_mapping': 'prefix': 'apex_lang.update_language_mapping' 'body': """APEX_LANG.UPDATE_LANGUAGE_MAPPING( p_application_id => $1, p_language => $2, p_new_trans_application_id => $3 );$4""" 'description': 'Use this procedure to update the language mapping for the translation of an application. Translated applications are published as new applications, but are not directly editable in the Application Builder.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_lang.htm#AEAPI29567' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_lang.htm#AEAPI29572 'apex_lang.update_message': 'prefix': 'apex_lang.update_message' 'body': """APEX_LANG.UPDATE_MESSAGE( p_id => $1, p_message_text => $2 );$3""" 'description': 'Use this procedure to update a translatable text message for the specified application.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_lang.htm#AEAPI29572' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_lang.htm#AEAPI29577 'apex_lang.update_translated_string': 'prefix': 'apex_lang.update_translated_string' 'body': """APEX_LANG.UPDATE_TRANSLATED_STRING( p_id => $1, p_language => $2, p_string => $3 );$4""" 'description': 'Use this procedure to update a translated string in the seeded translation repository.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_lang.htm#AEAPI29577' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ldap.htm#AEAPI239 'apex_ldap.authenticate': 'prefix': 'apex_ldap.authenticate' 'body': """APEX_LDAP.AUTHENTICATE( p_search_base => $1, p_host => $2 );$3""" 'description': 'The AUTHENTICATE function returns a boolean TRUE if the user name and password can be used to perform a SIMPLE_BIND_S, call using the provided search base, host, and port.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ldap.htm#AEAPI239' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ldap.htm#AEAPI244 'apex_ldap.get_all_user_attributes': 'prefix': 'apex_ldap.get_all_user_attributes' 'body': """APEX_LDAP.GET_ALL_USER_ATTRIBUTES( p_host => $1, p_attributes => $2, p_attribute_values => $3 );$4""" 'description': 'The GET_ALL_USER_ATTRIBUTES procedure returns two OUT arrays of user_attribute names and values for the user name designated by p_username (with password if required) using the provided auth base, host, and port.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ldap.htm#AEAPI244' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ldap.htm#AEAPI243 'apex_ldap.get_user_attributes': 'prefix': 'apex_ldap.get_user_attributes' 'body': """APEX_LDAP.GET_USER_ATTRIBUTES( p_auth_base => $1, p_host => $2, p_attributes => $3, p_attribute_values => $4 );$5""" 'description': 'The GET_USER_ATTRIBUTES procedure returns an OUT array of user_attribute values for the user name designated by p_username (with password if required) corresponding to the attribute names passed in p_attributes using the provided auth base, host, and port.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ldap.htm#AEAPI243' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ldap.htm#AEAPI240 'apex_ldap.is_member': 'prefix': 'apex_ldap.is_member' 'body': """APEX_LDAP.IS_MEMBER( p_username => $1, p_auth_base => $2, p_host => $3, p_group => $4, p_group_base => $5 );$6""" 'description': 'The IS_MEMBER function returns a boolean TRUE if the user named by p_username (with password if required) is a member of the group specified by the p_group and p_group_base parameters using the provided auth base, host, and port.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ldap.htm#AEAPI240' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ldap.htm#AEAPI241 'apex_ldap.member_of': 'prefix': 'apex_ldap.member_of' 'body': """APEX_LDAP.MEMBER_OF( p_auth_base => $1, p_host => $2 );$3""" 'description': 'The MEMBER_OF function returns an array of groups the user name designated by p_username (with password if required) belongs to, using the provided auth base, host, and port.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ldap.htm#AEAPI241' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ldap.htm#AEAPI242 'apex_ldap.member_of2': 'prefix': 'apex_ldap.member_of2' 'body': """APEX_LDAP.MEMBER_OF2( p_auth_base => $1, p_host => $2 );$3""" 'description': 'The MEMBER_OF2 function returns a VARCHAR2 colon delimited list of groups the user name designated by p_username (with password if required) belongs to, using the provided auth base, host, and port.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ldap.htm#AEAPI242' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ldap.htm#AEAPI30150 'apex_ldap.search': 'prefix': 'apex_ldap.search' 'body': """APEX_LDAP.SEARCH( p_host => $1, p_search_base => $2, p_search_filter => $3, p_attribute_names => $4 );$5""" 'description': 'The APEX_LDAP.SEARCH function searches the LDAP repository. The result is an object table of (dn, name, val) that can be used in table queries.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ldap.htm#AEAPI30150' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_mail.htm#AEAPI343 'apex_mail.add_attachment': 'prefix': 'apex_mail.add_attachment' 'body': """APEX_MAIL.ADD_ATTACHMENT( p_mail_id => $1, p_attachment => $2, p_filename => $3, p_mime_type => $4 );$5""" 'description': 'This procedure sends an outbound email message from an application as an attachment. To add multiple attachments to a single email, APEX_MAIL.ADD_ATTACHMENT can be called repeatedly for a single email message.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_mail.htm#AEAPI343' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_mail.htm#AEAPI29582 'apex_mail.get_images_url': 'prefix': 'apex_mail.get_images_url' 'body': """APEX_MAIL.GET_IMAGES_URL""" 'description': 'Use this function to get the image prefixed URL, if the email includes Application Express instance images.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_mail.htm#AEAPI29582' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_mail.htm#AEAPI29399 'apex_mail.get_instance_url': 'prefix': 'apex_mail.get_instance_url' 'body': """APEX_MAIL.GET_INSTANCE_URL""" 'description': 'If an email includes a link to an Application Express instance, use this function to get the instance URL.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_mail.htm#AEAPI29399' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_mail.htm#AEAPI344 'apex_mail.push_queue': 'prefix': 'apex_mail.push_queue' 'body': """APEX_MAIL.PUSH_QUEUE""" 'description': 'Oracle Application Express stores unsent email messages in a table named APEX_MAIL_QUEUE. You can manually deliver mail messages stored in this queue to the specified SMTP gateway by invoking the APEX_MAIL.PUSH_QUEUE procedure.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_mail.htm#AEAPI344' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_mail.htm#AEAPI342 'apex_mail.send': 'prefix': 'apex_mail.send' 'body': """APEX_MAIL.SEND( p_to => $1, p_from => $2, p_body => $3, p_replyto => $4 );$5""" 'description': 'This procedure sends an outbound email message from an application. Although you can use this procedure to pass in either a VARCHAR2 or a CLOB to p_body and p_body_html, the data types must be the same. In other words, you cannot pass a CLOB to P_BODY and a VARCHAR2 to p_body_html.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_mail.htm#AEAPI342' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_page.htm#AEAPI30181 'apex_page.get_page_mode': 'prefix': 'apex_page.get_page_mode' 'body': """APEX_PAGE.GET_PAGE_MODE( p_application_id => $1, p_page_id => $2 );$3""" 'description': 'This function returns the page mode for the current page.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_page.htm#AEAPI30181' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_page.htm#AEAPI30177 'apex_page.get_ui_type': 'prefix': 'apex_page.get_ui_type' 'body': """APEX_PAGE.GET_UI_TYPE""" 'description': 'This function returns the user interface (UI) type for which the current page has been designed.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_page.htm#AEAPI30177' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_page.htm#AEAPI30190 'apex_page.get_url': 'prefix': 'apex_page.get_url' 'body': """APEX_PAGE.GET_URL""" 'description': 'This function returns an Oracle Application Express f?p= URL. It is sometimes clearer to read a function call than a concatenated URL. See the example below for a comparison.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_page.htm#AEAPI30190' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_page.htm#AEAPI30171 'apex_page.is_desktop_ui': 'prefix': 'apex_page.is_desktop_ui' 'body': """APEX_PAGE.IS_DESKTOP_UI""" 'description': 'This function returns TRUE if the current page has been designed for desktop browsers.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_page.htm#AEAPI30171' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_page.htm#AEAPI30173 'apex_page.is_jqm_smartphone_ui': 'prefix': 'apex_page.is_jqm_smartphone_ui' 'body': """APEX_PAGE.IS_JQM_SMARTPHONE_UI""" 'description': 'This function returns TRUE if the current page has been designed for smartphone devices using jQuery Mobile.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_page.htm#AEAPI30173' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_page.htm#AEAPI30175 'apex_page.is_jqm_tablet_ui': 'prefix': 'apex_page.is_jqm_tablet_ui' 'body': """APEX_PAGE.IS_JQM_TABLET_UI""" 'description': 'This function returns TRUE if the current page has been designed for tablet devices using jQuery Mobile.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_page.htm#AEAPI30175' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_page.htm#AEAPI30179 'apex_page.is_read_only': 'prefix': 'apex_page.is_read_only' 'body': """APEX_PAGE.IS_READ_ONLY""" 'description': 'This function returns TRUE if the current page is rendered read-only and FALSE if it is not.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_page.htm#AEAPI30179' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_page.htm#AEAPI30185 'apex_page.purge_cache': 'prefix': 'apex_page.purge_cache' 'body': """APEX_PAGE.PURGE_CACHE""" 'description': 'This procedure purges the cache of the specified application, page, and region for the specified user. If the user is not specified, the procedure purges all cached versions of the page.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_page.htm#AEAPI30185' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin.htm#AEAPI1250 'apex_plugin.get_ajax_identifier': 'prefix': 'apex_plugin.get_ajax_identifier' 'body': """APEX_PLUGIN.GET_AJAX_IDENTIFIER""" 'description': 'This function returns the Ajax identifier used to call the Ajax callback function defined for the plug-in.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin.htm#AEAPI1250' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin.htm#AEAPI1254 'apex_plugin.get_input_name_for_page_item': 'prefix': 'apex_plugin.get_input_name_for_page_item' 'body': """APEX_PLUGIN.GET_INPUT_NAME_FOR_PAGE_ITEM( p_is_multi_value => $1 );$2""" 'description': 'Use this function when you want to render an HTML input element in the rendering function of an item type plug-in.For the HTML input element, for example, <input type="text" id="P1_TEST" name="xxx">, you have to provide a value for the name attribute so that Oracle Application Express can map the submitted value to the actual page item in session state. This function returns the mapping name for your page item. If the HTML input element has multiple values, such as a select list with multiple="multiple", then set p_is_multi_value to TRUE.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin.htm#AEAPI1254' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1259 'apex_plugin_util.debug_dynamic_action': 'prefix': 'apex_plugin_util.debug_dynamic_action' 'body': """APEX_PLUGIN_UTIL.DEBUG_DYNAMIC_ACTION( p_plugin => $1, p_dynamic_action => $2 );$3""" 'description': 'This procedure writes the data of the dynamic action meta data to the debug output if debugging is enabled.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1259' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1264 'apex_plugin_util.debug_page_item': 'prefix': 'apex_plugin_util.debug_page_item' 'body': """APEX_PLUGIN_UTIL.DEBUG_PAGE_ITEM( p_plugin => $1, p_page_item => $2 );$3""" 'description': 'This procedure writes the data of the page item meta data to the debug output if debugging is enabled.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1264' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1269 'apex_plugin_util.debug_page_item2': 'prefix': 'apex_plugin_util.debug_page_item2' 'body': """APEX_PLUGIN_UTIL.DEBUG_PAGE_ITEM2( p_plugin => $1, p_page_item => $2, p_value => $3, p_is_readonly => $4, p_is_printer_friendly => $5 );$6""" 'description': 'This procedure writes the data of the page item meta data to the debug output if debugging is enabled.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1269' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1274 'apex_plugin_util.debug_process': 'prefix': 'apex_plugin_util.debug_process' 'body': """APEX_PLUGIN_UTIL.DEBUG_PROCESS( p_plugin => $1, p_process => $2 );$3""" 'description': 'This procedure writes the data of the process meta data to the debug output if debugging is enabled.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1274' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1279 'apex_plugin_util.debug_region': 'prefix': 'apex_plugin_util.debug_region' 'body': """APEX_PLUGIN_UTIL.DEBUG_REGION( p_plugin => $1, p_region => $2 );$3""" 'description': 'This procedure writes the data of the region meta data to the debug output if debugging is enabled.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1279' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1284 'apex_plugin_util.debug_region2': 'prefix': 'apex_plugin_util.debug_region2' 'body': """APEX_PLUGIN_UTIL.DEBUG_REGION2( p_plugin => $1, p_region => $2, p_is_printer_friendly => $3 );$4""" 'description': 'This procedure writes the data of the region meta data to the debug output if debugging is enabled. This is the advanced version of the debugging procedure which is used for the rendering function of a region plug-in.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1284' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1289 'apex_plugin_util.escape': 'prefix': 'apex_plugin_util.escape' 'body': """APEX_PLUGIN_UTIL.ESCAPE( p_value => $1, p_escape => $2 );$3""" 'description': 'This function is used if you have checked the standard attribute "Has Escape Output Attribute" option for your item type plug-in which allows a developer to decide if the output should be escaped or not.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1289' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1294 'apex_plugin_util.execute_plsql_code': 'prefix': 'apex_plugin_util.execute_plsql_code' 'body': """APEX_PLUGIN_UTIL.EXECUTE_PLSQL_CODE( p_plsql_code => $1 );$2""" 'description': 'This procedure executes a PL/SQL code block and performs binding of bind variables in the provided PL/SQL code. This procedure is usually used for plug-in attributes of type PL/SQL Code.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1294' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI29869 'apex_plugin_util.get_attribute_as_number': 'prefix': 'apex_plugin_util.get_attribute_as_number' 'body': """APEX_PLUGIN_UTIL.GET_ATTRIBUTE_AS_NUMBER( p_value => $1, p_attribute_label => $2 );$3""" 'description': 'This function returns the value of a plug-in attribute as a number, taking into account NLS decimal separator effective for the current database session. Use this function in plug-in PL/SQL source for custom attributes of type NUMBER instead of the built-in to_number function.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI29869' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI2163 'apex_plugin_util.get_data': 'prefix': 'apex_plugin_util.get_data' 'body': """APEX_PLUGIN_UTIL.GET_DATA( p_sql_statement => $1, p_min_columns => $2, p_max_columns => $3, p_component_name => $4 );$5""" 'description': 'Executes the specified SQL query restricted by the provided search string (optional) and returns the values for each column. All column values are returned as a string, independent of their data types. The search column is identified by providing a column number in the p_search_column_no parameter. This function takes into account character value comparison globalization attributes defined for the application.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI2163' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI2168 'apex_plugin_util.get_data2': 'prefix': 'apex_plugin_util.get_data2' 'body': """APEX_PLUGIN_UTIL.GET_DATA2( p_sql_statement => $1, p_min_columns => $2, p_max_columns => $3, p_component_name => $4 );$5""" 'description': 'Executes the specified SQL query restricted by the provided search string (optional) and returns the values for each column. All column values are returned along with their original data types. The search column is identified by providing a column number in the p_search_column_no parameter. This function takes into account character value comparison globalization attributes defines for the application.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI2168' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI29403 'apex_plugin_util.get_data2': 'prefix': 'apex_plugin_util.get_data2' 'body': """APEX_PLUGIN_UTIL.GET_DATA2( p_sql_statement => $1, p_min_columns => $2, p_max_columns => $3, p_component_name => $4 );$5""" 'description': 'Executes the specified SQL query restricted by the provided search string (optional) and returns the values for each column. All column values are returned as a string, independent of their data types. The search column is identified by providing a column name in the p_search_column_name parameter. This function takes into account character value comparison globalization attributes defined for the application.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI29403' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI29410 'apex_plugin_util.get_data22': 'prefix': 'apex_plugin_util.get_data22' 'body': """APEX_PLUGIN_UTIL.GET_DATA22( p_sql_statement => $1, p_min_columns => $2, p_max_columns => $3, p_component_name => $4 );$5""" 'description': 'Executes the specified SQL query restricted by the provided search string (optional) and returns the values for each column. All column values are returned along with their original data types. The search column is identified by providing a column number in the p_search_column_no parameter. This function takes into account character value comparison globalization attributes defines for the application.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI29410' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1299 'apex_plugin_util.get_display_data': 'prefix': 'apex_plugin_util.get_display_data' 'body': """APEX_PLUGIN_UTIL.GET_DISPLAY_DATA( p_sql_statement => $1, p_min_columns => $2, p_max_columns => $3, p_component_name => $4 );$5""" 'description': 'This function gets the display lookup value for the value specified in p_search_string.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1299' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1306 'apex_plugin_util.get_display_data2': 'prefix': 'apex_plugin_util.get_display_data2' 'body': """APEX_PLUGIN_UTIL.GET_DISPLAY_DATA2( p_sql_statement => $1, p_min_columns => $2, p_max_columns => $3, p_component_name => $4, p_search_value_list => $5 );$6""" 'description': 'This function looks up all the values provided in the p_search_value_list instead of just a single value lookup.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1306' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI29417 'apex_plugin_util.get_element_attributes': 'prefix': 'apex_plugin_util.get_element_attributes' 'body': """APEX_PLUGIN_UTIL.GET_ELEMENT_ATTRIBUTES( p_item => $1 );$2""" 'description': 'This function returns some of the standard attributes of an HTML element (for example, id, name, required, placeholder, aria-error-attributes, class) which is used if a HTML input/select/textarea/... tag is generated to get a consistent set of attributes.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI29417' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1313 'apex_plugin_util.get_plsql_expression_result': 'prefix': 'apex_plugin_util.get_plsql_expression_result' 'body': """APEX_PLUGIN_UTIL.GET_PLSQL_EXPRESSION_RESULT( p_plsql_expression => $1 );$2""" 'description': 'This function executes a PL/SQL expression and returns a result. This function also performs the binding of any bind variables in the provided PL/SQL expression. This function is usually used for plug-in attributes of type PL/SQL Expression.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1313' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1320 'apex_plugin_util.get_plsql_function_result': 'prefix': 'apex_plugin_util.get_plsql_function_result' 'body': """APEX_PLUGIN_UTIL.GET_PLSQL_FUNCTION_RESULT( p_plsql_function => $1 );$2""" 'description': 'This function executes a PL/SQL function block and returns the result. This function also performs binding of bind variables in the provided PL/SQL Function Body. This function is usually used for plug-in attributes of type PL/SQL Function Body.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1320' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1327 'apex_plugin_util.get_position_in_list': 'prefix': 'apex_plugin_util.get_position_in_list' 'body': """APEX_PLUGIN_UTIL.GET_POSITION_IN_LIST( p_list => $1, p_value => $2 );$3""" 'description': 'This function returns the position in the list where p_value is stored. If it is not found, null is returned.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1327' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1334 'apex_plugin_util.get_search_string': 'prefix': 'apex_plugin_util.get_search_string' 'body': """APEX_PLUGIN_UTIL.GET_SEARCH_STRING( p_search_type => $1, p_search_string => $2 );$3""" 'description': 'Based on the provided value in p_search_type the passed in value of p_search_string is returned unchanged or is converted to uppercase. Use this function with the p_search_string parameter of get_data and get_data2.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1334' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1341 'apex_plugin_util.is_equal': 'prefix': 'apex_plugin_util.is_equal' 'body': """APEX_PLUGIN_UTIL.IS_EQUAL( p_value1 => $1, p_value2 => $2 );$3""" 'description': 'This function returns TRUE if both values are equal and FALSE if not. If both values are NULL, TRUE is returned.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1341' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1348 'apex_plugin_util.page_item_names_to_jquery': 'prefix': 'apex_plugin_util.page_item_names_to_jquery' 'body': """APEX_PLUGIN_UTIL.PAGE_ITEM_NAMES_TO_JQUERY( p_page_item_names => $1 );$2""" 'description': 'This function returns a jQuery selector based on a comma delimited string of page item names. For example, you could use this function for a plug-in attribute called "Page Items to Submit" where the JavaScript code has to read the values of the specified page items.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1348' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1355 'apex_plugin_util.print_display_only': 'prefix': 'apex_plugin_util.print_display_only' 'body': """APEX_PLUGIN_UTIL.PRINT_DISPLAY_ONLY( p_item_name => $1, p_display_value => $2, p_show_line_breaks => $3, p_attributes => $4 );$5""" 'description': 'This procedure outputs a SPAN tag for a display only field.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1355' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1360 'apex_plugin_util.print_escaped_value': 'prefix': 'apex_plugin_util.print_escaped_value' 'body': """APEX_PLUGIN_UTIL.PRINT_ESCAPED_VALUE( p_value => $1 );$2""" 'description': 'This procedure outputs the value in an escaped form and chunks big strings into smaller outputs.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1360' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1365 'apex_plugin_util.print_hidden_if_read_only': 'prefix': 'apex_plugin_util.print_hidden_if_read_only' 'body': """APEX_PLUGIN_UTIL.PRINT_HIDDEN_IF_READ_ONLY( p_item_name => $1, p_value => $2, p_is_readonly => $3, p_is_printer_friendly => $4 );$5""" 'description': 'This procedure outputs a hidden field to store the page item value if the page item is rendered as readonly and is not printer friendly. If this procedure is called in an item type plug-in, the parameters of the plug-in interface should directly be passed in.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1365' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1370 'apex_plugin_util.print_json_http_header': 'prefix': 'apex_plugin_util.print_json_http_header' 'body': """APEX_PLUGIN_UTIL.PRINT_JSON_HTTP_HEADER""" 'description': 'This procedure outputs a standard HTTP header for a JSON output.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1370' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1374 'apex_plugin_util.print_lov_as_json': 'prefix': 'apex_plugin_util.print_lov_as_json' 'body': """APEX_PLUGIN_UTIL.PRINT_LOV_AS_JSON( p_sql_statement => $1, p_component_name => $2, p_escape => $3 );$4""" 'description': 'This procedure outputs a JSON response based on the result of a two column LOV in the format:' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1374' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1379 'apex_plugin_util.print_option': 'prefix': 'apex_plugin_util.print_option' 'body': """APEX_PLUGIN_UTIL.PRINT_OPTION( p_display_value => $1, p_return_value => $2, p_is_selected => $3, p_attributes => $4 );$5""" 'description': 'This procedure outputs an OPTION tag.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1379' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI2289 'apex_plugin_util.replace_substitutions': 'prefix': 'apex_plugin_util.replace_substitutions' 'body': """APEX_PLUGIN_UTIL.REPLACE_SUBSTITUTIONS( p_value => $1 );$2""" 'description': 'This function replaces any &ITEM. substitution references with their actual value. If p_escape is set to TRUE, any special characters contained in the value of the referenced item are escaped to prevent Cross-site scripting (XSS) attacks.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI2289' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_region.htm#AEAPI30197 'apex_region.is_read_only2': 'prefix': 'apex_region.is_read_only2' 'body': """APEX_REGION.IS_READ_ONLY2""" 'description': 'This function returns TRUE if the current region is rendered read-only and FALSE if region is not rendered read-only. If the function is called from a context where no region is currently processed, it returns NULL. For example, you can use this function in conditions of a region or its underlying items and buttons.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_region.htm#AEAPI30197' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_region.htm#AEAPI30201 'apex_region.purge_cache2': 'prefix': 'apex_region.purge_cache2' 'body': """APEX_REGION.PURGE_CACHE2""" 'description': 'This procedure purges the region cache of the specified application, page, and region.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_region.htm#AEAPI30201' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_spatial.htm#AEAPI30206 'apex_spatial.change_geom_metadata': 'prefix': 'apex_spatial.change_geom_metadata' 'body': """APEX_SPATIAL.CHANGE_GEOM_METADATA( p_table_name => $1, p_column_name => $2, p_diminfo => $3, p_srid => $4 );$5""" 'description': 'This procedure modifies a spatial metadata record.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_spatial.htm#AEAPI30206' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_spatial.htm#AEAPI29884 'apex_spatial.circle_polygon': 'prefix': 'apex_spatial.circle_polygon' 'body': """APEX_SPATIAL.CIRCLE_POLYGON( p_lon => $1, p_lat => $2, p_radius => $3 );$4""" 'description': 'This function creates a polygon that approximates a circle at (p_lon, p_lat) with radius of p_radius. See mdsys.sdo_util.circle_polygon for details.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_spatial.htm#AEAPI29884' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_spatial.htm#AEAPI29891 'apex_spatial.delete_geom_metadata': 'prefix': 'apex_spatial.delete_geom_metadata' 'body': """APEX_SPATIAL.DELETE_GEOM_METADATA( p_table_name => $1, p_column_name => $2 );$3""" 'description': 'This procedure deletes a spatial metadata record.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_spatial.htm#AEAPI29891' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_spatial.htm#AEAPI29896 'apex_spatial.insert_geom_metadata': 'prefix': 'apex_spatial.insert_geom_metadata' 'body': """APEX_SPATIAL.INSERT_GEOM_METADATA( p_table_name => $1, p_column_name => $2, p_diminfo => $3, p_srid => $4 );$5""" 'description': 'This procedure inserts a spatial metadata record and optionally creates a spatial index.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_spatial.htm#AEAPI29896' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_spatial.htm#AEAPI29901 'apex_spatial.insert_geom_metadata_lonlat': 'prefix': 'apex_spatial.insert_geom_metadata_lonlat' 'body': """APEX_SPATIAL.INSERT_GEOM_METADATA_LONLAT( p_table_name => $1, p_column_name => $2 );$3""" 'description': 'This procedure inserts a spatial metadata record that is suitable for longitude/latitude and optionally creates a spatial index.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_spatial.htm#AEAPI29901' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_spatial.htm#AEAPI29906 'apex_spatial.point': 'prefix': 'apex_spatial.point' 'body': """APEX_SPATIAL.POINT( p_lon => $1, p_lat => $2 );$3""" 'description': 'This function creates a point at (p_lon, p_lat).' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_spatial.htm#AEAPI29906' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_spatial.htm#AEAPI29913 'apex_spatial.rectangle': 'prefix': 'apex_spatial.rectangle' 'body': """APEX_SPATIAL.RECTANGLE( p_lon1 => $1, p_lat1 => $2, p_lon2 => $3, p_lat2 => $4 );$5""" 'description': 'This function creates a rectangle from point at (p_lon1, p_lat1) to (p_lon2, p_lat2).' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_spatial.htm#AEAPI29913' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI400 'apex_ui_default_update.add_ad_column': 'prefix': 'apex_ui_default_update.add_ad_column' 'body': """APEX_UI_DEFAULT_UPDATE.ADD_AD_COLUMN( p_column_name => $1 );$2""" 'description': 'Adds a User Interface Default Attribute Dictionary entry with the provided definition. Up to three synonyms can be provided during the creation. Additional synonyms can be added post-creation using apex_ui_default_update.add_ad_synonym. Synonyms share the column definition of their base column.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI400' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI401 'apex_ui_default_update.add_ad_synonym': 'prefix': 'apex_ui_default_update.add_ad_synonym' 'body': """APEX_UI_DEFAULT_UPDATE.ADD_AD_SYNONYM( p_column_name => $1, p_syn_name => $2 );$3""" 'description': 'If the column name is found within the User Interface Default Attribute Dictionary, the synonym provided is created and associated with that column. Synonyms share the column definition of their base column.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI401' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI402 'apex_ui_default_update.del_ad_column': 'prefix': 'apex_ui_default_update.del_ad_column' 'body': """APEX_UI_DEFAULT_UPDATE.DEL_AD_COLUMN( p_column_name => $1 );$2""" 'description': 'If the column name is found within the User Interface Default Attribute Dictionary, the column, along with any associated synonyms, is deleted.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI402' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI403 'apex_ui_default_update.del_ad_synonym': 'prefix': 'apex_ui_default_update.del_ad_synonym' 'body': """APEX_UI_DEFAULT_UPDATE.DEL_AD_SYNONYM( p_syn_name => $1 );$2""" 'description': 'If the synonym name is found within the User Interface Default Attribute Dictionary, the synonym name is deleted.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI403' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI404 'apex_ui_default_update.del_column': 'prefix': 'apex_ui_default_update.del_column' 'body': """APEX_UI_DEFAULT_UPDATE.DEL_COLUMN( p_table_name => $1, p_column_name => $2 );$3""" 'description': 'If the provided table and column exists within the use\'s schem\'s table based User Interface Defaults, the UI Defaults for it are deleted.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI404' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI405 'apex_ui_default_update.del_group': 'prefix': 'apex_ui_default_update.del_group' 'body': """APEX_UI_DEFAULT_UPDATE.DEL_GROUP( p_table_name => $1, p_group_name => $2 );$3""" 'description': 'If the provided table and group exists within the use\'s schem\'s table based User Interface Defaults, the UI Defaults for it are deleted and any column within the table that references that group has the group_id set to null.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI405' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI406 'apex_ui_default_update.del_table': 'prefix': 'apex_ui_default_update.del_table' 'body': """APEX_UI_DEFAULT_UPDATE.DEL_TABLE( p_table_name => $1 );$2""" 'description': 'If the provided table exists within the use\'s schem\'s table based User Interface Defaults, the UI Defaults for it is deleted. This includes the deletion of any groups defined for the table and all the columns associated with the table.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI406' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI407 'apex_ui_default_update.synch_table': 'prefix': 'apex_ui_default_update.synch_table' 'body': """APEX_UI_DEFAULT_UPDATE.SYNCH_TABLE( p_table_name => $1 );$2""" 'description': 'If the Table Based User Interface Defaults for the table do not already exist within the use\'s schema, they are defaulted. If they do exist, they are synchronized, meaning, the columns in the table is matched against the column in the UI Defaults Table Definitions. Additions and deletions are used to make them match.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI407' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI408 'apex_ui_default_update.upd_ad_column': 'prefix': 'apex_ui_default_update.upd_ad_column' 'body': """APEX_UI_DEFAULT_UPDATE.UPD_AD_COLUMN( p_column_name => $1 );$2""" 'description': 'If the column name is found within the User Interface Default Attribute Dictionary, the column entry is updated using the provided parameters. If\'null\' is passed in, the value of the associated parameter is set to null.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI408' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI409 'apex_ui_default_update.upd_ad_synonym': 'prefix': 'apex_ui_default_update.upd_ad_synonym' 'body': """APEX_UI_DEFAULT_UPDATE.UPD_AD_SYNONYM( p_syn_name => $1 );$2""" 'description': 'If the synonym name is found within the User Interface Default Attribute Dictionary, the synonym name is updated.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI409' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI410 'apex_ui_default_update.upd_column': 'prefix': 'apex_ui_default_update.upd_column' 'body': """APEX_UI_DEFAULT_UPDATE.UPD_COLUMN( p_table_name => $1, p_column_name => $2 );$3""" 'description': 'If the provided table and column exists within the use\'s schem\'s table based User Interface Defaults, the provided parameters are updated. If\'null\' is passed in, the value of the associated parameter is set to null.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI410' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI259 'apex_ui_default_update.upd_display_in_form': 'prefix': 'apex_ui_default_update.upd_display_in_form' 'body': """APEX_UI_DEFAULT_UPDATE.UPD_DISPLAY_IN_FORM( p_table_name => $1, p_column_name => $2, p_display_in_form => $3 );$4""" 'description': 'The UPD_DISPLAY_IN_FORM procedure sets the display in form user interface defaults. This user interface default is used by wizards when you select to create a form based upon the table. It controls whether the column is included by default or not.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI259' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI260 'apex_ui_default_update.upd_display_in_report': 'prefix': 'apex_ui_default_update.upd_display_in_report' 'body': """APEX_UI_DEFAULT_UPDATE.UPD_DISPLAY_IN_REPORT( p_table_name => $1, p_column_name => $2, p_display_in_report => $3 );$4""" 'description': 'The UPD_DISPLAY_IN_REPORT procedure sets the display in report user interface default. This user interface default is used by wizards when you select to create a report based upon the table and controls whether the column is included by default or not.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI260' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI255 'apex_ui_default_update.upd_form_region_title': 'prefix': 'apex_ui_default_update.upd_form_region_title' 'body': """APEX_UI_DEFAULT_UPDATE.UPD_FORM_REGION_TITLE( p_table_name => $1 );$2""" 'description': 'The UPD_FORM_REGION_TITLE procedure updates the Form Region Title user interface default. User interface defaults are used in wizards when you create a form based upon the specified table.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI255' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI411 'apex_ui_default_update.upd_group': 'prefix': 'apex_ui_default_update.upd_group' 'body': """APEX_UI_DEFAULT_UPDATE.UPD_GROUP( p_table_name => $1, p_group_name => $2 );$3""" 'description': 'If the provided table and group exist within the use\'s schem\'s table based User Interface Defaults, the group name, description and display sequence of the group are updated. If\'null\' is passed in for p_description or p_display_sequence, the value is set to null.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI411' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI262 'apex_ui_default_update.upd_item_display_height': 'prefix': 'apex_ui_default_update.upd_item_display_height' 'body': """APEX_UI_DEFAULT_UPDATE.UPD_ITEM_DISPLAY_HEIGHT( p_table_name => $1, p_column_name => $2, p_display_height => $3 );$4""" 'description': 'The UPD_ITEM_DISPLAY_HEIGHT procedure sets the item display height user interface default. This user interface default is used by wizards when you select to create a form based upon the table and include the specified column. Display height controls if the item is a text box or a text area.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI262' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI261 'apex_ui_default_update.upd_item_display_width': 'prefix': 'apex_ui_default_update.upd_item_display_width' 'body': """APEX_UI_DEFAULT_UPDATE.UPD_ITEM_DISPLAY_WIDTH( p_table_name => $1, p_column_name => $2, p_display_width => $3 );$4""" 'description': 'The UPD_ITEM_DISPLAY_WIDTH procedure sets the item display width user interface default. This user interface default is used by wizards when you select to create a form based upon the table and include the specified column.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI261' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI264 'apex_ui_default_update.upd_item_format_mask': 'prefix': 'apex_ui_default_update.upd_item_format_mask' 'body': """APEX_UI_DEFAULT_UPDATE.UPD_ITEM_FORMAT_MASK( p_table_name => $1, p_column_name => $2 );$3""" 'description': 'The UPD_ITEM_FORMAT_MASK procedure sets the item format mask user interface default. This user interface default is used by wizards when you select to create a form based upon the table and include the specified column. Item format mask is typically used to format numbers and dates.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI264' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI258 'apex_ui_default_update.upd_item_help': 'prefix': 'apex_ui_default_update.upd_item_help' 'body': """APEX_UI_DEFAULT_UPDATE.UPD_ITEM_HELP( p_table_name => $1, p_column_name => $2 );$3""" 'description': 'The UPD_ITEM_HELP procedure updates the help text for the specified table and column. This user interface default is used when you create a form based upon the table and select to include the specified column.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI258' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI257 'apex_ui_default_update.upd_label': 'prefix': 'apex_ui_default_update.upd_label' 'body': """APEX_UI_DEFAULT_UPDATE.UPD_LABEL( p_table_name => $1, p_column_name => $2 );$3""" 'description': 'The UPD_LABEL procedure sets the label used for items. This user interface default is used when you create a form or report based on the specified table and include a specific column.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI257' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI263 'apex_ui_default_update.upd_report_alignment': 'prefix': 'apex_ui_default_update.upd_report_alignment' 'body': """APEX_UI_DEFAULT_UPDATE.UPD_REPORT_ALIGNMENT( p_table_name => $1, p_column_name => $2, p_report_alignment => $3 );$4""" 'description': 'The UPD_REPORT_ALIGNMENT procedure sets the report alignment user interface default. This user interface default is used by wizards when you select to create a report based upon the table and include the specified column and determines if the report column should be left, center, or right justified.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI263' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI265 'apex_ui_default_update.upd_report_format_mask': 'prefix': 'apex_ui_default_update.upd_report_format_mask' 'body': """APEX_UI_DEFAULT_UPDATE.UPD_REPORT_FORMAT_MASK( p_table_name => $1, p_column_name => $2 );$3""" 'description': 'The UPD_REPORT_FORMAT_MASK procedure sets the report format mask user interface default. This user interface default is used by wizards when you select to create a report based upon the table and include the specified column. Report format mask is typically used to format numbers and dates.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI265' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI256 'apex_ui_default_update.upd_report_region_title': 'prefix': 'apex_ui_default_update.upd_report_region_title' 'body': """APEX_UI_DEFAULT_UPDATE.UPD_REPORT_REGION_TITLE( p_table_name => $1 );$2""" 'description': 'The UPD_REPORT_REGION_TITLE procedure sets the Report Region Title. User interface defaults are used in wizards when a report is created on a table.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI256' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI412 'apex_ui_default_update.upd_table': 'prefix': 'apex_ui_default_update.upd_table' 'body': """APEX_UI_DEFAULT_UPDATE.UPD_TABLE( p_table_name => $1 );$2""" 'description': 'If the provided table exists within the use\'s schem\'s table based User Interface Defaults, the form region title and report region title are updated to match those provided. If\'null\' is passed in for p_form_region_title or p_report_region_title, the value is set to null.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI412' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI103 'apex_util.cache_get_date_of_page_cache': 'prefix': 'apex_util.cache_get_date_of_page_cache' 'body': """APEX_UTIL.CACHE_GET_DATE_OF_PAGE_CACHE( p_application => $1, p_page => $2 );$3""" 'description': 'This function returns the date and time a specified application page was cached either for the user issuing the call, or for all users if the page was not set to be cached by user.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI103' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI104 'apex_util.cache_get_date_of_region_cache': 'prefix': 'apex_util.cache_get_date_of_region_cache' 'body': """APEX_UTIL.CACHE_GET_DATE_OF_REGION_CACHE( p_application => $1, p_page => $2, p_region_name => $3 );$4""" 'description': 'This function returns the date and time a specified region was cached either for the user issuing the call, or for all users if the page was not set to be cached by user.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI104' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI105 'apex_util.cache_purge_by_application': 'prefix': 'apex_util.cache_purge_by_application' 'body': """APEX_UTIL.CACHE_PURGE_BY_APPLICATION( p_application => $1 );$2""" 'description': 'This procedure purges all cached pages and regions for a given application.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI105' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI106 'apex_util.cache_purge_by_page': 'prefix': 'apex_util.cache_purge_by_page' 'body': """APEX_UTIL.CACHE_PURGE_BY_PAGE( p_application => $1, p_page => $2 );$3""" 'description': 'This procedure purges the cache for a given application and page. If the page itself is not cached but contains one or more cached regions, then the cache for these is also purged.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI106' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI107 'apex_util.cache_purge_stale': 'prefix': 'apex_util.cache_purge_stale' 'body': """APEX_UTIL.CACHE_PURGE_STALE( p_application => $1 );$2""" 'description': 'This procedure deletes all cached pages and regions for a specified application that have passed the defined active time period. When you cache a page or region, you specify an active time period (or Cache Timeout). Once that period has passed, the cache is no longer used, thus removing those unusable pages or regions from the cache.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI107' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI102 'apex_util.change_current_user_pw': 'prefix': 'apex_util.change_current_user_pw' 'body': """APEX_UTIL.CHANGE_CURRENT_USER_PW( p_new_password => $1 );$2""" 'description': 'This procedure changes the password of the currently authenticated user, assuming Application Express user accounts are in use.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI102' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI108 'apex_util.change_password_on_first_use': 'prefix': 'apex_util.change_password_on_first_use' 'body': """APEX_UTIL.CHANGE_PASSWORD_ON_FIRST_USE( p_user_name => $1 );$2""" 'description': 'Enables a developer to check whether this property is enabled or disabled for an end user account. This function returns TRUE if the account password must be changed upon first use (after successful authentication) after the password is initially set and after it is changed on the Administration Service, Edit User page. This function returns FALSE if the account does not have this property.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI108' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI109 'apex_util.clear_app_cache': 'prefix': 'apex_util.clear_app_cache' 'body': """APEX_UTIL.CLEAR_APP_CACHE""" 'description': 'This procedure removes session state for a given application for the current session.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI109' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI110 'apex_util.clear_page_cache': 'prefix': 'apex_util.clear_page_cache' 'body': """APEX_UTIL.CLEAR_PAGE_CACHE""" 'description': 'This procedure removes session state for a given page for the current session.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI110' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI111 'apex_util.clear_user_cache': 'prefix': 'apex_util.clear_user_cache' 'body': """APEX_UTIL.CLEAR_USER_CACHE""" 'description': 'This procedure removes session state and application system preferences for the current use\'s session. Run this procedure if you reuse session IDs and want to run applications without the benefit of existing session state.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI111' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI30156 'apex_util.close_open_db_links': 'prefix': 'apex_util.close_open_db_links' 'body': """APEX_UTIL.CLOSE_OPEN_DB_LINKS""" 'description': 'This procedure closes all open database links for the current database session.It is rare that this procedure would ever be called programatically in an application. The primary purpose of this procedure is for the middleware technology in an Oracle Application Express environment (for example, Oracle REST Data Service, mod_plsql) to be configured such that it closes all of the open database links in a session, either before a request is made to the Application Express engine, or after a request to the Application Express engine is completed but before the database session is returned to the pool.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI30156' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI112 'apex_util.count_click': 'prefix': 'apex_util.count_click' 'body': """APEX_UTIL.COUNT_CLICK( p_url => $1, p_cat => $2 );$3""" 'description': 'This procedure counts clicks from an application built in Application Builder to an external site. You can also use the shorthand version, procedure Z, in place of APEX_UTIL.COUNT_CLICK.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI112' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI114 'apex_util.create_user': 'prefix': 'apex_util.create_user' 'body': """APEX_UTIL.CREATE_USER( p_user_name => $1, p_web_password => $2 );$3""" 'description': 'This procedure creates a new account record in the Application Express user account table. To execute this procedure, the current user must have administrative privileges.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI114' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI115 'apex_util.create_user_group': 'prefix': 'apex_util.create_user_group' 'body': """APEX_UTIL.CREATE_USER_GROUP( p_group_name => $1 );$2""" 'description': 'Assuming you are using Application Express authentication, this procedure creates a user group. To execute this procedure, the current user must have administrative privileges in the workspace.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI115' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI116 'apex_util.current_user_in_group': 'prefix': 'apex_util.current_user_in_group' 'body': """APEX_UTIL.CURRENT_USER_IN_GROUP( p_group_name => $1 );$2""" 'description': 'This function returns a Boolean result based on whether the current user is a member of the specified group. You can use the group name or group ID to identify the group.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI116' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI1536 'apex_util.custom_calendar': 'prefix': 'apex_util.custom_calendar' 'body': """APEX_UTIL.CUSTOM_CALENDAR( p_date_type_field => $1 );$2""" 'description': 'Use this procedure to change the existing calendar view to Custom Calendar.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI1536' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI2296 'apex_util.delete_user_group': 'prefix': 'apex_util.delete_user_group' 'body': """APEX_UTIL.DELETE_USER_GROUP( p_group_id => $1 );$2""" 'description': 'Assuming you are using Application Express authentication, this procedure deletes a user group by providing the primary key of the group. To execute this procedure, the current user must have administrative privileges in the workspace.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI2296' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI2301 'apex_util.delete_user_group2': 'prefix': 'apex_util.delete_user_group2' 'body': """APEX_UTIL.DELETE_USER_GROUP2( p_group_name => $1 );$2""" 'description': 'Assuming you are using Application Express authentication, this procedure deletes a user group by providing the name of the group. To execute this procedure, the current user must have administrative privileges in the workspace.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI2301' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI147 'apex_util.download_print_document': 'prefix': 'apex_util.download_print_document' 'body': """APEX_UTIL.DOWNLOAD_PRINT_DOCUMENT( p_file_name => $1, p_content_disposition => $2, p_report_data => $3, p_report_layout => $4 );$5""" 'description': 'This procedure initiates the download of a print document using XML based report data (as a BLOB) and RTF or XSL-FO based report layout.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI147' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI148 'apex_util.download_print_document2': 'prefix': 'apex_util.download_print_document2' 'body': """APEX_UTIL.DOWNLOAD_PRINT_DOCUMENT2( p_file_name => $1, p_content_disposition => $2, p_application_id => $3, p_report_query_name => $4, p_report_layout => $5 );$6""" 'description': 'This procedure initiates the download of a print document using pre-defined report query and RTF and XSL-FO based report layout.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI148' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI149 'apex_util.download_print_document3': 'prefix': 'apex_util.download_print_document3' 'body': """APEX_UTIL.DOWNLOAD_PRINT_DOCUMENT3( p_file_name => $1, p_content_disposition => $2, p_application_id => $3, p_report_query_name => $4, p_report_layout_name => $5 );$6""" 'description': 'This procedure initiates the download of a print document using pre-defined report query and pre-defined report layout.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI149' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI150 'apex_util.download_print_document4': 'prefix': 'apex_util.download_print_document4' 'body': """APEX_UTIL.DOWNLOAD_PRINT_DOCUMENT4( p_file_name => $1, p_content_disposition => $2, p_report_data => $3, p_report_layout => $4 );$5""" 'description': 'This procedure initiates the download of a print document using XML based report data (as a CLOB) and RTF or XSL-FO based report layout.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI150' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI117 'apex_util.edit_user': 'prefix': 'apex_util.edit_user' 'body': """APEX_UTIL.EDIT_USER( p_user_id => $1, p_user_name => $2 );$3""" 'description': 'This procedure enables a user account record to be altered. To execute this procedure, the current user must have administrative privileges in the workspace.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI117' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI118 'apex_util.end_user_account_days_left': 'prefix': 'apex_util.end_user_account_days_left' 'body': """APEX_UTIL.END_USER_ACCOUNT_DAYS_LEFT( p_user_name => $1 );$2""" 'description': 'Returns the number of days remaining before a end user account password expires. This function may be run in a page request context by any authenticated user.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI118' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI119 'apex_util.expire_end_user_account': 'prefix': 'apex_util.expire_end_user_account' 'body': """APEX_UTIL.EXPIRE_END_USER_ACCOUNT( p_user_name => $1 );$2""" 'description': 'Expires the login account for use as a workspace end user. Must be run by an authenticated workspace administrator in a page request context.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI119' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI120 'apex_util.expire_workspace_account': 'prefix': 'apex_util.expire_workspace_account' 'body': """APEX_UTIL.EXPIRE_WORKSPACE_ACCOUNT( p_user_name => $1 );$2""" 'description': 'Expires developer or workspace administrator login accounts. Must be run by an authenticated workspace administrator in a page request context.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI120' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI121 'apex_util.export_users': 'prefix': 'apex_util.export_users' 'body': """APEX_UTIL.EXPORT_USERS""" 'description': 'When called from a page, this procedure produces an export file of the current workspace definition, workspace users, and workspace groups. To execute this procedure, the current user must have administrative privilege in the workspace.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI121' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI122 'apex_util.fetch_app_item': 'prefix': 'apex_util.fetch_app_item' 'body': """APEX_UTIL.FETCH_APP_ITEM( p_item => $1 );$2""" 'description': 'This function fetches session state for the current or specified application in the current or specified session.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI122' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI124 'apex_util.find_security_group_id': 'prefix': 'apex_util.find_security_group_id' 'body': """APEX_UTIL.FIND_SECURITY_GROUP_ID( p_workspace => $1 );$2""" 'description': 'This function returns the numeric security group ID of the named workspace.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI124' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI125 'apex_util.find_workspace': 'prefix': 'apex_util.find_workspace' 'body': """APEX_UTIL.FIND_WORKSPACE( p_security_group_id => $1 );$2""" 'description': 'This function returns the workspace name associated with a security group ID.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI125' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI126 'apex_util.get_account_locked_status': 'prefix': 'apex_util.get_account_locked_status' 'body': """APEX_UTIL.GET_ACCOUNT_LOCKED_STATUS( p_user_name => $1 );$2""" 'description': 'Returns TRUE if the account is locked and FALSE if the account is unlocked. Must be run by an authenticated workspace administrator in a page request context.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI126' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI127 'apex_util.get_attribute': 'prefix': 'apex_util.get_attribute' 'body': """APEX_UTIL.GET_ATTRIBUTE( p_username => $1, p_attribute_number => $2 );$3""" 'description': 'This function returns the value of one of the attribute values (1 through 10) of a named user in the Application Express accounts table. Please note these are only accessible by using the APIs.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI127' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI128 'apex_util.get_authentication_result': 'prefix': 'apex_util.get_authentication_result' 'body': """APEX_UTIL.GET_AUTHENTICATION_RESULT""" 'description': 'Use this function to retrieve the authentication result of the current session. Any authenticated user can call this function in a page request context.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI128' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI129 'apex_util.get_blob_file_src': 'prefix': 'apex_util.get_blob_file_src' 'body': """APEX_UTIL.GET_BLOB_FILE_SRC""" 'description': 'As an alternative to using the built-in methods of providing a download link, you can use the APEX_UTIL.GET_BLOB_FILE_SRC function. One advantage of this approach, is the ability to more specifically format the display of the image (with height and width tags). Please note that this approach is only valid if called from a valid Oracle Application Express session. Also, this method requires that the parameters that describe the BLOB to be listed as the format of a valid item within the application. That item is then referenced by the function.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI129' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI29422 'apex_util.get_build_option_status': 'prefix': 'apex_util.get_build_option_status' 'body': """APEX_UTIL.GET_BUILD_OPTION_STATUS( p_application_id => $1, p_id => $2 );$3""" 'description': 'Use this function to get the build option status of a specified application by providing the ID of the application build option.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI29422' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI29427 'apex_util.get_build_option_status2': 'prefix': 'apex_util.get_build_option_status2' 'body': """APEX_UTIL.GET_BUILD_OPTION_STATUS2( p_application_id => $1, p_build_option_name => $2 );$3""" 'description': 'Use this function to get the build option status of a specified application by providing the name of the application build option.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI29427' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI130 'apex_util.get_current_user_id': 'prefix': 'apex_util.get_current_user_id' 'body': """APEX_UTIL.GET_CURRENT_USER_ID""" 'description': 'This function returns the numeric user ID of the current user.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI130' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI131 'apex_util.get_default_schema': 'prefix': 'apex_util.get_default_schema' 'body': """APEX_UTIL.GET_DEFAULT_SCHEMA""" 'description': 'This function returns the default schema name associated with the current user.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI131' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI500 'apex_util.get_edition': 'prefix': 'apex_util.get_edition' 'body': """APEX_UTIL.GET_EDITION""" 'description': 'This function returns the edition for the current page view.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI500' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI132 'apex_util.get_email': 'prefix': 'apex_util.get_email' 'body': """APEX_UTIL.GET_EMAIL( p_username => $1 );$2""" 'description': 'This function returns the email address associated with the named user.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI132' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI519 'apex_util.get_feedback_follow_up': 'prefix': 'apex_util.get_feedback_follow_up' 'body': """APEX_UTIL.GET_FEEDBACK_FOLLOW_UP( p_feedback_id => $1 );$2""" 'description': 'Use this function to retrieve any remaining follow up associated with a specific feedback.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI519' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI133 'apex_util.get_file': 'prefix': 'apex_util.get_file' 'body': """APEX_UTIL.GET_FILE( p_file_id => $1 );$2""" 'description': 'This procedure downloads files from the Oracle Application Express file repository. Please note if you are invoking this procedure during page processing, you must ensure that no page branch is invoked under the same condition, as it interferes with the file retrieval. This means that branches with any of the following conditions should not be set to fire:' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI133' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI134 'apex_util.get_file_id': 'prefix': 'apex_util.get_file_id' 'body': """APEX_UTIL.GET_FILE_ID( p_name => $1 );$2""" 'description': 'This function obtains the primary key of a file in the Oracle Application Express file repository.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI134' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI135 'apex_util.get_first_name': 'prefix': 'apex_util.get_first_name' 'body': """APEX_UTIL.GET_FIRST_NAME""" 'description': 'This function returns the FIRST_NAME field stored in the named user account record.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI135' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI137 'apex_util.get_group_id': 'prefix': 'apex_util.get_group_id' 'body': """APEX_UTIL.GET_GROUP_ID( p_group_name => $1 );$2""" 'description': 'This function returns the numeric ID of a named group in the workspace.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI137' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI138 'apex_util.get_group_name': 'prefix': 'apex_util.get_group_name' 'body': """APEX_UTIL.GET_GROUP_NAME( p_group_id => $1 );$2""" 'description': 'This function returns the name of a group identified by a numeric ID.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI138' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI136 'apex_util.get_groups_user_belongs_to': 'prefix': 'apex_util.get_groups_user_belongs_to' 'body': """APEX_UTIL.GET_GROUPS_USER_BELONGS_TO( p_username => $1 );$2""" 'description': 'This function returns a comma then a space separated list of group names to which the named user is a member.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI136' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI30207 'apex_util.get_hash': 'prefix': 'apex_util.get_hash' 'body': """APEX_UTIL.GET_HASH( p_values => $1 );$2""" 'description': 'This function computes a hash value for all given values. Use this function to implement lost update detection for data records.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI30207' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI2306 'apex_util.get_high_contrast_mode_toggle': 'prefix': 'apex_util.get_high_contrast_mode_toggle' 'body': """APEX_UTIL.GET_HIGH_CONTRAST_MODE_TOGGLE""" 'description': 'This function returns a link to the current page that enables you to turn on or off, toggle, the mode. For example, if you are in standard mode, this function displays a link that when clicked switches high contrast mode on.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI2306' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI139 'apex_util.get_last_name': 'prefix': 'apex_util.get_last_name' 'body': """APEX_UTIL.GET_LAST_NAME( p_username => $1 );$2""" 'description': 'This function returns the LAST_NAME field stored in the named user account record.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI139' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI141 'apex_util.get_numeric_session_state': 'prefix': 'apex_util.get_numeric_session_state' 'body': """APEX_UTIL.GET_NUMERIC_SESSION_STATE( p_item => $1 );$2""" 'description': 'This function returns a numeric value for a numeric item. You can use this function in Oracle Application Express applications wherever you can use PL/SQL or SQL. You can also use the shorthand, function NV, in place of APEX_UTIL.GET_NUMERIC_SESSION_STATE.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI141' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI142 'apex_util.get_preference': 'prefix': 'apex_util.get_preference' 'body': """APEX_UTIL.GET_PREFERENCE""" 'description': 'This function retrieves the value of a previously saved preference for a given user.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI142' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI143 'apex_util.get_print_document': 'prefix': 'apex_util.get_print_document' 'body': """APEX_UTIL.GET_PRINT_DOCUMENT( p_report_data => $1, p_report_layout => $2 );$3""" 'description': 'This function returns a document as BLOB using XML based report data and RTF or XSL-FO based report layout.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI143' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI144 'apex_util.get_print_document2': 'prefix': 'apex_util.get_print_document2' 'body': """APEX_UTIL.GET_PRINT_DOCUMENT2( p_application_id => $1, p_report_query_name => $2 );$3""" 'description': 'This function returns a document as BLOB using pre-defined report query and pre-defined report layout.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI144' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI145 'apex_util.get_print_document3': 'prefix': 'apex_util.get_print_document3' 'body': """APEX_UTIL.GET_PRINT_DOCUMENT3( p_application_id => $1, p_report_query_name => $2, p_report_layout => $3 );$4""" 'description': 'This function returns a document as BLOB using a pre-defined report query and RTF or XSL-FO based report layout.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI145' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI146 'apex_util.get_print_document4': 'prefix': 'apex_util.get_print_document4' 'body': """APEX_UTIL.GET_PRINT_DOCUMENT4( p_report_data => $1, p_report_layout => $2 );$3""" 'description': 'This function returns a document as BLOB using XML based report data and RTF or XSL-FO based report layout.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI146' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI502 'apex_util.get_screen_reader_mode_toggle': 'prefix': 'apex_util.get_screen_reader_mode_toggle' 'body': """APEX_UTIL.GET_SCREEN_READER_MODE_TOGGLE""" 'description': 'This function returns a link to the current page to turn on or off, toggle, the mode. For example, if you are in standard mode, this function displays a link that when clicked switches screen reader mode on.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI502' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI508 'apex_util.get_session_lang': 'prefix': 'apex_util.get_session_lang' 'body': """APEX_UTIL.GET_SESSION_LANG""" 'description': 'This function returns the language setting for the current user in the current Application Express session.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI508' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI151 'apex_util.get_session_state': 'prefix': 'apex_util.get_session_state' 'body': """APEX_UTIL.GET_SESSION_STATE( p_item => $1 );$2""" 'description': 'This function returns the value for an item. You can use this function in your Oracle Application Express applications wherever you can use PL/SQL or SQL. You can also use the shorthand, function V, in place of APEX_UTIL.GET_SESSION_STATE.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI151' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI509 'apex_util.get_session_territory': 'prefix': 'apex_util.get_session_territory' 'body': """APEX_UTIL.GET_SESSION_TERRITORY""" 'description': 'This function returns the territory setting for the current user in the current Application Express session.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI509' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI510 'apex_util.get_session_time_zone': 'prefix': 'apex_util.get_session_time_zone' 'body': """APEX_UTIL.GET_SESSION_TIME_ZONE""" 'description': 'This function returns the time zone for the current user in the current Application Express session. This value is null if the time zone is not explicitly set by using APEX_UTIL.SET_SESSION_TIME_ZONE or if an applicatio\'s automatic time zone attribute is enabled.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI510' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI30229 'apex_util.get_since': 'prefix': 'apex_util.get_since' 'body': """APEX_UTIL.GET_SINCE( p_date => $1 );$2""" 'description': 'This function returns the relative date in words (for example, two days from now, thrity minutes ago). This function is equivalent to using the SINCE format mask available within Oracle Application Express and is useful within PL/SQL routines.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI30229' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI152 'apex_util.get_user_id': 'prefix': 'apex_util.get_user_id' 'body': """APEX_UTIL.GET_USER_ID( p_username => $1 );$2""" 'description': 'This function returns the numeric ID of a named user in the workspace.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI152' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI153 'apex_util.get_user_roles': 'prefix': 'apex_util.get_user_roles' 'body': """APEX_UTIL.GET_USER_ROLES( p_username => $1 );$2""" 'description': 'This function returns the DEVELOPER_ROLE field stored in the named user account record. Please note that currently this parameter is named inconsistently between the CREATE_USER, EDIT_USER and FETCH_USER APIs, although they all relate to the DEVELOPER_ROLE field. CREATE_USER uses p_developer_privs, EDIT_USER uses p_developer_roles and FETCH_USER uses p_developer_role.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI153' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI140 'apex_util.get_username': 'prefix': 'apex_util.get_username' 'body': """APEX_UTIL.GET_USERNAME( p_userid => $1 );$2""" 'description': 'This function returns the user name of a user account identified by a numeric ID.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI140' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI2311 'apex_util.host_url': 'prefix': 'apex_util.host_url' 'body': """APEX_UTIL.HOST_URL""" 'description': 'This function returns the URL to the Application Express instance, depending on the option passed.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI2311' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI1710 'apex_util.html_pct_graph_mask': 'prefix': 'apex_util.html_pct_graph_mask' 'body': """APEX_UTIL.HTML_PCT_GRAPH_MASK""" 'description': 'Use this function to scale a graph. This function can also be used by classic and interactive reports with format mask of GRAPH. This generates a <div> tag with inline styles.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI1710' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI1715 'apex_util.increment_calendar': 'prefix': 'apex_util.increment_calendar' 'body': """APEX_UTIL.INCREMENT_CALENDAR""" 'description': 'Use this procedure to navigate to the next set of days in the calendar. Depending on what the calendar view is, this procedure navigates to the next month, week or day. If it is a Custom Calendar the total number of days between the start date and end date are navigated.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI1715' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI1719 'apex_util.ir_clear': 'prefix': 'apex_util.ir_clear' 'body': """APEX_UTIL.IR_CLEAR( p_page_id => $1 );$2""" 'description': 'Note:' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI1719' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI2177 'apex_util.ir_delete_report': 'prefix': 'apex_util.ir_delete_report' 'body': """APEX_UTIL.IR_DELETE_REPORT( p_report_id => $1 );$2""" 'description': 'Note:' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI2177' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI2182 'apex_util.ir_delete_subscription': 'prefix': 'apex_util.ir_delete_subscription' 'body': """APEX_UTIL.IR_DELETE_SUBSCRIPTION( p_subscription_id => $1 );$2""" 'description': 'Note:' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI2182' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI1724 'apex_util.ir_filter': 'prefix': 'apex_util.ir_filter' 'body': """APEX_UTIL.IR_FILTER( p_page_id => $1, p_report_column => $2, p_filter_value => $3 );$4""" 'description': 'Note:' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI1724' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI1729 'apex_util.ir_reset': 'prefix': 'apex_util.ir_reset' 'body': """APEX_UTIL.IR_RESET( p_page_id => $1 );$2""" 'description': 'Note:' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI1729' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI2316 'apex_util.is_high_contrast_session': 'prefix': 'apex_util.is_high_contrast_session' 'body': """APEX_UTIL.IS_HIGH_CONTRAST_SESSION""" 'description': 'This function returns a boolean TRUE if the session is in high contrast mode and returns a boolean FALSE if not in high contrast mode.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI2316' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI2320 'apex_util.is_high_contrast_session_yn': 'prefix': 'apex_util.is_high_contrast_session_yn' 'body': """APEX_UTIL.IS_HIGH_CONTRAST_SESSION_YN""" 'description': 'This function returns Y if the session is in high contrast mode and N if not in high contrast mode.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI2320' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI154 'apex_util.is_login_password_valid': 'prefix': 'apex_util.is_login_password_valid' 'body': """APEX_UTIL.IS_LOGIN_PASSWORD_VALID( p_username => $1, p_password => $2 );$3""" 'description': 'This function returns a Boolean result based on the validity of the password for a named user account in the current workspace. This function returns TRUE if the password matches and it returns FALSE if the password does not match.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI154' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI504 'apex_util.is_screen_reader_session': 'prefix': 'apex_util.is_screen_reader_session' 'body': """APEX_UTIL.IS_SCREEN_READER_SESSION""" 'description': 'This function returns a boolean TRUE if the session is in screen reader mode and returns a boolean FALSE if not in screen reader mode.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI504' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI518 'apex_util.is_screen_reader_session_yn': 'prefix': 'apex_util.is_screen_reader_session_yn' 'body': """APEX_UTIL.IS_SCREEN_READER_SESSION_YN""" 'description': 'This function returns\'\' if the session is in screen reader mode and\'\' if not in screen reader mode.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI518' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI155 'apex_util.is_username_unique': 'prefix': 'apex_util.is_username_unique' 'body': """APEX_UTIL.IS_USERNAME_UNIQUE( p_username => $1 );$2""" 'description': 'This function returns a Boolean result based on whether the named user account is unique in the workspace.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI155' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI156 'apex_util.keyval_num': 'prefix': 'apex_util.keyval_num' 'body': """APEX_UTIL.KEYVAL_NUM""" 'description': 'This function gets the value of the package variable (wwv_flow_utilities.g_val_num) set by APEX_UTIL.SAVEKEY_NUM.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI156' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI157 'apex_util.keyval_vc2': 'prefix': 'apex_util.keyval_vc2' 'body': """APEX_UTIL.KEYVAL_VC2""" 'description': 'This function gets the value of the package variable (wwv_flow_utilities.g_val_vc2) set by APEX_UTIL.SAVEKEY_VC2.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI157' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI158 'apex_util.lock_account': 'prefix': 'apex_util.lock_account' 'body': """APEX_UTIL.LOCK_ACCOUNT( p_user_name => $1 );$2""" 'description': 'Sets a user account status to locked. Must be run by an authenticated workspace administrator in the context of a page request.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI158' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI159 'apex_util.password_first_use_occurred': 'prefix': 'apex_util.password_first_use_occurred' 'body': """APEX_UTIL.PASSWORD_FIRST_USE_OCCURRED( p_user_name => $1 );$2""" 'description': 'Returns TRUE if the accoun\'s password has changed since the account was created, an Oracle Application Express administrator performs a password reset operation that results in a new password being emailed to the account holder, or a user has initiated password reset operation. This function returns FALSE if the accoun\'s password has not been changed since either of the events just described.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI159' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI160 'apex_util.prepare_url': 'prefix': 'apex_util.prepare_url' 'body': """APEX_UTIL.PREPARE_URL( p_url => $1 );$2""" 'description': 'The PREPARE_URL function serves two purposes:' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI160' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI161 'apex_util.public_check_authorization': 'prefix': 'apex_util.public_check_authorization' 'body': """APEX_UTIL.PUBLIC_CHECK_AUTHORIZATION( p_security_scheme => $1 );$2""" 'description': 'Note:' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI161' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI162 'apex_util.purge_regions_by_app': 'prefix': 'apex_util.purge_regions_by_app' 'body': """APEX_UTIL.PURGE_REGIONS_BY_APP( p_application => $1 );$2""" 'description': 'Deletes all cached regions for an application.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI162' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI163 'apex_util.purge_regions_by_name': 'prefix': 'apex_util.purge_regions_by_name' 'body': """APEX_UTIL.PURGE_REGIONS_BY_NAME( p_application => $1, p_page => $2, p_region_name => $3 );$4""" 'description': 'Deletes all cached values for a region identified by the application ID, page number and region name.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI163' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI165 'apex_util.purge_regions_by_page': 'prefix': 'apex_util.purge_regions_by_page' 'body': """APEX_UTIL.PURGE_REGIONS_BY_PAGE( p_application => $1, p_page => $2 );$3""" 'description': 'Deletes all cached regions by application and page.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI165' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI2324 'apex_util.redirect_url': 'prefix': 'apex_util.redirect_url' 'body': """APEX_UTIL.REDIRECT_URL( p_url => $1 );$2""" 'description': 'This procedure calls owa_util.redirect_url to tell the browser to redirect to a new URL. Afterwards, it automatically calls apex_application.stop_apex_engine to abort further processing of the Application Express application.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI2324' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI167 'apex_util.remove_preference': 'prefix': 'apex_util.remove_preference' 'body': """APEX_UTIL.REMOVE_PREFERENCE""" 'description': 'This procedure removes the preference for the supplied user.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI167' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI168 'apex_util.remove_sort_preferences': 'prefix': 'apex_util.remove_sort_preferences' 'body': """APEX_UTIL.REMOVE_SORT_PREFERENCES""" 'description': 'This procedure removes the use\'s column heading sorting preference value.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI168' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI169 'apex_util.remove_user': 'prefix': 'apex_util.remove_user' 'body': """APEX_UTIL.REMOVE_USER( p_user_id => $1, p_user_name => $2 );$3""" 'description': 'This procedure removes the user account identified by the primary key or a user name. To execute this procedure, the current user must have administrative privilege in the workspace.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI169' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI170 'apex_util.reset_authorizations': 'prefix': 'apex_util.reset_authorizations' 'body': """APEX_UTIL.RESET_AUTHORIZATIONS""" 'description': 'Note:' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI170' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI29920 'apex_util.reset_password': 'prefix': 'apex_util.reset_password' 'body': """APEX_UTIL.RESET_PASSWORD( p_new_password => $1 );$2""" 'description': 'This procedure is used to change the password of a given user name for the current workspace. This procedure changes the password of p_user_name in the current workspace to p_new_password. If p_change_password_on_first_use is TRUE, then the user has to change the password on the next login.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI29920' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI171 'apex_util.reset_pw': 'prefix': 'apex_util.reset_pw' 'body': """APEX_UTIL.RESET_PW( p_user => $1, p_msg => $2 );$3""" 'description': 'This procedure resets the password for a named user and emails it in a message to the email address located for the named account in the current workspace. To execute this procedure, the current user must have administrative privilege in the workspace.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI171' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI172 'apex_util.savekey_num': 'prefix': 'apex_util.savekey_num' 'body': """APEX_UTIL.SAVEKEY_NUM( p_val => $1 );$2""" 'description': 'This function sets a package variable (wwv_flow_utilities.g_val_num) so that it can be retrieved using the function KEYVAL_NUM.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI172' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI173 'apex_util.savekey_vc2': 'prefix': 'apex_util.savekey_vc2' 'body': """APEX_UTIL.SAVEKEY_VC2( p_val => $1 );$2""" 'description': 'This function sets a package variable (wwv_flow_utilities.g_val_vc2) so that it can be retrieved using the function KEYVAL_VC2.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI173' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI174 'apex_util.set_attribute': 'prefix': 'apex_util.set_attribute' 'body': """APEX_UTIL.SET_ATTRIBUTE( p_userid => $1, p_attribute_number => $2, p_attribute_value => $3 );$4""" 'description': 'This procedure sets the value of one of the attribute values (1 through 10) of a user in the Application Express accounts table.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI174' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI175 'apex_util.set_authentication_result': 'prefix': 'apex_util.set_authentication_result' 'body': """APEX_UTIL.SET_AUTHENTICATION_RESULT( p_code => $1 );$2""" 'description': 'This procedure can be called from an applicatio\'s custom authentication function (that is, credentials verification function). The status passed to this procedure is logged in the Login Access Log.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI175' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI29432 'apex_util.set_build_option_status': 'prefix': 'apex_util.set_build_option_status' 'body': """APEX_UTIL.SET_BUILD_OPTION_STATUS( p_application_id => $1, p_id => $2, p_build_status => $3 );$4""" 'description': 'Use this procedure to change the build option status of a specified application.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI29432' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI30212 'apex_util.set_current_theme_style': 'prefix': 'apex_util.set_current_theme_style' 'body': """APEX_UTIL.SET_CURRENT_THEME_STYLE( p_theme_number => $1, p_theme_style_id => $2 );$3""" 'description': 'This procedure sets the user interface theme style for an application. For example, if there are more than one theme styles available for the current theme, you can use this procedure to change the application theme style.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI30212' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI176 'apex_util.set_custom_auth_status': 'prefix': 'apex_util.set_custom_auth_status' 'body': """APEX_UTIL.SET_CUSTOM_AUTH_STATUS( p_status => $1 );$2""" 'description': 'This procedure can be called from an applicatio\'s custom authentication function (that is, credentials verification function). The status passed to this procedure is logged in the Login Access Log.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI176' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI511 'apex_util.set_edition': 'prefix': 'apex_util.set_edition' 'body': """APEX_UTIL.SET_EDITION( p_edition => $1 );$2""" 'description': 'This procedure sets the name of the edition to be used in all application SQL parsed in the current page view or page submission.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI511' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI177 'apex_util.set_email': 'prefix': 'apex_util.set_email' 'body': """APEX_UTIL.SET_EMAIL( p_userid => $1, p_email => $2 );$3""" 'description': 'This procedure updates a user account with a new email address. To execute this procedure, the current user must have administrative privileges in the workspace.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI177' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI178 'apex_util.set_first_name': 'prefix': 'apex_util.set_first_name' 'body': """APEX_UTIL.SET_FIRST_NAME( p_userid => $1, p_first_name => $2 );$3""" 'description': 'This procedure updates a user account with a new FIRST_NAME value. To execute this procedure, the current user must have administrative privileges in the workspace.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI178' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI29927 'apex_util.set_group_group_grants': 'prefix': 'apex_util.set_group_group_grants' 'body': """APEX_UTIL.SET_GROUP_GROUP_GRANTS( p_group_name => $1, p_granted_group_names => $2 );$3""" 'description': 'This procedure modifies the group grants for a given group.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI29927' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI29932 'apex_util.set_group_user_grants': 'prefix': 'apex_util.set_group_user_grants' 'body': """APEX_UTIL.SET_GROUP_USER_GRANTS( p_user_name => $1, p_granted_group_names => $2 );$3""" 'description': 'This procedure modifies the group grants for a given user.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI29932' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI179 'apex_util.set_last_name': 'prefix': 'apex_util.set_last_name' 'body': """APEX_UTIL.SET_LAST_NAME( p_userid => $1, p_last_name => $2 );$3""" 'description': 'This procedure updates a user account with a new LAST_NAME value. To execute this procedure, the current user must have administrative privileges in the workspace.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI179' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI180 'apex_util.set_preference': 'prefix': 'apex_util.set_preference' 'body': """APEX_UTIL.SET_PREFERENCE""" 'description': 'This procedure sets a preference that persists beyond the use\'s current session.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI180' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI512 'apex_util.set_security_group_id': 'prefix': 'apex_util.set_security_group_id' 'body': """APEX_UTIL.SET_SECURITY_GROUP_ID( p_security_group_id => $1 );$2""" 'description': 'Use this procedure with apex_util.find_security_group_id to ease the use of the mail package in batch mode. This procedure is especially useful when a schema is associated with more than one workspace. For example, you might want to create a procedure that is run by a nightly job to email all outstanding tasks.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI512' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI2334 'apex_util.set_session_high_contrast_off': 'prefix': 'apex_util.set_session_high_contrast_off' 'body': """APEX_UTIL.SET_SESSION_HIGH_CONTRAST_OFF""" 'description': 'This procedure switches off high contrast mode for the current session.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI2334' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI2338 'apex_util.set_session_high_contrast_on': 'prefix': 'apex_util.set_session_high_contrast_on' 'body': """APEX_UTIL.SET_SESSION_HIGH_CONTRAST_ON""" 'description': 'This procedure switches on high contrast mode for the current session.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI2338' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI513 'apex_util.set_session_lang': 'prefix': 'apex_util.set_session_lang' 'body': """APEX_UTIL.SET_SESSION_LANG( p_lang => $1 );$2""" 'description': 'This procedure sets the language to be used for the current user in the current Application Express session. The language must be a valid IANA language name.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI513' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI356 'apex_util.set_session_lifetime_seconds': 'prefix': 'apex_util.set_session_lifetime_seconds' 'body': """APEX_UTIL.SET_SESSION_LIFETIME_SECONDS( p_seconds => $1 );$2""" 'description': 'This procedure sets the current sessio\'s Maximum Session Length in Seconds value. overriding the corresponding application attribute. This allows developers to dynamically shorten or lengthen the session life based on criteria determined after the user authenticates.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI356' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI355 'apex_util.set_session_max_idle_seconds': 'prefix': 'apex_util.set_session_max_idle_seconds' 'body': """APEX_UTIL.SET_SESSION_MAX_IDLE_SECONDS( p_seconds => $1 );$2""" 'description': 'Sets the current applicatio\'s Maximum Session Idle Time in Seconds value for the current session, overriding the corresponding application attribute. This allows developers to dynamically shorten or lengthen the maximum idle time allowed between page requests based on criteria determined after the user authenticates.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI355' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI506 'apex_util.set_session_screen_reader_off': 'prefix': 'apex_util.set_session_screen_reader_off' 'body': """APEX_UTIL.SET_SESSION_SCREEN_READER_OFF""" 'description': 'This procedure switches off screen reader mode for the current session.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI506' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI520 'apex_util.set_session_screen_reader_on': 'prefix': 'apex_util.set_session_screen_reader_on' 'body': """APEX_UTIL.SET_SESSION_SCREEN_READER_ON""" 'description': 'This procedure puts the current session into screen reader mode.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI520' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI181 'apex_util.set_session_state': 'prefix': 'apex_util.set_session_state' 'body': """APEX_UTIL.SET_SESSION_STATE""" 'description': 'This procedure sets session state for a current Oracle Application Express session.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI181' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI514 'apex_util.set_session_territory': 'prefix': 'apex_util.set_session_territory' 'body': """APEX_UTIL.SET_SESSION_TERRITORY( p_territory => $1 );$2""" 'description': 'This procedure sets the territory to be used for the current user in the current Application Express session. The territory name must be a valid Oracle territory.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI514' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI515 'apex_util.set_session_time_zone': 'prefix': 'apex_util.set_session_time_zone' 'body': """APEX_UTIL.SET_SESSION_TIME_ZONE( p_time_zone => $1 );$2""" 'description': 'This procedure sets the time zone to be used for the current user in the current Application Express session.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI515' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI182 'apex_util.set_username': 'prefix': 'apex_util.set_username' 'body': """APEX_UTIL.SET_USERNAME( p_userid => $1, p_username => $2 );$3""" 'description': 'This procedure updates a user account with a new USER_NAME value. To execute this procedure, the current user must have administrative privileges in the workspace.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI182' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI2342 'apex_util.show_high_contrast_mode_toggle': 'prefix': 'apex_util.show_high_contrast_mode_toggle' 'body': """APEX_UTIL.SHOW_HIGH_CONTRAST_MODE_TOGGLE""" 'description': 'This procedure displays a link to the current page to turn on or off, toggle, the mode. For example, if you are in standard mode, this function displays a link that when clicked switches the high contrast mode on.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI2342' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI503 'apex_util.show_screen_reader_mode_toggle': 'prefix': 'apex_util.show_screen_reader_mode_toggle' 'body': """APEX_UTIL.SHOW_SCREEN_READER_MODE_TOGGLE""" 'description': 'This procedure displays a link to the current page to turn on or off, toggle, the mode. For example, if you are in standard mode, this function displays a link that when clicked switches the screen reader mode on.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI503' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI185 'apex_util.string_to_table': 'prefix': 'apex_util.string_to_table' 'body': """APEX_UTIL.STRING_TO_TABLE( p_string => $1 );$2""" 'description': 'Given a string, this function returns a PL/SQL array of type APEX_APPLICATION_GLOBAL.VC_ARR2. This array is a VARCHAR2(32767) table.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI185' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI183 'apex_util.strong_password_check': 'prefix': 'apex_util.strong_password_check' 'body': """APEX_UTIL.STRONG_PASSWORD_CHECK( p_username => $1, p_password => $2, p_old_password => $3, p_workspace_name => $4, p_use_strong_rules => $5, p_min_length_err => $6, p_new_differs_by_err => $7, p_one_alpha_err => $8, p_one_numeric_err => $9, p_one_punctuation_err => $10, p_one_upper_err => $11, p_one_lower_err => $12, p_not_like_username_err => $13, p_not_like_workspace_name_err => $14, p_not_like_words_err => $15, p_not_reusable_err => $16 );$17""" 'description': 'This procedure returns Boolean OUT values based on whether a proposed password meets the password strength requirements as defined by the Oracle Application Express site administrator.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI183' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI184 'apex_util.strong_password_validation': 'prefix': 'apex_util.strong_password_validation' 'body': """APEX_UTIL.STRONG_PASSWORD_VALIDATION( p_username => $1, p_password => $2, P_WORKSPACE_NAME => $3 );$4""" 'description': 'This function returns formatted HTML in a VARCHAR2 result based on whether a proposed password meets the password strength requirements as defined by the Oracle Application Express site administrator.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI184' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI516 'apex_util.submit_feedback': 'prefix': 'apex_util.submit_feedback' 'body': """APEX_UTIL.SUBMIT_FEEDBACK""" 'description': 'This procedure enables you to write a procedure to submit feedback, rather than using the page that can be generated by create page of type feedback.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI516' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI517 'apex_util.submit_feedback_followup': 'prefix': 'apex_util.submit_feedback_followup' 'body': """APEX_UTIL.SUBMIT_FEEDBACK_FOLLOWUP( p_feedback_id => $1 );$2""" 'description': 'This procedure enables you to submit follow up to a feedback.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI517' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI186 'apex_util.table_to_string': 'prefix': 'apex_util.table_to_string' 'body': """APEX_UTIL.TABLE_TO_STRING( p_table => $1 );$2""" 'description': 'Given a a PL/SQL table of type APEX_APPLICATION_GLOBAL.VC_ARR2, this function returns a delimited string separated by the supplied separator, or by the default separator, a colon (:).' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI186' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI187 'apex_util.unexpire_end_user_account': 'prefix': 'apex_util.unexpire_end_user_account' 'body': """APEX_UTIL.UNEXPIRE_END_USER_ACCOUNT( p_user_name => $1 );$2""" 'description': 'Makes expired end users accounts and the associated passwords usable, enabling a end user to log in to developed applications.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI187' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI188 'apex_util.unexpire_workspace_account': 'prefix': 'apex_util.unexpire_workspace_account' 'body': """APEX_UTIL.UNEXPIRE_WORKSPACE_ACCOUNT( p_user_name => $1 );$2""" 'description': 'Unexpires developer and workspace administrator accounts and the associated passwords, enabling the developer or administrator to log in to a workspace.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI188' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI189 'apex_util.unlock_account': 'prefix': 'apex_util.unlock_account' 'body': """APEX_UTIL.UNLOCK_ACCOUNT( p_user_name => $1 );$2""" 'description': 'Sets a user account status to unlocked. Must be run by an authenticated workspace administrator in a page request context.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI189' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI190 'apex_util.url_encode': 'prefix': 'apex_util.url_encode' 'body': """APEX_UTIL.URL_ENCODE( p_url => $1 );$2""" 'description': 'The following special characters are encoded as follows:' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI190' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI191 'apex_util.workspace_account_days_left': 'prefix': 'apex_util.workspace_account_days_left' 'body': """APEX_UTIL.WORKSPACE_ACCOUNT_DAYS_LEFT( p_user_name => $1 );$2""" 'description': 'Returns the number of days remaining before the developer or workspace administrator account password expires. This function may be run in a page request context by any authenticated user.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI191' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_web_service.htm#AEAPI1935 'apex_web_service.blob2clobbase64': 'prefix': 'apex_web_service.blob2clobbase64' 'body': """APEX_WEB_SERVICE.BLOB2CLOBBASE64( p_blob => $1 );$2""" 'description': 'Use this function to convert a BLOB datatype into a CLOB that is base64 encoded. This is often used when sending a binary as an input to a Web service.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_web_service.htm#AEAPI1935' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_web_service.htm#AEAPI1940 'apex_web_service.clobbase642blob': 'prefix': 'apex_web_service.clobbase642blob' 'body': """APEX_WEB_SERVICE.CLOBBASE642BLOB( p_clob => $1 );$2""" 'description': 'Use this function to convert a CLOB datatype that is base64 encoded into a BLOB. This is often used when receiving output from a Web service that contains a binary parameter.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_web_service.htm#AEAPI1940' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_web_service.htm#AEAPI1945 'apex_web_service.make_request': 'prefix': 'apex_web_service.make_request' 'body': """APEX_WEB_SERVICE.MAKE_REQUEST( p_url => $1, p_envelope => $2 );$3""" 'description': 'Use this procedure to invoke a SOAP style Web service with the supplied SOAP envelope and store the results in a collection.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_web_service.htm#AEAPI1945' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_web_service.htm#AEAPI1950 'apex_web_service.make_request2': 'prefix': 'apex_web_service.make_request2' 'body': """APEX_WEB_SERVICE.MAKE_REQUEST2( p_url => $1, p_envelope => $2 );$3""" 'description': 'Use this function to invoke a SOAP style Web service with the supplied SOAP envelope returning the results in an XMLTYPE.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_web_service.htm#AEAPI1950' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_web_service.htm#AEAPI1955 'apex_web_service.make_rest_request': 'prefix': 'apex_web_service.make_rest_request' 'body': """APEX_WEB_SERVICE.MAKE_REST_REQUEST( p_url => $1, p_http_method => $2 );$3""" 'description': 'Use this function to invoke a RESTful style Web service supplying either name value pairs, a character based payload or a binary payload and returning the response in a CLOB.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_web_service.htm#AEAPI1955' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_web_service.htm#AEAPI29937 'apex_web_service.make_rest_request_b': 'prefix': 'apex_web_service.make_rest_request_b' 'body': """APEX_WEB_SERVICE.MAKE_REST_REQUEST_B( p_url => $1, p_http_method => $2 );$3""" 'description': 'Use this function to invoke a RESTful style Web service supplying either name value pairs, a character based payload or a binary payload and returning the response in a BLOB.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_web_service.htm#AEAPI29937' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_web_service.htm#AEAPI1960 'apex_web_service.parse_response': 'prefix': 'apex_web_service.parse_response' 'body': """APEX_WEB_SERVICE.PARSE_RESPONSE( p_collection_name => $1, p_xpath => $2 );$3""" 'description': 'Use this function to parse the response from a Web service that is stored in a collection and return the result as a VARCHAR2 type.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_web_service.htm#AEAPI1960' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_web_service.htm#AEAPI1965 'apex_web_service.parse_response_clob': 'prefix': 'apex_web_service.parse_response_clob' 'body': """APEX_WEB_SERVICE.PARSE_RESPONSE_CLOB( p_collection_name => $1, p_xpath => $2 );$3""" 'description': 'Use this function to parse the response from a Web service that is stored in a collection and return the result as a CLOB type.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_web_service.htm#AEAPI1965' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_web_service.htm#AEAPI1970 'apex_web_service.parse_xml': 'prefix': 'apex_web_service.parse_xml' 'body': """APEX_WEB_SERVICE.PARSE_XML( p_xml => $1, p_xpath => $2 );$3""" 'description': 'Use this function to parse the response from a Web service returned as an XMLTYPE and return the value requested as a VARCHAR2.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_web_service.htm#AEAPI1970' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_web_service.htm#AEAPI1975 'apex_web_service.parse_xml_clob': 'prefix': 'apex_web_service.parse_xml_clob' 'body': """APEX_WEB_SERVICE.PARSE_XML_CLOB( p_xml => $1, p_xpath => $2 );$3""" 'description': 'Use this function to parse the response from a Web service returned as an XMLTYPE and return the value requested as a CLOB.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_web_service.htm#AEAPI1975' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_zip.htm#AEAPI29945 'apex_zip.add_file': 'prefix': 'apex_zip.add_file' 'body': """APEX_ZIP.ADD_FILE( p_zipped_blob => $1, p_file_name => $2, p_content => $3 );$4""" 'description': 'This procedure adds a single file to a zip file.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_zip.htm#AEAPI29945' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_zip.htm#AEAPI29950 'apex_zip.finish': 'prefix': 'apex_zip.finish' 'body': """APEX_ZIP.FINISH( p_zipped_blob => $1 );$2""" 'description': 'This procedure completes the creation of a zip file after adding files with APEX_ZIP.ADD_FILE.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_zip.htm#AEAPI29950' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_zip.htm#AEAPI29955 'apex_zip.get_file_content': 'prefix': 'apex_zip.get_file_content' 'body': """APEX_ZIP.GET_FILE_CONTENT( p_zipped_blob => $1, p_file_name => $2 );$3""" 'description': 'This function returns the BLOB of a file contained in a provided zip file.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_zip.htm#AEAPI29955' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_zip.htm#AEAPI29962 'apex_zip.get_files': 'prefix': 'apex_zip.get_files' 'body': """APEX_ZIP.GET_FILES( p_zipped_blob => $1 );$2""" 'description': 'This function returns an array of file names, including the path, of a provided zip file that contains a BLOB.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_zip.htm#AEAPI29962' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm 'APP_AJAX_X01': 'prefix': 'APP_AJAX_X01' 'body': """APP_AJAX_X01""" 'description': 'APP_AJAX_Xnn specifies the values of the APP_AJAX_X01, ... APP_AJAX_X10 URL parameters most recently passed to or set within the show or accept modules. You typically use these variables in On Demand AJAX processes.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm 'APP_AJAX_X02': 'prefix': 'APP_AJAX_X02' 'body': """APP_AJAX_X02""" 'description': 'APP_AJAX_Xnn specifies the values of the APP_AJAX_X01, ... APP_AJAX_X10 URL parameters most recently passed to or set within the show or accept modules. You typically use these variables in On Demand AJAX processes.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm 'APP_AJAX_X03': 'prefix': 'APP_AJAX_X03' 'body': """APP_AJAX_X03""" 'description': 'APP_AJAX_Xnn specifies the values of the APP_AJAX_X01, ... APP_AJAX_X10 URL parameters most recently passed to or set within the show or accept modules. You typically use these variables in On Demand AJAX processes.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm 'APP_ALIAS': 'prefix': 'APP_ALIAS' 'body': """APP_ALIAS""" 'description': 'APP_ALIAS is an alphanumeric name for the current application. APP_ALIAS is different from the APP_ID in that the APP_ID must be unique over all workspaces and all applications hosted in one database. In contrast, APP_ALIAS must be unique within a workspace. For example, by using the same APP_ALIAS you can create the application, ABC, in two different workspaces. You can use APP_ALIAS almost anywhere APP_ID can be used. For example, f?p syntax can use an APP_ALIAS or an application ID as demonstrated in this example:' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm 'APP_DATE_TIME_FORMAT': 'prefix': 'APP_DATE_TIME_FORMAT' 'body': """APP_DATE_TIME_FORMAT""" 'description': 'APP_DATE_TIME_FORMAT is the application date time format of the application. This value reflects the format specified in the Application Date Time Format attribute of the Globalization settings of an application. If the Application Date Time Format is not set in an application, then a reference to APP_DATE_TIME_FORMAT returns the database session NLS date format and the NLS time format. Table 2-10 describes the supported syntax for referencing APP_DATE_TIME_FORMAT.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm 'APP_ID': 'prefix': 'APP_ID' 'body': """APP_ID""" 'description': 'APP_ID identifies the application ID of the currently executing application. Table 2-7 describes the supported syntax for referencing APP_ID.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm 'APP_IMAGES': 'prefix': 'APP_IMAGES' 'body': """APP_IMAGES""" 'description': 'Use this substitution string to reference uploaded images, JavaScript, and cascading style sheets that are specific to a given application and are not shared over many applications. If you upload a file and make it specific to an application, then you must use this substitution string, or bind variable. Table 2-11 describes the supported syntax for referencing APP_IMAGES.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm 'APP_NLS_DATE_FORMAT': 'prefix': 'APP_NLS_DATE_FORMAT' 'body': """APP_NLS_DATE_FORMAT""" 'description': 'APP_NLS_DATE_FORMAT is the application date format of the database session. This value reflects the format specified in the Application Date Format attribute of the Globalization settings of the application. However, if the Application Date Format is not set, then APP_NLS_DATE_FORMAT returns the NLS_DATE_FORMAT value of the database session at the start of the request to the Application Express engine' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm 'APP_NLS_TIMESTAMP_FORMAT': 'prefix': 'APP_NLS_TIMESTAMP_FORMAT' 'body': """APP_NLS_TIMESTAMP_FORMAT""" 'description': 'APP_NLS_TIMESTAMP_FORMAT is the application timestamp format of the database session. This value reflects the format specified in the Application Timestamp Format attribute of the Globalization settings of the application. However, if the Application Timestamp Format is not set, then APP_NLS_TIMESTAMP_FORMAT return the NLS_TIMESTAMP_FORMAT value of the database session at the start of the request to the Application Express engine.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm 'APP_NLS_TIMESTAMP_TZ_FORMAT': 'prefix': 'APP_NLS_TIMESTAMP_TZ_FORMAT' 'body': """APP_NLS_TIMESTAMP_TZ_FORMAT""" 'description': 'APP_NLS_TIMESTAMP_TZ_FORMAT is the application timestamp time zone format of the database session. This value reflects the format specified in the Application Timestamp Time Zone Format attribute of the Globalization settings of an application. However, if the Application Timestamp Time Zone Format is not set, then APP_NLS_TIMESTAMP_TZ_FORMAT returns the NLS_TIMESTAMP_TZ_FORMAT value of the database session at the start of the request to the Application Express engine.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm 'APP_PAGE_ALIAS': 'prefix': 'APP_PAGE_ALIAS' 'body': """APP_PAGE_ALIAS""" 'description': 'APP_PAGE_ALIAS is an alphanumeric name for the current application page. A page alias is not case-sensitive and it is an optional page attribute. APP_PAGE_ALIAS is unique within an application. You can use APP_PAGE_ALIAS almost anywhere APP_PAGE_ID can be used.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm 'APP_PAGE_ID': 'prefix': 'APP_PAGE_ID' 'body': """APP_PAGE_ID""" 'description': 'APP_PAGE_ID is the current application page ID. For example, if your application was on page 3, then the result would be 3. Using this syntax is useful when writing application components that must work generically in multiple applications.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm 'APP_REQUEST_DATA_HASH': 'prefix': 'APP_REQUEST_DATA_HASH' 'body': """APP_REQUEST_DATA_HASH""" 'description': 'APP_REQUEST_DATA_HASH is a hash value of the request, item name, and item value parts in the URL. It is primarily useful to detect whether two browser requests passed different parameters to APEX.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm 'APP_SESSION': 'prefix': 'APP_SESSION' 'body': """APP_SESSION""" 'description': 'APP_SESSION is the most commonly used built-in substitution strings. You can use this substitution string to create hypertext links between application pages that maintain a session state by passing the session number. Note that you can also use the substitution string SESSION in place of APP_SESSION.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm 'APP_SESSION_VISIBLE': 'prefix': 'APP_SESSION_VISIBLE' 'body': """APP_SESSION_VISIBLE""" 'description': 'APP_SESSION_VISIBLE is similar to the built-in substitution APP_SESSION. Use this substitution string to create hypertext links between application pages that maintain a session state by passing the session number. APP_SESSION_VISIBLE always returns \'0\' when users are not authenticated to an application and they are using the Zero Session ID feature of Oracle Application Express. ' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm 'APP_TITLE': 'prefix': 'APP_TITLE' 'body': """APP_TITLE""" 'description': 'APP_TITLE is an alphanumeric title for the current application. The title is derived from an application substitution string called APP_TITLE. If not defined the Logo attribute will be used if it is of type text.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm 'APP_UNIQUE_PAGE_ID': 'prefix': 'APP_UNIQUE_PAGE_ID' 'body': """APP_UNIQUE_PAGE_ID""" 'description': 'APP_UNIQUE_PAGE_ID is an integer generated from an Oracle sequence which is unique for each page view. This number is used by applications to prevent duplicate page submissions and can be used for other purposes. For example, to make a unique URL and avoid browser caching issues, you can embed this number in the request or debug column in calls to the f procedure.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm 'APP_USER': 'prefix': 'APP_USER' 'body': """APP_USER""" 'description': 'APP_USER is the current user running the application. Depending upon your authentication model, the value of the user is set differently. If the application is running using database authentication, then the value of the user is the same as the database pseudo column USER. If the application uses an authentication scheme that requires the user to authenticate, the value of APP_USER is set by the authentication scheme, usually to the user name used during authentication.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm 'AUTHENTICATED_URL_PREFIX': 'prefix': 'AUTHENTICATED_URL_PREFIX' 'body': """AUTHENTICATED_URL_PREFIX""" 'description': 'This application-level attribute identifies a valid authenticated prefix (that is, a logged in URL prefix). You can use a relative path or a full path beginning with http. This item is useful if your application can be run in both authenticated (logged in) and public (not logged in) modes. You can use AUTHENTICATED_URL_PREFIX to construct a link to an authenticated page. This item is most useful when using basic database authentication because changes to the URL can require authentication. ' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm 'BROWSER_LANGUAGE': 'prefix': 'BROWSER_LANGUAGE' 'body': """BROWSER_LANGUAGE""" 'description': 'BROWSER_LANGUAGE refers to the web browser\'s current language preference.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm 'CURRENT_PARENT_TAB_TEXT': 'prefix': 'CURRENT_PARENT_TAB_TEXT' 'body': """CURRENT_PARENT_TAB_TEXT""" 'description': 'CURRENT_PARENT_TAB_TEXT is most useful in page templates, but is only relevant for applications that use two-level tabs (that is, parent and standard tabs). Use this string to reference the parent tab label. This substitution string enables you to repeat the currently selected parent tab within the page template.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm 'DEBUG': 'prefix': 'DEBUG' 'body': """DEBUG""" 'description': 'Valid values for the DEBUG flag are Yes or No. Turning debug on shows details about application processing. If you write your own custom code, you may want to generate debug information only if the debug mode is set to Yes.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-url-syntax.htm 'f?p=APP_ID:APP_PAGE_ID:APP_SESSION:REQUEST:DEBUG:ClearCache:itemNames:itemValues:PRINTER_FRIENDLY': 'prefix': 'f?p=APP_ID:APP_PAGE_ID:APP_SESSION:REQUEST:DEBUG:ClearCache:itemNames:itemValues:PRINTER_FRIENDLY' 'body': """f?p=APP_ID:APP_PAGE_ID:APP_SESSION:REQUEST:DEBUG:ClearCache:itemNames:itemValues:PRINTER_FRIENDLY""" 'description': 'You can create links between pages in your application using f?p syntax' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-url-syntax.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm 'HOME_LINK': 'prefix': 'HOME_LINK' 'body': """HOME_LINK""" 'description': 'HOME_LINK is the home page of an application. The Application Express engine redirects to this location if no page is given and if no alternative page is dictated by the authentication scheme\'s logic. You define the Home URL on the User Interface Details page.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm 'IMAGE_PREFIX': 'prefix': 'IMAGE_PREFIX' 'body': """IMAGE_PREFIX""" 'description': 'The value of IMAGE_PREFIX determines the virtual path the web server uses to point to the images directory distributed with Oracle Application Express. To reference uploaded images, use WORKSPACE_IMAGES and APP_IMAGES. ' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm 'LOGIN_URL': 'prefix': 'LOGIN_URL' 'body': """LOGIN_URL""" 'description': 'Use LOGIN_URL to display a link to a login page for users that are not currently logged in.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm 'LOGOUT_URL': 'prefix': 'LOGOUT_URL' 'body': """LOGOUT_URL""" 'description': 'LOGOUT_URL is an application-level attribute used to identify the logout URL. This is a URL that navigates the user to a logout page or optionally directly logs out a user. To create a logout navigation bar entry, add a trailing period to &LOGOUT_URL (&LOGOUT_URL.). If you are coding a page template, use #LOGOUT_URL#.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm 'PRINTER_FRIENDLY': 'prefix': 'PRINTER_FRIENDLY' 'body': """PRINTER_FRIENDLY""" 'description': 'The value of PRINTER_FRIENDLY determines if the Application Express engine is running in print view mode. This setting can be referenced in conditions to eliminate elements not desired in a printed document from a page.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm 'PUBLIC_URL_PREFIX': 'prefix': 'PUBLIC_URL_PREFIX' 'body': """PUBLIC_URL_PREFIX""" 'description': 'PUBLIC_URL_PREFIX is an application-level attribute that identifies a URL to toggle out of a logged in mode to a public view.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm 'REQUEST': 'prefix': 'REQUEST' 'body': """REQUEST""" 'description': 'Each application button sets the value of REQUEST to the name of the button or to the request value attribute associated with the button, enabling accept processing to reference the name of the button when a user clicks it. In the f?p syntax, REQUEST may be set using the fourth argument.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm 'WORKSPACE_ID': 'prefix': 'WORKSPACE_ID' 'body': """WORKSPACE_ID""" 'description': 'Use this substitution string to reference the workspace ID.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm' 'rightLabelHTML': ''
62084
'.source.sql, .source.pkb, .source.pks, .source.plsql': #URL: http://docs.oracle.com/database/apex-5.1/AEAPI/Global-Variables.htm 'apex_application.g_browser_language': 'prefix': 'apex_application.g_browser_language' 'body': """APEX_APPLICATION.G_BROWSER_LANGUAGE""" 'description': 'Refers to the web browser\'s current language preference.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/AEAPI/Global-Variables.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/AEAPI/Global-Variables.htm 'apex_application.g_debug': 'prefix': 'apex_application.g_debug' 'body': """APEX_APPLICATION.G_DEBUG""" 'description': 'Refers to whether debugging is currently switched on or off. Valid values for the DEBUG flag are \'Yes\' or \'No\'. Turning debug on shows details about application processing.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/AEAPI/Global-Variables.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/AEAPI/Global-Variables.htm 'apex_application.g_flow_id': 'prefix': 'apex_application.g_flow_id' 'body': """APEX_APPLICATION.G_FLOW_ID""" 'description': 'Specifies the ID of the currently running application.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/AEAPI/Global-Variables.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/AEAPI/Global-Variables.htm 'apex_application.g_flow_owner': 'prefix': 'apex_application.g_flow_owner' 'body': """APEX_APPLICATION.G_FLOW_OWNER""" 'description': 'Specifies the schema to parse for the currently running application.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/AEAPI/Global-Variables.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/AEAPI/Global-Variables.htm 'apex_application.g_flow_schema_owner': 'prefix': 'apex_application.g_flow_schema_owner' 'body': """APEX_APPLICATION.G_FLOW_SCHEMA_OWNER""" 'description': 'Refers to the owner of the Application Express schema.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/AEAPI/Global-Variables.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/AEAPI/Global-Variables.htm 'apex_application.g_flow_step_id': 'prefix': 'apex_application.g_flow_step_id' 'body': """APEX_APPLICATION.G_FLOW_STEP_ID""" 'description': 'Specifies the ID of the currently running page.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/AEAPI/Global-Variables.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/AEAPI/Global-Variables.htm 'apex_application.g_global_notification': 'prefix': 'apex_application.g_global_notification' 'body': """APEX_APPLICATION.G_GLOBAL_NOTIFICATION""" 'description': 'Specifies the application\'s global notification attribute.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/AEAPI/Global-Variables.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/AEAPI/Global-Variables.htm 'apex_application.g_home_link': 'prefix': 'apex_application.g_home_link' 'body': """APEX_APPLICATION.G_HOME_LINK""" 'description': 'Refers to the home page of an application. The Application Express engine redirects to this location if no page is given and if no alternative page is dictated by the authentication scheme\'s logic.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/AEAPI/Global-Variables.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/AEAPI/Global-Variables.htm 'apex_application.g_image_prefix': 'prefix': 'apex_application.g_image_prefix' 'body': """APEX_APPLICATION.G_IMAGE_PREFIX""" 'description': 'Refers to the virtual path the web server uses to point to the images directory distributed with Oracle Application Express.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/AEAPI/Global-Variables.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/AEAPI/Global-Variables.htm 'apex_application.g_login_url': 'prefix': 'apex_application.g_login_url' 'body': """APEX_APPLICATION.G_LOGIN_URL""" 'description': 'Used to display a link to a login page for users that are not currently logged in.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/AEAPI/Global-Variables.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/AEAPI/Global-Variables.htm 'apex_application.g_printer_friendly': 'prefix': 'apex_application.g_printer_friendly' 'body': """APEX_APPLICATION.G_PRINTER_FRIENDLY""" 'description': 'Refers to whether the Application Express engine is running in print view mode. This setting can be referenced in conditions to eliminate elements not desired in a printed document from a page.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/AEAPI/Global-Variables.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/AEAPI/Global-Variables.htm 'apex_application.g_proxy_server': 'prefix': 'apex_application.g_proxy_server' 'body': """APEX_APPLICATION.G_PROXY_SERVER""" 'description': 'Refers to the application attribute \'Proxy Server\'.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/AEAPI/Global-Variables.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/AEAPI/Global-Variables.htm 'apex_application.g_public_user': 'prefix': 'apex_application.g_public_user' 'body': """APEX_APPLICATION.G_PUBLIC_USER""" 'description': 'Refers to the Oracle schema used to connect to the database through the database access descriptor (DAD).' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/AEAPI/Global-Variables.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/AEAPI/Global-Variables.htm 'apex_application.g_request': 'prefix': 'apex_application.g_request' 'body': """APEX_APPLICATION.G_REQUEST""" 'description': 'Specifies the value of the request variable most recently passed to or set within the show or accept modules.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/AEAPI/Global-Variables.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/AEAPI/Global-Variables.htm 'apex_application.g_sysdate': 'prefix': 'apex_application.g_sysdate' 'body': """APEX_APPLICATION.G_SYSDATE""" 'description': 'Refers to the current date on the database server. this uses the DATE DATATYPE.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/AEAPI/Global-Variables.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/AEAPI/Global-Variables.htm 'apex_application.g_user': 'prefix': 'apex_application.g_user' 'body': """APEX_APPLICATION.G_USER""" 'description': 'Specifies the currently logged in user.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/AEAPI/Global-Variables.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app.htm#AEAPI552 'apex_application.help': 'prefix': 'apex_application.help' 'body': """APEX_APPLICATION.HELP""" 'description': 'This function outputs page and item level help text as formatted HTML. You can also use it to customize how help information is displayed in your application.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app.htm#AEAPI552' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app.htm#AEAPI2193 'apex_application.stop_apex_engine': 'prefix': 'apex_application.stop_apex_engine' 'body': """APEX_APPLICATION.STOP_APEX_ENGINE""" 'description': 'This procedure signals the Application Express engine to stop further processing and immediately exit to avoid adding additional HTML code to the HTTP buffer.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app.htm#AEAPI2193' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI566 'apex_application_install.clear_all': 'prefix': 'apex_application_install.clear_all' 'body': """APEX_APPLICATION_INSTALL.CLEAR_ALL""" 'description': 'This procedure clears all values currently maintained in the APEX_APPLICATION_INSTALL package.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI566' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI570 'apex_application_install.generate_application_id': 'prefix': 'apex_application_install.generate_application_id' 'body': """APEX_APPLICATION_INSTALL.GENERATE_APPLICATION_ID""" 'description': 'This procedure generates an available application ID on the instance and sets the application ID in APEX_APPLICATION_INSTALL.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI570' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI574 'apex_application_install.generate_offset': 'prefix': 'apex_application_install.generate_offset' 'body': """APEX_APPLICATION_INSTALL.GENERATE_OFFSET""" 'description': 'This procedure generates the offset value used during application import. Use the offset value to ensure that the metadata for the Application Express application definition does not collide with other metadata on the instance. For a new application installation, it is usually sufficient to call this procedure to have Application Express generate this offset value for you.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI574' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI578 'apex_application_install.get_application_alias': 'prefix': 'apex_application_install.get_application_alias' 'body': """APEX_APPLICATION_INSTALL.GET_APPLICATION_ALIAS""" 'description': 'This function gets the application alias for the application to be imported. This is only used if the application to be imported has an alias specified. An application alias must be unique within a workspace and it is recommended to be unique within an instance.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI578' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI582 'apex_application_install.get_application_id': 'prefix': 'apex_application_install.get_application_id' 'body': """APEX_APPLICATION_INSTALL.GET_APPLICATION_ID""" 'description': 'Use this function to get the application ID of the application to be imported. The application ID should either not exist in the instance or, if it does exist, must be in the workspace where the application is being imported to.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI582' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI586 'apex_application_install.get_application_name': 'prefix': 'apex_application_install.get_application_name' 'body': """APEX_APPLICATION_INSTALL.GET_APPLICATION_NAME""" 'description': 'This function gets the application name of the import application.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI586' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI30120 'apex_application_install.get_auto_install_sup_obj': 'prefix': 'apex_application_install.get_auto_install_sup_obj' 'body': """APEX_APPLICATION_INSTALL.GET_AUTO_INSTALL_SUP_OBJ""" 'description': 'Use this function to get the automatic install of supporting objects setting used during the import of an application. This setting is valid only for command line installs. If the setting is set to TRUE and the application export contains supporting objects, it automatically installs or upgrades the supporting objects when an application imports from the command line.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI30120' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI590 'apex_application_install.get_image_prefix': 'prefix': 'apex_application_install.get_image_prefix' 'body': """APEX_APPLICATION_INSTALL.GET_IMAGE_PREFIX""" 'description': 'This function gets the image prefix of the import application. Most Application Express instances use the default image prefix of /i/.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI590' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI594 'apex_application_install.get_offset': 'prefix': 'apex_application_install.get_offset' 'body': """APEX_APPLICATION_INSTALL.GET_OFFSET""" 'description': 'Use function to get the offset value used during the import of an application.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI594' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI598 'apex_application_install.get_proxy': 'prefix': 'apex_application_install.get_proxy' 'body': """APEX_APPLICATION_INSTALL.GET_PROXY""" 'description': 'Use this function to get the proxy server attribute of an application to be imported.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI598' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI602 'apex_application_install.get_schema': 'prefix': 'apex_application_install.get_schema' 'body': """APEX_APPLICATION_INSTALL.GET_SCHEMA""" 'description': 'Use this function to get the parsing schema ("owner") of the Application Express application.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI602' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI606 'apex_application_install.get_workspace_id': 'prefix': 'apex_application_install.get_workspace_id' 'body': """APEX_APPLICATION_INSTALL.GET_WORKSPACE_ID""" 'description': 'Use this function to get the workspace ID for the application to be imported.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI606' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI610 'apex_application_install.set_application_alias': 'prefix': 'apex_application_install.set_application_alias' 'body': """APEX_APPLICATION_INSTALL.SET_APPLICATION_ALIAS( p_application_alias => $1 );$2""" 'description': 'This procedure sets the application alias for the application to be imported. This is only used if the application to be imported has an alias specified. An application alias must be unique within a workspace and it is recommended to be unique within an instance.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI610' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI615 'apex_application_install.set_application_id': 'prefix': 'apex_application_install.set_application_id' 'body': """APEX_APPLICATION_INSTALL.SET_APPLICATION_ID( p_application_id => $1 );$2""" 'description': 'Use this procedure to set the application ID of the application to be imported. The application ID should either not exist in the instance or, if it does exist, must be in the workspace where the application is being imported to. This number must be a positive integer and must not be from the reserved range of Application Express application IDs.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI615' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI620 'apex_application_install.set_application_name': 'prefix': 'apex_application_install.set_application_name' 'body': """APEX_APPLICATION_INSTALL.SET_APPLICATION_NAME( p_application_name => $1 );$2""" 'description': 'This procedure sets the application name of the import application.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI620' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI30124 'apex_application_install.set_auto_install_sup_obj': 'prefix': 'apex_application_install.set_auto_install_sup_obj' 'body': """APEX_APPLICATION_INSTALL.SET_AUTO_INSTALL_SUP_OBJ( p_auto_install_sup_obj => $1 );$2""" 'description': 'This procedure sets the automatic install of supporting objects value used during application import. This setting is valid only for command line installs. If the value is set to TRUE and the application export contains supporting objects, it automatically installs or upgrades the supporting objects when an application imports from the command line.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI30124' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI625 'apex_application_install.set_image_prefix': 'prefix': 'apex_application_install.set_image_prefix' 'body': """APEX_APPLICATION_INSTALL.SET_IMAGE_PREFIX( p_image_prefix => $1 );$2""" 'description': 'This procedure sets the image prefix of the import application. Most Application Express instances use the default image prefix of /i/.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI625' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI630 'apex_application_install.set_offset': 'prefix': 'apex_application_install.set_offset' 'body': """APEX_APPLICATION_INSTALL.SET_OFFSET( p_offset => $1 );$2""" 'description': 'This procedure sets the offset value used during application import. Use the offset value to ensure that the metadata for the Application Express application definition does not collide with other metadata on the instance. For a new application installation, it is usually sufficient to call the generate_offset procedure to have Application Express generate this offset value for you.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI630' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI635 'apex_application_install.set_proxy': 'prefix': 'apex_application_install.set_proxy' 'body': """APEX_APPLICATION_INSTALL.SET_PROXY( p_proxy => $1 );$2""" 'description': 'Use this procedure to set the proxy server attributes of an application to be imported.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI635' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI640 'apex_application_install.set_schema': 'prefix': 'apex_application_install.set_schema' 'body': """APEX_APPLICATION_INSTALL.SET_SCHEMA( p_schema => $1 );$2""" 'description': 'Use this function to set the parsing schema ("owner") of the Application Express application. The database user of this schema must already exist, and this schema name must already be mapped to the workspace used to import the application.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI640' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI645 'apex_application_install.set_workspace_id': 'prefix': 'apex_application_install.set_workspace_id' 'body': """APEX_APPLICATION_INSTALL.SET_WORKSPACE_ID( p_workspace_id => $1 );$2""" 'description': 'Use this function to set the workspace ID for the application to be imported.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI645' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_authentication.htm#AEAPI29133 'apex_authentication.callback': 'prefix': 'apex_authentication.callback' 'body': """APEX_AUTHENTICATION.CALLBACK( p_session_id => $1, p_app_id => $2, p_ajax_identifier => $3 );$4""" 'description': 'This procedure is the landing resource for external login pages. Call this procedure directly from the browser.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_authentication.htm#AEAPI29133' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_authentication.htm#AEAPI29139 'apex_authentication.get_callback_url': 'prefix': 'apex_authentication.get_callback_url' 'body': """APEX_AUTHENTICATION.GET_CALLBACK_URL""" 'description': 'This function is a plugin helper function to return a URL that is used as a landing request for external login pages. When the browser sends the request, it triggers the authentication plugin ajax callback, which can be used to log the user in.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_authentication.htm#AEAPI29139' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_authentication.htm#AEAPI29144 'apex_authentication.get_login_username_cookie': 'prefix': 'apex_authentication.get_login_username_cookie' 'body': """APEX_AUTHENTICATION.GET_LOGIN_USERNAME_COOKIE""" 'description': 'This function reads the cookie with the username from the default login page.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_authentication.htm#AEAPI29144' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_authentication.htm#AEAPI29149 'apex_authentication.is_authenticated': 'prefix': 'apex_authentication.is_authenticated' 'body': """APEX_AUTHENTICATION.IS_AUTHENTICATED""" 'description': 'This function checks if the user is authenticated in the session and returns TRUE if the user is already logged in or FALSE if the user of the current session is not yet authenticated.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_authentication.htm#AEAPI29149' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_authentication.htm#AEAPI29153 'apex_authentication.is_public_user': 'prefix': 'apex_authentication.is_public_user' 'body': """APEX_AUTHENTICATION.IS_PUBLIC_USER""" 'description': 'This function checks if the user is not authenticated in the session. A FALSE is returned if the user is already logged on or TRUE if the user of the current session is not yet authenticated.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_authentication.htm#AEAPI29153' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_authentication.htm#AEAPI29157 'apex_authentication.login': 'prefix': 'apex_authentication.login' 'body': """APEX_AUTHENTICATION.LOGIN( p_username => $1, p_password => $2 );$3""" 'description': 'This procedure authenticates the user in the current session.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_authentication.htm#AEAPI29157' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_authentication.htm#AEAPI29162 'apex_authentication.logout': 'prefix': 'apex_authentication.logout' 'body': """APEX_AUTHENTICATION.LOGOUT( p_session_id => $1, p_app_id => $2 );$3""" 'description': 'This procedure closes the session and redirects to the applicatio\'s home page. Call this procedure directly from the browser.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_authentication.htm#AEAPI29162' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_authentication.htm#AEAPI29167 'apex_authentication.post_login': 'prefix': 'apex_authentication.post_login' 'body': """APEX_AUTHENTICATION.POST_LOGIN( p_username => $1, p_password => $2 );$3""" 'description': 'This procedure authenticates the user in the current session. It runs a subset of login(), without steps 1 and 2. For steps, see "LOGIN Procedure." It is primarily useful in authentication schemes where user credentials checking is done externally to Application Express.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_authentication.htm#AEAPI29167' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_authentication.htm#AEAPI29172 'apex_authentication.send_login_username_cookie': 'prefix': 'apex_authentication.send_login_username_cookie' 'body': """APEX_AUTHENTICATION.SEND_LOGIN_USERNAME_COOKIE( p_username => $1 );$2""" 'description': 'This procedure sends a cookie with the username.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_authentication.htm#AEAPI29172' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_authorization.htm#AEAPI29592 'apex_authorization.enable_dynamic_groups': 'prefix': 'apex_authorization.enable_dynamic_groups' 'body': """APEX_AUTHORIZATION.ENABLE_DYNAMIC_GROUPS( p_group_names => $1 );$2""" 'description': 'This procedure enables groups in the current session. These groups do not have to be created in the Application Express workspace repository, but can, for example, be loaded from a LDAP repository. Enabling a group that exists in the workspace repository and has other groups granted to it, also enables the granted groups.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_authorization.htm#AEAPI29592' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_authorization.htm#AEAPI29597 'apex_authorization.is_authorized': 'prefix': 'apex_authorization.is_authorized' 'body': """APEX_AUTHORIZATION.IS_AUTHORIZED( p_authorization_name => $1 );$2""" 'description': 'Determine if the current user passes the authorization with name p_authorization_name. For performance reasons, authorization results are cached. Because of this, the function may not always evaluate the authorization when called, but take the result out of the cache.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_authorization.htm#AEAPI29597' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_authorization.htm#AEAPI29604 'apex_authorization.reset_cache': 'prefix': 'apex_authorization.reset_cache' 'body': """APEX_AUTHORIZATION.RESET_CACHE""" 'description': 'This procedure resets the authorization caches for the session and forces a re-evaluation when an authorization is checked next.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_authorization.htm#AEAPI29604' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI680 'apex_collection.add_member': 'prefix': 'apex_collection.add_member' 'body': """APEX_COLLECTION.ADD_MEMBER( p_collection_name => $1 );$2""" 'description': 'Use this procedure to add a new member to an existing collection. An error is raised if the specified collection does not exist for the current user in the same session for the current Application ID. Gaps are not used when adding a new member, so an existing collection with members of sequence IDs (1,2,5,8) adds the new member with a sequence ID of 9.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI680' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI685 'apex_collection.add_member2': 'prefix': 'apex_collection.add_member2' 'body': """APEX_COLLECTION.ADD_MEMBER2( p_collection_name => $1 );$2""" 'description': 'Use this function to add a new member to an existing collection. Calling this function returns the sequence ID of the newly added member. An error is raised if the specified collection does not exist for the current user in the same session for the current Application ID. Gaps are not used when adding a new member, so an existing collection with members of sequence IDs (1,2,5,8) adds the new member with a sequence ID of 9.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI685' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI690 'apex_collection.add_members': 'prefix': 'apex_collection.add_members' 'body': """APEX_COLLECTION.ADD_MEMBERS( p_collection_name => $1 );$2""" 'description': 'Use this procedure to add an array of members to a collection. An error is raised if the specified collection does not exist for the current user in the same session for the current Application ID. Gaps are not used when adding a new member, so an existing collection with members of sequence IDs (1,2,5,8) adds the new member with a sequence ID of 9. The count of elements in the p_c001 PL/SQL table is used as the total number of items across all PL/SQL tables. For example, if p_c001.count is 2 and p_c002.count is 10, only 2 members are added. If p_c001 is null an application error is raised.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI690' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI695 'apex_collection.collection_exists': 'prefix': 'apex_collection.collection_exists' 'body': """APEX_COLLECTION.COLLECTION_EXISTS( p_collection_name => $1 );$2""" 'description': 'Use this function to determine if a collection exists. A TRUE is returned if the specified collection exists for the current user in the current session for the current Application ID, otherwise FALSE is returned.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI695' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI700 'apex_collection.collection_has_changed': 'prefix': 'apex_collection.collection_has_changed' 'body': """APEX_COLLECTION.COLLECTION_HAS_CHANGED( p_collection_name => $1 );$2""" 'description': 'Use this function to determine if a collection has changed since it was created or the collection changed flag was reset.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI700' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI705 'apex_collection.collection_member_count': 'prefix': 'apex_collection.collection_member_count' 'body': """APEX_COLLECTION.COLLECTION_MEMBER_COUNT( p_collection_name => $1 );$2""" 'description': 'Use this function to get the total number of members for the named collection. If gaps exist, the total member count returned is not equal to the highest sequence ID in the collection. If the named collection does not exist for the current user in the current session, an error is raised.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI705' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI710 'apex_collection.create_collection': 'prefix': 'apex_collection.create_collection' 'body': """APEX_COLLECTION.CREATE_COLLECTION( p_collection_name => $1 );$2""" 'description': 'Use this procedure to create an empty collection that does not already exist. If a collection exists with the same name for the current user in the same session for the current Application ID, an application error is raised.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI710' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI720 'apex_collection.create_collection_from_query': 'prefix': 'apex_collection.create_collection_from_query' 'body': """APEX_COLLECTION.CREATE_COLLECTION_FROM_QUERY( p_collection_name => $1, p_query => $2 );$3""" 'description': 'Use this procedure to create a collection from a supplied query. The query is parsed as the application owner. This method can be used with a query with up to 50 columns in the SELECT clause. These columns in the SELECT clause populates the 50 character attributes of the collection (C001 through C050). If a collection exists with the same name for the current user in the same session for the current Application ID, an application error is raised.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI720' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI725 'apex_collection.create_collection_from_query2': 'prefix': 'apex_collection.create_collection_from_query2' 'body': """APEX_COLLECTION.CREATE_COLLECTION_FROM_QUERY2( p_collection_name => $1, p_query => $2 );$3""" 'description': 'Use this procedure to create a collection from a supplied query. This method is identical to CREATE_COLLECTION_FROM_QUERY, however, the first 5 columns of the SELECT clause must be numeric and the next 5 must be date. After the numeric and date columns, there can be up to 50 character columns in the SELECT clause. The query is parsed as the application owner. If a collection exists with the same name for the current user in the same session for the current Application ID, an application error is raised.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI725' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI730 'apex_collection.create_collection_from_query_b': 'prefix': 'apex_collection.create_collection_from_query_b' 'body': """APEX_COLLECTION.CREATE_COLLECTION_FROM_QUERY_B( p_collection_name => $1, p_query => $2, p_names => $3, p_values => $4, p_max_row_count => $5 );$6""" 'description': 'Use this procedure to create a collection from a supplied query using bulk operations. This method offers significantly faster performance than the CREATE_COLLECTION_FROM_QUERY method. The query is parsed as the application owner. If a collection exists with the same name for the current user in the same session for the current Application ID, an application error is raised.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI730' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI735 'apex_collection.create_collection_from_queryb2': 'prefix': 'apex_collection.create_collection_from_queryb2' 'body': """APEX_COLLECTION.CREATE_COLLECTION_FROM_QUERYB2( p_collection_name => $1, p_query => $2, p_names => $3, p_values => $4, p_max_row_count => $5 );$6""" 'description': 'Use this procedure to create a collection from a supplied query using bulk operations. This method offers significantly faster performance than the CREATE_COLLECTION_FROM_QUERY_2 method. The query is parsed as the application owner. If a collection exists with the same name for the current user in the same session for the current Application ID, an application error is raised. It is identical to the CREATE_COLLECTION_FROM_QUERY_B, however, the first five columns of the SELECT clause must be numeric and the next five columns must be date. After the date columns, there can be up to 50 character columns in the SELECT clause' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI735' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI715 'apex_collection.create_or_truncate_collection': 'prefix': 'apex_collection.create_or_truncate_collection' 'body': """APEX_COLLECTION.CREATE_OR_TRUNCATE_COLLECTION( p_collection_name => $1 );$2""" 'description': 'Use this procedure to create a collection. If a collection exists with the same name for the current user in the same session for the current Application ID, all members of the collection are removed. In other words, the named collection is truncated.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI715' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI740 'apex_collection.delete_all_collections': 'prefix': 'apex_collection.delete_all_collections' 'body': """APEX_COLLECTION.DELETE_ALL_COLLECTIONS""" 'description': 'Use this procedure to delete all collections that belong to the current user in the current Application Express session for the current Application ID.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI740' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI744 'apex_collection.delete_all_collections_session': 'prefix': 'apex_collection.delete_all_collections_session' 'body': """APEX_COLLECTION.DELETE_ALL_COLLECTIONS_SESSION""" 'description': 'Use this procedure to delete all collections that belong to the current user in the current Application Express session regardless of the Application ID.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI744' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI748 'apex_collection.delete_collection': 'prefix': 'apex_collection.delete_collection' 'body': """APEX_COLLECTION.DELETE_COLLECTION( p_collection_name => $1 );$2""" 'description': 'Use this procedure to delete a named collection. All members that belong to the collection are removed and the named collection is dropped. If the named collection does not exist for the same user in the current session for the current Application ID, an application error is raised.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI748' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI753 'apex_collection.delete_member': 'prefix': 'apex_collection.delete_member' 'body': """APEX_COLLECTION.DELETE_MEMBER( p_collection_name => $1, p_seq => $2 );$3""" 'description': 'Use this procedure to delete a specified member from a given named collection. If the named collection does not exist for the same user in the current session for the current Application ID, an application error is raised.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI753' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI758 'apex_collection.delete_members': 'prefix': 'apex_collection.delete_members' 'body': """APEX_COLLECTION.DELETE_MEMBERS( p_collection_name => $1, p_attr_number => $2, p_attr_value => $3 );$4""" 'description': 'Use this procedure to delete all members from a given named collection where the attribute specified by the attribute number equals the supplied value. If the named collection does not exist for the same user in the current session for the current Application ID, an application error is raised. If the attribute number specified is invalid or outside the range of 1 to 50, an error is raised.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI758' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI763 'apex_collection.get_member_md5': 'prefix': 'apex_collection.get_member_md5' 'body': """APEX_COLLECTION.GET_MEMBER_MD5( p_collection_name => $1, p_seq => $2 );$3""" 'description': 'Use this function to compute and return the message digest of the attributes for the member specified by the sequence ID. This computation of message digest is equal to the computation performed natively by collections. Thus, the result of this function could be compared to the MD5_ORIGINAL column of the view wwv_flow_collections.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI763' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI768 'apex_collection.merge_members': 'prefix': 'apex_collection.merge_members' 'body': """APEX_COLLECTION.MERGE_MEMBERS( p_collection_name => $1 );$2""" 'description': 'Use this procedure to merge members of the given named collection with the values passed in the arrays. If the named collection does not exist one is created. If a p_init_query is provided, the collection is created from the supplied SQL query. If the named collection exists, the following occurs:' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI768' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI773 'apex_collection.move_member_down': 'prefix': 'apex_collection.move_member_down' 'body': """APEX_COLLECTION.MOVE_MEMBER_DOWN( p_collection_name => $1, p_seq => $2 );$3""" 'description': 'Use this procedure to adjust the sequence ID of specified member in the given named collection down by one (subtract one), swapping sequence ID with the one it is replacing. For example, 3 becomes 2 and 2 becomes 3. If a collection does not exist with the specified name for the current user in the same session and for the current Application ID, an application error is raised. If the member specified by sequence ID p_seq does not exist, an application error is raised. If the member specified by sequence ID p_seq is the lowest sequence in the collection, an application error is NOT returned.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI773' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI778 'apex_collection.move_member_up': 'prefix': 'apex_collection.move_member_up' 'body': """APEX_COLLECTION.MOVE_MEMBER_UP( p_collection_name => $1, p_seq => $2 );$3""" 'description': 'Use this procedure to adjust the sequence ID of specified member in the given named collection up by one (add one), swapping sequence ID with the one it is replacing. For example, 2 becomes 3 and 3 becomes 2. If a collection does not exist with the specified name for the current user in the same session and for the current Application ID, an application error is raised. If the member specified by sequence ID p_seq does not exist, an application error is raised. If the member specified by sequence ID p_seq is the highest sequence in the collection, an application error is not returned.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI778' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI783 'apex_collection.resequence_collection': 'prefix': 'apex_collection.resequence_collection' 'body': """APEX_COLLECTION.RESEQUENCE_COLLECTION( p_collection_name => $1 );$2""" 'description': 'For a named collection, use this procedure to update the seq_id value of each member so that no gaps exist in the sequencing. For example, a collection with the following set of sequence IDs (1,2,3,5,8,9) becomes (1,2,3,4,5,6). If a collection does not exist with the specified name for the current user in the same session and for the current Application ID, an application error is raised.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI783' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI788 'apex_collection.reset_collection_changed': 'prefix': 'apex_collection.reset_collection_changed' 'body': """APEX_COLLECTION.RESET_COLLECTION_CHANGED( p_collection_name => $1 );$2""" 'description': 'Use this procedure to reset the collection changed flag (mark as not changed) for a given collection. If a collection does not exist with the specified name for the current user in the same session and for the current Application ID, an application error is raised.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI788' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI793 'apex_collection.reset_collection_changed_all': 'prefix': 'apex_collection.reset_collection_changed_all' 'body': """APEX_COLLECTION.RESET_COLLECTION_CHANGED_ALL""" 'description': 'Use this procedure to reset the collection changed flag (mark as not changed) for all collections in the use\'s current session.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI793' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI797 'apex_collection.sort_members': 'prefix': 'apex_collection.sort_members' 'body': """APEX_COLLECTION.SORT_MEMBERS( p_collection_name => $1, p_sort_on_column_number => $2 );$3""" 'description': 'Use this procedure to reorder the members of a given collection by the column number specified by p_sort_on_column_number. This sorts the collection by a particular column/attribute in the collection and reassigns the sequence IDs of each number such that no gaps exist. If a collection does not exist with the specified name for the current user in the same session and for the current Application ID, an application error is raised.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI797' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI802 'apex_collection.truncate_collection': 'prefix': 'apex_collection.truncate_collection' 'body': """APEX_COLLECTION.TRUNCATE_COLLECTION( p_collection_name => $1 );$2""" 'description': 'Use this procedure to remove all members from a named collection. If a collection does not exist with the specified name for the current user in the same session and for the current Application ID, an application error is raised.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI802' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI807 'apex_collection.update_member': 'prefix': 'apex_collection.update_member' 'body': """APEX_COLLECTION.UPDATE_MEMBER( p_collection_name => $1 );$2""" 'description': 'Use this procedure to update the specified member in the given named collection. If a collection does not exist with the specified name for the current user in the same session and for the current Application ID, an application error is raised. If the member specified by sequence ID p_seq does not exist, an application error is raised.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI807' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI817 'apex_collection.update_member_attribute': 'prefix': 'apex_collection.update_member_attribute' 'body': """APEX_COLLECTION.UPDATE_MEMBER_ATTRIBUTE( p_collection_name => $1, p_seq => $2, p_attr_number => $3, p_attr_value => $4 );$5""" 'description': 'Update the specified member attribute in the given named collection. If a collection does not exist with the specified name for the current user in the same session for the current Application ID, an application error is raised. If the member specified by sequence ID p_seq does not exist, an application error is raised. If the attribute number specified is invalid or outside the range 1-50, an error is raised. Any attribute value exceeding 4,000 bytes are truncated to 4,000 bytes.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI817' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI822 'apex_collection.update_member_attribute2': 'prefix': 'apex_collection.update_member_attribute2' 'body': """APEX_COLLECTION.UPDATE_MEMBER_ATTRIBUTE2( p_collection_name => $1, p_seq => $2, p_clob_number => $3, p_clob_value => $4 );$5""" 'description': 'Update the specified CLOB member attribute in the given named collection. If a collection does not exist with the specified name for the current user in the same session for the current Application ID, an application error is raised. If the member specified by sequence ID p_seq does not exist, an application error is raised. If the attribute number specified is invalid or outside the valid range (currently only 1 for CLOB), an error is raised.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI822' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI827 'apex_collection.update_member_attribute3': 'prefix': 'apex_collection.update_member_attribute3' 'body': """APEX_COLLECTION.UPDATE_MEMBER_ATTRIBUTE3( p_collection_name => $1, p_seq => $2, p_blob_number => $3, p_blob_value => $4 );$5""" 'description': 'Update the specified BLOB member attribute in the given named collection. If a collection does not exist with the specified name for the current user in the same session for the current Application ID, an application error is raised. If the member specified by sequence ID p_seq does not exist, an application error is raised. If the attribute number specified is invalid or outside the valid range (currently only 1 for BLOB), an error is raised.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI827' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI832 'apex_collection.update_member_attribute4': 'prefix': 'apex_collection.update_member_attribute4' 'body': """APEX_COLLECTION.UPDATE_MEMBER_ATTRIBUTE4( p_collection_name => $1, p_seq => $2, p_xmltype_number => $3, p_xmltype_value => $4 );$5""" 'description': 'Update the specified XMLTYPE member attribute in the given named collection. If a collection does not exist with the specified name for the current user in the same session for the current Application ID, an application error is raised. If the member specified by sequence ID p_seq does not exist, an application error is raised. If the attribute number specified is invalid or outside the valid range (currently only 1 for XMLTYPE), an error is raised.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI832' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI837 'apex_collection.update_member_attribute5': 'prefix': 'apex_collection.update_member_attribute5' 'body': """APEX_COLLECTION.UPDATE_MEMBER_ATTRIBUTE5( p_collection_name => $1, p_seq => $2, p_attr_number => $3, p_number_value => $4 );$5""" 'description': 'Update the specified NUMBER member attribute in the given named collection. If a collection does not exist with the specified name for the current user in the same session for the current Application ID, an application error is raised. If the member specified by sequence ID p_seq does not exist, an application error is raised. If the attribute number specified is invalid or outside the valid range (currently only 1 through 5 for NUMBER), an error is raised.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI837' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI842 'apex_collection.update_member_attribute6': 'prefix': 'apex_collection.update_member_attribute6' 'body': """APEX_COLLECTION.UPDATE_MEMBER_ATTRIBUTE6( p_collection_name => $1, p_seq => $2, p_attr_number => $3, p_date_value => $4 );$5""" 'description': 'Update the specified DATE member attribute in the given named collection. If a collection does not exist with the specified name for the current user in the same session for the current Application ID, an application error is raised. If the member specified by sequence ID p_seq does not exist, an application error is raised. If the attribute number specified is invalid or outside the valid range (currently only 1 through 5 for DATE), an error is raised.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI842' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI812 'apex_collection.update_members': 'prefix': 'apex_collection.update_members' 'body': """APEX_COLLECTION.UPDATE_MEMBERS( p_collection_name => $1 );$2""" 'description': 'Use this procedure to update the array of members for the given named collection. If a collection does not exist with the specified name for the current user in the same session and for the current Application ID, an application error is raised. The count of elements in the p_seq PL/SQL table is used as the total number of items across all PL/SQL tables. That is, if p_seq.count = 2 and p_c001.count = 10, only 2 members are updaapex_application_globalted. If p_seq is null, an application error is raised. If the member specified by sequence ID p_seq does not exist, an application error is raised.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI812' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_css.htm#AEAPI847 'apex_css.add': 'prefix': 'apex_css.add' 'body': """APEX_CSS.ADD( p_css => $1 );$2""" 'description': 'This procedure adds a CSS style snippet that is included inline in the HTML output. Use this procedure to add new CSS style declarations.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_css.htm#AEAPI847' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_css.htm#AEAPI29177 'apex_css.add_3rd_party_library_file': 'prefix': 'apex_css.add_3rd_party_library_file' 'body': """APEX_CSS.ADD_3RD_PARTY_LIBRARY_FILE( p_library => $1, p_file_name => $2 );$3""" 'description': 'This procedure adds the link tag to load a 3rd party css file and also takes into account the specified Content Delivery Network for the application. Supported libraries include: jQuery, jQueryUI, jQueryMobile.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_css.htm#AEAPI29177' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_css.htm#AEAPI852 'apex_css.add_file': 'prefix': 'apex_css.add_file' 'body': """APEX_CSS.ADD_FILE( p_name => $1 );$2""" 'description': 'This procedure adds the link tag to load a CSS library. If a library has already been added, it will not be added a second time.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_css.htm#AEAPI852' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI219 'apex_custom_auth.application_page_item_exists': 'prefix': 'apex_custom_auth.application_page_item_exists' 'body': """APEX_CUSTOM_AUTH.APPLICATION_PAGE_ITEM_EXISTS( p_item_name => $1 );$2""" 'description': 'This function checks for the existence of page-level item within the current page of an application. This function requires the parameter p_item_name. This function returns a Boolean value (TRUE or FALSE).' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI219' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI220 'apex_custom_auth.current_page_is_public': 'prefix': 'apex_custom_auth.current_page_is_public' 'body': """APEX_CUSTOM_AUTH.CURRENT_PAGE_IS_PUBLIC""" 'description': 'This function checks whether the current pag\'s authentication attribute is set to Page Is Public and returns a Boolean value (TRUE or FALSE)' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI220' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI221 'apex_custom_auth.define_user_session': 'prefix': 'apex_custom_auth.define_user_session' 'body': """APEX_CUSTOM_AUTH.DEFINE_USER_SESSION( p_user => $1, p_session_id => $2 );$3""" 'description': 'This procedure combines the SET_USER and SET_SESSION_ID procedures to create one call.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI221' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI222 'apex_custom_auth.get_cookie_props': 'prefix': 'apex_custom_auth.get_cookie_props' 'body': """APEX_CUSTOM_AUTH.GET_COOKIE_PROPS( p_app_id => $1, p_cookie_name => $2, p_cookie_path => $3, p_cookie_domain => $4, p_secure => $5 );$6""" 'description': 'This procedure obtains the properties of the session cookie used in the current authentication scheme for the specified application. These properties can be viewed directly in the Application Builder by viewing the authentication scheme cookie attributes.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI222' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI223 'apex_custom_auth.get_ldap_props': 'prefix': 'apex_custom_auth.get_ldap_props' 'body': """APEX_CUSTOM_AUTH.GET_LDAP_PROPS( p_ldap_host => $1, p_ldap_port => $2, p_use_ssl => $3, p_use_exact_dn => $4, p_search_filter => $5, p_ldap_dn => $6, p_ldap_edit_function => $7 );$8""" 'description': 'This procedure obtains the LDAP attributes of the current authentication scheme for the current application. These properties can be viewed directly in Application Builder by viewing the authentication scheme attributes.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI223' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI224 'apex_custom_auth.get_next_session_id': 'prefix': 'apex_custom_auth.get_next_session_id' 'body': """APEX_CUSTOM_AUTH.GET_NEXT_SESSION_ID""" 'description': 'This function generates the next session ID from the Oracle Application Express sequence generator. This function returns a number.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI224' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI227 'apex_custom_auth.get_security_group_id': 'prefix': 'apex_custom_auth.get_security_group_id' 'body': """APEX_CUSTOM_AUTH.GET_SECURITY_GROUP_ID""" 'description': 'This function returns a number with the value of the security group ID that identifies the workspace of the current user.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI227' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI228 'apex_custom_auth.get_session_id': 'prefix': 'apex_custom_auth.get_session_id' 'body': """APEX_CUSTOM_AUTH.GET_SESSION_ID""" 'description': 'This function returns APEX_APPLICATION.G_INSTANCE global variable. GET_SESSION_ID returns a number.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI228' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI225 'apex_custom_auth.get_session_id_from_cookie': 'prefix': 'apex_custom_auth.get_session_id_from_cookie' 'body': """APEX_CUSTOM_AUTH.GET_SESSION_ID_FROM_COOKIE""" 'description': 'This function returns the Oracle Application Express session ID located by the session cookie in a page request in the current browser session.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI225' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI229 'apex_custom_auth.get_user': 'prefix': 'apex_custom_auth.get_user' 'body': """APEX_CUSTOM_AUTH.GET_USER""" 'description': 'This function returns the APEX_APPLICATION.G_USER global variable (VARCHAR2).' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI229' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI226 'apex_custom_auth.get_username': 'prefix': 'apex_custom_auth.get_username' 'body': """APEX_CUSTOM_AUTH.GET_USERNAME""" 'description': 'This function returns user name registered with the current Oracle Application Express session in the internal sessions table. This user name is usually the same as the authenticated user running the current page.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI226' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI230 'apex_custom_auth.is_session_valid': 'prefix': 'apex_custom_auth.is_session_valid' 'body': """APEX_CUSTOM_AUTH.IS_SESSION_VALID""" 'description': 'This function is a Boolean result obtained from executing the current applicatio\'s authentication scheme to determine if a valid session exists. This function returns the Boolean result of the authentication schem\'s page sentry.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI230' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI231 'apex_custom_auth.login': 'prefix': 'apex_custom_auth.login' 'body': """APEX_CUSTOM_AUTH.LOGIN""" 'description': 'Also referred to as the "Login API," this procedure performs authentication and session registration.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI231' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI232 'apex_custom_auth.logout': 'prefix': 'apex_custom_auth.logout' 'body': """APEX_CUSTOM_AUTH.LOGOUT""" 'description': 'Note:' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI232' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI233 'apex_custom_auth.post_login': 'prefix': 'apex_custom_auth.post_login' 'body': """APEX_CUSTOM_AUTH.POST_LOGIN""" 'description': 'This procedure performs session registration, assuming the authentication step has been completed. It can be called only from within an Oracle Application Express application page context.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI233' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI234 'apex_custom_auth.session_id_exists': 'prefix': 'apex_custom_auth.session_id_exists' 'body': """APEX_CUSTOM_AUTH.SESSION_ID_EXISTS""" 'description': 'This function returns a Boolean result based on the global package variable containing the current Oracle Application Express session ID. Returns TRUE if the result is a positive number and returns FALSE if the result is a negative number.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI234' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI236 'apex_custom_auth.set_session_id': 'prefix': 'apex_custom_auth.set_session_id' 'body': """APEX_CUSTOM_AUTH.SET_SESSION_ID( p_session_id => $1 );$2""" 'description': 'This procedure sets APEX_APPLICATION.G_INSTANCE global variable. This procedure requires the parameter P_SESSION_ID (NUMBER) which specifies a session ID.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI236' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI237 'apex_custom_auth.set_session_id_to_next_value': 'prefix': 'apex_custom_auth.set_session_id_to_next_value' 'body': """APEX_CUSTOM_AUTH.SET_SESSION_ID_TO_NEXT_VALUE""" 'description': 'This procedure combines the operation of GET_NEXT_SESSION_ID and SET_SESSION_ID in one call.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI237' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI235 'apex_custom_auth.set_user': 'prefix': 'apex_custom_auth.set_user' 'body': """APEX_CUSTOM_AUTH.SET_USER( p_user => $1 );$2""" 'description': 'This procedure sets the APEX_APPLICATION.G_USER global variable. SET_USER requires the parameter P_USER (VARCHAR2) which defines a user ID.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI235' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_debug.htm#AEAPI29185 'apex_debug.disable': 'prefix': 'apex_debug.disable' 'body': """APEX_DEBUG.DISABLE""" 'description': 'This procedure turns off debug messaging.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_debug.htm#AEAPI29185' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_debug.htm#AEAPI29189 'apex_debug.enable': 'prefix': 'apex_debug.enable' 'body': """APEX_DEBUG.ENABLE""" 'description': 'This procedure turns on debug messaging. You can specify, by level of importance, the types of debug messages that are monitored.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_debug.htm#AEAPI29189' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_debug.htm#AEAPI29194 'apex_debug.enter': 'prefix': 'apex_debug.enter' 'body': """APEX_DEBUG.ENTER( p_routine_name => $1 );$2""" 'description': 'This procedure logs messages at level c_log_level_app_enter. Use APEX_DEBUG.ENTER() to log the routine name and i\'s arguments at the beginning of a procedure or function.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_debug.htm#AEAPI29194' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_debug.htm#AEAPI29199 'apex_debug.error': 'prefix': 'apex_debug.error' 'body': """APEX_DEBUG.ERROR( p_message => $1 );$2""" 'description': 'This procedure logs messages at level c_log_level_error. This procedure always logs, even if debug mode is turned off.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_debug.htm#AEAPI29199' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_debug.htm#AEAPI29204 'apex_debug.info': 'prefix': 'apex_debug.info' 'body': """APEX_DEBUG.INFO( p_message => $1 );$2""" 'description': 'This procedure logs messages at level c_log_level_info.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_debug.htm#AEAPI29204' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_debug.htm#AEAPI29209 'apex_debug.log_dbms_output': 'prefix': 'apex_debug.log_dbms_output' 'body': """APEX_DEBUG.LOG_DBMS_OUTPUT""" 'description': 'This procedure writes the contents of dbms_output.get_lines to the debug log. Messages of legacy applications which use dbms_output are copied into the debug log. In order to write to the debug log, dbms_output.enable must be performed' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_debug.htm#AEAPI29209' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_debug.htm#AEAPI29213 'apex_debug.log_long_message': 'prefix': 'apex_debug.log_long_message' 'body': """APEX_DEBUG.LOG_LONG_MESSAGE""" 'description': 'Use this procedure to emit debug messages from PLSQL components of Application Express, or PLSQL procedures and functions. This procedure is the same as LOG_MESSAGE, except it allows logging of much longer messages, which are subsequently split into 4,000 character chunks in the debugging output (because a single debug message is constrained to 4,000 characters).' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_debug.htm#AEAPI29213' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_debug.htm#AEAPI29218 'apex_debug.log_message': 'prefix': 'apex_debug.log_message' 'body': """APEX_DEBUG.LOG_MESSAGE""" 'description': 'This procedure logs a debug message.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_debug.htm#AEAPI29218' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_debug.htm#AEAPI29223 'apex_debug.log_page_session_state': 'prefix': 'apex_debug.log_page_session_state' 'body': """APEX_DEBUG.LOG_PAGE_SESSION_STATE""" 'description': 'This procedure logs the sessio\'s item values.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_debug.htm#AEAPI29223' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_debug.htm#AEAPI29228 'apex_debug.message': 'prefix': 'apex_debug.message' 'body': """APEX_DEBUG.MESSAGE( p_message => $1 );$2""" 'description': 'This procedure logs a formatted debug message, general version.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_debug.htm#AEAPI29228' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_debug.htm#AEAPI29233 'apex_debug.remove_debug_by_age': 'prefix': 'apex_debug.remove_debug_by_age' 'body': """APEX_DEBUG.REMOVE_DEBUG_BY_AGE( p_application_id => $1, p_older_than_days => $2 );$3""" 'description': 'Use this procedure to delete from the debug message log all data older than the specified number of days.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_debug.htm#AEAPI29233' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_debug.htm#AEAPI29238 'apex_debug.remove_debug_by_app': 'prefix': 'apex_debug.remove_debug_by_app' 'body': """APEX_DEBUG.REMOVE_DEBUG_BY_APP( p_application_id => $1 );$2""" 'description': 'Use this procedure to delete from the debug message log all data belonging to a specified application.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_debug.htm#AEAPI29238' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_debug.htm#AEAPI29243 'apex_debug.remove_debug_by_view': 'prefix': 'apex_debug.remove_debug_by_view' 'body': """APEX_DEBUG.REMOVE_DEBUG_BY_VIEW( p_application_id => $1, p_view_id => $2 );$3""" 'description': 'Use this procedure to delete all data for a specified view from the message log.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_debug.htm#AEAPI29243' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_debug.htm#AEAPI29248 'apex_debug.remove_session_messages': 'prefix': 'apex_debug.remove_session_messages' 'body': """APEX_DEBUG.REMOVE_SESSION_MESSAGES""" 'description': 'This procedure deletes from the debug message log all data for a given session in your workspace defaults to your current session.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_debug.htm#AEAPI29248' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_debug.htm#AEAPI29253 'apex_debug.tochar': 'prefix': 'apex_debug.tochar' 'body': """APEX_DEBUG.TOCHAR( p_value => $1 );$2""" 'description': 'This procedure converts a BOOLEAN to a VARCHAR2.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_debug.htm#AEAPI29253' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_debug.htm#AEAPI29258 'apex_debug.trace': 'prefix': 'apex_debug.trace' 'body': """APEX_DEBUG.TRACE( p_message => $1 );$2""" 'description': 'This procedure logs messages at level c_log_level_app_trace.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_debug.htm#AEAPI29258' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_debug.htm#AEAPI29263 'apex_debug.warn': 'prefix': 'apex_debug.warn' 'body': """APEX_DEBUG.WARN( p_message => $1 );$2""" 'description': 'This procedure logs messages at level c_log_level_warn.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_debug.htm#AEAPI29263' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_error.htm#AEAPI2217 'apex_error.add_error': 'prefix': 'apex_error.add_error' 'body': """APEX_ERROR.ADD_ERROR( p_message => $1, p_display_location => $2 );$3""" 'description': 'This procedure adds an error message to the error stack that is used to display an error on an error page or inline in a notification. It can be called in a validation or process to add one or more errors to the error stack.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_error.htm#AEAPI2217' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_error.htm#AEAPI2222 'apex_error.add_error2': 'prefix': 'apex_error.add_error2' 'body': """APEX_ERROR.ADD_ERROR2( p_message => $1, p_display_location => $2, p_page_item_name => $3 );$4""" 'description': 'This procedure adds an error message to the error stack that is used to display an error for a page item inline in a notification. It can be called in a validation or process to add one or more errors to the error stack.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_error.htm#AEAPI2222' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_error.htm#AEAPI2227 'apex_error.add_error3': 'prefix': 'apex_error.add_error3' 'body': """APEX_ERROR.ADD_ERROR3( p_error_code => $1, p_display_location => $2, p_page_item_name => $3 );$4""" 'description': 'This procedure adds an error message to the error stack that is used to display text as defined by a shared component. This error message can be displayed to all display locations. It can be called in a validation or process to add one or more errors to the error stack.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_error.htm#AEAPI2227' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_error.htm#AEAPI2232 'apex_error.add_error4': 'prefix': 'apex_error.add_error4' 'body': """APEX_ERROR.ADD_ERROR4( p_message => $1, p_display_location => $2, p_region_id => $3, p_row_num => $4 );$5""" 'description': 'This procedure adds an error message to the error stack that is used to display an error for a tabular form inline in a notification. It can be called in a validation or process to add one or more errors to the error stack.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_error.htm#AEAPI2232' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_error.htm#AEAPI2237 'apex_error.add_error5': 'prefix': 'apex_error.add_error5' 'body': """APEX_ERROR.ADD_ERROR5( p_error_code => $1, p_display_location => $2, p_region_id => $3, p_row_num => $4 );$5""" 'description': 'This procedure adds an error message to the error stack of a tabular form that is used to display text as defined by a shared component. This error message can be displayed to all display locations. It can be called in a validation or process to add one or more errors to the error stack.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_error.htm#AEAPI2237' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_error.htm#AEAPI2242 'apex_error.auto_set_associated_item': 'prefix': 'apex_error.auto_set_associated_item' 'body': """APEX_ERROR.AUTO_SET_ASSOCIATED_ITEM( p_error_result => $1, p_error => $2 );$3""" 'description': 'This procedure automatically sets the associated page item or tabular form column based on a constraint contained in p_error.ora_sqlerrm.This procedure performs the following:' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_error.htm#AEAPI2242' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_error.htm#AEAPI2247 'apex_error.extract_constraint_name': 'prefix': 'apex_error.extract_constraint_name' 'body': """APEX_ERROR.EXTRACT_CONSTRAINT_NAME( p_error => $1 );$2""" 'description': 'This function extracts a constraint name contained in p_error.ora_sqlerrm. The constraint must match the pattern schema.constraint.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_error.htm#AEAPI2247' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_error.htm#AEAPI2252 'apex_error.get_aria_error_attributes': 'prefix': 'apex_error.get_aria_error_attributes' 'body': """APEX_ERROR.GET_ARIA_ERROR_ATTRIBUTES( p_item_name => $1 );$2""" 'description': 'This function is useful for item plug-in developers, to enhance screen reader usability of your item, specifically when that item is associated with an error on a page. This function is called as part of rendering of the item, where the main form element(s) are output. The returned WAI-ARIA attributes include:' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_error.htm#AEAPI2252' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_error.htm#AEAPI2257 'apex_error.get_first_ora_error_text': 'prefix': 'apex_error.get_first_ora_error_text' 'body': """APEX_ERROR.GET_FIRST_ORA_ERROR_TEXT( p_error => $1 );$2""" 'description': 'This function returns the first ORA error message text stored in p_error.ora_sqlerrm. If p_error_ora_sqlerrm does not contain a value, NULL is returned.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_error.htm#AEAPI2257' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_error.htm#AEAPI2262 'apex_error.init_error_result': 'prefix': 'apex_error.init_error_result' 'body': """APEX_ERROR.INIT_ERROR_RESULT( p_error => $1 );$2""" 'description': 'This function returns the t_error_result type initialized with the values stored in p_error.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_error.htm#AEAPI2262' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_escape.htm#AEAPI29271 'apex_escape.html': 'prefix': 'apex_escape.html' 'body': """APEX_ESCAPE.HTML( p_string => $1 );$2""" 'description': 'This function escapes characters which can change the context in an html environment. It is an extended version of the well-known sys.htf.escape_sc.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_escape.htm#AEAPI29271' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_escape.htm#AEAPI29277 'apex_escape.html_attribute': 'prefix': 'apex_escape.html_attribute' 'body': """APEX_ESCAPE.HTML_ATTRIBUTE( p_string => $1 );$2""" 'description': 'Use this function to escape the values of html entity attributes. It hex escapes everything that is not alphanumeric or in one of the following characters\'\'\'\'\'\'\'\' .' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_escape.htm#AEAPI29277' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_escape.htm#AEAPI29282 'apex_escape.html_trunc': 'prefix': 'apex_escape.html_trunc' 'body': """APEX_ESCAPE.HTML_TRUNC( p_string => $1 );$2""" 'description': 'The HTML_TRUNC function escapes html and limits the returned string to p_length characters. This function returns the first p_length characters of an input clob and escapes them. You can use this function if the input clob might be too large to fit in a varchar2 variable and it is sufficient to only display the first part of it.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_escape.htm#AEAPI29282' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_escape.htm#AEAPI29287 'apex_escape.html_whitelist': 'prefix': 'apex_escape.html_whitelist' 'body': """APEX_ESCAPE.HTML_WHITELIST( p_html => $1 );$2""" 'description': 'The HTML_WHITELIST function performs HTML escape on all characters in the input text except the specified whitelist tags. This function can be useful if the input text contains simple html markup but a developer wants to ensure that an attacker cannot use malicious tags for cross-site scripting.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_escape.htm#AEAPI29287' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_escape.htm#AEAPI29292 'apex_escape.js_literal': 'prefix': 'apex_escape.js_literal' 'body': """APEX_ESCAPE.JS_LITERAL( p_string => $1 );$2""" 'description': 'The JS_LITERAL function escapes and optionally enquotes a javascript string. This function replaces non-immune characters with\\HH or\\HHHH equivalents. The result can be injected into javascript code, within <script> tags or inline ("javascript:xxx"). Immune characters include a through z, A through Z, 0 through 9, commas ",", periods "." and underscores "_".' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_escape.htm#AEAPI29292' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_escape.htm#AEAPI29608 'apex_escape.json': 'prefix': 'apex_escape.json' 'body': """APEX_ESCAPE.JSON( p_string => $1 );$2""" 'description': 'This function returns p_string with all special characters escaped.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_escape.htm#AEAPI29608' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_escape.htm#AEAPI29297 'apex_escape.ldap_dn': 'prefix': 'apex_escape.ldap_dn' 'body': """APEX_ESCAPE.LDAP_DN( p_string => $1 );$2""" 'description': 'The LDAP_DN function escapes reserved characters in an LDAP distinguished name, according to RFC 4514. The RFC describes "+,;<=\\as reserved characters (see p_reserved_chars). These are escaped by a backslash, for example, " becomes\\. Non-printable characters, ascii 0 - 31, and ones with a code > 127 (see p_escape_non_ascii) are escaped as\\x, where xx is the hexadecimal character code. The space character at the beginning or end of the string and a # at the beginning is also escaped with a backslash.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_escape.htm#AEAPI29297' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_escape.htm#AEAPI29302 'apex_escape.ldap_search_filter': 'prefix': 'apex_escape.ldap_search_filter' 'body': """APEX_ESCAPE.LDAP_SEARCH_FILTER( p_string => $1 );$2""" 'description': 'The LDAP_SEARCH_FILTER function escapes reserved characters in an LDAP search filter, according to RFC 4515. The RFC describes *(\\ as reserved characters (see p_reserved_chars). These, non-printable characters (ascii 0 - 31) and ones with a code > 127 (see p_escape_non_ascii) are escaped as\\x, where xx is the hexadecimal character code.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_escape.htm#AEAPI29302' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_escape.htm#AEAPI29307 'apex_escape.noop': 'prefix': 'apex_escape.noop' 'body': """APEX_ESCAPE.NOOP( p_string => $1 );$2""" 'description': 'Return p_string unchanged. Use this function to silence automatic injection detection tests, similar to dbms_assert.noop for SQL injection.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_escape.htm#AEAPI29307' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_escape.htm#AEAPI29615 'apex_escape.regexp': 'prefix': 'apex_escape.regexp' 'body': """APEX_ESCAPE.REGEXP( p_string => $1 );$2""" 'description': 'This function escapes characters that can change the context in a regular expression. It should be used to secure user input. The following list depicts ascii characters that the function escapes with a backslash \\:' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_escape.htm#AEAPI29615' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_escape.htm#AEAPI29312 'apex_escape.set_html_escaping_mode': 'prefix': 'apex_escape.set_html_escaping_mode' 'body': """APEX_ESCAPE.SET_HTML_ESCAPING_MODE( p_mode => $1 );$2""" 'description': 'The SET_HTML_ESCAPING_MODE procedure configures HTML escaping mode for wwv_flow_escape.html.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_escape.htm#AEAPI29312' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI250 'apex_instance_admin.add_schema': 'prefix': 'apex_instance_admin.add_schema' 'body': """APEX_INSTANCE_ADMIN.ADD_SCHEMA( p_workspace => $1, p_schema => $2 );$3""" 'description': 'The ADD_SCHEMA procedure adds a schema to a workspace to schema mapping.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI250' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI253 'apex_instance_admin.add_workspace': 'prefix': 'apex_instance_admin.add_workspace' 'body': """APEX_INSTANCE_ADMIN.ADD_WORKSPACE( p_workspace => $1, p_primary_schema => $2, p_additional_schemas => $3 );$4""" 'description': 'The ADD_WORKSPACE procedure adds a workspace to an Application Express Instance.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI253' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI30057 'apex_instance_admin.create_schema_exception': 'prefix': 'apex_instance_admin.create_schema_exception' 'body': """APEX_INSTANCE_ADMIN.CREATE_SCHEMA_EXCEPTION( p_schema => $1, p_workspace => $2 );$3""" 'description': 'This procedure creates an exception which allows assignment of a restricted schema to a specific workspace.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI30057' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI29620 'apex_instance_admin.free_workspace_app_ids': 'prefix': 'apex_instance_admin.free_workspace_app_ids' 'body': """APEX_INSTANCE_ADMIN.FREE_WORKSPACE_APP_IDS( p_workspace_id => $1 );$2""" 'description': 'This procedure removes the reservation of application IDs for a given workspace ID. Use this procedure to undo a reservation, when the reservation is not necessary anymore because it happened by mistake or the workspace no longer exists. To reserve application IDs for a given workspace, see "RESERVE_WORKSPACE_APP_IDS Procedure."' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI29620' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI247 'apex_instance_admin.get_parameter': 'prefix': 'apex_instance_admin.get_parameter' 'body': """APEX_INSTANCE_ADMIN.GET_PARAMETER( p_parameter => $1 );$2""" 'description': 'The GET_PARAMETER function retrieves the value of a parameter used in administering a runtime environment.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI247' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI249 'apex_instance_admin.get_schemas': 'prefix': 'apex_instance_admin.get_schemas' 'body': """APEX_INSTANCE_ADMIN.GET_SCHEMAS( p_workspace => $1 );$2""" 'description': 'The GET_SCHEMAS function retrieves a comma-delimited list of schemas that are mapped to a given workspace.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI249' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI30130 'apex_instance_admin.get_workspace_parameter': 'prefix': 'apex_instance_admin.get_workspace_parameter' 'body': """APEX_INSTANCE_ADMIN.GET_WORKSPACE_PARAMETER( p_workspace => $1, p_parameter => $2 );$3""" 'description': 'The GET_WORKSPACE_PARAMETER procedure gets the workspace parameter.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI30130' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI2268 'apex_instance_admin.remove_application': 'prefix': 'apex_instance_admin.remove_application' 'body': """APEX_INSTANCE_ADMIN.REMOVE_APPLICATION( p_application_id => $1 );$2""" 'description': 'The REMOVE_APPLICATION procedure removes the application specified from the Application Express instance.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI2268' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI983 'apex_instance_admin.remove_saved_report': 'prefix': 'apex_instance_admin.remove_saved_report' 'body': """APEX_INSTANCE_ADMIN.REMOVE_SAVED_REPORT( p_application_id => $1, p_report_id => $2 );$3""" 'description': 'The REMOVE_SAVED_REPORT procedure removes a specific use\'s saved interactive report settings for a particular application.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI983' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI988 'apex_instance_admin.remove_saved_reports': 'prefix': 'apex_instance_admin.remove_saved_reports' 'body': """APEX_INSTANCE_ADMIN.REMOVE_SAVED_REPORTS""" 'description': 'The REMOVE_SAVED_REPORTS procedure removes all user saved interactive report settings for a particular application or for the entire instance.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI988' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI251 'apex_instance_admin.remove_schema': 'prefix': 'apex_instance_admin.remove_schema' 'body': """APEX_INSTANCE_ADMIN.REMOVE_SCHEMA( p_workspace => $1, p_schema => $2 );$3""" 'description': 'This REMOVE_SCHEMA procedure removes a workspace to schema mapping.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI251' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI30062 'apex_instance_admin.remove_schema_exception': 'prefix': 'apex_instance_admin.remove_schema_exception' 'body': """APEX_INSTANCE_ADMIN.REMOVE_SCHEMA_EXCEPTION( p_schema => $1, p_workspace => $2 );$3""" 'description': 'This procedure removes an exception that allows the assignment of a restricted schema to a given workspace.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI30062' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI30067 'apex_instance_admin.remove_schema_exceptions': 'prefix': 'apex_instance_admin.remove_schema_exceptions' 'body': """APEX_INSTANCE_ADMIN.REMOVE_SCHEMA_EXCEPTIONS( p_schema => $1 );$2""" 'description': 'This procedure removes all exceptions that allow the assignment of a given schema to workspaces.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI30067' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI29317 'apex_instance_admin.remove_subscription': 'prefix': 'apex_instance_admin.remove_subscription' 'body': """APEX_INSTANCE_ADMIN.REMOVE_SUBSCRIPTION( p_subscription_id => $1 );$2""" 'description': 'The REMOVE_SUBSCRIPTION procedure removes a specific interactive report subscription.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI29317' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI252 'apex_instance_admin.remove_workspace': 'prefix': 'apex_instance_admin.remove_workspace' 'body': """APEX_INSTANCE_ADMIN.REMOVE_WORKSPACE( p_workspace => $1 );$2""" 'description': 'The REMOVE_WORKSPACE procedure removes a workspace from an Application Express instance.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI252' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI30072 'apex_instance_admin.remove_workspace_exceptions': 'prefix': 'apex_instance_admin.remove_workspace_exceptions' 'body': """APEX_INSTANCE_ADMIN.REMOVE_WORKSPACE_EXCEPTIONS( p_workspace => $1 );$2""" 'description': 'This procedure removes all exceptions that allow the assignment of restricted schemas to given workspace.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI30072' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI29625 'apex_instance_admin.reserve_workspace_app_ids': 'prefix': 'apex_instance_admin.reserve_workspace_app_ids' 'body': """APEX_INSTANCE_ADMIN.RESERVE_WORKSPACE_APP_IDS( p_workspace_id => $1 );$2""" 'description': 'This procedure permanently reserves the IDs of websheet and database applications in a given workspace. Even if the workspace and its applications get removed, developers can not create other applications with one of these IDs. To undo a reservation, see "FREE_WORKSPACE_APP_IDS Procedure."' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI29625' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI30077 'apex_instance_admin.restrict_schema': 'prefix': 'apex_instance_admin.restrict_schema' 'body': """APEX_INSTANCE_ADMIN.RESTRICT_SCHEMA( p_schema => $1 );$2""" 'description': 'This procedure revokes the privilege to assign a schema to workspaces.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI30077' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI29322 'apex_instance_admin.set_log_switch_interval': 'prefix': 'apex_instance_admin.set_log_switch_interval' 'body': """APEX_INSTANCE_ADMIN.SET_LOG_SWITCH_INTERVAL( p_log_name => $1, p_log_switch_after_days => $2 );$3""" 'description': 'Set the log switch interval for each of the logs maintained by Application Express.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI29322' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI246 'apex_instance_admin.set_parameter': 'prefix': 'apex_instance_admin.set_parameter' 'body': """APEX_INSTANCE_ADMIN.SET_PARAMETER( p_parameter => $1 );$2""" 'description': 'The SET_PARAMETER procedure sets a parameter used in administering a runtime environment. You must issue a commit for the parameter change to take affect.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI246' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI29327 'apex_instance_admin.set_workspace_consumer_group': 'prefix': 'apex_instance_admin.set_workspace_consumer_group' 'body': """APEX_INSTANCE_ADMIN.SET_WORKSPACE_CONSUMER_GROUP( p_workspace => $1, p_rm_consumer_group => $2 );$3""" 'description': 'The SET_WORKSPACE_CONSUMER_GROUP procedure sets a Resource Manager Consumer Group to a workspace.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI29327' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI30135 'apex_instance_admin.set_workspace_parameter': 'prefix': 'apex_instance_admin.set_workspace_parameter' 'body': """APEX_INSTANCE_ADMIN.SET_WORKSPACE_PARAMETER( p_workspace => $1, p_parameter => $2, p_value => $3 );$4""" 'description': 'The SET_WORKSPACE_PARAMETER procedure sets the designated workspace parameter.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI30135' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI29332 'apex_instance_admin.truncate_log': 'prefix': 'apex_instance_admin.truncate_log' 'body': """APEX_INSTANCE_ADMIN.TRUNCATE_LOG( p_log => $1 );$2""" 'description': 'The TRUNCATE_LOG procedure truncates the log entries specified by the input parameter.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI29332' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI30082 'apex_instance_admin.unrestrict_schema': 'prefix': 'apex_instance_admin.unrestrict_schema' 'body': """APEX_INSTANCE_ADMIN.UNRESTRICT_SCHEMA( p_schema => $1 );$2""" 'description': 'This procedure re-grants the privilege to assign a schema to workspaces, if it has been revoked before.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI30082' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ir.htm#AEAPI29339 'apex_ir.add_filter': 'prefix': 'apex_ir.add_filter' 'body': """APEX_IR.ADD_FILTER( p_page_id => $1, p_region_id => $2, p_report_column => $3, p_filter_value => $4 );$5""" 'description': 'This procedure creates a filter on an interactive report using a report ID.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ir.htm#AEAPI29339' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ir.htm#AEAPI29344 'apex_ir.add_filter2': 'prefix': 'apex_ir.add_filter2' 'body': """APEX_IR.ADD_FILTER2( p_page_id => $1, p_region_id => $2, p_report_column => $3, p_filter_value => $4 );$5""" 'description': 'This procedure creates a filter on an interactive report using a report alias.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ir.htm#AEAPI29344' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ir.htm#AEAPI29630 'apex_ir.change_report_owner': 'prefix': 'apex_ir.change_report_owner' 'body': """APEX_IR.CHANGE_REPORT_OWNER( p_report_id => $1, p_old_owner => $2, p_new_owner => $3 );$4""" 'description': 'This procedure changes the owner of a saved interactive report using a report ID. This procedure cannot change the owner of default interactive reports.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ir.htm#AEAPI29630' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ir.htm#AEAPI30140 'apex_ir.change_subscription_email': 'prefix': 'apex_ir.change_subscription_email' 'body': """APEX_IR.CHANGE_SUBSCRIPTION_EMAIL( p_subscription_id => $1, p_email_address => $2 );$3""" 'description': 'This procedure changes interactive report subscriptions email address. When an email is sent out, the subscription sends message to the defined email address.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ir.htm#AEAPI30140' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ir.htm#AEAPI30145 'apex_ir.change_subscription_email2': 'prefix': 'apex_ir.change_subscription_email2' 'body': """APEX_IR.CHANGE_SUBSCRIPTION_EMAIL2( p_subscription_id => $1, p_email_address => $2 );$3""" 'description': 'This procedure changes interactive report subscriptions email address. When an email is sent out, the subscription sends message to the defined email address.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ir.htm#AEAPI30145' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ir.htm#AEAPI29349 'apex_ir.change_subscription_lang': 'prefix': 'apex_ir.change_subscription_lang' 'body': """APEX_IR.CHANGE_SUBSCRIPTION_LANG( p_subscription_id => $1, p_language => $2 );$3""" 'description': 'This procedure changes the interactive report subscription language.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ir.htm#AEAPI29349' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ir.htm#AEAPI29354 'apex_ir.clear_report': 'prefix': 'apex_ir.clear_report' 'body': """APEX_IR.CLEAR_REPORT( p_page_id => $1, p_region_id => $2 );$3""" 'description': 'This procedure clears report settings using the report ID.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ir.htm#AEAPI29354' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ir.htm#AEAPI29359 'apex_ir.clear_report2': 'prefix': 'apex_ir.clear_report2' 'body': """APEX_IR.CLEAR_REPORT2( p_page_id => $1, p_region_id => $2 );$3""" 'description': 'This procedure clears report settings using report alias.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ir.htm#AEAPI29359' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ir.htm#AEAPI29364 'apex_ir.delete_report': 'prefix': 'apex_ir.delete_report' 'body': """APEX_IR.DELETE_REPORT( p_report_id => $1 );$2""" 'description': 'This procedure deletes saved interactive reports. It deletes a specific saved report in the current logged in workspace and application.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ir.htm#AEAPI29364' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ir.htm#AEAPI29369 'apex_ir.delete_subscription': 'prefix': 'apex_ir.delete_subscription' 'body': """APEX_IR.DELETE_SUBSCRIPTION( p_subscription_id => $1 );$2""" 'description': 'This procedure deletes interactive report subscriptions.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ir.htm#AEAPI29369' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ir.htm#AEAPI29374 'apex_ir.get_last_viewed_report_id': 'prefix': 'apex_ir.get_last_viewed_report_id' 'body': """APEX_IR.GET_LAST_VIEWED_REPORT_ID( p_page_id => $1, p_region_id => $2 );$3""" 'description': 'This function returns the last viewed base report ID of the specified page and region.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ir.htm#AEAPI29374' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ir.htm#AEAPI29379 'apex_ir.get_report': 'prefix': 'apex_ir.get_report' 'body': """APEX_IR.GET_REPORT( p_page_id => $1, p_region_id => $2 );$3""" 'description': 'This function returns an interactive report runtime query.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ir.htm#AEAPI29379' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ir.htm#AEAPI29384 'apex_ir.reset_report': 'prefix': 'apex_ir.reset_report' 'body': """APEX_IR.RESET_REPORT( p_page_id => $1, p_region_id => $2 );$3""" 'description': 'This procedure resets report settings to the developer defined default settings using the report ID.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ir.htm#AEAPI29384' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ir.htm#AEAPI29389 'apex_ir.reset_report2': 'prefix': 'apex_ir.reset_report2' 'body': """APEX_IR.RESET_REPORT2( p_page_id => $1, p_region_id => $2 );$3""" 'description': 'This procedure resets report settings using the report alias.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ir.htm#AEAPI29389' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI193 'apex_item.checkbox2': 'prefix': 'apex_item.checkbox2' 'body': """APEX_ITEM.CHECKBOX2( p_idx => $1 );$2""" 'description': 'This function creates check boxes.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI193' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI194 'apex_item.date_popup': 'prefix': 'apex_item.date_popup' 'body': """APEX_ITEM.DATE_POPUP( p_idx => $1, p_row => $2 );$3""" 'description': 'Use this function with forms that include date fields. The DATE_POPUP function dynamically generates a date field that has a popup calendar button.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI194' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI199 'apex_item.date_popup2': 'prefix': 'apex_item.date_popup2' 'body': """APEX_ITEM.DATE_POPUP2( p_idx => $1 );$2""" 'description': 'Use this function with forms that include date fields. The DATE_POPUP2 function dynamically generates a date field that has a jQuery based popup calendar with button.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI199' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI195 'apex_item.display_and_save': 'prefix': 'apex_item.display_and_save' 'body': """APEX_ITEM.DISPLAY_AND_SAVE( p_idx => $1 );$2""" 'description': 'Use this function to display an item as text, but save its value to session state.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI195' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI196 'apex_item.hidden': 'prefix': 'apex_item.hidden' 'body': """APEX_ITEM.HIDDEN( p_idx => $1 );$2""" 'description': 'This function dynamically generates hidden form items.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI196' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI197 'apex_item.md5_checksum': 'prefix': 'apex_item.md5_checksum' 'body': """APEX_ITEM.MD5_CHECKSUM""" 'description': 'Use this function for lost update detection. Lost update detection ensures data integrity in applications where data can be accessed concurrently.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI197' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI198 'apex_item.md5_hidden': 'prefix': 'apex_item.md5_hidden' 'body': """APEX_ITEM.MD5_HIDDEN( p_idx => $1 );$2""" 'description': 'Use this function for lost update detection. Lost update detection ensures data integrity in applications where data can be accessed concurrently.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI198' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI200 'apex_item.popup_from_lov': 'prefix': 'apex_item.popup_from_lov' 'body': """APEX_ITEM.POPUP_FROM_LOV( p_idx => $1, p_lov_name => $2 );$3""" 'description': 'This function generates an HTML popup select list from an application shared list of values (LOV). Like other available functions in the APEX_ITEM package, POPUP_FROM_LOV function is designed to generate forms with F01 to F50 form array elements.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI200' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI201 'apex_item.popup_from_query': 'prefix': 'apex_item.popup_from_query' 'body': """APEX_ITEM.POPUP_FROM_QUERY( p_idx => $1, p_lov_query => $2 );$3""" 'description': 'This function generates an HTML popup select list from a query. Like other available functions in the APEX_ITEM package, the POPUP_FROM_QUERY function is designed to generate forms with F01 to F50 form array elements.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI201' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI202 'apex_item.popupkey_from_lov': 'prefix': 'apex_item.popupkey_from_lov' 'body': """APEX_ITEM.POPUPKEY_FROM_LOV( p_idx => $1, p_lov_name => $2 );$3""" 'description': 'This function generates a popup key select list from a shared list of values (LOV). Similar to other available functions in the APEX_ITEM package, the POPUPKEY_FROM_LOV function is designed to generate forms with F01 to F50 form array elements.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI202' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI203 'apex_item.popupkey_from_query': 'prefix': 'apex_item.popupkey_from_query' 'body': """APEX_ITEM.POPUPKEY_FROM_QUERY( p_idx => $1, p_lov_query => $2 );$3""" 'description': 'This function generates a popup key select list from a SQL query. Similar to other available functions in the APEX_ITEM package, the POPUPKEY_FROM_QUERY function is designed to generate forms with F01 to F50 form array elements.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI203' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI204 'apex_item.radiogroup': 'prefix': 'apex_item.radiogroup' 'body': """APEX_ITEM.RADIOGROUP( p_idx => $1 );$2""" 'description': 'This function generates a radio group from a SQL query.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI204' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI205 'apex_item.select_list': 'prefix': 'apex_item.select_list' 'body': """APEX_ITEM.SELECT_LIST( p_idx => $1 );$2""" 'description': 'This function dynamically generates a static select list. Similar to other functions available in the APEX_ITEM package, these select list functions are designed to generate forms with F01 to F50 form array elements.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI205' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI206 'apex_item.select_list_from_lov': 'prefix': 'apex_item.select_list_from_lov' 'body': """APEX_ITEM.SELECT_LIST_FROM_LOV( p_idx => $1, p_lov => $2 );$3""" 'description': 'This function dynamically generates select lists from a shared list of values (LOV). Similar to other functions available in the APEX_ITEM package, these select list functions are designed to generate forms with F01 to F50 form array elements.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI206' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI207 'apex_item.select_list_from_lov_xl': 'prefix': 'apex_item.select_list_from_lov_xl' 'body': """APEX_ITEM.SELECT_LIST_FROM_LOV_XL( p_idx => $1, p_lov => $2 );$3""" 'description': 'This function dynamically generates very large select lists (greater than 32K) from a shared list of values (LOV). Similar to other functions available in the APEX_ITEM package, these select list functions are designed to generate forms with F01 to F50 form array elements. This function is the same as SELECT_LIST_FROM_LOV, but its return value is CLOB. Use this function in SQL queries where you need to handle a column value longer than 4000 characters.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI207' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI208 'apex_item.select_list_from_query': 'prefix': 'apex_item.select_list_from_query' 'body': """APEX_ITEM.SELECT_LIST_FROM_QUERY( p_idx => $1, p_query => $2 );$3""" 'description': 'This function dynamically generates a select list from a query. Similar to other functions available in the APEX_ITEM package, these select list functions are designed to generate forms with F01 to F50 form array elements.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI208' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI209 'apex_item.select_list_from_query_xl': 'prefix': 'apex_item.select_list_from_query_xl' 'body': """APEX_ITEM.SELECT_LIST_FROM_QUERY_XL( p_idx => $1, p_query => $2 );$3""" 'description': 'This function is the same as SELECT_LIST_FROM_QUERY, but its return value is a CLOB. This allows its use in SQL queries where you need to handle a column value longer than 4000 characters. Similar to other functions available in the APEX_ITEM package, these select list functions are designed to generate forms with F01 to F50 form array elements.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI209' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI211 'apex_item.text': 'prefix': 'apex_item.text' 'body': """APEX_ITEM.TEXT( p_idx => $1 );$2""" 'description': 'This function generates text fields (or text input form items) from a SQL query.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI211' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI212 'apex_item.text_from_lov': 'prefix': 'apex_item.text_from_lov' 'body': """APEX_ITEM.TEXT_FROM_LOV( p_lov => $1 );$2""" 'description': 'Use this function to display an item as text, deriving the display value of the named LOV.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI212' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI213 'apex_item.text_from_lov_query': 'prefix': 'apex_item.text_from_lov_query' 'body': """APEX_ITEM.TEXT_FROM_LOV_QUERY( p_query => $1 );$2""" 'description': 'Use this function to display an item as text, deriving the display value from a list of values query.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI213' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI210 'apex_item.textarea': 'prefix': 'apex_item.textarea' 'body': """APEX_ITEM.TEXTAREA( p_idx => $1, p_rows => $2 );$3""" 'description': 'This function creates text areas.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI210' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_javascript.htm#AEAPI29394 'apex_javascript.add_3rd_party_library_file2': 'prefix': 'apex_javascript.add_3rd_party_library_file2' 'body': """APEX_JAVASCRIPT.ADD_3RD_PARTY_LIBRARY_FILE2( p_library => $1, p_file_name => $2 );$3""" 'description': 'This procedure adds the script tag to load a 3rd party javascript library file and also takes into account the specified Content Delivery Network for the application. Supported libraries include: jQuery, jQueryUI, and jQuery Mobile.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_javascript.htm#AEAPI29394' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_javascript.htm#AEAPI1090 'apex_javascript.add_attribute': 'prefix': 'apex_javascript.add_attribute' 'body': """APEX_JAVASCRIPT.ADD_ATTRIBUTE( p_name => $1, p_value => $2, p_omit_null => $3, p_add_comma => $4 );$5""" 'description': 'This function returns the attribute and the attribut\'s escaped text surrounded by double quotation marks.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_javascript.htm#AEAPI1090' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_javascript.htm#AEAPI1095 'apex_javascript.add_attribute2': 'prefix': 'apex_javascript.add_attribute2' 'body': """APEX_JAVASCRIPT.ADD_ATTRIBUTE2( p_name => $1, p_value => $2, p_omit_null => $3, p_add_comma => $4 );$5""" 'description': 'This function returns the attribute and the attribut\'s number.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_javascript.htm#AEAPI1095' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_javascript.htm#AEAPI1100 'apex_javascript.add_attribute3': 'prefix': 'apex_javascript.add_attribute3' 'body': """APEX_JAVASCRIPT.ADD_ATTRIBUTE3( p_name => $1, p_value => $2, p_omit_null => $3, p_add_comma => $4 );$5""" 'description': 'This function returns the attribute and a JavaScript boolean of TRUE, FALSE, or NULL.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_javascript.htm#AEAPI1100' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_javascript.htm#AEAPI1105 'apex_javascript.add_attribute4': 'prefix': 'apex_javascript.add_attribute4' 'body': """APEX_JAVASCRIPT.ADD_ATTRIBUTE4( p_name => $1, p_value => $2, p_omit_null => $3, p_add_comma => $4 );$5""" 'description': 'This function returns the attribute and the attribut\'s date. If p_value is null the value null is returned.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_javascript.htm#AEAPI1105' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_javascript.htm#AEAPI1110 'apex_javascript.add_inline_code': 'prefix': 'apex_javascript.add_inline_code' 'body': """APEX_JAVASCRIPT.ADD_INLINE_CODE( p_code => $1 );$2""" 'description': 'This procedure adds a code snippet that is included inline into the HTML output. For example, you can use this procedure to add new functions or global variable declarations. If you want to execute code you should use ADD_ONLOAD_CODE Procedure.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_javascript.htm#AEAPI1110' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_javascript.htm#AEAPI1115 'apex_javascript.add_library': 'prefix': 'apex_javascript.add_library' 'body': """APEX_JAVASCRIPT.ADD_LIBRARY( p_name => $1, p_directory => $2 );$3""" 'description': 'This procedure adds the script tag to load a JavaScript library. If a library has been added, it is not added a second time.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_javascript.htm#AEAPI1115' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_javascript.htm#AEAPI1120 'apex_javascript.add_onload_code': 'prefix': 'apex_javascript.add_onload_code' 'body': """APEX_JAVASCRIPT.ADD_ONLOAD_CODE( p_code => $1 );$2""" 'description': 'This procedure adds a javascript code snippet to the HTML output which is executed by the onload event. If an entry with the same key exists it is ignored. If p_key is NULL the snippet is always added.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_javascript.htm#AEAPI1120' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_javascript.htm#AEAPI1125 'apex_javascript.add_value': 'prefix': 'apex_javascript.add_value' 'body': """APEX_JAVASCRIPT.ADD_VALUE( p_value => $1, p_add_comma => $2 );$3""" 'description': 'This function returns the escaped text surrounded by double quotation marks. For example, this string could be returned "That\'s a test".' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_javascript.htm#AEAPI1125' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_javascript.htm#AEAPI1130 'apex_javascript.add_value2': 'prefix': 'apex_javascript.add_value2' 'body': """APEX_JAVASCRIPT.ADD_VALUE2( p_value => $1, p_add_comma => $2 );$3""" 'description': 'This function returns p_value as JavaScript number, if p_value is NULL the value null is returned.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_javascript.htm#AEAPI1130' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_javascript.htm#AEAPI1135 'apex_javascript.add_value3': 'prefix': 'apex_javascript.add_value3' 'body': """APEX_JAVASCRIPT.ADD_VALUE3( p_value => $1, p_add_comma => $2 );$3""" 'description': 'This function returns p_value as JavaScript boolean. If p_value is NULL the value null is returned.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_javascript.htm#AEAPI1135' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_javascript.htm#AEAPI1140 'apex_javascript.add_value4': 'prefix': 'apex_javascript.add_value4' 'body': """APEX_JAVASCRIPT.ADD_VALUE4( p_value => $1, p_add_comma => $2 );$3""" 'description': 'This function returns p_value as JavaScript date object, if p_value is NULL the value null is returned.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_javascript.htm#AEAPI1140' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_javascript.htm#AEAPI1145 'apex_javascript.escape': 'prefix': 'apex_javascript.escape' 'body': """APEX_JAVASCRIPT.ESCAPE( p_text => $1 );$2""" 'description': 'This function escapes text to be used in JavaScript. This function makes the following replacements:' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_javascript.htm#AEAPI1145' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29646 'apex_json.close_all': 'prefix': 'apex_json.close_all' 'body': """APEX_JSON.CLOSE_ALL""" 'description': 'This procedure closes all objects and arrays up to the outermost nesting level.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29646' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29650 'apex_json.close_array': 'prefix': 'apex_json.close_array' 'body': """APEX_JSON.CLOSE_ARRAY""" 'description': 'This procedure writes a close bracket symbol as follows:' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29650' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29655 'apex_json.close_object': 'prefix': 'apex_json.close_object' 'body': """APEX_JSON.CLOSE_OBJECT""" 'description': 'This procedure writes a close curly bracket symbol as follows:' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29655' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29660 'apex_json.does_exist': 'prefix': 'apex_json.does_exist' 'body': """APEX_JSON.DOES_EXIST( p_path => $1 );$2""" 'description': 'This function determines whether the given path points to an existing value.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29660' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29667 'apex_json.find_paths_like': 'prefix': 'apex_json.find_paths_like' 'body': """APEX_JSON.FIND_PATHS_LIKE( p_return_path => $1 );$2""" 'description': 'This function returns paths into p_values that match a given pattern.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29667' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29674 'apex_json.flush': 'prefix': 'apex_json.flush' 'body': """APEX_JSON.FLUSH""" 'description': 'This procedure flushes pending changes. Note that close procedures automatically flush.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29674' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI30237 'apex_json.free_output': 'prefix': 'apex_json.free_output' 'body': """APEX_JSON.FREE_OUTPUT""" 'description': 'Frees output resources. Call this procedure after process if you are using INITIALIZE_CLOB_OUTPUT to write to a temporary CLOB.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI30237' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29678 'apex_json.get_boolean': 'prefix': 'apex_json.get_boolean' 'body': """APEX_JSON.GET_BOOLEAN( p_path => $1 );$2""" 'description': 'This function returns a boolean number value.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29678' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI30240 'apex_json.get_clob_output': 'prefix': 'apex_json.get_clob_output' 'body': """APEX_JSON.GET_CLOB_OUTPUT""" 'description': 'Returns the temporary CLOB that you created with INITIALIZE_CLOB_OUTPUT.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI30240' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29685 'apex_json.get_count': 'prefix': 'apex_json.get_count' 'body': """APEX_JSON.GET_COUNT( p_path => $1 );$2""" 'description': 'This function returns the number of array elements or object members.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29685' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29692 'apex_json.get_date': 'prefix': 'apex_json.get_date' 'body': """APEX_JSON.GET_DATE( p_path => $1 );$2""" 'description': 'This function returns a date member value.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29692' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29699 'apex_json.get_members': 'prefix': 'apex_json.get_members' 'body': """APEX_JSON.GET_MEMBERS( p_path => $1 );$2""" 'description': 'This function returns the table of OBJECT_MEMBERS names for an object.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29699' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29706 'apex_json.get_number': 'prefix': 'apex_json.get_number' 'body': """APEX_JSON.GET_NUMBER( p_path => $1 );$2""" 'description': 'This function returns a numeric number value.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29706' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29713 'apex_json.get_value': 'prefix': 'apex_json.get_value' 'body': """APEX_JSON.GET_VALUE( p_path => $1 );$2""" 'description': 'This function returns the t_value.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29713' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29720 'apex_json.get_varchar2': 'prefix': 'apex_json.get_varchar2' 'body': """APEX_JSON.GET_VARCHAR2( p_path => $1 );$2""" 'description': 'This function returns a varchar2 member value. This function converts boolean and number values to varchar2 values.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29720' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI30243 'apex_json.initialize_clob_output': 'prefix': 'apex_json.initialize_clob_output' 'body': """APEX_JSON.INITIALIZE_CLOB_OUTPUT""" 'description': 'Initialize the output interface to write to a temporary CLOB. the default is to write to SYS.HTP. If using CLOB output, you should call FREE_OUTPUT() at the end to free the CLOB.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI30243' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29727 'apex_json.initialize_output': 'prefix': 'apex_json.initialize_output' 'body': """APEX_JSON.INITIALIZE_OUTPUT""" 'description': 'This procedure initializes the output interface. You only have to call this procedure if you want to modify the parameters below. Initially, output is already configured with the defaults mentioned in the parameter table.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29727' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29732 'apex_json.open_array': 'prefix': 'apex_json.open_array' 'body': """APEX_JSON.OPEN_ARRAY""" 'description': 'This procedure writes an open bracket symbol as follows:' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29732' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29737 'apex_json.open_object': 'prefix': 'apex_json.open_object' 'body': """APEX_JSON.OPEN_OBJECT""" 'description': 'This procedure writes an open curly bracket symbol as follows:' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29737' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29742 'apex_json.parse': 'prefix': 'apex_json.parse' 'body': """APEX_JSON.PARSE( p_values => $1, p_source => $2 );$3""" 'description': 'This procedure parses a JSON-formatted varchar2 or clob and puts the members into p_values.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29742' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29747 'apex_json.parse2': 'prefix': 'apex_json.parse2' 'body': """APEX_JSON.PARSE2( p_source => $1 );$2""" 'description': 'This procedure parses a JSON-formatted varchar2 or clob and puts the members into the package global g_values. This simplified API works similar to the parse() procedure for signature 1, but saves the developer from declaring a local variable for parsed JSON data and passing it to each JSON API call.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29747' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29752 'apex_json.stringify': 'prefix': 'apex_json.stringify' 'body': """APEX_JSON.STRINGIFY( p_value => $1 );$2""" 'description': 'This function converts a string to an escaped JSON value.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29752' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29759 'apex_json.stringify2': 'prefix': 'apex_json.stringify2' 'body': """APEX_JSON.STRINGIFY2( p_value => $1 );$2""" 'description': 'This function converts a number to an escaped JSON value.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29759' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29766 'apex_json.stringify3': 'prefix': 'apex_json.stringify3' 'body': """APEX_JSON.STRINGIFY3( p_value => $1 );$2""" 'description': 'This function converts a date to an escaped JSON value.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29766' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29773 'apex_json.stringify4': 'prefix': 'apex_json.stringify4' 'body': """APEX_JSON.STRINGIFY4( p_value => $1 );$2""" 'description': 'This function converts a boolean value to an escaped JSON value.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29773' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29780 'apex_json.to_xmltype': 'prefix': 'apex_json.to_xmltype' 'body': """APEX_JSON.TO_XMLTYPE( p_value => $1 );$2""" 'description': 'This procedure parses a JSON-formatted varchar2 or CLOB and converts it to an xmltype.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29780' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29787 'apex_json.write': 'prefix': 'apex_json.write' 'body': """APEX_JSON.WRITE( p_value => $1 );$2""" 'description': 'This procedure writes an array attribute of type VARCHAR2.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29787' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29832 'apex_json.write10': 'prefix': 'apex_json.write10' 'body': """APEX_JSON.WRITE10( p_name => $1, p_value => $2 );$3""" 'description': 'This procedure writes an object attribute of type NUMBER.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29832' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29837 'apex_json.write11': 'prefix': 'apex_json.write11' 'body': """APEX_JSON.WRITE11( p_name => $1, p_value => $2 );$3""" 'description': 'This procedure writes an object attribute of type date.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29837' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29842 'apex_json.write12': 'prefix': 'apex_json.write12' 'body': """APEX_JSON.WRITE12( p_name => $1, p_value => $2 );$3""" 'description': 'This procedure writes an object attribute of type boolean.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29842' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29847 'apex_json.write13': 'prefix': 'apex_json.write13' 'body': """APEX_JSON.WRITE13( p_name => $1, p_cursor => $2 );$3""" 'description': 'This procedure writes an attribute where the value is an array that contains all rows that the cursor returns. Each row is a separate object.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29847' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29852 'apex_json.write14': 'prefix': 'apex_json.write14' 'body': """APEX_JSON.WRITE14( p_name => $1, p_value => $2 );$3""" 'description': 'This procedure writes an array attribute of type sys.xmltype. The procedure uses a XSL transformation to generate JSON. To determine the JSON type of values, it uses the following rules:' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29852' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29857 'apex_json.write15': 'prefix': 'apex_json.write15' 'body': """APEX_JSON.WRITE15( p_values => $1 );$2""" 'description': 'This procedure writes parts of a parsed APEX_JSON.t_values table.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29857' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29862 'apex_json.write16': 'prefix': 'apex_json.write16' 'body': """APEX_JSON.WRITE16( p_name => $1, p_values => $2 );$3""" 'description': 'This procedure writes parts of a parsed APEX_JSON.t_values table as an object member attribute.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29862' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29792 'apex_json.write2': 'prefix': 'apex_json.write2' 'body': """APEX_JSON.WRITE2( p_value => $1 );$2""" 'description': 'This procedure writes an array attribute. of type clob.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29792' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29797 'apex_json.write3': 'prefix': 'apex_json.write3' 'body': """APEX_JSON.WRITE3( p_value => $1 );$2""" 'description': 'This procedure writes an array attribute of type NUMBER.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29797' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29802 'apex_json.write4': 'prefix': 'apex_json.write4' 'body': """APEX_JSON.WRITE4( p_value => $1 );$2""" 'description': 'This procedure writes an array attribute. of type date' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29802' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29807 'apex_json.write5': 'prefix': 'apex_json.write5' 'body': """APEX_JSON.WRITE5( p_value => $1 );$2""" 'description': 'This procedure writes an array attribute of type boolean.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29807' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29812 'apex_json.write6': 'prefix': 'apex_json.write6' 'body': """APEX_JSON.WRITE6( p_value => $1 );$2""" 'description': 'This procedure writes an array attribute of type sys.xmltype. The procedure uses a XSL transformation to generate JSON. To determine the JSON type of values, it uses the following rules:' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29812' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29817 'apex_json.write7': 'prefix': 'apex_json.write7' 'body': """APEX_JSON.WRITE7( p_cursor => $1 );$2""" 'description': 'This procedure writes an array with all rows that the cursor returns. Each row is a separate object. If the query contains object type, collection, or cursor columns, the procedure uses write(xmltype) to generate JSON. Otherwise, it uses DBMS_SQL to fetch rows and the write() procedures for the appropriate column data types for output. If the column type is varchar2 and the uppercase value is\'TRU\' or\'FALS\', it generates boolean values.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29817' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29822 'apex_json.write8': 'prefix': 'apex_json.write8' 'body': """APEX_JSON.WRITE8( p_name => $1, p_value => $2 );$3""" 'description': 'This procedure writes an object attribute of type VARCHAR2.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29822' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29827 'apex_json.write9': 'prefix': 'apex_json.write9' 'body': """APEX_JSON.WRITE9( p_name => $1, p_value => $2 );$3""" 'description': 'This procedure writes an object attribute of type CLOB.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29827' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_lang.htm#AEAPI29547 'apex_lang.create_language_mapping': 'prefix': 'apex_lang.create_language_mapping' 'body': """APEX_LANG.CREATE_LANGUAGE_MAPPING( p_application_id => $1, p_language => $2, p_translation_application_id => $3 );$4""" 'description': 'Use this procedure to create the language mapping for the translation of an application. Translated applications are published as new applications, but are not directly editable in the Application Builder.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_lang.htm#AEAPI29547' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_lang.htm#AEAPI29552 'apex_lang.delete_language_mapping': 'prefix': 'apex_lang.delete_language_mapping' 'body': """APEX_LANG.DELETE_LANGUAGE_MAPPING( p_application_id => $1, p_language => $2 );$3""" 'description': 'Use this procedure to delete the language mapping for the translation of an application. This procedure deletes all translated strings in the translation repository for the specified language and mapping. Translated applications are published as new applications, but are not directly editable in the Application Builder.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_lang.htm#AEAPI29552' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_lang.htm#AEAPI1151 'apex_lang.lang': 'prefix': 'apex_lang.lang' 'body': """APEX_LANG.LANG""" 'description': 'Use this function to return a translated text string for translations defined in dynamic translations.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_lang.htm#AEAPI1151' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_lang.htm#AEAPI1156 'apex_lang.message': 'prefix': 'apex_lang.message' 'body': """APEX_LANG.MESSAGE""" 'description': 'Use this function to translate text strings (or messages) generated from PL/SQL stored procedures, functions, triggers, packaged procedures, and functions.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_lang.htm#AEAPI1156' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_lang.htm#AEAPI29557 'apex_lang.publish_application': 'prefix': 'apex_lang.publish_application' 'body': """APEX_LANG.PUBLISH_APPLICATION( p_application_id => $1, p_language => $2 );$3""" 'description': 'Use this procedure to publish the translated version of an application. This procedure creates an underlying, hidden replica of the primary application and merges the strings from the translation repository in this new application. Perform a seed and publish process each time you want to update the translated version of your application and synchronize it with the primary application.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_lang.htm#AEAPI29557' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_lang.htm#AEAPI29562 'apex_lang.seed_translations': 'prefix': 'apex_lang.seed_translations' 'body': """APEX_LANG.SEED_TRANSLATIONS( p_application_id => $1, p_language => $2 );$3""" 'description': 'Use this procedure to seed the translation repository for the specified application and language. This procedure populates the translation repository with all of the new, updated and removed translatable strings from your application. Perform a seed and publish process each time you want to update the translated version of your application and synchronize it with the primary application.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_lang.htm#AEAPI29562' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_lang.htm#AEAPI29567 'apex_lang.update_language_mapping': 'prefix': 'apex_lang.update_language_mapping' 'body': """APEX_LANG.UPDATE_LANGUAGE_MAPPING( p_application_id => $1, p_language => $2, p_new_trans_application_id => $3 );$4""" 'description': 'Use this procedure to update the language mapping for the translation of an application. Translated applications are published as new applications, but are not directly editable in the Application Builder.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_lang.htm#AEAPI29567' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_lang.htm#AEAPI29572 'apex_lang.update_message': 'prefix': 'apex_lang.update_message' 'body': """APEX_LANG.UPDATE_MESSAGE( p_id => $1, p_message_text => $2 );$3""" 'description': 'Use this procedure to update a translatable text message for the specified application.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_lang.htm#AEAPI29572' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_lang.htm#AEAPI29577 'apex_lang.update_translated_string': 'prefix': 'apex_lang.update_translated_string' 'body': """APEX_LANG.UPDATE_TRANSLATED_STRING( p_id => $1, p_language => $2, p_string => $3 );$4""" 'description': 'Use this procedure to update a translated string in the seeded translation repository.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_lang.htm#AEAPI29577' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ldap.htm#AEAPI239 'apex_ldap.authenticate': 'prefix': 'apex_ldap.authenticate' 'body': """APEX_LDAP.AUTHENTICATE( p_search_base => $1, p_host => $2 );$3""" 'description': 'The AUTHENTICATE function returns a boolean TRUE if the user name and password can be used to perform a SIMPLE_BIND_S, call using the provided search base, host, and port.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ldap.htm#AEAPI239' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ldap.htm#AEAPI244 'apex_ldap.get_all_user_attributes': 'prefix': 'apex_ldap.get_all_user_attributes' 'body': """APEX_LDAP.GET_ALL_USER_ATTRIBUTES( p_host => $1, p_attributes => $2, p_attribute_values => $3 );$4""" 'description': 'The GET_ALL_USER_ATTRIBUTES procedure returns two OUT arrays of user_attribute names and values for the user name designated by p_username (with password if required) using the provided auth base, host, and port.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ldap.htm#AEAPI244' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ldap.htm#AEAPI243 'apex_ldap.get_user_attributes': 'prefix': 'apex_ldap.get_user_attributes' 'body': """APEX_LDAP.GET_USER_ATTRIBUTES( p_auth_base => $1, p_host => $2, p_attributes => $3, p_attribute_values => $4 );$5""" 'description': 'The GET_USER_ATTRIBUTES procedure returns an OUT array of user_attribute values for the user name designated by p_username (with password if required) corresponding to the attribute names passed in p_attributes using the provided auth base, host, and port.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ldap.htm#AEAPI243' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ldap.htm#AEAPI240 'apex_ldap.is_member': 'prefix': 'apex_ldap.is_member' 'body': """APEX_LDAP.IS_MEMBER( p_username => $1, p_auth_base => $2, p_host => $3, p_group => $4, p_group_base => $5 );$6""" 'description': 'The IS_MEMBER function returns a boolean TRUE if the user named by p_username (with password if required) is a member of the group specified by the p_group and p_group_base parameters using the provided auth base, host, and port.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ldap.htm#AEAPI240' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ldap.htm#AEAPI241 'apex_ldap.member_of': 'prefix': 'apex_ldap.member_of' 'body': """APEX_LDAP.MEMBER_OF( p_auth_base => $1, p_host => $2 );$3""" 'description': 'The MEMBER_OF function returns an array of groups the user name designated by p_username (with password if required) belongs to, using the provided auth base, host, and port.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ldap.htm#AEAPI241' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ldap.htm#AEAPI242 'apex_ldap.member_of2': 'prefix': 'apex_ldap.member_of2' 'body': """APEX_LDAP.MEMBER_OF2( p_auth_base => $1, p_host => $2 );$3""" 'description': 'The MEMBER_OF2 function returns a VARCHAR2 colon delimited list of groups the user name designated by p_username (with password if required) belongs to, using the provided auth base, host, and port.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ldap.htm#AEAPI242' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ldap.htm#AEAPI30150 'apex_ldap.search': 'prefix': 'apex_ldap.search' 'body': """APEX_LDAP.SEARCH( p_host => $1, p_search_base => $2, p_search_filter => $3, p_attribute_names => $4 );$5""" 'description': 'The APEX_LDAP.SEARCH function searches the LDAP repository. The result is an object table of (dn, name, val) that can be used in table queries.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ldap.htm#AEAPI30150' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_mail.htm#AEAPI343 'apex_mail.add_attachment': 'prefix': 'apex_mail.add_attachment' 'body': """APEX_MAIL.ADD_ATTACHMENT( p_mail_id => $1, p_attachment => $2, p_filename => $3, p_mime_type => $4 );$5""" 'description': 'This procedure sends an outbound email message from an application as an attachment. To add multiple attachments to a single email, APEX_MAIL.ADD_ATTACHMENT can be called repeatedly for a single email message.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_mail.htm#AEAPI343' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_mail.htm#AEAPI29582 'apex_mail.get_images_url': 'prefix': 'apex_mail.get_images_url' 'body': """APEX_MAIL.GET_IMAGES_URL""" 'description': 'Use this function to get the image prefixed URL, if the email includes Application Express instance images.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_mail.htm#AEAPI29582' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_mail.htm#AEAPI29399 'apex_mail.get_instance_url': 'prefix': 'apex_mail.get_instance_url' 'body': """APEX_MAIL.GET_INSTANCE_URL""" 'description': 'If an email includes a link to an Application Express instance, use this function to get the instance URL.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_mail.htm#AEAPI29399' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_mail.htm#AEAPI344 'apex_mail.push_queue': 'prefix': 'apex_mail.push_queue' 'body': """APEX_MAIL.PUSH_QUEUE""" 'description': 'Oracle Application Express stores unsent email messages in a table named APEX_MAIL_QUEUE. You can manually deliver mail messages stored in this queue to the specified SMTP gateway by invoking the APEX_MAIL.PUSH_QUEUE procedure.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_mail.htm#AEAPI344' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_mail.htm#AEAPI342 'apex_mail.send': 'prefix': 'apex_mail.send' 'body': """APEX_MAIL.SEND( p_to => $1, p_from => $2, p_body => $3, p_replyto => $4 );$5""" 'description': 'This procedure sends an outbound email message from an application. Although you can use this procedure to pass in either a VARCHAR2 or a CLOB to p_body and p_body_html, the data types must be the same. In other words, you cannot pass a CLOB to P_BODY and a VARCHAR2 to p_body_html.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_mail.htm#AEAPI342' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_page.htm#AEAPI30181 'apex_page.get_page_mode': 'prefix': 'apex_page.get_page_mode' 'body': """APEX_PAGE.GET_PAGE_MODE( p_application_id => $1, p_page_id => $2 );$3""" 'description': 'This function returns the page mode for the current page.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_page.htm#AEAPI30181' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_page.htm#AEAPI30177 'apex_page.get_ui_type': 'prefix': 'apex_page.get_ui_type' 'body': """APEX_PAGE.GET_UI_TYPE""" 'description': 'This function returns the user interface (UI) type for which the current page has been designed.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_page.htm#AEAPI30177' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_page.htm#AEAPI30190 'apex_page.get_url': 'prefix': 'apex_page.get_url' 'body': """APEX_PAGE.GET_URL""" 'description': 'This function returns an Oracle Application Express f?p= URL. It is sometimes clearer to read a function call than a concatenated URL. See the example below for a comparison.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_page.htm#AEAPI30190' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_page.htm#AEAPI30171 'apex_page.is_desktop_ui': 'prefix': 'apex_page.is_desktop_ui' 'body': """APEX_PAGE.IS_DESKTOP_UI""" 'description': 'This function returns TRUE if the current page has been designed for desktop browsers.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_page.htm#AEAPI30171' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_page.htm#AEAPI30173 'apex_page.is_jqm_smartphone_ui': 'prefix': 'apex_page.is_jqm_smartphone_ui' 'body': """APEX_PAGE.IS_JQM_SMARTPHONE_UI""" 'description': 'This function returns TRUE if the current page has been designed for smartphone devices using jQuery Mobile.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_page.htm#AEAPI30173' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_page.htm#AEAPI30175 'apex_page.is_jqm_tablet_ui': 'prefix': 'apex_page.is_jqm_tablet_ui' 'body': """APEX_PAGE.IS_JQM_TABLET_UI""" 'description': 'This function returns TRUE if the current page has been designed for tablet devices using jQuery Mobile.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_page.htm#AEAPI30175' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_page.htm#AEAPI30179 'apex_page.is_read_only': 'prefix': 'apex_page.is_read_only' 'body': """APEX_PAGE.IS_READ_ONLY""" 'description': 'This function returns TRUE if the current page is rendered read-only and FALSE if it is not.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_page.htm#AEAPI30179' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_page.htm#AEAPI30185 'apex_page.purge_cache': 'prefix': 'apex_page.purge_cache' 'body': """APEX_PAGE.PURGE_CACHE""" 'description': 'This procedure purges the cache of the specified application, page, and region for the specified user. If the user is not specified, the procedure purges all cached versions of the page.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_page.htm#AEAPI30185' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin.htm#AEAPI1250 'apex_plugin.get_ajax_identifier': 'prefix': 'apex_plugin.get_ajax_identifier' 'body': """APEX_PLUGIN.GET_AJAX_IDENTIFIER""" 'description': 'This function returns the Ajax identifier used to call the Ajax callback function defined for the plug-in.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin.htm#AEAPI1250' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin.htm#AEAPI1254 'apex_plugin.get_input_name_for_page_item': 'prefix': 'apex_plugin.get_input_name_for_page_item' 'body': """APEX_PLUGIN.GET_INPUT_NAME_FOR_PAGE_ITEM( p_is_multi_value => $1 );$2""" 'description': 'Use this function when you want to render an HTML input element in the rendering function of an item type plug-in.For the HTML input element, for example, <input type="text" id="P1_TEST" name="xxx">, you have to provide a value for the name attribute so that Oracle Application Express can map the submitted value to the actual page item in session state. This function returns the mapping name for your page item. If the HTML input element has multiple values, such as a select list with multiple="multiple", then set p_is_multi_value to TRUE.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin.htm#AEAPI1254' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1259 'apex_plugin_util.debug_dynamic_action': 'prefix': 'apex_plugin_util.debug_dynamic_action' 'body': """APEX_PLUGIN_UTIL.DEBUG_DYNAMIC_ACTION( p_plugin => $1, p_dynamic_action => $2 );$3""" 'description': 'This procedure writes the data of the dynamic action meta data to the debug output if debugging is enabled.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1259' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1264 'apex_plugin_util.debug_page_item': 'prefix': 'apex_plugin_util.debug_page_item' 'body': """APEX_PLUGIN_UTIL.DEBUG_PAGE_ITEM( p_plugin => $1, p_page_item => $2 );$3""" 'description': 'This procedure writes the data of the page item meta data to the debug output if debugging is enabled.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1264' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1269 'apex_plugin_util.debug_page_item2': 'prefix': 'apex_plugin_util.debug_page_item2' 'body': """APEX_PLUGIN_UTIL.DEBUG_PAGE_ITEM2( p_plugin => $1, p_page_item => $2, p_value => $3, p_is_readonly => $4, p_is_printer_friendly => $5 );$6""" 'description': 'This procedure writes the data of the page item meta data to the debug output if debugging is enabled.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1269' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1274 'apex_plugin_util.debug_process': 'prefix': 'apex_plugin_util.debug_process' 'body': """APEX_PLUGIN_UTIL.DEBUG_PROCESS( p_plugin => $1, p_process => $2 );$3""" 'description': 'This procedure writes the data of the process meta data to the debug output if debugging is enabled.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1274' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1279 'apex_plugin_util.debug_region': 'prefix': 'apex_plugin_util.debug_region' 'body': """APEX_PLUGIN_UTIL.DEBUG_REGION( p_plugin => $1, p_region => $2 );$3""" 'description': 'This procedure writes the data of the region meta data to the debug output if debugging is enabled.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1279' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1284 'apex_plugin_util.debug_region2': 'prefix': 'apex_plugin_util.debug_region2' 'body': """APEX_PLUGIN_UTIL.DEBUG_REGION2( p_plugin => $1, p_region => $2, p_is_printer_friendly => $3 );$4""" 'description': 'This procedure writes the data of the region meta data to the debug output if debugging is enabled. This is the advanced version of the debugging procedure which is used for the rendering function of a region plug-in.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1284' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1289 'apex_plugin_util.escape': 'prefix': 'apex_plugin_util.escape' 'body': """APEX_PLUGIN_UTIL.ESCAPE( p_value => $1, p_escape => $2 );$3""" 'description': 'This function is used if you have checked the standard attribute "Has Escape Output Attribute" option for your item type plug-in which allows a developer to decide if the output should be escaped or not.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1289' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1294 'apex_plugin_util.execute_plsql_code': 'prefix': 'apex_plugin_util.execute_plsql_code' 'body': """APEX_PLUGIN_UTIL.EXECUTE_PLSQL_CODE( p_plsql_code => $1 );$2""" 'description': 'This procedure executes a PL/SQL code block and performs binding of bind variables in the provided PL/SQL code. This procedure is usually used for plug-in attributes of type PL/SQL Code.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1294' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI29869 'apex_plugin_util.get_attribute_as_number': 'prefix': 'apex_plugin_util.get_attribute_as_number' 'body': """APEX_PLUGIN_UTIL.GET_ATTRIBUTE_AS_NUMBER( p_value => $1, p_attribute_label => $2 );$3""" 'description': 'This function returns the value of a plug-in attribute as a number, taking into account NLS decimal separator effective for the current database session. Use this function in plug-in PL/SQL source for custom attributes of type NUMBER instead of the built-in to_number function.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI29869' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI2163 'apex_plugin_util.get_data': 'prefix': 'apex_plugin_util.get_data' 'body': """APEX_PLUGIN_UTIL.GET_DATA( p_sql_statement => $1, p_min_columns => $2, p_max_columns => $3, p_component_name => $4 );$5""" 'description': 'Executes the specified SQL query restricted by the provided search string (optional) and returns the values for each column. All column values are returned as a string, independent of their data types. The search column is identified by providing a column number in the p_search_column_no parameter. This function takes into account character value comparison globalization attributes defined for the application.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI2163' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI2168 'apex_plugin_util.get_data2': 'prefix': 'apex_plugin_util.get_data2' 'body': """APEX_PLUGIN_UTIL.GET_DATA2( p_sql_statement => $1, p_min_columns => $2, p_max_columns => $3, p_component_name => $4 );$5""" 'description': 'Executes the specified SQL query restricted by the provided search string (optional) and returns the values for each column. All column values are returned along with their original data types. The search column is identified by providing a column number in the p_search_column_no parameter. This function takes into account character value comparison globalization attributes defines for the application.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI2168' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI29403 'apex_plugin_util.get_data2': 'prefix': 'apex_plugin_util.get_data2' 'body': """APEX_PLUGIN_UTIL.GET_DATA2( p_sql_statement => $1, p_min_columns => $2, p_max_columns => $3, p_component_name => $4 );$5""" 'description': 'Executes the specified SQL query restricted by the provided search string (optional) and returns the values for each column. All column values are returned as a string, independent of their data types. The search column is identified by providing a column name in the p_search_column_name parameter. This function takes into account character value comparison globalization attributes defined for the application.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI29403' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI29410 'apex_plugin_util.get_data22': 'prefix': 'apex_plugin_util.get_data22' 'body': """APEX_PLUGIN_UTIL.GET_DATA22( p_sql_statement => $1, p_min_columns => $2, p_max_columns => $3, p_component_name => $4 );$5""" 'description': 'Executes the specified SQL query restricted by the provided search string (optional) and returns the values for each column. All column values are returned along with their original data types. The search column is identified by providing a column number in the p_search_column_no parameter. This function takes into account character value comparison globalization attributes defines for the application.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI29410' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1299 'apex_plugin_util.get_display_data': 'prefix': 'apex_plugin_util.get_display_data' 'body': """APEX_PLUGIN_UTIL.GET_DISPLAY_DATA( p_sql_statement => $1, p_min_columns => $2, p_max_columns => $3, p_component_name => $4 );$5""" 'description': 'This function gets the display lookup value for the value specified in p_search_string.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1299' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1306 'apex_plugin_util.get_display_data2': 'prefix': 'apex_plugin_util.get_display_data2' 'body': """APEX_PLUGIN_UTIL.GET_DISPLAY_DATA2( p_sql_statement => $1, p_min_columns => $2, p_max_columns => $3, p_component_name => $4, p_search_value_list => $5 );$6""" 'description': 'This function looks up all the values provided in the p_search_value_list instead of just a single value lookup.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1306' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI29417 'apex_plugin_util.get_element_attributes': 'prefix': 'apex_plugin_util.get_element_attributes' 'body': """APEX_PLUGIN_UTIL.GET_ELEMENT_ATTRIBUTES( p_item => $1 );$2""" 'description': 'This function returns some of the standard attributes of an HTML element (for example, id, name, required, placeholder, aria-error-attributes, class) which is used if a HTML input/select/textarea/... tag is generated to get a consistent set of attributes.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI29417' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1313 'apex_plugin_util.get_plsql_expression_result': 'prefix': 'apex_plugin_util.get_plsql_expression_result' 'body': """APEX_PLUGIN_UTIL.GET_PLSQL_EXPRESSION_RESULT( p_plsql_expression => $1 );$2""" 'description': 'This function executes a PL/SQL expression and returns a result. This function also performs the binding of any bind variables in the provided PL/SQL expression. This function is usually used for plug-in attributes of type PL/SQL Expression.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1313' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1320 'apex_plugin_util.get_plsql_function_result': 'prefix': 'apex_plugin_util.get_plsql_function_result' 'body': """APEX_PLUGIN_UTIL.GET_PLSQL_FUNCTION_RESULT( p_plsql_function => $1 );$2""" 'description': 'This function executes a PL/SQL function block and returns the result. This function also performs binding of bind variables in the provided PL/SQL Function Body. This function is usually used for plug-in attributes of type PL/SQL Function Body.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1320' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1327 'apex_plugin_util.get_position_in_list': 'prefix': 'apex_plugin_util.get_position_in_list' 'body': """APEX_PLUGIN_UTIL.GET_POSITION_IN_LIST( p_list => $1, p_value => $2 );$3""" 'description': 'This function returns the position in the list where p_value is stored. If it is not found, null is returned.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1327' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1334 'apex_plugin_util.get_search_string': 'prefix': 'apex_plugin_util.get_search_string' 'body': """APEX_PLUGIN_UTIL.GET_SEARCH_STRING( p_search_type => $1, p_search_string => $2 );$3""" 'description': 'Based on the provided value in p_search_type the passed in value of p_search_string is returned unchanged or is converted to uppercase. Use this function with the p_search_string parameter of get_data and get_data2.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1334' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1341 'apex_plugin_util.is_equal': 'prefix': 'apex_plugin_util.is_equal' 'body': """APEX_PLUGIN_UTIL.IS_EQUAL( p_value1 => $1, p_value2 => $2 );$3""" 'description': 'This function returns TRUE if both values are equal and FALSE if not. If both values are NULL, TRUE is returned.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1341' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1348 'apex_plugin_util.page_item_names_to_jquery': 'prefix': 'apex_plugin_util.page_item_names_to_jquery' 'body': """APEX_PLUGIN_UTIL.PAGE_ITEM_NAMES_TO_JQUERY( p_page_item_names => $1 );$2""" 'description': 'This function returns a jQuery selector based on a comma delimited string of page item names. For example, you could use this function for a plug-in attribute called "Page Items to Submit" where the JavaScript code has to read the values of the specified page items.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1348' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1355 'apex_plugin_util.print_display_only': 'prefix': 'apex_plugin_util.print_display_only' 'body': """APEX_PLUGIN_UTIL.PRINT_DISPLAY_ONLY( p_item_name => $1, p_display_value => $2, p_show_line_breaks => $3, p_attributes => $4 );$5""" 'description': 'This procedure outputs a SPAN tag for a display only field.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1355' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1360 'apex_plugin_util.print_escaped_value': 'prefix': 'apex_plugin_util.print_escaped_value' 'body': """APEX_PLUGIN_UTIL.PRINT_ESCAPED_VALUE( p_value => $1 );$2""" 'description': 'This procedure outputs the value in an escaped form and chunks big strings into smaller outputs.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1360' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1365 'apex_plugin_util.print_hidden_if_read_only': 'prefix': 'apex_plugin_util.print_hidden_if_read_only' 'body': """APEX_PLUGIN_UTIL.PRINT_HIDDEN_IF_READ_ONLY( p_item_name => $1, p_value => $2, p_is_readonly => $3, p_is_printer_friendly => $4 );$5""" 'description': 'This procedure outputs a hidden field to store the page item value if the page item is rendered as readonly and is not printer friendly. If this procedure is called in an item type plug-in, the parameters of the plug-in interface should directly be passed in.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1365' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1370 'apex_plugin_util.print_json_http_header': 'prefix': 'apex_plugin_util.print_json_http_header' 'body': """APEX_PLUGIN_UTIL.PRINT_JSON_HTTP_HEADER""" 'description': 'This procedure outputs a standard HTTP header for a JSON output.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1370' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1374 'apex_plugin_util.print_lov_as_json': 'prefix': 'apex_plugin_util.print_lov_as_json' 'body': """APEX_PLUGIN_UTIL.PRINT_LOV_AS_JSON( p_sql_statement => $1, p_component_name => $2, p_escape => $3 );$4""" 'description': 'This procedure outputs a JSON response based on the result of a two column LOV in the format:' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1374' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1379 'apex_plugin_util.print_option': 'prefix': 'apex_plugin_util.print_option' 'body': """APEX_PLUGIN_UTIL.PRINT_OPTION( p_display_value => $1, p_return_value => $2, p_is_selected => $3, p_attributes => $4 );$5""" 'description': 'This procedure outputs an OPTION tag.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1379' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI2289 'apex_plugin_util.replace_substitutions': 'prefix': 'apex_plugin_util.replace_substitutions' 'body': """APEX_PLUGIN_UTIL.REPLACE_SUBSTITUTIONS( p_value => $1 );$2""" 'description': 'This function replaces any &ITEM. substitution references with their actual value. If p_escape is set to TRUE, any special characters contained in the value of the referenced item are escaped to prevent Cross-site scripting (XSS) attacks.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI2289' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_region.htm#AEAPI30197 'apex_region.is_read_only2': 'prefix': 'apex_region.is_read_only2' 'body': """APEX_REGION.IS_READ_ONLY2""" 'description': 'This function returns TRUE if the current region is rendered read-only and FALSE if region is not rendered read-only. If the function is called from a context where no region is currently processed, it returns NULL. For example, you can use this function in conditions of a region or its underlying items and buttons.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_region.htm#AEAPI30197' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_region.htm#AEAPI30201 'apex_region.purge_cache2': 'prefix': 'apex_region.purge_cache2' 'body': """APEX_REGION.PURGE_CACHE2""" 'description': 'This procedure purges the region cache of the specified application, page, and region.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_region.htm#AEAPI30201' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_spatial.htm#AEAPI30206 'apex_spatial.change_geom_metadata': 'prefix': 'apex_spatial.change_geom_metadata' 'body': """APEX_SPATIAL.CHANGE_GEOM_METADATA( p_table_name => $1, p_column_name => $2, p_diminfo => $3, p_srid => $4 );$5""" 'description': 'This procedure modifies a spatial metadata record.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_spatial.htm#AEAPI30206' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_spatial.htm#AEAPI29884 'apex_spatial.circle_polygon': 'prefix': 'apex_spatial.circle_polygon' 'body': """APEX_SPATIAL.CIRCLE_POLYGON( p_lon => $1, p_lat => $2, p_radius => $3 );$4""" 'description': 'This function creates a polygon that approximates a circle at (p_lon, p_lat) with radius of p_radius. See mdsys.sdo_util.circle_polygon for details.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_spatial.htm#AEAPI29884' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_spatial.htm#AEAPI29891 'apex_spatial.delete_geom_metadata': 'prefix': 'apex_spatial.delete_geom_metadata' 'body': """APEX_SPATIAL.DELETE_GEOM_METADATA( p_table_name => $1, p_column_name => $2 );$3""" 'description': 'This procedure deletes a spatial metadata record.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_spatial.htm#AEAPI29891' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_spatial.htm#AEAPI29896 'apex_spatial.insert_geom_metadata': 'prefix': 'apex_spatial.insert_geom_metadata' 'body': """APEX_SPATIAL.INSERT_GEOM_METADATA( p_table_name => $1, p_column_name => $2, p_diminfo => $3, p_srid => $4 );$5""" 'description': 'This procedure inserts a spatial metadata record and optionally creates a spatial index.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_spatial.htm#AEAPI29896' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_spatial.htm#AEAPI29901 'apex_spatial.insert_geom_metadata_lonlat': 'prefix': 'apex_spatial.insert_geom_metadata_lonlat' 'body': """APEX_SPATIAL.INSERT_GEOM_METADATA_LONLAT( p_table_name => $1, p_column_name => $2 );$3""" 'description': 'This procedure inserts a spatial metadata record that is suitable for longitude/latitude and optionally creates a spatial index.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_spatial.htm#AEAPI29901' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_spatial.htm#AEAPI29906 'apex_spatial.point': 'prefix': 'apex_spatial.point' 'body': """APEX_SPATIAL.POINT( p_lon => $1, p_lat => $2 );$3""" 'description': 'This function creates a point at (p_lon, p_lat).' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_spatial.htm#AEAPI29906' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_spatial.htm#AEAPI29913 'apex_spatial.rectangle': 'prefix': 'apex_spatial.rectangle' 'body': """APEX_SPATIAL.RECTANGLE( p_lon1 => $1, p_lat1 => $2, p_lon2 => $3, p_lat2 => $4 );$5""" 'description': 'This function creates a rectangle from point at (p_lon1, p_lat1) to (p_lon2, p_lat2).' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_spatial.htm#AEAPI29913' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI400 'apex_ui_default_update.add_ad_column': 'prefix': 'apex_ui_default_update.add_ad_column' 'body': """APEX_UI_DEFAULT_UPDATE.ADD_AD_COLUMN( p_column_name => $1 );$2""" 'description': 'Adds a User Interface Default Attribute Dictionary entry with the provided definition. Up to three synonyms can be provided during the creation. Additional synonyms can be added post-creation using apex_ui_default_update.add_ad_synonym. Synonyms share the column definition of their base column.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI400' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI401 'apex_ui_default_update.add_ad_synonym': 'prefix': 'apex_ui_default_update.add_ad_synonym' 'body': """APEX_UI_DEFAULT_UPDATE.ADD_AD_SYNONYM( p_column_name => $1, p_syn_name => $2 );$3""" 'description': 'If the column name is found within the User Interface Default Attribute Dictionary, the synonym provided is created and associated with that column. Synonyms share the column definition of their base column.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI401' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI402 'apex_ui_default_update.del_ad_column': 'prefix': 'apex_ui_default_update.del_ad_column' 'body': """APEX_UI_DEFAULT_UPDATE.DEL_AD_COLUMN( p_column_name => $1 );$2""" 'description': 'If the column name is found within the User Interface Default Attribute Dictionary, the column, along with any associated synonyms, is deleted.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI402' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI403 'apex_ui_default_update.del_ad_synonym': 'prefix': 'apex_ui_default_update.del_ad_synonym' 'body': """APEX_UI_DEFAULT_UPDATE.DEL_AD_SYNONYM( p_syn_name => $1 );$2""" 'description': 'If the synonym name is found within the User Interface Default Attribute Dictionary, the synonym name is deleted.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI403' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI404 'apex_ui_default_update.del_column': 'prefix': 'apex_ui_default_update.del_column' 'body': """APEX_UI_DEFAULT_UPDATE.DEL_COLUMN( p_table_name => $1, p_column_name => $2 );$3""" 'description': 'If the provided table and column exists within the use\'s schem\'s table based User Interface Defaults, the UI Defaults for it are deleted.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI404' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI405 'apex_ui_default_update.del_group': 'prefix': 'apex_ui_default_update.del_group' 'body': """APEX_UI_DEFAULT_UPDATE.DEL_GROUP( p_table_name => $1, p_group_name => $2 );$3""" 'description': 'If the provided table and group exists within the use\'s schem\'s table based User Interface Defaults, the UI Defaults for it are deleted and any column within the table that references that group has the group_id set to null.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI405' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI406 'apex_ui_default_update.del_table': 'prefix': 'apex_ui_default_update.del_table' 'body': """APEX_UI_DEFAULT_UPDATE.DEL_TABLE( p_table_name => $1 );$2""" 'description': 'If the provided table exists within the use\'s schem\'s table based User Interface Defaults, the UI Defaults for it is deleted. This includes the deletion of any groups defined for the table and all the columns associated with the table.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI406' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI407 'apex_ui_default_update.synch_table': 'prefix': 'apex_ui_default_update.synch_table' 'body': """APEX_UI_DEFAULT_UPDATE.SYNCH_TABLE( p_table_name => $1 );$2""" 'description': 'If the Table Based User Interface Defaults for the table do not already exist within the use\'s schema, they are defaulted. If they do exist, they are synchronized, meaning, the columns in the table is matched against the column in the UI Defaults Table Definitions. Additions and deletions are used to make them match.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI407' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI408 'apex_ui_default_update.upd_ad_column': 'prefix': 'apex_ui_default_update.upd_ad_column' 'body': """APEX_UI_DEFAULT_UPDATE.UPD_AD_COLUMN( p_column_name => $1 );$2""" 'description': 'If the column name is found within the User Interface Default Attribute Dictionary, the column entry is updated using the provided parameters. If\'null\' is passed in, the value of the associated parameter is set to null.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI408' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI409 'apex_ui_default_update.upd_ad_synonym': 'prefix': 'apex_ui_default_update.upd_ad_synonym' 'body': """APEX_UI_DEFAULT_UPDATE.UPD_AD_SYNONYM( p_syn_name => $1 );$2""" 'description': 'If the synonym name is found within the User Interface Default Attribute Dictionary, the synonym name is updated.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI409' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI410 'apex_ui_default_update.upd_column': 'prefix': 'apex_ui_default_update.upd_column' 'body': """APEX_UI_DEFAULT_UPDATE.UPD_COLUMN( p_table_name => $1, p_column_name => $2 );$3""" 'description': 'If the provided table and column exists within the use\'s schem\'s table based User Interface Defaults, the provided parameters are updated. If\'null\' is passed in, the value of the associated parameter is set to null.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI410' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI259 'apex_ui_default_update.upd_display_in_form': 'prefix': 'apex_ui_default_update.upd_display_in_form' 'body': """APEX_UI_DEFAULT_UPDATE.UPD_DISPLAY_IN_FORM( p_table_name => $1, p_column_name => $2, p_display_in_form => $3 );$4""" 'description': 'The UPD_DISPLAY_IN_FORM procedure sets the display in form user interface defaults. This user interface default is used by wizards when you select to create a form based upon the table. It controls whether the column is included by default or not.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI259' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI260 'apex_ui_default_update.upd_display_in_report': 'prefix': 'apex_ui_default_update.upd_display_in_report' 'body': """APEX_UI_DEFAULT_UPDATE.UPD_DISPLAY_IN_REPORT( p_table_name => $1, p_column_name => $2, p_display_in_report => $3 );$4""" 'description': 'The UPD_DISPLAY_IN_REPORT procedure sets the display in report user interface default. This user interface default is used by wizards when you select to create a report based upon the table and controls whether the column is included by default or not.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI260' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI255 'apex_ui_default_update.upd_form_region_title': 'prefix': 'apex_ui_default_update.upd_form_region_title' 'body': """APEX_UI_DEFAULT_UPDATE.UPD_FORM_REGION_TITLE( p_table_name => $1 );$2""" 'description': 'The UPD_FORM_REGION_TITLE procedure updates the Form Region Title user interface default. User interface defaults are used in wizards when you create a form based upon the specified table.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI255' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI411 'apex_ui_default_update.upd_group': 'prefix': 'apex_ui_default_update.upd_group' 'body': """APEX_UI_DEFAULT_UPDATE.UPD_GROUP( p_table_name => $1, p_group_name => $2 );$3""" 'description': 'If the provided table and group exist within the use\'s schem\'s table based User Interface Defaults, the group name, description and display sequence of the group are updated. If\'null\' is passed in for p_description or p_display_sequence, the value is set to null.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI411' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI262 'apex_ui_default_update.upd_item_display_height': 'prefix': 'apex_ui_default_update.upd_item_display_height' 'body': """APEX_UI_DEFAULT_UPDATE.UPD_ITEM_DISPLAY_HEIGHT( p_table_name => $1, p_column_name => $2, p_display_height => $3 );$4""" 'description': 'The UPD_ITEM_DISPLAY_HEIGHT procedure sets the item display height user interface default. This user interface default is used by wizards when you select to create a form based upon the table and include the specified column. Display height controls if the item is a text box or a text area.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI262' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI261 'apex_ui_default_update.upd_item_display_width': 'prefix': 'apex_ui_default_update.upd_item_display_width' 'body': """APEX_UI_DEFAULT_UPDATE.UPD_ITEM_DISPLAY_WIDTH( p_table_name => $1, p_column_name => $2, p_display_width => $3 );$4""" 'description': 'The UPD_ITEM_DISPLAY_WIDTH procedure sets the item display width user interface default. This user interface default is used by wizards when you select to create a form based upon the table and include the specified column.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI261' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI264 'apex_ui_default_update.upd_item_format_mask': 'prefix': 'apex_ui_default_update.upd_item_format_mask' 'body': """APEX_UI_DEFAULT_UPDATE.UPD_ITEM_FORMAT_MASK( p_table_name => $1, p_column_name => $2 );$3""" 'description': 'The UPD_ITEM_FORMAT_MASK procedure sets the item format mask user interface default. This user interface default is used by wizards when you select to create a form based upon the table and include the specified column. Item format mask is typically used to format numbers and dates.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI264' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI258 'apex_ui_default_update.upd_item_help': 'prefix': 'apex_ui_default_update.upd_item_help' 'body': """APEX_UI_DEFAULT_UPDATE.UPD_ITEM_HELP( p_table_name => $1, p_column_name => $2 );$3""" 'description': 'The UPD_ITEM_HELP procedure updates the help text for the specified table and column. This user interface default is used when you create a form based upon the table and select to include the specified column.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI258' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI257 'apex_ui_default_update.upd_label': 'prefix': 'apex_ui_default_update.upd_label' 'body': """APEX_UI_DEFAULT_UPDATE.UPD_LABEL( p_table_name => $1, p_column_name => $2 );$3""" 'description': 'The UPD_LABEL procedure sets the label used for items. This user interface default is used when you create a form or report based on the specified table and include a specific column.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI257' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI263 'apex_ui_default_update.upd_report_alignment': 'prefix': 'apex_ui_default_update.upd_report_alignment' 'body': """APEX_UI_DEFAULT_UPDATE.UPD_REPORT_ALIGNMENT( p_table_name => $1, p_column_name => $2, p_report_alignment => $3 );$4""" 'description': 'The UPD_REPORT_ALIGNMENT procedure sets the report alignment user interface default. This user interface default is used by wizards when you select to create a report based upon the table and include the specified column and determines if the report column should be left, center, or right justified.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI263' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI265 'apex_ui_default_update.upd_report_format_mask': 'prefix': 'apex_ui_default_update.upd_report_format_mask' 'body': """APEX_UI_DEFAULT_UPDATE.UPD_REPORT_FORMAT_MASK( p_table_name => $1, p_column_name => $2 );$3""" 'description': 'The UPD_REPORT_FORMAT_MASK procedure sets the report format mask user interface default. This user interface default is used by wizards when you select to create a report based upon the table and include the specified column. Report format mask is typically used to format numbers and dates.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI265' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI256 'apex_ui_default_update.upd_report_region_title': 'prefix': 'apex_ui_default_update.upd_report_region_title' 'body': """APEX_UI_DEFAULT_UPDATE.UPD_REPORT_REGION_TITLE( p_table_name => $1 );$2""" 'description': 'The UPD_REPORT_REGION_TITLE procedure sets the Report Region Title. User interface defaults are used in wizards when a report is created on a table.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI256' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI412 'apex_ui_default_update.upd_table': 'prefix': 'apex_ui_default_update.upd_table' 'body': """APEX_UI_DEFAULT_UPDATE.UPD_TABLE( p_table_name => $1 );$2""" 'description': 'If the provided table exists within the use\'s schem\'s table based User Interface Defaults, the form region title and report region title are updated to match those provided. If\'null\' is passed in for p_form_region_title or p_report_region_title, the value is set to null.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI412' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI103 'apex_util.cache_get_date_of_page_cache': 'prefix': 'apex_util.cache_get_date_of_page_cache' 'body': """APEX_UTIL.CACHE_GET_DATE_OF_PAGE_CACHE( p_application => $1, p_page => $2 );$3""" 'description': 'This function returns the date and time a specified application page was cached either for the user issuing the call, or for all users if the page was not set to be cached by user.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI103' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI104 'apex_util.cache_get_date_of_region_cache': 'prefix': 'apex_util.cache_get_date_of_region_cache' 'body': """APEX_UTIL.CACHE_GET_DATE_OF_REGION_CACHE( p_application => $1, p_page => $2, p_region_name => $3 );$4""" 'description': 'This function returns the date and time a specified region was cached either for the user issuing the call, or for all users if the page was not set to be cached by user.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI104' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI105 'apex_util.cache_purge_by_application': 'prefix': 'apex_util.cache_purge_by_application' 'body': """APEX_UTIL.CACHE_PURGE_BY_APPLICATION( p_application => $1 );$2""" 'description': 'This procedure purges all cached pages and regions for a given application.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI105' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI106 'apex_util.cache_purge_by_page': 'prefix': 'apex_util.cache_purge_by_page' 'body': """APEX_UTIL.CACHE_PURGE_BY_PAGE( p_application => $1, p_page => $2 );$3""" 'description': 'This procedure purges the cache for a given application and page. If the page itself is not cached but contains one or more cached regions, then the cache for these is also purged.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI106' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI107 'apex_util.cache_purge_stale': 'prefix': 'apex_util.cache_purge_stale' 'body': """APEX_UTIL.CACHE_PURGE_STALE( p_application => $1 );$2""" 'description': 'This procedure deletes all cached pages and regions for a specified application that have passed the defined active time period. When you cache a page or region, you specify an active time period (or Cache Timeout). Once that period has passed, the cache is no longer used, thus removing those unusable pages or regions from the cache.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI107' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI102 'apex_util.change_current_user_pw': 'prefix': 'apex_util.change_current_user_pw' 'body': """APEX_UTIL.CHANGE_CURRENT_USER_PW( p_new_password => $1 );$2""" 'description': 'This procedure changes the password of the currently authenticated user, assuming Application Express user accounts are in use.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI102' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI108 'apex_util.change_password_on_first_use': 'prefix': 'apex_util.change_password_on_first_use' 'body': """APEX_UTIL.CHANGE_PASSWORD_ON_FIRST_USE( p_user_name => $1 );$2""" 'description': 'Enables a developer to check whether this property is enabled or disabled for an end user account. This function returns TRUE if the account password must be changed upon first use (after successful authentication) after the password is initially set and after it is changed on the Administration Service, Edit User page. This function returns FALSE if the account does not have this property.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI108' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI109 'apex_util.clear_app_cache': 'prefix': 'apex_util.clear_app_cache' 'body': """APEX_UTIL.CLEAR_APP_CACHE""" 'description': 'This procedure removes session state for a given application for the current session.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI109' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI110 'apex_util.clear_page_cache': 'prefix': 'apex_util.clear_page_cache' 'body': """APEX_UTIL.CLEAR_PAGE_CACHE""" 'description': 'This procedure removes session state for a given page for the current session.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI110' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI111 'apex_util.clear_user_cache': 'prefix': 'apex_util.clear_user_cache' 'body': """APEX_UTIL.CLEAR_USER_CACHE""" 'description': 'This procedure removes session state and application system preferences for the current use\'s session. Run this procedure if you reuse session IDs and want to run applications without the benefit of existing session state.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI111' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI30156 'apex_util.close_open_db_links': 'prefix': 'apex_util.close_open_db_links' 'body': """APEX_UTIL.CLOSE_OPEN_DB_LINKS""" 'description': 'This procedure closes all open database links for the current database session.It is rare that this procedure would ever be called programatically in an application. The primary purpose of this procedure is for the middleware technology in an Oracle Application Express environment (for example, Oracle REST Data Service, mod_plsql) to be configured such that it closes all of the open database links in a session, either before a request is made to the Application Express engine, or after a request to the Application Express engine is completed but before the database session is returned to the pool.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI30156' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI112 'apex_util.count_click': 'prefix': 'apex_util.count_click' 'body': """APEX_UTIL.COUNT_CLICK( p_url => $1, p_cat => $2 );$3""" 'description': 'This procedure counts clicks from an application built in Application Builder to an external site. You can also use the shorthand version, procedure Z, in place of APEX_UTIL.COUNT_CLICK.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI112' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI114 'apex_util.create_user': 'prefix': 'apex_util.create_user' 'body': """APEX_UTIL.CREATE_USER( p_user_name => $1, p_web_password => $2 );$3""" 'description': 'This procedure creates a new account record in the Application Express user account table. To execute this procedure, the current user must have administrative privileges.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI114' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI115 'apex_util.create_user_group': 'prefix': 'apex_util.create_user_group' 'body': """APEX_UTIL.CREATE_USER_GROUP( p_group_name => $1 );$2""" 'description': 'Assuming you are using Application Express authentication, this procedure creates a user group. To execute this procedure, the current user must have administrative privileges in the workspace.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI115' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI116 'apex_util.current_user_in_group': 'prefix': 'apex_util.current_user_in_group' 'body': """APEX_UTIL.CURRENT_USER_IN_GROUP( p_group_name => $1 );$2""" 'description': 'This function returns a Boolean result based on whether the current user is a member of the specified group. You can use the group name or group ID to identify the group.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI116' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI1536 'apex_util.custom_calendar': 'prefix': 'apex_util.custom_calendar' 'body': """APEX_UTIL.CUSTOM_CALENDAR( p_date_type_field => $1 );$2""" 'description': 'Use this procedure to change the existing calendar view to Custom Calendar.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI1536' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI2296 'apex_util.delete_user_group': 'prefix': 'apex_util.delete_user_group' 'body': """APEX_UTIL.DELETE_USER_GROUP( p_group_id => $1 );$2""" 'description': 'Assuming you are using Application Express authentication, this procedure deletes a user group by providing the primary key of the group. To execute this procedure, the current user must have administrative privileges in the workspace.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI2296' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI2301 'apex_util.delete_user_group2': 'prefix': 'apex_util.delete_user_group2' 'body': """APEX_UTIL.DELETE_USER_GROUP2( p_group_name => $1 );$2""" 'description': 'Assuming you are using Application Express authentication, this procedure deletes a user group by providing the name of the group. To execute this procedure, the current user must have administrative privileges in the workspace.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI2301' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI147 'apex_util.download_print_document': 'prefix': 'apex_util.download_print_document' 'body': """APEX_UTIL.DOWNLOAD_PRINT_DOCUMENT( p_file_name => $1, p_content_disposition => $2, p_report_data => $3, p_report_layout => $4 );$5""" 'description': 'This procedure initiates the download of a print document using XML based report data (as a BLOB) and RTF or XSL-FO based report layout.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI147' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI148 'apex_util.download_print_document2': 'prefix': 'apex_util.download_print_document2' 'body': """APEX_UTIL.DOWNLOAD_PRINT_DOCUMENT2( p_file_name => $1, p_content_disposition => $2, p_application_id => $3, p_report_query_name => $4, p_report_layout => $5 );$6""" 'description': 'This procedure initiates the download of a print document using pre-defined report query and RTF and XSL-FO based report layout.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI148' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI149 'apex_util.download_print_document3': 'prefix': 'apex_util.download_print_document3' 'body': """APEX_UTIL.DOWNLOAD_PRINT_DOCUMENT3( p_file_name => $1, p_content_disposition => $2, p_application_id => $3, p_report_query_name => $4, p_report_layout_name => $5 );$6""" 'description': 'This procedure initiates the download of a print document using pre-defined report query and pre-defined report layout.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI149' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI150 'apex_util.download_print_document4': 'prefix': 'apex_util.download_print_document4' 'body': """APEX_UTIL.DOWNLOAD_PRINT_DOCUMENT4( p_file_name => $1, p_content_disposition => $2, p_report_data => $3, p_report_layout => $4 );$5""" 'description': 'This procedure initiates the download of a print document using XML based report data (as a CLOB) and RTF or XSL-FO based report layout.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI150' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI117 'apex_util.edit_user': 'prefix': 'apex_util.edit_user' 'body': """APEX_UTIL.EDIT_USER( p_user_id => $1, p_user_name => $2 );$3""" 'description': 'This procedure enables a user account record to be altered. To execute this procedure, the current user must have administrative privileges in the workspace.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI117' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI118 'apex_util.end_user_account_days_left': 'prefix': 'apex_util.end_user_account_days_left' 'body': """APEX_UTIL.END_USER_ACCOUNT_DAYS_LEFT( p_user_name => $1 );$2""" 'description': 'Returns the number of days remaining before a end user account password expires. This function may be run in a page request context by any authenticated user.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI118' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI119 'apex_util.expire_end_user_account': 'prefix': 'apex_util.expire_end_user_account' 'body': """APEX_UTIL.EXPIRE_END_USER_ACCOUNT( p_user_name => $1 );$2""" 'description': 'Expires the login account for use as a workspace end user. Must be run by an authenticated workspace administrator in a page request context.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI119' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI120 'apex_util.expire_workspace_account': 'prefix': 'apex_util.expire_workspace_account' 'body': """APEX_UTIL.EXPIRE_WORKSPACE_ACCOUNT( p_user_name => $1 );$2""" 'description': 'Expires developer or workspace administrator login accounts. Must be run by an authenticated workspace administrator in a page request context.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI120' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI121 'apex_util.export_users': 'prefix': 'apex_util.export_users' 'body': """APEX_UTIL.EXPORT_USERS""" 'description': 'When called from a page, this procedure produces an export file of the current workspace definition, workspace users, and workspace groups. To execute this procedure, the current user must have administrative privilege in the workspace.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI121' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI122 'apex_util.fetch_app_item': 'prefix': 'apex_util.fetch_app_item' 'body': """APEX_UTIL.FETCH_APP_ITEM( p_item => $1 );$2""" 'description': 'This function fetches session state for the current or specified application in the current or specified session.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI122' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI124 'apex_util.find_security_group_id': 'prefix': 'apex_util.find_security_group_id' 'body': """APEX_UTIL.FIND_SECURITY_GROUP_ID( p_workspace => $1 );$2""" 'description': 'This function returns the numeric security group ID of the named workspace.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI124' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI125 'apex_util.find_workspace': 'prefix': 'apex_util.find_workspace' 'body': """APEX_UTIL.FIND_WORKSPACE( p_security_group_id => $1 );$2""" 'description': 'This function returns the workspace name associated with a security group ID.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI125' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI126 'apex_util.get_account_locked_status': 'prefix': 'apex_util.get_account_locked_status' 'body': """APEX_UTIL.GET_ACCOUNT_LOCKED_STATUS( p_user_name => $1 );$2""" 'description': 'Returns TRUE if the account is locked and FALSE if the account is unlocked. Must be run by an authenticated workspace administrator in a page request context.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI126' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI127 'apex_util.get_attribute': 'prefix': 'apex_util.get_attribute' 'body': """APEX_UTIL.GET_ATTRIBUTE( p_username => $1, p_attribute_number => $2 );$3""" 'description': 'This function returns the value of one of the attribute values (1 through 10) of a named user in the Application Express accounts table. Please note these are only accessible by using the APIs.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI127' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI128 'apex_util.get_authentication_result': 'prefix': 'apex_util.get_authentication_result' 'body': """APEX_UTIL.GET_AUTHENTICATION_RESULT""" 'description': 'Use this function to retrieve the authentication result of the current session. Any authenticated user can call this function in a page request context.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI128' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI129 'apex_util.get_blob_file_src': 'prefix': 'apex_util.get_blob_file_src' 'body': """APEX_UTIL.GET_BLOB_FILE_SRC""" 'description': 'As an alternative to using the built-in methods of providing a download link, you can use the APEX_UTIL.GET_BLOB_FILE_SRC function. One advantage of this approach, is the ability to more specifically format the display of the image (with height and width tags). Please note that this approach is only valid if called from a valid Oracle Application Express session. Also, this method requires that the parameters that describe the BLOB to be listed as the format of a valid item within the application. That item is then referenced by the function.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI129' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI29422 'apex_util.get_build_option_status': 'prefix': 'apex_util.get_build_option_status' 'body': """APEX_UTIL.GET_BUILD_OPTION_STATUS( p_application_id => $1, p_id => $2 );$3""" 'description': 'Use this function to get the build option status of a specified application by providing the ID of the application build option.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI29422' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI29427 'apex_util.get_build_option_status2': 'prefix': 'apex_util.get_build_option_status2' 'body': """APEX_UTIL.GET_BUILD_OPTION_STATUS2( p_application_id => $1, p_build_option_name => $2 );$3""" 'description': 'Use this function to get the build option status of a specified application by providing the name of the application build option.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI29427' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI130 'apex_util.get_current_user_id': 'prefix': 'apex_util.get_current_user_id' 'body': """APEX_UTIL.GET_CURRENT_USER_ID""" 'description': 'This function returns the numeric user ID of the current user.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI130' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI131 'apex_util.get_default_schema': 'prefix': 'apex_util.get_default_schema' 'body': """APEX_UTIL.GET_DEFAULT_SCHEMA""" 'description': 'This function returns the default schema name associated with the current user.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI131' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI500 'apex_util.get_edition': 'prefix': 'apex_util.get_edition' 'body': """APEX_UTIL.GET_EDITION""" 'description': 'This function returns the edition for the current page view.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI500' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI132 'apex_util.get_email': 'prefix': 'apex_util.get_email' 'body': """APEX_UTIL.GET_EMAIL( p_username => $1 );$2""" 'description': 'This function returns the email address associated with the named user.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI132' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI519 'apex_util.get_feedback_follow_up': 'prefix': 'apex_util.get_feedback_follow_up' 'body': """APEX_UTIL.GET_FEEDBACK_FOLLOW_UP( p_feedback_id => $1 );$2""" 'description': 'Use this function to retrieve any remaining follow up associated with a specific feedback.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI519' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI133 'apex_util.get_file': 'prefix': 'apex_util.get_file' 'body': """APEX_UTIL.GET_FILE( p_file_id => $1 );$2""" 'description': 'This procedure downloads files from the Oracle Application Express file repository. Please note if you are invoking this procedure during page processing, you must ensure that no page branch is invoked under the same condition, as it interferes with the file retrieval. This means that branches with any of the following conditions should not be set to fire:' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI133' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI134 'apex_util.get_file_id': 'prefix': 'apex_util.get_file_id' 'body': """APEX_UTIL.GET_FILE_ID( p_name => $1 );$2""" 'description': 'This function obtains the primary key of a file in the Oracle Application Express file repository.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI134' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI135 'apex_util.get_first_name': 'prefix': 'apex_util.get_first_name' 'body': """APEX_UTIL.GET_FIRST_NAME""" 'description': 'This function returns the FIRST_NAME field stored in the named user account record.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI135' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI137 'apex_util.get_group_id': 'prefix': 'apex_util.get_group_id' 'body': """APEX_UTIL.GET_GROUP_ID( p_group_name => $1 );$2""" 'description': 'This function returns the numeric ID of a named group in the workspace.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI137' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI138 'apex_util.get_group_name': 'prefix': 'apex_util.get_group_name' 'body': """APEX_UTIL.GET_GROUP_NAME( p_group_id => $1 );$2""" 'description': 'This function returns the name of a group identified by a numeric ID.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI138' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI136 'apex_util.get_groups_user_belongs_to': 'prefix': 'apex_util.get_groups_user_belongs_to' 'body': """APEX_UTIL.GET_GROUPS_USER_BELONGS_TO( p_username => $1 );$2""" 'description': 'This function returns a comma then a space separated list of group names to which the named user is a member.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI136' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI30207 'apex_util.get_hash': 'prefix': 'apex_util.get_hash' 'body': """APEX_UTIL.GET_HASH( p_values => $1 );$2""" 'description': 'This function computes a hash value for all given values. Use this function to implement lost update detection for data records.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI30207' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI2306 'apex_util.get_high_contrast_mode_toggle': 'prefix': 'apex_util.get_high_contrast_mode_toggle' 'body': """APEX_UTIL.GET_HIGH_CONTRAST_MODE_TOGGLE""" 'description': 'This function returns a link to the current page that enables you to turn on or off, toggle, the mode. For example, if you are in standard mode, this function displays a link that when clicked switches high contrast mode on.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI2306' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI139 'apex_util.get_last_name': 'prefix': 'apex_util.get_last_name' 'body': """APEX_UTIL.GET_LAST_NAME( p_username => $1 );$2""" 'description': 'This function returns the LAST_NAME field stored in the named user account record.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI139' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI141 'apex_util.get_numeric_session_state': 'prefix': 'apex_util.get_numeric_session_state' 'body': """APEX_UTIL.GET_NUMERIC_SESSION_STATE( p_item => $1 );$2""" 'description': 'This function returns a numeric value for a numeric item. You can use this function in Oracle Application Express applications wherever you can use PL/SQL or SQL. You can also use the shorthand, function NV, in place of APEX_UTIL.GET_NUMERIC_SESSION_STATE.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI141' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI142 'apex_util.get_preference': 'prefix': 'apex_util.get_preference' 'body': """APEX_UTIL.GET_PREFERENCE""" 'description': 'This function retrieves the value of a previously saved preference for a given user.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI142' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI143 'apex_util.get_print_document': 'prefix': 'apex_util.get_print_document' 'body': """APEX_UTIL.GET_PRINT_DOCUMENT( p_report_data => $1, p_report_layout => $2 );$3""" 'description': 'This function returns a document as BLOB using XML based report data and RTF or XSL-FO based report layout.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI143' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI144 'apex_util.get_print_document2': 'prefix': 'apex_util.get_print_document2' 'body': """APEX_UTIL.GET_PRINT_DOCUMENT2( p_application_id => $1, p_report_query_name => $2 );$3""" 'description': 'This function returns a document as BLOB using pre-defined report query and pre-defined report layout.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI144' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI145 'apex_util.get_print_document3': 'prefix': 'apex_util.get_print_document3' 'body': """APEX_UTIL.GET_PRINT_DOCUMENT3( p_application_id => $1, p_report_query_name => $2, p_report_layout => $3 );$4""" 'description': 'This function returns a document as BLOB using a pre-defined report query and RTF or XSL-FO based report layout.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI145' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI146 'apex_util.get_print_document4': 'prefix': 'apex_util.get_print_document4' 'body': """APEX_UTIL.GET_PRINT_DOCUMENT4( p_report_data => $1, p_report_layout => $2 );$3""" 'description': 'This function returns a document as BLOB using XML based report data and RTF or XSL-FO based report layout.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI146' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI502 'apex_util.get_screen_reader_mode_toggle': 'prefix': 'apex_util.get_screen_reader_mode_toggle' 'body': """APEX_UTIL.GET_SCREEN_READER_MODE_TOGGLE""" 'description': 'This function returns a link to the current page to turn on or off, toggle, the mode. For example, if you are in standard mode, this function displays a link that when clicked switches screen reader mode on.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI502' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI508 'apex_util.get_session_lang': 'prefix': 'apex_util.get_session_lang' 'body': """APEX_UTIL.GET_SESSION_LANG""" 'description': 'This function returns the language setting for the current user in the current Application Express session.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI508' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI151 'apex_util.get_session_state': 'prefix': 'apex_util.get_session_state' 'body': """APEX_UTIL.GET_SESSION_STATE( p_item => $1 );$2""" 'description': 'This function returns the value for an item. You can use this function in your Oracle Application Express applications wherever you can use PL/SQL or SQL. You can also use the shorthand, function V, in place of APEX_UTIL.GET_SESSION_STATE.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI151' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI509 'apex_util.get_session_territory': 'prefix': 'apex_util.get_session_territory' 'body': """APEX_UTIL.GET_SESSION_TERRITORY""" 'description': 'This function returns the territory setting for the current user in the current Application Express session.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI509' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI510 'apex_util.get_session_time_zone': 'prefix': 'apex_util.get_session_time_zone' 'body': """APEX_UTIL.GET_SESSION_TIME_ZONE""" 'description': 'This function returns the time zone for the current user in the current Application Express session. This value is null if the time zone is not explicitly set by using APEX_UTIL.SET_SESSION_TIME_ZONE or if an applicatio\'s automatic time zone attribute is enabled.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI510' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI30229 'apex_util.get_since': 'prefix': 'apex_util.get_since' 'body': """APEX_UTIL.GET_SINCE( p_date => $1 );$2""" 'description': 'This function returns the relative date in words (for example, two days from now, thrity minutes ago). This function is equivalent to using the SINCE format mask available within Oracle Application Express and is useful within PL/SQL routines.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI30229' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI152 'apex_util.get_user_id': 'prefix': 'apex_util.get_user_id' 'body': """APEX_UTIL.GET_USER_ID( p_username => $1 );$2""" 'description': 'This function returns the numeric ID of a named user in the workspace.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI152' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI153 'apex_util.get_user_roles': 'prefix': 'apex_util.get_user_roles' 'body': """APEX_UTIL.GET_USER_ROLES( p_username => $1 );$2""" 'description': 'This function returns the DEVELOPER_ROLE field stored in the named user account record. Please note that currently this parameter is named inconsistently between the CREATE_USER, EDIT_USER and FETCH_USER APIs, although they all relate to the DEVELOPER_ROLE field. CREATE_USER uses p_developer_privs, EDIT_USER uses p_developer_roles and FETCH_USER uses p_developer_role.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI153' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI140 'apex_util.get_username': 'prefix': 'apex_util.get_username' 'body': """APEX_UTIL.GET_USERNAME( p_userid => $1 );$2""" 'description': 'This function returns the user name of a user account identified by a numeric ID.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI140' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI2311 'apex_util.host_url': 'prefix': 'apex_util.host_url' 'body': """APEX_UTIL.HOST_URL""" 'description': 'This function returns the URL to the Application Express instance, depending on the option passed.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI2311' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI1710 'apex_util.html_pct_graph_mask': 'prefix': 'apex_util.html_pct_graph_mask' 'body': """APEX_UTIL.HTML_PCT_GRAPH_MASK""" 'description': 'Use this function to scale a graph. This function can also be used by classic and interactive reports with format mask of GRAPH. This generates a <div> tag with inline styles.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI1710' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI1715 'apex_util.increment_calendar': 'prefix': 'apex_util.increment_calendar' 'body': """APEX_UTIL.INCREMENT_CALENDAR""" 'description': 'Use this procedure to navigate to the next set of days in the calendar. Depending on what the calendar view is, this procedure navigates to the next month, week or day. If it is a Custom Calendar the total number of days between the start date and end date are navigated.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI1715' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI1719 'apex_util.ir_clear': 'prefix': 'apex_util.ir_clear' 'body': """APEX_UTIL.IR_CLEAR( p_page_id => $1 );$2""" 'description': 'Note:' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI1719' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI2177 'apex_util.ir_delete_report': 'prefix': 'apex_util.ir_delete_report' 'body': """APEX_UTIL.IR_DELETE_REPORT( p_report_id => $1 );$2""" 'description': 'Note:' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI2177' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI2182 'apex_util.ir_delete_subscription': 'prefix': 'apex_util.ir_delete_subscription' 'body': """APEX_UTIL.IR_DELETE_SUBSCRIPTION( p_subscription_id => $1 );$2""" 'description': 'Note:' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI2182' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI1724 'apex_util.ir_filter': 'prefix': 'apex_util.ir_filter' 'body': """APEX_UTIL.IR_FILTER( p_page_id => $1, p_report_column => $2, p_filter_value => $3 );$4""" 'description': 'Note:' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI1724' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI1729 'apex_util.ir_reset': 'prefix': 'apex_util.ir_reset' 'body': """APEX_UTIL.IR_RESET( p_page_id => $1 );$2""" 'description': 'Note:' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI1729' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI2316 'apex_util.is_high_contrast_session': 'prefix': 'apex_util.is_high_contrast_session' 'body': """APEX_UTIL.IS_HIGH_CONTRAST_SESSION""" 'description': 'This function returns a boolean TRUE if the session is in high contrast mode and returns a boolean FALSE if not in high contrast mode.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI2316' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI2320 'apex_util.is_high_contrast_session_yn': 'prefix': 'apex_util.is_high_contrast_session_yn' 'body': """APEX_UTIL.IS_HIGH_CONTRAST_SESSION_YN""" 'description': 'This function returns Y if the session is in high contrast mode and N if not in high contrast mode.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI2320' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI154 'apex_util.is_login_password_valid': 'prefix': 'apex_util.is_login_password_valid' 'body': """APEX_UTIL.IS_LOGIN_PASSWORD_VALID( p_username => $1, p_password => $2 );$3""" 'description': 'This function returns a Boolean result based on the validity of the password for a named user account in the current workspace. This function returns TRUE if the password matches and it returns FALSE if the password does not match.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI154' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI504 'apex_util.is_screen_reader_session': 'prefix': 'apex_util.is_screen_reader_session' 'body': """APEX_UTIL.IS_SCREEN_READER_SESSION""" 'description': 'This function returns a boolean TRUE if the session is in screen reader mode and returns a boolean FALSE if not in screen reader mode.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI504' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI518 'apex_util.is_screen_reader_session_yn': 'prefix': 'apex_util.is_screen_reader_session_yn' 'body': """APEX_UTIL.IS_SCREEN_READER_SESSION_YN""" 'description': 'This function returns\'\' if the session is in screen reader mode and\'\' if not in screen reader mode.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI518' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI155 'apex_util.is_username_unique': 'prefix': 'apex_util.is_username_unique' 'body': """APEX_UTIL.IS_USERNAME_UNIQUE( p_username => $1 );$2""" 'description': 'This function returns a Boolean result based on whether the named user account is unique in the workspace.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI155' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI156 'apex_util.keyval_num': 'prefix': 'apex_util.keyval_num' 'body': """APEX_UTIL.KEYVAL_NUM""" 'description': 'This function gets the value of the package variable (wwv_flow_utilities.g_val_num) set by APEX_UTIL.SAVEKEY_NUM.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI156' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI157 'apex_util.keyval_vc2': 'prefix': 'apex_util.keyval_vc2' 'body': """APEX_UTIL.KEYVAL_VC2""" 'description': 'This function gets the value of the package variable (wwv_flow_utilities.g_val_vc2) set by APEX_UTIL.SAVEKEY_VC2.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI157' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI158 'apex_util.lock_account': 'prefix': 'apex_util.lock_account' 'body': """APEX_UTIL.LOCK_ACCOUNT( p_user_name => $1 );$2""" 'description': 'Sets a user account status to locked. Must be run by an authenticated workspace administrator in the context of a page request.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI158' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI159 'apex_util.password_first_use_occurred': 'prefix': 'apex_util.password_first_use_occurred' 'body': """APEX_UTIL.PASSWORD_FIRST_USE_OCCURRED( p_user_name => $1 );$2""" 'description': 'Returns TRUE if the accoun\'s password has changed since the account was created, an Oracle Application Express administrator performs a password reset operation that results in a new password being emailed to the account holder, or a user has initiated password reset operation. This function returns FALSE if the accoun\'s password has not been changed since either of the events just described.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI159' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI160 'apex_util.prepare_url': 'prefix': 'apex_util.prepare_url' 'body': """APEX_UTIL.PREPARE_URL( p_url => $1 );$2""" 'description': 'The PREPARE_URL function serves two purposes:' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI160' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI161 'apex_util.public_check_authorization': 'prefix': 'apex_util.public_check_authorization' 'body': """APEX_UTIL.PUBLIC_CHECK_AUTHORIZATION( p_security_scheme => $1 );$2""" 'description': 'Note:' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI161' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI162 'apex_util.purge_regions_by_app': 'prefix': 'apex_util.purge_regions_by_app' 'body': """APEX_UTIL.PURGE_REGIONS_BY_APP( p_application => $1 );$2""" 'description': 'Deletes all cached regions for an application.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI162' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI163 'apex_util.purge_regions_by_name': 'prefix': 'apex_util.purge_regions_by_name' 'body': """APEX_UTIL.PURGE_REGIONS_BY_NAME( p_application => $1, p_page => $2, p_region_name => $3 );$4""" 'description': 'Deletes all cached values for a region identified by the application ID, page number and region name.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI163' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI165 'apex_util.purge_regions_by_page': 'prefix': 'apex_util.purge_regions_by_page' 'body': """APEX_UTIL.PURGE_REGIONS_BY_PAGE( p_application => $1, p_page => $2 );$3""" 'description': 'Deletes all cached regions by application and page.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI165' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI2324 'apex_util.redirect_url': 'prefix': 'apex_util.redirect_url' 'body': """APEX_UTIL.REDIRECT_URL( p_url => $1 );$2""" 'description': 'This procedure calls owa_util.redirect_url to tell the browser to redirect to a new URL. Afterwards, it automatically calls apex_application.stop_apex_engine to abort further processing of the Application Express application.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI2324' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI167 'apex_util.remove_preference': 'prefix': 'apex_util.remove_preference' 'body': """APEX_UTIL.REMOVE_PREFERENCE""" 'description': 'This procedure removes the preference for the supplied user.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI167' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI168 'apex_util.remove_sort_preferences': 'prefix': 'apex_util.remove_sort_preferences' 'body': """APEX_UTIL.REMOVE_SORT_PREFERENCES""" 'description': 'This procedure removes the use\'s column heading sorting preference value.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI168' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI169 'apex_util.remove_user': 'prefix': 'apex_util.remove_user' 'body': """APEX_UTIL.REMOVE_USER( p_user_id => $1, p_user_name => $2 );$3""" 'description': 'This procedure removes the user account identified by the primary key or a user name. To execute this procedure, the current user must have administrative privilege in the workspace.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI169' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI170 'apex_util.reset_authorizations': 'prefix': 'apex_util.reset_authorizations' 'body': """APEX_UTIL.RESET_AUTHORIZATIONS""" 'description': 'Note:' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI170' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI29920 'apex_util.reset_password': 'prefix': 'apex_util.reset_password' 'body': """APEX_UTIL.RESET_PASSWORD( p_new_password => $1 );$2""" 'description': 'This procedure is used to change the password of a given user name for the current workspace. This procedure changes the password of p_user_name in the current workspace to p_new_password. If p_change_password_on_first_use is TRUE, then the user has to change the password on the next login.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI29920' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI171 'apex_util.reset_pw': 'prefix': 'apex_util.reset_pw' 'body': """APEX_UTIL.RESET_PW( p_user => $1, p_msg => $2 );$3""" 'description': 'This procedure resets the password for a named user and emails it in a message to the email address located for the named account in the current workspace. To execute this procedure, the current user must have administrative privilege in the workspace.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI171' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI172 'apex_util.savekey_num': 'prefix': 'apex_util.savekey_num' 'body': """APEX_UTIL.SAVEKEY_NUM( p_val => $1 );$2""" 'description': 'This function sets a package variable (wwv_flow_utilities.g_val_num) so that it can be retrieved using the function KEYVAL_NUM.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI172' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI173 'apex_util.savekey_vc2': 'prefix': 'apex_util.savekey_vc2' 'body': """APEX_UTIL.SAVEKEY_VC2( p_val => $1 );$2""" 'description': 'This function sets a package variable (wwv_flow_utilities.g_val_vc2) so that it can be retrieved using the function KEYVAL_VC2.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI173' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI174 'apex_util.set_attribute': 'prefix': 'apex_util.set_attribute' 'body': """APEX_UTIL.SET_ATTRIBUTE( p_userid => $1, p_attribute_number => $2, p_attribute_value => $3 );$4""" 'description': 'This procedure sets the value of one of the attribute values (1 through 10) of a user in the Application Express accounts table.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI174' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI175 'apex_util.set_authentication_result': 'prefix': 'apex_util.set_authentication_result' 'body': """APEX_UTIL.SET_AUTHENTICATION_RESULT( p_code => $1 );$2""" 'description': 'This procedure can be called from an applicatio\'s custom authentication function (that is, credentials verification function). The status passed to this procedure is logged in the Login Access Log.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI175' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI29432 'apex_util.set_build_option_status': 'prefix': 'apex_util.set_build_option_status' 'body': """APEX_UTIL.SET_BUILD_OPTION_STATUS( p_application_id => $1, p_id => $2, p_build_status => $3 );$4""" 'description': 'Use this procedure to change the build option status of a specified application.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI29432' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI30212 'apex_util.set_current_theme_style': 'prefix': 'apex_util.set_current_theme_style' 'body': """APEX_UTIL.SET_CURRENT_THEME_STYLE( p_theme_number => $1, p_theme_style_id => $2 );$3""" 'description': 'This procedure sets the user interface theme style for an application. For example, if there are more than one theme styles available for the current theme, you can use this procedure to change the application theme style.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI30212' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI176 'apex_util.set_custom_auth_status': 'prefix': 'apex_util.set_custom_auth_status' 'body': """APEX_UTIL.SET_CUSTOM_AUTH_STATUS( p_status => $1 );$2""" 'description': 'This procedure can be called from an applicatio\'s custom authentication function (that is, credentials verification function). The status passed to this procedure is logged in the Login Access Log.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI176' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI511 'apex_util.set_edition': 'prefix': 'apex_util.set_edition' 'body': """APEX_UTIL.SET_EDITION( p_edition => $1 );$2""" 'description': 'This procedure sets the name of the edition to be used in all application SQL parsed in the current page view or page submission.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI511' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI177 'apex_util.set_email': 'prefix': 'apex_util.set_email' 'body': """APEX_UTIL.SET_EMAIL( p_userid => $1, p_email => $2 );$3""" 'description': 'This procedure updates a user account with a new email address. To execute this procedure, the current user must have administrative privileges in the workspace.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI177' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI178 'apex_util.set_first_name': 'prefix': 'apex_util.set_first_name' 'body': """APEX_UTIL.SET_FIRST_NAME( p_userid => $1, p_first_name => $2 );$3""" 'description': 'This procedure updates a user account with a new FIRST_NAME value. To execute this procedure, the current user must have administrative privileges in the workspace.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI178' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI29927 'apex_util.set_group_group_grants': 'prefix': 'apex_util.set_group_group_grants' 'body': """APEX_UTIL.SET_GROUP_GROUP_GRANTS( p_group_name => $1, p_granted_group_names => $2 );$3""" 'description': 'This procedure modifies the group grants for a given group.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI29927' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI29932 'apex_util.set_group_user_grants': 'prefix': 'apex_util.set_group_user_grants' 'body': """APEX_UTIL.SET_GROUP_USER_GRANTS( p_user_name => $1, p_granted_group_names => $2 );$3""" 'description': 'This procedure modifies the group grants for a given user.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI29932' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI179 'apex_util.set_last_name': 'prefix': 'apex_util.set_last_name' 'body': """APEX_UTIL.SET_LAST_NAME( p_userid => $1, p_last_name => $2 );$3""" 'description': 'This procedure updates a user account with a new LAST_NAME value. To execute this procedure, the current user must have administrative privileges in the workspace.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI179' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI180 'apex_util.set_preference': 'prefix': 'apex_util.set_preference' 'body': """APEX_UTIL.SET_PREFERENCE""" 'description': 'This procedure sets a preference that persists beyond the use\'s current session.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI180' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI512 'apex_util.set_security_group_id': 'prefix': 'apex_util.set_security_group_id' 'body': """APEX_UTIL.SET_SECURITY_GROUP_ID( p_security_group_id => $1 );$2""" 'description': 'Use this procedure with apex_util.find_security_group_id to ease the use of the mail package in batch mode. This procedure is especially useful when a schema is associated with more than one workspace. For example, you might want to create a procedure that is run by a nightly job to email all outstanding tasks.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI512' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI2334 'apex_util.set_session_high_contrast_off': 'prefix': 'apex_util.set_session_high_contrast_off' 'body': """APEX_UTIL.SET_SESSION_HIGH_CONTRAST_OFF""" 'description': 'This procedure switches off high contrast mode for the current session.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI2334' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI2338 'apex_util.set_session_high_contrast_on': 'prefix': 'apex_util.set_session_high_contrast_on' 'body': """APEX_UTIL.SET_SESSION_HIGH_CONTRAST_ON""" 'description': 'This procedure switches on high contrast mode for the current session.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI2338' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI513 'apex_util.set_session_lang': 'prefix': 'apex_util.set_session_lang' 'body': """APEX_UTIL.SET_SESSION_LANG( p_lang => $1 );$2""" 'description': 'This procedure sets the language to be used for the current user in the current Application Express session. The language must be a valid IANA language name.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI513' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI356 'apex_util.set_session_lifetime_seconds': 'prefix': 'apex_util.set_session_lifetime_seconds' 'body': """APEX_UTIL.SET_SESSION_LIFETIME_SECONDS( p_seconds => $1 );$2""" 'description': 'This procedure sets the current sessio\'s Maximum Session Length in Seconds value. overriding the corresponding application attribute. This allows developers to dynamically shorten or lengthen the session life based on criteria determined after the user authenticates.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI356' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI355 'apex_util.set_session_max_idle_seconds': 'prefix': 'apex_util.set_session_max_idle_seconds' 'body': """APEX_UTIL.SET_SESSION_MAX_IDLE_SECONDS( p_seconds => $1 );$2""" 'description': 'Sets the current applicatio\'s Maximum Session Idle Time in Seconds value for the current session, overriding the corresponding application attribute. This allows developers to dynamically shorten or lengthen the maximum idle time allowed between page requests based on criteria determined after the user authenticates.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI355' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI506 'apex_util.set_session_screen_reader_off': 'prefix': 'apex_util.set_session_screen_reader_off' 'body': """APEX_UTIL.SET_SESSION_SCREEN_READER_OFF""" 'description': 'This procedure switches off screen reader mode for the current session.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI506' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI520 'apex_util.set_session_screen_reader_on': 'prefix': 'apex_util.set_session_screen_reader_on' 'body': """APEX_UTIL.SET_SESSION_SCREEN_READER_ON""" 'description': 'This procedure puts the current session into screen reader mode.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI520' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI181 'apex_util.set_session_state': 'prefix': 'apex_util.set_session_state' 'body': """APEX_UTIL.SET_SESSION_STATE""" 'description': 'This procedure sets session state for a current Oracle Application Express session.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI181' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI514 'apex_util.set_session_territory': 'prefix': 'apex_util.set_session_territory' 'body': """APEX_UTIL.SET_SESSION_TERRITORY( p_territory => $1 );$2""" 'description': 'This procedure sets the territory to be used for the current user in the current Application Express session. The territory name must be a valid Oracle territory.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI514' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI515 'apex_util.set_session_time_zone': 'prefix': 'apex_util.set_session_time_zone' 'body': """APEX_UTIL.SET_SESSION_TIME_ZONE( p_time_zone => $1 );$2""" 'description': 'This procedure sets the time zone to be used for the current user in the current Application Express session.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI515' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI182 'apex_util.set_username': 'prefix': 'apex_util.set_username' 'body': """APEX_UTIL.SET_USERNAME( p_userid => $1, p_username => $2 );$3""" 'description': 'This procedure updates a user account with a new USER_NAME value. To execute this procedure, the current user must have administrative privileges in the workspace.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI182' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI2342 'apex_util.show_high_contrast_mode_toggle': 'prefix': 'apex_util.show_high_contrast_mode_toggle' 'body': """APEX_UTIL.SHOW_HIGH_CONTRAST_MODE_TOGGLE""" 'description': 'This procedure displays a link to the current page to turn on or off, toggle, the mode. For example, if you are in standard mode, this function displays a link that when clicked switches the high contrast mode on.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI2342' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI503 'apex_util.show_screen_reader_mode_toggle': 'prefix': 'apex_util.show_screen_reader_mode_toggle' 'body': """APEX_UTIL.SHOW_SCREEN_READER_MODE_TOGGLE""" 'description': 'This procedure displays a link to the current page to turn on or off, toggle, the mode. For example, if you are in standard mode, this function displays a link that when clicked switches the screen reader mode on.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI503' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI185 'apex_util.string_to_table': 'prefix': 'apex_util.string_to_table' 'body': """APEX_UTIL.STRING_TO_TABLE( p_string => $1 );$2""" 'description': 'Given a string, this function returns a PL/SQL array of type APEX_APPLICATION_GLOBAL.VC_ARR2. This array is a VARCHAR2(32767) table.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI185' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI183 'apex_util.strong_password_check': 'prefix': 'apex_util.strong_password_check' 'body': """APEX_UTIL.STRONG_PASSWORD_CHECK( p_username => $1, p_password => $<PASSWORD>, p_old_password => <PASSWORD>, p_workspace_name => $4, p_use_strong_rules => $5, p_min_length_err => $6, p_new_differs_by_err => $7, p_one_alpha_err => $8, p_one_numeric_err => $9, p_one_punctuation_err => $10, p_one_upper_err => $11, p_one_lower_err => $12, p_not_like_username_err => $13, p_not_like_workspace_name_err => $14, p_not_like_words_err => $15, p_not_reusable_err => $16 );$17""" 'description': 'This procedure returns Boolean OUT values based on whether a proposed password meets the password strength requirements as defined by the Oracle Application Express site administrator.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI183' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI184 'apex_util.strong_password_validation': 'prefix': 'apex_util.strong_password_validation' 'body': """APEX_UTIL.STRONG_PASSWORD_VALIDATION( p_username => $1, p_password => <PASSWORD>, P_WORKSPACE_NAME => $3 );$4""" 'description': 'This function returns formatted HTML in a VARCHAR2 result based on whether a proposed password meets the password strength requirements as defined by the Oracle Application Express site administrator.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI184' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI516 'apex_util.submit_feedback': 'prefix': 'apex_util.submit_feedback' 'body': """APEX_UTIL.SUBMIT_FEEDBACK""" 'description': 'This procedure enables you to write a procedure to submit feedback, rather than using the page that can be generated by create page of type feedback.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI516' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI517 'apex_util.submit_feedback_followup': 'prefix': 'apex_util.submit_feedback_followup' 'body': """APEX_UTIL.SUBMIT_FEEDBACK_FOLLOWUP( p_feedback_id => $1 );$2""" 'description': 'This procedure enables you to submit follow up to a feedback.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI517' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI186 'apex_util.table_to_string': 'prefix': 'apex_util.table_to_string' 'body': """APEX_UTIL.TABLE_TO_STRING( p_table => $1 );$2""" 'description': 'Given a a PL/SQL table of type APEX_APPLICATION_GLOBAL.VC_ARR2, this function returns a delimited string separated by the supplied separator, or by the default separator, a colon (:).' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI186' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI187 'apex_util.unexpire_end_user_account': 'prefix': 'apex_util.unexpire_end_user_account' 'body': """APEX_UTIL.UNEXPIRE_END_USER_ACCOUNT( p_user_name => $1 );$2""" 'description': 'Makes expired end users accounts and the associated passwords usable, enabling a end user to log in to developed applications.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI187' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI188 'apex_util.unexpire_workspace_account': 'prefix': 'apex_util.unexpire_workspace_account' 'body': """APEX_UTIL.UNEXPIRE_WORKSPACE_ACCOUNT( p_user_name => $1 );$2""" 'description': 'Unexpires developer and workspace administrator accounts and the associated passwords, enabling the developer or administrator to log in to a workspace.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI188' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI189 'apex_util.unlock_account': 'prefix': 'apex_util.unlock_account' 'body': """APEX_UTIL.UNLOCK_ACCOUNT( p_user_name => $1 );$2""" 'description': 'Sets a user account status to unlocked. Must be run by an authenticated workspace administrator in a page request context.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI189' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI190 'apex_util.url_encode': 'prefix': 'apex_util.url_encode' 'body': """APEX_UTIL.URL_ENCODE( p_url => $1 );$2""" 'description': 'The following special characters are encoded as follows:' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI190' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI191 'apex_util.workspace_account_days_left': 'prefix': 'apex_util.workspace_account_days_left' 'body': """APEX_UTIL.WORKSPACE_ACCOUNT_DAYS_LEFT( p_user_name => $1 );$2""" 'description': 'Returns the number of days remaining before the developer or workspace administrator account password expires. This function may be run in a page request context by any authenticated user.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI191' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_web_service.htm#AEAPI1935 'apex_web_service.blob2clobbase64': 'prefix': 'apex_web_service.blob2clobbase64' 'body': """APEX_WEB_SERVICE.BLOB2CLOBBASE64( p_blob => $1 );$2""" 'description': 'Use this function to convert a BLOB datatype into a CLOB that is base64 encoded. This is often used when sending a binary as an input to a Web service.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_web_service.htm#AEAPI1935' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_web_service.htm#AEAPI1940 'apex_web_service.clobbase642blob': 'prefix': 'apex_web_service.clobbase642blob' 'body': """APEX_WEB_SERVICE.CLOBBASE642BLOB( p_clob => $1 );$2""" 'description': 'Use this function to convert a CLOB datatype that is base64 encoded into a BLOB. This is often used when receiving output from a Web service that contains a binary parameter.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_web_service.htm#AEAPI1940' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_web_service.htm#AEAPI1945 'apex_web_service.make_request': 'prefix': 'apex_web_service.make_request' 'body': """APEX_WEB_SERVICE.MAKE_REQUEST( p_url => $1, p_envelope => $2 );$3""" 'description': 'Use this procedure to invoke a SOAP style Web service with the supplied SOAP envelope and store the results in a collection.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_web_service.htm#AEAPI1945' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_web_service.htm#AEAPI1950 'apex_web_service.make_request2': 'prefix': 'apex_web_service.make_request2' 'body': """APEX_WEB_SERVICE.MAKE_REQUEST2( p_url => $1, p_envelope => $2 );$3""" 'description': 'Use this function to invoke a SOAP style Web service with the supplied SOAP envelope returning the results in an XMLTYPE.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_web_service.htm#AEAPI1950' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_web_service.htm#AEAPI1955 'apex_web_service.make_rest_request': 'prefix': 'apex_web_service.make_rest_request' 'body': """APEX_WEB_SERVICE.MAKE_REST_REQUEST( p_url => $1, p_http_method => $2 );$3""" 'description': 'Use this function to invoke a RESTful style Web service supplying either name value pairs, a character based payload or a binary payload and returning the response in a CLOB.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_web_service.htm#AEAPI1955' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_web_service.htm#AEAPI29937 'apex_web_service.make_rest_request_b': 'prefix': 'apex_web_service.make_rest_request_b' 'body': """APEX_WEB_SERVICE.MAKE_REST_REQUEST_B( p_url => $1, p_http_method => $2 );$3""" 'description': 'Use this function to invoke a RESTful style Web service supplying either name value pairs, a character based payload or a binary payload and returning the response in a BLOB.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_web_service.htm#AEAPI29937' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_web_service.htm#AEAPI1960 'apex_web_service.parse_response': 'prefix': 'apex_web_service.parse_response' 'body': """APEX_WEB_SERVICE.PARSE_RESPONSE( p_collection_name => $1, p_xpath => $2 );$3""" 'description': 'Use this function to parse the response from a Web service that is stored in a collection and return the result as a VARCHAR2 type.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_web_service.htm#AEAPI1960' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_web_service.htm#AEAPI1965 'apex_web_service.parse_response_clob': 'prefix': 'apex_web_service.parse_response_clob' 'body': """APEX_WEB_SERVICE.PARSE_RESPONSE_CLOB( p_collection_name => $1, p_xpath => $2 );$3""" 'description': 'Use this function to parse the response from a Web service that is stored in a collection and return the result as a CLOB type.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_web_service.htm#AEAPI1965' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_web_service.htm#AEAPI1970 'apex_web_service.parse_xml': 'prefix': 'apex_web_service.parse_xml' 'body': """APEX_WEB_SERVICE.PARSE_XML( p_xml => $1, p_xpath => $2 );$3""" 'description': 'Use this function to parse the response from a Web service returned as an XMLTYPE and return the value requested as a VARCHAR2.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_web_service.htm#AEAPI1970' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_web_service.htm#AEAPI1975 'apex_web_service.parse_xml_clob': 'prefix': 'apex_web_service.parse_xml_clob' 'body': """APEX_WEB_SERVICE.PARSE_XML_CLOB( p_xml => $1, p_xpath => $2 );$3""" 'description': 'Use this function to parse the response from a Web service returned as an XMLTYPE and return the value requested as a CLOB.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_web_service.htm#AEAPI1975' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_zip.htm#AEAPI29945 'apex_zip.add_file': 'prefix': 'apex_zip.add_file' 'body': """APEX_ZIP.ADD_FILE( p_zipped_blob => $1, p_file_name => $2, p_content => $3 );$4""" 'description': 'This procedure adds a single file to a zip file.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_zip.htm#AEAPI29945' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_zip.htm#AEAPI29950 'apex_zip.finish': 'prefix': 'apex_zip.finish' 'body': """APEX_ZIP.FINISH( p_zipped_blob => $1 );$2""" 'description': 'This procedure completes the creation of a zip file after adding files with APEX_ZIP.ADD_FILE.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_zip.htm#AEAPI29950' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_zip.htm#AEAPI29955 'apex_zip.get_file_content': 'prefix': 'apex_zip.get_file_content' 'body': """APEX_ZIP.GET_FILE_CONTENT( p_zipped_blob => $1, p_file_name => $2 );$3""" 'description': 'This function returns the BLOB of a file contained in a provided zip file.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_zip.htm#AEAPI29955' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_zip.htm#AEAPI29962 'apex_zip.get_files': 'prefix': 'apex_zip.get_files' 'body': """APEX_ZIP.GET_FILES( p_zipped_blob => $1 );$2""" 'description': 'This function returns an array of file names, including the path, of a provided zip file that contains a BLOB.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_zip.htm#AEAPI29962' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm 'APP_AJAX_X01': 'prefix': 'APP_AJAX_X01' 'body': """APP_AJAX_X01""" 'description': 'APP_AJAX_Xnn specifies the values of the APP_AJAX_X01, ... APP_AJAX_X10 URL parameters most recently passed to or set within the show or accept modules. You typically use these variables in On Demand AJAX processes.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm 'APP_AJAX_X02': 'prefix': 'APP_AJAX_X02' 'body': """APP_AJAX_X02""" 'description': 'APP_AJAX_Xnn specifies the values of the APP_AJAX_X01, ... APP_AJAX_X10 URL parameters most recently passed to or set within the show or accept modules. You typically use these variables in On Demand AJAX processes.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm 'APP_AJAX_X03': 'prefix': 'APP_AJAX_X03' 'body': """APP_AJAX_X03""" 'description': 'APP_AJAX_Xnn specifies the values of the APP_AJAX_X01, ... APP_AJAX_X10 URL parameters most recently passed to or set within the show or accept modules. You typically use these variables in On Demand AJAX processes.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm 'APP_ALIAS': 'prefix': 'APP_ALIAS' 'body': """APP_ALIAS""" 'description': 'APP_ALIAS is an alphanumeric name for the current application. APP_ALIAS is different from the APP_ID in that the APP_ID must be unique over all workspaces and all applications hosted in one database. In contrast, APP_ALIAS must be unique within a workspace. For example, by using the same APP_ALIAS you can create the application, ABC, in two different workspaces. You can use APP_ALIAS almost anywhere APP_ID can be used. For example, f?p syntax can use an APP_ALIAS or an application ID as demonstrated in this example:' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm 'APP_DATE_TIME_FORMAT': 'prefix': 'APP_DATE_TIME_FORMAT' 'body': """APP_DATE_TIME_FORMAT""" 'description': 'APP_DATE_TIME_FORMAT is the application date time format of the application. This value reflects the format specified in the Application Date Time Format attribute of the Globalization settings of an application. If the Application Date Time Format is not set in an application, then a reference to APP_DATE_TIME_FORMAT returns the database session NLS date format and the NLS time format. Table 2-10 describes the supported syntax for referencing APP_DATE_TIME_FORMAT.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm 'APP_ID': 'prefix': 'APP_ID' 'body': """APP_ID""" 'description': 'APP_ID identifies the application ID of the currently executing application. Table 2-7 describes the supported syntax for referencing APP_ID.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm 'APP_IMAGES': 'prefix': 'APP_IMAGES' 'body': """APP_IMAGES""" 'description': 'Use this substitution string to reference uploaded images, JavaScript, and cascading style sheets that are specific to a given application and are not shared over many applications. If you upload a file and make it specific to an application, then you must use this substitution string, or bind variable. Table 2-11 describes the supported syntax for referencing APP_IMAGES.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm 'APP_NLS_DATE_FORMAT': 'prefix': 'APP_NLS_DATE_FORMAT' 'body': """APP_NLS_DATE_FORMAT""" 'description': 'APP_NLS_DATE_FORMAT is the application date format of the database session. This value reflects the format specified in the Application Date Format attribute of the Globalization settings of the application. However, if the Application Date Format is not set, then APP_NLS_DATE_FORMAT returns the NLS_DATE_FORMAT value of the database session at the start of the request to the Application Express engine' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm 'APP_NLS_TIMESTAMP_FORMAT': 'prefix': 'APP_NLS_TIMESTAMP_FORMAT' 'body': """APP_NLS_TIMESTAMP_FORMAT""" 'description': 'APP_NLS_TIMESTAMP_FORMAT is the application timestamp format of the database session. This value reflects the format specified in the Application Timestamp Format attribute of the Globalization settings of the application. However, if the Application Timestamp Format is not set, then APP_NLS_TIMESTAMP_FORMAT return the NLS_TIMESTAMP_FORMAT value of the database session at the start of the request to the Application Express engine.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm 'APP_NLS_TIMESTAMP_TZ_FORMAT': 'prefix': 'APP_NLS_TIMESTAMP_TZ_FORMAT' 'body': """APP_NLS_TIMESTAMP_TZ_FORMAT""" 'description': 'APP_NLS_TIMESTAMP_TZ_FORMAT is the application timestamp time zone format of the database session. This value reflects the format specified in the Application Timestamp Time Zone Format attribute of the Globalization settings of an application. However, if the Application Timestamp Time Zone Format is not set, then APP_NLS_TIMESTAMP_TZ_FORMAT returns the NLS_TIMESTAMP_TZ_FORMAT value of the database session at the start of the request to the Application Express engine.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm 'APP_PAGE_ALIAS': 'prefix': 'APP_PAGE_ALIAS' 'body': """APP_PAGE_ALIAS""" 'description': 'APP_PAGE_ALIAS is an alphanumeric name for the current application page. A page alias is not case-sensitive and it is an optional page attribute. APP_PAGE_ALIAS is unique within an application. You can use APP_PAGE_ALIAS almost anywhere APP_PAGE_ID can be used.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm 'APP_PAGE_ID': 'prefix': 'APP_PAGE_ID' 'body': """APP_PAGE_ID""" 'description': 'APP_PAGE_ID is the current application page ID. For example, if your application was on page 3, then the result would be 3. Using this syntax is useful when writing application components that must work generically in multiple applications.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm 'APP_REQUEST_DATA_HASH': 'prefix': 'APP_REQUEST_DATA_HASH' 'body': """APP_REQUEST_DATA_HASH""" 'description': 'APP_REQUEST_DATA_HASH is a hash value of the request, item name, and item value parts in the URL. It is primarily useful to detect whether two browser requests passed different parameters to APEX.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm 'APP_SESSION': 'prefix': 'APP_SESSION' 'body': """APP_SESSION""" 'description': 'APP_SESSION is the most commonly used built-in substitution strings. You can use this substitution string to create hypertext links between application pages that maintain a session state by passing the session number. Note that you can also use the substitution string SESSION in place of APP_SESSION.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm 'APP_SESSION_VISIBLE': 'prefix': 'APP_SESSION_VISIBLE' 'body': """APP_SESSION_VISIBLE""" 'description': 'APP_SESSION_VISIBLE is similar to the built-in substitution APP_SESSION. Use this substitution string to create hypertext links between application pages that maintain a session state by passing the session number. APP_SESSION_VISIBLE always returns \'0\' when users are not authenticated to an application and they are using the Zero Session ID feature of Oracle Application Express. ' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm 'APP_TITLE': 'prefix': 'APP_TITLE' 'body': """APP_TITLE""" 'description': 'APP_TITLE is an alphanumeric title for the current application. The title is derived from an application substitution string called APP_TITLE. If not defined the Logo attribute will be used if it is of type text.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm 'APP_UNIQUE_PAGE_ID': 'prefix': 'APP_UNIQUE_PAGE_ID' 'body': """APP_UNIQUE_PAGE_ID""" 'description': 'APP_UNIQUE_PAGE_ID is an integer generated from an Oracle sequence which is unique for each page view. This number is used by applications to prevent duplicate page submissions and can be used for other purposes. For example, to make a unique URL and avoid browser caching issues, you can embed this number in the request or debug column in calls to the f procedure.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm 'APP_USER': 'prefix': 'APP_USER' 'body': """APP_USER""" 'description': 'APP_USER is the current user running the application. Depending upon your authentication model, the value of the user is set differently. If the application is running using database authentication, then the value of the user is the same as the database pseudo column USER. If the application uses an authentication scheme that requires the user to authenticate, the value of APP_USER is set by the authentication scheme, usually to the user name used during authentication.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm 'AUTHENTICATED_URL_PREFIX': 'prefix': 'AUTHENTICATED_URL_PREFIX' 'body': """AUTHENTICATED_URL_PREFIX""" 'description': 'This application-level attribute identifies a valid authenticated prefix (that is, a logged in URL prefix). You can use a relative path or a full path beginning with http. This item is useful if your application can be run in both authenticated (logged in) and public (not logged in) modes. You can use AUTHENTICATED_URL_PREFIX to construct a link to an authenticated page. This item is most useful when using basic database authentication because changes to the URL can require authentication. ' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm 'BROWSER_LANGUAGE': 'prefix': 'BROWSER_LANGUAGE' 'body': """BROWSER_LANGUAGE""" 'description': 'BROWSER_LANGUAGE refers to the web browser\'s current language preference.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm 'CURRENT_PARENT_TAB_TEXT': 'prefix': 'CURRENT_PARENT_TAB_TEXT' 'body': """CURRENT_PARENT_TAB_TEXT""" 'description': 'CURRENT_PARENT_TAB_TEXT is most useful in page templates, but is only relevant for applications that use two-level tabs (that is, parent and standard tabs). Use this string to reference the parent tab label. This substitution string enables you to repeat the currently selected parent tab within the page template.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm 'DEBUG': 'prefix': 'DEBUG' 'body': """DEBUG""" 'description': 'Valid values for the DEBUG flag are Yes or No. Turning debug on shows details about application processing. If you write your own custom code, you may want to generate debug information only if the debug mode is set to Yes.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-url-syntax.htm 'f?p=APP_ID:APP_PAGE_ID:APP_SESSION:REQUEST:DEBUG:ClearCache:itemNames:itemValues:PRINTER_FRIENDLY': 'prefix': 'f?p=APP_ID:APP_PAGE_ID:APP_SESSION:REQUEST:DEBUG:ClearCache:itemNames:itemValues:PRINTER_FRIENDLY' 'body': """f?p=APP_ID:APP_PAGE_ID:APP_SESSION:REQUEST:DEBUG:ClearCache:itemNames:itemValues:PRINTER_FRIENDLY""" 'description': 'You can create links between pages in your application using f?p syntax' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-url-syntax.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm 'HOME_LINK': 'prefix': 'HOME_LINK' 'body': """HOME_LINK""" 'description': 'HOME_LINK is the home page of an application. The Application Express engine redirects to this location if no page is given and if no alternative page is dictated by the authentication scheme\'s logic. You define the Home URL on the User Interface Details page.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm 'IMAGE_PREFIX': 'prefix': 'IMAGE_PREFIX' 'body': """IMAGE_PREFIX""" 'description': 'The value of IMAGE_PREFIX determines the virtual path the web server uses to point to the images directory distributed with Oracle Application Express. To reference uploaded images, use WORKSPACE_IMAGES and APP_IMAGES. ' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm 'LOGIN_URL': 'prefix': 'LOGIN_URL' 'body': """LOGIN_URL""" 'description': 'Use LOGIN_URL to display a link to a login page for users that are not currently logged in.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm 'LOGOUT_URL': 'prefix': 'LOGOUT_URL' 'body': """LOGOUT_URL""" 'description': 'LOGOUT_URL is an application-level attribute used to identify the logout URL. This is a URL that navigates the user to a logout page or optionally directly logs out a user. To create a logout navigation bar entry, add a trailing period to &LOGOUT_URL (&LOGOUT_URL.). If you are coding a page template, use #LOGOUT_URL#.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm 'PRINTER_FRIENDLY': 'prefix': 'PRINTER_FRIENDLY' 'body': """PRINTER_FRIENDLY""" 'description': 'The value of PRINTER_FRIENDLY determines if the Application Express engine is running in print view mode. This setting can be referenced in conditions to eliminate elements not desired in a printed document from a page.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm 'PUBLIC_URL_PREFIX': 'prefix': 'PUBLIC_URL_PREFIX' 'body': """PUBLIC_URL_PREFIX""" 'description': 'PUBLIC_URL_PREFIX is an application-level attribute that identifies a URL to toggle out of a logged in mode to a public view.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm 'REQUEST': 'prefix': 'REQUEST' 'body': """REQUEST""" 'description': 'Each application button sets the value of REQUEST to the name of the button or to the request value attribute associated with the button, enabling accept processing to reference the name of the button when a user clicks it. In the f?p syntax, REQUEST may be set using the fourth argument.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm 'WORKSPACE_ID': 'prefix': 'WORKSPACE_ID' 'body': """WORKSPACE_ID""" 'description': 'Use this substitution string to reference the workspace ID.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm' 'rightLabelHTML': ''
true
'.source.sql, .source.pkb, .source.pks, .source.plsql': #URL: http://docs.oracle.com/database/apex-5.1/AEAPI/Global-Variables.htm 'apex_application.g_browser_language': 'prefix': 'apex_application.g_browser_language' 'body': """APEX_APPLICATION.G_BROWSER_LANGUAGE""" 'description': 'Refers to the web browser\'s current language preference.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/AEAPI/Global-Variables.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/AEAPI/Global-Variables.htm 'apex_application.g_debug': 'prefix': 'apex_application.g_debug' 'body': """APEX_APPLICATION.G_DEBUG""" 'description': 'Refers to whether debugging is currently switched on or off. Valid values for the DEBUG flag are \'Yes\' or \'No\'. Turning debug on shows details about application processing.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/AEAPI/Global-Variables.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/AEAPI/Global-Variables.htm 'apex_application.g_flow_id': 'prefix': 'apex_application.g_flow_id' 'body': """APEX_APPLICATION.G_FLOW_ID""" 'description': 'Specifies the ID of the currently running application.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/AEAPI/Global-Variables.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/AEAPI/Global-Variables.htm 'apex_application.g_flow_owner': 'prefix': 'apex_application.g_flow_owner' 'body': """APEX_APPLICATION.G_FLOW_OWNER""" 'description': 'Specifies the schema to parse for the currently running application.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/AEAPI/Global-Variables.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/AEAPI/Global-Variables.htm 'apex_application.g_flow_schema_owner': 'prefix': 'apex_application.g_flow_schema_owner' 'body': """APEX_APPLICATION.G_FLOW_SCHEMA_OWNER""" 'description': 'Refers to the owner of the Application Express schema.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/AEAPI/Global-Variables.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/AEAPI/Global-Variables.htm 'apex_application.g_flow_step_id': 'prefix': 'apex_application.g_flow_step_id' 'body': """APEX_APPLICATION.G_FLOW_STEP_ID""" 'description': 'Specifies the ID of the currently running page.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/AEAPI/Global-Variables.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/AEAPI/Global-Variables.htm 'apex_application.g_global_notification': 'prefix': 'apex_application.g_global_notification' 'body': """APEX_APPLICATION.G_GLOBAL_NOTIFICATION""" 'description': 'Specifies the application\'s global notification attribute.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/AEAPI/Global-Variables.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/AEAPI/Global-Variables.htm 'apex_application.g_home_link': 'prefix': 'apex_application.g_home_link' 'body': """APEX_APPLICATION.G_HOME_LINK""" 'description': 'Refers to the home page of an application. The Application Express engine redirects to this location if no page is given and if no alternative page is dictated by the authentication scheme\'s logic.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/AEAPI/Global-Variables.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/AEAPI/Global-Variables.htm 'apex_application.g_image_prefix': 'prefix': 'apex_application.g_image_prefix' 'body': """APEX_APPLICATION.G_IMAGE_PREFIX""" 'description': 'Refers to the virtual path the web server uses to point to the images directory distributed with Oracle Application Express.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/AEAPI/Global-Variables.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/AEAPI/Global-Variables.htm 'apex_application.g_login_url': 'prefix': 'apex_application.g_login_url' 'body': """APEX_APPLICATION.G_LOGIN_URL""" 'description': 'Used to display a link to a login page for users that are not currently logged in.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/AEAPI/Global-Variables.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/AEAPI/Global-Variables.htm 'apex_application.g_printer_friendly': 'prefix': 'apex_application.g_printer_friendly' 'body': """APEX_APPLICATION.G_PRINTER_FRIENDLY""" 'description': 'Refers to whether the Application Express engine is running in print view mode. This setting can be referenced in conditions to eliminate elements not desired in a printed document from a page.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/AEAPI/Global-Variables.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/AEAPI/Global-Variables.htm 'apex_application.g_proxy_server': 'prefix': 'apex_application.g_proxy_server' 'body': """APEX_APPLICATION.G_PROXY_SERVER""" 'description': 'Refers to the application attribute \'Proxy Server\'.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/AEAPI/Global-Variables.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/AEAPI/Global-Variables.htm 'apex_application.g_public_user': 'prefix': 'apex_application.g_public_user' 'body': """APEX_APPLICATION.G_PUBLIC_USER""" 'description': 'Refers to the Oracle schema used to connect to the database through the database access descriptor (DAD).' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/AEAPI/Global-Variables.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/AEAPI/Global-Variables.htm 'apex_application.g_request': 'prefix': 'apex_application.g_request' 'body': """APEX_APPLICATION.G_REQUEST""" 'description': 'Specifies the value of the request variable most recently passed to or set within the show or accept modules.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/AEAPI/Global-Variables.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/AEAPI/Global-Variables.htm 'apex_application.g_sysdate': 'prefix': 'apex_application.g_sysdate' 'body': """APEX_APPLICATION.G_SYSDATE""" 'description': 'Refers to the current date on the database server. this uses the DATE DATATYPE.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/AEAPI/Global-Variables.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/AEAPI/Global-Variables.htm 'apex_application.g_user': 'prefix': 'apex_application.g_user' 'body': """APEX_APPLICATION.G_USER""" 'description': 'Specifies the currently logged in user.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/AEAPI/Global-Variables.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app.htm#AEAPI552 'apex_application.help': 'prefix': 'apex_application.help' 'body': """APEX_APPLICATION.HELP""" 'description': 'This function outputs page and item level help text as formatted HTML. You can also use it to customize how help information is displayed in your application.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app.htm#AEAPI552' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app.htm#AEAPI2193 'apex_application.stop_apex_engine': 'prefix': 'apex_application.stop_apex_engine' 'body': """APEX_APPLICATION.STOP_APEX_ENGINE""" 'description': 'This procedure signals the Application Express engine to stop further processing and immediately exit to avoid adding additional HTML code to the HTTP buffer.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app.htm#AEAPI2193' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI566 'apex_application_install.clear_all': 'prefix': 'apex_application_install.clear_all' 'body': """APEX_APPLICATION_INSTALL.CLEAR_ALL""" 'description': 'This procedure clears all values currently maintained in the APEX_APPLICATION_INSTALL package.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI566' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI570 'apex_application_install.generate_application_id': 'prefix': 'apex_application_install.generate_application_id' 'body': """APEX_APPLICATION_INSTALL.GENERATE_APPLICATION_ID""" 'description': 'This procedure generates an available application ID on the instance and sets the application ID in APEX_APPLICATION_INSTALL.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI570' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI574 'apex_application_install.generate_offset': 'prefix': 'apex_application_install.generate_offset' 'body': """APEX_APPLICATION_INSTALL.GENERATE_OFFSET""" 'description': 'This procedure generates the offset value used during application import. Use the offset value to ensure that the metadata for the Application Express application definition does not collide with other metadata on the instance. For a new application installation, it is usually sufficient to call this procedure to have Application Express generate this offset value for you.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI574' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI578 'apex_application_install.get_application_alias': 'prefix': 'apex_application_install.get_application_alias' 'body': """APEX_APPLICATION_INSTALL.GET_APPLICATION_ALIAS""" 'description': 'This function gets the application alias for the application to be imported. This is only used if the application to be imported has an alias specified. An application alias must be unique within a workspace and it is recommended to be unique within an instance.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI578' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI582 'apex_application_install.get_application_id': 'prefix': 'apex_application_install.get_application_id' 'body': """APEX_APPLICATION_INSTALL.GET_APPLICATION_ID""" 'description': 'Use this function to get the application ID of the application to be imported. The application ID should either not exist in the instance or, if it does exist, must be in the workspace where the application is being imported to.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI582' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI586 'apex_application_install.get_application_name': 'prefix': 'apex_application_install.get_application_name' 'body': """APEX_APPLICATION_INSTALL.GET_APPLICATION_NAME""" 'description': 'This function gets the application name of the import application.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI586' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI30120 'apex_application_install.get_auto_install_sup_obj': 'prefix': 'apex_application_install.get_auto_install_sup_obj' 'body': """APEX_APPLICATION_INSTALL.GET_AUTO_INSTALL_SUP_OBJ""" 'description': 'Use this function to get the automatic install of supporting objects setting used during the import of an application. This setting is valid only for command line installs. If the setting is set to TRUE and the application export contains supporting objects, it automatically installs or upgrades the supporting objects when an application imports from the command line.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI30120' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI590 'apex_application_install.get_image_prefix': 'prefix': 'apex_application_install.get_image_prefix' 'body': """APEX_APPLICATION_INSTALL.GET_IMAGE_PREFIX""" 'description': 'This function gets the image prefix of the import application. Most Application Express instances use the default image prefix of /i/.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI590' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI594 'apex_application_install.get_offset': 'prefix': 'apex_application_install.get_offset' 'body': """APEX_APPLICATION_INSTALL.GET_OFFSET""" 'description': 'Use function to get the offset value used during the import of an application.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI594' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI598 'apex_application_install.get_proxy': 'prefix': 'apex_application_install.get_proxy' 'body': """APEX_APPLICATION_INSTALL.GET_PROXY""" 'description': 'Use this function to get the proxy server attribute of an application to be imported.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI598' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI602 'apex_application_install.get_schema': 'prefix': 'apex_application_install.get_schema' 'body': """APEX_APPLICATION_INSTALL.GET_SCHEMA""" 'description': 'Use this function to get the parsing schema ("owner") of the Application Express application.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI602' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI606 'apex_application_install.get_workspace_id': 'prefix': 'apex_application_install.get_workspace_id' 'body': """APEX_APPLICATION_INSTALL.GET_WORKSPACE_ID""" 'description': 'Use this function to get the workspace ID for the application to be imported.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI606' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI610 'apex_application_install.set_application_alias': 'prefix': 'apex_application_install.set_application_alias' 'body': """APEX_APPLICATION_INSTALL.SET_APPLICATION_ALIAS( p_application_alias => $1 );$2""" 'description': 'This procedure sets the application alias for the application to be imported. This is only used if the application to be imported has an alias specified. An application alias must be unique within a workspace and it is recommended to be unique within an instance.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI610' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI615 'apex_application_install.set_application_id': 'prefix': 'apex_application_install.set_application_id' 'body': """APEX_APPLICATION_INSTALL.SET_APPLICATION_ID( p_application_id => $1 );$2""" 'description': 'Use this procedure to set the application ID of the application to be imported. The application ID should either not exist in the instance or, if it does exist, must be in the workspace where the application is being imported to. This number must be a positive integer and must not be from the reserved range of Application Express application IDs.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI615' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI620 'apex_application_install.set_application_name': 'prefix': 'apex_application_install.set_application_name' 'body': """APEX_APPLICATION_INSTALL.SET_APPLICATION_NAME( p_application_name => $1 );$2""" 'description': 'This procedure sets the application name of the import application.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI620' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI30124 'apex_application_install.set_auto_install_sup_obj': 'prefix': 'apex_application_install.set_auto_install_sup_obj' 'body': """APEX_APPLICATION_INSTALL.SET_AUTO_INSTALL_SUP_OBJ( p_auto_install_sup_obj => $1 );$2""" 'description': 'This procedure sets the automatic install of supporting objects value used during application import. This setting is valid only for command line installs. If the value is set to TRUE and the application export contains supporting objects, it automatically installs or upgrades the supporting objects when an application imports from the command line.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI30124' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI625 'apex_application_install.set_image_prefix': 'prefix': 'apex_application_install.set_image_prefix' 'body': """APEX_APPLICATION_INSTALL.SET_IMAGE_PREFIX( p_image_prefix => $1 );$2""" 'description': 'This procedure sets the image prefix of the import application. Most Application Express instances use the default image prefix of /i/.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI625' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI630 'apex_application_install.set_offset': 'prefix': 'apex_application_install.set_offset' 'body': """APEX_APPLICATION_INSTALL.SET_OFFSET( p_offset => $1 );$2""" 'description': 'This procedure sets the offset value used during application import. Use the offset value to ensure that the metadata for the Application Express application definition does not collide with other metadata on the instance. For a new application installation, it is usually sufficient to call the generate_offset procedure to have Application Express generate this offset value for you.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI630' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI635 'apex_application_install.set_proxy': 'prefix': 'apex_application_install.set_proxy' 'body': """APEX_APPLICATION_INSTALL.SET_PROXY( p_proxy => $1 );$2""" 'description': 'Use this procedure to set the proxy server attributes of an application to be imported.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI635' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI640 'apex_application_install.set_schema': 'prefix': 'apex_application_install.set_schema' 'body': """APEX_APPLICATION_INSTALL.SET_SCHEMA( p_schema => $1 );$2""" 'description': 'Use this function to set the parsing schema ("owner") of the Application Express application. The database user of this schema must already exist, and this schema name must already be mapped to the workspace used to import the application.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI640' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI645 'apex_application_install.set_workspace_id': 'prefix': 'apex_application_install.set_workspace_id' 'body': """APEX_APPLICATION_INSTALL.SET_WORKSPACE_ID( p_workspace_id => $1 );$2""" 'description': 'Use this function to set the workspace ID for the application to be imported.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_app_inst.htm#AEAPI645' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_authentication.htm#AEAPI29133 'apex_authentication.callback': 'prefix': 'apex_authentication.callback' 'body': """APEX_AUTHENTICATION.CALLBACK( p_session_id => $1, p_app_id => $2, p_ajax_identifier => $3 );$4""" 'description': 'This procedure is the landing resource for external login pages. Call this procedure directly from the browser.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_authentication.htm#AEAPI29133' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_authentication.htm#AEAPI29139 'apex_authentication.get_callback_url': 'prefix': 'apex_authentication.get_callback_url' 'body': """APEX_AUTHENTICATION.GET_CALLBACK_URL""" 'description': 'This function is a plugin helper function to return a URL that is used as a landing request for external login pages. When the browser sends the request, it triggers the authentication plugin ajax callback, which can be used to log the user in.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_authentication.htm#AEAPI29139' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_authentication.htm#AEAPI29144 'apex_authentication.get_login_username_cookie': 'prefix': 'apex_authentication.get_login_username_cookie' 'body': """APEX_AUTHENTICATION.GET_LOGIN_USERNAME_COOKIE""" 'description': 'This function reads the cookie with the username from the default login page.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_authentication.htm#AEAPI29144' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_authentication.htm#AEAPI29149 'apex_authentication.is_authenticated': 'prefix': 'apex_authentication.is_authenticated' 'body': """APEX_AUTHENTICATION.IS_AUTHENTICATED""" 'description': 'This function checks if the user is authenticated in the session and returns TRUE if the user is already logged in or FALSE if the user of the current session is not yet authenticated.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_authentication.htm#AEAPI29149' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_authentication.htm#AEAPI29153 'apex_authentication.is_public_user': 'prefix': 'apex_authentication.is_public_user' 'body': """APEX_AUTHENTICATION.IS_PUBLIC_USER""" 'description': 'This function checks if the user is not authenticated in the session. A FALSE is returned if the user is already logged on or TRUE if the user of the current session is not yet authenticated.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_authentication.htm#AEAPI29153' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_authentication.htm#AEAPI29157 'apex_authentication.login': 'prefix': 'apex_authentication.login' 'body': """APEX_AUTHENTICATION.LOGIN( p_username => $1, p_password => $2 );$3""" 'description': 'This procedure authenticates the user in the current session.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_authentication.htm#AEAPI29157' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_authentication.htm#AEAPI29162 'apex_authentication.logout': 'prefix': 'apex_authentication.logout' 'body': """APEX_AUTHENTICATION.LOGOUT( p_session_id => $1, p_app_id => $2 );$3""" 'description': 'This procedure closes the session and redirects to the applicatio\'s home page. Call this procedure directly from the browser.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_authentication.htm#AEAPI29162' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_authentication.htm#AEAPI29167 'apex_authentication.post_login': 'prefix': 'apex_authentication.post_login' 'body': """APEX_AUTHENTICATION.POST_LOGIN( p_username => $1, p_password => $2 );$3""" 'description': 'This procedure authenticates the user in the current session. It runs a subset of login(), without steps 1 and 2. For steps, see "LOGIN Procedure." It is primarily useful in authentication schemes where user credentials checking is done externally to Application Express.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_authentication.htm#AEAPI29167' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_authentication.htm#AEAPI29172 'apex_authentication.send_login_username_cookie': 'prefix': 'apex_authentication.send_login_username_cookie' 'body': """APEX_AUTHENTICATION.SEND_LOGIN_USERNAME_COOKIE( p_username => $1 );$2""" 'description': 'This procedure sends a cookie with the username.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_authentication.htm#AEAPI29172' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_authorization.htm#AEAPI29592 'apex_authorization.enable_dynamic_groups': 'prefix': 'apex_authorization.enable_dynamic_groups' 'body': """APEX_AUTHORIZATION.ENABLE_DYNAMIC_GROUPS( p_group_names => $1 );$2""" 'description': 'This procedure enables groups in the current session. These groups do not have to be created in the Application Express workspace repository, but can, for example, be loaded from a LDAP repository. Enabling a group that exists in the workspace repository and has other groups granted to it, also enables the granted groups.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_authorization.htm#AEAPI29592' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_authorization.htm#AEAPI29597 'apex_authorization.is_authorized': 'prefix': 'apex_authorization.is_authorized' 'body': """APEX_AUTHORIZATION.IS_AUTHORIZED( p_authorization_name => $1 );$2""" 'description': 'Determine if the current user passes the authorization with name p_authorization_name. For performance reasons, authorization results are cached. Because of this, the function may not always evaluate the authorization when called, but take the result out of the cache.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_authorization.htm#AEAPI29597' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_authorization.htm#AEAPI29604 'apex_authorization.reset_cache': 'prefix': 'apex_authorization.reset_cache' 'body': """APEX_AUTHORIZATION.RESET_CACHE""" 'description': 'This procedure resets the authorization caches for the session and forces a re-evaluation when an authorization is checked next.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_authorization.htm#AEAPI29604' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI680 'apex_collection.add_member': 'prefix': 'apex_collection.add_member' 'body': """APEX_COLLECTION.ADD_MEMBER( p_collection_name => $1 );$2""" 'description': 'Use this procedure to add a new member to an existing collection. An error is raised if the specified collection does not exist for the current user in the same session for the current Application ID. Gaps are not used when adding a new member, so an existing collection with members of sequence IDs (1,2,5,8) adds the new member with a sequence ID of 9.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI680' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI685 'apex_collection.add_member2': 'prefix': 'apex_collection.add_member2' 'body': """APEX_COLLECTION.ADD_MEMBER2( p_collection_name => $1 );$2""" 'description': 'Use this function to add a new member to an existing collection. Calling this function returns the sequence ID of the newly added member. An error is raised if the specified collection does not exist for the current user in the same session for the current Application ID. Gaps are not used when adding a new member, so an existing collection with members of sequence IDs (1,2,5,8) adds the new member with a sequence ID of 9.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI685' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI690 'apex_collection.add_members': 'prefix': 'apex_collection.add_members' 'body': """APEX_COLLECTION.ADD_MEMBERS( p_collection_name => $1 );$2""" 'description': 'Use this procedure to add an array of members to a collection. An error is raised if the specified collection does not exist for the current user in the same session for the current Application ID. Gaps are not used when adding a new member, so an existing collection with members of sequence IDs (1,2,5,8) adds the new member with a sequence ID of 9. The count of elements in the p_c001 PL/SQL table is used as the total number of items across all PL/SQL tables. For example, if p_c001.count is 2 and p_c002.count is 10, only 2 members are added. If p_c001 is null an application error is raised.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI690' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI695 'apex_collection.collection_exists': 'prefix': 'apex_collection.collection_exists' 'body': """APEX_COLLECTION.COLLECTION_EXISTS( p_collection_name => $1 );$2""" 'description': 'Use this function to determine if a collection exists. A TRUE is returned if the specified collection exists for the current user in the current session for the current Application ID, otherwise FALSE is returned.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI695' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI700 'apex_collection.collection_has_changed': 'prefix': 'apex_collection.collection_has_changed' 'body': """APEX_COLLECTION.COLLECTION_HAS_CHANGED( p_collection_name => $1 );$2""" 'description': 'Use this function to determine if a collection has changed since it was created or the collection changed flag was reset.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI700' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI705 'apex_collection.collection_member_count': 'prefix': 'apex_collection.collection_member_count' 'body': """APEX_COLLECTION.COLLECTION_MEMBER_COUNT( p_collection_name => $1 );$2""" 'description': 'Use this function to get the total number of members for the named collection. If gaps exist, the total member count returned is not equal to the highest sequence ID in the collection. If the named collection does not exist for the current user in the current session, an error is raised.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI705' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI710 'apex_collection.create_collection': 'prefix': 'apex_collection.create_collection' 'body': """APEX_COLLECTION.CREATE_COLLECTION( p_collection_name => $1 );$2""" 'description': 'Use this procedure to create an empty collection that does not already exist. If a collection exists with the same name for the current user in the same session for the current Application ID, an application error is raised.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI710' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI720 'apex_collection.create_collection_from_query': 'prefix': 'apex_collection.create_collection_from_query' 'body': """APEX_COLLECTION.CREATE_COLLECTION_FROM_QUERY( p_collection_name => $1, p_query => $2 );$3""" 'description': 'Use this procedure to create a collection from a supplied query. The query is parsed as the application owner. This method can be used with a query with up to 50 columns in the SELECT clause. These columns in the SELECT clause populates the 50 character attributes of the collection (C001 through C050). If a collection exists with the same name for the current user in the same session for the current Application ID, an application error is raised.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI720' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI725 'apex_collection.create_collection_from_query2': 'prefix': 'apex_collection.create_collection_from_query2' 'body': """APEX_COLLECTION.CREATE_COLLECTION_FROM_QUERY2( p_collection_name => $1, p_query => $2 );$3""" 'description': 'Use this procedure to create a collection from a supplied query. This method is identical to CREATE_COLLECTION_FROM_QUERY, however, the first 5 columns of the SELECT clause must be numeric and the next 5 must be date. After the numeric and date columns, there can be up to 50 character columns in the SELECT clause. The query is parsed as the application owner. If a collection exists with the same name for the current user in the same session for the current Application ID, an application error is raised.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI725' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI730 'apex_collection.create_collection_from_query_b': 'prefix': 'apex_collection.create_collection_from_query_b' 'body': """APEX_COLLECTION.CREATE_COLLECTION_FROM_QUERY_B( p_collection_name => $1, p_query => $2, p_names => $3, p_values => $4, p_max_row_count => $5 );$6""" 'description': 'Use this procedure to create a collection from a supplied query using bulk operations. This method offers significantly faster performance than the CREATE_COLLECTION_FROM_QUERY method. The query is parsed as the application owner. If a collection exists with the same name for the current user in the same session for the current Application ID, an application error is raised.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI730' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI735 'apex_collection.create_collection_from_queryb2': 'prefix': 'apex_collection.create_collection_from_queryb2' 'body': """APEX_COLLECTION.CREATE_COLLECTION_FROM_QUERYB2( p_collection_name => $1, p_query => $2, p_names => $3, p_values => $4, p_max_row_count => $5 );$6""" 'description': 'Use this procedure to create a collection from a supplied query using bulk operations. This method offers significantly faster performance than the CREATE_COLLECTION_FROM_QUERY_2 method. The query is parsed as the application owner. If a collection exists with the same name for the current user in the same session for the current Application ID, an application error is raised. It is identical to the CREATE_COLLECTION_FROM_QUERY_B, however, the first five columns of the SELECT clause must be numeric and the next five columns must be date. After the date columns, there can be up to 50 character columns in the SELECT clause' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI735' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI715 'apex_collection.create_or_truncate_collection': 'prefix': 'apex_collection.create_or_truncate_collection' 'body': """APEX_COLLECTION.CREATE_OR_TRUNCATE_COLLECTION( p_collection_name => $1 );$2""" 'description': 'Use this procedure to create a collection. If a collection exists with the same name for the current user in the same session for the current Application ID, all members of the collection are removed. In other words, the named collection is truncated.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI715' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI740 'apex_collection.delete_all_collections': 'prefix': 'apex_collection.delete_all_collections' 'body': """APEX_COLLECTION.DELETE_ALL_COLLECTIONS""" 'description': 'Use this procedure to delete all collections that belong to the current user in the current Application Express session for the current Application ID.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI740' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI744 'apex_collection.delete_all_collections_session': 'prefix': 'apex_collection.delete_all_collections_session' 'body': """APEX_COLLECTION.DELETE_ALL_COLLECTIONS_SESSION""" 'description': 'Use this procedure to delete all collections that belong to the current user in the current Application Express session regardless of the Application ID.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI744' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI748 'apex_collection.delete_collection': 'prefix': 'apex_collection.delete_collection' 'body': """APEX_COLLECTION.DELETE_COLLECTION( p_collection_name => $1 );$2""" 'description': 'Use this procedure to delete a named collection. All members that belong to the collection are removed and the named collection is dropped. If the named collection does not exist for the same user in the current session for the current Application ID, an application error is raised.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI748' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI753 'apex_collection.delete_member': 'prefix': 'apex_collection.delete_member' 'body': """APEX_COLLECTION.DELETE_MEMBER( p_collection_name => $1, p_seq => $2 );$3""" 'description': 'Use this procedure to delete a specified member from a given named collection. If the named collection does not exist for the same user in the current session for the current Application ID, an application error is raised.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI753' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI758 'apex_collection.delete_members': 'prefix': 'apex_collection.delete_members' 'body': """APEX_COLLECTION.DELETE_MEMBERS( p_collection_name => $1, p_attr_number => $2, p_attr_value => $3 );$4""" 'description': 'Use this procedure to delete all members from a given named collection where the attribute specified by the attribute number equals the supplied value. If the named collection does not exist for the same user in the current session for the current Application ID, an application error is raised. If the attribute number specified is invalid or outside the range of 1 to 50, an error is raised.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI758' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI763 'apex_collection.get_member_md5': 'prefix': 'apex_collection.get_member_md5' 'body': """APEX_COLLECTION.GET_MEMBER_MD5( p_collection_name => $1, p_seq => $2 );$3""" 'description': 'Use this function to compute and return the message digest of the attributes for the member specified by the sequence ID. This computation of message digest is equal to the computation performed natively by collections. Thus, the result of this function could be compared to the MD5_ORIGINAL column of the view wwv_flow_collections.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI763' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI768 'apex_collection.merge_members': 'prefix': 'apex_collection.merge_members' 'body': """APEX_COLLECTION.MERGE_MEMBERS( p_collection_name => $1 );$2""" 'description': 'Use this procedure to merge members of the given named collection with the values passed in the arrays. If the named collection does not exist one is created. If a p_init_query is provided, the collection is created from the supplied SQL query. If the named collection exists, the following occurs:' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI768' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI773 'apex_collection.move_member_down': 'prefix': 'apex_collection.move_member_down' 'body': """APEX_COLLECTION.MOVE_MEMBER_DOWN( p_collection_name => $1, p_seq => $2 );$3""" 'description': 'Use this procedure to adjust the sequence ID of specified member in the given named collection down by one (subtract one), swapping sequence ID with the one it is replacing. For example, 3 becomes 2 and 2 becomes 3. If a collection does not exist with the specified name for the current user in the same session and for the current Application ID, an application error is raised. If the member specified by sequence ID p_seq does not exist, an application error is raised. If the member specified by sequence ID p_seq is the lowest sequence in the collection, an application error is NOT returned.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI773' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI778 'apex_collection.move_member_up': 'prefix': 'apex_collection.move_member_up' 'body': """APEX_COLLECTION.MOVE_MEMBER_UP( p_collection_name => $1, p_seq => $2 );$3""" 'description': 'Use this procedure to adjust the sequence ID of specified member in the given named collection up by one (add one), swapping sequence ID with the one it is replacing. For example, 2 becomes 3 and 3 becomes 2. If a collection does not exist with the specified name for the current user in the same session and for the current Application ID, an application error is raised. If the member specified by sequence ID p_seq does not exist, an application error is raised. If the member specified by sequence ID p_seq is the highest sequence in the collection, an application error is not returned.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI778' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI783 'apex_collection.resequence_collection': 'prefix': 'apex_collection.resequence_collection' 'body': """APEX_COLLECTION.RESEQUENCE_COLLECTION( p_collection_name => $1 );$2""" 'description': 'For a named collection, use this procedure to update the seq_id value of each member so that no gaps exist in the sequencing. For example, a collection with the following set of sequence IDs (1,2,3,5,8,9) becomes (1,2,3,4,5,6). If a collection does not exist with the specified name for the current user in the same session and for the current Application ID, an application error is raised.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI783' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI788 'apex_collection.reset_collection_changed': 'prefix': 'apex_collection.reset_collection_changed' 'body': """APEX_COLLECTION.RESET_COLLECTION_CHANGED( p_collection_name => $1 );$2""" 'description': 'Use this procedure to reset the collection changed flag (mark as not changed) for a given collection. If a collection does not exist with the specified name for the current user in the same session and for the current Application ID, an application error is raised.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI788' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI793 'apex_collection.reset_collection_changed_all': 'prefix': 'apex_collection.reset_collection_changed_all' 'body': """APEX_COLLECTION.RESET_COLLECTION_CHANGED_ALL""" 'description': 'Use this procedure to reset the collection changed flag (mark as not changed) for all collections in the use\'s current session.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI793' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI797 'apex_collection.sort_members': 'prefix': 'apex_collection.sort_members' 'body': """APEX_COLLECTION.SORT_MEMBERS( p_collection_name => $1, p_sort_on_column_number => $2 );$3""" 'description': 'Use this procedure to reorder the members of a given collection by the column number specified by p_sort_on_column_number. This sorts the collection by a particular column/attribute in the collection and reassigns the sequence IDs of each number such that no gaps exist. If a collection does not exist with the specified name for the current user in the same session and for the current Application ID, an application error is raised.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI797' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI802 'apex_collection.truncate_collection': 'prefix': 'apex_collection.truncate_collection' 'body': """APEX_COLLECTION.TRUNCATE_COLLECTION( p_collection_name => $1 );$2""" 'description': 'Use this procedure to remove all members from a named collection. If a collection does not exist with the specified name for the current user in the same session and for the current Application ID, an application error is raised.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI802' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI807 'apex_collection.update_member': 'prefix': 'apex_collection.update_member' 'body': """APEX_COLLECTION.UPDATE_MEMBER( p_collection_name => $1 );$2""" 'description': 'Use this procedure to update the specified member in the given named collection. If a collection does not exist with the specified name for the current user in the same session and for the current Application ID, an application error is raised. If the member specified by sequence ID p_seq does not exist, an application error is raised.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI807' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI817 'apex_collection.update_member_attribute': 'prefix': 'apex_collection.update_member_attribute' 'body': """APEX_COLLECTION.UPDATE_MEMBER_ATTRIBUTE( p_collection_name => $1, p_seq => $2, p_attr_number => $3, p_attr_value => $4 );$5""" 'description': 'Update the specified member attribute in the given named collection. If a collection does not exist with the specified name for the current user in the same session for the current Application ID, an application error is raised. If the member specified by sequence ID p_seq does not exist, an application error is raised. If the attribute number specified is invalid or outside the range 1-50, an error is raised. Any attribute value exceeding 4,000 bytes are truncated to 4,000 bytes.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI817' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI822 'apex_collection.update_member_attribute2': 'prefix': 'apex_collection.update_member_attribute2' 'body': """APEX_COLLECTION.UPDATE_MEMBER_ATTRIBUTE2( p_collection_name => $1, p_seq => $2, p_clob_number => $3, p_clob_value => $4 );$5""" 'description': 'Update the specified CLOB member attribute in the given named collection. If a collection does not exist with the specified name for the current user in the same session for the current Application ID, an application error is raised. If the member specified by sequence ID p_seq does not exist, an application error is raised. If the attribute number specified is invalid or outside the valid range (currently only 1 for CLOB), an error is raised.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI822' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI827 'apex_collection.update_member_attribute3': 'prefix': 'apex_collection.update_member_attribute3' 'body': """APEX_COLLECTION.UPDATE_MEMBER_ATTRIBUTE3( p_collection_name => $1, p_seq => $2, p_blob_number => $3, p_blob_value => $4 );$5""" 'description': 'Update the specified BLOB member attribute in the given named collection. If a collection does not exist with the specified name for the current user in the same session for the current Application ID, an application error is raised. If the member specified by sequence ID p_seq does not exist, an application error is raised. If the attribute number specified is invalid or outside the valid range (currently only 1 for BLOB), an error is raised.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI827' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI832 'apex_collection.update_member_attribute4': 'prefix': 'apex_collection.update_member_attribute4' 'body': """APEX_COLLECTION.UPDATE_MEMBER_ATTRIBUTE4( p_collection_name => $1, p_seq => $2, p_xmltype_number => $3, p_xmltype_value => $4 );$5""" 'description': 'Update the specified XMLTYPE member attribute in the given named collection. If a collection does not exist with the specified name for the current user in the same session for the current Application ID, an application error is raised. If the member specified by sequence ID p_seq does not exist, an application error is raised. If the attribute number specified is invalid or outside the valid range (currently only 1 for XMLTYPE), an error is raised.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI832' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI837 'apex_collection.update_member_attribute5': 'prefix': 'apex_collection.update_member_attribute5' 'body': """APEX_COLLECTION.UPDATE_MEMBER_ATTRIBUTE5( p_collection_name => $1, p_seq => $2, p_attr_number => $3, p_number_value => $4 );$5""" 'description': 'Update the specified NUMBER member attribute in the given named collection. If a collection does not exist with the specified name for the current user in the same session for the current Application ID, an application error is raised. If the member specified by sequence ID p_seq does not exist, an application error is raised. If the attribute number specified is invalid or outside the valid range (currently only 1 through 5 for NUMBER), an error is raised.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI837' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI842 'apex_collection.update_member_attribute6': 'prefix': 'apex_collection.update_member_attribute6' 'body': """APEX_COLLECTION.UPDATE_MEMBER_ATTRIBUTE6( p_collection_name => $1, p_seq => $2, p_attr_number => $3, p_date_value => $4 );$5""" 'description': 'Update the specified DATE member attribute in the given named collection. If a collection does not exist with the specified name for the current user in the same session for the current Application ID, an application error is raised. If the member specified by sequence ID p_seq does not exist, an application error is raised. If the attribute number specified is invalid or outside the valid range (currently only 1 through 5 for DATE), an error is raised.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI842' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI812 'apex_collection.update_members': 'prefix': 'apex_collection.update_members' 'body': """APEX_COLLECTION.UPDATE_MEMBERS( p_collection_name => $1 );$2""" 'description': 'Use this procedure to update the array of members for the given named collection. If a collection does not exist with the specified name for the current user in the same session and for the current Application ID, an application error is raised. The count of elements in the p_seq PL/SQL table is used as the total number of items across all PL/SQL tables. That is, if p_seq.count = 2 and p_c001.count = 10, only 2 members are updaapex_application_globalted. If p_seq is null, an application error is raised. If the member specified by sequence ID p_seq does not exist, an application error is raised.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_collection.htm#AEAPI812' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_css.htm#AEAPI847 'apex_css.add': 'prefix': 'apex_css.add' 'body': """APEX_CSS.ADD( p_css => $1 );$2""" 'description': 'This procedure adds a CSS style snippet that is included inline in the HTML output. Use this procedure to add new CSS style declarations.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_css.htm#AEAPI847' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_css.htm#AEAPI29177 'apex_css.add_3rd_party_library_file': 'prefix': 'apex_css.add_3rd_party_library_file' 'body': """APEX_CSS.ADD_3RD_PARTY_LIBRARY_FILE( p_library => $1, p_file_name => $2 );$3""" 'description': 'This procedure adds the link tag to load a 3rd party css file and also takes into account the specified Content Delivery Network for the application. Supported libraries include: jQuery, jQueryUI, jQueryMobile.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_css.htm#AEAPI29177' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_css.htm#AEAPI852 'apex_css.add_file': 'prefix': 'apex_css.add_file' 'body': """APEX_CSS.ADD_FILE( p_name => $1 );$2""" 'description': 'This procedure adds the link tag to load a CSS library. If a library has already been added, it will not be added a second time.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_css.htm#AEAPI852' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI219 'apex_custom_auth.application_page_item_exists': 'prefix': 'apex_custom_auth.application_page_item_exists' 'body': """APEX_CUSTOM_AUTH.APPLICATION_PAGE_ITEM_EXISTS( p_item_name => $1 );$2""" 'description': 'This function checks for the existence of page-level item within the current page of an application. This function requires the parameter p_item_name. This function returns a Boolean value (TRUE or FALSE).' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI219' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI220 'apex_custom_auth.current_page_is_public': 'prefix': 'apex_custom_auth.current_page_is_public' 'body': """APEX_CUSTOM_AUTH.CURRENT_PAGE_IS_PUBLIC""" 'description': 'This function checks whether the current pag\'s authentication attribute is set to Page Is Public and returns a Boolean value (TRUE or FALSE)' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI220' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI221 'apex_custom_auth.define_user_session': 'prefix': 'apex_custom_auth.define_user_session' 'body': """APEX_CUSTOM_AUTH.DEFINE_USER_SESSION( p_user => $1, p_session_id => $2 );$3""" 'description': 'This procedure combines the SET_USER and SET_SESSION_ID procedures to create one call.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI221' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI222 'apex_custom_auth.get_cookie_props': 'prefix': 'apex_custom_auth.get_cookie_props' 'body': """APEX_CUSTOM_AUTH.GET_COOKIE_PROPS( p_app_id => $1, p_cookie_name => $2, p_cookie_path => $3, p_cookie_domain => $4, p_secure => $5 );$6""" 'description': 'This procedure obtains the properties of the session cookie used in the current authentication scheme for the specified application. These properties can be viewed directly in the Application Builder by viewing the authentication scheme cookie attributes.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI222' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI223 'apex_custom_auth.get_ldap_props': 'prefix': 'apex_custom_auth.get_ldap_props' 'body': """APEX_CUSTOM_AUTH.GET_LDAP_PROPS( p_ldap_host => $1, p_ldap_port => $2, p_use_ssl => $3, p_use_exact_dn => $4, p_search_filter => $5, p_ldap_dn => $6, p_ldap_edit_function => $7 );$8""" 'description': 'This procedure obtains the LDAP attributes of the current authentication scheme for the current application. These properties can be viewed directly in Application Builder by viewing the authentication scheme attributes.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI223' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI224 'apex_custom_auth.get_next_session_id': 'prefix': 'apex_custom_auth.get_next_session_id' 'body': """APEX_CUSTOM_AUTH.GET_NEXT_SESSION_ID""" 'description': 'This function generates the next session ID from the Oracle Application Express sequence generator. This function returns a number.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI224' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI227 'apex_custom_auth.get_security_group_id': 'prefix': 'apex_custom_auth.get_security_group_id' 'body': """APEX_CUSTOM_AUTH.GET_SECURITY_GROUP_ID""" 'description': 'This function returns a number with the value of the security group ID that identifies the workspace of the current user.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI227' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI228 'apex_custom_auth.get_session_id': 'prefix': 'apex_custom_auth.get_session_id' 'body': """APEX_CUSTOM_AUTH.GET_SESSION_ID""" 'description': 'This function returns APEX_APPLICATION.G_INSTANCE global variable. GET_SESSION_ID returns a number.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI228' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI225 'apex_custom_auth.get_session_id_from_cookie': 'prefix': 'apex_custom_auth.get_session_id_from_cookie' 'body': """APEX_CUSTOM_AUTH.GET_SESSION_ID_FROM_COOKIE""" 'description': 'This function returns the Oracle Application Express session ID located by the session cookie in a page request in the current browser session.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI225' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI229 'apex_custom_auth.get_user': 'prefix': 'apex_custom_auth.get_user' 'body': """APEX_CUSTOM_AUTH.GET_USER""" 'description': 'This function returns the APEX_APPLICATION.G_USER global variable (VARCHAR2).' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI229' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI226 'apex_custom_auth.get_username': 'prefix': 'apex_custom_auth.get_username' 'body': """APEX_CUSTOM_AUTH.GET_USERNAME""" 'description': 'This function returns user name registered with the current Oracle Application Express session in the internal sessions table. This user name is usually the same as the authenticated user running the current page.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI226' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI230 'apex_custom_auth.is_session_valid': 'prefix': 'apex_custom_auth.is_session_valid' 'body': """APEX_CUSTOM_AUTH.IS_SESSION_VALID""" 'description': 'This function is a Boolean result obtained from executing the current applicatio\'s authentication scheme to determine if a valid session exists. This function returns the Boolean result of the authentication schem\'s page sentry.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI230' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI231 'apex_custom_auth.login': 'prefix': 'apex_custom_auth.login' 'body': """APEX_CUSTOM_AUTH.LOGIN""" 'description': 'Also referred to as the "Login API," this procedure performs authentication and session registration.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI231' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI232 'apex_custom_auth.logout': 'prefix': 'apex_custom_auth.logout' 'body': """APEX_CUSTOM_AUTH.LOGOUT""" 'description': 'Note:' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI232' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI233 'apex_custom_auth.post_login': 'prefix': 'apex_custom_auth.post_login' 'body': """APEX_CUSTOM_AUTH.POST_LOGIN""" 'description': 'This procedure performs session registration, assuming the authentication step has been completed. It can be called only from within an Oracle Application Express application page context.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI233' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI234 'apex_custom_auth.session_id_exists': 'prefix': 'apex_custom_auth.session_id_exists' 'body': """APEX_CUSTOM_AUTH.SESSION_ID_EXISTS""" 'description': 'This function returns a Boolean result based on the global package variable containing the current Oracle Application Express session ID. Returns TRUE if the result is a positive number and returns FALSE if the result is a negative number.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI234' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI236 'apex_custom_auth.set_session_id': 'prefix': 'apex_custom_auth.set_session_id' 'body': """APEX_CUSTOM_AUTH.SET_SESSION_ID( p_session_id => $1 );$2""" 'description': 'This procedure sets APEX_APPLICATION.G_INSTANCE global variable. This procedure requires the parameter P_SESSION_ID (NUMBER) which specifies a session ID.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI236' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI237 'apex_custom_auth.set_session_id_to_next_value': 'prefix': 'apex_custom_auth.set_session_id_to_next_value' 'body': """APEX_CUSTOM_AUTH.SET_SESSION_ID_TO_NEXT_VALUE""" 'description': 'This procedure combines the operation of GET_NEXT_SESSION_ID and SET_SESSION_ID in one call.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI237' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI235 'apex_custom_auth.set_user': 'prefix': 'apex_custom_auth.set_user' 'body': """APEX_CUSTOM_AUTH.SET_USER( p_user => $1 );$2""" 'description': 'This procedure sets the APEX_APPLICATION.G_USER global variable. SET_USER requires the parameter P_USER (VARCHAR2) which defines a user ID.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_auth.htm#AEAPI235' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_debug.htm#AEAPI29185 'apex_debug.disable': 'prefix': 'apex_debug.disable' 'body': """APEX_DEBUG.DISABLE""" 'description': 'This procedure turns off debug messaging.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_debug.htm#AEAPI29185' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_debug.htm#AEAPI29189 'apex_debug.enable': 'prefix': 'apex_debug.enable' 'body': """APEX_DEBUG.ENABLE""" 'description': 'This procedure turns on debug messaging. You can specify, by level of importance, the types of debug messages that are monitored.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_debug.htm#AEAPI29189' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_debug.htm#AEAPI29194 'apex_debug.enter': 'prefix': 'apex_debug.enter' 'body': """APEX_DEBUG.ENTER( p_routine_name => $1 );$2""" 'description': 'This procedure logs messages at level c_log_level_app_enter. Use APEX_DEBUG.ENTER() to log the routine name and i\'s arguments at the beginning of a procedure or function.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_debug.htm#AEAPI29194' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_debug.htm#AEAPI29199 'apex_debug.error': 'prefix': 'apex_debug.error' 'body': """APEX_DEBUG.ERROR( p_message => $1 );$2""" 'description': 'This procedure logs messages at level c_log_level_error. This procedure always logs, even if debug mode is turned off.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_debug.htm#AEAPI29199' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_debug.htm#AEAPI29204 'apex_debug.info': 'prefix': 'apex_debug.info' 'body': """APEX_DEBUG.INFO( p_message => $1 );$2""" 'description': 'This procedure logs messages at level c_log_level_info.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_debug.htm#AEAPI29204' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_debug.htm#AEAPI29209 'apex_debug.log_dbms_output': 'prefix': 'apex_debug.log_dbms_output' 'body': """APEX_DEBUG.LOG_DBMS_OUTPUT""" 'description': 'This procedure writes the contents of dbms_output.get_lines to the debug log. Messages of legacy applications which use dbms_output are copied into the debug log. In order to write to the debug log, dbms_output.enable must be performed' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_debug.htm#AEAPI29209' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_debug.htm#AEAPI29213 'apex_debug.log_long_message': 'prefix': 'apex_debug.log_long_message' 'body': """APEX_DEBUG.LOG_LONG_MESSAGE""" 'description': 'Use this procedure to emit debug messages from PLSQL components of Application Express, or PLSQL procedures and functions. This procedure is the same as LOG_MESSAGE, except it allows logging of much longer messages, which are subsequently split into 4,000 character chunks in the debugging output (because a single debug message is constrained to 4,000 characters).' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_debug.htm#AEAPI29213' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_debug.htm#AEAPI29218 'apex_debug.log_message': 'prefix': 'apex_debug.log_message' 'body': """APEX_DEBUG.LOG_MESSAGE""" 'description': 'This procedure logs a debug message.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_debug.htm#AEAPI29218' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_debug.htm#AEAPI29223 'apex_debug.log_page_session_state': 'prefix': 'apex_debug.log_page_session_state' 'body': """APEX_DEBUG.LOG_PAGE_SESSION_STATE""" 'description': 'This procedure logs the sessio\'s item values.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_debug.htm#AEAPI29223' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_debug.htm#AEAPI29228 'apex_debug.message': 'prefix': 'apex_debug.message' 'body': """APEX_DEBUG.MESSAGE( p_message => $1 );$2""" 'description': 'This procedure logs a formatted debug message, general version.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_debug.htm#AEAPI29228' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_debug.htm#AEAPI29233 'apex_debug.remove_debug_by_age': 'prefix': 'apex_debug.remove_debug_by_age' 'body': """APEX_DEBUG.REMOVE_DEBUG_BY_AGE( p_application_id => $1, p_older_than_days => $2 );$3""" 'description': 'Use this procedure to delete from the debug message log all data older than the specified number of days.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_debug.htm#AEAPI29233' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_debug.htm#AEAPI29238 'apex_debug.remove_debug_by_app': 'prefix': 'apex_debug.remove_debug_by_app' 'body': """APEX_DEBUG.REMOVE_DEBUG_BY_APP( p_application_id => $1 );$2""" 'description': 'Use this procedure to delete from the debug message log all data belonging to a specified application.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_debug.htm#AEAPI29238' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_debug.htm#AEAPI29243 'apex_debug.remove_debug_by_view': 'prefix': 'apex_debug.remove_debug_by_view' 'body': """APEX_DEBUG.REMOVE_DEBUG_BY_VIEW( p_application_id => $1, p_view_id => $2 );$3""" 'description': 'Use this procedure to delete all data for a specified view from the message log.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_debug.htm#AEAPI29243' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_debug.htm#AEAPI29248 'apex_debug.remove_session_messages': 'prefix': 'apex_debug.remove_session_messages' 'body': """APEX_DEBUG.REMOVE_SESSION_MESSAGES""" 'description': 'This procedure deletes from the debug message log all data for a given session in your workspace defaults to your current session.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_debug.htm#AEAPI29248' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_debug.htm#AEAPI29253 'apex_debug.tochar': 'prefix': 'apex_debug.tochar' 'body': """APEX_DEBUG.TOCHAR( p_value => $1 );$2""" 'description': 'This procedure converts a BOOLEAN to a VARCHAR2.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_debug.htm#AEAPI29253' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_debug.htm#AEAPI29258 'apex_debug.trace': 'prefix': 'apex_debug.trace' 'body': """APEX_DEBUG.TRACE( p_message => $1 );$2""" 'description': 'This procedure logs messages at level c_log_level_app_trace.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_debug.htm#AEAPI29258' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_debug.htm#AEAPI29263 'apex_debug.warn': 'prefix': 'apex_debug.warn' 'body': """APEX_DEBUG.WARN( p_message => $1 );$2""" 'description': 'This procedure logs messages at level c_log_level_warn.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_debug.htm#AEAPI29263' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_error.htm#AEAPI2217 'apex_error.add_error': 'prefix': 'apex_error.add_error' 'body': """APEX_ERROR.ADD_ERROR( p_message => $1, p_display_location => $2 );$3""" 'description': 'This procedure adds an error message to the error stack that is used to display an error on an error page or inline in a notification. It can be called in a validation or process to add one or more errors to the error stack.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_error.htm#AEAPI2217' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_error.htm#AEAPI2222 'apex_error.add_error2': 'prefix': 'apex_error.add_error2' 'body': """APEX_ERROR.ADD_ERROR2( p_message => $1, p_display_location => $2, p_page_item_name => $3 );$4""" 'description': 'This procedure adds an error message to the error stack that is used to display an error for a page item inline in a notification. It can be called in a validation or process to add one or more errors to the error stack.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_error.htm#AEAPI2222' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_error.htm#AEAPI2227 'apex_error.add_error3': 'prefix': 'apex_error.add_error3' 'body': """APEX_ERROR.ADD_ERROR3( p_error_code => $1, p_display_location => $2, p_page_item_name => $3 );$4""" 'description': 'This procedure adds an error message to the error stack that is used to display text as defined by a shared component. This error message can be displayed to all display locations. It can be called in a validation or process to add one or more errors to the error stack.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_error.htm#AEAPI2227' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_error.htm#AEAPI2232 'apex_error.add_error4': 'prefix': 'apex_error.add_error4' 'body': """APEX_ERROR.ADD_ERROR4( p_message => $1, p_display_location => $2, p_region_id => $3, p_row_num => $4 );$5""" 'description': 'This procedure adds an error message to the error stack that is used to display an error for a tabular form inline in a notification. It can be called in a validation or process to add one or more errors to the error stack.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_error.htm#AEAPI2232' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_error.htm#AEAPI2237 'apex_error.add_error5': 'prefix': 'apex_error.add_error5' 'body': """APEX_ERROR.ADD_ERROR5( p_error_code => $1, p_display_location => $2, p_region_id => $3, p_row_num => $4 );$5""" 'description': 'This procedure adds an error message to the error stack of a tabular form that is used to display text as defined by a shared component. This error message can be displayed to all display locations. It can be called in a validation or process to add one or more errors to the error stack.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_error.htm#AEAPI2237' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_error.htm#AEAPI2242 'apex_error.auto_set_associated_item': 'prefix': 'apex_error.auto_set_associated_item' 'body': """APEX_ERROR.AUTO_SET_ASSOCIATED_ITEM( p_error_result => $1, p_error => $2 );$3""" 'description': 'This procedure automatically sets the associated page item or tabular form column based on a constraint contained in p_error.ora_sqlerrm.This procedure performs the following:' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_error.htm#AEAPI2242' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_error.htm#AEAPI2247 'apex_error.extract_constraint_name': 'prefix': 'apex_error.extract_constraint_name' 'body': """APEX_ERROR.EXTRACT_CONSTRAINT_NAME( p_error => $1 );$2""" 'description': 'This function extracts a constraint name contained in p_error.ora_sqlerrm. The constraint must match the pattern schema.constraint.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_error.htm#AEAPI2247' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_error.htm#AEAPI2252 'apex_error.get_aria_error_attributes': 'prefix': 'apex_error.get_aria_error_attributes' 'body': """APEX_ERROR.GET_ARIA_ERROR_ATTRIBUTES( p_item_name => $1 );$2""" 'description': 'This function is useful for item plug-in developers, to enhance screen reader usability of your item, specifically when that item is associated with an error on a page. This function is called as part of rendering of the item, where the main form element(s) are output. The returned WAI-ARIA attributes include:' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_error.htm#AEAPI2252' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_error.htm#AEAPI2257 'apex_error.get_first_ora_error_text': 'prefix': 'apex_error.get_first_ora_error_text' 'body': """APEX_ERROR.GET_FIRST_ORA_ERROR_TEXT( p_error => $1 );$2""" 'description': 'This function returns the first ORA error message text stored in p_error.ora_sqlerrm. If p_error_ora_sqlerrm does not contain a value, NULL is returned.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_error.htm#AEAPI2257' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_error.htm#AEAPI2262 'apex_error.init_error_result': 'prefix': 'apex_error.init_error_result' 'body': """APEX_ERROR.INIT_ERROR_RESULT( p_error => $1 );$2""" 'description': 'This function returns the t_error_result type initialized with the values stored in p_error.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_error.htm#AEAPI2262' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_escape.htm#AEAPI29271 'apex_escape.html': 'prefix': 'apex_escape.html' 'body': """APEX_ESCAPE.HTML( p_string => $1 );$2""" 'description': 'This function escapes characters which can change the context in an html environment. It is an extended version of the well-known sys.htf.escape_sc.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_escape.htm#AEAPI29271' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_escape.htm#AEAPI29277 'apex_escape.html_attribute': 'prefix': 'apex_escape.html_attribute' 'body': """APEX_ESCAPE.HTML_ATTRIBUTE( p_string => $1 );$2""" 'description': 'Use this function to escape the values of html entity attributes. It hex escapes everything that is not alphanumeric or in one of the following characters\'\'\'\'\'\'\'\' .' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_escape.htm#AEAPI29277' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_escape.htm#AEAPI29282 'apex_escape.html_trunc': 'prefix': 'apex_escape.html_trunc' 'body': """APEX_ESCAPE.HTML_TRUNC( p_string => $1 );$2""" 'description': 'The HTML_TRUNC function escapes html and limits the returned string to p_length characters. This function returns the first p_length characters of an input clob and escapes them. You can use this function if the input clob might be too large to fit in a varchar2 variable and it is sufficient to only display the first part of it.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_escape.htm#AEAPI29282' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_escape.htm#AEAPI29287 'apex_escape.html_whitelist': 'prefix': 'apex_escape.html_whitelist' 'body': """APEX_ESCAPE.HTML_WHITELIST( p_html => $1 );$2""" 'description': 'The HTML_WHITELIST function performs HTML escape on all characters in the input text except the specified whitelist tags. This function can be useful if the input text contains simple html markup but a developer wants to ensure that an attacker cannot use malicious tags for cross-site scripting.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_escape.htm#AEAPI29287' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_escape.htm#AEAPI29292 'apex_escape.js_literal': 'prefix': 'apex_escape.js_literal' 'body': """APEX_ESCAPE.JS_LITERAL( p_string => $1 );$2""" 'description': 'The JS_LITERAL function escapes and optionally enquotes a javascript string. This function replaces non-immune characters with\\HH or\\HHHH equivalents. The result can be injected into javascript code, within <script> tags or inline ("javascript:xxx"). Immune characters include a through z, A through Z, 0 through 9, commas ",", periods "." and underscores "_".' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_escape.htm#AEAPI29292' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_escape.htm#AEAPI29608 'apex_escape.json': 'prefix': 'apex_escape.json' 'body': """APEX_ESCAPE.JSON( p_string => $1 );$2""" 'description': 'This function returns p_string with all special characters escaped.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_escape.htm#AEAPI29608' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_escape.htm#AEAPI29297 'apex_escape.ldap_dn': 'prefix': 'apex_escape.ldap_dn' 'body': """APEX_ESCAPE.LDAP_DN( p_string => $1 );$2""" 'description': 'The LDAP_DN function escapes reserved characters in an LDAP distinguished name, according to RFC 4514. The RFC describes "+,;<=\\as reserved characters (see p_reserved_chars). These are escaped by a backslash, for example, " becomes\\. Non-printable characters, ascii 0 - 31, and ones with a code > 127 (see p_escape_non_ascii) are escaped as\\x, where xx is the hexadecimal character code. The space character at the beginning or end of the string and a # at the beginning is also escaped with a backslash.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_escape.htm#AEAPI29297' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_escape.htm#AEAPI29302 'apex_escape.ldap_search_filter': 'prefix': 'apex_escape.ldap_search_filter' 'body': """APEX_ESCAPE.LDAP_SEARCH_FILTER( p_string => $1 );$2""" 'description': 'The LDAP_SEARCH_FILTER function escapes reserved characters in an LDAP search filter, according to RFC 4515. The RFC describes *(\\ as reserved characters (see p_reserved_chars). These, non-printable characters (ascii 0 - 31) and ones with a code > 127 (see p_escape_non_ascii) are escaped as\\x, where xx is the hexadecimal character code.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_escape.htm#AEAPI29302' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_escape.htm#AEAPI29307 'apex_escape.noop': 'prefix': 'apex_escape.noop' 'body': """APEX_ESCAPE.NOOP( p_string => $1 );$2""" 'description': 'Return p_string unchanged. Use this function to silence automatic injection detection tests, similar to dbms_assert.noop for SQL injection.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_escape.htm#AEAPI29307' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_escape.htm#AEAPI29615 'apex_escape.regexp': 'prefix': 'apex_escape.regexp' 'body': """APEX_ESCAPE.REGEXP( p_string => $1 );$2""" 'description': 'This function escapes characters that can change the context in a regular expression. It should be used to secure user input. The following list depicts ascii characters that the function escapes with a backslash \\:' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_escape.htm#AEAPI29615' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_escape.htm#AEAPI29312 'apex_escape.set_html_escaping_mode': 'prefix': 'apex_escape.set_html_escaping_mode' 'body': """APEX_ESCAPE.SET_HTML_ESCAPING_MODE( p_mode => $1 );$2""" 'description': 'The SET_HTML_ESCAPING_MODE procedure configures HTML escaping mode for wwv_flow_escape.html.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_escape.htm#AEAPI29312' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI250 'apex_instance_admin.add_schema': 'prefix': 'apex_instance_admin.add_schema' 'body': """APEX_INSTANCE_ADMIN.ADD_SCHEMA( p_workspace => $1, p_schema => $2 );$3""" 'description': 'The ADD_SCHEMA procedure adds a schema to a workspace to schema mapping.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI250' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI253 'apex_instance_admin.add_workspace': 'prefix': 'apex_instance_admin.add_workspace' 'body': """APEX_INSTANCE_ADMIN.ADD_WORKSPACE( p_workspace => $1, p_primary_schema => $2, p_additional_schemas => $3 );$4""" 'description': 'The ADD_WORKSPACE procedure adds a workspace to an Application Express Instance.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI253' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI30057 'apex_instance_admin.create_schema_exception': 'prefix': 'apex_instance_admin.create_schema_exception' 'body': """APEX_INSTANCE_ADMIN.CREATE_SCHEMA_EXCEPTION( p_schema => $1, p_workspace => $2 );$3""" 'description': 'This procedure creates an exception which allows assignment of a restricted schema to a specific workspace.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI30057' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI29620 'apex_instance_admin.free_workspace_app_ids': 'prefix': 'apex_instance_admin.free_workspace_app_ids' 'body': """APEX_INSTANCE_ADMIN.FREE_WORKSPACE_APP_IDS( p_workspace_id => $1 );$2""" 'description': 'This procedure removes the reservation of application IDs for a given workspace ID. Use this procedure to undo a reservation, when the reservation is not necessary anymore because it happened by mistake or the workspace no longer exists. To reserve application IDs for a given workspace, see "RESERVE_WORKSPACE_APP_IDS Procedure."' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI29620' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI247 'apex_instance_admin.get_parameter': 'prefix': 'apex_instance_admin.get_parameter' 'body': """APEX_INSTANCE_ADMIN.GET_PARAMETER( p_parameter => $1 );$2""" 'description': 'The GET_PARAMETER function retrieves the value of a parameter used in administering a runtime environment.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI247' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI249 'apex_instance_admin.get_schemas': 'prefix': 'apex_instance_admin.get_schemas' 'body': """APEX_INSTANCE_ADMIN.GET_SCHEMAS( p_workspace => $1 );$2""" 'description': 'The GET_SCHEMAS function retrieves a comma-delimited list of schemas that are mapped to a given workspace.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI249' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI30130 'apex_instance_admin.get_workspace_parameter': 'prefix': 'apex_instance_admin.get_workspace_parameter' 'body': """APEX_INSTANCE_ADMIN.GET_WORKSPACE_PARAMETER( p_workspace => $1, p_parameter => $2 );$3""" 'description': 'The GET_WORKSPACE_PARAMETER procedure gets the workspace parameter.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI30130' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI2268 'apex_instance_admin.remove_application': 'prefix': 'apex_instance_admin.remove_application' 'body': """APEX_INSTANCE_ADMIN.REMOVE_APPLICATION( p_application_id => $1 );$2""" 'description': 'The REMOVE_APPLICATION procedure removes the application specified from the Application Express instance.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI2268' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI983 'apex_instance_admin.remove_saved_report': 'prefix': 'apex_instance_admin.remove_saved_report' 'body': """APEX_INSTANCE_ADMIN.REMOVE_SAVED_REPORT( p_application_id => $1, p_report_id => $2 );$3""" 'description': 'The REMOVE_SAVED_REPORT procedure removes a specific use\'s saved interactive report settings for a particular application.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI983' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI988 'apex_instance_admin.remove_saved_reports': 'prefix': 'apex_instance_admin.remove_saved_reports' 'body': """APEX_INSTANCE_ADMIN.REMOVE_SAVED_REPORTS""" 'description': 'The REMOVE_SAVED_REPORTS procedure removes all user saved interactive report settings for a particular application or for the entire instance.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI988' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI251 'apex_instance_admin.remove_schema': 'prefix': 'apex_instance_admin.remove_schema' 'body': """APEX_INSTANCE_ADMIN.REMOVE_SCHEMA( p_workspace => $1, p_schema => $2 );$3""" 'description': 'This REMOVE_SCHEMA procedure removes a workspace to schema mapping.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI251' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI30062 'apex_instance_admin.remove_schema_exception': 'prefix': 'apex_instance_admin.remove_schema_exception' 'body': """APEX_INSTANCE_ADMIN.REMOVE_SCHEMA_EXCEPTION( p_schema => $1, p_workspace => $2 );$3""" 'description': 'This procedure removes an exception that allows the assignment of a restricted schema to a given workspace.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI30062' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI30067 'apex_instance_admin.remove_schema_exceptions': 'prefix': 'apex_instance_admin.remove_schema_exceptions' 'body': """APEX_INSTANCE_ADMIN.REMOVE_SCHEMA_EXCEPTIONS( p_schema => $1 );$2""" 'description': 'This procedure removes all exceptions that allow the assignment of a given schema to workspaces.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI30067' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI29317 'apex_instance_admin.remove_subscription': 'prefix': 'apex_instance_admin.remove_subscription' 'body': """APEX_INSTANCE_ADMIN.REMOVE_SUBSCRIPTION( p_subscription_id => $1 );$2""" 'description': 'The REMOVE_SUBSCRIPTION procedure removes a specific interactive report subscription.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI29317' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI252 'apex_instance_admin.remove_workspace': 'prefix': 'apex_instance_admin.remove_workspace' 'body': """APEX_INSTANCE_ADMIN.REMOVE_WORKSPACE( p_workspace => $1 );$2""" 'description': 'The REMOVE_WORKSPACE procedure removes a workspace from an Application Express instance.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI252' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI30072 'apex_instance_admin.remove_workspace_exceptions': 'prefix': 'apex_instance_admin.remove_workspace_exceptions' 'body': """APEX_INSTANCE_ADMIN.REMOVE_WORKSPACE_EXCEPTIONS( p_workspace => $1 );$2""" 'description': 'This procedure removes all exceptions that allow the assignment of restricted schemas to given workspace.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI30072' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI29625 'apex_instance_admin.reserve_workspace_app_ids': 'prefix': 'apex_instance_admin.reserve_workspace_app_ids' 'body': """APEX_INSTANCE_ADMIN.RESERVE_WORKSPACE_APP_IDS( p_workspace_id => $1 );$2""" 'description': 'This procedure permanently reserves the IDs of websheet and database applications in a given workspace. Even if the workspace and its applications get removed, developers can not create other applications with one of these IDs. To undo a reservation, see "FREE_WORKSPACE_APP_IDS Procedure."' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI29625' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI30077 'apex_instance_admin.restrict_schema': 'prefix': 'apex_instance_admin.restrict_schema' 'body': """APEX_INSTANCE_ADMIN.RESTRICT_SCHEMA( p_schema => $1 );$2""" 'description': 'This procedure revokes the privilege to assign a schema to workspaces.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI30077' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI29322 'apex_instance_admin.set_log_switch_interval': 'prefix': 'apex_instance_admin.set_log_switch_interval' 'body': """APEX_INSTANCE_ADMIN.SET_LOG_SWITCH_INTERVAL( p_log_name => $1, p_log_switch_after_days => $2 );$3""" 'description': 'Set the log switch interval for each of the logs maintained by Application Express.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI29322' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI246 'apex_instance_admin.set_parameter': 'prefix': 'apex_instance_admin.set_parameter' 'body': """APEX_INSTANCE_ADMIN.SET_PARAMETER( p_parameter => $1 );$2""" 'description': 'The SET_PARAMETER procedure sets a parameter used in administering a runtime environment. You must issue a commit for the parameter change to take affect.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI246' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI29327 'apex_instance_admin.set_workspace_consumer_group': 'prefix': 'apex_instance_admin.set_workspace_consumer_group' 'body': """APEX_INSTANCE_ADMIN.SET_WORKSPACE_CONSUMER_GROUP( p_workspace => $1, p_rm_consumer_group => $2 );$3""" 'description': 'The SET_WORKSPACE_CONSUMER_GROUP procedure sets a Resource Manager Consumer Group to a workspace.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI29327' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI30135 'apex_instance_admin.set_workspace_parameter': 'prefix': 'apex_instance_admin.set_workspace_parameter' 'body': """APEX_INSTANCE_ADMIN.SET_WORKSPACE_PARAMETER( p_workspace => $1, p_parameter => $2, p_value => $3 );$4""" 'description': 'The SET_WORKSPACE_PARAMETER procedure sets the designated workspace parameter.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI30135' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI29332 'apex_instance_admin.truncate_log': 'prefix': 'apex_instance_admin.truncate_log' 'body': """APEX_INSTANCE_ADMIN.TRUNCATE_LOG( p_log => $1 );$2""" 'description': 'The TRUNCATE_LOG procedure truncates the log entries specified by the input parameter.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI29332' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI30082 'apex_instance_admin.unrestrict_schema': 'prefix': 'apex_instance_admin.unrestrict_schema' 'body': """APEX_INSTANCE_ADMIN.UNRESTRICT_SCHEMA( p_schema => $1 );$2""" 'description': 'This procedure re-grants the privilege to assign a schema to workspaces, if it has been revoked before.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_instance.htm#AEAPI30082' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ir.htm#AEAPI29339 'apex_ir.add_filter': 'prefix': 'apex_ir.add_filter' 'body': """APEX_IR.ADD_FILTER( p_page_id => $1, p_region_id => $2, p_report_column => $3, p_filter_value => $4 );$5""" 'description': 'This procedure creates a filter on an interactive report using a report ID.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ir.htm#AEAPI29339' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ir.htm#AEAPI29344 'apex_ir.add_filter2': 'prefix': 'apex_ir.add_filter2' 'body': """APEX_IR.ADD_FILTER2( p_page_id => $1, p_region_id => $2, p_report_column => $3, p_filter_value => $4 );$5""" 'description': 'This procedure creates a filter on an interactive report using a report alias.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ir.htm#AEAPI29344' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ir.htm#AEAPI29630 'apex_ir.change_report_owner': 'prefix': 'apex_ir.change_report_owner' 'body': """APEX_IR.CHANGE_REPORT_OWNER( p_report_id => $1, p_old_owner => $2, p_new_owner => $3 );$4""" 'description': 'This procedure changes the owner of a saved interactive report using a report ID. This procedure cannot change the owner of default interactive reports.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ir.htm#AEAPI29630' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ir.htm#AEAPI30140 'apex_ir.change_subscription_email': 'prefix': 'apex_ir.change_subscription_email' 'body': """APEX_IR.CHANGE_SUBSCRIPTION_EMAIL( p_subscription_id => $1, p_email_address => $2 );$3""" 'description': 'This procedure changes interactive report subscriptions email address. When an email is sent out, the subscription sends message to the defined email address.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ir.htm#AEAPI30140' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ir.htm#AEAPI30145 'apex_ir.change_subscription_email2': 'prefix': 'apex_ir.change_subscription_email2' 'body': """APEX_IR.CHANGE_SUBSCRIPTION_EMAIL2( p_subscription_id => $1, p_email_address => $2 );$3""" 'description': 'This procedure changes interactive report subscriptions email address. When an email is sent out, the subscription sends message to the defined email address.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ir.htm#AEAPI30145' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ir.htm#AEAPI29349 'apex_ir.change_subscription_lang': 'prefix': 'apex_ir.change_subscription_lang' 'body': """APEX_IR.CHANGE_SUBSCRIPTION_LANG( p_subscription_id => $1, p_language => $2 );$3""" 'description': 'This procedure changes the interactive report subscription language.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ir.htm#AEAPI29349' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ir.htm#AEAPI29354 'apex_ir.clear_report': 'prefix': 'apex_ir.clear_report' 'body': """APEX_IR.CLEAR_REPORT( p_page_id => $1, p_region_id => $2 );$3""" 'description': 'This procedure clears report settings using the report ID.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ir.htm#AEAPI29354' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ir.htm#AEAPI29359 'apex_ir.clear_report2': 'prefix': 'apex_ir.clear_report2' 'body': """APEX_IR.CLEAR_REPORT2( p_page_id => $1, p_region_id => $2 );$3""" 'description': 'This procedure clears report settings using report alias.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ir.htm#AEAPI29359' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ir.htm#AEAPI29364 'apex_ir.delete_report': 'prefix': 'apex_ir.delete_report' 'body': """APEX_IR.DELETE_REPORT( p_report_id => $1 );$2""" 'description': 'This procedure deletes saved interactive reports. It deletes a specific saved report in the current logged in workspace and application.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ir.htm#AEAPI29364' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ir.htm#AEAPI29369 'apex_ir.delete_subscription': 'prefix': 'apex_ir.delete_subscription' 'body': """APEX_IR.DELETE_SUBSCRIPTION( p_subscription_id => $1 );$2""" 'description': 'This procedure deletes interactive report subscriptions.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ir.htm#AEAPI29369' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ir.htm#AEAPI29374 'apex_ir.get_last_viewed_report_id': 'prefix': 'apex_ir.get_last_viewed_report_id' 'body': """APEX_IR.GET_LAST_VIEWED_REPORT_ID( p_page_id => $1, p_region_id => $2 );$3""" 'description': 'This function returns the last viewed base report ID of the specified page and region.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ir.htm#AEAPI29374' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ir.htm#AEAPI29379 'apex_ir.get_report': 'prefix': 'apex_ir.get_report' 'body': """APEX_IR.GET_REPORT( p_page_id => $1, p_region_id => $2 );$3""" 'description': 'This function returns an interactive report runtime query.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ir.htm#AEAPI29379' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ir.htm#AEAPI29384 'apex_ir.reset_report': 'prefix': 'apex_ir.reset_report' 'body': """APEX_IR.RESET_REPORT( p_page_id => $1, p_region_id => $2 );$3""" 'description': 'This procedure resets report settings to the developer defined default settings using the report ID.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ir.htm#AEAPI29384' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ir.htm#AEAPI29389 'apex_ir.reset_report2': 'prefix': 'apex_ir.reset_report2' 'body': """APEX_IR.RESET_REPORT2( p_page_id => $1, p_region_id => $2 );$3""" 'description': 'This procedure resets report settings using the report alias.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ir.htm#AEAPI29389' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI193 'apex_item.checkbox2': 'prefix': 'apex_item.checkbox2' 'body': """APEX_ITEM.CHECKBOX2( p_idx => $1 );$2""" 'description': 'This function creates check boxes.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI193' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI194 'apex_item.date_popup': 'prefix': 'apex_item.date_popup' 'body': """APEX_ITEM.DATE_POPUP( p_idx => $1, p_row => $2 );$3""" 'description': 'Use this function with forms that include date fields. The DATE_POPUP function dynamically generates a date field that has a popup calendar button.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI194' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI199 'apex_item.date_popup2': 'prefix': 'apex_item.date_popup2' 'body': """APEX_ITEM.DATE_POPUP2( p_idx => $1 );$2""" 'description': 'Use this function with forms that include date fields. The DATE_POPUP2 function dynamically generates a date field that has a jQuery based popup calendar with button.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI199' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI195 'apex_item.display_and_save': 'prefix': 'apex_item.display_and_save' 'body': """APEX_ITEM.DISPLAY_AND_SAVE( p_idx => $1 );$2""" 'description': 'Use this function to display an item as text, but save its value to session state.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI195' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI196 'apex_item.hidden': 'prefix': 'apex_item.hidden' 'body': """APEX_ITEM.HIDDEN( p_idx => $1 );$2""" 'description': 'This function dynamically generates hidden form items.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI196' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI197 'apex_item.md5_checksum': 'prefix': 'apex_item.md5_checksum' 'body': """APEX_ITEM.MD5_CHECKSUM""" 'description': 'Use this function for lost update detection. Lost update detection ensures data integrity in applications where data can be accessed concurrently.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI197' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI198 'apex_item.md5_hidden': 'prefix': 'apex_item.md5_hidden' 'body': """APEX_ITEM.MD5_HIDDEN( p_idx => $1 );$2""" 'description': 'Use this function for lost update detection. Lost update detection ensures data integrity in applications where data can be accessed concurrently.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI198' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI200 'apex_item.popup_from_lov': 'prefix': 'apex_item.popup_from_lov' 'body': """APEX_ITEM.POPUP_FROM_LOV( p_idx => $1, p_lov_name => $2 );$3""" 'description': 'This function generates an HTML popup select list from an application shared list of values (LOV). Like other available functions in the APEX_ITEM package, POPUP_FROM_LOV function is designed to generate forms with F01 to F50 form array elements.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI200' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI201 'apex_item.popup_from_query': 'prefix': 'apex_item.popup_from_query' 'body': """APEX_ITEM.POPUP_FROM_QUERY( p_idx => $1, p_lov_query => $2 );$3""" 'description': 'This function generates an HTML popup select list from a query. Like other available functions in the APEX_ITEM package, the POPUP_FROM_QUERY function is designed to generate forms with F01 to F50 form array elements.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI201' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI202 'apex_item.popupkey_from_lov': 'prefix': 'apex_item.popupkey_from_lov' 'body': """APEX_ITEM.POPUPKEY_FROM_LOV( p_idx => $1, p_lov_name => $2 );$3""" 'description': 'This function generates a popup key select list from a shared list of values (LOV). Similar to other available functions in the APEX_ITEM package, the POPUPKEY_FROM_LOV function is designed to generate forms with F01 to F50 form array elements.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI202' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI203 'apex_item.popupkey_from_query': 'prefix': 'apex_item.popupkey_from_query' 'body': """APEX_ITEM.POPUPKEY_FROM_QUERY( p_idx => $1, p_lov_query => $2 );$3""" 'description': 'This function generates a popup key select list from a SQL query. Similar to other available functions in the APEX_ITEM package, the POPUPKEY_FROM_QUERY function is designed to generate forms with F01 to F50 form array elements.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI203' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI204 'apex_item.radiogroup': 'prefix': 'apex_item.radiogroup' 'body': """APEX_ITEM.RADIOGROUP( p_idx => $1 );$2""" 'description': 'This function generates a radio group from a SQL query.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI204' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI205 'apex_item.select_list': 'prefix': 'apex_item.select_list' 'body': """APEX_ITEM.SELECT_LIST( p_idx => $1 );$2""" 'description': 'This function dynamically generates a static select list. Similar to other functions available in the APEX_ITEM package, these select list functions are designed to generate forms with F01 to F50 form array elements.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI205' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI206 'apex_item.select_list_from_lov': 'prefix': 'apex_item.select_list_from_lov' 'body': """APEX_ITEM.SELECT_LIST_FROM_LOV( p_idx => $1, p_lov => $2 );$3""" 'description': 'This function dynamically generates select lists from a shared list of values (LOV). Similar to other functions available in the APEX_ITEM package, these select list functions are designed to generate forms with F01 to F50 form array elements.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI206' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI207 'apex_item.select_list_from_lov_xl': 'prefix': 'apex_item.select_list_from_lov_xl' 'body': """APEX_ITEM.SELECT_LIST_FROM_LOV_XL( p_idx => $1, p_lov => $2 );$3""" 'description': 'This function dynamically generates very large select lists (greater than 32K) from a shared list of values (LOV). Similar to other functions available in the APEX_ITEM package, these select list functions are designed to generate forms with F01 to F50 form array elements. This function is the same as SELECT_LIST_FROM_LOV, but its return value is CLOB. Use this function in SQL queries where you need to handle a column value longer than 4000 characters.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI207' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI208 'apex_item.select_list_from_query': 'prefix': 'apex_item.select_list_from_query' 'body': """APEX_ITEM.SELECT_LIST_FROM_QUERY( p_idx => $1, p_query => $2 );$3""" 'description': 'This function dynamically generates a select list from a query. Similar to other functions available in the APEX_ITEM package, these select list functions are designed to generate forms with F01 to F50 form array elements.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI208' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI209 'apex_item.select_list_from_query_xl': 'prefix': 'apex_item.select_list_from_query_xl' 'body': """APEX_ITEM.SELECT_LIST_FROM_QUERY_XL( p_idx => $1, p_query => $2 );$3""" 'description': 'This function is the same as SELECT_LIST_FROM_QUERY, but its return value is a CLOB. This allows its use in SQL queries where you need to handle a column value longer than 4000 characters. Similar to other functions available in the APEX_ITEM package, these select list functions are designed to generate forms with F01 to F50 form array elements.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI209' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI211 'apex_item.text': 'prefix': 'apex_item.text' 'body': """APEX_ITEM.TEXT( p_idx => $1 );$2""" 'description': 'This function generates text fields (or text input form items) from a SQL query.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI211' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI212 'apex_item.text_from_lov': 'prefix': 'apex_item.text_from_lov' 'body': """APEX_ITEM.TEXT_FROM_LOV( p_lov => $1 );$2""" 'description': 'Use this function to display an item as text, deriving the display value of the named LOV.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI212' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI213 'apex_item.text_from_lov_query': 'prefix': 'apex_item.text_from_lov_query' 'body': """APEX_ITEM.TEXT_FROM_LOV_QUERY( p_query => $1 );$2""" 'description': 'Use this function to display an item as text, deriving the display value from a list of values query.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI213' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI210 'apex_item.textarea': 'prefix': 'apex_item.textarea' 'body': """APEX_ITEM.TEXTAREA( p_idx => $1, p_rows => $2 );$3""" 'description': 'This function creates text areas.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI210' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_javascript.htm#AEAPI29394 'apex_javascript.add_3rd_party_library_file2': 'prefix': 'apex_javascript.add_3rd_party_library_file2' 'body': """APEX_JAVASCRIPT.ADD_3RD_PARTY_LIBRARY_FILE2( p_library => $1, p_file_name => $2 );$3""" 'description': 'This procedure adds the script tag to load a 3rd party javascript library file and also takes into account the specified Content Delivery Network for the application. Supported libraries include: jQuery, jQueryUI, and jQuery Mobile.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_javascript.htm#AEAPI29394' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_javascript.htm#AEAPI1090 'apex_javascript.add_attribute': 'prefix': 'apex_javascript.add_attribute' 'body': """APEX_JAVASCRIPT.ADD_ATTRIBUTE( p_name => $1, p_value => $2, p_omit_null => $3, p_add_comma => $4 );$5""" 'description': 'This function returns the attribute and the attribut\'s escaped text surrounded by double quotation marks.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_javascript.htm#AEAPI1090' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_javascript.htm#AEAPI1095 'apex_javascript.add_attribute2': 'prefix': 'apex_javascript.add_attribute2' 'body': """APEX_JAVASCRIPT.ADD_ATTRIBUTE2( p_name => $1, p_value => $2, p_omit_null => $3, p_add_comma => $4 );$5""" 'description': 'This function returns the attribute and the attribut\'s number.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_javascript.htm#AEAPI1095' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_javascript.htm#AEAPI1100 'apex_javascript.add_attribute3': 'prefix': 'apex_javascript.add_attribute3' 'body': """APEX_JAVASCRIPT.ADD_ATTRIBUTE3( p_name => $1, p_value => $2, p_omit_null => $3, p_add_comma => $4 );$5""" 'description': 'This function returns the attribute and a JavaScript boolean of TRUE, FALSE, or NULL.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_javascript.htm#AEAPI1100' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_javascript.htm#AEAPI1105 'apex_javascript.add_attribute4': 'prefix': 'apex_javascript.add_attribute4' 'body': """APEX_JAVASCRIPT.ADD_ATTRIBUTE4( p_name => $1, p_value => $2, p_omit_null => $3, p_add_comma => $4 );$5""" 'description': 'This function returns the attribute and the attribut\'s date. If p_value is null the value null is returned.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_javascript.htm#AEAPI1105' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_javascript.htm#AEAPI1110 'apex_javascript.add_inline_code': 'prefix': 'apex_javascript.add_inline_code' 'body': """APEX_JAVASCRIPT.ADD_INLINE_CODE( p_code => $1 );$2""" 'description': 'This procedure adds a code snippet that is included inline into the HTML output. For example, you can use this procedure to add new functions or global variable declarations. If you want to execute code you should use ADD_ONLOAD_CODE Procedure.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_javascript.htm#AEAPI1110' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_javascript.htm#AEAPI1115 'apex_javascript.add_library': 'prefix': 'apex_javascript.add_library' 'body': """APEX_JAVASCRIPT.ADD_LIBRARY( p_name => $1, p_directory => $2 );$3""" 'description': 'This procedure adds the script tag to load a JavaScript library. If a library has been added, it is not added a second time.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_javascript.htm#AEAPI1115' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_javascript.htm#AEAPI1120 'apex_javascript.add_onload_code': 'prefix': 'apex_javascript.add_onload_code' 'body': """APEX_JAVASCRIPT.ADD_ONLOAD_CODE( p_code => $1 );$2""" 'description': 'This procedure adds a javascript code snippet to the HTML output which is executed by the onload event. If an entry with the same key exists it is ignored. If p_key is NULL the snippet is always added.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_javascript.htm#AEAPI1120' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_javascript.htm#AEAPI1125 'apex_javascript.add_value': 'prefix': 'apex_javascript.add_value' 'body': """APEX_JAVASCRIPT.ADD_VALUE( p_value => $1, p_add_comma => $2 );$3""" 'description': 'This function returns the escaped text surrounded by double quotation marks. For example, this string could be returned "That\'s a test".' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_javascript.htm#AEAPI1125' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_javascript.htm#AEAPI1130 'apex_javascript.add_value2': 'prefix': 'apex_javascript.add_value2' 'body': """APEX_JAVASCRIPT.ADD_VALUE2( p_value => $1, p_add_comma => $2 );$3""" 'description': 'This function returns p_value as JavaScript number, if p_value is NULL the value null is returned.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_javascript.htm#AEAPI1130' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_javascript.htm#AEAPI1135 'apex_javascript.add_value3': 'prefix': 'apex_javascript.add_value3' 'body': """APEX_JAVASCRIPT.ADD_VALUE3( p_value => $1, p_add_comma => $2 );$3""" 'description': 'This function returns p_value as JavaScript boolean. If p_value is NULL the value null is returned.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_javascript.htm#AEAPI1135' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_javascript.htm#AEAPI1140 'apex_javascript.add_value4': 'prefix': 'apex_javascript.add_value4' 'body': """APEX_JAVASCRIPT.ADD_VALUE4( p_value => $1, p_add_comma => $2 );$3""" 'description': 'This function returns p_value as JavaScript date object, if p_value is NULL the value null is returned.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_javascript.htm#AEAPI1140' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_javascript.htm#AEAPI1145 'apex_javascript.escape': 'prefix': 'apex_javascript.escape' 'body': """APEX_JAVASCRIPT.ESCAPE( p_text => $1 );$2""" 'description': 'This function escapes text to be used in JavaScript. This function makes the following replacements:' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_javascript.htm#AEAPI1145' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29646 'apex_json.close_all': 'prefix': 'apex_json.close_all' 'body': """APEX_JSON.CLOSE_ALL""" 'description': 'This procedure closes all objects and arrays up to the outermost nesting level.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29646' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29650 'apex_json.close_array': 'prefix': 'apex_json.close_array' 'body': """APEX_JSON.CLOSE_ARRAY""" 'description': 'This procedure writes a close bracket symbol as follows:' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29650' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29655 'apex_json.close_object': 'prefix': 'apex_json.close_object' 'body': """APEX_JSON.CLOSE_OBJECT""" 'description': 'This procedure writes a close curly bracket symbol as follows:' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29655' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29660 'apex_json.does_exist': 'prefix': 'apex_json.does_exist' 'body': """APEX_JSON.DOES_EXIST( p_path => $1 );$2""" 'description': 'This function determines whether the given path points to an existing value.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29660' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29667 'apex_json.find_paths_like': 'prefix': 'apex_json.find_paths_like' 'body': """APEX_JSON.FIND_PATHS_LIKE( p_return_path => $1 );$2""" 'description': 'This function returns paths into p_values that match a given pattern.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29667' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29674 'apex_json.flush': 'prefix': 'apex_json.flush' 'body': """APEX_JSON.FLUSH""" 'description': 'This procedure flushes pending changes. Note that close procedures automatically flush.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29674' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI30237 'apex_json.free_output': 'prefix': 'apex_json.free_output' 'body': """APEX_JSON.FREE_OUTPUT""" 'description': 'Frees output resources. Call this procedure after process if you are using INITIALIZE_CLOB_OUTPUT to write to a temporary CLOB.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI30237' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29678 'apex_json.get_boolean': 'prefix': 'apex_json.get_boolean' 'body': """APEX_JSON.GET_BOOLEAN( p_path => $1 );$2""" 'description': 'This function returns a boolean number value.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29678' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI30240 'apex_json.get_clob_output': 'prefix': 'apex_json.get_clob_output' 'body': """APEX_JSON.GET_CLOB_OUTPUT""" 'description': 'Returns the temporary CLOB that you created with INITIALIZE_CLOB_OUTPUT.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI30240' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29685 'apex_json.get_count': 'prefix': 'apex_json.get_count' 'body': """APEX_JSON.GET_COUNT( p_path => $1 );$2""" 'description': 'This function returns the number of array elements or object members.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29685' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29692 'apex_json.get_date': 'prefix': 'apex_json.get_date' 'body': """APEX_JSON.GET_DATE( p_path => $1 );$2""" 'description': 'This function returns a date member value.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29692' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29699 'apex_json.get_members': 'prefix': 'apex_json.get_members' 'body': """APEX_JSON.GET_MEMBERS( p_path => $1 );$2""" 'description': 'This function returns the table of OBJECT_MEMBERS names for an object.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29699' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29706 'apex_json.get_number': 'prefix': 'apex_json.get_number' 'body': """APEX_JSON.GET_NUMBER( p_path => $1 );$2""" 'description': 'This function returns a numeric number value.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29706' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29713 'apex_json.get_value': 'prefix': 'apex_json.get_value' 'body': """APEX_JSON.GET_VALUE( p_path => $1 );$2""" 'description': 'This function returns the t_value.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29713' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29720 'apex_json.get_varchar2': 'prefix': 'apex_json.get_varchar2' 'body': """APEX_JSON.GET_VARCHAR2( p_path => $1 );$2""" 'description': 'This function returns a varchar2 member value. This function converts boolean and number values to varchar2 values.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29720' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI30243 'apex_json.initialize_clob_output': 'prefix': 'apex_json.initialize_clob_output' 'body': """APEX_JSON.INITIALIZE_CLOB_OUTPUT""" 'description': 'Initialize the output interface to write to a temporary CLOB. the default is to write to SYS.HTP. If using CLOB output, you should call FREE_OUTPUT() at the end to free the CLOB.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI30243' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29727 'apex_json.initialize_output': 'prefix': 'apex_json.initialize_output' 'body': """APEX_JSON.INITIALIZE_OUTPUT""" 'description': 'This procedure initializes the output interface. You only have to call this procedure if you want to modify the parameters below. Initially, output is already configured with the defaults mentioned in the parameter table.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29727' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29732 'apex_json.open_array': 'prefix': 'apex_json.open_array' 'body': """APEX_JSON.OPEN_ARRAY""" 'description': 'This procedure writes an open bracket symbol as follows:' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29732' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29737 'apex_json.open_object': 'prefix': 'apex_json.open_object' 'body': """APEX_JSON.OPEN_OBJECT""" 'description': 'This procedure writes an open curly bracket symbol as follows:' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29737' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29742 'apex_json.parse': 'prefix': 'apex_json.parse' 'body': """APEX_JSON.PARSE( p_values => $1, p_source => $2 );$3""" 'description': 'This procedure parses a JSON-formatted varchar2 or clob and puts the members into p_values.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29742' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29747 'apex_json.parse2': 'prefix': 'apex_json.parse2' 'body': """APEX_JSON.PARSE2( p_source => $1 );$2""" 'description': 'This procedure parses a JSON-formatted varchar2 or clob and puts the members into the package global g_values. This simplified API works similar to the parse() procedure for signature 1, but saves the developer from declaring a local variable for parsed JSON data and passing it to each JSON API call.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29747' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29752 'apex_json.stringify': 'prefix': 'apex_json.stringify' 'body': """APEX_JSON.STRINGIFY( p_value => $1 );$2""" 'description': 'This function converts a string to an escaped JSON value.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29752' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29759 'apex_json.stringify2': 'prefix': 'apex_json.stringify2' 'body': """APEX_JSON.STRINGIFY2( p_value => $1 );$2""" 'description': 'This function converts a number to an escaped JSON value.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29759' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29766 'apex_json.stringify3': 'prefix': 'apex_json.stringify3' 'body': """APEX_JSON.STRINGIFY3( p_value => $1 );$2""" 'description': 'This function converts a date to an escaped JSON value.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29766' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29773 'apex_json.stringify4': 'prefix': 'apex_json.stringify4' 'body': """APEX_JSON.STRINGIFY4( p_value => $1 );$2""" 'description': 'This function converts a boolean value to an escaped JSON value.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29773' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29780 'apex_json.to_xmltype': 'prefix': 'apex_json.to_xmltype' 'body': """APEX_JSON.TO_XMLTYPE( p_value => $1 );$2""" 'description': 'This procedure parses a JSON-formatted varchar2 or CLOB and converts it to an xmltype.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29780' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29787 'apex_json.write': 'prefix': 'apex_json.write' 'body': """APEX_JSON.WRITE( p_value => $1 );$2""" 'description': 'This procedure writes an array attribute of type VARCHAR2.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29787' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29832 'apex_json.write10': 'prefix': 'apex_json.write10' 'body': """APEX_JSON.WRITE10( p_name => $1, p_value => $2 );$3""" 'description': 'This procedure writes an object attribute of type NUMBER.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29832' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29837 'apex_json.write11': 'prefix': 'apex_json.write11' 'body': """APEX_JSON.WRITE11( p_name => $1, p_value => $2 );$3""" 'description': 'This procedure writes an object attribute of type date.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29837' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29842 'apex_json.write12': 'prefix': 'apex_json.write12' 'body': """APEX_JSON.WRITE12( p_name => $1, p_value => $2 );$3""" 'description': 'This procedure writes an object attribute of type boolean.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29842' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29847 'apex_json.write13': 'prefix': 'apex_json.write13' 'body': """APEX_JSON.WRITE13( p_name => $1, p_cursor => $2 );$3""" 'description': 'This procedure writes an attribute where the value is an array that contains all rows that the cursor returns. Each row is a separate object.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29847' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29852 'apex_json.write14': 'prefix': 'apex_json.write14' 'body': """APEX_JSON.WRITE14( p_name => $1, p_value => $2 );$3""" 'description': 'This procedure writes an array attribute of type sys.xmltype. The procedure uses a XSL transformation to generate JSON. To determine the JSON type of values, it uses the following rules:' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29852' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29857 'apex_json.write15': 'prefix': 'apex_json.write15' 'body': """APEX_JSON.WRITE15( p_values => $1 );$2""" 'description': 'This procedure writes parts of a parsed APEX_JSON.t_values table.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29857' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29862 'apex_json.write16': 'prefix': 'apex_json.write16' 'body': """APEX_JSON.WRITE16( p_name => $1, p_values => $2 );$3""" 'description': 'This procedure writes parts of a parsed APEX_JSON.t_values table as an object member attribute.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29862' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29792 'apex_json.write2': 'prefix': 'apex_json.write2' 'body': """APEX_JSON.WRITE2( p_value => $1 );$2""" 'description': 'This procedure writes an array attribute. of type clob.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29792' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29797 'apex_json.write3': 'prefix': 'apex_json.write3' 'body': """APEX_JSON.WRITE3( p_value => $1 );$2""" 'description': 'This procedure writes an array attribute of type NUMBER.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29797' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29802 'apex_json.write4': 'prefix': 'apex_json.write4' 'body': """APEX_JSON.WRITE4( p_value => $1 );$2""" 'description': 'This procedure writes an array attribute. of type date' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29802' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29807 'apex_json.write5': 'prefix': 'apex_json.write5' 'body': """APEX_JSON.WRITE5( p_value => $1 );$2""" 'description': 'This procedure writes an array attribute of type boolean.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29807' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29812 'apex_json.write6': 'prefix': 'apex_json.write6' 'body': """APEX_JSON.WRITE6( p_value => $1 );$2""" 'description': 'This procedure writes an array attribute of type sys.xmltype. The procedure uses a XSL transformation to generate JSON. To determine the JSON type of values, it uses the following rules:' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29812' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29817 'apex_json.write7': 'prefix': 'apex_json.write7' 'body': """APEX_JSON.WRITE7( p_cursor => $1 );$2""" 'description': 'This procedure writes an array with all rows that the cursor returns. Each row is a separate object. If the query contains object type, collection, or cursor columns, the procedure uses write(xmltype) to generate JSON. Otherwise, it uses DBMS_SQL to fetch rows and the write() procedures for the appropriate column data types for output. If the column type is varchar2 and the uppercase value is\'TRU\' or\'FALS\', it generates boolean values.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29817' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29822 'apex_json.write8': 'prefix': 'apex_json.write8' 'body': """APEX_JSON.WRITE8( p_name => $1, p_value => $2 );$3""" 'description': 'This procedure writes an object attribute of type VARCHAR2.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29822' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29827 'apex_json.write9': 'prefix': 'apex_json.write9' 'body': """APEX_JSON.WRITE9( p_name => $1, p_value => $2 );$3""" 'description': 'This procedure writes an object attribute of type CLOB.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29827' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_lang.htm#AEAPI29547 'apex_lang.create_language_mapping': 'prefix': 'apex_lang.create_language_mapping' 'body': """APEX_LANG.CREATE_LANGUAGE_MAPPING( p_application_id => $1, p_language => $2, p_translation_application_id => $3 );$4""" 'description': 'Use this procedure to create the language mapping for the translation of an application. Translated applications are published as new applications, but are not directly editable in the Application Builder.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_lang.htm#AEAPI29547' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_lang.htm#AEAPI29552 'apex_lang.delete_language_mapping': 'prefix': 'apex_lang.delete_language_mapping' 'body': """APEX_LANG.DELETE_LANGUAGE_MAPPING( p_application_id => $1, p_language => $2 );$3""" 'description': 'Use this procedure to delete the language mapping for the translation of an application. This procedure deletes all translated strings in the translation repository for the specified language and mapping. Translated applications are published as new applications, but are not directly editable in the Application Builder.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_lang.htm#AEAPI29552' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_lang.htm#AEAPI1151 'apex_lang.lang': 'prefix': 'apex_lang.lang' 'body': """APEX_LANG.LANG""" 'description': 'Use this function to return a translated text string for translations defined in dynamic translations.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_lang.htm#AEAPI1151' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_lang.htm#AEAPI1156 'apex_lang.message': 'prefix': 'apex_lang.message' 'body': """APEX_LANG.MESSAGE""" 'description': 'Use this function to translate text strings (or messages) generated from PL/SQL stored procedures, functions, triggers, packaged procedures, and functions.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_lang.htm#AEAPI1156' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_lang.htm#AEAPI29557 'apex_lang.publish_application': 'prefix': 'apex_lang.publish_application' 'body': """APEX_LANG.PUBLISH_APPLICATION( p_application_id => $1, p_language => $2 );$3""" 'description': 'Use this procedure to publish the translated version of an application. This procedure creates an underlying, hidden replica of the primary application and merges the strings from the translation repository in this new application. Perform a seed and publish process each time you want to update the translated version of your application and synchronize it with the primary application.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_lang.htm#AEAPI29557' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_lang.htm#AEAPI29562 'apex_lang.seed_translations': 'prefix': 'apex_lang.seed_translations' 'body': """APEX_LANG.SEED_TRANSLATIONS( p_application_id => $1, p_language => $2 );$3""" 'description': 'Use this procedure to seed the translation repository for the specified application and language. This procedure populates the translation repository with all of the new, updated and removed translatable strings from your application. Perform a seed and publish process each time you want to update the translated version of your application and synchronize it with the primary application.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_lang.htm#AEAPI29562' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_lang.htm#AEAPI29567 'apex_lang.update_language_mapping': 'prefix': 'apex_lang.update_language_mapping' 'body': """APEX_LANG.UPDATE_LANGUAGE_MAPPING( p_application_id => $1, p_language => $2, p_new_trans_application_id => $3 );$4""" 'description': 'Use this procedure to update the language mapping for the translation of an application. Translated applications are published as new applications, but are not directly editable in the Application Builder.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_lang.htm#AEAPI29567' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_lang.htm#AEAPI29572 'apex_lang.update_message': 'prefix': 'apex_lang.update_message' 'body': """APEX_LANG.UPDATE_MESSAGE( p_id => $1, p_message_text => $2 );$3""" 'description': 'Use this procedure to update a translatable text message for the specified application.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_lang.htm#AEAPI29572' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_lang.htm#AEAPI29577 'apex_lang.update_translated_string': 'prefix': 'apex_lang.update_translated_string' 'body': """APEX_LANG.UPDATE_TRANSLATED_STRING( p_id => $1, p_language => $2, p_string => $3 );$4""" 'description': 'Use this procedure to update a translated string in the seeded translation repository.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_lang.htm#AEAPI29577' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ldap.htm#AEAPI239 'apex_ldap.authenticate': 'prefix': 'apex_ldap.authenticate' 'body': """APEX_LDAP.AUTHENTICATE( p_search_base => $1, p_host => $2 );$3""" 'description': 'The AUTHENTICATE function returns a boolean TRUE if the user name and password can be used to perform a SIMPLE_BIND_S, call using the provided search base, host, and port.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ldap.htm#AEAPI239' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ldap.htm#AEAPI244 'apex_ldap.get_all_user_attributes': 'prefix': 'apex_ldap.get_all_user_attributes' 'body': """APEX_LDAP.GET_ALL_USER_ATTRIBUTES( p_host => $1, p_attributes => $2, p_attribute_values => $3 );$4""" 'description': 'The GET_ALL_USER_ATTRIBUTES procedure returns two OUT arrays of user_attribute names and values for the user name designated by p_username (with password if required) using the provided auth base, host, and port.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ldap.htm#AEAPI244' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ldap.htm#AEAPI243 'apex_ldap.get_user_attributes': 'prefix': 'apex_ldap.get_user_attributes' 'body': """APEX_LDAP.GET_USER_ATTRIBUTES( p_auth_base => $1, p_host => $2, p_attributes => $3, p_attribute_values => $4 );$5""" 'description': 'The GET_USER_ATTRIBUTES procedure returns an OUT array of user_attribute values for the user name designated by p_username (with password if required) corresponding to the attribute names passed in p_attributes using the provided auth base, host, and port.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ldap.htm#AEAPI243' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ldap.htm#AEAPI240 'apex_ldap.is_member': 'prefix': 'apex_ldap.is_member' 'body': """APEX_LDAP.IS_MEMBER( p_username => $1, p_auth_base => $2, p_host => $3, p_group => $4, p_group_base => $5 );$6""" 'description': 'The IS_MEMBER function returns a boolean TRUE if the user named by p_username (with password if required) is a member of the group specified by the p_group and p_group_base parameters using the provided auth base, host, and port.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ldap.htm#AEAPI240' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ldap.htm#AEAPI241 'apex_ldap.member_of': 'prefix': 'apex_ldap.member_of' 'body': """APEX_LDAP.MEMBER_OF( p_auth_base => $1, p_host => $2 );$3""" 'description': 'The MEMBER_OF function returns an array of groups the user name designated by p_username (with password if required) belongs to, using the provided auth base, host, and port.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ldap.htm#AEAPI241' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ldap.htm#AEAPI242 'apex_ldap.member_of2': 'prefix': 'apex_ldap.member_of2' 'body': """APEX_LDAP.MEMBER_OF2( p_auth_base => $1, p_host => $2 );$3""" 'description': 'The MEMBER_OF2 function returns a VARCHAR2 colon delimited list of groups the user name designated by p_username (with password if required) belongs to, using the provided auth base, host, and port.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ldap.htm#AEAPI242' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ldap.htm#AEAPI30150 'apex_ldap.search': 'prefix': 'apex_ldap.search' 'body': """APEX_LDAP.SEARCH( p_host => $1, p_search_base => $2, p_search_filter => $3, p_attribute_names => $4 );$5""" 'description': 'The APEX_LDAP.SEARCH function searches the LDAP repository. The result is an object table of (dn, name, val) that can be used in table queries.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ldap.htm#AEAPI30150' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_mail.htm#AEAPI343 'apex_mail.add_attachment': 'prefix': 'apex_mail.add_attachment' 'body': """APEX_MAIL.ADD_ATTACHMENT( p_mail_id => $1, p_attachment => $2, p_filename => $3, p_mime_type => $4 );$5""" 'description': 'This procedure sends an outbound email message from an application as an attachment. To add multiple attachments to a single email, APEX_MAIL.ADD_ATTACHMENT can be called repeatedly for a single email message.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_mail.htm#AEAPI343' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_mail.htm#AEAPI29582 'apex_mail.get_images_url': 'prefix': 'apex_mail.get_images_url' 'body': """APEX_MAIL.GET_IMAGES_URL""" 'description': 'Use this function to get the image prefixed URL, if the email includes Application Express instance images.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_mail.htm#AEAPI29582' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_mail.htm#AEAPI29399 'apex_mail.get_instance_url': 'prefix': 'apex_mail.get_instance_url' 'body': """APEX_MAIL.GET_INSTANCE_URL""" 'description': 'If an email includes a link to an Application Express instance, use this function to get the instance URL.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_mail.htm#AEAPI29399' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_mail.htm#AEAPI344 'apex_mail.push_queue': 'prefix': 'apex_mail.push_queue' 'body': """APEX_MAIL.PUSH_QUEUE""" 'description': 'Oracle Application Express stores unsent email messages in a table named APEX_MAIL_QUEUE. You can manually deliver mail messages stored in this queue to the specified SMTP gateway by invoking the APEX_MAIL.PUSH_QUEUE procedure.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_mail.htm#AEAPI344' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_mail.htm#AEAPI342 'apex_mail.send': 'prefix': 'apex_mail.send' 'body': """APEX_MAIL.SEND( p_to => $1, p_from => $2, p_body => $3, p_replyto => $4 );$5""" 'description': 'This procedure sends an outbound email message from an application. Although you can use this procedure to pass in either a VARCHAR2 or a CLOB to p_body and p_body_html, the data types must be the same. In other words, you cannot pass a CLOB to P_BODY and a VARCHAR2 to p_body_html.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_mail.htm#AEAPI342' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_page.htm#AEAPI30181 'apex_page.get_page_mode': 'prefix': 'apex_page.get_page_mode' 'body': """APEX_PAGE.GET_PAGE_MODE( p_application_id => $1, p_page_id => $2 );$3""" 'description': 'This function returns the page mode for the current page.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_page.htm#AEAPI30181' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_page.htm#AEAPI30177 'apex_page.get_ui_type': 'prefix': 'apex_page.get_ui_type' 'body': """APEX_PAGE.GET_UI_TYPE""" 'description': 'This function returns the user interface (UI) type for which the current page has been designed.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_page.htm#AEAPI30177' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_page.htm#AEAPI30190 'apex_page.get_url': 'prefix': 'apex_page.get_url' 'body': """APEX_PAGE.GET_URL""" 'description': 'This function returns an Oracle Application Express f?p= URL. It is sometimes clearer to read a function call than a concatenated URL. See the example below for a comparison.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_page.htm#AEAPI30190' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_page.htm#AEAPI30171 'apex_page.is_desktop_ui': 'prefix': 'apex_page.is_desktop_ui' 'body': """APEX_PAGE.IS_DESKTOP_UI""" 'description': 'This function returns TRUE if the current page has been designed for desktop browsers.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_page.htm#AEAPI30171' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_page.htm#AEAPI30173 'apex_page.is_jqm_smartphone_ui': 'prefix': 'apex_page.is_jqm_smartphone_ui' 'body': """APEX_PAGE.IS_JQM_SMARTPHONE_UI""" 'description': 'This function returns TRUE if the current page has been designed for smartphone devices using jQuery Mobile.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_page.htm#AEAPI30173' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_page.htm#AEAPI30175 'apex_page.is_jqm_tablet_ui': 'prefix': 'apex_page.is_jqm_tablet_ui' 'body': """APEX_PAGE.IS_JQM_TABLET_UI""" 'description': 'This function returns TRUE if the current page has been designed for tablet devices using jQuery Mobile.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_page.htm#AEAPI30175' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_page.htm#AEAPI30179 'apex_page.is_read_only': 'prefix': 'apex_page.is_read_only' 'body': """APEX_PAGE.IS_READ_ONLY""" 'description': 'This function returns TRUE if the current page is rendered read-only and FALSE if it is not.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_page.htm#AEAPI30179' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_page.htm#AEAPI30185 'apex_page.purge_cache': 'prefix': 'apex_page.purge_cache' 'body': """APEX_PAGE.PURGE_CACHE""" 'description': 'This procedure purges the cache of the specified application, page, and region for the specified user. If the user is not specified, the procedure purges all cached versions of the page.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_page.htm#AEAPI30185' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin.htm#AEAPI1250 'apex_plugin.get_ajax_identifier': 'prefix': 'apex_plugin.get_ajax_identifier' 'body': """APEX_PLUGIN.GET_AJAX_IDENTIFIER""" 'description': 'This function returns the Ajax identifier used to call the Ajax callback function defined for the plug-in.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin.htm#AEAPI1250' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin.htm#AEAPI1254 'apex_plugin.get_input_name_for_page_item': 'prefix': 'apex_plugin.get_input_name_for_page_item' 'body': """APEX_PLUGIN.GET_INPUT_NAME_FOR_PAGE_ITEM( p_is_multi_value => $1 );$2""" 'description': 'Use this function when you want to render an HTML input element in the rendering function of an item type plug-in.For the HTML input element, for example, <input type="text" id="P1_TEST" name="xxx">, you have to provide a value for the name attribute so that Oracle Application Express can map the submitted value to the actual page item in session state. This function returns the mapping name for your page item. If the HTML input element has multiple values, such as a select list with multiple="multiple", then set p_is_multi_value to TRUE.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin.htm#AEAPI1254' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1259 'apex_plugin_util.debug_dynamic_action': 'prefix': 'apex_plugin_util.debug_dynamic_action' 'body': """APEX_PLUGIN_UTIL.DEBUG_DYNAMIC_ACTION( p_plugin => $1, p_dynamic_action => $2 );$3""" 'description': 'This procedure writes the data of the dynamic action meta data to the debug output if debugging is enabled.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1259' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1264 'apex_plugin_util.debug_page_item': 'prefix': 'apex_plugin_util.debug_page_item' 'body': """APEX_PLUGIN_UTIL.DEBUG_PAGE_ITEM( p_plugin => $1, p_page_item => $2 );$3""" 'description': 'This procedure writes the data of the page item meta data to the debug output if debugging is enabled.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1264' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1269 'apex_plugin_util.debug_page_item2': 'prefix': 'apex_plugin_util.debug_page_item2' 'body': """APEX_PLUGIN_UTIL.DEBUG_PAGE_ITEM2( p_plugin => $1, p_page_item => $2, p_value => $3, p_is_readonly => $4, p_is_printer_friendly => $5 );$6""" 'description': 'This procedure writes the data of the page item meta data to the debug output if debugging is enabled.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1269' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1274 'apex_plugin_util.debug_process': 'prefix': 'apex_plugin_util.debug_process' 'body': """APEX_PLUGIN_UTIL.DEBUG_PROCESS( p_plugin => $1, p_process => $2 );$3""" 'description': 'This procedure writes the data of the process meta data to the debug output if debugging is enabled.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1274' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1279 'apex_plugin_util.debug_region': 'prefix': 'apex_plugin_util.debug_region' 'body': """APEX_PLUGIN_UTIL.DEBUG_REGION( p_plugin => $1, p_region => $2 );$3""" 'description': 'This procedure writes the data of the region meta data to the debug output if debugging is enabled.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1279' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1284 'apex_plugin_util.debug_region2': 'prefix': 'apex_plugin_util.debug_region2' 'body': """APEX_PLUGIN_UTIL.DEBUG_REGION2( p_plugin => $1, p_region => $2, p_is_printer_friendly => $3 );$4""" 'description': 'This procedure writes the data of the region meta data to the debug output if debugging is enabled. This is the advanced version of the debugging procedure which is used for the rendering function of a region plug-in.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1284' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1289 'apex_plugin_util.escape': 'prefix': 'apex_plugin_util.escape' 'body': """APEX_PLUGIN_UTIL.ESCAPE( p_value => $1, p_escape => $2 );$3""" 'description': 'This function is used if you have checked the standard attribute "Has Escape Output Attribute" option for your item type plug-in which allows a developer to decide if the output should be escaped or not.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1289' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1294 'apex_plugin_util.execute_plsql_code': 'prefix': 'apex_plugin_util.execute_plsql_code' 'body': """APEX_PLUGIN_UTIL.EXECUTE_PLSQL_CODE( p_plsql_code => $1 );$2""" 'description': 'This procedure executes a PL/SQL code block and performs binding of bind variables in the provided PL/SQL code. This procedure is usually used for plug-in attributes of type PL/SQL Code.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1294' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI29869 'apex_plugin_util.get_attribute_as_number': 'prefix': 'apex_plugin_util.get_attribute_as_number' 'body': """APEX_PLUGIN_UTIL.GET_ATTRIBUTE_AS_NUMBER( p_value => $1, p_attribute_label => $2 );$3""" 'description': 'This function returns the value of a plug-in attribute as a number, taking into account NLS decimal separator effective for the current database session. Use this function in plug-in PL/SQL source for custom attributes of type NUMBER instead of the built-in to_number function.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI29869' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI2163 'apex_plugin_util.get_data': 'prefix': 'apex_plugin_util.get_data' 'body': """APEX_PLUGIN_UTIL.GET_DATA( p_sql_statement => $1, p_min_columns => $2, p_max_columns => $3, p_component_name => $4 );$5""" 'description': 'Executes the specified SQL query restricted by the provided search string (optional) and returns the values for each column. All column values are returned as a string, independent of their data types. The search column is identified by providing a column number in the p_search_column_no parameter. This function takes into account character value comparison globalization attributes defined for the application.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI2163' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI2168 'apex_plugin_util.get_data2': 'prefix': 'apex_plugin_util.get_data2' 'body': """APEX_PLUGIN_UTIL.GET_DATA2( p_sql_statement => $1, p_min_columns => $2, p_max_columns => $3, p_component_name => $4 );$5""" 'description': 'Executes the specified SQL query restricted by the provided search string (optional) and returns the values for each column. All column values are returned along with their original data types. The search column is identified by providing a column number in the p_search_column_no parameter. This function takes into account character value comparison globalization attributes defines for the application.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI2168' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI29403 'apex_plugin_util.get_data2': 'prefix': 'apex_plugin_util.get_data2' 'body': """APEX_PLUGIN_UTIL.GET_DATA2( p_sql_statement => $1, p_min_columns => $2, p_max_columns => $3, p_component_name => $4 );$5""" 'description': 'Executes the specified SQL query restricted by the provided search string (optional) and returns the values for each column. All column values are returned as a string, independent of their data types. The search column is identified by providing a column name in the p_search_column_name parameter. This function takes into account character value comparison globalization attributes defined for the application.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI29403' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI29410 'apex_plugin_util.get_data22': 'prefix': 'apex_plugin_util.get_data22' 'body': """APEX_PLUGIN_UTIL.GET_DATA22( p_sql_statement => $1, p_min_columns => $2, p_max_columns => $3, p_component_name => $4 );$5""" 'description': 'Executes the specified SQL query restricted by the provided search string (optional) and returns the values for each column. All column values are returned along with their original data types. The search column is identified by providing a column number in the p_search_column_no parameter. This function takes into account character value comparison globalization attributes defines for the application.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI29410' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1299 'apex_plugin_util.get_display_data': 'prefix': 'apex_plugin_util.get_display_data' 'body': """APEX_PLUGIN_UTIL.GET_DISPLAY_DATA( p_sql_statement => $1, p_min_columns => $2, p_max_columns => $3, p_component_name => $4 );$5""" 'description': 'This function gets the display lookup value for the value specified in p_search_string.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1299' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1306 'apex_plugin_util.get_display_data2': 'prefix': 'apex_plugin_util.get_display_data2' 'body': """APEX_PLUGIN_UTIL.GET_DISPLAY_DATA2( p_sql_statement => $1, p_min_columns => $2, p_max_columns => $3, p_component_name => $4, p_search_value_list => $5 );$6""" 'description': 'This function looks up all the values provided in the p_search_value_list instead of just a single value lookup.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1306' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI29417 'apex_plugin_util.get_element_attributes': 'prefix': 'apex_plugin_util.get_element_attributes' 'body': """APEX_PLUGIN_UTIL.GET_ELEMENT_ATTRIBUTES( p_item => $1 );$2""" 'description': 'This function returns some of the standard attributes of an HTML element (for example, id, name, required, placeholder, aria-error-attributes, class) which is used if a HTML input/select/textarea/... tag is generated to get a consistent set of attributes.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI29417' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1313 'apex_plugin_util.get_plsql_expression_result': 'prefix': 'apex_plugin_util.get_plsql_expression_result' 'body': """APEX_PLUGIN_UTIL.GET_PLSQL_EXPRESSION_RESULT( p_plsql_expression => $1 );$2""" 'description': 'This function executes a PL/SQL expression and returns a result. This function also performs the binding of any bind variables in the provided PL/SQL expression. This function is usually used for plug-in attributes of type PL/SQL Expression.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1313' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1320 'apex_plugin_util.get_plsql_function_result': 'prefix': 'apex_plugin_util.get_plsql_function_result' 'body': """APEX_PLUGIN_UTIL.GET_PLSQL_FUNCTION_RESULT( p_plsql_function => $1 );$2""" 'description': 'This function executes a PL/SQL function block and returns the result. This function also performs binding of bind variables in the provided PL/SQL Function Body. This function is usually used for plug-in attributes of type PL/SQL Function Body.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1320' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1327 'apex_plugin_util.get_position_in_list': 'prefix': 'apex_plugin_util.get_position_in_list' 'body': """APEX_PLUGIN_UTIL.GET_POSITION_IN_LIST( p_list => $1, p_value => $2 );$3""" 'description': 'This function returns the position in the list where p_value is stored. If it is not found, null is returned.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1327' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1334 'apex_plugin_util.get_search_string': 'prefix': 'apex_plugin_util.get_search_string' 'body': """APEX_PLUGIN_UTIL.GET_SEARCH_STRING( p_search_type => $1, p_search_string => $2 );$3""" 'description': 'Based on the provided value in p_search_type the passed in value of p_search_string is returned unchanged or is converted to uppercase. Use this function with the p_search_string parameter of get_data and get_data2.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1334' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1341 'apex_plugin_util.is_equal': 'prefix': 'apex_plugin_util.is_equal' 'body': """APEX_PLUGIN_UTIL.IS_EQUAL( p_value1 => $1, p_value2 => $2 );$3""" 'description': 'This function returns TRUE if both values are equal and FALSE if not. If both values are NULL, TRUE is returned.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1341' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1348 'apex_plugin_util.page_item_names_to_jquery': 'prefix': 'apex_plugin_util.page_item_names_to_jquery' 'body': """APEX_PLUGIN_UTIL.PAGE_ITEM_NAMES_TO_JQUERY( p_page_item_names => $1 );$2""" 'description': 'This function returns a jQuery selector based on a comma delimited string of page item names. For example, you could use this function for a plug-in attribute called "Page Items to Submit" where the JavaScript code has to read the values of the specified page items.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1348' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1355 'apex_plugin_util.print_display_only': 'prefix': 'apex_plugin_util.print_display_only' 'body': """APEX_PLUGIN_UTIL.PRINT_DISPLAY_ONLY( p_item_name => $1, p_display_value => $2, p_show_line_breaks => $3, p_attributes => $4 );$5""" 'description': 'This procedure outputs a SPAN tag for a display only field.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1355' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1360 'apex_plugin_util.print_escaped_value': 'prefix': 'apex_plugin_util.print_escaped_value' 'body': """APEX_PLUGIN_UTIL.PRINT_ESCAPED_VALUE( p_value => $1 );$2""" 'description': 'This procedure outputs the value in an escaped form and chunks big strings into smaller outputs.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1360' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1365 'apex_plugin_util.print_hidden_if_read_only': 'prefix': 'apex_plugin_util.print_hidden_if_read_only' 'body': """APEX_PLUGIN_UTIL.PRINT_HIDDEN_IF_READ_ONLY( p_item_name => $1, p_value => $2, p_is_readonly => $3, p_is_printer_friendly => $4 );$5""" 'description': 'This procedure outputs a hidden field to store the page item value if the page item is rendered as readonly and is not printer friendly. If this procedure is called in an item type plug-in, the parameters of the plug-in interface should directly be passed in.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1365' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1370 'apex_plugin_util.print_json_http_header': 'prefix': 'apex_plugin_util.print_json_http_header' 'body': """APEX_PLUGIN_UTIL.PRINT_JSON_HTTP_HEADER""" 'description': 'This procedure outputs a standard HTTP header for a JSON output.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1370' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1374 'apex_plugin_util.print_lov_as_json': 'prefix': 'apex_plugin_util.print_lov_as_json' 'body': """APEX_PLUGIN_UTIL.PRINT_LOV_AS_JSON( p_sql_statement => $1, p_component_name => $2, p_escape => $3 );$4""" 'description': 'This procedure outputs a JSON response based on the result of a two column LOV in the format:' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1374' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1379 'apex_plugin_util.print_option': 'prefix': 'apex_plugin_util.print_option' 'body': """APEX_PLUGIN_UTIL.PRINT_OPTION( p_display_value => $1, p_return_value => $2, p_is_selected => $3, p_attributes => $4 );$5""" 'description': 'This procedure outputs an OPTION tag.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI1379' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI2289 'apex_plugin_util.replace_substitutions': 'prefix': 'apex_plugin_util.replace_substitutions' 'body': """APEX_PLUGIN_UTIL.REPLACE_SUBSTITUTIONS( p_value => $1 );$2""" 'description': 'This function replaces any &ITEM. substitution references with their actual value. If p_escape is set to TRUE, any special characters contained in the value of the referenced item are escaped to prevent Cross-site scripting (XSS) attacks.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI2289' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_region.htm#AEAPI30197 'apex_region.is_read_only2': 'prefix': 'apex_region.is_read_only2' 'body': """APEX_REGION.IS_READ_ONLY2""" 'description': 'This function returns TRUE if the current region is rendered read-only and FALSE if region is not rendered read-only. If the function is called from a context where no region is currently processed, it returns NULL. For example, you can use this function in conditions of a region or its underlying items and buttons.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_region.htm#AEAPI30197' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_region.htm#AEAPI30201 'apex_region.purge_cache2': 'prefix': 'apex_region.purge_cache2' 'body': """APEX_REGION.PURGE_CACHE2""" 'description': 'This procedure purges the region cache of the specified application, page, and region.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_region.htm#AEAPI30201' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_spatial.htm#AEAPI30206 'apex_spatial.change_geom_metadata': 'prefix': 'apex_spatial.change_geom_metadata' 'body': """APEX_SPATIAL.CHANGE_GEOM_METADATA( p_table_name => $1, p_column_name => $2, p_diminfo => $3, p_srid => $4 );$5""" 'description': 'This procedure modifies a spatial metadata record.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_spatial.htm#AEAPI30206' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_spatial.htm#AEAPI29884 'apex_spatial.circle_polygon': 'prefix': 'apex_spatial.circle_polygon' 'body': """APEX_SPATIAL.CIRCLE_POLYGON( p_lon => $1, p_lat => $2, p_radius => $3 );$4""" 'description': 'This function creates a polygon that approximates a circle at (p_lon, p_lat) with radius of p_radius. See mdsys.sdo_util.circle_polygon for details.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_spatial.htm#AEAPI29884' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_spatial.htm#AEAPI29891 'apex_spatial.delete_geom_metadata': 'prefix': 'apex_spatial.delete_geom_metadata' 'body': """APEX_SPATIAL.DELETE_GEOM_METADATA( p_table_name => $1, p_column_name => $2 );$3""" 'description': 'This procedure deletes a spatial metadata record.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_spatial.htm#AEAPI29891' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_spatial.htm#AEAPI29896 'apex_spatial.insert_geom_metadata': 'prefix': 'apex_spatial.insert_geom_metadata' 'body': """APEX_SPATIAL.INSERT_GEOM_METADATA( p_table_name => $1, p_column_name => $2, p_diminfo => $3, p_srid => $4 );$5""" 'description': 'This procedure inserts a spatial metadata record and optionally creates a spatial index.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_spatial.htm#AEAPI29896' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_spatial.htm#AEAPI29901 'apex_spatial.insert_geom_metadata_lonlat': 'prefix': 'apex_spatial.insert_geom_metadata_lonlat' 'body': """APEX_SPATIAL.INSERT_GEOM_METADATA_LONLAT( p_table_name => $1, p_column_name => $2 );$3""" 'description': 'This procedure inserts a spatial metadata record that is suitable for longitude/latitude and optionally creates a spatial index.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_spatial.htm#AEAPI29901' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_spatial.htm#AEAPI29906 'apex_spatial.point': 'prefix': 'apex_spatial.point' 'body': """APEX_SPATIAL.POINT( p_lon => $1, p_lat => $2 );$3""" 'description': 'This function creates a point at (p_lon, p_lat).' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_spatial.htm#AEAPI29906' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_spatial.htm#AEAPI29913 'apex_spatial.rectangle': 'prefix': 'apex_spatial.rectangle' 'body': """APEX_SPATIAL.RECTANGLE( p_lon1 => $1, p_lat1 => $2, p_lon2 => $3, p_lat2 => $4 );$5""" 'description': 'This function creates a rectangle from point at (p_lon1, p_lat1) to (p_lon2, p_lat2).' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_spatial.htm#AEAPI29913' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI400 'apex_ui_default_update.add_ad_column': 'prefix': 'apex_ui_default_update.add_ad_column' 'body': """APEX_UI_DEFAULT_UPDATE.ADD_AD_COLUMN( p_column_name => $1 );$2""" 'description': 'Adds a User Interface Default Attribute Dictionary entry with the provided definition. Up to three synonyms can be provided during the creation. Additional synonyms can be added post-creation using apex_ui_default_update.add_ad_synonym. Synonyms share the column definition of their base column.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI400' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI401 'apex_ui_default_update.add_ad_synonym': 'prefix': 'apex_ui_default_update.add_ad_synonym' 'body': """APEX_UI_DEFAULT_UPDATE.ADD_AD_SYNONYM( p_column_name => $1, p_syn_name => $2 );$3""" 'description': 'If the column name is found within the User Interface Default Attribute Dictionary, the synonym provided is created and associated with that column. Synonyms share the column definition of their base column.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI401' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI402 'apex_ui_default_update.del_ad_column': 'prefix': 'apex_ui_default_update.del_ad_column' 'body': """APEX_UI_DEFAULT_UPDATE.DEL_AD_COLUMN( p_column_name => $1 );$2""" 'description': 'If the column name is found within the User Interface Default Attribute Dictionary, the column, along with any associated synonyms, is deleted.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI402' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI403 'apex_ui_default_update.del_ad_synonym': 'prefix': 'apex_ui_default_update.del_ad_synonym' 'body': """APEX_UI_DEFAULT_UPDATE.DEL_AD_SYNONYM( p_syn_name => $1 );$2""" 'description': 'If the synonym name is found within the User Interface Default Attribute Dictionary, the synonym name is deleted.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI403' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI404 'apex_ui_default_update.del_column': 'prefix': 'apex_ui_default_update.del_column' 'body': """APEX_UI_DEFAULT_UPDATE.DEL_COLUMN( p_table_name => $1, p_column_name => $2 );$3""" 'description': 'If the provided table and column exists within the use\'s schem\'s table based User Interface Defaults, the UI Defaults for it are deleted.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI404' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI405 'apex_ui_default_update.del_group': 'prefix': 'apex_ui_default_update.del_group' 'body': """APEX_UI_DEFAULT_UPDATE.DEL_GROUP( p_table_name => $1, p_group_name => $2 );$3""" 'description': 'If the provided table and group exists within the use\'s schem\'s table based User Interface Defaults, the UI Defaults for it are deleted and any column within the table that references that group has the group_id set to null.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI405' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI406 'apex_ui_default_update.del_table': 'prefix': 'apex_ui_default_update.del_table' 'body': """APEX_UI_DEFAULT_UPDATE.DEL_TABLE( p_table_name => $1 );$2""" 'description': 'If the provided table exists within the use\'s schem\'s table based User Interface Defaults, the UI Defaults for it is deleted. This includes the deletion of any groups defined for the table and all the columns associated with the table.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI406' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI407 'apex_ui_default_update.synch_table': 'prefix': 'apex_ui_default_update.synch_table' 'body': """APEX_UI_DEFAULT_UPDATE.SYNCH_TABLE( p_table_name => $1 );$2""" 'description': 'If the Table Based User Interface Defaults for the table do not already exist within the use\'s schema, they are defaulted. If they do exist, they are synchronized, meaning, the columns in the table is matched against the column in the UI Defaults Table Definitions. Additions and deletions are used to make them match.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI407' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI408 'apex_ui_default_update.upd_ad_column': 'prefix': 'apex_ui_default_update.upd_ad_column' 'body': """APEX_UI_DEFAULT_UPDATE.UPD_AD_COLUMN( p_column_name => $1 );$2""" 'description': 'If the column name is found within the User Interface Default Attribute Dictionary, the column entry is updated using the provided parameters. If\'null\' is passed in, the value of the associated parameter is set to null.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI408' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI409 'apex_ui_default_update.upd_ad_synonym': 'prefix': 'apex_ui_default_update.upd_ad_synonym' 'body': """APEX_UI_DEFAULT_UPDATE.UPD_AD_SYNONYM( p_syn_name => $1 );$2""" 'description': 'If the synonym name is found within the User Interface Default Attribute Dictionary, the synonym name is updated.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI409' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI410 'apex_ui_default_update.upd_column': 'prefix': 'apex_ui_default_update.upd_column' 'body': """APEX_UI_DEFAULT_UPDATE.UPD_COLUMN( p_table_name => $1, p_column_name => $2 );$3""" 'description': 'If the provided table and column exists within the use\'s schem\'s table based User Interface Defaults, the provided parameters are updated. If\'null\' is passed in, the value of the associated parameter is set to null.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI410' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI259 'apex_ui_default_update.upd_display_in_form': 'prefix': 'apex_ui_default_update.upd_display_in_form' 'body': """APEX_UI_DEFAULT_UPDATE.UPD_DISPLAY_IN_FORM( p_table_name => $1, p_column_name => $2, p_display_in_form => $3 );$4""" 'description': 'The UPD_DISPLAY_IN_FORM procedure sets the display in form user interface defaults. This user interface default is used by wizards when you select to create a form based upon the table. It controls whether the column is included by default or not.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI259' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI260 'apex_ui_default_update.upd_display_in_report': 'prefix': 'apex_ui_default_update.upd_display_in_report' 'body': """APEX_UI_DEFAULT_UPDATE.UPD_DISPLAY_IN_REPORT( p_table_name => $1, p_column_name => $2, p_display_in_report => $3 );$4""" 'description': 'The UPD_DISPLAY_IN_REPORT procedure sets the display in report user interface default. This user interface default is used by wizards when you select to create a report based upon the table and controls whether the column is included by default or not.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI260' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI255 'apex_ui_default_update.upd_form_region_title': 'prefix': 'apex_ui_default_update.upd_form_region_title' 'body': """APEX_UI_DEFAULT_UPDATE.UPD_FORM_REGION_TITLE( p_table_name => $1 );$2""" 'description': 'The UPD_FORM_REGION_TITLE procedure updates the Form Region Title user interface default. User interface defaults are used in wizards when you create a form based upon the specified table.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI255' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI411 'apex_ui_default_update.upd_group': 'prefix': 'apex_ui_default_update.upd_group' 'body': """APEX_UI_DEFAULT_UPDATE.UPD_GROUP( p_table_name => $1, p_group_name => $2 );$3""" 'description': 'If the provided table and group exist within the use\'s schem\'s table based User Interface Defaults, the group name, description and display sequence of the group are updated. If\'null\' is passed in for p_description or p_display_sequence, the value is set to null.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI411' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI262 'apex_ui_default_update.upd_item_display_height': 'prefix': 'apex_ui_default_update.upd_item_display_height' 'body': """APEX_UI_DEFAULT_UPDATE.UPD_ITEM_DISPLAY_HEIGHT( p_table_name => $1, p_column_name => $2, p_display_height => $3 );$4""" 'description': 'The UPD_ITEM_DISPLAY_HEIGHT procedure sets the item display height user interface default. This user interface default is used by wizards when you select to create a form based upon the table and include the specified column. Display height controls if the item is a text box or a text area.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI262' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI261 'apex_ui_default_update.upd_item_display_width': 'prefix': 'apex_ui_default_update.upd_item_display_width' 'body': """APEX_UI_DEFAULT_UPDATE.UPD_ITEM_DISPLAY_WIDTH( p_table_name => $1, p_column_name => $2, p_display_width => $3 );$4""" 'description': 'The UPD_ITEM_DISPLAY_WIDTH procedure sets the item display width user interface default. This user interface default is used by wizards when you select to create a form based upon the table and include the specified column.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI261' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI264 'apex_ui_default_update.upd_item_format_mask': 'prefix': 'apex_ui_default_update.upd_item_format_mask' 'body': """APEX_UI_DEFAULT_UPDATE.UPD_ITEM_FORMAT_MASK( p_table_name => $1, p_column_name => $2 );$3""" 'description': 'The UPD_ITEM_FORMAT_MASK procedure sets the item format mask user interface default. This user interface default is used by wizards when you select to create a form based upon the table and include the specified column. Item format mask is typically used to format numbers and dates.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI264' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI258 'apex_ui_default_update.upd_item_help': 'prefix': 'apex_ui_default_update.upd_item_help' 'body': """APEX_UI_DEFAULT_UPDATE.UPD_ITEM_HELP( p_table_name => $1, p_column_name => $2 );$3""" 'description': 'The UPD_ITEM_HELP procedure updates the help text for the specified table and column. This user interface default is used when you create a form based upon the table and select to include the specified column.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI258' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI257 'apex_ui_default_update.upd_label': 'prefix': 'apex_ui_default_update.upd_label' 'body': """APEX_UI_DEFAULT_UPDATE.UPD_LABEL( p_table_name => $1, p_column_name => $2 );$3""" 'description': 'The UPD_LABEL procedure sets the label used for items. This user interface default is used when you create a form or report based on the specified table and include a specific column.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI257' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI263 'apex_ui_default_update.upd_report_alignment': 'prefix': 'apex_ui_default_update.upd_report_alignment' 'body': """APEX_UI_DEFAULT_UPDATE.UPD_REPORT_ALIGNMENT( p_table_name => $1, p_column_name => $2, p_report_alignment => $3 );$4""" 'description': 'The UPD_REPORT_ALIGNMENT procedure sets the report alignment user interface default. This user interface default is used by wizards when you select to create a report based upon the table and include the specified column and determines if the report column should be left, center, or right justified.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI263' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI265 'apex_ui_default_update.upd_report_format_mask': 'prefix': 'apex_ui_default_update.upd_report_format_mask' 'body': """APEX_UI_DEFAULT_UPDATE.UPD_REPORT_FORMAT_MASK( p_table_name => $1, p_column_name => $2 );$3""" 'description': 'The UPD_REPORT_FORMAT_MASK procedure sets the report format mask user interface default. This user interface default is used by wizards when you select to create a report based upon the table and include the specified column. Report format mask is typically used to format numbers and dates.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI265' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI256 'apex_ui_default_update.upd_report_region_title': 'prefix': 'apex_ui_default_update.upd_report_region_title' 'body': """APEX_UI_DEFAULT_UPDATE.UPD_REPORT_REGION_TITLE( p_table_name => $1 );$2""" 'description': 'The UPD_REPORT_REGION_TITLE procedure sets the Report Region Title. User interface defaults are used in wizards when a report is created on a table.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI256' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI412 'apex_ui_default_update.upd_table': 'prefix': 'apex_ui_default_update.upd_table' 'body': """APEX_UI_DEFAULT_UPDATE.UPD_TABLE( p_table_name => $1 );$2""" 'description': 'If the provided table exists within the use\'s schem\'s table based User Interface Defaults, the form region title and report region title are updated to match those provided. If\'null\' is passed in for p_form_region_title or p_report_region_title, the value is set to null.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_ui_default.htm#AEAPI412' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI103 'apex_util.cache_get_date_of_page_cache': 'prefix': 'apex_util.cache_get_date_of_page_cache' 'body': """APEX_UTIL.CACHE_GET_DATE_OF_PAGE_CACHE( p_application => $1, p_page => $2 );$3""" 'description': 'This function returns the date and time a specified application page was cached either for the user issuing the call, or for all users if the page was not set to be cached by user.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI103' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI104 'apex_util.cache_get_date_of_region_cache': 'prefix': 'apex_util.cache_get_date_of_region_cache' 'body': """APEX_UTIL.CACHE_GET_DATE_OF_REGION_CACHE( p_application => $1, p_page => $2, p_region_name => $3 );$4""" 'description': 'This function returns the date and time a specified region was cached either for the user issuing the call, or for all users if the page was not set to be cached by user.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI104' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI105 'apex_util.cache_purge_by_application': 'prefix': 'apex_util.cache_purge_by_application' 'body': """APEX_UTIL.CACHE_PURGE_BY_APPLICATION( p_application => $1 );$2""" 'description': 'This procedure purges all cached pages and regions for a given application.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI105' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI106 'apex_util.cache_purge_by_page': 'prefix': 'apex_util.cache_purge_by_page' 'body': """APEX_UTIL.CACHE_PURGE_BY_PAGE( p_application => $1, p_page => $2 );$3""" 'description': 'This procedure purges the cache for a given application and page. If the page itself is not cached but contains one or more cached regions, then the cache for these is also purged.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI106' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI107 'apex_util.cache_purge_stale': 'prefix': 'apex_util.cache_purge_stale' 'body': """APEX_UTIL.CACHE_PURGE_STALE( p_application => $1 );$2""" 'description': 'This procedure deletes all cached pages and regions for a specified application that have passed the defined active time period. When you cache a page or region, you specify an active time period (or Cache Timeout). Once that period has passed, the cache is no longer used, thus removing those unusable pages or regions from the cache.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI107' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI102 'apex_util.change_current_user_pw': 'prefix': 'apex_util.change_current_user_pw' 'body': """APEX_UTIL.CHANGE_CURRENT_USER_PW( p_new_password => $1 );$2""" 'description': 'This procedure changes the password of the currently authenticated user, assuming Application Express user accounts are in use.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI102' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI108 'apex_util.change_password_on_first_use': 'prefix': 'apex_util.change_password_on_first_use' 'body': """APEX_UTIL.CHANGE_PASSWORD_ON_FIRST_USE( p_user_name => $1 );$2""" 'description': 'Enables a developer to check whether this property is enabled or disabled for an end user account. This function returns TRUE if the account password must be changed upon first use (after successful authentication) after the password is initially set and after it is changed on the Administration Service, Edit User page. This function returns FALSE if the account does not have this property.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI108' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI109 'apex_util.clear_app_cache': 'prefix': 'apex_util.clear_app_cache' 'body': """APEX_UTIL.CLEAR_APP_CACHE""" 'description': 'This procedure removes session state for a given application for the current session.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI109' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI110 'apex_util.clear_page_cache': 'prefix': 'apex_util.clear_page_cache' 'body': """APEX_UTIL.CLEAR_PAGE_CACHE""" 'description': 'This procedure removes session state for a given page for the current session.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI110' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI111 'apex_util.clear_user_cache': 'prefix': 'apex_util.clear_user_cache' 'body': """APEX_UTIL.CLEAR_USER_CACHE""" 'description': 'This procedure removes session state and application system preferences for the current use\'s session. Run this procedure if you reuse session IDs and want to run applications without the benefit of existing session state.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI111' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI30156 'apex_util.close_open_db_links': 'prefix': 'apex_util.close_open_db_links' 'body': """APEX_UTIL.CLOSE_OPEN_DB_LINKS""" 'description': 'This procedure closes all open database links for the current database session.It is rare that this procedure would ever be called programatically in an application. The primary purpose of this procedure is for the middleware technology in an Oracle Application Express environment (for example, Oracle REST Data Service, mod_plsql) to be configured such that it closes all of the open database links in a session, either before a request is made to the Application Express engine, or after a request to the Application Express engine is completed but before the database session is returned to the pool.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI30156' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI112 'apex_util.count_click': 'prefix': 'apex_util.count_click' 'body': """APEX_UTIL.COUNT_CLICK( p_url => $1, p_cat => $2 );$3""" 'description': 'This procedure counts clicks from an application built in Application Builder to an external site. You can also use the shorthand version, procedure Z, in place of APEX_UTIL.COUNT_CLICK.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI112' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI114 'apex_util.create_user': 'prefix': 'apex_util.create_user' 'body': """APEX_UTIL.CREATE_USER( p_user_name => $1, p_web_password => $2 );$3""" 'description': 'This procedure creates a new account record in the Application Express user account table. To execute this procedure, the current user must have administrative privileges.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI114' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI115 'apex_util.create_user_group': 'prefix': 'apex_util.create_user_group' 'body': """APEX_UTIL.CREATE_USER_GROUP( p_group_name => $1 );$2""" 'description': 'Assuming you are using Application Express authentication, this procedure creates a user group. To execute this procedure, the current user must have administrative privileges in the workspace.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI115' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI116 'apex_util.current_user_in_group': 'prefix': 'apex_util.current_user_in_group' 'body': """APEX_UTIL.CURRENT_USER_IN_GROUP( p_group_name => $1 );$2""" 'description': 'This function returns a Boolean result based on whether the current user is a member of the specified group. You can use the group name or group ID to identify the group.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI116' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI1536 'apex_util.custom_calendar': 'prefix': 'apex_util.custom_calendar' 'body': """APEX_UTIL.CUSTOM_CALENDAR( p_date_type_field => $1 );$2""" 'description': 'Use this procedure to change the existing calendar view to Custom Calendar.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI1536' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI2296 'apex_util.delete_user_group': 'prefix': 'apex_util.delete_user_group' 'body': """APEX_UTIL.DELETE_USER_GROUP( p_group_id => $1 );$2""" 'description': 'Assuming you are using Application Express authentication, this procedure deletes a user group by providing the primary key of the group. To execute this procedure, the current user must have administrative privileges in the workspace.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI2296' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI2301 'apex_util.delete_user_group2': 'prefix': 'apex_util.delete_user_group2' 'body': """APEX_UTIL.DELETE_USER_GROUP2( p_group_name => $1 );$2""" 'description': 'Assuming you are using Application Express authentication, this procedure deletes a user group by providing the name of the group. To execute this procedure, the current user must have administrative privileges in the workspace.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI2301' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI147 'apex_util.download_print_document': 'prefix': 'apex_util.download_print_document' 'body': """APEX_UTIL.DOWNLOAD_PRINT_DOCUMENT( p_file_name => $1, p_content_disposition => $2, p_report_data => $3, p_report_layout => $4 );$5""" 'description': 'This procedure initiates the download of a print document using XML based report data (as a BLOB) and RTF or XSL-FO based report layout.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI147' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI148 'apex_util.download_print_document2': 'prefix': 'apex_util.download_print_document2' 'body': """APEX_UTIL.DOWNLOAD_PRINT_DOCUMENT2( p_file_name => $1, p_content_disposition => $2, p_application_id => $3, p_report_query_name => $4, p_report_layout => $5 );$6""" 'description': 'This procedure initiates the download of a print document using pre-defined report query and RTF and XSL-FO based report layout.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI148' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI149 'apex_util.download_print_document3': 'prefix': 'apex_util.download_print_document3' 'body': """APEX_UTIL.DOWNLOAD_PRINT_DOCUMENT3( p_file_name => $1, p_content_disposition => $2, p_application_id => $3, p_report_query_name => $4, p_report_layout_name => $5 );$6""" 'description': 'This procedure initiates the download of a print document using pre-defined report query and pre-defined report layout.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI149' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI150 'apex_util.download_print_document4': 'prefix': 'apex_util.download_print_document4' 'body': """APEX_UTIL.DOWNLOAD_PRINT_DOCUMENT4( p_file_name => $1, p_content_disposition => $2, p_report_data => $3, p_report_layout => $4 );$5""" 'description': 'This procedure initiates the download of a print document using XML based report data (as a CLOB) and RTF or XSL-FO based report layout.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI150' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI117 'apex_util.edit_user': 'prefix': 'apex_util.edit_user' 'body': """APEX_UTIL.EDIT_USER( p_user_id => $1, p_user_name => $2 );$3""" 'description': 'This procedure enables a user account record to be altered. To execute this procedure, the current user must have administrative privileges in the workspace.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI117' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI118 'apex_util.end_user_account_days_left': 'prefix': 'apex_util.end_user_account_days_left' 'body': """APEX_UTIL.END_USER_ACCOUNT_DAYS_LEFT( p_user_name => $1 );$2""" 'description': 'Returns the number of days remaining before a end user account password expires. This function may be run in a page request context by any authenticated user.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI118' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI119 'apex_util.expire_end_user_account': 'prefix': 'apex_util.expire_end_user_account' 'body': """APEX_UTIL.EXPIRE_END_USER_ACCOUNT( p_user_name => $1 );$2""" 'description': 'Expires the login account for use as a workspace end user. Must be run by an authenticated workspace administrator in a page request context.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI119' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI120 'apex_util.expire_workspace_account': 'prefix': 'apex_util.expire_workspace_account' 'body': """APEX_UTIL.EXPIRE_WORKSPACE_ACCOUNT( p_user_name => $1 );$2""" 'description': 'Expires developer or workspace administrator login accounts. Must be run by an authenticated workspace administrator in a page request context.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI120' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI121 'apex_util.export_users': 'prefix': 'apex_util.export_users' 'body': """APEX_UTIL.EXPORT_USERS""" 'description': 'When called from a page, this procedure produces an export file of the current workspace definition, workspace users, and workspace groups. To execute this procedure, the current user must have administrative privilege in the workspace.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI121' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI122 'apex_util.fetch_app_item': 'prefix': 'apex_util.fetch_app_item' 'body': """APEX_UTIL.FETCH_APP_ITEM( p_item => $1 );$2""" 'description': 'This function fetches session state for the current or specified application in the current or specified session.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI122' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI124 'apex_util.find_security_group_id': 'prefix': 'apex_util.find_security_group_id' 'body': """APEX_UTIL.FIND_SECURITY_GROUP_ID( p_workspace => $1 );$2""" 'description': 'This function returns the numeric security group ID of the named workspace.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI124' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI125 'apex_util.find_workspace': 'prefix': 'apex_util.find_workspace' 'body': """APEX_UTIL.FIND_WORKSPACE( p_security_group_id => $1 );$2""" 'description': 'This function returns the workspace name associated with a security group ID.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI125' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI126 'apex_util.get_account_locked_status': 'prefix': 'apex_util.get_account_locked_status' 'body': """APEX_UTIL.GET_ACCOUNT_LOCKED_STATUS( p_user_name => $1 );$2""" 'description': 'Returns TRUE if the account is locked and FALSE if the account is unlocked. Must be run by an authenticated workspace administrator in a page request context.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI126' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI127 'apex_util.get_attribute': 'prefix': 'apex_util.get_attribute' 'body': """APEX_UTIL.GET_ATTRIBUTE( p_username => $1, p_attribute_number => $2 );$3""" 'description': 'This function returns the value of one of the attribute values (1 through 10) of a named user in the Application Express accounts table. Please note these are only accessible by using the APIs.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI127' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI128 'apex_util.get_authentication_result': 'prefix': 'apex_util.get_authentication_result' 'body': """APEX_UTIL.GET_AUTHENTICATION_RESULT""" 'description': 'Use this function to retrieve the authentication result of the current session. Any authenticated user can call this function in a page request context.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI128' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI129 'apex_util.get_blob_file_src': 'prefix': 'apex_util.get_blob_file_src' 'body': """APEX_UTIL.GET_BLOB_FILE_SRC""" 'description': 'As an alternative to using the built-in methods of providing a download link, you can use the APEX_UTIL.GET_BLOB_FILE_SRC function. One advantage of this approach, is the ability to more specifically format the display of the image (with height and width tags). Please note that this approach is only valid if called from a valid Oracle Application Express session. Also, this method requires that the parameters that describe the BLOB to be listed as the format of a valid item within the application. That item is then referenced by the function.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI129' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI29422 'apex_util.get_build_option_status': 'prefix': 'apex_util.get_build_option_status' 'body': """APEX_UTIL.GET_BUILD_OPTION_STATUS( p_application_id => $1, p_id => $2 );$3""" 'description': 'Use this function to get the build option status of a specified application by providing the ID of the application build option.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI29422' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI29427 'apex_util.get_build_option_status2': 'prefix': 'apex_util.get_build_option_status2' 'body': """APEX_UTIL.GET_BUILD_OPTION_STATUS2( p_application_id => $1, p_build_option_name => $2 );$3""" 'description': 'Use this function to get the build option status of a specified application by providing the name of the application build option.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI29427' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI130 'apex_util.get_current_user_id': 'prefix': 'apex_util.get_current_user_id' 'body': """APEX_UTIL.GET_CURRENT_USER_ID""" 'description': 'This function returns the numeric user ID of the current user.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI130' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI131 'apex_util.get_default_schema': 'prefix': 'apex_util.get_default_schema' 'body': """APEX_UTIL.GET_DEFAULT_SCHEMA""" 'description': 'This function returns the default schema name associated with the current user.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI131' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI500 'apex_util.get_edition': 'prefix': 'apex_util.get_edition' 'body': """APEX_UTIL.GET_EDITION""" 'description': 'This function returns the edition for the current page view.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI500' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI132 'apex_util.get_email': 'prefix': 'apex_util.get_email' 'body': """APEX_UTIL.GET_EMAIL( p_username => $1 );$2""" 'description': 'This function returns the email address associated with the named user.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI132' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI519 'apex_util.get_feedback_follow_up': 'prefix': 'apex_util.get_feedback_follow_up' 'body': """APEX_UTIL.GET_FEEDBACK_FOLLOW_UP( p_feedback_id => $1 );$2""" 'description': 'Use this function to retrieve any remaining follow up associated with a specific feedback.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI519' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI133 'apex_util.get_file': 'prefix': 'apex_util.get_file' 'body': """APEX_UTIL.GET_FILE( p_file_id => $1 );$2""" 'description': 'This procedure downloads files from the Oracle Application Express file repository. Please note if you are invoking this procedure during page processing, you must ensure that no page branch is invoked under the same condition, as it interferes with the file retrieval. This means that branches with any of the following conditions should not be set to fire:' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI133' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI134 'apex_util.get_file_id': 'prefix': 'apex_util.get_file_id' 'body': """APEX_UTIL.GET_FILE_ID( p_name => $1 );$2""" 'description': 'This function obtains the primary key of a file in the Oracle Application Express file repository.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI134' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI135 'apex_util.get_first_name': 'prefix': 'apex_util.get_first_name' 'body': """APEX_UTIL.GET_FIRST_NAME""" 'description': 'This function returns the FIRST_NAME field stored in the named user account record.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI135' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI137 'apex_util.get_group_id': 'prefix': 'apex_util.get_group_id' 'body': """APEX_UTIL.GET_GROUP_ID( p_group_name => $1 );$2""" 'description': 'This function returns the numeric ID of a named group in the workspace.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI137' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI138 'apex_util.get_group_name': 'prefix': 'apex_util.get_group_name' 'body': """APEX_UTIL.GET_GROUP_NAME( p_group_id => $1 );$2""" 'description': 'This function returns the name of a group identified by a numeric ID.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI138' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI136 'apex_util.get_groups_user_belongs_to': 'prefix': 'apex_util.get_groups_user_belongs_to' 'body': """APEX_UTIL.GET_GROUPS_USER_BELONGS_TO( p_username => $1 );$2""" 'description': 'This function returns a comma then a space separated list of group names to which the named user is a member.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI136' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI30207 'apex_util.get_hash': 'prefix': 'apex_util.get_hash' 'body': """APEX_UTIL.GET_HASH( p_values => $1 );$2""" 'description': 'This function computes a hash value for all given values. Use this function to implement lost update detection for data records.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI30207' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI2306 'apex_util.get_high_contrast_mode_toggle': 'prefix': 'apex_util.get_high_contrast_mode_toggle' 'body': """APEX_UTIL.GET_HIGH_CONTRAST_MODE_TOGGLE""" 'description': 'This function returns a link to the current page that enables you to turn on or off, toggle, the mode. For example, if you are in standard mode, this function displays a link that when clicked switches high contrast mode on.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI2306' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI139 'apex_util.get_last_name': 'prefix': 'apex_util.get_last_name' 'body': """APEX_UTIL.GET_LAST_NAME( p_username => $1 );$2""" 'description': 'This function returns the LAST_NAME field stored in the named user account record.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI139' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI141 'apex_util.get_numeric_session_state': 'prefix': 'apex_util.get_numeric_session_state' 'body': """APEX_UTIL.GET_NUMERIC_SESSION_STATE( p_item => $1 );$2""" 'description': 'This function returns a numeric value for a numeric item. You can use this function in Oracle Application Express applications wherever you can use PL/SQL or SQL. You can also use the shorthand, function NV, in place of APEX_UTIL.GET_NUMERIC_SESSION_STATE.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI141' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI142 'apex_util.get_preference': 'prefix': 'apex_util.get_preference' 'body': """APEX_UTIL.GET_PREFERENCE""" 'description': 'This function retrieves the value of a previously saved preference for a given user.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI142' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI143 'apex_util.get_print_document': 'prefix': 'apex_util.get_print_document' 'body': """APEX_UTIL.GET_PRINT_DOCUMENT( p_report_data => $1, p_report_layout => $2 );$3""" 'description': 'This function returns a document as BLOB using XML based report data and RTF or XSL-FO based report layout.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI143' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI144 'apex_util.get_print_document2': 'prefix': 'apex_util.get_print_document2' 'body': """APEX_UTIL.GET_PRINT_DOCUMENT2( p_application_id => $1, p_report_query_name => $2 );$3""" 'description': 'This function returns a document as BLOB using pre-defined report query and pre-defined report layout.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI144' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI145 'apex_util.get_print_document3': 'prefix': 'apex_util.get_print_document3' 'body': """APEX_UTIL.GET_PRINT_DOCUMENT3( p_application_id => $1, p_report_query_name => $2, p_report_layout => $3 );$4""" 'description': 'This function returns a document as BLOB using a pre-defined report query and RTF or XSL-FO based report layout.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI145' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI146 'apex_util.get_print_document4': 'prefix': 'apex_util.get_print_document4' 'body': """APEX_UTIL.GET_PRINT_DOCUMENT4( p_report_data => $1, p_report_layout => $2 );$3""" 'description': 'This function returns a document as BLOB using XML based report data and RTF or XSL-FO based report layout.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI146' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI502 'apex_util.get_screen_reader_mode_toggle': 'prefix': 'apex_util.get_screen_reader_mode_toggle' 'body': """APEX_UTIL.GET_SCREEN_READER_MODE_TOGGLE""" 'description': 'This function returns a link to the current page to turn on or off, toggle, the mode. For example, if you are in standard mode, this function displays a link that when clicked switches screen reader mode on.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI502' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI508 'apex_util.get_session_lang': 'prefix': 'apex_util.get_session_lang' 'body': """APEX_UTIL.GET_SESSION_LANG""" 'description': 'This function returns the language setting for the current user in the current Application Express session.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI508' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI151 'apex_util.get_session_state': 'prefix': 'apex_util.get_session_state' 'body': """APEX_UTIL.GET_SESSION_STATE( p_item => $1 );$2""" 'description': 'This function returns the value for an item. You can use this function in your Oracle Application Express applications wherever you can use PL/SQL or SQL. You can also use the shorthand, function V, in place of APEX_UTIL.GET_SESSION_STATE.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI151' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI509 'apex_util.get_session_territory': 'prefix': 'apex_util.get_session_territory' 'body': """APEX_UTIL.GET_SESSION_TERRITORY""" 'description': 'This function returns the territory setting for the current user in the current Application Express session.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI509' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI510 'apex_util.get_session_time_zone': 'prefix': 'apex_util.get_session_time_zone' 'body': """APEX_UTIL.GET_SESSION_TIME_ZONE""" 'description': 'This function returns the time zone for the current user in the current Application Express session. This value is null if the time zone is not explicitly set by using APEX_UTIL.SET_SESSION_TIME_ZONE or if an applicatio\'s automatic time zone attribute is enabled.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI510' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI30229 'apex_util.get_since': 'prefix': 'apex_util.get_since' 'body': """APEX_UTIL.GET_SINCE( p_date => $1 );$2""" 'description': 'This function returns the relative date in words (for example, two days from now, thrity minutes ago). This function is equivalent to using the SINCE format mask available within Oracle Application Express and is useful within PL/SQL routines.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI30229' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI152 'apex_util.get_user_id': 'prefix': 'apex_util.get_user_id' 'body': """APEX_UTIL.GET_USER_ID( p_username => $1 );$2""" 'description': 'This function returns the numeric ID of a named user in the workspace.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI152' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI153 'apex_util.get_user_roles': 'prefix': 'apex_util.get_user_roles' 'body': """APEX_UTIL.GET_USER_ROLES( p_username => $1 );$2""" 'description': 'This function returns the DEVELOPER_ROLE field stored in the named user account record. Please note that currently this parameter is named inconsistently between the CREATE_USER, EDIT_USER and FETCH_USER APIs, although they all relate to the DEVELOPER_ROLE field. CREATE_USER uses p_developer_privs, EDIT_USER uses p_developer_roles and FETCH_USER uses p_developer_role.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI153' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI140 'apex_util.get_username': 'prefix': 'apex_util.get_username' 'body': """APEX_UTIL.GET_USERNAME( p_userid => $1 );$2""" 'description': 'This function returns the user name of a user account identified by a numeric ID.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI140' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI2311 'apex_util.host_url': 'prefix': 'apex_util.host_url' 'body': """APEX_UTIL.HOST_URL""" 'description': 'This function returns the URL to the Application Express instance, depending on the option passed.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI2311' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI1710 'apex_util.html_pct_graph_mask': 'prefix': 'apex_util.html_pct_graph_mask' 'body': """APEX_UTIL.HTML_PCT_GRAPH_MASK""" 'description': 'Use this function to scale a graph. This function can also be used by classic and interactive reports with format mask of GRAPH. This generates a <div> tag with inline styles.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI1710' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI1715 'apex_util.increment_calendar': 'prefix': 'apex_util.increment_calendar' 'body': """APEX_UTIL.INCREMENT_CALENDAR""" 'description': 'Use this procedure to navigate to the next set of days in the calendar. Depending on what the calendar view is, this procedure navigates to the next month, week or day. If it is a Custom Calendar the total number of days between the start date and end date are navigated.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI1715' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI1719 'apex_util.ir_clear': 'prefix': 'apex_util.ir_clear' 'body': """APEX_UTIL.IR_CLEAR( p_page_id => $1 );$2""" 'description': 'Note:' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI1719' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI2177 'apex_util.ir_delete_report': 'prefix': 'apex_util.ir_delete_report' 'body': """APEX_UTIL.IR_DELETE_REPORT( p_report_id => $1 );$2""" 'description': 'Note:' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI2177' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI2182 'apex_util.ir_delete_subscription': 'prefix': 'apex_util.ir_delete_subscription' 'body': """APEX_UTIL.IR_DELETE_SUBSCRIPTION( p_subscription_id => $1 );$2""" 'description': 'Note:' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI2182' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI1724 'apex_util.ir_filter': 'prefix': 'apex_util.ir_filter' 'body': """APEX_UTIL.IR_FILTER( p_page_id => $1, p_report_column => $2, p_filter_value => $3 );$4""" 'description': 'Note:' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI1724' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI1729 'apex_util.ir_reset': 'prefix': 'apex_util.ir_reset' 'body': """APEX_UTIL.IR_RESET( p_page_id => $1 );$2""" 'description': 'Note:' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI1729' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI2316 'apex_util.is_high_contrast_session': 'prefix': 'apex_util.is_high_contrast_session' 'body': """APEX_UTIL.IS_HIGH_CONTRAST_SESSION""" 'description': 'This function returns a boolean TRUE if the session is in high contrast mode and returns a boolean FALSE if not in high contrast mode.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI2316' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI2320 'apex_util.is_high_contrast_session_yn': 'prefix': 'apex_util.is_high_contrast_session_yn' 'body': """APEX_UTIL.IS_HIGH_CONTRAST_SESSION_YN""" 'description': 'This function returns Y if the session is in high contrast mode and N if not in high contrast mode.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI2320' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI154 'apex_util.is_login_password_valid': 'prefix': 'apex_util.is_login_password_valid' 'body': """APEX_UTIL.IS_LOGIN_PASSWORD_VALID( p_username => $1, p_password => $2 );$3""" 'description': 'This function returns a Boolean result based on the validity of the password for a named user account in the current workspace. This function returns TRUE if the password matches and it returns FALSE if the password does not match.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI154' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI504 'apex_util.is_screen_reader_session': 'prefix': 'apex_util.is_screen_reader_session' 'body': """APEX_UTIL.IS_SCREEN_READER_SESSION""" 'description': 'This function returns a boolean TRUE if the session is in screen reader mode and returns a boolean FALSE if not in screen reader mode.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI504' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI518 'apex_util.is_screen_reader_session_yn': 'prefix': 'apex_util.is_screen_reader_session_yn' 'body': """APEX_UTIL.IS_SCREEN_READER_SESSION_YN""" 'description': 'This function returns\'\' if the session is in screen reader mode and\'\' if not in screen reader mode.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI518' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI155 'apex_util.is_username_unique': 'prefix': 'apex_util.is_username_unique' 'body': """APEX_UTIL.IS_USERNAME_UNIQUE( p_username => $1 );$2""" 'description': 'This function returns a Boolean result based on whether the named user account is unique in the workspace.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI155' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI156 'apex_util.keyval_num': 'prefix': 'apex_util.keyval_num' 'body': """APEX_UTIL.KEYVAL_NUM""" 'description': 'This function gets the value of the package variable (wwv_flow_utilities.g_val_num) set by APEX_UTIL.SAVEKEY_NUM.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI156' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI157 'apex_util.keyval_vc2': 'prefix': 'apex_util.keyval_vc2' 'body': """APEX_UTIL.KEYVAL_VC2""" 'description': 'This function gets the value of the package variable (wwv_flow_utilities.g_val_vc2) set by APEX_UTIL.SAVEKEY_VC2.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI157' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI158 'apex_util.lock_account': 'prefix': 'apex_util.lock_account' 'body': """APEX_UTIL.LOCK_ACCOUNT( p_user_name => $1 );$2""" 'description': 'Sets a user account status to locked. Must be run by an authenticated workspace administrator in the context of a page request.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI158' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI159 'apex_util.password_first_use_occurred': 'prefix': 'apex_util.password_first_use_occurred' 'body': """APEX_UTIL.PASSWORD_FIRST_USE_OCCURRED( p_user_name => $1 );$2""" 'description': 'Returns TRUE if the accoun\'s password has changed since the account was created, an Oracle Application Express administrator performs a password reset operation that results in a new password being emailed to the account holder, or a user has initiated password reset operation. This function returns FALSE if the accoun\'s password has not been changed since either of the events just described.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI159' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI160 'apex_util.prepare_url': 'prefix': 'apex_util.prepare_url' 'body': """APEX_UTIL.PREPARE_URL( p_url => $1 );$2""" 'description': 'The PREPARE_URL function serves two purposes:' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI160' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI161 'apex_util.public_check_authorization': 'prefix': 'apex_util.public_check_authorization' 'body': """APEX_UTIL.PUBLIC_CHECK_AUTHORIZATION( p_security_scheme => $1 );$2""" 'description': 'Note:' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI161' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI162 'apex_util.purge_regions_by_app': 'prefix': 'apex_util.purge_regions_by_app' 'body': """APEX_UTIL.PURGE_REGIONS_BY_APP( p_application => $1 );$2""" 'description': 'Deletes all cached regions for an application.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI162' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI163 'apex_util.purge_regions_by_name': 'prefix': 'apex_util.purge_regions_by_name' 'body': """APEX_UTIL.PURGE_REGIONS_BY_NAME( p_application => $1, p_page => $2, p_region_name => $3 );$4""" 'description': 'Deletes all cached values for a region identified by the application ID, page number and region name.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI163' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI165 'apex_util.purge_regions_by_page': 'prefix': 'apex_util.purge_regions_by_page' 'body': """APEX_UTIL.PURGE_REGIONS_BY_PAGE( p_application => $1, p_page => $2 );$3""" 'description': 'Deletes all cached regions by application and page.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI165' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI2324 'apex_util.redirect_url': 'prefix': 'apex_util.redirect_url' 'body': """APEX_UTIL.REDIRECT_URL( p_url => $1 );$2""" 'description': 'This procedure calls owa_util.redirect_url to tell the browser to redirect to a new URL. Afterwards, it automatically calls apex_application.stop_apex_engine to abort further processing of the Application Express application.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI2324' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI167 'apex_util.remove_preference': 'prefix': 'apex_util.remove_preference' 'body': """APEX_UTIL.REMOVE_PREFERENCE""" 'description': 'This procedure removes the preference for the supplied user.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI167' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI168 'apex_util.remove_sort_preferences': 'prefix': 'apex_util.remove_sort_preferences' 'body': """APEX_UTIL.REMOVE_SORT_PREFERENCES""" 'description': 'This procedure removes the use\'s column heading sorting preference value.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI168' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI169 'apex_util.remove_user': 'prefix': 'apex_util.remove_user' 'body': """APEX_UTIL.REMOVE_USER( p_user_id => $1, p_user_name => $2 );$3""" 'description': 'This procedure removes the user account identified by the primary key or a user name. To execute this procedure, the current user must have administrative privilege in the workspace.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI169' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI170 'apex_util.reset_authorizations': 'prefix': 'apex_util.reset_authorizations' 'body': """APEX_UTIL.RESET_AUTHORIZATIONS""" 'description': 'Note:' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI170' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI29920 'apex_util.reset_password': 'prefix': 'apex_util.reset_password' 'body': """APEX_UTIL.RESET_PASSWORD( p_new_password => $1 );$2""" 'description': 'This procedure is used to change the password of a given user name for the current workspace. This procedure changes the password of p_user_name in the current workspace to p_new_password. If p_change_password_on_first_use is TRUE, then the user has to change the password on the next login.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI29920' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI171 'apex_util.reset_pw': 'prefix': 'apex_util.reset_pw' 'body': """APEX_UTIL.RESET_PW( p_user => $1, p_msg => $2 );$3""" 'description': 'This procedure resets the password for a named user and emails it in a message to the email address located for the named account in the current workspace. To execute this procedure, the current user must have administrative privilege in the workspace.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI171' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI172 'apex_util.savekey_num': 'prefix': 'apex_util.savekey_num' 'body': """APEX_UTIL.SAVEKEY_NUM( p_val => $1 );$2""" 'description': 'This function sets a package variable (wwv_flow_utilities.g_val_num) so that it can be retrieved using the function KEYVAL_NUM.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI172' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI173 'apex_util.savekey_vc2': 'prefix': 'apex_util.savekey_vc2' 'body': """APEX_UTIL.SAVEKEY_VC2( p_val => $1 );$2""" 'description': 'This function sets a package variable (wwv_flow_utilities.g_val_vc2) so that it can be retrieved using the function KEYVAL_VC2.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI173' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI174 'apex_util.set_attribute': 'prefix': 'apex_util.set_attribute' 'body': """APEX_UTIL.SET_ATTRIBUTE( p_userid => $1, p_attribute_number => $2, p_attribute_value => $3 );$4""" 'description': 'This procedure sets the value of one of the attribute values (1 through 10) of a user in the Application Express accounts table.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI174' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI175 'apex_util.set_authentication_result': 'prefix': 'apex_util.set_authentication_result' 'body': """APEX_UTIL.SET_AUTHENTICATION_RESULT( p_code => $1 );$2""" 'description': 'This procedure can be called from an applicatio\'s custom authentication function (that is, credentials verification function). The status passed to this procedure is logged in the Login Access Log.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI175' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI29432 'apex_util.set_build_option_status': 'prefix': 'apex_util.set_build_option_status' 'body': """APEX_UTIL.SET_BUILD_OPTION_STATUS( p_application_id => $1, p_id => $2, p_build_status => $3 );$4""" 'description': 'Use this procedure to change the build option status of a specified application.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI29432' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI30212 'apex_util.set_current_theme_style': 'prefix': 'apex_util.set_current_theme_style' 'body': """APEX_UTIL.SET_CURRENT_THEME_STYLE( p_theme_number => $1, p_theme_style_id => $2 );$3""" 'description': 'This procedure sets the user interface theme style for an application. For example, if there are more than one theme styles available for the current theme, you can use this procedure to change the application theme style.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI30212' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI176 'apex_util.set_custom_auth_status': 'prefix': 'apex_util.set_custom_auth_status' 'body': """APEX_UTIL.SET_CUSTOM_AUTH_STATUS( p_status => $1 );$2""" 'description': 'This procedure can be called from an applicatio\'s custom authentication function (that is, credentials verification function). The status passed to this procedure is logged in the Login Access Log.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI176' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI511 'apex_util.set_edition': 'prefix': 'apex_util.set_edition' 'body': """APEX_UTIL.SET_EDITION( p_edition => $1 );$2""" 'description': 'This procedure sets the name of the edition to be used in all application SQL parsed in the current page view or page submission.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI511' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI177 'apex_util.set_email': 'prefix': 'apex_util.set_email' 'body': """APEX_UTIL.SET_EMAIL( p_userid => $1, p_email => $2 );$3""" 'description': 'This procedure updates a user account with a new email address. To execute this procedure, the current user must have administrative privileges in the workspace.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI177' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI178 'apex_util.set_first_name': 'prefix': 'apex_util.set_first_name' 'body': """APEX_UTIL.SET_FIRST_NAME( p_userid => $1, p_first_name => $2 );$3""" 'description': 'This procedure updates a user account with a new FIRST_NAME value. To execute this procedure, the current user must have administrative privileges in the workspace.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI178' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI29927 'apex_util.set_group_group_grants': 'prefix': 'apex_util.set_group_group_grants' 'body': """APEX_UTIL.SET_GROUP_GROUP_GRANTS( p_group_name => $1, p_granted_group_names => $2 );$3""" 'description': 'This procedure modifies the group grants for a given group.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI29927' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI29932 'apex_util.set_group_user_grants': 'prefix': 'apex_util.set_group_user_grants' 'body': """APEX_UTIL.SET_GROUP_USER_GRANTS( p_user_name => $1, p_granted_group_names => $2 );$3""" 'description': 'This procedure modifies the group grants for a given user.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI29932' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI179 'apex_util.set_last_name': 'prefix': 'apex_util.set_last_name' 'body': """APEX_UTIL.SET_LAST_NAME( p_userid => $1, p_last_name => $2 );$3""" 'description': 'This procedure updates a user account with a new LAST_NAME value. To execute this procedure, the current user must have administrative privileges in the workspace.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI179' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI180 'apex_util.set_preference': 'prefix': 'apex_util.set_preference' 'body': """APEX_UTIL.SET_PREFERENCE""" 'description': 'This procedure sets a preference that persists beyond the use\'s current session.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI180' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI512 'apex_util.set_security_group_id': 'prefix': 'apex_util.set_security_group_id' 'body': """APEX_UTIL.SET_SECURITY_GROUP_ID( p_security_group_id => $1 );$2""" 'description': 'Use this procedure with apex_util.find_security_group_id to ease the use of the mail package in batch mode. This procedure is especially useful when a schema is associated with more than one workspace. For example, you might want to create a procedure that is run by a nightly job to email all outstanding tasks.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI512' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI2334 'apex_util.set_session_high_contrast_off': 'prefix': 'apex_util.set_session_high_contrast_off' 'body': """APEX_UTIL.SET_SESSION_HIGH_CONTRAST_OFF""" 'description': 'This procedure switches off high contrast mode for the current session.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI2334' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI2338 'apex_util.set_session_high_contrast_on': 'prefix': 'apex_util.set_session_high_contrast_on' 'body': """APEX_UTIL.SET_SESSION_HIGH_CONTRAST_ON""" 'description': 'This procedure switches on high contrast mode for the current session.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI2338' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI513 'apex_util.set_session_lang': 'prefix': 'apex_util.set_session_lang' 'body': """APEX_UTIL.SET_SESSION_LANG( p_lang => $1 );$2""" 'description': 'This procedure sets the language to be used for the current user in the current Application Express session. The language must be a valid IANA language name.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI513' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI356 'apex_util.set_session_lifetime_seconds': 'prefix': 'apex_util.set_session_lifetime_seconds' 'body': """APEX_UTIL.SET_SESSION_LIFETIME_SECONDS( p_seconds => $1 );$2""" 'description': 'This procedure sets the current sessio\'s Maximum Session Length in Seconds value. overriding the corresponding application attribute. This allows developers to dynamically shorten or lengthen the session life based on criteria determined after the user authenticates.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI356' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI355 'apex_util.set_session_max_idle_seconds': 'prefix': 'apex_util.set_session_max_idle_seconds' 'body': """APEX_UTIL.SET_SESSION_MAX_IDLE_SECONDS( p_seconds => $1 );$2""" 'description': 'Sets the current applicatio\'s Maximum Session Idle Time in Seconds value for the current session, overriding the corresponding application attribute. This allows developers to dynamically shorten or lengthen the maximum idle time allowed between page requests based on criteria determined after the user authenticates.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI355' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI506 'apex_util.set_session_screen_reader_off': 'prefix': 'apex_util.set_session_screen_reader_off' 'body': """APEX_UTIL.SET_SESSION_SCREEN_READER_OFF""" 'description': 'This procedure switches off screen reader mode for the current session.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI506' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI520 'apex_util.set_session_screen_reader_on': 'prefix': 'apex_util.set_session_screen_reader_on' 'body': """APEX_UTIL.SET_SESSION_SCREEN_READER_ON""" 'description': 'This procedure puts the current session into screen reader mode.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI520' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI181 'apex_util.set_session_state': 'prefix': 'apex_util.set_session_state' 'body': """APEX_UTIL.SET_SESSION_STATE""" 'description': 'This procedure sets session state for a current Oracle Application Express session.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI181' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI514 'apex_util.set_session_territory': 'prefix': 'apex_util.set_session_territory' 'body': """APEX_UTIL.SET_SESSION_TERRITORY( p_territory => $1 );$2""" 'description': 'This procedure sets the territory to be used for the current user in the current Application Express session. The territory name must be a valid Oracle territory.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI514' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI515 'apex_util.set_session_time_zone': 'prefix': 'apex_util.set_session_time_zone' 'body': """APEX_UTIL.SET_SESSION_TIME_ZONE( p_time_zone => $1 );$2""" 'description': 'This procedure sets the time zone to be used for the current user in the current Application Express session.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI515' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI182 'apex_util.set_username': 'prefix': 'apex_util.set_username' 'body': """APEX_UTIL.SET_USERNAME( p_userid => $1, p_username => $2 );$3""" 'description': 'This procedure updates a user account with a new USER_NAME value. To execute this procedure, the current user must have administrative privileges in the workspace.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI182' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI2342 'apex_util.show_high_contrast_mode_toggle': 'prefix': 'apex_util.show_high_contrast_mode_toggle' 'body': """APEX_UTIL.SHOW_HIGH_CONTRAST_MODE_TOGGLE""" 'description': 'This procedure displays a link to the current page to turn on or off, toggle, the mode. For example, if you are in standard mode, this function displays a link that when clicked switches the high contrast mode on.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI2342' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI503 'apex_util.show_screen_reader_mode_toggle': 'prefix': 'apex_util.show_screen_reader_mode_toggle' 'body': """APEX_UTIL.SHOW_SCREEN_READER_MODE_TOGGLE""" 'description': 'This procedure displays a link to the current page to turn on or off, toggle, the mode. For example, if you are in standard mode, this function displays a link that when clicked switches the screen reader mode on.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI503' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI185 'apex_util.string_to_table': 'prefix': 'apex_util.string_to_table' 'body': """APEX_UTIL.STRING_TO_TABLE( p_string => $1 );$2""" 'description': 'Given a string, this function returns a PL/SQL array of type APEX_APPLICATION_GLOBAL.VC_ARR2. This array is a VARCHAR2(32767) table.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI185' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI183 'apex_util.strong_password_check': 'prefix': 'apex_util.strong_password_check' 'body': """APEX_UTIL.STRONG_PASSWORD_CHECK( p_username => $1, p_password => $PI:PASSWORD:<PASSWORD>END_PI, p_old_password => PI:PASSWORD:<PASSWORD>END_PI, p_workspace_name => $4, p_use_strong_rules => $5, p_min_length_err => $6, p_new_differs_by_err => $7, p_one_alpha_err => $8, p_one_numeric_err => $9, p_one_punctuation_err => $10, p_one_upper_err => $11, p_one_lower_err => $12, p_not_like_username_err => $13, p_not_like_workspace_name_err => $14, p_not_like_words_err => $15, p_not_reusable_err => $16 );$17""" 'description': 'This procedure returns Boolean OUT values based on whether a proposed password meets the password strength requirements as defined by the Oracle Application Express site administrator.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI183' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI184 'apex_util.strong_password_validation': 'prefix': 'apex_util.strong_password_validation' 'body': """APEX_UTIL.STRONG_PASSWORD_VALIDATION( p_username => $1, p_password => PI:PASSWORD:<PASSWORD>END_PI, P_WORKSPACE_NAME => $3 );$4""" 'description': 'This function returns formatted HTML in a VARCHAR2 result based on whether a proposed password meets the password strength requirements as defined by the Oracle Application Express site administrator.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI184' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI516 'apex_util.submit_feedback': 'prefix': 'apex_util.submit_feedback' 'body': """APEX_UTIL.SUBMIT_FEEDBACK""" 'description': 'This procedure enables you to write a procedure to submit feedback, rather than using the page that can be generated by create page of type feedback.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI516' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI517 'apex_util.submit_feedback_followup': 'prefix': 'apex_util.submit_feedback_followup' 'body': """APEX_UTIL.SUBMIT_FEEDBACK_FOLLOWUP( p_feedback_id => $1 );$2""" 'description': 'This procedure enables you to submit follow up to a feedback.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI517' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI186 'apex_util.table_to_string': 'prefix': 'apex_util.table_to_string' 'body': """APEX_UTIL.TABLE_TO_STRING( p_table => $1 );$2""" 'description': 'Given a a PL/SQL table of type APEX_APPLICATION_GLOBAL.VC_ARR2, this function returns a delimited string separated by the supplied separator, or by the default separator, a colon (:).' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI186' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI187 'apex_util.unexpire_end_user_account': 'prefix': 'apex_util.unexpire_end_user_account' 'body': """APEX_UTIL.UNEXPIRE_END_USER_ACCOUNT( p_user_name => $1 );$2""" 'description': 'Makes expired end users accounts and the associated passwords usable, enabling a end user to log in to developed applications.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI187' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI188 'apex_util.unexpire_workspace_account': 'prefix': 'apex_util.unexpire_workspace_account' 'body': """APEX_UTIL.UNEXPIRE_WORKSPACE_ACCOUNT( p_user_name => $1 );$2""" 'description': 'Unexpires developer and workspace administrator accounts and the associated passwords, enabling the developer or administrator to log in to a workspace.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI188' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI189 'apex_util.unlock_account': 'prefix': 'apex_util.unlock_account' 'body': """APEX_UTIL.UNLOCK_ACCOUNT( p_user_name => $1 );$2""" 'description': 'Sets a user account status to unlocked. Must be run by an authenticated workspace administrator in a page request context.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI189' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI190 'apex_util.url_encode': 'prefix': 'apex_util.url_encode' 'body': """APEX_UTIL.URL_ENCODE( p_url => $1 );$2""" 'description': 'The following special characters are encoded as follows:' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI190' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI191 'apex_util.workspace_account_days_left': 'prefix': 'apex_util.workspace_account_days_left' 'body': """APEX_UTIL.WORKSPACE_ACCOUNT_DAYS_LEFT( p_user_name => $1 );$2""" 'description': 'Returns the number of days remaining before the developer or workspace administrator account password expires. This function may be run in a page request context by any authenticated user.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_util.htm#AEAPI191' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_web_service.htm#AEAPI1935 'apex_web_service.blob2clobbase64': 'prefix': 'apex_web_service.blob2clobbase64' 'body': """APEX_WEB_SERVICE.BLOB2CLOBBASE64( p_blob => $1 );$2""" 'description': 'Use this function to convert a BLOB datatype into a CLOB that is base64 encoded. This is often used when sending a binary as an input to a Web service.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_web_service.htm#AEAPI1935' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_web_service.htm#AEAPI1940 'apex_web_service.clobbase642blob': 'prefix': 'apex_web_service.clobbase642blob' 'body': """APEX_WEB_SERVICE.CLOBBASE642BLOB( p_clob => $1 );$2""" 'description': 'Use this function to convert a CLOB datatype that is base64 encoded into a BLOB. This is often used when receiving output from a Web service that contains a binary parameter.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_web_service.htm#AEAPI1940' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_web_service.htm#AEAPI1945 'apex_web_service.make_request': 'prefix': 'apex_web_service.make_request' 'body': """APEX_WEB_SERVICE.MAKE_REQUEST( p_url => $1, p_envelope => $2 );$3""" 'description': 'Use this procedure to invoke a SOAP style Web service with the supplied SOAP envelope and store the results in a collection.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_web_service.htm#AEAPI1945' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_web_service.htm#AEAPI1950 'apex_web_service.make_request2': 'prefix': 'apex_web_service.make_request2' 'body': """APEX_WEB_SERVICE.MAKE_REQUEST2( p_url => $1, p_envelope => $2 );$3""" 'description': 'Use this function to invoke a SOAP style Web service with the supplied SOAP envelope returning the results in an XMLTYPE.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_web_service.htm#AEAPI1950' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_web_service.htm#AEAPI1955 'apex_web_service.make_rest_request': 'prefix': 'apex_web_service.make_rest_request' 'body': """APEX_WEB_SERVICE.MAKE_REST_REQUEST( p_url => $1, p_http_method => $2 );$3""" 'description': 'Use this function to invoke a RESTful style Web service supplying either name value pairs, a character based payload or a binary payload and returning the response in a CLOB.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_web_service.htm#AEAPI1955' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_web_service.htm#AEAPI29937 'apex_web_service.make_rest_request_b': 'prefix': 'apex_web_service.make_rest_request_b' 'body': """APEX_WEB_SERVICE.MAKE_REST_REQUEST_B( p_url => $1, p_http_method => $2 );$3""" 'description': 'Use this function to invoke a RESTful style Web service supplying either name value pairs, a character based payload or a binary payload and returning the response in a BLOB.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_web_service.htm#AEAPI29937' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_web_service.htm#AEAPI1960 'apex_web_service.parse_response': 'prefix': 'apex_web_service.parse_response' 'body': """APEX_WEB_SERVICE.PARSE_RESPONSE( p_collection_name => $1, p_xpath => $2 );$3""" 'description': 'Use this function to parse the response from a Web service that is stored in a collection and return the result as a VARCHAR2 type.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_web_service.htm#AEAPI1960' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_web_service.htm#AEAPI1965 'apex_web_service.parse_response_clob': 'prefix': 'apex_web_service.parse_response_clob' 'body': """APEX_WEB_SERVICE.PARSE_RESPONSE_CLOB( p_collection_name => $1, p_xpath => $2 );$3""" 'description': 'Use this function to parse the response from a Web service that is stored in a collection and return the result as a CLOB type.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_web_service.htm#AEAPI1965' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_web_service.htm#AEAPI1970 'apex_web_service.parse_xml': 'prefix': 'apex_web_service.parse_xml' 'body': """APEX_WEB_SERVICE.PARSE_XML( p_xml => $1, p_xpath => $2 );$3""" 'description': 'Use this function to parse the response from a Web service returned as an XMLTYPE and return the value requested as a VARCHAR2.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_web_service.htm#AEAPI1970' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_web_service.htm#AEAPI1975 'apex_web_service.parse_xml_clob': 'prefix': 'apex_web_service.parse_xml_clob' 'body': """APEX_WEB_SERVICE.PARSE_XML_CLOB( p_xml => $1, p_xpath => $2 );$3""" 'description': 'Use this function to parse the response from a Web service returned as an XMLTYPE and return the value requested as a CLOB.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_web_service.htm#AEAPI1975' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_zip.htm#AEAPI29945 'apex_zip.add_file': 'prefix': 'apex_zip.add_file' 'body': """APEX_ZIP.ADD_FILE( p_zipped_blob => $1, p_file_name => $2, p_content => $3 );$4""" 'description': 'This procedure adds a single file to a zip file.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_zip.htm#AEAPI29945' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_zip.htm#AEAPI29950 'apex_zip.finish': 'prefix': 'apex_zip.finish' 'body': """APEX_ZIP.FINISH( p_zipped_blob => $1 );$2""" 'description': 'This procedure completes the creation of a zip file after adding files with APEX_ZIP.ADD_FILE.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_zip.htm#AEAPI29950' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_zip.htm#AEAPI29955 'apex_zip.get_file_content': 'prefix': 'apex_zip.get_file_content' 'body': """APEX_ZIP.GET_FILE_CONTENT( p_zipped_blob => $1, p_file_name => $2 );$3""" 'description': 'This function returns the BLOB of a file contained in a provided zip file.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_zip.htm#AEAPI29955' 'rightLabelHTML': '' #URL: http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_zip.htm#AEAPI29962 'apex_zip.get_files': 'prefix': 'apex_zip.get_files' 'body': """APEX_ZIP.GET_FILES( p_zipped_blob => $1 );$2""" 'description': 'This function returns an array of file names, including the path, of a provided zip file that contains a BLOB.' 'descriptionMoreURL': 'http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_zip.htm#AEAPI29962' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm 'APP_AJAX_X01': 'prefix': 'APP_AJAX_X01' 'body': """APP_AJAX_X01""" 'description': 'APP_AJAX_Xnn specifies the values of the APP_AJAX_X01, ... APP_AJAX_X10 URL parameters most recently passed to or set within the show or accept modules. You typically use these variables in On Demand AJAX processes.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm 'APP_AJAX_X02': 'prefix': 'APP_AJAX_X02' 'body': """APP_AJAX_X02""" 'description': 'APP_AJAX_Xnn specifies the values of the APP_AJAX_X01, ... APP_AJAX_X10 URL parameters most recently passed to or set within the show or accept modules. You typically use these variables in On Demand AJAX processes.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm 'APP_AJAX_X03': 'prefix': 'APP_AJAX_X03' 'body': """APP_AJAX_X03""" 'description': 'APP_AJAX_Xnn specifies the values of the APP_AJAX_X01, ... APP_AJAX_X10 URL parameters most recently passed to or set within the show or accept modules. You typically use these variables in On Demand AJAX processes.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm 'APP_ALIAS': 'prefix': 'APP_ALIAS' 'body': """APP_ALIAS""" 'description': 'APP_ALIAS is an alphanumeric name for the current application. APP_ALIAS is different from the APP_ID in that the APP_ID must be unique over all workspaces and all applications hosted in one database. In contrast, APP_ALIAS must be unique within a workspace. For example, by using the same APP_ALIAS you can create the application, ABC, in two different workspaces. You can use APP_ALIAS almost anywhere APP_ID can be used. For example, f?p syntax can use an APP_ALIAS or an application ID as demonstrated in this example:' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm 'APP_DATE_TIME_FORMAT': 'prefix': 'APP_DATE_TIME_FORMAT' 'body': """APP_DATE_TIME_FORMAT""" 'description': 'APP_DATE_TIME_FORMAT is the application date time format of the application. This value reflects the format specified in the Application Date Time Format attribute of the Globalization settings of an application. If the Application Date Time Format is not set in an application, then a reference to APP_DATE_TIME_FORMAT returns the database session NLS date format and the NLS time format. Table 2-10 describes the supported syntax for referencing APP_DATE_TIME_FORMAT.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm 'APP_ID': 'prefix': 'APP_ID' 'body': """APP_ID""" 'description': 'APP_ID identifies the application ID of the currently executing application. Table 2-7 describes the supported syntax for referencing APP_ID.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm 'APP_IMAGES': 'prefix': 'APP_IMAGES' 'body': """APP_IMAGES""" 'description': 'Use this substitution string to reference uploaded images, JavaScript, and cascading style sheets that are specific to a given application and are not shared over many applications. If you upload a file and make it specific to an application, then you must use this substitution string, or bind variable. Table 2-11 describes the supported syntax for referencing APP_IMAGES.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm 'APP_NLS_DATE_FORMAT': 'prefix': 'APP_NLS_DATE_FORMAT' 'body': """APP_NLS_DATE_FORMAT""" 'description': 'APP_NLS_DATE_FORMAT is the application date format of the database session. This value reflects the format specified in the Application Date Format attribute of the Globalization settings of the application. However, if the Application Date Format is not set, then APP_NLS_DATE_FORMAT returns the NLS_DATE_FORMAT value of the database session at the start of the request to the Application Express engine' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm 'APP_NLS_TIMESTAMP_FORMAT': 'prefix': 'APP_NLS_TIMESTAMP_FORMAT' 'body': """APP_NLS_TIMESTAMP_FORMAT""" 'description': 'APP_NLS_TIMESTAMP_FORMAT is the application timestamp format of the database session. This value reflects the format specified in the Application Timestamp Format attribute of the Globalization settings of the application. However, if the Application Timestamp Format is not set, then APP_NLS_TIMESTAMP_FORMAT return the NLS_TIMESTAMP_FORMAT value of the database session at the start of the request to the Application Express engine.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm 'APP_NLS_TIMESTAMP_TZ_FORMAT': 'prefix': 'APP_NLS_TIMESTAMP_TZ_FORMAT' 'body': """APP_NLS_TIMESTAMP_TZ_FORMAT""" 'description': 'APP_NLS_TIMESTAMP_TZ_FORMAT is the application timestamp time zone format of the database session. This value reflects the format specified in the Application Timestamp Time Zone Format attribute of the Globalization settings of an application. However, if the Application Timestamp Time Zone Format is not set, then APP_NLS_TIMESTAMP_TZ_FORMAT returns the NLS_TIMESTAMP_TZ_FORMAT value of the database session at the start of the request to the Application Express engine.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm 'APP_PAGE_ALIAS': 'prefix': 'APP_PAGE_ALIAS' 'body': """APP_PAGE_ALIAS""" 'description': 'APP_PAGE_ALIAS is an alphanumeric name for the current application page. A page alias is not case-sensitive and it is an optional page attribute. APP_PAGE_ALIAS is unique within an application. You can use APP_PAGE_ALIAS almost anywhere APP_PAGE_ID can be used.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm 'APP_PAGE_ID': 'prefix': 'APP_PAGE_ID' 'body': """APP_PAGE_ID""" 'description': 'APP_PAGE_ID is the current application page ID. For example, if your application was on page 3, then the result would be 3. Using this syntax is useful when writing application components that must work generically in multiple applications.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm 'APP_REQUEST_DATA_HASH': 'prefix': 'APP_REQUEST_DATA_HASH' 'body': """APP_REQUEST_DATA_HASH""" 'description': 'APP_REQUEST_DATA_HASH is a hash value of the request, item name, and item value parts in the URL. It is primarily useful to detect whether two browser requests passed different parameters to APEX.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm 'APP_SESSION': 'prefix': 'APP_SESSION' 'body': """APP_SESSION""" 'description': 'APP_SESSION is the most commonly used built-in substitution strings. You can use this substitution string to create hypertext links between application pages that maintain a session state by passing the session number. Note that you can also use the substitution string SESSION in place of APP_SESSION.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm 'APP_SESSION_VISIBLE': 'prefix': 'APP_SESSION_VISIBLE' 'body': """APP_SESSION_VISIBLE""" 'description': 'APP_SESSION_VISIBLE is similar to the built-in substitution APP_SESSION. Use this substitution string to create hypertext links between application pages that maintain a session state by passing the session number. APP_SESSION_VISIBLE always returns \'0\' when users are not authenticated to an application and they are using the Zero Session ID feature of Oracle Application Express. ' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm 'APP_TITLE': 'prefix': 'APP_TITLE' 'body': """APP_TITLE""" 'description': 'APP_TITLE is an alphanumeric title for the current application. The title is derived from an application substitution string called APP_TITLE. If not defined the Logo attribute will be used if it is of type text.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm 'APP_UNIQUE_PAGE_ID': 'prefix': 'APP_UNIQUE_PAGE_ID' 'body': """APP_UNIQUE_PAGE_ID""" 'description': 'APP_UNIQUE_PAGE_ID is an integer generated from an Oracle sequence which is unique for each page view. This number is used by applications to prevent duplicate page submissions and can be used for other purposes. For example, to make a unique URL and avoid browser caching issues, you can embed this number in the request or debug column in calls to the f procedure.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm 'APP_USER': 'prefix': 'APP_USER' 'body': """APP_USER""" 'description': 'APP_USER is the current user running the application. Depending upon your authentication model, the value of the user is set differently. If the application is running using database authentication, then the value of the user is the same as the database pseudo column USER. If the application uses an authentication scheme that requires the user to authenticate, the value of APP_USER is set by the authentication scheme, usually to the user name used during authentication.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm 'AUTHENTICATED_URL_PREFIX': 'prefix': 'AUTHENTICATED_URL_PREFIX' 'body': """AUTHENTICATED_URL_PREFIX""" 'description': 'This application-level attribute identifies a valid authenticated prefix (that is, a logged in URL prefix). You can use a relative path or a full path beginning with http. This item is useful if your application can be run in both authenticated (logged in) and public (not logged in) modes. You can use AUTHENTICATED_URL_PREFIX to construct a link to an authenticated page. This item is most useful when using basic database authentication because changes to the URL can require authentication. ' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm 'BROWSER_LANGUAGE': 'prefix': 'BROWSER_LANGUAGE' 'body': """BROWSER_LANGUAGE""" 'description': 'BROWSER_LANGUAGE refers to the web browser\'s current language preference.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm 'CURRENT_PARENT_TAB_TEXT': 'prefix': 'CURRENT_PARENT_TAB_TEXT' 'body': """CURRENT_PARENT_TAB_TEXT""" 'description': 'CURRENT_PARENT_TAB_TEXT is most useful in page templates, but is only relevant for applications that use two-level tabs (that is, parent and standard tabs). Use this string to reference the parent tab label. This substitution string enables you to repeat the currently selected parent tab within the page template.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm 'DEBUG': 'prefix': 'DEBUG' 'body': """DEBUG""" 'description': 'Valid values for the DEBUG flag are Yes or No. Turning debug on shows details about application processing. If you write your own custom code, you may want to generate debug information only if the debug mode is set to Yes.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-url-syntax.htm 'f?p=APP_ID:APP_PAGE_ID:APP_SESSION:REQUEST:DEBUG:ClearCache:itemNames:itemValues:PRINTER_FRIENDLY': 'prefix': 'f?p=APP_ID:APP_PAGE_ID:APP_SESSION:REQUEST:DEBUG:ClearCache:itemNames:itemValues:PRINTER_FRIENDLY' 'body': """f?p=APP_ID:APP_PAGE_ID:APP_SESSION:REQUEST:DEBUG:ClearCache:itemNames:itemValues:PRINTER_FRIENDLY""" 'description': 'You can create links between pages in your application using f?p syntax' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-url-syntax.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm 'HOME_LINK': 'prefix': 'HOME_LINK' 'body': """HOME_LINK""" 'description': 'HOME_LINK is the home page of an application. The Application Express engine redirects to this location if no page is given and if no alternative page is dictated by the authentication scheme\'s logic. You define the Home URL on the User Interface Details page.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm 'IMAGE_PREFIX': 'prefix': 'IMAGE_PREFIX' 'body': """IMAGE_PREFIX""" 'description': 'The value of IMAGE_PREFIX determines the virtual path the web server uses to point to the images directory distributed with Oracle Application Express. To reference uploaded images, use WORKSPACE_IMAGES and APP_IMAGES. ' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm 'LOGIN_URL': 'prefix': 'LOGIN_URL' 'body': """LOGIN_URL""" 'description': 'Use LOGIN_URL to display a link to a login page for users that are not currently logged in.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm 'LOGOUT_URL': 'prefix': 'LOGOUT_URL' 'body': """LOGOUT_URL""" 'description': 'LOGOUT_URL is an application-level attribute used to identify the logout URL. This is a URL that navigates the user to a logout page or optionally directly logs out a user. To create a logout navigation bar entry, add a trailing period to &LOGOUT_URL (&LOGOUT_URL.). If you are coding a page template, use #LOGOUT_URL#.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm 'PRINTER_FRIENDLY': 'prefix': 'PRINTER_FRIENDLY' 'body': """PRINTER_FRIENDLY""" 'description': 'The value of PRINTER_FRIENDLY determines if the Application Express engine is running in print view mode. This setting can be referenced in conditions to eliminate elements not desired in a printed document from a page.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm 'PUBLIC_URL_PREFIX': 'prefix': 'PUBLIC_URL_PREFIX' 'body': """PUBLIC_URL_PREFIX""" 'description': 'PUBLIC_URL_PREFIX is an application-level attribute that identifies a URL to toggle out of a logged in mode to a public view.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm 'REQUEST': 'prefix': 'REQUEST' 'body': """REQUEST""" 'description': 'Each application button sets the value of REQUEST to the name of the button or to the request value attribute associated with the button, enabling accept processing to reference the name of the button when a user clicks it. In the f?p syntax, REQUEST may be set using the fourth argument.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm' 'rightLabelHTML': '' #URL: http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm 'WORKSPACE_ID': 'prefix': 'WORKSPACE_ID' 'body': """WORKSPACE_ID""" 'description': 'Use this substitution string to reference the workspace ID.' 'descriptionMoreURL': 'http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-substitution-strings.htm' 'rightLabelHTML': ''
[ { "context": "= null) ->\n options =\n name: \"testPet\"\n attrs: [\"1\", \"2\"]\n type: ", "end": 1435, "score": 0.7178773283958435, "start": 1428, "tag": "USERNAME", "value": "testPet" }, { "context": "k\"\n\n owner:\n ...
test/system/managers/PetManagerTest.coffee
jawsome/IdleLands
3
basedir = "../../../src/" chai = require "chai" mocha = require "mocha" sinon = require "sinon" proxyquire = require "proxyquire" expect = chai.expect describe = mocha.describe GameStub = require "../../stubs/GameStub" Pet = require basedir + "character/npc/Pet" #stubs game = GameStub.getGameStub() describe "LogManager", () -> describe "getLogger", () -> it "Should return empty string", () -> #manager = new petManager game expect(game.logManager.getLogger "PetManager").to.exist() describe "PetManager", () -> describe "constructor", () -> it "Should have 0 active pets", () -> NewPetManager = proxyquire(basedir + 'system/managers/PetManager', { "./../database/DatabaseWrapper": class DatabaseWrapper constructor: (@label, @indexCallback) -> findForEach: (terms, callback, context = null) -> }, '@noCallThru': true ) petManager = new NewPetManager game expect(petManager.activePets).to.be.empty expect(petManager.pets).to.be.empty expect(petManager.pets).not.to.be.null expect(petManager.pets).to.not.be.undefined it "Should have 2 active pets", () -> NewPetManager = proxyquire(basedir + 'system/managers/PetManager', { "./../database/DatabaseWrapper": class DatabaseWrapper constructor: (@label, @indexCallback) -> findForEach: (terms, callback, context = null) -> options = name: "testPet" attrs: ["1", "2"] type: "Pet Rock" owner: identifier: "testPlayer" name: "test" creator: identifier: "testPlayer" name: "test" options2 = name: "testPet2" attrs: ["1", "2"] type: "Pet Rock" owner: identifier: "testPlayer2" name: "test2" creator: identifier: "testPlayer2" name: "test2" options3 = name: "testPet3" attrs: ["1", "2"] type: "Moose" owner: identifier: "testPlayer2" name: "test2" creator: identifier: "testPlayer2" name: "test2" callback.call context, new Pet options callback.call context, new Pet options2 callback.call context, new Pet options3 }, '@noCallThru': true ) #constructor petManager = new NewPetManager game expect(Object.keys(petManager.activePets).length).to.equal(2) expect(petManager.activePets).to.have.keys(['testPlayer', 'testPlayer2']) expect(petManager.activePets["testPlayer"].type).to.equal("Pet Rock") expect(petManager.activePets["testPlayer2"].type).to.equal("Moose") #getPetsForPlayer petsForTestPlayer = petManager.getPetsForPlayer "testPlayer" petsForTestPlayer2 = petManager.getPetsForPlayer "testPlayer2" petsForUnknownPlayer = petManager.getPetsForPlayer "blah" expect(petsForTestPlayer).to.have.length(1) expect(petsForTestPlayer2).to.have.length(2) expect(petsForUnknownPlayer).to.have.length(0) expect(petsForTestPlayer).to.have.deep.property('[0].name', 'testPet') expect(petsForTestPlayer).to.have.deep.property('[0].owner.identifier', 'testPlayer') expect(petsForTestPlayer2).to.have.deep.property('[0].name', 'testPet2') expect(petsForTestPlayer2).to.have.deep.property('[0].owner.identifier', 'testPlayer2') expect(petsForTestPlayer2).to.have.deep.property('[1].name', 'testPet3') expect(petsForTestPlayer2).to.have.deep.property('[1].owner.identifier', 'testPlayer2')
96105
basedir = "../../../src/" chai = require "chai" mocha = require "mocha" sinon = require "sinon" proxyquire = require "proxyquire" expect = chai.expect describe = mocha.describe GameStub = require "../../stubs/GameStub" Pet = require basedir + "character/npc/Pet" #stubs game = GameStub.getGameStub() describe "LogManager", () -> describe "getLogger", () -> it "Should return empty string", () -> #manager = new petManager game expect(game.logManager.getLogger "PetManager").to.exist() describe "PetManager", () -> describe "constructor", () -> it "Should have 0 active pets", () -> NewPetManager = proxyquire(basedir + 'system/managers/PetManager', { "./../database/DatabaseWrapper": class DatabaseWrapper constructor: (@label, @indexCallback) -> findForEach: (terms, callback, context = null) -> }, '@noCallThru': true ) petManager = new NewPetManager game expect(petManager.activePets).to.be.empty expect(petManager.pets).to.be.empty expect(petManager.pets).not.to.be.null expect(petManager.pets).to.not.be.undefined it "Should have 2 active pets", () -> NewPetManager = proxyquire(basedir + 'system/managers/PetManager', { "./../database/DatabaseWrapper": class DatabaseWrapper constructor: (@label, @indexCallback) -> findForEach: (terms, callback, context = null) -> options = name: "testPet" attrs: ["1", "2"] type: "Pet Rock" owner: identifier: "testPlayer" name: "test" creator: identifier: "testPlayer" name: "test" options2 = name: "<NAME>Pet2" attrs: ["1", "2"] type: "Pet Rock" owner: identifier: "testPlayer2" name: "test2" creator: identifier: "testPlayer2" name: "test2" options3 = name: "<NAME>Pet3" attrs: ["1", "2"] type: "Moose" owner: identifier: "testPlayer2" name: "<NAME>" creator: identifier: "testPlayer2" name: "<NAME>" callback.call context, new Pet options callback.call context, new Pet options2 callback.call context, new Pet options3 }, '@noCallThru': true ) #constructor petManager = new NewPetManager game expect(Object.keys(petManager.activePets).length).to.equal(2) expect(petManager.activePets).to.have.keys(['testPlayer', 'testPlayer2']) expect(petManager.activePets["testPlayer"].type).to.equal("Pet Rock") expect(petManager.activePets["testPlayer2"].type).to.equal("Moose") #getPetsForPlayer petsForTestPlayer = petManager.getPetsForPlayer "testPlayer" petsForTestPlayer2 = petManager.getPetsForPlayer "testPlayer2" petsForUnknownPlayer = petManager.getPetsForPlayer "blah" expect(petsForTestPlayer).to.have.length(1) expect(petsForTestPlayer2).to.have.length(2) expect(petsForUnknownPlayer).to.have.length(0) expect(petsForTestPlayer).to.have.deep.property('[0].name', 'testPet') expect(petsForTestPlayer).to.have.deep.property('[0].owner.identifier', 'testPlayer') expect(petsForTestPlayer2).to.have.deep.property('[0].name', 'testPet2') expect(petsForTestPlayer2).to.have.deep.property('[0].owner.identifier', 'testPlayer2') expect(petsForTestPlayer2).to.have.deep.property('[1].name', 'testPet3') expect(petsForTestPlayer2).to.have.deep.property('[1].owner.identifier', 'testPlayer2')
true
basedir = "../../../src/" chai = require "chai" mocha = require "mocha" sinon = require "sinon" proxyquire = require "proxyquire" expect = chai.expect describe = mocha.describe GameStub = require "../../stubs/GameStub" Pet = require basedir + "character/npc/Pet" #stubs game = GameStub.getGameStub() describe "LogManager", () -> describe "getLogger", () -> it "Should return empty string", () -> #manager = new petManager game expect(game.logManager.getLogger "PetManager").to.exist() describe "PetManager", () -> describe "constructor", () -> it "Should have 0 active pets", () -> NewPetManager = proxyquire(basedir + 'system/managers/PetManager', { "./../database/DatabaseWrapper": class DatabaseWrapper constructor: (@label, @indexCallback) -> findForEach: (terms, callback, context = null) -> }, '@noCallThru': true ) petManager = new NewPetManager game expect(petManager.activePets).to.be.empty expect(petManager.pets).to.be.empty expect(petManager.pets).not.to.be.null expect(petManager.pets).to.not.be.undefined it "Should have 2 active pets", () -> NewPetManager = proxyquire(basedir + 'system/managers/PetManager', { "./../database/DatabaseWrapper": class DatabaseWrapper constructor: (@label, @indexCallback) -> findForEach: (terms, callback, context = null) -> options = name: "testPet" attrs: ["1", "2"] type: "Pet Rock" owner: identifier: "testPlayer" name: "test" creator: identifier: "testPlayer" name: "test" options2 = name: "PI:NAME:<NAME>END_PIPet2" attrs: ["1", "2"] type: "Pet Rock" owner: identifier: "testPlayer2" name: "test2" creator: identifier: "testPlayer2" name: "test2" options3 = name: "PI:NAME:<NAME>END_PIPet3" attrs: ["1", "2"] type: "Moose" owner: identifier: "testPlayer2" name: "PI:NAME:<NAME>END_PI" creator: identifier: "testPlayer2" name: "PI:NAME:<NAME>END_PI" callback.call context, new Pet options callback.call context, new Pet options2 callback.call context, new Pet options3 }, '@noCallThru': true ) #constructor petManager = new NewPetManager game expect(Object.keys(petManager.activePets).length).to.equal(2) expect(petManager.activePets).to.have.keys(['testPlayer', 'testPlayer2']) expect(petManager.activePets["testPlayer"].type).to.equal("Pet Rock") expect(petManager.activePets["testPlayer2"].type).to.equal("Moose") #getPetsForPlayer petsForTestPlayer = petManager.getPetsForPlayer "testPlayer" petsForTestPlayer2 = petManager.getPetsForPlayer "testPlayer2" petsForUnknownPlayer = petManager.getPetsForPlayer "blah" expect(petsForTestPlayer).to.have.length(1) expect(petsForTestPlayer2).to.have.length(2) expect(petsForUnknownPlayer).to.have.length(0) expect(petsForTestPlayer).to.have.deep.property('[0].name', 'testPet') expect(petsForTestPlayer).to.have.deep.property('[0].owner.identifier', 'testPlayer') expect(petsForTestPlayer2).to.have.deep.property('[0].name', 'testPet2') expect(petsForTestPlayer2).to.have.deep.property('[0].owner.identifier', 'testPlayer2') expect(petsForTestPlayer2).to.have.deep.property('[1].name', 'testPet3') expect(petsForTestPlayer2).to.have.deep.property('[1].owner.identifier', 'testPlayer2')
[ { "context": "bqr:\"\n play_now: \"Cynl Abj\"\n im_a_teacher: \"V'z n Grnpure\"\n im_a_student: \"V'z n Fghqrag\"\n learn_more", "end": 326, "score": 0.9997717142105103, "start": 313, "tag": "NAME", "value": "V'z n Grnpure" }, { "context": " im_a_teacher: \"V'z n Grnpure\...
app/locale/rot13.coffee
Alicecold/codecombat
0
module.exports = nativeDescription: "rot13", englishDescription: "English with the letters jumbled", translation: new_home: slogan: "Gur zbfg ratntvat tnzr sbe yrneavat cebtenzzvat." classroom_edition: "Pynffebbz Rqvgvba:" learn_to_code: "Yrnea gb pbqr:" play_now: "Cynl Abj" im_a_teacher: "V'z n Grnpure" im_a_student: "V'z n Fghqrag" learn_more: "Yrnea zber" classroom_in_a_box: "N pynffebbz va-n-obk sbe grnpuvat pbzchgre fpvrapr." codecombat_is: "PbqrPbzong vf n cyngsbez <fgebat>sbe fghqragf</fgebat> gb yrnea pbzchgre fpvrapr juvyr cynlvat guebhtu n erny tnzr." our_courses: "Bhe pbhefrf unir orra fcrpvsvpnyyl cynlgrfgrq <fgebat>gb rkpry va gur pynffebbz</fgebat>, rira sbe grnpuref jvgu yvggyr gb ab cevbe cebtenzzvat rkcrevrapr." watch_how: "Jngpu ubj PbqrPbzong vf genafsbezvat gur jnl crbcyr yrnea pbzchgre fpvrapr." top_screenshots_hint: "Fghqragf jevgr pbqr naq frr gurve punatrf hcqngr va erny-gvzr" designed_with: "Qrfvtarq jvgu grnpuref va zvaq" real_code: "Erny, glcrq pbqr" from_the_first_level: "sebz gur svefg yriry" getting_students: "Trggvat fghqragf gb glcrq pbqr nf dhvpxyl nf cbffvoyr vf pevgvpny gb yrneavat cebtenzzvat flagnk naq cebcre fgehpgher." educator_resources: "Rqhpngbe erfbheprf" course_guides: "naq pbhefr thvqrf" teaching_computer_science: "Grnpuvat pbzchgre fpvrapr qbrf abg erdhver n pbfgyl qrterr, orpnhfr jr cebivqr gbbyf gb fhccbeg rqhpngbef bs nyy onpxtebhaqf." accessible_to: "Npprffvoyr gb" everyone: "rirelbar" democratizing: "Qrzbpengvmvat gur cebprff bs yrneavat pbqvat vf ng gur pber bs bhe cuvybfbcul. Rirelbar fubhyq or noyr gb yrnea gb pbqr." forgot_learning: "V guvax gurl npghnyyl sbetbg gung gurl jrer npghnyyl yrneavat fbzrguvat." wanted_to_do: " Pbqvat vf fbzrguvat V'ir nyjnlf jnagrq gb qb, naq V arire gubhtug V jbhyq or noyr gb yrnea vg va fpubby." why_games: "Jul vf yrneavat guebhtu tnzrf vzcbegnag?" games_reward: "Tnzrf erjneq gur cebqhpgvir fgehttyr." encourage: "Tnzvat vf n zrqvhz gung rapbhentrf vagrenpgvba, qvfpbirel, naq gevny-naq-reebe. N tbbq tnzr punyyratrf gur cynlre gb znfgre fxvyyf bire gvzr, juvpu vf gur fnzr pevgvpny cebprff fghqragf tb guebhtu nf gurl yrnea." excel: "Tnzrf rkpry ng erjneqvat" struggle: "cebqhpgvir fgehttyr" kind_of_struggle: "gur xvaq bs fgehttyr gung erfhygf va yrneavat gung’f ratntvat naq" motivating: "zbgvingvat" not_tedious: "abg grqvbhf." gaming_is_good: "Fghqvrf fhttrfg tnzvat vf tbbq sbe puvyqera’f oenvaf. (vg’f gehr!)" game_based: "Jura tnzr-onfrq yrneavat flfgrzf ner" compared: "pbzcnerq" conventional: "ntnvafg pbairagvbany nffrffzrag zrgubqf, gur qvssrerapr vf pyrne: tnzrf ner orggre ng urycvat fghqragf ergnva xabjyrqtr, pbapragengr naq" perform_at_higher_level: "cresbez ng n uvture yriry bs npuvrirzrag" feedback: "Tnzrf nyfb cebivqr erny-gvzr srrqonpx gung nyybjf fghqragf gb nqwhfg gurve fbyhgvba cngu naq haqrefgnaq pbaprcgf zber ubyvfgvpnyyl, vafgrnq bs orvat yvzvgrq gb whfg “pbeerpg” be “vapbeerpg” nafjref." real_game: "N erny tnzr, cynlrq jvgu erny pbqvat." great_game: "N terng tnzr vf zber guna whfg onqtrf naq npuvrirzragf - vg’f nobhg n cynlre’f wbhearl, jryy-qrfvtarq chmmyrf, naq gur novyvgl gb gnpxyr punyyratrf jvgu ntrapl naq pbasvqrapr." agency: "PbqrPbzong vf n tnzr gung tvirf cynlref gung ntrapl naq pbasvqrapr jvgu bhe ebohfg glcrq pbqr ratvar, juvpu urycf ortvaare naq nqinaprq fghqragf nyvxr jevgr cebcre, inyvq pbqr." request_demo_title: "Trg lbhe fghqragf fgnegrq gbqnl!" request_demo_subtitle: "Erdhrfg n qrzb naq trg lbhe fghqragf fgnegrq va yrff guna na ubhe." get_started_title: "Frg hc lbhe pynff gbqnl" get_started_subtitle: "Frg hc n pynff, nqq lbhe fghqragf, naq zbavgbe gurve cebterff nf gurl yrnea pbzchgre fpvrapr." request_demo: "Erdhrfg n Qrzb" setup_a_class: "Frg Hc n Pynff" have_an_account: "Unir na nppbhag?" logged_in_as: "Lbh ner pheeragyl ybttrq va nf" computer_science: "Bhe frys-cnprq pbhefrf pbire onfvp flagnk gb nqinaprq pbaprcgf" ffa: "Serr sbe nyy fghqragf" coming_soon: "Zber pbzvat fbba!" courses_available_in: "Pbhefrf ner ninvynoyr va WninFpevcg naq Clguba. Jro Qrirybczrag pbhefrf hgvyvmr UGZY, PFF, naq wDhrel." boast: "Obnfgf evqqyrf gung ner pbzcyrk rabhtu gb snfpvangr tnzref naq pbqref nyvxr." winning: "N jvaavat pbzovangvba bs ECT tnzrcynl naq cebtenzzvat ubzrjbex gung chyyf bss znxvat xvq-sevraqyl rqhpngvba yrtvgvzngryl rawblnoyr." run_class:"Rirelguvat lbh arrq gb eha n pbzchgre fpvrapr pynff va lbhe fpubby gbqnl, ab PF onpxtebhaq erdhverq." goto_classes: "Tb gb Zl Pynffrf" view_profile: "Ivrj Zl Cebsvyr" view_progress: "Ivrj Cebterff" go_to_courses: "Tb gb Zl Pbhefrf" want_coco: "Jnag PbqrPbzong ng lbhe fpubby?" nav: map: "Znc" play: "Yriryf" # Gur gbc ani one ragel jurer cynlref pubbfr juvpu yriryf gb cynl community: "Pbzzhavgl" courses: "Pbhefrf" blog: "Oybt" forum: "Sbehz" account: "Nppbhag" my_account: "Zl Nppbhag" profile: "Cebsvyr" home: "Ubzr" contribute: "Pbagevohgr" legal: "Yrtny" privacy: "Cevinpl" about: "Nobhg" contact: "Pbagnpg" twitter_follow: "Sbyybj" my_classrooms: "Zl Pynffrf" my_courses: "Zl Pbhefrf" careers: "Pnerref" facebook: "Snprobbx" twitter: "Gjvggre" create_a_class: "Perngr n Pynff" other: "Bgure" learn_to_code: "Yrnea gb Pbqr!" toggle_nav: "Gbttyr anivtngvba" schools: "Fpubbyf" get_involved: "Trg Vaibyirq" open_source: "Bcra fbhepr (TvgUho)" support: "Fhccbeg" faqs: "SNDf" help_pref: "Arrq uryc? Rznvy" help_suff: "naq jr'yy trg va gbhpu!" resource_hub: "Erfbhepr Uho" modal: close: "Pybfr" okay: "Bxnl" not_found: page_not_found: "Cntr abg sbhaq" diplomat_suggestion: title: "Uryc genafyngr PbqrPbzong!" # Guvf fubjf hc jura n cynlre fjvgpurf gb n aba-Ratyvfu ynathntr hfvat gur ynathntr fryrpgbe. sub_heading: "Jr arrq lbhe ynathntr fxvyyf." pitch_body: "Jr qrirybc PbqrPbzong va Ratyvfu, ohg jr nyernql unir cynlref nyy bire gur jbeyq. Znal bs gurz jnag gb cynl va {Ratyvfu} ohg qba'g fcrnx Ratyvfu, fb vs lbh pna fcrnx obgu, cyrnfr pbafvqre fvtavat hc gb or n Qvcybzng naq uryc genafyngr obgu gur PbqrPbzong jrofvgr naq nyy gur yriryf vagb {Ratyvfu}." missing_translations: "Hagvy jr pna genafyngr rirelguvat vagb {Ratyvfu}, lbh'yy frr Ratyvfu jura {Ratyvfu} vfa'g ninvynoyr." learn_more: "Yrnea zber nobhg orvat n Qvcybzng" subscribe_as_diplomat: "Fhofpevor nf n Qvcybzng" play: play_as: "Cynl Nf" # Ynqqre cntr get_course_for_class: "Nffvta Tnzr Qrirybczrag naq zber gb lbhe pynffrf!" request_licenses: "Pbagnpg bhe fpubby fcrpvnyvfgf sbe qrgnvyf." compete: "Pbzcrgr!" # Pbhefr qrgnvyf cntr spectate: "Fcrpgngr" # Ynqqre cntr players: "cynlref" # Ubire bire n yriry ba /cynl hours_played: "ubhef cynlrq" # Ubire bire n yriry ba /cynl items: "Vgrzf" # Gbbygvc ba vgrz fubc ohggba sebz /cynl unlock: "Haybpx" # Sbe chepunfvat vgrzf naq urebrf confirm: "Pbasvez" owned: "Bjarq" # Sbe vgrzf lbh bja locked: "Ybpxrq" available: "Ninvynoyr" skills_granted: "Fxvyyf Tenagrq" # Cebcregl qbphzragngvba qrgnvyf heroes: "Urebrf" # Gbbygvc ba ureb fubc ohggba sebz /cynl achievements: "Npuvrirzragf" # Gbbygvc ba npuvrirzrag yvfg ohggba sebz /cynl settings: "Frggvatf" # Gbbygvc ba frggvatf ohggba sebz /cynl poll: "Cbyy" # Gbbygvc ba cbyy ohggba sebz /cynl next: "Arkg" # Tb sebz pubbfr ureb gb pubbfr vairagbel orsber cynlvat n yriry change_hero: "Punatr Ureb" # Tb onpx sebz pubbfr vairagbel gb pubbfr ureb buy_gems: "Ohl Trzf" subscribers_only: "Fhofpevoref Bayl!" subscribe_unlock: "Fhofpevor gb Haybpx!" subscriber_heroes: "Fhofpevor gbqnl gb vzzrqvngryl haybpx Nznen, Uhfuonhz, naq Unggbev!" subscriber_gems: "Fhofpevor gbqnl gb chepunfr guvf ureb jvgu trzf!" anonymous: "Nabalzbhf Cynlre" level_difficulty: "Qvssvphygl: " awaiting_levels_adventurer_prefix: "Jr eryrnfr arj yriryf rirel jrrx." awaiting_levels_adventurer: "Fvta hc nf na Nqiraghere" awaiting_levels_adventurer_suffix: "gb or gur svefg gb cynl arj yriryf." adjust_volume: "Nqwhfg ibyhzr" campaign_multiplayer: "Zhygvcynlre Neranf" campaign_multiplayer_description: "... va juvpu lbh pbqr urnq-gb-urnq ntnvafg bgure cynlref." brain_pop_done: "Lbh’ir qrsrngrq gur Bterf jvgu pbqr! Lbh jva!" brain_pop_challenge: "Punyyratr lbhefrys gb cynl ntnva hfvat n qvssrerag cebtenzzvat ynathntr!" replay: "Ercynl" back_to_classroom: "Onpx gb Pynffebbz" teacher_button: "Sbe Grnpuref" get_more_codecombat: "Trg Zber PbqrPbzong" code: if: "vs" # Xrljbeqf--gurfr genafyngvbaf fubj hc ba ubire, fb cyrnfr genafyngr gurz nyy, rira vs vg'f xvaq bs ybat. (Va gur pbqr rqvgbe, gurl jvyy fgvyy or va Ratyvfu.) else: "ryfr" elif: "ryfr vs" while: "juvyr" loop: "ybbc" for: "sbe" break: "oernx" continue: "pbagvahr" pass: "cnff" return: "erghea" then: "gura" do: "qb" end: "raq" function: "shapgvba" def: "qrsvar" var: "inevnoyr" self: "frys" hero: "ureb" this: "guvf" or: "be" "||": "be" and: "naq" "&&": "naq" not: "abg" "!": "abg" "=": "nffvta" # Sbe guvf frpgvba, pbawhtngr vg yvxr vg'f gur ireo cneg bs n fragrapr jura cbffvoyr "==": "rdhnyf" "===": "fgevpgyl rdhnyf" "!=": "qbrf abg rdhny" "!==": "qbrf abg fgevpgyl rdhny" ">": "vf terngre guna" ">=": "vf terngre guna be rdhny" "<": "vf yrff guna" "<=": "vf yrff guna be rdhny" "*": "zhygvcyvrq ol" "/": "qvivqrq ol" "+": "cyhf" "-": "zvahf" "+=": "nqq naq nffvta" "-=": "fhogenpg naq nffvta" True: "Gehr" true: "gehr" False: "Snyfr" false: "snyfr" undefined: "haqrsvarq" null: "ahyy" nil: "avy" None: "Abar" share_progress_modal: blurb: "Lbh’er znxvat terng cebterff! Gryy lbhe cnerag ubj zhpu lbh'ir yrnearq jvgu PbqrPbzong." email_invalid: "Rznvy nqqerff vainyvq." form_blurb: "Ragre lbhe cnerag'f rznvy orybj naq jr’yy fubj gurz!" form_label: "Rznvy Nqqerff" placeholder: "rznvy nqqerff" title: "Rkpryyrag Jbex, Ncceragvpr" login: sign_up: "Perngr Nppbhag" email_or_username: "Rznvy be hfreanzr" log_in: "Ybt Va" logging_in: "Ybttvat Va" log_out: "Ybt Bhg" forgot_password: "Sbetbg lbhe cnffjbeq?" finishing: "Svavfuvat" sign_in_with_facebook: "Fvta va jvgu Snprobbx" sign_in_with_gplus: "Fvta va jvgu Tbbtyr" signup_switch: "Jnag gb perngr na nppbhag?" signup: complete_subscription: "Pbzcyrgr Fhofpevcgvba" create_student_header: "Perngr Fghqrag Nppbhag" create_teacher_header: "Perngr Grnpure Nppbhag" create_individual_header: "Perngr Vaqvivqhny Nppbhag" email_announcements: "Erprvir naabhaprzragf nobhg arj PbqrPbzong yriryf naq srngherf!" sign_in_to_continue: "Fvta va be perngr na nppbhag gb pbagvahr" teacher_email_announcements: "Xrrc zr hcqngrq ba arj grnpure erfbheprf, pheevphyhz, naq pbhefrf!" creating: "Perngvat Nppbhag..." sign_up: "Fvta Hc" log_in: "ybt va jvgu cnffjbeq" required: "Lbh arrq gb ybt va orsber lbh pna tb gung jnl." login_switch: "Nyernql unir na nppbhag?" optional: "bcgvbany" connected_gplus_header: "Lbh'ir fhpprffshyyl pbaarpgrq jvgu Tbbtyr+!" connected_gplus_p: "Svavfu fvtavat hc fb lbh pna ybt va jvgu lbhe Tbbtyr+ nppbhag." connected_facebook_header: "Lbh'ir fhpprffshyyl pbaarpgrq jvgu Snprobbx!" connected_facebook_p: "Svavfu fvtavat hc fb lbh pna ybt va jvgu lbhe Snprobbx nppbhag." hey_students: "Fghqragf, ragre gur pynff pbqr sebz lbhe grnpure." birthday: "Oveguqnl" parent_email_blurb: "Jr xabj lbh pna'g jnvg gb yrnea cebtenzzvat &zqnfu; jr'er rkpvgrq gbb! Lbhe cneragf jvyy erprvir na rznvy jvgu shegure vafgehpgvbaf ba ubj gb perngr na nppbhag sbe lbh. Rznvy {{rznvy_yvax}} vs lbh unir nal dhrfgvbaf." classroom_not_found: "Ab pynffrf rkvfg jvgu guvf Pynff Pbqr. Purpx lbhe fcryyvat be nfx lbhe grnpure sbe uryc." checking: "Purpxvat..." account_exists: "Guvf rznvy vf nyernql va hfr:" sign_in: "Fvta va" email_good: "Rznvy ybbxf tbbq!" name_taken: "Hfreanzr nyernql gnxra! Gel {{fhttrfgrqAnzr}}?" name_available: "Hfreanzr ninvynoyr!" name_is_email: "Hfreanzr znl abg or na rznvy" choose_type: "Pubbfr lbhe nppbhag glcr:" teacher_type_1: "Grnpu cebtenzzvat hfvat PbqrPbzong!" teacher_type_2: "Frg hc lbhe pynff" teacher_type_3: "Npprff Pbhefr Thvqrf" teacher_type_4: "Ivrj fghqrag cebterff" signup_as_teacher: "Fvta hc nf n Grnpure" student_type_1: "Yrnea gb cebtenz juvyr cynlvat na ratntvat tnzr!" student_type_2: "Cynl jvgu lbhe pynff" student_type_3: "Pbzcrgr va neranf" student_type_4: "Pubbfr lbhe ureb!" student_type_5: "Unir lbhe Pynff Pbqr ernql!" signup_as_student: "Fvta hc nf n Fghqrag" individuals_or_parents: "Vaqvivqhnyf & Cneragf" individual_type: "Sbe cynlref yrneavat gb pbqr bhgfvqr bs n pynff. Cneragf fubhyq fvta hc sbe na nppbhag urer." signup_as_individual: "Fvta hc nf na Vaqvivqhny" enter_class_code: "Ragre lbhe Pynff Pbqr" enter_birthdate: "Ragre lbhe oveguqngr:" parent_use_birthdate: "Cneragf, hfr lbhe bja oveguqngr." ask_teacher_1: "Nfx lbhe grnpure sbe lbhe Pynff Pbqr." ask_teacher_2: "Abg cneg bs n pynff? Perngr na " ask_teacher_3: "Vaqvivqhny Nppbhag" ask_teacher_4: " vafgrnq." about_to_join: "Lbh'er nobhg gb wbva:" enter_parent_email: "Ragre lbhe cnerag’f rznvy nqqerff:" parent_email_error: "Fbzrguvat jrag jebat jura gelvat gb fraq gur rznvy. Purpx gur rznvy nqqerff naq gel ntnva." parent_email_sent: "Jr’ir frag na rznvy jvgu shegure vafgehpgvbaf ba ubj gb perngr na nppbhag. Nfx lbhe cnerag gb purpx gurve vaobk." account_created: "Nppbhag Perngrq!" confirm_student_blurb: "Jevgr qbja lbhe vasbezngvba fb gung lbh qba'g sbetrg vg. Lbhe grnpure pna nyfb uryc lbh erfrg lbhe cnffjbeq ng nal gvzr." confirm_individual_blurb: "Jevgr qbja lbhe ybtva vasbezngvba va pnfr lbh arrq vg yngre. Irevsl lbhe rznvy fb lbh pna erpbire lbhe nppbhag vs lbh rire sbetrg lbhe cnffjbeq - purpx lbhe vaobk!" write_this_down: "Jevgr guvf qbja:" start_playing: "Fgneg Cynlvat!" sso_connected: "Fhpprffshyyl pbaarpgrq jvgu:" select_your_starting_hero: "Fryrpg Lbhe Fgnegvat Ureb:" you_can_always_change_your_hero_later: "Lbh pna nyjnlf punatr lbhe ureb yngre." finish: "Svavfu" teacher_ready_to_create_class: "Lbh'er ernql gb perngr lbhe svefg pynff!" teacher_students_can_start_now: "Lbhe fghqragf jvyy or noyr gb fgneg cynlvat gur svefg pbhefr, Vagebqhpgvba gb Pbzchgre Fpvrapr, vzzrqvngryl." teacher_list_create_class: "Ba gur arkg fperra lbh jvyy or noyr gb perngr n arj pynff." teacher_list_add_students: "Nqq fghqragf gb gur pynff ol pyvpxvat gur Ivrj Pynff yvax, gura fraqvat lbhe fghqragf gur Pynff Pbqr be HEY. Lbh pna nyfb vaivgr gurz ivn rznvy vs gurl unir rznvy nqqerffrf." teacher_list_resource_hub_1: "Purpx bhg gur" teacher_list_resource_hub_2: "Pbhefr Thvqrf" teacher_list_resource_hub_3: "sbe fbyhgvbaf gb rirel yriry, naq gur" teacher_list_resource_hub_4: "Erfbhepr Uho" teacher_list_resource_hub_5: "sbe pheevphyhz thvqrf, npgvivgvrf, naq zber!" teacher_additional_questions: "Gung’f vg! Vs lbh arrq nqqvgvbany uryc be unir dhrfgvbaf, ernpu bhg gb __fhccbegRznvy__." dont_use_our_email_silly: "Qba'g chg bhe rznvy urer! Chg lbhe cnerag'f rznvy." want_codecombat_in_school: "Jnag gb cynl PbqrPbzong nyy gur gvzr?" recover: recover_account_title: "Erpbire Nppbhag" send_password: "Fraq Erpbirel Cnffjbeq" recovery_sent: "Erpbirel rznvy frag." items: primary: "Cevznel" secondary: "Frpbaqnel" armor: "Nezbe" accessories: "Npprffbevrf" misc: "Zvfp" books: "Obbxf" common: back: "Onpx" # Jura hfrq nf na npgvba ireo, yvxr "Anivtngr onpxjneq" coming_soon: "Pbzvat fbba!" continue: "Pbagvahr" # Jura hfrq nf na npgvba ireo, yvxr "Pbagvahr sbejneq" next: "Arkg" default_code: "Qrsnhyg Pbqr" loading: "Ybnqvat..." overview: "Bireivrj" processing: "Cebprffvat..." solution: "Fbyhgvba" table_of_contents: "Gnoyr bs Pbagragf" intro: "Vageb" saving: "Fnivat..." sending: "Fraqvat..." send: "Fraq" sent: "Frag" cancel: "Pnapry" save: "Fnir" publish: "Choyvfu" create: "Perngr" fork: "Sbex" play: "Cynl" # Jura hfrq nf na npgvba ireo, yvxr "Cynl arkg yriry" retry: "Ergel" actions: "Npgvbaf" info: "Vasb" help: "Uryc" watch: "Jngpu" unwatch: "Hajngpu" submit_patch: "Fhozvg Cngpu" submit_changes: "Fhozvg Punatrf" save_changes: "Fnir Punatrf" required_field: "erdhverq" general: and: "naq" name: "Anzr" date: "Qngr" body: "Obql" version: "Irefvba" pending: "Craqvat" accepted: "Npprcgrq" rejected: "Erwrpgrq" withdrawn: "Jvguqenja" accept: "Npprcg" reject: "Erwrpg" withdraw: "Jvguqenj" submitter: "Fhozvggre" submitted: "Fhozvggrq" commit_msg: "Pbzzvg Zrffntr" version_history: "Irefvba Uvfgbel" version_history_for: "Irefvba Uvfgbel sbe: " select_changes: "Fryrpg gjb punatrf orybj gb frr gur qvssrerapr." undo_prefix: "Haqb" undo_shortcut: "(Pgey+M)" redo_prefix: "Erqb" redo_shortcut: "(Pgey+Fuvsg+M)" play_preview: "Cynl cerivrj bs pheerag yriry" result: "Erfhyg" results: "Erfhygf" description: "Qrfpevcgvba" or: "be" subject: "Fhowrpg" email: "Rznvy" password: "Cnffjbeq" confirm_password: "Pbasvez Cnffjbeq" message: "Zrffntr" code: "Pbqr" ladder: "Ynqqre" when: "Jura" opponent: "Bccbarag" rank: "Enax" score: "Fpber" win: "Jva" loss: "Ybff" tie: "Gvr" easy: "Rnfl" medium: "Zrqvhz" hard: "Uneq" player: "Cynlre" player_level: "Yriry" # Yvxr cynlre yriry 5, abg yvxr yriry: Qhatrbaf bs Xvgutneq warrior: "Jneevbe" ranger: "Enatre" wizard: "Jvmneq" first_name: "Svefg Anzr" last_name: "Ynfg Anzr" last_initial: "Ynfg Vavgvny" username: "Hfreanzr" contact_us: "Pbagnpg Hf" close_window: "Pybfr Jvaqbj" learn_more: "Yrnea Zber" more: "Zber" fewer: "Srjre" with: "jvgu" units: second: "frpbaq" seconds: "frpbaqf" sec: "frp" minute: "zvahgr" minutes: "zvahgrf" hour: "ubhe" hours: "ubhef" day: "qnl" days: "qnlf" week: "jrrx" weeks: "jrrxf" month: "zbagu" months: "zbaguf" year: "lrne" years: "lrnef" play_level: back_to_map: "Onpx gb Znc" directions: "Qverpgvbaf" edit_level: "Rqvg Yriry" keep_learning: "Xrrc Yrneavat" explore_codecombat: "Rkcyber PbqrPbzong" finished_hoc: "V'z svavfurq jvgu zl Ubhe bs Pbqr" get_certificate: "Trg lbhe pregvsvpngr!" level_complete: "Yriry Pbzcyrgr" completed_level: "Pbzcyrgrq Yriry:" course: "Pbhefr:" done: "Qbar" next_level: "Arkg Yriry" challenge_unlocked: "Punyyratr Haybpxrq" start_challenge: "Fgneg Punyyratr" next_game: "Arkg tnzr" languages: "Ynathntrf" programming_language: "Cebtenzzvat ynathntr" show_menu: "Fubj tnzr zrah" home: "Ubzr" # Abg hfrq nal zber, jvyy or erzbirq fbba. level: "Yriry" # Yvxr "Yriry: Qhatrbaf bs Xvgutneq" skip: "Fxvc" game_menu: "Tnzr Zrah" restart: "Erfgneg" goals: "Tbnyf" goal: "Tbny" challenge_level_goals: "Punyyratr Yriry Tbnyf" challenge_level_goal: "Punyyratr Yriry Tbny" running: "Ehaavat..." success: "Fhpprff!" incomplete: "Vapbzcyrgr" timed_out: "Ena bhg bs gvzr" failing: "Snvyvat" reload: "Erybnq" reload_title: "Erybnq Nyy Pbqr?" reload_really: "Ner lbh fher lbh jnag gb erybnq guvf yriry onpx gb gur ortvaavat?" reload_confirm: "Erybnq Nyy" test_level: "Grfg Yriry" victory: "Ivpgbel" victory_title_prefix: "" victory_title_suffix: " Pbzcyrgr" victory_sign_up: "Fvta Hc gb Fnir Cebterff" victory_sign_up_poke: "Jnag gb fnir lbhe pbqr? Perngr n serr nppbhag!" victory_rate_the_level: "Ubj sha jnf guvf yriry?" victory_return_to_ladder: "Erghea gb Ynqqre" victory_saving_progress: "Fnivat Cebterff" victory_go_home: "Tb Ubzr" victory_review: "Gryy hf zber!" victory_review_placeholder: "Ubj jnf gur yriry?" victory_hour_of_code_done: "Ner Lbh Qbar?" victory_hour_of_code_done_yes: "Lrf, V'z svavfurq jvgu zl Ubhe bs Pbqr™!" victory_experience_gained: "KC Tnvarq" victory_gems_gained: "Trzf Tnvarq" victory_new_item: "Arj Vgrz" victory_new_hero: "Arj Ureb" victory_viking_code_school: "Ubyl fzbxrf, gung jnf n uneq yriry lbh whfg orng! Vs lbh nera'g nyernql n fbsgjner qrirybcre, lbh fubhyq or. Lbh whfg tbg snfg-genpxrq sbe npprcgnapr jvgu Ivxvat Pbqr Fpubby, jurer lbh pna gnxr lbhe fxvyyf gb gur arkg yriry naq orpbzr n cebsrffvbany jro qrirybcre va 14 jrrxf." victory_become_a_viking: "Orpbzr n Ivxvat" victory_no_progress_for_teachers: "Cebterff vf abg fnirq sbe grnpuref. Ohg, lbh pna nqq n fghqrag nppbhag gb lbhe pynffebbz sbe lbhefrys." tome_cast_button_run: "Eha" tome_cast_button_running: "Ehaavat" tome_cast_button_ran: "Ena" tome_submit_button: "Fhozvg" tome_reload_method: "Erybnq bevtvany pbqr gb erfgneg gur yriry" tome_available_spells: "Ninvynoyr Fcryyf" tome_your_skills: "Lbhe Fxvyyf" hints: "Uvagf" hints_title: "Uvag {{ahzore}}" code_saved: "Pbqr Fnirq" skip_tutorial: "Fxvc (rfp)" keyboard_shortcuts: "Xrl Fubegphgf" loading_start: "Fgneg Yriry" problem_alert_title: "Svk Lbhe Pbqr" time_current: "Abj:" time_total: "Znk:" time_goto: "Tb gb:" non_user_code_problem_title: "Hanoyr gb Ybnq Yriry" infinite_loop_title: "Vasvavgr Ybbc Qrgrpgrq" infinite_loop_description: "Gur vavgvny pbqr gb ohvyq gur jbeyq arire svavfurq ehaavat. Vg'f cebonoyl rvgure ernyyl fybj be unf na vasvavgr ybbc. Be gurer zvtug or n oht. Lbh pna rvgure gel ehaavat guvf pbqr ntnva be erfrg gur pbqr gb gur qrsnhyg fgngr. Vs gung qbrfa'g svk vg, cyrnfr yrg hf xabj." check_dev_console: "Lbh pna nyfb bcra gur qrirybcre pbafbyr gb frr jung zvtug or tbvat jebat." check_dev_console_link: "(vafgehpgvbaf)" infinite_loop_try_again: "Gel Ntnva" infinite_loop_reset_level: "Erfrg Yriry" infinite_loop_comment_out: "Pbzzrag Bhg Zl Pbqr" tip_toggle_play: "Gbttyr cynl/cnhfrq jvgu Pgey+C." tip_scrub_shortcut: "Hfr Pgey+[ naq Pgey+] gb erjvaq naq snfg-sbejneq." tip_guide_exists: "Pyvpx gur thvqr, vafvqr tnzr zrah (ng gur gbc bs gur cntr), sbe hfrshy vasb." tip_open_source: "PbqrPbzong vf 100% bcra fbhepr!" tip_tell_friends: "Rawblvat PbqrPbzong? Gryy lbhe sevraqf nobhg hf!" tip_beta_launch: "PbqrPbzong ynhapurq vgf orgn va Bpgbore, 2013." tip_think_solution: "Guvax bs gur fbyhgvba, abg gur ceboyrz." tip_theory_practice: "Va gurbel, gurer vf ab qvssrerapr orgjrra gurbel naq cenpgvpr. Ohg va cenpgvpr, gurer vf. - Lbtv Oreen" tip_error_free: "Gurer ner gjb jnlf gb jevgr reebe-serr cebtenzf; bayl gur guveq bar jbexf. - Nyna Creyvf" tip_debugging_program: "Vs qrohttvat vf gur cebprff bs erzbivat ohtf, gura cebtenzzvat zhfg or gur cebprff bs chggvat gurz va. - Rqftre J. Qvwxfgen" tip_forums: "Urnq bire gb gur sbehzf naq gryy hf jung lbh guvax!" tip_baby_coders: "Va gur shgher, rira onovrf jvyy or Nepuzntrf." tip_morale_improves: "Ybnqvat jvyy pbagvahr hagvy zbenyr vzcebirf." tip_all_species: "Jr oryvrir va rdhny bccbeghavgvrf gb yrnea cebtenzzvat sbe nyy fcrpvrf." tip_reticulating: "Ergvphyngvat fcvarf." tip_harry: "Lre n Jvmneq, " tip_great_responsibility: "Jvgu terng pbqvat fxvyy pbzrf terng qroht erfcbafvovyvgl." tip_munchkin: "Vs lbh qba'g rng lbhe irtrgnoyrf, n zhapuxva jvyy pbzr nsgre lbh juvyr lbh'er nfyrrc." tip_binary: "Gurer ner bayl 10 glcrf bs crbcyr va gur jbeyq: gubfr jub haqrefgnaq ovanel, naq gubfr jub qba'g." tip_commitment_yoda: "N cebtenzzre zhfg unir gur qrrcrfg pbzzvgzrag, gur zbfg frevbhf zvaq. ~ Lbqn" tip_no_try: "Qb. Be qb abg. Gurer vf ab gel. - Lbqn" tip_patience: "Cngvrapr lbh zhfg unir, lbhat Cnqnjna. - Lbqn" tip_documented_bug: "N qbphzragrq oht vf abg n oht; vg vf n srngher." tip_impossible: "Vg nyjnlf frrzf vzcbffvoyr hagvy vg'f qbar. - Aryfba Znaqryn" tip_talk_is_cheap: "Gnyx vf purnc. Fubj zr gur pbqr. - Yvahf Gbeinyqf" tip_first_language: "Gur zbfg qvfnfgebhf guvat gung lbh pna rire yrnea vf lbhe svefg cebtenzzvat ynathntr. - Nyna Xnl" tip_hardware_problem: "D: Ubj znal cebtenzzref qbrf vg gnxr gb punatr n yvtug ohyo? N: Abar, vg'f n uneqjner ceboyrz." tip_hofstadters_law: "Ubsfgnqgre'f Ynj: Vg nyjnlf gnxrf ybatre guna lbh rkcrpg, rira jura lbh gnxr vagb nppbhag Ubsfgnqgre'f Ynj." tip_premature_optimization: "Cerzngher bcgvzvmngvba vf gur ebbg bs nyy rivy. - Qbanyq Xahgu" tip_brute_force: "Jura va qbhog, hfr oehgr sbepr. - Xra Gubzcfba" tip_extrapolation: "Gurer ner bayl gjb xvaqf bs crbcyr: gubfr gung pna rkgencbyngr sebz vapbzcyrgr qngn..." tip_superpower: "Pbqvat vf gur pybfrfg guvat jr unir gb n fhcrecbjre." tip_control_destiny: "Va erny bcra fbhepr, lbh unir gur evtug gb pbageby lbhe bja qrfgval. - Yvahf Gbeinyqf" tip_no_code: "Ab pbqr vf snfgre guna ab pbqr." tip_code_never_lies: "Pbqr arire yvrf, pbzzragf fbzrgvzrf qb. — Eba Wrssevrf" tip_reusable_software: "Orsber fbsgjner pna or erhfnoyr vg svefg unf gb or hfnoyr." tip_optimization_operator: "Rirel ynathntr unf na bcgvzvmngvba bcrengbe. Va zbfg ynathntrf gung bcrengbe vf ‘//’" tip_lines_of_code: "Zrnfhevat cebtenzzvat cebterff ol yvarf bs pbqr vf yvxr zrnfhevat nvepensg ohvyqvat cebterff ol jrvtug. — Ovyy Tngrf" tip_source_code: "V jnag gb punatr gur jbeyq ohg gurl jbhyq abg tvir zr gur fbhepr pbqr." tip_javascript_java: "Wnin vf gb WninFpevcg jung Pne vf gb Pnecrg. - Puevf Urvyznaa" tip_move_forward: "Jungrire lbh qb, xrrc zbivat sbejneq. - Znegva Yhgure Xvat We." tip_google: "Unir n ceboyrz lbh pna'g fbyir? Tbbtyr vg!" tip_adding_evil: "Nqqvat n cvapu bs rivy." tip_hate_computers: "Gung'f gur guvat nobhg crbcyr jub guvax gurl ungr pbzchgref. Jung gurl ernyyl ungr vf ybhfl cebtenzzref. - Yneel Avira" tip_open_source_contribute: "Lbh pna uryc PbqrPbzong vzcebir!" tip_recurse: "Gb vgrengr vf uhzna, gb erphefr qvivar. - Y. Crgre Qrhgfpu" tip_free_your_mind: "Lbh unir gb yrg vg nyy tb, Arb. Srne, qbhog, naq qvforyvrs. Serr lbhe zvaq. - Zbecurhf" tip_strong_opponents: "Rira gur fgebatrfg bs bccbaragf nyjnlf unf n jrnxarff. - Vgnpuv Hpuvun" tip_paper_and_pen: "Orsber lbh fgneg pbqvat, lbh pna nyjnlf cyna jvgu n furrg bs cncre naq n cra." tip_solve_then_write: "Svefg, fbyir gur ceboyrz. Gura, jevgr gur pbqr. - Wbua Wbuafba" tip_compiler_ignores_comments: "Fbzrgvzrf V guvax gung gur pbzcvyre vtaberf zl pbzzragf." tip_understand_recursion: "Gur bayl jnl gb haqrefgnaq erphefvba vf gb haqrefgnaq erphefvba." tip_life_and_polymorphism: "Bcra Fbhepr vf yvxr n gbgnyyl cbylzbecuvp urgrebtrarbhf fgehpgher: Nyy glcrf ner jrypbzr." tip_mistakes_proof_of_trying: "Zvfgnxrf va lbhe pbqr ner whfg cebbs gung lbh ner gelvat." tip_adding_orgres: "Ebhaqvat hc bterf." tip_sharpening_swords: "Funecravat gur fjbeqf." tip_ratatouille: "Lbh zhfg abg yrg nalbar qrsvar lbhe yvzvgf orpnhfr bs jurer lbh pbzr sebz. Lbhe bayl yvzvg vf lbhe fbhy. - Thfgrnh, Engngbhvyyr" tip_nemo: "Jura yvsr trgf lbh qbja, jnag gb xabj jung lbh'ir tbggn qb? Whfg xrrc fjvzzvat, whfg xrrc fjvzzvat. - Qbel, Svaqvat Arzb" tip_internet_weather: "Whfg zbir gb gur vagrearg, vg'f terng urer. Jr trg gb yvir vafvqr jurer gur jrngure vf nyjnlf njrfbzr. - Wbua Terra" tip_nerds: "Areqf ner nyybjrq gb ybir fghss, yvxr whzc-hc-naq-qbja-va-gur-punve-pna'g-pbageby-lbhefrys ybir vg. - Wbua Terra" tip_self_taught: "V gnhtug zlfrys 90% bs jung V'ir yrnearq. Naq gung'f abezny! - Unax Terra" tip_luna_lovegood: "Qba'g jbeel, lbh'er whfg nf fnar nf V nz. - Yhan Ybirtbbq" tip_good_idea: "Gur orfg jnl gb unir n tbbq vqrn vf gb unir n ybg bs vqrnf. - Yvahf Cnhyvat" tip_programming_not_about_computers: "Pbzchgre Fpvrapr vf ab zber nobhg pbzchgref guna nfgebabzl vf nobhg gryrfpbcrf. - Rqftre Qvwxfgen" tip_mulan: "Oryvrir lbh pna, gura lbh jvyy. - Zhyna" project_complete: "Cebwrpg Pbzcyrgr!" share_this_project: "Funer guvf cebwrpg jvgu sevraqf be snzvyl:" ready_to_share: "Ernql gb choyvfu lbhe cebwrpg?" click_publish: "Pyvpx \"Choyvfu\" gb znxr vg nccrne va gur pynff tnyyrel, gura purpx bhg jung lbhe pynffzngrf ohvyg! Lbh pna pbzr onpx naq pbagvahr gb jbex ba guvf cebwrpg. Nal shegure punatrf jvyy nhgbzngvpnyyl or fnirq naq funerq jvgu lbhe pynffzngrf." already_published_prefix: "Lbhe punatrf unir orra choyvfurq gb gur pynff tnyyrel." already_published_suffix: "Xrrc rkcrevzragvat naq znxvat guvf cebwrpg rira orggre, be frr jung gur erfg bs lbhe pynff unf ohvyg! Lbhe punatrf jvyy nhgbzngvpnyyl or fnirq naq funerq jvgu lbhe pynffzngrf." view_gallery: "Ivrj Tnyyrel" project_published_noty: "Lbhe yriry unf orra choyvfurq!" keep_editing: "Xrrc Rqvgvat" apis: methods: "Zrgubqf" events: "Riragf" spawnable: "Fcnjanoyr" html: "UGZY" math: "Zngu" array: "Neenl" object: "Bowrpg" string: "Fgevat" function: "Shapgvba" vector: "Irpgbe" date: "Qngr" jquery: "wDhrel" json: "WFBA" number: "Ahzore" webjavascript: "WninFpevcg" amazon_hoc: title: "Xrrc Yrneavat jvgu Nznmba!" congrats: "Pbatenghyngvbaf ba pbadhrevat gung punyyratvat Ubhe bs Pbqr!" educate_1: "Abj, xrrc yrneavat nobhg pbqvat naq pybhq pbzchgvat jvgu NJF Rqhpngr, na rkpvgvat, serr cebtenz sebz Nznmba sbe obgu fghqragf naq grnpuref. Jvgu NJF Rqhpngr, lbh pna rnea pbby onqtrf nf lbh yrnea nobhg gur onfvpf bs gur pybhq naq phggvat-rqtr grpuabybtvrf fhpu nf tnzvat, iveghny ernyvgl, naq Nyrkn." educate_2: "Yrnea zber naq fvta hc urer" future_eng_1: "Lbh pna nyfb gel gb ohvyq lbhe bja fpubby snpgf fxvyy sbe Nyrkn" future_eng_2: "urer" future_eng_3: "(qrivpr vf abg erdhverq). Guvf Nyrkn npgvivgl vf oebhtug gb lbh ol gur" future_eng_4: "Nznmba Shgher Ratvarre" future_eng_5: "cebtenz juvpu perngrf yrneavat naq jbex bccbeghavgvrf sbe nyy X-12 fghqragf va gur Havgrq Fgngrf jub jvfu gb chefhr pbzchgre fpvrapr." play_game_dev_level: created_by: "Perngrq ol {{anzr}}" created_during_hoc: "Perngrq qhevat Ubhe bs Pbqr" restart: "Erfgneg Yriry" play: "Cynl Yriry" play_more_codecombat: "Cynl Zber PbqrPbzong" default_student_instructions: "Pyvpx gb pbageby lbhe ureb naq jva lbhe tnzr!" goal_survive: "Fheivir." goal_survive_time: "Fheivir sbe __frpbaqf__ frpbaqf." goal_defeat: "Qrsrng nyy rarzvrf." goal_defeat_amount: "Qrsrng __nzbhag__ rarzvrf." goal_move: "Zbir gb nyy gur erq K znexf." goal_collect: "Pbyyrpg nyy gur vgrzf." goal_collect_amount: "Pbyyrpg __nzbhag__ vgrzf." game_menu: inventory_tab: "Vairagbel" save_load_tab: "Fnir/Ybnq" options_tab: "Bcgvbaf" guide_tab: "Thvqr" guide_video_tutorial: "Ivqrb Ghgbevny" guide_tips: "Gvcf" multiplayer_tab: "Zhygvcynlre" auth_tab: "Fvta Hc" inventory_caption: "Rdhvc lbhe ureb" choose_hero_caption: "Pubbfr ureb, ynathntr" options_caption: "Pbasvther frggvatf" guide_caption: "Qbpf naq gvcf" multiplayer_caption: "Cynl jvgu sevraqf!" auth_caption: "Fnir lbhe cebterff." leaderboard: view_other_solutions: "Ivrj Yrnqreobneqf" scores: "Fpberf" top_players: "Gbc Cynlref ol" day: "Gbqnl" week: "Guvf Jrrx" all: "Nyy-Gvzr" latest: "Yngrfg" time: "Jva Gvzr" damage_taken: "Qnzntr Gnxra" damage_dealt: "Qnzntr Qrnyg" difficulty: "Qvssvphygl" gold_collected: "Tbyq Pbyyrpgrq" survival_time: "Fheivirq" defeated: "Rarzvrf Qrsrngrq" code_length: "Yvarf bs Pbqr" score_display: "__fpberGlcr__: __fpber__" inventory: equipped_item: "Rdhvccrq" required_purchase_title: "Erdhverq" available_item: "Ninvynoyr" restricted_title: "Erfgevpgrq" should_equip: "(qbhoyr-pyvpx gb rdhvc)" equipped: "(rdhvccrq)" locked: "(ybpxrq)" restricted: "(erfgevpgrq va guvf yriry)" equip: "Rdhvc" unequip: "Hardhvc" warrior_only: "Jneevbe Bayl" ranger_only: "Enatre Bayl" wizard_only: "Jvmneq Bayl" buy_gems: few_gems: "N srj trzf" pile_gems: "Cvyr bs trzf" chest_gems: "Purfg bs trzf" purchasing: "Chepunfvat..." declined: "Lbhe pneq jnf qrpyvarq" retrying: "Freire reebe, ergelvat." prompt_title: "Abg Rabhtu Trzf" prompt_body: "Qb lbh jnag gb trg zber?" prompt_button: "Ragre Fubc" recovered: "Cerivbhf trzf chepunfr erpbirerq. Cyrnfr erserfu gur cntr." price: "k{{trzf}} / zb" buy_premium: "Ohl Cerzvhz" purchase: "Chepunfr" purchased: "Chepunfrq" earn_gems: prompt_title: "Abg Rabhtu Trzf" prompt_body: "Xrrc cynlvat gb rnea zber!" subscribe: best_deal: "Orfg Qrny!" confirmation: "Pbatenghyngvbaf! Lbh abj unir n PbqrPbzong Cerzvhz Fhofpevcgvba!" premium_already_subscribed: "Lbh'er nyernql fhofpevorq gb Cerzvhz!" subscribe_modal_title: "PbqrPbzong Cerzvhz" comparison_blurb: "Orpbzr n Znfgre Pbqre - fhofpevor gb <o>Cerzvhz</o> gbqnl!" must_be_logged: "Lbh zhfg or ybttrq va svefg. Cyrnfr perngr na nppbhag be ybt va sebz gur zrah nobir." subscribe_title: "Fhofpevor" # Npghnyyl hfrq va fhofpevor ohggbaf, gbb unsubscribe: "Hafhofpevor" confirm_unsubscribe: "Pbasvez Hafhofpevor" never_mind: "Arire Zvaq, V Fgvyy Ybir Lbh" thank_you_months_prefix: "Gunax lbh sbe fhccbegvat hf gurfr ynfg" thank_you_months_suffix: "zbaguf." thank_you: "Gunax lbh sbe fhccbegvat PbqrPbzong." sorry_to_see_you_go: "Fbeel gb frr lbh tb! Cyrnfr yrg hf xabj jung jr pbhyq unir qbar orggre." unsubscribe_feedback_placeholder: "B, jung unir jr qbar?" stripe_description: "Zbaguyl Fhofpevcgvba" buy_now: "Ohl Abj" subscription_required_to_play: "Lbh'yy arrq n fhofpevcgvba gb cynl guvf yriry." unlock_help_videos: "Fhofpevor gb haybpx nyy ivqrb ghgbevnyf." personal_sub: "Crefbany Fhofpevcgvba" # Nppbhagf Fhofpevcgvba Ivrj orybj loading_info: "Ybnqvat fhofpevcgvba vasbezngvba..." managed_by: "Znantrq ol" will_be_cancelled: "Jvyy or pnapryyrq ba" currently_free: "Lbh pheeragyl unir n serr fhofpevcgvba" currently_free_until: "Lbh pheeragyl unir n fhofpevcgvba hagvy" free_subscription: "Serr fhofpevcgvba" was_free_until: "Lbh unq n serr fhofpevcgvba hagvy" managed_subs: "Znantrq Fhofpevcgvbaf" subscribing: "Fhofpevovat..." current_recipients: "Pheerag Erpvcvragf" unsubscribing: "Hafhofpevovat" subscribe_prepaid: "Pyvpx Fhofpevor gb hfr cercnvq pbqr" using_prepaid: "Hfvat cercnvq pbqr sbe zbaguyl fhofpevcgvba" feature_level_access: "Npprff 300+ yriryf ninvynoyr" feature_heroes: "Haybpx rkpyhfvir urebrf naq crgf" feature_learn: "Yrnea gb znxr tnzrf naq jrofvgrf" month_price: "$__cevpr__" first_month_price: "Bayl $__cevpr__ sbe lbhe svefg zbagu!" lifetime: "Yvsrgvzr Npprff" lifetime_price: "$__cevpr__" year_subscription: "Lrneyl Fhofpevcgvba" year_price: "$__cevpr__/lrne" support_part1: "Arrq uryc jvgu cnlzrag be cersre CnlCny? Rznvy" support_part2: "fhccbeg@pbqrpbzong.pbz" announcement: now_available: "Abj ninvynoyr sbe fhofpevoref!" subscriber: "fhofpevore" cuddly_companions: "Phqqyl Pbzcnavbaf!" # Crg Naabhaprzrag Zbqny kindling_name: "Xvaqyvat Ryrzragny" kindling_description: "Xvaqyvat Ryrzragnyf whfg jnag gb xrrc lbh jnez ng avtug. Naq qhevat gur qnl. Nyy gur gvzr, ernyyl." griffin_name: "Onol Tevssva" griffin_description: "Tevssvaf ner unys rntyr, unys yvba, nyy nqbenoyr." raven_name: "Enira" raven_description: "Eniraf ner rkpryyrag ng tngurevat fuval obggyrf shyy bs urnygu sbe lbh." mimic_name: "Zvzvp" mimic_description: "Zvzvpf pna cvpx hc pbvaf sbe lbh. Zbir gurz ba gbc bs pbvaf gb vapernfr lbhe tbyq fhccyl." cougar_name: "Pbhtne" cougar_description: "Pbhtnef yvxr gb rnea n CuQ ol Cheevat Unccvyl Qnvyl." fox_name: "Oyhr Sbk" fox_description: "Oyhr sbkrf ner irel pyrire naq ybir qvttvat va gur qveg naq fabj!" pugicorn_name: "Chtvpbea" pugicorn_description: "Chtvpbeaf ner fbzr bs gur enerfg perngherf naq pna pnfg fcryyf!" wolf_name: "Jbys Chc" wolf_description: "Jbys chcf rkpry va uhagvat, tngurevat, naq cynlvat n zrna tnzr bs uvqr-naq-frrx!" ball_name: "Erq Fdhrnxl Onyy" ball_description: "onyy.fdhrnx()" collect_pets: "Pbyyrpg crgf sbe lbhe urebrf!" each_pet: "Rnpu crg unf n havdhr urycre novyvgl!" upgrade_to_premium: "Orpbzr n {{fhofpevore}} gb rdhvc crgf." play_second_kithmaze: "Cynl {{gur_frpbaq_xvguznmr}} gb haybpx gur Jbys Chc!" the_second_kithmaze: "Gur Frpbaq Xvguznmr" keep_playing: "Xrrc cynlvat gb qvfpbire gur svefg crg!" coming_soon: "Pbzvat fbba" ritic: "Evgvp gur Pbyq" # Evgvp Naabhaprzrag Zbqny ritic_description: "Evgvp gur Pbyq. Genccrq va Xryivagncu Tynpvre sbe pbhagyrff ntrf, svanyyl serr naq ernql gb graq gb gur bterf gung vzcevfbarq uvz." ice_block: "N oybpx bs vpr" ice_description: "Gurer nccrnef gb or fbzrguvat genccrq vafvqr..." blink_name: "Oyvax" blink_description: "Evgvp qvfnccrnef naq ernccrnef va n oyvax bs na rlr, yrnivat abguvat ohg n funqbj." shadowStep_name: "Funqbjfgrc" shadowStep_description: "N znfgre nffnffva xabjf ubj gb jnyx orgjrra gur funqbjf." tornado_name: "Gbeanqb" tornado_description: "Vg vf tbbq gb unir n erfrg ohggba jura bar'f pbire vf oybja." wallOfDarkness_name: "Jnyy bs Qnexarff" wallOfDarkness_description: "Uvqr oruvaq n jnyy bs funqbjf gb cerirag gur tnmr bs celvat rlrf." premium_features: get_premium: "Trg<oe>PbqrPbzong<oe>Cerzvhz" # Svg vagb gur onaare ba gur /srngherf cntr master_coder: "Orpbzr n Znfgre Pbqre ol fhofpevovat gbqnl!" paypal_redirect: "Lbh jvyy or erqverpgrq gb CnlCny gb pbzcyrgr gur fhofpevcgvba cebprff." subscribe_now: "Fhofpevor Abj" hero_blurb_1: "Trg npprff gb __cerzvhzUrebrfPbhag__ fhcre-punetrq fhofpevore-bayl urebrf! Unearff gur hafgbccnoyr cbjre bs Bxne Fgbzcsbbg, gur qrnqyl cerpvfvba bs Anevn bs gur Yrns, be fhzzba \"nqbenoyr\" fxryrgbaf jvgu Anysne Pelcgbe." hero_blurb_2: "Cerzvhz Jneevbef haybpx fghaavat znegvny fxvyyf yvxr Jnepel, Fgbzc, naq Uhey Rarzl. Be, cynl nf n Enatre, hfvat fgrnygu naq objf, guebjvat xavirf, gencf! Gel lbhe fxvyy nf n gehr pbqvat Jvmneq, naq hayrnfu n cbjreshy neenl bs Cevzbeqvny, Arpebznagvp be Ryrzragny zntvp!" hero_caption: "Rkpvgvat arj urebrf!" pet_blurb_1: "Crgf nera'g whfg nqbenoyr pbzcnavbaf, gurl nyfb cebivqr havdhr shapgvbanyvgl naq zrgubqf. Gur Onol Tevssba pna pneel havgf guebhtu gur nve, gur Jbys Chc cynlf pngpu jvgu rarzl neebjf, gur Pbhtne vf sbaq bs punfvat bterf nebhaq, naq gur Zvzvp nggenpgf pbvaf yvxr n zntarg!" pet_blurb_2: "Pbyyrpg nyy gur crgf gb qvfpbire gurve havdhr novyvgvrf!" pet_caption: "Nqbcg crgf gb nppbzcnal lbhe ureb!" game_dev_blurb: "Yrnea tnzr fpevcgvat naq ohvyq arj yriryf gb funer jvgu lbhe sevraqf! Cynpr gur vgrzf lbh jnag, jevgr pbqr sbe havg ybtvp naq orunivbe, naq frr vs lbhe sevraqf pna orng gur yriry!" game_dev_caption: "Qrfvta lbhe bja tnzrf gb punyyratr lbhe sevraqf!" everything_in_premium: "Rirelguvat lbh trg va PbqrPbzong Cerzvhz:" list_gems: "Erprvir obahf trzf gb ohl trne, crgf, naq urebrf" list_levels: "Tnva npprff gb __cerzvhzYriryfPbhag__ zber yriryf" list_heroes: "Haybpx rkpyhfvir urebrf, vapyhqr Enatre naq Jvmneq pynffrf" list_game_dev: "Znxr naq funer tnzrf jvgu sevraqf" list_web_dev: "Ohvyq jrofvgrf naq vagrenpgvir nccf" list_items: "Rdhvc Cerzvhz-bayl vgrzf yvxr crgf" list_support: "Trg Cerzvhz fhccbeg gb uryc lbh qroht gevpxl pbqr" list_clans: "Perngr cevingr pynaf gb vaivgr lbhe sevraqf naq pbzcrgr ba n tebhc yrnqreobneq" choose_hero: choose_hero: "Pubbfr Lbhe Ureb" programming_language: "Cebtenzzvat Ynathntr" programming_language_description: "Juvpu cebtenzzvat ynathntr qb lbh jnag gb hfr?" default: "Qrsnhyg" experimental: "Rkcrevzragny" python_blurb: "Fvzcyr lrg cbjreshy, terng sbe ortvaaref naq rkcregf." javascript_blurb: "Gur ynathntr bs gur jro. (Abg gur fnzr nf Wnin.)" coffeescript_blurb: "Avpre WninFpevcg flagnk." lua_blurb: "Tnzr fpevcgvat ynathntr." java_blurb: "(Fhofpevore Bayl) Naqebvq naq ragrecevfr." status: "Fgnghf" weapons: "Jrncbaf" weapons_warrior: "Fjbeqf - Fubeg Enatr, Ab Zntvp" weapons_ranger: "Pebffobjf, Thaf - Ybat Enatr, Ab Zntvp" weapons_wizard: "Jnaqf, Fgnssf - Ybat Enatr, Zntvp" attack: "Qnzntr" # Pna nyfb genafyngr nf "Nggnpx" health: "Urnygu" speed: "Fcrrq" regeneration: "Ertrarengvba" range: "Enatr" # Nf va "nggnpx be ivfhny enatr" blocks: "Oybpxf" # Nf va "guvf fuvryq oybpxf guvf zhpu qnzntr" backstab: "Onpxfgno" # Nf va "guvf qnttre qbrf guvf zhpu onpxfgno qnzntr" skills: "Fxvyyf" attack_1: "Qrnyf" attack_2: "bs yvfgrq" attack_3: "jrncba qnzntr." health_1: "Tnvaf" health_2: "bs yvfgrq" health_3: "nezbe urnygu." speed_1: "Zbirf ng" speed_2: "zrgref cre frpbaq." available_for_purchase: "Ninvynoyr sbe Chepunfr" # Fubjf hc jura lbh unir haybpxrq, ohg abg chepunfrq, n ureb va gur ureb fgber level_to_unlock: "Yriry gb haybpx:" # Ynory sbe juvpu yriry lbh unir gb orng gb haybpx n cnegvphyne ureb (pyvpx n ybpxrq ureb va gur fgber gb frr) restricted_to_certain_heroes: "Bayl pregnva urebrf pna cynl guvf yriry." skill_docs: function: "shapgvba" # fxvyy glcrf method: "zrgubq" snippet: "favccrg" number: "ahzore" array: "neenl" object: "bowrpg" string: "fgevat" writable: "jevgnoyr" # Ubire bire "nggnpx" va Lbhe Fxvyyf juvyr cynlvat n yriry gb frr zbfg bs guvf read_only: "ernq-bayl" action: "Npgvba" spell: "Fcryy" action_name: "anzr" action_cooldown: "Gnxrf" action_specific_cooldown: "Pbbyqbja" action_damage: "Qnzntr" action_range: "Enatr" action_radius: "Enqvhf" action_duration: "Qhengvba" example: "Rknzcyr" ex: "rk" # Nooerivngvba bs "rknzcyr" current_value: "Pheerag Inyhr" default_value: "Qrsnhyg inyhr" parameters: "Cnenzrgref" required_parameters: "Erdhverq Cnenzrgref" optional_parameters: "Bcgvbany Cnenzrgref" returns: "Ergheaf" granted_by: "Tenagrq ol" save_load: granularity_saved_games: "Fnirq" granularity_change_history: "Uvfgbel" options: general_options: "Trareny Bcgvbaf" # Purpx bhg gur Bcgvbaf gno va gur Tnzr Zrah juvyr cynlvat n yriry volume_label: "Ibyhzr" music_label: "Zhfvp" music_description: "Ghea onpxtebhaq zhfvp ba/bss." editor_config_title: "Rqvgbe Pbasvthengvba" editor_config_livecompletion_label: "Yvir Nhgbpbzcyrgvba" editor_config_livecompletion_description: "Qvfcynlf nhgbpbzcyrgr fhttrfgvbaf juvyr glcvat." editor_config_invisibles_label: "Fubj Vaivfvoyrf" editor_config_invisibles_description: "Qvfcynlf vaivfvoyrf fhpu nf fcnprf be gnof." editor_config_indentguides_label: "Fubj Vaqrag Thvqrf" editor_config_indentguides_description: "Qvfcynlf iregvpny yvarf gb frr vaqragngvba orggre." editor_config_behaviors_label: "Fzneg Orunivbef" editor_config_behaviors_description: "Nhgbpbzcyrgrf oenpxrgf, oenprf, naq dhbgrf." about: main_title:"Vs lbh jnag gb yrnea gb cebtenz, lbh arrq gb jevgr (n ybg bs) pbqr." main_description: "Ng PbqrPbzong, bhe wbo vf gb znxr fher lbh'er qbvat gung jvgu n fzvyr ba lbhe snpr." mission_link: "Zvffvba" team_link: "Grnz" story_link: "Fgbel" press_link: "Cerff" mission_title: "Bhe zvffvba: znxr cebtenzzvat npprffvoyr gb rirel fghqrag ba Rnegu." mission_description_1: "<fgebat>Cebtenzzvat vf zntvp</fgebat>. Vg'f gur novyvgl gb perngr guvatf sebz cher vzntvangvba. Jr fgnegrq PbqrPbzong gb tvir yrnearef gur srryvat bs jvmneqyl cbjre ng gurve svatregvcf ol hfvat <fgebat>glcrq pbqr</fgebat>." mission_description_2: "Nf vg gheaf bhg, gung ranoyrf gurz gb yrnea snfgre gbb. JNL snfgre. Vg'f yvxr univat n pbairefngvba vafgrnq bs ernqvat n znahny. Jr jnag gb oevat gung pbairefngvba gb rirel fpubby naq gb <fgebat>rirel fghqrag</fgebat>, orpnhfr rirelbar fubhyq unir gur punapr gb yrnea gur zntvp bs cebtenzzvat." team_title: "Zrrg gur PbqrPbzong grnz" team_values: "Jr inyhr bcra naq erfcrpgshy qvnybt, jurer gur orfg vqrn jvaf. Bhe qrpvfvbaf ner tebhaqrq va phfgbzre erfrnepu naq bhe cebprff vf sbphfrq ba qryvirevat gnatvoyr erfhygf sbe gurz. Rirelbar vf unaqf-ba, sebz bhe PRB gb bhe TvgUho pbagevohgbef, orpnhfr jr inyhr tebjgu naq yrneavat va bhe grnz." nick_title: "Pbsbhaqre, PRB" nick_blurb: "Zbgvingvba Theh" matt_title: "Pbsbhaqre, PGB" cat_title: "Tnzr Qrfvtare" cat_blurb: "Nveoraqre" scott_title: "Pbsbhaqre, Fbsgjner Ratvarre" scott_blurb: "Ernfbanoyr Bar" maka_title: "Phfgbzre Nqibpngr" maka_blurb: "Fgbelgryyre" rob_title: "Fbsgjner Ratvarre" rob_blurb: "Pbqrf guvatf naq fghss" josh_c_title: "Tnzr Qrfvtare" josh_c_blurb: "Qrfvtaf tnzrf" robin_title: "Cebqhpg Znantre" robin_blurb: "Fuvcf guvatf" josh_title: "Tnzr Qrfvtare" josh_blurb: "Sybbe Vf Ynin" nolan_title: "Greevgbel Znantre" lisa_title: "Fpubby Fcrpvnyvfg" lisa_blurb: "N tevggl bar" sean_title: "Greevgbel Znantre" liz_title: "Greevgbel Znantre" david_title: "Phfgbzre Fhpprff Znantre" jane_title: "Cnegarefuvc Znantre" retrostyle_title: "Vyyhfgengvba" retrostyle_blurb: "ErgebFglyr Tnzrf" jose_title: "Zhfvp" jose_blurb: "Gnxvat Bss" bryukh_title: "Tnzr Qrfvtare" bryukh_blurb: "Pbafgehpgf chmmyrf" community_title: "...naq bhe bcra-fbhepr pbzzhavgl" community_subtitle: "Bire 500 pbagevohgbef unir urycrq ohvyq PbqrPbzong, jvgu zber wbvavat rirel jrrx!" community_description_3: "PbqrPbzong vf n" community_description_link_2: "pbzzhavgl cebwrpg" community_description_1: "jvgu uhaqerqf bs cynlref ibyhagrrevat gb perngr yriryf, pbagevohgr gb bhe pbqr gb nqq srngherf, svk ohtf, cynlgrfg, naq rira genafyngr gur tnzr vagb 50 ynathntrf fb sne. Rzcyblrrf, pbagevohgbef naq gur fvgr tnva ol funevat vqrnf naq cbbyvat rssbeg, nf qbrf gur bcra fbhepr pbzzhavgl va trareny. Gur fvgr vf ohvyg ba ahzrebhf bcra fbhepr cebwrpgf, naq jr ner bcra fbheprq gb tvir onpx gb gur pbzzhavgl naq cebivqr pbqr-phevbhf cynlref n snzvyvne cebwrpg gb rkcyber naq rkcrevzrag jvgu. Nalbar pna wbva gur PbqrPbzong pbzzhavgl! Purpx bhg bhe" community_description_link: "pbagevohgr cntr" community_description_2: "sbe zber vasb." number_contributors: "Bire 450 pbagevohgbef unir yrag gurve fhccbeg naq gvzr gb guvf cebwrpg." story_title: "Bhe fgbel fb sne" story_subtitle: "Fvapr 2013, PbqrPbzong unf tebja sebz n zrer frg bs fxrgpurf gb n yvivat, guevivat tnzr." story_statistic_1a: "5,000,000+" story_statistic_1b: "gbgny cynlref" story_statistic_1c: "unir fgnegrq gurve cebtenzzvat wbhearl guebhtu PbqrPbzong" story_statistic_2a: "Jr’ir orra genafyngrq vagb bire 50 ynathntrf — bhe cynlref unvy sebz" story_statistic_2b: "200+ pbhagevrf" story_statistic_3a: "Gbtrgure, gurl unir jevggra" story_statistic_3b: "1 ovyyvba yvarf bs pbqr naq pbhagvat" story_statistic_3c: "npebff znal qvssrerag cebtenzzvat ynathntrf" story_long_way_1: "Gubhtu jr'ir pbzr n ybat jnl..." story_sketch_caption: "Avpx'f irel svefg fxrgpu qrcvpgvat n cebtenzzvat tnzr va npgvba." story_long_way_2: "jr fgvyy unir zhpu gb qb orsber jr pbzcyrgr bhe dhrfg, fb..." jobs_title: "Pbzr jbex jvgu hf naq uryc jevgr PbqrPbzong uvfgbel!" jobs_subtitle: """Qba'g frr n tbbq svg ohg vagrerfgrq va xrrcvat va gbhpu? Frr bhe "Perngr Lbhe Bja" yvfgvat.""" jobs_benefits: "Rzcyblrr Orarsvgf" jobs_benefit_4: "Hayvzvgrq inpngvba" jobs_benefit_5: "Cebsrffvbany qrirybczrag naq pbagvahvat rqhpngvba fhccbeg – serr obbxf naq tnzrf!" jobs_benefit_6: "Zrqvpny (tbyq), qragny, ivfvba, pbzzhgre" jobs_benefit_7: "Fvg-fgnaq qrfxf sbe nyy" jobs_benefit_9: "10-lrne bcgvba rkrepvfr jvaqbj" jobs_benefit_10: "Zngreavgl yrnir: 10 jrrxf cnvq, arkg 6 @ 55% fnynel" jobs_benefit_11: "Cngreavgl yrnir: 10 jrrxf cnvq" jobs_custom_title: "Perngr Lbhe Bja" jobs_custom_description: "Ner lbh cnffvbangr nobhg PbqrPbzong ohg qba'g frr n wbo yvfgrq gung zngpurf lbhe dhnyvsvpngvbaf? Jevgr hf naq fubj ubj lbh guvax lbh pna pbagevohgr gb bhe grnz. Jr'q ybir gb urne sebz lbh!" jobs_custom_contact_1: "Fraq hf n abgr ng" jobs_custom_contact_2: "vagebqhpvat lbhefrys naq jr zvtug trg va gbhpu va gur shgher!" contact_title: "Cerff & Pbagnpg" contact_subtitle: "Arrq zber vasbezngvba? Trg va gbhpu jvgu hf ng" screenshots_title: "Tnzr Fperrafubgf" screenshots_hint: "(pyvpx gb ivrj shyy fvmr)" downloads_title: "Qbjaybnq Nffrgf & Vasbezngvba" about_codecombat: "Nobhg PbqrPbzong" logo: "Ybtb" screenshots: "Fperrafubgf" character_art: "Punenpgre Neg" download_all: "Qbjaybnq Nyy" previous: "Cerivbhf" location_title: "Jr'er ybpngrq va qbjagbja FS:" teachers: licenses_needed: "Yvprafrf arrqrq" special_offer: special_offer: "Fcrpvny Bssre" project_based_title: "Cebwrpg-Onfrq Pbhefrf" project_based_description: "Jro naq Tnzr Qrirybczrag pbhefrf srngher funernoyr svany cebwrpgf." great_for_clubs_title: "Terng sbe pyhof naq ryrpgvirf" great_for_clubs_description: "Grnpuref pna chepunfr hc gb __znkDhnagvglFgnegreYvprafrf__ Fgnegre Yvprafrf." # low_price_title: "Whfg __fgnegreYvprafrCevpr__ cre fghqrag" low_price_description: "Fgnegre Yvprafrf ner npgvir sbe __fgnegreYvprafrYratguZbaguf__ zbaguf sebz chepunfr." three_great_courses: "Guerr terng pbhefrf vapyhqrq va gur Fgnegre Yvprafr:" license_limit_description: "Grnpuref pna chepunfr hc gb __znkDhnagvglFgnegreYvprafrf__ Fgnegre Yvprafrf. Lbh unir nyernql chepunfrq __dhnagvglNyernqlChepunfrq__. Vs lbh arrq zber, pbagnpg __fhccbegRznvy__. Fgnegre Yvprafrf ner inyvq sbe __fgnegreYvprafrYratguZbaguf__ zbaguf." student_starter_license: "Fghqrag Fgnegre Yvprafr" purchase_starter_licenses: "Chepunfr Fgnegre Yvprafrf" purchase_starter_licenses_to_grant: "Chepunfr Fgnegre Yvprafrf gb tenag npprff gb __fgnegreYvprafrPbhefrYvfg__" starter_licenses_can_be_used: "Fgnegre Yvprafrf pna or hfrq gb nffvta nqqvgvbany pbhefrf vzzrqvngryl nsgre chepunfr." pay_now: "Cnl Abj" we_accept_all_major_credit_cards: "Jr npprcg nyy znwbe perqvg pneqf." cs2_description: "ohvyqf ba gur sbhaqngvba sebz Vagebqhpgvba gb Pbzchgre Fpvrapr, qvivat vagb vs-fgngrzragf, shapgvbaf, riragf naq zber." wd1_description: "vagebqhprf gur onfvpf bs UGZY naq PFF juvyr grnpuvat fxvyyf arrqrq sbe fghqragf gb ohvyq gurve svefg jrocntr." gd1_description: "hfrf flagnk fghqragf ner nyernql snzvyvne jvgu gb fubj gurz ubj gb ohvyq naq funer gurve bja cynlnoyr tnzr yriryf." see_an_example_project: "frr na rknzcyr cebwrpg" get_started_today: "Trg fgnegrq gbqnl!" want_all_the_courses: "Jnag nyy gur pbhefrf? Erdhrfg vasbezngvba ba bhe Shyy Yvprafrf." compare_license_types: "Pbzcner Yvprafr Glcrf:" cs: "Pbzchgre Fpvrapr" wd: "Jro Qrirybczrag" wd1: "Jro Qrirybczrag 1" gd: "Tnzr Qrirybczrag" gd1: "Tnzr Qrirybczrag 1" maximum_students: "Znkvzhz # bs Fghqragf" unlimited: "Hayvzvgrq" priority_support: "Cevbevgl fhccbeg" yes: "Lrf" price_per_student: "__cevpr__ cre fghqrag" pricing: "Cevpvat" free: "Serr" purchase: "Chepunfr" courses_prefix: "Pbhefrf" courses_suffix: "" course_prefix: "Pbhefr" course_suffix: "" teachers_quote: subtitle: "Trg lbhe fghqragf fgnegrq va yrff guna na ubhe. Lbh'yy or noyr gb <fgebat>perngr n pynff, nqq fghqragf, naq zbavgbe gurve cebterff</fgebat> nf gurl yrnea pbzchgre fpvrapr." email_exists: "Hfre rkvfgf jvgu guvf rznvy." phone_number: "Cubar ahzore" phone_number_help: "Jurer pna jr ernpu lbh qhevat gur jbexqnl?" primary_role_label: "Lbhe Cevznel Ebyr" role_default: "Fryrpg Ebyr" primary_role_default: "Fryrpg Cevznel Ebyr" purchaser_role_default: "Fryrpg Chepunfre Ebyr" tech_coordinator: "Grpuabybtl pbbeqvangbe" advisor: "Pheevphyhz Fcrpvnyvfg/Nqivfbe" principal: "Cevapvcny" superintendent: "Fhcrevagraqrag" parent: "Cnerag" purchaser_role_label: "Lbhe Chepunfre Ebyr" influence_advocate: "Vasyhrapr/Nqibpngr" evaluate_recommend: "Rinyhngr/Erpbzzraq" approve_funds: "Nccebir Shaqf" no_purchaser_role: "Ab ebyr va chepunfr qrpvfvbaf" district_label: "Qvfgevpg" district_name: "Qvfgevpg Anzr" district_na: "Ragre A/N vs abg nccyvpnoyr" organization_label: "Fpubby" school_name: "Fpubby Anzr" city: "Pvgl" state: "Fgngr" country: "Pbhagel" num_students_help: "Ubj znal fghqragf jvyy hfr PbqrPbzong?" num_students_default: "Fryrpg Enatr" education_level_label: "Rqhpngvba Yriry bs Fghqragf" education_level_help: "Pubbfr nf znal nf nccyl." elementary_school: "Ryrzragnel Fpubby" high_school: "Uvtu Fpubby" please_explain: "(cyrnfr rkcynva)" middle_school: "Zvqqyr Fpubby" college_plus: "Pbyyrtr be uvture" referrer: "Ubj qvq lbh urne nobhg hf?" referrer_help: "Sbe rknzcyr: sebz nabgure grnpure, n pbasrerapr, lbhe fghqragf, Pbqr.bet, rgp." referrer_default: "Fryrpg Bar" referrer_hoc: "Pbqr.bet/Ubhe bs Pbqr" referrer_teacher: "N grnpure" referrer_admin: "Na nqzvavfgengbe" referrer_student: "N fghqrag" referrer_pd: "Cebsrffvbany genvavatf/jbexfubcf" referrer_web: "Tbbtyr" referrer_other: "Bgure" anything_else: "Jung xvaq bs pynff qb lbh nagvpvcngr hfvat PbqrPbzong sbe?" thanks_header: "Erdhrfg Erprvirq!" thanks_sub_header: "Gunaxf sbe rkcerffvat vagrerfg va PbqrPbzong sbe lbhe fpubby." thanks_p: "Jr'yy or va gbhpu fbba! Vs lbh arrq gb trg va pbagnpg, lbh pna ernpu hf ng:" back_to_classes: "Onpx gb Pynffrf" finish_signup: "Svavfu perngvat lbhe grnpure nppbhag:" finish_signup_p: "Perngr na nppbhag gb frg hc n pynff, nqq lbhe fghqragf, naq zbavgbe gurve cebterff nf gurl yrnea pbzchgre fpvrapr." signup_with: "Fvta hc jvgu:" connect_with: "Pbaarpg jvgu:" conversion_warning: "JNEAVAT: Lbhe pheerag nppbhag vf n <rz>Fghqrag Nppbhag</rz>. Bapr lbh fhozvg guvf sbez, lbhe nppbhag jvyy or hcqngrq gb n Grnpure Nppbhag." learn_more_modal: "Grnpure nppbhagf ba PbqrPbzong unir gur novyvgl gb zbavgbe fghqrag cebterff, nffvta yvprafrf naq znantr pynffebbzf. Grnpure nppbhagf pnaabg or n cneg bs n pynffebbz - vs lbh ner pheeragyl raebyyrq va n pynff hfvat guvf nppbhag, lbh jvyy ab ybatre or noyr gb npprff vg bapr lbh hcqngr gb n Grnpure Nppbhag." create_account: "Perngr n Grnpure Nppbhag" create_account_subtitle: "Trg npprff gb grnpure-bayl gbbyf sbe hfvat PbqrPbzong va gur pynffebbz. <fgebat>Frg hc n pynff</fgebat>, nqq lbhe fghqragf, naq <fgebat>zbavgbe gurve cebterff</fgebat>!" convert_account_title: "Hcqngr gb Grnpure Nppbhag" not: "Abg" versions: save_version_title: "Fnir Arj Irefvba" new_major_version: "Arj Znwbe Irefvba" submitting_patch: "Fhozvggvat Cngpu..." cla_prefix: "Gb fnir punatrf, svefg lbh zhfg nterr gb bhe" cla_url: "PYN" cla_suffix: "." cla_agree: "V NTERR" owner_approve: "Na bjare jvyy arrq gb nccebir vg orsber lbhe punatrf jvyy orpbzr ivfvoyr." contact: contact_us: "Pbagnpg PbqrPbzong" welcome: "Tbbq gb urne sebz lbh! Hfr guvf sbez gb fraq hf rznvy. " forum_prefix: "Sbe nalguvat choyvp, cyrnfr gel " forum_page: "bhe sbehz" forum_suffix: " vafgrnq." faq_prefix: "Gurer'f nyfb n" faq: "SND" subscribe_prefix: "Vs lbh arrq uryc svthevat bhg n yriry, cyrnfr" subscribe: "ohl n PbqrPbzong fhofpevcgvba" subscribe_suffix: "naq jr'yy or unccl gb uryc lbh jvgu lbhe pbqr." subscriber_support: "Fvapr lbh'er n PbqrPbzong fhofpevore, lbhe rznvy jvyy trg bhe cevbevgl fhccbeg." screenshot_included: "Fperrafubg vapyhqrq." where_reply: "Jurer fubhyq jr ercyl?" send: "Fraq Srrqonpx" account_settings: title: "Nppbhag Frggvatf" not_logged_in: "Ybt va be perngr na nppbhag gb punatr lbhe frggvatf." me_tab: "Zr" picture_tab: "Cvpgher" delete_account_tab: "Qryrgr Lbhe Nppbhag" wrong_email: "Jebat Rznvy" wrong_password: "Jebat Cnffjbeq" use_gravatar: "Punatr lbhe cebsvyr cvpgher ol fvtavat hc sbe Teningne" delete_this_account: "Qryrgr guvf nppbhag creznaragyl" reset_progress_tab: "Erfrg Nyy Cebterff" reset_your_progress: "Pyrne nyy lbhe cebterff naq fgneg bire" god_mode: "Tbq Zbqr" emails_tab: "Rznvyf" admin: "Nqzva" manage_subscription: "Pyvpx urer gb znantr lbhe fhofpevcgvba." new_password: "Arj Cnffjbeq" new_password_verify: "Irevsl" type_in_email: "Glcr va lbhe rznvy be hfreanzr gb pbasvez nppbhag qryrgvba." type_in_email_progress: "Glcr va lbhe rznvy gb pbasvez qryrgvat lbhe cebterff." type_in_password: "Nyfb, glcr va lbhe cnffjbeq." email_subscriptions: "Rznvy Fhofpevcgvbaf" email_subscriptions_none: "Ab Rznvy Fhofpevcgvbaf." email_announcements: "Naabhaprzragf" email_announcements_description: "Trg rznvyf ba gur yngrfg arjf naq qrirybczragf ng PbqrPbzong." email_notifications: "Abgvsvpngvbaf" email_notifications_summary: "Pbagebyf sbe crefbanyvmrq, nhgbzngvp rznvy abgvsvpngvbaf eryngrq gb lbhe PbqrPbzong npgvivgl." email_any_notes: "Nal Abgvsvpngvbaf" email_any_notes_description: "Qvfnoyr gb fgbc nyy npgvivgl abgvsvpngvba rznvyf." email_news: "Arjf" email_recruit_notes: "Wbo Bccbeghavgvrf" email_recruit_notes_description: "Vs lbh cynl ernyyl jryy, jr znl pbagnpg lbh nobhg trggvat lbh n (orggre) wbo." contributor_emails: "Pbagevohgbe Pynff Rznvyf" contribute_prefix: "Jr'er ybbxvat sbe crbcyr gb wbva bhe cnegl! Purpx bhg gur " contribute_page: "pbagevohgr cntr" contribute_suffix: " gb svaq bhg zber." email_toggle: "Gbttyr Nyy" error_saving: "Reebe Fnivat" saved: "Punatrf Fnirq" password_mismatch: "Cnffjbeq qbrf abg zngpu." password_repeat: "Cyrnfr ercrng lbhe cnffjbeq." keyboard_shortcuts: keyboard_shortcuts: "Xrlobneq Fubegphgf" space: "Fcnpr" enter: "Ragre" press_enter: "cerff ragre" escape: "Rfpncr" shift: "Fuvsg" run_code: "Eha pheerag pbqr." run_real_time: "Eha va erny gvzr." continue_script: "Pbagvahr cnfg pheerag fpevcg." skip_scripts: "Fxvc cnfg nyy fxvccnoyr fpevcgf." toggle_playback: "Gbttyr cynl/cnhfr." scrub_playback: "Fpeho onpx naq sbejneq guebhtu gvzr." single_scrub_playback: "Fpeho onpx naq sbejneq guebhtu gvzr ol n fvatyr senzr." scrub_execution: "Fpeho guebhtu pheerag fcryy rkrphgvba." toggle_debug: "Gbttyr qroht qvfcynl." toggle_grid: "Gbttyr tevq bireynl." toggle_pathfinding: "Gbttyr cngusvaqvat bireynl." beautify: "Ornhgvsl lbhe pbqr ol fgnaqneqvmvat vgf sbeznggvat." maximize_editor: "Znkvzvmr/zvavzvmr pbqr rqvgbe." community: main_title: "PbqrPbzong Pbzzhavgl" introduction: "Purpx bhg gur jnlf lbh pna trg vaibyirq orybj naq qrpvqr jung fbhaqf gur zbfg sha. Jr ybbx sbejneq gb jbexvat jvgu lbh!" level_editor_prefix: "Hfr gur PbqrPbzong" level_editor_suffix: "gb perngr naq rqvg yriryf. Hfref unir perngrq yriryf sbe gurve pynffrf, sevraqf, unpxngubaf, fghqragf, naq fvoyvatf. Vs perngr n arj yriry fbhaqf vagvzvqngvat lbh pna fgneg ol sbexvat bar bs bhef!" thang_editor_prefix: "Jr pnyy havgf jvguva gur tnzr 'gunatf'. Hfr gur" thang_editor_suffix: "gb zbqvsl gur PbqrPbzong fbhepr negjbex. Nyybj havgf gb guebj cebwrpgvyrf, nygre gur qverpgvba bs na navzngvba, punatr n havg'f uvg cbvagf, be hcybnq lbhe bja irpgbe fcevgrf." article_editor_prefix: "Frr n zvfgnxr va fbzr bs bhe qbpf? Jnag gb znxr fbzr vafgehpgvbaf sbe lbhe bja perngvbaf? Purpx bhg gur" article_editor_suffix: "naq uryc PbqrPbzong cynlref trg gur zbfg bhg bs gurve cynlgvzr." find_us: "Svaq hf ba gurfr fvgrf" social_github: "Purpx bhg nyy bhe pbqr ba TvgUho" social_blog: "Ernq gur PbqrPbzong oybt ba Frgg" social_discource: "Wbva gur qvfphffvba ba bhe Qvfpbhefr sbehz" social_facebook: "Yvxr PbqrPbzong ba Snprobbx" social_twitter: "Sbyybj PbqrPbzong ba Gjvggre" social_gplus: "Wbva PbqrPbzong ba Tbbtyr+" social_slack: "Pung jvgu hf va gur choyvp PbqrPbzong Fynpx punaary" contribute_to_the_project: "Pbagevohgr gb gur cebwrpg" clans: clan: "Pyna" clans: "Pynaf" new_name: "Arj pyna anzr" new_description: "Arj pyna qrfpevcgvba" make_private: "Znxr pyna cevingr" subs_only: "fhofpevoref bayl" create_clan: "Perngr Arj Pyna" private_preview: "Cerivrj" private_clans: "Cevingr Pynaf" public_clans: "Choyvp Pynaf" my_clans: "Zl Pynaf" clan_name: "Pyna Anzr" name: "Anzr" chieftain: "Puvrsgnva" edit_clan_name: "Rqvg Pyna Anzr" edit_clan_description: "Rqvg Pyna Qrfpevcgvba" edit_name: "rqvg anzr" edit_description: "rqvg qrfpevcgvba" private: "(cevingr)" summary: "Fhzznel" average_level: "Nirentr Yriry" average_achievements: "Nirentr Npuvrirzragf" delete_clan: "Qryrgr Pyna" leave_clan: "Yrnir Pyna" join_clan: "Wbva Pyna" invite_1: "Vaivgr:" invite_2: "*Vaivgr cynlref gb guvf Pyna ol fraqvat gurz guvf yvax." members: "Zrzoref" progress: "Cebterff" not_started_1: "abg fgnegrq" started_1: "fgnegrq" complete_1: "pbzcyrgr" exp_levels: "Rkcnaq yriryf" rem_hero: "Erzbir Ureb" status: "Fgnghf" complete_2: "Pbzcyrgr" started_2: "Fgnegrq" not_started_2: "Abg Fgnegrq" view_solution: "Pyvpx gb ivrj fbyhgvba." view_attempt: "Pyvpx gb ivrj nggrzcg." latest_achievement: "Yngrfg Npuvrirzrag" playtime: "Cynlgvzr" last_played: "Ynfg cynlrq" leagues_explanation: "Cynl va n yrnthr ntnvafg bgure pyna zrzoref va gurfr zhygvcynlre neran vafgnaprf." track_concepts1: "Genpx pbaprcgf" track_concepts2a: "yrnearq ol rnpu fghqrag" track_concepts2b: "yrnearq ol rnpu zrzore" track_concepts3a: "Genpx yriryf pbzcyrgrq sbe rnpu fghqrag" track_concepts3b: "Genpx yriryf pbzcyrgrq sbe rnpu zrzore" track_concepts4a: "Frr lbhe fghqragf'" track_concepts4b: "Frr lbhe zrzoref'" track_concepts5: "fbyhgvbaf" track_concepts6a: "Fbeg fghqragf ol anzr be cebterff" track_concepts6b: "Fbeg zrzoref ol anzr be cebterff" track_concepts7: "Erdhverf vaivgngvba" track_concepts8: "gb wbva" private_require_sub: "Cevingr pynaf erdhver n fhofpevcgvba gb perngr be wbva." courses: create_new_class: "Perngr Arj Pynff" unnamed_class: "Haanzrq Pynff" edit_settings1: "Rqvg Pynff Frggvatf" add_students: "Nqq Fghqragf" stats: "Fgngvfgvpf" student_email_invite_blurb: "Lbhe fghqragf pna nyfb hfr pynff pbqr <fgebat>__pynffPbqr__</fgebat> jura perngvat n Fghqrag Nppbhag, ab rznvy erdhverq." total_students: "Gbgny fghqragf:" average_time: "Nirentr yriry cynl gvzr:" total_time: "Gbgny cynl gvzr:" average_levels: "Nirentr yriryf pbzcyrgrq:" total_levels: "Gbgny yriryf pbzcyrgrq:" students: "Fghqragf" concepts: "Pbaprcgf" play_time: "Cynl gvzr:" completed: "Pbzcyrgrq:" enter_emails: "Frcnengr rnpu rznvy nqqerff ol n yvar oernx be pbzznf" send_invites: "Vaivgr Fghqragf" number_programming_students: "Ahzore bs Cebtenzzvat Fghqragf" number_total_students: "Gbgny Fghqragf va Fpubby/Qvfgevpg" enroll: "Raebyy" enroll_paid: "Raebyy Fghqragf va Cnvq Pbhefrf" get_enrollments: "Trg Zber Yvprafrf" change_language: "Punatr Pbhefr Ynathntr" keep_using: "Xrrc Hfvat" switch_to: "Fjvgpu Gb" greetings: "Terrgvatf!" back_classrooms: "Onpx gb zl pynffebbzf" back_classroom: "Onpx gb pynffebbz" back_courses: "Onpx gb zl pbhefrf" edit_details: "Rqvg pynff qrgnvyf" purchase_enrollments: "Chepunfr Fghqrag Yvprafrf" remove_student: "erzbir fghqrag" assign: "Nffvta" to_assign: "gb nffvta cnvq pbhefrf." student: "Fghqrag" teacher: "Grnpure" arena: "Neran" available_levels: "Ninvynoyr Yriryf" started: "fgnegrq" complete: "pbzcyrgr" practice: "cenpgvpr" required: "erdhverq" welcome_to_courses: "Nqiragheref, jrypbzr gb Pbhefrf!" ready_to_play: "Ernql gb cynl?" start_new_game: "Fgneg Arj Tnzr" play_now_learn_header: "Cynl abj gb yrnea" play_now_learn_1: "onfvp flagnk gb pbageby lbhe punenpgre" play_now_learn_2: "juvyr ybbcf gb fbyir crfxl chmmyrf" play_now_learn_3: "fgevatf & inevnoyrf gb phfgbzvmr npgvbaf" play_now_learn_4: "ubj gb qrsrng na bter (vzcbegnag yvsr fxvyyf!)" welcome_to_page: "Zl Fghqrag Qnfuobneq" my_classes: "Pheerag Pynffrf" class_added: "Pynff fhpprffshyyl nqqrq!" view_levels: "ivrj nyy yriryf va pbhefr" view_project_gallery: "ivrj zl pynffzngrf' cebwrpgf" join_class: "Wbva N Pynff" join_class_2: "Wbva pynff" ask_teacher_for_code: "Nfx lbhe grnpure vs lbh unir n PbqrPbzong pynff pbqr! Vs fb, ragre vg orybj:" enter_c_code: "<Ragre Pynff Pbqr>" join: "Wbva" joining: "Wbvavat pynff" course_complete: "Pbhefr Pbzcyrgr" play_arena: "Cynl Neran" view_project: "Ivrj Cebwrpg" start: "Fgneg" last_level: "Ynfg yriry cynlrq" not_you: "Abg lbh?" continue_playing: "Pbagvahr Cynlvat" option1_header: "Vaivgr Fghqragf ol Rznvy" remove_student1: "Erzbir Fghqrag" are_you_sure: "Ner lbh fher lbh jnag gb erzbir guvf fghqrag sebz guvf pynff?" remove_description1: "Fghqrag jvyy ybfr npprff gb guvf pynffebbz naq nffvtarq pynffrf. Cebterff naq tnzrcynl vf ABG ybfg, naq gur fghqrag pna or nqqrq onpx gb gur pynffebbz ng nal gvzr." remove_description2: "Gur npgvingrq cnvq yvprafr jvyy abg or erghearq." license_will_revoke: "Guvf fghqrag'f cnvq yvprafr jvyy or eribxrq naq znqr ninvynoyr gb nffvta gb nabgure fghqrag." keep_student: "Xrrc Fghqrag" removing_user: "Erzbivat hfre" subtitle: "Erivrj pbhefr bireivrjf naq yriryf" # Syng fglyr erqrfvta changelog: "Ivrj yngrfg punatrf gb pbhefr yriryf." select_language: "Fryrpg ynathntr" select_level: "Fryrpg yriry" play_level: "Cynl Yriry" concepts_covered: "Pbaprcgf pbirerq" view_guide_online: "Yriry Bireivrjf naq Fbyhgvbaf" grants_lifetime_access: "Tenagf npprff gb nyy Pbhefrf." enrollment_credits_available: "Yvprafrf Ninvynoyr:" language_select: "Fryrpg n ynathntr" # PynffebbzFrggvatfZbqny language_cannot_change: "Ynathntr pnaabg or punatrq bapr fghqragf wbva n pynff." avg_student_exp_label: "Nirentr Fghqrag Cebtenzzvat Rkcrevrapr" avg_student_exp_desc: "Guvf jvyy uryc hf haqrefgnaq ubj gb cnpr pbhefrf orggre." avg_student_exp_select: "Fryrpg gur orfg bcgvba" avg_student_exp_none: "Ab Rkcrevrapr - yvggyr gb ab rkcrevrapr" avg_student_exp_beginner: "Ortvaare - fbzr rkcbfher be oybpx-onfrq" avg_student_exp_intermediate: "Vagrezrqvngr - fbzr rkcrevrapr jvgu glcrq pbqr" avg_student_exp_advanced: "Nqinaprq - rkgrafvir rkcrevrapr jvgu glcrq pbqr" avg_student_exp_varied: "Inevrq Yriryf bs Rkcrevrapr" student_age_range_label: "Fghqrag Ntr Enatr" student_age_range_younger: "Lbhatre guna 6" student_age_range_older: "Byqre guna 18" student_age_range_to: "gb" create_class: "Perngr Pynff" class_name: "Pynff Anzr" teacher_account_restricted: "Lbhe nppbhag vf n grnpure nppbhag naq pnaabg npprff fghqrag pbagrag." account_restricted: "N fghqrag nppbhag vf erdhverq gb npprff guvf cntr." update_account_login_title: "Ybt va gb hcqngr lbhe nppbhag" update_account_title: "Lbhe nppbhag arrqf nggragvba!" update_account_blurb: "Orsber lbh pna npprff lbhe pynffrf, pubbfr ubj lbh jnag gb hfr guvf nppbhag." update_account_current_type: "Pheerag Nppbhag Glcr:" update_account_account_email: "Nppbhag Rznvy/Hfreanzr:" update_account_am_teacher: "V nz n grnpure" update_account_keep_access: "Xrrc npprff gb pynffrf V'ir perngrq" update_account_teachers_can: "Grnpure nppbhagf pna:" update_account_teachers_can1: "Perngr/znantr/nqq pynffrf" update_account_teachers_can2: "Nffvta/raebyy fghqragf va pbhefrf" update_account_teachers_can3: "Haybpx nyy pbhefr yriryf gb gel bhg" update_account_teachers_can4: "Npprff arj grnpure-bayl srngherf nf jr eryrnfr gurz" update_account_teachers_warning: "Jneavat: Lbh jvyy or erzbirq sebz nyy pynffrf gung lbh unir cerivbhfyl wbvarq naq jvyy abg or noyr gb cynl nf n fghqrag." update_account_remain_teacher: "Erznva n Grnpure" update_account_update_teacher: "Hcqngr gb Grnpure" update_account_am_student: "V nz n fghqrag" update_account_remove_access: "Erzbir npprff gb pynffrf V unir perngrq" update_account_students_can: "Fghqrag nppbhagf pna:" update_account_students_can1: "Wbva pynffrf" update_account_students_can2: "Cynl guebhtu pbhefrf nf n fghqrag naq genpx lbhe bja cebterff" update_account_students_can3: "Pbzcrgr ntnvafg pynffzngrf va neranf" update_account_students_can4: "Npprff arj fghqrag-bayl srngherf nf jr eryrnfr gurz" update_account_students_warning: "Jneavat: Lbh jvyy abg or noyr gb znantr nal pynffrf gung lbh unir cerivbhfyl perngrq be perngr arj pynffrf." unsubscribe_warning: "Jneavat: Lbh jvyy or hafhofpevorq sebz lbhe zbaguyl fhofpevcgvba." update_account_remain_student: "Erznva n Fghqrag" update_account_update_student: "Hcqngr gb Fghqrag" need_a_class_code: "Lbh'yy arrq n Pynff Pbqr sbe gur pynff lbh'er wbvavat:" update_account_not_sure: "Abg fher juvpu bar gb pubbfr? Rznvy" update_account_confirm_update_student: "Ner lbh fher lbh jnag gb hcqngr lbhe nppbhag gb n Fghqrag rkcrevrapr?" update_account_confirm_update_student2: "Lbh jvyy abg or noyr gb znantr nal pynffrf gung lbh unir cerivbhfyl perngrq be perngr arj pynffrf. Lbhe cerivbhfyl perngrq pynffrf jvyy or erzbirq sebz PbqrPbzong naq pnaabg or erfgberq." instructor: "Vafgehpgbe: " youve_been_invited_1: "Lbh'ir orra vaivgrq gb wbva " youve_been_invited_2: ", jurer lbh'yy yrnea " youve_been_invited_3: " jvgu lbhe pynffzngrf va PbqrPbzong." by_joining_1: "Ol wbvavat " by_joining_2: "jvyy or noyr gb uryc erfrg lbhe cnffjbeq vs lbh sbetrg be ybfr vg. Lbh pna nyfb irevsl lbhe rznvy nqqerff fb gung lbh pna erfrg gur cnffjbeq lbhefrys!" sent_verification: "Jr'ir frag n irevsvpngvba rznvy gb:" you_can_edit: "Lbh pna rqvg lbhe rznvy nqqerff va " account_settings: "Nppbhag Frggvatf" select_your_hero: "Fryrpg Lbhe Ureb" select_your_hero_description: "Lbh pna nyjnlf punatr lbhe ureb ol tbvat gb lbhe Pbhefrf cntr naq pyvpxvat \"Punatr Ureb\"" select_this_hero: "Fryrpg guvf Ureb" current_hero: "Pheerag Ureb:" current_hero_female: "Pheerag Ureb:" web_dev_language_transition: "Nyy pynffrf cebtenz va UGZY / WninFpevcg sbe guvf pbhefr. Pynffrf gung unir orra hfvat Clguba jvyy fgneg jvgu rkgen WninFpevcg vageb yriryf gb rnfr gur genafvgvba. Pynffrf gung ner nyernql hfvat WninFpevcg jvyy fxvc gur vageb yriryf." course_membership_required_to_play: "Lbh'yy arrq gb wbva n pbhefr gb cynl guvf yriry." license_required_to_play: "Nfx lbhe grnpure gb nffvta n yvprafr gb lbh fb lbh pna pbagvahr gb cynl PbqrPbzong!" update_old_classroom: "Arj fpubby lrne, arj yriryf!" update_old_classroom_detail: "Gb znxr fher lbh'er trggvat gur zbfg hc-gb-qngr yriryf, znxr fher lbh perngr n arj pynff sbe guvf frzrfgre ol pyvpxvat Perngr n Arj Pynff ba lbhe" teacher_dashboard: "grnpure qnfuobneq" update_old_classroom_detail_2: "naq tvivat fghqragf gur arj Pynff Pbqr gung nccrnef." view_assessments: "Ivrj Nffrffzragf" challenge: "Punyyratr:" challenge_level: "Punyyratr Yriry:" status: "Fgnghf:" assessments: "Nffrffzragf" challenges: "Punyyratrf" level_name: "Yriry Anzr:" keep_trying: "Xrrc Gelvat" start_challenge: "Fgneg Punyyratr" locked: "Ybpxrq" concepts_used: "Pbaprcgf Hfrq:" project_gallery: no_projects_published: "Or gur svefg gb choyvfu n cebwrpg va guvf pbhefr!" view_project: "Ivrj Cebwrpg" edit_project: "Rqvg Cebwrpg" teacher: assigning_course: "Nffvtavat pbhefr" back_to_top: "Onpx gb Gbc" click_student_code: "Pyvpx ba nal yriry gung gur fghqrag unf fgnegrq be pbzcyrgrq orybj gb ivrj gur pbqr gurl jebgr." code: "__anzr__'f Pbqr" course_not_started: "Fghqrag unf abg fgnegrq guvf pbhefr lrg." no_code_yet: "Fghqrag unf abg jevggra nal pbqr sbe guvf yriry lrg." open_ended_level: "Bcra-Raqrq Yriry" removing_course: "Erzbivat pbhefr" solution_arena_blurb: "Fghqragf ner rapbhentrq gb fbyir neran yriryf perngviryl. Gur fbyhgvba cebivqrq orybj zrrgf gur erdhverzragf bs gur neran yriry." solution_challenge_blurb: "Fghqragf ner rapbhentrq gb fbyir bcra-raqrq punyyratr yriryf perngviryl. Bar cbffvoyr fbyhgvba vf qvfcynlrq orybj." solution_project_blurb: "Fghqragf ner rapbhentrq gb ohvyq n perngvir cebwrpg va guvf yriry. Gur fbyhgvba cebivqrq orybj zrrgf gur erdhverzragf bs gur cebwrpg yriry." course_solution: "Pbhefr Fbyhgvba" level_overview_solutions: "Yriry Bireivrj naq Fbyhgvbaf" no_student_assigned: "Ab fghqragf unir orra nffvtarq guvf pbhefr." paren_new: "(arj)" student_code: "__anzr__'f Fghqrag Pbqr" # {punatr} teacher_dashboard: "Grnpure Qnfuobneq" # Anione my_classes: "Zl Pynffrf" courses: "Pbhefr Thvqrf" enrollments: "Fghqrag Yvprafrf" resources: "Erfbheprf" help: "Uryc" language: "Ynathntr" edit_class_settings: "rqvg pynff frggvatf" access_restricted: "Nppbhag Hcqngr Erdhverq" teacher_account_required: "N grnpure nppbhag vf erdhverq gb npprff guvf pbagrag." create_teacher_account: "Perngr Grnpure Nppbhag" what_is_a_teacher_account: "Jung'f n Grnpure Nppbhag?" teacher_account_explanation: "N PbqrPbzong Grnpure nppbhag nyybjf lbh gb frg hc pynffebbzf, zbavgbe fghqragf’ cebterff nf gurl jbex guebhtu pbhefrf, znantr yvprafrf naq npprff erfbheprf gb nvq va lbhe pheevphyhz-ohvyqvat." current_classes: "Pheerag Pynffrf" archived_classes: "Nepuvirq Pynffrf" archived_classes_blurb: "Pynffrf pna or nepuvirq sbe shgher ersrerapr. Hanepuvir n pynff gb ivrj vg va gur Pheerag Pynffrf yvfg ntnva." view_class: "ivrj pynff" archive_class: "nepuvir pynff" unarchive_class: "hanepuvir pynff" unarchive_this_class: "Hanepuvir guvf pynff" no_students_yet: "Guvf pynff unf ab fghqragf lrg." no_students_yet_view_class: "Ivrj pynff gb nqq fghqragf." try_refreshing: "(Lbh znl arrq gb erserfu gur cntr)" create_new_class: "Perngr n Arj Pynff" class_overview: "Pynff Bireivrj" # Ivrj Pynff cntr avg_playtime: "Nirentr yriry cynlgvzr" total_playtime: "Gbgny cynl gvzr" avg_completed: "Nirentr yriryf pbzcyrgrq" total_completed: "Gbgny yriryf pbzcyrgrq" created: "Perngrq" concepts_covered: "Pbaprcgf pbirerq" earliest_incomplete: "Rneyvrfg vapbzcyrgr yriry" latest_complete: "Yngrfg pbzcyrgrq yriry" enroll_student: "Raebyy fghqrag" apply_license: "Nccyl Yvprafr" revoke_license: "Eribxr Yvprafr" course_progress: "Pbhefr Cebterff" not_applicable: "A/N" edit: "rqvg" edit_2: "Rqvg" remove: "erzbir" latest_completed: "Yngrfg pbzcyrgrq:" sort_by: "Fbeg ol" progress: "Cebterff" concepts_used: "Pbaprcgf hfrq ol Fghqrag:" concept_checked: "Pbaprcg purpxrq:" completed: "Pbzcyrgrq" practice: "Cenpgvpr" started: "Fgnegrq" no_progress: "Ab cebterff" not_required: "Abg erdhverq" select_course: "Fryrpg pbhefr gb ivrj" progress_color_key: "Cebterff pbybe xrl:" level_in_progress: "Yriry va Cebterff" level_not_started: "Yriry Abg Fgnegrq" project_or_arena: "Cebwrpg be Neran" students_not_assigned: "Fghqragf jub unir abg orra nffvtarq {{pbhefrAnzr}}" course_overview: "Pbhefr Bireivrj" copy_class_code: "Pbcl Pynff Pbqr" class_code_blurb: "Fghqragf pna wbva lbhe pynff hfvat guvf Pynff Pbqr. Ab rznvy nqqerff vf erdhverq jura perngvat n Fghqrag nppbhag jvgu guvf Pynff Pbqr." copy_class_url: "Pbcl Pynff HEY" class_join_url_blurb: "Lbh pna nyfb cbfg guvf havdhr pynff HEY gb n funerq jrocntr." add_students_manually: "Vaivgr Fghqragf ol Rznvy" bulk_assign: "Fryrpg pbhefr" assigned_msg_1: "{{ahzoreNffvtarq}} fghqragf jrer nffvtarq {{pbhefrAnzr}}." assigned_msg_2: "{{ahzoreRaebyyrq}} yvprafrf jrer nccyvrq." assigned_msg_3: "Lbh abj unir {{erznvavatFcbgf}} ninvynoyr yvprafrf erznvavat." assign_course: "Nffvta Pbhefr" removed_course_msg: "{{ahzoreErzbirq}} fghqragf jrer erzbirq sebz {{pbhefrAnzr}}." remove_course: "Erzbir Pbhefr" not_assigned_modal_title: "Pbhefrf jrer abg nffvtarq" not_assigned_modal_starter_body_1: "Guvf pbhefr erdhverf n Fgnegre Yvprafr. Lbh qb abg unir rabhtu Fgnegre Yvprafrf ninvynoyr gb nffvta guvf pbhefr gb nyy __fryrpgrq__ fryrpgrq fghqragf." not_assigned_modal_starter_body_2: "Chepunfr Fgnegre Yvprafrf gb tenag npprff gb guvf pbhefr." not_assigned_modal_full_body_1: "Guvf pbhefr erdhverf n Shyy Yvprafr. Lbh qb abg unir rabhtu Shyy Yvprafrf ninvynoyr gb nffvta guvf pbhefr gb nyy __fryrpgrq__ fryrpgrq fghqragf." not_assigned_modal_full_body_2: "Lbh bayl unir __ahzShyyYvprafrfNinvynoyr__ Shyy Yvprafrf ninvynoyr (__ahzFghqragfJvgubhgShyyYvprafrf__ fghqragf qb abg pheeragyl unir n Shyy Yvprafr npgvir)." not_assigned_modal_full_body_3: "Cyrnfr fryrpg srjre fghqragf, be ernpu bhg gb __fhccbegRznvy__ sbe nffvfgnapr." assigned: "Nffvtarq" enroll_selected_students: "Raebyy Fryrpgrq Fghqragf" no_students_selected: "Ab fghqragf jrer fryrpgrq." show_students_from: "Fubj fghqragf sebz" # Raebyy fghqragf zbqny apply_licenses_to_the_following_students: "Nccyl Yvprafrf gb gur Sbyybjvat Fghqragf" students_have_licenses: "Gur sbyybjvat fghqragf nyernql unir yvprafrf nccyvrq:" all_students: "Nyy Fghqragf" apply_licenses: "Nccyl Yvprafrf" not_enough_enrollments: "Abg rabhtu yvprafrf ninvynoyr." enrollments_blurb: "Fghqragf ner erdhverq gb unir n yvprafr gb npprff nal pbagrag nsgre gur svefg pbhefr." how_to_apply_licenses: "Ubj gb Nccyl Yvprafrf" export_student_progress: "Rkcbeg Fghqrag Cebterff (PFI)" send_email_to: "Fraq Erpbire Cnffjbeq Rznvy gb:" email_sent: "Rznvy frag" send_recovery_email: "Fraq erpbirel rznvy" enter_new_password_below: "Ragre arj cnffjbeq orybj:" change_password: "Punatr Cnffjbeq" changed: "Punatrq" available_credits: "Ninvynoyr Yvprafrf" pending_credits: "Craqvat Yvprafrf" empty_credits: "Rkunhfgrq Yvprafrf" license_remaining: "yvprafr erznvavat" licenses_remaining: "yvprafrf erznvavat" one_license_used: "1 yvprafr unf orra hfrq" num_licenses_used: "__ahzYvprafrfHfrq__ yvprafrf unir orra hfrq" starter_licenses: "fgnegre yvprafrf" start_date: "fgneg qngr:" end_date: "raq qngr:" get_enrollments_blurb: " Jr'yy uryc lbh ohvyq n fbyhgvba gung zrrgf gur arrqf bs lbhe pynff, fpubby be qvfgevpg." how_to_apply_licenses_blurb_1: "Jura n grnpure nffvtaf n pbhefr gb n fghqrag sbe gur svefg gvzr, jr’yy nhgbzngvpnyyl nccyl n yvprafr. Hfr gur ohyx-nffvta qebcqbja va lbhe pynffebbz gb nffvta n pbhefr gb fryrpgrq fghqragf:" how_to_apply_licenses_blurb_2: "Pna V fgvyy nccyl n yvprafr jvgubhg nffvtavat n pbhefr?" how_to_apply_licenses_blurb_3: "Lrf — tb gb gur Yvprafr Fgnghf gno va lbhe pynffebbz naq pyvpx \"Nccyl Yvprafr\" gb nal fghqrag jub qbrf abg unir na npgvir yvprafr." request_sent: "Erdhrfg Frag!" assessments: "Nffrffzragf" license_status: "Yvprafr Fgnghf" status_expired: "Rkcverq ba {{qngr}}" status_not_enrolled: "Abg Raebyyrq" status_enrolled: "Rkcverf ba {{qngr}}" select_all: "Fryrpg Nyy" project: "Cebwrpg" project_gallery: "Cebwrpg Tnyyrel" view_project: "Ivrj Cebwrpg" unpublished: "(hachoyvfurq)" view_arena_ladder: "Ivrj Neran Ynqqre" resource_hub: "Erfbhepr Uho" pacing_guides: "Pynffebbz-va-n-Obk Cnpvat Thvqrf" pacing_guides_desc: "Yrnea ubj gb vapbecbengr nyy bs PbqrPbzong'f erfbheprf gb cyna lbhe fpubby lrne!" pacing_guides_elem: "Ryrzragnel Fpubby Cnpvat Thvqr" pacing_guides_middle: "Zvqqyr Fpubby Cnpvat Thvqr" pacing_guides_high: "Uvtu Fpubby Cnpvat Thvqr" getting_started: "Trggvat Fgnegrq" educator_faq: "Rqhpngbe SND" educator_faq_desc: "Serdhragyl nfxrq dhrfgvbaf nobhg hfvat PbqrPbzong va lbhe pynffebbz be fpubby." teacher_getting_started: "Grnpure Trggvat Fgnegrq Thvqr" teacher_getting_started_desc: "Arj gb PbqrPbzong? Qbjaybnq guvf Grnpure Trggvat Fgnegrq Thvqr gb frg hc lbhe nppbhag, perngr lbhe svefg pynff, naq vaivgr fghqragf gb gur svefg pbhefr." student_getting_started: "Fghqrag Dhvpx Fgneg Thvqr" student_getting_started_desc: "Lbh pna qvfgevohgr guvf thvqr gb lbhe fghqragf orsber fgnegvat PbqrPbzong fb gung gurl pna snzvyvnevmr gurzfryirf jvgu gur pbqr rqvgbe. Guvf thvqr pna or hfrq sbe obgu Clguba naq WninFpevcg pynffebbzf." cs1: "Vagebqhpgvba gb Pbzchgre Fpvrapr" cs2: "Pbzchgre Fpvrapr 2" cs3: "Pbzchgre Fpvrapr 3" cs4: "Pbzchgre Fpvrapr 4" cs5: "Pbzchgre Fpvrapr 5" cs1_syntax_python: "Pbhefr 1 Clguba Flagnk Thvqr" cs1_syntax_python_desc: "Purngfurrg jvgu ersreraprf gb pbzzba Clguba flagnk gung fghqragf jvyy yrnea va Vagebqhpgvba gb Pbzchgre Fpvrapr." cs1_syntax_javascript: "Pbhefr 1 WninFpevcg Flagnk Thvqr" cs1_syntax_javascript_desc: "Purngfurrg jvgu ersreraprf gb pbzzba WninFpevcg flagnk gung fghqragf jvyy yrnea va Vagebqhpgvba gb Pbzchgre Fpvrapr." coming_soon: "Nqqvgvbany thvqrf pbzvat fbba!" engineering_cycle_worksheet: "Ratvarrevat Plpyr Jbexfurrg" engineering_cycle_worksheet_desc: "Hfr guvf jbexfurrg gb grnpu fghqragf gur onfvpf bs gur ratvarrevat plpyr: Nffrff, Qrfvta, Vzcyrzrag naq Qroht. Ersre gb gur pbzcyrgrq rknzcyr jbexfurrg nf n thvqr." engineering_cycle_worksheet_link: "Ivrj rknzcyr" progress_journal: "Cebterff Wbheany" progress_journal_desc: "Rapbhentr fghqragf gb xrrc genpx bs gurve cebterff ivn n cebterff wbheany." cs1_curriculum: "Vagebqhpgvba gb Pbzchgre Fpvrapr - Pheevphyhz Thvqr" cs1_curriculum_desc: "Fpbcr naq frdhrapr, yrffba cynaf, npgvivgvrf naq zber sbe Pbhefr 1." arenas_curriculum: "Neran Yriryf - Grnpure Thvqr" arenas_curriculum_desc: "Vafgehpgvbaf ba ubj gb eha Jnxxn Znhy, Pebff Obarf naq Cbjre Crnx zhygvcynlre neranf jvgu lbhe pynff." cs2_curriculum: "Pbzchgre Fpvrapr 2 - Pheevphyhz Thvqr" cs2_curriculum_desc: "Fpbcr naq frdhrapr, yrffba cynaf, npgvivgvrf naq zber sbe Pbhefr 2." cs3_curriculum: "Pbzchgre Fpvrapr 3 - Pheevphyhz Thvqr" cs3_curriculum_desc: "Fpbcr naq frdhrapr, yrffba cynaf, npgvivgvrf naq zber sbe Pbhefr 3." cs4_curriculum: "Pbzchgre Fpvrapr 4 - Pheevphyhz Thvqr" cs4_curriculum_desc: "Fpbcr naq frdhrapr, yrffba cynaf, npgvivgvrf naq zber sbe Pbhefr 4." cs5_curriculum_js: "Pbzchgre Fpvrapr 5 - Pheevphyhz Thvqr (WninFpevcg)" cs5_curriculum_desc_js: "Fpbcr naq frdhrapr, yrffba cynaf, npgvivgvrf naq zber sbe Pbhefr 5 pynffrf hfvat WninFpevcg." cs5_curriculum_py: "Pbzchgre Fpvrapr 5 - Pheevphyhz Thvqr (Clguba)" cs5_curriculum_desc_py: "Fpbcr naq frdhrapr, yrffba cynaf, npgvivgvrf naq zber sbe Pbhefr 5 pynffrf hfvat Clguba." cs1_pairprogramming: "Cnve Cebtenzzvat Npgvivgl" cs1_pairprogramming_desc: "Vagebqhpr fghqragf gb n cnve cebtenzzvat rkrepvfr gung jvyy uryc gurz orpbzr orggre yvfgraref naq pbzzhavpngbef." gd1: "Tnzr Qrirybczrag 1" gd1_guide: "Tnzr Qrirybczrag 1 - Cebwrpg Thvqr" gd1_guide_desc: "Hfr guvf gb thvqr lbhe fghqragf nf gurl perngr gurve svefg funernoyr tnzr cebwrpg va 5 qnlf." gd1_rubric: "Tnzr Qrirybczrag 1 - Cebwrpg Ehoevp" gd1_rubric_desc: "Hfr guvf ehoevp gb nffrff fghqrag cebwrpgf ng gur raq bs Tnzr Qrirybczrag 1." gd2: "Tnzr Qrirybczrag 2" gd2_curriculum: "Tnzr Qrirybczrag 2 - Pheevphyhz Thvqr" gd2_curriculum_desc: "Yrffba cynaf sbe Tnzr Qrirybczrag 2." gd3: "Tnzr Qrirybczrag 3" gd3_curriculum: "Tnzr Qrirybczrag 3 - Pheevphyhz Thvqr" gd3_curriculum_desc: "Yrffba cynaf sbe Tnzr Qrirybczrag 3." wd1: "Jro Qrirybczrag 1" wd1_headlines: "Urnqyvarf & Urnqref Npgvivgl" wd1_headlines_example: "Ivrj fnzcyr fbyhgvba" wd1_headlines_desc: "Jul ner cnentencu naq urnqre gntf vzcbegnag? Hfr guvf npgvivgl gb fubj ubj jryy-pubfra urnqref znxr jro cntrf rnfvre gb ernq. Gurer ner znal pbeerpg fbyhgvbaf gb guvf!" wd1_html_syntax: "UGZY Flagnk Thvqr" wd1_html_syntax_desc: "Bar-cntr ersrerapr sbe gur UGZY fglyr fghqragf jvyy yrnea va Jro Qrirybczrag 1." wd1_css_syntax: "PFF Flagnk Thvqr" wd1_css_syntax_desc: "Bar-cntr ersrerapr sbe gur PFF naq Fglyr flagnk fghqragf jvyy yrnea va Jro Qrirybczrag 1." wd2: "Jro Qrirybczrag 2" wd2_jquery_syntax: "wDhrel Shapgvbaf Flagnk Thvqr" wd2_jquery_syntax_desc: "Bar-cntr ersrerapr sbe gur wDhrel shapgvbaf fghqragf jvyy yrnea va Jro Qrirybczrag 2." wd2_quizlet_worksheet: "Dhvmyrg Cynaavat Jbexfurrg" wd2_quizlet_worksheet_instructions: "Ivrj vafgehpgvbaf & rknzcyrf" wd2_quizlet_worksheet_desc: "Orsber lbhe fghqragf ohvyq gurve crefbanyvgl dhvm cebwrpg ng gur raq bs Jro Qrirybczrag 2, gurl fubhyq cyna bhg gurve dhvm dhrfgvbaf, bhgpbzrf naq erfcbafrf hfvat guvf jbexfurrg. Grnpuref pna qvfgevohgr gur vafgehpgvbaf naq rknzcyrf sbe fghqragf gb ersre gb." student_overview: "Bireivrj" student_details: "Fghqrag Qrgnvyf" student_name: "Fghqrag Anzr" no_name: "Ab anzr cebivqrq." no_username: "Ab hfreanzr cebivqrq." no_email: "Fghqrag unf ab rznvy nqqerff frg." student_profile: "Fghqrag Cebsvyr" playtime_detail: "Cynlgvzr Qrgnvy" student_completed: "Fghqrag Pbzcyrgrq" student_in_progress: "Fghqrag va Cebterff" class_average: "Pynff Nirentr" not_assigned: "unf abg orra nffvtarq gur sbyybjvat pbhefrf" playtime_axis: "Cynlgvzr va Frpbaqf" levels_axis: "Yriryf va" student_state: "Ubj vf" student_state_2: "qbvat?" student_good: "vf qbvat jryy va" student_good_detail: "Guvf fghqrag vf xrrcvat cnpr jvgu gur pynff." student_warn: "zvtug arrq fbzr uryc va" student_warn_detail: "Guvf fghqrag zvtug arrq fbzr uryc jvgu arj pbaprcgf gung unir orra vagebqhprq va guvf pbhefr." student_great: "vf qbvat terng va" student_great_detail: "Guvf fghqrag zvtug or n tbbq pnaqvqngr gb uryc bgure fghqragf jbexvat guebhtu guvf pbhefr." full_license: "Shyy Yvprafr" starter_license: "Fgnegre Yvprafr" trial: "Gevny" hoc_welcome: "Unccl Pbzchgre Fpvrapr Rqhpngvba Jrrx" hoc_intro: "Gurer ner guerr jnlf sbe lbhe pynff gb cnegvpvcngr va Ubhe bs Pbqr jvgu PbqrPbzong" hoc_self_led: "Frys-Yrq Tnzrcynl" hoc_self_led_desc: "Fghqragf pna cynl guebhtu gjb Ubhe bs Pbqr PbqrPbzong ghgbevnyf ba gurve bja" hoc_game_dev: "Tnzr Qrirybczrag" hoc_and: "naq" hoc_programming: "WninFpevcg/Clguba Cebtenzzvat" hoc_teacher_led: "Grnpure-Yrq Yrffbaf" hoc_teacher_led_desc1: "Qbjaybnq bhe" hoc_teacher_led_link: "Vagebqhpgvba gb Pbzchgre Fpvrapr yrffba cynaf" hoc_teacher_led_desc2: "gb vagebqhpr lbhe fghqragf gb cebtenzzvat pbaprcgf hfvat bssyvar npgvivgvrf" hoc_group: "Tebhc Tnzrcynl" hoc_group_desc_1: "Grnpuref pna hfr gur yrffbaf va pbawhapgvba jvgu bhe Vagebqhpgvba gb Pbzchgre Fpvrapr pbhefr gb genpx fghqrag cebterff. Frr bhe" hoc_group_link: "Trggvat Fgnegrq Thvqr" hoc_group_desc_2: "sbe zber qrgnvyf" hoc_additional_desc1: "Sbe nqqvgvbany PbqrPbzong erfbheprf naq npgvivgvrf, frr bhe" hoc_additional_desc2: "Dhrfgvbaf" hoc_additional_contact: "Trg va gbhpu" revoke_confirm: "Ner lbh fher lbh jnag gb eribxr n Shyy Yvprafr sebz {{fghqrag_anzr}}? Gur yvprafr jvyy orpbzr ninvynoyr gb nffvta gb nabgure fghqrag." revoking: "Eribxvat..." unused_licenses: "Lbh unir hahfrq Yvprafrf gung nyybj lbh gb nffvta fghqragf cnvq pbhefrf jura gurl'er ernql gb yrnea zber!" remember_new_courses: "Erzrzore gb nffvta arj pbhefrf!" more_info: "Zber Vasb" how_to_assign_courses: "Ubj gb Nffvta Pbhefrf" select_students: "Fryrpg Fghqragf" select_instructions: "Pyvpx gur purpxobk arkg gb rnpu fghqrag lbh jnag gb nffvta pbhefrf gb." choose_course: "Pubbfr Pbhefr" choose_instructions: "Fryrpg gur pbhefr sebz gur qebcqbja zrah lbh’q yvxr gb nffvta, gura pyvpx “Nffvta gb Fryrpgrq Fghqragf.”" push_projects: "Jr erpbzzraq nffvtavat Jro Qrirybczrag 1 be Tnzr Qrirybczrag 1 nsgre fghqragf unir svavfurq Vagebqhpgvba gb Pbzchgre Fpvrapr! Frr bhe {{erfbhepr_uho}} sbe zber qrgnvyf ba gubfr pbhefrf." teacher_quest: "Grnpure'f Dhrfg sbe Fhpprff" quests_complete: "Dhrfgf Pbzcyrgr" teacher_quest_create_classroom: "Perngr Pynffebbz" teacher_quest_add_students: "Nqq Fghqragf" teacher_quest_teach_methods: "Uryc lbhe fghqragf yrnea ubj gb `pnyy zrgubqf`." teacher_quest_teach_methods_step1: "Trg 75% bs ng yrnfg bar pynff guebhtu gur svefg yriry, __Qhatrbaf bs Xvgutneq__" teacher_quest_teach_methods_step2: "Cevag bhg gur [Fghqrag Dhvpx Fgneg Thvqr](uggc://svyrf.pbqrpbzong.pbz/qbpf/erfbheprf/FghqragDhvpxFgnegThvqr.cqs) va gur Erfbhepr Uho." teacher_quest_teach_strings: "Qba'g fgevat lbhe fghqragf nybat, grnpu gurz `fgevatf`." teacher_quest_teach_strings_step1: "Trg 75% bs ng yrnfg bar pynff guebhtu __Gehr Anzrf__" teacher_quest_teach_strings_step2: "Hfr gur Grnpure Yriry Fryrpgbe ba [Pbhefr Thvqrf](/grnpuref/pbhefrf) cntr gb cerivrj __Gehr Anzrf__." teacher_quest_teach_loops: "Xrrc lbhe fghqragf va gur ybbc nobhg `ybbcf`." teacher_quest_teach_loops_step1: "Trg 75% bs ng yrnfg bar pynff guebhtu __Sver Qnapvat__." teacher_quest_teach_loops_step2: "Hfr gur __Ybbcf Npgvivgl__ va gur [PF1 Pheevphyhz thvqr](/grnpuref/erfbheprf/pf1) gb ervasbepr guvf pbaprcg." teacher_quest_teach_variables: "Inel vg hc jvgu `inevnoyrf`." teacher_quest_teach_variables_step1: "Trg 75% bs ng yrnfg bar pynff guebhtu __Xabja Rarzl__." teacher_quest_teach_variables_step2: "Rapbhentr pbyynobengvba ol hfvat gur [Cnve Cebtenzzvat Npgvivgl](/grnpuref/erfbheprf/cnve-cebtenzzvat)." teacher_quest_kithgard_gates_100: "Rfpncr gur Xvgutneq Tngrf jvgu lbhe pynff." teacher_quest_kithgard_gates_100_step1: "Trg 75% bs ng yrnfg bar pynff guebhtu __Xvgutneq Tngrf__." teacher_quest_kithgard_gates_100_step2: "Thvqr fghqragf gb guvax guebhtu uneq ceboyrzf hfvat gur [Ratvarrevat Plpyr Jbexfurrg](uggc://svyrf.pbqrpbzong.pbz/qbpf/erfbheprf/RatvarrevatPlpyrJbexfurrg.cqs)." teacher_quest_wakka_maul_100: "Cercner gb qhry va Jnxxn Znhy." teacher_quest_wakka_maul_100_step1: "Trg 75% bs ng yrnfg bar pynff gb __Jnxxn Znhy__." teacher_quest_wakka_maul_100_step2: "Frr gur [Neran Thvqr](/grnpuref/erfbheprf/neranf) va gur [Erfbhepr Uho](/grnpuref/erfbheprf) sbe gvcf ba ubj gb eha n fhpprffshy neran qnl." teacher_quest_reach_gamedev: "Rkcyber arj jbeyqf!" teacher_quest_reach_gamedev_step1: "[Trg yvprafrf](/grnpuref/yvprafrf) fb gung lbhe fghqragf pna rkcyber arj jbeyqf, yvxr Tnzr Qrirybczrag naq Jro Qrirybczrag!" teacher_quest_done: "Jnag lbhe fghqragf gb yrnea rira zber pbqr? Trg va gbhpu jvgu bhe [fpubby fcrpvnyvfgf](znvygb:fpubbyf@pbqrpbzong.pbz) gbqnl!" teacher_quest_keep_going: "Xrrc tbvat! Urer'f jung lbh pna qb arkg:" teacher_quest_more: "Frr nyy dhrfgf" teacher_quest_less: "Frr srjre dhrfgf" refresh_to_update: "(erserfu gur cntr gb frr hcqngrf)" view_project_gallery: "Ivrj Cebwrpg Tnyyrel" office_hours: "Grnpure Jrovanef" office_hours_detail: "Yrnea ubj gb xrrc hc jvgu jvgu lbhe fghqragf nf gurl perngr tnzrf naq rzonex ba gurve pbqvat wbhearl! Pbzr naq nggraq bhe" office_hours_link: "grnpure jrovane" office_hours_detail_2: "frffvbaf." success: "Fhpprff" in_progress: "Va Cebterff" not_started: "Abg Fgnegrq" mid_course: "Zvq-Pbhefr" end_course: "Raq bs Pbhefr" none: "Abar qrgrpgrq lrg" explain_open_ended: "Abgr: Fghqragf ner rapbhentrq gb fbyir guvf yriry perngviryl — bar cbffvoyr fbyhgvba vf cebivqrq orybj." level_label: "Yriry:" time_played_label: "Gvzr Cynlrq:" share_licenses: share_licenses: "Funer Yvprafrf" shared_by: "Funerq Ol:" add_teacher_label: "Ragre rknpg grnpure rznvy:" add_teacher_button: "Nqq Grnpure" subheader: "Lbh pna znxr lbhe yvprafrf ninvynoyr gb bgure grnpuref va lbhe betnavmngvba. Rnpu yvprafr pna bayl or hfrq sbe bar fghqrag ng n gvzr." teacher_not_found: "Grnpure abg sbhaq. Cyrnfr znxr fher guvf grnpure unf nyernql perngrq n Grnpure Nppbhag." teacher_not_valid: "Guvf vf abg n inyvq Grnpure Nppbhag. Bayl grnpure nppbhagf pna funer yvprafrf." already_shared: "Lbh'ir nyernql funerq gurfr yvprafrf jvgu gung grnpure." teachers_using_these: "Grnpuref jub pna npprff gurfr yvprafrf:" footer: "Jura grnpuref eribxr yvprafrf sebz fghqragf, gur yvprafrf jvyy or erghearq gb gur funerq cbby sbe bgure grnpuref va guvf tebhc gb hfr." you: "(lbh)" one_license_used: "(1 yvprafr hfrq)" licenses_used: "(__yvprafrfHfrq__ yvprafrf hfrq)" more_info: "Zber vasb" sharing: game: "Tnzr" webpage: "Jrocntr" your_students_preview: "Lbhe fghqragf jvyy pyvpx urer gb frr gurve svavfurq cebwrpgf! Haninvynoyr va grnpure cerivrj." unavailable: "Yvax funevat abg ninvynoyr va grnpure cerivrj." share_game: "Funer Guvf Tnzr" share_web: "Funer Guvf Jrocntr" victory_share_prefix: "Funer guvf yvax gb vaivgr lbhe sevraqf & snzvyl gb" victory_share_prefix_short: "Vaivgr crbcyr gb" victory_share_game: "cynl lbhe tnzr yriry" victory_share_web: "ivrj lbhe jrocntr" victory_share_suffix: "." victory_course_share_prefix: "Guvf yvax jvyy yrg lbhe sevraqf & snzvyl" victory_course_share_game: "cynl gur tnzr" victory_course_share_web: "ivrj gur jrocntr" victory_course_share_suffix: "lbh whfg perngrq." copy_url: "Pbcl HEY" share_with_teacher_email: "Fraq gb lbhe grnpure" game_dev: creator: "Perngbe" web_dev: image_gallery_title: "Vzntr Tnyyrel" select_an_image: "Fryrpg na vzntr lbh jnag gb hfr" scroll_down_for_more_images: "(Fpebyy qbja sbe zber vzntrf)" copy_the_url: "Pbcl gur HEY orybj" copy_the_url_description: "Hfrshy vs lbh jnag gb ercynpr na rkvfgvat vzntr." copy_the_img_tag: "Pbcl gur <vzt> gnt" copy_the_img_tag_description: "Hfrshy vs lbh jnag gb vafreg n arj vzntr." copy_url: "Pbcl HEY" copy_img: "Pbcl <vzt>" how_to_copy_paste: "Ubj gb Pbcl/Cnfgr" copy: "Pbcl" paste: "Cnfgr" back_to_editing: "Onpx gb Rqvgvat" classes: archmage_title: "Nepuzntr" archmage_title_description: "(Pbqre)" archmage_summary: "Vs lbh ner n qrirybcre vagrerfgrq va pbqvat rqhpngvbany tnzrf, orpbzr na nepuzntr gb uryc hf ohvyq PbqrPbzong!" artisan_title: "Negvfna" artisan_title_description: "(Yriry Ohvyqre)" artisan_summary: "Ohvyq naq funer yriryf sbe lbh naq lbhe sevraqf gb cynl. Orpbzr na Negvfna gb yrnea gur neg bs grnpuvat bguref gb cebtenz." adventurer_title: "Nqiraghere" adventurer_title_description: "(Yriry Cynlgrfgre)" adventurer_summary: "Trg bhe arj yriryf (rira bhe fhofpevore pbagrag) sbe serr bar jrrx rneyl naq uryc hf jbex bhg ohtf orsber bhe choyvp eryrnfr." scribe_title: "Fpevor" scribe_title_description: "(Negvpyr Rqvgbe)" scribe_summary: "Tbbq pbqr arrqf tbbq qbphzragngvba. Jevgr, rqvg, naq vzcebir gur qbpf ernq ol zvyyvbaf bs cynlref npebff gur tybor." diplomat_title: "Qvcybzng" diplomat_title_description: "(Genafyngbe)" diplomat_summary: "PbqrPbzong vf ybpnyvmrq va 45+ ynathntrf ol bhe Qvcybzngf. Uryc hf bhg naq pbagevohgr genafyngvbaf." ambassador_title: "Nzonffnqbe" ambassador_title_description: "(Fhccbeg)" ambassador_summary: "Gnzr bhe sbehz hfref naq cebivqr qverpgvba sbe gubfr jvgu dhrfgvbaf. Bhe nzonffnqbef ercerfrag PbqrPbzong gb gur jbeyq." teacher_title: "Grnpure" editor: main_title: "PbqrPbzong Rqvgbef" article_title: "Negvpyr Rqvgbe" thang_title: "Gunat Rqvgbe" level_title: "Yriry Rqvgbe" course_title: "Pbhefr Rqvgbe" achievement_title: "Npuvrirzrag Rqvgbe" poll_title: "Cbyy Rqvgbe" back: "Onpx" revert: "Erireg" revert_models: "Erireg Zbqryf" pick_a_terrain: "Cvpx N Greenva" dungeon: "Qhatrba" indoor: "Vaqbbe" desert: "Qrfreg" grassy: "Tenffl" mountain: "Zbhagnva" glacier: "Tynpvre" small: "Fznyy" large: "Ynetr" fork_title: "Sbex Arj Irefvba" fork_creating: "Perngvat Sbex..." generate_terrain: "Trarengr Greenva" more: "Zber" wiki: "Jvxv" live_chat: "Yvir Pung" thang_main: "Znva" thang_spritesheets: "Fcevgrfurrgf" thang_colors: "Pbybef" level_some_options: "Fbzr Bcgvbaf?" level_tab_thangs: "Gunatf" level_tab_scripts: "Fpevcgf" level_tab_components: "Pbzcbaragf" level_tab_systems: "Flfgrzf" level_tab_docs: "Qbphzragngvba" level_tab_thangs_title: "Pheerag Gunatf" level_tab_thangs_all: "Nyy" level_tab_thangs_conditions: "Fgnegvat Pbaqvgvbaf" level_tab_thangs_add: "Nqq Gunatf" level_tab_thangs_search: "Frnepu gunatf" add_components: "Nqq Pbzcbaragf" component_configs: "Pbzcbarag Pbasvthengvbaf" config_thang: "Qbhoyr pyvpx gb pbasvther n gunat" delete: "Qryrgr" duplicate: "Qhcyvpngr" stop_duplicate: "Fgbc Qhcyvpngr" rotate: "Ebgngr" level_component_tab_title: "Pheerag Pbzcbaragf" level_component_btn_new: "Perngr Arj Pbzcbarag" level_systems_tab_title: "Pheerag Flfgrzf" level_systems_btn_new: "Perngr Arj Flfgrz" level_systems_btn_add: "Nqq Flfgrz" level_components_title: "Onpx gb Nyy Gunatf" level_components_type: "Glcr" level_component_edit_title: "Rqvg Pbzcbarag" level_component_config_schema: "Pbasvt Fpurzn" level_system_edit_title: "Rqvg Flfgrz" create_system_title: "Perngr Arj Flfgrz" new_component_title: "Perngr Arj Pbzcbarag" new_component_field_system: "Flfgrz" new_article_title: "Perngr n Arj Negvpyr" new_thang_title: "Perngr n Arj Gunat Glcr" new_level_title: "Perngr n Arj Yriry" new_article_title_login: "Ybt Va gb Perngr n Arj Negvpyr" new_thang_title_login: "Ybt Va gb Perngr n Arj Gunat Glcr" new_level_title_login: "Ybt Va gb Perngr n Arj Yriry" new_achievement_title: "Perngr n Arj Npuvrirzrag" new_achievement_title_login: "Ybt Va gb Perngr n Arj Npuvrirzrag" new_poll_title: "Perngr n Arj Cbyy" new_poll_title_login: "Ybt Va gb Perngr n Arj Cbyy" article_search_title: "Frnepu Negvpyrf Urer" thang_search_title: "Frnepu Gunat Glcrf Urer" level_search_title: "Frnepu Yriryf Urer" achievement_search_title: "Frnepu Npuvrirzragf" poll_search_title: "Frnepu Cbyyf" read_only_warning2: "Abgr: lbh pna'g fnir nal rqvgf urer, orpnhfr lbh'er abg ybttrq va." no_achievements: "Ab npuvrirzragf unir orra nqqrq sbe guvf yriry lrg." achievement_query_misc: "Xrl npuvrirzrag bss bs zvfpryynarn" achievement_query_goals: "Xrl npuvrirzrag bss bs yriry tbnyf" level_completion: "Yriry Pbzcyrgvba" pop_i18n: "Cbchyngr V18A" tasks: "Gnfxf" clear_storage: "Pyrne lbhe ybpny punatrf" add_system_title: "Nqq Flfgrzf gb Yriry" done_adding: "Qbar Nqqvat" article: edit_btn_preview: "Cerivrj" edit_article_title: "Rqvg Negvpyr" polls: priority: "Cevbevgl" contribute: page_title: "Pbagevohgvat" intro_blurb: "PbqrPbzong vf 100% bcra fbhepr! Uhaqerqf bs qrqvpngrq cynlref unir urycrq hf ohvyq gur tnzr vagb jung vg vf gbqnl. Wbva hf naq jevgr gur arkg puncgre va PbqrPbzong'f dhrfg gb grnpu gur jbeyq gb pbqr!" alert_account_message_intro: "Url gurer!" alert_account_message: "Gb fhofpevor sbe pynff rznvyf, lbh'yy arrq gb or ybttrq va svefg." archmage_introduction: "Bar bs gur orfg cnegf nobhg ohvyqvat tnzrf vf gurl flagurfvmr fb znal qvssrerag guvatf. Tencuvpf, fbhaq, erny-gvzr argjbexvat, fbpvny argjbexvat, naq bs pbhefr znal bs gur zber pbzzba nfcrpgf bs cebtenzzvat, sebz ybj-yriry qngnonfr znantrzrag, naq freire nqzvavfgengvba gb hfre snpvat qrfvta naq vagresnpr ohvyqvat. Gurer'f n ybg gb qb, naq vs lbh'er na rkcrevraprq cebtenzzre jvgu n unaxrevat gb ernyyl qvir vagb gur avggl-tevggl bs PbqrPbzong, guvf pynff zvtug or sbe lbh. Jr jbhyq ybir gb unir lbhe uryc ohvyqvat gur orfg cebtenzzvat tnzr rire." class_attributes: "Pynff Nggevohgrf" archmage_attribute_1_pref: "Xabjyrqtr va " archmage_attribute_1_suf: ", be n qrfver gb yrnea. Zbfg bs bhe pbqr vf va guvf ynathntr. Vs lbh'er n sna bs Ehol be Clguba, lbh'yy srry evtug ng ubzr. Vg'f WninFpevcg, ohg jvgu n avpre flagnk." archmage_attribute_2: "Fbzr rkcrevrapr va cebtenzzvat naq crefbany vavgvngvir. Jr'yy uryc lbh trg bevragrq, ohg jr pna'g fcraq zhpu gvzr genvavat lbh." how_to_join: "Ubj Gb Wbva" join_desc_1: "Nalbar pna uryc bhg! Whfg purpx bhg bhe " join_desc_2: "gb trg fgnegrq, naq purpx gur obk orybj gb znex lbhefrys nf n oenir Nepuzntr naq trg gur yngrfg arjf ol rznvy. Jnag gb pung nobhg jung gb qb be ubj gb trg zber qrrcyl vaibyirq? " join_desc_3: ", be svaq hf va bhe " join_desc_4: "naq jr'yy tb sebz gurer!" join_url_email: "Rznvy hf" join_url_slack: "choyvp Fynpx punaary" archmage_subscribe_desc: "Trg rznvyf ba arj pbqvat bccbeghavgvrf naq naabhaprzragf." artisan_introduction_pref: "Jr zhfg pbafgehpg nqqvgvbany yriryf! Crbcyr or pynzbevat sbe zber pbagrag, naq jr pna bayl ohvyq fb znal bhefryirf. Evtug abj lbhe jbexfgngvba vf yriry bar; bhe yriry rqvgbe vf oneryl hfnoyr rira ol vgf perngbef, fb or jnel. Vs lbh unir ivfvbaf bs pnzcnvtaf fcnaavat sbe-ybbcf gb" artisan_introduction_suf: ", gura guvf pynff zvtug or sbe lbh." artisan_attribute_1: "Nal rkcrevrapr va ohvyqvat pbagrag yvxr guvf jbhyq or avpr, fhpu nf hfvat Oyvmmneq'f yriry rqvgbef. Ohg abg erdhverq!" artisan_attribute_2: "N unaxrevat gb qb n jubyr ybg bs grfgvat naq vgrengvba. Gb znxr tbbq yriryf, lbh arrq gb gnxr vg gb bguref naq jngpu gurz cynl vg, naq or cercnerq gb svaq n ybg bs guvatf gb svk." artisan_attribute_3: "Sbe gur gvzr orvat, raqhenapr ra cne jvgu na Nqiraghere. Bhe Yriry Rqvgbe vf fhcre ceryvzvanel naq sehfgengvat gb hfr. Lbh unir orra jnearq!" artisan_join_desc: "Hfr gur Yriry Rqvgbe va gurfr fgrcf, tvir be gnxr:" artisan_join_step1: "Ernq gur qbphzragngvba." artisan_join_step2: "Perngr n arj yriry naq rkcyber rkvfgvat yriryf." artisan_join_step3: "Svaq hf va bhe choyvp Fynpx punaary sbe uryc." artisan_join_step4: "Cbfg lbhe yriryf ba gur sbehz sbe srrqonpx." artisan_subscribe_desc: "Trg rznvyf ba yriry rqvgbe hcqngrf naq naabhaprzragf." adventurer_introduction: "Yrg'f or pyrne nobhg lbhe ebyr: lbh ner gur gnax. Lbh'er tbvat gb gnxr urnil qnzntr. Jr arrq crbcyr gb gel bhg oenaq-arj yriryf naq uryc vqragvsl ubj gb znxr guvatf orggre. Gur cnva jvyy or rabezbhf; znxvat tbbq tnzrf vf n ybat cebprff naq ab bar trgf vg evtug gur svefg gvzr. Vs lbh pna raqher naq unir n uvtu pbafgvghgvba fpber, gura guvf pynff zvtug or sbe lbh." adventurer_attribute_1: "N guvefg sbe yrneavat. Lbh jnag gb yrnea ubj gb pbqr naq jr jnag gb grnpu lbh ubj gb pbqr. Lbh'yy cebonoyl or qbvat zbfg bs gur grnpuvat va guvf pnfr, gubhtu." adventurer_attribute_2: "Punevfzngvp. Or tragyr ohg negvphyngr nobhg jung arrqf vzcebivat, naq bssre fhttrfgvbaf ba ubj gb vzcebir." adventurer_join_pref: "Rvgure trg gbtrgure jvgu (be erpehvg!) na Negvfna naq jbex jvgu gurz, be purpx gur obk orybj gb erprvir rznvyf jura gurer ner arj yriryf gb grfg. Jr'yy nyfb or cbfgvat nobhg yriryf gb erivrj ba bhe argjbexf yvxr" adventurer_forum_url: "bhe sbehz" adventurer_join_suf: "fb vs lbh cersre gb or abgvsvrq gubfr jnlf, fvta hc gurer!" adventurer_subscribe_desc: "Trg rznvyf jura gurer ner arj yriryf gb grfg." scribe_introduction_pref: "PbqrPbzong vfa'g whfg tbvat gb or n ohapu bs yriryf. Vg jvyy nyfb vapyhqr n erfbhepr sbe xabjyrqtr, n jvxv bs cebtenzzvat pbaprcgf gung yriryf pna ubbx vagb. Gung jnl engure guna rnpu Negvfna univat gb qrfpevor va qrgnvy jung n pbzcnevfba bcrengbe vf, gurl pna fvzcyl yvax gurve yriry gb gur Negvpyr qrfpevovat gurz gung vf nyernql jevggra sbe gur cynlre'f rqvsvpngvba. Fbzrguvat nybat gur yvarf bs jung gur " scribe_introduction_url_mozilla: "Zbmvyyn Qrirybcre Argjbex" scribe_introduction_suf: " unf ohvyg. Vs lbhe vqrn bs sha vf negvphyngvat gur pbaprcgf bs cebtenzzvat va Znexqbja sbez, gura guvf pynff zvtug or sbe lbh." scribe_attribute_1: "Fxvyy va jbeqf vf cerggl zhpu nyy lbh arrq. Abg bayl tenzzne naq fcryyvat, ohg noyr gb pbairl pbzcyvpngrq vqrnf gb bguref." contact_us_url: "Pbagnpg Hf" scribe_join_description: "gryy hf n yvggyr nobhg lbhefrys, lbhe rkcrevrapr jvgu cebtenzzvat naq jung fbeg bs guvatf lbh'q yvxr gb jevgr nobhg. Jr'yy tb sebz gurer!" scribe_subscribe_desc: "Trg rznvyf nobhg negvpyr jevgvat naabhaprzragf." diplomat_introduction_pref: "Fb, vs gurer'f bar guvat jr yrnearq sebz gur " diplomat_launch_url: "ynhapu va Bpgbore" diplomat_introduction_suf: "vg'f gung gurer vf fvmrnoyr vagrerfg va PbqrPbzong va bgure pbhagevrf! Jr'er ohvyqvat n pbecf bs genafyngbef rntre gb ghea bar frg bs jbeqf vagb nabgure frg bs jbeqf gb trg PbqrPbzong nf npprffvoyr npebff gur jbeyq nf cbffvoyr. Vs lbh yvxr trggvat farnx crrxf ng hcpbzvat pbagrag naq trggvat gurfr yriryf gb lbhe sryybj angvbanyf NFNC, gura guvf pynff zvtug or sbe lbh." diplomat_attribute_1: "Syhrapl va Ratyvfu naq gur ynathntr lbh jbhyq yvxr gb genafyngr gb. Jura pbairlvat pbzcyvpngrq vqrnf, vg'f vzcbegnag gb unir n fgebat tenfc va obgu!" diplomat_i18n_page_prefix: "Lbh pna fgneg genafyngvat bhe yriryf ol tbvat gb bhe" diplomat_i18n_page: "genafyngvbaf cntr" diplomat_i18n_page_suffix: ", be bhe vagresnpr naq jrofvgr ba TvgUho." diplomat_join_pref_github: "Svaq lbhe ynathntr ybpnyr svyr " diplomat_github_url: "ba TvgUho" diplomat_join_suf_github: ", rqvg vg bayvar, naq fhozvg n chyy erdhrfg. Nyfb, purpx guvf obk orybj gb xrrc hc-gb-qngr ba arj vagreangvbanyvmngvba qrirybczragf!" diplomat_subscribe_desc: "Trg rznvyf nobhg v18a qrirybczragf naq yriryf gb genafyngr." ambassador_introduction: "Guvf vf n pbzzhavgl jr'er ohvyqvat, naq lbh ner gur pbaarpgvbaf. Jr'ir tbg sbehzf, rznvyf, naq fbpvny argjbexf jvgu ybgf bs crbcyr gb gnyx jvgu naq uryc trg npdhnvagrq jvgu gur tnzr naq yrnea sebz. Vs lbh jnag gb uryc crbcyr trg vaibyirq naq unir sha, naq trg n tbbq srry bs gur chyfr bs PbqrPbzong naq jurer jr'er tbvat, gura guvf pynff zvtug or sbe lbh." ambassador_attribute_1: "Pbzzhavpngvba fxvyyf. Or noyr gb vqragvsl gur ceboyrzf cynlref ner univat naq uryc gurz fbyir gurz. Nyfb, xrrc gur erfg bs hf vasbezrq nobhg jung cynlref ner fnlvat, jung gurl yvxr naq qba'g yvxr naq jnag zber bs!" ambassador_join_desc: "gryy hf n yvggyr nobhg lbhefrys, jung lbh'ir qbar naq jung lbh'q or vagrerfgrq va qbvat. Jr'yy tb sebz gurer!" ambassador_join_note_strong: "Abgr" ambassador_join_note_desc: "Bar bs bhe gbc cevbevgvrf vf gb ohvyq zhygvcynlre jurer cynlref univat qvssvphygl fbyivat yriryf pna fhzzba uvture yriry jvmneqf gb uryc gurz. Guvf jvyy or n terng jnl sbe nzonffnqbef gb qb gurve guvat. Jr'yy xrrc lbh cbfgrq!" ambassador_subscribe_desc: "Trg rznvyf ba fhccbeg hcqngrf naq zhygvcynlre qrirybczragf." teacher_subscribe_desc: "Trg rznvyf ba hcqngrf naq naabhaprzragf sbe grnpuref." changes_auto_save: "Punatrf ner fnirq nhgbzngvpnyyl jura lbh gbttyr purpxobkrf." diligent_scribes: "Bhe Qvyvtrag Fpevorf:" powerful_archmages: "Bhe Cbjreshy Nepuzntrf:" creative_artisans: "Bhe Perngvir Negvfnaf:" brave_adventurers: "Bhe Oenir Nqiragheref:" translating_diplomats: "Bhe Genafyngvat Qvcybzngf:" helpful_ambassadors: "Bhe Urycshy Nzonffnqbef:" ladder: my_matches: "Zl Zngpurf" simulate: "Fvzhyngr" simulation_explanation: "Ol fvzhyngvat tnzrf lbh pna trg lbhe tnzr enaxrq snfgre!" simulation_explanation_leagues: "Lbh jvyy znvayl uryc fvzhyngr tnzrf sbe nyyvrq cynlref va lbhe pynaf naq pbhefrf." simulate_games: "Fvzhyngr Tnzrf!" games_simulated_by: "Tnzrf fvzhyngrq ol lbh:" games_simulated_for: "Tnzrf fvzhyngrq sbe lbh:" games_in_queue: "Tnzrf pheeragyl va gur dhrhr:" games_simulated: "Tnzrf fvzhyngrq" games_played: "Tnzrf cynlrq" ratio: "Engvb" leaderboard: "Yrnqreobneq" battle_as: "Onggyr nf " summary_your: "Lbhe " summary_matches: "Zngpurf - " summary_wins: " Jvaf, " summary_losses: " Ybffrf" rank_no_code: "Ab Arj Pbqr gb Enax" rank_my_game: "Enax Zl Tnzr!" rank_submitting: "Fhozvggvat..." rank_submitted: "Fhozvggrq sbe Enaxvat" rank_failed: "Snvyrq gb Enax" rank_being_ranked: "Tnzr Orvat Enaxrq" rank_last_submitted: "fhozvggrq " help_simulate: "Uryc fvzhyngr tnzrf?" code_being_simulated: "Lbhe arj pbqr vf orvat fvzhyngrq ol bgure cynlref sbe enaxvat. Guvf jvyy erserfu nf arj zngpurf pbzr va." no_ranked_matches_pre: "Ab enaxrq zngpurf sbe gur " no_ranked_matches_post: " grnz! Cynl ntnvafg fbzr pbzcrgvgbef naq gura pbzr onpx urer gb trg lbhe tnzr enaxrq." choose_opponent: "Pubbfr na Bccbarag" select_your_language: "Fryrpg lbhe ynathntr!" tutorial_play: "Cynl Ghgbevny" tutorial_recommended: "Erpbzzraqrq vs lbh'ir arire cynlrq orsber" tutorial_skip: "Fxvc Ghgbevny" tutorial_not_sure: "Abg fher jung'f tbvat ba?" tutorial_play_first: "Cynl gur Ghgbevny svefg." simple_ai: "Fvzcyr PCH" warmup: "Jnezhc" friends_playing: "Sevraqf Cynlvat" log_in_for_friends: "Ybt va gb cynl jvgu lbhe sevraqf!" social_connect_blurb: "Pbaarpg naq cynl ntnvafg lbhe sevraqf!" invite_friends_to_battle: "Vaivgr lbhe sevraqf gb wbva lbh va onggyr!" fight: "Svtug!" watch_victory: "Jngpu lbhe ivpgbel" defeat_the: "Qrsrng gur" watch_battle: "Jngpu gur onggyr" tournament_started: ", fgnegrq" tournament_ends: "Gbheanzrag raqf" tournament_ended: "Gbheanzrag raqrq" tournament_rules: "Gbheanzrag Ehyrf" tournament_blurb: "Jevgr pbqr, pbyyrpg tbyq, ohvyq nezvrf, pehfu sbrf, jva cevmrf, naq hctenqr lbhe pnerre va bhe $40,000 Terrq gbheanzrag! Purpx bhg gur qrgnvyf" tournament_blurb_criss_cross: "Jva ovqf, pbafgehpg cnguf, bhgjvg bccbaragf, teno trzf, naq hctenqr lbhe pnerre va bhe Pevff-Pebff gbheanzrag! Purpx bhg gur qrgnvyf" tournament_blurb_zero_sum: "Hayrnfu lbhe pbqvat perngvivgl va obgu tbyq tngurevat naq onggyr gnpgvpf va guvf nycvar zveebe zngpu orgjrra erq fbeprere naq oyhr fbeprere. Gur gbheanzrag ortna ba Sevqnl, Znepu 27 naq jvyy eha hagvy Zbaqnl, Ncevy 6 ng 5CZ CQG. Pbzcrgr sbe sha naq tybel! Purpx bhg gur qrgnvyf" tournament_blurb_ace_of_coders: "Onggyr vg bhg va gur sebmra tynpvre va guvf qbzvangvba-fglyr zveebe zngpu! Gur gbheanzrag ortna ba Jrqarfqnl, Frcgrzore 16 naq jvyy eha hagvy Jrqarfqnl, Bpgbore 14 ng 5CZ CQG. Purpx bhg gur qrgnvyf" tournament_blurb_blog: "ba bhe oybt" rules: "Ehyrf" winners: "Jvaaref" league: "Yrnthr" red_ai: "Erq PCH" # "Erq NV Jvaf", ng raq bs zhygvcynlre zngpu cynlonpx blue_ai: "Oyhr PCH" wins: "Jvaf" # Ng raq bs zhygvcynlre zngpu cynlonpx humans: "Erq" # Ynqqre cntr qvfcynl grnz anzr ogres: "Oyhr" user: stats: "Fgngf" singleplayer_title: "Fvatyrcynlre Yriryf" multiplayer_title: "Zhygvcynlre Yriryf" achievements_title: "Npuvrirzragf" last_played: "Ynfg Cynlrq" status: "Fgnghf" status_completed: "Pbzcyrgrq" status_unfinished: "Hasvavfurq" no_singleplayer: "Ab Fvatyrcynlre tnzrf cynlrq lrg." no_multiplayer: "Ab Zhygvcynlre tnzrf cynlrq lrg." no_achievements: "Ab Npuvrirzragf rnearq lrg." favorite_prefix: "Snibevgr ynathntr vf " favorite_postfix: "." not_member_of_clans: "Abg n zrzore bs nal pynaf lrg." achievements: last_earned: "Ynfg Rnearq" amount_achieved: "Nzbhag" achievement: "Npuvrirzrag" current_xp_prefix: "" current_xp_postfix: " va gbgny" new_xp_prefix: "" new_xp_postfix: " rnearq" left_xp_prefix: "" left_xp_infix: " hagvy yriry " left_xp_postfix: "" account: payments: "Cnlzragf" prepaid_codes: "Cercnvq Pbqrf" purchased: "Chepunfrq" subscribe_for_gems: "Fhofpevor sbe trzf" subscription: "Fhofpevcgvba" invoices: "Vaibvprf" service_apple: "Nccyr" service_web: "Jro" paid_on: "Cnvq Ba" service: "Freivpr" price: "Cevpr" gems: "Trzf" active: "Npgvir" subscribed: "Fhofpevorq" unsubscribed: "Hafhofpevorq" active_until: "Npgvir Hagvy" cost: "Pbfg" next_payment: "Arkg Cnlzrag" card: "Pneq" status_unsubscribed_active: "Lbh'er abg fhofpevorq naq jba'g or ovyyrq, ohg lbhe nppbhag vf fgvyy npgvir sbe abj." status_unsubscribed: "Trg npprff gb arj yriryf, urebrf, vgrzf, naq obahf trzf jvgu n PbqrPbzong fhofpevcgvba!" not_yet_verified: "Abg lrg irevsvrq." resend_email: "Erfraq rznvy" email_sent: "Rznvy frag! Purpx lbhe vaobk." verifying_email: "Irevslvat lbhe rznvy nqqerff..." successfully_verified: "Lbh'ir fhpprffshyyl irevsvrq lbhe rznvy nqqerff!" verify_error: "Fbzrguvat jrag jebat jura irevslvat lbhe rznvy :(" account_invoices: amount: "Nzbhag va HF qbyynef" declined: "Lbhe pneq jnf qrpyvarq" invalid_amount: "Cyrnfr ragre n HF qbyyne nzbhag." not_logged_in: "Ybt va be perngr na nppbhag gb npprff vaibvprf." pay: "Cnl Vaibvpr" purchasing: "Chepunfvat..." retrying: "Freire reebe, ergelvat." success: "Fhpprffshyyl cnvq. Gunaxf!" account_prepaid: purchase_code: "Chepunfr n Fhofpevcgvba Pbqr" purchase_code1: "Fhofpevcgvba Pbqrf pna or erqrrzrq gb nqq cerzvhz fhofpevcgvba gvzr gb bar be zber nppbhagf sbe gur Ubzr irefvba bs PbqrPbzong." # purchase_code2: "Rnpu PbqrPbzong nppbhag pna bayl erqrrz n cnegvphyne Fhofpevcgvba Pbqr bapr." purchase_code3: "Fhofpevcgvba Pbqr zbaguf jvyy or nqqrq gb gur raq bs nal rkvfgvat fhofpevcgvba ba gur nppbhag." purchase_code4: "Fhofpevcgvba Pbqrf ner sbe nppbhagf cynlvat gur Ubzr irefvba bs PbqrPbzong, gurl pnaabg or hfrq va cynpr bs Fghqrag Yvprafrf sbe gur Pynffebbz irefvba." purchase_code5: "Sbe zber vasbezngvba ba Fghqrag Yvprafrf, ernpu bhg gb" users: "Hfref" months: "Zbaguf" purchase_total: "Gbgny" purchase_button: "Fhozvg Chepunfr" your_codes: "Lbhe Pbqrf" redeem_codes: "Erqrrz n Fhofpevcgvba Pbqr" prepaid_code: "Cercnvq Pbqr" lookup_code: "Ybbxhc cercnvq pbqr" apply_account: "Nccyl gb lbhe nppbhag" copy_link: "Lbh pna pbcl gur pbqr'f yvax naq fraq vg gb fbzrbar." quantity: "Dhnagvgl" redeemed: "Erqrrzrq" no_codes: "Ab pbqrf lrg!" you_can1: "Lbh pna" you_can2: "chepunfr n cercnvq pbqr" you_can3: "gung pna or nccyvrq gb lbhe bja nppbhag be tvira gb bguref." loading_error: could_not_load: "Reebe ybnqvat sebz freire" connection_failure: "Pbaarpgvba Snvyrq" connection_failure_desc: "Vg qbrfa’g ybbx yvxr lbh’er pbaarpgrq gb gur vagrearg! Purpx lbhe argjbex pbaarpgvba naq gura erybnq guvf cntr." login_required: "Ybtva Erdhverq" login_required_desc: "Lbh arrq gb or ybttrq va gb npprff guvf cntr." unauthorized: "Lbh arrq gb or fvtarq va. Qb lbh unir pbbxvrf qvfnoyrq?" forbidden: "Sbeovqqra" forbidden_desc: "Bu ab, gurer’f abguvat jr pna fubj lbh urer! Znxr fher lbh’er ybttrq vagb gur pbeerpg nppbhag, be ivfvg bar bs gur yvaxf orybj gb trg onpx gb cebtenzzvat!" not_found: "Abg Sbhaq" not_found_desc: "Uz, gurer’f abguvat urer. Ivfvg bar bs gur sbyybjvat yvaxf gb trg onpx gb cebtenzzvat!" not_allowed: "Zrgubq abg nyybjrq." timeout: "Freire Gvzrbhg" conflict: "Erfbhepr pbasyvpg." bad_input: "Onq vachg." server_error: "Freire reebe." unknown: "Haxabja Reebe" error: "REEBE" general_desc: "Fbzrguvat jrag jebat, naq vg’f cebonoyl bhe snhyg. Gel jnvgvat n ovg naq gura erserfuvat gur cntr, be ivfvg bar bs gur sbyybjvat yvaxf gb trg onpx gb cebtenzzvat!" resources: level: "Yriry" patch: "Cngpu" patches: "Cngpurf" system: "Flfgrz" systems: "Flfgrzf" component: "Pbzcbarag" components: "Pbzcbaragf" hero: "Ureb" campaigns: "Pnzcnvtaf" concepts: advanced_css_rules: "Nqinaprq PFF Ehyrf" advanced_css_selectors: "Nqinaprq PFF Fryrpgbef" advanced_html_attributes: "Nqinaprq UGZY Nggevohgrf" advanced_html_tags: "Nqinaprq UGZY Gntf" algorithm_average: "Nytbevguz Nirentr" algorithm_find_minmax: "Nytbevguz Svaq Zva/Znk" algorithm_search_binary: "Nytbevguz Frnepu Ovanel" algorithm_search_graph: "Nytbevguz Frnepu Tencu" algorithm_sort: "Nytbevguz Fbeg" algorithm_sum: "Nytbevguz Fhz" arguments: "Nethzragf" arithmetic: "Nevguzrgvp" array_2d: "2Q Neenl" array_index: "Neenl Vaqrkvat" array_iterating: "Vgrengvat Bire Neenlf" array_literals: "Neenl Yvgrenyf" array_searching: "Neenl Frnepuvat" array_sorting: "Neenl Fbegvat" arrays: "Neenlf" basic_css_rules: "Onfvp PFF ehyrf" basic_css_selectors: "Onfvp PFF fryrpgbef" basic_html_attributes: "Onfvp UGZY Nggevohgrf" basic_html_tags: "Onfvp UGZY Gntf" basic_syntax: "Onfvp Flagnk" binary: "Ovanel" boolean_and: "Obbyrna Naq" boolean_equality: "Obbyrna Rdhnyvgl" boolean_greater_less: "Obbyrna Terngre/Yrff" boolean_logic_shortcircuit: "Obbyrna Ybtvp Fubegpvephvgvat" boolean_not: "Obbyrna Abg" boolean_operator_precedence: "Obbyrna Bcrengbe Cerprqrapr" boolean_or: "Obbyrna Be" bootstrap: "Obbgfgenc" break_statements: "Oernx Fgngrzragf" classes: "Pynffrf" continue_statements: "Pbagvahr Fgngrzragf" dom_events: "QBZ Riragf" dynamic_styling: "Qlanzvp Fglyvat" event_concurrency: "Rirag Pbapheerapl" event_data: "Rirag Qngn" event_handlers: "Rirag Unaqyref" for_loops: "Sbe Ybbcf" for_loops_nested: "Arfgrq Sbe Ybbcf" for_loops_range: "Sbe Ybbcf Enatr" functions: "Shapgvbaf" game_ai: "Tnzr NV" game_goals: "Tnzr Tbnyf" game_spawn: "Tnzr Fcnja" graphics: "Tencuvpf" graphs: "Tencuf" heaps: "Urncf" if_else_statements: "Vs/Ryfr Fgngrzragf" if_statements: "Vs Fgngrzragf" if_statements_nested: "Arfgrq Vs Fgngrzagf" indexing: "Neenl Vaqrkrf" input_handling_flags: "Vachg Unaqyvat - Syntf" input_handling_keyboard: "Vachg Unaqyvat - Xrlobneq" input_handling_mouse: "Vachg Unaqyvat - Zbhfr" intermediate_css_rules: "Vagrezrqvngr PFF Ehyrf" intermediate_css_selectors: "Vagrezrqvngr PFF Fryrpgbef" intermediate_html_attributes: "Vagrezrqvngr UGZY Nggevohgrf" intermediate_html_tags: "Vagrezrqvngr UGZY Gntf" jquery: "wDhrel" jquery_animations: "wDhrel Navzngvbaf" jquery_filtering: "wDhrel Ryrzrag Svygrevat" jquery_selectors: "wDhrel Fryrpgbef" length: "Neenl Yratgu" math_geometry: "Trbzrgel" math_operations: "Zngu Yvoenel Bcrengvbaf" math_trigonometry: "Gevtbabzrgel" object_literals: "Bowrpg Yvgrenyf" parameters: "Cnenzrgref" property_access: "Npprffvat Cebcregvrf" property_assignment: "Nffvtavat Cebcregvrf" queues: "Qngn Fgehpgherf - Dhrhrf" reading_docs: "Ernqvat gur Qbpf" recursion: "Erphefvba" return_statements: "Erghea Fgngrzragf" stacks: "Qngn Fgehpgherf - Fgnpxf" strings: "Fgevatf" strings_concatenation: "Fgevat Pbapngrangvba" strings_substrings: "Fhofgevat" trees: "Qngn Fgehpgherf - Gerrf" variables: "Inevnoyrf" vectors: "Irpgbef" while_condition_loops: "Juvyr Ybbcf jvgu Pbaqvgvbanyf" while_loops_simple: "Juvyr Ybbcf" while_loops_nested: "Arfgrq Juvyr Ybbcf" xy_coordinates: "Pnegrfvna Pbbeqvangrf" advanced_strings: "Nqinaprq Fgevatf" # Erfg bs pbaprcgf ner qrcerpngrq algorithms: "Nytbevguzf" boolean_logic: "Obbyrna Ybtvp" basic_html: "Onfvp UGZY" basic_css: "Onfvp PFF" basic_web_scripting: "Onfvp Jro Fpevcgvat" intermediate_html: "Vagrezrqvngr UGZY" intermediate_css: "Vagrezrqvngr PFF" intermediate_web_scripting: "Vagrezrqvngr Jro Fpevcgvat" advanced_html: "Nqinaprq UGZY" advanced_css: "Nqinaprq PFF" advanced_web_scripting: "Nqinaprq Jro Fpevcgvat" input_handling: "Vachg Unaqyvat" while_loops: "Juvyr Ybbcf" place_game_objects: "Cynpr tnzr bowrpgf" construct_mazes: "Pbafgehpg znmrf" create_playable_game: "Perngr n cynlnoyr, funenoyr tnzr cebwrpg" alter_existing_web_pages: "Nygre rkvfgvat jro cntrf" create_sharable_web_page: "Perngr n funenoyr jro cntr" basic_input_handling: "Onfvp Vachg Unaqyvat" basic_game_ai: "Onfvp Tnzr NV" basic_javascript: "Onfvp WninFpevcg" basic_event_handling: "Onfvp Rirag Unaqyvat" create_sharable_interactive_web_page: "Perngr n funenoyr vagrenpgvir jro cntr" anonymous_teacher: notify_teacher: "Abgvsl Grnpure" create_teacher_account: "Perngr serr grnpure nppbhag" enter_student_name: "Lbhe anzr:" enter_teacher_email: "Lbhe grnpure'f rznvy:" teacher_email_placeholder: "grnpure.rznvy@rknzcyr.pbz" student_name_placeholder: "glcr lbhe anzr urer" teachers_section: "Grnpuref:" students_section: "Fghqragf:" teacher_notified: "Jr'ir abgvsvrq lbhe grnpure gung lbh jnag gb cynl zber PbqrPbzong va lbhe pynffebbz!" delta: added: "Nqqrq" modified: "Zbqvsvrq" not_modified: "Abg Zbqvsvrq" deleted: "Qryrgrq" moved_index: "Zbirq Vaqrk" text_diff: "Grkg Qvss" merge_conflict_with: "ZRETR PBASYVPG JVGU" no_changes: "Ab Punatrf" legal: page_title: "Yrtny" opensource_intro: "PbqrPbzong vf pbzcyrgryl bcra fbhepr." opensource_description_prefix: "Purpx bhg " github_url: "bhe TvgUho" opensource_description_center: "naq uryc bhg vs lbh yvxr! PbqrPbzong vf ohvyg ba qbmraf bs bcra fbhepr cebwrpgf, naq jr ybir gurz. Frr " archmage_wiki_url: "bhe Nepuzntr jvxv" opensource_description_suffix: "sbe n yvfg bs gur fbsgjner gung znxrf guvf tnzr cbffvoyr." practices_title: "Erfcrpgshy Orfg Cenpgvprf" practices_description: "Gurfr ner bhe cebzvfrf gb lbh, gur cynlre, va fyvtugyl yrff yrtnyrfr." privacy_title: "Cevinpl" privacy_description: "Jr jvyy abg fryy nal bs lbhe crefbany vasbezngvba." security_title: "Frphevgl" security_description: "Jr fgevir gb xrrc lbhe crefbany vasbezngvba fnsr. Nf na bcra fbhepr cebwrpg, bhe fvgr vf serryl bcra gb nalbar gb erivrj naq vzcebir bhe frphevgl flfgrzf." email_title: "Rznvy" email_description_prefix: "Jr jvyy abg vahaqngr lbh jvgu fcnz. Guebhtu" email_settings_url: "lbhe rznvy frggvatf" email_description_suffix: "be guebhtu yvaxf va gur rznvyf jr fraq, lbh pna punatr lbhe cersreraprf naq rnfvyl hafhofpevor ng nal gvzr." cost_title: "Pbfg" cost_description: "PbqrPbzong vf serr gb cynl sbe nyy bs vgf pber yriryf, jvgu n ${{cevpr}} HFQ/zb fhofpevcgvba sbe npprff gb rkgen yriry oenapurf naq {{trzf}} obahf trzf cre zbagu. Lbh pna pnapry jvgu n pyvpx, naq jr bssre n 100% zbarl-onpx thnenagrr." copyrights_title: "Pbclevtugf naq Yvprafrf" contributor_title: "Pbagevohgbe Yvprafr Nterrzrag" contributor_description_prefix: "Nyy pbagevohgvbaf, obgu ba gur fvgr naq ba bhe TvgUho ercbfvgbel, ner fhowrpg gb bhe" cla_url: "PYN" contributor_description_suffix: "gb juvpu lbh fubhyq nterr orsber pbagevohgvat." code_title: "Pbqr - ZVG" code_description_prefix: "Nyy pbqr bjarq ol PbqrPbzong be ubfgrq ba pbqrpbzong.pbz, obgu va gur TvgUho ercbfvgbel be va gur pbqrpbzong.pbz qngnonfr, vf yvprafrq haqre gur" mit_license_url: "ZVG yvprafr" code_description_suffix: "Guvf vapyhqrf nyy pbqr va Flfgrzf naq Pbzcbaragf gung ner znqr ninvynoyr ol PbqrPbzong sbe gur checbfr bs perngvat yriryf." art_title: "Neg/Zhfvp - Perngvir Pbzzbaf " art_description_prefix: "Nyy pbzzba pbagrag vf ninvynoyr haqre gur" cc_license_url: "Perngvir Pbzzbaf Nggevohgvba 4.0 Vagreangvbany Yvprafr" art_description_suffix: "Pbzzba pbagrag vf nalguvat znqr trarenyyl ninvynoyr ol PbqrPbzong sbe gur checbfr bs perngvat Yriryf. Guvf vapyhqrf:" art_music: "Zhfvp" art_sound: "Fbhaq" art_artwork: "Negjbex" art_sprites: "Fcevgrf" art_other: "Nal naq nyy bgure aba-pbqr perngvir jbexf gung ner znqr ninvynoyr jura perngvat Yriryf." art_access: "Pheeragyl gurer vf ab havirefny, rnfl flfgrz sbe srgpuvat gurfr nffrgf. Va trareny, srgpu gurz sebz gur HEYf nf hfrq ol gur fvgr, pbagnpg hf sbe nffvfgnapr, be uryc hf va rkgraqvat gur fvgr gb znxr gurfr nffrgf zber rnfvyl npprffvoyr." art_paragraph_1: "Sbe nggevohgvba, cyrnfr anzr naq yvax gb pbqrpbzong.pbz arne jurer gur fbhepr vf hfrq be jurer nccebcevngr sbe gur zrqvhz. Sbe rknzcyr:" use_list_1: "Vs hfrq va n zbivr be nabgure tnzr, vapyhqr pbqrpbzong.pbz va gur perqvgf." use_list_2: "Vs hfrq ba n jrofvgr, vapyhqr n yvax arne gur hfntr, sbe rknzcyr haqrearngu na vzntr, be va n trareny nggevohgvbaf cntr jurer lbh zvtug nyfb zragvba bgure Perngvir Pbzzbaf jbexf naq bcra fbhepr fbsgjner orvat hfrq ba gur fvgr. Fbzrguvat gung'f nyernql pyrneyl ersrerapvat PbqrPbzong, fhpu nf n oybt cbfg zragvbavat PbqrPbzong, qbrf abg arrq fbzr frcnengr nggevohgvba." art_paragraph_2: "Vs gur pbagrag orvat hfrq vf perngrq abg ol PbqrPbzong ohg vafgrnq ol n hfre bs pbqrpbzong.pbz, nggevohgr gurz vafgrnq, naq sbyybj nggevohgvba qverpgvbaf cebivqrq va gung erfbhepr'f qrfpevcgvba vs gurer ner nal." rights_title: "Evtugf Erfreirq" rights_desc: "Nyy evtugf ner erfreirq sbe Yriryf gurzfryirf. Guvf vapyhqrf" rights_scripts: "Fpevcgf" rights_unit: "Havg pbasvthengvba" rights_writings: "Jevgvatf" rights_media: "Zrqvn (fbhaqf, zhfvp) naq nal bgure perngvir pbagrag znqr fcrpvsvpnyyl sbe gung Yriry naq abg znqr trarenyyl ninvynoyr jura perngvat Yriryf." rights_clarification: "Gb pynevsl, nalguvat gung vf znqr ninvynoyr va gur Yriry Rqvgbe sbe gur checbfr bs znxvat yriryf vf haqre PP, jurernf gur pbagrag perngrq jvgu gur Yriry Rqvgbe be hcybnqrq va gur pbhefr bs perngvba bs Yriryf vf abg." nutshell_title: "Va n Ahgfuryy" nutshell_description: "Nal erfbheprf jr cebivqr va gur Yriry Rqvgbe ner serr gb hfr nf lbh yvxr sbe perngvat Yriryf. Ohg jr erfreir gur evtug gb erfgevpg qvfgevohgvba bs gur Yriryf gurzfryirf (gung ner perngrq ba pbqrpbzong.pbz) fb gung gurl znl or punetrq sbe." canonical: "Gur Ratyvfu irefvba bs guvf qbphzrag vf gur qrsvavgvir, pnabavpny irefvba. Vs gurer ner nal qvfpercnapvrf orgjrra genafyngvbaf, gur Ratyvfu qbphzrag gnxrf cerprqrapr." third_party_title: "Guveq Cnegl Freivprf" third_party_description: "PbqrPbzong hfrf gur sbyybjvat guveq cnegl freivprf (nzbat bguref):" ladder_prizes: title: "Gbheanzrag Cevmrf" # Guvf frpgvba jnf sbe na byq gbheanzrag naq qbrfa'g arrq arj genafyngvbaf abj. blurb_1: "Gurfr cevmrf jvyy or njneqrq nppbeqvat gb" blurb_2: "gur gbheanzrag ehyrf" blurb_3: "gb gur gbc uhzna naq bter cynlref." blurb_4: "Gjb grnzf zrnaf qbhoyr gur cevmrf!" blurb_5: "(Gurer jvyy or gjb svefg cynpr jvaaref, gjb frpbaq-cynpr jvaaref, rgp.)" rank: "Enax" prizes: "Cevmrf" total_value: "Gbgny Inyhr" in_cash: "va pnfu" custom_wizard: "Phfgbz PbqrPbzong Jvmneq" custom_avatar: "Phfgbz PbqrPbzong ningne" heap: "sbe fvk zbaguf bs \"Fgneghc\" npprff" credits: "perqvgf" one_month_coupon: "pbhcba: pubbfr rvgure Envyf be UGZY" one_month_discount: "qvfpbhag, 30% bss: pubbfr rvgure Envyf be UGZY" license: "yvprafr" oreilly: "robbx bs lbhe pubvpr" calendar: year: "Lrne" day: "Qnl" month: "Zbagu" january: "Wnahnel" february: "Sroehnel" march: "Znepu" april: "Ncevy" may: "Znl" june: "Whar" july: "Whyl" august: "Nhthfg" september: "Frcgrzore" october: "Bpgbore" november: "Abirzore" december: "Qrprzore" code_play_create_account_modal: title: "Lbh qvq vg!" # Guvf frpgvba vf bayl arrqrq va HF, HX, Zrkvpb, Vaqvn, naq Treznal body: "Lbh ner abj ba lbhe jnl gb orpbzvat n znfgre pbqre. Fvta hc gb erprvir na rkgen <fgebat>100 Trzf</fgebat> & lbh jvyy nyfb or ragrerq sbe n punapr gb <fgebat>jva $2,500 & bgure Yrabib Cevmrf</fgebat>." sign_up: "Fvta hc & xrrc pbqvat ▶" victory_sign_up_poke: "Perngr n serr nppbhag gb fnir lbhe pbqr & or ragrerq sbe n punapr gb jva cevmrf!" victory_sign_up: "Fvta hc & or ragrerq gb <fgebat>jva $2,500</fgebat>" server_error: email_taken: 'Rznvy nyernql gnxra' username_taken: 'Hfreanzr nyernql gnxra' esper: line_no: "Yvar $1: " uncaught: "Hapnhtug $1" # $1 jvyy or na reebe glcr, rt "Hapnhtug FlagnkReebe" reference_error: "ErsreraprReebe: " argument_error: "NethzragReebe: " type_error: "GlcrReebe: " syntax_error: "FlagnkReebe: " error: "Reebe: " x_not_a_function: "$1 vf abg n shapgvba" x_not_defined: "$1 vf abg qrsvarq" spelling_issues: "Ybbx bhg sbe fcryyvat vffhrf: qvq lbh zrna `$1` vafgrnq bs `$2`?" capitalization_issues: "Ybbx bhg sbe pncvgnyvmngvba: `$1` fubhyq or `$2`." py_empty_block: "Rzcgl $1. Chg 4 fcnprf va sebag bs fgngrzragf vafvqr gur $2 fgngrzrag." fx_missing_paren: "Vs lbh jnag gb pnyy `$1` nf n shapgvba, lbh arrq `()`'f" unmatched_token: "Hazngpurq `$1`. Rirel bcravat `$2` arrqf n pybfvat `$3` gb zngpu vg." unterminated_string: "Hagrezvangrq fgevat. Nqq n zngpuvat `\"` ng gur raq bs lbhe fgevat." missing_semicolon: "Zvffvat frzvpbyba." missing_quotes: "Zvffvat dhbgrf. Gel `$1`" argument_type: "`$1`'f nethzrag `$2` fubhyq unir glcr `$3`, ohg tbg `$4`: `$5`." argument_type2: "`$1`'f nethzrag `$2` fubhyq unir glcr `$3`, ohg tbg `$4`." target_a_unit: "Gnetrg n havg." attack_capitalization: "Nggnpx $1, abg $2. (Pncvgny yrggref ner vzcbegnag.)" empty_while: "Rzcgl juvyr fgngrzrag. Chg 4 fcnprf va sebag bs fgngrzragf vafvqr gur juvyr fgngrzrag." line_of_site: "`$1`'f nethzrag `$2` unf n ceboyrz. Vf gurer na rarzl jvguva lbhe yvar-bs-fvtug lrg?" need_a_after_while: "Arrq n `$1` nsgre `$2`." too_much_indentation: "Gbb zhpu vaqragngvba ng gur ortvaavat bs guvf yvar." missing_hero: "Zvffvat `$1` xrljbeq; fubhyq or `$2`." takes_no_arguments: "`$1` gnxrf ab nethzragf." no_one_named: "Gurer'f ab bar anzrq \"$1\" gb gnetrg." separated_by_comma: "Shapgvba pnyyf cnenzngref zhfg or frcrengrq ol `,`f" protected_property: "Pna'g ernq cebgrpgrq cebcregl: $1" need_parens_to_call: "Vs lbh jnag gb pnyy `$1` nf shapgvba, lbh arrq `()`'f" expected_an_identifier: "Rkcrpgrq na vqragvsvre naq vafgrnq fnj '$1'." unexpected_identifier: "Harkcrpgrq vqragvsvre" unexpected_end_of: "Harkcrpgrq raq bs vachg" unnecessary_semicolon: "Haarprffnel frzvpbyba." unexpected_token_expected: "Harkcrpgrq gbxra: rkcrpgrq $1 ohg sbhaq $2 juvyr cnefvat $3" unexpected_token: "Harkcrpgrq gbxra $1" unexpected_token2: "Harkcrpgrq gbxra" unexpected_number: "Harkcrpgrq ahzore" unexpected: "Harkcrpgrq '$1'." escape_pressed_code: "Rfpncr cerffrq; pbqr nobegrq." target_an_enemy: "Gnetrg na rarzl ol anzr, yvxr `$1`, abg gur fgevat `$2`." target_an_enemy_2: "Gnetrg na rarzl ol anzr, yvxr $1." cannot_read_property: "Pnaabg ernq cebcregl '$1' bs haqrsvarq" attempted_to_assign: "Nggrzcgrq gb nffvta gb ernqbayl cebcregl." unexpected_early_end: "Harkcrpgrq rneyl raq bs cebtenz." you_need_a_string: "Lbh arrq n fgevat gb ohvyq; bar bs $1" unable_to_get_property: "Hanoyr gb trg cebcregl '$1' bs haqrsvarq be ahyy ersrerapr" # GBQB: Qb jr genafyngr haqrsvarq/ahyy? code_never_finished_its: "Pbqr arire svavfurq. Vg'f rvgure ernyyl fybj be unf na vasvavgr ybbc." unclosed_string: "Hapybfrq fgevat." unmatched: "Hazngpurq '$1'." error_you_said_achoo: "Lbh fnvq: $1, ohg gur cnffjbeq vf: $2. (Pncvgny yrggref ner vzcbegnag.)" indentation_error_unindent_does: "Vaqragngvba Reebe: havaqrag qbrf abg zngpu nal bhgre vaqragngvba yriry" indentation_error: "Vaqragngvba reebe." need_a_on_the: "Arrq n `:` ba gur raq bs gur yvar sbyybjvat `$1`." attempt_to_call_undefined: "nggrzcg gb pnyy '$1' (n avy inyhr)" unterminated: "Hagrezvangrq `$1`" target_an_enemy_variable: "Gnetrg na $1 inevnoyr, abg gur fgevat $2. (Gel hfvat $3.)" error_use_the_variable: "Hfr gur inevnoyr anzr yvxr `$1` vafgrnq bs n fgevat yvxr `$2`" indentation_unindent_does_not: "Vaqragngvba havaqrag qbrf abg zngpu nal bhgre vaqragngvba yriry" unclosed_paren_in_function_arguments: "Hapybfrq $1 va shapgvba nethzragf." unexpected_end_of_input: "Harkcrpgrq raq bs vachg" there_is_no_enemy: "Gurer vf ab `$1`. Hfr `$2` svefg." # Uvagf fgneg urer try_herofindnearestenemy: "Gel `$1`" there_is_no_function: "Gurer vf ab shapgvba `$1`, ohg `$2` unf n zrgubq `$3`." attacks_argument_enemy_has: "`$1`'f nethzrag `$2` unf n ceboyrz." is_there_an_enemy: "Vf gurer na rarzl jvguva lbhe yvar-bs-fvtug lrg?" target_is_null_is: "Gnetrg vf $1. Vf gurer nyjnlf n gnetrg gb nggnpx? (Hfr $2?)" hero_has_no_method: "`$1` unf ab zrgubq `$2`." there_is_a_problem: "Gurer vf n ceboyrz jvgu lbhe pbqr." did_you_mean: "Qvq lbh zrna $1? Lbh qb abg unir na vgrz rdhvccrq jvgu gung fxvyy." missing_a_quotation_mark: "Zvffvat n dhbgngvba znex. " missing_var_use_var: "Zvffvat `$1`. Hfr `$2` gb znxr n arj inevnoyr." you_do_not_have: "Lbh qb abg unir na vgrz rdhvccrq jvgu gur $1 fxvyy." put_each_command_on: "Chg rnpu pbzznaq ba n frcnengr yvar" are_you_missing_a: "Ner lbh zvffvat n '$1' nsgre '$2'? " your_parentheses_must_match: "Lbhe cneragurfrf zhfg zngpu."
218286
module.exports = nativeDescription: "rot13", englishDescription: "English with the letters jumbled", translation: new_home: slogan: "Gur zbfg ratntvat tnzr sbe yrneavat cebtenzzvat." classroom_edition: "Pynffebbz Rqvgvba:" learn_to_code: "Yrnea gb pbqr:" play_now: "Cynl Abj" im_a_teacher: "<NAME>" im_a_student: "<NAME>" learn_more: "Yrnea zber" classroom_in_a_box: "N pynffebbz va-n-obk sbe grnpuvat pbzchgre fpvrapr." codecombat_is: "PbqrPbzong vf n cyngsbez <fgebat>sbe fghqragf</fgebat> gb yrnea pbzchgre fpvrapr juvyr cynlvat guebhtu n erny tnzr." our_courses: "Bhe pbhefrf unir orra fcrpvsvpnyyl cynlgrfgrq <fgebat>gb rkpry va gur pynffebbz</fgebat>, rira sbe grnpuref jvgu yvggyr gb ab cevbe cebtenzzvat rkcrevrapr." watch_how: "Jngpu ubj PbqrPbzong vf genafsbezvat gur jnl crbcyr yrnea pbzchgre fpvrapr." top_screenshots_hint: "Fghqragf jevgr pbqr naq frr gurve punatrf hcqngr va erny-gvzr" designed_with: "Qrfvtarq jvgu grnpuref va zvaq" real_code: "<NAME>, glcrq pbqr" from_the_first_level: "sebz gur svefg yriry" getting_students: "Trggvat fghqragf gb glcrq pbqr nf dhvpxyl nf cbffvoyr vf pevgvpny gb yrneavat cebtenzzvat flagnk naq cebcre fgehpgher." educator_resources: "Rqhpngbe erfbheprf" course_guides: "naq pbhefr thvqrf" teaching_computer_science: "Grnpuvat pbzchgre fpvrapr qbrf abg erdhver n pbfgyl qrterr, orpnhfr jr cebivqr gbbyf gb fhccbeg rqhpngbef bs nyy onpxtebhaqf." accessible_to: "Npprffvoyr gb" everyone: "rirelbar" democratizing: "Qrzbpengvmvat gur cebprff bs yrneavat pbqvat vf ng gur pber bs bhe cuvybfbcul. Rirelbar fubhyq or noyr gb yrnea gb pbqr." forgot_learning: "V guvax gurl npghnyyl sbetbg gung gurl jrer npghnyyl yrneavat fbzrguvat." wanted_to_do: " Pbqvat vf fbzrguvat V'ir nyjnlf jnagrq gb qb, naq V arire gubhtug V jbhyq or noyr gb yrnea vg va fpubby." why_games: "Jul vf yrneavat guebhtu tnzrf vzcbegnag?" games_reward: "Tnzrf erjneq gur cebqhpgvir fgehttyr." encourage: "Tnzvat vf n zrqvhz gung rapbhentrf vagrenpgvba, qvfpbirel, naq gevny-naq-reebe. N tbbq tnzr punyyratrf gur cynlre gb znfgre fxvyyf bire gvzr, juvpu vf gur fnzr pevgvpny cebprff fghqragf tb guebhtu nf gurl yrnea." excel: "Tnzrf rkpry ng erjneqvat" struggle: "cebqhpgvir fgehttyr" kind_of_struggle: "gur xvaq bs fgehttyr gung erfhygf va yrneavat gung’f ratntvat naq" motivating: "zbgvingvat" not_tedious: "abg grqvbhf." gaming_is_good: "Fghqvrf fhttrfg tnzvat vf tbbq sbe puvyqera’f oenvaf. (vg’f gehr!)" game_based: "Jura tnzr-onfrq yrneavat flfgrzf ner" compared: "pbzcnerq" conventional: "ntnvafg pbairagvbany nffrffzrag zrgubqf, gur qvssrerapr vf pyrne: tnzrf ner orggre ng urycvat fghqragf ergnva xabjyrqtr, pbapragengr naq" perform_at_higher_level: "cresbez ng n uvture yriry bs npuvrirzrag" feedback: "Tnzrf nyfb cebivqr erny-gvzr srrqonpx gung nyybjf fghqragf gb nqwhfg gurve fbyhgvba cngu naq haqrefgnaq pbaprcgf zber ubyvfgvpnyyl, vafgrnq bs orvat yvzvgrq gb whfg “pbeerpg” be “vapbeerpg” nafjref." real_game: "N erny tnzr, cynlrq jvgu erny pbqvat." great_game: "N terng tnzr vf zber guna whfg onqtrf naq npuvrirzragf - vg’f nobhg n cynlre’f wbhearl, jryy-qrfvtarq chmmyrf, naq gur novyvgl gb gnpxyr punyyratrf jvgu ntrapl naq pbasvqrapr." agency: "PbqrPbzong vf n tnzr gung tvirf cynlref gung ntrapl naq pbasvqrapr jvgu bhe ebohfg glcrq pbqr ratvar, juvpu urycf ortvaare naq nqinaprq fghqragf nyvxr jevgr cebcre, inyvq pbqr." request_demo_title: "Trg lbhe fghqragf fgnegrq gbqnl!" request_demo_subtitle: "Erdhrfg n qrzb naq trg lbhe fghqragf fgnegrq va yrff guna na ubhe." get_started_title: "Frg hc lbhe pynff gbqnl" get_started_subtitle: "Frg hc n pynff, nqq lbhe fghqragf, naq zbavgbe gurve cebterff nf gurl yrnea pbzchgre fpvrapr." request_demo: "Erdhrfg n Qrzb" setup_a_class: "Frg Hc n Pynff" have_an_account: "Unir na nppbhag?" logged_in_as: "Lbh ner pheeragyl ybttrq va nf" computer_science: "Bhe frys-cnprq pbhefrf pbire onfvp flagnk gb nqinaprq pbaprcgf" ffa: "Serr sbe nyy fghqragf" coming_soon: "Zber pbzvat fbba!" courses_available_in: "Pbhefrf ner ninvynoyr va WninFpevcg naq Clguba. Jro Qrirybczrag pbhefrf hgvyvmr UGZY, PFF, naq wDhrel." boast: "Obnfgf evqqyrf gung ner pbzcyrk rabhtu gb snfpvangr tnzref naq pbqref nyvxr." winning: "N jvaavat pbzovangvba bs ECT tnzrcynl naq cebtenzzvat ubzrjbex gung chyyf bss znxvat xvq-sevraqyl rqhpngvba yrtvgvzngryl rawblnoyr." run_class:"Rirelguvat lbh arrq gb eha n pbzchgre fpvrapr pynff va lbhe fpubby gbqnl, ab PF onpxtebhaq erdhverq." goto_classes: "Tb gb Zl Pynffrf" view_profile: "Ivrj Zl Cebsvyr" view_progress: "Ivrj Cebterff" go_to_courses: "Tb gb Zl Pbhefrf" want_coco: "Jnag PbqrPbzong ng lbhe fpubby?" nav: map: "Znc" play: "Yriryf" # Gur gbc ani one ragel jurer cynlref pubbfr juvpu yriryf gb cynl community: "Pbzzhavgl" courses: "Pbhefrf" blog: "Oybt" forum: "Sbehz" account: "Nppbhag" my_account: "<NAME> Npp<NAME>ag" profile: "Cebsvyr" home: "Ubzr" contribute: "Pbagevohgr" legal: "Yrtny" privacy: "Cevinpl" about: "Nobhg" contact: "Pbagnpg" twitter_follow: "Sbyybj" my_classrooms: "Zl Pynffrf" my_courses: "Zl Pbhefrf" careers: "Pnerref" facebook: "Snprobbx" twitter: "Gjvggre" create_a_class: "Perngr n Pynff" other: "Bgure" learn_to_code: "Yrnea gb Pbqr!" toggle_nav: "Gbttyr anivtngvba" schools: "Fpubbyf" get_involved: "Trg Vaibyirq" open_source: "Bcra fbhepr (TvgUho)" support: "Fhccbeg" faqs: "SNDf" help_pref: "Arrq uryc? Rznvy" help_suff: "naq jr'yy trg va gbhpu!" resource_hub: "Erfbhepr Uho" modal: close: "Pybfr" okay: "Bxnl" not_found: page_not_found: "Cntr abg sbhaq" diplomat_suggestion: title: "Uryc genafyngr PbqrPbzong!" # Guvf fubjf hc jura n cynlre fjvgpurf gb n aba-Ratyvfu ynathntr hfvat gur ynathntr fryrpgbe. sub_heading: "Jr arrq lbhe ynathntr fxvyyf." pitch_body: "Jr qrirybc PbqrPbzong va Ratyvfu, ohg jr nyernql unir cynlref nyy bire gur jbeyq. Znal bs gurz jnag gb cynl va {Ratyvfu} ohg qba'g fcrnx Ratyvfu, fb vs lbh pna fcrnx obgu, cyrnfr pbafvqre fvtavat hc gb or n Qvcybzng naq uryc genafyngr obgu gur PbqrPbzong jrofvgr naq nyy gur yriryf vagb {Ratyvfu}." missing_translations: "Hagvy jr pna genafyngr rirelguvat vagb {Ratyvfu}, lbh'yy frr Ratyvfu jura {Ratyvfu} vfa'g ninvynoyr." learn_more: "Yrnea zber nobhg orvat n Qvcybzng" subscribe_as_diplomat: "Fhofpevor nf n Qvcybzng" play: play_as: "Cynl Nf" # Ynqqre cntr get_course_for_class: "Nffvta Tnzr Qrirybczrag naq zber gb lbhe pynffrf!" request_licenses: "Pbagnpg bhe fpubby fcrpvnyvfgf sbe qrgnvyf." compete: "Pbzcrgr!" # Pbhefr qrgnvyf cntr spectate: "Fcrpgngr" # Ynqqre cntr players: "cynlref" # Ubire bire n yriry ba /cynl hours_played: "ubhef cynlrq" # Ubire bire n yriry ba /cynl items: "Vgrzf" # Gbbygvc ba vgrz fubc ohggba sebz /cynl unlock: "Haybpx" # Sbe chepunfvat vgrzf naq urebrf confirm: "Pbasvez" owned: "Bjarq" # Sbe vgrzf lbh bja locked: "Ybpxrq" available: "Ninvynoyr" skills_granted: "Fxvyyf Tenagrq" # Cebcregl qbphzragngvba qrgnvyf heroes: "Urebrf" # Gbbygvc ba ureb fubc ohggba sebz /cynl achievements: "Npuvrirzragf" # Gbbygvc ba npuvrirzrag yvfg ohggba sebz /cynl settings: "Frggvatf" # Gbbygvc ba frggvatf ohggba sebz /cynl poll: "Cbyy" # Gbbygvc ba cbyy ohggba sebz /cynl next: "Arkg" # Tb sebz pubbfr ureb gb pubbfr vairagbel orsber cynlvat n yriry change_hero: "Punatr Ureb" # Tb onpx sebz pubbfr vairagbel gb pubbfr ureb buy_gems: "Ohl Trzf" subscribers_only: "Fhofpevoref Bayl!" subscribe_unlock: "Fhofpevor gb Haybpx!" subscriber_heroes: "Fhofpevor gbqnl gb vzzrqvngryl haybpx Nznen, Uhfuonhz, naq Unggbev!" subscriber_gems: "Fhofpevor gbqnl gb chepunfr guvf ureb jvgu trzf!" anonymous: "<NAME>" level_difficulty: "Qvssvphygl: " awaiting_levels_adventurer_prefix: "Jr eryrnfr arj yriryf rirel jrrx." awaiting_levels_adventurer: "Fvta hc nf na Nqiraghere" awaiting_levels_adventurer_suffix: "gb or gur svefg gb cynl arj yriryf." adjust_volume: "Nqwhfg ibyhzr" campaign_multiplayer: "Zhygvcynlre Neranf" campaign_multiplayer_description: "... va juvpu lbh pbqr urnq-gb-urnq ntnvafg bgure cynlref." brain_pop_done: "Lbh’ir qrsrngrq gur Bterf jvgu pbqr! Lbh jva!" brain_pop_challenge: "Punyyratr lbhefrys gb cynl ntnva hfvat n qvssrerag cebtenzzvat ynathntr!" replay: "Ercynl" back_to_classroom: "Onpx gb Pynffebbz" teacher_button: "Sbe Grnpuref" get_more_codecombat: "Trg Zber PbqrPbzong" code: if: "vs" # Xrljbeqf--gurfr genafyngvbaf fubj hc ba ubire, fb cyrnfr genafyngr gurz nyy, rira vs vg'f xvaq bs ybat. (Va gur pbqr rqvgbe, gurl jvyy fgvyy or va Ratyvfu.) else: "ryfr" elif: "ryfr vs" while: "juvyr" loop: "ybbc" for: "sbe" break: "oernx" continue: "pbagvahr" pass: "cn<PASSWORD>" return: "erghea" then: "gura" do: "qb" end: "raq" function: "shapgvba" def: "qrsvar" var: "inevnoyr" self: "frys" hero: "ureb" this: "guvf" or: "be" "||": "be" and: "naq" "&&": "naq" not: "abg" "!": "abg" "=": "nffvta" # Sbe guvf frpgvba, pbawhtngr vg yvxr vg'f gur ireo cneg bs n fragrapr jura cbffvoyr "==": "rdhnyf" "===": "fgevpgyl rdhnyf" "!=": "qbrf abg rdhny" "!==": "qbrf abg fgevpgyl rdhny" ">": "vf terngre guna" ">=": "vf terngre guna be rdhny" "<": "vf yrff guna" "<=": "vf yrff guna be rdhny" "*": "zhygvcyvrq ol" "/": "qvivqrq ol" "+": "cyhf" "-": "zvahf" "+=": "nqq naq nffvta" "-=": "fhogenpg naq nffvta" True: "Gehr" true: "gehr" False: "Snyfr" false: "snyfr" undefined: "haqrsvarq" null: "ahyy" nil: "avy" None: "Abar" share_progress_modal: blurb: "Lbh’er znxvat terng cebterff! Gryy lbhe cnerag ubj zhpu lbh'ir yrnearq jvgu PbqrPbzong." email_invalid: "Rznvy nqqerff vainyvq." form_blurb: "Ragre lbhe cnerag'f rznvy orybj naq jr’yy fubj gurz!" form_label: "Rznvy Nqqerff" placeholder: "rznvy nqqerff" title: "Rkpryyrag Jbex, Ncceragvpr" login: sign_up: "<NAME>" email_or_username: "Rznvy be hfreanzr" log_in: "Ybt Va" logging_in: "Ybttvat Va" log_out: "Ybt Bhg" forgot_password: "<PASSWORD>?" finishing: "Svavfuvat" sign_in_with_facebook: "Fvta va jvgu Snprobbx" sign_in_with_gplus: "Fvta va jvgu Tbbtyr" signup_switch: "Jnag gb perngr na nppbhag?" signup: complete_subscription: "Pbzcyrgr Fhofpevcgvba" create_student_header: "Perngr Fghqrag Nppbhag" create_teacher_header: "Perngr Grnpure Nppbhag" create_individual_header: "Perngr Vaqvivqhny Nppbhag" email_announcements: "Erprvir naabhaprzragf nobhg arj PbqrPbzong yriryf naq srngherf!" sign_in_to_continue: "Fvta va be perngr na nppbhag gb pbagvahr" teacher_email_announcements: "Xrrc zr hcqngrq ba arj grnpure erfbheprf, pheevphyhz, naq pbhefrf!" creating: "Perngvat Nppbhag..." sign_up: "Fv<NAME>" log_in: "ybt va jvgu cnffjbeq" required: "Lbh arrq gb ybt va orsber lbh pna tb gung jnl." login_switch: "Nyernql unir na nppbhag?" optional: "bcgvbany" connected_gplus_header: "Lbh'ir fhpprffshyyl pbaarpgrq jvgu Tbbtyr+!" connected_gplus_p: "Svavfu fvtavat hc fb lbh pna ybt va jvgu lbhe Tbbtyr+ nppbhag." connected_facebook_header: "Lbh'ir fhpprffshyyl pbaarpgrq jvgu Snprobbx!" connected_facebook_p: "Svavfu fvtavat hc fb lbh pna ybt va jvgu lbhe Snprobbx nppbhag." hey_students: "Fghqragf, ragre gur pynff pbqr sebz lbhe grnpure." birthday: "Oveguqnl" parent_email_blurb: "Jr xabj lbh pna'g jnvg gb yrnea cebtenzzvat &zqnfu; jr'er rkpvgrq gbb! Lbhe cneragf jvyy erprvir na rznvy jvgu shegure vafgehpgvbaf ba ubj gb perngr na nppbhag sbe lbh. Rznvy {{rznvy_yvax}} vs lbh unir nal dhrfgvbaf." classroom_not_found: "Ab pynffrf rkvfg jvgu guvf Pynff Pbqr. Purpx lbhe fcryyvat be nfx lbhe grnpure sbe uryc." checking: "Purpxvat..." account_exists: "Guvf rznvy vf nyernql va hfr:" sign_in: "Fvta va" email_good: "Rznvy ybbxf tbbq!" name_taken: "<NAME> nyernql gnxra! Gel {{fhttrfgrqAnzr}}?" name_available: "<NAME>!" name_is_email: "<NAME> znl abg or na rznvy" choose_type: "Pubbfr lbhe nppbhag glcr:" teacher_type_1: "Grnpu cebtenzzvat hfvat PbqrPbzong!" teacher_type_2: "Frg hc lbhe pynff" teacher_type_3: "Npprff Pbhefr Thvqrf" teacher_type_4: "Ivrj fghqrag cebterff" signup_as_teacher: "Fvta hc nf n Grnpure" student_type_1: "Yrnea gb cebtenz juvyr cynlvat na ratntvat tnzr!" student_type_2: "Cynl jvgu lbhe pynff" student_type_3: "Pbzcrgr va neranf" student_type_4: "Pubbfr lbhe ureb!" student_type_5: "Unir lbhe Pynff Pbqr ernql!" signup_as_student: "Fvta hc nf n Fghqrag" individuals_or_parents: "Vaqvivqhnyf & <NAME>neragf" individual_type: "Sbe cynlref yrneavat gb pbqr bhgfvqr bs n pynff. Cneragf fubhyq fvta hc sbe na nppbhag urer." signup_as_individual: "Fvta hc nf na <NAME>" enter_class_code: "Ragre lbhe Pynff Pbqr" enter_birthdate: "Ragre lbhe oveguqngr:" parent_use_birthdate: "Cneragf, hfr lbhe bja oveguqngr." ask_teacher_1: "Nfx lbhe grnpure sbe lbhe Pynff Pbqr." ask_teacher_2: "Abg cneg bs n pynff? Perngr na " ask_teacher_3: "<NAME>" ask_teacher_4: " vafgrnq." about_to_join: "Lbh'er nobhg gb wbva:" enter_parent_email: "Ragre lbhe cnerag’f rznvy nqqerff:" parent_email_error: "Fbzrguvat jrag jebat jura gelvat gb fraq gur rznvy. Purpx gur rznvy nqqerff naq gel ntnva." parent_email_sent: "Jr’ir frag na rznvy jvgu shegure vafgehpgvbaf ba ubj gb perngr na nppbhag. Nfx lbhe cnerag gb purpx gurve vaobk." account_created: "N<NAME>!" confirm_student_blurb: "Jevgr qbja lbhe vasbezngvba fb gung lbh qba'g sbetrg vg. Lbhe grnpure pna nyfb uryc lbh erfrg lbhe cnffjbeq ng nal gvzr." confirm_individual_blurb: "Jevgr qbja lbhe ybtva vasbezngvba va pnfr lbh arrq vg yngre. Irevsl lbhe rznvy fb lbh pna erpbire lbhe nppbhag vs lbh rire sbetrg lbhe cnffjbeq - purpx lbhe vaobk!" write_this_down: "Jevgr guvf qbja:" start_playing: "Fgneg Cynlvat!" sso_connected: "Fhpprffshyyl pbaarpgrq jvgu:" select_your_starting_hero: "Fryrpg Lbhe Fgnegvat Ureb:" you_can_always_change_your_hero_later: "Lbh pna nyjnlf punatr lbhe ureb yngre." finish: "Svavfu" teacher_ready_to_create_class: "Lbh'er ernql gb perngr lbhe svefg pynff!" teacher_students_can_start_now: "Lbhe fghqragf jvyy or noyr gb fgneg cynlvat gur svefg pbhefr, Vagebqhpgvba gb Pbzchgre Fpvrapr, vzzrqvngryl." teacher_list_create_class: "Ba gur arkg fperra lbh jvyy or noyr gb perngr n arj pynff." teacher_list_add_students: "Nqq fghqragf gb gur pynff ol pyvpxvat gur Ivrj Pynff yvax, gura fraqvat lbhe fghqragf gur Pynff Pbqr be HEY. Lbh pna nyfb vaivgr gurz ivn rznvy vs gurl unir rznvy nqqerffrf." teacher_list_resource_hub_1: "Purpx bhg gur" teacher_list_resource_hub_2: "Pbhefr Thvqrf" teacher_list_resource_hub_3: "sbe fbyhgvbaf gb rirel yriry, naq gur" teacher_list_resource_hub_4: "Erfbhepr Uho" teacher_list_resource_hub_5: "sbe pheevphyhz thvqrf, npgvivgvrf, naq zber!" teacher_additional_questions: "Gung’f vg! Vs lbh arrq nqqvgvbany uryc be unir dhrfgvbaf, ernpu bhg gb __fhccbegRznvy__." dont_use_our_email_silly: "Qba'g chg bhe rznvy urer! Chg lbhe cnerag'f rznvy." want_codecombat_in_school: "Jnag gb cynl PbqrPbzong nyy gur gvzr?" recover: recover_account_title: "<NAME>" send_password: "<PASSWORD>" recovery_sent: "Erpbirel rznvy frag." items: primary: "<NAME>" secondary: "<NAME>" armor: "Nezbe" accessories: "Npprffbevrf" misc: "Zvfp" books: "Obbxf" common: back: "Onpx" # Jura hfrq nf na npgvba ireo, yvxr "Anivtngr onpxjneq" coming_soon: "Pbzvat fbba!" continue: "Pbagvahr" # Jura hfrq nf na npgvba ireo, yvxr "Pbagvahr sbejneq" next: "Arkg" default_code: "Qrsnhyg Pbqr" loading: "Ybnqvat..." overview: "Bireivrj" processing: "Cebprffvat..." solution: "Fbyhgvba" table_of_contents: "Gnoyr bs Pbagragf" intro: "Vageb" saving: "Fnivat..." sending: "Fraqvat..." send: "Fraq" sent: "Frag" cancel: "Pnapry" save: "Fnir" publish: "Choyvfu" create: "Perngr" fork: "Sbex" play: "Cynl" # Jura hfrq nf na npgvba ireo, yvxr "Cynl arkg yriry" retry: "Ergel" actions: "Npgvbaf" info: "Vasb" help: "Uryc" watch: "Jngpu" unwatch: "Hajngpu" submit_patch: "Fhozvg Cngpu" submit_changes: "Fhozvg Punatrf" save_changes: "Fnir Punatrf" required_field: "erdhverq" general: and: "naq" name: "<NAME>" date: "Qngr" body: "Obql" version: "Irefvba" pending: "Craqvat" accepted: "Npprcgrq" rejected: "Erwrpgrq" withdrawn: "Jvguqenja" accept: "Npprcg" reject: "Erwrpg" withdraw: "Jvguqenj" submitter: "Fhozvggre" submitted: "Fhozvggrq" commit_msg: "Pbzzvg Zrffntr" version_history: "Irefvba Uvfgbel" version_history_for: "Irefvba Uvfgbel sbe: " select_changes: "Fryrpg gjb punatrf orybj gb frr gur qvssrerapr." undo_prefix: "Haqb" undo_shortcut: "(Pgey+M)" redo_prefix: "Erqb" redo_shortcut: "(Pgey+Fuvsg+M)" play_preview: "Cynl cerivrj bs pheerag yriry" result: "Erfhyg" results: "Erfhygf" description: "Qrfpevcgvba" or: "be" subject: "Fhowrpg" email: "Rznvy" password: "<PASSWORD>" confirm_password: "<PASSWORD>" message: "Zrffntr" code: "Pbqr" ladder: "Ynqqre" when: "Jura" opponent: "Bccbarag" rank: "Enax" score: "Fpber" win: "Jva" loss: "Ybff" tie: "Gvr" easy: "Rnfl" medium: "Zrqvhz" hard: "Uneq" player: "C<NAME>" player_level: "Yriry" # Yvxr cynlre yriry 5, abg yvxr yriry: Qhatrbaf bs Xvgutneq warrior: "Jneevbe" ranger: "Enatre" wizard: "Jvmneq" first_name: "<NAME>" last_name: "<NAME>" last_initial: "<NAME>" username: "Hfreanzr" contact_us: "Pbagnpg Hf" close_window: "Pybfr Jvaqbj" learn_more: "Yrnea Zber" more: "Zber" fewer: "Srjre" with: "jvgu" units: second: "frpbaq" seconds: "frpbaqf" sec: "frp" minute: "zvahgr" minutes: "zvahgrf" hour: "ubhe" hours: "ubhef" day: "qnl" days: "qnlf" week: "jrrx" weeks: "jrrxf" month: "zbagu" months: "zbaguf" year: "lrne" years: "lrnef" play_level: back_to_map: "Onpx gb Znc" directions: "Qverpgvbaf" edit_level: "Rqvg Yriry" keep_learning: "Xrrc Yrneavat" explore_codecombat: "Rkcyber PbqrPbzong" finished_hoc: "V'z svavfurq jvgu zl Ubhe bs Pbqr" get_certificate: "Trg lbhe pregvsvpngr!" level_complete: "Yriry Pbzcyrgr" completed_level: "Pbzcyrgrq Yriry:" course: "Pbhefr:" done: "Qbar" next_level: "Arkg Yriry" challenge_unlocked: "Punyyratr Haybpxrq" start_challenge: "Fgneg Punyyratr" next_game: "Arkg tnzr" languages: "Ynathntrf" programming_language: "Cebtenzzvat ynathntr" show_menu: "Fubj tnzr zrah" home: "Ubzr" # Abg hfrq nal zber, jvyy or erzbirq fbba. level: "Yriry" # Yvxr "Yriry: Qhatrbaf bs Xvgutneq" skip: "Fxvc" game_menu: "Tnzr Zrah" restart: "Erfgneg" goals: "Tbnyf" goal: "Tbny" challenge_level_goals: "Punyyratr Yriry Tbnyf" challenge_level_goal: "Punyyratr Yriry Tbny" running: "Ehaavat..." success: "Fhpprff!" incomplete: "Vapbzcyrgr" timed_out: "Ena bhg bs gvzr" failing: "Snvyvat" reload: "Erybnq" reload_title: "Erybnq Nyy Pbqr?" reload_really: "Ner lbh fher lbh jnag gb erybnq guvf yriry onpx gb gur ortvaavat?" reload_confirm: "Erybnq Nyy" test_level: "Grfg Yriry" victory: "Ivpgbel" victory_title_prefix: "" victory_title_suffix: " Pbzcyrgr" victory_sign_up: "Fvta Hc gb Fnir Cebterff" victory_sign_up_poke: "Jnag gb fnir lbhe pbqr? Perngr n serr nppbhag!" victory_rate_the_level: "Ubj sha jnf guvf yriry?" victory_return_to_ladder: "Erghea gb Ynqqre" victory_saving_progress: "Fnivat Cebterff" victory_go_home: "Tb Ubzr" victory_review: "Gryy hf zber!" victory_review_placeholder: "Ubj jnf gur yriry?" victory_hour_of_code_done: "Ner Lbh Qbar?" victory_hour_of_code_done_yes: "Lrf, V'z svavfurq jvgu zl Ubhe bs Pbqr™!" victory_experience_gained: "KC Tnvarq" victory_gems_gained: "Trzf Tnvarq" victory_new_item: "Arj Vgrz" victory_new_hero: "Ar<NAME> Ureb" victory_viking_code_school: "Ubyl fzbxrf, gung jnf n uneq yriry lbh whfg orng! Vs lbh nera'g nyernql n fbsgjner qrirybcre, lbh fubhyq or. Lbh whfg tbg snfg-genpxrq sbe npprcgnapr jvgu Ivxvat Pbqr Fpubby, jurer lbh pna gnxr lbhe fxvyyf gb gur arkg yriry naq orpbzr n cebsrffvbany jro qrirybcre va 14 jrrxf." victory_become_a_viking: "Orpbzr n Ivxvat" victory_no_progress_for_teachers: "Cebterff vf abg fnirq sbe grnpuref. Ohg, lbh pna nqq n fghqrag nppbhag gb lbhe pynffebbz sbe lbhefrys." tome_cast_button_run: "Eha" tome_cast_button_running: "Ehaavat" tome_cast_button_ran: "Ena" tome_submit_button: "Fhozvg" tome_reload_method: "Erybnq bevtvany pbqr gb erfgneg gur yriry" tome_available_spells: "Ninvynoyr Fcryyf" tome_your_skills: "Lbhe Fxvyyf" hints: "Uvagf" hints_title: "Uvag {{ahzore}}" code_saved: "Pbqr Fnirq" skip_tutorial: "Fxvc (rfp)" keyboard_shortcuts: "Xrl Fubegphgf" loading_start: "Fgneg Yriry" problem_alert_title: "Svk Lbhe Pbqr" time_current: "Abj:" time_total: "Znk:" time_goto: "Tb gb:" non_user_code_problem_title: "Hanoyr gb Ybnq Yriry" infinite_loop_title: "Vasvavgr Ybbc Qrgrpgrq" infinite_loop_description: "Gur vavgvny pbqr gb ohvyq gur jbeyq arire svavfurq ehaavat. Vg'f cebonoyl rvgure ernyyl fybj be unf na vasvavgr ybbc. Be gurer zvtug or n oht. Lbh pna rvgure gel ehaavat guvf pbqr ntnva be erfrg gur pbqr gb gur qrsnhyg fgngr. Vs gung qbrfa'g svk vg, cyrnfr yrg hf xabj." check_dev_console: "Lbh pna nyfb bcra gur qrirybcre pbafbyr gb frr jung zvtug or tbvat jebat." check_dev_console_link: "(vafgehpgvbaf)" infinite_loop_try_again: "Gel Ntnva" infinite_loop_reset_level: "Erfrg Yriry" infinite_loop_comment_out: "Pbzzrag Bhg Zl Pbqr" tip_toggle_play: "Gbttyr cynl/cnhfrq jvgu Pgey+C." tip_scrub_shortcut: "Hfr Pgey+[ naq Pgey+] gb erjvaq naq snfg-sbejneq." tip_guide_exists: "Pyvpx gur thvqr, vafvqr tnzr zrah (ng gur gbc bs gur cntr), sbe hfrshy vasb." tip_open_source: "PbqrPbzong vf 100% bcra fbhepr!" tip_tell_friends: "Rawblvat PbqrPbzong? Gryy lbhe sevraqf nobhg hf!" tip_beta_launch: "PbqrPbzong ynhapurq vgf orgn va Bpgbore, 2013." tip_think_solution: "Guvax bs gur fbyhgvba, abg gur ceboyrz." tip_theory_practice: "Va gurbel, gurer vf ab qvssrerapr orgjrra gurbel naq cenpgvpr. Ohg va cenpgvpr, gurer vf. - Lbtv Oreen" tip_error_free: "Gurer ner gjb jnlf gb jevgr reebe-serr cebtenzf; bayl gur guveq bar jbexf. - Nyna Creyvf" tip_debugging_program: "Vs qrohttvat vf gur cebprff bs erzbivat ohtf, gura cebtenzzvat zhfg or gur cebprff bs chggvat gurz va. - Rqftre J. Qvwxfgen" tip_forums: "Urnq bire gb gur sbehzf naq gryy hf jung lbh guvax!" tip_baby_coders: "Va gur shgher, rira onovrf jvyy or Nepuzntrf." tip_morale_improves: "Ybnqvat jvyy pbagvahr hagvy zbenyr vzcebirf." tip_all_species: "Jr oryvrir va rdhny bccbeghavgvrf gb yrnea cebtenzzvat sbe nyy fcrpvrf." tip_reticulating: "Ergvphyngvat fcvarf." tip_harry: "Lre n Jvmneq, " tip_great_responsibility: "Jvgu terng pbqvat fxvyy pbzrf terng qroht erfcbafvovyvgl." tip_munchkin: "Vs lbh qba'g rng lbhe irtrgnoyrf, n zhapuxva jvyy pbzr nsgre lbh juvyr lbh'er nfyrrc." tip_binary: "Gurer ner bayl 10 glcrf bs crbcyr va gur jbeyq: gubfr jub haqrefgnaq ovanel, naq gubfr jub qba'g." tip_commitment_yoda: "N cebtenzzre zhfg unir gur qrrcrfg pbzzvgzrag, gur zbfg frevbhf zvaq. ~ Lbqn" tip_no_try: "Qb. Be qb abg. Gurer vf ab gel. - Lbqn" tip_patience: "Cngvrapr lbh zhfg unir, lbhat Cnqnjna. - Lbqn" tip_documented_bug: "N qbphzragrq oht vf abg n oht; vg vf n srngher." tip_impossible: "Vg nyjnlf frrzf vzcbffvoyr hagvy vg'f qbar. - <NAME>" tip_talk_is_cheap: "Gnyx vf purnc. Fubj zr gur pbqr. - Yvahf Gbeinyqf" tip_first_language: "Gur zbfg qvfnfgebhf guvat gung lbh pna rire yrnea vf lbhe svefg cebtenzzvat ynathntr. - Nyna Xnl" tip_hardware_problem: "D: Ubj znal cebtenzzref qbrf vg gnxr gb punatr n yvtug ohyo? N: Abar, vg'f n uneqjner ceboyrz." tip_hofstadters_law: "Ubsfgnqgre'f Ynj: Vg nyjnlf gnxrf ybatre guna lbh rkcrpg, rira jura lbh gnxr vagb nppbhag Ubsfgnqgre'f Ynj." tip_premature_optimization: "Cerzngher bcgvzvmngvba vf gur ebbg bs nyy rivy. - Qbanyq Xahgu" tip_brute_force: "Jura va qbhog, hfr oehgr sbepr. - Xra Gubzcfba" tip_extrapolation: "Gurer ner bayl gjb xvaqf bs crbcyr: gubfr gung pna rkgencbyngr sebz vapbzcyrgr qngn..." tip_superpower: "Pbqvat vf gur pybfrfg guvat jr unir gb n fhcrecbjre." tip_control_destiny: "Va erny bcra fbhepr, lbh unir gur evtug gb pbageby lbhe bja qrfgval. - Yvahf Gbeinyqf" tip_no_code: "Ab pbqr vf snfgre guna ab pbqr." tip_code_never_lies: "Pbqr arire yvrf, pbzzragf fbzrgvzrf qb. — Eba Wrssevrf" tip_reusable_software: "Orsber fbsgjner pna or erhfnoyr vg svefg unf gb or hfnoyr." tip_optimization_operator: "Rirel ynathntr unf na bcgvzvmngvba bcrengbe. Va zbfg ynathntrf gung bcrengbe vf ‘//’" tip_lines_of_code: "Zrnfhevat cebtenzzvat cebterff ol yvarf bs pbqr vf yvxr zrnfhevat nvepensg ohvyqvat cebterff ol jrvtug. — Ovyy Tngrf" tip_source_code: "V jnag gb punatr gur jbeyq ohg gurl jbhyq abg tvir zr gur fbhepr pbqr." tip_javascript_java: "Wnin vf gb WninFpevcg jung Pne vf gb Pnecrg. - Puevf Urvyznaa" tip_move_forward: "Jungrire lbh qb, xrrc zbivat sbejneq. - Znegva Yhgure Xvat We." tip_google: "Unir n ceboyrz lbh pna'g fbyir? Tbbtyr vg!" tip_adding_evil: "Nqqvat n cvapu bs rivy." tip_hate_computers: "Gung'f gur guvat nobhg crbcyr jub guvax gurl ungr pbzchgref. Jung gurl ernyyl ungr vf ybhfl cebtenzzref. - Yneel Avira" tip_open_source_contribute: "Lbh pna uryc PbqrPbzong vzcebir!" tip_recurse: "Gb vgrengr vf uhzna, gb erphefr qvivar. - Y. Crgre Qrhgfpu" tip_free_your_mind: "Lbh unir gb yrg vg nyy tb, Arb. Srne, qbhog, naq qvforyvrs. Serr lbhe zvaq. - Zbecurhf" tip_strong_opponents: "Rira gur fgebatrfg bs bccbaragf nyjnlf unf n jrnxarff. - Vgnpuv Hpuvun" tip_paper_and_pen: "Orsber lbh fgneg pbqvat, lbh pna nyjnlf cyna jvgu n furrg bs cncre naq n cra." tip_solve_then_write: "Svefg, fbyir gur ceboyrz. Gura, jevgr gur pbqr. - Wbua Wbuafba" tip_compiler_ignores_comments: "Fbzrgvzrf V guvax gung gur pbzcvyre vtaberf zl pbzzragf." tip_understand_recursion: "Gur bayl jnl gb haqrefgnaq erphefvba vf gb haqrefgnaq erphefvba." tip_life_and_polymorphism: "Bcra Fbhepr vf yvxr n gbgnyyl cbylzbecuvp urgrebtrarbhf fgehpgher: Nyy glcrf ner jrypbzr." tip_mistakes_proof_of_trying: "Zvfgnxrf va lbhe pbqr ner whfg cebbs gung lbh ner gelvat." tip_adding_orgres: "Ebhaqvat hc bterf." tip_sharpening_swords: "Funecravat gur fjbeqf." tip_ratatouille: "Lbh zhfg abg yrg nalbar qrsvar lbhe yvzvgf orpnhfr bs jurer lbh pbzr sebz. Lbhe bayl yvzvg vf lbhe fbhy. - Thfgrnh, Engngbhvyyr" tip_nemo: "Jura yvsr trgf lbh qbja, jnag gb xabj jung lbh'ir tbggn qb? Whfg xrrc fjvzzvat, whfg xrrc fjvzzvat. - Qbel, Svaqvat Arzb" tip_internet_weather: "Whfg zbir gb gur vagrearg, vg'f terng urer. Jr trg gb yvir vafvqr jurer gur jrngure vf nyjnlf njrfbzr. - Wbua Terra" tip_nerds: "Areqf ner nyybjrq gb ybir fghss, yvxr whzc-hc-naq-qbja-va-gur-punve-pna'g-pbageby-lbhefrys ybir vg. - Wbua Terra" tip_self_taught: "V gnhtug zlfrys 90% bs jung V'ir yrnearq. Naq gung'f abezny! - Unax Terra" tip_luna_lovegood: "Qba'g jbeel, lbh'er whfg nf fnar nf V nz. - Yhan Ybirtbbq" tip_good_idea: "Gur orfg jnl gb unir n tbbq vqrn vf gb unir n ybg bs vqrnf. - Yvahf Cnhyvat" tip_programming_not_about_computers: "Pbzchgre Fpvrapr vf ab zber nobhg pbzchgref guna nfgebabzl vf nobhg gryrfpbcrf. - Rqftre Qvwxfgen" tip_mulan: "Oryvrir lbh pna, gura lbh jvyy. - Zhyna" project_complete: "Cebwrpg Pbzcyrgr!" share_this_project: "Funer guvf cebwrpg jvgu sevraqf be snzvyl:" ready_to_share: "Ernql gb choyvfu lbhe cebwrpg?" click_publish: "Pyvpx \"Choyvfu\" gb znxr vg nccrne va gur pynff tnyyrel, gura purpx bhg jung lbhe pynffzngrf ohvyg! Lbh pna pbzr onpx naq pbagvahr gb jbex ba guvf cebwrpg. Nal shegure punatrf jvyy nhgbzngvpnyyl or fnirq naq funerq jvgu lbhe pynffzngrf." already_published_prefix: "Lbhe punatrf unir orra choyvfurq gb gur pynff tnyyrel." already_published_suffix: "Xrrc rkcrevzragvat naq znxvat guvf cebwrpg rira orggre, be frr jung gur erfg bs lbhe pynff unf ohvyg! Lbhe punatrf jvyy nhgbzngvpnyyl or fnirq naq funerq jvgu lbhe pynffzngrf." view_gallery: "Ivrj Tnyyrel" project_published_noty: "Lbhe yriry unf orra choyvfurq!" keep_editing: "Xrrc Rqvgvat" apis: methods: "Zrgubqf" events: "Riragf" spawnable: "Fcnjanoyr" html: "UGZY" math: "Zngu" array: "Neenl" object: "Bowrpg" string: "Fgevat" function: "Shapgvba" vector: "Irpgbe" date: "Qngr" jquery: "wDhrel" json: "WFBA" number: "Ahzore" webjavascript: "WninFpevcg" amazon_hoc: title: "Xrrc Yrneavat jvgu Nznmba!" congrats: "Pbatenghyngvbaf ba pbadhrevat gung punyyratvat Ubhe bs Pbqr!" educate_1: "Abj, xrrc yrneavat nobhg pbqvat naq pybhq pbzchgvat jvgu NJF Rqhpngr, na rkpvgvat, serr cebtenz sebz Nznmba sbe obgu fghqragf naq grnpuref. Jvgu NJF Rqhpngr, lbh pna rnea pbby onqtrf nf lbh yrnea nobhg gur onfvpf bs gur pybhq naq phggvat-rqtr grpuabybtvrf fhpu nf tnzvat, iveghny ernyvgl, naq Nyrkn." educate_2: "Yrnea zber naq fvta hc urer" future_eng_1: "Lbh pna nyfb gel gb ohvyq lbhe bja fpubby snpgf fxvyy sbe Nyrkn" future_eng_2: "urer" future_eng_3: "(qrivpr vf abg erdhverq). Guvf Nyrkn npgvivgl vf oebhtug gb lbh ol gur" future_eng_4: "Nznmba Shgher Ratvarre" future_eng_5: "cebtenz juvpu perngrf yrneavat naq jbex bccbeghavgvrf sbe nyy X-12 fghqragf va gur Havgrq Fgngrf jub jvfu gb chefhr pbzchgre fpvrapr." play_game_dev_level: created_by: "Perngrq ol {{anzr}}" created_during_hoc: "Perngrq qhevat Ubhe bs Pbqr" restart: "Er<NAME>" play: "C<NAME>" play_more_codecombat: "Cynl Zber PbqrPbzong" default_student_instructions: "Pyvpx gb pbageby lbhe ureb naq jva lbhe tnzr!" goal_survive: "Fheivir." goal_survive_time: "Fheivir sbe __frpbaqf__ frpbaqf." goal_defeat: "Qrsrng nyy rarzvrf." goal_defeat_amount: "Qrsrng __nzbhag__ rarzvrf." goal_move: "Zbir gb nyy gur erq K znexf." goal_collect: "Pbyyrpg nyy gur vgrzf." goal_collect_amount: "Pbyyrpg __nzbhag__ vgrzf." game_menu: inventory_tab: "Vairagbel" save_load_tab: "Fnir/Ybnq" options_tab: "Bcgvbaf" guide_tab: "Thvqr" guide_video_tutorial: "Ivqrb Ghgbevny" guide_tips: "Gvcf" multiplayer_tab: "Zhygvcynlre" auth_tab: "Fvta Hc" inventory_caption: "Rdhvc lbhe ureb" choose_hero_caption: "Pubbfr ureb, ynathntr" options_caption: "Pbasvther frggvatf" guide_caption: "Qbpf naq gvcf" multiplayer_caption: "Cynl jvgu sevraqf!" auth_caption: "Fnir lbhe cebterff." leaderboard: view_other_solutions: "Ivrj Yrnqreobneqf" scores: "Fpberf" top_players: "Gbc Cynlref ol" day: "Gbqnl" week: "Guvf Jrrx" all: "Nyy-Gvzr" latest: "Yngrfg" time: "Jva Gvzr" damage_taken: "Qnzntr Gnxra" damage_dealt: "Qnzntr Qrnyg" difficulty: "Qvssvphygl" gold_collected: "Tbyq Pbyyrpgrq" survival_time: "Fheivirq" defeated: "Rarzvrf Qrsrngrq" code_length: "Yvarf bs Pbqr" score_display: "__fpberGlcr__: __fpber__" inventory: equipped_item: "Rdhvccrq" required_purchase_title: "Erdhverq" available_item: "Ninvynoyr" restricted_title: "Erfgevpgrq" should_equip: "(qbhoyr-pyvpx gb rdhvc)" equipped: "(rdhvccrq)" locked: "(ybpxrq)" restricted: "(erfgevpgrq va guvf yriry)" equip: "Rdhvc" unequip: "Hardhvc" warrior_only: "Jneevbe Bayl" ranger_only: "Enatre Bayl" wizard_only: "Jvmneq Bayl" buy_gems: few_gems: "N srj trzf" pile_gems: "Cvyr bs trzf" chest_gems: "Purfg bs trzf" purchasing: "Chepunfvat..." declined: "Lbhe pneq jnf qrpyvarq" retrying: "Freire reebe, ergelvat." prompt_title: "Abg Rabhtu Trzf" prompt_body: "Qb lbh jnag gb trg zber?" prompt_button: "Ragre Fubc" recovered: "Cerivbhf trzf chepunfr erpbirerq. Cyrnfr erserfu gur cntr." price: "k{{trzf}} / zb" buy_premium: "Ohl Cerzvhz" purchase: "Chepunfr" purchased: "Chepunfrq" earn_gems: prompt_title: "Abg Rabhtu Trzf" prompt_body: "Xrrc cynlvat gb rnea zber!" subscribe: best_deal: "Orfg Qrny!" confirmation: "Pbatenghyngvbaf! Lbh abj unir n PbqrPbzong Cerzvhz Fhofpevcgvba!" premium_already_subscribed: "Lbh'er nyernql fhofpevorq gb Cerzvhz!" subscribe_modal_title: "PbqrPbzong Cerzvhz" comparison_blurb: "Orpbzr n Znfgre Pbqre - fhofpevor gb <o>Cerzvhz</o> gbqnl!" must_be_logged: "Lbh zhfg or ybttrq va svefg. Cyrnfr perngr na nppbhag be ybt va sebz gur zrah nobir." subscribe_title: "Fhofpevor" # Npghnyyl hfrq va fhofpevor ohggbaf, gbb unsubscribe: "Hafhofpevor" confirm_unsubscribe: "Pbasvez Hafhofpevor" never_mind: "<NAME>, V Fgvyy Ybir Lbh" thank_you_months_prefix: "Gunax lbh sbe fhccbegvat hf gurfr ynfg" thank_you_months_suffix: "zbaguf." thank_you: "Gunax lbh sbe fhccbegvat PbqrPbzong." sorry_to_see_you_go: "Fbeel gb frr lbh tb! Cyrnfr yrg hf xabj jung jr pbhyq unir qbar orggre." unsubscribe_feedback_placeholder: "B, jung unir jr qbar?" stripe_description: "Zbaguyl Fhofpevcgvba" buy_now: "Ohl Abj" subscription_required_to_play: "Lbh'yy arrq n fhofpevcgvba gb cynl guvf yriry." unlock_help_videos: "Fhofpevor gb haybpx nyy ivqrb ghgbevnyf." personal_sub: "Crefbany Fhofpevcgvba" # Nppbhagf Fhofpevcgvba Ivrj orybj loading_info: "Ybnqvat fhofpevcgvba vasbezngvba..." managed_by: "Znantrq ol" will_be_cancelled: "Jvyy or pnapryyrq ba" currently_free: "Lbh pheeragyl unir n serr fhofpevcgvba" currently_free_until: "Lbh pheeragyl unir n fhofpevcgvba hagvy" free_subscription: "Serr fhofpevcgvba" was_free_until: "Lbh unq n serr fhofpevcgvba hagvy" managed_subs: "Znantrq Fhofpevcgvbaf" subscribing: "Fhofpevovat..." current_recipients: "P<NAME>" unsubscribing: "Hafhofpevovat" subscribe_prepaid: "Pyvpx Fhofpevor gb hfr cercnvq pbqr" using_prepaid: "Hfvat cercnvq pbqr sbe zbaguyl fhofpevcgvba" feature_level_access: "Npprff 300+ yriryf ninvynoyr" feature_heroes: "Haybpx rkpyhfvir urebrf naq crgf" feature_learn: "Yrnea gb znxr tnzrf naq jrofvgrf" month_price: "$__cevpr__" first_month_price: "Bayl $__cevpr__ sbe lbhe svefg zbagu!" lifetime: "Yvsrgvzr Npprff" lifetime_price: "$__cevpr__" year_subscription: "Lrneyl Fhofpevcgvba" year_price: "$__cevpr__/lrne" support_part1: "Arrq uryc jvgu cnlzrag be cersre CnlCny? Rznvy" support_part2: "<EMAIL>" announcement: now_available: "Abj ninvynoyr sbe fhofpevoref!" subscriber: "fhofpevore" cuddly_companions: "Phqqyl Pbzcnavbaf!" # Crg Naabhaprzrag Zbqny kindling_name: "<NAME>" kindling_description: "<NAME>qyvat <NAME>nyf whfg jnag gb xrrc lbh jnez ng avtug. Naq qhevat gur qnl. Nyy gur gvzr, ernyyl." griffin_name: "<NAME>" griffin_description: "Tevssvaf ner unys rntyr, unys yvba, nyy nqbenoyr." raven_name: "<NAME>" raven_description: "Eniraf ner rkpryyrag ng tngurevat fuval obggyrf shyy bs urnygu sbe lbh." mimic_name: "Zvzvp" mimic_description: "Zvzvpf pna cvpx hc pbvaf sbe lbh. Zbir gurz ba gbc bs pbvaf gb vapernfr lbhe tbyq fhccyl." cougar_name: "Pbhtne" cougar_description: "Pbhtnef yvxr gb rnea n CuQ ol Cheevat Unccvyl Qnvyl." fox_name: "<NAME>" fox_description: "Oyhr sbkrf ner irel pyrire naq ybir qvttvat va gur qveg naq fabj!" pugicorn_name: "Chtvpbea" pugicorn_description: "Chtvpbeaf ner fbzr bs gur enerfg perngherf naq pna pnfg fcryyf!" wolf_name: "<NAME>" wolf_description: "Jbys chcf rkpry va uhagvat, tngurevat, naq cynlvat n zrna tnzr bs uvqr-naq-frrx!" ball_name: "<NAME>" ball_description: "onyy.fdhrnx()" collect_pets: "Pbyyrpg crgf sbe lbhe urebrf!" each_pet: "Rnpu crg unf n havdhr urycre novyvgl!" upgrade_to_premium: "Orpbzr n {{fhofpevore}} gb rdhvc crgf." play_second_kithmaze: "Cynl {{gur_frpbaq_xvguznmr}} gb haybpx gur Jby<NAME> Chc!" the_second_kithmaze: "Gur Frpbaq Xvguznmr" keep_playing: "Xrrc cynlvat gb qvfpbire gur svefg crg!" coming_soon: "Pbzvat fbba" ritic: "Evgvp gur Pbyq" # Evgvp Naabhaprzrag Zbqny ritic_description: "Evgvp gur Pbyq. Genccrq va Xryivagncu Tynpvre sbe pbhagyrff ntrf, svanyyl serr naq ernql gb graq gb gur bterf gung vzcevfbarq uvz." ice_block: "N oybpx bs vpr" ice_description: "Gurer nccrnef gb or fbzrguvat genccrq vafvqr..." blink_name: "Oyvax" blink_description: "Evgvp qvfnccrnef naq ernccrnef va n oyvax bs na rlr, yrnivat abguvat ohg n funqbj." shadowStep_name: "Funqbjfgrc" shadowStep_description: "N znfgre nffnffva xabjf ubj gb jnyx orgjrra gur funqbjf." tornado_name: "Gbeanqb" tornado_description: "Vg vf tbbq gb unir n erfrg ohggba jura bar'f pbire vf oybja." wallOfDarkness_name: "Jnyy bs Qnexarff" wallOfDarkness_description: "Uvqr oruvaq n jnyy bs funqbjf gb cerirag gur tnmr bs celvat rlrf." premium_features: get_premium: "Trg<oe>PbqrPbzong<oe>Cerzvhz" # Svg vagb gur onaare ba gur /srngherf cntr master_coder: "Orpbzr n Znfgre Pbqre ol fhofpevovat gbqnl!" paypal_redirect: "Lbh jvyy or erqverpgrq gb CnlCny gb pbzcyrgr gur fhofpevcgvba cebprff." subscribe_now: "Fhofpevor Abj" hero_blurb_1: "Trg npprff gb __cerzvhzUrebrfPbhag__ fhcre-punetrq fhofpevore-bayl urebrf! Unearff gur hafgbccnoyr cbjre bs Bxne Fgbzcsbbg, gur qrnqyl cerpvfvba bs Anevn bs gur Yrns, be fhzzba \"nqbenoyr\" fxryrgbaf jvgu Anysne Pelcgbe." hero_blurb_2: "Cerzvhz Jneevbef haybpx fghaavat znegvny fxvyyf yvxr Jnepel, Fgbzc, naq Uhey Rarzl. Be, cynl nf n Enatre, hfvat fgrnygu naq objf, guebjvat xavirf, gencf! Gel lbhe fxvyy nf n gehr pbqvat Jvmneq, naq hayrnfu n cbjreshy neenl bs Cevzbeqvny, Arpebznagvp be Ryrzragny zntvp!" hero_caption: "Rkpvgvat arj urebrf!" pet_blurb_1: "Crgf nera'g whfg nqbenoyr pbzcnavbaf, gurl nyfb cebivqr havdhr shapgvbanyvgl naq zrgubqf. Gur Onol Tevssba pna pneel havgf guebhtu gur nve, gur Jbys Chc cynlf pngpu jvgu rarzl neebjf, gur Pbhtne vf sbaq bs punfvat bterf nebhaq, naq gur Zvzvp nggenpgf pbvaf yvxr n zntarg!" pet_blurb_2: "Pbyyrpg nyy gur crgf gb qvfpbire gurve havdhr novyvgvrf!" pet_caption: "Nqbcg crgf gb nppbzcnal lbhe ureb!" game_dev_blurb: "Yrnea tnzr fpevcgvat naq ohvyq arj yriryf gb funer jvgu lbhe sevraqf! Cynpr gur vgrzf lbh jnag, jevgr pbqr sbe havg ybtvp naq orunivbe, naq frr vs lbhe sevraqf pna orng gur yriry!" game_dev_caption: "Qrfvta lbhe bja tnzrf gb punyyratr lbhe sevraqf!" everything_in_premium: "Rirelguvat lbh trg va PbqrPbzong Cerzvhz:" list_gems: "Erprvir obahf trzf gb ohl trne, crgf, naq urebrf" list_levels: "Tnva npprff gb __cerzvhzYriryfPbhag__ zber yriryf" list_heroes: "Haybpx rkpyhfvir urebrf, vapyhqr Enatre naq Jvmneq pynffrf" list_game_dev: "Znxr naq funer tnzrf jvgu sevraqf" list_web_dev: "Ohvyq jrofvgrf naq vagrenpgvir nccf" list_items: "Rdhvc Cerzvhz-bayl vgrzf yvxr crgf" list_support: "Trg Cerzvhz fhccbeg gb uryc lbh qroht gevpxl pbqr" list_clans: "Perngr cevingr pynaf gb vaivgr lbhe sevraqf naq pbzcrgr ba n tebhc yrnqreobneq" choose_hero: choose_hero: "Pubbfr Lbhe Ureb" programming_language: "Cebtenzzvat Ynathntr" programming_language_description: "Juvpu cebtenzzvat ynathntr qb lbh jnag gb hfr?" default: "Qrsnhyg" experimental: "Rkcrevzragny" python_blurb: "Fvzcyr lrg cbjreshy, terng sbe ortvaaref naq rkcregf." javascript_blurb: "Gur ynathntr bs gur jro. (Abg gur fnzr nf Wnin.)" coffeescript_blurb: "Avpre WninFpevcg flagnk." lua_blurb: "Tnzr fpevcgvat ynathntr." java_blurb: "(Fhofpevore Bayl) Naqebvq naq ragrecevfr." status: "Fgnghf" weapons: "Jrncbaf" weapons_warrior: "Fjbeqf - Fubeg Enatr, Ab Zntvp" weapons_ranger: "Pebffobjf, Thaf - Ybat Enatr, Ab Zntvp" weapons_wizard: "Jnaqf, Fgnssf - Ybat Enatr, Zntvp" attack: "Qnzntr" # Pna nyfb genafyngr nf "Nggnpx" health: "Urnygu" speed: "Fcrrq" regeneration: "Ertrarengvba" range: "Enatr" # Nf va "nggnpx be ivfhny enatr" blocks: "Oybpxf" # Nf va "guvf fuvryq oybpxf guvf zhpu qnzntr" backstab: "Onpxfgno" # Nf va "guvf qnttre qbrf guvf zhpu onpxfgno qnzntr" skills: "Fxvyyf" attack_1: "Qrnyf" attack_2: "bs yvfgrq" attack_3: "jrncba qnzntr." health_1: "Tnvaf" health_2: "bs yvfgrq" health_3: "nezbe urnygu." speed_1: "Zbirf ng" speed_2: "zrgref cre frpbaq." available_for_purchase: "Ninvynoyr sbe Chepunfr" # Fubjf hc jura lbh unir haybpxrq, ohg abg chepunfrq, n ureb va gur ureb fgber level_to_unlock: "Yriry gb haybpx:" # Ynory sbe juvpu yriry lbh unir gb orng gb haybpx n cnegvphyne ureb (pyvpx n ybpxrq ureb va gur fgber gb frr) restricted_to_certain_heroes: "Bayl pregnva urebrf pna cynl guvf yriry." skill_docs: function: "shapgvba" # fxvyy glcrf method: "zrgubq" snippet: "favccrg" number: "ahzore" array: "neenl" object: "bowrpg" string: "fgevat" writable: "jevgnoyr" # Ubire bire "nggnpx" va Lbhe Fxvyyf juvyr cynlvat n yriry gb frr zbfg bs guvf read_only: "ernq-bayl" action: "Npgvba" spell: "Fcryy" action_name: "anzr" action_cooldown: "Gnxrf" action_specific_cooldown: "Pbbyqbja" action_damage: "Qnzntr" action_range: "Enatr" action_radius: "Enqvhf" action_duration: "Qhengvba" example: "Rknzcyr" ex: "rk" # Nooerivngvba bs "rknzcyr" current_value: "Pheerag Inyhr" default_value: "Qrsnhyg inyhr" parameters: "Cnenzrgref" required_parameters: "Erdhverq Cnenzrgref" optional_parameters: "Bcgvbany Cnenzrgref" returns: "Ergheaf" granted_by: "Tenagrq ol" save_load: granularity_saved_games: "Fnirq" granularity_change_history: "Uvfgbel" options: general_options: "Trareny Bcgvbaf" # Purpx bhg gur Bcgvbaf gno va gur Tnzr Zrah juvyr cynlvat n yriry volume_label: "Ibyhzr" music_label: "Zhfvp" music_description: "Ghea onpxtebhaq zhfvp ba/bss." editor_config_title: "Rqvgbe Pbasvthengvba" editor_config_livecompletion_label: "Yvir Nhgbpbzcyrgvba" editor_config_livecompletion_description: "Qvfcynlf nhgbpbzcyrgr fhttrfgvbaf juvyr glcvat." editor_config_invisibles_label: "Fubj Vaivfvoyrf" editor_config_invisibles_description: "Qvfcynlf vaivfvoyrf fhpu nf fcnprf be gnof." editor_config_indentguides_label: "Fubj Vaqrag Thvqrf" editor_config_indentguides_description: "Qvfcynlf iregvpny yvarf gb frr vaqragngvba orggre." editor_config_behaviors_label: "Fzneg Orunivbef" editor_config_behaviors_description: "Nhgbpbzcyrgrf oenpxrgf, oenprf, naq dhbgrf." about: main_title:"Vs lbh jnag gb yrnea gb cebtenz, lbh arrq gb jevgr (n ybg bs) pbqr." main_description: "Ng PbqrPbzong, bhe wbo vf gb znxr fher lbh'er qbvat gung jvgu n fzvyr ba lbhe snpr." mission_link: "Zvffvba" team_link: "Grnz" story_link: "Fgbel" press_link: "Cerff" mission_title: "Bhe zvffvba: znxr cebtenzzvat npprffvoyr gb rirel fghqrag ba Rnegu." mission_description_1: "<fgebat>Cebtenzzvat vf zntvp</fgebat>. Vg'f gur novyvgl gb perngr guvatf sebz cher vzntvangvba. Jr fgnegrq PbqrPbzong gb tvir yrnearef gur srryvat bs jvmneqyl cbjre ng gurve svatregvcf ol hfvat <fgebat>glcrq pbqr</fgebat>." mission_description_2: "Nf vg gheaf bhg, gung ranoyrf gurz gb yrnea snfgre gbb. JNL snfgre. Vg'f yvxr univat n pbairefngvba vafgrnq bs ernqvat n znahny. Jr jnag gb oevat gung pbairefngvba gb rirel fpubby naq gb <fgebat>rirel fghqrag</fgebat>, orpnhfr rirelbar fubhyq unir gur punapr gb yrnea gur zntvp bs cebtenzzvat." team_title: "Zrrg gur PbqrPbzong grnz" team_values: "Jr inyhr bcra naq erfcrpgshy qvnybt, jurer gur orfg vqrn jvaf. Bhe qrpvfvbaf ner tebhaqrq va phfgbzre erfrnepu naq bhe cebprff vf sbphfrq ba qryvirevat gnatvoyr erfhygf sbe gurz. Rirelbar vf unaqf-ba, sebz bhe PRB gb bhe TvgUho pbagevohgbef, orpnhfr jr inyhr tebjgu naq yrneavat va bhe grnz." nick_title: "P<NAME>, PR<NAME>" nick_blurb: "Zbgving<NAME>" matt_title: "Pbsbhaqre, PGB" cat_title: "Tnzr Qrfvtare" cat_blurb: "Nveoraqre" scott_title: "Pbsbhaqre, <NAME>" scott_blurb: "Ernfbanoyr Bar" maka_title: "Phfgbzre Nqibpngr" maka_blurb: "Fgbelgryyre" rob_title: "<NAME>" rob_blurb: "Pbqrf guvatf naq fghss" josh_c_title: "Tnzr Qrfvtare" josh_c_blurb: "Qrfvtaf tnzrf" robin_title: "Cebqhpg Znantre" robin_blurb: "Fuvcf guvatf" josh_title: "Tnzr Qrfvtare" josh_blurb: "Sybbe Vf Ynin" nolan_title: "Greevgbel Znantre" lisa_title: "Fpubby Fcrpvnyvfg" lisa_blurb: "N tevggl bar" sean_title: "Greevgbel Znantre" liz_title: "Greevgbel Znantre" david_title: "Phfgbzre Fhpprff Znantre" jane_title: "Cnegarefuvc Znantre" retrostyle_title: "Vyyhfgengvba" retrostyle_blurb: "ErgebFglyr Tnzrf" jose_title: "Zhfvp" jose_blurb: "Gnxvat Bss" bryukh_title: "Tnzr Qrfvtare" bryukh_blurb: "Pbafgehpgf chmmyrf" community_title: "...naq bhe bcra-fbhepr pbzzhavgl" community_subtitle: "Bire 500 pbagevohgbef unir urycrq ohvyq PbqrPbzong, jvgu zber wbvavat rirel jrrx!" community_description_3: "PbqrPbzong vf n" community_description_link_2: "pbzzhavgl cebwrpg" community_description_1: "jvgu uhaqerqf bs cynlref ibyhagrrevat gb perngr yriryf, pbagevohgr gb bhe pbqr gb nqq srngherf, svk ohtf, cynlgrfg, naq rira genafyngr gur tnzr vagb 50 ynathntrf fb sne. Rzcyblrrf, pbagevohgbef naq gur fvgr tnva ol funevat vqrnf naq cbbyvat rssbeg, nf qbrf gur bcra fbhepr pbzzhavgl va trareny. Gur fvgr vf ohvyg ba ahzrebhf bcra fbhepr cebwrpgf, naq jr ner bcra fbheprq gb tvir onpx gb gur pbzzhavgl naq cebivqr pbqr-phevbhf cynlref n snzvyvne cebwrpg gb rkcyber naq rkcrevzrag jvgu. Nalbar pna wbva gur PbqrPbzong pbzzhavgl! Purpx bhg bhe" community_description_link: "pbagevohgr cntr" community_description_2: "sbe zber vasb." number_contributors: "Bire 450 pbagevohgbef unir yrag gurve fhccbeg naq gvzr gb guvf cebwrpg." story_title: "Bhe fgbel fb sne" story_subtitle: "Fvapr 2013, PbqrPbzong unf tebja sebz n zrer frg bs fxrgpurf gb n yvivat, guevivat tnzr." story_statistic_1a: "5,000,000+" story_statistic_1b: "gbgny cynlref" story_statistic_1c: "unir fgnegrq gurve cebtenzzvat wbhearl guebhtu PbqrPbzong" story_statistic_2a: "Jr’ir orra genafyngrq vagb bire 50 ynathntrf — bhe cynlref unvy sebz" story_statistic_2b: "200+ pbhagevrf" story_statistic_3a: "Gbtrgure, gurl unir jevggra" story_statistic_3b: "1 ovyyvba yvarf bs pbqr naq pbhagvat" story_statistic_3c: "npebff znal qvssrerag cebtenzzvat ynathntrf" story_long_way_1: "Gubhtu jr'ir pbzr n ybat jnl..." story_sketch_caption: "Avpx'f irel svefg fxrgpu qrcvpgvat n cebtenzzvat tnzr va npgvba." story_long_way_2: "jr fgvyy unir zhpu gb qb orsber jr pbzcyrgr bhe dhrfg, fb..." jobs_title: "Pbzr jbex jvgu hf naq uryc jevgr PbqrPbzong uvfgbel!" jobs_subtitle: """Qba'g frr n tbbq svg ohg vagrerfgrq va xrrcvat va gbhpu? Frr bhe "Perngr Lbhe Bja" yvfgvat.""" jobs_benefits: "Rzcyblrr Orarsvgf" jobs_benefit_4: "Hayvzvgrq inpngvba" jobs_benefit_5: "Cebsrffvbany qrirybczrag naq pbagvahvat rqhpngvba fhccbeg – serr obbxf naq tnzrf!" jobs_benefit_6: "Zrqvpny (tbyq), qragny, ivfvba, pbzzhgre" jobs_benefit_7: "Fvg-fgnaq qrfxf sbe nyy" jobs_benefit_9: "10-lrne bcgvba rkrepvfr jvaqbj" jobs_benefit_10: "Zngreavgl yrnir: 10 jrrxf cnvq, arkg 6 @ 55% fnynel" jobs_benefit_11: "Cngreavgl yrnir: 10 jrrxf cnvq" jobs_custom_title: "Perngr Lbhe Bja" jobs_custom_description: "Ner lbh cnffvbangr nobhg PbqrPbzong ohg qba'g frr n wbo yvfgrq gung zngpurf lbhe dhnyvsvpngvbaf? Jevgr hf naq fubj ubj lbh guvax lbh pna pbagevohgr gb bhe grnz. Jr'q ybir gb urne sebz lbh!" jobs_custom_contact_1: "Fraq hf n abgr ng" jobs_custom_contact_2: "vagebqhpvat lbhefrys naq jr zvtug trg va gbhpu va gur shgher!" contact_title: "Cerff & Pbagnpg" contact_subtitle: "Arrq zber vasbezngvba? Trg va gbhpu jvgu hf ng" screenshots_title: "Tnzr Fperrafubgf" screenshots_hint: "(pyvpx gb ivrj shyy fvmr)" downloads_title: "Qbjaybnq Nffrgf & Vasbezngvba" about_codecombat: "Nobhg PbqrPbzong" logo: "Ybtb" screenshots: "Fperrafubgf" character_art: "Punenpgre Neg" download_all: "Qbjaybnq Nyy" previous: "Cerivbhf" location_title: "Jr'er ybpngrq va qbjagbja FS:" teachers: licenses_needed: "Yvprafrf arrqrq" special_offer: special_offer: "Fcrpvny Bssre" project_based_title: "Cebwrpg-Onfrq Pbhefrf" project_based_description: "Jro naq Tnzr Qrirybczrag pbhefrf srngher funernoyr svany cebwrpgf." great_for_clubs_title: "Terng sbe pyhof naq ryrpgvirf" great_for_clubs_description: "Grnpuref pna chepunfr hc gb __znkDhnagvglFgnegreYvprafrf__ Fgnegre Yvprafrf." # low_price_title: "Whfg __fgnegreYvprafrCevpr__ cre fghqrag" low_price_description: "Fgnegre Yvprafrf ner npgvir sbe __fgnegreYvprafrYratguZbaguf__ zbaguf sebz chepunfr." three_great_courses: "Guerr terng pbhefrf vapyhqrq va gur Fgnegre Yvprafr:" license_limit_description: "Grnpuref pna chepunfr hc gb __znkDhnagvglFgnegreYvprafrf__ Fgnegre Yvprafrf. Lbh unir nyernql chepunfrq __dhnagvglNyernqlChepunfrq__. Vs lbh arrq zber, pbagnpg __fhccbegRznvy__. Fgnegre Yvprafrf ner inyvq sbe __fgnegreYvprafrYratguZbaguf__ zbaguf." student_starter_license: "Fghqrag Fgnegre Yvprafr" purchase_starter_licenses: "Chepunfr Fgnegre Yvprafrf" purchase_starter_licenses_to_grant: "Chepunfr Fgnegre Yvprafrf gb tenag npprff gb __fgnegreYvprafrPbhefrYvfg__" starter_licenses_can_be_used: "Fgnegre Yvprafrf pna or hfrq gb nffvta nqqvgvbany pbhefrf vzzrqvngryl nsgre chepunfr." pay_now: "Cnl Abj" we_accept_all_major_credit_cards: "Jr npprcg nyy znwbe perqvg pneqf." cs2_description: "ohvyqf ba gur sbhaqngvba sebz Vagebqhpgvba gb Pbzchgre Fpvrapr, qvivat vagb vs-fgngrzragf, shapgvbaf, riragf naq zber." wd1_description: "vagebqhprf gur onfvpf bs UGZY naq PFF juvyr grnpuvat fxvyyf arrqrq sbe fghqragf gb ohvyq gurve svefg jrocntr." gd1_description: "hfrf flagnk fghqragf ner nyernql snzvyvne jvgu gb fubj gurz ubj gb ohvyq naq funer gurve bja cynlnoyr tnzr yriryf." see_an_example_project: "frr na rknzcyr cebwrpg" get_started_today: "Trg fgnegrq gbqnl!" want_all_the_courses: "Jnag nyy gur pbhefrf? Erdhrfg vasbezngvba ba bhe Shyy Yvprafrf." compare_license_types: "Pbzcner Yvprafr Glcrf:" cs: "Pbzchgre Fpvrapr" wd: "Jro Qrirybczrag" wd1: "Jro Qrirybczrag 1" gd: "Tnzr Qrirybczrag" gd1: "Tnzr Qrirybczrag 1" maximum_students: "Znkvzhz # bs Fghqragf" unlimited: "Hayvzvgrq" priority_support: "Cevbevgl fhccbeg" yes: "Lrf" price_per_student: "__cevpr__ cre fghqrag" pricing: "Cevpvat" free: "Serr" purchase: "Chepunfr" courses_prefix: "Pbhefrf" courses_suffix: "" course_prefix: "Pbhefr" course_suffix: "" teachers_quote: subtitle: "Trg lbhe fghqragf fgnegrq va yrff guna na ubhe. Lbh'yy or noyr gb <fgebat>perngr n pynff, nqq fghqragf, naq zbavgbe gurve cebterff</fgebat> nf gurl yrnea pbzchgre fpvrapr." email_exists: "Hfre rkvfgf jvgu guvf rznvy." phone_number: "Cubar <NAME>hzore" phone_number_help: "Jurer pna jr ernpu lbh qhevat gur jbexqnl?" primary_role_label: "Lbhe Cevznel Ebyr" role_default: "Fryrpg Ebyr" primary_role_default: "Fryrpg Cevznel Ebyr" purchaser_role_default: "Fryrpg Chepunfre Ebyr" tech_coordinator: "Grpuabybtl pbbeqvangbe" advisor: "<NAME>/Nq<NAME>" principal: "Cevapvcny" superintendent: "<NAME>" parent: "Cnerag" purchaser_role_label: "Lbhe Chepunfre Ebyr" influence_advocate: "Vasyhrapr/Nqibpngr" evaluate_recommend: "Rinyhngr/Erpbzzraq" approve_funds: "Nccebir Shaqf" no_purchaser_role: "Ab ebyr va chepunfr qrpvfvbaf" district_label: "Qvfgevpg" district_name: "Qvfgevpg Anzr" district_na: "Ragre A/N vs abg nccyvpnoyr" organization_label: "Fpubby" school_name: "<NAME>" city: "Pvgl" state: "Fgngr" country: "Pbhagel" num_students_help: "Ubj znal fghqragf jvyy hfr PbqrPbzong?" num_students_default: "Fryrpg Enatr" education_level_label: "Rqhpngvba Yriry bs Fghqragf" education_level_help: "Pubbfr nf znal nf nccyl." elementary_school: "Ryrzragnel Fpubby" high_school: "Uvtu Fpubby" please_explain: "(cyrnfr rkcynva)" middle_school: "Zvqqyr Fpubby" college_plus: "Pbyyrtr be uvture" referrer: "Ubj qvq lbh urne nobhg hf?" referrer_help: "Sbe rknzcyr: sebz nabgure grnpure, n pbasrerapr, lbhe fghqragf, Pbqr.bet, rgp." referrer_default: "Fryrpg Bar" referrer_hoc: "Pbqr.bet/Ubhe bs Pbqr" referrer_teacher: "N grnpure" referrer_admin: "Na nqzvavfgengbe" referrer_student: "N fghqrag" referrer_pd: "Cebsrffvbany genvavatf/jbexfubcf" referrer_web: "Tbbtyr" referrer_other: "Bgure" anything_else: "Jung xvaq bs pynff qb lbh nagvpvcngr hfvat PbqrPbzong sbe?" thanks_header: "Erdhrfg Erprvirq!" thanks_sub_header: "Gunaxf sbe rkcerffvat vagrerfg va PbqrPbzong sbe lbhe fpubby." thanks_p: "Jr'yy or va gbhpu fbba! Vs lbh arrq gb trg va pbagnpg, lbh pna ernpu hf ng:" back_to_classes: "Onpx gb Pynffrf" finish_signup: "Svavfu perngvat lbhe grnpure nppbhag:" finish_signup_p: "Perngr na nppbhag gb frg hc n pynff, nqq lbhe fghqragf, naq zbavgbe gurve cebterff nf gurl yrnea pbzchgre fpvrapr." signup_with: "Fvta hc jvgu:" connect_with: "Pbaarpg jvgu:" conversion_warning: "JNEAVAT: Lbhe pheerag nppbhag vf n <rz>Fghqrag Nppbhag</rz>. Bapr lbh fhozvg guvf sbez, lbhe nppbhag jvyy or hcqngrq gb n Grnpure Nppbhag." learn_more_modal: "Grnpure nppbhagf ba PbqrPbzong unir gur novyvgl gb zbavgbe fghqrag cebterff, nffvta yvprafrf naq znantr pynffebbzf. Grnpure nppbhagf pnaabg or n cneg bs n pynffebbz - vs lbh ner pheeragyl raebyyrq va n pynff hfvat guvf nppbhag, lbh jvyy ab ybatre or noyr gb npprff vg bapr lbh hcqngr gb n Grnpure Nppbhag." create_account: "Per<KEY> n <KEY>" create_account_subtitle: "Trg npprff gb grnpure-bayl gbbyf sbe hfvat PbqrPbzong va gur pynffebbz. <fgebat>Frg hc n pynff</fgebat>, nqq lbhe fghqragf, naq <fgebat>zbavgbe gurve cebterff</fgebat>!" convert_account_title: "Hcqngr gb Grnpure Nppbhag" not: "Abg" versions: save_version_title: "Fnir Arj Irefvba" new_major_version: "Arj Znwbe Irefvba" submitting_patch: "Fhozvggvat Cngpu..." cla_prefix: "Gb fnir punatrf, svefg lbh zhfg nterr gb bhe" cla_url: "PYN" cla_suffix: "." cla_agree: "V NTERR" owner_approve: "Na bjare jvyy arrq gb nccebir vg orsber lbhe punatrf jvyy orpbzr ivfvoyr." contact: contact_us: "Pbagnpg PbqrPbzong" welcome: "Tbbq gb urne sebz lbh! Hfr guvf sbez gb fraq hf rznvy. " forum_prefix: "Sbe nalguvat choyvp, cyrnfr gel " forum_page: "bhe sbehz" forum_suffix: " vafgrnq." faq_prefix: "Gurer'f nyfb n" faq: "SND" subscribe_prefix: "Vs lbh arrq uryc svthevat bhg n yriry, cyrnfr" subscribe: "ohl n PbqrPbzong fhofpevcgvba" subscribe_suffix: "naq jr'yy or unccl gb uryc lbh jvgu lbhe pbqr." subscriber_support: "Fvapr lbh'er n PbqrPbzong fhofpevore, lbhe rznvy jvyy trg bhe cevbevgl fhccbeg." screenshot_included: "Fperrafubg vapyhqrq." where_reply: "Jurer fubhyq jr ercyl?" send: "Fraq Srrqonpx" account_settings: title: "Nppbhag Frggvatf" not_logged_in: "Ybt va be perngr na nppbhag gb punatr lbhe frggvatf." me_tab: "Zr" picture_tab: "Cvpgher" delete_account_tab: "Qryrgr Lbhe Nppbhag" wrong_email: "J<NAME>" wrong_password: "<PASSWORD>" use_gravatar: "Punatr lbhe cebsvyr cvpgher ol fvtavat hc sbe Teningne" delete_this_account: "Qryrgr guvf nppbhag creznaragyl" reset_progress_tab: "Erfrg Nyy Cebterff" reset_your_progress: "Pyrne nyy lbhe cebterff naq fgneg bire" god_mode: "Tbq Zbqr" emails_tab: "Rznvyf" admin: "Nqzva" manage_subscription: "Pyvpx urer gb znantr lbhe fhofpevcgvba." new_password: "<PASSWORD>" new_password_verify: "<PASSWORD>" type_in_email: "Glcr va lbhe rznvy be hfreanzr gb pbasvez nppbhag qryrgvba." type_in_email_progress: "Glcr va lbhe rznvy gb pbasvez qryrgvat lbhe cebterff." type_in_password: "<PASSWORD>." email_subscriptions: "Rznvy Fhofpevcgvbaf" email_subscriptions_none: "Ab Rznvy Fhofpevcgvbaf." email_announcements: "Naabhaprzragf" email_announcements_description: "Trg rznvyf ba gur yngrfg arjf naq qrirybczragf ng PbqrPbzong." email_notifications: "Abgvsvpngvbaf" email_notifications_summary: "Pbagebyf sbe crefbanyvmrq, nhgbzngvp rznvy abgvsvpngvbaf eryngrq gb lbhe PbqrPbzong npgvivgl." email_any_notes: "Nal Abgvsvpngvbaf" email_any_notes_description: "Qvfnoyr gb fgbc nyy npgvivgl abgvsvpngvba rznvyf." email_news: "Arjf" email_recruit_notes: "Wbo Bccbeghavgvrf" email_recruit_notes_description: "Vs lbh cynl ernyyl jryy, jr znl pbagnpg lbh nobhg trggvat lbh n (orggre) wbo." contributor_emails: "Pbagevohgbe <NAME>" contribute_prefix: "Jr'er ybbxvat sbe crbcyr gb wbva bhe cnegl! Purpx bhg gur " contribute_page: "pbagevohgr cntr" contribute_suffix: " gb svaq bhg zber." email_toggle: "Gbttyr Nyy" error_saving: "Reebe Fnivat" saved: "Punatrf Fnirq" password_mismatch: "<PASSWORD>." password_repeat: "<PASSWORD>." keyboard_shortcuts: keyboard_shortcuts: "Xrlobneq Fubegphgf" space: "Fcnpr" enter: "Ragre" press_enter: "cerff ragre" escape: "Rfpncr" shift: "Fuvsg" run_code: "Eha pheerag pbqr." run_real_time: "Eha va erny gvzr." continue_script: "Pbagvahr cnfg pheerag fpevcg." skip_scripts: "Fxvc cnfg nyy fxvccnoyr fpevcgf." toggle_playback: "Gbttyr cynl/cnhfr." scrub_playback: "Fpeho onpx naq sbejneq guebhtu gvzr." single_scrub_playback: "Fpeho onpx naq sbejneq guebhtu gvzr ol n fvatyr senzr." scrub_execution: "Fpeho guebhtu pheerag fcryy rkrphgvba." toggle_debug: "Gbttyr qroht qvfcynl." toggle_grid: "Gbttyr tevq bireynl." toggle_pathfinding: "Gbttyr cngusvaqvat bireynl." beautify: "Ornhgvsl lbhe pbqr ol fgnaqneqvmvat vgf sbeznggvat." maximize_editor: "Znkvzvmr/zvavzvmr pbqr rqvgbe." community: main_title: "PbqrPbzong Pbzzhavgl" introduction: "Purpx bhg gur jnlf lbh pna trg vaibyirq orybj naq qrpvqr jung fbhaqf gur zbfg sha. Jr ybbx sbejneq gb jbexvat jvgu lbh!" level_editor_prefix: "Hfr gur PbqrPbzong" level_editor_suffix: "gb perngr naq rqvg yriryf. Hfref unir perngrq yriryf sbe gurve pynffrf, sevraqf, unpxngubaf, fghqragf, naq fvoyvatf. Vs perngr n arj yriry fbhaqf vagvzvqngvat lbh pna fgneg ol sbexvat bar bs bhef!" thang_editor_prefix: "Jr pnyy havgf jvguva gur tnzr 'gunatf'. Hfr gur" thang_editor_suffix: "gb zbqvsl gur PbqrPbzong fbhepr negjbex. Nyybj havgf gb guebj cebwrpgvyrf, nygre gur qverpgvba bs na navzngvba, punatr n havg'f uvg cbvagf, be hcybnq lbhe bja irpgbe fcevgrf." article_editor_prefix: "Frr n zvfgnxr va fbzr bs bhe qbpf? Jnag gb znxr fbzr vafgehpgvbaf sbe lbhe bja perngvbaf? Purpx bhg gur" article_editor_suffix: "naq uryc PbqrPbzong cynlref trg gur zbfg bhg bs gurve cynlgvzr." find_us: "Svaq hf ba gurfr fvgrf" social_github: "Purpx bhg nyy bhe pbqr ba TvgUho" social_blog: "Ernq gur PbqrPbzong oybt ba Frgg" social_discource: "Wbva gur qvfphffvba ba bhe Qvfpbhefr sbehz" social_facebook: "Yvxr PbqrPbzong ba Snprobbx" social_twitter: "Sbyybj PbqrPbzong ba Gjvggre" social_gplus: "Wbva PbqrPbzong ba Tbbtyr+" social_slack: "Pung jvgu hf va gur choyvp PbqrPbzong Fynpx punaary" contribute_to_the_project: "Pbagevohgr gb gur cebwrpg" clans: clan: "Pyna" clans: "Pynaf" new_name: "<NAME>" new_description: "Arj <NAME>yna qrfpevcgvba" make_private: "Znxr pyna cevingr" subs_only: "fhofpevoref bayl" create_clan: "<NAME>" private_preview: "Cerivrj" private_clans: "<NAME>" public_clans: "Cho<NAME>" my_clans: "Zl <NAME>" clan_name: "<NAME>" name: "<NAME>" chieftain: "<NAME>" edit_clan_name: "<NAME>" edit_clan_description: "Rq<NAME>yna Qrfpevcgvba" edit_name: "<NAME>" edit_description: "rqvg qrfpevcgvba" private: "(cevingr)" summary: "Fhzznel" average_level: "Nirentr Yriry" average_achievements: "Nirentr Npuvrirzragf" delete_clan: "<NAME>" leave_clan: "<NAME>" join_clan: "<NAME>" invite_1: "Vaivgr:" invite_2: "*Vaivgr cynlref gb guvf Pyna ol fraqvat gurz guvf yvax." members: "Zrzoref" progress: "Cebterff" not_started_1: "abg fgnegrq" started_1: "fgnegrq" complete_1: "pbzcyrgr" exp_levels: "Rkcnaq yriryf" rem_hero: "Erzbir Ureb" status: "Fgnghf" complete_2: "Pbzcyrgr" started_2: "Fgnegrq" not_started_2: "Abg Fgnegrq" view_solution: "Pyvpx gb ivrj fbyhgvba." view_attempt: "Pyvpx gb ivrj nggrzcg." latest_achievement: "Yngrfg Npuvrirzrag" playtime: "Cynlgvzr" last_played: "Ynfg cynlrq" leagues_explanation: "Cynl va n yrnthr ntnvafg bgure pyna zrzoref va gurfr zhygvcynlre neran vafgnaprf." track_concepts1: "Genpx pbaprcgf" track_concepts2a: "yrnearq ol rnpu fghqrag" track_concepts2b: "yrnearq ol rnpu zrzore" track_concepts3a: "Genpx yriryf pbzcyrgrq sbe rnpu fghqrag" track_concepts3b: "Genpx yriryf pbzcyrgrq sbe rnpu zrzore" track_concepts4a: "Frr lbhe fghqragf'" track_concepts4b: "Frr lbhe zrzoref'" track_concepts5: "fbyhgvbaf" track_concepts6a: "Fbeg fghqragf ol anzr be cebterff" track_concepts6b: "Fbeg zrzoref ol anzr be cebterff" track_concepts7: "Erdhverf vaivgngvba" track_concepts8: "gb wbva" private_require_sub: "Cevingr pynaf erdhver n fhofpevcgvba gb perngr be wbva." courses: create_new_class: "Perngr Ar<NAME>" unnamed_class: "<NAME>" edit_settings1: "Rqvg Pynff Frggvatf" add_students: "Nqq <NAME>" stats: "Fgngvfgvpf" student_email_invite_blurb: "Lbhe fghqragf pna nyfb hfr pynff pbqr <fgebat>__pynffPbqr__</fgebat> jura perngvat n Fghqrag Nppbhag, ab rznvy erdhverq." total_students: "Gbgny fghqragf:" average_time: "Nirentr yriry cynl gvzr:" total_time: "Gbgny cynl gvzr:" average_levels: "Nirentr yriryf pbzcyrgrq:" total_levels: "Gbgny yriryf pbzcyrgrq:" students: "F<NAME>" concepts: "Pbaprcgf" play_time: "Cynl gvzr:" completed: "Pbzcyrgrq:" enter_emails: "Frcnengr rnpu rznvy nqqerff ol n yvar oernx be pbzznf" send_invites: "Va<NAME>" number_programming_students: "Ahzore bs Cebtenzzvat Fghqragf" number_total_students: "Gbgny Fghqragf va Fpubby/Qvfgevpg" enroll: "<NAME>" enroll_paid: "Raebyy Fghqragf va Cnvq Pbhefrf" get_enrollments: "Trg Zber Yvprafrf" change_language: "Punatr Pbhefr Ynathntr" keep_using: "Xrrc Hfvat" switch_to: "Fjvgpu Gb" greetings: "T<NAME>!" back_classrooms: "Onpx gb zl pynffebbzf" back_classroom: "Onpx gb pynffebbz" back_courses: "Onpx gb zl pbhefrf" edit_details: "Rqvg pynff qrgnvyf" purchase_enrollments: "Chepunfr Fghqrag Yvprafrf" remove_student: "<NAME>" assign: "Nffvta" to_assign: "gb nffvta cnvq pbhefrf." student: "<NAME>" teacher: "<NAME>" arena: "Neran" available_levels: "Ninvynoyr Yriryf" started: "fgnegrq" complete: "pbzcyrgr" practice: "cenpgvpr" required: "erdhverq" welcome_to_courses: "Nqiragheref, jrypbzr gb Pbhefrf!" ready_to_play: "Ernql gb cynl?" start_new_game: "Fgneg Arj Tnzr" play_now_learn_header: "Cynl abj gb yrnea" play_now_learn_1: "onfvp flagnk gb pbageby lbhe punenpgre" play_now_learn_2: "juvyr ybbcf gb fbyir crfxl chmmyrf" play_now_learn_3: "fgevatf & inevnoyrf gb phfgbzvmr npgvbaf" play_now_learn_4: "ubj gb qrsrng na bter (vzcbegnag yvsr fxvyyf!)" welcome_to_page: "Zl Fghqrag Qnfuobneq" my_classes: "Pheerag Pynffrf" class_added: "Pynff fhpprffshyyl nqqrq!" view_levels: "ivrj nyy yriryf va pbhefr" view_project_gallery: "ivrj zl pynffzngrf' cebwrpgf" join_class: "Wbva N Pynff" join_class_2: "Wbva pynff" ask_teacher_for_code: "Nfx lbhe grnpure vs lbh unir n PbqrPbzong pynff pbqr! Vs fb, ragre vg orybj:" enter_c_code: "<Ragre Pynff Pbqr>" join: "Wbva" joining: "Wbvavat pynff" course_complete: "Pbhefr Pbzcyrgr" play_arena: "Cynl Neran" view_project: "Ivrj Cebwrpg" start: "Fgneg" last_level: "Ynfg yriry cynlrq" not_you: "Abg lbh?" continue_playing: "Pbagvahr Cyn<NAME>" option1_header: "Vaivgr Fghqragf ol Rznvy" remove_student1: "<NAME>" are_you_sure: "Ner lbh fher lbh jnag gb erzbir guvf fghqrag sebz guvf pynff?" remove_description1: "Fghqrag jvyy ybfr npprff gb guvf pynffebbz naq nffvtarq pynffrf. Cebterff naq tnzrcynl vf ABG ybfg, naq gur fghqrag pna or nqqrq onpx gb gur pynffebbz ng nal gvzr." remove_description2: "Gur npgvingrq cnvq yvprafr jvyy abg or erghearq." license_will_revoke: "Guvf fghqrag'f cnvq yvprafr jvyy or eribxrq naq znqr ninvynoyr gb nffvta gb nabgure fghqrag." keep_student: "<NAME>" removing_user: "<NAME>" subtitle: "Erivrj pbhefr bireivrjf naq yriryf" # Syng fglyr erqrfvta changelog: "Ivrj yngrfg punatrf gb pbhefr yriryf." select_language: "Fryrpg ynathntr" select_level: "Fryrpg yriry" play_level: "Cynl Yriry" concepts_covered: "Pbaprcgf pbirerq" view_guide_online: "Yriry Bireivrjf naq Fbyhgvbaf" grants_lifetime_access: "Tenagf npprff gb nyy Pbhefrf." enrollment_credits_available: "Yvprafrf Ninvynoyr:" language_select: "Fryrpg n ynathntr" # PynffebbzFrggvatfZbqny language_cannot_change: "Ynathntr pnaabg or punatrq bapr fghqragf wbva n pynff." avg_student_exp_label: "Nirentr Fghqrag Cebtenzzvat Rkcrevrapr" avg_student_exp_desc: "Guvf jvyy uryc hf haqrefgnaq ubj gb cnpr pbhefrf orggre." avg_student_exp_select: "Fryrpg gur orfg bcgvba" avg_student_exp_none: "Ab Rkcrevrapr - yvggyr gb ab rkcrevrapr" avg_student_exp_beginner: "Ortvaare - fbzr rkcbfher be oybpx-onfrq" avg_student_exp_intermediate: "Vagrezrqvngr - fbzr rkcrevrapr jvgu glcrq pbqr" avg_student_exp_advanced: "Nqinaprq - rkgrafvir rkcrevrapr jvgu glcrq pbqr" avg_student_exp_varied: "Inevrq Yriryf bs Rkcrevrapr" student_age_range_label: "Fghqrag Ntr Enatr" student_age_range_younger: "Lbhatre guna 6" student_age_range_older: "Byqre guna 18" student_age_range_to: "gb" create_class: "Perngr Pynff" class_name: "<NAME>" teacher_account_restricted: "Lbhe nppbhag vf n grnpure nppbhag naq pnaabg npprff fghqrag pbagrag." account_restricted: "N fghqrag nppbhag vf erdhverq gb npprff guvf cntr." update_account_login_title: "Ybt va gb hcqngr lbhe nppbhag" update_account_title: "Lbhe nppbhag arrqf nggragvba!" update_account_blurb: "Orsber lbh pna npprff lbhe pynffrf, pubbfr ubj lbh jnag gb hfr guvf nppbhag." update_account_current_type: "Pheerag Nppbhag Glcr:" update_account_account_email: "Nppbhag Rznvy/Hfreanzr:" update_account_am_teacher: "V nz n grnpure" update_account_keep_access: "Xrrc npprff gb pynffrf V'ir perngrq" update_account_teachers_can: "Grnpure nppbhagf pna:" update_account_teachers_can1: "Perngr/znantr/nqq pynffrf" update_account_teachers_can2: "Nffvta/raebyy fghqragf va pbhefrf" update_account_teachers_can3: "Haybpx nyy pbhefr yriryf gb gel bhg" update_account_teachers_can4: "Npprff arj grnpure-bayl srngherf nf jr eryrnfr gurz" update_account_teachers_warning: "Jneavat: Lbh jvyy or erzbirq sebz nyy pynffrf gung lbh unir cerivbhfyl wbvarq naq jvyy abg or noyr gb cynl nf n fghqrag." update_account_remain_teacher: "Erznva n Grnpure" update_account_update_teacher: "Hcqngr gb Grnpure" update_account_am_student: "V nz n fghqrag" update_account_remove_access: "Erzbir npprff gb pynffrf V unir perngrq" update_account_students_can: "Fghqrag nppbhagf pna:" update_account_students_can1: "Wbva pynffrf" update_account_students_can2: "Cynl guebhtu pbhefrf nf n fghqrag naq genpx lbhe bja cebterff" update_account_students_can3: "Pbzcrgr ntnvafg pynffzngrf va neranf" update_account_students_can4: "Npprff arj fghqrag-bayl srngherf nf jr eryrnfr gurz" update_account_students_warning: "Jneavat: Lbh jvyy abg or noyr gb znantr nal pynffrf gung lbh unir cerivbhfyl perngrq be perngr arj pynffrf." unsubscribe_warning: "Jneavat: Lbh jvyy or hafhofpevorq sebz lbhe zbaguyl fhofpevcgvba." update_account_remain_student: "Erznva n Fghqrag" update_account_update_student: "Hcqngr gb Fghqrag" need_a_class_code: "Lbh'yy arrq n Pynff Pbqr sbe gur pynff lbh'er wbvavat:" update_account_not_sure: "Abg fher juvpu bar gb pubbfr? Rznvy" update_account_confirm_update_student: "Ner lbh fher lbh jnag gb hcqngr lbhe nppbhag gb n Fghqrag rkcrevrapr?" update_account_confirm_update_student2: "Lbh jvyy abg or noyr gb znantr nal pynffrf gung lbh unir cerivbhfyl perngrq be perngr arj pynffrf. Lbhe cerivbhfyl perngrq pynffrf jvyy or erzbirq sebz PbqrPbzong naq pnaabg or erfgberq." instructor: "Vafgehpgbe: " youve_been_invited_1: "Lbh'ir orra vaivgrq gb wbva " youve_been_invited_2: ", jurer lbh'yy yrnea " youve_been_invited_3: " jvgu lbhe pynffzngrf va PbqrPbzong." by_joining_1: "<NAME> " by_joining_2: "jvyy or noyr gb uryc erfrg lbhe cnffjbeq vs lbh sbetrg be ybfr vg. Lbh pna nyfb irevsl lbhe rznvy nqqerff fb gung lbh pna erfrg gur cnffjbeq lbhefrys!" sent_verification: "Jr'ir frag n irevsvpngvba rznvy gb:" you_can_edit: "Lbh pna rqvg lbhe rznvy nqqerff va " account_settings: "Nppbhag Frggvatf" select_your_hero: "Fryrpg Lbhe Ureb" select_your_hero_description: "Lbh pna nyjnlf punatr lbhe ureb ol tbvat gb lbhe Pbhefrf cntr naq pyvpxvat \"Punatr Ureb\"" select_this_hero: "Fryrpg guvf Ureb" current_hero: "Pheerag Ureb:" current_hero_female: "Pheerag Ureb:" web_dev_language_transition: "Nyy pynffrf cebtenz va UGZY / WninFpevcg sbe guvf pbhefr. Pynffrf gung unir orra hfvat Clguba jvyy fgneg jvgu rkgen WninFpevcg vageb yriryf gb rnfr gur genafvgvba. Pynffrf gung ner nyernql hfvat WninFpevcg jvyy fxvc gur vageb yriryf." course_membership_required_to_play: "Lbh'yy arrq gb wbva n pbhefr gb cynl guvf yriry." license_required_to_play: "Nfx lbhe grnpure gb nffvta n yvprafr gb lbh fb lbh pna pbagvahr gb cynl PbqrPbzong!" update_old_classroom: "Arj fpubby lrne, arj yriryf!" update_old_classroom_detail: "Gb znxr fher lbh'er trggvat gur zbfg hc-gb-qngr yriryf, znxr fher lbh perngr n arj pynff sbe guvf frzrfgre ol pyvpxvat Perngr n Arj Pynff ba lbhe" teacher_dashboard: "grnpure qnfuobneq" update_old_classroom_detail_2: "naq tvivat fghqragf gur arj Pynff Pbqr gung nccrnef." view_assessments: "Ivrj Nffrffzragf" challenge: "Punyyratr:" challenge_level: "Punyyratr Yriry:" status: "Fgnghf:" assessments: "Nffrffzragf" challenges: "Punyyratrf" level_name: "Yriry Anzr:" keep_trying: "Xrrc Gelvat" start_challenge: "Fgneg Punyyratr" locked: "Ybpxrq" concepts_used: "Pbaprcgf Hfrq:" project_gallery: no_projects_published: "Or gur svefg gb choyvfu n cebwrpg va guvf pbhefr!" view_project: "Ivrj Cebwrpg" edit_project: "Rqvg Cebwrpg" teacher: assigning_course: "Nffvtavat pbhefr" back_to_top: "Onpx gb Gbc" click_student_code: "Pyvpx ba nal yriry gung gur fghqrag unf fgnegrq be pbzcyrgrq orybj gb ivrj gur pbqr gurl jebgr." code: "__anzr__'f Pbqr" course_not_started: "Fghqrag unf abg fgnegrq guvf pbhefr lrg." no_code_yet: "Fghqrag unf abg jevggra nal pbqr sbe guvf yriry lrg." open_ended_level: "Bcra-Raqrq Yriry" removing_course: "Erzbivat pbhefr" solution_arena_blurb: "Fghqragf ner rapbhentrq gb fbyir neran yriryf perngviryl. Gur fbyhgvba cebivqrq orybj zrrgf gur erdhverzragf bs gur neran yriry." solution_challenge_blurb: "Fghqragf ner rapbhentrq gb fbyir bcra-raqrq punyyratr yriryf perngviryl. Bar cbffvoyr fbyhgvba vf qvfcynlrq orybj." solution_project_blurb: "Fghqragf ner rapbhentrq gb ohvyq n perngvir cebwrpg va guvf yriry. Gur fbyhgvba cebivqrq orybj zrrgf gur erdhverzragf bs gur cebwrpg yriry." course_solution: "Pbhefr Fbyhgvba" level_overview_solutions: "Yriry Bireivrj naq Fbyhgvbaf" no_student_assigned: "Ab fghqragf unir orra nffvtarq guvf pbhefr." paren_new: "(arj)" student_code: "__anzr__'f Fghqrag Pbqr" # {punatr} teacher_dashboard: "Grnpure Qnfuobneq" # Anione my_classes: "Zl Pynffrf" courses: "Pbhefr Thvqrf" enrollments: "Fghqrag Yvprafrf" resources: "Erfbheprf" help: "Uryc" language: "Ynathntr" edit_class_settings: "rqvg pynff frggvatf" access_restricted: "Nppbhag Hcqngr Erdhverq" teacher_account_required: "N grnpure nppbhag vf erdhverq gb npprff guvf pbagrag." create_teacher_account: "<NAME>" what_is_a_teacher_account: "J<NAME>'<NAME>?" teacher_account_explanation: "N PbqrPbzong Grnpure nppbhag nyybjf lbh gb frg hc pynffebbzf, zbavgbe fghqragf’ cebterff nf gurl jbex guebhtu pbhefrf, znantr yvprafrf naq npprff erfbheprf gb nvq va lbhe pheevphyhz-ohvyqvat." current_classes: "Pheerag Pynffrf" archived_classes: "Nepuvirq Pynffrf" archived_classes_blurb: "Pynffrf pna or nepuvirq sbe shgher ersrerapr. Hanepuvir n pynff gb ivrj vg va gur Pheerag Pynffrf yvfg ntnva." view_class: "ivrj pynff" archive_class: "nepuvir pynff" unarchive_class: "hanepuvir pynff" unarchive_this_class: "Hanepuvir guvf pynff" no_students_yet: "Guvf pynff unf ab fghqragf lrg." no_students_yet_view_class: "Ivrj pynff gb nqq fghqragf." try_refreshing: "(Lbh znl arrq gb erserfu gur cntr)" create_new_class: "Perngr n Arj Pynff" class_overview: "Pynff Bireivrj" # Ivrj Pynff cntr avg_playtime: "Nirentr yriry cynlgvzr" total_playtime: "Gbgny cynl gvzr" avg_completed: "Nirentr yriryf pbzcyrgrq" total_completed: "Gbgny yriryf pbzcyrgrq" created: "Perngrq" concepts_covered: "Pbaprcgf pbirerq" earliest_incomplete: "Rneyvrfg vapbzcyrgr yriry" latest_complete: "Yngrfg pbzcyrgrq yriry" enroll_student: "<NAME>" apply_license: "Nccyl Yvprafr" revoke_license: "Eribxr Yvprafr" course_progress: "Pbhefr Cebterff" not_applicable: "A/N" edit: "rqvg" edit_2: "Rqvg" remove: "erzbir" latest_completed: "Yngrfg pbzcyrgrq:" sort_by: "Fbeg ol" progress: "Cebterff" concepts_used: "Pbaprcgf hfrq ol Fghqrag:" concept_checked: "Pbaprcg purpxrq:" completed: "Pbzcyrgrq" practice: "Cenpgvpr" started: "Fgnegrq" no_progress: "Ab cebterff" not_required: "Abg erdhverq" select_course: "Fryrpg pbhefr gb ivrj" progress_color_key: "<KEY> level_in_progress: "Yriry va Cebterff" level_not_started: "Yriry Abg Fgnegrq" project_or_arena: "Cebwrpg be Neran" students_not_assigned: "Fghqragf jub unir abg orra nffvtarq {{pbhefrAnzr}}" course_overview: "Pbhefr Bireivrj" copy_class_code: "Pbcl Pynff Pbqr" class_code_blurb: "Fghqragf pna wbva lbhe pynff hfvat guvf Pynff Pbqr. Ab rznvy nqqerff vf erdhverq jura perngvat n Fghqrag nppbhag jvgu guvf Pynff Pbqr." copy_class_url: "Pbcl Pynff HEY" class_join_url_blurb: "Lbh pna nyfb cbfg guvf havdhr pynff HEY gb n funerq jrocntr." add_students_manually: "Vaiv<NAME>ghqragf ol Rznvy" bulk_assign: "Fryrpg pbhefr" assigned_msg_1: "{{ahzoreNffvtarq}} fghqragf jrer nffvtarq {{pbhefrAnzr}}." assigned_msg_2: "{{ahzoreRaebyyrq}} yvprafrf jrer nccyvrq." assigned_msg_3: "Lbh abj unir {{erznvavatFcbgf}} ninvynoyr yvprafrf erznvavat." assign_course: "Nffvta Pbhefr" removed_course_msg: "{{ahzoreErzbirq}} fghqragf jrer erzbirq sebz {{pbhefrAnzr}}." remove_course: "Erzbir Pbhefr" not_assigned_modal_title: "Pbhefrf jrer abg nffvtarq" not_assigned_modal_starter_body_1: "Guvf pbhefr erdhverf n Fgnegre Yvprafr. Lbh qb abg unir rabhtu Fgnegre Yvprafrf ninvynoyr gb nffvta guvf pbhefr gb nyy __fryrpgrq__ fryrpgrq fghqragf." not_assigned_modal_starter_body_2: "Chepunfr Fgnegre Yvprafrf gb tenag npprff gb guvf pbhefr." not_assigned_modal_full_body_1: "Guvf pbhefr erdhverf n Shyy Yvprafr. Lbh qb abg unir rabhtu Shyy Yvprafrf ninvynoyr gb nffvta guvf pbhefr gb nyy __fryrpgrq__ fryrpgrq fghqragf." not_assigned_modal_full_body_2: "Lbh bayl unir __ahzShyyYvprafrfNinvynoyr__ Shyy Yvprafrf ninvynoyr (__ahzFghqragfJvgubhgShyyYvprafrf__ fghqragf qb abg pheeragyl unir n Shyy Yvprafr npgvir)." not_assigned_modal_full_body_3: "Cyrnfr fryrpg srjre fghqragf, be ernpu bhg gb __fhccbegRznvy__ sbe nffvfgnapr." assigned: "Nffvtarq" enroll_selected_students: "<NAME>" no_students_selected: "Ab fghqragf jrer fryrpgrq." show_students_from: "Fubj fghqragf sebz" # Raebyy fghqragf zbqny apply_licenses_to_the_following_students: "Nccyl Yvprafrf gb gur Sbyybjvat Fghqragf" students_have_licenses: "Gur sbyybjvat fghqragf nyernql unir yvprafrf nccyvrq:" all_students: "<NAME>" apply_licenses: "Nccyl Yvprafrf" not_enough_enrollments: "Abg rabhtu yvprafrf ninvynoyr." enrollments_blurb: "Fghqragf ner erdhverq gb unir n yvprafr gb npprff nal pbagrag nsgre gur svefg pbhefr." how_to_apply_licenses: "Ubj gb Nccyl Yvprafrf" export_student_progress: "Rkcbeg Fghqrag Cebterff (PFI)" send_email_to: "Fraq Erpbire Cnffjbeq Rznvy gb:" email_sent: "Rznvy frag" send_recovery_email: "Fraq erpbirel rznvy" enter_new_password_below: "<PASSWORD>:" change_password: "<PASSWORD>" changed: "Punatrq" available_credits: "Ninvynoyr Yvprafrf" pending_credits: "Craqvat Yvprafrf" empty_credits: "Rkunhfgrq Yvprafrf" license_remaining: "yvprafr erznvavat" licenses_remaining: "yvprafrf erznvavat" one_license_used: "1 yvprafr unf orra hfrq" num_licenses_used: "__ahzYvprafrfHfrq__ yvprafrf unir orra hfrq" starter_licenses: "fgnegre yvprafrf" start_date: "fgneg qngr:" end_date: "raq qngr:" get_enrollments_blurb: " Jr'yy uryc lbh ohvyq n fbyhgvba gung zrrgf gur arrqf bs lbhe pynff, fpubby be qvfgevpg." how_to_apply_licenses_blurb_1: "Jura n grnpure nffvtaf n pbhefr gb n fghqrag sbe gur svefg gvzr, jr’yy nhgbzngvpnyyl nccyl n yvprafr. Hfr gur ohyx-nffvta qebcqbja va lbhe pynffebbz gb nffvta n pbhefr gb fryrpgrq fghqragf:" how_to_apply_licenses_blurb_2: "Pna V fgvyy nccyl n yvprafr jvgubhg nffvtavat n pbhefr?" how_to_apply_licenses_blurb_3: "Lrf — tb gb gur Yvprafr Fgnghf gno va lbhe pynffebbz naq pyvpx \"Nccyl Yvprafr\" gb nal fghqrag jub qbrf abg unir na npgvir yvprafr." request_sent: "Erdhrfg Frag!" assessments: "Nffrffzragf" license_status: "Yvprafr Fgnghf" status_expired: "Rkcverq ba {{qngr}}" status_not_enrolled: "Abg Raebyyrq" status_enrolled: "Rkcverf ba {{qngr}}" select_all: "Fryrpg Nyy" project: "Cebwrpg" project_gallery: "Cebwrpg Tnyyrel" view_project: "Ivrj Cebwrpg" unpublished: "(hachoyvfurq)" view_arena_ladder: "<NAME>" resource_hub: "Erfbhepr Uho" pacing_guides: "Pynffebbz-va-n-Obk Cnpvat Thvqrf" pacing_guides_desc: "Yrnea ubj gb vapbecbengr nyy bs PbqrPbzong'f erfbheprf gb cyna lbhe fpubby lrne!" pacing_guides_elem: "Ryrzragnel Fpubby Cnpvat Thvqr" pacing_guides_middle: "Zvqqyr Fpubby Cnpvat Thvqr" pacing_guides_high: "Uvtu Fpubby Cnpvat Thvqr" getting_started: "Trggvat Fgnegrq" educator_faq: "Rqhpngbe SND" educator_faq_desc: "Serdhragyl nfxrq dhrfgvbaf nobhg hfvat PbqrPbzong va lbhe pynffebbz be fpubby." teacher_getting_started: "Grnpure Trggvat Fgnegrq Thvqr" teacher_getting_started_desc: "Arj gb PbqrPbzong? Qbjaybnq guvf Grnpure Trggvat Fgnegrq Thvqr gb frg hc lbhe nppbhag, perngr lbhe svefg pynff, naq vaivgr fghqragf gb gur svefg pbhefr." student_getting_started: "Fghqrag Dhvpx Fgneg Thvqr" student_getting_started_desc: "Lbh pna qvfgevohgr guvf thvqr gb lbhe fghqragf orsber fgnegvat PbqrPbzong fb gung gurl pna snzvyvnevmr gurzfryirf jvgu gur pbqr rqvgbe. Guvf thvqr pna or hfrq sbe obgu Clguba naq WninFpevcg pynffebbzf." cs1: "Vagebqhpgvba gb Pbzchgre Fpvrapr" cs2: "Pbzchgre Fpvrapr 2" cs3: "Pbzchgre Fpvrapr 3" cs4: "Pbzchgre Fpvrapr 4" cs5: "Pbzchgre Fpvrapr 5" cs1_syntax_python: "Pbhefr 1 Clguba Flagnk Thvqr" cs1_syntax_python_desc: "Purngfurrg jvgu ersreraprf gb pbzzba Clguba flagnk gung fghqragf jvyy yrnea va Vagebqhpgvba gb Pbzchgre Fpvrapr." cs1_syntax_javascript: "Pbhefr 1 WninFpevcg Flagnk Thvqr" cs1_syntax_javascript_desc: "Purngfurrg jvgu ersreraprf gb pbzzba WninFpevcg flagnk gung fghqragf jvyy yrnea va Vagebqhpgvba gb Pbzchgre Fpvrapr." coming_soon: "Nqqvgvbany thvqrf pbzvat fbba!" engineering_cycle_worksheet: "Ratvarrevat Plpyr Jbexfurrg" engineering_cycle_worksheet_desc: "Hfr guvf jbexfurrg gb grnpu fghqragf gur onfvpf bs gur ratvarrevat plpyr: Nffrff, Qrfvta, Vzcyrzrag naq Qroht. Ersre gb gur pbzcyrgrq rknzcyr jbexfurrg nf n thvqr." engineering_cycle_worksheet_link: "Ivrj rknzcyr" progress_journal: "Cebterff Wbheany" progress_journal_desc: "Rapbhentr fghqragf gb xrrc genpx bs gurve cebterff ivn n cebterff wbheany." cs1_curriculum: "Vagebqhpgvba gb Pbzchgre Fpvrapr - Pheevphyhz Thvqr" cs1_curriculum_desc: "Fpbcr naq frdhrapr, yrffba cynaf, npgvivgvrf naq zber sbe Pbhefr 1." arenas_curriculum: "Neran Yriryf - Grnpure Thvqr" arenas_curriculum_desc: "Vafgehpgvbaf ba ubj gb eha Jnxxn Znhy, Pebff Obarf naq Cbjre Crnx zhygvcynlre neranf jvgu lbhe pynff." cs2_curriculum: "Pbzchgre Fpvrapr 2 - Pheevphyhz Thvqr" cs2_curriculum_desc: "Fpbcr naq frdhrapr, yrffba cynaf, npgvivgvrf naq zber sbe Pbhefr 2." cs3_curriculum: "Pbzchgre Fpvrapr 3 - Pheevphyhz Thvqr" cs3_curriculum_desc: "Fpbcr naq frdhrapr, yrffba cynaf, npgvivgvrf naq zber sbe Pbhefr 3." cs4_curriculum: "Pbzchgre Fpvrapr 4 - Pheevphyhz Thvqr" cs4_curriculum_desc: "Fpbcr naq frdhrapr, yrffba cynaf, npgvivgvrf naq zber sbe Pbhefr 4." cs5_curriculum_js: "Pbzchgre Fpvrapr 5 - Pheevphyhz Thvqr (WninFpevcg)" cs5_curriculum_desc_js: "Fpbcr naq frdhrapr, yrffba cynaf, npgvivgvrf naq zber sbe Pbhefr 5 pynffrf hfvat WninFpevcg." cs5_curriculum_py: "Pbzchgre Fpvrapr 5 - Pheevphyhz Thvqr (Clguba)" cs5_curriculum_desc_py: "Fpbcr naq frdhrapr, yrffba cynaf, npgvivgvrf naq zber sbe Pbhefr 5 pynffrf hfvat Clguba." cs1_pairprogramming: "Cnve Cebtenzzvat Npgvivgl" cs1_pairprogramming_desc: "Vagebqhpr fghqragf gb n cnve cebtenzzvat rkrepvfr gung jvyy uryc gurz orpbzr orggre yvfgraref naq pbzzhavpngbef." gd1: "Tnzr Qrirybczrag 1" gd1_guide: "Tnzr Qrirybczrag 1 - Cebwrpg Thvqr" gd1_guide_desc: "Hfr guvf gb thvqr lbhe fghqragf nf gurl perngr gurve svefg funernoyr tnzr cebwrpg va 5 qnlf." gd1_rubric: "Tnzr Qrirybczrag 1 - Cebwrpg Ehoevp" gd1_rubric_desc: "Hfr guvf ehoevp gb nffrff fghqrag cebwrpgf ng gur raq bs Tnzr Qrirybczrag 1." gd2: "Tnzr Qrirybczrag 2" gd2_curriculum: "Tnzr Qrirybczrag 2 - Pheevphyhz Thvqr" gd2_curriculum_desc: "Yrffba cynaf sbe Tnzr Qrirybczrag 2." gd3: "Tnzr Qrirybczrag 3" gd3_curriculum: "Tnzr Qrirybczrag 3 - Pheevphyhz Thvqr" gd3_curriculum_desc: "Yrffba cynaf sbe Tnzr Qrirybczrag 3." wd1: "Jro Qrirybczrag 1" wd1_headlines: "Urnqyvarf & Urnqref Npgvivgl" wd1_headlines_example: "Ivrj fnzcyr fbyhgvba" wd1_headlines_desc: "Jul ner cnentencu naq urnqre gntf vzcbegnag? Hfr guvf npgvivgl gb fubj ubj jryy-pubfra urnqref znxr jro cntrf rnfvre gb ernq. Gurer ner znal pbeerpg fbyhgvbaf gb guvf!" wd1_html_syntax: "UGZY Flagnk Thvqr" wd1_html_syntax_desc: "Bar-cntr ersrerapr sbe gur UGZY fglyr fghqragf jvyy yrnea va Jro Qrirybczrag 1." wd1_css_syntax: "PFF Flagnk Thvqr" wd1_css_syntax_desc: "Bar-cntr ersrerapr sbe gur PFF naq Fglyr flagnk fghqragf jvyy yrnea va Jro Qrirybczrag 1." wd2: "Jro Qrirybczrag 2" wd2_jquery_syntax: "wDhrel Shapgvbaf Flagnk Thvqr" wd2_jquery_syntax_desc: "Bar-cntr ersrerapr sbe gur wDhrel shapgvbaf fghqragf jvyy yrnea va Jro Qrirybczrag 2." wd2_quizlet_worksheet: "Dhvmyrg Cynaavat Jbexfurrg" wd2_quizlet_worksheet_instructions: "Ivrj vafgehpgvbaf & rknzcyrf" wd2_quizlet_worksheet_desc: "Orsber lbhe fghqragf ohvyq gurve crefbanyvgl dhvm cebwrpg ng gur raq bs Jro Qrirybczrag 2, gurl fubhyq cyna bhg gurve dhvm dhrfgvbaf, bhgpbzrf naq erfcbafrf hfvat guvf jbexfurrg. Grnpuref pna qvfgevohgr gur vafgehpgvbaf naq rknzcyrf sbe fghqragf gb ersre gb." student_overview: "Bireivrj" student_details: "<NAME>rgnv<NAME>" student_name: "<NAME>" no_name: "Ab anzr cebivqrq." no_username: "Ab hfreanzr cebivqrq." no_email: "Fghqrag unf ab rznvy nqqerff frg." student_profile: "<NAME>" playtime_detail: "Cynlgvzr Qrgnvy" student_completed: "Fghqrag Pbzcyrgrq" student_in_progress: "Fghqrag va Ceb<NAME>" class_average: "Pynff Nirentr" not_assigned: "unf abg orra nffvtarq gur sbyybjvat pbhefrf" playtime_axis: "Cynlgvzr va Frpbaqf" levels_axis: "Yriryf va" student_state: "Ubj vf" student_state_2: "qbvat?" student_good: "vf qbvat jryy va" student_good_detail: "Guvf fghqrag vf xrrcvat cnpr jvgu gur pynff." student_warn: "zvtug arrq fbzr uryc va" student_warn_detail: "Guvf fghqrag zvtug arrq fbzr uryc jvgu arj pbaprcgf gung unir orra vagebqhprq va guvf pbhefr." student_great: "vf qbvat terng va" student_great_detail: "Guvf fghqrag zvtug or n tbbq pnaqvqngr gb uryc bgure fghqragf jbexvat guebhtu guvf pbhefr." full_license: "Shyy Yvprafr" starter_license: "Fgnegre Yvprafr" trial: "Gevny" hoc_welcome: "Unccl Pbzchgre Fpvrapr Rqhpngvba Jrrx" hoc_intro: "Gurer ner guerr jnlf sbe lbhe pynff gb cnegvpvcngr va Ubhe bs Pbqr jvgu PbqrPbzong" hoc_self_led: "Frys-Yrq Tnzrcynl" hoc_self_led_desc: "Fghqragf pna cynl guebhtu gjb Ubhe bs Pbqr PbqrPbzong ghgbevnyf ba gurve bja" hoc_game_dev: "Tnzr Qrirybczrag" hoc_and: "naq" hoc_programming: "WninFpevcg/Clguba Cebtenzzvat" hoc_teacher_led: "Grnpure-Yrq Yrffbaf" hoc_teacher_led_desc1: "Qbjaybnq bhe" hoc_teacher_led_link: "Vagebqhpgvba gb Pbzchgre Fpvrapr yrffba cynaf" hoc_teacher_led_desc2: "gb vagebqhpr lbhe fghqragf gb cebtenzzvat pbaprcgf hfvat bssyvar npgvivgvrf" hoc_group: "Tebhc Tnzrcynl" hoc_group_desc_1: "Grnpuref pna hfr gur yrffbaf va pbawhapgvba jvgu bhe Vagebqhpgvba gb Pbzchgre Fpvrapr pbhefr gb genpx fghqrag cebterff. Frr bhe" hoc_group_link: "Trggvat Fgnegrq Thvqr" hoc_group_desc_2: "sbe zber qrgnvyf" hoc_additional_desc1: "Sbe nqqvgvbany PbqrPbzong erfbheprf naq npgvivgvrf, frr bhe" hoc_additional_desc2: "Dhrfgvbaf" hoc_additional_contact: "Trg va gbhpu" revoke_confirm: "Ner lbh fher lbh jnag gb eribxr n Shyy Yvprafr sebz {{fghqrag_anzr}}? Gur yvprafr jvyy orpbzr ninvynoyr gb nffvta gb nabgure fghqrag." revoking: "Eribxvat..." unused_licenses: "Lbh unir hahfrq Yvprafrf gung nyybj lbh gb nffvta fghqragf cnvq pbhefrf jura gurl'er ernql gb yrnea zber!" remember_new_courses: "Erzrzore gb nffvta arj pbhefrf!" more_info: "Zber Vasb" how_to_assign_courses: "Ubj gb Nffvta Pbhefrf" select_students: "<NAME>" select_instructions: "Pyvpx gur purpxobk arkg gb rnpu fghqrag lbh jnag gb nffvta pbhefrf gb." choose_course: "Pubbfr Pbhefr" choose_instructions: "Fryrpg gur pbhefr sebz gur qebcqbja zrah lbh’q yvxr gb nffvta, gura pyvpx “Nffvta gb Fryrpgrq Fghqragf.”" push_projects: "Jr erpbzzraq nffvtavat Jro Qrirybczrag 1 be Tnzr Qrirybczrag 1 nsgre fghqragf unir svavfurq Vagebqhpgvba gb Pbzchgre Fpvrapr! Frr bhe {{erfbhepr_uho}} sbe zber qrgnvyf ba gubfr pbhefrf." teacher_quest: "Grnpure'f Dhrfg sbe Fhpprff" quests_complete: "Dhrfgf Pbzcyrgr" teacher_quest_create_classroom: "Perngr Pynffebbz" teacher_quest_add_students: "Nqq Fghqragf" teacher_quest_teach_methods: "Uryc lbhe fghqragf yrnea ubj gb `pnyy zrgubqf`." teacher_quest_teach_methods_step1: "Trg 75% bs ng yrnfg bar pynff guebhtu gur svefg yriry, __Qhatrbaf bs Xvgutneq__" teacher_quest_teach_methods_step2: "Cevag bhg gur [Fghqrag Dhvpx Fgneg Thvqr](uggc://svyrf.pbqrpbzong.pbz/qbpf/erfbheprf/FghqragDhvpxFgnegThvqr.cqs) va gur Erfbhepr Uho." teacher_quest_teach_strings: "Qba'g fgevat lbhe fghqragf nybat, grnpu gurz `fgevatf`." teacher_quest_teach_strings_step1: "Trg 75% bs ng yrnfg bar pynff guebhtu __Gehr Anzrf__" teacher_quest_teach_strings_step2: "Hfr gur Grnpure Yriry Fryrpgbe ba [Pbhefr Thvqrf](/grnpuref/pbhefrf) cntr gb cerivrj __Gehr Anzrf__." teacher_quest_teach_loops: "Xrrc lbhe fghqragf va gur ybbc nobhg `ybbcf`." teacher_quest_teach_loops_step1: "Trg 75% bs ng yrnfg bar pynff guebhtu __Sver Qnapvat__." teacher_quest_teach_loops_step2: "Hfr gur __Ybbcf Npgvivgl__ va gur [PF1 Pheevphyhz thvqr](/grnpuref/erfbheprf/pf1) gb ervasbepr guvf pbaprcg." teacher_quest_teach_variables: "Inel vg hc jvgu `inevnoyrf`." teacher_quest_teach_variables_step1: "Trg 75% bs ng yrnfg bar pynff guebhtu __Xabja Rarzl__." teacher_quest_teach_variables_step2: "Rapbhentr pbyynobengvba ol hfvat gur [Cnve Cebtenzzvat Npgvivgl](/grnpuref/erfbheprf/cnve-cebtenzzvat)." teacher_quest_kithgard_gates_100: "Rfpncr gur Xvgutneq Tngrf jvgu lbhe pynff." teacher_quest_kithgard_gates_100_step1: "Trg 75% bs ng yrnfg bar pynff guebhtu __Xvgutneq Tngrf__." teacher_quest_kithgard_gates_100_step2: "Thvqr fghqragf gb guvax guebhtu uneq ceboyrzf hfvat gur [Ratvarrevat Plpyr Jbexfurrg](uggc://svyrf.pbqrpbzong.pbz/qbpf/erfbheprf/RatvarrevatPlpyrJbexfurrg.cqs)." teacher_quest_wakka_maul_100: "Cercner gb qhry va Jnxxn Znhy." teacher_quest_wakka_maul_100_step1: "Trg 75% bs ng yrnfg bar pynff gb __Jnxxn Znhy__." teacher_quest_wakka_maul_100_step2: "Frr gur [Neran Thvqr](/grnpuref/erfbheprf/neranf) va gur [Erfbhepr Uho](/grnpuref/erfbheprf) sbe gvcf ba ubj gb eha n fhpprffshy neran qnl." teacher_quest_reach_gamedev: "Rkcyber arj jbeyqf!" teacher_quest_reach_gamedev_step1: "[Trg yvprafrf](/grnpuref/yvprafrf) fb gung lbhe fghqragf pna rkcyber arj jbeyqf, yvxr Tnzr Qrirybczrag naq Jro Qrirybczrag!" teacher_quest_done: "Jnag lbhe fghqragf gb yrnea rira zber pbqr? Trg va gbhpu jvgu bhe [fpubby fcrpvnyvfgf](znvygb:fpubbyf@pbqrpbzong.pbz) gbqnl!" teacher_quest_keep_going: "Xrrc tbvat! Urer'f jung lbh pna qb arkg:" teacher_quest_more: "Frr nyy dhrfgf" teacher_quest_less: "Frr srjre dhrfgf" refresh_to_update: "(erserfu gur cntr gb frr hcqngrf)" view_project_gallery: "Ivrj Cebwrpg Tnyyrel" office_hours: "Grnpure Jrovanef" office_hours_detail: "Yrnea ubj gb xrrc hc jvgu jvgu lbhe fghqragf nf gurl perngr tnzrf naq rzonex ba gurve pbqvat wbhearl! Pbzr naq nggraq bhe" office_hours_link: "grnpure jrovane" office_hours_detail_2: "frffvbaf." success: "Fhpprff" in_progress: "Va Cebterff" not_started: "Abg Fgnegrq" mid_course: "Zvq-Pbhefr" end_course: "Raq bs Pbhefr" none: "Abar qrgrpgrq lrg" explain_open_ended: "Abgr: Fghqragf ner rapbhentrq gb fbyir guvf yriry perngviryl — bar cbffvoyr fbyhgvba vf cebivqrq orybj." level_label: "Yriry:" time_played_label: "Gvzr Cynlrq:" share_licenses: share_licenses: "Funer Yvprafrf" shared_by: "<NAME>:" add_teacher_label: "Ragre rknpg grnpure rznvy:" add_teacher_button: "Nqq Grnpure" subheader: "Lbh pna znxr lbhe yvprafrf ninvynoyr gb bgure grnpuref va lbhe betnavmngvba. Rnpu yvprafr pna bayl or hfrq sbe bar fghqrag ng n gvzr." teacher_not_found: "Grnpure abg sbhaq. Cyrnfr znxr fher guvf grnpure unf nyernql perngrq n Grnpure Nppbhag." teacher_not_valid: "Guvf vf abg n inyvq Grnpure Nppbhag. Bayl grnpure nppbhagf pna funer yvprafrf." already_shared: "Lbh'ir nyernql funerq gurfr yvprafrf jvgu gung grnpure." teachers_using_these: "Grnpuref jub pna npprff gurfr yvprafrf:" footer: "Jura grnpuref eribxr yvprafrf sebz fghqragf, gur yvprafrf jvyy or erghearq gb gur funerq cbby sbe bgure grnpuref va guvf tebhc gb hfr." you: "(lbh)" one_license_used: "(1 yvprafr hfrq)" licenses_used: "(__yvprafrfHfrq__ yvprafrf hfrq)" more_info: "Zber vasb" sharing: game: "Tnzr" webpage: "Jrocntr" your_students_preview: "Lbhe fghqragf jvyy pyvpx urer gb frr gurve svavfurq cebwrpgf! Haninvynoyr va grnpure cerivrj." unavailable: "Yvax funevat abg ninvynoyr va grnpure cerivrj." share_game: "Funer Guvf Tnzr" share_web: "Funer Guvf Jrocntr" victory_share_prefix: "Funer guvf yvax gb vaivgr lbhe sevraqf & snzvyl gb" victory_share_prefix_short: "Vaivgr crbcyr gb" victory_share_game: "cynl lbhe tnzr yriry" victory_share_web: "ivrj lbhe jrocntr" victory_share_suffix: "." victory_course_share_prefix: "Guvf yvax jvyy yrg lbhe sevraqf & snzvyl" victory_course_share_game: "cynl gur tnzr" victory_course_share_web: "ivrj gur jrocntr" victory_course_share_suffix: "lbh whfg perngrq." copy_url: "Pbcl HEY" share_with_teacher_email: "Fraq gb lbhe grnpure" game_dev: creator: "Perngbe" web_dev: image_gallery_title: "Vzntr Tnyyrel" select_an_image: "Fryrpg na vzntr lbh jnag gb hfr" scroll_down_for_more_images: "(Fpebyy qbja sbe zber vzntrf)" copy_the_url: "Pbcl gur HEY orybj" copy_the_url_description: "Hfrshy vs lbh jnag gb ercynpr na rkvfgvat vzntr." copy_the_img_tag: "Pbcl gur <vzt> gnt" copy_the_img_tag_description: "Hfrshy vs lbh jnag gb vafreg n arj vzntr." copy_url: "Pbcl HEY" copy_img: "Pbcl <vzt>" how_to_copy_paste: "Ubj gb Pbcl/Cnfgr" copy: "Pbcl" paste: "Cnfgr" back_to_editing: "Onpx gb Rqvgvat" classes: archmage_title: "Nepuzntr" archmage_title_description: "(Pbqre)" archmage_summary: "Vs lbh ner n qrirybcre vagrerfgrq va pbqvat rqhpngvbany tnzrf, orpbzr na nepuzntr gb uryc hf ohvyq PbqrPbzong!" artisan_title: "Negvfna" artisan_title_description: "(Yriry Ohvyqre)" artisan_summary: "Ohvyq naq funer yriryf sbe lbh naq lbhe sevraqf gb cynl. Orpbzr na Negvfna gb yrnea gur neg bs grnpuvat bguref gb cebtenz." adventurer_title: "Nq<NAME>" adventurer_title_description: "(Yriry Cynlgrfgre)" adventurer_summary: "Trg bhe arj yriryf (rira bhe fhofpevore pbagrag) sbe serr bar jrrx rneyl naq uryc hf jbex bhg ohtf orsber bhe choyvp eryrnfr." scribe_title: "Fpevor" scribe_title_description: "(Negvpyr Rqvgbe)" scribe_summary: "Tbbq pbqr arrqf tbbq qbphzragngvba. Jevgr, rqvg, naq vzcebir gur qbpf ernq ol zvyyvbaf bs cynlref npebff gur tybor." diplomat_title: "Qvcybzng" diplomat_title_description: "(Genafyngbe)" diplomat_summary: "PbqrPbzong vf ybpnyvmrq va 45+ ynathntrf ol bhe Qvcybzngf. Uryc hf bhg naq pbagevohgr genafyngvbaf." ambassador_title: "Nzonffnqbe" ambassador_title_description: "(Fhccbeg)" ambassador_summary: "Gnzr bhe sbehz hfref naq cebivqr qverpgvba sbe gubfr jvgu dhrfgvbaf. Bhe nzonffnqbef ercerfrag PbqrPbzong gb gur jbeyq." teacher_title: "Grnpure" editor: main_title: "PbqrPbzong Rqvgbef" article_title: "Negvpyr Rqvgbe" thang_title: "Gunat Rqvgbe" level_title: "Yriry Rqvgbe" course_title: "Pbhefr Rqvgbe" achievement_title: "Npuvrirzrag Rqvgbe" poll_title: "Cbyy Rqvgbe" back: "Onpx" revert: "E<NAME>reg" revert_models: "Erireg Zbqryf" pick_a_terrain: "Cvpx N Greenva" dungeon: "Qhatrba" indoor: "Vaqbbe" desert: "Qrfreg" grassy: "Tenffl" mountain: "Zbhagnva" glacier: "Tynpvre" small: "Fznyy" large: "Ynetr" fork_title: "Sbex Arj Irefvba" fork_creating: "Perngvat Sbex..." generate_terrain: "Trarengr Greenva" more: "Zber" wiki: "Jvxv" live_chat: "<NAME>" thang_main: "Znva" thang_spritesheets: "Fcevgrfurrgf" thang_colors: "Pbybef" level_some_options: "Fbzr Bcgvbaf?" level_tab_thangs: "Gunatf" level_tab_scripts: "Fpevcgf" level_tab_components: "Pbzcbaragf" level_tab_systems: "Flfgrzf" level_tab_docs: "Qbphzragngvba" level_tab_thangs_title: "Pheerag Gunatf" level_tab_thangs_all: "Nyy" level_tab_thangs_conditions: "Fgnegvat Pbaqvgvbaf" level_tab_thangs_add: "Nqq Gunatf" level_tab_thangs_search: "Frnepu gunatf" add_components: "Nqq Pbzcbaragf" component_configs: "Pbzcbarag Pbasvthengvbaf" config_thang: "Qbhoyr pyvpx gb pbasvther n gunat" delete: "Qryrgr" duplicate: "Qhcyvpngr" stop_duplicate: "Fgbc Qhcyvpngr" rotate: "Ebgngr" level_component_tab_title: "Pheerag Pbzcbaragf" level_component_btn_new: "Perngr Arj Pbzcbarag" level_systems_tab_title: "Pheerag Flfgrzf" level_systems_btn_new: "Perngr Arj Flfgrz" level_systems_btn_add: "Nqq Flfgrz" level_components_title: "Onpx gb Nyy Gunatf" level_components_type: "Glcr" level_component_edit_title: "Rqvg Pbzcbarag" level_component_config_schema: "Pbasvt Fpurzn" level_system_edit_title: "Rqvg Flfgrz" create_system_title: "Perngr Arj Flfgrz" new_component_title: "Perngr Arj Pbzcbarag" new_component_field_system: "Flfgrz" new_article_title: "Perngr n Arj Negvpyr" new_thang_title: "Perngr n Arj Gunat Glcr" new_level_title: "Perngr n Arj Yriry" new_article_title_login: "Ybt Va gb Perngr n Arj Negvpyr" new_thang_title_login: "Ybt Va gb Perngr n Arj Gunat Glcr" new_level_title_login: "Ybt Va gb Perngr n Arj Yriry" new_achievement_title: "Perngr n Arj Npuvrirzrag" new_achievement_title_login: "Ybt Va gb Perngr n Arj Npuvrirzrag" new_poll_title: "Perngr n Arj Cbyy" new_poll_title_login: "Ybt Va gb Perngr n Arj Cbyy" article_search_title: "Frnepu Negvpyrf Urer" thang_search_title: "Frnepu Gunat Glcrf Urer" level_search_title: "Frnepu Yriryf Urer" achievement_search_title: "Frnepu Npuvrirzragf" poll_search_title: "Frnepu Cbyyf" read_only_warning2: "Abgr: lbh pna'g fnir nal rqvgf urer, orpnhfr lbh'er abg ybttrq va." no_achievements: "Ab npuvrirzragf unir orra nqqrq sbe guvf yriry lrg." achievement_query_misc: "Xrl npuvrirzrag bss bs zvfpryynarn" achievement_query_goals: "Xrl npuvrirzrag bss bs yriry tbnyf" level_completion: "Yriry Pbzcyrgvba" pop_i18n: "Cbchyngr V18A" tasks: "Gnfxf" clear_storage: "Pyrne lbhe ybpny punatrf" add_system_title: "Nqq Flfgrzf gb Yriry" done_adding: "Qbar Nqqvat" article: edit_btn_preview: "Cerivrj" edit_article_title: "Rqvg Negvpyr" polls: priority: "Cevbevgl" contribute: page_title: "Pbagevohgvat" intro_blurb: "PbqrPbzong vf 100% bcra fbhepr! Uhaqerqf bs qrqvpngrq cynlref unir urycrq hf ohvyq gur tnzr vagb jung vg vf gbqnl. Wbva hf naq jevgr gur arkg puncgre va PbqrPbzong'f dhrfg gb grnpu gur jbeyq gb pbqr!" alert_account_message_intro: "Url gurer!" alert_account_message: "Gb fhofpevor sbe pynff rznvyf, lbh'yy arrq gb or ybttrq va svefg." archmage_introduction: "Bar bs gur orfg cnegf nobhg ohvyqvat tnzrf vf gurl flagurfvmr fb znal qvssrerag guvatf. Tencuvpf, fbhaq, erny-gvzr argjbexvat, fbpvny argjbexvat, naq bs pbhefr znal bs gur zber pbzzba nfcrpgf bs cebtenzzvat, sebz ybj-yriry qngnonfr znantrzrag, naq freire nqzvavfgengvba gb hfre snpvat qrfvta naq vagresnpr ohvyqvat. Gurer'f n ybg gb qb, naq vs lbh'er na rkcrevraprq cebtenzzre jvgu n unaxrevat gb ernyyl qvir vagb gur avggl-tevggl bs PbqrPbzong, guvf pynff zvtug or sbe lbh. Jr jbhyq ybir gb unir lbhe uryc ohvyqvat gur orfg cebtenzzvat tnzr rire." class_attributes: "Pynff Nggevohgrf" archmage_attribute_1_pref: "Xabjyrqtr va " archmage_attribute_1_suf: ", be n qrfver gb yrnea. Zbfg bs bhe pbqr vf va guvf ynathntr. Vs lbh'er n sna bs Ehol be Clguba, lbh'yy srry evtug ng ubzr. Vg'f WninFpevcg, ohg jvgu n avpre flagnk." archmage_attribute_2: "Fbzr rkcrevrapr va cebtenzzvat naq crefbany vavgvngvir. Jr'yy uryc lbh trg bevragrq, ohg jr pna'g fcraq zhpu gvzr genvavat lbh." how_to_join: "Ubj Gb Wbva" join_desc_1: "Nalbar pna uryc bhg! Whfg purpx bhg bhe " join_desc_2: "gb trg fgnegrq, naq purpx gur obk orybj gb znex lbhefrys nf n oenir Nepuzntr naq trg gur yngrfg arjf ol rznvy. Jnag gb pung nobhg jung gb qb be ubj gb trg zber qrrcyl vaibyirq? " join_desc_3: ", be svaq hf va bhe " join_desc_4: "naq jr'yy tb sebz gurer!" join_url_email: "Rznvy hf" join_url_slack: "choyvp Fynpx punaary" archmage_subscribe_desc: "Trg rznvyf ba arj pbqvat bccbeghavgvrf naq naabhaprzragf." artisan_introduction_pref: "Jr zhfg pbafgehpg nqqvgvbany yriryf! Crbcyr or pynzbevat sbe zber pbagrag, naq jr pna bayl ohvyq fb znal bhefryirf. Evtug abj lbhe jbexfgngvba vf yriry bar; bhe yriry rqvgbe vf oneryl hfnoyr rira ol vgf perngbef, fb or jnel. Vs lbh unir ivfvbaf bs pnzcnvtaf fcnaavat sbe-ybbcf gb" artisan_introduction_suf: ", gura guvf pynff zvtug or sbe lbh." artisan_attribute_1: "Nal rkcrevrapr va ohvyqvat pbagrag yvxr guvf jbhyq or avpr, fhpu nf hfvat Oyvmmneq'f yriry rqvgbef. Ohg abg erdhverq!" artisan_attribute_2: "N unaxrevat gb qb n jubyr ybg bs grfgvat naq vgrengvba. Gb znxr tbbq yriryf, lbh arrq gb gnxr vg gb bguref naq jngpu gurz cynl vg, naq or cercnerq gb svaq n ybg bs guvatf gb svk." artisan_attribute_3: "Sbe gur gvzr orvat, raqhenapr ra cne jvgu na Nqiraghere. Bhe Yriry Rqvgbe vf fhcre ceryvzvanel naq sehfgengvat gb hfr. Lbh unir orra jnearq!" artisan_join_desc: "Hfr gur Yriry Rqvgbe va gurfr fgrcf, tvir be gnxr:" artisan_join_step1: "Ernq gur qbphzragngvba." artisan_join_step2: "Perngr n arj yriry naq rkcyber rkvfgvat yriryf." artisan_join_step3: "Svaq hf va bhe choyvp Fynpx punaary sbe uryc." artisan_join_step4: "Cbfg lbhe yriryf ba gur sbehz sbe srrqonpx." artisan_subscribe_desc: "Trg rznvyf ba yriry rqvgbe hcqngrf naq naabhaprzragf." adventurer_introduction: "Yrg'f or pyrne nobhg lbhe ebyr: lbh ner gur gnax. Lbh'er tbvat gb gnxr urnil qnzntr. Jr arrq crbcyr gb gel bhg oenaq-arj yriryf naq uryc vqragvsl ubj gb znxr guvatf orggre. Gur cnva jvyy or rabezbhf; znxvat tbbq tnzrf vf n ybat cebprff naq ab bar trgf vg evtug gur svefg gvzr. Vs lbh pna raqher naq unir n uvtu pbafgvghgvba fpber, gura guvf pynff zvtug or sbe lbh." adventurer_attribute_1: "N guvefg sbe yrneavat. Lbh jnag gb yrnea ubj gb pbqr naq jr jnag gb grnpu lbh ubj gb pbqr. Lbh'yy cebonoyl or qbvat zbfg bs gur grnpuvat va guvf pnfr, gubhtu." adventurer_attribute_2: "Punevfzngvp. Or tragyr ohg negvphyngr nobhg jung arrqf vzcebivat, naq bssre fhttrfgvbaf ba ubj gb vzcebir." adventurer_join_pref: "Rvgure trg gbtrgure jvgu (be erpehvg!) na Negvfna naq jbex jvgu gurz, be purpx gur obk orybj gb erprvir rznvyf jura gurer ner arj yriryf gb grfg. Jr'yy nyfb or cbfgvat nobhg yriryf gb erivrj ba bhe argjbexf yvxr" adventurer_forum_url: "bhe sbehz" adventurer_join_suf: "fb vs lbh cersre gb or abgvsvrq gubfr jnlf, fvta hc gurer!" adventurer_subscribe_desc: "Trg rznvyf jura gurer ner arj yriryf gb grfg." scribe_introduction_pref: "PbqrPbzong vfa'g whfg tbvat gb or n ohapu bs yriryf. Vg jvyy nyfb vapyhqr n erfbhepr sbe xabjyrqtr, n jvxv bs cebtenzzvat pbaprcgf gung yriryf pna ubbx vagb. Gung jnl engure guna rnpu Negvfna univat gb qrfpevor va qrgnvy jung n pbzcnevfba bcrengbe vf, gurl pna fvzcyl yvax gurve yriry gb gur Negvpyr qrfpevovat gurz gung vf nyernql jevggra sbe gur cynlre'f rqvsvpngvba. Fbzrguvat nybat gur yvarf bs jung gur " scribe_introduction_url_mozilla: "Zbmvyyn Qrirybcre Argjbex" scribe_introduction_suf: " unf ohvyg. Vs lbhe vqrn bs sha vf negvphyngvat gur pbaprcgf bs cebtenzzvat va Znexqbja sbez, gura guvf pynff zvtug or sbe lbh." scribe_attribute_1: "Fxvyy va jbeqf vf cerggl zhpu nyy lbh arrq. Abg bayl tenzzne naq fcryyvat, ohg noyr gb pbairl pbzcyvpngrq vqrnf gb bguref." contact_us_url: "Pbagnpg Hf" scribe_join_description: "gryy hf n yvggyr nobhg lbhefrys, lbhe rkcrevrapr jvgu cebtenzzvat naq jung fbeg bs guvatf lbh'q yvxr gb jevgr nobhg. Jr'yy tb sebz gurer!" scribe_subscribe_desc: "Trg rznvyf nobhg negvpyr jevgvat naabhaprzragf." diplomat_introduction_pref: "Fb, vs gurer'f bar guvat jr yrnearq sebz gur " diplomat_launch_url: "ynhapu va Bpgbore" diplomat_introduction_suf: "vg'f gung gurer vf fvmrnoyr vagrerfg va PbqrPbzong va bgure pbhagevrf! Jr'er ohvyqvat n pbecf bs genafyngbef rntre gb ghea bar frg bs jbeqf vagb nabgure frg bs jbeqf gb trg PbqrPbzong nf npprffvoyr npebff gur jbeyq nf cbffvoyr. Vs lbh yvxr trggvat farnx crrxf ng hcpbzvat pbagrag naq trggvat gurfr yriryf gb lbhe sryybj angvbanyf NFNC, gura guvf pynff zvtug or sbe lbh." diplomat_attribute_1: "Syhrapl va Ratyvfu naq gur ynathntr lbh jbhyq yvxr gb genafyngr gb. Jura pbairlvat pbzcyvpngrq vqrnf, vg'f vzcbegnag gb unir n fgebat tenfc va obgu!" diplomat_i18n_page_prefix: "Lbh pna fgneg genafyngvat bhe yriryf ol tbvat gb bhe" diplomat_i18n_page: "genafyngvbaf cntr" diplomat_i18n_page_suffix: ", be bhe vagresnpr naq jrofvgr ba TvgUho." diplomat_join_pref_github: "Svaq lbhe ynathntr ybpnyr svyr " diplomat_github_url: "ba TvgUho" diplomat_join_suf_github: ", rqvg vg bayvar, naq fhozvg n chyy erdhrfg. Nyfb, purpx guvf obk orybj gb xrrc hc-gb-qngr ba arj vagreangvbanyvmngvba qrirybczragf!" diplomat_subscribe_desc: "Trg rznvyf nobhg v18a qrirybczragf naq yriryf gb genafyngr." ambassador_introduction: "Guvf vf n pbzzhavgl jr'er ohvyqvat, naq lbh ner gur pbaarpgvbaf. Jr'ir tbg sbehzf, rznvyf, naq fbpvny argjbexf jvgu ybgf bs crbcyr gb gnyx jvgu naq uryc trg npdhnvagrq jvgu gur tnzr naq yrnea sebz. Vs lbh jnag gb uryc crbcyr trg vaibyirq naq unir sha, naq trg n tbbq srry bs gur chyfr bs PbqrPbzong naq jurer jr'er tbvat, gura guvf pynff zvtug or sbe lbh." ambassador_attribute_1: "Pbzzhavpngvba fxvyyf. Or noyr gb vqragvsl gur ceboyrzf cynlref ner univat naq uryc gurz fbyir gurz. Nyfb, xrrc gur erfg bs hf vasbezrq nobhg jung cynlref ner fnlvat, jung gurl yvxr naq qba'g yvxr naq jnag zber bs!" ambassador_join_desc: "gryy hf n yvggyr nobhg lbhefrys, jung lbh'ir qbar naq jung lbh'q or vagrerfgrq va qbvat. Jr'yy tb sebz gurer!" ambassador_join_note_strong: "Abgr" ambassador_join_note_desc: "Bar bs bhe gbc cevbevgvrf vf gb ohvyq zhygvcynlre jurer cynlref univat qvssvphygl fbyivat yriryf pna fhzzba uvture yriry jvmneqf gb uryc gurz. Guvf jvyy or n terng jnl sbe nzonffnqbef gb qb gurve guvat. Jr'yy xrrc lbh cbfgrq!" ambassador_subscribe_desc: "Trg rznvyf ba fhccbeg hcqngrf naq zhygvcynlre qrirybczragf." teacher_subscribe_desc: "Trg rznvyf ba hcqngrf naq naabhaprzragf sbe grnpuref." changes_auto_save: "Punatrf ner fnirq nhgbzngvpnyyl jura lbh gbttyr purpxobkrf." diligent_scribes: "Bhe Qvyvtrag Fpevorf:" powerful_archmages: "Bhe Cbjreshy Nepuzntrf:" creative_artisans: "Bhe Perngvir Negvfnaf:" brave_adventurers: "Bhe Oenir Nqiragheref:" translating_diplomats: "Bhe Genafyngvat Qvcybzngf:" helpful_ambassadors: "Bhe Urycshy Nzonffnqbef:" ladder: my_matches: "Zl Zngpurf" simulate: "Fvzhyngr" simulation_explanation: "Ol fvzhyngvat tnzrf lbh pna trg lbhe tnzr enaxrq snfgre!" simulation_explanation_leagues: "Lbh jvyy znvayl uryc fvzhyngr tnzrf sbe nyyvrq cynlref va lbhe pynaf naq pbhefrf." simulate_games: "Fvzhyngr Tnzrf!" games_simulated_by: "Tnzrf fvzhyngrq ol lbh:" games_simulated_for: "Tnzrf fvzhyngrq sbe lbh:" games_in_queue: "Tnzrf pheeragyl va gur dhrhr:" games_simulated: "Tnzrf fvzhyngrq" games_played: "Tnzrf cynlrq" ratio: "Engvb" leaderboard: "Yrnqreobneq" battle_as: "Onggyr nf " summary_your: "Lbhe " summary_matches: "Zngpurf - " summary_wins: " Jvaf, " summary_losses: " Ybffrf" rank_no_code: "Ab Arj Pbqr gb Enax" rank_my_game: "Enax Zl Tnzr!" rank_submitting: "Fhozvggvat..." rank_submitted: "Fhozvggrq sbe Enaxvat" rank_failed: "Snvyrq gb Enax" rank_being_ranked: "Tnzr Orvat Enaxrq" rank_last_submitted: "fhozvggrq " help_simulate: "Uryc fvzhyngr tnzrf?" code_being_simulated: "Lbhe arj pbqr vf orvat fvzhyngrq ol bgure cynlref sbe enaxvat. Guvf jvyy erserfu nf arj zngpurf pbzr va." no_ranked_matches_pre: "Ab enaxrq zngpurf sbe gur " no_ranked_matches_post: " grnz! Cynl ntnvafg fbzr pbzcrgvgbef naq gura pbzr onpx urer gb trg lbhe tnzr enaxrq." choose_opponent: "Pubbfr na Bccbarag" select_your_language: "Fryrpg lbhe ynathntr!" tutorial_play: "Cynl Ghgbevny" tutorial_recommended: "Erpbzzraqrq vs lbh'ir arire cynlrq orsber" tutorial_skip: "Fxvc Ghgbevny" tutorial_not_sure: "Abg fher jung'f tbvat ba?" tutorial_play_first: "Cynl gur Ghgbevny svefg." simple_ai: "Fvzcyr PCH" warmup: "Jnezhc" friends_playing: "Sevraqf Cynlvat" log_in_for_friends: "Ybt va gb cynl jvgu lbhe sevraqf!" social_connect_blurb: "Pbaarpg naq cynl ntnvafg lbhe sevraqf!" invite_friends_to_battle: "Vaivgr lbhe sevraqf gb wbva lbh va onggyr!" fight: "Svtug!" watch_victory: "Jngpu lbhe ivpgbel" defeat_the: "Qrsrng gur" watch_battle: "Jngpu gur onggyr" tournament_started: ", fgnegrq" tournament_ends: "Gbheanzrag raqf" tournament_ended: "Gbheanzrag raqrq" tournament_rules: "Gbheanzrag Ehyrf" tournament_blurb: "Jevgr pbqr, pbyyrpg tbyq, ohvyq nezvrf, pehfu sbrf, jva cevmrf, naq hctenqr lbhe pnerre va bhe $40,000 Terrq gbheanzrag! Purpx bhg gur qrgnvyf" tournament_blurb_criss_cross: "Jva ovqf, pbafgehpg cnguf, bhgjvg bccbaragf, teno trzf, naq hctenqr lbhe pnerre va bhe Pevff-Pebff gbheanzrag! Purpx bhg gur qrgnvyf" tournament_blurb_zero_sum: "Hayrnfu lbhe pbqvat perngvivgl va obgu tbyq tngurevat naq onggyr gnpgvpf va guvf nycvar zveebe zngpu orgjrra erq fbeprere naq oyhr fbeprere. Gur gbheanzrag ortna ba Sevqnl, Znepu 27 naq jvyy eha hagvy Zbaqnl, Ncevy 6 ng 5CZ CQG. Pbzcrgr sbe sha naq tybel! Purpx bhg gur qrgnvyf" tournament_blurb_ace_of_coders: "Onggyr vg bhg va gur sebmra tynpvre va guvf qbzvangvba-fglyr zveebe zngpu! Gur gbheanzrag ortna ba Jrqarfqnl, Frcgrzore 16 naq jvyy eha hagvy Jrqarfqnl, Bpgbore 14 ng 5CZ CQG. Purpx bhg gur qrgnvyf" tournament_blurb_blog: "ba bhe oybt" rules: "Ehyrf" winners: "<NAME>" league: "Yrnthr" red_ai: "Erq PCH" # "Erq NV Jvaf", ng raq bs zhygvcynlre zngpu cynlonpx blue_ai: "Oyhr PCH" wins: "Jvaf" # Ng raq bs zhygvcynlre zngpu cynlonpx humans: "Erq" # Ynqqre cntr qvfcynl grnz anzr ogres: "Oyhr" user: stats: "Fgngf" singleplayer_title: "<NAME>" multiplayer_title: "<NAME>" achievements_title: "Npuvrirzragf" last_played: "Ynfg Cynlrq" status: "Fgnghf" status_completed: "Pbzcyrgrq" status_unfinished: "Hasvavfurq" no_singleplayer: "Ab Fvatyrcynlre tnzrf cynlrq lrg." no_multiplayer: "Ab Zhygvcynlre tnzrf cynlrq lrg." no_achievements: "Ab Npuvrirzragf rnearq lrg." favorite_prefix: "Snibevgr ynathntr vf " favorite_postfix: "." not_member_of_clans: "Abg n zrzore bs nal pynaf lrg." achievements: last_earned: "Ynfg Rnearq" amount_achieved: "Nzbhag" achievement: "Npuvrirzrag" current_xp_prefix: "" current_xp_postfix: " va gbgny" new_xp_prefix: "" new_xp_postfix: " rnearq" left_xp_prefix: "" left_xp_infix: " hagvy yriry " left_xp_postfix: "" account: payments: "Cnlzragf" prepaid_codes: "Cercnvq Pbqrf" purchased: "Chepunfrq" subscribe_for_gems: "Fhofpevor sbe trzf" subscription: "Fhofpevcgvba" invoices: "Vaibvprf" service_apple: "Nccyr" service_web: "Jro" paid_on: "Cnvq Ba" service: "Freivpr" price: "Cevpr" gems: "Trzf" active: "Npgvir" subscribed: "Fhofpevorq" unsubscribed: "Hafhofpevorq" active_until: "Npgvir Hagvy" cost: "Pbfg" next_payment: "Arkg Cnlzrag" card: "Pneq" status_unsubscribed_active: "Lbh'er abg fhofpevorq naq jba'g or ovyyrq, ohg lbhe nppbhag vf fgvyy npgvir sbe abj." status_unsubscribed: "Trg npprff gb arj yriryf, urebrf, vgrzf, naq obahf trzf jvgu n PbqrPbzong fhofpevcgvba!" not_yet_verified: "Abg lrg irevsvrq." resend_email: "Erfraq rznvy" email_sent: "Rznvy frag! Purpx lbhe vaobk." verifying_email: "Irevslvat lbhe rznvy nqqerff..." successfully_verified: "Lbh'ir fhpprffshyyl irevsvrq lbhe rznvy nqqerff!" verify_error: "Fbzrguvat jrag jebat jura irevslvat lbhe rznvy :(" account_invoices: amount: "Nzbhag va HF qbyynef" declined: "Lbhe pneq jnf qrpyvarq" invalid_amount: "Cyrnfr ragre n HF qbyyne nzbhag." not_logged_in: "Ybt va be perngr na nppbhag gb npprff vaibvprf." pay: "Cnl Vaibvpr" purchasing: "Chepunfvat..." retrying: "Freire reebe, ergelvat." success: "Fhpprffshyyl cnvq. Gunaxf!" account_prepaid: purchase_code: "Chepunfr n Fhofpevcgvba Pbqr" purchase_code1: "Fhofpevcgvba Pbqrf pna or erqrrzrq gb nqq cerzvhz fhofpevcgvba gvzr gb bar be zber nppbhagf sbe gur Ubzr irefvba bs PbqrPbzong." # purchase_code2: "Rnpu PbqrPbzong nppbhag pna bayl erqrrz n cnegvphyne Fhofpevcgvba Pbqr bapr." purchase_code3: "Fhofpevcgvba Pbqr zbaguf jvyy or nqqrq gb gur raq bs nal rkvfgvat fhofpevcgvba ba gur nppbhag." purchase_code4: "Fhofpevcgvba Pbqrf ner sbe nppbhagf cynlvat gur Ubzr irefvba bs PbqrPbzong, gurl pnaabg or hfrq va cynpr bs Fghqrag Yvprafrf sbe gur Pynffebbz irefvba." purchase_code5: "Sbe zber vasbezngvba ba Fghqrag Yvprafrf, ernpu bhg gb" users: "Hfref" months: "Zbaguf" purchase_total: "Gbgny" purchase_button: "Fhozvg Chepunfr" your_codes: "Lbhe Pbqrf" redeem_codes: "Erqrrz n Fhofpevcgvba Pbqr" prepaid_code: "Cercnvq Pbqr" lookup_code: "Ybbxhc cercnvq pbqr" apply_account: "Nccyl gb lbhe nppbhag" copy_link: "Lbh pna pbcl gur pbqr'f yvax naq fraq vg gb fbzrbar." quantity: "Dhnagvgl" redeemed: "Erqrrzrq" no_codes: "Ab pbqrf lrg!" you_can1: "Lbh pna" you_can2: "chepunfr n cercnvq pbqr" you_can3: "gung pna or nccyvrq gb lbhe bja nppbhag be tvira gb bguref." loading_error: could_not_load: "Reebe ybnqvat sebz freire" connection_failure: "Pbaarpgvba Snvyrq" connection_failure_desc: "Vg qbrfa’g ybbx yvxr lbh’er pbaarpgrq gb gur vagrearg! Purpx lbhe argjbex pbaarpgvba naq gura erybnq guvf cntr." login_required: "Y<NAME>" login_required_desc: "Lbh arrq gb or ybttrq va gb npprff guvf cntr." unauthorized: "Lbh arrq gb or fvtarq va. Qb lbh unir pbbxvrf qvfnoyrq?" forbidden: "Sbeovqqra" forbidden_desc: "Bu ab, gurer’f abguvat jr pna fubj lbh urer! Znxr fher lbh’er ybttrq vagb gur pbeerpg nppbhag, be ivfvg bar bs gur yvaxf orybj gb trg onpx gb cebtenzzvat!" not_found: "Abg Sbhaq" not_found_desc: "Uz, gurer’f abguvat urer. Ivfvg bar bs gur sbyybjvat yvaxf gb trg onpx gb cebtenzzvat!" not_allowed: "Zrgubq abg nyybjrq." timeout: "Freire Gvzrbhg" conflict: "Erfbhepr pbasyvpg." bad_input: "Onq vachg." server_error: "Freire reebe." unknown: "Haxabja Reebe" error: "REEBE" general_desc: "Fbzrguvat jrag jebat, naq vg’f cebonoyl bhe snhyg. Gel jnvgvat n ovg naq gura erserfuvat gur cntr, be ivfvg bar bs gur sbyybjvat yvaxf gb trg onpx gb cebtenzzvat!" resources: level: "Yriry" patch: "Cngpu" patches: "Cngpurf" system: "Flfgrz" systems: "Flfgrzf" component: "Pbzcbarag" components: "Pbzcbaragf" hero: "Ureb" campaigns: "Pnzcnvtaf" concepts: advanced_css_rules: "Nqinaprq PFF Ehyrf" advanced_css_selectors: "Nqinaprq PFF Fryrpgbef" advanced_html_attributes: "Nqinaprq UGZY Nggevohgrf" advanced_html_tags: "Nqinaprq UGZY Gntf" algorithm_average: "Nytbevguz Nirentr" algorithm_find_minmax: "Nytbevguz Svaq Zva/Znk" algorithm_search_binary: "Nytbevguz Frnepu Ovanel" algorithm_search_graph: "Nytbevguz Frnepu Tencu" algorithm_sort: "Nytbevguz Fbeg" algorithm_sum: "Nytbevguz Fhz" arguments: "Nethzragf" arithmetic: "Nevguzrgvp" array_2d: "2Q Neenl" array_index: "Neenl Vaqrkvat" array_iterating: "Vgrengvat Bire Neenlf" array_literals: "Neenl Yvgrenyf" array_searching: "Neenl Frnepuvat" array_sorting: "Neenl Fbegvat" arrays: "Neenlf" basic_css_rules: "Onfvp PFF ehyrf" basic_css_selectors: "Onfvp PFF fryrpgbef" basic_html_attributes: "Onfvp UGZY Nggevohgrf" basic_html_tags: "Onfvp UGZY Gntf" basic_syntax: "Onfvp Flagnk" binary: "Ovanel" boolean_and: "Obbyrna Naq" boolean_equality: "Obbyrna Rdhnyvgl" boolean_greater_less: "Obbyrna Terngre/Yrff" boolean_logic_shortcircuit: "Obbyrna Ybtvp Fubegpvephvgvat" boolean_not: "Obbyrna Abg" boolean_operator_precedence: "Obbyrna Bcrengbe Cerprqrapr" boolean_or: "Obbyrna Be" bootstrap: "Obbgfgenc" break_statements: "Oernx Fgngrzragf" classes: "Pynffrf" continue_statements: "Pbagvahr Fgngrzragf" dom_events: "QBZ Riragf" dynamic_styling: "Qlanzvp Fglyvat" event_concurrency: "Rirag Pbapheerapl" event_data: "Rirag Qngn" event_handlers: "Rirag Unaqyref" for_loops: "Sbe Ybbcf" for_loops_nested: "Arfgrq Sbe Ybbcf" for_loops_range: "Sbe Ybbcf Enatr" functions: "Shapgvbaf" game_ai: "Tnzr NV" game_goals: "Tnzr Tbnyf" game_spawn: "Tnzr Fcnja" graphics: "Tencuvpf" graphs: "Tencuf" heaps: "Urncf" if_else_statements: "Vs/Ryfr Fgngrzragf" if_statements: "Vs Fgngrzragf" if_statements_nested: "Arfgrq Vs Fgngrzagf" indexing: "Neenl Vaqrkrf" input_handling_flags: "Vachg Unaqyvat - Syntf" input_handling_keyboard: "Vachg Unaqyvat - Xrlobneq" input_handling_mouse: "Vachg Unaqyvat - Zbhfr" intermediate_css_rules: "Vagrezrqvngr PFF Ehyrf" intermediate_css_selectors: "Vagrezrqvngr PFF Fryrpgbef" intermediate_html_attributes: "Vagrezrqvngr UGZY Nggevohgrf" intermediate_html_tags: "Vagrezrqvngr UGZY Gntf" jquery: "wDhrel" jquery_animations: "wDhrel Navzngvbaf" jquery_filtering: "wDhrel Ryrzrag Svygrevat" jquery_selectors: "wDhrel Fryrpgbef" length: "Neenl Yratgu" math_geometry: "Trbzrgel" math_operations: "Zngu Yvoenel Bcrengvbaf" math_trigonometry: "Gevtbabzrgel" object_literals: "Bowrpg Yvgrenyf" parameters: "Cnenzrgref" property_access: "Npprffvat Cebcregvrf" property_assignment: "Nffvtavat Cebcregvrf" queues: "Qngn Fgehpgherf - Dhrhrf" reading_docs: "Ernqvat gur Qbpf" recursion: "Erphefvba" return_statements: "Erghea Fgngrzragf" stacks: "Qngn Fgehpgherf - Fgnpxf" strings: "Fgevatf" strings_concatenation: "Fgevat Pbapngrangvba" strings_substrings: "Fhofgevat" trees: "Qngn Fgehpgherf - Gerrf" variables: "Inevnoyrf" vectors: "Irpgbef" while_condition_loops: "Juvyr Ybbcf jvgu Pbaqvgvbanyf" while_loops_simple: "Juvyr Ybbcf" while_loops_nested: "Arfgrq Juvyr Ybbcf" xy_coordinates: "Pnegrfvna Pbbeqvangrf" advanced_strings: "Nqinaprq Fgevatf" # Erfg bs pbaprcgf ner qrcerpngrq algorithms: "Nytbevguzf" boolean_logic: "Obbyrna Ybtvp" basic_html: "Onfvp UGZY" basic_css: "Onfvp PFF" basic_web_scripting: "Onfvp Jro Fpevcgvat" intermediate_html: "Vagrezrqvngr UGZY" intermediate_css: "Vagrezrqvngr PFF" intermediate_web_scripting: "Vagrezrqvngr Jro Fpevcgvat" advanced_html: "Nqinaprq UGZY" advanced_css: "Nqinaprq PFF" advanced_web_scripting: "Nqinaprq Jro Fpevcgvat" input_handling: "Vachg Unaqyvat" while_loops: "Juvyr Ybbcf" place_game_objects: "Cynpr tnzr bowrpgf" construct_mazes: "Pbafgehpg znmrf" create_playable_game: "Perngr n cynlnoyr, funenoyr tnzr cebwrpg" alter_existing_web_pages: "Nygre rkvfgvat jro cntrf" create_sharable_web_page: "Perngr n funenoyr jro cntr" basic_input_handling: "Onfvp Vachg Unaqyvat" basic_game_ai: "Onfvp Tnzr NV" basic_javascript: "Onfvp WninFpevcg" basic_event_handling: "Onfvp Rirag Unaqyvat" create_sharable_interactive_web_page: "Perngr n funenoyr vagrenpgvir jro cntr" anonymous_teacher: notify_teacher: "<NAME>" create_teacher_account: "<NAME>" enter_student_name: "<NAME>:" enter_teacher_email: "Lb<NAME>'<NAME>:" teacher_email_placeholder: "<EMAIL>" student_name_placeholder: "<NAME>" teachers_section: "Grnpuref:" students_section: "Fghqragf:" teacher_notified: "Jr'ir abgvsvrq lbhe grnpure gung lbh jnag gb cynl zber PbqrPbzong va lbhe pynffebbz!" delta: added: "Nqqrq" modified: "Zbqvsvrq" not_modified: "Abg Zbqvsvrq" deleted: "Qryrgrq" moved_index: "Zbirq Vaqrk" text_diff: "Grkg Qvss" merge_conflict_with: "ZRETR PBASYVPG JVGU" no_changes: "Ab Punatrf" legal: page_title: "Yrtny" opensource_intro: "PbqrPbzong vf pbzcyrgryl bcra fbhepr." opensource_description_prefix: "Purpx bhg " github_url: "bhe TvgUho" opensource_description_center: "naq uryc bhg vs lbh yvxr! PbqrPbzong vf ohvyg ba qbmraf bs bcra fbhepr cebwrpgf, naq jr ybir gurz. Frr " archmage_wiki_url: "bhe Nepuzntr jvxv" opensource_description_suffix: "sbe n yvfg bs gur fbsgjner gung znxrf guvf tnzr cbffvoyr." practices_title: "Erfcrpgshy Orfg Cenpgvprf" practices_description: "Gurfr ner bhe cebzvfrf gb lbh, gur cynlre, va fyvtugyl yrff yrtnyrfr." privacy_title: "Cevinpl" privacy_description: "Jr jvyy abg fryy nal bs lbhe crefbany vasbezngvba." security_title: "Frphevgl" security_description: "Jr fgevir gb xrrc lbhe crefbany vasbezngvba fnsr. Nf na bcra fbhepr cebwrpg, bhe fvgr vf serryl bcra gb nalbar gb erivrj naq vzcebir bhe frphevgl flfgrzf." email_title: "Rznvy" email_description_prefix: "Jr jvyy abg vahaqngr lbh jvgu fcnz. Guebhtu" email_settings_url: "lbhe rznvy frggvatf" email_description_suffix: "be guebhtu yvaxf va gur rznvyf jr fraq, lbh pna punatr lbhe cersreraprf naq rnfvyl hafhofpevor ng nal gvzr." cost_title: "Pbfg" cost_description: "PbqrPbzong vf serr gb cynl sbe nyy bs vgf pber yriryf, jvgu n ${{cevpr}} HFQ/zb fhofpevcgvba sbe npprff gb rkgen yriry oenapurf naq {{trzf}} obahf trzf cre zbagu. Lbh pna pnapry jvgu n pyvpx, naq jr bssre n 100% zbarl-onpx thnenagrr." copyrights_title: "Pbclevtugf naq Yvprafrf" contributor_title: "Pbagevohg<NAME>" contributor_description_prefix: "Nyy pbagevohgvbaf, obgu ba gur fvgr naq ba bhe TvgUho ercbfvgbel, ner fhowrpg gb bhe" cla_url: "PYN" contributor_description_suffix: "gb juvpu lbh fubhyq nterr orsber pbagevohgvat." code_title: "Pbqr - ZVG" code_description_prefix: "Nyy pbqr bjarq ol PbqrPbzong be ubfgrq ba pbqrpbzong.pbz, obgu va gur TvgUho ercbfvgbel be va gur pbqrpbzong.pbz qngnonfr, vf yvprafrq haqre gur" mit_license_url: "ZVG yvprafr" code_description_suffix: "Guvf vapyhqrf nyy pbqr va Flfgrzf naq Pbzcbaragf gung ner znqr ninvynoyr ol PbqrPbzong sbe gur checbfr bs perngvat yriryf." art_title: "Neg/Zhfvp - Perngvir Pbzzbaf " art_description_prefix: "Nyy pbzzba pbagrag vf ninvynoyr haqre gur" cc_license_url: "Perngvir Pbzzbaf Nggevohgvba 4.0 Vagreangvbany Yvprafr" art_description_suffix: "Pbzzba pbagrag vf nalguvat znqr trarenyyl ninvynoyr ol PbqrPbzong sbe gur checbfr bs perngvat Yriryf. Guvf vapyhqrf:" art_music: "Zhfvp" art_sound: "Fbhaq" art_artwork: "Negjbex" art_sprites: "Fcevgrf" art_other: "Nal naq nyy bgure aba-pbqr perngvir jbexf gung ner znqr ninvynoyr jura perngvat Yriryf." art_access: "Pheeragyl gurer vf ab havirefny, rnfl flfgrz sbe srgpuvat gurfr nffrgf. Va trareny, srgpu gurz sebz gur HEYf nf hfrq ol gur fvgr, pbagnpg hf sbe nffvfgnapr, be uryc hf va rkgraqvat gur fvgr gb znxr gurfr nffrgf zber rnfvyl npprffvoyr." art_paragraph_1: "Sbe nggevohgvba, cyrnfr anzr naq yvax gb pbqrpbzong.pbz arne jurer gur fbhepr vf hfrq be jurer nccebcevngr sbe gur zrqvhz. Sbe rknzcyr:" use_list_1: "Vs hfrq va n zbivr be nabgure tnzr, vapyhqr pbqrpbzong.pbz va gur perqvgf." use_list_2: "Vs hfrq ba n jrofvgr, vapyhqr n yvax arne gur hfntr, sbe rknzcyr haqrearngu na vzntr, be va n trareny nggevohgvbaf cntr jurer lbh zvtug nyfb zragvba bgure Perngvir Pbzzbaf jbexf naq bcra fbhepr fbsgjner orvat hfrq ba gur fvgr. Fbzrguvat gung'f nyernql pyrneyl ersrerapvat PbqrPbzong, fhpu nf n oybt cbfg zragvbavat PbqrPbzong, qbrf abg arrq fbzr frcnengr nggevohgvba." art_paragraph_2: "Vs gur pbagrag orvat hfrq vf perngrq abg ol PbqrPbzong ohg vafgrnq ol n hfre bs pbqrpbzong.pbz, nggevohgr gurz vafgrnq, naq sbyybj nggevohgvba qverpgvbaf cebivqrq va gung erfbhepr'f qrfpevcgvba vs gurer ner nal." rights_title: "Evtugf Erfreirq" rights_desc: "Nyy evtugf ner erfreirq sbe Yriryf gurzfryirf. Guvf vapyhqrf" rights_scripts: "Fpevcgf" rights_unit: "Havg pbasvthengvba" rights_writings: "Jevgvatf" rights_media: "Zrqvn (fbhaqf, zhfvp) naq nal bgure perngvir pbagrag znqr fcrpvsvpnyyl sbe gung Yriry naq abg znqr trarenyyl ninvynoyr jura perngvat Yriryf." rights_clarification: "Gb pynevsl, nalguvat gung vf znqr ninvynoyr va gur Yriry Rqvgbe sbe gur checbfr bs znxvat yriryf vf haqre PP, jurernf gur pbagrag perngrq jvgu gur Yriry Rqvgbe be hcybnqrq va gur pbhefr bs perngvba bs Yriryf vf abg." nutshell_title: "Va n Ahgfuryy" nutshell_description: "Nal erfbheprf jr cebivqr va gur Yriry Rqvgbe ner serr gb hfr nf lbh yvxr sbe perngvat Yriryf. Ohg jr erfreir gur evtug gb erfgevpg qvfgevohgvba bs gur Yriryf gurzfryirf (gung ner perngrq ba pbqrpbzong.pbz) fb gung gurl znl or punetrq sbe." canonical: "Gur Ratyvfu irefvba bs guvf qbphzrag vf gur qrsvavgvir, pnabavpny irefvba. Vs gurer ner nal qvfpercnapvrf orgjrra genafyngvbaf, gur Ratyvfu qbphzrag gnxrf cerprqrapr." third_party_title: "Guveq Cnegl Freivprf" third_party_description: "PbqrPbzong hfrf gur sbyybjvat guveq cnegl freivprf (nzbat bguref):" ladder_prizes: title: "Gbheanzrag Cevmrf" # Guvf frpgvba jnf sbe na byq gbheanzrag naq qbrfa'g arrq arj genafyngvbaf abj. blurb_1: "Gurfr cevmrf jvyy or njneqrq nppbeqvat gb" blurb_2: "gur gbheanzrag ehyrf" blurb_3: "gb gur gbc uhzna naq bter cynlref." blurb_4: "Gjb grnzf zrnaf qbhoyr gur cevmrf!" blurb_5: "(Gurer jvyy or gjb svefg cynpr jvaaref, gjb frpbaq-cynpr jvaaref, rgp.)" rank: "Enax" prizes: "Cevmrf" total_value: "Gbgny Inyhr" in_cash: "va pnfu" custom_wizard: "Phfgbz PbqrPbzong Jvmneq" custom_avatar: "Phfgbz PbqrPbzong ningne" heap: "sbe fvk zbaguf bs \"Fgneghc\" npprff" credits: "perqvgf" one_month_coupon: "pbhcba: pubbfr rvgure Envyf be UGZY" one_month_discount: "qvfpbhag, 30% bss: pubbfr rvgure Envyf be UGZY" license: "yvprafr" oreilly: "robbx bs lbhe pubvpr" calendar: year: "Lrne" day: "Qnl" month: "Zbagu" january: "Wnahnel" february: "Sroehnel" march: "Znepu" april: "Ncevy" may: "Znl" june: "Whar" july: "Whyl" august: "Nhthfg" september: "Frcgrzore" october: "Bpgbore" november: "Abirzore" december: "Qrprzore" code_play_create_account_modal: title: "Lbh qvq vg!" # Guvf frpgvba vf bayl arrqrq va HF, HX, Zrkvpb, Vaqvn, naq Treznal body: "Lbh ner abj ba lbhe jnl gb orpbzvat n znfgre pbqre. Fvta hc gb erprvir na rkgen <fgebat>100 Trzf</fgebat> & lbh jvyy nyfb or ragrerq sbe n punapr gb <fgebat>jva $2,500 & bgure Yrabib Cevmrf</fgebat>." sign_up: "Fvta hc & xrrc pbqvat ▶" victory_sign_up_poke: "Perngr n serr nppbhag gb fnir lbhe pbqr & or ragrerq sbe n punapr gb jva cevmrf!" victory_sign_up: "Fvta hc & or ragrerq gb <fgebat>jva $2,500</fgebat>" server_error: email_taken: 'Rznvy nyernql gnxra' username_taken: 'Hfreanzr nyernql gnxra' esper: line_no: "Yvar $1: " uncaught: "Hapnhtug $1" # $1 jvyy or na reebe glcr, rt "Hapnhtug FlagnkReebe" reference_error: "ErsreraprReebe: " argument_error: "NethzragReebe: " type_error: "GlcrReebe: " syntax_error: "FlagnkReebe: " error: "Reebe: " x_not_a_function: "$1 vf abg n shapgvba" x_not_defined: "$1 vf abg qrsvarq" spelling_issues: "Ybbx bhg sbe fcryyvat vffhrf: qvq lbh zrna `$1` vafgrnq bs `$2`?" capitalization_issues: "Ybbx bhg sbe pncvgnyvmngvba: `$1` fubhyq or `$2`." py_empty_block: "Rzcgl $1. Chg 4 fcnprf va sebag bs fgngrzragf vafvqr gur $2 fgngrzrag." fx_missing_paren: "Vs lbh jnag gb pnyy `$1` nf n shapgvba, lbh arrq `()`'f" unmatched_token: "H<KEY>purq `$1`. Rirel bcravat `$2` arrqf n pybfvat `$3` gb zngpu vg." unterminated_string: "Hagrezvangrq fgevat. Nqq n zngpuvat `\"` ng gur raq bs lbhe fgevat." missing_semicolon: "Zvffvat frzvpbyba." missing_quotes: "Zvffvat dhbgrf. Gel `$1`" argument_type: "`$1`'f nethzrag `$2` fubhyq unir glcr `$3`, ohg tbg `$4`: `$5`." argument_type2: "`$1`'f nethzrag `$2` fubhyq unir glcr `$3`, ohg tbg `$4`." target_a_unit: "Gnetrg n havg." attack_capitalization: "Nggnpx $1, abg $2. (Pncvgny yrggref ner vzcbegnag.)" empty_while: "Rzcgl juvyr fgngrzrag. Chg 4 fcnprf va sebag bs fgngrzragf vafvqr gur juvyr fgngrzrag." line_of_site: "`$1`'f nethzrag `$2` unf n ceboyrz. Vf gurer na rarzl jvguva lbhe yvar-bs-fvtug lrg?" need_a_after_while: "Arrq n `$1` nsgre `$2`." too_much_indentation: "Gbb zhpu vaqragngvba ng gur ortvaavat bs guvf yvar." missing_hero: "Zvffvat `$1` xrljbeq; fubhyq or `$2`." takes_no_arguments: "`$1` gnxrf ab nethzragf." no_one_named: "Gurer'f ab bar anzrq \"$1\" gb gnetrg." separated_by_comma: "Shapgvba pnyyf cnenzngref zhfg or frcrengrq ol `,`f" protected_property: "Pna'g ernq cebgrpgrq cebcregl: $1" need_parens_to_call: "Vs lbh jnag gb pnyy `$1` nf shapgvba, lbh arrq `()`'f" expected_an_identifier: "Rkcrpgrq na vqragvsvre naq vafgrnq fnj '$1'." unexpected_identifier: "Harkcrpgrq vqragvsvre" unexpected_end_of: "Harkcrpgrq raq bs vachg" unnecessary_semicolon: "Haarprffnel frzvpbyba." unexpected_token_expected: "<KEY> g<KEY>ra: rk<KEY>pgrq $1 ohg sbhaq $2 juvyr cnefvat $3" unexpected_token: "<KEY> $1" unexpected_token2: "<KEY>" unexpected_number: "Harkcrpgrq ahzore" unexpected: "Harkcrpgrq '$1'." escape_pressed_code: "Rfpncr cerffrq; pbqr nobegrq." target_an_enemy: "Gnetrg na rarzl ol anzr, yvxr `$1`, abg gur fgevat `$2`." target_an_enemy_2: "Gnetrg na rarzl ol anzr, yvxr $1." cannot_read_property: "Pnaabg ernq cebcregl '$1' bs haqrsvarq" attempted_to_assign: "Nggrzcgrq gb nffvta gb ernqbayl cebcregl." unexpected_early_end: "Harkcrpgrq rneyl raq bs cebtenz." you_need_a_string: "Lbh arrq n fgevat gb ohvyq; bar bs $1" unable_to_get_property: "Hanoyr gb trg cebcregl '$1' bs haqrsvarq be ahyy ersrerapr" # GBQB: Qb jr genafyngr haqrsvarq/ahyy? code_never_finished_its: "Pbqr arire svavfurq. Vg'f rvgure ernyyl fybj be unf na vasvavgr ybbc." unclosed_string: "Hapybfrq fgevat." unmatched: "Hazngpurq '$1'." error_you_said_achoo: "Lbh fnvq: $1, ohg gur cnffjbeq vf: $2. (Pncvgny yrggref ner vzcbegnag.)" indentation_error_unindent_does: "Vaqragngvba Reebe: havaqrag qbrf abg zngpu nal bhgre vaqragngvba yriry" indentation_error: "Vaqragngvba reebe." need_a_on_the: "Arrq n `:` ba gur raq bs gur yvar sbyybjvat `$1`." attempt_to_call_undefined: "nggrzcg gb pnyy '$1' (n avy inyhr)" unterminated: "Hagrezvangrq `$1`" target_an_enemy_variable: "Gnetrg na $1 inevnoyr, abg gur fgevat $2. (Gel hfvat $3.)" error_use_the_variable: "Hfr gur inevnoyr anzr yvxr `$1` vafgrnq bs n fgevat yvxr `$2`" indentation_unindent_does_not: "Vaqragngvba havaqrag qbrf abg zngpu nal bhgre vaqragngvba yriry" unclosed_paren_in_function_arguments: "Hapybfrq $1 va shapgvba nethzragf." unexpected_end_of_input: "Harkcrpgrq raq bs vachg" there_is_no_enemy: "Gurer vf ab `$1`. Hfr `$2` svefg." # Uvagf fgneg urer try_herofindnearestenemy: "Gel `$1`" there_is_no_function: "Gurer vf ab shapgvba `$1`, ohg `$2` unf n zrgubq `$3`." attacks_argument_enemy_has: "`$1`'f nethzrag `$2` unf n ceboyrz." is_there_an_enemy: "Vf gurer na rarzl jvguva lbhe yvar-bs-fvtug lrg?" target_is_null_is: "Gnetrg vf $1. Vf gurer nyjnlf n gnetrg gb nggnpx? (Hfr $2?)" hero_has_no_method: "`$1` unf ab zrgubq `$2`." there_is_a_problem: "Gurer vf n ceboyrz jvgu lbhe pbqr." did_you_mean: "Qvq lbh zrna $1? Lbh qb abg unir na vgrz rdhvccrq jvgu gung fxvyy." missing_a_quotation_mark: "Zvffvat n dhbgngvba znex. " missing_var_use_var: "Zvffvat `$1`. Hfr `$2` gb znxr n arj inevnoyr." you_do_not_have: "Lbh qb abg unir na vgrz rdhvccrq jvgu gur $1 fxvyy." put_each_command_on: "Chg rnpu pbzznaq ba n frcnengr yvar" are_you_missing_a: "Ner lbh zvffvat n '$1' nsgre '$2'? " your_parentheses_must_match: "Lbhe cneragurfrf zhfg zngpu."
true
module.exports = nativeDescription: "rot13", englishDescription: "English with the letters jumbled", translation: new_home: slogan: "Gur zbfg ratntvat tnzr sbe yrneavat cebtenzzvat." classroom_edition: "Pynffebbz Rqvgvba:" learn_to_code: "Yrnea gb pbqr:" play_now: "Cynl Abj" im_a_teacher: "PI:NAME:<NAME>END_PI" im_a_student: "PI:NAME:<NAME>END_PI" learn_more: "Yrnea zber" classroom_in_a_box: "N pynffebbz va-n-obk sbe grnpuvat pbzchgre fpvrapr." codecombat_is: "PbqrPbzong vf n cyngsbez <fgebat>sbe fghqragf</fgebat> gb yrnea pbzchgre fpvrapr juvyr cynlvat guebhtu n erny tnzr." our_courses: "Bhe pbhefrf unir orra fcrpvsvpnyyl cynlgrfgrq <fgebat>gb rkpry va gur pynffebbz</fgebat>, rira sbe grnpuref jvgu yvggyr gb ab cevbe cebtenzzvat rkcrevrapr." watch_how: "Jngpu ubj PbqrPbzong vf genafsbezvat gur jnl crbcyr yrnea pbzchgre fpvrapr." top_screenshots_hint: "Fghqragf jevgr pbqr naq frr gurve punatrf hcqngr va erny-gvzr" designed_with: "Qrfvtarq jvgu grnpuref va zvaq" real_code: "PI:NAME:<NAME>END_PI, glcrq pbqr" from_the_first_level: "sebz gur svefg yriry" getting_students: "Trggvat fghqragf gb glcrq pbqr nf dhvpxyl nf cbffvoyr vf pevgvpny gb yrneavat cebtenzzvat flagnk naq cebcre fgehpgher." educator_resources: "Rqhpngbe erfbheprf" course_guides: "naq pbhefr thvqrf" teaching_computer_science: "Grnpuvat pbzchgre fpvrapr qbrf abg erdhver n pbfgyl qrterr, orpnhfr jr cebivqr gbbyf gb fhccbeg rqhpngbef bs nyy onpxtebhaqf." accessible_to: "Npprffvoyr gb" everyone: "rirelbar" democratizing: "Qrzbpengvmvat gur cebprff bs yrneavat pbqvat vf ng gur pber bs bhe cuvybfbcul. Rirelbar fubhyq or noyr gb yrnea gb pbqr." forgot_learning: "V guvax gurl npghnyyl sbetbg gung gurl jrer npghnyyl yrneavat fbzrguvat." wanted_to_do: " Pbqvat vf fbzrguvat V'ir nyjnlf jnagrq gb qb, naq V arire gubhtug V jbhyq or noyr gb yrnea vg va fpubby." why_games: "Jul vf yrneavat guebhtu tnzrf vzcbegnag?" games_reward: "Tnzrf erjneq gur cebqhpgvir fgehttyr." encourage: "Tnzvat vf n zrqvhz gung rapbhentrf vagrenpgvba, qvfpbirel, naq gevny-naq-reebe. N tbbq tnzr punyyratrf gur cynlre gb znfgre fxvyyf bire gvzr, juvpu vf gur fnzr pevgvpny cebprff fghqragf tb guebhtu nf gurl yrnea." excel: "Tnzrf rkpry ng erjneqvat" struggle: "cebqhpgvir fgehttyr" kind_of_struggle: "gur xvaq bs fgehttyr gung erfhygf va yrneavat gung’f ratntvat naq" motivating: "zbgvingvat" not_tedious: "abg grqvbhf." gaming_is_good: "Fghqvrf fhttrfg tnzvat vf tbbq sbe puvyqera’f oenvaf. (vg’f gehr!)" game_based: "Jura tnzr-onfrq yrneavat flfgrzf ner" compared: "pbzcnerq" conventional: "ntnvafg pbairagvbany nffrffzrag zrgubqf, gur qvssrerapr vf pyrne: tnzrf ner orggre ng urycvat fghqragf ergnva xabjyrqtr, pbapragengr naq" perform_at_higher_level: "cresbez ng n uvture yriry bs npuvrirzrag" feedback: "Tnzrf nyfb cebivqr erny-gvzr srrqonpx gung nyybjf fghqragf gb nqwhfg gurve fbyhgvba cngu naq haqrefgnaq pbaprcgf zber ubyvfgvpnyyl, vafgrnq bs orvat yvzvgrq gb whfg “pbeerpg” be “vapbeerpg” nafjref." real_game: "N erny tnzr, cynlrq jvgu erny pbqvat." great_game: "N terng tnzr vf zber guna whfg onqtrf naq npuvrirzragf - vg’f nobhg n cynlre’f wbhearl, jryy-qrfvtarq chmmyrf, naq gur novyvgl gb gnpxyr punyyratrf jvgu ntrapl naq pbasvqrapr." agency: "PbqrPbzong vf n tnzr gung tvirf cynlref gung ntrapl naq pbasvqrapr jvgu bhe ebohfg glcrq pbqr ratvar, juvpu urycf ortvaare naq nqinaprq fghqragf nyvxr jevgr cebcre, inyvq pbqr." request_demo_title: "Trg lbhe fghqragf fgnegrq gbqnl!" request_demo_subtitle: "Erdhrfg n qrzb naq trg lbhe fghqragf fgnegrq va yrff guna na ubhe." get_started_title: "Frg hc lbhe pynff gbqnl" get_started_subtitle: "Frg hc n pynff, nqq lbhe fghqragf, naq zbavgbe gurve cebterff nf gurl yrnea pbzchgre fpvrapr." request_demo: "Erdhrfg n Qrzb" setup_a_class: "Frg Hc n Pynff" have_an_account: "Unir na nppbhag?" logged_in_as: "Lbh ner pheeragyl ybttrq va nf" computer_science: "Bhe frys-cnprq pbhefrf pbire onfvp flagnk gb nqinaprq pbaprcgf" ffa: "Serr sbe nyy fghqragf" coming_soon: "Zber pbzvat fbba!" courses_available_in: "Pbhefrf ner ninvynoyr va WninFpevcg naq Clguba. Jro Qrirybczrag pbhefrf hgvyvmr UGZY, PFF, naq wDhrel." boast: "Obnfgf evqqyrf gung ner pbzcyrk rabhtu gb snfpvangr tnzref naq pbqref nyvxr." winning: "N jvaavat pbzovangvba bs ECT tnzrcynl naq cebtenzzvat ubzrjbex gung chyyf bss znxvat xvq-sevraqyl rqhpngvba yrtvgvzngryl rawblnoyr." run_class:"Rirelguvat lbh arrq gb eha n pbzchgre fpvrapr pynff va lbhe fpubby gbqnl, ab PF onpxtebhaq erdhverq." goto_classes: "Tb gb Zl Pynffrf" view_profile: "Ivrj Zl Cebsvyr" view_progress: "Ivrj Cebterff" go_to_courses: "Tb gb Zl Pbhefrf" want_coco: "Jnag PbqrPbzong ng lbhe fpubby?" nav: map: "Znc" play: "Yriryf" # Gur gbc ani one ragel jurer cynlref pubbfr juvpu yriryf gb cynl community: "Pbzzhavgl" courses: "Pbhefrf" blog: "Oybt" forum: "Sbehz" account: "Nppbhag" my_account: "PI:NAME:<NAME>END_PI NppPI:NAME:<NAME>END_PIag" profile: "Cebsvyr" home: "Ubzr" contribute: "Pbagevohgr" legal: "Yrtny" privacy: "Cevinpl" about: "Nobhg" contact: "Pbagnpg" twitter_follow: "Sbyybj" my_classrooms: "Zl Pynffrf" my_courses: "Zl Pbhefrf" careers: "Pnerref" facebook: "Snprobbx" twitter: "Gjvggre" create_a_class: "Perngr n Pynff" other: "Bgure" learn_to_code: "Yrnea gb Pbqr!" toggle_nav: "Gbttyr anivtngvba" schools: "Fpubbyf" get_involved: "Trg Vaibyirq" open_source: "Bcra fbhepr (TvgUho)" support: "Fhccbeg" faqs: "SNDf" help_pref: "Arrq uryc? Rznvy" help_suff: "naq jr'yy trg va gbhpu!" resource_hub: "Erfbhepr Uho" modal: close: "Pybfr" okay: "Bxnl" not_found: page_not_found: "Cntr abg sbhaq" diplomat_suggestion: title: "Uryc genafyngr PbqrPbzong!" # Guvf fubjf hc jura n cynlre fjvgpurf gb n aba-Ratyvfu ynathntr hfvat gur ynathntr fryrpgbe. sub_heading: "Jr arrq lbhe ynathntr fxvyyf." pitch_body: "Jr qrirybc PbqrPbzong va Ratyvfu, ohg jr nyernql unir cynlref nyy bire gur jbeyq. Znal bs gurz jnag gb cynl va {Ratyvfu} ohg qba'g fcrnx Ratyvfu, fb vs lbh pna fcrnx obgu, cyrnfr pbafvqre fvtavat hc gb or n Qvcybzng naq uryc genafyngr obgu gur PbqrPbzong jrofvgr naq nyy gur yriryf vagb {Ratyvfu}." missing_translations: "Hagvy jr pna genafyngr rirelguvat vagb {Ratyvfu}, lbh'yy frr Ratyvfu jura {Ratyvfu} vfa'g ninvynoyr." learn_more: "Yrnea zber nobhg orvat n Qvcybzng" subscribe_as_diplomat: "Fhofpevor nf n Qvcybzng" play: play_as: "Cynl Nf" # Ynqqre cntr get_course_for_class: "Nffvta Tnzr Qrirybczrag naq zber gb lbhe pynffrf!" request_licenses: "Pbagnpg bhe fpubby fcrpvnyvfgf sbe qrgnvyf." compete: "Pbzcrgr!" # Pbhefr qrgnvyf cntr spectate: "Fcrpgngr" # Ynqqre cntr players: "cynlref" # Ubire bire n yriry ba /cynl hours_played: "ubhef cynlrq" # Ubire bire n yriry ba /cynl items: "Vgrzf" # Gbbygvc ba vgrz fubc ohggba sebz /cynl unlock: "Haybpx" # Sbe chepunfvat vgrzf naq urebrf confirm: "Pbasvez" owned: "Bjarq" # Sbe vgrzf lbh bja locked: "Ybpxrq" available: "Ninvynoyr" skills_granted: "Fxvyyf Tenagrq" # Cebcregl qbphzragngvba qrgnvyf heroes: "Urebrf" # Gbbygvc ba ureb fubc ohggba sebz /cynl achievements: "Npuvrirzragf" # Gbbygvc ba npuvrirzrag yvfg ohggba sebz /cynl settings: "Frggvatf" # Gbbygvc ba frggvatf ohggba sebz /cynl poll: "Cbyy" # Gbbygvc ba cbyy ohggba sebz /cynl next: "Arkg" # Tb sebz pubbfr ureb gb pubbfr vairagbel orsber cynlvat n yriry change_hero: "Punatr Ureb" # Tb onpx sebz pubbfr vairagbel gb pubbfr ureb buy_gems: "Ohl Trzf" subscribers_only: "Fhofpevoref Bayl!" subscribe_unlock: "Fhofpevor gb Haybpx!" subscriber_heroes: "Fhofpevor gbqnl gb vzzrqvngryl haybpx Nznen, Uhfuonhz, naq Unggbev!" subscriber_gems: "Fhofpevor gbqnl gb chepunfr guvf ureb jvgu trzf!" anonymous: "PI:NAME:<NAME>END_PI" level_difficulty: "Qvssvphygl: " awaiting_levels_adventurer_prefix: "Jr eryrnfr arj yriryf rirel jrrx." awaiting_levels_adventurer: "Fvta hc nf na Nqiraghere" awaiting_levels_adventurer_suffix: "gb or gur svefg gb cynl arj yriryf." adjust_volume: "Nqwhfg ibyhzr" campaign_multiplayer: "Zhygvcynlre Neranf" campaign_multiplayer_description: "... va juvpu lbh pbqr urnq-gb-urnq ntnvafg bgure cynlref." brain_pop_done: "Lbh’ir qrsrngrq gur Bterf jvgu pbqr! Lbh jva!" brain_pop_challenge: "Punyyratr lbhefrys gb cynl ntnva hfvat n qvssrerag cebtenzzvat ynathntr!" replay: "Ercynl" back_to_classroom: "Onpx gb Pynffebbz" teacher_button: "Sbe Grnpuref" get_more_codecombat: "Trg Zber PbqrPbzong" code: if: "vs" # Xrljbeqf--gurfr genafyngvbaf fubj hc ba ubire, fb cyrnfr genafyngr gurz nyy, rira vs vg'f xvaq bs ybat. (Va gur pbqr rqvgbe, gurl jvyy fgvyy or va Ratyvfu.) else: "ryfr" elif: "ryfr vs" while: "juvyr" loop: "ybbc" for: "sbe" break: "oernx" continue: "pbagvahr" pass: "cnPI:PASSWORD:<PASSWORD>END_PI" return: "erghea" then: "gura" do: "qb" end: "raq" function: "shapgvba" def: "qrsvar" var: "inevnoyr" self: "frys" hero: "ureb" this: "guvf" or: "be" "||": "be" and: "naq" "&&": "naq" not: "abg" "!": "abg" "=": "nffvta" # Sbe guvf frpgvba, pbawhtngr vg yvxr vg'f gur ireo cneg bs n fragrapr jura cbffvoyr "==": "rdhnyf" "===": "fgevpgyl rdhnyf" "!=": "qbrf abg rdhny" "!==": "qbrf abg fgevpgyl rdhny" ">": "vf terngre guna" ">=": "vf terngre guna be rdhny" "<": "vf yrff guna" "<=": "vf yrff guna be rdhny" "*": "zhygvcyvrq ol" "/": "qvivqrq ol" "+": "cyhf" "-": "zvahf" "+=": "nqq naq nffvta" "-=": "fhogenpg naq nffvta" True: "Gehr" true: "gehr" False: "Snyfr" false: "snyfr" undefined: "haqrsvarq" null: "ahyy" nil: "avy" None: "Abar" share_progress_modal: blurb: "Lbh’er znxvat terng cebterff! Gryy lbhe cnerag ubj zhpu lbh'ir yrnearq jvgu PbqrPbzong." email_invalid: "Rznvy nqqerff vainyvq." form_blurb: "Ragre lbhe cnerag'f rznvy orybj naq jr’yy fubj gurz!" form_label: "Rznvy Nqqerff" placeholder: "rznvy nqqerff" title: "Rkpryyrag Jbex, Ncceragvpr" login: sign_up: "PI:NAME:<NAME>END_PI" email_or_username: "Rznvy be hfreanzr" log_in: "Ybt Va" logging_in: "Ybttvat Va" log_out: "Ybt Bhg" forgot_password: "PI:PASSWORD:<PASSWORD>END_PI?" finishing: "Svavfuvat" sign_in_with_facebook: "Fvta va jvgu Snprobbx" sign_in_with_gplus: "Fvta va jvgu Tbbtyr" signup_switch: "Jnag gb perngr na nppbhag?" signup: complete_subscription: "Pbzcyrgr Fhofpevcgvba" create_student_header: "Perngr Fghqrag Nppbhag" create_teacher_header: "Perngr Grnpure Nppbhag" create_individual_header: "Perngr Vaqvivqhny Nppbhag" email_announcements: "Erprvir naabhaprzragf nobhg arj PbqrPbzong yriryf naq srngherf!" sign_in_to_continue: "Fvta va be perngr na nppbhag gb pbagvahr" teacher_email_announcements: "Xrrc zr hcqngrq ba arj grnpure erfbheprf, pheevphyhz, naq pbhefrf!" creating: "Perngvat Nppbhag..." sign_up: "FvPI:NAME:<NAME>END_PI" log_in: "ybt va jvgu cnffjbeq" required: "Lbh arrq gb ybt va orsber lbh pna tb gung jnl." login_switch: "Nyernql unir na nppbhag?" optional: "bcgvbany" connected_gplus_header: "Lbh'ir fhpprffshyyl pbaarpgrq jvgu Tbbtyr+!" connected_gplus_p: "Svavfu fvtavat hc fb lbh pna ybt va jvgu lbhe Tbbtyr+ nppbhag." connected_facebook_header: "Lbh'ir fhpprffshyyl pbaarpgrq jvgu Snprobbx!" connected_facebook_p: "Svavfu fvtavat hc fb lbh pna ybt va jvgu lbhe Snprobbx nppbhag." hey_students: "Fghqragf, ragre gur pynff pbqr sebz lbhe grnpure." birthday: "Oveguqnl" parent_email_blurb: "Jr xabj lbh pna'g jnvg gb yrnea cebtenzzvat &zqnfu; jr'er rkpvgrq gbb! Lbhe cneragf jvyy erprvir na rznvy jvgu shegure vafgehpgvbaf ba ubj gb perngr na nppbhag sbe lbh. Rznvy {{rznvy_yvax}} vs lbh unir nal dhrfgvbaf." classroom_not_found: "Ab pynffrf rkvfg jvgu guvf Pynff Pbqr. Purpx lbhe fcryyvat be nfx lbhe grnpure sbe uryc." checking: "Purpxvat..." account_exists: "Guvf rznvy vf nyernql va hfr:" sign_in: "Fvta va" email_good: "Rznvy ybbxf tbbq!" name_taken: "PI:NAME:<NAME>END_PI nyernql gnxra! Gel {{fhttrfgrqAnzr}}?" name_available: "PI:NAME:<NAME>END_PI!" name_is_email: "PI:NAME:<NAME>END_PI znl abg or na rznvy" choose_type: "Pubbfr lbhe nppbhag glcr:" teacher_type_1: "Grnpu cebtenzzvat hfvat PbqrPbzong!" teacher_type_2: "Frg hc lbhe pynff" teacher_type_3: "Npprff Pbhefr Thvqrf" teacher_type_4: "Ivrj fghqrag cebterff" signup_as_teacher: "Fvta hc nf n Grnpure" student_type_1: "Yrnea gb cebtenz juvyr cynlvat na ratntvat tnzr!" student_type_2: "Cynl jvgu lbhe pynff" student_type_3: "Pbzcrgr va neranf" student_type_4: "Pubbfr lbhe ureb!" student_type_5: "Unir lbhe Pynff Pbqr ernql!" signup_as_student: "Fvta hc nf n Fghqrag" individuals_or_parents: "Vaqvivqhnyf & PI:NAME:<NAME>END_PIneragf" individual_type: "Sbe cynlref yrneavat gb pbqr bhgfvqr bs n pynff. Cneragf fubhyq fvta hc sbe na nppbhag urer." signup_as_individual: "Fvta hc nf na PI:NAME:<NAME>END_PI" enter_class_code: "Ragre lbhe Pynff Pbqr" enter_birthdate: "Ragre lbhe oveguqngr:" parent_use_birthdate: "Cneragf, hfr lbhe bja oveguqngr." ask_teacher_1: "Nfx lbhe grnpure sbe lbhe Pynff Pbqr." ask_teacher_2: "Abg cneg bs n pynff? Perngr na " ask_teacher_3: "PI:NAME:<NAME>END_PI" ask_teacher_4: " vafgrnq." about_to_join: "Lbh'er nobhg gb wbva:" enter_parent_email: "Ragre lbhe cnerag’f rznvy nqqerff:" parent_email_error: "Fbzrguvat jrag jebat jura gelvat gb fraq gur rznvy. Purpx gur rznvy nqqerff naq gel ntnva." parent_email_sent: "Jr’ir frag na rznvy jvgu shegure vafgehpgvbaf ba ubj gb perngr na nppbhag. Nfx lbhe cnerag gb purpx gurve vaobk." account_created: "NPI:NAME:<NAME>END_PI!" confirm_student_blurb: "Jevgr qbja lbhe vasbezngvba fb gung lbh qba'g sbetrg vg. Lbhe grnpure pna nyfb uryc lbh erfrg lbhe cnffjbeq ng nal gvzr." confirm_individual_blurb: "Jevgr qbja lbhe ybtva vasbezngvba va pnfr lbh arrq vg yngre. Irevsl lbhe rznvy fb lbh pna erpbire lbhe nppbhag vs lbh rire sbetrg lbhe cnffjbeq - purpx lbhe vaobk!" write_this_down: "Jevgr guvf qbja:" start_playing: "Fgneg Cynlvat!" sso_connected: "Fhpprffshyyl pbaarpgrq jvgu:" select_your_starting_hero: "Fryrpg Lbhe Fgnegvat Ureb:" you_can_always_change_your_hero_later: "Lbh pna nyjnlf punatr lbhe ureb yngre." finish: "Svavfu" teacher_ready_to_create_class: "Lbh'er ernql gb perngr lbhe svefg pynff!" teacher_students_can_start_now: "Lbhe fghqragf jvyy or noyr gb fgneg cynlvat gur svefg pbhefr, Vagebqhpgvba gb Pbzchgre Fpvrapr, vzzrqvngryl." teacher_list_create_class: "Ba gur arkg fperra lbh jvyy or noyr gb perngr n arj pynff." teacher_list_add_students: "Nqq fghqragf gb gur pynff ol pyvpxvat gur Ivrj Pynff yvax, gura fraqvat lbhe fghqragf gur Pynff Pbqr be HEY. Lbh pna nyfb vaivgr gurz ivn rznvy vs gurl unir rznvy nqqerffrf." teacher_list_resource_hub_1: "Purpx bhg gur" teacher_list_resource_hub_2: "Pbhefr Thvqrf" teacher_list_resource_hub_3: "sbe fbyhgvbaf gb rirel yriry, naq gur" teacher_list_resource_hub_4: "Erfbhepr Uho" teacher_list_resource_hub_5: "sbe pheevphyhz thvqrf, npgvivgvrf, naq zber!" teacher_additional_questions: "Gung’f vg! Vs lbh arrq nqqvgvbany uryc be unir dhrfgvbaf, ernpu bhg gb __fhccbegRznvy__." dont_use_our_email_silly: "Qba'g chg bhe rznvy urer! Chg lbhe cnerag'f rznvy." want_codecombat_in_school: "Jnag gb cynl PbqrPbzong nyy gur gvzr?" recover: recover_account_title: "PI:NAME:<NAME>END_PI" send_password: "PI:PASSWORD:<PASSWORD>END_PI" recovery_sent: "Erpbirel rznvy frag." items: primary: "PI:NAME:<NAME>END_PI" secondary: "PI:NAME:<NAME>END_PI" armor: "Nezbe" accessories: "Npprffbevrf" misc: "Zvfp" books: "Obbxf" common: back: "Onpx" # Jura hfrq nf na npgvba ireo, yvxr "Anivtngr onpxjneq" coming_soon: "Pbzvat fbba!" continue: "Pbagvahr" # Jura hfrq nf na npgvba ireo, yvxr "Pbagvahr sbejneq" next: "Arkg" default_code: "Qrsnhyg Pbqr" loading: "Ybnqvat..." overview: "Bireivrj" processing: "Cebprffvat..." solution: "Fbyhgvba" table_of_contents: "Gnoyr bs Pbagragf" intro: "Vageb" saving: "Fnivat..." sending: "Fraqvat..." send: "Fraq" sent: "Frag" cancel: "Pnapry" save: "Fnir" publish: "Choyvfu" create: "Perngr" fork: "Sbex" play: "Cynl" # Jura hfrq nf na npgvba ireo, yvxr "Cynl arkg yriry" retry: "Ergel" actions: "Npgvbaf" info: "Vasb" help: "Uryc" watch: "Jngpu" unwatch: "Hajngpu" submit_patch: "Fhozvg Cngpu" submit_changes: "Fhozvg Punatrf" save_changes: "Fnir Punatrf" required_field: "erdhverq" general: and: "naq" name: "PI:NAME:<NAME>END_PI" date: "Qngr" body: "Obql" version: "Irefvba" pending: "Craqvat" accepted: "Npprcgrq" rejected: "Erwrpgrq" withdrawn: "Jvguqenja" accept: "Npprcg" reject: "Erwrpg" withdraw: "Jvguqenj" submitter: "Fhozvggre" submitted: "Fhozvggrq" commit_msg: "Pbzzvg Zrffntr" version_history: "Irefvba Uvfgbel" version_history_for: "Irefvba Uvfgbel sbe: " select_changes: "Fryrpg gjb punatrf orybj gb frr gur qvssrerapr." undo_prefix: "Haqb" undo_shortcut: "(Pgey+M)" redo_prefix: "Erqb" redo_shortcut: "(Pgey+Fuvsg+M)" play_preview: "Cynl cerivrj bs pheerag yriry" result: "Erfhyg" results: "Erfhygf" description: "Qrfpevcgvba" or: "be" subject: "Fhowrpg" email: "Rznvy" password: "PI:PASSWORD:<PASSWORD>END_PI" confirm_password: "PI:PASSWORD:<PASSWORD>END_PI" message: "Zrffntr" code: "Pbqr" ladder: "Ynqqre" when: "Jura" opponent: "Bccbarag" rank: "Enax" score: "Fpber" win: "Jva" loss: "Ybff" tie: "Gvr" easy: "Rnfl" medium: "Zrqvhz" hard: "Uneq" player: "CPI:NAME:<NAME>END_PI" player_level: "Yriry" # Yvxr cynlre yriry 5, abg yvxr yriry: Qhatrbaf bs Xvgutneq warrior: "Jneevbe" ranger: "Enatre" wizard: "Jvmneq" first_name: "PI:NAME:<NAME>END_PI" last_name: "PI:NAME:<NAME>END_PI" last_initial: "PI:NAME:<NAME>END_PI" username: "Hfreanzr" contact_us: "Pbagnpg Hf" close_window: "Pybfr Jvaqbj" learn_more: "Yrnea Zber" more: "Zber" fewer: "Srjre" with: "jvgu" units: second: "frpbaq" seconds: "frpbaqf" sec: "frp" minute: "zvahgr" minutes: "zvahgrf" hour: "ubhe" hours: "ubhef" day: "qnl" days: "qnlf" week: "jrrx" weeks: "jrrxf" month: "zbagu" months: "zbaguf" year: "lrne" years: "lrnef" play_level: back_to_map: "Onpx gb Znc" directions: "Qverpgvbaf" edit_level: "Rqvg Yriry" keep_learning: "Xrrc Yrneavat" explore_codecombat: "Rkcyber PbqrPbzong" finished_hoc: "V'z svavfurq jvgu zl Ubhe bs Pbqr" get_certificate: "Trg lbhe pregvsvpngr!" level_complete: "Yriry Pbzcyrgr" completed_level: "Pbzcyrgrq Yriry:" course: "Pbhefr:" done: "Qbar" next_level: "Arkg Yriry" challenge_unlocked: "Punyyratr Haybpxrq" start_challenge: "Fgneg Punyyratr" next_game: "Arkg tnzr" languages: "Ynathntrf" programming_language: "Cebtenzzvat ynathntr" show_menu: "Fubj tnzr zrah" home: "Ubzr" # Abg hfrq nal zber, jvyy or erzbirq fbba. level: "Yriry" # Yvxr "Yriry: Qhatrbaf bs Xvgutneq" skip: "Fxvc" game_menu: "Tnzr Zrah" restart: "Erfgneg" goals: "Tbnyf" goal: "Tbny" challenge_level_goals: "Punyyratr Yriry Tbnyf" challenge_level_goal: "Punyyratr Yriry Tbny" running: "Ehaavat..." success: "Fhpprff!" incomplete: "Vapbzcyrgr" timed_out: "Ena bhg bs gvzr" failing: "Snvyvat" reload: "Erybnq" reload_title: "Erybnq Nyy Pbqr?" reload_really: "Ner lbh fher lbh jnag gb erybnq guvf yriry onpx gb gur ortvaavat?" reload_confirm: "Erybnq Nyy" test_level: "Grfg Yriry" victory: "Ivpgbel" victory_title_prefix: "" victory_title_suffix: " Pbzcyrgr" victory_sign_up: "Fvta Hc gb Fnir Cebterff" victory_sign_up_poke: "Jnag gb fnir lbhe pbqr? Perngr n serr nppbhag!" victory_rate_the_level: "Ubj sha jnf guvf yriry?" victory_return_to_ladder: "Erghea gb Ynqqre" victory_saving_progress: "Fnivat Cebterff" victory_go_home: "Tb Ubzr" victory_review: "Gryy hf zber!" victory_review_placeholder: "Ubj jnf gur yriry?" victory_hour_of_code_done: "Ner Lbh Qbar?" victory_hour_of_code_done_yes: "Lrf, V'z svavfurq jvgu zl Ubhe bs Pbqr™!" victory_experience_gained: "KC Tnvarq" victory_gems_gained: "Trzf Tnvarq" victory_new_item: "Arj Vgrz" victory_new_hero: "ArPI:NAME:<NAME>END_PI Ureb" victory_viking_code_school: "Ubyl fzbxrf, gung jnf n uneq yriry lbh whfg orng! Vs lbh nera'g nyernql n fbsgjner qrirybcre, lbh fubhyq or. Lbh whfg tbg snfg-genpxrq sbe npprcgnapr jvgu Ivxvat Pbqr Fpubby, jurer lbh pna gnxr lbhe fxvyyf gb gur arkg yriry naq orpbzr n cebsrffvbany jro qrirybcre va 14 jrrxf." victory_become_a_viking: "Orpbzr n Ivxvat" victory_no_progress_for_teachers: "Cebterff vf abg fnirq sbe grnpuref. Ohg, lbh pna nqq n fghqrag nppbhag gb lbhe pynffebbz sbe lbhefrys." tome_cast_button_run: "Eha" tome_cast_button_running: "Ehaavat" tome_cast_button_ran: "Ena" tome_submit_button: "Fhozvg" tome_reload_method: "Erybnq bevtvany pbqr gb erfgneg gur yriry" tome_available_spells: "Ninvynoyr Fcryyf" tome_your_skills: "Lbhe Fxvyyf" hints: "Uvagf" hints_title: "Uvag {{ahzore}}" code_saved: "Pbqr Fnirq" skip_tutorial: "Fxvc (rfp)" keyboard_shortcuts: "Xrl Fubegphgf" loading_start: "Fgneg Yriry" problem_alert_title: "Svk Lbhe Pbqr" time_current: "Abj:" time_total: "Znk:" time_goto: "Tb gb:" non_user_code_problem_title: "Hanoyr gb Ybnq Yriry" infinite_loop_title: "Vasvavgr Ybbc Qrgrpgrq" infinite_loop_description: "Gur vavgvny pbqr gb ohvyq gur jbeyq arire svavfurq ehaavat. Vg'f cebonoyl rvgure ernyyl fybj be unf na vasvavgr ybbc. Be gurer zvtug or n oht. Lbh pna rvgure gel ehaavat guvf pbqr ntnva be erfrg gur pbqr gb gur qrsnhyg fgngr. Vs gung qbrfa'g svk vg, cyrnfr yrg hf xabj." check_dev_console: "Lbh pna nyfb bcra gur qrirybcre pbafbyr gb frr jung zvtug or tbvat jebat." check_dev_console_link: "(vafgehpgvbaf)" infinite_loop_try_again: "Gel Ntnva" infinite_loop_reset_level: "Erfrg Yriry" infinite_loop_comment_out: "Pbzzrag Bhg Zl Pbqr" tip_toggle_play: "Gbttyr cynl/cnhfrq jvgu Pgey+C." tip_scrub_shortcut: "Hfr Pgey+[ naq Pgey+] gb erjvaq naq snfg-sbejneq." tip_guide_exists: "Pyvpx gur thvqr, vafvqr tnzr zrah (ng gur gbc bs gur cntr), sbe hfrshy vasb." tip_open_source: "PbqrPbzong vf 100% bcra fbhepr!" tip_tell_friends: "Rawblvat PbqrPbzong? Gryy lbhe sevraqf nobhg hf!" tip_beta_launch: "PbqrPbzong ynhapurq vgf orgn va Bpgbore, 2013." tip_think_solution: "Guvax bs gur fbyhgvba, abg gur ceboyrz." tip_theory_practice: "Va gurbel, gurer vf ab qvssrerapr orgjrra gurbel naq cenpgvpr. Ohg va cenpgvpr, gurer vf. - Lbtv Oreen" tip_error_free: "Gurer ner gjb jnlf gb jevgr reebe-serr cebtenzf; bayl gur guveq bar jbexf. - Nyna Creyvf" tip_debugging_program: "Vs qrohttvat vf gur cebprff bs erzbivat ohtf, gura cebtenzzvat zhfg or gur cebprff bs chggvat gurz va. - Rqftre J. Qvwxfgen" tip_forums: "Urnq bire gb gur sbehzf naq gryy hf jung lbh guvax!" tip_baby_coders: "Va gur shgher, rira onovrf jvyy or Nepuzntrf." tip_morale_improves: "Ybnqvat jvyy pbagvahr hagvy zbenyr vzcebirf." tip_all_species: "Jr oryvrir va rdhny bccbeghavgvrf gb yrnea cebtenzzvat sbe nyy fcrpvrf." tip_reticulating: "Ergvphyngvat fcvarf." tip_harry: "Lre n Jvmneq, " tip_great_responsibility: "Jvgu terng pbqvat fxvyy pbzrf terng qroht erfcbafvovyvgl." tip_munchkin: "Vs lbh qba'g rng lbhe irtrgnoyrf, n zhapuxva jvyy pbzr nsgre lbh juvyr lbh'er nfyrrc." tip_binary: "Gurer ner bayl 10 glcrf bs crbcyr va gur jbeyq: gubfr jub haqrefgnaq ovanel, naq gubfr jub qba'g." tip_commitment_yoda: "N cebtenzzre zhfg unir gur qrrcrfg pbzzvgzrag, gur zbfg frevbhf zvaq. ~ Lbqn" tip_no_try: "Qb. Be qb abg. Gurer vf ab gel. - Lbqn" tip_patience: "Cngvrapr lbh zhfg unir, lbhat Cnqnjna. - Lbqn" tip_documented_bug: "N qbphzragrq oht vf abg n oht; vg vf n srngher." tip_impossible: "Vg nyjnlf frrzf vzcbffvoyr hagvy vg'f qbar. - PI:NAME:<NAME>END_PI" tip_talk_is_cheap: "Gnyx vf purnc. Fubj zr gur pbqr. - Yvahf Gbeinyqf" tip_first_language: "Gur zbfg qvfnfgebhf guvat gung lbh pna rire yrnea vf lbhe svefg cebtenzzvat ynathntr. - Nyna Xnl" tip_hardware_problem: "D: Ubj znal cebtenzzref qbrf vg gnxr gb punatr n yvtug ohyo? N: Abar, vg'f n uneqjner ceboyrz." tip_hofstadters_law: "Ubsfgnqgre'f Ynj: Vg nyjnlf gnxrf ybatre guna lbh rkcrpg, rira jura lbh gnxr vagb nppbhag Ubsfgnqgre'f Ynj." tip_premature_optimization: "Cerzngher bcgvzvmngvba vf gur ebbg bs nyy rivy. - Qbanyq Xahgu" tip_brute_force: "Jura va qbhog, hfr oehgr sbepr. - Xra Gubzcfba" tip_extrapolation: "Gurer ner bayl gjb xvaqf bs crbcyr: gubfr gung pna rkgencbyngr sebz vapbzcyrgr qngn..." tip_superpower: "Pbqvat vf gur pybfrfg guvat jr unir gb n fhcrecbjre." tip_control_destiny: "Va erny bcra fbhepr, lbh unir gur evtug gb pbageby lbhe bja qrfgval. - Yvahf Gbeinyqf" tip_no_code: "Ab pbqr vf snfgre guna ab pbqr." tip_code_never_lies: "Pbqr arire yvrf, pbzzragf fbzrgvzrf qb. — Eba Wrssevrf" tip_reusable_software: "Orsber fbsgjner pna or erhfnoyr vg svefg unf gb or hfnoyr." tip_optimization_operator: "Rirel ynathntr unf na bcgvzvmngvba bcrengbe. Va zbfg ynathntrf gung bcrengbe vf ‘//’" tip_lines_of_code: "Zrnfhevat cebtenzzvat cebterff ol yvarf bs pbqr vf yvxr zrnfhevat nvepensg ohvyqvat cebterff ol jrvtug. — Ovyy Tngrf" tip_source_code: "V jnag gb punatr gur jbeyq ohg gurl jbhyq abg tvir zr gur fbhepr pbqr." tip_javascript_java: "Wnin vf gb WninFpevcg jung Pne vf gb Pnecrg. - Puevf Urvyznaa" tip_move_forward: "Jungrire lbh qb, xrrc zbivat sbejneq. - Znegva Yhgure Xvat We." tip_google: "Unir n ceboyrz lbh pna'g fbyir? Tbbtyr vg!" tip_adding_evil: "Nqqvat n cvapu bs rivy." tip_hate_computers: "Gung'f gur guvat nobhg crbcyr jub guvax gurl ungr pbzchgref. Jung gurl ernyyl ungr vf ybhfl cebtenzzref. - Yneel Avira" tip_open_source_contribute: "Lbh pna uryc PbqrPbzong vzcebir!" tip_recurse: "Gb vgrengr vf uhzna, gb erphefr qvivar. - Y. Crgre Qrhgfpu" tip_free_your_mind: "Lbh unir gb yrg vg nyy tb, Arb. Srne, qbhog, naq qvforyvrs. Serr lbhe zvaq. - Zbecurhf" tip_strong_opponents: "Rira gur fgebatrfg bs bccbaragf nyjnlf unf n jrnxarff. - Vgnpuv Hpuvun" tip_paper_and_pen: "Orsber lbh fgneg pbqvat, lbh pna nyjnlf cyna jvgu n furrg bs cncre naq n cra." tip_solve_then_write: "Svefg, fbyir gur ceboyrz. Gura, jevgr gur pbqr. - Wbua Wbuafba" tip_compiler_ignores_comments: "Fbzrgvzrf V guvax gung gur pbzcvyre vtaberf zl pbzzragf." tip_understand_recursion: "Gur bayl jnl gb haqrefgnaq erphefvba vf gb haqrefgnaq erphefvba." tip_life_and_polymorphism: "Bcra Fbhepr vf yvxr n gbgnyyl cbylzbecuvp urgrebtrarbhf fgehpgher: Nyy glcrf ner jrypbzr." tip_mistakes_proof_of_trying: "Zvfgnxrf va lbhe pbqr ner whfg cebbs gung lbh ner gelvat." tip_adding_orgres: "Ebhaqvat hc bterf." tip_sharpening_swords: "Funecravat gur fjbeqf." tip_ratatouille: "Lbh zhfg abg yrg nalbar qrsvar lbhe yvzvgf orpnhfr bs jurer lbh pbzr sebz. Lbhe bayl yvzvg vf lbhe fbhy. - Thfgrnh, Engngbhvyyr" tip_nemo: "Jura yvsr trgf lbh qbja, jnag gb xabj jung lbh'ir tbggn qb? Whfg xrrc fjvzzvat, whfg xrrc fjvzzvat. - Qbel, Svaqvat Arzb" tip_internet_weather: "Whfg zbir gb gur vagrearg, vg'f terng urer. Jr trg gb yvir vafvqr jurer gur jrngure vf nyjnlf njrfbzr. - Wbua Terra" tip_nerds: "Areqf ner nyybjrq gb ybir fghss, yvxr whzc-hc-naq-qbja-va-gur-punve-pna'g-pbageby-lbhefrys ybir vg. - Wbua Terra" tip_self_taught: "V gnhtug zlfrys 90% bs jung V'ir yrnearq. Naq gung'f abezny! - Unax Terra" tip_luna_lovegood: "Qba'g jbeel, lbh'er whfg nf fnar nf V nz. - Yhan Ybirtbbq" tip_good_idea: "Gur orfg jnl gb unir n tbbq vqrn vf gb unir n ybg bs vqrnf. - Yvahf Cnhyvat" tip_programming_not_about_computers: "Pbzchgre Fpvrapr vf ab zber nobhg pbzchgref guna nfgebabzl vf nobhg gryrfpbcrf. - Rqftre Qvwxfgen" tip_mulan: "Oryvrir lbh pna, gura lbh jvyy. - Zhyna" project_complete: "Cebwrpg Pbzcyrgr!" share_this_project: "Funer guvf cebwrpg jvgu sevraqf be snzvyl:" ready_to_share: "Ernql gb choyvfu lbhe cebwrpg?" click_publish: "Pyvpx \"Choyvfu\" gb znxr vg nccrne va gur pynff tnyyrel, gura purpx bhg jung lbhe pynffzngrf ohvyg! Lbh pna pbzr onpx naq pbagvahr gb jbex ba guvf cebwrpg. Nal shegure punatrf jvyy nhgbzngvpnyyl or fnirq naq funerq jvgu lbhe pynffzngrf." already_published_prefix: "Lbhe punatrf unir orra choyvfurq gb gur pynff tnyyrel." already_published_suffix: "Xrrc rkcrevzragvat naq znxvat guvf cebwrpg rira orggre, be frr jung gur erfg bs lbhe pynff unf ohvyg! Lbhe punatrf jvyy nhgbzngvpnyyl or fnirq naq funerq jvgu lbhe pynffzngrf." view_gallery: "Ivrj Tnyyrel" project_published_noty: "Lbhe yriry unf orra choyvfurq!" keep_editing: "Xrrc Rqvgvat" apis: methods: "Zrgubqf" events: "Riragf" spawnable: "Fcnjanoyr" html: "UGZY" math: "Zngu" array: "Neenl" object: "Bowrpg" string: "Fgevat" function: "Shapgvba" vector: "Irpgbe" date: "Qngr" jquery: "wDhrel" json: "WFBA" number: "Ahzore" webjavascript: "WninFpevcg" amazon_hoc: title: "Xrrc Yrneavat jvgu Nznmba!" congrats: "Pbatenghyngvbaf ba pbadhrevat gung punyyratvat Ubhe bs Pbqr!" educate_1: "Abj, xrrc yrneavat nobhg pbqvat naq pybhq pbzchgvat jvgu NJF Rqhpngr, na rkpvgvat, serr cebtenz sebz Nznmba sbe obgu fghqragf naq grnpuref. Jvgu NJF Rqhpngr, lbh pna rnea pbby onqtrf nf lbh yrnea nobhg gur onfvpf bs gur pybhq naq phggvat-rqtr grpuabybtvrf fhpu nf tnzvat, iveghny ernyvgl, naq Nyrkn." educate_2: "Yrnea zber naq fvta hc urer" future_eng_1: "Lbh pna nyfb gel gb ohvyq lbhe bja fpubby snpgf fxvyy sbe Nyrkn" future_eng_2: "urer" future_eng_3: "(qrivpr vf abg erdhverq). Guvf Nyrkn npgvivgl vf oebhtug gb lbh ol gur" future_eng_4: "Nznmba Shgher Ratvarre" future_eng_5: "cebtenz juvpu perngrf yrneavat naq jbex bccbeghavgvrf sbe nyy X-12 fghqragf va gur Havgrq Fgngrf jub jvfu gb chefhr pbzchgre fpvrapr." play_game_dev_level: created_by: "Perngrq ol {{anzr}}" created_during_hoc: "Perngrq qhevat Ubhe bs Pbqr" restart: "ErPI:NAME:<NAME>END_PI" play: "CPI:NAME:<NAME>END_PI" play_more_codecombat: "Cynl Zber PbqrPbzong" default_student_instructions: "Pyvpx gb pbageby lbhe ureb naq jva lbhe tnzr!" goal_survive: "Fheivir." goal_survive_time: "Fheivir sbe __frpbaqf__ frpbaqf." goal_defeat: "Qrsrng nyy rarzvrf." goal_defeat_amount: "Qrsrng __nzbhag__ rarzvrf." goal_move: "Zbir gb nyy gur erq K znexf." goal_collect: "Pbyyrpg nyy gur vgrzf." goal_collect_amount: "Pbyyrpg __nzbhag__ vgrzf." game_menu: inventory_tab: "Vairagbel" save_load_tab: "Fnir/Ybnq" options_tab: "Bcgvbaf" guide_tab: "Thvqr" guide_video_tutorial: "Ivqrb Ghgbevny" guide_tips: "Gvcf" multiplayer_tab: "Zhygvcynlre" auth_tab: "Fvta Hc" inventory_caption: "Rdhvc lbhe ureb" choose_hero_caption: "Pubbfr ureb, ynathntr" options_caption: "Pbasvther frggvatf" guide_caption: "Qbpf naq gvcf" multiplayer_caption: "Cynl jvgu sevraqf!" auth_caption: "Fnir lbhe cebterff." leaderboard: view_other_solutions: "Ivrj Yrnqreobneqf" scores: "Fpberf" top_players: "Gbc Cynlref ol" day: "Gbqnl" week: "Guvf Jrrx" all: "Nyy-Gvzr" latest: "Yngrfg" time: "Jva Gvzr" damage_taken: "Qnzntr Gnxra" damage_dealt: "Qnzntr Qrnyg" difficulty: "Qvssvphygl" gold_collected: "Tbyq Pbyyrpgrq" survival_time: "Fheivirq" defeated: "Rarzvrf Qrsrngrq" code_length: "Yvarf bs Pbqr" score_display: "__fpberGlcr__: __fpber__" inventory: equipped_item: "Rdhvccrq" required_purchase_title: "Erdhverq" available_item: "Ninvynoyr" restricted_title: "Erfgevpgrq" should_equip: "(qbhoyr-pyvpx gb rdhvc)" equipped: "(rdhvccrq)" locked: "(ybpxrq)" restricted: "(erfgevpgrq va guvf yriry)" equip: "Rdhvc" unequip: "Hardhvc" warrior_only: "Jneevbe Bayl" ranger_only: "Enatre Bayl" wizard_only: "Jvmneq Bayl" buy_gems: few_gems: "N srj trzf" pile_gems: "Cvyr bs trzf" chest_gems: "Purfg bs trzf" purchasing: "Chepunfvat..." declined: "Lbhe pneq jnf qrpyvarq" retrying: "Freire reebe, ergelvat." prompt_title: "Abg Rabhtu Trzf" prompt_body: "Qb lbh jnag gb trg zber?" prompt_button: "Ragre Fubc" recovered: "Cerivbhf trzf chepunfr erpbirerq. Cyrnfr erserfu gur cntr." price: "k{{trzf}} / zb" buy_premium: "Ohl Cerzvhz" purchase: "Chepunfr" purchased: "Chepunfrq" earn_gems: prompt_title: "Abg Rabhtu Trzf" prompt_body: "Xrrc cynlvat gb rnea zber!" subscribe: best_deal: "Orfg Qrny!" confirmation: "Pbatenghyngvbaf! Lbh abj unir n PbqrPbzong Cerzvhz Fhofpevcgvba!" premium_already_subscribed: "Lbh'er nyernql fhofpevorq gb Cerzvhz!" subscribe_modal_title: "PbqrPbzong Cerzvhz" comparison_blurb: "Orpbzr n Znfgre Pbqre - fhofpevor gb <o>Cerzvhz</o> gbqnl!" must_be_logged: "Lbh zhfg or ybttrq va svefg. Cyrnfr perngr na nppbhag be ybt va sebz gur zrah nobir." subscribe_title: "Fhofpevor" # Npghnyyl hfrq va fhofpevor ohggbaf, gbb unsubscribe: "Hafhofpevor" confirm_unsubscribe: "Pbasvez Hafhofpevor" never_mind: "PI:NAME:<NAME>END_PI, V Fgvyy Ybir Lbh" thank_you_months_prefix: "Gunax lbh sbe fhccbegvat hf gurfr ynfg" thank_you_months_suffix: "zbaguf." thank_you: "Gunax lbh sbe fhccbegvat PbqrPbzong." sorry_to_see_you_go: "Fbeel gb frr lbh tb! Cyrnfr yrg hf xabj jung jr pbhyq unir qbar orggre." unsubscribe_feedback_placeholder: "B, jung unir jr qbar?" stripe_description: "Zbaguyl Fhofpevcgvba" buy_now: "Ohl Abj" subscription_required_to_play: "Lbh'yy arrq n fhofpevcgvba gb cynl guvf yriry." unlock_help_videos: "Fhofpevor gb haybpx nyy ivqrb ghgbevnyf." personal_sub: "Crefbany Fhofpevcgvba" # Nppbhagf Fhofpevcgvba Ivrj orybj loading_info: "Ybnqvat fhofpevcgvba vasbezngvba..." managed_by: "Znantrq ol" will_be_cancelled: "Jvyy or pnapryyrq ba" currently_free: "Lbh pheeragyl unir n serr fhofpevcgvba" currently_free_until: "Lbh pheeragyl unir n fhofpevcgvba hagvy" free_subscription: "Serr fhofpevcgvba" was_free_until: "Lbh unq n serr fhofpevcgvba hagvy" managed_subs: "Znantrq Fhofpevcgvbaf" subscribing: "Fhofpevovat..." current_recipients: "PPI:NAME:<NAME>END_PI" unsubscribing: "Hafhofpevovat" subscribe_prepaid: "Pyvpx Fhofpevor gb hfr cercnvq pbqr" using_prepaid: "Hfvat cercnvq pbqr sbe zbaguyl fhofpevcgvba" feature_level_access: "Npprff 300+ yriryf ninvynoyr" feature_heroes: "Haybpx rkpyhfvir urebrf naq crgf" feature_learn: "Yrnea gb znxr tnzrf naq jrofvgrf" month_price: "$__cevpr__" first_month_price: "Bayl $__cevpr__ sbe lbhe svefg zbagu!" lifetime: "Yvsrgvzr Npprff" lifetime_price: "$__cevpr__" year_subscription: "Lrneyl Fhofpevcgvba" year_price: "$__cevpr__/lrne" support_part1: "Arrq uryc jvgu cnlzrag be cersre CnlCny? Rznvy" support_part2: "PI:EMAIL:<EMAIL>END_PI" announcement: now_available: "Abj ninvynoyr sbe fhofpevoref!" subscriber: "fhofpevore" cuddly_companions: "Phqqyl Pbzcnavbaf!" # Crg Naabhaprzrag Zbqny kindling_name: "PI:NAME:<NAME>END_PI" kindling_description: "PI:NAME:<NAME>END_PIqyvat PI:NAME:<NAME>END_PInyf whfg jnag gb xrrc lbh jnez ng avtug. Naq qhevat gur qnl. Nyy gur gvzr, ernyyl." griffin_name: "PI:NAME:<NAME>END_PI" griffin_description: "Tevssvaf ner unys rntyr, unys yvba, nyy nqbenoyr." raven_name: "PI:NAME:<NAME>END_PI" raven_description: "Eniraf ner rkpryyrag ng tngurevat fuval obggyrf shyy bs urnygu sbe lbh." mimic_name: "Zvzvp" mimic_description: "Zvzvpf pna cvpx hc pbvaf sbe lbh. Zbir gurz ba gbc bs pbvaf gb vapernfr lbhe tbyq fhccyl." cougar_name: "Pbhtne" cougar_description: "Pbhtnef yvxr gb rnea n CuQ ol Cheevat Unccvyl Qnvyl." fox_name: "PI:NAME:<NAME>END_PI" fox_description: "Oyhr sbkrf ner irel pyrire naq ybir qvttvat va gur qveg naq fabj!" pugicorn_name: "Chtvpbea" pugicorn_description: "Chtvpbeaf ner fbzr bs gur enerfg perngherf naq pna pnfg fcryyf!" wolf_name: "PI:NAME:<NAME>END_PI" wolf_description: "Jbys chcf rkpry va uhagvat, tngurevat, naq cynlvat n zrna tnzr bs uvqr-naq-frrx!" ball_name: "PI:NAME:<NAME>END_PI" ball_description: "onyy.fdhrnx()" collect_pets: "Pbyyrpg crgf sbe lbhe urebrf!" each_pet: "Rnpu crg unf n havdhr urycre novyvgl!" upgrade_to_premium: "Orpbzr n {{fhofpevore}} gb rdhvc crgf." play_second_kithmaze: "Cynl {{gur_frpbaq_xvguznmr}} gb haybpx gur JbyPI:NAME:<NAME>END_PI Chc!" the_second_kithmaze: "Gur Frpbaq Xvguznmr" keep_playing: "Xrrc cynlvat gb qvfpbire gur svefg crg!" coming_soon: "Pbzvat fbba" ritic: "Evgvp gur Pbyq" # Evgvp Naabhaprzrag Zbqny ritic_description: "Evgvp gur Pbyq. Genccrq va Xryivagncu Tynpvre sbe pbhagyrff ntrf, svanyyl serr naq ernql gb graq gb gur bterf gung vzcevfbarq uvz." ice_block: "N oybpx bs vpr" ice_description: "Gurer nccrnef gb or fbzrguvat genccrq vafvqr..." blink_name: "Oyvax" blink_description: "Evgvp qvfnccrnef naq ernccrnef va n oyvax bs na rlr, yrnivat abguvat ohg n funqbj." shadowStep_name: "Funqbjfgrc" shadowStep_description: "N znfgre nffnffva xabjf ubj gb jnyx orgjrra gur funqbjf." tornado_name: "Gbeanqb" tornado_description: "Vg vf tbbq gb unir n erfrg ohggba jura bar'f pbire vf oybja." wallOfDarkness_name: "Jnyy bs Qnexarff" wallOfDarkness_description: "Uvqr oruvaq n jnyy bs funqbjf gb cerirag gur tnmr bs celvat rlrf." premium_features: get_premium: "Trg<oe>PbqrPbzong<oe>Cerzvhz" # Svg vagb gur onaare ba gur /srngherf cntr master_coder: "Orpbzr n Znfgre Pbqre ol fhofpevovat gbqnl!" paypal_redirect: "Lbh jvyy or erqverpgrq gb CnlCny gb pbzcyrgr gur fhofpevcgvba cebprff." subscribe_now: "Fhofpevor Abj" hero_blurb_1: "Trg npprff gb __cerzvhzUrebrfPbhag__ fhcre-punetrq fhofpevore-bayl urebrf! Unearff gur hafgbccnoyr cbjre bs Bxne Fgbzcsbbg, gur qrnqyl cerpvfvba bs Anevn bs gur Yrns, be fhzzba \"nqbenoyr\" fxryrgbaf jvgu Anysne Pelcgbe." hero_blurb_2: "Cerzvhz Jneevbef haybpx fghaavat znegvny fxvyyf yvxr Jnepel, Fgbzc, naq Uhey Rarzl. Be, cynl nf n Enatre, hfvat fgrnygu naq objf, guebjvat xavirf, gencf! Gel lbhe fxvyy nf n gehr pbqvat Jvmneq, naq hayrnfu n cbjreshy neenl bs Cevzbeqvny, Arpebznagvp be Ryrzragny zntvp!" hero_caption: "Rkpvgvat arj urebrf!" pet_blurb_1: "Crgf nera'g whfg nqbenoyr pbzcnavbaf, gurl nyfb cebivqr havdhr shapgvbanyvgl naq zrgubqf. Gur Onol Tevssba pna pneel havgf guebhtu gur nve, gur Jbys Chc cynlf pngpu jvgu rarzl neebjf, gur Pbhtne vf sbaq bs punfvat bterf nebhaq, naq gur Zvzvp nggenpgf pbvaf yvxr n zntarg!" pet_blurb_2: "Pbyyrpg nyy gur crgf gb qvfpbire gurve havdhr novyvgvrf!" pet_caption: "Nqbcg crgf gb nppbzcnal lbhe ureb!" game_dev_blurb: "Yrnea tnzr fpevcgvat naq ohvyq arj yriryf gb funer jvgu lbhe sevraqf! Cynpr gur vgrzf lbh jnag, jevgr pbqr sbe havg ybtvp naq orunivbe, naq frr vs lbhe sevraqf pna orng gur yriry!" game_dev_caption: "Qrfvta lbhe bja tnzrf gb punyyratr lbhe sevraqf!" everything_in_premium: "Rirelguvat lbh trg va PbqrPbzong Cerzvhz:" list_gems: "Erprvir obahf trzf gb ohl trne, crgf, naq urebrf" list_levels: "Tnva npprff gb __cerzvhzYriryfPbhag__ zber yriryf" list_heroes: "Haybpx rkpyhfvir urebrf, vapyhqr Enatre naq Jvmneq pynffrf" list_game_dev: "Znxr naq funer tnzrf jvgu sevraqf" list_web_dev: "Ohvyq jrofvgrf naq vagrenpgvir nccf" list_items: "Rdhvc Cerzvhz-bayl vgrzf yvxr crgf" list_support: "Trg Cerzvhz fhccbeg gb uryc lbh qroht gevpxl pbqr" list_clans: "Perngr cevingr pynaf gb vaivgr lbhe sevraqf naq pbzcrgr ba n tebhc yrnqreobneq" choose_hero: choose_hero: "Pubbfr Lbhe Ureb" programming_language: "Cebtenzzvat Ynathntr" programming_language_description: "Juvpu cebtenzzvat ynathntr qb lbh jnag gb hfr?" default: "Qrsnhyg" experimental: "Rkcrevzragny" python_blurb: "Fvzcyr lrg cbjreshy, terng sbe ortvaaref naq rkcregf." javascript_blurb: "Gur ynathntr bs gur jro. (Abg gur fnzr nf Wnin.)" coffeescript_blurb: "Avpre WninFpevcg flagnk." lua_blurb: "Tnzr fpevcgvat ynathntr." java_blurb: "(Fhofpevore Bayl) Naqebvq naq ragrecevfr." status: "Fgnghf" weapons: "Jrncbaf" weapons_warrior: "Fjbeqf - Fubeg Enatr, Ab Zntvp" weapons_ranger: "Pebffobjf, Thaf - Ybat Enatr, Ab Zntvp" weapons_wizard: "Jnaqf, Fgnssf - Ybat Enatr, Zntvp" attack: "Qnzntr" # Pna nyfb genafyngr nf "Nggnpx" health: "Urnygu" speed: "Fcrrq" regeneration: "Ertrarengvba" range: "Enatr" # Nf va "nggnpx be ivfhny enatr" blocks: "Oybpxf" # Nf va "guvf fuvryq oybpxf guvf zhpu qnzntr" backstab: "Onpxfgno" # Nf va "guvf qnttre qbrf guvf zhpu onpxfgno qnzntr" skills: "Fxvyyf" attack_1: "Qrnyf" attack_2: "bs yvfgrq" attack_3: "jrncba qnzntr." health_1: "Tnvaf" health_2: "bs yvfgrq" health_3: "nezbe urnygu." speed_1: "Zbirf ng" speed_2: "zrgref cre frpbaq." available_for_purchase: "Ninvynoyr sbe Chepunfr" # Fubjf hc jura lbh unir haybpxrq, ohg abg chepunfrq, n ureb va gur ureb fgber level_to_unlock: "Yriry gb haybpx:" # Ynory sbe juvpu yriry lbh unir gb orng gb haybpx n cnegvphyne ureb (pyvpx n ybpxrq ureb va gur fgber gb frr) restricted_to_certain_heroes: "Bayl pregnva urebrf pna cynl guvf yriry." skill_docs: function: "shapgvba" # fxvyy glcrf method: "zrgubq" snippet: "favccrg" number: "ahzore" array: "neenl" object: "bowrpg" string: "fgevat" writable: "jevgnoyr" # Ubire bire "nggnpx" va Lbhe Fxvyyf juvyr cynlvat n yriry gb frr zbfg bs guvf read_only: "ernq-bayl" action: "Npgvba" spell: "Fcryy" action_name: "anzr" action_cooldown: "Gnxrf" action_specific_cooldown: "Pbbyqbja" action_damage: "Qnzntr" action_range: "Enatr" action_radius: "Enqvhf" action_duration: "Qhengvba" example: "Rknzcyr" ex: "rk" # Nooerivngvba bs "rknzcyr" current_value: "Pheerag Inyhr" default_value: "Qrsnhyg inyhr" parameters: "Cnenzrgref" required_parameters: "Erdhverq Cnenzrgref" optional_parameters: "Bcgvbany Cnenzrgref" returns: "Ergheaf" granted_by: "Tenagrq ol" save_load: granularity_saved_games: "Fnirq" granularity_change_history: "Uvfgbel" options: general_options: "Trareny Bcgvbaf" # Purpx bhg gur Bcgvbaf gno va gur Tnzr Zrah juvyr cynlvat n yriry volume_label: "Ibyhzr" music_label: "Zhfvp" music_description: "Ghea onpxtebhaq zhfvp ba/bss." editor_config_title: "Rqvgbe Pbasvthengvba" editor_config_livecompletion_label: "Yvir Nhgbpbzcyrgvba" editor_config_livecompletion_description: "Qvfcynlf nhgbpbzcyrgr fhttrfgvbaf juvyr glcvat." editor_config_invisibles_label: "Fubj Vaivfvoyrf" editor_config_invisibles_description: "Qvfcynlf vaivfvoyrf fhpu nf fcnprf be gnof." editor_config_indentguides_label: "Fubj Vaqrag Thvqrf" editor_config_indentguides_description: "Qvfcynlf iregvpny yvarf gb frr vaqragngvba orggre." editor_config_behaviors_label: "Fzneg Orunivbef" editor_config_behaviors_description: "Nhgbpbzcyrgrf oenpxrgf, oenprf, naq dhbgrf." about: main_title:"Vs lbh jnag gb yrnea gb cebtenz, lbh arrq gb jevgr (n ybg bs) pbqr." main_description: "Ng PbqrPbzong, bhe wbo vf gb znxr fher lbh'er qbvat gung jvgu n fzvyr ba lbhe snpr." mission_link: "Zvffvba" team_link: "Grnz" story_link: "Fgbel" press_link: "Cerff" mission_title: "Bhe zvffvba: znxr cebtenzzvat npprffvoyr gb rirel fghqrag ba Rnegu." mission_description_1: "<fgebat>Cebtenzzvat vf zntvp</fgebat>. Vg'f gur novyvgl gb perngr guvatf sebz cher vzntvangvba. Jr fgnegrq PbqrPbzong gb tvir yrnearef gur srryvat bs jvmneqyl cbjre ng gurve svatregvcf ol hfvat <fgebat>glcrq pbqr</fgebat>." mission_description_2: "Nf vg gheaf bhg, gung ranoyrf gurz gb yrnea snfgre gbb. JNL snfgre. Vg'f yvxr univat n pbairefngvba vafgrnq bs ernqvat n znahny. Jr jnag gb oevat gung pbairefngvba gb rirel fpubby naq gb <fgebat>rirel fghqrag</fgebat>, orpnhfr rirelbar fubhyq unir gur punapr gb yrnea gur zntvp bs cebtenzzvat." team_title: "Zrrg gur PbqrPbzong grnz" team_values: "Jr inyhr bcra naq erfcrpgshy qvnybt, jurer gur orfg vqrn jvaf. Bhe qrpvfvbaf ner tebhaqrq va phfgbzre erfrnepu naq bhe cebprff vf sbphfrq ba qryvirevat gnatvoyr erfhygf sbe gurz. Rirelbar vf unaqf-ba, sebz bhe PRB gb bhe TvgUho pbagevohgbef, orpnhfr jr inyhr tebjgu naq yrneavat va bhe grnz." nick_title: "PPI:NAME:<NAME>END_PI, PRPI:NAME:<NAME>END_PI" nick_blurb: "ZbgvingPI:NAME:<NAME>END_PI" matt_title: "Pbsbhaqre, PGB" cat_title: "Tnzr Qrfvtare" cat_blurb: "Nveoraqre" scott_title: "Pbsbhaqre, PI:NAME:<NAME>END_PI" scott_blurb: "Ernfbanoyr Bar" maka_title: "Phfgbzre Nqibpngr" maka_blurb: "Fgbelgryyre" rob_title: "PI:NAME:<NAME>END_PI" rob_blurb: "Pbqrf guvatf naq fghss" josh_c_title: "Tnzr Qrfvtare" josh_c_blurb: "Qrfvtaf tnzrf" robin_title: "Cebqhpg Znantre" robin_blurb: "Fuvcf guvatf" josh_title: "Tnzr Qrfvtare" josh_blurb: "Sybbe Vf Ynin" nolan_title: "Greevgbel Znantre" lisa_title: "Fpubby Fcrpvnyvfg" lisa_blurb: "N tevggl bar" sean_title: "Greevgbel Znantre" liz_title: "Greevgbel Znantre" david_title: "Phfgbzre Fhpprff Znantre" jane_title: "Cnegarefuvc Znantre" retrostyle_title: "Vyyhfgengvba" retrostyle_blurb: "ErgebFglyr Tnzrf" jose_title: "Zhfvp" jose_blurb: "Gnxvat Bss" bryukh_title: "Tnzr Qrfvtare" bryukh_blurb: "Pbafgehpgf chmmyrf" community_title: "...naq bhe bcra-fbhepr pbzzhavgl" community_subtitle: "Bire 500 pbagevohgbef unir urycrq ohvyq PbqrPbzong, jvgu zber wbvavat rirel jrrx!" community_description_3: "PbqrPbzong vf n" community_description_link_2: "pbzzhavgl cebwrpg" community_description_1: "jvgu uhaqerqf bs cynlref ibyhagrrevat gb perngr yriryf, pbagevohgr gb bhe pbqr gb nqq srngherf, svk ohtf, cynlgrfg, naq rira genafyngr gur tnzr vagb 50 ynathntrf fb sne. Rzcyblrrf, pbagevohgbef naq gur fvgr tnva ol funevat vqrnf naq cbbyvat rssbeg, nf qbrf gur bcra fbhepr pbzzhavgl va trareny. Gur fvgr vf ohvyg ba ahzrebhf bcra fbhepr cebwrpgf, naq jr ner bcra fbheprq gb tvir onpx gb gur pbzzhavgl naq cebivqr pbqr-phevbhf cynlref n snzvyvne cebwrpg gb rkcyber naq rkcrevzrag jvgu. Nalbar pna wbva gur PbqrPbzong pbzzhavgl! Purpx bhg bhe" community_description_link: "pbagevohgr cntr" community_description_2: "sbe zber vasb." number_contributors: "Bire 450 pbagevohgbef unir yrag gurve fhccbeg naq gvzr gb guvf cebwrpg." story_title: "Bhe fgbel fb sne" story_subtitle: "Fvapr 2013, PbqrPbzong unf tebja sebz n zrer frg bs fxrgpurf gb n yvivat, guevivat tnzr." story_statistic_1a: "5,000,000+" story_statistic_1b: "gbgny cynlref" story_statistic_1c: "unir fgnegrq gurve cebtenzzvat wbhearl guebhtu PbqrPbzong" story_statistic_2a: "Jr’ir orra genafyngrq vagb bire 50 ynathntrf — bhe cynlref unvy sebz" story_statistic_2b: "200+ pbhagevrf" story_statistic_3a: "Gbtrgure, gurl unir jevggra" story_statistic_3b: "1 ovyyvba yvarf bs pbqr naq pbhagvat" story_statistic_3c: "npebff znal qvssrerag cebtenzzvat ynathntrf" story_long_way_1: "Gubhtu jr'ir pbzr n ybat jnl..." story_sketch_caption: "Avpx'f irel svefg fxrgpu qrcvpgvat n cebtenzzvat tnzr va npgvba." story_long_way_2: "jr fgvyy unir zhpu gb qb orsber jr pbzcyrgr bhe dhrfg, fb..." jobs_title: "Pbzr jbex jvgu hf naq uryc jevgr PbqrPbzong uvfgbel!" jobs_subtitle: """Qba'g frr n tbbq svg ohg vagrerfgrq va xrrcvat va gbhpu? Frr bhe "Perngr Lbhe Bja" yvfgvat.""" jobs_benefits: "Rzcyblrr Orarsvgf" jobs_benefit_4: "Hayvzvgrq inpngvba" jobs_benefit_5: "Cebsrffvbany qrirybczrag naq pbagvahvat rqhpngvba fhccbeg – serr obbxf naq tnzrf!" jobs_benefit_6: "Zrqvpny (tbyq), qragny, ivfvba, pbzzhgre" jobs_benefit_7: "Fvg-fgnaq qrfxf sbe nyy" jobs_benefit_9: "10-lrne bcgvba rkrepvfr jvaqbj" jobs_benefit_10: "Zngreavgl yrnir: 10 jrrxf cnvq, arkg 6 @ 55% fnynel" jobs_benefit_11: "Cngreavgl yrnir: 10 jrrxf cnvq" jobs_custom_title: "Perngr Lbhe Bja" jobs_custom_description: "Ner lbh cnffvbangr nobhg PbqrPbzong ohg qba'g frr n wbo yvfgrq gung zngpurf lbhe dhnyvsvpngvbaf? Jevgr hf naq fubj ubj lbh guvax lbh pna pbagevohgr gb bhe grnz. Jr'q ybir gb urne sebz lbh!" jobs_custom_contact_1: "Fraq hf n abgr ng" jobs_custom_contact_2: "vagebqhpvat lbhefrys naq jr zvtug trg va gbhpu va gur shgher!" contact_title: "Cerff & Pbagnpg" contact_subtitle: "Arrq zber vasbezngvba? Trg va gbhpu jvgu hf ng" screenshots_title: "Tnzr Fperrafubgf" screenshots_hint: "(pyvpx gb ivrj shyy fvmr)" downloads_title: "Qbjaybnq Nffrgf & Vasbezngvba" about_codecombat: "Nobhg PbqrPbzong" logo: "Ybtb" screenshots: "Fperrafubgf" character_art: "Punenpgre Neg" download_all: "Qbjaybnq Nyy" previous: "Cerivbhf" location_title: "Jr'er ybpngrq va qbjagbja FS:" teachers: licenses_needed: "Yvprafrf arrqrq" special_offer: special_offer: "Fcrpvny Bssre" project_based_title: "Cebwrpg-Onfrq Pbhefrf" project_based_description: "Jro naq Tnzr Qrirybczrag pbhefrf srngher funernoyr svany cebwrpgf." great_for_clubs_title: "Terng sbe pyhof naq ryrpgvirf" great_for_clubs_description: "Grnpuref pna chepunfr hc gb __znkDhnagvglFgnegreYvprafrf__ Fgnegre Yvprafrf." # low_price_title: "Whfg __fgnegreYvprafrCevpr__ cre fghqrag" low_price_description: "Fgnegre Yvprafrf ner npgvir sbe __fgnegreYvprafrYratguZbaguf__ zbaguf sebz chepunfr." three_great_courses: "Guerr terng pbhefrf vapyhqrq va gur Fgnegre Yvprafr:" license_limit_description: "Grnpuref pna chepunfr hc gb __znkDhnagvglFgnegreYvprafrf__ Fgnegre Yvprafrf. Lbh unir nyernql chepunfrq __dhnagvglNyernqlChepunfrq__. Vs lbh arrq zber, pbagnpg __fhccbegRznvy__. Fgnegre Yvprafrf ner inyvq sbe __fgnegreYvprafrYratguZbaguf__ zbaguf." student_starter_license: "Fghqrag Fgnegre Yvprafr" purchase_starter_licenses: "Chepunfr Fgnegre Yvprafrf" purchase_starter_licenses_to_grant: "Chepunfr Fgnegre Yvprafrf gb tenag npprff gb __fgnegreYvprafrPbhefrYvfg__" starter_licenses_can_be_used: "Fgnegre Yvprafrf pna or hfrq gb nffvta nqqvgvbany pbhefrf vzzrqvngryl nsgre chepunfr." pay_now: "Cnl Abj" we_accept_all_major_credit_cards: "Jr npprcg nyy znwbe perqvg pneqf." cs2_description: "ohvyqf ba gur sbhaqngvba sebz Vagebqhpgvba gb Pbzchgre Fpvrapr, qvivat vagb vs-fgngrzragf, shapgvbaf, riragf naq zber." wd1_description: "vagebqhprf gur onfvpf bs UGZY naq PFF juvyr grnpuvat fxvyyf arrqrq sbe fghqragf gb ohvyq gurve svefg jrocntr." gd1_description: "hfrf flagnk fghqragf ner nyernql snzvyvne jvgu gb fubj gurz ubj gb ohvyq naq funer gurve bja cynlnoyr tnzr yriryf." see_an_example_project: "frr na rknzcyr cebwrpg" get_started_today: "Trg fgnegrq gbqnl!" want_all_the_courses: "Jnag nyy gur pbhefrf? Erdhrfg vasbezngvba ba bhe Shyy Yvprafrf." compare_license_types: "Pbzcner Yvprafr Glcrf:" cs: "Pbzchgre Fpvrapr" wd: "Jro Qrirybczrag" wd1: "Jro Qrirybczrag 1" gd: "Tnzr Qrirybczrag" gd1: "Tnzr Qrirybczrag 1" maximum_students: "Znkvzhz # bs Fghqragf" unlimited: "Hayvzvgrq" priority_support: "Cevbevgl fhccbeg" yes: "Lrf" price_per_student: "__cevpr__ cre fghqrag" pricing: "Cevpvat" free: "Serr" purchase: "Chepunfr" courses_prefix: "Pbhefrf" courses_suffix: "" course_prefix: "Pbhefr" course_suffix: "" teachers_quote: subtitle: "Trg lbhe fghqragf fgnegrq va yrff guna na ubhe. Lbh'yy or noyr gb <fgebat>perngr n pynff, nqq fghqragf, naq zbavgbe gurve cebterff</fgebat> nf gurl yrnea pbzchgre fpvrapr." email_exists: "Hfre rkvfgf jvgu guvf rznvy." phone_number: "Cubar PI:NAME:<NAME>END_PIhzore" phone_number_help: "Jurer pna jr ernpu lbh qhevat gur jbexqnl?" primary_role_label: "Lbhe Cevznel Ebyr" role_default: "Fryrpg Ebyr" primary_role_default: "Fryrpg Cevznel Ebyr" purchaser_role_default: "Fryrpg Chepunfre Ebyr" tech_coordinator: "Grpuabybtl pbbeqvangbe" advisor: "PI:NAME:<NAME>END_PI/NqPI:NAME:<NAME>END_PI" principal: "Cevapvcny" superintendent: "PI:NAME:<NAME>END_PI" parent: "Cnerag" purchaser_role_label: "Lbhe Chepunfre Ebyr" influence_advocate: "Vasyhrapr/Nqibpngr" evaluate_recommend: "Rinyhngr/Erpbzzraq" approve_funds: "Nccebir Shaqf" no_purchaser_role: "Ab ebyr va chepunfr qrpvfvbaf" district_label: "Qvfgevpg" district_name: "Qvfgevpg Anzr" district_na: "Ragre A/N vs abg nccyvpnoyr" organization_label: "Fpubby" school_name: "PI:NAME:<NAME>END_PI" city: "Pvgl" state: "Fgngr" country: "Pbhagel" num_students_help: "Ubj znal fghqragf jvyy hfr PbqrPbzong?" num_students_default: "Fryrpg Enatr" education_level_label: "Rqhpngvba Yriry bs Fghqragf" education_level_help: "Pubbfr nf znal nf nccyl." elementary_school: "Ryrzragnel Fpubby" high_school: "Uvtu Fpubby" please_explain: "(cyrnfr rkcynva)" middle_school: "Zvqqyr Fpubby" college_plus: "Pbyyrtr be uvture" referrer: "Ubj qvq lbh urne nobhg hf?" referrer_help: "Sbe rknzcyr: sebz nabgure grnpure, n pbasrerapr, lbhe fghqragf, Pbqr.bet, rgp." referrer_default: "Fryrpg Bar" referrer_hoc: "Pbqr.bet/Ubhe bs Pbqr" referrer_teacher: "N grnpure" referrer_admin: "Na nqzvavfgengbe" referrer_student: "N fghqrag" referrer_pd: "Cebsrffvbany genvavatf/jbexfubcf" referrer_web: "Tbbtyr" referrer_other: "Bgure" anything_else: "Jung xvaq bs pynff qb lbh nagvpvcngr hfvat PbqrPbzong sbe?" thanks_header: "Erdhrfg Erprvirq!" thanks_sub_header: "Gunaxf sbe rkcerffvat vagrerfg va PbqrPbzong sbe lbhe fpubby." thanks_p: "Jr'yy or va gbhpu fbba! Vs lbh arrq gb trg va pbagnpg, lbh pna ernpu hf ng:" back_to_classes: "Onpx gb Pynffrf" finish_signup: "Svavfu perngvat lbhe grnpure nppbhag:" finish_signup_p: "Perngr na nppbhag gb frg hc n pynff, nqq lbhe fghqragf, naq zbavgbe gurve cebterff nf gurl yrnea pbzchgre fpvrapr." signup_with: "Fvta hc jvgu:" connect_with: "Pbaarpg jvgu:" conversion_warning: "JNEAVAT: Lbhe pheerag nppbhag vf n <rz>Fghqrag Nppbhag</rz>. Bapr lbh fhozvg guvf sbez, lbhe nppbhag jvyy or hcqngrq gb n Grnpure Nppbhag." learn_more_modal: "Grnpure nppbhagf ba PbqrPbzong unir gur novyvgl gb zbavgbe fghqrag cebterff, nffvta yvprafrf naq znantr pynffebbzf. Grnpure nppbhagf pnaabg or n cneg bs n pynffebbz - vs lbh ner pheeragyl raebyyrq va n pynff hfvat guvf nppbhag, lbh jvyy ab ybatre or noyr gb npprff vg bapr lbh hcqngr gb n Grnpure Nppbhag." create_account: "PerPI:KEY:<KEY>END_PI n PI:KEY:<KEY>END_PI" create_account_subtitle: "Trg npprff gb grnpure-bayl gbbyf sbe hfvat PbqrPbzong va gur pynffebbz. <fgebat>Frg hc n pynff</fgebat>, nqq lbhe fghqragf, naq <fgebat>zbavgbe gurve cebterff</fgebat>!" convert_account_title: "Hcqngr gb Grnpure Nppbhag" not: "Abg" versions: save_version_title: "Fnir Arj Irefvba" new_major_version: "Arj Znwbe Irefvba" submitting_patch: "Fhozvggvat Cngpu..." cla_prefix: "Gb fnir punatrf, svefg lbh zhfg nterr gb bhe" cla_url: "PYN" cla_suffix: "." cla_agree: "V NTERR" owner_approve: "Na bjare jvyy arrq gb nccebir vg orsber lbhe punatrf jvyy orpbzr ivfvoyr." contact: contact_us: "Pbagnpg PbqrPbzong" welcome: "Tbbq gb urne sebz lbh! Hfr guvf sbez gb fraq hf rznvy. " forum_prefix: "Sbe nalguvat choyvp, cyrnfr gel " forum_page: "bhe sbehz" forum_suffix: " vafgrnq." faq_prefix: "Gurer'f nyfb n" faq: "SND" subscribe_prefix: "Vs lbh arrq uryc svthevat bhg n yriry, cyrnfr" subscribe: "ohl n PbqrPbzong fhofpevcgvba" subscribe_suffix: "naq jr'yy or unccl gb uryc lbh jvgu lbhe pbqr." subscriber_support: "Fvapr lbh'er n PbqrPbzong fhofpevore, lbhe rznvy jvyy trg bhe cevbevgl fhccbeg." screenshot_included: "Fperrafubg vapyhqrq." where_reply: "Jurer fubhyq jr ercyl?" send: "Fraq Srrqonpx" account_settings: title: "Nppbhag Frggvatf" not_logged_in: "Ybt va be perngr na nppbhag gb punatr lbhe frggvatf." me_tab: "Zr" picture_tab: "Cvpgher" delete_account_tab: "Qryrgr Lbhe Nppbhag" wrong_email: "JPI:NAME:<NAME>END_PI" wrong_password: "PI:PASSWORD:<PASSWORD>END_PI" use_gravatar: "Punatr lbhe cebsvyr cvpgher ol fvtavat hc sbe Teningne" delete_this_account: "Qryrgr guvf nppbhag creznaragyl" reset_progress_tab: "Erfrg Nyy Cebterff" reset_your_progress: "Pyrne nyy lbhe cebterff naq fgneg bire" god_mode: "Tbq Zbqr" emails_tab: "Rznvyf" admin: "Nqzva" manage_subscription: "Pyvpx urer gb znantr lbhe fhofpevcgvba." new_password: "PI:PASSWORD:<PASSWORD>END_PI" new_password_verify: "PI:PASSWORD:<PASSWORD>END_PI" type_in_email: "Glcr va lbhe rznvy be hfreanzr gb pbasvez nppbhag qryrgvba." type_in_email_progress: "Glcr va lbhe rznvy gb pbasvez qryrgvat lbhe cebterff." type_in_password: "PI:PASSWORD:<PASSWORD>END_PI." email_subscriptions: "Rznvy Fhofpevcgvbaf" email_subscriptions_none: "Ab Rznvy Fhofpevcgvbaf." email_announcements: "Naabhaprzragf" email_announcements_description: "Trg rznvyf ba gur yngrfg arjf naq qrirybczragf ng PbqrPbzong." email_notifications: "Abgvsvpngvbaf" email_notifications_summary: "Pbagebyf sbe crefbanyvmrq, nhgbzngvp rznvy abgvsvpngvbaf eryngrq gb lbhe PbqrPbzong npgvivgl." email_any_notes: "Nal Abgvsvpngvbaf" email_any_notes_description: "Qvfnoyr gb fgbc nyy npgvivgl abgvsvpngvba rznvyf." email_news: "Arjf" email_recruit_notes: "Wbo Bccbeghavgvrf" email_recruit_notes_description: "Vs lbh cynl ernyyl jryy, jr znl pbagnpg lbh nobhg trggvat lbh n (orggre) wbo." contributor_emails: "Pbagevohgbe PI:NAME:<NAME>END_PI" contribute_prefix: "Jr'er ybbxvat sbe crbcyr gb wbva bhe cnegl! Purpx bhg gur " contribute_page: "pbagevohgr cntr" contribute_suffix: " gb svaq bhg zber." email_toggle: "Gbttyr Nyy" error_saving: "Reebe Fnivat" saved: "Punatrf Fnirq" password_mismatch: "PI:PASSWORD:<PASSWORD>END_PI." password_repeat: "PI:PASSWORD:<PASSWORD>END_PI." keyboard_shortcuts: keyboard_shortcuts: "Xrlobneq Fubegphgf" space: "Fcnpr" enter: "Ragre" press_enter: "cerff ragre" escape: "Rfpncr" shift: "Fuvsg" run_code: "Eha pheerag pbqr." run_real_time: "Eha va erny gvzr." continue_script: "Pbagvahr cnfg pheerag fpevcg." skip_scripts: "Fxvc cnfg nyy fxvccnoyr fpevcgf." toggle_playback: "Gbttyr cynl/cnhfr." scrub_playback: "Fpeho onpx naq sbejneq guebhtu gvzr." single_scrub_playback: "Fpeho onpx naq sbejneq guebhtu gvzr ol n fvatyr senzr." scrub_execution: "Fpeho guebhtu pheerag fcryy rkrphgvba." toggle_debug: "Gbttyr qroht qvfcynl." toggle_grid: "Gbttyr tevq bireynl." toggle_pathfinding: "Gbttyr cngusvaqvat bireynl." beautify: "Ornhgvsl lbhe pbqr ol fgnaqneqvmvat vgf sbeznggvat." maximize_editor: "Znkvzvmr/zvavzvmr pbqr rqvgbe." community: main_title: "PbqrPbzong Pbzzhavgl" introduction: "Purpx bhg gur jnlf lbh pna trg vaibyirq orybj naq qrpvqr jung fbhaqf gur zbfg sha. Jr ybbx sbejneq gb jbexvat jvgu lbh!" level_editor_prefix: "Hfr gur PbqrPbzong" level_editor_suffix: "gb perngr naq rqvg yriryf. Hfref unir perngrq yriryf sbe gurve pynffrf, sevraqf, unpxngubaf, fghqragf, naq fvoyvatf. Vs perngr n arj yriry fbhaqf vagvzvqngvat lbh pna fgneg ol sbexvat bar bs bhef!" thang_editor_prefix: "Jr pnyy havgf jvguva gur tnzr 'gunatf'. Hfr gur" thang_editor_suffix: "gb zbqvsl gur PbqrPbzong fbhepr negjbex. Nyybj havgf gb guebj cebwrpgvyrf, nygre gur qverpgvba bs na navzngvba, punatr n havg'f uvg cbvagf, be hcybnq lbhe bja irpgbe fcevgrf." article_editor_prefix: "Frr n zvfgnxr va fbzr bs bhe qbpf? Jnag gb znxr fbzr vafgehpgvbaf sbe lbhe bja perngvbaf? Purpx bhg gur" article_editor_suffix: "naq uryc PbqrPbzong cynlref trg gur zbfg bhg bs gurve cynlgvzr." find_us: "Svaq hf ba gurfr fvgrf" social_github: "Purpx bhg nyy bhe pbqr ba TvgUho" social_blog: "Ernq gur PbqrPbzong oybt ba Frgg" social_discource: "Wbva gur qvfphffvba ba bhe Qvfpbhefr sbehz" social_facebook: "Yvxr PbqrPbzong ba Snprobbx" social_twitter: "Sbyybj PbqrPbzong ba Gjvggre" social_gplus: "Wbva PbqrPbzong ba Tbbtyr+" social_slack: "Pung jvgu hf va gur choyvp PbqrPbzong Fynpx punaary" contribute_to_the_project: "Pbagevohgr gb gur cebwrpg" clans: clan: "Pyna" clans: "Pynaf" new_name: "PI:NAME:<NAME>END_PI" new_description: "Arj PI:NAME:<NAME>END_PIyna qrfpevcgvba" make_private: "Znxr pyna cevingr" subs_only: "fhofpevoref bayl" create_clan: "PI:NAME:<NAME>END_PI" private_preview: "Cerivrj" private_clans: "PI:NAME:<NAME>END_PI" public_clans: "ChoPI:NAME:<NAME>END_PI" my_clans: "Zl PI:NAME:<NAME>END_PI" clan_name: "PI:NAME:<NAME>END_PI" name: "PI:NAME:<NAME>END_PI" chieftain: "PI:NAME:<NAME>END_PI" edit_clan_name: "PI:NAME:<NAME>END_PI" edit_clan_description: "RqPI:NAME:<NAME>END_PIyna Qrfpevcgvba" edit_name: "PI:NAME:<NAME>END_PI" edit_description: "rqvg qrfpevcgvba" private: "(cevingr)" summary: "Fhzznel" average_level: "Nirentr Yriry" average_achievements: "Nirentr Npuvrirzragf" delete_clan: "PI:NAME:<NAME>END_PI" leave_clan: "PI:NAME:<NAME>END_PI" join_clan: "PI:NAME:<NAME>END_PI" invite_1: "Vaivgr:" invite_2: "*Vaivgr cynlref gb guvf Pyna ol fraqvat gurz guvf yvax." members: "Zrzoref" progress: "Cebterff" not_started_1: "abg fgnegrq" started_1: "fgnegrq" complete_1: "pbzcyrgr" exp_levels: "Rkcnaq yriryf" rem_hero: "Erzbir Ureb" status: "Fgnghf" complete_2: "Pbzcyrgr" started_2: "Fgnegrq" not_started_2: "Abg Fgnegrq" view_solution: "Pyvpx gb ivrj fbyhgvba." view_attempt: "Pyvpx gb ivrj nggrzcg." latest_achievement: "Yngrfg Npuvrirzrag" playtime: "Cynlgvzr" last_played: "Ynfg cynlrq" leagues_explanation: "Cynl va n yrnthr ntnvafg bgure pyna zrzoref va gurfr zhygvcynlre neran vafgnaprf." track_concepts1: "Genpx pbaprcgf" track_concepts2a: "yrnearq ol rnpu fghqrag" track_concepts2b: "yrnearq ol rnpu zrzore" track_concepts3a: "Genpx yriryf pbzcyrgrq sbe rnpu fghqrag" track_concepts3b: "Genpx yriryf pbzcyrgrq sbe rnpu zrzore" track_concepts4a: "Frr lbhe fghqragf'" track_concepts4b: "Frr lbhe zrzoref'" track_concepts5: "fbyhgvbaf" track_concepts6a: "Fbeg fghqragf ol anzr be cebterff" track_concepts6b: "Fbeg zrzoref ol anzr be cebterff" track_concepts7: "Erdhverf vaivgngvba" track_concepts8: "gb wbva" private_require_sub: "Cevingr pynaf erdhver n fhofpevcgvba gb perngr be wbva." courses: create_new_class: "Perngr ArPI:NAME:<NAME>END_PI" unnamed_class: "PI:NAME:<NAME>END_PI" edit_settings1: "Rqvg Pynff Frggvatf" add_students: "Nqq PI:NAME:<NAME>END_PI" stats: "Fgngvfgvpf" student_email_invite_blurb: "Lbhe fghqragf pna nyfb hfr pynff pbqr <fgebat>__pynffPbqr__</fgebat> jura perngvat n Fghqrag Nppbhag, ab rznvy erdhverq." total_students: "Gbgny fghqragf:" average_time: "Nirentr yriry cynl gvzr:" total_time: "Gbgny cynl gvzr:" average_levels: "Nirentr yriryf pbzcyrgrq:" total_levels: "Gbgny yriryf pbzcyrgrq:" students: "FPI:NAME:<NAME>END_PI" concepts: "Pbaprcgf" play_time: "Cynl gvzr:" completed: "Pbzcyrgrq:" enter_emails: "Frcnengr rnpu rznvy nqqerff ol n yvar oernx be pbzznf" send_invites: "VaPI:NAME:<NAME>END_PI" number_programming_students: "Ahzore bs Cebtenzzvat Fghqragf" number_total_students: "Gbgny Fghqragf va Fpubby/Qvfgevpg" enroll: "PI:NAME:<NAME>END_PI" enroll_paid: "Raebyy Fghqragf va Cnvq Pbhefrf" get_enrollments: "Trg Zber Yvprafrf" change_language: "Punatr Pbhefr Ynathntr" keep_using: "Xrrc Hfvat" switch_to: "Fjvgpu Gb" greetings: "TPI:NAME:<NAME>END_PI!" back_classrooms: "Onpx gb zl pynffebbzf" back_classroom: "Onpx gb pynffebbz" back_courses: "Onpx gb zl pbhefrf" edit_details: "Rqvg pynff qrgnvyf" purchase_enrollments: "Chepunfr Fghqrag Yvprafrf" remove_student: "PI:NAME:<NAME>END_PI" assign: "Nffvta" to_assign: "gb nffvta cnvq pbhefrf." student: "PI:NAME:<NAME>END_PI" teacher: "PI:NAME:<NAME>END_PI" arena: "Neran" available_levels: "Ninvynoyr Yriryf" started: "fgnegrq" complete: "pbzcyrgr" practice: "cenpgvpr" required: "erdhverq" welcome_to_courses: "Nqiragheref, jrypbzr gb Pbhefrf!" ready_to_play: "Ernql gb cynl?" start_new_game: "Fgneg Arj Tnzr" play_now_learn_header: "Cynl abj gb yrnea" play_now_learn_1: "onfvp flagnk gb pbageby lbhe punenpgre" play_now_learn_2: "juvyr ybbcf gb fbyir crfxl chmmyrf" play_now_learn_3: "fgevatf & inevnoyrf gb phfgbzvmr npgvbaf" play_now_learn_4: "ubj gb qrsrng na bter (vzcbegnag yvsr fxvyyf!)" welcome_to_page: "Zl Fghqrag Qnfuobneq" my_classes: "Pheerag Pynffrf" class_added: "Pynff fhpprffshyyl nqqrq!" view_levels: "ivrj nyy yriryf va pbhefr" view_project_gallery: "ivrj zl pynffzngrf' cebwrpgf" join_class: "Wbva N Pynff" join_class_2: "Wbva pynff" ask_teacher_for_code: "Nfx lbhe grnpure vs lbh unir n PbqrPbzong pynff pbqr! Vs fb, ragre vg orybj:" enter_c_code: "<Ragre Pynff Pbqr>" join: "Wbva" joining: "Wbvavat pynff" course_complete: "Pbhefr Pbzcyrgr" play_arena: "Cynl Neran" view_project: "Ivrj Cebwrpg" start: "Fgneg" last_level: "Ynfg yriry cynlrq" not_you: "Abg lbh?" continue_playing: "Pbagvahr CynPI:NAME:<NAME>END_PI" option1_header: "Vaivgr Fghqragf ol Rznvy" remove_student1: "PI:NAME:<NAME>END_PI" are_you_sure: "Ner lbh fher lbh jnag gb erzbir guvf fghqrag sebz guvf pynff?" remove_description1: "Fghqrag jvyy ybfr npprff gb guvf pynffebbz naq nffvtarq pynffrf. Cebterff naq tnzrcynl vf ABG ybfg, naq gur fghqrag pna or nqqrq onpx gb gur pynffebbz ng nal gvzr." remove_description2: "Gur npgvingrq cnvq yvprafr jvyy abg or erghearq." license_will_revoke: "Guvf fghqrag'f cnvq yvprafr jvyy or eribxrq naq znqr ninvynoyr gb nffvta gb nabgure fghqrag." keep_student: "PI:NAME:<NAME>END_PI" removing_user: "PI:NAME:<NAME>END_PI" subtitle: "Erivrj pbhefr bireivrjf naq yriryf" # Syng fglyr erqrfvta changelog: "Ivrj yngrfg punatrf gb pbhefr yriryf." select_language: "Fryrpg ynathntr" select_level: "Fryrpg yriry" play_level: "Cynl Yriry" concepts_covered: "Pbaprcgf pbirerq" view_guide_online: "Yriry Bireivrjf naq Fbyhgvbaf" grants_lifetime_access: "Tenagf npprff gb nyy Pbhefrf." enrollment_credits_available: "Yvprafrf Ninvynoyr:" language_select: "Fryrpg n ynathntr" # PynffebbzFrggvatfZbqny language_cannot_change: "Ynathntr pnaabg or punatrq bapr fghqragf wbva n pynff." avg_student_exp_label: "Nirentr Fghqrag Cebtenzzvat Rkcrevrapr" avg_student_exp_desc: "Guvf jvyy uryc hf haqrefgnaq ubj gb cnpr pbhefrf orggre." avg_student_exp_select: "Fryrpg gur orfg bcgvba" avg_student_exp_none: "Ab Rkcrevrapr - yvggyr gb ab rkcrevrapr" avg_student_exp_beginner: "Ortvaare - fbzr rkcbfher be oybpx-onfrq" avg_student_exp_intermediate: "Vagrezrqvngr - fbzr rkcrevrapr jvgu glcrq pbqr" avg_student_exp_advanced: "Nqinaprq - rkgrafvir rkcrevrapr jvgu glcrq pbqr" avg_student_exp_varied: "Inevrq Yriryf bs Rkcrevrapr" student_age_range_label: "Fghqrag Ntr Enatr" student_age_range_younger: "Lbhatre guna 6" student_age_range_older: "Byqre guna 18" student_age_range_to: "gb" create_class: "Perngr Pynff" class_name: "PI:NAME:<NAME>END_PI" teacher_account_restricted: "Lbhe nppbhag vf n grnpure nppbhag naq pnaabg npprff fghqrag pbagrag." account_restricted: "N fghqrag nppbhag vf erdhverq gb npprff guvf cntr." update_account_login_title: "Ybt va gb hcqngr lbhe nppbhag" update_account_title: "Lbhe nppbhag arrqf nggragvba!" update_account_blurb: "Orsber lbh pna npprff lbhe pynffrf, pubbfr ubj lbh jnag gb hfr guvf nppbhag." update_account_current_type: "Pheerag Nppbhag Glcr:" update_account_account_email: "Nppbhag Rznvy/Hfreanzr:" update_account_am_teacher: "V nz n grnpure" update_account_keep_access: "Xrrc npprff gb pynffrf V'ir perngrq" update_account_teachers_can: "Grnpure nppbhagf pna:" update_account_teachers_can1: "Perngr/znantr/nqq pynffrf" update_account_teachers_can2: "Nffvta/raebyy fghqragf va pbhefrf" update_account_teachers_can3: "Haybpx nyy pbhefr yriryf gb gel bhg" update_account_teachers_can4: "Npprff arj grnpure-bayl srngherf nf jr eryrnfr gurz" update_account_teachers_warning: "Jneavat: Lbh jvyy or erzbirq sebz nyy pynffrf gung lbh unir cerivbhfyl wbvarq naq jvyy abg or noyr gb cynl nf n fghqrag." update_account_remain_teacher: "Erznva n Grnpure" update_account_update_teacher: "Hcqngr gb Grnpure" update_account_am_student: "V nz n fghqrag" update_account_remove_access: "Erzbir npprff gb pynffrf V unir perngrq" update_account_students_can: "Fghqrag nppbhagf pna:" update_account_students_can1: "Wbva pynffrf" update_account_students_can2: "Cynl guebhtu pbhefrf nf n fghqrag naq genpx lbhe bja cebterff" update_account_students_can3: "Pbzcrgr ntnvafg pynffzngrf va neranf" update_account_students_can4: "Npprff arj fghqrag-bayl srngherf nf jr eryrnfr gurz" update_account_students_warning: "Jneavat: Lbh jvyy abg or noyr gb znantr nal pynffrf gung lbh unir cerivbhfyl perngrq be perngr arj pynffrf." unsubscribe_warning: "Jneavat: Lbh jvyy or hafhofpevorq sebz lbhe zbaguyl fhofpevcgvba." update_account_remain_student: "Erznva n Fghqrag" update_account_update_student: "Hcqngr gb Fghqrag" need_a_class_code: "Lbh'yy arrq n Pynff Pbqr sbe gur pynff lbh'er wbvavat:" update_account_not_sure: "Abg fher juvpu bar gb pubbfr? Rznvy" update_account_confirm_update_student: "Ner lbh fher lbh jnag gb hcqngr lbhe nppbhag gb n Fghqrag rkcrevrapr?" update_account_confirm_update_student2: "Lbh jvyy abg or noyr gb znantr nal pynffrf gung lbh unir cerivbhfyl perngrq be perngr arj pynffrf. Lbhe cerivbhfyl perngrq pynffrf jvyy or erzbirq sebz PbqrPbzong naq pnaabg or erfgberq." instructor: "Vafgehpgbe: " youve_been_invited_1: "Lbh'ir orra vaivgrq gb wbva " youve_been_invited_2: ", jurer lbh'yy yrnea " youve_been_invited_3: " jvgu lbhe pynffzngrf va PbqrPbzong." by_joining_1: "PI:NAME:<NAME>END_PI " by_joining_2: "jvyy or noyr gb uryc erfrg lbhe cnffjbeq vs lbh sbetrg be ybfr vg. Lbh pna nyfb irevsl lbhe rznvy nqqerff fb gung lbh pna erfrg gur cnffjbeq lbhefrys!" sent_verification: "Jr'ir frag n irevsvpngvba rznvy gb:" you_can_edit: "Lbh pna rqvg lbhe rznvy nqqerff va " account_settings: "Nppbhag Frggvatf" select_your_hero: "Fryrpg Lbhe Ureb" select_your_hero_description: "Lbh pna nyjnlf punatr lbhe ureb ol tbvat gb lbhe Pbhefrf cntr naq pyvpxvat \"Punatr Ureb\"" select_this_hero: "Fryrpg guvf Ureb" current_hero: "Pheerag Ureb:" current_hero_female: "Pheerag Ureb:" web_dev_language_transition: "Nyy pynffrf cebtenz va UGZY / WninFpevcg sbe guvf pbhefr. Pynffrf gung unir orra hfvat Clguba jvyy fgneg jvgu rkgen WninFpevcg vageb yriryf gb rnfr gur genafvgvba. Pynffrf gung ner nyernql hfvat WninFpevcg jvyy fxvc gur vageb yriryf." course_membership_required_to_play: "Lbh'yy arrq gb wbva n pbhefr gb cynl guvf yriry." license_required_to_play: "Nfx lbhe grnpure gb nffvta n yvprafr gb lbh fb lbh pna pbagvahr gb cynl PbqrPbzong!" update_old_classroom: "Arj fpubby lrne, arj yriryf!" update_old_classroom_detail: "Gb znxr fher lbh'er trggvat gur zbfg hc-gb-qngr yriryf, znxr fher lbh perngr n arj pynff sbe guvf frzrfgre ol pyvpxvat Perngr n Arj Pynff ba lbhe" teacher_dashboard: "grnpure qnfuobneq" update_old_classroom_detail_2: "naq tvivat fghqragf gur arj Pynff Pbqr gung nccrnef." view_assessments: "Ivrj Nffrffzragf" challenge: "Punyyratr:" challenge_level: "Punyyratr Yriry:" status: "Fgnghf:" assessments: "Nffrffzragf" challenges: "Punyyratrf" level_name: "Yriry Anzr:" keep_trying: "Xrrc Gelvat" start_challenge: "Fgneg Punyyratr" locked: "Ybpxrq" concepts_used: "Pbaprcgf Hfrq:" project_gallery: no_projects_published: "Or gur svefg gb choyvfu n cebwrpg va guvf pbhefr!" view_project: "Ivrj Cebwrpg" edit_project: "Rqvg Cebwrpg" teacher: assigning_course: "Nffvtavat pbhefr" back_to_top: "Onpx gb Gbc" click_student_code: "Pyvpx ba nal yriry gung gur fghqrag unf fgnegrq be pbzcyrgrq orybj gb ivrj gur pbqr gurl jebgr." code: "__anzr__'f Pbqr" course_not_started: "Fghqrag unf abg fgnegrq guvf pbhefr lrg." no_code_yet: "Fghqrag unf abg jevggra nal pbqr sbe guvf yriry lrg." open_ended_level: "Bcra-Raqrq Yriry" removing_course: "Erzbivat pbhefr" solution_arena_blurb: "Fghqragf ner rapbhentrq gb fbyir neran yriryf perngviryl. Gur fbyhgvba cebivqrq orybj zrrgf gur erdhverzragf bs gur neran yriry." solution_challenge_blurb: "Fghqragf ner rapbhentrq gb fbyir bcra-raqrq punyyratr yriryf perngviryl. Bar cbffvoyr fbyhgvba vf qvfcynlrq orybj." solution_project_blurb: "Fghqragf ner rapbhentrq gb ohvyq n perngvir cebwrpg va guvf yriry. Gur fbyhgvba cebivqrq orybj zrrgf gur erdhverzragf bs gur cebwrpg yriry." course_solution: "Pbhefr Fbyhgvba" level_overview_solutions: "Yriry Bireivrj naq Fbyhgvbaf" no_student_assigned: "Ab fghqragf unir orra nffvtarq guvf pbhefr." paren_new: "(arj)" student_code: "__anzr__'f Fghqrag Pbqr" # {punatr} teacher_dashboard: "Grnpure Qnfuobneq" # Anione my_classes: "Zl Pynffrf" courses: "Pbhefr Thvqrf" enrollments: "Fghqrag Yvprafrf" resources: "Erfbheprf" help: "Uryc" language: "Ynathntr" edit_class_settings: "rqvg pynff frggvatf" access_restricted: "Nppbhag Hcqngr Erdhverq" teacher_account_required: "N grnpure nppbhag vf erdhverq gb npprff guvf pbagrag." create_teacher_account: "PI:NAME:<NAME>END_PI" what_is_a_teacher_account: "JPI:NAME:<NAME>END_PI'PI:NAME:<NAME>END_PI?" teacher_account_explanation: "N PbqrPbzong Grnpure nppbhag nyybjf lbh gb frg hc pynffebbzf, zbavgbe fghqragf’ cebterff nf gurl jbex guebhtu pbhefrf, znantr yvprafrf naq npprff erfbheprf gb nvq va lbhe pheevphyhz-ohvyqvat." current_classes: "Pheerag Pynffrf" archived_classes: "Nepuvirq Pynffrf" archived_classes_blurb: "Pynffrf pna or nepuvirq sbe shgher ersrerapr. Hanepuvir n pynff gb ivrj vg va gur Pheerag Pynffrf yvfg ntnva." view_class: "ivrj pynff" archive_class: "nepuvir pynff" unarchive_class: "hanepuvir pynff" unarchive_this_class: "Hanepuvir guvf pynff" no_students_yet: "Guvf pynff unf ab fghqragf lrg." no_students_yet_view_class: "Ivrj pynff gb nqq fghqragf." try_refreshing: "(Lbh znl arrq gb erserfu gur cntr)" create_new_class: "Perngr n Arj Pynff" class_overview: "Pynff Bireivrj" # Ivrj Pynff cntr avg_playtime: "Nirentr yriry cynlgvzr" total_playtime: "Gbgny cynl gvzr" avg_completed: "Nirentr yriryf pbzcyrgrq" total_completed: "Gbgny yriryf pbzcyrgrq" created: "Perngrq" concepts_covered: "Pbaprcgf pbirerq" earliest_incomplete: "Rneyvrfg vapbzcyrgr yriry" latest_complete: "Yngrfg pbzcyrgrq yriry" enroll_student: "PI:NAME:<NAME>END_PI" apply_license: "Nccyl Yvprafr" revoke_license: "Eribxr Yvprafr" course_progress: "Pbhefr Cebterff" not_applicable: "A/N" edit: "rqvg" edit_2: "Rqvg" remove: "erzbir" latest_completed: "Yngrfg pbzcyrgrq:" sort_by: "Fbeg ol" progress: "Cebterff" concepts_used: "Pbaprcgf hfrq ol Fghqrag:" concept_checked: "Pbaprcg purpxrq:" completed: "Pbzcyrgrq" practice: "Cenpgvpr" started: "Fgnegrq" no_progress: "Ab cebterff" not_required: "Abg erdhverq" select_course: "Fryrpg pbhefr gb ivrj" progress_color_key: "PI:KEY:<KEY>END_PI level_in_progress: "Yriry va Cebterff" level_not_started: "Yriry Abg Fgnegrq" project_or_arena: "Cebwrpg be Neran" students_not_assigned: "Fghqragf jub unir abg orra nffvtarq {{pbhefrAnzr}}" course_overview: "Pbhefr Bireivrj" copy_class_code: "Pbcl Pynff Pbqr" class_code_blurb: "Fghqragf pna wbva lbhe pynff hfvat guvf Pynff Pbqr. Ab rznvy nqqerff vf erdhverq jura perngvat n Fghqrag nppbhag jvgu guvf Pynff Pbqr." copy_class_url: "Pbcl Pynff HEY" class_join_url_blurb: "Lbh pna nyfb cbfg guvf havdhr pynff HEY gb n funerq jrocntr." add_students_manually: "VaivPI:NAME:<NAME>END_PIghqragf ol Rznvy" bulk_assign: "Fryrpg pbhefr" assigned_msg_1: "{{ahzoreNffvtarq}} fghqragf jrer nffvtarq {{pbhefrAnzr}}." assigned_msg_2: "{{ahzoreRaebyyrq}} yvprafrf jrer nccyvrq." assigned_msg_3: "Lbh abj unir {{erznvavatFcbgf}} ninvynoyr yvprafrf erznvavat." assign_course: "Nffvta Pbhefr" removed_course_msg: "{{ahzoreErzbirq}} fghqragf jrer erzbirq sebz {{pbhefrAnzr}}." remove_course: "Erzbir Pbhefr" not_assigned_modal_title: "Pbhefrf jrer abg nffvtarq" not_assigned_modal_starter_body_1: "Guvf pbhefr erdhverf n Fgnegre Yvprafr. Lbh qb abg unir rabhtu Fgnegre Yvprafrf ninvynoyr gb nffvta guvf pbhefr gb nyy __fryrpgrq__ fryrpgrq fghqragf." not_assigned_modal_starter_body_2: "Chepunfr Fgnegre Yvprafrf gb tenag npprff gb guvf pbhefr." not_assigned_modal_full_body_1: "Guvf pbhefr erdhverf n Shyy Yvprafr. Lbh qb abg unir rabhtu Shyy Yvprafrf ninvynoyr gb nffvta guvf pbhefr gb nyy __fryrpgrq__ fryrpgrq fghqragf." not_assigned_modal_full_body_2: "Lbh bayl unir __ahzShyyYvprafrfNinvynoyr__ Shyy Yvprafrf ninvynoyr (__ahzFghqragfJvgubhgShyyYvprafrf__ fghqragf qb abg pheeragyl unir n Shyy Yvprafr npgvir)." not_assigned_modal_full_body_3: "Cyrnfr fryrpg srjre fghqragf, be ernpu bhg gb __fhccbegRznvy__ sbe nffvfgnapr." assigned: "Nffvtarq" enroll_selected_students: "PI:NAME:<NAME>END_PI" no_students_selected: "Ab fghqragf jrer fryrpgrq." show_students_from: "Fubj fghqragf sebz" # Raebyy fghqragf zbqny apply_licenses_to_the_following_students: "Nccyl Yvprafrf gb gur Sbyybjvat Fghqragf" students_have_licenses: "Gur sbyybjvat fghqragf nyernql unir yvprafrf nccyvrq:" all_students: "PI:NAME:<NAME>END_PI" apply_licenses: "Nccyl Yvprafrf" not_enough_enrollments: "Abg rabhtu yvprafrf ninvynoyr." enrollments_blurb: "Fghqragf ner erdhverq gb unir n yvprafr gb npprff nal pbagrag nsgre gur svefg pbhefr." how_to_apply_licenses: "Ubj gb Nccyl Yvprafrf" export_student_progress: "Rkcbeg Fghqrag Cebterff (PFI)" send_email_to: "Fraq Erpbire Cnffjbeq Rznvy gb:" email_sent: "Rznvy frag" send_recovery_email: "Fraq erpbirel rznvy" enter_new_password_below: "PI:PASSWORD:<PASSWORD>END_PI:" change_password: "PI:PASSWORD:<PASSWORD>END_PI" changed: "Punatrq" available_credits: "Ninvynoyr Yvprafrf" pending_credits: "Craqvat Yvprafrf" empty_credits: "Rkunhfgrq Yvprafrf" license_remaining: "yvprafr erznvavat" licenses_remaining: "yvprafrf erznvavat" one_license_used: "1 yvprafr unf orra hfrq" num_licenses_used: "__ahzYvprafrfHfrq__ yvprafrf unir orra hfrq" starter_licenses: "fgnegre yvprafrf" start_date: "fgneg qngr:" end_date: "raq qngr:" get_enrollments_blurb: " Jr'yy uryc lbh ohvyq n fbyhgvba gung zrrgf gur arrqf bs lbhe pynff, fpubby be qvfgevpg." how_to_apply_licenses_blurb_1: "Jura n grnpure nffvtaf n pbhefr gb n fghqrag sbe gur svefg gvzr, jr’yy nhgbzngvpnyyl nccyl n yvprafr. Hfr gur ohyx-nffvta qebcqbja va lbhe pynffebbz gb nffvta n pbhefr gb fryrpgrq fghqragf:" how_to_apply_licenses_blurb_2: "Pna V fgvyy nccyl n yvprafr jvgubhg nffvtavat n pbhefr?" how_to_apply_licenses_blurb_3: "Lrf — tb gb gur Yvprafr Fgnghf gno va lbhe pynffebbz naq pyvpx \"Nccyl Yvprafr\" gb nal fghqrag jub qbrf abg unir na npgvir yvprafr." request_sent: "Erdhrfg Frag!" assessments: "Nffrffzragf" license_status: "Yvprafr Fgnghf" status_expired: "Rkcverq ba {{qngr}}" status_not_enrolled: "Abg Raebyyrq" status_enrolled: "Rkcverf ba {{qngr}}" select_all: "Fryrpg Nyy" project: "Cebwrpg" project_gallery: "Cebwrpg Tnyyrel" view_project: "Ivrj Cebwrpg" unpublished: "(hachoyvfurq)" view_arena_ladder: "PI:NAME:<NAME>END_PI" resource_hub: "Erfbhepr Uho" pacing_guides: "Pynffebbz-va-n-Obk Cnpvat Thvqrf" pacing_guides_desc: "Yrnea ubj gb vapbecbengr nyy bs PbqrPbzong'f erfbheprf gb cyna lbhe fpubby lrne!" pacing_guides_elem: "Ryrzragnel Fpubby Cnpvat Thvqr" pacing_guides_middle: "Zvqqyr Fpubby Cnpvat Thvqr" pacing_guides_high: "Uvtu Fpubby Cnpvat Thvqr" getting_started: "Trggvat Fgnegrq" educator_faq: "Rqhpngbe SND" educator_faq_desc: "Serdhragyl nfxrq dhrfgvbaf nobhg hfvat PbqrPbzong va lbhe pynffebbz be fpubby." teacher_getting_started: "Grnpure Trggvat Fgnegrq Thvqr" teacher_getting_started_desc: "Arj gb PbqrPbzong? Qbjaybnq guvf Grnpure Trggvat Fgnegrq Thvqr gb frg hc lbhe nppbhag, perngr lbhe svefg pynff, naq vaivgr fghqragf gb gur svefg pbhefr." student_getting_started: "Fghqrag Dhvpx Fgneg Thvqr" student_getting_started_desc: "Lbh pna qvfgevohgr guvf thvqr gb lbhe fghqragf orsber fgnegvat PbqrPbzong fb gung gurl pna snzvyvnevmr gurzfryirf jvgu gur pbqr rqvgbe. Guvf thvqr pna or hfrq sbe obgu Clguba naq WninFpevcg pynffebbzf." cs1: "Vagebqhpgvba gb Pbzchgre Fpvrapr" cs2: "Pbzchgre Fpvrapr 2" cs3: "Pbzchgre Fpvrapr 3" cs4: "Pbzchgre Fpvrapr 4" cs5: "Pbzchgre Fpvrapr 5" cs1_syntax_python: "Pbhefr 1 Clguba Flagnk Thvqr" cs1_syntax_python_desc: "Purngfurrg jvgu ersreraprf gb pbzzba Clguba flagnk gung fghqragf jvyy yrnea va Vagebqhpgvba gb Pbzchgre Fpvrapr." cs1_syntax_javascript: "Pbhefr 1 WninFpevcg Flagnk Thvqr" cs1_syntax_javascript_desc: "Purngfurrg jvgu ersreraprf gb pbzzba WninFpevcg flagnk gung fghqragf jvyy yrnea va Vagebqhpgvba gb Pbzchgre Fpvrapr." coming_soon: "Nqqvgvbany thvqrf pbzvat fbba!" engineering_cycle_worksheet: "Ratvarrevat Plpyr Jbexfurrg" engineering_cycle_worksheet_desc: "Hfr guvf jbexfurrg gb grnpu fghqragf gur onfvpf bs gur ratvarrevat plpyr: Nffrff, Qrfvta, Vzcyrzrag naq Qroht. Ersre gb gur pbzcyrgrq rknzcyr jbexfurrg nf n thvqr." engineering_cycle_worksheet_link: "Ivrj rknzcyr" progress_journal: "Cebterff Wbheany" progress_journal_desc: "Rapbhentr fghqragf gb xrrc genpx bs gurve cebterff ivn n cebterff wbheany." cs1_curriculum: "Vagebqhpgvba gb Pbzchgre Fpvrapr - Pheevphyhz Thvqr" cs1_curriculum_desc: "Fpbcr naq frdhrapr, yrffba cynaf, npgvivgvrf naq zber sbe Pbhefr 1." arenas_curriculum: "Neran Yriryf - Grnpure Thvqr" arenas_curriculum_desc: "Vafgehpgvbaf ba ubj gb eha Jnxxn Znhy, Pebff Obarf naq Cbjre Crnx zhygvcynlre neranf jvgu lbhe pynff." cs2_curriculum: "Pbzchgre Fpvrapr 2 - Pheevphyhz Thvqr" cs2_curriculum_desc: "Fpbcr naq frdhrapr, yrffba cynaf, npgvivgvrf naq zber sbe Pbhefr 2." cs3_curriculum: "Pbzchgre Fpvrapr 3 - Pheevphyhz Thvqr" cs3_curriculum_desc: "Fpbcr naq frdhrapr, yrffba cynaf, npgvivgvrf naq zber sbe Pbhefr 3." cs4_curriculum: "Pbzchgre Fpvrapr 4 - Pheevphyhz Thvqr" cs4_curriculum_desc: "Fpbcr naq frdhrapr, yrffba cynaf, npgvivgvrf naq zber sbe Pbhefr 4." cs5_curriculum_js: "Pbzchgre Fpvrapr 5 - Pheevphyhz Thvqr (WninFpevcg)" cs5_curriculum_desc_js: "Fpbcr naq frdhrapr, yrffba cynaf, npgvivgvrf naq zber sbe Pbhefr 5 pynffrf hfvat WninFpevcg." cs5_curriculum_py: "Pbzchgre Fpvrapr 5 - Pheevphyhz Thvqr (Clguba)" cs5_curriculum_desc_py: "Fpbcr naq frdhrapr, yrffba cynaf, npgvivgvrf naq zber sbe Pbhefr 5 pynffrf hfvat Clguba." cs1_pairprogramming: "Cnve Cebtenzzvat Npgvivgl" cs1_pairprogramming_desc: "Vagebqhpr fghqragf gb n cnve cebtenzzvat rkrepvfr gung jvyy uryc gurz orpbzr orggre yvfgraref naq pbzzhavpngbef." gd1: "Tnzr Qrirybczrag 1" gd1_guide: "Tnzr Qrirybczrag 1 - Cebwrpg Thvqr" gd1_guide_desc: "Hfr guvf gb thvqr lbhe fghqragf nf gurl perngr gurve svefg funernoyr tnzr cebwrpg va 5 qnlf." gd1_rubric: "Tnzr Qrirybczrag 1 - Cebwrpg Ehoevp" gd1_rubric_desc: "Hfr guvf ehoevp gb nffrff fghqrag cebwrpgf ng gur raq bs Tnzr Qrirybczrag 1." gd2: "Tnzr Qrirybczrag 2" gd2_curriculum: "Tnzr Qrirybczrag 2 - Pheevphyhz Thvqr" gd2_curriculum_desc: "Yrffba cynaf sbe Tnzr Qrirybczrag 2." gd3: "Tnzr Qrirybczrag 3" gd3_curriculum: "Tnzr Qrirybczrag 3 - Pheevphyhz Thvqr" gd3_curriculum_desc: "Yrffba cynaf sbe Tnzr Qrirybczrag 3." wd1: "Jro Qrirybczrag 1" wd1_headlines: "Urnqyvarf & Urnqref Npgvivgl" wd1_headlines_example: "Ivrj fnzcyr fbyhgvba" wd1_headlines_desc: "Jul ner cnentencu naq urnqre gntf vzcbegnag? Hfr guvf npgvivgl gb fubj ubj jryy-pubfra urnqref znxr jro cntrf rnfvre gb ernq. Gurer ner znal pbeerpg fbyhgvbaf gb guvf!" wd1_html_syntax: "UGZY Flagnk Thvqr" wd1_html_syntax_desc: "Bar-cntr ersrerapr sbe gur UGZY fglyr fghqragf jvyy yrnea va Jro Qrirybczrag 1." wd1_css_syntax: "PFF Flagnk Thvqr" wd1_css_syntax_desc: "Bar-cntr ersrerapr sbe gur PFF naq Fglyr flagnk fghqragf jvyy yrnea va Jro Qrirybczrag 1." wd2: "Jro Qrirybczrag 2" wd2_jquery_syntax: "wDhrel Shapgvbaf Flagnk Thvqr" wd2_jquery_syntax_desc: "Bar-cntr ersrerapr sbe gur wDhrel shapgvbaf fghqragf jvyy yrnea va Jro Qrirybczrag 2." wd2_quizlet_worksheet: "Dhvmyrg Cynaavat Jbexfurrg" wd2_quizlet_worksheet_instructions: "Ivrj vafgehpgvbaf & rknzcyrf" wd2_quizlet_worksheet_desc: "Orsber lbhe fghqragf ohvyq gurve crefbanyvgl dhvm cebwrpg ng gur raq bs Jro Qrirybczrag 2, gurl fubhyq cyna bhg gurve dhvm dhrfgvbaf, bhgpbzrf naq erfcbafrf hfvat guvf jbexfurrg. Grnpuref pna qvfgevohgr gur vafgehpgvbaf naq rknzcyrf sbe fghqragf gb ersre gb." student_overview: "Bireivrj" student_details: "PI:NAME:<NAME>END_PIrgnvPI:NAME:<NAME>END_PI" student_name: "PI:NAME:<NAME>END_PI" no_name: "Ab anzr cebivqrq." no_username: "Ab hfreanzr cebivqrq." no_email: "Fghqrag unf ab rznvy nqqerff frg." student_profile: "PI:NAME:<NAME>END_PI" playtime_detail: "Cynlgvzr Qrgnvy" student_completed: "Fghqrag Pbzcyrgrq" student_in_progress: "Fghqrag va CebPI:NAME:<NAME>END_PI" class_average: "Pynff Nirentr" not_assigned: "unf abg orra nffvtarq gur sbyybjvat pbhefrf" playtime_axis: "Cynlgvzr va Frpbaqf" levels_axis: "Yriryf va" student_state: "Ubj vf" student_state_2: "qbvat?" student_good: "vf qbvat jryy va" student_good_detail: "Guvf fghqrag vf xrrcvat cnpr jvgu gur pynff." student_warn: "zvtug arrq fbzr uryc va" student_warn_detail: "Guvf fghqrag zvtug arrq fbzr uryc jvgu arj pbaprcgf gung unir orra vagebqhprq va guvf pbhefr." student_great: "vf qbvat terng va" student_great_detail: "Guvf fghqrag zvtug or n tbbq pnaqvqngr gb uryc bgure fghqragf jbexvat guebhtu guvf pbhefr." full_license: "Shyy Yvprafr" starter_license: "Fgnegre Yvprafr" trial: "Gevny" hoc_welcome: "Unccl Pbzchgre Fpvrapr Rqhpngvba Jrrx" hoc_intro: "Gurer ner guerr jnlf sbe lbhe pynff gb cnegvpvcngr va Ubhe bs Pbqr jvgu PbqrPbzong" hoc_self_led: "Frys-Yrq Tnzrcynl" hoc_self_led_desc: "Fghqragf pna cynl guebhtu gjb Ubhe bs Pbqr PbqrPbzong ghgbevnyf ba gurve bja" hoc_game_dev: "Tnzr Qrirybczrag" hoc_and: "naq" hoc_programming: "WninFpevcg/Clguba Cebtenzzvat" hoc_teacher_led: "Grnpure-Yrq Yrffbaf" hoc_teacher_led_desc1: "Qbjaybnq bhe" hoc_teacher_led_link: "Vagebqhpgvba gb Pbzchgre Fpvrapr yrffba cynaf" hoc_teacher_led_desc2: "gb vagebqhpr lbhe fghqragf gb cebtenzzvat pbaprcgf hfvat bssyvar npgvivgvrf" hoc_group: "Tebhc Tnzrcynl" hoc_group_desc_1: "Grnpuref pna hfr gur yrffbaf va pbawhapgvba jvgu bhe Vagebqhpgvba gb Pbzchgre Fpvrapr pbhefr gb genpx fghqrag cebterff. Frr bhe" hoc_group_link: "Trggvat Fgnegrq Thvqr" hoc_group_desc_2: "sbe zber qrgnvyf" hoc_additional_desc1: "Sbe nqqvgvbany PbqrPbzong erfbheprf naq npgvivgvrf, frr bhe" hoc_additional_desc2: "Dhrfgvbaf" hoc_additional_contact: "Trg va gbhpu" revoke_confirm: "Ner lbh fher lbh jnag gb eribxr n Shyy Yvprafr sebz {{fghqrag_anzr}}? Gur yvprafr jvyy orpbzr ninvynoyr gb nffvta gb nabgure fghqrag." revoking: "Eribxvat..." unused_licenses: "Lbh unir hahfrq Yvprafrf gung nyybj lbh gb nffvta fghqragf cnvq pbhefrf jura gurl'er ernql gb yrnea zber!" remember_new_courses: "Erzrzore gb nffvta arj pbhefrf!" more_info: "Zber Vasb" how_to_assign_courses: "Ubj gb Nffvta Pbhefrf" select_students: "PI:NAME:<NAME>END_PI" select_instructions: "Pyvpx gur purpxobk arkg gb rnpu fghqrag lbh jnag gb nffvta pbhefrf gb." choose_course: "Pubbfr Pbhefr" choose_instructions: "Fryrpg gur pbhefr sebz gur qebcqbja zrah lbh’q yvxr gb nffvta, gura pyvpx “Nffvta gb Fryrpgrq Fghqragf.”" push_projects: "Jr erpbzzraq nffvtavat Jro Qrirybczrag 1 be Tnzr Qrirybczrag 1 nsgre fghqragf unir svavfurq Vagebqhpgvba gb Pbzchgre Fpvrapr! Frr bhe {{erfbhepr_uho}} sbe zber qrgnvyf ba gubfr pbhefrf." teacher_quest: "Grnpure'f Dhrfg sbe Fhpprff" quests_complete: "Dhrfgf Pbzcyrgr" teacher_quest_create_classroom: "Perngr Pynffebbz" teacher_quest_add_students: "Nqq Fghqragf" teacher_quest_teach_methods: "Uryc lbhe fghqragf yrnea ubj gb `pnyy zrgubqf`." teacher_quest_teach_methods_step1: "Trg 75% bs ng yrnfg bar pynff guebhtu gur svefg yriry, __Qhatrbaf bs Xvgutneq__" teacher_quest_teach_methods_step2: "Cevag bhg gur [Fghqrag Dhvpx Fgneg Thvqr](uggc://svyrf.pbqrpbzong.pbz/qbpf/erfbheprf/FghqragDhvpxFgnegThvqr.cqs) va gur Erfbhepr Uho." teacher_quest_teach_strings: "Qba'g fgevat lbhe fghqragf nybat, grnpu gurz `fgevatf`." teacher_quest_teach_strings_step1: "Trg 75% bs ng yrnfg bar pynff guebhtu __Gehr Anzrf__" teacher_quest_teach_strings_step2: "Hfr gur Grnpure Yriry Fryrpgbe ba [Pbhefr Thvqrf](/grnpuref/pbhefrf) cntr gb cerivrj __Gehr Anzrf__." teacher_quest_teach_loops: "Xrrc lbhe fghqragf va gur ybbc nobhg `ybbcf`." teacher_quest_teach_loops_step1: "Trg 75% bs ng yrnfg bar pynff guebhtu __Sver Qnapvat__." teacher_quest_teach_loops_step2: "Hfr gur __Ybbcf Npgvivgl__ va gur [PF1 Pheevphyhz thvqr](/grnpuref/erfbheprf/pf1) gb ervasbepr guvf pbaprcg." teacher_quest_teach_variables: "Inel vg hc jvgu `inevnoyrf`." teacher_quest_teach_variables_step1: "Trg 75% bs ng yrnfg bar pynff guebhtu __Xabja Rarzl__." teacher_quest_teach_variables_step2: "Rapbhentr pbyynobengvba ol hfvat gur [Cnve Cebtenzzvat Npgvivgl](/grnpuref/erfbheprf/cnve-cebtenzzvat)." teacher_quest_kithgard_gates_100: "Rfpncr gur Xvgutneq Tngrf jvgu lbhe pynff." teacher_quest_kithgard_gates_100_step1: "Trg 75% bs ng yrnfg bar pynff guebhtu __Xvgutneq Tngrf__." teacher_quest_kithgard_gates_100_step2: "Thvqr fghqragf gb guvax guebhtu uneq ceboyrzf hfvat gur [Ratvarrevat Plpyr Jbexfurrg](uggc://svyrf.pbqrpbzong.pbz/qbpf/erfbheprf/RatvarrevatPlpyrJbexfurrg.cqs)." teacher_quest_wakka_maul_100: "Cercner gb qhry va Jnxxn Znhy." teacher_quest_wakka_maul_100_step1: "Trg 75% bs ng yrnfg bar pynff gb __Jnxxn Znhy__." teacher_quest_wakka_maul_100_step2: "Frr gur [Neran Thvqr](/grnpuref/erfbheprf/neranf) va gur [Erfbhepr Uho](/grnpuref/erfbheprf) sbe gvcf ba ubj gb eha n fhpprffshy neran qnl." teacher_quest_reach_gamedev: "Rkcyber arj jbeyqf!" teacher_quest_reach_gamedev_step1: "[Trg yvprafrf](/grnpuref/yvprafrf) fb gung lbhe fghqragf pna rkcyber arj jbeyqf, yvxr Tnzr Qrirybczrag naq Jro Qrirybczrag!" teacher_quest_done: "Jnag lbhe fghqragf gb yrnea rira zber pbqr? Trg va gbhpu jvgu bhe [fpubby fcrpvnyvfgf](znvygb:fpubbyf@pbqrpbzong.pbz) gbqnl!" teacher_quest_keep_going: "Xrrc tbvat! Urer'f jung lbh pna qb arkg:" teacher_quest_more: "Frr nyy dhrfgf" teacher_quest_less: "Frr srjre dhrfgf" refresh_to_update: "(erserfu gur cntr gb frr hcqngrf)" view_project_gallery: "Ivrj Cebwrpg Tnyyrel" office_hours: "Grnpure Jrovanef" office_hours_detail: "Yrnea ubj gb xrrc hc jvgu jvgu lbhe fghqragf nf gurl perngr tnzrf naq rzonex ba gurve pbqvat wbhearl! Pbzr naq nggraq bhe" office_hours_link: "grnpure jrovane" office_hours_detail_2: "frffvbaf." success: "Fhpprff" in_progress: "Va Cebterff" not_started: "Abg Fgnegrq" mid_course: "Zvq-Pbhefr" end_course: "Raq bs Pbhefr" none: "Abar qrgrpgrq lrg" explain_open_ended: "Abgr: Fghqragf ner rapbhentrq gb fbyir guvf yriry perngviryl — bar cbffvoyr fbyhgvba vf cebivqrq orybj." level_label: "Yriry:" time_played_label: "Gvzr Cynlrq:" share_licenses: share_licenses: "Funer Yvprafrf" shared_by: "PI:NAME:<NAME>END_PI:" add_teacher_label: "Ragre rknpg grnpure rznvy:" add_teacher_button: "Nqq Grnpure" subheader: "Lbh pna znxr lbhe yvprafrf ninvynoyr gb bgure grnpuref va lbhe betnavmngvba. Rnpu yvprafr pna bayl or hfrq sbe bar fghqrag ng n gvzr." teacher_not_found: "Grnpure abg sbhaq. Cyrnfr znxr fher guvf grnpure unf nyernql perngrq n Grnpure Nppbhag." teacher_not_valid: "Guvf vf abg n inyvq Grnpure Nppbhag. Bayl grnpure nppbhagf pna funer yvprafrf." already_shared: "Lbh'ir nyernql funerq gurfr yvprafrf jvgu gung grnpure." teachers_using_these: "Grnpuref jub pna npprff gurfr yvprafrf:" footer: "Jura grnpuref eribxr yvprafrf sebz fghqragf, gur yvprafrf jvyy or erghearq gb gur funerq cbby sbe bgure grnpuref va guvf tebhc gb hfr." you: "(lbh)" one_license_used: "(1 yvprafr hfrq)" licenses_used: "(__yvprafrfHfrq__ yvprafrf hfrq)" more_info: "Zber vasb" sharing: game: "Tnzr" webpage: "Jrocntr" your_students_preview: "Lbhe fghqragf jvyy pyvpx urer gb frr gurve svavfurq cebwrpgf! Haninvynoyr va grnpure cerivrj." unavailable: "Yvax funevat abg ninvynoyr va grnpure cerivrj." share_game: "Funer Guvf Tnzr" share_web: "Funer Guvf Jrocntr" victory_share_prefix: "Funer guvf yvax gb vaivgr lbhe sevraqf & snzvyl gb" victory_share_prefix_short: "Vaivgr crbcyr gb" victory_share_game: "cynl lbhe tnzr yriry" victory_share_web: "ivrj lbhe jrocntr" victory_share_suffix: "." victory_course_share_prefix: "Guvf yvax jvyy yrg lbhe sevraqf & snzvyl" victory_course_share_game: "cynl gur tnzr" victory_course_share_web: "ivrj gur jrocntr" victory_course_share_suffix: "lbh whfg perngrq." copy_url: "Pbcl HEY" share_with_teacher_email: "Fraq gb lbhe grnpure" game_dev: creator: "Perngbe" web_dev: image_gallery_title: "Vzntr Tnyyrel" select_an_image: "Fryrpg na vzntr lbh jnag gb hfr" scroll_down_for_more_images: "(Fpebyy qbja sbe zber vzntrf)" copy_the_url: "Pbcl gur HEY orybj" copy_the_url_description: "Hfrshy vs lbh jnag gb ercynpr na rkvfgvat vzntr." copy_the_img_tag: "Pbcl gur <vzt> gnt" copy_the_img_tag_description: "Hfrshy vs lbh jnag gb vafreg n arj vzntr." copy_url: "Pbcl HEY" copy_img: "Pbcl <vzt>" how_to_copy_paste: "Ubj gb Pbcl/Cnfgr" copy: "Pbcl" paste: "Cnfgr" back_to_editing: "Onpx gb Rqvgvat" classes: archmage_title: "Nepuzntr" archmage_title_description: "(Pbqre)" archmage_summary: "Vs lbh ner n qrirybcre vagrerfgrq va pbqvat rqhpngvbany tnzrf, orpbzr na nepuzntr gb uryc hf ohvyq PbqrPbzong!" artisan_title: "Negvfna" artisan_title_description: "(Yriry Ohvyqre)" artisan_summary: "Ohvyq naq funer yriryf sbe lbh naq lbhe sevraqf gb cynl. Orpbzr na Negvfna gb yrnea gur neg bs grnpuvat bguref gb cebtenz." adventurer_title: "NqPI:NAME:<NAME>END_PI" adventurer_title_description: "(Yriry Cynlgrfgre)" adventurer_summary: "Trg bhe arj yriryf (rira bhe fhofpevore pbagrag) sbe serr bar jrrx rneyl naq uryc hf jbex bhg ohtf orsber bhe choyvp eryrnfr." scribe_title: "Fpevor" scribe_title_description: "(Negvpyr Rqvgbe)" scribe_summary: "Tbbq pbqr arrqf tbbq qbphzragngvba. Jevgr, rqvg, naq vzcebir gur qbpf ernq ol zvyyvbaf bs cynlref npebff gur tybor." diplomat_title: "Qvcybzng" diplomat_title_description: "(Genafyngbe)" diplomat_summary: "PbqrPbzong vf ybpnyvmrq va 45+ ynathntrf ol bhe Qvcybzngf. Uryc hf bhg naq pbagevohgr genafyngvbaf." ambassador_title: "Nzonffnqbe" ambassador_title_description: "(Fhccbeg)" ambassador_summary: "Gnzr bhe sbehz hfref naq cebivqr qverpgvba sbe gubfr jvgu dhrfgvbaf. Bhe nzonffnqbef ercerfrag PbqrPbzong gb gur jbeyq." teacher_title: "Grnpure" editor: main_title: "PbqrPbzong Rqvgbef" article_title: "Negvpyr Rqvgbe" thang_title: "Gunat Rqvgbe" level_title: "Yriry Rqvgbe" course_title: "Pbhefr Rqvgbe" achievement_title: "Npuvrirzrag Rqvgbe" poll_title: "Cbyy Rqvgbe" back: "Onpx" revert: "EPI:NAME:<NAME>END_PIreg" revert_models: "Erireg Zbqryf" pick_a_terrain: "Cvpx N Greenva" dungeon: "Qhatrba" indoor: "Vaqbbe" desert: "Qrfreg" grassy: "Tenffl" mountain: "Zbhagnva" glacier: "Tynpvre" small: "Fznyy" large: "Ynetr" fork_title: "Sbex Arj Irefvba" fork_creating: "Perngvat Sbex..." generate_terrain: "Trarengr Greenva" more: "Zber" wiki: "Jvxv" live_chat: "PI:NAME:<NAME>END_PI" thang_main: "Znva" thang_spritesheets: "Fcevgrfurrgf" thang_colors: "Pbybef" level_some_options: "Fbzr Bcgvbaf?" level_tab_thangs: "Gunatf" level_tab_scripts: "Fpevcgf" level_tab_components: "Pbzcbaragf" level_tab_systems: "Flfgrzf" level_tab_docs: "Qbphzragngvba" level_tab_thangs_title: "Pheerag Gunatf" level_tab_thangs_all: "Nyy" level_tab_thangs_conditions: "Fgnegvat Pbaqvgvbaf" level_tab_thangs_add: "Nqq Gunatf" level_tab_thangs_search: "Frnepu gunatf" add_components: "Nqq Pbzcbaragf" component_configs: "Pbzcbarag Pbasvthengvbaf" config_thang: "Qbhoyr pyvpx gb pbasvther n gunat" delete: "Qryrgr" duplicate: "Qhcyvpngr" stop_duplicate: "Fgbc Qhcyvpngr" rotate: "Ebgngr" level_component_tab_title: "Pheerag Pbzcbaragf" level_component_btn_new: "Perngr Arj Pbzcbarag" level_systems_tab_title: "Pheerag Flfgrzf" level_systems_btn_new: "Perngr Arj Flfgrz" level_systems_btn_add: "Nqq Flfgrz" level_components_title: "Onpx gb Nyy Gunatf" level_components_type: "Glcr" level_component_edit_title: "Rqvg Pbzcbarag" level_component_config_schema: "Pbasvt Fpurzn" level_system_edit_title: "Rqvg Flfgrz" create_system_title: "Perngr Arj Flfgrz" new_component_title: "Perngr Arj Pbzcbarag" new_component_field_system: "Flfgrz" new_article_title: "Perngr n Arj Negvpyr" new_thang_title: "Perngr n Arj Gunat Glcr" new_level_title: "Perngr n Arj Yriry" new_article_title_login: "Ybt Va gb Perngr n Arj Negvpyr" new_thang_title_login: "Ybt Va gb Perngr n Arj Gunat Glcr" new_level_title_login: "Ybt Va gb Perngr n Arj Yriry" new_achievement_title: "Perngr n Arj Npuvrirzrag" new_achievement_title_login: "Ybt Va gb Perngr n Arj Npuvrirzrag" new_poll_title: "Perngr n Arj Cbyy" new_poll_title_login: "Ybt Va gb Perngr n Arj Cbyy" article_search_title: "Frnepu Negvpyrf Urer" thang_search_title: "Frnepu Gunat Glcrf Urer" level_search_title: "Frnepu Yriryf Urer" achievement_search_title: "Frnepu Npuvrirzragf" poll_search_title: "Frnepu Cbyyf" read_only_warning2: "Abgr: lbh pna'g fnir nal rqvgf urer, orpnhfr lbh'er abg ybttrq va." no_achievements: "Ab npuvrirzragf unir orra nqqrq sbe guvf yriry lrg." achievement_query_misc: "Xrl npuvrirzrag bss bs zvfpryynarn" achievement_query_goals: "Xrl npuvrirzrag bss bs yriry tbnyf" level_completion: "Yriry Pbzcyrgvba" pop_i18n: "Cbchyngr V18A" tasks: "Gnfxf" clear_storage: "Pyrne lbhe ybpny punatrf" add_system_title: "Nqq Flfgrzf gb Yriry" done_adding: "Qbar Nqqvat" article: edit_btn_preview: "Cerivrj" edit_article_title: "Rqvg Negvpyr" polls: priority: "Cevbevgl" contribute: page_title: "Pbagevohgvat" intro_blurb: "PbqrPbzong vf 100% bcra fbhepr! Uhaqerqf bs qrqvpngrq cynlref unir urycrq hf ohvyq gur tnzr vagb jung vg vf gbqnl. Wbva hf naq jevgr gur arkg puncgre va PbqrPbzong'f dhrfg gb grnpu gur jbeyq gb pbqr!" alert_account_message_intro: "Url gurer!" alert_account_message: "Gb fhofpevor sbe pynff rznvyf, lbh'yy arrq gb or ybttrq va svefg." archmage_introduction: "Bar bs gur orfg cnegf nobhg ohvyqvat tnzrf vf gurl flagurfvmr fb znal qvssrerag guvatf. Tencuvpf, fbhaq, erny-gvzr argjbexvat, fbpvny argjbexvat, naq bs pbhefr znal bs gur zber pbzzba nfcrpgf bs cebtenzzvat, sebz ybj-yriry qngnonfr znantrzrag, naq freire nqzvavfgengvba gb hfre snpvat qrfvta naq vagresnpr ohvyqvat. Gurer'f n ybg gb qb, naq vs lbh'er na rkcrevraprq cebtenzzre jvgu n unaxrevat gb ernyyl qvir vagb gur avggl-tevggl bs PbqrPbzong, guvf pynff zvtug or sbe lbh. Jr jbhyq ybir gb unir lbhe uryc ohvyqvat gur orfg cebtenzzvat tnzr rire." class_attributes: "Pynff Nggevohgrf" archmage_attribute_1_pref: "Xabjyrqtr va " archmage_attribute_1_suf: ", be n qrfver gb yrnea. Zbfg bs bhe pbqr vf va guvf ynathntr. Vs lbh'er n sna bs Ehol be Clguba, lbh'yy srry evtug ng ubzr. Vg'f WninFpevcg, ohg jvgu n avpre flagnk." archmage_attribute_2: "Fbzr rkcrevrapr va cebtenzzvat naq crefbany vavgvngvir. Jr'yy uryc lbh trg bevragrq, ohg jr pna'g fcraq zhpu gvzr genvavat lbh." how_to_join: "Ubj Gb Wbva" join_desc_1: "Nalbar pna uryc bhg! Whfg purpx bhg bhe " join_desc_2: "gb trg fgnegrq, naq purpx gur obk orybj gb znex lbhefrys nf n oenir Nepuzntr naq trg gur yngrfg arjf ol rznvy. Jnag gb pung nobhg jung gb qb be ubj gb trg zber qrrcyl vaibyirq? " join_desc_3: ", be svaq hf va bhe " join_desc_4: "naq jr'yy tb sebz gurer!" join_url_email: "Rznvy hf" join_url_slack: "choyvp Fynpx punaary" archmage_subscribe_desc: "Trg rznvyf ba arj pbqvat bccbeghavgvrf naq naabhaprzragf." artisan_introduction_pref: "Jr zhfg pbafgehpg nqqvgvbany yriryf! Crbcyr or pynzbevat sbe zber pbagrag, naq jr pna bayl ohvyq fb znal bhefryirf. Evtug abj lbhe jbexfgngvba vf yriry bar; bhe yriry rqvgbe vf oneryl hfnoyr rira ol vgf perngbef, fb or jnel. Vs lbh unir ivfvbaf bs pnzcnvtaf fcnaavat sbe-ybbcf gb" artisan_introduction_suf: ", gura guvf pynff zvtug or sbe lbh." artisan_attribute_1: "Nal rkcrevrapr va ohvyqvat pbagrag yvxr guvf jbhyq or avpr, fhpu nf hfvat Oyvmmneq'f yriry rqvgbef. Ohg abg erdhverq!" artisan_attribute_2: "N unaxrevat gb qb n jubyr ybg bs grfgvat naq vgrengvba. Gb znxr tbbq yriryf, lbh arrq gb gnxr vg gb bguref naq jngpu gurz cynl vg, naq or cercnerq gb svaq n ybg bs guvatf gb svk." artisan_attribute_3: "Sbe gur gvzr orvat, raqhenapr ra cne jvgu na Nqiraghere. Bhe Yriry Rqvgbe vf fhcre ceryvzvanel naq sehfgengvat gb hfr. Lbh unir orra jnearq!" artisan_join_desc: "Hfr gur Yriry Rqvgbe va gurfr fgrcf, tvir be gnxr:" artisan_join_step1: "Ernq gur qbphzragngvba." artisan_join_step2: "Perngr n arj yriry naq rkcyber rkvfgvat yriryf." artisan_join_step3: "Svaq hf va bhe choyvp Fynpx punaary sbe uryc." artisan_join_step4: "Cbfg lbhe yriryf ba gur sbehz sbe srrqonpx." artisan_subscribe_desc: "Trg rznvyf ba yriry rqvgbe hcqngrf naq naabhaprzragf." adventurer_introduction: "Yrg'f or pyrne nobhg lbhe ebyr: lbh ner gur gnax. Lbh'er tbvat gb gnxr urnil qnzntr. Jr arrq crbcyr gb gel bhg oenaq-arj yriryf naq uryc vqragvsl ubj gb znxr guvatf orggre. Gur cnva jvyy or rabezbhf; znxvat tbbq tnzrf vf n ybat cebprff naq ab bar trgf vg evtug gur svefg gvzr. Vs lbh pna raqher naq unir n uvtu pbafgvghgvba fpber, gura guvf pynff zvtug or sbe lbh." adventurer_attribute_1: "N guvefg sbe yrneavat. Lbh jnag gb yrnea ubj gb pbqr naq jr jnag gb grnpu lbh ubj gb pbqr. Lbh'yy cebonoyl or qbvat zbfg bs gur grnpuvat va guvf pnfr, gubhtu." adventurer_attribute_2: "Punevfzngvp. Or tragyr ohg negvphyngr nobhg jung arrqf vzcebivat, naq bssre fhttrfgvbaf ba ubj gb vzcebir." adventurer_join_pref: "Rvgure trg gbtrgure jvgu (be erpehvg!) na Negvfna naq jbex jvgu gurz, be purpx gur obk orybj gb erprvir rznvyf jura gurer ner arj yriryf gb grfg. Jr'yy nyfb or cbfgvat nobhg yriryf gb erivrj ba bhe argjbexf yvxr" adventurer_forum_url: "bhe sbehz" adventurer_join_suf: "fb vs lbh cersre gb or abgvsvrq gubfr jnlf, fvta hc gurer!" adventurer_subscribe_desc: "Trg rznvyf jura gurer ner arj yriryf gb grfg." scribe_introduction_pref: "PbqrPbzong vfa'g whfg tbvat gb or n ohapu bs yriryf. Vg jvyy nyfb vapyhqr n erfbhepr sbe xabjyrqtr, n jvxv bs cebtenzzvat pbaprcgf gung yriryf pna ubbx vagb. Gung jnl engure guna rnpu Negvfna univat gb qrfpevor va qrgnvy jung n pbzcnevfba bcrengbe vf, gurl pna fvzcyl yvax gurve yriry gb gur Negvpyr qrfpevovat gurz gung vf nyernql jevggra sbe gur cynlre'f rqvsvpngvba. Fbzrguvat nybat gur yvarf bs jung gur " scribe_introduction_url_mozilla: "Zbmvyyn Qrirybcre Argjbex" scribe_introduction_suf: " unf ohvyg. Vs lbhe vqrn bs sha vf negvphyngvat gur pbaprcgf bs cebtenzzvat va Znexqbja sbez, gura guvf pynff zvtug or sbe lbh." scribe_attribute_1: "Fxvyy va jbeqf vf cerggl zhpu nyy lbh arrq. Abg bayl tenzzne naq fcryyvat, ohg noyr gb pbairl pbzcyvpngrq vqrnf gb bguref." contact_us_url: "Pbagnpg Hf" scribe_join_description: "gryy hf n yvggyr nobhg lbhefrys, lbhe rkcrevrapr jvgu cebtenzzvat naq jung fbeg bs guvatf lbh'q yvxr gb jevgr nobhg. Jr'yy tb sebz gurer!" scribe_subscribe_desc: "Trg rznvyf nobhg negvpyr jevgvat naabhaprzragf." diplomat_introduction_pref: "Fb, vs gurer'f bar guvat jr yrnearq sebz gur " diplomat_launch_url: "ynhapu va Bpgbore" diplomat_introduction_suf: "vg'f gung gurer vf fvmrnoyr vagrerfg va PbqrPbzong va bgure pbhagevrf! Jr'er ohvyqvat n pbecf bs genafyngbef rntre gb ghea bar frg bs jbeqf vagb nabgure frg bs jbeqf gb trg PbqrPbzong nf npprffvoyr npebff gur jbeyq nf cbffvoyr. Vs lbh yvxr trggvat farnx crrxf ng hcpbzvat pbagrag naq trggvat gurfr yriryf gb lbhe sryybj angvbanyf NFNC, gura guvf pynff zvtug or sbe lbh." diplomat_attribute_1: "Syhrapl va Ratyvfu naq gur ynathntr lbh jbhyq yvxr gb genafyngr gb. Jura pbairlvat pbzcyvpngrq vqrnf, vg'f vzcbegnag gb unir n fgebat tenfc va obgu!" diplomat_i18n_page_prefix: "Lbh pna fgneg genafyngvat bhe yriryf ol tbvat gb bhe" diplomat_i18n_page: "genafyngvbaf cntr" diplomat_i18n_page_suffix: ", be bhe vagresnpr naq jrofvgr ba TvgUho." diplomat_join_pref_github: "Svaq lbhe ynathntr ybpnyr svyr " diplomat_github_url: "ba TvgUho" diplomat_join_suf_github: ", rqvg vg bayvar, naq fhozvg n chyy erdhrfg. Nyfb, purpx guvf obk orybj gb xrrc hc-gb-qngr ba arj vagreangvbanyvmngvba qrirybczragf!" diplomat_subscribe_desc: "Trg rznvyf nobhg v18a qrirybczragf naq yriryf gb genafyngr." ambassador_introduction: "Guvf vf n pbzzhavgl jr'er ohvyqvat, naq lbh ner gur pbaarpgvbaf. Jr'ir tbg sbehzf, rznvyf, naq fbpvny argjbexf jvgu ybgf bs crbcyr gb gnyx jvgu naq uryc trg npdhnvagrq jvgu gur tnzr naq yrnea sebz. Vs lbh jnag gb uryc crbcyr trg vaibyirq naq unir sha, naq trg n tbbq srry bs gur chyfr bs PbqrPbzong naq jurer jr'er tbvat, gura guvf pynff zvtug or sbe lbh." ambassador_attribute_1: "Pbzzhavpngvba fxvyyf. Or noyr gb vqragvsl gur ceboyrzf cynlref ner univat naq uryc gurz fbyir gurz. Nyfb, xrrc gur erfg bs hf vasbezrq nobhg jung cynlref ner fnlvat, jung gurl yvxr naq qba'g yvxr naq jnag zber bs!" ambassador_join_desc: "gryy hf n yvggyr nobhg lbhefrys, jung lbh'ir qbar naq jung lbh'q or vagrerfgrq va qbvat. Jr'yy tb sebz gurer!" ambassador_join_note_strong: "Abgr" ambassador_join_note_desc: "Bar bs bhe gbc cevbevgvrf vf gb ohvyq zhygvcynlre jurer cynlref univat qvssvphygl fbyivat yriryf pna fhzzba uvture yriry jvmneqf gb uryc gurz. Guvf jvyy or n terng jnl sbe nzonffnqbef gb qb gurve guvat. Jr'yy xrrc lbh cbfgrq!" ambassador_subscribe_desc: "Trg rznvyf ba fhccbeg hcqngrf naq zhygvcynlre qrirybczragf." teacher_subscribe_desc: "Trg rznvyf ba hcqngrf naq naabhaprzragf sbe grnpuref." changes_auto_save: "Punatrf ner fnirq nhgbzngvpnyyl jura lbh gbttyr purpxobkrf." diligent_scribes: "Bhe Qvyvtrag Fpevorf:" powerful_archmages: "Bhe Cbjreshy Nepuzntrf:" creative_artisans: "Bhe Perngvir Negvfnaf:" brave_adventurers: "Bhe Oenir Nqiragheref:" translating_diplomats: "Bhe Genafyngvat Qvcybzngf:" helpful_ambassadors: "Bhe Urycshy Nzonffnqbef:" ladder: my_matches: "Zl Zngpurf" simulate: "Fvzhyngr" simulation_explanation: "Ol fvzhyngvat tnzrf lbh pna trg lbhe tnzr enaxrq snfgre!" simulation_explanation_leagues: "Lbh jvyy znvayl uryc fvzhyngr tnzrf sbe nyyvrq cynlref va lbhe pynaf naq pbhefrf." simulate_games: "Fvzhyngr Tnzrf!" games_simulated_by: "Tnzrf fvzhyngrq ol lbh:" games_simulated_for: "Tnzrf fvzhyngrq sbe lbh:" games_in_queue: "Tnzrf pheeragyl va gur dhrhr:" games_simulated: "Tnzrf fvzhyngrq" games_played: "Tnzrf cynlrq" ratio: "Engvb" leaderboard: "Yrnqreobneq" battle_as: "Onggyr nf " summary_your: "Lbhe " summary_matches: "Zngpurf - " summary_wins: " Jvaf, " summary_losses: " Ybffrf" rank_no_code: "Ab Arj Pbqr gb Enax" rank_my_game: "Enax Zl Tnzr!" rank_submitting: "Fhozvggvat..." rank_submitted: "Fhozvggrq sbe Enaxvat" rank_failed: "Snvyrq gb Enax" rank_being_ranked: "Tnzr Orvat Enaxrq" rank_last_submitted: "fhozvggrq " help_simulate: "Uryc fvzhyngr tnzrf?" code_being_simulated: "Lbhe arj pbqr vf orvat fvzhyngrq ol bgure cynlref sbe enaxvat. Guvf jvyy erserfu nf arj zngpurf pbzr va." no_ranked_matches_pre: "Ab enaxrq zngpurf sbe gur " no_ranked_matches_post: " grnz! Cynl ntnvafg fbzr pbzcrgvgbef naq gura pbzr onpx urer gb trg lbhe tnzr enaxrq." choose_opponent: "Pubbfr na Bccbarag" select_your_language: "Fryrpg lbhe ynathntr!" tutorial_play: "Cynl Ghgbevny" tutorial_recommended: "Erpbzzraqrq vs lbh'ir arire cynlrq orsber" tutorial_skip: "Fxvc Ghgbevny" tutorial_not_sure: "Abg fher jung'f tbvat ba?" tutorial_play_first: "Cynl gur Ghgbevny svefg." simple_ai: "Fvzcyr PCH" warmup: "Jnezhc" friends_playing: "Sevraqf Cynlvat" log_in_for_friends: "Ybt va gb cynl jvgu lbhe sevraqf!" social_connect_blurb: "Pbaarpg naq cynl ntnvafg lbhe sevraqf!" invite_friends_to_battle: "Vaivgr lbhe sevraqf gb wbva lbh va onggyr!" fight: "Svtug!" watch_victory: "Jngpu lbhe ivpgbel" defeat_the: "Qrsrng gur" watch_battle: "Jngpu gur onggyr" tournament_started: ", fgnegrq" tournament_ends: "Gbheanzrag raqf" tournament_ended: "Gbheanzrag raqrq" tournament_rules: "Gbheanzrag Ehyrf" tournament_blurb: "Jevgr pbqr, pbyyrpg tbyq, ohvyq nezvrf, pehfu sbrf, jva cevmrf, naq hctenqr lbhe pnerre va bhe $40,000 Terrq gbheanzrag! Purpx bhg gur qrgnvyf" tournament_blurb_criss_cross: "Jva ovqf, pbafgehpg cnguf, bhgjvg bccbaragf, teno trzf, naq hctenqr lbhe pnerre va bhe Pevff-Pebff gbheanzrag! Purpx bhg gur qrgnvyf" tournament_blurb_zero_sum: "Hayrnfu lbhe pbqvat perngvivgl va obgu tbyq tngurevat naq onggyr gnpgvpf va guvf nycvar zveebe zngpu orgjrra erq fbeprere naq oyhr fbeprere. Gur gbheanzrag ortna ba Sevqnl, Znepu 27 naq jvyy eha hagvy Zbaqnl, Ncevy 6 ng 5CZ CQG. Pbzcrgr sbe sha naq tybel! Purpx bhg gur qrgnvyf" tournament_blurb_ace_of_coders: "Onggyr vg bhg va gur sebmra tynpvre va guvf qbzvangvba-fglyr zveebe zngpu! Gur gbheanzrag ortna ba Jrqarfqnl, Frcgrzore 16 naq jvyy eha hagvy Jrqarfqnl, Bpgbore 14 ng 5CZ CQG. Purpx bhg gur qrgnvyf" tournament_blurb_blog: "ba bhe oybt" rules: "Ehyrf" winners: "PI:NAME:<NAME>END_PI" league: "Yrnthr" red_ai: "Erq PCH" # "Erq NV Jvaf", ng raq bs zhygvcynlre zngpu cynlonpx blue_ai: "Oyhr PCH" wins: "Jvaf" # Ng raq bs zhygvcynlre zngpu cynlonpx humans: "Erq" # Ynqqre cntr qvfcynl grnz anzr ogres: "Oyhr" user: stats: "Fgngf" singleplayer_title: "PI:NAME:<NAME>END_PI" multiplayer_title: "PI:NAME:<NAME>END_PI" achievements_title: "Npuvrirzragf" last_played: "Ynfg Cynlrq" status: "Fgnghf" status_completed: "Pbzcyrgrq" status_unfinished: "Hasvavfurq" no_singleplayer: "Ab Fvatyrcynlre tnzrf cynlrq lrg." no_multiplayer: "Ab Zhygvcynlre tnzrf cynlrq lrg." no_achievements: "Ab Npuvrirzragf rnearq lrg." favorite_prefix: "Snibevgr ynathntr vf " favorite_postfix: "." not_member_of_clans: "Abg n zrzore bs nal pynaf lrg." achievements: last_earned: "Ynfg Rnearq" amount_achieved: "Nzbhag" achievement: "Npuvrirzrag" current_xp_prefix: "" current_xp_postfix: " va gbgny" new_xp_prefix: "" new_xp_postfix: " rnearq" left_xp_prefix: "" left_xp_infix: " hagvy yriry " left_xp_postfix: "" account: payments: "Cnlzragf" prepaid_codes: "Cercnvq Pbqrf" purchased: "Chepunfrq" subscribe_for_gems: "Fhofpevor sbe trzf" subscription: "Fhofpevcgvba" invoices: "Vaibvprf" service_apple: "Nccyr" service_web: "Jro" paid_on: "Cnvq Ba" service: "Freivpr" price: "Cevpr" gems: "Trzf" active: "Npgvir" subscribed: "Fhofpevorq" unsubscribed: "Hafhofpevorq" active_until: "Npgvir Hagvy" cost: "Pbfg" next_payment: "Arkg Cnlzrag" card: "Pneq" status_unsubscribed_active: "Lbh'er abg fhofpevorq naq jba'g or ovyyrq, ohg lbhe nppbhag vf fgvyy npgvir sbe abj." status_unsubscribed: "Trg npprff gb arj yriryf, urebrf, vgrzf, naq obahf trzf jvgu n PbqrPbzong fhofpevcgvba!" not_yet_verified: "Abg lrg irevsvrq." resend_email: "Erfraq rznvy" email_sent: "Rznvy frag! Purpx lbhe vaobk." verifying_email: "Irevslvat lbhe rznvy nqqerff..." successfully_verified: "Lbh'ir fhpprffshyyl irevsvrq lbhe rznvy nqqerff!" verify_error: "Fbzrguvat jrag jebat jura irevslvat lbhe rznvy :(" account_invoices: amount: "Nzbhag va HF qbyynef" declined: "Lbhe pneq jnf qrpyvarq" invalid_amount: "Cyrnfr ragre n HF qbyyne nzbhag." not_logged_in: "Ybt va be perngr na nppbhag gb npprff vaibvprf." pay: "Cnl Vaibvpr" purchasing: "Chepunfvat..." retrying: "Freire reebe, ergelvat." success: "Fhpprffshyyl cnvq. Gunaxf!" account_prepaid: purchase_code: "Chepunfr n Fhofpevcgvba Pbqr" purchase_code1: "Fhofpevcgvba Pbqrf pna or erqrrzrq gb nqq cerzvhz fhofpevcgvba gvzr gb bar be zber nppbhagf sbe gur Ubzr irefvba bs PbqrPbzong." # purchase_code2: "Rnpu PbqrPbzong nppbhag pna bayl erqrrz n cnegvphyne Fhofpevcgvba Pbqr bapr." purchase_code3: "Fhofpevcgvba Pbqr zbaguf jvyy or nqqrq gb gur raq bs nal rkvfgvat fhofpevcgvba ba gur nppbhag." purchase_code4: "Fhofpevcgvba Pbqrf ner sbe nppbhagf cynlvat gur Ubzr irefvba bs PbqrPbzong, gurl pnaabg or hfrq va cynpr bs Fghqrag Yvprafrf sbe gur Pynffebbz irefvba." purchase_code5: "Sbe zber vasbezngvba ba Fghqrag Yvprafrf, ernpu bhg gb" users: "Hfref" months: "Zbaguf" purchase_total: "Gbgny" purchase_button: "Fhozvg Chepunfr" your_codes: "Lbhe Pbqrf" redeem_codes: "Erqrrz n Fhofpevcgvba Pbqr" prepaid_code: "Cercnvq Pbqr" lookup_code: "Ybbxhc cercnvq pbqr" apply_account: "Nccyl gb lbhe nppbhag" copy_link: "Lbh pna pbcl gur pbqr'f yvax naq fraq vg gb fbzrbar." quantity: "Dhnagvgl" redeemed: "Erqrrzrq" no_codes: "Ab pbqrf lrg!" you_can1: "Lbh pna" you_can2: "chepunfr n cercnvq pbqr" you_can3: "gung pna or nccyvrq gb lbhe bja nppbhag be tvira gb bguref." loading_error: could_not_load: "Reebe ybnqvat sebz freire" connection_failure: "Pbaarpgvba Snvyrq" connection_failure_desc: "Vg qbrfa’g ybbx yvxr lbh’er pbaarpgrq gb gur vagrearg! Purpx lbhe argjbex pbaarpgvba naq gura erybnq guvf cntr." login_required: "YPI:NAME:<NAME>END_PI" login_required_desc: "Lbh arrq gb or ybttrq va gb npprff guvf cntr." unauthorized: "Lbh arrq gb or fvtarq va. Qb lbh unir pbbxvrf qvfnoyrq?" forbidden: "Sbeovqqra" forbidden_desc: "Bu ab, gurer’f abguvat jr pna fubj lbh urer! Znxr fher lbh’er ybttrq vagb gur pbeerpg nppbhag, be ivfvg bar bs gur yvaxf orybj gb trg onpx gb cebtenzzvat!" not_found: "Abg Sbhaq" not_found_desc: "Uz, gurer’f abguvat urer. Ivfvg bar bs gur sbyybjvat yvaxf gb trg onpx gb cebtenzzvat!" not_allowed: "Zrgubq abg nyybjrq." timeout: "Freire Gvzrbhg" conflict: "Erfbhepr pbasyvpg." bad_input: "Onq vachg." server_error: "Freire reebe." unknown: "Haxabja Reebe" error: "REEBE" general_desc: "Fbzrguvat jrag jebat, naq vg’f cebonoyl bhe snhyg. Gel jnvgvat n ovg naq gura erserfuvat gur cntr, be ivfvg bar bs gur sbyybjvat yvaxf gb trg onpx gb cebtenzzvat!" resources: level: "Yriry" patch: "Cngpu" patches: "Cngpurf" system: "Flfgrz" systems: "Flfgrzf" component: "Pbzcbarag" components: "Pbzcbaragf" hero: "Ureb" campaigns: "Pnzcnvtaf" concepts: advanced_css_rules: "Nqinaprq PFF Ehyrf" advanced_css_selectors: "Nqinaprq PFF Fryrpgbef" advanced_html_attributes: "Nqinaprq UGZY Nggevohgrf" advanced_html_tags: "Nqinaprq UGZY Gntf" algorithm_average: "Nytbevguz Nirentr" algorithm_find_minmax: "Nytbevguz Svaq Zva/Znk" algorithm_search_binary: "Nytbevguz Frnepu Ovanel" algorithm_search_graph: "Nytbevguz Frnepu Tencu" algorithm_sort: "Nytbevguz Fbeg" algorithm_sum: "Nytbevguz Fhz" arguments: "Nethzragf" arithmetic: "Nevguzrgvp" array_2d: "2Q Neenl" array_index: "Neenl Vaqrkvat" array_iterating: "Vgrengvat Bire Neenlf" array_literals: "Neenl Yvgrenyf" array_searching: "Neenl Frnepuvat" array_sorting: "Neenl Fbegvat" arrays: "Neenlf" basic_css_rules: "Onfvp PFF ehyrf" basic_css_selectors: "Onfvp PFF fryrpgbef" basic_html_attributes: "Onfvp UGZY Nggevohgrf" basic_html_tags: "Onfvp UGZY Gntf" basic_syntax: "Onfvp Flagnk" binary: "Ovanel" boolean_and: "Obbyrna Naq" boolean_equality: "Obbyrna Rdhnyvgl" boolean_greater_less: "Obbyrna Terngre/Yrff" boolean_logic_shortcircuit: "Obbyrna Ybtvp Fubegpvephvgvat" boolean_not: "Obbyrna Abg" boolean_operator_precedence: "Obbyrna Bcrengbe Cerprqrapr" boolean_or: "Obbyrna Be" bootstrap: "Obbgfgenc" break_statements: "Oernx Fgngrzragf" classes: "Pynffrf" continue_statements: "Pbagvahr Fgngrzragf" dom_events: "QBZ Riragf" dynamic_styling: "Qlanzvp Fglyvat" event_concurrency: "Rirag Pbapheerapl" event_data: "Rirag Qngn" event_handlers: "Rirag Unaqyref" for_loops: "Sbe Ybbcf" for_loops_nested: "Arfgrq Sbe Ybbcf" for_loops_range: "Sbe Ybbcf Enatr" functions: "Shapgvbaf" game_ai: "Tnzr NV" game_goals: "Tnzr Tbnyf" game_spawn: "Tnzr Fcnja" graphics: "Tencuvpf" graphs: "Tencuf" heaps: "Urncf" if_else_statements: "Vs/Ryfr Fgngrzragf" if_statements: "Vs Fgngrzragf" if_statements_nested: "Arfgrq Vs Fgngrzagf" indexing: "Neenl Vaqrkrf" input_handling_flags: "Vachg Unaqyvat - Syntf" input_handling_keyboard: "Vachg Unaqyvat - Xrlobneq" input_handling_mouse: "Vachg Unaqyvat - Zbhfr" intermediate_css_rules: "Vagrezrqvngr PFF Ehyrf" intermediate_css_selectors: "Vagrezrqvngr PFF Fryrpgbef" intermediate_html_attributes: "Vagrezrqvngr UGZY Nggevohgrf" intermediate_html_tags: "Vagrezrqvngr UGZY Gntf" jquery: "wDhrel" jquery_animations: "wDhrel Navzngvbaf" jquery_filtering: "wDhrel Ryrzrag Svygrevat" jquery_selectors: "wDhrel Fryrpgbef" length: "Neenl Yratgu" math_geometry: "Trbzrgel" math_operations: "Zngu Yvoenel Bcrengvbaf" math_trigonometry: "Gevtbabzrgel" object_literals: "Bowrpg Yvgrenyf" parameters: "Cnenzrgref" property_access: "Npprffvat Cebcregvrf" property_assignment: "Nffvtavat Cebcregvrf" queues: "Qngn Fgehpgherf - Dhrhrf" reading_docs: "Ernqvat gur Qbpf" recursion: "Erphefvba" return_statements: "Erghea Fgngrzragf" stacks: "Qngn Fgehpgherf - Fgnpxf" strings: "Fgevatf" strings_concatenation: "Fgevat Pbapngrangvba" strings_substrings: "Fhofgevat" trees: "Qngn Fgehpgherf - Gerrf" variables: "Inevnoyrf" vectors: "Irpgbef" while_condition_loops: "Juvyr Ybbcf jvgu Pbaqvgvbanyf" while_loops_simple: "Juvyr Ybbcf" while_loops_nested: "Arfgrq Juvyr Ybbcf" xy_coordinates: "Pnegrfvna Pbbeqvangrf" advanced_strings: "Nqinaprq Fgevatf" # Erfg bs pbaprcgf ner qrcerpngrq algorithms: "Nytbevguzf" boolean_logic: "Obbyrna Ybtvp" basic_html: "Onfvp UGZY" basic_css: "Onfvp PFF" basic_web_scripting: "Onfvp Jro Fpevcgvat" intermediate_html: "Vagrezrqvngr UGZY" intermediate_css: "Vagrezrqvngr PFF" intermediate_web_scripting: "Vagrezrqvngr Jro Fpevcgvat" advanced_html: "Nqinaprq UGZY" advanced_css: "Nqinaprq PFF" advanced_web_scripting: "Nqinaprq Jro Fpevcgvat" input_handling: "Vachg Unaqyvat" while_loops: "Juvyr Ybbcf" place_game_objects: "Cynpr tnzr bowrpgf" construct_mazes: "Pbafgehpg znmrf" create_playable_game: "Perngr n cynlnoyr, funenoyr tnzr cebwrpg" alter_existing_web_pages: "Nygre rkvfgvat jro cntrf" create_sharable_web_page: "Perngr n funenoyr jro cntr" basic_input_handling: "Onfvp Vachg Unaqyvat" basic_game_ai: "Onfvp Tnzr NV" basic_javascript: "Onfvp WninFpevcg" basic_event_handling: "Onfvp Rirag Unaqyvat" create_sharable_interactive_web_page: "Perngr n funenoyr vagrenpgvir jro cntr" anonymous_teacher: notify_teacher: "PI:NAME:<NAME>END_PI" create_teacher_account: "PI:NAME:<NAME>END_PI" enter_student_name: "PI:NAME:<NAME>END_PI:" enter_teacher_email: "LbPI:NAME:<NAME>END_PI'PI:NAME:<NAME>END_PI:" teacher_email_placeholder: "PI:EMAIL:<EMAIL>END_PI" student_name_placeholder: "PI:NAME:<NAME>END_PI" teachers_section: "Grnpuref:" students_section: "Fghqragf:" teacher_notified: "Jr'ir abgvsvrq lbhe grnpure gung lbh jnag gb cynl zber PbqrPbzong va lbhe pynffebbz!" delta: added: "Nqqrq" modified: "Zbqvsvrq" not_modified: "Abg Zbqvsvrq" deleted: "Qryrgrq" moved_index: "Zbirq Vaqrk" text_diff: "Grkg Qvss" merge_conflict_with: "ZRETR PBASYVPG JVGU" no_changes: "Ab Punatrf" legal: page_title: "Yrtny" opensource_intro: "PbqrPbzong vf pbzcyrgryl bcra fbhepr." opensource_description_prefix: "Purpx bhg " github_url: "bhe TvgUho" opensource_description_center: "naq uryc bhg vs lbh yvxr! PbqrPbzong vf ohvyg ba qbmraf bs bcra fbhepr cebwrpgf, naq jr ybir gurz. Frr " archmage_wiki_url: "bhe Nepuzntr jvxv" opensource_description_suffix: "sbe n yvfg bs gur fbsgjner gung znxrf guvf tnzr cbffvoyr." practices_title: "Erfcrpgshy Orfg Cenpgvprf" practices_description: "Gurfr ner bhe cebzvfrf gb lbh, gur cynlre, va fyvtugyl yrff yrtnyrfr." privacy_title: "Cevinpl" privacy_description: "Jr jvyy abg fryy nal bs lbhe crefbany vasbezngvba." security_title: "Frphevgl" security_description: "Jr fgevir gb xrrc lbhe crefbany vasbezngvba fnsr. Nf na bcra fbhepr cebwrpg, bhe fvgr vf serryl bcra gb nalbar gb erivrj naq vzcebir bhe frphevgl flfgrzf." email_title: "Rznvy" email_description_prefix: "Jr jvyy abg vahaqngr lbh jvgu fcnz. Guebhtu" email_settings_url: "lbhe rznvy frggvatf" email_description_suffix: "be guebhtu yvaxf va gur rznvyf jr fraq, lbh pna punatr lbhe cersreraprf naq rnfvyl hafhofpevor ng nal gvzr." cost_title: "Pbfg" cost_description: "PbqrPbzong vf serr gb cynl sbe nyy bs vgf pber yriryf, jvgu n ${{cevpr}} HFQ/zb fhofpevcgvba sbe npprff gb rkgen yriry oenapurf naq {{trzf}} obahf trzf cre zbagu. Lbh pna pnapry jvgu n pyvpx, naq jr bssre n 100% zbarl-onpx thnenagrr." copyrights_title: "Pbclevtugf naq Yvprafrf" contributor_title: "PbagevohgPI:NAME:<NAME>END_PI" contributor_description_prefix: "Nyy pbagevohgvbaf, obgu ba gur fvgr naq ba bhe TvgUho ercbfvgbel, ner fhowrpg gb bhe" cla_url: "PYN" contributor_description_suffix: "gb juvpu lbh fubhyq nterr orsber pbagevohgvat." code_title: "Pbqr - ZVG" code_description_prefix: "Nyy pbqr bjarq ol PbqrPbzong be ubfgrq ba pbqrpbzong.pbz, obgu va gur TvgUho ercbfvgbel be va gur pbqrpbzong.pbz qngnonfr, vf yvprafrq haqre gur" mit_license_url: "ZVG yvprafr" code_description_suffix: "Guvf vapyhqrf nyy pbqr va Flfgrzf naq Pbzcbaragf gung ner znqr ninvynoyr ol PbqrPbzong sbe gur checbfr bs perngvat yriryf." art_title: "Neg/Zhfvp - Perngvir Pbzzbaf " art_description_prefix: "Nyy pbzzba pbagrag vf ninvynoyr haqre gur" cc_license_url: "Perngvir Pbzzbaf Nggevohgvba 4.0 Vagreangvbany Yvprafr" art_description_suffix: "Pbzzba pbagrag vf nalguvat znqr trarenyyl ninvynoyr ol PbqrPbzong sbe gur checbfr bs perngvat Yriryf. Guvf vapyhqrf:" art_music: "Zhfvp" art_sound: "Fbhaq" art_artwork: "Negjbex" art_sprites: "Fcevgrf" art_other: "Nal naq nyy bgure aba-pbqr perngvir jbexf gung ner znqr ninvynoyr jura perngvat Yriryf." art_access: "Pheeragyl gurer vf ab havirefny, rnfl flfgrz sbe srgpuvat gurfr nffrgf. Va trareny, srgpu gurz sebz gur HEYf nf hfrq ol gur fvgr, pbagnpg hf sbe nffvfgnapr, be uryc hf va rkgraqvat gur fvgr gb znxr gurfr nffrgf zber rnfvyl npprffvoyr." art_paragraph_1: "Sbe nggevohgvba, cyrnfr anzr naq yvax gb pbqrpbzong.pbz arne jurer gur fbhepr vf hfrq be jurer nccebcevngr sbe gur zrqvhz. Sbe rknzcyr:" use_list_1: "Vs hfrq va n zbivr be nabgure tnzr, vapyhqr pbqrpbzong.pbz va gur perqvgf." use_list_2: "Vs hfrq ba n jrofvgr, vapyhqr n yvax arne gur hfntr, sbe rknzcyr haqrearngu na vzntr, be va n trareny nggevohgvbaf cntr jurer lbh zvtug nyfb zragvba bgure Perngvir Pbzzbaf jbexf naq bcra fbhepr fbsgjner orvat hfrq ba gur fvgr. Fbzrguvat gung'f nyernql pyrneyl ersrerapvat PbqrPbzong, fhpu nf n oybt cbfg zragvbavat PbqrPbzong, qbrf abg arrq fbzr frcnengr nggevohgvba." art_paragraph_2: "Vs gur pbagrag orvat hfrq vf perngrq abg ol PbqrPbzong ohg vafgrnq ol n hfre bs pbqrpbzong.pbz, nggevohgr gurz vafgrnq, naq sbyybj nggevohgvba qverpgvbaf cebivqrq va gung erfbhepr'f qrfpevcgvba vs gurer ner nal." rights_title: "Evtugf Erfreirq" rights_desc: "Nyy evtugf ner erfreirq sbe Yriryf gurzfryirf. Guvf vapyhqrf" rights_scripts: "Fpevcgf" rights_unit: "Havg pbasvthengvba" rights_writings: "Jevgvatf" rights_media: "Zrqvn (fbhaqf, zhfvp) naq nal bgure perngvir pbagrag znqr fcrpvsvpnyyl sbe gung Yriry naq abg znqr trarenyyl ninvynoyr jura perngvat Yriryf." rights_clarification: "Gb pynevsl, nalguvat gung vf znqr ninvynoyr va gur Yriry Rqvgbe sbe gur checbfr bs znxvat yriryf vf haqre PP, jurernf gur pbagrag perngrq jvgu gur Yriry Rqvgbe be hcybnqrq va gur pbhefr bs perngvba bs Yriryf vf abg." nutshell_title: "Va n Ahgfuryy" nutshell_description: "Nal erfbheprf jr cebivqr va gur Yriry Rqvgbe ner serr gb hfr nf lbh yvxr sbe perngvat Yriryf. Ohg jr erfreir gur evtug gb erfgevpg qvfgevohgvba bs gur Yriryf gurzfryirf (gung ner perngrq ba pbqrpbzong.pbz) fb gung gurl znl or punetrq sbe." canonical: "Gur Ratyvfu irefvba bs guvf qbphzrag vf gur qrsvavgvir, pnabavpny irefvba. Vs gurer ner nal qvfpercnapvrf orgjrra genafyngvbaf, gur Ratyvfu qbphzrag gnxrf cerprqrapr." third_party_title: "Guveq Cnegl Freivprf" third_party_description: "PbqrPbzong hfrf gur sbyybjvat guveq cnegl freivprf (nzbat bguref):" ladder_prizes: title: "Gbheanzrag Cevmrf" # Guvf frpgvba jnf sbe na byq gbheanzrag naq qbrfa'g arrq arj genafyngvbaf abj. blurb_1: "Gurfr cevmrf jvyy or njneqrq nppbeqvat gb" blurb_2: "gur gbheanzrag ehyrf" blurb_3: "gb gur gbc uhzna naq bter cynlref." blurb_4: "Gjb grnzf zrnaf qbhoyr gur cevmrf!" blurb_5: "(Gurer jvyy or gjb svefg cynpr jvaaref, gjb frpbaq-cynpr jvaaref, rgp.)" rank: "Enax" prizes: "Cevmrf" total_value: "Gbgny Inyhr" in_cash: "va pnfu" custom_wizard: "Phfgbz PbqrPbzong Jvmneq" custom_avatar: "Phfgbz PbqrPbzong ningne" heap: "sbe fvk zbaguf bs \"Fgneghc\" npprff" credits: "perqvgf" one_month_coupon: "pbhcba: pubbfr rvgure Envyf be UGZY" one_month_discount: "qvfpbhag, 30% bss: pubbfr rvgure Envyf be UGZY" license: "yvprafr" oreilly: "robbx bs lbhe pubvpr" calendar: year: "Lrne" day: "Qnl" month: "Zbagu" january: "Wnahnel" february: "Sroehnel" march: "Znepu" april: "Ncevy" may: "Znl" june: "Whar" july: "Whyl" august: "Nhthfg" september: "Frcgrzore" october: "Bpgbore" november: "Abirzore" december: "Qrprzore" code_play_create_account_modal: title: "Lbh qvq vg!" # Guvf frpgvba vf bayl arrqrq va HF, HX, Zrkvpb, Vaqvn, naq Treznal body: "Lbh ner abj ba lbhe jnl gb orpbzvat n znfgre pbqre. Fvta hc gb erprvir na rkgen <fgebat>100 Trzf</fgebat> & lbh jvyy nyfb or ragrerq sbe n punapr gb <fgebat>jva $2,500 & bgure Yrabib Cevmrf</fgebat>." sign_up: "Fvta hc & xrrc pbqvat ▶" victory_sign_up_poke: "Perngr n serr nppbhag gb fnir lbhe pbqr & or ragrerq sbe n punapr gb jva cevmrf!" victory_sign_up: "Fvta hc & or ragrerq gb <fgebat>jva $2,500</fgebat>" server_error: email_taken: 'Rznvy nyernql gnxra' username_taken: 'Hfreanzr nyernql gnxra' esper: line_no: "Yvar $1: " uncaught: "Hapnhtug $1" # $1 jvyy or na reebe glcr, rt "Hapnhtug FlagnkReebe" reference_error: "ErsreraprReebe: " argument_error: "NethzragReebe: " type_error: "GlcrReebe: " syntax_error: "FlagnkReebe: " error: "Reebe: " x_not_a_function: "$1 vf abg n shapgvba" x_not_defined: "$1 vf abg qrsvarq" spelling_issues: "Ybbx bhg sbe fcryyvat vffhrf: qvq lbh zrna `$1` vafgrnq bs `$2`?" capitalization_issues: "Ybbx bhg sbe pncvgnyvmngvba: `$1` fubhyq or `$2`." py_empty_block: "Rzcgl $1. Chg 4 fcnprf va sebag bs fgngrzragf vafvqr gur $2 fgngrzrag." fx_missing_paren: "Vs lbh jnag gb pnyy `$1` nf n shapgvba, lbh arrq `()`'f" unmatched_token: "HPI:KEY:<KEY>END_PIpurq `$1`. Rirel bcravat `$2` arrqf n pybfvat `$3` gb zngpu vg." unterminated_string: "Hagrezvangrq fgevat. Nqq n zngpuvat `\"` ng gur raq bs lbhe fgevat." missing_semicolon: "Zvffvat frzvpbyba." missing_quotes: "Zvffvat dhbgrf. Gel `$1`" argument_type: "`$1`'f nethzrag `$2` fubhyq unir glcr `$3`, ohg tbg `$4`: `$5`." argument_type2: "`$1`'f nethzrag `$2` fubhyq unir glcr `$3`, ohg tbg `$4`." target_a_unit: "Gnetrg n havg." attack_capitalization: "Nggnpx $1, abg $2. (Pncvgny yrggref ner vzcbegnag.)" empty_while: "Rzcgl juvyr fgngrzrag. Chg 4 fcnprf va sebag bs fgngrzragf vafvqr gur juvyr fgngrzrag." line_of_site: "`$1`'f nethzrag `$2` unf n ceboyrz. Vf gurer na rarzl jvguva lbhe yvar-bs-fvtug lrg?" need_a_after_while: "Arrq n `$1` nsgre `$2`." too_much_indentation: "Gbb zhpu vaqragngvba ng gur ortvaavat bs guvf yvar." missing_hero: "Zvffvat `$1` xrljbeq; fubhyq or `$2`." takes_no_arguments: "`$1` gnxrf ab nethzragf." no_one_named: "Gurer'f ab bar anzrq \"$1\" gb gnetrg." separated_by_comma: "Shapgvba pnyyf cnenzngref zhfg or frcrengrq ol `,`f" protected_property: "Pna'g ernq cebgrpgrq cebcregl: $1" need_parens_to_call: "Vs lbh jnag gb pnyy `$1` nf shapgvba, lbh arrq `()`'f" expected_an_identifier: "Rkcrpgrq na vqragvsvre naq vafgrnq fnj '$1'." unexpected_identifier: "Harkcrpgrq vqragvsvre" unexpected_end_of: "Harkcrpgrq raq bs vachg" unnecessary_semicolon: "Haarprffnel frzvpbyba." unexpected_token_expected: "PI:KEY:<KEY>END_PI gPI:KEY:<KEY>END_PIra: rkPI:KEY:<KEY>END_PIpgrq $1 ohg sbhaq $2 juvyr cnefvat $3" unexpected_token: "PI:KEY:<KEY>END_PI $1" unexpected_token2: "PI:KEY:<KEY>END_PI" unexpected_number: "Harkcrpgrq ahzore" unexpected: "Harkcrpgrq '$1'." escape_pressed_code: "Rfpncr cerffrq; pbqr nobegrq." target_an_enemy: "Gnetrg na rarzl ol anzr, yvxr `$1`, abg gur fgevat `$2`." target_an_enemy_2: "Gnetrg na rarzl ol anzr, yvxr $1." cannot_read_property: "Pnaabg ernq cebcregl '$1' bs haqrsvarq" attempted_to_assign: "Nggrzcgrq gb nffvta gb ernqbayl cebcregl." unexpected_early_end: "Harkcrpgrq rneyl raq bs cebtenz." you_need_a_string: "Lbh arrq n fgevat gb ohvyq; bar bs $1" unable_to_get_property: "Hanoyr gb trg cebcregl '$1' bs haqrsvarq be ahyy ersrerapr" # GBQB: Qb jr genafyngr haqrsvarq/ahyy? code_never_finished_its: "Pbqr arire svavfurq. Vg'f rvgure ernyyl fybj be unf na vasvavgr ybbc." unclosed_string: "Hapybfrq fgevat." unmatched: "Hazngpurq '$1'." error_you_said_achoo: "Lbh fnvq: $1, ohg gur cnffjbeq vf: $2. (Pncvgny yrggref ner vzcbegnag.)" indentation_error_unindent_does: "Vaqragngvba Reebe: havaqrag qbrf abg zngpu nal bhgre vaqragngvba yriry" indentation_error: "Vaqragngvba reebe." need_a_on_the: "Arrq n `:` ba gur raq bs gur yvar sbyybjvat `$1`." attempt_to_call_undefined: "nggrzcg gb pnyy '$1' (n avy inyhr)" unterminated: "Hagrezvangrq `$1`" target_an_enemy_variable: "Gnetrg na $1 inevnoyr, abg gur fgevat $2. (Gel hfvat $3.)" error_use_the_variable: "Hfr gur inevnoyr anzr yvxr `$1` vafgrnq bs n fgevat yvxr `$2`" indentation_unindent_does_not: "Vaqragngvba havaqrag qbrf abg zngpu nal bhgre vaqragngvba yriry" unclosed_paren_in_function_arguments: "Hapybfrq $1 va shapgvba nethzragf." unexpected_end_of_input: "Harkcrpgrq raq bs vachg" there_is_no_enemy: "Gurer vf ab `$1`. Hfr `$2` svefg." # Uvagf fgneg urer try_herofindnearestenemy: "Gel `$1`" there_is_no_function: "Gurer vf ab shapgvba `$1`, ohg `$2` unf n zrgubq `$3`." attacks_argument_enemy_has: "`$1`'f nethzrag `$2` unf n ceboyrz." is_there_an_enemy: "Vf gurer na rarzl jvguva lbhe yvar-bs-fvtug lrg?" target_is_null_is: "Gnetrg vf $1. Vf gurer nyjnlf n gnetrg gb nggnpx? (Hfr $2?)" hero_has_no_method: "`$1` unf ab zrgubq `$2`." there_is_a_problem: "Gurer vf n ceboyrz jvgu lbhe pbqr." did_you_mean: "Qvq lbh zrna $1? Lbh qb abg unir na vgrz rdhvccrq jvgu gung fxvyy." missing_a_quotation_mark: "Zvffvat n dhbgngvba znex. " missing_var_use_var: "Zvffvat `$1`. Hfr `$2` gb znxr n arj inevnoyr." you_do_not_have: "Lbh qb abg unir na vgrz rdhvccrq jvgu gur $1 fxvyy." put_each_command_on: "Chg rnpu pbzznaq ba n frcnengr yvar" are_you_missing_a: "Ner lbh zvffvat n '$1' nsgre '$2'? " your_parentheses_must_match: "Lbhe cneragurfrf zhfg zngpu."
[ { "context": "# Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero G", "end": 27, "score": 0.7324114441871643, "start": 17, "tag": "NAME", "value": "py Pty Ltd" }, { "context": "# Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General...
resources/assets/coffee/react/status-page.coffee
osu-katakuna/osu-katakuna-web
5
# Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0. # See the LICENCE file in the repository root for full licence text. import { Page } from './status-page/page' reactTurbolinks.register 'status-page', Page
123527
# Copyright (c) p<NAME> <<EMAIL>>. Licensed under the GNU Affero General Public License v3.0. # See the LICENCE file in the repository root for full licence text. import { Page } from './status-page/page' reactTurbolinks.register 'status-page', Page
true
# Copyright (c) pPI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI>. Licensed under the GNU Affero General Public License v3.0. # See the LICENCE file in the repository root for full licence text. import { Page } from './status-page/page' reactTurbolinks.register 'status-page', Page
[ { "context": "id: 20\nname: \"Bereavement support\"\ndescription: \"Looking at how to help bereaved cu", "end": 33, "score": 0.9998682141304016, "start": 14, "tag": "NAME", "value": "Bereavement support" }, { "context": "ision\"\nlocation: \"Newcastle\"\nphase: \"alpha\"\nsro: \"Grae...
app/data/projects/bereavement-allowance.cson
tsmorgan/dwp-ux-work
0
id: 20 name: "Bereavement support" description: "Looking at how to help bereaved customers report and deal with changes after a death." theme: "Retirement Provision" location: "Newcastle" phase: "alpha" sro: "Graeme Wallace" service_man: "Danny Mclaughlin" phase_history: discovery: [ { label: "Completed" date: "January 2016" } ] alpha: [ { label: "Started" date: "April 2016" } ] beta: [ { label: "Predicted start date" date: "October2016" } ] priority: "Medium" prototype: "http://bereavement.herokuapp.com/"
182446
id: 20 name: "<NAME>" description: "Looking at how to help bereaved customers report and deal with changes after a death." theme: "Retirement Provision" location: "Newcastle" phase: "alpha" sro: "<NAME>" service_man: "<NAME>" phase_history: discovery: [ { label: "Completed" date: "January 2016" } ] alpha: [ { label: "Started" date: "April 2016" } ] beta: [ { label: "Predicted start date" date: "October2016" } ] priority: "Medium" prototype: "http://bereavement.herokuapp.com/"
true
id: 20 name: "PI:NAME:<NAME>END_PI" description: "Looking at how to help bereaved customers report and deal with changes after a death." theme: "Retirement Provision" location: "Newcastle" phase: "alpha" sro: "PI:NAME:<NAME>END_PI" service_man: "PI:NAME:<NAME>END_PI" phase_history: discovery: [ { label: "Completed" date: "January 2016" } ] alpha: [ { label: "Started" date: "April 2016" } ] beta: [ { label: "Predicted start date" date: "October2016" } ] priority: "Medium" prototype: "http://bereavement.herokuapp.com/"
[ { "context": "# Copyright (c) 2014. David M. Lee, II <leedm777@yahoo.com>\n'use strict'\n\nexpect = (", "end": 34, "score": 0.999860942363739, "start": 22, "tag": "NAME", "value": "David M. Lee" }, { "context": "# Copyright (c) 2014. David M. Lee, II <leedm777@yahoo.com>\n'use strict...
test/configure.spec.coffee
building5/parfaitjs
1
# Copyright (c) 2014. David M. Lee, II <leedm777@yahoo.com> 'use strict' expect = (require 'chai').expect parfait = require '../src' class MockAppDirs constructor: (@basedir) -> siteDataDir: (appName, appAuthor) -> expect(appName).to.equal('someApp') expect(appAuthor).to.equal('someAuthor') "#{@basedir}/site" userDataDir: (appName, appAuthor) -> expect(appName).to.equal('someApp') expect(appAuthor).to.equal('someAuthor') "#{@basedir}/user" describe 'For sample configs', -> it 'should parse JSON', -> expected = environment: 'development', foo: bar: 'simple-json' actual = parfait.configure { directory: 'test/simple-json.config' } expect(actual).to.eventually.deep.equal expected it 'should parse YAML', -> expected = environment: 'development', foo: bar: 'simple-yaml' actual = parfait.configure { directory: 'test/simple-yaml.config' } expect(actual).to.eventually.deep.equal expected it 'should parse multi-file config', -> expected = environment: 'development' foo: test: 'foo' bar: test: 'bar' actual = parfait.configure { directory: 'test/multi-file.config' } expect(actual).to.eventually.deep.equal expected it 'should parse subdir config', -> expected = environment: 'development' foo: test: 'foo' bar: bam: test: 'bam' actual = parfait.configure { directory: 'test/subdir.config' } expect(actual).to.eventually.deep.equal expected it 'should parse site and user configs', -> expected = environment: 'development', foo: 'set-by-base': 'base' 'set-by-user': 'user' 'set-by-site': 'site' appdirs: siteConfigDir: 'test/site-user.config/site', userConfigDir: 'test/site-user.config/user' actual = parfait.configure { directory: 'test/site-user.config/base', preConfig: appdirs: siteConfigDir: 'test/site-user.config/site', userConfigDir: 'test/site-user.config/user' } expect(actual).to.eventually.deep.equal expected it 'should parse environment configs', -> expected = environment: 'test', foo: 'set-by-base': 'base' 'set-by-base-env': 'base-env' 'set-by-user': 'user' 'set-by-user-env': 'user-env' 'set-by-site': 'site' 'set-by-site-env': 'site-env' appdirs: siteConfigDir: 'test/env.config/site', userConfigDir: 'test/env.config/user' actual = parfait.configure { directory: 'test/env.config/base', environment: 'test', preConfig: appdirs: siteConfigDir: 'test/env.config/site', userConfigDir: 'test/env.config/user' } expect(actual).to.eventually.deep.equal expected describe 'using AppDirs', -> appdirs = require 'appdirs' origAppDirs = null before -> origAppDirs = appdirs.AppDirs appdirs.AppDirs = class ctor: (appName, appAuthor) -> expect(appName).to.equal('app-name') expect(appAuthor).to.equal('app-author') siteConfigDir: -> 'site-config' siteDataDir: -> 'site-data' userCacheDir: -> 'user-cache' userConfigDir: -> 'user-config' userDataDir: -> 'user-data' userLogDir: -> 'user-log' after -> appdirs.AppDirs = origAppDirs it 'should load in AppDirs', -> expected = environment: 'development' appdirs: appName: 'app-name' appAuthor: 'app-author' siteConfigDir: 'site-config' siteDataDir: 'site-data' userCacheDir: 'user-cache' userConfigDir: 'user-config' userDataDir: 'user-data' userLogDir: 'user-log' actual = parfait.configure { preConfig: appdirs: appName: 'app-name' appAuthor: 'app-author' } expect(actual).to.eventually.deep.equal expected
26065
# Copyright (c) 2014. <NAME>, II <<EMAIL>> 'use strict' expect = (require 'chai').expect parfait = require '../src' class MockAppDirs constructor: (@basedir) -> siteDataDir: (appName, appAuthor) -> expect(appName).to.equal('someApp') expect(appAuthor).to.equal('someAuthor') "#{@basedir}/site" userDataDir: (appName, appAuthor) -> expect(appName).to.equal('someApp') expect(appAuthor).to.equal('someAuthor') "#{@basedir}/user" describe 'For sample configs', -> it 'should parse JSON', -> expected = environment: 'development', foo: bar: 'simple-json' actual = parfait.configure { directory: 'test/simple-json.config' } expect(actual).to.eventually.deep.equal expected it 'should parse YAML', -> expected = environment: 'development', foo: bar: 'simple-yaml' actual = parfait.configure { directory: 'test/simple-yaml.config' } expect(actual).to.eventually.deep.equal expected it 'should parse multi-file config', -> expected = environment: 'development' foo: test: 'foo' bar: test: 'bar' actual = parfait.configure { directory: 'test/multi-file.config' } expect(actual).to.eventually.deep.equal expected it 'should parse subdir config', -> expected = environment: 'development' foo: test: 'foo' bar: bam: test: 'bam' actual = parfait.configure { directory: 'test/subdir.config' } expect(actual).to.eventually.deep.equal expected it 'should parse site and user configs', -> expected = environment: 'development', foo: 'set-by-base': 'base' 'set-by-user': 'user' 'set-by-site': 'site' appdirs: siteConfigDir: 'test/site-user.config/site', userConfigDir: 'test/site-user.config/user' actual = parfait.configure { directory: 'test/site-user.config/base', preConfig: appdirs: siteConfigDir: 'test/site-user.config/site', userConfigDir: 'test/site-user.config/user' } expect(actual).to.eventually.deep.equal expected it 'should parse environment configs', -> expected = environment: 'test', foo: 'set-by-base': 'base' 'set-by-base-env': 'base-env' 'set-by-user': 'user' 'set-by-user-env': 'user-env' 'set-by-site': 'site' 'set-by-site-env': 'site-env' appdirs: siteConfigDir: 'test/env.config/site', userConfigDir: 'test/env.config/user' actual = parfait.configure { directory: 'test/env.config/base', environment: 'test', preConfig: appdirs: siteConfigDir: 'test/env.config/site', userConfigDir: 'test/env.config/user' } expect(actual).to.eventually.deep.equal expected describe 'using AppDirs', -> appdirs = require 'appdirs' origAppDirs = null before -> origAppDirs = appdirs.AppDirs appdirs.AppDirs = class ctor: (appName, appAuthor) -> expect(appName).to.equal('app-name') expect(appAuthor).to.equal('app-author') siteConfigDir: -> 'site-config' siteDataDir: -> 'site-data' userCacheDir: -> 'user-cache' userConfigDir: -> 'user-config' userDataDir: -> 'user-data' userLogDir: -> 'user-log' after -> appdirs.AppDirs = origAppDirs it 'should load in AppDirs', -> expected = environment: 'development' appdirs: appName: 'app-name' appAuthor: 'app-author' siteConfigDir: 'site-config' siteDataDir: 'site-data' userCacheDir: 'user-cache' userConfigDir: 'user-config' userDataDir: 'user-data' userLogDir: 'user-log' actual = parfait.configure { preConfig: appdirs: appName: 'app-name' appAuthor: 'app-author' } expect(actual).to.eventually.deep.equal expected
true
# Copyright (c) 2014. PI:NAME:<NAME>END_PI, II <PI:EMAIL:<EMAIL>END_PI> 'use strict' expect = (require 'chai').expect parfait = require '../src' class MockAppDirs constructor: (@basedir) -> siteDataDir: (appName, appAuthor) -> expect(appName).to.equal('someApp') expect(appAuthor).to.equal('someAuthor') "#{@basedir}/site" userDataDir: (appName, appAuthor) -> expect(appName).to.equal('someApp') expect(appAuthor).to.equal('someAuthor') "#{@basedir}/user" describe 'For sample configs', -> it 'should parse JSON', -> expected = environment: 'development', foo: bar: 'simple-json' actual = parfait.configure { directory: 'test/simple-json.config' } expect(actual).to.eventually.deep.equal expected it 'should parse YAML', -> expected = environment: 'development', foo: bar: 'simple-yaml' actual = parfait.configure { directory: 'test/simple-yaml.config' } expect(actual).to.eventually.deep.equal expected it 'should parse multi-file config', -> expected = environment: 'development' foo: test: 'foo' bar: test: 'bar' actual = parfait.configure { directory: 'test/multi-file.config' } expect(actual).to.eventually.deep.equal expected it 'should parse subdir config', -> expected = environment: 'development' foo: test: 'foo' bar: bam: test: 'bam' actual = parfait.configure { directory: 'test/subdir.config' } expect(actual).to.eventually.deep.equal expected it 'should parse site and user configs', -> expected = environment: 'development', foo: 'set-by-base': 'base' 'set-by-user': 'user' 'set-by-site': 'site' appdirs: siteConfigDir: 'test/site-user.config/site', userConfigDir: 'test/site-user.config/user' actual = parfait.configure { directory: 'test/site-user.config/base', preConfig: appdirs: siteConfigDir: 'test/site-user.config/site', userConfigDir: 'test/site-user.config/user' } expect(actual).to.eventually.deep.equal expected it 'should parse environment configs', -> expected = environment: 'test', foo: 'set-by-base': 'base' 'set-by-base-env': 'base-env' 'set-by-user': 'user' 'set-by-user-env': 'user-env' 'set-by-site': 'site' 'set-by-site-env': 'site-env' appdirs: siteConfigDir: 'test/env.config/site', userConfigDir: 'test/env.config/user' actual = parfait.configure { directory: 'test/env.config/base', environment: 'test', preConfig: appdirs: siteConfigDir: 'test/env.config/site', userConfigDir: 'test/env.config/user' } expect(actual).to.eventually.deep.equal expected describe 'using AppDirs', -> appdirs = require 'appdirs' origAppDirs = null before -> origAppDirs = appdirs.AppDirs appdirs.AppDirs = class ctor: (appName, appAuthor) -> expect(appName).to.equal('app-name') expect(appAuthor).to.equal('app-author') siteConfigDir: -> 'site-config' siteDataDir: -> 'site-data' userCacheDir: -> 'user-cache' userConfigDir: -> 'user-config' userDataDir: -> 'user-data' userLogDir: -> 'user-log' after -> appdirs.AppDirs = origAppDirs it 'should load in AppDirs', -> expected = environment: 'development' appdirs: appName: 'app-name' appAuthor: 'app-author' siteConfigDir: 'site-config' siteDataDir: 'site-data' userCacheDir: 'user-cache' userConfigDir: 'user-config' userDataDir: 'user-data' userLogDir: 'user-log' actual = parfait.configure { preConfig: appdirs: appName: 'app-name' appAuthor: 'app-author' } expect(actual).to.eventually.deep.equal expected
[ { "context": "###\nCopyright (c) 2013, Alexander Cherniuk <ts33kr@gmail.com>\nAll rights reserved.\n\nRedistri", "end": 42, "score": 0.9998469948768616, "start": 24, "tag": "NAME", "value": "Alexander Cherniuk" }, { "context": "###\nCopyright (c) 2013, Alexander Cherniuk <ts33kr@gmai...
library/applied/mailer.coffee
ts33kr/granite
6
### Copyright (c) 2013, Alexander Cherniuk <ts33kr@gmail.com> All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ### asciify = require "asciify" connect = require "connect" logger = require "winston" nodemailer = require "nodemailer" events = require "eventemitter2" colors = require "colors" assert = require "assert" nconf = require "nconf" https = require "https" http = require "http" util = require "util" url = require "url" _ = require "lodash" nodemailer = require "nodemailer" {Service} = require "../nucleus/service" {Barebones} = require "../membrane/skeleton" # This is an ABC service intended to be used only as a compund. It # provides the facilities to send emails from the services that mix # this compound in. It draws the necessary configuration data, then # sets up all the internal objects required. A mailer configuration # is done once only, then mailer persists on the kernel and reused. module.exports.EmailClient = class EmailClient extends Service # This is a marker that indicates to some internal subsystems # that this class has to be considered abstract and therefore # can not be treated as a complete class implementation. This # mainly is used to exclude or account for abstract classes. # Once inherited from, the inheritee is not abstract anymore. @abstract yes # Allows to configure custom connection options for e-mailer. # This is making sense if you want to have a service-isolated # Mongo connection, using `EMAIL_ENVELOPE_SERVICE` and this # connection is supposed to be wired into a different email # provider or account. This variable is used to supply that. # It should be a function, returning a mailer config object. @EMAIL_CONFIG: undefined # These defintions are the presets available for configuring # the email envelope getting functions. Please set the special # class value `EMAIL_ENVELOPE` to either one of these values or # to a custom function that will generate/retrieve the mailer # envelope, when necessary. Depending on this, the system will # generate a new connection on the container, if it does not # contain an opened connection yet. The default container is # the kernel preset using the `EMAIL_ENVELOPE_KERNEL` value. @EMAIL_ENVELOPE_KERNEL: -> return @kernel @EMAIL_ENVELOPE_SERVICE: -> @$email ?= {} # A hook that will be called prior to unregistering the service # implementation. Please refer to this prototype signature for # information on the parameters it accepts. Beware, this hook # is asynchronously wired in, so consult with `async` package. # Please be sure invoke the `next` arg to proceed, if relevant. # This implementation correctly ends email connection, if any. unregister: (kernel, router, next) -> @constructor.EMAIL_ENVELOPE ?= -> kernel envelope = this.constructor.EMAIL_ENVELOPE envelope = try envelope.apply this, arguments amc = @constructor.MONGO_CONFIG or -> undefined config = try nconf.get("emailer") or try amc() return next() unless _.isObject config or null return next() unless _.isObject kernel.emailer noConfig = "missing the emailer configuration" {transport, configure} = config or new Object() msg = "Disconnecting mail client of %s transport" logger.info msg.underline.magenta, transport.bold try @emit "no-emailer", envelope.emailer, envelope try kernel.emit "no-emailer", envelope.emailer envelope.emailer.close (-> return) # empty CB delete envelope.emailer if envelope.emailer? next.call this, undefined; return this # A hook that will be called prior to registering the service # implementation. Please refer to this prototype signature for # information on the parameters it accepts. Beware, this hook # is asynchronously wired in, so consult with `async` package. # Please be sure invoke the `next` arg to proceed, if relevant. # This implementation open a new mailer connection, if configed. register: (kernel, router, next) -> @constructor.EMAIL_ENVELOPE ?= -> kernel envelope = this.constructor.EMAIL_ENVELOPE envelope = envelope.apply this, arguments amc = @constructor.MONGO_CONFIG or -> null config = try nconf.get("emailer") or amc() return next() unless _.isObject config or 0 return next() if _.isObject envelope.emailer {transport, configure} = config or Object() noTransport = "transport has to be as a string" noConfigure = "configure has to be as a object" msg = "Connecting mail client via %s transport" internal = "fail to initialize email transport" fx = (a...) -> nodemailer.createTransport a... assert _.isString(transport or 0), noTransport assert _.isObject(configure or 0), noConfigure logger.info msg.underline.magenta, transport.bold envelope.emailer = try fx transport, configure assert _.isObject(envelope.emailer), internal @emit "email-ok", envelope, envelope.emailer kernel.emit "email-ok", envelope.emailer next.call this, undefined; return this # A hook that will be called prior to instantiating the service # implementation. Please refer to this prototype signature for # information on the parameters it accepts. Beware, this hook # is asynchronously wired in, so consult with `async` package. # Please be sure invoke the `next` arg to proceed, if relevant. # This implementation sets the mailer connection access handle. instance: (kernel, service, next) -> @constructor.EMAIL_ENVELOPE ?= -> kernel envelope = this.constructor.EMAIL_ENVELOPE envelope = try envelope.apply this, arguments identify = try @constructor.identify().underline sending = "Sending an email off %s service".yellow return next undefined if _.has service, "emailer" @on "emailing", -> logger.warn sending, identify @email = -> notify arguments; sender arguments... ack = "Acquire e-mail client handle in %s".grey sig = => this.emit "email-ok", @emailer or null notify = (seq) -> service.emit "emailing", seq... define = -> try Object.defineProperty arguments... sender = -> service.emailer.sendMail arguments... mkp = (prop) -> define service, "emailer", prop dap = -> mkp arguments...; next(); sig(); this dap enumerable: yes, configurable: no, get: -> emailer = try envelope.emailer or undefined missing = "an envelope has no e-mail client" try logger.debug ack, try identify.underline assert _.isObject(emailer), missing; emailer
16240
### Copyright (c) 2013, <NAME> <<EMAIL>> All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ### asciify = require "asciify" connect = require "connect" logger = require "winston" nodemailer = require "nodemailer" events = require "eventemitter2" colors = require "colors" assert = require "assert" nconf = require "nconf" https = require "https" http = require "http" util = require "util" url = require "url" _ = require "lodash" nodemailer = require "nodemailer" {Service} = require "../nucleus/service" {Barebones} = require "../membrane/skeleton" # This is an ABC service intended to be used only as a compund. It # provides the facilities to send emails from the services that mix # this compound in. It draws the necessary configuration data, then # sets up all the internal objects required. A mailer configuration # is done once only, then mailer persists on the kernel and reused. module.exports.EmailClient = class EmailClient extends Service # This is a marker that indicates to some internal subsystems # that this class has to be considered abstract and therefore # can not be treated as a complete class implementation. This # mainly is used to exclude or account for abstract classes. # Once inherited from, the inheritee is not abstract anymore. @abstract yes # Allows to configure custom connection options for e-mailer. # This is making sense if you want to have a service-isolated # Mongo connection, using `EMAIL_ENVELOPE_SERVICE` and this # connection is supposed to be wired into a different email # provider or account. This variable is used to supply that. # It should be a function, returning a mailer config object. @EMAIL_CONFIG: undefined # These defintions are the presets available for configuring # the email envelope getting functions. Please set the special # class value `EMAIL_ENVELOPE` to either one of these values or # to a custom function that will generate/retrieve the mailer # envelope, when necessary. Depending on this, the system will # generate a new connection on the container, if it does not # contain an opened connection yet. The default container is # the kernel preset using the `EMAIL_ENVELOPE_KERNEL` value. @EMAIL_ENVELOPE_KERNEL: -> return @kernel @EMAIL_ENVELOPE_SERVICE: -> @$email ?= {} # A hook that will be called prior to unregistering the service # implementation. Please refer to this prototype signature for # information on the parameters it accepts. Beware, this hook # is asynchronously wired in, so consult with `async` package. # Please be sure invoke the `next` arg to proceed, if relevant. # This implementation correctly ends email connection, if any. unregister: (kernel, router, next) -> @constructor.EMAIL_ENVELOPE ?= -> kernel envelope = this.constructor.EMAIL_ENVELOPE envelope = try envelope.apply this, arguments amc = @constructor.MONGO_CONFIG or -> undefined config = try nconf.get("emailer") or try amc() return next() unless _.isObject config or null return next() unless _.isObject kernel.emailer noConfig = "missing the emailer configuration" {transport, configure} = config or new Object() msg = "Disconnecting mail client of %s transport" logger.info msg.underline.magenta, transport.bold try @emit "no-emailer", envelope.emailer, envelope try kernel.emit "no-emailer", envelope.emailer envelope.emailer.close (-> return) # empty CB delete envelope.emailer if envelope.emailer? next.call this, undefined; return this # A hook that will be called prior to registering the service # implementation. Please refer to this prototype signature for # information on the parameters it accepts. Beware, this hook # is asynchronously wired in, so consult with `async` package. # Please be sure invoke the `next` arg to proceed, if relevant. # This implementation open a new mailer connection, if configed. register: (kernel, router, next) -> @constructor.EMAIL_ENVELOPE ?= -> kernel envelope = this.constructor.EMAIL_ENVELOPE envelope = envelope.apply this, arguments amc = @constructor.MONGO_CONFIG or -> null config = try nconf.get("emailer") or amc() return next() unless _.isObject config or 0 return next() if _.isObject envelope.emailer {transport, configure} = config or Object() noTransport = "transport has to be as a string" noConfigure = "configure has to be as a object" msg = "Connecting mail client via %s transport" internal = "fail to initialize email transport" fx = (a...) -> nodemailer.createTransport a... assert _.isString(transport or 0), noTransport assert _.isObject(configure or 0), noConfigure logger.info msg.underline.magenta, transport.bold envelope.emailer = try fx transport, configure assert _.isObject(envelope.emailer), internal @emit "email-ok", envelope, envelope.emailer kernel.emit "email-ok", envelope.emailer next.call this, undefined; return this # A hook that will be called prior to instantiating the service # implementation. Please refer to this prototype signature for # information on the parameters it accepts. Beware, this hook # is asynchronously wired in, so consult with `async` package. # Please be sure invoke the `next` arg to proceed, if relevant. # This implementation sets the mailer connection access handle. instance: (kernel, service, next) -> @constructor.EMAIL_ENVELOPE ?= -> kernel envelope = this.constructor.EMAIL_ENVELOPE envelope = try envelope.apply this, arguments identify = try @constructor.identify().underline sending = "Sending an email off %s service".yellow return next undefined if _.has service, "emailer" @on "emailing", -> logger.warn sending, identify @email = -> notify arguments; sender arguments... ack = "Acquire e-mail client handle in %s".grey sig = => this.emit "email-ok", @emailer or null notify = (seq) -> service.emit "emailing", seq... define = -> try Object.defineProperty arguments... sender = -> service.emailer.sendMail arguments... mkp = (prop) -> define service, "emailer", prop dap = -> mkp arguments...; next(); sig(); this dap enumerable: yes, configurable: no, get: -> emailer = try envelope.emailer or undefined missing = "an envelope has no e-mail client" try logger.debug ack, try identify.underline assert _.isObject(emailer), missing; emailer
true
### Copyright (c) 2013, PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI> All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ### asciify = require "asciify" connect = require "connect" logger = require "winston" nodemailer = require "nodemailer" events = require "eventemitter2" colors = require "colors" assert = require "assert" nconf = require "nconf" https = require "https" http = require "http" util = require "util" url = require "url" _ = require "lodash" nodemailer = require "nodemailer" {Service} = require "../nucleus/service" {Barebones} = require "../membrane/skeleton" # This is an ABC service intended to be used only as a compund. It # provides the facilities to send emails from the services that mix # this compound in. It draws the necessary configuration data, then # sets up all the internal objects required. A mailer configuration # is done once only, then mailer persists on the kernel and reused. module.exports.EmailClient = class EmailClient extends Service # This is a marker that indicates to some internal subsystems # that this class has to be considered abstract and therefore # can not be treated as a complete class implementation. This # mainly is used to exclude or account for abstract classes. # Once inherited from, the inheritee is not abstract anymore. @abstract yes # Allows to configure custom connection options for e-mailer. # This is making sense if you want to have a service-isolated # Mongo connection, using `EMAIL_ENVELOPE_SERVICE` and this # connection is supposed to be wired into a different email # provider or account. This variable is used to supply that. # It should be a function, returning a mailer config object. @EMAIL_CONFIG: undefined # These defintions are the presets available for configuring # the email envelope getting functions. Please set the special # class value `EMAIL_ENVELOPE` to either one of these values or # to a custom function that will generate/retrieve the mailer # envelope, when necessary. Depending on this, the system will # generate a new connection on the container, if it does not # contain an opened connection yet. The default container is # the kernel preset using the `EMAIL_ENVELOPE_KERNEL` value. @EMAIL_ENVELOPE_KERNEL: -> return @kernel @EMAIL_ENVELOPE_SERVICE: -> @$email ?= {} # A hook that will be called prior to unregistering the service # implementation. Please refer to this prototype signature for # information on the parameters it accepts. Beware, this hook # is asynchronously wired in, so consult with `async` package. # Please be sure invoke the `next` arg to proceed, if relevant. # This implementation correctly ends email connection, if any. unregister: (kernel, router, next) -> @constructor.EMAIL_ENVELOPE ?= -> kernel envelope = this.constructor.EMAIL_ENVELOPE envelope = try envelope.apply this, arguments amc = @constructor.MONGO_CONFIG or -> undefined config = try nconf.get("emailer") or try amc() return next() unless _.isObject config or null return next() unless _.isObject kernel.emailer noConfig = "missing the emailer configuration" {transport, configure} = config or new Object() msg = "Disconnecting mail client of %s transport" logger.info msg.underline.magenta, transport.bold try @emit "no-emailer", envelope.emailer, envelope try kernel.emit "no-emailer", envelope.emailer envelope.emailer.close (-> return) # empty CB delete envelope.emailer if envelope.emailer? next.call this, undefined; return this # A hook that will be called prior to registering the service # implementation. Please refer to this prototype signature for # information on the parameters it accepts. Beware, this hook # is asynchronously wired in, so consult with `async` package. # Please be sure invoke the `next` arg to proceed, if relevant. # This implementation open a new mailer connection, if configed. register: (kernel, router, next) -> @constructor.EMAIL_ENVELOPE ?= -> kernel envelope = this.constructor.EMAIL_ENVELOPE envelope = envelope.apply this, arguments amc = @constructor.MONGO_CONFIG or -> null config = try nconf.get("emailer") or amc() return next() unless _.isObject config or 0 return next() if _.isObject envelope.emailer {transport, configure} = config or Object() noTransport = "transport has to be as a string" noConfigure = "configure has to be as a object" msg = "Connecting mail client via %s transport" internal = "fail to initialize email transport" fx = (a...) -> nodemailer.createTransport a... assert _.isString(transport or 0), noTransport assert _.isObject(configure or 0), noConfigure logger.info msg.underline.magenta, transport.bold envelope.emailer = try fx transport, configure assert _.isObject(envelope.emailer), internal @emit "email-ok", envelope, envelope.emailer kernel.emit "email-ok", envelope.emailer next.call this, undefined; return this # A hook that will be called prior to instantiating the service # implementation. Please refer to this prototype signature for # information on the parameters it accepts. Beware, this hook # is asynchronously wired in, so consult with `async` package. # Please be sure invoke the `next` arg to proceed, if relevant. # This implementation sets the mailer connection access handle. instance: (kernel, service, next) -> @constructor.EMAIL_ENVELOPE ?= -> kernel envelope = this.constructor.EMAIL_ENVELOPE envelope = try envelope.apply this, arguments identify = try @constructor.identify().underline sending = "Sending an email off %s service".yellow return next undefined if _.has service, "emailer" @on "emailing", -> logger.warn sending, identify @email = -> notify arguments; sender arguments... ack = "Acquire e-mail client handle in %s".grey sig = => this.emit "email-ok", @emailer or null notify = (seq) -> service.emit "emailing", seq... define = -> try Object.defineProperty arguments... sender = -> service.emailer.sendMail arguments... mkp = (prop) -> define service, "emailer", prop dap = -> mkp arguments...; next(); sig(); this dap enumerable: yes, configurable: no, get: -> emailer = try envelope.emailer or undefined missing = "an envelope has no e-mail client" try logger.debug ack, try identify.underline assert _.isObject(emailer), missing; emailer
[ { "context": "#Skull-client (c) 2011 Braghis Florin (florin@libertv.ro). MIT License\n\nSkull = window.", "end": 37, "score": 0.9998756051063538, "start": 23, "tag": "NAME", "value": "Braghis Florin" }, { "context": "#Skull-client (c) 2011 Braghis Florin (florin@libertv.ro). MIT Lice...
lib/skull-client.coffee
codeboost/Skull.io
1
#Skull-client (c) 2011 Braghis Florin (florin@libertv.ro). MIT License Skull = window.Skull = {} #return true if the model is an instance of Skull.Model/Collection Skull.isValidModel = (model) -> (typeof model == 'object') and (model instanceof Skull.Model or model instanceof Skull.Collection) #Called when the server has locked the model #isLocked -> model locked for editing #isLockedByMe -> I am the locker, I can edit it, everyone else can't serverLockModel = (model, lockinfo, silent) -> return unless lockinfo and model lockedByMe = lockinfo.sid is model.sid() model.isLockedByMe = lockedByMe model.isLocked = true model.lockinfo = lockinfo model.trigger 'locked', lockedByMe, lockinfo #Called when server has unlocked the model #Mark it as unlocked and trigger event serverUnlockModel = (model, lockinfo) -> return unless model model.isLocked = false model.isLockedByMe = false delete model.lockinfo model.trigger 'unlocked' #Backbone.Model and Backbone.Collection CRUD methods have slightly different semantics #These Helpers are an attempt to unify them #Helper which calls the appropirate methods on the Backbone.Model objects class ModelHelper constructor: (@model, @name) -> if not @model instanceof Skull.Model then throw 'Skull.Model expected' #received a 'create' notification create: (data) -> @model.collection?.create data #if there's no collection, create doesn't make sense on an existing model? #received an 'update' notification update: (data) -> @model.set data #received a 'delete' notification delete: -> @model.destroy() #received a lock notification lock: (lockinfo) -> serverLockModel @model, lockinfo #received an unlock notification unlock: (lockinfo) -> serverUnlockModel @model, lockinfo #received a broadcast broadcast: (data) -> @model.trigger 'server-broadcast', data #Helper which calls appropriate methods on the Backbone.Collection class CollectionHelper constructor: (@collection, @name) -> if not @collection instanceof Skull.Collection then throw 'Skull.Collection expected' create: (data) -> id = data[Backbone.Model::idAttribute] if id model = @collection.get id if model model.set data return @collection.add data update: (data) -> id = data[Backbone.Model::idAttribute] model = @collection.get id if id model?.set(data) delete: (data) -> id = data[Backbone.Model::idAttribute] model = @collection.get id if id @collection.remove model if model lock: (lockinfo) -> id = lockinfo[Backbone.Model::idAttribute] model = @collection.get id if id serverLockModel model, lockinfo if model unlock: (lockinfo) -> id = lockinfo[Backbone.Model::idAttribute] model = @collection.get id if id serverUnlockModel model, lockinfo if model broadcast: (data) -> @collection.trigger 'server-broadcast', data #The app can have multiple 'Namespaces', eg. Categories of models/collection #Here the 'namespace' capability of socket.io is used, which creates a 'virtual socket' for every namespace. #If on the server you created a namespace: # appNS = @skullServer.of '/app' #On the client you would use: #appNS = Skull.createClient sio.of('/app') #You can then add your models to that namespace: #appNS.addModel myModel, 'someName' #This implements a Namespace connection between the client and the server. class SkullClient constructor: (@socket, @clientName) -> @models = {} @sid = @socket.socket.sessionid #Add a handler for every event we receive on the socket. @addHandler eventName for eventName in ['create', 'update', 'delete', 'lock', 'unlock', 'broadcast'] #Add a handler to handle an event from the socket. #The event received has the following arguments: #eventName - create, update, delete, lock, unlock... #modelName - the model name (added by addModel model, name, eg. '/messages') #eventData - the data associated with the event addHandler: (eventName) -> @socket.on eventName, (modelName, data) => console.log 'Skull: Socket %s, %s', eventName, modelName model = @models[modelName] #model here is either a ModelHelper or CollectionHelper #Call one of the CRUD methods on the helper which in turn will forward the data to the Backbone.Model or Backbone.Collection model?[eventName]?(data) #Register a model with the server. Each client-side model must have a corresponding server-side model with the same name. #After adding the model, events triggered by the model will be broadcast to the same model of other clients addModel: (model, name) -> #guard against further exceptions if model isn't a Skull.Model/Collection if not Skull.isValidModel(model) then throw 'Skull.Model or Skull.Collection expected!' if model instanceof Skull.Collection then Helper = CollectionHelper else Helper = ModelHelper name ?= model.name() model._skull = this model.sync = @sync @models[name] = new Helper model, name model #The modified Backbone.Model.sync method #Sends the CRUD events to the server sync: (method, model, cbo) => name = model.name?() ? model.collection.name?() console.log '[Skull] %s: emit %s, %s', @clientName, method, name methodData = if method == 'read' then cbo.filter methodData ?= model.toJSON() @socket.emit method, name, methodData, (err, data) -> if err == null cbo.success(data) else cbo.error model #Create a Skull.Io client Skull.createClient = (socket) -> Skull.clients ?= {} Skull.clients[socket.name] = new SkullClient socket, socket.name #Preserve the original Backbone.Sync Skull.BackboneSync = Backbone.sync Backbone.sync = (method, model, cbo) -> #Try calling model.sync, then model.collection.sync and if both fail, call the original Backbone.Sync #This should allow us to have models which use a different sync method sync = (model.sync ? model.collection?.sync) ? Skull.BackboneSync sync?(method, model, cbo) #Extends the Backbone.Model with Skull-specific methods #which enable locking and broadcasting class Skull.Model extends Backbone.Model isLocked: false isLockedByMe: false name: -> @collection?.url ? (@url?() ? @url) setLockInfo: (lockinfo) -> serverLockModel this, lockinfo sid: -> @_skull?.sid ? @collection.sid() addEmbedded: (model, name) -> (@_skull ? @collection._skull).addModel model, name skullEmit: -> emitter = @_skull?.socket ? @collection._skull?.socket emitter?.emit.apply emitter, arguments tryLock: (action, callback) -> callback = action if typeof action == 'function' #if no callback specified, the model will emit 'locked' or 'lock-failed' cb = (err, lockinfo) => if err is null serverLockModel this, lockinfo else @trigger 'lock-failed', lockinfo callback? err, lockinfo lockinfo = {} lockinfo[Backbone.Model::idAttribute] = @id lockinfo['sid'] = @sid() lockinfo['action'] = action if @isLocked and not @isLockedByMe then return cb 'failed', @lockinfo if @isLockedByMe then return cb null, @lockinfo @skullEmit 'lock', @name(), lockinfo, cb unlock: (callback) -> lockinfo = {} lockinfo[Backbone.Model::idAttribute] = @id lockinfo['sid'] = @sid() if @isLocked and not @isLockedByMe then return callback? 'failed', lockinfo cb = (err, lockinfo) => serverUnlockModel this, lockinfo callback? err, lockinfo @skullEmit 'unlock', @name(), lockinfo, cb broadcast: (data, callback) -> callback ?= -> @skullEmit 'broadcast', @name(), data, callback emitCommand: (cmd, data, callback) -> callback ?= -> data ?= {} data._command = cmd @skullEmit 'clientCommand', @name(), data, callback class Skull.Collection extends Backbone.Collection model: Skull.Model name: -> @url sid: -> @_skull.sid addEmbedded: (model, name) -> @_skull.addModel model, name setLockInfo: (lockinfo) -> return unless lockinfo lockinfo = [lockinfo] unless _.isArray lockinfo for lock in lockinfo mdl = @get lock[Backbone.Model.idAttribute] serverLockModel mdl, lock if mdl broadcast: (data, callback) -> callback ?= -> @_skull.socket.emit 'broadcast', @name(), data, callback emitCommand: (cmd, data, callback) -> callback ?= -> data ?= {} data._command = cmd @_skull.socket.emit 'clientCommand', @name, data, callback
98907
#Skull-client (c) 2011 <NAME> (<EMAIL>). MIT License Skull = window.Skull = {} #return true if the model is an instance of Skull.Model/Collection Skull.isValidModel = (model) -> (typeof model == 'object') and (model instanceof Skull.Model or model instanceof Skull.Collection) #Called when the server has locked the model #isLocked -> model locked for editing #isLockedByMe -> I am the locker, I can edit it, everyone else can't serverLockModel = (model, lockinfo, silent) -> return unless lockinfo and model lockedByMe = lockinfo.sid is model.sid() model.isLockedByMe = lockedByMe model.isLocked = true model.lockinfo = lockinfo model.trigger 'locked', lockedByMe, lockinfo #Called when server has unlocked the model #Mark it as unlocked and trigger event serverUnlockModel = (model, lockinfo) -> return unless model model.isLocked = false model.isLockedByMe = false delete model.lockinfo model.trigger 'unlocked' #Backbone.Model and Backbone.Collection CRUD methods have slightly different semantics #These Helpers are an attempt to unify them #Helper which calls the appropirate methods on the Backbone.Model objects class ModelHelper constructor: (@model, @name) -> if not @model instanceof Skull.Model then throw 'Skull.Model expected' #received a 'create' notification create: (data) -> @model.collection?.create data #if there's no collection, create doesn't make sense on an existing model? #received an 'update' notification update: (data) -> @model.set data #received a 'delete' notification delete: -> @model.destroy() #received a lock notification lock: (lockinfo) -> serverLockModel @model, lockinfo #received an unlock notification unlock: (lockinfo) -> serverUnlockModel @model, lockinfo #received a broadcast broadcast: (data) -> @model.trigger 'server-broadcast', data #Helper which calls appropriate methods on the Backbone.Collection class CollectionHelper constructor: (@collection, @name) -> if not @collection instanceof Skull.Collection then throw 'Skull.Collection expected' create: (data) -> id = data[Backbone.Model::idAttribute] if id model = @collection.get id if model model.set data return @collection.add data update: (data) -> id = data[Backbone.Model::idAttribute] model = @collection.get id if id model?.set(data) delete: (data) -> id = data[Backbone.Model::idAttribute] model = @collection.get id if id @collection.remove model if model lock: (lockinfo) -> id = lockinfo[Backbone.Model::idAttribute] model = @collection.get id if id serverLockModel model, lockinfo if model unlock: (lockinfo) -> id = lockinfo[Backbone.Model::idAttribute] model = @collection.get id if id serverUnlockModel model, lockinfo if model broadcast: (data) -> @collection.trigger 'server-broadcast', data #The app can have multiple 'Namespaces', eg. Categories of models/collection #Here the 'namespace' capability of socket.io is used, which creates a 'virtual socket' for every namespace. #If on the server you created a namespace: # appNS = @skullServer.of '/app' #On the client you would use: #appNS = Skull.createClient sio.of('/app') #You can then add your models to that namespace: #appNS.addModel myModel, 'someName' #This implements a Namespace connection between the client and the server. class SkullClient constructor: (@socket, @clientName) -> @models = {} @sid = @socket.socket.sessionid #Add a handler for every event we receive on the socket. @addHandler eventName for eventName in ['create', 'update', 'delete', 'lock', 'unlock', 'broadcast'] #Add a handler to handle an event from the socket. #The event received has the following arguments: #eventName - create, update, delete, lock, unlock... #modelName - the model name (added by addModel model, name, eg. '/messages') #eventData - the data associated with the event addHandler: (eventName) -> @socket.on eventName, (modelName, data) => console.log 'Skull: Socket %s, %s', eventName, modelName model = @models[modelName] #model here is either a ModelHelper or CollectionHelper #Call one of the CRUD methods on the helper which in turn will forward the data to the Backbone.Model or Backbone.Collection model?[eventName]?(data) #Register a model with the server. Each client-side model must have a corresponding server-side model with the same name. #After adding the model, events triggered by the model will be broadcast to the same model of other clients addModel: (model, name) -> #guard against further exceptions if model isn't a Skull.Model/Collection if not Skull.isValidModel(model) then throw 'Skull.Model or Skull.Collection expected!' if model instanceof Skull.Collection then Helper = CollectionHelper else Helper = ModelHelper name ?= model.name() model._skull = this model.sync = @sync @models[name] = new Helper model, name model #The modified Backbone.Model.sync method #Sends the CRUD events to the server sync: (method, model, cbo) => name = model.name?() ? model.collection.name?() console.log '[Skull] %s: emit %s, %s', @clientName, method, name methodData = if method == 'read' then cbo.filter methodData ?= model.toJSON() @socket.emit method, name, methodData, (err, data) -> if err == null cbo.success(data) else cbo.error model #Create a Skull.Io client Skull.createClient = (socket) -> Skull.clients ?= {} Skull.clients[socket.name] = new SkullClient socket, socket.name #Preserve the original Backbone.Sync Skull.BackboneSync = Backbone.sync Backbone.sync = (method, model, cbo) -> #Try calling model.sync, then model.collection.sync and if both fail, call the original Backbone.Sync #This should allow us to have models which use a different sync method sync = (model.sync ? model.collection?.sync) ? Skull.BackboneSync sync?(method, model, cbo) #Extends the Backbone.Model with Skull-specific methods #which enable locking and broadcasting class Skull.Model extends Backbone.Model isLocked: false isLockedByMe: false name: -> @collection?.url ? (@url?() ? @url) setLockInfo: (lockinfo) -> serverLockModel this, lockinfo sid: -> @_skull?.sid ? @collection.sid() addEmbedded: (model, name) -> (@_skull ? @collection._skull).addModel model, name skullEmit: -> emitter = @_skull?.socket ? @collection._skull?.socket emitter?.emit.apply emitter, arguments tryLock: (action, callback) -> callback = action if typeof action == 'function' #if no callback specified, the model will emit 'locked' or 'lock-failed' cb = (err, lockinfo) => if err is null serverLockModel this, lockinfo else @trigger 'lock-failed', lockinfo callback? err, lockinfo lockinfo = {} lockinfo[Backbone.Model::idAttribute] = @id lockinfo['sid'] = @sid() lockinfo['action'] = action if @isLocked and not @isLockedByMe then return cb 'failed', @lockinfo if @isLockedByMe then return cb null, @lockinfo @skullEmit 'lock', @name(), lockinfo, cb unlock: (callback) -> lockinfo = {} lockinfo[Backbone.Model::idAttribute] = @id lockinfo['sid'] = @sid() if @isLocked and not @isLockedByMe then return callback? 'failed', lockinfo cb = (err, lockinfo) => serverUnlockModel this, lockinfo callback? err, lockinfo @skullEmit 'unlock', @name(), lockinfo, cb broadcast: (data, callback) -> callback ?= -> @skullEmit 'broadcast', @name(), data, callback emitCommand: (cmd, data, callback) -> callback ?= -> data ?= {} data._command = cmd @skullEmit 'clientCommand', @name(), data, callback class Skull.Collection extends Backbone.Collection model: Skull.Model name: -> @url sid: -> @_skull.sid addEmbedded: (model, name) -> @_skull.addModel model, name setLockInfo: (lockinfo) -> return unless lockinfo lockinfo = [lockinfo] unless _.isArray lockinfo for lock in lockinfo mdl = @get lock[Backbone.Model.idAttribute] serverLockModel mdl, lock if mdl broadcast: (data, callback) -> callback ?= -> @_skull.socket.emit 'broadcast', @name(), data, callback emitCommand: (cmd, data, callback) -> callback ?= -> data ?= {} data._command = cmd @_skull.socket.emit 'clientCommand', @name, data, callback
true
#Skull-client (c) 2011 PI:NAME:<NAME>END_PI (PI:EMAIL:<EMAIL>END_PI). MIT License Skull = window.Skull = {} #return true if the model is an instance of Skull.Model/Collection Skull.isValidModel = (model) -> (typeof model == 'object') and (model instanceof Skull.Model or model instanceof Skull.Collection) #Called when the server has locked the model #isLocked -> model locked for editing #isLockedByMe -> I am the locker, I can edit it, everyone else can't serverLockModel = (model, lockinfo, silent) -> return unless lockinfo and model lockedByMe = lockinfo.sid is model.sid() model.isLockedByMe = lockedByMe model.isLocked = true model.lockinfo = lockinfo model.trigger 'locked', lockedByMe, lockinfo #Called when server has unlocked the model #Mark it as unlocked and trigger event serverUnlockModel = (model, lockinfo) -> return unless model model.isLocked = false model.isLockedByMe = false delete model.lockinfo model.trigger 'unlocked' #Backbone.Model and Backbone.Collection CRUD methods have slightly different semantics #These Helpers are an attempt to unify them #Helper which calls the appropirate methods on the Backbone.Model objects class ModelHelper constructor: (@model, @name) -> if not @model instanceof Skull.Model then throw 'Skull.Model expected' #received a 'create' notification create: (data) -> @model.collection?.create data #if there's no collection, create doesn't make sense on an existing model? #received an 'update' notification update: (data) -> @model.set data #received a 'delete' notification delete: -> @model.destroy() #received a lock notification lock: (lockinfo) -> serverLockModel @model, lockinfo #received an unlock notification unlock: (lockinfo) -> serverUnlockModel @model, lockinfo #received a broadcast broadcast: (data) -> @model.trigger 'server-broadcast', data #Helper which calls appropriate methods on the Backbone.Collection class CollectionHelper constructor: (@collection, @name) -> if not @collection instanceof Skull.Collection then throw 'Skull.Collection expected' create: (data) -> id = data[Backbone.Model::idAttribute] if id model = @collection.get id if model model.set data return @collection.add data update: (data) -> id = data[Backbone.Model::idAttribute] model = @collection.get id if id model?.set(data) delete: (data) -> id = data[Backbone.Model::idAttribute] model = @collection.get id if id @collection.remove model if model lock: (lockinfo) -> id = lockinfo[Backbone.Model::idAttribute] model = @collection.get id if id serverLockModel model, lockinfo if model unlock: (lockinfo) -> id = lockinfo[Backbone.Model::idAttribute] model = @collection.get id if id serverUnlockModel model, lockinfo if model broadcast: (data) -> @collection.trigger 'server-broadcast', data #The app can have multiple 'Namespaces', eg. Categories of models/collection #Here the 'namespace' capability of socket.io is used, which creates a 'virtual socket' for every namespace. #If on the server you created a namespace: # appNS = @skullServer.of '/app' #On the client you would use: #appNS = Skull.createClient sio.of('/app') #You can then add your models to that namespace: #appNS.addModel myModel, 'someName' #This implements a Namespace connection between the client and the server. class SkullClient constructor: (@socket, @clientName) -> @models = {} @sid = @socket.socket.sessionid #Add a handler for every event we receive on the socket. @addHandler eventName for eventName in ['create', 'update', 'delete', 'lock', 'unlock', 'broadcast'] #Add a handler to handle an event from the socket. #The event received has the following arguments: #eventName - create, update, delete, lock, unlock... #modelName - the model name (added by addModel model, name, eg. '/messages') #eventData - the data associated with the event addHandler: (eventName) -> @socket.on eventName, (modelName, data) => console.log 'Skull: Socket %s, %s', eventName, modelName model = @models[modelName] #model here is either a ModelHelper or CollectionHelper #Call one of the CRUD methods on the helper which in turn will forward the data to the Backbone.Model or Backbone.Collection model?[eventName]?(data) #Register a model with the server. Each client-side model must have a corresponding server-side model with the same name. #After adding the model, events triggered by the model will be broadcast to the same model of other clients addModel: (model, name) -> #guard against further exceptions if model isn't a Skull.Model/Collection if not Skull.isValidModel(model) then throw 'Skull.Model or Skull.Collection expected!' if model instanceof Skull.Collection then Helper = CollectionHelper else Helper = ModelHelper name ?= model.name() model._skull = this model.sync = @sync @models[name] = new Helper model, name model #The modified Backbone.Model.sync method #Sends the CRUD events to the server sync: (method, model, cbo) => name = model.name?() ? model.collection.name?() console.log '[Skull] %s: emit %s, %s', @clientName, method, name methodData = if method == 'read' then cbo.filter methodData ?= model.toJSON() @socket.emit method, name, methodData, (err, data) -> if err == null cbo.success(data) else cbo.error model #Create a Skull.Io client Skull.createClient = (socket) -> Skull.clients ?= {} Skull.clients[socket.name] = new SkullClient socket, socket.name #Preserve the original Backbone.Sync Skull.BackboneSync = Backbone.sync Backbone.sync = (method, model, cbo) -> #Try calling model.sync, then model.collection.sync and if both fail, call the original Backbone.Sync #This should allow us to have models which use a different sync method sync = (model.sync ? model.collection?.sync) ? Skull.BackboneSync sync?(method, model, cbo) #Extends the Backbone.Model with Skull-specific methods #which enable locking and broadcasting class Skull.Model extends Backbone.Model isLocked: false isLockedByMe: false name: -> @collection?.url ? (@url?() ? @url) setLockInfo: (lockinfo) -> serverLockModel this, lockinfo sid: -> @_skull?.sid ? @collection.sid() addEmbedded: (model, name) -> (@_skull ? @collection._skull).addModel model, name skullEmit: -> emitter = @_skull?.socket ? @collection._skull?.socket emitter?.emit.apply emitter, arguments tryLock: (action, callback) -> callback = action if typeof action == 'function' #if no callback specified, the model will emit 'locked' or 'lock-failed' cb = (err, lockinfo) => if err is null serverLockModel this, lockinfo else @trigger 'lock-failed', lockinfo callback? err, lockinfo lockinfo = {} lockinfo[Backbone.Model::idAttribute] = @id lockinfo['sid'] = @sid() lockinfo['action'] = action if @isLocked and not @isLockedByMe then return cb 'failed', @lockinfo if @isLockedByMe then return cb null, @lockinfo @skullEmit 'lock', @name(), lockinfo, cb unlock: (callback) -> lockinfo = {} lockinfo[Backbone.Model::idAttribute] = @id lockinfo['sid'] = @sid() if @isLocked and not @isLockedByMe then return callback? 'failed', lockinfo cb = (err, lockinfo) => serverUnlockModel this, lockinfo callback? err, lockinfo @skullEmit 'unlock', @name(), lockinfo, cb broadcast: (data, callback) -> callback ?= -> @skullEmit 'broadcast', @name(), data, callback emitCommand: (cmd, data, callback) -> callback ?= -> data ?= {} data._command = cmd @skullEmit 'clientCommand', @name(), data, callback class Skull.Collection extends Backbone.Collection model: Skull.Model name: -> @url sid: -> @_skull.sid addEmbedded: (model, name) -> @_skull.addModel model, name setLockInfo: (lockinfo) -> return unless lockinfo lockinfo = [lockinfo] unless _.isArray lockinfo for lock in lockinfo mdl = @get lock[Backbone.Model.idAttribute] serverLockModel mdl, lock if mdl broadcast: (data, callback) -> callback ?= -> @_skull.socket.emit 'broadcast', @name(), data, callback emitCommand: (cmd, data, callback) -> callback ?= -> data ?= {} data._command = cmd @_skull.socket.emit 'clientCommand', @name, data, callback
[ { "context": "le.step 'Foobar'\n\n child._name.should.equal 'Foobar'\n\n it 'takes optional details', ->\n profi", "end": 2549, "score": 0.9715752601623535, "start": 2543, "tag": "NAME", "value": "Foobar" }, { "context": "ar', (child) ->\n child._name.should.equal...
test/unit/profiler.coffee
couchand/tinyprofiler
0
# profiler tests require '../helper' tinyprofiler = require '../../src' describe 'Profiler', -> describe '_baseline', -> it 'is set in the constructor', -> start = process.hrtime() profile = new tinyprofiler.Profiler() stop = process.hrtime() profile._baseline.should.be.at.least start profile._baseline.should.be.at.most stop describe '_start', -> it 'is the time from parent_start to _baseline', -> parent_start = process.hrtime() i * j for i in [0..100] for j in [0..100] start = process.hrtime parent_start profile = new tinyprofiler.Profiler parent_start stop = process.hrtime parent_start profile._start.should.be.at.least start profile._start.should.be.at.most stop it 'defaults to own baseline', -> profile = new tinyprofiler.Profiler() stop = process.hrtime profile._baseline profile._start.should.be.at.most stop describe 'end', -> it 'sets _length', -> profile = new tinyprofiler.Profiler() start = process.hrtime profile._baseline profile.end() stop = process.hrtime profile._baseline profile._length.should.be.at.least start profile._length.should.be.at.most stop describe 'isDone', -> it 'returns false while profiling', -> profile = new tinyprofiler.Profiler() profile.isDone().should.be.false it 'returns true after profiling complete', -> profile = new tinyprofiler.Profiler() profile.end() profile.isDone().should.be.true describe 'step', -> it 'returns a Profiler', -> parent = new tinyprofiler.Profiler() child = parent.step() child.should.be.an.instanceOf tinyprofiler.Profiler it 'returns a child of itself', -> parent = new tinyprofiler.Profiler() start = process.hrtime parent._baseline child = parent.step() stop = process.hrtime parent._baseline parent.steps().should.contain child child._start.should.be.at.least start child._start.should.be.at.most stop it 'calls back with the child', -> parent = new tinyprofiler.Profiler() start = process.hrtime parent._baseline parent.step (child) -> stop = process.hrtime parent._baseline parent.steps().should.contain child child._start.should.be.at.least start child._start.should.be.at.most stop it 'takes a name', -> profile = new tinyprofiler.Profiler() child = profile.step 'Foobar' child._name.should.equal 'Foobar' it 'takes optional details', -> profile = new tinyprofiler.Profiler() child = profile.step 'Foobar', 'Baz' child._details.should.equal 'Baz' it 'takes optional callback', -> profile = new tinyprofiler.Profiler() profile.step 'Foobar', (child) -> child._name.should.equal 'Foobar' describe 'toJSON', -> it 'returns the tinyprofiler data structure', -> profile = new tinyprofiler.Profiler() step = profile.step 'Foobar' step.end() profile.end() json = profile.toJSON() json.should.have.property 'start' json.should.have.property 'length' json.should.have.property 'steps' json.steps.length.should.equal 1 json.steps[0].should.have.property 'name' json.steps[0].should.have.property 'start' json.steps[0].should.have.property 'length' describe 'events', -> it 'emits "step" on step', -> hasEmitted = no emittedStep = no profile = new tinyprofiler.Profiler() profile.once "step", (step) -> hasEmitted = yes emittedStep = step profile.step 'something', (step) -> hasEmitted.should.be.true emittedStep.should.equal step hasEmitted.should.be.true it 'emits "end" on end', -> hasEmitted = no profile = new tinyprofiler.Profiler() profile.once "end", -> hasEmitted = yes profile.step 'something', -> hasEmitted.should.be.false hasEmitted.should.be.false profile.end() hasEmitted.should.be.true
92998
# profiler tests require '../helper' tinyprofiler = require '../../src' describe 'Profiler', -> describe '_baseline', -> it 'is set in the constructor', -> start = process.hrtime() profile = new tinyprofiler.Profiler() stop = process.hrtime() profile._baseline.should.be.at.least start profile._baseline.should.be.at.most stop describe '_start', -> it 'is the time from parent_start to _baseline', -> parent_start = process.hrtime() i * j for i in [0..100] for j in [0..100] start = process.hrtime parent_start profile = new tinyprofiler.Profiler parent_start stop = process.hrtime parent_start profile._start.should.be.at.least start profile._start.should.be.at.most stop it 'defaults to own baseline', -> profile = new tinyprofiler.Profiler() stop = process.hrtime profile._baseline profile._start.should.be.at.most stop describe 'end', -> it 'sets _length', -> profile = new tinyprofiler.Profiler() start = process.hrtime profile._baseline profile.end() stop = process.hrtime profile._baseline profile._length.should.be.at.least start profile._length.should.be.at.most stop describe 'isDone', -> it 'returns false while profiling', -> profile = new tinyprofiler.Profiler() profile.isDone().should.be.false it 'returns true after profiling complete', -> profile = new tinyprofiler.Profiler() profile.end() profile.isDone().should.be.true describe 'step', -> it 'returns a Profiler', -> parent = new tinyprofiler.Profiler() child = parent.step() child.should.be.an.instanceOf tinyprofiler.Profiler it 'returns a child of itself', -> parent = new tinyprofiler.Profiler() start = process.hrtime parent._baseline child = parent.step() stop = process.hrtime parent._baseline parent.steps().should.contain child child._start.should.be.at.least start child._start.should.be.at.most stop it 'calls back with the child', -> parent = new tinyprofiler.Profiler() start = process.hrtime parent._baseline parent.step (child) -> stop = process.hrtime parent._baseline parent.steps().should.contain child child._start.should.be.at.least start child._start.should.be.at.most stop it 'takes a name', -> profile = new tinyprofiler.Profiler() child = profile.step 'Foobar' child._name.should.equal '<NAME>' it 'takes optional details', -> profile = new tinyprofiler.Profiler() child = profile.step 'Foobar', 'Baz' child._details.should.equal 'Baz' it 'takes optional callback', -> profile = new tinyprofiler.Profiler() profile.step 'Foobar', (child) -> child._name.should.equal '<NAME>' describe 'toJSON', -> it 'returns the tinyprofiler data structure', -> profile = new tinyprofiler.Profiler() step = profile.step 'Foobar' step.end() profile.end() json = profile.toJSON() json.should.have.property 'start' json.should.have.property 'length' json.should.have.property 'steps' json.steps.length.should.equal 1 json.steps[0].should.have.property 'name' json.steps[0].should.have.property 'start' json.steps[0].should.have.property 'length' describe 'events', -> it 'emits "step" on step', -> hasEmitted = no emittedStep = no profile = new tinyprofiler.Profiler() profile.once "step", (step) -> hasEmitted = yes emittedStep = step profile.step 'something', (step) -> hasEmitted.should.be.true emittedStep.should.equal step hasEmitted.should.be.true it 'emits "end" on end', -> hasEmitted = no profile = new tinyprofiler.Profiler() profile.once "end", -> hasEmitted = yes profile.step 'something', -> hasEmitted.should.be.false hasEmitted.should.be.false profile.end() hasEmitted.should.be.true
true
# profiler tests require '../helper' tinyprofiler = require '../../src' describe 'Profiler', -> describe '_baseline', -> it 'is set in the constructor', -> start = process.hrtime() profile = new tinyprofiler.Profiler() stop = process.hrtime() profile._baseline.should.be.at.least start profile._baseline.should.be.at.most stop describe '_start', -> it 'is the time from parent_start to _baseline', -> parent_start = process.hrtime() i * j for i in [0..100] for j in [0..100] start = process.hrtime parent_start profile = new tinyprofiler.Profiler parent_start stop = process.hrtime parent_start profile._start.should.be.at.least start profile._start.should.be.at.most stop it 'defaults to own baseline', -> profile = new tinyprofiler.Profiler() stop = process.hrtime profile._baseline profile._start.should.be.at.most stop describe 'end', -> it 'sets _length', -> profile = new tinyprofiler.Profiler() start = process.hrtime profile._baseline profile.end() stop = process.hrtime profile._baseline profile._length.should.be.at.least start profile._length.should.be.at.most stop describe 'isDone', -> it 'returns false while profiling', -> profile = new tinyprofiler.Profiler() profile.isDone().should.be.false it 'returns true after profiling complete', -> profile = new tinyprofiler.Profiler() profile.end() profile.isDone().should.be.true describe 'step', -> it 'returns a Profiler', -> parent = new tinyprofiler.Profiler() child = parent.step() child.should.be.an.instanceOf tinyprofiler.Profiler it 'returns a child of itself', -> parent = new tinyprofiler.Profiler() start = process.hrtime parent._baseline child = parent.step() stop = process.hrtime parent._baseline parent.steps().should.contain child child._start.should.be.at.least start child._start.should.be.at.most stop it 'calls back with the child', -> parent = new tinyprofiler.Profiler() start = process.hrtime parent._baseline parent.step (child) -> stop = process.hrtime parent._baseline parent.steps().should.contain child child._start.should.be.at.least start child._start.should.be.at.most stop it 'takes a name', -> profile = new tinyprofiler.Profiler() child = profile.step 'Foobar' child._name.should.equal 'PI:NAME:<NAME>END_PI' it 'takes optional details', -> profile = new tinyprofiler.Profiler() child = profile.step 'Foobar', 'Baz' child._details.should.equal 'Baz' it 'takes optional callback', -> profile = new tinyprofiler.Profiler() profile.step 'Foobar', (child) -> child._name.should.equal 'PI:NAME:<NAME>END_PI' describe 'toJSON', -> it 'returns the tinyprofiler data structure', -> profile = new tinyprofiler.Profiler() step = profile.step 'Foobar' step.end() profile.end() json = profile.toJSON() json.should.have.property 'start' json.should.have.property 'length' json.should.have.property 'steps' json.steps.length.should.equal 1 json.steps[0].should.have.property 'name' json.steps[0].should.have.property 'start' json.steps[0].should.have.property 'length' describe 'events', -> it 'emits "step" on step', -> hasEmitted = no emittedStep = no profile = new tinyprofiler.Profiler() profile.once "step", (step) -> hasEmitted = yes emittedStep = step profile.step 'something', (step) -> hasEmitted.should.be.true emittedStep.should.equal step hasEmitted.should.be.true it 'emits "end" on end', -> hasEmitted = no profile = new tinyprofiler.Profiler() profile.once "end", -> hasEmitted = yes profile.step 'something', -> hasEmitted.should.be.false hasEmitted.should.be.false profile.end() hasEmitted.should.be.true
[ { "context": "###\n * bag\n * getbag.io\n *\n * Copyright (c) 2015 Ryan Gaus\n * Licensed under the MIT license.\n###\n\nmongoose ", "end": 58, "score": 0.9998534917831421, "start": 49, "tag": "NAME", "value": "Ryan Gaus" } ]
src/models/bag_model.coffee
1egoman/bag-node
0
### * bag * getbag.io * * Copyright (c) 2015 Ryan Gaus * Licensed under the MIT license. ### mongoose = require 'mongoose' bag = mongoose.Schema user: String contents: Array contentsLists: Array bag.set 'versionKey', false module.exports = mongoose.model 'Bag', bag
127138
### * bag * getbag.io * * Copyright (c) 2015 <NAME> * Licensed under the MIT license. ### mongoose = require 'mongoose' bag = mongoose.Schema user: String contents: Array contentsLists: Array bag.set 'versionKey', false module.exports = mongoose.model 'Bag', bag
true
### * bag * getbag.io * * Copyright (c) 2015 PI:NAME:<NAME>END_PI * Licensed under the MIT license. ### mongoose = require 'mongoose' bag = mongoose.Schema user: String contents: Array contentsLists: Array bag.set 'versionKey', false module.exports = mongoose.model 'Bag', bag
[ { "context": "###\nCopyright 2016 Balena\n\nLicensed under the Apache License, Version 2.0 (", "end": 25, "score": 0.9967074394226074, "start": 19, "tag": "NAME", "value": "Balena" } ]
lib/init.coffee
resin-io-modules/resin-device-init
3
### Copyright 2016 Balena Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ### ###* # @module init ### _ = require('lodash') Promise = require('bluebird') operations = require('resin-device-operations') resinSemver = require('balena-semver') utils = require('./utils') network = require('./network') exports.getImageManifest = utils.getImageManifest exports.getImageOsVersion = utils.getImageOsVersion ###* # @summary Configure an image with an application # @function # @public # # @description # This function injects `config.json` and network settings into the image. # # @param {String} image - path to image # @param {Object} manifest - device type manifest # @param {Object} config - a fully populated config object # @param {Object} [options] - configuration options # # @returns {Promise<EventEmitter>} configuration event emitter # # @example # init.configure('my/rpi.img', manifest, config).then (configuration) -> # # configuration.on('stdout', process.stdout.write) # configuration.on('stderr', process.stderr.write) # # configuration.on 'state', (state) -> # console.log(state.operation.command) # console.log(state.percentage) # # configuration.on 'error', (error) -> # throw error # # configuration.on 'end', -> # console.log('Configuration finished') ### exports.configure = (image, manifest, config, options = {}) -> Promise.try -> # We only know how to find /etc/os-release on specific types of OS image. In future, we'd like to be able # to do this for any image, but for now we'll just treat others as unknowable (which means below we'll # configure the network to work for _either_ OS version. if manifest.yocto?.image == 'resin-image' and _.includes(['resinos-img', 'resin-sdcard'], manifest.yocto?.fstype) utils.getImageOsVersion(image, manifest) .then (osVersion) -> configuration = manifest.configuration majorVersion = resinSemver.major(osVersion) configPathDefinition = utils.convertFilePathDefinition(configuration.config) utils.writeConfigJSON(image, config, configPathDefinition) .then -> # Configure for OS2 if it is OS2, or if we're just not sure if not majorVersion? || majorVersion == 2 network.configureOS2Network(image, manifest, options) .then -> # Configure for OS1 if it is OS1, or if we're just not sure if not majorVersion? || majorVersion == 1 network.configureOS1Network(image, manifest, options) .then -> return operations.execute(image, configuration.operations, options) ###* # @summary Initialize an image # @function # @public # # @param {String} image - path to image # @param {Object} manifest - device type manifest # @param {Object} options - configuration options # # @returns {Promise<EventEmitter>} initialization event emitter # # @example # init.initialize('my/rpi.img', manifest, network: 'ethernet').then (configuration) -> # # configuration.on('stdout', process.stdout.write) # configuration.on('stderr', process.stderr.write) # # configuration.on 'state', (state) -> # console.log(state.operation.command) # console.log(state.percentage) # # configuration.on 'burn', (state) -> # console.log(state) # # configuration.on 'error', (error) -> # throw error # # configuration.on 'end', -> # console.log('Configuration finished') ### exports.initialize = (image, manifest, options) -> return operations.execute(image, manifest.initialization.operations, options)
136762
### Copyright 2016 <NAME> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ### ###* # @module init ### _ = require('lodash') Promise = require('bluebird') operations = require('resin-device-operations') resinSemver = require('balena-semver') utils = require('./utils') network = require('./network') exports.getImageManifest = utils.getImageManifest exports.getImageOsVersion = utils.getImageOsVersion ###* # @summary Configure an image with an application # @function # @public # # @description # This function injects `config.json` and network settings into the image. # # @param {String} image - path to image # @param {Object} manifest - device type manifest # @param {Object} config - a fully populated config object # @param {Object} [options] - configuration options # # @returns {Promise<EventEmitter>} configuration event emitter # # @example # init.configure('my/rpi.img', manifest, config).then (configuration) -> # # configuration.on('stdout', process.stdout.write) # configuration.on('stderr', process.stderr.write) # # configuration.on 'state', (state) -> # console.log(state.operation.command) # console.log(state.percentage) # # configuration.on 'error', (error) -> # throw error # # configuration.on 'end', -> # console.log('Configuration finished') ### exports.configure = (image, manifest, config, options = {}) -> Promise.try -> # We only know how to find /etc/os-release on specific types of OS image. In future, we'd like to be able # to do this for any image, but for now we'll just treat others as unknowable (which means below we'll # configure the network to work for _either_ OS version. if manifest.yocto?.image == 'resin-image' and _.includes(['resinos-img', 'resin-sdcard'], manifest.yocto?.fstype) utils.getImageOsVersion(image, manifest) .then (osVersion) -> configuration = manifest.configuration majorVersion = resinSemver.major(osVersion) configPathDefinition = utils.convertFilePathDefinition(configuration.config) utils.writeConfigJSON(image, config, configPathDefinition) .then -> # Configure for OS2 if it is OS2, or if we're just not sure if not majorVersion? || majorVersion == 2 network.configureOS2Network(image, manifest, options) .then -> # Configure for OS1 if it is OS1, or if we're just not sure if not majorVersion? || majorVersion == 1 network.configureOS1Network(image, manifest, options) .then -> return operations.execute(image, configuration.operations, options) ###* # @summary Initialize an image # @function # @public # # @param {String} image - path to image # @param {Object} manifest - device type manifest # @param {Object} options - configuration options # # @returns {Promise<EventEmitter>} initialization event emitter # # @example # init.initialize('my/rpi.img', manifest, network: 'ethernet').then (configuration) -> # # configuration.on('stdout', process.stdout.write) # configuration.on('stderr', process.stderr.write) # # configuration.on 'state', (state) -> # console.log(state.operation.command) # console.log(state.percentage) # # configuration.on 'burn', (state) -> # console.log(state) # # configuration.on 'error', (error) -> # throw error # # configuration.on 'end', -> # console.log('Configuration finished') ### exports.initialize = (image, manifest, options) -> return operations.execute(image, manifest.initialization.operations, options)
true
### Copyright 2016 PI:NAME:<NAME>END_PI Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ### ###* # @module init ### _ = require('lodash') Promise = require('bluebird') operations = require('resin-device-operations') resinSemver = require('balena-semver') utils = require('./utils') network = require('./network') exports.getImageManifest = utils.getImageManifest exports.getImageOsVersion = utils.getImageOsVersion ###* # @summary Configure an image with an application # @function # @public # # @description # This function injects `config.json` and network settings into the image. # # @param {String} image - path to image # @param {Object} manifest - device type manifest # @param {Object} config - a fully populated config object # @param {Object} [options] - configuration options # # @returns {Promise<EventEmitter>} configuration event emitter # # @example # init.configure('my/rpi.img', manifest, config).then (configuration) -> # # configuration.on('stdout', process.stdout.write) # configuration.on('stderr', process.stderr.write) # # configuration.on 'state', (state) -> # console.log(state.operation.command) # console.log(state.percentage) # # configuration.on 'error', (error) -> # throw error # # configuration.on 'end', -> # console.log('Configuration finished') ### exports.configure = (image, manifest, config, options = {}) -> Promise.try -> # We only know how to find /etc/os-release on specific types of OS image. In future, we'd like to be able # to do this for any image, but for now we'll just treat others as unknowable (which means below we'll # configure the network to work for _either_ OS version. if manifest.yocto?.image == 'resin-image' and _.includes(['resinos-img', 'resin-sdcard'], manifest.yocto?.fstype) utils.getImageOsVersion(image, manifest) .then (osVersion) -> configuration = manifest.configuration majorVersion = resinSemver.major(osVersion) configPathDefinition = utils.convertFilePathDefinition(configuration.config) utils.writeConfigJSON(image, config, configPathDefinition) .then -> # Configure for OS2 if it is OS2, or if we're just not sure if not majorVersion? || majorVersion == 2 network.configureOS2Network(image, manifest, options) .then -> # Configure for OS1 if it is OS1, or if we're just not sure if not majorVersion? || majorVersion == 1 network.configureOS1Network(image, manifest, options) .then -> return operations.execute(image, configuration.operations, options) ###* # @summary Initialize an image # @function # @public # # @param {String} image - path to image # @param {Object} manifest - device type manifest # @param {Object} options - configuration options # # @returns {Promise<EventEmitter>} initialization event emitter # # @example # init.initialize('my/rpi.img', manifest, network: 'ethernet').then (configuration) -> # # configuration.on('stdout', process.stdout.write) # configuration.on('stderr', process.stderr.write) # # configuration.on 'state', (state) -> # console.log(state.operation.command) # console.log(state.percentage) # # configuration.on 'burn', (state) -> # console.log(state) # # configuration.on 'error', (error) -> # throw error # # configuration.on 'end', -> # console.log('Configuration finished') ### exports.initialize = (image, manifest, options) -> return operations.execute(image, manifest.initialization.operations, options)
[ { "context": "n'\n }\n ]\n layout:\n name: 'cose'\n nodeRepulsion: 10000000\n nodeDime", "end": 3116, "score": 0.7708072662353516, "start": 3112, "tag": "NAME", "value": "cose" } ]
app/assets/javascripts/tags.coffee
eyafjall/mampf
0
# Place all the behaviors and hooks related to the matching controller here. # All this logic will automatically be available in application.js. # You can use CoffeeScript in this file: http://coffeescript.org/ $(document).on 'turbolinks:load', -> # fill courses selector in admin tag search with user's edited courses $('#tags-edited-courses').on 'click', -> inputCourses.selectize.setValue(JSON.parse(this.dataset.courses)) return # fill courses selector in admin tag search with all courses $('#tags-all-courses').on 'click', -> inputCourses.selectize.setValue(JSON.parse(this.dataset.courses)) return # fill courses selector in admin tag with no courses at all $('#tags-no-courses').on 'click', -> inputCourses.selectize.setValue() return # issue a warning if tag form has changed $('[id^="tag-form-"]').on 'change', -> id = this.dataset.id $('#tag-basics-warning-' + id).show() $('#new-tag-button').remove() $('#new-tag-defunct').show() return # reload page if tag editing is cancelled $('[id^="tag-basics-cancel-"]').on 'click', -> location.reload(true) return # prepare action box when related tags are edited $('#selectRelatedTags').on 'click', -> $('#selectRelatedTagsForm').show() $('#tagActionTypeRelated').show() $(this).hide() $('#selectTagRealizations').hide() $('#tagActionHeader').hide() return # prepare action box when related tags are edited $('#selectTagRealizations').on 'click', -> $('#selectTagRealizationsForm').show() $('#tagActionTypeRealizations').show() $(this).hide() $('#selectRelatedTags').hide() $('#tagActionHeader').hide() return $('#cancelSelectRelatedTags').on 'click', -> $('#selectRelatedTagsForm').hide() $('#tagActionTypeRelated').hide() $('#tagActionHeader').show() $('#selectRelatedTags').show() $('#selectTagRealizations').show() return $('#cancelSelectRealizations').on 'click', -> $('#selectTagRealizationsForm').hide() $('#tagActionTypeRealizations').hide() $('#tagActionHeader').show() $('#selectTagRealizations').show() $('#selectRelatedTags').show() return # container for cytoscape view $cyContainer = $('#cy') if $cyContainer.length > 0 && $cyContainer.data('type') == 'tag' cy = cytoscape( container: $cyContainer elements: $cyContainer.data('elements') style: [ { selector: 'node' style: 'background-color': 'data(background)' 'label': 'data(label)' 'color': 'data(color)' } { selector: 'edge' style: 'width': 3 'line-color': '#ccc' } { selector: '.hovering' style: 'font-size': '2em' 'background-color': 'green' 'color': 'green' } { selector: '.selected' style: 'font-size': '2em' 'background-color': 'green' 'color': 'green' } ] layout: name: 'cose' nodeRepulsion: 10000000 nodeDimensionsIncludeLabels: false) cy.on 'mouseover', 'node', (evt) -> node = evt.target node.addClass('hovering') return cy.on 'mouseout', 'node', (evt) -> node = evt.target node.removeClass('hovering') return cy.on 'tap', 'node', (evt) -> node = evt.target action = $cyContainer.data('action') if action == 'edit' window.location.href = Routes.edit_tag_path(node.id()) else window.location.href = Routes.tag_path(node.id(), locale: $cyContainer.data('locale')) return # mouseenter over related tag -> colorize cytoscape node $('[id^="related-tag_"]').on 'mouseenter', -> tagId = $(this).data('id') cy.$id(tagId).addClass('selected') return # mouseleave over related tag -> restore original color of cytoscape node $('[id^="related-tag_"]').on 'mouseleave', -> tagId = $(this).data('id') cy.$id(tagId).removeClass('selected') return # trigger modal for new tag $(document).on 'click', '#new-tag-button', -> $.ajax Routes.tag_modal_path(), type: 'GET' dataType: 'script' data: { related_tag: this.dataset.tag course: this.dataset.course section: this.dataset.section medium: this.dataset.medium from: this.dataset.from } return $(document).on 'change', '#tag_identified_tag_id', -> if $(this).val() $('#identified_tag_titles').show() $('#submit_identified_tag').show() $.ajax Routes.render_tag_title_path(), type: 'GET' dataType: 'script' data: { tag_id: this.dataset.id identified_tag_id: $(this).val() } return else $('#identified_tag_titles').hide() $('#submit_identified_tag').hide() $('#identified_tag_titles select').empty() return $(document).on 'click', '.cancel-section-association', -> location.reload(true) return $erdbeereTags = $('#erdbeereTags') if $erdbeereTags.length > 0 $.ajax Routes.find_erdbeere_tags_path(), type: 'GET' dataType: 'script' data: { sort: $erdbeereTags.data('sort') id: $erdbeereTags.data('id') } return $erdbeereRealizations = $('.erdbeere-realization') $erdbeereRealizations.each -> $.ajax Routes.display_erdbeere_info_path(), type: 'GET' dataType: 'script' data: { sort: $(this).data('sort') id: $(this).data('id') } return $selectTagRealizations = $('#selectTagRealizationsForm') if $selectTagRealizations.length > 0 $.ajax Routes.fill_realizations_select_path(), type: 'GET' dataType: 'script' data: { id: $selectTagRealizations.data('id') } return return # clean up before turbolinks caches $(document).on 'turbolinks:before-cache', -> $(document).off 'click', '#new-tag-button' $(document).off 'change', '#tag_identified_tag_id' $(document).off 'click', '.cancel-section-association' $('#cy').empty() return
121874
# Place all the behaviors and hooks related to the matching controller here. # All this logic will automatically be available in application.js. # You can use CoffeeScript in this file: http://coffeescript.org/ $(document).on 'turbolinks:load', -> # fill courses selector in admin tag search with user's edited courses $('#tags-edited-courses').on 'click', -> inputCourses.selectize.setValue(JSON.parse(this.dataset.courses)) return # fill courses selector in admin tag search with all courses $('#tags-all-courses').on 'click', -> inputCourses.selectize.setValue(JSON.parse(this.dataset.courses)) return # fill courses selector in admin tag with no courses at all $('#tags-no-courses').on 'click', -> inputCourses.selectize.setValue() return # issue a warning if tag form has changed $('[id^="tag-form-"]').on 'change', -> id = this.dataset.id $('#tag-basics-warning-' + id).show() $('#new-tag-button').remove() $('#new-tag-defunct').show() return # reload page if tag editing is cancelled $('[id^="tag-basics-cancel-"]').on 'click', -> location.reload(true) return # prepare action box when related tags are edited $('#selectRelatedTags').on 'click', -> $('#selectRelatedTagsForm').show() $('#tagActionTypeRelated').show() $(this).hide() $('#selectTagRealizations').hide() $('#tagActionHeader').hide() return # prepare action box when related tags are edited $('#selectTagRealizations').on 'click', -> $('#selectTagRealizationsForm').show() $('#tagActionTypeRealizations').show() $(this).hide() $('#selectRelatedTags').hide() $('#tagActionHeader').hide() return $('#cancelSelectRelatedTags').on 'click', -> $('#selectRelatedTagsForm').hide() $('#tagActionTypeRelated').hide() $('#tagActionHeader').show() $('#selectRelatedTags').show() $('#selectTagRealizations').show() return $('#cancelSelectRealizations').on 'click', -> $('#selectTagRealizationsForm').hide() $('#tagActionTypeRealizations').hide() $('#tagActionHeader').show() $('#selectTagRealizations').show() $('#selectRelatedTags').show() return # container for cytoscape view $cyContainer = $('#cy') if $cyContainer.length > 0 && $cyContainer.data('type') == 'tag' cy = cytoscape( container: $cyContainer elements: $cyContainer.data('elements') style: [ { selector: 'node' style: 'background-color': 'data(background)' 'label': 'data(label)' 'color': 'data(color)' } { selector: 'edge' style: 'width': 3 'line-color': '#ccc' } { selector: '.hovering' style: 'font-size': '2em' 'background-color': 'green' 'color': 'green' } { selector: '.selected' style: 'font-size': '2em' 'background-color': 'green' 'color': 'green' } ] layout: name: '<NAME>' nodeRepulsion: 10000000 nodeDimensionsIncludeLabels: false) cy.on 'mouseover', 'node', (evt) -> node = evt.target node.addClass('hovering') return cy.on 'mouseout', 'node', (evt) -> node = evt.target node.removeClass('hovering') return cy.on 'tap', 'node', (evt) -> node = evt.target action = $cyContainer.data('action') if action == 'edit' window.location.href = Routes.edit_tag_path(node.id()) else window.location.href = Routes.tag_path(node.id(), locale: $cyContainer.data('locale')) return # mouseenter over related tag -> colorize cytoscape node $('[id^="related-tag_"]').on 'mouseenter', -> tagId = $(this).data('id') cy.$id(tagId).addClass('selected') return # mouseleave over related tag -> restore original color of cytoscape node $('[id^="related-tag_"]').on 'mouseleave', -> tagId = $(this).data('id') cy.$id(tagId).removeClass('selected') return # trigger modal for new tag $(document).on 'click', '#new-tag-button', -> $.ajax Routes.tag_modal_path(), type: 'GET' dataType: 'script' data: { related_tag: this.dataset.tag course: this.dataset.course section: this.dataset.section medium: this.dataset.medium from: this.dataset.from } return $(document).on 'change', '#tag_identified_tag_id', -> if $(this).val() $('#identified_tag_titles').show() $('#submit_identified_tag').show() $.ajax Routes.render_tag_title_path(), type: 'GET' dataType: 'script' data: { tag_id: this.dataset.id identified_tag_id: $(this).val() } return else $('#identified_tag_titles').hide() $('#submit_identified_tag').hide() $('#identified_tag_titles select').empty() return $(document).on 'click', '.cancel-section-association', -> location.reload(true) return $erdbeereTags = $('#erdbeereTags') if $erdbeereTags.length > 0 $.ajax Routes.find_erdbeere_tags_path(), type: 'GET' dataType: 'script' data: { sort: $erdbeereTags.data('sort') id: $erdbeereTags.data('id') } return $erdbeereRealizations = $('.erdbeere-realization') $erdbeereRealizations.each -> $.ajax Routes.display_erdbeere_info_path(), type: 'GET' dataType: 'script' data: { sort: $(this).data('sort') id: $(this).data('id') } return $selectTagRealizations = $('#selectTagRealizationsForm') if $selectTagRealizations.length > 0 $.ajax Routes.fill_realizations_select_path(), type: 'GET' dataType: 'script' data: { id: $selectTagRealizations.data('id') } return return # clean up before turbolinks caches $(document).on 'turbolinks:before-cache', -> $(document).off 'click', '#new-tag-button' $(document).off 'change', '#tag_identified_tag_id' $(document).off 'click', '.cancel-section-association' $('#cy').empty() return
true
# Place all the behaviors and hooks related to the matching controller here. # All this logic will automatically be available in application.js. # You can use CoffeeScript in this file: http://coffeescript.org/ $(document).on 'turbolinks:load', -> # fill courses selector in admin tag search with user's edited courses $('#tags-edited-courses').on 'click', -> inputCourses.selectize.setValue(JSON.parse(this.dataset.courses)) return # fill courses selector in admin tag search with all courses $('#tags-all-courses').on 'click', -> inputCourses.selectize.setValue(JSON.parse(this.dataset.courses)) return # fill courses selector in admin tag with no courses at all $('#tags-no-courses').on 'click', -> inputCourses.selectize.setValue() return # issue a warning if tag form has changed $('[id^="tag-form-"]').on 'change', -> id = this.dataset.id $('#tag-basics-warning-' + id).show() $('#new-tag-button').remove() $('#new-tag-defunct').show() return # reload page if tag editing is cancelled $('[id^="tag-basics-cancel-"]').on 'click', -> location.reload(true) return # prepare action box when related tags are edited $('#selectRelatedTags').on 'click', -> $('#selectRelatedTagsForm').show() $('#tagActionTypeRelated').show() $(this).hide() $('#selectTagRealizations').hide() $('#tagActionHeader').hide() return # prepare action box when related tags are edited $('#selectTagRealizations').on 'click', -> $('#selectTagRealizationsForm').show() $('#tagActionTypeRealizations').show() $(this).hide() $('#selectRelatedTags').hide() $('#tagActionHeader').hide() return $('#cancelSelectRelatedTags').on 'click', -> $('#selectRelatedTagsForm').hide() $('#tagActionTypeRelated').hide() $('#tagActionHeader').show() $('#selectRelatedTags').show() $('#selectTagRealizations').show() return $('#cancelSelectRealizations').on 'click', -> $('#selectTagRealizationsForm').hide() $('#tagActionTypeRealizations').hide() $('#tagActionHeader').show() $('#selectTagRealizations').show() $('#selectRelatedTags').show() return # container for cytoscape view $cyContainer = $('#cy') if $cyContainer.length > 0 && $cyContainer.data('type') == 'tag' cy = cytoscape( container: $cyContainer elements: $cyContainer.data('elements') style: [ { selector: 'node' style: 'background-color': 'data(background)' 'label': 'data(label)' 'color': 'data(color)' } { selector: 'edge' style: 'width': 3 'line-color': '#ccc' } { selector: '.hovering' style: 'font-size': '2em' 'background-color': 'green' 'color': 'green' } { selector: '.selected' style: 'font-size': '2em' 'background-color': 'green' 'color': 'green' } ] layout: name: 'PI:NAME:<NAME>END_PI' nodeRepulsion: 10000000 nodeDimensionsIncludeLabels: false) cy.on 'mouseover', 'node', (evt) -> node = evt.target node.addClass('hovering') return cy.on 'mouseout', 'node', (evt) -> node = evt.target node.removeClass('hovering') return cy.on 'tap', 'node', (evt) -> node = evt.target action = $cyContainer.data('action') if action == 'edit' window.location.href = Routes.edit_tag_path(node.id()) else window.location.href = Routes.tag_path(node.id(), locale: $cyContainer.data('locale')) return # mouseenter over related tag -> colorize cytoscape node $('[id^="related-tag_"]').on 'mouseenter', -> tagId = $(this).data('id') cy.$id(tagId).addClass('selected') return # mouseleave over related tag -> restore original color of cytoscape node $('[id^="related-tag_"]').on 'mouseleave', -> tagId = $(this).data('id') cy.$id(tagId).removeClass('selected') return # trigger modal for new tag $(document).on 'click', '#new-tag-button', -> $.ajax Routes.tag_modal_path(), type: 'GET' dataType: 'script' data: { related_tag: this.dataset.tag course: this.dataset.course section: this.dataset.section medium: this.dataset.medium from: this.dataset.from } return $(document).on 'change', '#tag_identified_tag_id', -> if $(this).val() $('#identified_tag_titles').show() $('#submit_identified_tag').show() $.ajax Routes.render_tag_title_path(), type: 'GET' dataType: 'script' data: { tag_id: this.dataset.id identified_tag_id: $(this).val() } return else $('#identified_tag_titles').hide() $('#submit_identified_tag').hide() $('#identified_tag_titles select').empty() return $(document).on 'click', '.cancel-section-association', -> location.reload(true) return $erdbeereTags = $('#erdbeereTags') if $erdbeereTags.length > 0 $.ajax Routes.find_erdbeere_tags_path(), type: 'GET' dataType: 'script' data: { sort: $erdbeereTags.data('sort') id: $erdbeereTags.data('id') } return $erdbeereRealizations = $('.erdbeere-realization') $erdbeereRealizations.each -> $.ajax Routes.display_erdbeere_info_path(), type: 'GET' dataType: 'script' data: { sort: $(this).data('sort') id: $(this).data('id') } return $selectTagRealizations = $('#selectTagRealizationsForm') if $selectTagRealizations.length > 0 $.ajax Routes.fill_realizations_select_path(), type: 'GET' dataType: 'script' data: { id: $selectTagRealizations.data('id') } return return # clean up before turbolinks caches $(document).on 'turbolinks:before-cache', -> $(document).off 'click', '#new-tag-button' $(document).off 'change', '#tag_identified_tag_id' $(document).off 'click', '.cancel-section-association' $('#cy').empty() return
[ { "context": "###\n *\n * jQuery Modals by Gary Hepting\n * https://github.com/ghepting/modal \n *\n * B", "end": 40, "score": 0.9998860359191895, "start": 28, "tag": "NAME", "value": "Gary Hepting" }, { "context": "ry Modals by Gary Hepting\n * https://github.com/ghepting/mod...
js/plugins/coffee/jquery.modals.coffee
storagebot/groundwork
1
### * * jQuery Modals by Gary Hepting * https://github.com/ghepting/modal * * Based on Avgrund by Hakim El Hattab <3 * ### (($) -> # setup iframe modal if $('div#iframeModal').length < 1 $('body').append('<div class="iframe modal" id="iframeModal"><iframe marginheight="0" marginwidth="0" frameborder="0"></iframe></div>') $('div#iframeModal').prepend('<i class="close icon-remove"></i>').prepend('<i class="fullscreen icon-resize-full"></i>') $('a.modal').each -> $(this).attr('data-url',$(this).attr('href')) $(this).attr('href','#iframeModal') # bind external modal links to iframe modal $('a.modal').on "click", (e) -> $('div#iframeModal iframe').replaceWith('<iframe marginheight="0" marginwidth="0" frameborder="0" width="100%" height="100%" src="'+$(this).attr('data-url')+'"></iframe>') e.preventDefault() false elems = [] $.fn.modal = -> @each -> $(this).not('#iframeModal').wrapInner('<div class="modal-content"></div>') $(this).prepend('<i class="close icon-remove"></i>').prepend('<i class="fullscreen icon-resize-full"></i>').appendTo('body') # bind each modal link to a modal $('[href=#'+$(this).attr('id')+']').on "click", (e) -> modals.open($(this).attr('href')) e.preventDefault() return false # close button $('div.modal .close').on "click", -> modals.close() # fullscreen button $('div.modal .fullscreen').on "click", -> modals.fullscreen($(this).parent('div.modal')) modals = (-> # ready state $('html').addClass('modal-ready') # create overlay if $("#overlay").length < 1 $('body').append('<div id="overlay"></div>') # bind overlay to close $('#overlay, div.modal .close').bind "click", (e) -> close() open = (elem) -> # bind esc key $(window).bind "keydown", (e) -> keyCode = (if (e.which) then e.which else e.keyCode) if keyCode is 27 close() $(elem).addClass("active") unless $(elem).hasClass('iframe') $(elem).css width: 'auto', height: 'auto' $(elem).css height: $(elem).outerHeight(), $(elem).css top: '50%', left: '50%', 'margin-top': ($(elem).outerHeight() / -2) + 'px', 'margin-left': ($(elem).outerWidth() / -2) + 'px' setTimeout -> $('html').addClass("modal-active") , 0 setTimeout -> $('html').removeClass('modal-ready') , 400 return close = -> modal = $('div.modal.active') $(window).unbind "keydown" $('html').removeClass("modal-active").addClass('modal-ready') if modal.hasClass('iframe') $('div#iframeModal iframe').replaceWith('<iframe marginheight="0" marginwidth="0" frameborder="0"></iframe>') modal.css width: '80%', height: '80%' else modal.css width: 'auto', height: 'auto' modal.css top: '10%', left: '10%', 'max-width': '80%', 'max-height': '80%', 'margin-top': 0, 'margin-left': 0 modal.removeClass("active").removeClass("fullscreen") $('i.fullscreen', modal).removeClass('icon-resize-small').addClass('icon-resize-full') return fullscreen = (elem) -> if $('div.modal.active').hasClass('fullscreen') $('div.modal i.fullscreen').removeClass('icon-resize-small').addClass('icon-resize-full') if $('div.modal.active').hasClass('iframe') $('div.modal.active').css width: '80%', height: '80%' else $('div.modal.active').css width: 'auto', height: 'auto' $('div.modal.active').css height: $('div.modal.active').outerHeight() $('div.modal.active').removeClass('fullscreen').css 'max-width': '80%', 'max-height': '80%' $('div.modal.active').delay(100).css top: '50%', left: '50%', 'margin-top': ($('div.modal.active').outerHeight() / -2) + 'px', 'margin-left': ($('div.modal.active').outerWidth() / -2) + 'px' else $('div.modal i.fullscreen').addClass('icon-resize-small').removeClass('icon-resize-full') $('div.modal.active').addClass('fullscreen').css top: 0, left: 0, 'margin-top': 0, 'margin-left': 0, width: '100%', height: '100%', 'max-width': '100%', 'max-height': '100%' return open: open close: close fullscreen: fullscreen )() $(window).resize -> $('div.modal.active').each -> unless $(this).hasClass('fullscreen') $(this).removeClass('active').css( top: '50%', left: '50%', 'margin-top': ($(this).outerHeight() / -2) + 'px', 'margin-left': ($(this).outerWidth() / -2) + 'px' ).addClass('active') unless $(this).hasClass('iframe') $(this).css height: 'auto' $(this).css height: $(this).outerHeight() ) jQuery
175876
### * * jQuery Modals by <NAME> * https://github.com/ghepting/modal * * Based on Avgrund by <NAME> <3 * ### (($) -> # setup iframe modal if $('div#iframeModal').length < 1 $('body').append('<div class="iframe modal" id="iframeModal"><iframe marginheight="0" marginwidth="0" frameborder="0"></iframe></div>') $('div#iframeModal').prepend('<i class="close icon-remove"></i>').prepend('<i class="fullscreen icon-resize-full"></i>') $('a.modal').each -> $(this).attr('data-url',$(this).attr('href')) $(this).attr('href','#iframeModal') # bind external modal links to iframe modal $('a.modal').on "click", (e) -> $('div#iframeModal iframe').replaceWith('<iframe marginheight="0" marginwidth="0" frameborder="0" width="100%" height="100%" src="'+$(this).attr('data-url')+'"></iframe>') e.preventDefault() false elems = [] $.fn.modal = -> @each -> $(this).not('#iframeModal').wrapInner('<div class="modal-content"></div>') $(this).prepend('<i class="close icon-remove"></i>').prepend('<i class="fullscreen icon-resize-full"></i>').appendTo('body') # bind each modal link to a modal $('[href=#'+$(this).attr('id')+']').on "click", (e) -> modals.open($(this).attr('href')) e.preventDefault() return false # close button $('div.modal .close').on "click", -> modals.close() # fullscreen button $('div.modal .fullscreen').on "click", -> modals.fullscreen($(this).parent('div.modal')) modals = (-> # ready state $('html').addClass('modal-ready') # create overlay if $("#overlay").length < 1 $('body').append('<div id="overlay"></div>') # bind overlay to close $('#overlay, div.modal .close').bind "click", (e) -> close() open = (elem) -> # bind esc key $(window).bind "keydown", (e) -> keyCode = (if (e.which) then e.which else e.keyCode) if keyCode is 27 close() $(elem).addClass("active") unless $(elem).hasClass('iframe') $(elem).css width: 'auto', height: 'auto' $(elem).css height: $(elem).outerHeight(), $(elem).css top: '50%', left: '50%', 'margin-top': ($(elem).outerHeight() / -2) + 'px', 'margin-left': ($(elem).outerWidth() / -2) + 'px' setTimeout -> $('html').addClass("modal-active") , 0 setTimeout -> $('html').removeClass('modal-ready') , 400 return close = -> modal = $('div.modal.active') $(window).unbind "keydown" $('html').removeClass("modal-active").addClass('modal-ready') if modal.hasClass('iframe') $('div#iframeModal iframe').replaceWith('<iframe marginheight="0" marginwidth="0" frameborder="0"></iframe>') modal.css width: '80%', height: '80%' else modal.css width: 'auto', height: 'auto' modal.css top: '10%', left: '10%', 'max-width': '80%', 'max-height': '80%', 'margin-top': 0, 'margin-left': 0 modal.removeClass("active").removeClass("fullscreen") $('i.fullscreen', modal).removeClass('icon-resize-small').addClass('icon-resize-full') return fullscreen = (elem) -> if $('div.modal.active').hasClass('fullscreen') $('div.modal i.fullscreen').removeClass('icon-resize-small').addClass('icon-resize-full') if $('div.modal.active').hasClass('iframe') $('div.modal.active').css width: '80%', height: '80%' else $('div.modal.active').css width: 'auto', height: 'auto' $('div.modal.active').css height: $('div.modal.active').outerHeight() $('div.modal.active').removeClass('fullscreen').css 'max-width': '80%', 'max-height': '80%' $('div.modal.active').delay(100).css top: '50%', left: '50%', 'margin-top': ($('div.modal.active').outerHeight() / -2) + 'px', 'margin-left': ($('div.modal.active').outerWidth() / -2) + 'px' else $('div.modal i.fullscreen').addClass('icon-resize-small').removeClass('icon-resize-full') $('div.modal.active').addClass('fullscreen').css top: 0, left: 0, 'margin-top': 0, 'margin-left': 0, width: '100%', height: '100%', 'max-width': '100%', 'max-height': '100%' return open: open close: close fullscreen: fullscreen )() $(window).resize -> $('div.modal.active').each -> unless $(this).hasClass('fullscreen') $(this).removeClass('active').css( top: '50%', left: '50%', 'margin-top': ($(this).outerHeight() / -2) + 'px', 'margin-left': ($(this).outerWidth() / -2) + 'px' ).addClass('active') unless $(this).hasClass('iframe') $(this).css height: 'auto' $(this).css height: $(this).outerHeight() ) jQuery
true
### * * jQuery Modals by PI:NAME:<NAME>END_PI * https://github.com/ghepting/modal * * Based on Avgrund by PI:NAME:<NAME>END_PI <3 * ### (($) -> # setup iframe modal if $('div#iframeModal').length < 1 $('body').append('<div class="iframe modal" id="iframeModal"><iframe marginheight="0" marginwidth="0" frameborder="0"></iframe></div>') $('div#iframeModal').prepend('<i class="close icon-remove"></i>').prepend('<i class="fullscreen icon-resize-full"></i>') $('a.modal').each -> $(this).attr('data-url',$(this).attr('href')) $(this).attr('href','#iframeModal') # bind external modal links to iframe modal $('a.modal').on "click", (e) -> $('div#iframeModal iframe').replaceWith('<iframe marginheight="0" marginwidth="0" frameborder="0" width="100%" height="100%" src="'+$(this).attr('data-url')+'"></iframe>') e.preventDefault() false elems = [] $.fn.modal = -> @each -> $(this).not('#iframeModal').wrapInner('<div class="modal-content"></div>') $(this).prepend('<i class="close icon-remove"></i>').prepend('<i class="fullscreen icon-resize-full"></i>').appendTo('body') # bind each modal link to a modal $('[href=#'+$(this).attr('id')+']').on "click", (e) -> modals.open($(this).attr('href')) e.preventDefault() return false # close button $('div.modal .close').on "click", -> modals.close() # fullscreen button $('div.modal .fullscreen').on "click", -> modals.fullscreen($(this).parent('div.modal')) modals = (-> # ready state $('html').addClass('modal-ready') # create overlay if $("#overlay").length < 1 $('body').append('<div id="overlay"></div>') # bind overlay to close $('#overlay, div.modal .close').bind "click", (e) -> close() open = (elem) -> # bind esc key $(window).bind "keydown", (e) -> keyCode = (if (e.which) then e.which else e.keyCode) if keyCode is 27 close() $(elem).addClass("active") unless $(elem).hasClass('iframe') $(elem).css width: 'auto', height: 'auto' $(elem).css height: $(elem).outerHeight(), $(elem).css top: '50%', left: '50%', 'margin-top': ($(elem).outerHeight() / -2) + 'px', 'margin-left': ($(elem).outerWidth() / -2) + 'px' setTimeout -> $('html').addClass("modal-active") , 0 setTimeout -> $('html').removeClass('modal-ready') , 400 return close = -> modal = $('div.modal.active') $(window).unbind "keydown" $('html').removeClass("modal-active").addClass('modal-ready') if modal.hasClass('iframe') $('div#iframeModal iframe').replaceWith('<iframe marginheight="0" marginwidth="0" frameborder="0"></iframe>') modal.css width: '80%', height: '80%' else modal.css width: 'auto', height: 'auto' modal.css top: '10%', left: '10%', 'max-width': '80%', 'max-height': '80%', 'margin-top': 0, 'margin-left': 0 modal.removeClass("active").removeClass("fullscreen") $('i.fullscreen', modal).removeClass('icon-resize-small').addClass('icon-resize-full') return fullscreen = (elem) -> if $('div.modal.active').hasClass('fullscreen') $('div.modal i.fullscreen').removeClass('icon-resize-small').addClass('icon-resize-full') if $('div.modal.active').hasClass('iframe') $('div.modal.active').css width: '80%', height: '80%' else $('div.modal.active').css width: 'auto', height: 'auto' $('div.modal.active').css height: $('div.modal.active').outerHeight() $('div.modal.active').removeClass('fullscreen').css 'max-width': '80%', 'max-height': '80%' $('div.modal.active').delay(100).css top: '50%', left: '50%', 'margin-top': ($('div.modal.active').outerHeight() / -2) + 'px', 'margin-left': ($('div.modal.active').outerWidth() / -2) + 'px' else $('div.modal i.fullscreen').addClass('icon-resize-small').removeClass('icon-resize-full') $('div.modal.active').addClass('fullscreen').css top: 0, left: 0, 'margin-top': 0, 'margin-left': 0, width: '100%', height: '100%', 'max-width': '100%', 'max-height': '100%' return open: open close: close fullscreen: fullscreen )() $(window).resize -> $('div.modal.active').each -> unless $(this).hasClass('fullscreen') $(this).removeClass('active').css( top: '50%', left: '50%', 'margin-top': ($(this).outerHeight() / -2) + 'px', 'margin-left': ($(this).outerWidth() / -2) + 'px' ).addClass('active') unless $(this).hasClass('iframe') $(this).css height: 'auto' $(this).css height: $(this).outerHeight() ) jQuery
[ { "context": "room = new Classroom({\n name: 'Test Classroom'\n members: [ joe.get", "end": 1938, "score": 0.5148141384124756, "start": 1934, "tag": "NAME", "value": "Test" } ]
spec/server/functional/level.spec.coffee
JurianLock/codecombat
1
require '../common' describe 'Level', -> level = name: 'King\'s Peak 3' description: 'Climb a mountain.' permissions: simplePermissions scripts: [] thangs: [] documentation: {specificArticles: [], generalArticles: []} urlLevel = '/db/level' it 'clears things first', (done) -> clearModels [Level], (err) -> expect(err).toBeNull() done() it 'can make a Level.', (done) -> loginJoe -> request.post {uri: getURL(urlLevel), json: level}, (err, res, body) -> expect(res.statusCode).toBe(200) done() it 'get schema', (done) -> request.get {uri: getURL(urlLevel+'/schema')}, (err, res, body) -> expect(res.statusCode).toBe(200) body = JSON.parse(body) expect(body.type).toBeDefined() done() describe 'GET /db/level/<id>/session', -> describe 'when level is a course level', -> levelID = null it 'sets up a course instance', (done) -> clearModels [Campaign, Course, CourseInstance, Level, User], (err) -> loginAdmin (admin) -> url = getURL('/db/level') body = name: 'Course Level' type: 'course' permissions: simplePermissions request.post {uri: url, json: body }, (err, res, level) -> levelID = level._id url = getURL('/db/campaign') body = name: 'Course Campaign' levels: {} body.levels[level.original] = { 'original': level.original } request.post { uri: url, json: body }, (err, res, campaign) -> course = new Course({ name: 'Test Course' campaignID: ObjectId(campaign._id) }) course.save (err) -> expect(err).toBeNull() loginJoe (joe) -> classroom = new Classroom({ name: 'Test Classroom' members: [ joe.get('_id') ] aceConfig: { language: 'javascript' } }) classroom.save (err, classroom) -> expect(err).toBeNull() courseInstance = new CourseInstance({ name: 'Course Instance' members: [ joe.get('_id') ] courseID: ObjectId(course.id) classroomID: ObjectId(classroom.id) }) courseInstance.save (err) -> expect(err).toBeNull() done() it 'creates a new session if the user is in a course with that level', (done) -> loginJoe (joe) -> url = getURL("/db/level/#{levelID}/session") request.get { uri: url, json: true }, (err, res, body) -> expect(res.statusCode).toBe(200) expect(body.codeLanguage).toBe('javascript') done() it 'does not create a new session if the user is not in a course with that level', (done) -> loginSam (sam) -> url = getURL("/db/level/#{levelID}/session") request.get { uri: url }, (err, res, body) -> expect(res.statusCode).toBe(402) done()
77006
require '../common' describe 'Level', -> level = name: 'King\'s Peak 3' description: 'Climb a mountain.' permissions: simplePermissions scripts: [] thangs: [] documentation: {specificArticles: [], generalArticles: []} urlLevel = '/db/level' it 'clears things first', (done) -> clearModels [Level], (err) -> expect(err).toBeNull() done() it 'can make a Level.', (done) -> loginJoe -> request.post {uri: getURL(urlLevel), json: level}, (err, res, body) -> expect(res.statusCode).toBe(200) done() it 'get schema', (done) -> request.get {uri: getURL(urlLevel+'/schema')}, (err, res, body) -> expect(res.statusCode).toBe(200) body = JSON.parse(body) expect(body.type).toBeDefined() done() describe 'GET /db/level/<id>/session', -> describe 'when level is a course level', -> levelID = null it 'sets up a course instance', (done) -> clearModels [Campaign, Course, CourseInstance, Level, User], (err) -> loginAdmin (admin) -> url = getURL('/db/level') body = name: 'Course Level' type: 'course' permissions: simplePermissions request.post {uri: url, json: body }, (err, res, level) -> levelID = level._id url = getURL('/db/campaign') body = name: 'Course Campaign' levels: {} body.levels[level.original] = { 'original': level.original } request.post { uri: url, json: body }, (err, res, campaign) -> course = new Course({ name: 'Test Course' campaignID: ObjectId(campaign._id) }) course.save (err) -> expect(err).toBeNull() loginJoe (joe) -> classroom = new Classroom({ name: '<NAME> Classroom' members: [ joe.get('_id') ] aceConfig: { language: 'javascript' } }) classroom.save (err, classroom) -> expect(err).toBeNull() courseInstance = new CourseInstance({ name: 'Course Instance' members: [ joe.get('_id') ] courseID: ObjectId(course.id) classroomID: ObjectId(classroom.id) }) courseInstance.save (err) -> expect(err).toBeNull() done() it 'creates a new session if the user is in a course with that level', (done) -> loginJoe (joe) -> url = getURL("/db/level/#{levelID}/session") request.get { uri: url, json: true }, (err, res, body) -> expect(res.statusCode).toBe(200) expect(body.codeLanguage).toBe('javascript') done() it 'does not create a new session if the user is not in a course with that level', (done) -> loginSam (sam) -> url = getURL("/db/level/#{levelID}/session") request.get { uri: url }, (err, res, body) -> expect(res.statusCode).toBe(402) done()
true
require '../common' describe 'Level', -> level = name: 'King\'s Peak 3' description: 'Climb a mountain.' permissions: simplePermissions scripts: [] thangs: [] documentation: {specificArticles: [], generalArticles: []} urlLevel = '/db/level' it 'clears things first', (done) -> clearModels [Level], (err) -> expect(err).toBeNull() done() it 'can make a Level.', (done) -> loginJoe -> request.post {uri: getURL(urlLevel), json: level}, (err, res, body) -> expect(res.statusCode).toBe(200) done() it 'get schema', (done) -> request.get {uri: getURL(urlLevel+'/schema')}, (err, res, body) -> expect(res.statusCode).toBe(200) body = JSON.parse(body) expect(body.type).toBeDefined() done() describe 'GET /db/level/<id>/session', -> describe 'when level is a course level', -> levelID = null it 'sets up a course instance', (done) -> clearModels [Campaign, Course, CourseInstance, Level, User], (err) -> loginAdmin (admin) -> url = getURL('/db/level') body = name: 'Course Level' type: 'course' permissions: simplePermissions request.post {uri: url, json: body }, (err, res, level) -> levelID = level._id url = getURL('/db/campaign') body = name: 'Course Campaign' levels: {} body.levels[level.original] = { 'original': level.original } request.post { uri: url, json: body }, (err, res, campaign) -> course = new Course({ name: 'Test Course' campaignID: ObjectId(campaign._id) }) course.save (err) -> expect(err).toBeNull() loginJoe (joe) -> classroom = new Classroom({ name: 'PI:NAME:<NAME>END_PI Classroom' members: [ joe.get('_id') ] aceConfig: { language: 'javascript' } }) classroom.save (err, classroom) -> expect(err).toBeNull() courseInstance = new CourseInstance({ name: 'Course Instance' members: [ joe.get('_id') ] courseID: ObjectId(course.id) classroomID: ObjectId(classroom.id) }) courseInstance.save (err) -> expect(err).toBeNull() done() it 'creates a new session if the user is in a course with that level', (done) -> loginJoe (joe) -> url = getURL("/db/level/#{levelID}/session") request.get { uri: url, json: true }, (err, res, body) -> expect(res.statusCode).toBe(200) expect(body.codeLanguage).toBe('javascript') done() it 'does not create a new session if the user is not in a course with that level', (done) -> loginSam (sam) -> url = getURL("/db/level/#{levelID}/session") request.get { uri: url }, (err, res, body) -> expect(res.statusCode).toBe(402) done()
[ { "context": "js\n\n PXL.js\n Benjamin Blundell - ben@pxljs.com\n http://pxljs.", "end": 197, "score": 0.9998767971992493, "start": 180, "tag": "NAME", "value": "Benjamin Blundell" }, { "context": " PXL.js\n ...
test/geometryTest.coffee
OniDaito/pxljs
1
### ABOUT .__ _________ __| | \____ \ \/ / | | |_> > <| |__ | __/__/\_ \____/ |__| \/ js PXL.js Benjamin Blundell - ben@pxljs.com http://pxljs.com This software is released under the MIT Licence. See LICENCE.txt for details Tree Tests http://net.tutsplus.com/tutorials/javascript-ajax/better-coffeescript-testing-with-mocha/ http://visionmedia.github.com/mocha/ ### chai = require 'chai' chai.should() PXLMath = require '../src/math/math' PXLCamera = require '../src/camera/camera' PXLPrimitive = require '../src/geometry/primitive' PXLPlane = require '../src/geometry/plane' describe 'Geometry tests: ', -> hex = new PXLPlane.PlaneHexagonFlat(21,9) it 'Hex should not be undefined', -> hex.should.not.equal undefined it 'Hex Point interators should match', -> indexer = hex.getTrisIndexer() [a,b,c] = indexer(0) [a,b,c] = indexer(1) [a,b,c] = indexer(2)
33391
### ABOUT .__ _________ __| | \____ \ \/ / | | |_> > <| |__ | __/__/\_ \____/ |__| \/ js PXL.js <NAME> - <EMAIL> http://pxljs.com This software is released under the MIT Licence. See LICENCE.txt for details Tree Tests http://net.tutsplus.com/tutorials/javascript-ajax/better-coffeescript-testing-with-mocha/ http://visionmedia.github.com/mocha/ ### chai = require 'chai' chai.should() PXLMath = require '../src/math/math' PXLCamera = require '../src/camera/camera' PXLPrimitive = require '../src/geometry/primitive' PXLPlane = require '../src/geometry/plane' describe 'Geometry tests: ', -> hex = new PXLPlane.PlaneHexagonFlat(21,9) it 'Hex should not be undefined', -> hex.should.not.equal undefined it 'Hex Point interators should match', -> indexer = hex.getTrisIndexer() [a,b,c] = indexer(0) [a,b,c] = indexer(1) [a,b,c] = indexer(2)
true
### ABOUT .__ _________ __| | \____ \ \/ / | | |_> > <| |__ | __/__/\_ \____/ |__| \/ js PXL.js PI:NAME:<NAME>END_PI - PI:EMAIL:<EMAIL>END_PI http://pxljs.com This software is released under the MIT Licence. See LICENCE.txt for details Tree Tests http://net.tutsplus.com/tutorials/javascript-ajax/better-coffeescript-testing-with-mocha/ http://visionmedia.github.com/mocha/ ### chai = require 'chai' chai.should() PXLMath = require '../src/math/math' PXLCamera = require '../src/camera/camera' PXLPrimitive = require '../src/geometry/primitive' PXLPlane = require '../src/geometry/plane' describe 'Geometry tests: ', -> hex = new PXLPlane.PlaneHexagonFlat(21,9) it 'Hex should not be undefined', -> hex.should.not.equal undefined it 'Hex Point interators should match', -> indexer = hex.getTrisIndexer() [a,b,c] = indexer(0) [a,b,c] = indexer(1) [a,b,c] = indexer(2)
[ { "context": "\n \n $('.task-owner').editable\n name: 'owner_id'\n resource: 'task'\n type: 'select'\n \n #", "end": 820, "score": 0.6392789483070374, "start": 818, "tag": "NAME", "value": "id" } ]
app/assets/javascripts/tasks.coffee
Trevonte/network
24
$(document).on 'turbolinks:load', -> # initialize and link datepickers $ -> $('#startdatepicker').datetimepicker useCurrent: false format: 'ddd MMMM DD YYYY' $('#enddatepicker').datetimepicker useCurrent: false format: 'ddd MMMM DD YYYY' $('#task-datetimepicker').datetimepicker format: 'ddd MMMM DD YYYY' $('#startdatepicker').on 'dp.change', (e) -> $('#enddatepicker').data('DateTimePicker').minDate e.date return $('#enddatepicker').on 'dp.change', (e) -> $('#startdatepicker').data('DateTimePicker').maxDate e.date return return #In-place editing $.fn.editable.defaults.mode = 'inline' $('.task-name').editable name: 'name' resource: 'task' type: 'text' $('.task-owner').editable name: 'owner_id' resource: 'task' type: 'select' # In-place editing that requires popups instead of inline $('.task-name-pop').editable mode: 'popup' name: 'name' resource: 'task' type: 'text' $('.date-form').hide() $('.cancel-update').on 'click', -> $(this).parents('.date-form').hide() $(this).parents('.date-form').siblings('.date-view').show() #allow date textbox to come up $('.date-view').on 'click', -> $(this).hide() $(this).siblings().show() $('.update-due-date').on 'click', -> task_id = $(this).parent().parent().data('task-id') date_input = $(this).parent().parent().children('.date-input').val() new_date = new Date(date_input + " CST") new_date.setHours(23,59,59,999) $.ajax({ type: "PATCH", url: "/tasks/#{task_id}/" dataType: "json" data: { task: { due_date: new_date } } context: this success:(data) -> formatted_date = moment(data.due_date).format('ddd, MMMM D YYYY') $(this).parents('.date-form').hide() $(this).parents('.date-form').siblings('.date-view').text(formatted_date).show() error:(data) -> alert 'error updating due date' }) $.fn.attachTaskButtonListener = -> this.on 'click', (e) -> $(this).parent().siblings('.js-task-fields').toggle() $(this).html (i, html) -> if html == 'Add task' then 'Hide form' else 'Add task' $.fn.attachSubtaskButtonListener = -> this.on 'click', (e) -> $(this).parent().find('.js-subtask-fields').toggle() $(this).html (i, html) -> if html == 'Add subtask' then 'Hide form' else 'Add subtask' $('.js-show-task-btn').attachTaskButtonListener() $('.js-show-subtask-btn').attachSubtaskButtonListener()
205906
$(document).on 'turbolinks:load', -> # initialize and link datepickers $ -> $('#startdatepicker').datetimepicker useCurrent: false format: 'ddd MMMM DD YYYY' $('#enddatepicker').datetimepicker useCurrent: false format: 'ddd MMMM DD YYYY' $('#task-datetimepicker').datetimepicker format: 'ddd MMMM DD YYYY' $('#startdatepicker').on 'dp.change', (e) -> $('#enddatepicker').data('DateTimePicker').minDate e.date return $('#enddatepicker').on 'dp.change', (e) -> $('#startdatepicker').data('DateTimePicker').maxDate e.date return return #In-place editing $.fn.editable.defaults.mode = 'inline' $('.task-name').editable name: 'name' resource: 'task' type: 'text' $('.task-owner').editable name: 'owner_<NAME>' resource: 'task' type: 'select' # In-place editing that requires popups instead of inline $('.task-name-pop').editable mode: 'popup' name: 'name' resource: 'task' type: 'text' $('.date-form').hide() $('.cancel-update').on 'click', -> $(this).parents('.date-form').hide() $(this).parents('.date-form').siblings('.date-view').show() #allow date textbox to come up $('.date-view').on 'click', -> $(this).hide() $(this).siblings().show() $('.update-due-date').on 'click', -> task_id = $(this).parent().parent().data('task-id') date_input = $(this).parent().parent().children('.date-input').val() new_date = new Date(date_input + " CST") new_date.setHours(23,59,59,999) $.ajax({ type: "PATCH", url: "/tasks/#{task_id}/" dataType: "json" data: { task: { due_date: new_date } } context: this success:(data) -> formatted_date = moment(data.due_date).format('ddd, MMMM D YYYY') $(this).parents('.date-form').hide() $(this).parents('.date-form').siblings('.date-view').text(formatted_date).show() error:(data) -> alert 'error updating due date' }) $.fn.attachTaskButtonListener = -> this.on 'click', (e) -> $(this).parent().siblings('.js-task-fields').toggle() $(this).html (i, html) -> if html == 'Add task' then 'Hide form' else 'Add task' $.fn.attachSubtaskButtonListener = -> this.on 'click', (e) -> $(this).parent().find('.js-subtask-fields').toggle() $(this).html (i, html) -> if html == 'Add subtask' then 'Hide form' else 'Add subtask' $('.js-show-task-btn').attachTaskButtonListener() $('.js-show-subtask-btn').attachSubtaskButtonListener()
true
$(document).on 'turbolinks:load', -> # initialize and link datepickers $ -> $('#startdatepicker').datetimepicker useCurrent: false format: 'ddd MMMM DD YYYY' $('#enddatepicker').datetimepicker useCurrent: false format: 'ddd MMMM DD YYYY' $('#task-datetimepicker').datetimepicker format: 'ddd MMMM DD YYYY' $('#startdatepicker').on 'dp.change', (e) -> $('#enddatepicker').data('DateTimePicker').minDate e.date return $('#enddatepicker').on 'dp.change', (e) -> $('#startdatepicker').data('DateTimePicker').maxDate e.date return return #In-place editing $.fn.editable.defaults.mode = 'inline' $('.task-name').editable name: 'name' resource: 'task' type: 'text' $('.task-owner').editable name: 'owner_PI:NAME:<NAME>END_PI' resource: 'task' type: 'select' # In-place editing that requires popups instead of inline $('.task-name-pop').editable mode: 'popup' name: 'name' resource: 'task' type: 'text' $('.date-form').hide() $('.cancel-update').on 'click', -> $(this).parents('.date-form').hide() $(this).parents('.date-form').siblings('.date-view').show() #allow date textbox to come up $('.date-view').on 'click', -> $(this).hide() $(this).siblings().show() $('.update-due-date').on 'click', -> task_id = $(this).parent().parent().data('task-id') date_input = $(this).parent().parent().children('.date-input').val() new_date = new Date(date_input + " CST") new_date.setHours(23,59,59,999) $.ajax({ type: "PATCH", url: "/tasks/#{task_id}/" dataType: "json" data: { task: { due_date: new_date } } context: this success:(data) -> formatted_date = moment(data.due_date).format('ddd, MMMM D YYYY') $(this).parents('.date-form').hide() $(this).parents('.date-form').siblings('.date-view').text(formatted_date).show() error:(data) -> alert 'error updating due date' }) $.fn.attachTaskButtonListener = -> this.on 'click', (e) -> $(this).parent().siblings('.js-task-fields').toggle() $(this).html (i, html) -> if html == 'Add task' then 'Hide form' else 'Add task' $.fn.attachSubtaskButtonListener = -> this.on 'click', (e) -> $(this).parent().find('.js-subtask-fields').toggle() $(this).html (i, html) -> if html == 'Add subtask' then 'Hide form' else 'Add subtask' $('.js-show-task-btn').attachTaskButtonListener() $('.js-show-subtask-btn').attachSubtaskButtonListener()
[ { "context": "link: (scope, element, attr)->\n editorKey = 'issue'\n issueAPI = null\n\n scope.notFound = fa", "end": 442, "score": 0.976428210735321, "start": 437, "tag": "KEY", "value": "issue" } ]
src/js/issue/issue-details-directive.coffee
Kiteam/kiteam-angular
0
define [ '../ng-module' '../utils' '../vendor/lodash' '../../package/highlight/highlight.pack' ], (_module,_utils, _, _hljs) -> _module.directiveModule .directive('issueDetails', ['$rootScope', '$stateParams', '$location', '$http', '$timeout', 'API', 'NOTIFY', ($rootScope, $stateParams, $location, $http , $timeout, API, NOTIFY)-> restrict: 'A' replace: true link: (scope, element, attr)-> editorKey = 'issue' issueAPI = null scope.notFound = false scope.editing = false scope.assetPreviewer = show: false scope.showAlwaysTop = true #提交评论 submitComment = (data)-> issueAPI.comment().create(content: data.content).then (result)-> NOTIFY.success('评论保存成功') #刷新评论数据 scope.$broadcast 'comment:list:reload' scope.onClickStatus = (event, issue)-> scope.$emit 'issue:status-dropdown:show', event, issue return #关闭asset的预览 scope.onClickCloseAssetPreviewer = -> scope.assetPreviewer.show = false #阻止此区域的事件冒泡, scope.onClickIssue = (event)-> event.stopPropagation() if scope.editing return scope.$watch 'issue', -> return if not scope.issue issueAPI = API.project(scope.issue.project_id).issue(scope.issue.id) scope.uploadUrl = "/api/project/#{scope.issue.project_id}/attachment" #是否主动打开编辑器 if $location.$$search.editing is 'true' then scope.onClickEdit() #预览压缩包 scope.$on 'asset:bundle:preview', (event, asset_id, bundleName)-> scope.assetPreviewer.show = true scope.assetPreviewer.bundleName = bundleName #取得素材详细内容才触发事件 issueAPI.assets(asset_id).retrieve().then (result)-> scope.$broadcast 'asset:bundle:load', result # scope.$on 'asset:create:issues', (event, asset_id)-> # url = "/api/project/#{scope.issue.project_id}/asset/#{asset_id}/split" # params = version_id: $stateParams.version_id, category_id: $stateParams.category_id # $http.post(url, params).success (body)-> # $rootScope.$broadcast 'issue:list:reload' scope.$on 'dropdown:selected', (event, type, value)-> field = null switch type when 'issue:owner' field = 'owner' if ~~value isnt scope.issue.owner when 'issue:priority' field = 'priority' if ~~value isnt scope.issue.priority when 'issue:category' field = 'category_id' if ~~value isnt scope.issue.category_id when 'issue:version' field = 'version_id' if ~~value isnt scope.issue.version_id # when 'issue:status' # field = 'status' if ~~value isnt scope.issue.status return if not field data = {} data[field] = value issueAPI.update(data).then -> scope.issue[field] = value $rootScope.$broadcast 'issue:list:reload' #更改状态 scope.$on 'issue:status:change', (event, issue_id, oldStatus, newStatus, split)-> return if oldStatus is newStatus _issueAPI = issueAPI _issueAPI = API.project(scope.issue.project_id).issue(scope.issue.id).split(issue_id) if split _issueAPI.update(status: newStatus).then ()-> # scope.issue.status = newStatus if !split $rootScope.$broadcast 'issue:list:reload' $rootScope.$broadcast 'issue:detail:reload' #保存修改时间 scope.$on 'datetime:change', (event, name, date)-> switch name when 'plan_finish_time' issueAPI.update(plan_finish_time:date).then (result)-> if(result) then scope.issue.plan_finish_time = date scope.onClickSplit = ()-> scope.splitShow = true $timeout (-> $("#split-text").focus()), 100 if !scope.issue.splited issueAPI.update(splited:1).then (result)-> scope.splitShow = true $rootScope.$broadcast 'issue:detail:reload' if result scope.onClickDelete = ()-> return if not confirm('您确定要删除这条记录吗') issueAPI.update(status : 'trash').then ()-> NOTIFY.success '删除成功' #切换url url = $location.$$path.replace(/(.+)\/\d+$/, '$1') $location.path(url) $rootScope.$broadcast 'issue:change' scope.onClickEdit = ()-> scope.splitShow = false # console.log scope.issue.tag # 当类型为表单时弹出表单窗口,其他的则显示富文本编辑器 if scope.issue.tag isnt 'form' #延时让页面先显示出来,然后初始化editor(仅在第一次初始化),避免editor获取不到宽度 scope.editing = true window.setTimeout(-> scope.$broadcast 'editor:content', editorKey, scope.issue.id, scope.issue.content, scope.uploadUrl , 1) $('body').one 'click', -> scope.$broadcast 'editor:will:cancel', editorKey else $rootScope.$broadcast 'issue:form:show', scope.issue.id, JSON.parse(scope.issue.content).uuid return scope.$on 'editor:submit', (event, name, data)-> #提交评论 return submitComment(data) if name is 'comment' scope.editing = false scope.issue.content = data.content #保存到数据库 newData = _.pick(scope.issue, ['content', 'title']) issueAPI.update(newData).then((result)-> NOTIFY.success('更新成功') $timeout(_hljs.initHighlighting,100) $rootScope.$broadcast 'issue:list:reload' ) scope.$on 'editor:cancel', (event, name)-> return if editorKey isnt name scope.editing = false scope.$apply() if not scope.$$phase #强行显示issue的编辑器 scope.$on 'issue:editor:show', ()-> scope.onClickEdit() scope.followIssue = ()-> issueAPI.follow().create().then (res)-> ])
218362
define [ '../ng-module' '../utils' '../vendor/lodash' '../../package/highlight/highlight.pack' ], (_module,_utils, _, _hljs) -> _module.directiveModule .directive('issueDetails', ['$rootScope', '$stateParams', '$location', '$http', '$timeout', 'API', 'NOTIFY', ($rootScope, $stateParams, $location, $http , $timeout, API, NOTIFY)-> restrict: 'A' replace: true link: (scope, element, attr)-> editorKey = '<KEY>' issueAPI = null scope.notFound = false scope.editing = false scope.assetPreviewer = show: false scope.showAlwaysTop = true #提交评论 submitComment = (data)-> issueAPI.comment().create(content: data.content).then (result)-> NOTIFY.success('评论保存成功') #刷新评论数据 scope.$broadcast 'comment:list:reload' scope.onClickStatus = (event, issue)-> scope.$emit 'issue:status-dropdown:show', event, issue return #关闭asset的预览 scope.onClickCloseAssetPreviewer = -> scope.assetPreviewer.show = false #阻止此区域的事件冒泡, scope.onClickIssue = (event)-> event.stopPropagation() if scope.editing return scope.$watch 'issue', -> return if not scope.issue issueAPI = API.project(scope.issue.project_id).issue(scope.issue.id) scope.uploadUrl = "/api/project/#{scope.issue.project_id}/attachment" #是否主动打开编辑器 if $location.$$search.editing is 'true' then scope.onClickEdit() #预览压缩包 scope.$on 'asset:bundle:preview', (event, asset_id, bundleName)-> scope.assetPreviewer.show = true scope.assetPreviewer.bundleName = bundleName #取得素材详细内容才触发事件 issueAPI.assets(asset_id).retrieve().then (result)-> scope.$broadcast 'asset:bundle:load', result # scope.$on 'asset:create:issues', (event, asset_id)-> # url = "/api/project/#{scope.issue.project_id}/asset/#{asset_id}/split" # params = version_id: $stateParams.version_id, category_id: $stateParams.category_id # $http.post(url, params).success (body)-> # $rootScope.$broadcast 'issue:list:reload' scope.$on 'dropdown:selected', (event, type, value)-> field = null switch type when 'issue:owner' field = 'owner' if ~~value isnt scope.issue.owner when 'issue:priority' field = 'priority' if ~~value isnt scope.issue.priority when 'issue:category' field = 'category_id' if ~~value isnt scope.issue.category_id when 'issue:version' field = 'version_id' if ~~value isnt scope.issue.version_id # when 'issue:status' # field = 'status' if ~~value isnt scope.issue.status return if not field data = {} data[field] = value issueAPI.update(data).then -> scope.issue[field] = value $rootScope.$broadcast 'issue:list:reload' #更改状态 scope.$on 'issue:status:change', (event, issue_id, oldStatus, newStatus, split)-> return if oldStatus is newStatus _issueAPI = issueAPI _issueAPI = API.project(scope.issue.project_id).issue(scope.issue.id).split(issue_id) if split _issueAPI.update(status: newStatus).then ()-> # scope.issue.status = newStatus if !split $rootScope.$broadcast 'issue:list:reload' $rootScope.$broadcast 'issue:detail:reload' #保存修改时间 scope.$on 'datetime:change', (event, name, date)-> switch name when 'plan_finish_time' issueAPI.update(plan_finish_time:date).then (result)-> if(result) then scope.issue.plan_finish_time = date scope.onClickSplit = ()-> scope.splitShow = true $timeout (-> $("#split-text").focus()), 100 if !scope.issue.splited issueAPI.update(splited:1).then (result)-> scope.splitShow = true $rootScope.$broadcast 'issue:detail:reload' if result scope.onClickDelete = ()-> return if not confirm('您确定要删除这条记录吗') issueAPI.update(status : 'trash').then ()-> NOTIFY.success '删除成功' #切换url url = $location.$$path.replace(/(.+)\/\d+$/, '$1') $location.path(url) $rootScope.$broadcast 'issue:change' scope.onClickEdit = ()-> scope.splitShow = false # console.log scope.issue.tag # 当类型为表单时弹出表单窗口,其他的则显示富文本编辑器 if scope.issue.tag isnt 'form' #延时让页面先显示出来,然后初始化editor(仅在第一次初始化),避免editor获取不到宽度 scope.editing = true window.setTimeout(-> scope.$broadcast 'editor:content', editorKey, scope.issue.id, scope.issue.content, scope.uploadUrl , 1) $('body').one 'click', -> scope.$broadcast 'editor:will:cancel', editorKey else $rootScope.$broadcast 'issue:form:show', scope.issue.id, JSON.parse(scope.issue.content).uuid return scope.$on 'editor:submit', (event, name, data)-> #提交评论 return submitComment(data) if name is 'comment' scope.editing = false scope.issue.content = data.content #保存到数据库 newData = _.pick(scope.issue, ['content', 'title']) issueAPI.update(newData).then((result)-> NOTIFY.success('更新成功') $timeout(_hljs.initHighlighting,100) $rootScope.$broadcast 'issue:list:reload' ) scope.$on 'editor:cancel', (event, name)-> return if editorKey isnt name scope.editing = false scope.$apply() if not scope.$$phase #强行显示issue的编辑器 scope.$on 'issue:editor:show', ()-> scope.onClickEdit() scope.followIssue = ()-> issueAPI.follow().create().then (res)-> ])
true
define [ '../ng-module' '../utils' '../vendor/lodash' '../../package/highlight/highlight.pack' ], (_module,_utils, _, _hljs) -> _module.directiveModule .directive('issueDetails', ['$rootScope', '$stateParams', '$location', '$http', '$timeout', 'API', 'NOTIFY', ($rootScope, $stateParams, $location, $http , $timeout, API, NOTIFY)-> restrict: 'A' replace: true link: (scope, element, attr)-> editorKey = 'PI:KEY:<KEY>END_PI' issueAPI = null scope.notFound = false scope.editing = false scope.assetPreviewer = show: false scope.showAlwaysTop = true #提交评论 submitComment = (data)-> issueAPI.comment().create(content: data.content).then (result)-> NOTIFY.success('评论保存成功') #刷新评论数据 scope.$broadcast 'comment:list:reload' scope.onClickStatus = (event, issue)-> scope.$emit 'issue:status-dropdown:show', event, issue return #关闭asset的预览 scope.onClickCloseAssetPreviewer = -> scope.assetPreviewer.show = false #阻止此区域的事件冒泡, scope.onClickIssue = (event)-> event.stopPropagation() if scope.editing return scope.$watch 'issue', -> return if not scope.issue issueAPI = API.project(scope.issue.project_id).issue(scope.issue.id) scope.uploadUrl = "/api/project/#{scope.issue.project_id}/attachment" #是否主动打开编辑器 if $location.$$search.editing is 'true' then scope.onClickEdit() #预览压缩包 scope.$on 'asset:bundle:preview', (event, asset_id, bundleName)-> scope.assetPreviewer.show = true scope.assetPreviewer.bundleName = bundleName #取得素材详细内容才触发事件 issueAPI.assets(asset_id).retrieve().then (result)-> scope.$broadcast 'asset:bundle:load', result # scope.$on 'asset:create:issues', (event, asset_id)-> # url = "/api/project/#{scope.issue.project_id}/asset/#{asset_id}/split" # params = version_id: $stateParams.version_id, category_id: $stateParams.category_id # $http.post(url, params).success (body)-> # $rootScope.$broadcast 'issue:list:reload' scope.$on 'dropdown:selected', (event, type, value)-> field = null switch type when 'issue:owner' field = 'owner' if ~~value isnt scope.issue.owner when 'issue:priority' field = 'priority' if ~~value isnt scope.issue.priority when 'issue:category' field = 'category_id' if ~~value isnt scope.issue.category_id when 'issue:version' field = 'version_id' if ~~value isnt scope.issue.version_id # when 'issue:status' # field = 'status' if ~~value isnt scope.issue.status return if not field data = {} data[field] = value issueAPI.update(data).then -> scope.issue[field] = value $rootScope.$broadcast 'issue:list:reload' #更改状态 scope.$on 'issue:status:change', (event, issue_id, oldStatus, newStatus, split)-> return if oldStatus is newStatus _issueAPI = issueAPI _issueAPI = API.project(scope.issue.project_id).issue(scope.issue.id).split(issue_id) if split _issueAPI.update(status: newStatus).then ()-> # scope.issue.status = newStatus if !split $rootScope.$broadcast 'issue:list:reload' $rootScope.$broadcast 'issue:detail:reload' #保存修改时间 scope.$on 'datetime:change', (event, name, date)-> switch name when 'plan_finish_time' issueAPI.update(plan_finish_time:date).then (result)-> if(result) then scope.issue.plan_finish_time = date scope.onClickSplit = ()-> scope.splitShow = true $timeout (-> $("#split-text").focus()), 100 if !scope.issue.splited issueAPI.update(splited:1).then (result)-> scope.splitShow = true $rootScope.$broadcast 'issue:detail:reload' if result scope.onClickDelete = ()-> return if not confirm('您确定要删除这条记录吗') issueAPI.update(status : 'trash').then ()-> NOTIFY.success '删除成功' #切换url url = $location.$$path.replace(/(.+)\/\d+$/, '$1') $location.path(url) $rootScope.$broadcast 'issue:change' scope.onClickEdit = ()-> scope.splitShow = false # console.log scope.issue.tag # 当类型为表单时弹出表单窗口,其他的则显示富文本编辑器 if scope.issue.tag isnt 'form' #延时让页面先显示出来,然后初始化editor(仅在第一次初始化),避免editor获取不到宽度 scope.editing = true window.setTimeout(-> scope.$broadcast 'editor:content', editorKey, scope.issue.id, scope.issue.content, scope.uploadUrl , 1) $('body').one 'click', -> scope.$broadcast 'editor:will:cancel', editorKey else $rootScope.$broadcast 'issue:form:show', scope.issue.id, JSON.parse(scope.issue.content).uuid return scope.$on 'editor:submit', (event, name, data)-> #提交评论 return submitComment(data) if name is 'comment' scope.editing = false scope.issue.content = data.content #保存到数据库 newData = _.pick(scope.issue, ['content', 'title']) issueAPI.update(newData).then((result)-> NOTIFY.success('更新成功') $timeout(_hljs.initHighlighting,100) $rootScope.$broadcast 'issue:list:reload' ) scope.$on 'editor:cancel', (event, name)-> return if editorKey isnt name scope.editing = false scope.$apply() if not scope.$$phase #强行显示issue的编辑器 scope.$on 'issue:editor:show', ()-> scope.onClickEdit() scope.followIssue = ()-> issueAPI.follow().create().then (res)-> ])
[ { "context": " username: process.env.USERID\n password: process.env.USERSECRET\n scope: ''\n .expect 200\n .then (", "end": 413, "score": 0.9992669224739075, "start": 391, "tag": "PASSWORD", "value": "process.env.USERSECRET" } ]
backend/test/unit/1-oauth2.coffee
twhtanghk/jsOAuth2
0
req = require 'supertest' {parse} = require 'url' describe 'oauth2', -> it 'token', -> url = parse process.env.TOKENURL req global.server .post url.path .auth process.env.CLIENTID, process.env.CLIENTSECRET .set 'Content-Type', 'application/x-www-form-urlencoded' .send grant_type: 'password' username: process.env.USERID password: process.env.USERSECRET scope: '' .expect 200 .then (res) -> global.token = res.body.access_token it 'verify', -> url = parse process.env.VERIFYURL req global.server .get url.path .set 'Authorization', "Bearer #{global.token}" .expect 200 .then (res) -> console.log res.body it 'cors token', -> url = parse process.env.TOKENURL req global.server .options url.path .set 'Origin', 'abc.com' .set 'Access-Control-Request-Method', 'POST' .then (res) -> console.log res.headers
166237
req = require 'supertest' {parse} = require 'url' describe 'oauth2', -> it 'token', -> url = parse process.env.TOKENURL req global.server .post url.path .auth process.env.CLIENTID, process.env.CLIENTSECRET .set 'Content-Type', 'application/x-www-form-urlencoded' .send grant_type: 'password' username: process.env.USERID password: <PASSWORD> scope: '' .expect 200 .then (res) -> global.token = res.body.access_token it 'verify', -> url = parse process.env.VERIFYURL req global.server .get url.path .set 'Authorization', "Bearer #{global.token}" .expect 200 .then (res) -> console.log res.body it 'cors token', -> url = parse process.env.TOKENURL req global.server .options url.path .set 'Origin', 'abc.com' .set 'Access-Control-Request-Method', 'POST' .then (res) -> console.log res.headers
true
req = require 'supertest' {parse} = require 'url' describe 'oauth2', -> it 'token', -> url = parse process.env.TOKENURL req global.server .post url.path .auth process.env.CLIENTID, process.env.CLIENTSECRET .set 'Content-Type', 'application/x-www-form-urlencoded' .send grant_type: 'password' username: process.env.USERID password: PI:PASSWORD:<PASSWORD>END_PI scope: '' .expect 200 .then (res) -> global.token = res.body.access_token it 'verify', -> url = parse process.env.VERIFYURL req global.server .get url.path .set 'Authorization', "Bearer #{global.token}" .expect 200 .then (res) -> console.log res.body it 'cors token', -> url = parse process.env.TOKENURL req global.server .options url.path .set 'Origin', 'abc.com' .set 'Access-Control-Request-Method', 'POST' .then (res) -> console.log res.headers
[ { "context": " api.post('/user')\n .send(username: 'test1', password: 'test')\n .end (err, res)->\n ", "end": 1026, "score": 0.9995452165603638, "start": 1021, "tag": "USERNAME", "value": "test1" }, { "context": "r')\n .send(username: 'test1', password:...
test/server/group.coffee
ethanmick/fastchat-server
7
'use strict' # # FastChat # 2015 # should = require('chai').should() supertest = require('supertest') api = supertest('http://localhost:6190') async = require('async') mongoose = require('mongoose') User = require('../../lib/model/user') Group = require('../../lib/model/group') Message = require('../../lib/model/message') GroupSetting = require('../../lib/model/groupSetting') tokens = [] users = [] group = null describe 'Groups', -> before (done)-> mongoose.connect 'mongodb://localhost/test' db = mongoose.connection async.series [ (callback)-> # # Remove all users # db.once 'open', -> User.remove {}, (err)-> callback() (callback)-> # # Add three users to seed our DB. We have to do it via the post request, # because registering does a lot more than just create a DB record. Plus, # this has already been tested, so we know it works. # api.post('/user') .send(username: 'test1', password: 'test') .end (err, res)-> users.push(res.body) # Number 2 api.post('/user') .send(username: 'test2', password: 'test') .end (err, res)-> users.push(res.body) # Number 3 api.post('/user') .send(username: 'test3', password: 'test') .end (err, res)-> users.push(res.body) callback() (callback)-> api.post('/login') .send(username: 'test1', password: 'test') .end (err, res)-> tokens.push( res.body.access_token ) # login second user api.post('/login') .send(username: 'test2', password: 'test') .end (err, res)-> tokens.push( res.body.access_token ) # login third user api.post('/login') .send(username: 'test3', password: 'test') .end (err, res)-> tokens.push( res.body.access_token ) callback() ], (err, results)-> done() it 'should be empty for a brand new user', (done)-> api.get('/group') .set('Authorization', "Bearer #{tokens[0]}") .expect(200) .expect('Content-Type', /json/) .end (err, res)-> should.not.exist(err) should.exist(res.body) res.body.should.be.empty done() it 'should not allow a user to create a group with no information', (done)-> api.post('/group') .set('Authorization', "Bearer #{tokens[0]}") .send({}) .expect(400) .expect('Content-Type', /json/) .end (err, res)-> should.not.exist(err) should.exist(res.body) should.exist(res.body.error) done() it 'should not allow a user to create a group with no message', (done)-> user1 = users[1] api.post('/group') .set('Authorization', "Bearer #{tokens[0]}") .send(members: [user1._id]) .expect(400) .expect('Content-Type', /json/) .end (err, res)-> should.not.exist(err) should.exist(res.body) should.exist(res.body.error) done() it 'should not allow a user to create a group with no members', (done)-> api.post('/group') .set('Authorization', "Bearer #{tokens[0]}") .send(text: 'This is a test message!') .expect(400) .expect('Content-Type', /json/) .end (err, res)-> should.not.exist(err) should.exist(res.body) should.exist(res.body.error) done() it 'should not allow a group to be created if the only member invited is the caller', (done)-> user0 = users[0] api.post('/group') .set('Authorization', "Bearer #{tokens[0]}") .send(text: 'This is a test message!', members: [user0.username]) .expect(400) .expect('Content-Type', /json/) .end (err, res)-> should.not.exist(err) should.exist(res.body) should.exist(res.body.error) done() it 'should not allow a user to create a group with no members', (done)-> api.post('/group') .set('Authorization', "Bearer #{tokens[0]}") .send(text: 'This is a test message!') .expect(400) .expect('Content-Type', /json/) .end (err, res)-> should.not.exist(err) should.exist(res.body) should.exist(res.body.error) done() it 'should not allow a user to create a group without an array', (done)-> api.post('/group') .set('Authorization', "Bearer #{tokens[0]}") .send(text: 'This is a test message!', members: {'test': 'test'}) .expect(400) .expect('Content-Type', /json/) .end (err, res)-> should.not.exist(err) should.exist(res.body) should.exist(res.body.error) done() it 'should let a user to create a group with the proper info', (done)-> user1 = users[1] api.post('/group') .set('Authorization', "Bearer #{tokens[0]}") .send(text: 'Proper Info Group!', members: [user1.username]) .expect(201) .expect('Content-Type', /json/) .end (err, res)-> should.not.exist(err) should.exist(res.body) created = res.body should.not.exist(created.name) created.members.should.have.length(2) created.leftMembers.should.be.empty should.exist(created._id) created.messages.should.have.length(1) created.members.should.have.length(2) group = created; # # Verify Group Settings # GroupSetting.findOne user: users[0]._id, (err, gs)-> should.exist(gs) should.not.exist(err) gs.unread.should.equal(0) gs.group.toString().should.equal(created._id) GroupSetting.findOne user: users[1]._id, (err2, gs2)-> should.exist(gs2) should.not.exist(err2) gs2.unread.should.equal(0) gs2.group.toString().should.equal(created._id) done() it 'should show the new group for the user who created it', (done)-> api.get('/group') .set('Authorization', "Bearer #{tokens[0]}") .expect(200) .expect('Content-Type', /json/) .end (err, res)-> should.not.exist(err) should.exist(res.body) res.body.should.not.be.empty g = res.body[0] should.exist(g.unread) g.unread.should.equal(0) g.members.should.have.length(2) done() it 'should not allow a user not in the group to change the name', (done)-> api.put('/group/' + group._id + '/settings') .set('Authorization', "Bearer #{tokens[2]}") .send(name: 'New Group Name!') .expect(404) .expect('Content-Type', /json/) .end (err, res)-> should.not.exist(err) should.exist(res.body) should.exist(res.body.error) done() it 'should not let a user change a group name with a bad id', (done)-> badId = group._id.toString() + '111111' api.put('/group/' + badId + '/settings') .set('Authorization', "Bearer #{tokens[0]}") .send(name: 'New Group Name!') .expect(400) .expect('Content-Type', /json/) .end (err, res)-> should.not.exist(err) should.exist(res.body) should.exist(res.body.error) done() it 'should not let a user change a group name with a valid, but not found, id', (done)-> anID = group._id anID = anID.substr(0, anID.length - 4) anID = anID + '9999' api.put('/group/' + anID + '/settings') .set('Authorization', "Bearer #{tokens[0]}") .send(name: 'New Group Name!') .expect(404) .expect('Content-Type', /json/) .end (err, res)-> should.not.exist(err) should.exist(res.body) should.exist(res.body.error) done() it 'should let a user in the group change the group name', (done)-> Message.find group: group._id, (err, messages)-> should.not.exist(err) messages.should.have.length(1) api.put('/group/' + group._id + '/settings') .set('Authorization', "Bearer #{tokens[0]}") .send(name: 'New Group Name!') .expect(200) .expect('Content-Type', /json/) .end (err, res)-> should.not.exist(err) should.exist(res.body) should.not.exist(res.body.error) Group.findOne _id: group._id, (err, group)-> should.not.exist(err) should.exist(group) group.name.should.equal('New Group Name!') Message.find group: group._id, {}, {sort: {sent: 1}}, (err, messages)-> should.not.exist(err) messages.should.have.length(2) messages[1].text.should.equal('Group name changed to New Group Name!') messages[1].type.should.equal('system') done() it 'should not let you leave a group you are not in', (done)-> api.put('/group/' + group._id + '/leave') .set('Authorization', "Bearer #{tokens[2]}") .send() .expect(404) .expect('Content-Type', /json/) .end (err, res)-> should.not.exist(err) should.exist(res.body) should.exist(res.body.error) done() it 'should let a user in the group leave', (done)-> Message.find group: group._id, (err, messages)-> should.not.exist(err) messages.should.have.length(2) api.put('/group/' + group._id + '/leave') .set('Authorization', "Bearer #{tokens[1]}") .expect(200) .expect('Content-Type', /json/) .end (err, res)-> should.not.exist(err) should.exist(res.body) should.not.exist(res.body.error) # # And now... validate # Group.findOne _id: group._id, (err, aGroup)-> should.not.exist(err) should.exist(aGroup) aGroup.members.should.have.length(1) aGroup.members.should.contain(users[0]._id.toString()) aGroup.leftMembers.should.have.length(1) aGroup.leftMembers.should.contain(users[1]._id.toString()) User.findOne _id: users[1]._id, (err, user)-> user.groups.should.be.empty user.leftGroups.should.have.length(1) user.leftGroups.should.contain(aGroup._id) Message.find group: aGroup._id, {}, {sort: {sent: 1}}, (err, messages)-> should.not.exist(err) messages.should.have.length(3) messages[2].text.should.equal('test2 has left the group.') messages[2].type.should.equal('system') done() it 'should return left groups in the user profile', (done)-> api.get('/user') .set('Authorization', "Bearer #{tokens[1]}") .expect(200) .expect('Content-Type', /json/) .end (err, res)-> should.exist(res.body) res.body.groups.should.have.length(0) res.body.leftGroups.should.have.length(1) left = res.body.leftGroups[0] should.exist(left.name) should.exist(left._id) done() it 'it should fail to add nothing to a group', (done)-> api.put('/group/' + group._id + '/add') .set('Authorization', "Bearer #{tokens[0]}") .send({}) .expect(400) .expect('Content-Type', /json/) .end (err, res)-> should.not.exist(err) should.exist(res.body) should.exist(res.body.error) done() it 'it should return OK if you add no one to a group', (done)-> api.put('/group/' + group._id + '/add') .set('Authorization', "Bearer #{tokens[0]}") .send(invitees: []) .expect(400) .expect('Content-Type', /json/) .end (err, res)-> should.not.exist(err) should.exist(res.body.error) done() it 'it should not let a user add themselves', (done)-> api.put('/group/' + group._id + '/add') .set('Authorization', "Bearer #{tokens[0]}") .send(invitees: [users[0].username]) .expect(400) .expect('Content-Type', /json/) .end (err, res)-> should.not.exist(err) should.exist(res.body.error) done() it 'Another user cannot add a user who has left a group', (done)-> Group.findOne _id: group._id, (err, aGroup)-> should.not.exist(err) should.exist(aGroup) aGroup.members.should.have.length(1) aGroup.members.should.contain(users[0]._id.toString()) aGroup.leftMembers.should.have.length(1) aGroup.leftMembers.should.contain(users[1]._id.toString()) api.put('/group/' + group._id + '/add') .set('Authorization', "Bearer #{tokens[0]}") .send(invitees: [users[1].username]) .expect(400) .expect('Content-Type', /json/) .end (err, res)-> should.not.exist(err) should.exist(res.body) should.exist(res.body.error) Group.findOne _id: group._id, (err, aGroup2)-> should.not.exist(err) should.exist(aGroup2) aGroup2.members.should.have.length(1) aGroup2.members.should.contain(users[0]._id.toString()) aGroup2.leftMembers.should.have.length(1) aGroup2.leftMembers.should.contain(users[1]._id.toString()) done() it 'it should let you add a new user to the group', (done)-> user2 = users[2] api.put('/group/' + group._id + '/add') .set('Authorization', "Bearer #{tokens[0]}") .send(invitees: [user2.username]) .expect(200) .expect('Content-Type', /json/) .end (err, res)-> should.not.exist(err) should.exist(res.body) should.not.exist(res.body.error) Group.findOne _id: group._id, (err, aGroup2)-> should.not.exist(err) should.exist(aGroup2) aGroup2.members.should.have.length(2) aGroup2.members.should.contain(users[0]._id.toString()) aGroup2.members.should.contain(users[2]._id.toString()) done() after (done)-> mongoose.disconnect() done()
194024
'use strict' # # FastChat # 2015 # should = require('chai').should() supertest = require('supertest') api = supertest('http://localhost:6190') async = require('async') mongoose = require('mongoose') User = require('../../lib/model/user') Group = require('../../lib/model/group') Message = require('../../lib/model/message') GroupSetting = require('../../lib/model/groupSetting') tokens = [] users = [] group = null describe 'Groups', -> before (done)-> mongoose.connect 'mongodb://localhost/test' db = mongoose.connection async.series [ (callback)-> # # Remove all users # db.once 'open', -> User.remove {}, (err)-> callback() (callback)-> # # Add three users to seed our DB. We have to do it via the post request, # because registering does a lot more than just create a DB record. Plus, # this has already been tested, so we know it works. # api.post('/user') .send(username: 'test1', password: '<PASSWORD>') .end (err, res)-> users.push(res.body) # Number 2 api.post('/user') .send(username: 'test2', password: '<PASSWORD>') .end (err, res)-> users.push(res.body) # Number 3 api.post('/user') .send(username: 'test3', password: '<PASSWORD>') .end (err, res)-> users.push(res.body) callback() (callback)-> api.post('/login') .send(username: 'test1', password: '<PASSWORD>') .end (err, res)-> tokens.push( res.body.access_token ) # login second user api.post('/login') .send(username: 'test2', password: '<PASSWORD>') .end (err, res)-> tokens.push( res.body.access_token ) # login third user api.post('/login') .send(username: 'test3', password: '<PASSWORD>') .end (err, res)-> tokens.push( res.body.access_token ) callback() ], (err, results)-> done() it 'should be empty for a brand new user', (done)-> api.get('/group') .set('Authorization', "Bearer #{tokens[0]}") .expect(200) .expect('Content-Type', /json/) .end (err, res)-> should.not.exist(err) should.exist(res.body) res.body.should.be.empty done() it 'should not allow a user to create a group with no information', (done)-> api.post('/group') .set('Authorization', "Bearer #{tokens[0]}") .send({}) .expect(400) .expect('Content-Type', /json/) .end (err, res)-> should.not.exist(err) should.exist(res.body) should.exist(res.body.error) done() it 'should not allow a user to create a group with no message', (done)-> user1 = users[1] api.post('/group') .set('Authorization', "Bearer #{tokens[0]}") .send(members: [user1._id]) .expect(400) .expect('Content-Type', /json/) .end (err, res)-> should.not.exist(err) should.exist(res.body) should.exist(res.body.error) done() it 'should not allow a user to create a group with no members', (done)-> api.post('/group') .set('Authorization', "Bearer #{tokens[0]}") .send(text: 'This is a test message!') .expect(400) .expect('Content-Type', /json/) .end (err, res)-> should.not.exist(err) should.exist(res.body) should.exist(res.body.error) done() it 'should not allow a group to be created if the only member invited is the caller', (done)-> user0 = users[0] api.post('/group') .set('Authorization', "Bearer #{tokens[0]}") .send(text: 'This is a test message!', members: [user0.username]) .expect(400) .expect('Content-Type', /json/) .end (err, res)-> should.not.exist(err) should.exist(res.body) should.exist(res.body.error) done() it 'should not allow a user to create a group with no members', (done)-> api.post('/group') .set('Authorization', "Bearer #{tokens[0]}") .send(text: 'This is a test message!') .expect(400) .expect('Content-Type', /json/) .end (err, res)-> should.not.exist(err) should.exist(res.body) should.exist(res.body.error) done() it 'should not allow a user to create a group without an array', (done)-> api.post('/group') .set('Authorization', "Bearer #{tokens[0]}") .send(text: 'This is a test message!', members: {'test': 'test'}) .expect(400) .expect('Content-Type', /json/) .end (err, res)-> should.not.exist(err) should.exist(res.body) should.exist(res.body.error) done() it 'should let a user to create a group with the proper info', (done)-> user1 = users[1] api.post('/group') .set('Authorization', "Bearer #{tokens[0]}") .send(text: 'Proper Info Group!', members: [user1.username]) .expect(201) .expect('Content-Type', /json/) .end (err, res)-> should.not.exist(err) should.exist(res.body) created = res.body should.not.exist(created.name) created.members.should.have.length(2) created.leftMembers.should.be.empty should.exist(created._id) created.messages.should.have.length(1) created.members.should.have.length(2) group = created; # # Verify Group Settings # GroupSetting.findOne user: users[0]._id, (err, gs)-> should.exist(gs) should.not.exist(err) gs.unread.should.equal(0) gs.group.toString().should.equal(created._id) GroupSetting.findOne user: users[1]._id, (err2, gs2)-> should.exist(gs2) should.not.exist(err2) gs2.unread.should.equal(0) gs2.group.toString().should.equal(created._id) done() it 'should show the new group for the user who created it', (done)-> api.get('/group') .set('Authorization', "Bearer #{tokens[0]}") .expect(200) .expect('Content-Type', /json/) .end (err, res)-> should.not.exist(err) should.exist(res.body) res.body.should.not.be.empty g = res.body[0] should.exist(g.unread) g.unread.should.equal(0) g.members.should.have.length(2) done() it 'should not allow a user not in the group to change the name', (done)-> api.put('/group/' + group._id + '/settings') .set('Authorization', "Bearer #{tokens[2]}") .send(name: 'New Group Name!') .expect(404) .expect('Content-Type', /json/) .end (err, res)-> should.not.exist(err) should.exist(res.body) should.exist(res.body.error) done() it 'should not let a user change a group name with a bad id', (done)-> badId = group._id.toString() + '111111' api.put('/group/' + badId + '/settings') .set('Authorization', "Bearer #{tokens[0]}") .send(name: 'New Group Name!') .expect(400) .expect('Content-Type', /json/) .end (err, res)-> should.not.exist(err) should.exist(res.body) should.exist(res.body.error) done() it 'should not let a user change a group name with a valid, but not found, id', (done)-> anID = group._id anID = anID.substr(0, anID.length - 4) anID = anID + '9999' api.put('/group/' + anID + '/settings') .set('Authorization', "Bearer #{tokens[0]}") .send(name: 'New Group Name!') .expect(404) .expect('Content-Type', /json/) .end (err, res)-> should.not.exist(err) should.exist(res.body) should.exist(res.body.error) done() it 'should let a user in the group change the group name', (done)-> Message.find group: group._id, (err, messages)-> should.not.exist(err) messages.should.have.length(1) api.put('/group/' + group._id + '/settings') .set('Authorization', "Bearer #{tokens[0]}") .send(name: 'New Group Name!') .expect(200) .expect('Content-Type', /json/) .end (err, res)-> should.not.exist(err) should.exist(res.body) should.not.exist(res.body.error) Group.findOne _id: group._id, (err, group)-> should.not.exist(err) should.exist(group) group.name.should.equal('New Group Name!') Message.find group: group._id, {}, {sort: {sent: 1}}, (err, messages)-> should.not.exist(err) messages.should.have.length(2) messages[1].text.should.equal('Group name changed to New Group Name!') messages[1].type.should.equal('system') done() it 'should not let you leave a group you are not in', (done)-> api.put('/group/' + group._id + '/leave') .set('Authorization', "Bearer #{tokens[2]}") .send() .expect(404) .expect('Content-Type', /json/) .end (err, res)-> should.not.exist(err) should.exist(res.body) should.exist(res.body.error) done() it 'should let a user in the group leave', (done)-> Message.find group: group._id, (err, messages)-> should.not.exist(err) messages.should.have.length(2) api.put('/group/' + group._id + '/leave') .set('Authorization', "Bearer #{tokens[1]}") .expect(200) .expect('Content-Type', /json/) .end (err, res)-> should.not.exist(err) should.exist(res.body) should.not.exist(res.body.error) # # And now... validate # Group.findOne _id: group._id, (err, aGroup)-> should.not.exist(err) should.exist(aGroup) aGroup.members.should.have.length(1) aGroup.members.should.contain(users[0]._id.toString()) aGroup.leftMembers.should.have.length(1) aGroup.leftMembers.should.contain(users[1]._id.toString()) User.findOne _id: users[1]._id, (err, user)-> user.groups.should.be.empty user.leftGroups.should.have.length(1) user.leftGroups.should.contain(aGroup._id) Message.find group: aGroup._id, {}, {sort: {sent: 1}}, (err, messages)-> should.not.exist(err) messages.should.have.length(3) messages[2].text.should.equal('test2 has left the group.') messages[2].type.should.equal('system') done() it 'should return left groups in the user profile', (done)-> api.get('/user') .set('Authorization', "Bearer #{tokens[1]}") .expect(200) .expect('Content-Type', /json/) .end (err, res)-> should.exist(res.body) res.body.groups.should.have.length(0) res.body.leftGroups.should.have.length(1) left = res.body.leftGroups[0] should.exist(left.name) should.exist(left._id) done() it 'it should fail to add nothing to a group', (done)-> api.put('/group/' + group._id + '/add') .set('Authorization', "Bearer #{tokens[0]}") .send({}) .expect(400) .expect('Content-Type', /json/) .end (err, res)-> should.not.exist(err) should.exist(res.body) should.exist(res.body.error) done() it 'it should return OK if you add no one to a group', (done)-> api.put('/group/' + group._id + '/add') .set('Authorization', "Bearer #{tokens[0]}") .send(invitees: []) .expect(400) .expect('Content-Type', /json/) .end (err, res)-> should.not.exist(err) should.exist(res.body.error) done() it 'it should not let a user add themselves', (done)-> api.put('/group/' + group._id + '/add') .set('Authorization', "Bearer #{tokens[0]}") .send(invitees: [users[0].username]) .expect(400) .expect('Content-Type', /json/) .end (err, res)-> should.not.exist(err) should.exist(res.body.error) done() it 'Another user cannot add a user who has left a group', (done)-> Group.findOne _id: group._id, (err, aGroup)-> should.not.exist(err) should.exist(aGroup) aGroup.members.should.have.length(1) aGroup.members.should.contain(users[0]._id.toString()) aGroup.leftMembers.should.have.length(1) aGroup.leftMembers.should.contain(users[1]._id.toString()) api.put('/group/' + group._id + '/add') .set('Authorization', "Bearer #{tokens[0]}") .send(invitees: [users[1].username]) .expect(400) .expect('Content-Type', /json/) .end (err, res)-> should.not.exist(err) should.exist(res.body) should.exist(res.body.error) Group.findOne _id: group._id, (err, aGroup2)-> should.not.exist(err) should.exist(aGroup2) aGroup2.members.should.have.length(1) aGroup2.members.should.contain(users[0]._id.toString()) aGroup2.leftMembers.should.have.length(1) aGroup2.leftMembers.should.contain(users[1]._id.toString()) done() it 'it should let you add a new user to the group', (done)-> user2 = users[2] api.put('/group/' + group._id + '/add') .set('Authorization', "Bearer #{tokens[0]}") .send(invitees: [user2.username]) .expect(200) .expect('Content-Type', /json/) .end (err, res)-> should.not.exist(err) should.exist(res.body) should.not.exist(res.body.error) Group.findOne _id: group._id, (err, aGroup2)-> should.not.exist(err) should.exist(aGroup2) aGroup2.members.should.have.length(2) aGroup2.members.should.contain(users[0]._id.toString()) aGroup2.members.should.contain(users[2]._id.toString()) done() after (done)-> mongoose.disconnect() done()
true
'use strict' # # FastChat # 2015 # should = require('chai').should() supertest = require('supertest') api = supertest('http://localhost:6190') async = require('async') mongoose = require('mongoose') User = require('../../lib/model/user') Group = require('../../lib/model/group') Message = require('../../lib/model/message') GroupSetting = require('../../lib/model/groupSetting') tokens = [] users = [] group = null describe 'Groups', -> before (done)-> mongoose.connect 'mongodb://localhost/test' db = mongoose.connection async.series [ (callback)-> # # Remove all users # db.once 'open', -> User.remove {}, (err)-> callback() (callback)-> # # Add three users to seed our DB. We have to do it via the post request, # because registering does a lot more than just create a DB record. Plus, # this has already been tested, so we know it works. # api.post('/user') .send(username: 'test1', password: 'PI:PASSWORD:<PASSWORD>END_PI') .end (err, res)-> users.push(res.body) # Number 2 api.post('/user') .send(username: 'test2', password: 'PI:PASSWORD:<PASSWORD>END_PI') .end (err, res)-> users.push(res.body) # Number 3 api.post('/user') .send(username: 'test3', password: 'PI:PASSWORD:<PASSWORD>END_PI') .end (err, res)-> users.push(res.body) callback() (callback)-> api.post('/login') .send(username: 'test1', password: 'PI:PASSWORD:<PASSWORD>END_PI') .end (err, res)-> tokens.push( res.body.access_token ) # login second user api.post('/login') .send(username: 'test2', password: 'PI:PASSWORD:<PASSWORD>END_PI') .end (err, res)-> tokens.push( res.body.access_token ) # login third user api.post('/login') .send(username: 'test3', password: 'PI:PASSWORD:<PASSWORD>END_PI') .end (err, res)-> tokens.push( res.body.access_token ) callback() ], (err, results)-> done() it 'should be empty for a brand new user', (done)-> api.get('/group') .set('Authorization', "Bearer #{tokens[0]}") .expect(200) .expect('Content-Type', /json/) .end (err, res)-> should.not.exist(err) should.exist(res.body) res.body.should.be.empty done() it 'should not allow a user to create a group with no information', (done)-> api.post('/group') .set('Authorization', "Bearer #{tokens[0]}") .send({}) .expect(400) .expect('Content-Type', /json/) .end (err, res)-> should.not.exist(err) should.exist(res.body) should.exist(res.body.error) done() it 'should not allow a user to create a group with no message', (done)-> user1 = users[1] api.post('/group') .set('Authorization', "Bearer #{tokens[0]}") .send(members: [user1._id]) .expect(400) .expect('Content-Type', /json/) .end (err, res)-> should.not.exist(err) should.exist(res.body) should.exist(res.body.error) done() it 'should not allow a user to create a group with no members', (done)-> api.post('/group') .set('Authorization', "Bearer #{tokens[0]}") .send(text: 'This is a test message!') .expect(400) .expect('Content-Type', /json/) .end (err, res)-> should.not.exist(err) should.exist(res.body) should.exist(res.body.error) done() it 'should not allow a group to be created if the only member invited is the caller', (done)-> user0 = users[0] api.post('/group') .set('Authorization', "Bearer #{tokens[0]}") .send(text: 'This is a test message!', members: [user0.username]) .expect(400) .expect('Content-Type', /json/) .end (err, res)-> should.not.exist(err) should.exist(res.body) should.exist(res.body.error) done() it 'should not allow a user to create a group with no members', (done)-> api.post('/group') .set('Authorization', "Bearer #{tokens[0]}") .send(text: 'This is a test message!') .expect(400) .expect('Content-Type', /json/) .end (err, res)-> should.not.exist(err) should.exist(res.body) should.exist(res.body.error) done() it 'should not allow a user to create a group without an array', (done)-> api.post('/group') .set('Authorization', "Bearer #{tokens[0]}") .send(text: 'This is a test message!', members: {'test': 'test'}) .expect(400) .expect('Content-Type', /json/) .end (err, res)-> should.not.exist(err) should.exist(res.body) should.exist(res.body.error) done() it 'should let a user to create a group with the proper info', (done)-> user1 = users[1] api.post('/group') .set('Authorization', "Bearer #{tokens[0]}") .send(text: 'Proper Info Group!', members: [user1.username]) .expect(201) .expect('Content-Type', /json/) .end (err, res)-> should.not.exist(err) should.exist(res.body) created = res.body should.not.exist(created.name) created.members.should.have.length(2) created.leftMembers.should.be.empty should.exist(created._id) created.messages.should.have.length(1) created.members.should.have.length(2) group = created; # # Verify Group Settings # GroupSetting.findOne user: users[0]._id, (err, gs)-> should.exist(gs) should.not.exist(err) gs.unread.should.equal(0) gs.group.toString().should.equal(created._id) GroupSetting.findOne user: users[1]._id, (err2, gs2)-> should.exist(gs2) should.not.exist(err2) gs2.unread.should.equal(0) gs2.group.toString().should.equal(created._id) done() it 'should show the new group for the user who created it', (done)-> api.get('/group') .set('Authorization', "Bearer #{tokens[0]}") .expect(200) .expect('Content-Type', /json/) .end (err, res)-> should.not.exist(err) should.exist(res.body) res.body.should.not.be.empty g = res.body[0] should.exist(g.unread) g.unread.should.equal(0) g.members.should.have.length(2) done() it 'should not allow a user not in the group to change the name', (done)-> api.put('/group/' + group._id + '/settings') .set('Authorization', "Bearer #{tokens[2]}") .send(name: 'New Group Name!') .expect(404) .expect('Content-Type', /json/) .end (err, res)-> should.not.exist(err) should.exist(res.body) should.exist(res.body.error) done() it 'should not let a user change a group name with a bad id', (done)-> badId = group._id.toString() + '111111' api.put('/group/' + badId + '/settings') .set('Authorization', "Bearer #{tokens[0]}") .send(name: 'New Group Name!') .expect(400) .expect('Content-Type', /json/) .end (err, res)-> should.not.exist(err) should.exist(res.body) should.exist(res.body.error) done() it 'should not let a user change a group name with a valid, but not found, id', (done)-> anID = group._id anID = anID.substr(0, anID.length - 4) anID = anID + '9999' api.put('/group/' + anID + '/settings') .set('Authorization', "Bearer #{tokens[0]}") .send(name: 'New Group Name!') .expect(404) .expect('Content-Type', /json/) .end (err, res)-> should.not.exist(err) should.exist(res.body) should.exist(res.body.error) done() it 'should let a user in the group change the group name', (done)-> Message.find group: group._id, (err, messages)-> should.not.exist(err) messages.should.have.length(1) api.put('/group/' + group._id + '/settings') .set('Authorization', "Bearer #{tokens[0]}") .send(name: 'New Group Name!') .expect(200) .expect('Content-Type', /json/) .end (err, res)-> should.not.exist(err) should.exist(res.body) should.not.exist(res.body.error) Group.findOne _id: group._id, (err, group)-> should.not.exist(err) should.exist(group) group.name.should.equal('New Group Name!') Message.find group: group._id, {}, {sort: {sent: 1}}, (err, messages)-> should.not.exist(err) messages.should.have.length(2) messages[1].text.should.equal('Group name changed to New Group Name!') messages[1].type.should.equal('system') done() it 'should not let you leave a group you are not in', (done)-> api.put('/group/' + group._id + '/leave') .set('Authorization', "Bearer #{tokens[2]}") .send() .expect(404) .expect('Content-Type', /json/) .end (err, res)-> should.not.exist(err) should.exist(res.body) should.exist(res.body.error) done() it 'should let a user in the group leave', (done)-> Message.find group: group._id, (err, messages)-> should.not.exist(err) messages.should.have.length(2) api.put('/group/' + group._id + '/leave') .set('Authorization', "Bearer #{tokens[1]}") .expect(200) .expect('Content-Type', /json/) .end (err, res)-> should.not.exist(err) should.exist(res.body) should.not.exist(res.body.error) # # And now... validate # Group.findOne _id: group._id, (err, aGroup)-> should.not.exist(err) should.exist(aGroup) aGroup.members.should.have.length(1) aGroup.members.should.contain(users[0]._id.toString()) aGroup.leftMembers.should.have.length(1) aGroup.leftMembers.should.contain(users[1]._id.toString()) User.findOne _id: users[1]._id, (err, user)-> user.groups.should.be.empty user.leftGroups.should.have.length(1) user.leftGroups.should.contain(aGroup._id) Message.find group: aGroup._id, {}, {sort: {sent: 1}}, (err, messages)-> should.not.exist(err) messages.should.have.length(3) messages[2].text.should.equal('test2 has left the group.') messages[2].type.should.equal('system') done() it 'should return left groups in the user profile', (done)-> api.get('/user') .set('Authorization', "Bearer #{tokens[1]}") .expect(200) .expect('Content-Type', /json/) .end (err, res)-> should.exist(res.body) res.body.groups.should.have.length(0) res.body.leftGroups.should.have.length(1) left = res.body.leftGroups[0] should.exist(left.name) should.exist(left._id) done() it 'it should fail to add nothing to a group', (done)-> api.put('/group/' + group._id + '/add') .set('Authorization', "Bearer #{tokens[0]}") .send({}) .expect(400) .expect('Content-Type', /json/) .end (err, res)-> should.not.exist(err) should.exist(res.body) should.exist(res.body.error) done() it 'it should return OK if you add no one to a group', (done)-> api.put('/group/' + group._id + '/add') .set('Authorization', "Bearer #{tokens[0]}") .send(invitees: []) .expect(400) .expect('Content-Type', /json/) .end (err, res)-> should.not.exist(err) should.exist(res.body.error) done() it 'it should not let a user add themselves', (done)-> api.put('/group/' + group._id + '/add') .set('Authorization', "Bearer #{tokens[0]}") .send(invitees: [users[0].username]) .expect(400) .expect('Content-Type', /json/) .end (err, res)-> should.not.exist(err) should.exist(res.body.error) done() it 'Another user cannot add a user who has left a group', (done)-> Group.findOne _id: group._id, (err, aGroup)-> should.not.exist(err) should.exist(aGroup) aGroup.members.should.have.length(1) aGroup.members.should.contain(users[0]._id.toString()) aGroup.leftMembers.should.have.length(1) aGroup.leftMembers.should.contain(users[1]._id.toString()) api.put('/group/' + group._id + '/add') .set('Authorization', "Bearer #{tokens[0]}") .send(invitees: [users[1].username]) .expect(400) .expect('Content-Type', /json/) .end (err, res)-> should.not.exist(err) should.exist(res.body) should.exist(res.body.error) Group.findOne _id: group._id, (err, aGroup2)-> should.not.exist(err) should.exist(aGroup2) aGroup2.members.should.have.length(1) aGroup2.members.should.contain(users[0]._id.toString()) aGroup2.leftMembers.should.have.length(1) aGroup2.leftMembers.should.contain(users[1]._id.toString()) done() it 'it should let you add a new user to the group', (done)-> user2 = users[2] api.put('/group/' + group._id + '/add') .set('Authorization', "Bearer #{tokens[0]}") .send(invitees: [user2.username]) .expect(200) .expect('Content-Type', /json/) .end (err, res)-> should.not.exist(err) should.exist(res.body) should.not.exist(res.body.error) Group.findOne _id: group._id, (err, aGroup2)-> should.not.exist(err) should.exist(aGroup2) aGroup2.members.should.have.length(2) aGroup2.members.should.contain(users[0]._id.toString()) aGroup2.members.should.contain(users[2]._id.toString()) done() after (done)-> mongoose.disconnect() done()
[ { "context": "###\n Pokemon Go(c) MITM node proxy\n by Michael Strassburger <codepoet@cpan.org>\n\n All your hitting throws wi", "end": 61, "score": 0.9998800158500671, "start": 41, "tag": "NAME", "value": "Michael Strassburger" }, { "context": " Go(c) MITM node proxy\n by Michae...
example.alwaySuperThrow.coffee
noobcakes4603/tinkering
393
### Pokemon Go(c) MITM node proxy by Michael Strassburger <codepoet@cpan.org> All your hitting throws will be spinned and just perfect, +XP time! ### PokemonGoMITM = require './lib/pokemon-go-mitm' server = new PokemonGoMITM port: 8081, debug: true .addRequestHandler "CatchPokemon", (data) -> data.normalized_reticle_size = 1.950 data.spin_modifier = 0.850 if data.hit_pokemon data.normalized_hit_position = 1.0 data
10258
### Pokemon Go(c) MITM node proxy by <NAME> <<EMAIL>> All your hitting throws will be spinned and just perfect, +XP time! ### PokemonGoMITM = require './lib/pokemon-go-mitm' server = new PokemonGoMITM port: 8081, debug: true .addRequestHandler "CatchPokemon", (data) -> data.normalized_reticle_size = 1.950 data.spin_modifier = 0.850 if data.hit_pokemon data.normalized_hit_position = 1.0 data
true
### Pokemon Go(c) MITM node proxy by PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI> All your hitting throws will be spinned and just perfect, +XP time! ### PokemonGoMITM = require './lib/pokemon-go-mitm' server = new PokemonGoMITM port: 8081, debug: true .addRequestHandler "CatchPokemon", (data) -> data.normalized_reticle_size = 1.950 data.spin_modifier = 0.850 if data.hit_pokemon data.normalized_hit_position = 1.0 data
[ { "context": "###\n * https://github.com/jkuetemeier/gulp-tasks-common\n *\n * Copyright (c) 2014 Jörg K", "end": 37, "score": 0.9987958073616028, "start": 26, "tag": "USERNAME", "value": "jkuetemeier" }, { "context": "temeier/gulp-tasks-common\n *\n * Copyright (c) 2014 Jörg Kütemei...
src/config.coffee
kuetemeier/gulp-tasks-common
0
### * https://github.com/jkuetemeier/gulp-tasks-common * * Copyright (c) 2014 Jörg Kütemeier * Licensed under the MIT license. ### # KEEP THIS FILE! # as a cached config for tasks module.exports = require('requiredir')('config')
11165
### * https://github.com/jkuetemeier/gulp-tasks-common * * Copyright (c) 2014 <NAME> * Licensed under the MIT license. ### # KEEP THIS FILE! # as a cached config for tasks module.exports = require('requiredir')('config')
true
### * https://github.com/jkuetemeier/gulp-tasks-common * * Copyright (c) 2014 PI:NAME:<NAME>END_PI * Licensed under the MIT license. ### # KEEP THIS FILE! # as a cached config for tasks module.exports = require('requiredir')('config')
[ { "context": "ditable\n # element in webkit, thanks to Marek Suscak's fiddle here:\n # http://jsfiddle.net/", "end": 4324, "score": 0.9926712512969971, "start": 4312, "tag": "NAME", "value": "Marek Suscak" }, { "context": "'s fiddle here:\n # http://j...
src/scripts/ui/dialogs/dialogs.coffee
boyum/ContentTools
0
class ContentTools.AnchoredDialogUI extends ContentTools.WidgetUI # Base class for creating anchored dialogs. An anchored dialog appears above # the page but is anchored to a set position within, they are typically used # for in page edits, such as setting a link within the page. constructor: () -> super() # The position of the dialog @_position = [0, 0] # Public methods mount: () -> # Mount the widget to the DOM # # Note: This method doesn't call the `_addEventListeners` method which # is typical of other UI components, instead it expects the inheriting # class to override this method and call `_addEventListeners` at the # appropriate point. # Create the dialog @_domElement = @constructor.createDiv([ 'ct-widget', 'ct-anchored-dialog' ]) @parent().domElement().appendChild(@_domElement) # Set the position of the dialog @_contain() @_domElement.style.top = "#{ @_position[1] }px" @_domElement.style.left = "#{ @_position[0] }px" position: (newPosition) -> # Get/Set the position of the dialog if newPosition is undefined return @_position.slice() @_position = newPosition.slice() if @isMounted() @_contain() @_domElement.style.top = "#{ @_position[1] }px" @_domElement.style.left = "#{ @_position[0] }px" # Private methods _contain: () -> # Ensure the position doesn't place the dialog off the page. # The component must be mounted in the DOM, if not we can't determined # the width and height and therefore whether the position places the # dialog off the page or not. if not @isMounted() return # Calculate half the width of the anchored dialog (as anchored dialogs # are displayed centrally) amnd add a 5 pixel buffer so we don't bump # right up to the edge. halfWidth = (@_domElement.getBoundingClientRect().width / 2 + 5) # Get the width of the document excluding the scroll bars pageWidth = document.documentElement.clientWidth or document.body.clientWidth # Adjust the position to be contained (if necessary) if (@_position[0] + halfWidth) > (pageWidth - halfWidth) @_position[0] = pageWidth - halfWidth if @_position[0] < halfWidth @_position[0] = halfWidth class ContentTools.DialogUI extends ContentTools.WidgetUI # Base class for creating standard dialogs. constructor: (caption='') -> super() # A flag indicating that the dialog is currently busy @_busy = false # The dialog's caption @_caption = caption # Methods busy: (busy) -> # Get/Set the dialog's busy status if busy is undefined return @_busy # Check that we need to change the current state of the dialog if @_busy is busy return # Modify the state @_busy = busy # Add/Remove busy modifier class to the dialog if not @isMounted() return if @_busy ContentEdit.addCSSClass(@_domElement, 'ct-dialog--busy') else ContentEdit.removeCSSClass(@_domElement, 'ct-dialog--busy') caption: (caption) -> # Get/Set the caption for the dialog if caption is undefined return @_caption # Replace any existing caption @_caption = caption @_domCaption.textContent = ContentEdit._(caption) mount: () -> # Mount the widget to the DOM # # Note: This method doesn't call the `_addEventListeners` method which # is typical of other UI components, instead it expects the inheriting # class to override this method an call `_addEventListeners` at the # appropriate point. # Blur the focused element to ensure that it's contents can be edited # once the dialog is open. if document.activeElement document.activeElement.blur() # HACK: This is a work around for blurring the contenteditable # element in webkit, thanks to Marek Suscak's fiddle here: # http://jsfiddle.net/mareksuscak/oytdoxy8/ # # ~ Anthony Blackshaw <ant@getme.co.uk>, 28th June 2016 window.getSelection().removeAllRanges() # Create the dialog dialogCSSClasses = [ 'ct-widget', 'ct-dialog' ] if @_busy dialogCSSClasses.push('ct-dialog--busy') @_domElement = @constructor.createDiv(dialogCSSClasses) @parent().domElement().appendChild(@_domElement) # Add the dialog header domHeader = @constructor.createDiv(['ct-dialog__header']) @_domElement.appendChild(domHeader) # Caption @_domCaption = @constructor.createDiv(['ct-dialog__caption']) domHeader.appendChild(@_domCaption) @caption(@_caption) # Close button @_domClose = @constructor.createDiv(['ct-dialog__close']) domHeader.appendChild(@_domClose) # Body domBody = @constructor.createDiv(['ct-dialog__body']) @_domElement.appendChild(domBody) # View @_domView = @constructor.createDiv(['ct-dialog__view']) domBody.appendChild(@_domView) # Controls @_domControls = @constructor.createDiv(['ct-dialog__controls']) domBody.appendChild(@_domControls) # Busy @_domBusy = @constructor.createDiv(['ct-dialog__busy']) @_domElement.appendChild(@_domBusy) unmount: () -> # Unmount the component from the DOM super() @_domBusy = null @_domCaption = null @_domClose = null @_domControls = null @_domView = null # Private methods _addDOMEventListeners: () -> # Add event listeners for the widget # Cancelling the dialog # Using the escape key @_handleEscape = (ev) => # Check the dialog isn't busy if @_busy return if ev.keyCode is 27 @dispatchEvent(@createEvent('cancel')) document.addEventListener('keyup', @_handleEscape) # Via the close button @_domClose.addEventListener 'click', (ev) => ev.preventDefault() # Check the dialog isn't busy if @_busy return @dispatchEvent(@createEvent('cancel')) _removeDOMEventListeners: () -> document.removeEventListener('keyup', @_handleEscape)
53304
class ContentTools.AnchoredDialogUI extends ContentTools.WidgetUI # Base class for creating anchored dialogs. An anchored dialog appears above # the page but is anchored to a set position within, they are typically used # for in page edits, such as setting a link within the page. constructor: () -> super() # The position of the dialog @_position = [0, 0] # Public methods mount: () -> # Mount the widget to the DOM # # Note: This method doesn't call the `_addEventListeners` method which # is typical of other UI components, instead it expects the inheriting # class to override this method and call `_addEventListeners` at the # appropriate point. # Create the dialog @_domElement = @constructor.createDiv([ 'ct-widget', 'ct-anchored-dialog' ]) @parent().domElement().appendChild(@_domElement) # Set the position of the dialog @_contain() @_domElement.style.top = "#{ @_position[1] }px" @_domElement.style.left = "#{ @_position[0] }px" position: (newPosition) -> # Get/Set the position of the dialog if newPosition is undefined return @_position.slice() @_position = newPosition.slice() if @isMounted() @_contain() @_domElement.style.top = "#{ @_position[1] }px" @_domElement.style.left = "#{ @_position[0] }px" # Private methods _contain: () -> # Ensure the position doesn't place the dialog off the page. # The component must be mounted in the DOM, if not we can't determined # the width and height and therefore whether the position places the # dialog off the page or not. if not @isMounted() return # Calculate half the width of the anchored dialog (as anchored dialogs # are displayed centrally) amnd add a 5 pixel buffer so we don't bump # right up to the edge. halfWidth = (@_domElement.getBoundingClientRect().width / 2 + 5) # Get the width of the document excluding the scroll bars pageWidth = document.documentElement.clientWidth or document.body.clientWidth # Adjust the position to be contained (if necessary) if (@_position[0] + halfWidth) > (pageWidth - halfWidth) @_position[0] = pageWidth - halfWidth if @_position[0] < halfWidth @_position[0] = halfWidth class ContentTools.DialogUI extends ContentTools.WidgetUI # Base class for creating standard dialogs. constructor: (caption='') -> super() # A flag indicating that the dialog is currently busy @_busy = false # The dialog's caption @_caption = caption # Methods busy: (busy) -> # Get/Set the dialog's busy status if busy is undefined return @_busy # Check that we need to change the current state of the dialog if @_busy is busy return # Modify the state @_busy = busy # Add/Remove busy modifier class to the dialog if not @isMounted() return if @_busy ContentEdit.addCSSClass(@_domElement, 'ct-dialog--busy') else ContentEdit.removeCSSClass(@_domElement, 'ct-dialog--busy') caption: (caption) -> # Get/Set the caption for the dialog if caption is undefined return @_caption # Replace any existing caption @_caption = caption @_domCaption.textContent = ContentEdit._(caption) mount: () -> # Mount the widget to the DOM # # Note: This method doesn't call the `_addEventListeners` method which # is typical of other UI components, instead it expects the inheriting # class to override this method an call `_addEventListeners` at the # appropriate point. # Blur the focused element to ensure that it's contents can be edited # once the dialog is open. if document.activeElement document.activeElement.blur() # HACK: This is a work around for blurring the contenteditable # element in webkit, thanks to <NAME>'s fiddle here: # http://jsfiddle.net/mareksuscak/oytdoxy8/ # # ~ <NAME> <<EMAIL>>, 28th June 2016 window.getSelection().removeAllRanges() # Create the dialog dialogCSSClasses = [ 'ct-widget', 'ct-dialog' ] if @_busy dialogCSSClasses.push('ct-dialog--busy') @_domElement = @constructor.createDiv(dialogCSSClasses) @parent().domElement().appendChild(@_domElement) # Add the dialog header domHeader = @constructor.createDiv(['ct-dialog__header']) @_domElement.appendChild(domHeader) # Caption @_domCaption = @constructor.createDiv(['ct-dialog__caption']) domHeader.appendChild(@_domCaption) @caption(@_caption) # Close button @_domClose = @constructor.createDiv(['ct-dialog__close']) domHeader.appendChild(@_domClose) # Body domBody = @constructor.createDiv(['ct-dialog__body']) @_domElement.appendChild(domBody) # View @_domView = @constructor.createDiv(['ct-dialog__view']) domBody.appendChild(@_domView) # Controls @_domControls = @constructor.createDiv(['ct-dialog__controls']) domBody.appendChild(@_domControls) # Busy @_domBusy = @constructor.createDiv(['ct-dialog__busy']) @_domElement.appendChild(@_domBusy) unmount: () -> # Unmount the component from the DOM super() @_domBusy = null @_domCaption = null @_domClose = null @_domControls = null @_domView = null # Private methods _addDOMEventListeners: () -> # Add event listeners for the widget # Cancelling the dialog # Using the escape key @_handleEscape = (ev) => # Check the dialog isn't busy if @_busy return if ev.keyCode is 27 @dispatchEvent(@createEvent('cancel')) document.addEventListener('keyup', @_handleEscape) # Via the close button @_domClose.addEventListener 'click', (ev) => ev.preventDefault() # Check the dialog isn't busy if @_busy return @dispatchEvent(@createEvent('cancel')) _removeDOMEventListeners: () -> document.removeEventListener('keyup', @_handleEscape)
true
class ContentTools.AnchoredDialogUI extends ContentTools.WidgetUI # Base class for creating anchored dialogs. An anchored dialog appears above # the page but is anchored to a set position within, they are typically used # for in page edits, such as setting a link within the page. constructor: () -> super() # The position of the dialog @_position = [0, 0] # Public methods mount: () -> # Mount the widget to the DOM # # Note: This method doesn't call the `_addEventListeners` method which # is typical of other UI components, instead it expects the inheriting # class to override this method and call `_addEventListeners` at the # appropriate point. # Create the dialog @_domElement = @constructor.createDiv([ 'ct-widget', 'ct-anchored-dialog' ]) @parent().domElement().appendChild(@_domElement) # Set the position of the dialog @_contain() @_domElement.style.top = "#{ @_position[1] }px" @_domElement.style.left = "#{ @_position[0] }px" position: (newPosition) -> # Get/Set the position of the dialog if newPosition is undefined return @_position.slice() @_position = newPosition.slice() if @isMounted() @_contain() @_domElement.style.top = "#{ @_position[1] }px" @_domElement.style.left = "#{ @_position[0] }px" # Private methods _contain: () -> # Ensure the position doesn't place the dialog off the page. # The component must be mounted in the DOM, if not we can't determined # the width and height and therefore whether the position places the # dialog off the page or not. if not @isMounted() return # Calculate half the width of the anchored dialog (as anchored dialogs # are displayed centrally) amnd add a 5 pixel buffer so we don't bump # right up to the edge. halfWidth = (@_domElement.getBoundingClientRect().width / 2 + 5) # Get the width of the document excluding the scroll bars pageWidth = document.documentElement.clientWidth or document.body.clientWidth # Adjust the position to be contained (if necessary) if (@_position[0] + halfWidth) > (pageWidth - halfWidth) @_position[0] = pageWidth - halfWidth if @_position[0] < halfWidth @_position[0] = halfWidth class ContentTools.DialogUI extends ContentTools.WidgetUI # Base class for creating standard dialogs. constructor: (caption='') -> super() # A flag indicating that the dialog is currently busy @_busy = false # The dialog's caption @_caption = caption # Methods busy: (busy) -> # Get/Set the dialog's busy status if busy is undefined return @_busy # Check that we need to change the current state of the dialog if @_busy is busy return # Modify the state @_busy = busy # Add/Remove busy modifier class to the dialog if not @isMounted() return if @_busy ContentEdit.addCSSClass(@_domElement, 'ct-dialog--busy') else ContentEdit.removeCSSClass(@_domElement, 'ct-dialog--busy') caption: (caption) -> # Get/Set the caption for the dialog if caption is undefined return @_caption # Replace any existing caption @_caption = caption @_domCaption.textContent = ContentEdit._(caption) mount: () -> # Mount the widget to the DOM # # Note: This method doesn't call the `_addEventListeners` method which # is typical of other UI components, instead it expects the inheriting # class to override this method an call `_addEventListeners` at the # appropriate point. # Blur the focused element to ensure that it's contents can be edited # once the dialog is open. if document.activeElement document.activeElement.blur() # HACK: This is a work around for blurring the contenteditable # element in webkit, thanks to PI:NAME:<NAME>END_PI's fiddle here: # http://jsfiddle.net/mareksuscak/oytdoxy8/ # # ~ PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI>, 28th June 2016 window.getSelection().removeAllRanges() # Create the dialog dialogCSSClasses = [ 'ct-widget', 'ct-dialog' ] if @_busy dialogCSSClasses.push('ct-dialog--busy') @_domElement = @constructor.createDiv(dialogCSSClasses) @parent().domElement().appendChild(@_domElement) # Add the dialog header domHeader = @constructor.createDiv(['ct-dialog__header']) @_domElement.appendChild(domHeader) # Caption @_domCaption = @constructor.createDiv(['ct-dialog__caption']) domHeader.appendChild(@_domCaption) @caption(@_caption) # Close button @_domClose = @constructor.createDiv(['ct-dialog__close']) domHeader.appendChild(@_domClose) # Body domBody = @constructor.createDiv(['ct-dialog__body']) @_domElement.appendChild(domBody) # View @_domView = @constructor.createDiv(['ct-dialog__view']) domBody.appendChild(@_domView) # Controls @_domControls = @constructor.createDiv(['ct-dialog__controls']) domBody.appendChild(@_domControls) # Busy @_domBusy = @constructor.createDiv(['ct-dialog__busy']) @_domElement.appendChild(@_domBusy) unmount: () -> # Unmount the component from the DOM super() @_domBusy = null @_domCaption = null @_domClose = null @_domControls = null @_domView = null # Private methods _addDOMEventListeners: () -> # Add event listeners for the widget # Cancelling the dialog # Using the escape key @_handleEscape = (ev) => # Check the dialog isn't busy if @_busy return if ev.keyCode is 27 @dispatchEvent(@createEvent('cancel')) document.addEventListener('keyup', @_handleEscape) # Via the close button @_domClose.addEventListener 'click', (ev) => ev.preventDefault() # Check the dialog isn't busy if @_busy return @dispatchEvent(@createEvent('cancel')) _removeDOMEventListeners: () -> document.removeEventListener('keyup', @_handleEscape)
[ { "context": "=================================\n# Copyright 2014 Hatio, Lab.\n# Licensed under The MIT License\n# http://o", "end": 67, "score": 0.8195878267288208, "start": 62, "tag": "NAME", "value": "Hatio" } ]
src/disposer.coffee
heartyoh/dou
1
# ========================================== # Copyright 2014 Hatio, Lab. # Licensed under The MIT License # http://opensource.org/licenses/MIT # ========================================== define [ './compose' './advice' ], (compose, advice) -> "use strict" addDisposer = (callback) -> @__disposers = [] if not @__disposers @__disposers.push callback dispose = -> return if not @__disposers if @__disposers for callback in @__disposers callback.call this -> @addDisposer = addDisposer if @dispose # plugin dependency : advice.withAdvice compose.mixin this, advice.withAdvice @after 'dispose', dispose else @dispose = dispose
73271
# ========================================== # Copyright 2014 <NAME>, Lab. # Licensed under The MIT License # http://opensource.org/licenses/MIT # ========================================== define [ './compose' './advice' ], (compose, advice) -> "use strict" addDisposer = (callback) -> @__disposers = [] if not @__disposers @__disposers.push callback dispose = -> return if not @__disposers if @__disposers for callback in @__disposers callback.call this -> @addDisposer = addDisposer if @dispose # plugin dependency : advice.withAdvice compose.mixin this, advice.withAdvice @after 'dispose', dispose else @dispose = dispose
true
# ========================================== # Copyright 2014 PI:NAME:<NAME>END_PI, Lab. # Licensed under The MIT License # http://opensource.org/licenses/MIT # ========================================== define [ './compose' './advice' ], (compose, advice) -> "use strict" addDisposer = (callback) -> @__disposers = [] if not @__disposers @__disposers.push callback dispose = -> return if not @__disposers if @__disposers for callback in @__disposers callback.call this -> @addDisposer = addDisposer if @dispose # plugin dependency : advice.withAdvice compose.mixin this, advice.withAdvice @after 'dispose', dispose else @dispose = dispose
[ { "context": "sWithKeymapsDisabled: []\n projectHome: \"/Users/nathanlim/Github\"\n telemetryConsent: \"limited\"\n editor:", "end": 1606, "score": 0.9994657635688782, "start": 1597, "tag": "USERNAME", "value": "nathanlim" }, { "context": " 79\n \"linter-python\":\n execut...
mackup-bak/MackUp/.atom/config.cson
nathanmlim/dotfiles-1
0
"*": "Remote-FTP": enableTransferNotifications: true "atom-beautify": general: _analyticsUserId: "27a113d1-a0aa-4c56-b86e-22db7d3efe16" python: sort_imports: true "atom-ide-ui": "atom-ide-terminal": allowTransparency: true brightCyan: "#419698" brightGreen: "#4f8f00" fontFamily: "SauceCodePro Nerd Mono Complete, Source Code, Hack" green: "#008f00" lineHeight: 1 "atom-material-ui": colors: abaseColor: "#2196f3" genAccent: true predefinedColor: "Blue" fonts: fontSize: 14 tabs: compactTabs: true noTabMinWidth: true tintedTabBar: true treeView: compactList: true ui: panelContrast: true panelShadows: true "atom-package-deps": ignored: [] "autocomplete-python": extraPaths: "/anaconda/lib/python3.6/site-packages;/anaconda/envs/dev/lib/python3.5/site-packages;/home/nathanlim/anaconda3/envs/dev/lib/python3.5/site-packages;/home/limn1/anaconda3/envs/dev/lib/python3.5/site-packages;/home/limn1/anaconda3/lib/python3.5/site-packages" pythonPaths: "/anaconda/bin/python;/home/nathanlim/anaconda3/envs/dev/bin/python;/anaconda/envs/dev/bin/python;/home/limn1/anaconda3/bin/python;/home/limn1/anaconda3/envs/dev/bin/python" useKite: false useSnippets: "required" core: allowPendingPaneItems: false disabledPackages: [ "markdown-preview" "language-gfm" "Hydrogen" "hydrogen-launcher" "hydrogen-python" "linter" ] packagesWithKeymapsDisabled: [] projectHome: "/Users/nathanlim/Github" telemetryConsent: "limited" editor: fontSize: 12 showIndentGuide: true showInvisibles: true softWrap: true tabLength: 4 "exception-reporting": userId: "85a9c545-0485-f8a8-462f-1a3e7a822733" "git-plus": general: _analyticsUserId: "aadeeeb2-8399-43f5-ade4-1320792ca508" "ide-python": pylsPlugins: autopep8: enabled: false pycodestyle: enabled: false yapf: enabled: true "linter-pycodestyle": maxLineLength: 79 "linter-python": executablePath: "/home/nathanlim/anaconda3/bin/pylama" lintTrigger: "File saved or modified" withPyflakes: true "linter-ui-default": panelHeight: 300 "markdown-writer": fileExtension: ".md" renameImageOnCopy: true siteImagesDir: "images/" minimap: disablePythonDocLinks: true plugins: "highlight-selected": false "highlight-selectedDecorationsZIndex": 0 "platformio-ide-terminal": ansiColors: normal: blue: "#0433ff" cyan: "#00fdff" green: "#00f900" zBright: brightBlue: "#0433ff" core: autoRunCommand: "source ~/.bash_profile" scrollback: 1000000 customTexts: {} style: fontSize: "12" theme: "one-dark" toggles: {} "project-manager": includeGitRepositories: true "python-isort": checkOnSave: false "python-yapf": formatOnSave: true yapfStyle: "{based_on_style: google, column_limit: 119, indent_width: 4, use_tabs: False}" "remote-edit": foldersOnTop: true rememberLastOpenDirectory: true "remote-sync": {} "seti-ui": compactView: true "spell-check": grammars: [ "source.asciidoc" "source.gfm" "text.git-commit" "text.plain" "text.plain.null-grammar" "text.tex.latex" ] "split-diff": ignoreWhitespace: true leftEditorColor: "red" rightEditorColor: "green" scrollSyncType: "Vertical + Horizontal" syncHorizontalScroll: true "sync-settings": _lastBackupHash: "e3ec0169ccd5bf85ae017801144aa258fecbc238" gistId: "99272bb54638fb21daf0ddee2f5ef047" personalAccessToken: "065f64b191e90793d00de26c2926d482363c5b53" "terminal-plus": core: {} style: theme: "solid-colors" "tree-view": {} welcome: showOnStartup: false
131514
"*": "Remote-FTP": enableTransferNotifications: true "atom-beautify": general: _analyticsUserId: "27a113d1-a0aa-4c56-b86e-22db7d3efe16" python: sort_imports: true "atom-ide-ui": "atom-ide-terminal": allowTransparency: true brightCyan: "#419698" brightGreen: "#4f8f00" fontFamily: "SauceCodePro Nerd Mono Complete, Source Code, Hack" green: "#008f00" lineHeight: 1 "atom-material-ui": colors: abaseColor: "#2196f3" genAccent: true predefinedColor: "Blue" fonts: fontSize: 14 tabs: compactTabs: true noTabMinWidth: true tintedTabBar: true treeView: compactList: true ui: panelContrast: true panelShadows: true "atom-package-deps": ignored: [] "autocomplete-python": extraPaths: "/anaconda/lib/python3.6/site-packages;/anaconda/envs/dev/lib/python3.5/site-packages;/home/nathanlim/anaconda3/envs/dev/lib/python3.5/site-packages;/home/limn1/anaconda3/envs/dev/lib/python3.5/site-packages;/home/limn1/anaconda3/lib/python3.5/site-packages" pythonPaths: "/anaconda/bin/python;/home/nathanlim/anaconda3/envs/dev/bin/python;/anaconda/envs/dev/bin/python;/home/limn1/anaconda3/bin/python;/home/limn1/anaconda3/envs/dev/bin/python" useKite: false useSnippets: "required" core: allowPendingPaneItems: false disabledPackages: [ "markdown-preview" "language-gfm" "Hydrogen" "hydrogen-launcher" "hydrogen-python" "linter" ] packagesWithKeymapsDisabled: [] projectHome: "/Users/nathanlim/Github" telemetryConsent: "limited" editor: fontSize: 12 showIndentGuide: true showInvisibles: true softWrap: true tabLength: 4 "exception-reporting": userId: "85a9c545-0485-f8a8-462f-1a3e7a822733" "git-plus": general: _analyticsUserId: "aadeeeb2-8399-43f5-ade4-1320792ca508" "ide-python": pylsPlugins: autopep8: enabled: false pycodestyle: enabled: false yapf: enabled: true "linter-pycodestyle": maxLineLength: 79 "linter-python": executablePath: "/home/nathanlim/anaconda3/bin/pylama" lintTrigger: "File saved or modified" withPyflakes: true "linter-ui-default": panelHeight: 300 "markdown-writer": fileExtension: ".md" renameImageOnCopy: true siteImagesDir: "images/" minimap: disablePythonDocLinks: true plugins: "highlight-selected": false "highlight-selectedDecorationsZIndex": 0 "platformio-ide-terminal": ansiColors: normal: blue: "#0433ff" cyan: "#00fdff" green: "#00f900" zBright: brightBlue: "#0433ff" core: autoRunCommand: "source ~/.bash_profile" scrollback: 1000000 customTexts: {} style: fontSize: "12" theme: "one-dark" toggles: {} "project-manager": includeGitRepositories: true "python-isort": checkOnSave: false "python-yapf": formatOnSave: true yapfStyle: "{based_on_style: google, column_limit: 119, indent_width: 4, use_tabs: False}" "remote-edit": foldersOnTop: true rememberLastOpenDirectory: true "remote-sync": {} "seti-ui": compactView: true "spell-check": grammars: [ "source.asciidoc" "source.gfm" "text.git-commit" "text.plain" "text.plain.null-grammar" "text.tex.latex" ] "split-diff": ignoreWhitespace: true leftEditorColor: "red" rightEditorColor: "green" scrollSyncType: "Vertical + Horizontal" syncHorizontalScroll: true "sync-settings": _lastBackupHash: "e3ec0169ccd5bf85ae017801144aa258fecbc238" gistId: "99272bb54638fb21daf0ddee2f5ef047" personalAccessToken: "<KEY>" "terminal-plus": core: {} style: theme: "solid-colors" "tree-view": {} welcome: showOnStartup: false
true
"*": "Remote-FTP": enableTransferNotifications: true "atom-beautify": general: _analyticsUserId: "27a113d1-a0aa-4c56-b86e-22db7d3efe16" python: sort_imports: true "atom-ide-ui": "atom-ide-terminal": allowTransparency: true brightCyan: "#419698" brightGreen: "#4f8f00" fontFamily: "SauceCodePro Nerd Mono Complete, Source Code, Hack" green: "#008f00" lineHeight: 1 "atom-material-ui": colors: abaseColor: "#2196f3" genAccent: true predefinedColor: "Blue" fonts: fontSize: 14 tabs: compactTabs: true noTabMinWidth: true tintedTabBar: true treeView: compactList: true ui: panelContrast: true panelShadows: true "atom-package-deps": ignored: [] "autocomplete-python": extraPaths: "/anaconda/lib/python3.6/site-packages;/anaconda/envs/dev/lib/python3.5/site-packages;/home/nathanlim/anaconda3/envs/dev/lib/python3.5/site-packages;/home/limn1/anaconda3/envs/dev/lib/python3.5/site-packages;/home/limn1/anaconda3/lib/python3.5/site-packages" pythonPaths: "/anaconda/bin/python;/home/nathanlim/anaconda3/envs/dev/bin/python;/anaconda/envs/dev/bin/python;/home/limn1/anaconda3/bin/python;/home/limn1/anaconda3/envs/dev/bin/python" useKite: false useSnippets: "required" core: allowPendingPaneItems: false disabledPackages: [ "markdown-preview" "language-gfm" "Hydrogen" "hydrogen-launcher" "hydrogen-python" "linter" ] packagesWithKeymapsDisabled: [] projectHome: "/Users/nathanlim/Github" telemetryConsent: "limited" editor: fontSize: 12 showIndentGuide: true showInvisibles: true softWrap: true tabLength: 4 "exception-reporting": userId: "85a9c545-0485-f8a8-462f-1a3e7a822733" "git-plus": general: _analyticsUserId: "aadeeeb2-8399-43f5-ade4-1320792ca508" "ide-python": pylsPlugins: autopep8: enabled: false pycodestyle: enabled: false yapf: enabled: true "linter-pycodestyle": maxLineLength: 79 "linter-python": executablePath: "/home/nathanlim/anaconda3/bin/pylama" lintTrigger: "File saved or modified" withPyflakes: true "linter-ui-default": panelHeight: 300 "markdown-writer": fileExtension: ".md" renameImageOnCopy: true siteImagesDir: "images/" minimap: disablePythonDocLinks: true plugins: "highlight-selected": false "highlight-selectedDecorationsZIndex": 0 "platformio-ide-terminal": ansiColors: normal: blue: "#0433ff" cyan: "#00fdff" green: "#00f900" zBright: brightBlue: "#0433ff" core: autoRunCommand: "source ~/.bash_profile" scrollback: 1000000 customTexts: {} style: fontSize: "12" theme: "one-dark" toggles: {} "project-manager": includeGitRepositories: true "python-isort": checkOnSave: false "python-yapf": formatOnSave: true yapfStyle: "{based_on_style: google, column_limit: 119, indent_width: 4, use_tabs: False}" "remote-edit": foldersOnTop: true rememberLastOpenDirectory: true "remote-sync": {} "seti-ui": compactView: true "spell-check": grammars: [ "source.asciidoc" "source.gfm" "text.git-commit" "text.plain" "text.plain.null-grammar" "text.tex.latex" ] "split-diff": ignoreWhitespace: true leftEditorColor: "red" rightEditorColor: "green" scrollSyncType: "Vertical + Horizontal" syncHorizontalScroll: true "sync-settings": _lastBackupHash: "e3ec0169ccd5bf85ae017801144aa258fecbc238" gistId: "99272bb54638fb21daf0ddee2f5ef047" personalAccessToken: "PI:KEY:<KEY>END_PI" "terminal-plus": core: {} style: theme: "solid-colors" "tree-view": {} welcome: showOnStartup: false
[ { "context": "dy DSL for Jison grammar generation, thanks to\n# [Tim Caswell](http://github.com/creationix). For every rule in", "end": 439, "score": 0.9949256777763367, "start": 428, "tag": "NAME", "value": "Tim Caswell" }, { "context": "tion, thanks to\n# [Tim Caswell](http://githu...
source/grammar_dsl.coffee
inductor-labs/hamlet-parser
18
# Jison DSL # --------- # The only dependency is on the **Jison.Parser**. {Parser} = require 'jison' # Since we're going to be wrapped in a function by Jison in any case, if our # action immediately returns a value, we can optimize by removing the function # wrapper and just returning the value directly. unwrap = /^function\s*\(\)\s*\{\s*return\s*([\s\S]*);\s*\}/ # Our handy DSL for Jison grammar generation, thanks to # [Tim Caswell](http://github.com/creationix). For every rule in the grammar, # we pass the pattern-defining string, the action to run, and extra options, # optionally. If no action is specified, we simply pass the value of the # previous nonterminal. node = (patternString, action, options) -> # Convert any series of two or more whitespace characters to a single space patternString = patternString.replace /\s{2,}/g, ' ' # If there is no action return the pattern string unless action return [patternString, '$$ = $1;', options] action = if match = unwrap.exec action then match[1] else "(#{action}())" # Count the patterns patternCount = patternString.split(' ').length [patternString, "$$ = #{action};", options] module.exports = node: node create: ({grammar, operators, startSymbol}) -> startSymbol ?= "root" # Finally, now that we have our **grammar** and our **operators**, we can create # our **Jison.Parser**. We do this by processing all of our rules, recording all # terminals (every symbol which does not appear as the name of a rule above) # as "tokens". tokens = [] for name, alternatives of grammar grammar[name] = for alt in alternatives for token in alt[0].split ' ' tokens.push token unless grammar[token] # !? alt[1] = "return #{alt[1]}" if name is startSymbol alt # Initialize the **Parser** with our list of terminal **tokens**, our **grammar** # rules, and the name of the root. Reverse the operators because Jison orders # precedence from low to high, and we have it high to low # (as in [Yacc](http://dinosaur.compilertools.net/yacc/index.html)). new Parser tokens: tokens.join ' ' bnf: grammar operators: operators.reverse() startSymbol: startSymbol
83295
# Jison DSL # --------- # The only dependency is on the **Jison.Parser**. {Parser} = require 'jison' # Since we're going to be wrapped in a function by Jison in any case, if our # action immediately returns a value, we can optimize by removing the function # wrapper and just returning the value directly. unwrap = /^function\s*\(\)\s*\{\s*return\s*([\s\S]*);\s*\}/ # Our handy DSL for Jison grammar generation, thanks to # [<NAME>](http://github.com/creationix). For every rule in the grammar, # we pass the pattern-defining string, the action to run, and extra options, # optionally. If no action is specified, we simply pass the value of the # previous nonterminal. node = (patternString, action, options) -> # Convert any series of two or more whitespace characters to a single space patternString = patternString.replace /\s{2,}/g, ' ' # If there is no action return the pattern string unless action return [patternString, '$$ = $1;', options] action = if match = unwrap.exec action then match[1] else "(#{action}())" # Count the patterns patternCount = patternString.split(' ').length [patternString, "$$ = #{action};", options] module.exports = node: node create: ({grammar, operators, startSymbol}) -> startSymbol ?= "root" # Finally, now that we have our **grammar** and our **operators**, we can create # our **Jison.Parser**. We do this by processing all of our rules, recording all # terminals (every symbol which does not appear as the name of a rule above) # as "tokens". tokens = [] for name, alternatives of grammar grammar[name] = for alt in alternatives for token in alt[0].split ' ' tokens.push token unless grammar[token] # !? alt[1] = "return #{alt[1]}" if name is startSymbol alt # Initialize the **Parser** with our list of terminal **tokens**, our **grammar** # rules, and the name of the root. Reverse the operators because Jison orders # precedence from low to high, and we have it high to low # (as in [Yacc](http://dinosaur.compilertools.net/yacc/index.html)). new Parser tokens: tokens.join ' ' bnf: grammar operators: operators.reverse() startSymbol: startSymbol
true
# Jison DSL # --------- # The only dependency is on the **Jison.Parser**. {Parser} = require 'jison' # Since we're going to be wrapped in a function by Jison in any case, if our # action immediately returns a value, we can optimize by removing the function # wrapper and just returning the value directly. unwrap = /^function\s*\(\)\s*\{\s*return\s*([\s\S]*);\s*\}/ # Our handy DSL for Jison grammar generation, thanks to # [PI:NAME:<NAME>END_PI](http://github.com/creationix). For every rule in the grammar, # we pass the pattern-defining string, the action to run, and extra options, # optionally. If no action is specified, we simply pass the value of the # previous nonterminal. node = (patternString, action, options) -> # Convert any series of two or more whitespace characters to a single space patternString = patternString.replace /\s{2,}/g, ' ' # If there is no action return the pattern string unless action return [patternString, '$$ = $1;', options] action = if match = unwrap.exec action then match[1] else "(#{action}())" # Count the patterns patternCount = patternString.split(' ').length [patternString, "$$ = #{action};", options] module.exports = node: node create: ({grammar, operators, startSymbol}) -> startSymbol ?= "root" # Finally, now that we have our **grammar** and our **operators**, we can create # our **Jison.Parser**. We do this by processing all of our rules, recording all # terminals (every symbol which does not appear as the name of a rule above) # as "tokens". tokens = [] for name, alternatives of grammar grammar[name] = for alt in alternatives for token in alt[0].split ' ' tokens.push token unless grammar[token] # !? alt[1] = "return #{alt[1]}" if name is startSymbol alt # Initialize the **Parser** with our list of terminal **tokens**, our **grammar** # rules, and the name of the root. Reverse the operators because Jison orders # precedence from low to high, and we have it high to low # (as in [Yacc](http://dinosaur.compilertools.net/yacc/index.html)). new Parser tokens: tokens.join ' ' bnf: grammar operators: operators.reverse() startSymbol: startSymbol
[ { "context": "rview Tests for no-mixed-operators rule.\n# @author Toru Nagashima\n###\n\n'use strict'\n\n#-----------------------------", "end": 80, "score": 0.9998511672019958, "start": 66, "tag": "NAME", "value": "Toru Nagashima" } ]
src/tests/rules/no-mixed-operators.coffee
danielbayley/eslint-plugin-coffee
21
###* # @fileoverview Tests for no-mixed-operators rule. # @author Toru Nagashima ### 'use strict' #------------------------------------------------------------------------------ # Requirements #------------------------------------------------------------------------------ rule = require '../../rules/no-mixed-operators' {RuleTester} = require 'eslint' path = require 'path' #------------------------------------------------------------------------------ # Tests #------------------------------------------------------------------------------ ruleTester = new RuleTester parser: path.join __dirname, '../../..' ruleTester.run 'no-mixed-operators', rule, valid: [ 'a && b && c && d' 'a and b and c and d' 'a and b && c and d' 'a || b || c || d' 'a or b or c or d' 'a or b or c || d' 'a ? b ? c ? d' '(a || b) && c && d' '(a or b) and c and d' 'a || (b && c && d)' 'a or (b and c and d)' '(a || b || c) && d' '(a or b or c) and d' '(a ? b ? c) and d' '(a or b or c) ? d' 'a || b || (c && d)' 'a or b or (c and d)' 'a or b or (c ? d)' 'a ? b ? (c and d)' 'a + b + c + d' 'a * b * c * d' 'a == 0 && b == 1' 'a is 0 and b is 1' 'a == 0 || b == 1' 'a is 0 or b is 1' , code: '(a == 0) && (b == 1)' options: [groups: [['&&', '==']]] , code: '(a is 0) and (b is 1)' options: [groups: [['and', 'is']]] , code: 'a + b - c * d / e' options: [groups: [['&&', '||']]] , 'a + b - c' 'a * b / c' , code: 'a + b - c' options: [allowSamePrecedence: yes] , code: 'a * b / c' options: [allowSamePrecedence: yes] ] invalid: [ code: 'a && b || c' errors: [ column: 3, message: "Unexpected mix of '&&' and '||'." , column: 8, message: "Unexpected mix of '&&' and '||'." ] , code: 'a and b or c' errors: [ column: 3, message: "Unexpected mix of 'and' and 'or'." , column: 9, message: "Unexpected mix of 'and' and 'or'." ] , code: 'a and b ? c' errors: [ column: 3, message: "Unexpected mix of 'and' and '?'." , column: 9, message: "Unexpected mix of 'and' and '?'." ] , code: 'a ? b || c' errors: [ column: 3, message: "Unexpected mix of '?' and '||'." , column: 7, message: "Unexpected mix of '?' and '||'." ] , code: 'a && b > 0 || c' options: [groups: [['&&', '||', '>']]] errors: [ column: 3, message: "Unexpected mix of '&&' and '||'." , column: 3, message: "Unexpected mix of '&&' and '>'." , column: 8, message: "Unexpected mix of '&&' and '>'." , column: 12, message: "Unexpected mix of '&&' and '||'." ] , , code: 'a and b > 0 or c' options: [groups: [['and', 'or', '>']]] errors: [ column: 3, message: "Unexpected mix of 'and' and 'or'." , column: 3, message: "Unexpected mix of 'and' and '>'." , column: 9, message: "Unexpected mix of 'and' and '>'." , column: 13, message: "Unexpected mix of 'and' and 'or'." ] , code: 'a && b > 0 || c' options: [groups: [['&&', '||']]] errors: [ column: 3, message: "Unexpected mix of '&&' and '||'." , column: 12, message: "Unexpected mix of '&&' and '||'." ] , code: 'a && b + c - d / e || f' options: [groups: [['&&', '||'], ['+', '-', '*', '/']]] errors: [ column: 3, message: "Unexpected mix of '&&' and '||'." , column: 12, message: "Unexpected mix of '-' and '/'." , column: 16, message: "Unexpected mix of '-' and '/'." , column: 20, message: "Unexpected mix of '&&' and '||'." ] , code: 'a && b + c - d / e || f' options: [ groups: [['&&', '||'], ['+', '-', '*', '/']], allowSamePrecedence: yes ] errors: [ column: 3, message: "Unexpected mix of '&&' and '||'." , column: 12, message: "Unexpected mix of '-' and '/'." , column: 16, message: "Unexpected mix of '-' and '/'." , column: 20, message: "Unexpected mix of '&&' and '||'." ] , code: 'a + b - c' options: [allowSamePrecedence: no] errors: [ column: 3, message: "Unexpected mix of '+' and '-'." , column: 7, message: "Unexpected mix of '+' and '-'." ] , code: 'a * b / c' options: [allowSamePrecedence: no] errors: [ column: 3, message: "Unexpected mix of '*' and '/'." , column: 7, message: "Unexpected mix of '*' and '/'." ] ]
9365
###* # @fileoverview Tests for no-mixed-operators rule. # @author <NAME> ### 'use strict' #------------------------------------------------------------------------------ # Requirements #------------------------------------------------------------------------------ rule = require '../../rules/no-mixed-operators' {RuleTester} = require 'eslint' path = require 'path' #------------------------------------------------------------------------------ # Tests #------------------------------------------------------------------------------ ruleTester = new RuleTester parser: path.join __dirname, '../../..' ruleTester.run 'no-mixed-operators', rule, valid: [ 'a && b && c && d' 'a and b and c and d' 'a and b && c and d' 'a || b || c || d' 'a or b or c or d' 'a or b or c || d' 'a ? b ? c ? d' '(a || b) && c && d' '(a or b) and c and d' 'a || (b && c && d)' 'a or (b and c and d)' '(a || b || c) && d' '(a or b or c) and d' '(a ? b ? c) and d' '(a or b or c) ? d' 'a || b || (c && d)' 'a or b or (c and d)' 'a or b or (c ? d)' 'a ? b ? (c and d)' 'a + b + c + d' 'a * b * c * d' 'a == 0 && b == 1' 'a is 0 and b is 1' 'a == 0 || b == 1' 'a is 0 or b is 1' , code: '(a == 0) && (b == 1)' options: [groups: [['&&', '==']]] , code: '(a is 0) and (b is 1)' options: [groups: [['and', 'is']]] , code: 'a + b - c * d / e' options: [groups: [['&&', '||']]] , 'a + b - c' 'a * b / c' , code: 'a + b - c' options: [allowSamePrecedence: yes] , code: 'a * b / c' options: [allowSamePrecedence: yes] ] invalid: [ code: 'a && b || c' errors: [ column: 3, message: "Unexpected mix of '&&' and '||'." , column: 8, message: "Unexpected mix of '&&' and '||'." ] , code: 'a and b or c' errors: [ column: 3, message: "Unexpected mix of 'and' and 'or'." , column: 9, message: "Unexpected mix of 'and' and 'or'." ] , code: 'a and b ? c' errors: [ column: 3, message: "Unexpected mix of 'and' and '?'." , column: 9, message: "Unexpected mix of 'and' and '?'." ] , code: 'a ? b || c' errors: [ column: 3, message: "Unexpected mix of '?' and '||'." , column: 7, message: "Unexpected mix of '?' and '||'." ] , code: 'a && b > 0 || c' options: [groups: [['&&', '||', '>']]] errors: [ column: 3, message: "Unexpected mix of '&&' and '||'." , column: 3, message: "Unexpected mix of '&&' and '>'." , column: 8, message: "Unexpected mix of '&&' and '>'." , column: 12, message: "Unexpected mix of '&&' and '||'." ] , , code: 'a and b > 0 or c' options: [groups: [['and', 'or', '>']]] errors: [ column: 3, message: "Unexpected mix of 'and' and 'or'." , column: 3, message: "Unexpected mix of 'and' and '>'." , column: 9, message: "Unexpected mix of 'and' and '>'." , column: 13, message: "Unexpected mix of 'and' and 'or'." ] , code: 'a && b > 0 || c' options: [groups: [['&&', '||']]] errors: [ column: 3, message: "Unexpected mix of '&&' and '||'." , column: 12, message: "Unexpected mix of '&&' and '||'." ] , code: 'a && b + c - d / e || f' options: [groups: [['&&', '||'], ['+', '-', '*', '/']]] errors: [ column: 3, message: "Unexpected mix of '&&' and '||'." , column: 12, message: "Unexpected mix of '-' and '/'." , column: 16, message: "Unexpected mix of '-' and '/'." , column: 20, message: "Unexpected mix of '&&' and '||'." ] , code: 'a && b + c - d / e || f' options: [ groups: [['&&', '||'], ['+', '-', '*', '/']], allowSamePrecedence: yes ] errors: [ column: 3, message: "Unexpected mix of '&&' and '||'." , column: 12, message: "Unexpected mix of '-' and '/'." , column: 16, message: "Unexpected mix of '-' and '/'." , column: 20, message: "Unexpected mix of '&&' and '||'." ] , code: 'a + b - c' options: [allowSamePrecedence: no] errors: [ column: 3, message: "Unexpected mix of '+' and '-'." , column: 7, message: "Unexpected mix of '+' and '-'." ] , code: 'a * b / c' options: [allowSamePrecedence: no] errors: [ column: 3, message: "Unexpected mix of '*' and '/'." , column: 7, message: "Unexpected mix of '*' and '/'." ] ]
true
###* # @fileoverview Tests for no-mixed-operators rule. # @author PI:NAME:<NAME>END_PI ### 'use strict' #------------------------------------------------------------------------------ # Requirements #------------------------------------------------------------------------------ rule = require '../../rules/no-mixed-operators' {RuleTester} = require 'eslint' path = require 'path' #------------------------------------------------------------------------------ # Tests #------------------------------------------------------------------------------ ruleTester = new RuleTester parser: path.join __dirname, '../../..' ruleTester.run 'no-mixed-operators', rule, valid: [ 'a && b && c && d' 'a and b and c and d' 'a and b && c and d' 'a || b || c || d' 'a or b or c or d' 'a or b or c || d' 'a ? b ? c ? d' '(a || b) && c && d' '(a or b) and c and d' 'a || (b && c && d)' 'a or (b and c and d)' '(a || b || c) && d' '(a or b or c) and d' '(a ? b ? c) and d' '(a or b or c) ? d' 'a || b || (c && d)' 'a or b or (c and d)' 'a or b or (c ? d)' 'a ? b ? (c and d)' 'a + b + c + d' 'a * b * c * d' 'a == 0 && b == 1' 'a is 0 and b is 1' 'a == 0 || b == 1' 'a is 0 or b is 1' , code: '(a == 0) && (b == 1)' options: [groups: [['&&', '==']]] , code: '(a is 0) and (b is 1)' options: [groups: [['and', 'is']]] , code: 'a + b - c * d / e' options: [groups: [['&&', '||']]] , 'a + b - c' 'a * b / c' , code: 'a + b - c' options: [allowSamePrecedence: yes] , code: 'a * b / c' options: [allowSamePrecedence: yes] ] invalid: [ code: 'a && b || c' errors: [ column: 3, message: "Unexpected mix of '&&' and '||'." , column: 8, message: "Unexpected mix of '&&' and '||'." ] , code: 'a and b or c' errors: [ column: 3, message: "Unexpected mix of 'and' and 'or'." , column: 9, message: "Unexpected mix of 'and' and 'or'." ] , code: 'a and b ? c' errors: [ column: 3, message: "Unexpected mix of 'and' and '?'." , column: 9, message: "Unexpected mix of 'and' and '?'." ] , code: 'a ? b || c' errors: [ column: 3, message: "Unexpected mix of '?' and '||'." , column: 7, message: "Unexpected mix of '?' and '||'." ] , code: 'a && b > 0 || c' options: [groups: [['&&', '||', '>']]] errors: [ column: 3, message: "Unexpected mix of '&&' and '||'." , column: 3, message: "Unexpected mix of '&&' and '>'." , column: 8, message: "Unexpected mix of '&&' and '>'." , column: 12, message: "Unexpected mix of '&&' and '||'." ] , , code: 'a and b > 0 or c' options: [groups: [['and', 'or', '>']]] errors: [ column: 3, message: "Unexpected mix of 'and' and 'or'." , column: 3, message: "Unexpected mix of 'and' and '>'." , column: 9, message: "Unexpected mix of 'and' and '>'." , column: 13, message: "Unexpected mix of 'and' and 'or'." ] , code: 'a && b > 0 || c' options: [groups: [['&&', '||']]] errors: [ column: 3, message: "Unexpected mix of '&&' and '||'." , column: 12, message: "Unexpected mix of '&&' and '||'." ] , code: 'a && b + c - d / e || f' options: [groups: [['&&', '||'], ['+', '-', '*', '/']]] errors: [ column: 3, message: "Unexpected mix of '&&' and '||'." , column: 12, message: "Unexpected mix of '-' and '/'." , column: 16, message: "Unexpected mix of '-' and '/'." , column: 20, message: "Unexpected mix of '&&' and '||'." ] , code: 'a && b + c - d / e || f' options: [ groups: [['&&', '||'], ['+', '-', '*', '/']], allowSamePrecedence: yes ] errors: [ column: 3, message: "Unexpected mix of '&&' and '||'." , column: 12, message: "Unexpected mix of '-' and '/'." , column: 16, message: "Unexpected mix of '-' and '/'." , column: 20, message: "Unexpected mix of '&&' and '||'." ] , code: 'a + b - c' options: [allowSamePrecedence: no] errors: [ column: 3, message: "Unexpected mix of '+' and '-'." , column: 7, message: "Unexpected mix of '+' and '-'." ] , code: 'a * b / c' options: [allowSamePrecedence: no] errors: [ column: 3, message: "Unexpected mix of '*' and '/'." , column: 7, message: "Unexpected mix of '*' and '/'." ] ]
[ { "context": "'Esquema del escenario:'\n 'Ejemplos:'\n 'Dado '\n 'Dada '\n 'Dados '\n 'Dadas '\n ", "end": 203, "score": 0.8380805253982544, "start": 199, "tag": "NAME", "value": "Dado" }, { "context": "scenario:'\n 'Ejemplos:'\n 'Dado '\n 'D...
settings/language-gherkin_es.cson
mackoj/language-gherkin-i18n
17
'.text.gherkin.feature.es': 'editor': 'completions': [ 'Característica:' 'Antecedentes:' 'Ejemplo:' 'Escenario:' 'Esquema del escenario:' 'Ejemplos:' 'Dado ' 'Dada ' 'Dados ' 'Dadas ' 'Cuando ' 'Entonces ' 'Pero ' 'Y ' 'E ' ] 'increaseIndentPattern': 'Ejemplo: .*' 'Escenario: .*' 'commentStart': '# '
63462
'.text.gherkin.feature.es': 'editor': 'completions': [ 'Característica:' 'Antecedentes:' 'Ejemplo:' 'Escenario:' 'Esquema del escenario:' 'Ejemplos:' '<NAME> ' '<NAME> ' 'Dados ' 'Dadas ' 'Cuando ' 'Entonces ' 'Pero ' 'Y ' 'E ' ] 'increaseIndentPattern': 'Ejemplo: .*' 'Escenario: .*' 'commentStart': '# '
true
'.text.gherkin.feature.es': 'editor': 'completions': [ 'Característica:' 'Antecedentes:' 'Ejemplo:' 'Escenario:' 'Esquema del escenario:' 'Ejemplos:' 'PI:NAME:<NAME>END_PI ' 'PI:NAME:<NAME>END_PI ' 'Dados ' 'Dadas ' 'Cuando ' 'Entonces ' 'Pero ' 'Y ' 'E ' ] 'increaseIndentPattern': 'Ejemplo: .*' 'Escenario: .*' 'commentStart': '# '
[ { "context": " : 'Formline--half'\n placeholder : 'firstname'\n name : 'firstName'\n l", "end": 2192, "score": 0.8146111965179443, "start": 2183, "tag": "NAME", "value": "firstname" }, { "context": "er : 'firstname'\n name ...
client/account/lib/views/accounteditusername.coffee
ezgikaysi/koding
1
kd = require 'kd' KDButtonView = kd.ButtonView KDCustomHTMLView = kd.CustomHTMLView KDFormViewWithFields = kd.FormViewWithFields KDInputView = kd.InputView KDNotificationView = kd.NotificationView remote = require('app/remote').getInstance() s3upload = require 'app/util/s3upload' whoami = require 'app/util/whoami' isKoding = require 'app/util/isKoding' showError = require 'app/util/showError' JView = require 'app/jview' AvatarStaticView = require 'app/commonviews/avatarviews/avatarstaticview' Encoder = require 'htmlencode' VerifyPINModal = require 'app/commonviews/verifypinmodal' VerifyPasswordModal = require 'app/commonviews/verifypasswordmodal' async = require 'async' KodingSwitch = require 'app/commonviews/kodingswitch' module.exports = class AccountEditUsername extends JView notify = (msg, duration = 2000) -> new KDNotificationView title : msg duration : duration constructor: (options = {}, data) -> super options, data @initViews() initViews: -> @account = whoami() @avatar = new AvatarStaticView @getAvatarOptions(), @account @uploadAvatarBtn = new KDButtonView style : 'solid small green' cssClass : 'upload-avatar' title : 'Upload Image' loader : yes @uploadAvatarInput = new KDInputView type : 'file' cssClass : 'AppModal--account-avatarArea-buttons-upload' change : @bound 'uploadInputChange' attributes : accept : 'image/*' @useGravatarBtn = new KDButtonView style : 'solid small gray' cssClass : 'use-gravatar' title : 'Use Gravatar' loader : yes callback : => @account.modify { 'profile.avatar' : '' }, (err) => console.warn err if err @useGravatarBtn.hideLoader() @userProfileFormFields = firstName : cssClass : 'Formline--half' placeholder : 'firstname' name : 'firstName' label : 'Name' lastName : cssClass : 'Formline--half' placeholder : 'lastname' name : 'lastName' label : 'Last name' email : cssClass : 'Formline--half' placeholder : 'you@yourdomain.com' name : 'email' testPath : 'account-email-input' label : 'Email' username : cssClass : 'Formline--half' placeholder : 'username' name : 'username' label : 'Username' attributes : readonly : "#{not /^guest-/.test @account.profile.nickname}" testPath : 'account-username-input' verifyEmail : itemClass : KDCustomHTMLView tagName : 'a' partial : "You didn't verify your email yet <span>Verify now</span>" cssClass : 'hidden action-link verify-email' testPath : 'account-email-edit' click : @bound 'verifyUserEmail' passwordHeader : itemClass : KDCustomHTMLView partial : 'CHANGE PASSWORD' cssClass : 'AppModal-sectionHeader' password : cssClass : 'Formline--half' placeholder : 'password' name : 'password' type : 'password' label : 'Password' confirm : cssClass : 'Formline--half' placeholder : 'confirm password' name : 'confirmPassword' type : 'password' label : 'Password (again)' if isKoding() @userProfileFormFields.locationHeader = itemClass : KDCustomHTMLView partial : 'LOCATION SERVICES' cssClass : 'AppModal-sectionHeader' @userProfileFormFields.shareLocationLabel = itemClass : KDCustomHTMLView partial : 'Share my location when I post on a #channel' tagName : 'ul' cssClass : 'AppModal--account-switchList left-aligned' name : 'shareLocationLabel' nextElement : shareLocation : defaultValue : whoami().shareLocation itemClass : KodingSwitch #cssClass : 'AppModal--account-switchList' name : 'shareLocation' @userProfileForm = new KDFormViewWithFields cssClass : 'AppModal-form' fields : @userProfileFormFields buttons : Save : title : 'Save Changes' type : 'submit' style : 'solid green small' loader : yes callback : @bound 'update' uploadInputChange: -> @uploadAvatarBtn.showLoader() file = @uploadAvatarInput.getElement().files[0] return @uploadAvatarBtn.hideLoader() unless file mimeType = file.type reader = new FileReader reader.onload = (event) => dataURL = event.target.result [_, base64] = dataURL.split ',' @uploadAvatar mimeType : mimeType content : file , => @uploadAvatarBtn.hideLoader() reader.readAsDataURL file uploadAvatar: (avatar, callback) -> { mimeType, content } = avatar s3upload name : "avatar-#{Date.now()}" content : content mimeType: mimeType timeout : 30000 , (err, url) => @uploadAvatarBtn.hideLoader() return showError err if err @account.modify { 'profile.avatar': "#{url}" } update: (formData) -> { JUser } = remote.api { email, password, confirmPassword, firstName, lastName, username, shareLocation } = formData skipPasswordConfirmation = no queue = [ (next) -> # update firstname and lastname me = whoami() me.modify { 'profile.firstName': firstName, 'profile.lastName' : lastName 'shareLocation' : formData.shareLocation }, (err) -> return next err.message if err me.shareLocation = formData.shareLocation next() (next) => return next() if email is @userInfo.email options = { skipPasswordConfirmation, email } @confirmCurrentPassword options, (err) => return next err if err JUser.changeEmail { email }, (err, result) => return next err.message if err skipPasswordConfirmation = true modal = new VerifyPINModal 'Update E-Mail', (pin) => remote.api.JUser.changeEmail { email, pin }, (err) => return next err.message if err @userInfo.email = email next() modal.once 'ModalCancelled', -> next 'cancelled' (next) => # on third turn update password # check for password confirmation if password isnt confirmPassword return next 'Passwords did not match' #check passworg lenght if password isnt '' and password.length < 8 return next 'Passwords should be at least 8 characters' # if password is empty than discard operation if password is '' { token } = kd.utils.parseQuery() return next 'You should set your password' if token return next() JUser.fetchUser (err, user) => return next 'An error occurred' if err skipPasswordConfirmation = true if user.passwordStatus isnt 'valid' @confirmCurrentPassword { skipPasswordConfirmation }, (err) => return next err if err JUser.changePassword password, (err, docs) => @userProfileForm.inputs.password.setValue '' @userProfileForm.inputs.confirm.setValue '' if err return next() if err.message is 'PasswordIsSame' return next err.message return next() (next) -> notify 'Your account information is updated.' next() ] async.series queue, (err) => notify err if err and err isnt 'cancelled' @hideSaveButtonLoader() verifyUserEmail: -> { email } = @userInfo { nickname, firstName, lastName } = @account.profile notify = (message) -> new KDNotificationView title : message duration : 3500 remote.api.JUser.verifyByPin { resendIfExists: yes }, (err) => @userProfileForm.fields.verifyEmail.hide() @userProfileForm.inputs.verifyEmail.hide() return showError err if err notify "We've sent you a confirmation mail.", 3500 confirmCurrentPassword: (opts, callback) -> { skipPasswordConfirmation, email } = opts return callback null if skipPasswordConfirmation modal = new VerifyPasswordModal 'Confirm', '', (currentPassword) -> options = { password: currentPassword, email } remote.api.JUser.verifyPassword options, (err, confirmed) -> return callback err.message if err return callback 'Current password cannot be confirmed' unless confirmed callback null @hideSaveButtonLoader() viewAppended: -> { JPasswordRecovery, JUser } = remote.api { token } = kd.utils.parseQuery() if token JPasswordRecovery.validate token, (err, isValid) -> if err and err.short isnt 'redeemed_token' notify err.message else if isValid notify 'Thanks for confirming your email address' kd.singletons.mainController.ready => whoami().fetchEmailAndStatus (err, userInfo) => return kd.warn err if err @userInfo = userInfo super @putDefaults() putDefaults: -> { email } = @userInfo { nickname, firstName, lastName } = @account.profile @userProfileForm.inputs.email.setDefaultValue Encoder.htmlDecode email @userProfileForm.inputs.username.setDefaultValue Encoder.htmlDecode nickname @userProfileForm.inputs.firstName.setDefaultValue Encoder.htmlDecode firstName @userProfileForm.inputs.lastName.setDefaultValue Encoder.htmlDecode lastName if isKoding() @userProfileForm.inputs.shareLocation.setDefaultValue whoami().shareLocation { focus } = kd.utils.parseQuery() @userProfileForm.inputs[focus]?.setFocus() if focus notify = (message) -> new KDNotificationView title : message duration : 3500 if @userInfo.status is 'unconfirmed' @userProfileForm.fields.verifyEmail.show() @userProfileForm.inputs.verifyEmail.show() @userProfileForm.inputs.firstName.setFocus() getAvatarOptions: -> tagName : 'figure' cssClass : 'AppModal--account-avatar' size : width : 95 height : 95 hideSaveButtonLoader: -> @userProfileForm.buttons.Save.hideLoader() pistachio: -> """ <div class='AppModal--account-avatarArea clearfix'> {{> @avatar}} <div class="AppModal--account-avatarArea-buttons"> {{> @uploadAvatarBtn}} {{> @uploadAvatarInput}} {{> @useGravatarBtn}} </div> </div> {{> @userProfileForm}} """
166521
kd = require 'kd' KDButtonView = kd.ButtonView KDCustomHTMLView = kd.CustomHTMLView KDFormViewWithFields = kd.FormViewWithFields KDInputView = kd.InputView KDNotificationView = kd.NotificationView remote = require('app/remote').getInstance() s3upload = require 'app/util/s3upload' whoami = require 'app/util/whoami' isKoding = require 'app/util/isKoding' showError = require 'app/util/showError' JView = require 'app/jview' AvatarStaticView = require 'app/commonviews/avatarviews/avatarstaticview' Encoder = require 'htmlencode' VerifyPINModal = require 'app/commonviews/verifypinmodal' VerifyPasswordModal = require 'app/commonviews/verifypasswordmodal' async = require 'async' KodingSwitch = require 'app/commonviews/kodingswitch' module.exports = class AccountEditUsername extends JView notify = (msg, duration = 2000) -> new KDNotificationView title : msg duration : duration constructor: (options = {}, data) -> super options, data @initViews() initViews: -> @account = whoami() @avatar = new AvatarStaticView @getAvatarOptions(), @account @uploadAvatarBtn = new KDButtonView style : 'solid small green' cssClass : 'upload-avatar' title : 'Upload Image' loader : yes @uploadAvatarInput = new KDInputView type : 'file' cssClass : 'AppModal--account-avatarArea-buttons-upload' change : @bound 'uploadInputChange' attributes : accept : 'image/*' @useGravatarBtn = new KDButtonView style : 'solid small gray' cssClass : 'use-gravatar' title : 'Use Gravatar' loader : yes callback : => @account.modify { 'profile.avatar' : '' }, (err) => console.warn err if err @useGravatarBtn.hideLoader() @userProfileFormFields = firstName : cssClass : 'Formline--half' placeholder : '<NAME>' name : '<NAME>' label : 'Name' lastName : cssClass : 'Formline--half' placeholder : '<NAME>' name : '<NAME>' label : 'Last name' email : cssClass : 'Formline--half' placeholder : '<EMAIL>' name : 'email' testPath : 'account-email-input' label : 'Email' username : cssClass : 'Formline--half' placeholder : 'username' name : 'username' label : '<NAME>' attributes : readonly : "#{not /^guest-/.test @account.profile.nickname}" testPath : 'account-username-input' verifyEmail : itemClass : KDCustomHTMLView tagName : 'a' partial : "You didn't verify your email yet <span>Verify now</span>" cssClass : 'hidden action-link verify-email' testPath : 'account-email-edit' click : @bound 'verifyUserEmail' passwordHeader : itemClass : KDCustomHTMLView partial : 'CHANGE PASSWORD' cssClass : 'AppModal-sectionHeader' password : cssClass : 'Formline--half' placeholder : '<PASSWORD>' name : 'password' type : 'password' label : 'Password' confirm : cssClass : 'Formline--half' placeholder : '<PASSWORD> password' name : 'confirmPassword' type : 'password' label : 'Password (again)' if isKoding() @userProfileFormFields.locationHeader = itemClass : KDCustomHTMLView partial : 'LOCATION SERVICES' cssClass : 'AppModal-sectionHeader' @userProfileFormFields.shareLocationLabel = itemClass : KDCustomHTMLView partial : 'Share my location when I post on a #channel' tagName : 'ul' cssClass : 'AppModal--account-switchList left-aligned' name : 'shareLocationLabel' nextElement : shareLocation : defaultValue : whoami().shareLocation itemClass : KodingSwitch #cssClass : 'AppModal--account-switchList' name : 'shareLocation' @userProfileForm = new KDFormViewWithFields cssClass : 'AppModal-form' fields : @userProfileFormFields buttons : Save : title : 'Save Changes' type : 'submit' style : 'solid green small' loader : yes callback : @bound 'update' uploadInputChange: -> @uploadAvatarBtn.showLoader() file = @uploadAvatarInput.getElement().files[0] return @uploadAvatarBtn.hideLoader() unless file mimeType = file.type reader = new FileReader reader.onload = (event) => dataURL = event.target.result [_, base64] = dataURL.split ',' @uploadAvatar mimeType : mimeType content : file , => @uploadAvatarBtn.hideLoader() reader.readAsDataURL file uploadAvatar: (avatar, callback) -> { mimeType, content } = avatar s3upload name : "avatar-#{Date.now()}" content : content mimeType: mimeType timeout : 30000 , (err, url) => @uploadAvatarBtn.hideLoader() return showError err if err @account.modify { 'profile.avatar': "#{url}" } update: (formData) -> { JUser } = remote.api { email, password, confirmPassword, firstName, lastName, username, shareLocation } = formData skipPasswordConfirmation = no queue = [ (next) -> # update firstname and lastname me = whoami() me.modify { 'profile.firstName': <NAME>, 'profile.lastName' : lastName 'shareLocation' : formData.shareLocation }, (err) -> return next err.message if err me.shareLocation = formData.shareLocation next() (next) => return next() if email is @userInfo.email options = { skipPasswordConfirmation, email } @confirmCurrentPassword options, (err) => return next err if err JUser.changeEmail { email }, (err, result) => return next err.message if err skipPasswordConfirmation = true modal = new VerifyPINModal 'Update E-Mail', (pin) => remote.api.JUser.changeEmail { email, pin }, (err) => return next err.message if err @userInfo.email = email next() modal.once 'ModalCancelled', -> next 'cancelled' (next) => # on third turn update password # check for password confirmation if password isnt confirmPassword return next 'Passwords did not match' #check passworg lenght if password isnt '' and password.length < 8 return next 'Passwords should be at least 8 characters' # if password is empty than discard operation if password is '' { token } = kd.utils.parseQuery() return next 'You should set your password' if token return next() JUser.fetchUser (err, user) => return next 'An error occurred' if err skipPasswordConfirmation = true if user.passwordStatus isnt 'valid' @confirmCurrentPassword { skipPasswordConfirmation }, (err) => return next err if err JUser.changePassword password, (err, docs) => @userProfileForm.inputs.password.setValue '' @userProfileForm.inputs.confirm.setValue '' if err return next() if err.message is 'PasswordIsSame' return next err.message return next() (next) -> notify 'Your account information is updated.' next() ] async.series queue, (err) => notify err if err and err isnt 'cancelled' @hideSaveButtonLoader() verifyUserEmail: -> { email } = @userInfo { nickname, <NAME>, <NAME> } = @account.profile notify = (message) -> new KDNotificationView title : message duration : 3500 remote.api.JUser.verifyByPin { resendIfExists: yes }, (err) => @userProfileForm.fields.verifyEmail.hide() @userProfileForm.inputs.verifyEmail.hide() return showError err if err notify "We've sent you a confirmation mail.", 3500 confirmCurrentPassword: (opts, callback) -> { skipPasswordConfirmation, email } = opts return callback null if skipPasswordConfirmation modal = new VerifyPasswordModal 'Confirm', '', (currentPassword) -> options = { password: <PASSWORD>, email } remote.api.JUser.verifyPassword options, (err, confirmed) -> return callback err.message if err return callback 'Current password cannot be confirmed' unless confirmed callback null @hideSaveButtonLoader() viewAppended: -> { JPasswordRecovery, JUser } = remote.api { token } = kd.utils.parseQuery() if token JPasswordRecovery.validate token, (err, isValid) -> if err and err.short isnt 'redeemed_token' notify err.message else if isValid notify 'Thanks for confirming your email address' kd.singletons.mainController.ready => whoami().fetchEmailAndStatus (err, userInfo) => return kd.warn err if err @userInfo = userInfo super @putDefaults() putDefaults: -> { email } = @userInfo { nickname, firstName, lastName } = @account.profile @userProfileForm.inputs.email.setDefaultValue Encoder.htmlDecode email @userProfileForm.inputs.username.setDefaultValue Encoder.htmlDecode nickname @userProfileForm.inputs.firstName.setDefaultValue Encoder.htmlDecode firstName @userProfileForm.inputs.lastName.setDefaultValue Encoder.htmlDecode lastName if isKoding() @userProfileForm.inputs.shareLocation.setDefaultValue whoami().shareLocation { focus } = kd.utils.parseQuery() @userProfileForm.inputs[focus]?.setFocus() if focus notify = (message) -> new KDNotificationView title : message duration : 3500 if @userInfo.status is 'unconfirmed' @userProfileForm.fields.verifyEmail.show() @userProfileForm.inputs.verifyEmail.show() @userProfileForm.inputs.firstName.setFocus() getAvatarOptions: -> tagName : 'figure' cssClass : 'AppModal--account-avatar' size : width : 95 height : 95 hideSaveButtonLoader: -> @userProfileForm.buttons.Save.hideLoader() pistachio: -> """ <div class='AppModal--account-avatarArea clearfix'> {{> @avatar}} <div class="AppModal--account-avatarArea-buttons"> {{> @uploadAvatarBtn}} {{> @uploadAvatarInput}} {{> @useGravatarBtn}} </div> </div> {{> @userProfileForm}} """
true
kd = require 'kd' KDButtonView = kd.ButtonView KDCustomHTMLView = kd.CustomHTMLView KDFormViewWithFields = kd.FormViewWithFields KDInputView = kd.InputView KDNotificationView = kd.NotificationView remote = require('app/remote').getInstance() s3upload = require 'app/util/s3upload' whoami = require 'app/util/whoami' isKoding = require 'app/util/isKoding' showError = require 'app/util/showError' JView = require 'app/jview' AvatarStaticView = require 'app/commonviews/avatarviews/avatarstaticview' Encoder = require 'htmlencode' VerifyPINModal = require 'app/commonviews/verifypinmodal' VerifyPasswordModal = require 'app/commonviews/verifypasswordmodal' async = require 'async' KodingSwitch = require 'app/commonviews/kodingswitch' module.exports = class AccountEditUsername extends JView notify = (msg, duration = 2000) -> new KDNotificationView title : msg duration : duration constructor: (options = {}, data) -> super options, data @initViews() initViews: -> @account = whoami() @avatar = new AvatarStaticView @getAvatarOptions(), @account @uploadAvatarBtn = new KDButtonView style : 'solid small green' cssClass : 'upload-avatar' title : 'Upload Image' loader : yes @uploadAvatarInput = new KDInputView type : 'file' cssClass : 'AppModal--account-avatarArea-buttons-upload' change : @bound 'uploadInputChange' attributes : accept : 'image/*' @useGravatarBtn = new KDButtonView style : 'solid small gray' cssClass : 'use-gravatar' title : 'Use Gravatar' loader : yes callback : => @account.modify { 'profile.avatar' : '' }, (err) => console.warn err if err @useGravatarBtn.hideLoader() @userProfileFormFields = firstName : cssClass : 'Formline--half' placeholder : 'PI:NAME:<NAME>END_PI' name : 'PI:NAME:<NAME>END_PI' label : 'Name' lastName : cssClass : 'Formline--half' placeholder : 'PI:NAME:<NAME>END_PI' name : 'PI:NAME:<NAME>END_PI' label : 'Last name' email : cssClass : 'Formline--half' placeholder : 'PI:EMAIL:<EMAIL>END_PI' name : 'email' testPath : 'account-email-input' label : 'Email' username : cssClass : 'Formline--half' placeholder : 'username' name : 'username' label : 'PI:NAME:<NAME>END_PI' attributes : readonly : "#{not /^guest-/.test @account.profile.nickname}" testPath : 'account-username-input' verifyEmail : itemClass : KDCustomHTMLView tagName : 'a' partial : "You didn't verify your email yet <span>Verify now</span>" cssClass : 'hidden action-link verify-email' testPath : 'account-email-edit' click : @bound 'verifyUserEmail' passwordHeader : itemClass : KDCustomHTMLView partial : 'CHANGE PASSWORD' cssClass : 'AppModal-sectionHeader' password : cssClass : 'Formline--half' placeholder : 'PI:PASSWORD:<PASSWORD>END_PI' name : 'password' type : 'password' label : 'Password' confirm : cssClass : 'Formline--half' placeholder : 'PI:PASSWORD:<PASSWORD>END_PI password' name : 'confirmPassword' type : 'password' label : 'Password (again)' if isKoding() @userProfileFormFields.locationHeader = itemClass : KDCustomHTMLView partial : 'LOCATION SERVICES' cssClass : 'AppModal-sectionHeader' @userProfileFormFields.shareLocationLabel = itemClass : KDCustomHTMLView partial : 'Share my location when I post on a #channel' tagName : 'ul' cssClass : 'AppModal--account-switchList left-aligned' name : 'shareLocationLabel' nextElement : shareLocation : defaultValue : whoami().shareLocation itemClass : KodingSwitch #cssClass : 'AppModal--account-switchList' name : 'shareLocation' @userProfileForm = new KDFormViewWithFields cssClass : 'AppModal-form' fields : @userProfileFormFields buttons : Save : title : 'Save Changes' type : 'submit' style : 'solid green small' loader : yes callback : @bound 'update' uploadInputChange: -> @uploadAvatarBtn.showLoader() file = @uploadAvatarInput.getElement().files[0] return @uploadAvatarBtn.hideLoader() unless file mimeType = file.type reader = new FileReader reader.onload = (event) => dataURL = event.target.result [_, base64] = dataURL.split ',' @uploadAvatar mimeType : mimeType content : file , => @uploadAvatarBtn.hideLoader() reader.readAsDataURL file uploadAvatar: (avatar, callback) -> { mimeType, content } = avatar s3upload name : "avatar-#{Date.now()}" content : content mimeType: mimeType timeout : 30000 , (err, url) => @uploadAvatarBtn.hideLoader() return showError err if err @account.modify { 'profile.avatar': "#{url}" } update: (formData) -> { JUser } = remote.api { email, password, confirmPassword, firstName, lastName, username, shareLocation } = formData skipPasswordConfirmation = no queue = [ (next) -> # update firstname and lastname me = whoami() me.modify { 'profile.firstName': PI:NAME:<NAME>END_PI, 'profile.lastName' : lastName 'shareLocation' : formData.shareLocation }, (err) -> return next err.message if err me.shareLocation = formData.shareLocation next() (next) => return next() if email is @userInfo.email options = { skipPasswordConfirmation, email } @confirmCurrentPassword options, (err) => return next err if err JUser.changeEmail { email }, (err, result) => return next err.message if err skipPasswordConfirmation = true modal = new VerifyPINModal 'Update E-Mail', (pin) => remote.api.JUser.changeEmail { email, pin }, (err) => return next err.message if err @userInfo.email = email next() modal.once 'ModalCancelled', -> next 'cancelled' (next) => # on third turn update password # check for password confirmation if password isnt confirmPassword return next 'Passwords did not match' #check passworg lenght if password isnt '' and password.length < 8 return next 'Passwords should be at least 8 characters' # if password is empty than discard operation if password is '' { token } = kd.utils.parseQuery() return next 'You should set your password' if token return next() JUser.fetchUser (err, user) => return next 'An error occurred' if err skipPasswordConfirmation = true if user.passwordStatus isnt 'valid' @confirmCurrentPassword { skipPasswordConfirmation }, (err) => return next err if err JUser.changePassword password, (err, docs) => @userProfileForm.inputs.password.setValue '' @userProfileForm.inputs.confirm.setValue '' if err return next() if err.message is 'PasswordIsSame' return next err.message return next() (next) -> notify 'Your account information is updated.' next() ] async.series queue, (err) => notify err if err and err isnt 'cancelled' @hideSaveButtonLoader() verifyUserEmail: -> { email } = @userInfo { nickname, PI:NAME:<NAME>END_PI, PI:NAME:<NAME>END_PI } = @account.profile notify = (message) -> new KDNotificationView title : message duration : 3500 remote.api.JUser.verifyByPin { resendIfExists: yes }, (err) => @userProfileForm.fields.verifyEmail.hide() @userProfileForm.inputs.verifyEmail.hide() return showError err if err notify "We've sent you a confirmation mail.", 3500 confirmCurrentPassword: (opts, callback) -> { skipPasswordConfirmation, email } = opts return callback null if skipPasswordConfirmation modal = new VerifyPasswordModal 'Confirm', '', (currentPassword) -> options = { password: PI:PASSWORD:<PASSWORD>END_PI, email } remote.api.JUser.verifyPassword options, (err, confirmed) -> return callback err.message if err return callback 'Current password cannot be confirmed' unless confirmed callback null @hideSaveButtonLoader() viewAppended: -> { JPasswordRecovery, JUser } = remote.api { token } = kd.utils.parseQuery() if token JPasswordRecovery.validate token, (err, isValid) -> if err and err.short isnt 'redeemed_token' notify err.message else if isValid notify 'Thanks for confirming your email address' kd.singletons.mainController.ready => whoami().fetchEmailAndStatus (err, userInfo) => return kd.warn err if err @userInfo = userInfo super @putDefaults() putDefaults: -> { email } = @userInfo { nickname, firstName, lastName } = @account.profile @userProfileForm.inputs.email.setDefaultValue Encoder.htmlDecode email @userProfileForm.inputs.username.setDefaultValue Encoder.htmlDecode nickname @userProfileForm.inputs.firstName.setDefaultValue Encoder.htmlDecode firstName @userProfileForm.inputs.lastName.setDefaultValue Encoder.htmlDecode lastName if isKoding() @userProfileForm.inputs.shareLocation.setDefaultValue whoami().shareLocation { focus } = kd.utils.parseQuery() @userProfileForm.inputs[focus]?.setFocus() if focus notify = (message) -> new KDNotificationView title : message duration : 3500 if @userInfo.status is 'unconfirmed' @userProfileForm.fields.verifyEmail.show() @userProfileForm.inputs.verifyEmail.show() @userProfileForm.inputs.firstName.setFocus() getAvatarOptions: -> tagName : 'figure' cssClass : 'AppModal--account-avatar' size : width : 95 height : 95 hideSaveButtonLoader: -> @userProfileForm.buttons.Save.hideLoader() pistachio: -> """ <div class='AppModal--account-avatarArea clearfix'> {{> @avatar}} <div class="AppModal--account-avatarArea-buttons"> {{> @uploadAvatarBtn}} {{> @uploadAvatarInput}} {{> @useGravatarBtn}} </div> </div> {{> @userProfileForm}} """
[ { "context": "te: 'Webseite'\n facebook: 'Facebook'\n twitter: 'Twitter'\n beschreibung: 'Beschreibung'\n\n\n 'Reiniciar fi", "end": 564, "score": 0.5676694512367249, "start": 557, "tag": "NAME", "value": "Twitter" } ]
vendor/scripts/t9n/de.coffee
softwarerero/paginasamarillas
0
de = t9nLanguage: 'Deutsch' app: title: 'Gelbe Seiten' filtro: 'Filter' home: 'Start' preise: 'Preise' entwicklung: 'Entwicklung ' preise: text: 'Alle Preise verstehen sich in Guarani zuzüglich aktuell gültiger paraguayischer Umsatzsteuer (IVA), dies entspricht 10% im Oktober 2014.' preis1: 'Anzeige für ein Jahr: 300.000' branche: 'Branche' stadt: 'Stadt' name: 'Name' adresse: 'Adresse' telefon1: 'Telefon' telefon2: 'Telefon' email: 'E-Mail' webseite: 'Webseite' facebook: 'Facebook' twitter: 'Twitter' beschreibung: 'Beschreibung' 'Reiniciar filtro': 'Filter zurücksetzen' 'empresas encontradas.': 'Firmen gefunden.' noResults: 'Nichts gefunden.' 'Más': 'Mehr' T9n.map "de", de
204370
de = t9nLanguage: 'Deutsch' app: title: 'Gelbe Seiten' filtro: 'Filter' home: 'Start' preise: 'Preise' entwicklung: 'Entwicklung ' preise: text: 'Alle Preise verstehen sich in Guarani zuzüglich aktuell gültiger paraguayischer Umsatzsteuer (IVA), dies entspricht 10% im Oktober 2014.' preis1: 'Anzeige für ein Jahr: 300.000' branche: 'Branche' stadt: 'Stadt' name: 'Name' adresse: 'Adresse' telefon1: 'Telefon' telefon2: 'Telefon' email: 'E-Mail' webseite: 'Webseite' facebook: 'Facebook' twitter: '<NAME>' beschreibung: 'Beschreibung' 'Reiniciar filtro': 'Filter zurücksetzen' 'empresas encontradas.': 'Firmen gefunden.' noResults: 'Nichts gefunden.' 'Más': 'Mehr' T9n.map "de", de
true
de = t9nLanguage: 'Deutsch' app: title: 'Gelbe Seiten' filtro: 'Filter' home: 'Start' preise: 'Preise' entwicklung: 'Entwicklung ' preise: text: 'Alle Preise verstehen sich in Guarani zuzüglich aktuell gültiger paraguayischer Umsatzsteuer (IVA), dies entspricht 10% im Oktober 2014.' preis1: 'Anzeige für ein Jahr: 300.000' branche: 'Branche' stadt: 'Stadt' name: 'Name' adresse: 'Adresse' telefon1: 'Telefon' telefon2: 'Telefon' email: 'E-Mail' webseite: 'Webseite' facebook: 'Facebook' twitter: 'PI:NAME:<NAME>END_PI' beschreibung: 'Beschreibung' 'Reiniciar filtro': 'Filter zurücksetzen' 'empresas encontradas.': 'Firmen gefunden.' noResults: 'Nichts gefunden.' 'Más': 'Mehr' T9n.map "de", de
[ { "context": " depending on how this evolves\n function_key: 'bioactivities'\n function_link: true\n execute_on_render: t", "end": 8162, "score": 0.9759114980697632, "start": 8149, "tag": "KEY", "value": "bioactivities" } ]
src/glados/static/coffee/models/Target.coffee
BNext-IQT/glados-frontend-chembl-main-interface
33
Target = Backbone.Model.extend(DownloadModelOrCollectionExt).extend entityName: 'Target' entityNamePlural: 'Targets' idAttribute: 'target_chembl_id' defaults: fetch_from_elastic: true initialize: -> @on 'change', @getProteinTargetClassification, @ @initURL() initURL: -> id = @get('id') id ?= @get('target_chembl_id') @set('id', id) @set('target_chembl_id', id) if @get('fetch_from_elastic') @url = "#{glados.Settings.ES_PROXY_API_BASE_URL}/es_data/get_es_document/#{Target.ES_INDEX}/#{id}" else @url = glados.Settings.WS_BASE_URL + 'target/' + id + '.json' getProteinTargetClassification: -> target_components = @get('target_components') if target_components? and !@get('protein_classifications_loaded') @set('protein_classifications', {}, {silent:true}) target = @ # step 1: I get the component id of each of the target components for comp in target_components component_id = comp['component_id'] comp_url = glados.Settings.WS_BASE_URL + 'target_component/' + component_id + '.json' # step 2: I request the details of the current component $.get(comp_url).done( (data) -> protein_classifications = data['protein_classifications'] for prot_class in protein_classifications prot_class_id = prot_class['protein_classification_id'] # step 3: Now that I got the protein class id, I need to check if it is already there, it can be repeated # so I will only make a call when necessary prot_class_dict = target.get('protein_classifications') if !prot_class_dict[prot_class_id]? # I don't have that protein classification, So I need to add it to the dictionary and make a # call to get the details prot_class_dict[prot_class_id] = "" prot_class_url = glados.Settings.WS_BASE_URL + 'protein_class/' + prot_class_id + '.json' $.get(prot_class_url).done( (data) -> # now that I have the data I save it prot_class_dict[data['protein_class_id']] = ( data['l' + num] for num in [1..8] when data['l' + num]? ) # By setting this attribute, I prevent that I stay in an infinite loop making requests forever. target.set('protein_classifications_loaded', true, {silent:true}) # I make sure to trigger a change event on the target, so the view(s) are informed. # Remember that the information will arrive at any time and in any order, so as soon as there is # one more classification I have to trigger the event. Otherwise the view(s) will not render # the change. target.trigger('change') ).fail( () -> console.log('failed2!') ) ).fail( () -> console.log('failed!') ) # -------------------------------------------------------------------------------------------------------------------- # Parsing # -------------------------------------------------------------------------------------------------------------------- parse: (response) -> # get data when it comes from elastic if response._source? objData = response._source else objData = response objData.report_card_url = Target.get_report_card_url(objData.target_chembl_id) filterForActivities = 'target_chembl_id:' + objData.target_chembl_id objData.activities_url = Activity.getActivitiesListURL(filterForActivities) filterForCompounds = '_metadata.related_targets.all_chembl_ids:' + objData.target_chembl_id objData.compounds_url = Compound.getCompoundsListURL(filterForCompounds) @parseXrefs(objData) return objData parseXrefs: (objData) -> originalRefs = objData.cross_references refsIndex = _.indexBy(originalRefs, (item) -> "#{item.xref_src}-#{item.xref_id}") targetComponents = objData.target_components addXrefToOriginalRefs = (xref, refsIndex, originalRefs) -> refIdentifier = "#{xref.xref_src_db}-#{xref.xref_id}" xref.xref_src = xref.xref_src_db # just in case to avoid duplicates if not refsIndex[refIdentifier]? originalRefs.push xref refsIndex[refIdentifier] = xref for component in targetComponents componentXrefs = component.target_component_xrefs if not componentXrefs? continue for xref in componentXrefs addXrefToOriginalRefs(xref, refsIndex, originalRefs) # check if it needs to duplicate it if xref.xref_src == 'EnsemblGene' newXref = $.extend {}, xref, xref_src_db: 'ArrayExpress' xref_src_url: 'http://www.ebi.ac.uk/arrayexpress/' xref_url: "http://www.ebi.ac.uk/gxa/genes/#{xref.xref_id}" addXrefToOriginalRefs(newXref, refsIndex, originalRefs) newXref = $.extend {}, xref, xref_src_db: 'Human Protein Atlas' xref_src_url: 'http://www.proteinatlas.org/' xref_url: "http://www.proteinatlas.org/#{xref.xref_id}" addXrefToOriginalRefs(newXref, refsIndex, originalRefs) newXref = $.extend {}, xref, xref_src_db: 'Open Targets' xref_src_url: 'https://www.targetvalidation.org/' xref_url: "https://www.targetvalidation.org/target/#{xref.xref_id}/associations" addXrefToOriginalRefs(newXref, refsIndex, originalRefs) if xref.xref_src == 'PDBe' newXref = $.extend {}, xref, xref_src_db: 'CREDO' xref_src_url: 'http://marid.bioc.cam.ac.uk/credo' xref_url: "http://marid.bioc.cam.ac.uk/credo/structures/#{xref.xref_id}" addXrefToOriginalRefs(newXref, refsIndex, originalRefs) fetchFromAssayChemblID: -> assayUrl = glados.Settings.WS_BASE_URL + 'assay/' + @get('assay_chembl_id') + '.json' thisTarget = @ $.get(assayUrl).done( (response) -> thisTarget.set('target_chembl_id', response.target_chembl_id) thisTarget.initURL() thisTarget.fetch() ).fail( () -> console.log('failed!') ) # Constant definition for ReportCardEntity model functionalities _.extend(Target, glados.models.base.ReportCardEntity) Target.color = 'lime' Target.reportCardPath = 'target_report_card/' Target.ES_INDEX = 'chembl_target' Target.INDEX_NAME = Target.ES_INDEX Target.PROPERTIES_VISUAL_CONFIG = { 'target_chembl_id': { link_base: 'report_card_url' }, 'pref_name': { custom_field_template: '<i>{{val}}</i>' }, 'uniprot_accessions': { parse_function: (components) -> if not components? return glados.Utils.DEFAULT_NULL_VALUE_LABEL if components.length == 0 return glados.Utils.DEFAULT_NULL_VALUE_LABEL return (comp.accession for comp in components).join(', ') link_function: (components) -> 'http://www.uniprot.org/uniprot/?query=' + ('accession:' + comp.accession for comp in components).join('+OR+') } '_metadata.related_compounds.count': { link_base: 'compounds_url' on_click: TargetReportCardApp.initMiniHistogramFromFunctionLink function_constant_parameters: ['compounds'] function_parameters: ['target_chembl_id'] # to help bind the link to the function, it could be necessary to always use the key of the columns descriptions # or probably not, depending on how this evolves function_key: 'num_compounds' function_link: true execute_on_render: true format_class: 'number-cell-center' } '_metadata.related_activities.count': { link_base: 'activities_url' on_click: TargetReportCardApp.initMiniHistogramFromFunctionLink function_parameters: ['target_chembl_id'] function_constant_parameters: ['activities'] # to help bind the link to the function, it could be necessary to always use the key of the columns descriptions # or probably not, depending on how this evolves function_key: 'bioactivities' function_link: true execute_on_render: true format_class: 'number-cell-center' } 'best_expectation': { 'show': true 'comparator': '_context.best_expectation' 'sort_disabled': false 'is_sorting': 0 'sort_class': 'fa-sort' 'is_contextual': true } 'best_positives': { 'show': true 'comparator': '_context.best_positives' 'sort_disabled': false 'is_sorting': 0 'sort_class': 'fa-sort' 'is_contextual': true } 'best_identities': { 'show': true 'comparator': '_context.best_identities' 'sort_disabled': false 'is_sorting': 0 'sort_class': 'fa-sort' 'is_contextual': true } 'best_score_bits': { 'show': true 'comparator': '_context.best_score_bits' 'sort_disabled': false 'is_sorting': 0 'sort_class': 'fa-sort' 'is_contextual': true } 'best_score': { 'show': true 'comparator': '_context.best_score' 'sort_disabled': false 'is_sorting': 0 'sort_class': 'fa-sort' 'is_contextual': true } 'length': { 'show': true 'name_to_show': 'Length' 'comparator': '_context.length' 'sort_disabled': false 'is_sorting': 0 'sort_class': 'fa-sort' 'is_contextual': true } } Target.COLUMNS = { CHEMBL_ID: aggregatable: true comparator: "target_chembl_id" hide_label: true id: "target_chembl_id" is_sorting: 0 link_base: "report_card_url" name_to_show: "ChEMBL ID" name_to_show_short: "ChEMBL ID" show: true sort_class: "fa-sort" sort_disabled: false } Target.ID_COLUMN = Target.COLUMNS.CHEMBL_ID Target.MINI_REPORT_CARD = LOADING_TEMPLATE: 'Handlebars-Common-MiniRepCardPreloader' TEMPLATE: 'Handlebars-Common-MiniReportCard' Target.getTargetsListURL = (filter, isFullState=false, fragmentOnly=false) -> if isFullState filter = btoa(JSON.stringify(filter)) return glados.Settings.ENTITY_BROWSERS_URL_GENERATOR fragment_only: fragmentOnly entity: 'targets' filter: encodeURIComponent(filter) unless not filter? is_full_state: isFullState
159074
Target = Backbone.Model.extend(DownloadModelOrCollectionExt).extend entityName: 'Target' entityNamePlural: 'Targets' idAttribute: 'target_chembl_id' defaults: fetch_from_elastic: true initialize: -> @on 'change', @getProteinTargetClassification, @ @initURL() initURL: -> id = @get('id') id ?= @get('target_chembl_id') @set('id', id) @set('target_chembl_id', id) if @get('fetch_from_elastic') @url = "#{glados.Settings.ES_PROXY_API_BASE_URL}/es_data/get_es_document/#{Target.ES_INDEX}/#{id}" else @url = glados.Settings.WS_BASE_URL + 'target/' + id + '.json' getProteinTargetClassification: -> target_components = @get('target_components') if target_components? and !@get('protein_classifications_loaded') @set('protein_classifications', {}, {silent:true}) target = @ # step 1: I get the component id of each of the target components for comp in target_components component_id = comp['component_id'] comp_url = glados.Settings.WS_BASE_URL + 'target_component/' + component_id + '.json' # step 2: I request the details of the current component $.get(comp_url).done( (data) -> protein_classifications = data['protein_classifications'] for prot_class in protein_classifications prot_class_id = prot_class['protein_classification_id'] # step 3: Now that I got the protein class id, I need to check if it is already there, it can be repeated # so I will only make a call when necessary prot_class_dict = target.get('protein_classifications') if !prot_class_dict[prot_class_id]? # I don't have that protein classification, So I need to add it to the dictionary and make a # call to get the details prot_class_dict[prot_class_id] = "" prot_class_url = glados.Settings.WS_BASE_URL + 'protein_class/' + prot_class_id + '.json' $.get(prot_class_url).done( (data) -> # now that I have the data I save it prot_class_dict[data['protein_class_id']] = ( data['l' + num] for num in [1..8] when data['l' + num]? ) # By setting this attribute, I prevent that I stay in an infinite loop making requests forever. target.set('protein_classifications_loaded', true, {silent:true}) # I make sure to trigger a change event on the target, so the view(s) are informed. # Remember that the information will arrive at any time and in any order, so as soon as there is # one more classification I have to trigger the event. Otherwise the view(s) will not render # the change. target.trigger('change') ).fail( () -> console.log('failed2!') ) ).fail( () -> console.log('failed!') ) # -------------------------------------------------------------------------------------------------------------------- # Parsing # -------------------------------------------------------------------------------------------------------------------- parse: (response) -> # get data when it comes from elastic if response._source? objData = response._source else objData = response objData.report_card_url = Target.get_report_card_url(objData.target_chembl_id) filterForActivities = 'target_chembl_id:' + objData.target_chembl_id objData.activities_url = Activity.getActivitiesListURL(filterForActivities) filterForCompounds = '_metadata.related_targets.all_chembl_ids:' + objData.target_chembl_id objData.compounds_url = Compound.getCompoundsListURL(filterForCompounds) @parseXrefs(objData) return objData parseXrefs: (objData) -> originalRefs = objData.cross_references refsIndex = _.indexBy(originalRefs, (item) -> "#{item.xref_src}-#{item.xref_id}") targetComponents = objData.target_components addXrefToOriginalRefs = (xref, refsIndex, originalRefs) -> refIdentifier = "#{xref.xref_src_db}-#{xref.xref_id}" xref.xref_src = xref.xref_src_db # just in case to avoid duplicates if not refsIndex[refIdentifier]? originalRefs.push xref refsIndex[refIdentifier] = xref for component in targetComponents componentXrefs = component.target_component_xrefs if not componentXrefs? continue for xref in componentXrefs addXrefToOriginalRefs(xref, refsIndex, originalRefs) # check if it needs to duplicate it if xref.xref_src == 'EnsemblGene' newXref = $.extend {}, xref, xref_src_db: 'ArrayExpress' xref_src_url: 'http://www.ebi.ac.uk/arrayexpress/' xref_url: "http://www.ebi.ac.uk/gxa/genes/#{xref.xref_id}" addXrefToOriginalRefs(newXref, refsIndex, originalRefs) newXref = $.extend {}, xref, xref_src_db: 'Human Protein Atlas' xref_src_url: 'http://www.proteinatlas.org/' xref_url: "http://www.proteinatlas.org/#{xref.xref_id}" addXrefToOriginalRefs(newXref, refsIndex, originalRefs) newXref = $.extend {}, xref, xref_src_db: 'Open Targets' xref_src_url: 'https://www.targetvalidation.org/' xref_url: "https://www.targetvalidation.org/target/#{xref.xref_id}/associations" addXrefToOriginalRefs(newXref, refsIndex, originalRefs) if xref.xref_src == 'PDBe' newXref = $.extend {}, xref, xref_src_db: 'CREDO' xref_src_url: 'http://marid.bioc.cam.ac.uk/credo' xref_url: "http://marid.bioc.cam.ac.uk/credo/structures/#{xref.xref_id}" addXrefToOriginalRefs(newXref, refsIndex, originalRefs) fetchFromAssayChemblID: -> assayUrl = glados.Settings.WS_BASE_URL + 'assay/' + @get('assay_chembl_id') + '.json' thisTarget = @ $.get(assayUrl).done( (response) -> thisTarget.set('target_chembl_id', response.target_chembl_id) thisTarget.initURL() thisTarget.fetch() ).fail( () -> console.log('failed!') ) # Constant definition for ReportCardEntity model functionalities _.extend(Target, glados.models.base.ReportCardEntity) Target.color = 'lime' Target.reportCardPath = 'target_report_card/' Target.ES_INDEX = 'chembl_target' Target.INDEX_NAME = Target.ES_INDEX Target.PROPERTIES_VISUAL_CONFIG = { 'target_chembl_id': { link_base: 'report_card_url' }, 'pref_name': { custom_field_template: '<i>{{val}}</i>' }, 'uniprot_accessions': { parse_function: (components) -> if not components? return glados.Utils.DEFAULT_NULL_VALUE_LABEL if components.length == 0 return glados.Utils.DEFAULT_NULL_VALUE_LABEL return (comp.accession for comp in components).join(', ') link_function: (components) -> 'http://www.uniprot.org/uniprot/?query=' + ('accession:' + comp.accession for comp in components).join('+OR+') } '_metadata.related_compounds.count': { link_base: 'compounds_url' on_click: TargetReportCardApp.initMiniHistogramFromFunctionLink function_constant_parameters: ['compounds'] function_parameters: ['target_chembl_id'] # to help bind the link to the function, it could be necessary to always use the key of the columns descriptions # or probably not, depending on how this evolves function_key: 'num_compounds' function_link: true execute_on_render: true format_class: 'number-cell-center' } '_metadata.related_activities.count': { link_base: 'activities_url' on_click: TargetReportCardApp.initMiniHistogramFromFunctionLink function_parameters: ['target_chembl_id'] function_constant_parameters: ['activities'] # to help bind the link to the function, it could be necessary to always use the key of the columns descriptions # or probably not, depending on how this evolves function_key: '<KEY>' function_link: true execute_on_render: true format_class: 'number-cell-center' } 'best_expectation': { 'show': true 'comparator': '_context.best_expectation' 'sort_disabled': false 'is_sorting': 0 'sort_class': 'fa-sort' 'is_contextual': true } 'best_positives': { 'show': true 'comparator': '_context.best_positives' 'sort_disabled': false 'is_sorting': 0 'sort_class': 'fa-sort' 'is_contextual': true } 'best_identities': { 'show': true 'comparator': '_context.best_identities' 'sort_disabled': false 'is_sorting': 0 'sort_class': 'fa-sort' 'is_contextual': true } 'best_score_bits': { 'show': true 'comparator': '_context.best_score_bits' 'sort_disabled': false 'is_sorting': 0 'sort_class': 'fa-sort' 'is_contextual': true } 'best_score': { 'show': true 'comparator': '_context.best_score' 'sort_disabled': false 'is_sorting': 0 'sort_class': 'fa-sort' 'is_contextual': true } 'length': { 'show': true 'name_to_show': 'Length' 'comparator': '_context.length' 'sort_disabled': false 'is_sorting': 0 'sort_class': 'fa-sort' 'is_contextual': true } } Target.COLUMNS = { CHEMBL_ID: aggregatable: true comparator: "target_chembl_id" hide_label: true id: "target_chembl_id" is_sorting: 0 link_base: "report_card_url" name_to_show: "ChEMBL ID" name_to_show_short: "ChEMBL ID" show: true sort_class: "fa-sort" sort_disabled: false } Target.ID_COLUMN = Target.COLUMNS.CHEMBL_ID Target.MINI_REPORT_CARD = LOADING_TEMPLATE: 'Handlebars-Common-MiniRepCardPreloader' TEMPLATE: 'Handlebars-Common-MiniReportCard' Target.getTargetsListURL = (filter, isFullState=false, fragmentOnly=false) -> if isFullState filter = btoa(JSON.stringify(filter)) return glados.Settings.ENTITY_BROWSERS_URL_GENERATOR fragment_only: fragmentOnly entity: 'targets' filter: encodeURIComponent(filter) unless not filter? is_full_state: isFullState
true
Target = Backbone.Model.extend(DownloadModelOrCollectionExt).extend entityName: 'Target' entityNamePlural: 'Targets' idAttribute: 'target_chembl_id' defaults: fetch_from_elastic: true initialize: -> @on 'change', @getProteinTargetClassification, @ @initURL() initURL: -> id = @get('id') id ?= @get('target_chembl_id') @set('id', id) @set('target_chembl_id', id) if @get('fetch_from_elastic') @url = "#{glados.Settings.ES_PROXY_API_BASE_URL}/es_data/get_es_document/#{Target.ES_INDEX}/#{id}" else @url = glados.Settings.WS_BASE_URL + 'target/' + id + '.json' getProteinTargetClassification: -> target_components = @get('target_components') if target_components? and !@get('protein_classifications_loaded') @set('protein_classifications', {}, {silent:true}) target = @ # step 1: I get the component id of each of the target components for comp in target_components component_id = comp['component_id'] comp_url = glados.Settings.WS_BASE_URL + 'target_component/' + component_id + '.json' # step 2: I request the details of the current component $.get(comp_url).done( (data) -> protein_classifications = data['protein_classifications'] for prot_class in protein_classifications prot_class_id = prot_class['protein_classification_id'] # step 3: Now that I got the protein class id, I need to check if it is already there, it can be repeated # so I will only make a call when necessary prot_class_dict = target.get('protein_classifications') if !prot_class_dict[prot_class_id]? # I don't have that protein classification, So I need to add it to the dictionary and make a # call to get the details prot_class_dict[prot_class_id] = "" prot_class_url = glados.Settings.WS_BASE_URL + 'protein_class/' + prot_class_id + '.json' $.get(prot_class_url).done( (data) -> # now that I have the data I save it prot_class_dict[data['protein_class_id']] = ( data['l' + num] for num in [1..8] when data['l' + num]? ) # By setting this attribute, I prevent that I stay in an infinite loop making requests forever. target.set('protein_classifications_loaded', true, {silent:true}) # I make sure to trigger a change event on the target, so the view(s) are informed. # Remember that the information will arrive at any time and in any order, so as soon as there is # one more classification I have to trigger the event. Otherwise the view(s) will not render # the change. target.trigger('change') ).fail( () -> console.log('failed2!') ) ).fail( () -> console.log('failed!') ) # -------------------------------------------------------------------------------------------------------------------- # Parsing # -------------------------------------------------------------------------------------------------------------------- parse: (response) -> # get data when it comes from elastic if response._source? objData = response._source else objData = response objData.report_card_url = Target.get_report_card_url(objData.target_chembl_id) filterForActivities = 'target_chembl_id:' + objData.target_chembl_id objData.activities_url = Activity.getActivitiesListURL(filterForActivities) filterForCompounds = '_metadata.related_targets.all_chembl_ids:' + objData.target_chembl_id objData.compounds_url = Compound.getCompoundsListURL(filterForCompounds) @parseXrefs(objData) return objData parseXrefs: (objData) -> originalRefs = objData.cross_references refsIndex = _.indexBy(originalRefs, (item) -> "#{item.xref_src}-#{item.xref_id}") targetComponents = objData.target_components addXrefToOriginalRefs = (xref, refsIndex, originalRefs) -> refIdentifier = "#{xref.xref_src_db}-#{xref.xref_id}" xref.xref_src = xref.xref_src_db # just in case to avoid duplicates if not refsIndex[refIdentifier]? originalRefs.push xref refsIndex[refIdentifier] = xref for component in targetComponents componentXrefs = component.target_component_xrefs if not componentXrefs? continue for xref in componentXrefs addXrefToOriginalRefs(xref, refsIndex, originalRefs) # check if it needs to duplicate it if xref.xref_src == 'EnsemblGene' newXref = $.extend {}, xref, xref_src_db: 'ArrayExpress' xref_src_url: 'http://www.ebi.ac.uk/arrayexpress/' xref_url: "http://www.ebi.ac.uk/gxa/genes/#{xref.xref_id}" addXrefToOriginalRefs(newXref, refsIndex, originalRefs) newXref = $.extend {}, xref, xref_src_db: 'Human Protein Atlas' xref_src_url: 'http://www.proteinatlas.org/' xref_url: "http://www.proteinatlas.org/#{xref.xref_id}" addXrefToOriginalRefs(newXref, refsIndex, originalRefs) newXref = $.extend {}, xref, xref_src_db: 'Open Targets' xref_src_url: 'https://www.targetvalidation.org/' xref_url: "https://www.targetvalidation.org/target/#{xref.xref_id}/associations" addXrefToOriginalRefs(newXref, refsIndex, originalRefs) if xref.xref_src == 'PDBe' newXref = $.extend {}, xref, xref_src_db: 'CREDO' xref_src_url: 'http://marid.bioc.cam.ac.uk/credo' xref_url: "http://marid.bioc.cam.ac.uk/credo/structures/#{xref.xref_id}" addXrefToOriginalRefs(newXref, refsIndex, originalRefs) fetchFromAssayChemblID: -> assayUrl = glados.Settings.WS_BASE_URL + 'assay/' + @get('assay_chembl_id') + '.json' thisTarget = @ $.get(assayUrl).done( (response) -> thisTarget.set('target_chembl_id', response.target_chembl_id) thisTarget.initURL() thisTarget.fetch() ).fail( () -> console.log('failed!') ) # Constant definition for ReportCardEntity model functionalities _.extend(Target, glados.models.base.ReportCardEntity) Target.color = 'lime' Target.reportCardPath = 'target_report_card/' Target.ES_INDEX = 'chembl_target' Target.INDEX_NAME = Target.ES_INDEX Target.PROPERTIES_VISUAL_CONFIG = { 'target_chembl_id': { link_base: 'report_card_url' }, 'pref_name': { custom_field_template: '<i>{{val}}</i>' }, 'uniprot_accessions': { parse_function: (components) -> if not components? return glados.Utils.DEFAULT_NULL_VALUE_LABEL if components.length == 0 return glados.Utils.DEFAULT_NULL_VALUE_LABEL return (comp.accession for comp in components).join(', ') link_function: (components) -> 'http://www.uniprot.org/uniprot/?query=' + ('accession:' + comp.accession for comp in components).join('+OR+') } '_metadata.related_compounds.count': { link_base: 'compounds_url' on_click: TargetReportCardApp.initMiniHistogramFromFunctionLink function_constant_parameters: ['compounds'] function_parameters: ['target_chembl_id'] # to help bind the link to the function, it could be necessary to always use the key of the columns descriptions # or probably not, depending on how this evolves function_key: 'num_compounds' function_link: true execute_on_render: true format_class: 'number-cell-center' } '_metadata.related_activities.count': { link_base: 'activities_url' on_click: TargetReportCardApp.initMiniHistogramFromFunctionLink function_parameters: ['target_chembl_id'] function_constant_parameters: ['activities'] # to help bind the link to the function, it could be necessary to always use the key of the columns descriptions # or probably not, depending on how this evolves function_key: 'PI:KEY:<KEY>END_PI' function_link: true execute_on_render: true format_class: 'number-cell-center' } 'best_expectation': { 'show': true 'comparator': '_context.best_expectation' 'sort_disabled': false 'is_sorting': 0 'sort_class': 'fa-sort' 'is_contextual': true } 'best_positives': { 'show': true 'comparator': '_context.best_positives' 'sort_disabled': false 'is_sorting': 0 'sort_class': 'fa-sort' 'is_contextual': true } 'best_identities': { 'show': true 'comparator': '_context.best_identities' 'sort_disabled': false 'is_sorting': 0 'sort_class': 'fa-sort' 'is_contextual': true } 'best_score_bits': { 'show': true 'comparator': '_context.best_score_bits' 'sort_disabled': false 'is_sorting': 0 'sort_class': 'fa-sort' 'is_contextual': true } 'best_score': { 'show': true 'comparator': '_context.best_score' 'sort_disabled': false 'is_sorting': 0 'sort_class': 'fa-sort' 'is_contextual': true } 'length': { 'show': true 'name_to_show': 'Length' 'comparator': '_context.length' 'sort_disabled': false 'is_sorting': 0 'sort_class': 'fa-sort' 'is_contextual': true } } Target.COLUMNS = { CHEMBL_ID: aggregatable: true comparator: "target_chembl_id" hide_label: true id: "target_chembl_id" is_sorting: 0 link_base: "report_card_url" name_to_show: "ChEMBL ID" name_to_show_short: "ChEMBL ID" show: true sort_class: "fa-sort" sort_disabled: false } Target.ID_COLUMN = Target.COLUMNS.CHEMBL_ID Target.MINI_REPORT_CARD = LOADING_TEMPLATE: 'Handlebars-Common-MiniRepCardPreloader' TEMPLATE: 'Handlebars-Common-MiniReportCard' Target.getTargetsListURL = (filter, isFullState=false, fragmentOnly=false) -> if isFullState filter = btoa(JSON.stringify(filter)) return glados.Settings.ENTITY_BROWSERS_URL_GENERATOR fragment_only: fragmentOnly entity: 'targets' filter: encodeURIComponent(filter) unless not filter? is_full_state: isFullState
[ { "context": "(\n ->\n name = Bacon.constant({first:\"jack\", last:\"bauer\"})\n stuff = later(1, { key:", "end": 5826, "score": 0.9997171759605408, "start": 5822, "tag": "NAME", "value": "jack" }, { "context": " name = Bacon.constant({first:\"jack\", last:...
spec/specs/combine.coffee
laurilehmijoki/bacon.js
1
# build-dependencies: scheduled, bus describe "Property.combine", -> describe "combines latest values of two properties, with given combinator function, passing through errors", -> expectPropertyEvents( -> left = series(2, [1, error(), 2, 3]).toProperty() right = series(2, [4, error(), 5, 6]).delay(t(1)).toProperty() left.combine(right, add) [5, error(), error(), 6, 7, 8, 9]) describe "also accepts a field name instead of combinator function", -> expectPropertyEvents( -> left = series(1, [[1]]).toProperty() right = series(2, [[2]]).toProperty() left.combine(right, ".concat") [[1, 2]]) describe "combines with null values", -> expectPropertyEvents( -> left = series(1, [null]).toProperty() right = series(1, [null]).toProperty() left.combine(right, (l, r)-> [l, r]) [[null, null]]) it "unsubscribes when initial value callback returns Bacon.noMore", -> calls = 0 bus = new Bacon.Bus() other = Bacon.constant(["rolfcopter"]) bus.toProperty(["lollerskates"]).combine(other, ".concat").subscribe (e) -> if !e.isInitial() calls += 1 Bacon.noMore bus.push(["fail whale"]) expect(calls).to.equal 0 describe "does not duplicate same error from two streams", -> expectPropertyEvents( -> src = series(1, ["same", error()]) Bacon.combineAsArray(src, src) [["same", "same"], error()]) it "toString", -> expect(Bacon.constant(1).combine(Bacon.constant(2), (->)).toString()).to.equal("Bacon.constant(1).combine(Bacon.constant(2),function)") describe "with random methods on Array.prototype", -> it "doesn't throw exceptions", -> try Array.prototype.foo = "bar" events = [] Bacon.once("a").combine(Bacon.once("b"), (a,b) -> [a,b]).onValue (v) -> events.push(v) expect(events).to.deep.equal([["a", "b"]]) finally delete Array.prototype.foo describe "EventStream.combine", -> describe "converts stream to Property, then combines", -> expectPropertyEvents( -> left = series(2, [1, error(), 2, 3]) right = series(2, [4, error(), 5, 6]).delay(t(1)).toProperty() left.combine(right, add) [5, error(), error(), 6, 7, 8, 9]) describe "Bacon.combineAsArray", -> describe "initial value", -> event = null before -> prop = Bacon.constant(1) Bacon.combineAsArray(prop).subscribe (x) -> event = x if x.hasValue() it "is output as Initial event", -> expect(event.isInitial()).to.equal(true) describe "combines properties and latest values of streams, into a Property having arrays as values", -> expectPropertyEvents( -> stream = series(1, ["a", "b"]) Bacon.combineAsArray([Bacon.constant(1), Bacon.constant(2), stream]) [[1, 2, "a"], [1, 2, "b"]]) describe "Works with streams provided as a list of arguments as well as with a single array arg", -> expectPropertyEvents( -> stream = series(1, ["a", "b"]) Bacon.combineAsArray(Bacon.constant(1), Bacon.constant(2), stream) [[1, 2, "a"], [1, 2, "b"]]) describe "works with single property", -> expectPropertyEvents( -> Bacon.combineAsArray([Bacon.constant(1)]) [[1]]) describe "works with single stream", -> expectPropertyEvents( -> Bacon.combineAsArray([Bacon.once(1)]) [[1]]) describe "works with arrays as values, with first array being empty (bug fix)", -> expectPropertyEvents( -> Bacon.combineAsArray([Bacon.constant([]), Bacon.constant([1])]) ([[[], [1]]])) describe "works with arrays as values, with first array being non-empty (bug fix)", -> expectPropertyEvents( -> Bacon.combineAsArray([Bacon.constant([1]), Bacon.constant([2])]) ([[[1], [2]]])) describe "works with empty array", -> expectPropertyEvents( -> Bacon.combineAsArray([]) [[]]) describe "works with empty args list", -> expectPropertyEvents( -> Bacon.combineAsArray() [[]]) describe "accepts constant values instead of Observables", -> expectPropertyEvents( -> Bacon.combineAsArray(Bacon.constant(1), 2, 3) [[1,2,3]]) describe "works with synchronous sources and flatMap (#407)", -> expectStreamEvents( -> Bacon .once(123) .flatMap -> Bacon.combineAsArray(Bacon.once(1), Bacon.once(2), 3) [[1,2,3]]) it "preserves laziness", -> calls = 0 incr = (x) -> calls++ x skip(4, Bacon.combineAsArray(fromArray([1,2,3,4,5]).map(incr))).onValue() expect(calls).to.equal(1) it "toString", -> expect(Bacon.combineAsArray(Bacon.never()).toString()).to.equal("Bacon.combineAsArray(Bacon.never())") describe "Bacon.combineWith", -> describe "combines n properties, streams and constants using an n-ary function", -> expectPropertyEvents( -> stream = series(1, [1, 2]) f = (x, y, z) -> x + y + z Bacon.combineWith(f, stream, Bacon.constant(10), 100) [111, 112]) describe "works with single input", -> expectPropertyEvents( -> stream = series(1, [1, 2]) f = (x) -> x * 2 Bacon.combineWith(f, stream) [2, 4]) describe "works with 0 inputs (results to a constant)", -> expectPropertyEvents( -> Bacon.combineWith(-> 1) [1]) it "toString", -> expect(Bacon.combineWith((->), Bacon.never()).toString()).to.equal("Bacon.combineWith(function,Bacon.never())") describe "combineTemplate", -> describe "combines streams and properties according to a template object", -> expectPropertyEvents( -> name = Bacon.constant({first:"jack", last:"bauer"}) stuff = later(1, { key: "value" }) Bacon.combineTemplate({ name, stuff }) [{ name: { first:"jack", last:"bauer"}, stuff: {key:"value"}}]) describe "combines properties according to a template object", -> expectPropertyEvents( -> firstName = Bacon.constant("juha") lastName = Bacon.constant("paananen") userName = Bacon.constant("mr.bacon") Bacon.combineTemplate({ userName: userName, password: "*****", fullName: { firstName: firstName, lastName: lastName }}) [{ userName: "mr.bacon", password: "*****", fullName: { firstName: "juha", lastName: "paananen" } }]) describe "works with a single-stream template", -> expectPropertyEvents( -> bacon = Bacon.constant("bacon") Bacon.combineTemplate({ favoriteFood: bacon }) [{ favoriteFood: "bacon" }]) describe "works when dynamic part is not the last part (bug fix)", -> expectPropertyEvents( -> username = Bacon.constant("raimohanska") password = Bacon.constant("easy") Bacon.combineTemplate({url: "/user/login", data: { username: username, password: password }, type: "post"}) [url: "/user/login", data: {username: "raimohanska", password: "easy"}, type: "post"]) describe "works with arrays as data (bug fix)", -> expectPropertyEvents( -> Bacon.combineTemplate( { x : Bacon.constant([]), y : Bacon.constant([[]]), z : Bacon.constant(["z"])}) [{ x : [], y : [[]], z : ["z"]}]) describe "supports empty object", -> expectPropertyEvents( -> Bacon.combineTemplate({}) [{}]) it "supports arrays", -> value = {key: [{ x: 1 }, { x: 2 }]} Bacon.combineTemplate(value).onValue (x) -> expect(x).to.deep.equal(value) expect(x.key instanceof Array).to.deep.equal(true) # seems that the former passes even if x is not an array value = [{ x: 1 }, { x: 2 }] Bacon.combineTemplate(value).onValue (x) -> expect(x).to.deep.equal(value) expect(x instanceof Array).to.deep.equal(true) value = {key: [{ x: 1 }, { x: 2 }], key2: {}} Bacon.combineTemplate(value).onValue (x) -> expect(x).to.deep.equal(value) expect(x.key instanceof Array).to.deep.equal(true) value = {key: [{ x: 1 }, { x: Bacon.constant(2) }]} Bacon.combineTemplate(value).onValue (x) -> expect(x).to.deep.equal({key: [{ x: 1 }, { x: 2 }]}) expect(x.key instanceof Array).to.deep.equal(true) # seems that the former passes even if x is not an array it "supports nulls", -> value = {key: null} Bacon.combineTemplate(value).onValue (x) -> expect(x).to.deep.equal(value) it "supports NaNs", -> value = {key: NaN} Bacon.combineTemplate(value).onValue (x) -> expect(isNaN(x.key)).to.deep.equal(true) it "supports dates", -> value = {key: new Date()} Bacon.combineTemplate(value).onValue (x) -> expect(x).to.deep.equal(value) it "supports regexps", -> value = {key: /[0-0]/i} Bacon.combineTemplate(value).onValue (x) -> expect(x).to.deep.equal(value) it "supports functions", -> value = {key: ->} Bacon.combineTemplate(value).onValue (x) -> expect(x).to.deep.equal(value) it "toString", -> expect(Bacon.combineTemplate({ thing: Bacon.never(), const: "a" }).toString()).to.equal("Bacon.combineTemplate({thing:Bacon.never(),const:a})") describe "Property.decode", -> describe "switches between source Properties based on property value", -> expectPropertyEvents( -> a = Bacon.constant("a") b = Bacon.constant("b") c = Bacon.constant("c") series(1, [1,2,3]).toProperty().decode({1: a, 2: b, 3: c}) ["a", "b", "c"]) it "toString", -> expect(Bacon.constant(1).decode({1: "lol"}).toString()).to.equal("Bacon.constant(1).decode({1:lol})") describe "EventStream.decode", -> describe "switches between source Properties based on property value", -> expectPropertyEvents( -> a = Bacon.constant("a") b = Bacon.constant("b") c = Bacon.constant("c") series(1, [1,2,3]).decode({1: a, 2: b, 3: c}) ["a", "b", "c"]) describe "Bacon.onValues", -> it "is a shorthand for combineAsArray.onValues", -> f = mockFunction() Bacon.onValues(1, 2, 3, f) f.verify(1,2,3)
62255
# build-dependencies: scheduled, bus describe "Property.combine", -> describe "combines latest values of two properties, with given combinator function, passing through errors", -> expectPropertyEvents( -> left = series(2, [1, error(), 2, 3]).toProperty() right = series(2, [4, error(), 5, 6]).delay(t(1)).toProperty() left.combine(right, add) [5, error(), error(), 6, 7, 8, 9]) describe "also accepts a field name instead of combinator function", -> expectPropertyEvents( -> left = series(1, [[1]]).toProperty() right = series(2, [[2]]).toProperty() left.combine(right, ".concat") [[1, 2]]) describe "combines with null values", -> expectPropertyEvents( -> left = series(1, [null]).toProperty() right = series(1, [null]).toProperty() left.combine(right, (l, r)-> [l, r]) [[null, null]]) it "unsubscribes when initial value callback returns Bacon.noMore", -> calls = 0 bus = new Bacon.Bus() other = Bacon.constant(["rolfcopter"]) bus.toProperty(["lollerskates"]).combine(other, ".concat").subscribe (e) -> if !e.isInitial() calls += 1 Bacon.noMore bus.push(["fail whale"]) expect(calls).to.equal 0 describe "does not duplicate same error from two streams", -> expectPropertyEvents( -> src = series(1, ["same", error()]) Bacon.combineAsArray(src, src) [["same", "same"], error()]) it "toString", -> expect(Bacon.constant(1).combine(Bacon.constant(2), (->)).toString()).to.equal("Bacon.constant(1).combine(Bacon.constant(2),function)") describe "with random methods on Array.prototype", -> it "doesn't throw exceptions", -> try Array.prototype.foo = "bar" events = [] Bacon.once("a").combine(Bacon.once("b"), (a,b) -> [a,b]).onValue (v) -> events.push(v) expect(events).to.deep.equal([["a", "b"]]) finally delete Array.prototype.foo describe "EventStream.combine", -> describe "converts stream to Property, then combines", -> expectPropertyEvents( -> left = series(2, [1, error(), 2, 3]) right = series(2, [4, error(), 5, 6]).delay(t(1)).toProperty() left.combine(right, add) [5, error(), error(), 6, 7, 8, 9]) describe "Bacon.combineAsArray", -> describe "initial value", -> event = null before -> prop = Bacon.constant(1) Bacon.combineAsArray(prop).subscribe (x) -> event = x if x.hasValue() it "is output as Initial event", -> expect(event.isInitial()).to.equal(true) describe "combines properties and latest values of streams, into a Property having arrays as values", -> expectPropertyEvents( -> stream = series(1, ["a", "b"]) Bacon.combineAsArray([Bacon.constant(1), Bacon.constant(2), stream]) [[1, 2, "a"], [1, 2, "b"]]) describe "Works with streams provided as a list of arguments as well as with a single array arg", -> expectPropertyEvents( -> stream = series(1, ["a", "b"]) Bacon.combineAsArray(Bacon.constant(1), Bacon.constant(2), stream) [[1, 2, "a"], [1, 2, "b"]]) describe "works with single property", -> expectPropertyEvents( -> Bacon.combineAsArray([Bacon.constant(1)]) [[1]]) describe "works with single stream", -> expectPropertyEvents( -> Bacon.combineAsArray([Bacon.once(1)]) [[1]]) describe "works with arrays as values, with first array being empty (bug fix)", -> expectPropertyEvents( -> Bacon.combineAsArray([Bacon.constant([]), Bacon.constant([1])]) ([[[], [1]]])) describe "works with arrays as values, with first array being non-empty (bug fix)", -> expectPropertyEvents( -> Bacon.combineAsArray([Bacon.constant([1]), Bacon.constant([2])]) ([[[1], [2]]])) describe "works with empty array", -> expectPropertyEvents( -> Bacon.combineAsArray([]) [[]]) describe "works with empty args list", -> expectPropertyEvents( -> Bacon.combineAsArray() [[]]) describe "accepts constant values instead of Observables", -> expectPropertyEvents( -> Bacon.combineAsArray(Bacon.constant(1), 2, 3) [[1,2,3]]) describe "works with synchronous sources and flatMap (#407)", -> expectStreamEvents( -> Bacon .once(123) .flatMap -> Bacon.combineAsArray(Bacon.once(1), Bacon.once(2), 3) [[1,2,3]]) it "preserves laziness", -> calls = 0 incr = (x) -> calls++ x skip(4, Bacon.combineAsArray(fromArray([1,2,3,4,5]).map(incr))).onValue() expect(calls).to.equal(1) it "toString", -> expect(Bacon.combineAsArray(Bacon.never()).toString()).to.equal("Bacon.combineAsArray(Bacon.never())") describe "Bacon.combineWith", -> describe "combines n properties, streams and constants using an n-ary function", -> expectPropertyEvents( -> stream = series(1, [1, 2]) f = (x, y, z) -> x + y + z Bacon.combineWith(f, stream, Bacon.constant(10), 100) [111, 112]) describe "works with single input", -> expectPropertyEvents( -> stream = series(1, [1, 2]) f = (x) -> x * 2 Bacon.combineWith(f, stream) [2, 4]) describe "works with 0 inputs (results to a constant)", -> expectPropertyEvents( -> Bacon.combineWith(-> 1) [1]) it "toString", -> expect(Bacon.combineWith((->), Bacon.never()).toString()).to.equal("Bacon.combineWith(function,Bacon.never())") describe "combineTemplate", -> describe "combines streams and properties according to a template object", -> expectPropertyEvents( -> name = Bacon.constant({first:"<NAME>", last:"<NAME>"}) stuff = later(1, { key: "value" }) Bacon.combineTemplate({ name, stuff }) [{ name: { first:"<NAME>", last:"<NAME>"}, stuff: {key:"value"}}]) describe "combines properties according to a template object", -> expectPropertyEvents( -> firstName = Bacon.constant("juha") lastName = Bacon.constant("paananen") userName = Bacon.constant("mr.bacon") Bacon.combineTemplate({ userName: userName, password: "<PASSWORD>*****", fullName: { firstName: firstName, lastName: lastName }}) [{ userName: "mr.bacon", password: "<PASSWORD>*****", fullName: { firstName: "juha", lastName: "paananen" } }]) describe "works with a single-stream template", -> expectPropertyEvents( -> bacon = Bacon.constant("bacon") Bacon.combineTemplate({ favoriteFood: bacon }) [{ favoriteFood: "bacon" }]) describe "works when dynamic part is not the last part (bug fix)", -> expectPropertyEvents( -> username = Bacon.constant("raimohanska") password = Bacon.constant("easy") Bacon.combineTemplate({url: "/user/login", data: { username: username, password: <PASSWORD> }, type: "post"}) [url: "/user/login", data: {username: "raimohanska", password: "<PASSWORD>"}, type: "post"]) describe "works with arrays as data (bug fix)", -> expectPropertyEvents( -> Bacon.combineTemplate( { x : Bacon.constant([]), y : Bacon.constant([[]]), z : Bacon.constant(["z"])}) [{ x : [], y : [[]], z : ["z"]}]) describe "supports empty object", -> expectPropertyEvents( -> Bacon.combineTemplate({}) [{}]) it "supports arrays", -> value = {key: [{ x: 1 }, { x: 2 }]} Bacon.combineTemplate(value).onValue (x) -> expect(x).to.deep.equal(value) expect(x.key instanceof Array).to.deep.equal(true) # seems that the former passes even if x is not an array value = [{ x: 1 }, { x: 2 }] Bacon.combineTemplate(value).onValue (x) -> expect(x).to.deep.equal(value) expect(x instanceof Array).to.deep.equal(true) value = {key: [{ x: 1 }, { x: 2 }], key2: {}} Bacon.combineTemplate(value).onValue (x) -> expect(x).to.deep.equal(value) expect(x.key instanceof Array).to.deep.equal(true) value = {key: [{ x: 1 }, { x: Bacon.constant(2) }]} Bacon.combineTemplate(value).onValue (x) -> expect(x).to.deep.equal({key: [{ x: 1 }, { x: 2 }]}) expect(x.key instanceof Array).to.deep.equal(true) # seems that the former passes even if x is not an array it "supports nulls", -> value = {key: null} Bacon.combineTemplate(value).onValue (x) -> expect(x).to.deep.equal(value) it "supports NaNs", -> value = {key: NaN} Bacon.combineTemplate(value).onValue (x) -> expect(isNaN(x.key)).to.deep.equal(true) it "supports dates", -> value = {key: new Date()} Bacon.combineTemplate(value).onValue (x) -> expect(x).to.deep.equal(value) it "supports regexps", -> value = {key: /[0-0]/i} Bacon.combineTemplate(value).onValue (x) -> expect(x).to.deep.equal(value) it "supports functions", -> value = {key: ->} Bacon.combineTemplate(value).onValue (x) -> expect(x).to.deep.equal(value) it "toString", -> expect(Bacon.combineTemplate({ thing: Bacon.never(), const: "a" }).toString()).to.equal("Bacon.combineTemplate({thing:Bacon.never(),const:a})") describe "Property.decode", -> describe "switches between source Properties based on property value", -> expectPropertyEvents( -> a = Bacon.constant("a") b = Bacon.constant("b") c = Bacon.constant("c") series(1, [1,2,3]).toProperty().decode({1: a, 2: b, 3: c}) ["a", "b", "c"]) it "toString", -> expect(Bacon.constant(1).decode({1: "lol"}).toString()).to.equal("Bacon.constant(1).decode({1:lol})") describe "EventStream.decode", -> describe "switches between source Properties based on property value", -> expectPropertyEvents( -> a = Bacon.constant("a") b = Bacon.constant("b") c = Bacon.constant("c") series(1, [1,2,3]).decode({1: a, 2: b, 3: c}) ["a", "b", "c"]) describe "Bacon.onValues", -> it "is a shorthand for combineAsArray.onValues", -> f = mockFunction() Bacon.onValues(1, 2, 3, f) f.verify(1,2,3)
true
# build-dependencies: scheduled, bus describe "Property.combine", -> describe "combines latest values of two properties, with given combinator function, passing through errors", -> expectPropertyEvents( -> left = series(2, [1, error(), 2, 3]).toProperty() right = series(2, [4, error(), 5, 6]).delay(t(1)).toProperty() left.combine(right, add) [5, error(), error(), 6, 7, 8, 9]) describe "also accepts a field name instead of combinator function", -> expectPropertyEvents( -> left = series(1, [[1]]).toProperty() right = series(2, [[2]]).toProperty() left.combine(right, ".concat") [[1, 2]]) describe "combines with null values", -> expectPropertyEvents( -> left = series(1, [null]).toProperty() right = series(1, [null]).toProperty() left.combine(right, (l, r)-> [l, r]) [[null, null]]) it "unsubscribes when initial value callback returns Bacon.noMore", -> calls = 0 bus = new Bacon.Bus() other = Bacon.constant(["rolfcopter"]) bus.toProperty(["lollerskates"]).combine(other, ".concat").subscribe (e) -> if !e.isInitial() calls += 1 Bacon.noMore bus.push(["fail whale"]) expect(calls).to.equal 0 describe "does not duplicate same error from two streams", -> expectPropertyEvents( -> src = series(1, ["same", error()]) Bacon.combineAsArray(src, src) [["same", "same"], error()]) it "toString", -> expect(Bacon.constant(1).combine(Bacon.constant(2), (->)).toString()).to.equal("Bacon.constant(1).combine(Bacon.constant(2),function)") describe "with random methods on Array.prototype", -> it "doesn't throw exceptions", -> try Array.prototype.foo = "bar" events = [] Bacon.once("a").combine(Bacon.once("b"), (a,b) -> [a,b]).onValue (v) -> events.push(v) expect(events).to.deep.equal([["a", "b"]]) finally delete Array.prototype.foo describe "EventStream.combine", -> describe "converts stream to Property, then combines", -> expectPropertyEvents( -> left = series(2, [1, error(), 2, 3]) right = series(2, [4, error(), 5, 6]).delay(t(1)).toProperty() left.combine(right, add) [5, error(), error(), 6, 7, 8, 9]) describe "Bacon.combineAsArray", -> describe "initial value", -> event = null before -> prop = Bacon.constant(1) Bacon.combineAsArray(prop).subscribe (x) -> event = x if x.hasValue() it "is output as Initial event", -> expect(event.isInitial()).to.equal(true) describe "combines properties and latest values of streams, into a Property having arrays as values", -> expectPropertyEvents( -> stream = series(1, ["a", "b"]) Bacon.combineAsArray([Bacon.constant(1), Bacon.constant(2), stream]) [[1, 2, "a"], [1, 2, "b"]]) describe "Works with streams provided as a list of arguments as well as with a single array arg", -> expectPropertyEvents( -> stream = series(1, ["a", "b"]) Bacon.combineAsArray(Bacon.constant(1), Bacon.constant(2), stream) [[1, 2, "a"], [1, 2, "b"]]) describe "works with single property", -> expectPropertyEvents( -> Bacon.combineAsArray([Bacon.constant(1)]) [[1]]) describe "works with single stream", -> expectPropertyEvents( -> Bacon.combineAsArray([Bacon.once(1)]) [[1]]) describe "works with arrays as values, with first array being empty (bug fix)", -> expectPropertyEvents( -> Bacon.combineAsArray([Bacon.constant([]), Bacon.constant([1])]) ([[[], [1]]])) describe "works with arrays as values, with first array being non-empty (bug fix)", -> expectPropertyEvents( -> Bacon.combineAsArray([Bacon.constant([1]), Bacon.constant([2])]) ([[[1], [2]]])) describe "works with empty array", -> expectPropertyEvents( -> Bacon.combineAsArray([]) [[]]) describe "works with empty args list", -> expectPropertyEvents( -> Bacon.combineAsArray() [[]]) describe "accepts constant values instead of Observables", -> expectPropertyEvents( -> Bacon.combineAsArray(Bacon.constant(1), 2, 3) [[1,2,3]]) describe "works with synchronous sources and flatMap (#407)", -> expectStreamEvents( -> Bacon .once(123) .flatMap -> Bacon.combineAsArray(Bacon.once(1), Bacon.once(2), 3) [[1,2,3]]) it "preserves laziness", -> calls = 0 incr = (x) -> calls++ x skip(4, Bacon.combineAsArray(fromArray([1,2,3,4,5]).map(incr))).onValue() expect(calls).to.equal(1) it "toString", -> expect(Bacon.combineAsArray(Bacon.never()).toString()).to.equal("Bacon.combineAsArray(Bacon.never())") describe "Bacon.combineWith", -> describe "combines n properties, streams and constants using an n-ary function", -> expectPropertyEvents( -> stream = series(1, [1, 2]) f = (x, y, z) -> x + y + z Bacon.combineWith(f, stream, Bacon.constant(10), 100) [111, 112]) describe "works with single input", -> expectPropertyEvents( -> stream = series(1, [1, 2]) f = (x) -> x * 2 Bacon.combineWith(f, stream) [2, 4]) describe "works with 0 inputs (results to a constant)", -> expectPropertyEvents( -> Bacon.combineWith(-> 1) [1]) it "toString", -> expect(Bacon.combineWith((->), Bacon.never()).toString()).to.equal("Bacon.combineWith(function,Bacon.never())") describe "combineTemplate", -> describe "combines streams and properties according to a template object", -> expectPropertyEvents( -> name = Bacon.constant({first:"PI:NAME:<NAME>END_PI", last:"PI:NAME:<NAME>END_PI"}) stuff = later(1, { key: "value" }) Bacon.combineTemplate({ name, stuff }) [{ name: { first:"PI:NAME:<NAME>END_PI", last:"PI:NAME:<NAME>END_PI"}, stuff: {key:"value"}}]) describe "combines properties according to a template object", -> expectPropertyEvents( -> firstName = Bacon.constant("juha") lastName = Bacon.constant("paananen") userName = Bacon.constant("mr.bacon") Bacon.combineTemplate({ userName: userName, password: "PI:PASSWORD:<PASSWORD>END_PI*****", fullName: { firstName: firstName, lastName: lastName }}) [{ userName: "mr.bacon", password: "PI:PASSWORD:<PASSWORD>END_PI*****", fullName: { firstName: "juha", lastName: "paananen" } }]) describe "works with a single-stream template", -> expectPropertyEvents( -> bacon = Bacon.constant("bacon") Bacon.combineTemplate({ favoriteFood: bacon }) [{ favoriteFood: "bacon" }]) describe "works when dynamic part is not the last part (bug fix)", -> expectPropertyEvents( -> username = Bacon.constant("raimohanska") password = Bacon.constant("easy") Bacon.combineTemplate({url: "/user/login", data: { username: username, password: PI:PASSWORD:<PASSWORD>END_PI }, type: "post"}) [url: "/user/login", data: {username: "raimohanska", password: "PI:PASSWORD:<PASSWORD>END_PI"}, type: "post"]) describe "works with arrays as data (bug fix)", -> expectPropertyEvents( -> Bacon.combineTemplate( { x : Bacon.constant([]), y : Bacon.constant([[]]), z : Bacon.constant(["z"])}) [{ x : [], y : [[]], z : ["z"]}]) describe "supports empty object", -> expectPropertyEvents( -> Bacon.combineTemplate({}) [{}]) it "supports arrays", -> value = {key: [{ x: 1 }, { x: 2 }]} Bacon.combineTemplate(value).onValue (x) -> expect(x).to.deep.equal(value) expect(x.key instanceof Array).to.deep.equal(true) # seems that the former passes even if x is not an array value = [{ x: 1 }, { x: 2 }] Bacon.combineTemplate(value).onValue (x) -> expect(x).to.deep.equal(value) expect(x instanceof Array).to.deep.equal(true) value = {key: [{ x: 1 }, { x: 2 }], key2: {}} Bacon.combineTemplate(value).onValue (x) -> expect(x).to.deep.equal(value) expect(x.key instanceof Array).to.deep.equal(true) value = {key: [{ x: 1 }, { x: Bacon.constant(2) }]} Bacon.combineTemplate(value).onValue (x) -> expect(x).to.deep.equal({key: [{ x: 1 }, { x: 2 }]}) expect(x.key instanceof Array).to.deep.equal(true) # seems that the former passes even if x is not an array it "supports nulls", -> value = {key: null} Bacon.combineTemplate(value).onValue (x) -> expect(x).to.deep.equal(value) it "supports NaNs", -> value = {key: NaN} Bacon.combineTemplate(value).onValue (x) -> expect(isNaN(x.key)).to.deep.equal(true) it "supports dates", -> value = {key: new Date()} Bacon.combineTemplate(value).onValue (x) -> expect(x).to.deep.equal(value) it "supports regexps", -> value = {key: /[0-0]/i} Bacon.combineTemplate(value).onValue (x) -> expect(x).to.deep.equal(value) it "supports functions", -> value = {key: ->} Bacon.combineTemplate(value).onValue (x) -> expect(x).to.deep.equal(value) it "toString", -> expect(Bacon.combineTemplate({ thing: Bacon.never(), const: "a" }).toString()).to.equal("Bacon.combineTemplate({thing:Bacon.never(),const:a})") describe "Property.decode", -> describe "switches between source Properties based on property value", -> expectPropertyEvents( -> a = Bacon.constant("a") b = Bacon.constant("b") c = Bacon.constant("c") series(1, [1,2,3]).toProperty().decode({1: a, 2: b, 3: c}) ["a", "b", "c"]) it "toString", -> expect(Bacon.constant(1).decode({1: "lol"}).toString()).to.equal("Bacon.constant(1).decode({1:lol})") describe "EventStream.decode", -> describe "switches between source Properties based on property value", -> expectPropertyEvents( -> a = Bacon.constant("a") b = Bacon.constant("b") c = Bacon.constant("c") series(1, [1,2,3]).decode({1: a, 2: b, 3: c}) ["a", "b", "c"]) describe "Bacon.onValues", -> it "is a shorthand for combineAsArray.onValues", -> f = mockFunction() Bacon.onValues(1, 2, 3, f) f.verify(1,2,3)
[ { "context": "06\n user: dbConfig['db_user']\n password: dbConfig['db_pass']\n database: dbConfig['db_name']\n ", "end": 393, "score": 0.9992863535881042, "start": 385, "tag": "PASSWORD", "value": "dbConfig" }, { "context": "er: dbConfig['db_user']\n password: db...
server/controllers/databaseConnector.coffee
Ionaru/Node-Express-boilerplate
1
fs = require('fs') mysql = require('mysql') state = { pool: null mode: null } exports.connect = (done) -> # Only use SSL if the 3 SSL fields in the config are filled if dbConfig['db_ca_f'] and dbConfig['db_cc_f'] and dbConfig['db_ck_f'] dbOptions = { host: dbConfig['db_host'] port: dbConfig['db_port'] or 3306 user: dbConfig['db_user'] password: dbConfig['db_pass'] database: dbConfig['db_name'] ssl: ca: fs.readFileSync('./config/' + dbConfig['db_ca_f']) cert: fs.readFileSync('./config/' + dbConfig['db_cc_f']) key: fs.readFileSync('./config/' + dbConfig['db_ck_f']) rejectUnauthorized: dbConfig['db_reject'] } if not dbConfig['db_reject'] logger.warn("SSL connection to Database is not secure, 'db_reject' should be 'true'") else dbOptions = { host: dbConfig['db_host'] port: dbConfig['db_port'] or 3306 user: dbConfig['db_user'] password: dbConfig['db_pass'] database: dbConfig['db_name'] } if dbConfig['db_host'] not in ['localhost', '0.0.0.0', '127.0.0.1'] logger.warn('Unsecured connection to external Database, this is unadvised') state.pool = mysql.createPool(dbOptions) return done() exports.get = -> return state.pool
109736
fs = require('fs') mysql = require('mysql') state = { pool: null mode: null } exports.connect = (done) -> # Only use SSL if the 3 SSL fields in the config are filled if dbConfig['db_ca_f'] and dbConfig['db_cc_f'] and dbConfig['db_ck_f'] dbOptions = { host: dbConfig['db_host'] port: dbConfig['db_port'] or 3306 user: dbConfig['db_user'] password: <PASSWORD>['<PASSWORD>'] database: dbConfig['db_name'] ssl: ca: fs.readFileSync('./config/' + dbConfig['db_ca_f']) cert: fs.readFileSync('./config/' + dbConfig['db_cc_f']) key: fs.readFileSync('./config/' + dbConfig['db_ck_f']) rejectUnauthorized: dbConfig['db_reject'] } if not dbConfig['db_reject'] logger.warn("SSL connection to Database is not secure, 'db_reject' should be 'true'") else dbOptions = { host: dbConfig['db_host'] port: dbConfig['db_port'] or 3306 user: dbConfig['db_user'] password: <PASSWORD>['<PASSWORD>'] database: dbConfig['db_name'] } if dbConfig['db_host'] not in ['localhost', '0.0.0.0', '127.0.0.1'] logger.warn('Unsecured connection to external Database, this is unadvised') state.pool = mysql.createPool(dbOptions) return done() exports.get = -> return state.pool
true
fs = require('fs') mysql = require('mysql') state = { pool: null mode: null } exports.connect = (done) -> # Only use SSL if the 3 SSL fields in the config are filled if dbConfig['db_ca_f'] and dbConfig['db_cc_f'] and dbConfig['db_ck_f'] dbOptions = { host: dbConfig['db_host'] port: dbConfig['db_port'] or 3306 user: dbConfig['db_user'] password: PI:PASSWORD:<PASSWORD>END_PI['PI:PASSWORD:<PASSWORD>END_PI'] database: dbConfig['db_name'] ssl: ca: fs.readFileSync('./config/' + dbConfig['db_ca_f']) cert: fs.readFileSync('./config/' + dbConfig['db_cc_f']) key: fs.readFileSync('./config/' + dbConfig['db_ck_f']) rejectUnauthorized: dbConfig['db_reject'] } if not dbConfig['db_reject'] logger.warn("SSL connection to Database is not secure, 'db_reject' should be 'true'") else dbOptions = { host: dbConfig['db_host'] port: dbConfig['db_port'] or 3306 user: dbConfig['db_user'] password: PI:PASSWORD:<PASSWORD>END_PI['PI:PASSWORD:<PASSWORD>END_PI'] database: dbConfig['db_name'] } if dbConfig['db_host'] not in ['localhost', '0.0.0.0', '127.0.0.1'] logger.warn('Unsecured connection to external Database, this is unadvised') state.pool = mysql.createPool(dbOptions) return done() exports.get = -> return state.pool
[ { "context": "-9A-Za-zªµºÀ-ÖØ-öø-ɏḀ-ỿⱠ-ⱿꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])(\n\t\t(?:1John)|(?:(?:1[ao]|I)[\\s\\xa0]*Jo[a\\xE3]o|1[\\s\\xa0]*", "end": 16659, "score": 0.5284895300865173, "start": 16658, "tag": "NAME", "value": "1" }, { "context": "\\[\\]/\"'\\*=~\\-\\u2013\\u2014])|$)///gi\n\t,\n\t\to...
lib/bible-tools/lib/Bible-Passage-Reference-Parser/src/pt/regexps.coffee
saiba-mais/bible-lessons
149
bcv_parser::regexps.space = "[\\s\\xa0]" bcv_parser::regexps.escaped_passage = /// (?:^ | [^\x1f\x1e\dA-Za-zªµºÀ-ÖØ-öø-ɏḀ-ỿⱠ-ⱿꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ] ) # Beginning of string or not in the middle of a word or immediately following another book. Only count a book if it's part of a sequence: `Matt5John3` is OK, but not `1Matt5John3` ( # Start inverted book/chapter (cb) (?: (?: ch (?: apters? | a?pts?\.? | a?p?s?\.? )? \s* \d+ \s* (?: [\u2013\u2014\-] | through | thru | to) \s* \d+ \s* (?: from | of | in ) (?: \s+ the \s+ book \s+ of )?\s* ) | (?: ch (?: apters? | a?pts?\.? | a?p?s?\.? )? \s* \d+ \s* (?: from | of | in ) (?: \s+ the \s+ book \s+ of )?\s* ) | (?: \d+ (?: th | nd | st ) \s* ch (?: apter | a?pt\.? | a?p?\.? )? \s* #no plurals here since it's a single chapter (?: from | of | in ) (?: \s+ the \s+ book \s+ of )? \s* ) )? # End inverted book/chapter (cb) \x1f(\d+)(?:/\d+)?\x1f #book (?: /\d+\x1f #special Psalm chapters | [\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014] | t[íi]tulo (?! [a-z] ) #could be followed by a number | e(?!#{bcv_parser::regexps.space}+sig) | e#{bcv_parser::regexps.space}+sig | vers[íi]culos | cap[íi]tulos | vers[íi]culo | cap[íi]tulo | caps | vers | cap | ver | vss | vs | vv | á | v | [a-d] (?! \w ) #a-e allows 1:1a | $ #or the end of the string )+ ) ///gi # These are the only valid ways to end a potential passage match. The closing parenthesis allows for fully capturing parentheses surrounding translations (ESV**)**. The last one, `[\d\x1f]` needs not to be +; otherwise `Gen5ff` becomes `\x1f0\x1f5ff`, and `adjust_regexp_end` matches the `\x1f5` and incorrectly dangles the ff. bcv_parser::regexps.match_end_split = /// \d \W* t[íi]tulo | \d \W* e#{bcv_parser::regexps.space}+sig (?: [\s\xa0*]* \.)? | \d [\s\xa0*]* [a-d] (?! \w ) | \x1e (?: [\s\xa0*]* [)\]\uff09] )? #ff09 is a full-width closing parenthesis | [\d\x1f] ///gi bcv_parser::regexps.control = /[\x1e\x1f]/g bcv_parser::regexps.pre_book = "[^A-Za-zªµºÀ-ÖØ-öø-ɏḀ-ỿⱠ-ⱿꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ]" bcv_parser::regexps.first = "(?:Primeir[ao]|1[ao]?|I)\\.?#{bcv_parser::regexps.space}*" bcv_parser::regexps.second = "(?:Segund[ao]|2[ao]?|II)\\.?#{bcv_parser::regexps.space}*" bcv_parser::regexps.third = "(?:Terceir[ao]|3[ao]?|III)\\.?#{bcv_parser::regexps.space}*" bcv_parser::regexps.range_and = "(?:[&\u2013\u2014-]|e(?!#{bcv_parser::regexps.space}+sig)|á)" bcv_parser::regexps.range_only = "(?:[\u2013\u2014-]|á)" # Each book regexp should return two parenthesized objects: an optional preliminary character and the book itself. bcv_parser::regexps.get_books = (include_apocrypha, case_sensitive) -> books = [ osis: ["Ps"] apocrypha: true extra: "2" regexp: ///(\b)( # Don't match a preceding \d like usual because we only want to match a valid OSIS, which will never have a preceding digit. Ps151 # Always follwed by ".1"; the regular Psalms parser can handle `Ps151` on its own. )(?=\.1)///g # Case-sensitive because we only want to match a valid OSIS. , osis: ["Gen"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:G(?:[e\xE9\xEA]n(?:esis)?|n)) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Exod"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:[E\xCA]x(?:o(?:do?)?|d)?|\xC9xodo) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Bel"] apocrypha: true regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:Bel(?:[\s\xa0]*e[\s\xa0]*o[\s\xa0]*[Dd]rag[a\xE3]o)?) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Lev"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:L(?:e(?:v(?:[i\xED]ticos?)?)?|v)) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Num"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:N(?:[u\xFA](?:m(?:eros)?)?|m)) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Sir"] apocrypha: true regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:Sir(?:[a\xE1]cida)?|Eclesi[a\xE1]stico) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Wis"] apocrypha: true regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:S(?:ab(?:edoria(?:[\s\xa0]*de[\s\xa0]*Salom[a\xE3]o)?)?|b)|Wis) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Lam"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:L(?:am(?:enta[c\xE7](?:[o\xF5]es(?:[\s\xa0]*de[\s\xa0]*Jeremias)?|\xF4es[\s\xa0]*de[\s\xa0]*Jeremias))?|m)) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["EpJer"] apocrypha: true regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:Cart(?:a[\s\xa0]*de[\s\xa0]*Jeremias|\.?[\s\xa0]*Jer)|EpJer) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Rev"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:Ap(?:oc(?:alipse(?:[\s\xa0]*de[\s\xa0]*(?:S[a\xE3]o[\s\xa0]*Jo[a\xE3]|Jo[a\xE3])o)?)?|c)?|Rev) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["PrMan"] apocrypha: true regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:Pr(?:ece[\s\xa0]*de[\s\xa0]*Manass[e\xE9]s|[\s\xa0]*?Man)) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Deut"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:D(?:eu(?:t(?:eron[o\xF3\xF4]mio)?)?|t)) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Josh"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:J(?:os(?:u[e\xE9]|h)?|s)) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Judg"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:J(?:u(?:[i\xED]z(?:es)?|dg)|z)) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Ruth"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:R(?:u(?:t[eh]?)?|t)) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["2Esd"] apocrypha: true regexp: ///(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏḀ-ỿⱠ-ⱿꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])( (?:2[\s\xa0]*Esdras)|(?:(?:2[ao]|II)[\s\xa0]*Esdras|2(?:[\s\xa0]*?Esd|[\s\xa0]*Es)|(?:2[ao]?|II)\.[\s\xa0]*Esdras|Segund[ao][\s\xa0]*Esdras) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["1Esd"] apocrypha: true regexp: ///(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏḀ-ỿⱠ-ⱿꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])( (?:1[\s\xa0]*Esdras)|(?:(?:1[ao]|I)[\s\xa0]*Esdras|1(?:[\s\xa0]*?Esd|[\s\xa0]*Es)|(?:1[ao]?|I)\.[\s\xa0]*Esdras|Primeir[ao][\s\xa0]*Esdras) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Isa"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:Is(?:a(?:[i\xED]as)?)?) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["2Sam"] regexp: ///(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏḀ-ỿⱠ-ⱿꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])( (?:2(?:(?:[\s\xa0]*S|Sa)m|[\s\xa0]*Samuel|[\s\xa0]*S(?:am?)?|[\s\xa0]*Reinos)|(?:2[ao]|II)[\s\xa0]*(?:Reinos|Samuel)|(?:2[ao]?|II)\.[\s\xa0]*(?:Reinos|Samuel)|Segund[ao][\s\xa0]*(?:Reinos|Samuel)) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["1Sam"] regexp: ///(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏḀ-ỿⱠ-ⱿꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])( (?:1(?:(?:[\s\xa0]*S|Sa)m|[\s\xa0]*Samuel|[\s\xa0]*S(?:am?)?|[\s\xa0]*Reinos)|(?:1[ao]|I)[\s\xa0]*(?:Reinos|Samuel)|(?:1[ao]?|I)\.[\s\xa0]*(?:Reinos|Samuel)|Primeir[ao][\s\xa0]*(?:Reinos|Samuel)) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["2Kgs"] regexp: ///(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏḀ-ỿⱠ-ⱿꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])( (?:(?:(?:2[ao]|II)[\s\xa0]*Rei|2(?:[\s\xa0]*Rei|Kg)|(?:2[ao]?|II)\.[\s\xa0]*Rei|Segund[ao][\s\xa0]*Rei)s|2[\s\xa0]*R(?:e|s)?|(?:4[ao]?|IV)[\s\xa0]*Reinos|(?:4[ao]?|IV)\.[\s\xa0]*Reinos|Quart[ao][\s\xa0]*Reinos) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["1Kgs"] regexp: ///(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏḀ-ỿⱠ-ⱿꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])( (?:(?:(?:1[ao]|I)[\s\xa0]*Rei|1(?:[\s\xa0]*Rei|Kg)|(?:1[ao]?|I)\.[\s\xa0]*Rei|Primeir[ao][\s\xa0]*Rei)s|1[\s\xa0]*R(?:e|s)?|(?:3[ao]?|III)[\s\xa0]*Reinos|(?:3[ao]?|III)\.[\s\xa0]*Reinos|Terceir[ao][\s\xa0]*Reinos) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["2Chr"] regexp: ///(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏḀ-ỿⱠ-ⱿꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])( (?:2[\s\xa0]*Cr[o\xF4]nicas)|(?:2(?:[\s\xa0]*Cr[o\xF4]n|Chr|[\s\xa0]*Cr[o\xF4]?)|(?:2[ao]|II)[\s\xa0]*Cr[o\xF4]nicas|(?:2[ao]?|II)\.[\s\xa0]*Cr[o\xF4]nicas|Segund[ao][\s\xa0]*Cr[o\xF4]nicas) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["1Chr"] regexp: ///(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏḀ-ỿⱠ-ⱿꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])( (?:1[\s\xa0]*Cr[o\xF4]nicas)|(?:1(?:[\s\xa0]*Cr[o\xF4]n|Chr|[\s\xa0]*Cr[o\xF4]?)|(?:1[ao]|I)[\s\xa0]*Cr[o\xF4]nicas|(?:1[ao]?|I)\.[\s\xa0]*Cr[o\xF4]nicas|Primeir[ao][\s\xa0]*Cr[o\xF4]nicas) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Ezra"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:E(?:sd(?:r(?:as)?)?|zra|d)) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Neh"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:Ne(?:emias|h)?) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["GkEsth"] apocrypha: true regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:Est(?:er[\s\xa0]*(?:\([Gg]rega\)|[Gg]rega)|[\s\xa0]*\(Gr\))|GkEsth) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Esth"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:E(?:st(?:er|h)?|t)) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Job"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:J(?:\xF3|ob)) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["PrAzar"] apocrypha: true regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:Sal(?:mo[\s\xa0]*de[\s\xa0]*Azarias|[\s\xa0]*Azar)|PrAzar) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Ps"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:S(?:al(?:mos?)?|l)|Ps) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Prov"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:P(?:r(?:o(?:v(?:[e\xE9]rbios)?)?|v)?|v)) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Eccl"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:Ec(?:l(?:esiastes)?|cl)?|Co[e\xE9]let) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["SgThree"] apocrypha: true regexp: ///(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏḀ-ỿⱠ-ⱿꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])( (?:C(?:[a\xE2]ntico[\s\xa0]*dos[\s\xa0]*(?:Tr[e\xEA]s|3)[\s\xa0]*Jovens|3J)|SgThree) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Song"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:C(?:ant(?:ico(?:[\s\xa0]*(?:(?:de[\s\xa0]*Salom[a\xE3]|Superlativ)o|dos[\s\xa0]*C[a\xE2]nticos)|s[\s\xa0]*dos[\s\xa0]*C[a\xE2]nticos)|ares[\s\xa0]*de[\s\xa0]*Salom[a\xE3]o)?|\xE2ntico(?:[\s\xa0]*(?:(?:de[\s\xa0]*Salom[a\xE3]|Superlativ)o|dos[\s\xa0]*C[a\xE2]nticos)|s[\s\xa0]*dos[\s\xa0]*C[a\xE2]nticos)|(?:\xE2n|n)?t)|Song)|(?:C(?:ant(?:are|ico)|\xE2ntico)s) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Jer"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:J(?:e(?:r(?:emias)?)?|r)) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Ezek"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:Ez(?:e(?:q(?:uiel)?|k)?)?) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Dan"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:D(?:a(?:n(?:iel)?)?|n)) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Hos"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:Os(?:[e\xE9]ias)?|Hos) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Joel"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:J(?:oe)?l) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Amos"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:Am(?:[o\xF3]s)?) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Obad"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:Ob(?:a(?:d(?:ias)?)?|d)?|Abd(?:ias)?) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Jonah"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:J(?:on(?:a[hs])?|n)) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Mic"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:M(?:i(?:q(?:u[e\xE9]ias)?|c)|q)) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Nah"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:Na(?:um|h)?) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Hab"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:H(?:ab(?:acu(?:que|c))?|c)) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Zeph"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:S(?:of(?:onias)?|f)|Zeph) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Hag"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:Ag(?:eu)?|Hag) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Zech"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:Z(?:ac(?:arias)?|ech|c)) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Mal"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:M(?:al(?:aquias)?|l)) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Matt"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:M(?:at(?:eus|t)?|t)) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["1Macc"] apocrypha: true regexp: ///(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏḀ-ỿⱠ-ⱿꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])( (?:1[\s\xa0]*Macabeus)|(?:1Macc)|(?:(?:1[ao]|I)[\s\xa0]*Macabeus|1[\s\xa0]*M(?:a?c)?|(?:1[ao]?|I)\.[\s\xa0]*Macabeus|Primeir[ao][\s\xa0]*Macabeus) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["2Macc"] apocrypha: true regexp: ///(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏḀ-ỿⱠ-ⱿꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])( (?:2[\s\xa0]*Macabeus)|(?:2Macc)|(?:(?:2[ao]|II)[\s\xa0]*Macabeus|2[\s\xa0]*M(?:a?c)?|(?:2[ao]?|II)\.[\s\xa0]*Macabeus|Segund[ao][\s\xa0]*Macabeus) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["3Macc"] apocrypha: true regexp: ///(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏḀ-ỿⱠ-ⱿꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])( (?:3[\s\xa0]*Macabeus)|(?:3Macc)|(?:(?:3[ao]|III)[\s\xa0]*Macabeus|3[\s\xa0]*M(?:a?c)?|(?:3[ao]?|III)\.[\s\xa0]*Macabeus|Terceir[ao][\s\xa0]*Macabeus) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["4Macc"] apocrypha: true regexp: ///(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏḀ-ỿⱠ-ⱿꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])( (?:4[\s\xa0]*Macabeus)|(?:4Macc)|(?:(?:4[ao]|IV)[\s\xa0]*Macabeus|4[\s\xa0]*M(?:a?c)?|(?:4[ao]?|IV)\.[\s\xa0]*Macabeus|Quart[ao][\s\xa0]*Macabeus) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Mark"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:M(?:ar(?:cos|k)|r?c)) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Luke"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:L(?:u(?:c(?:as)?|ke)|c)) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["1John"] regexp: ///(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏḀ-ỿⱠ-ⱿꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])( (?:1John)|(?:(?:1[ao]|I)[\s\xa0]*Jo[a\xE3]o|1[\s\xa0]*J(?:o[a\xE3]o|o)?|(?:1[ao]?|I)\.[\s\xa0]*Jo[a\xE3]o|Primeir[ao][\s\xa0]*Jo[a\xE3]o) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["2John"] regexp: ///(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏḀ-ỿⱠ-ⱿꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])( (?:2John)|(?:(?:2[ao]|II)[\s\xa0]*Jo[a\xE3]o|2[\s\xa0]*J(?:o[a\xE3]o|o)?|(?:2[ao]?|II)\.[\s\xa0]*Jo[a\xE3]o|Segund[ao][\s\xa0]*Jo[a\xE3]o) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["3John"] regexp: ///(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏḀ-ỿⱠ-ⱿꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])( (?:3John)|(?:(?:3[ao]|III)[\s\xa0]*Jo[a\xE3]o|3[\s\xa0]*J(?:o[a\xE3]o|o)?|(?:3[ao]?|III)\.[\s\xa0]*Jo[a\xE3]o|Terceir[ao][\s\xa0]*Jo[a\xE3]o) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["John"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:Jo(?:[a\xE3]o|hn)?) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Acts"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:A(?:t(?:os(?:[\s\xa0]*dos[\s\xa0]*Ap[o\xF3]stolos)?)?|cts)) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Rom"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:R(?:o(?:m(?:anos)?)?|m)) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["2Cor"] regexp: ///(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏḀ-ỿⱠ-ⱿꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])( (?:2(?:[\s\xa0]*Cor[i\xED]ntios|[\s\xa0]*Cor?|Cor)|(?:2[ao]|II)[\s\xa0]*Cor[i\xED]ntios|(?:2[ao]?|II)\.[\s\xa0]*Cor[i\xED]ntios|Segund[ao][\s\xa0]*Cor[i\xED]ntios) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["1Cor"] regexp: ///(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏḀ-ỿⱠ-ⱿꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])( (?:1(?:[\s\xa0]*Cor[i\xED]ntios|[\s\xa0]*Cor?|Cor)|(?:1[ao]|I)[\s\xa0]*Cor[i\xED]ntios|(?:1[ao]?|I)\.[\s\xa0]*Cor[i\xED]ntios|Primeir[ao][\s\xa0]*Cor[i\xED]ntios) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Gal"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:G(?:[a\xE1]l(?:atas)?|l)) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Eph"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:E(?:f(?:[e\xE9]sios)?|ph)) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Phil"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:F(?:il(?:ipenses)?|[lp])|Phil) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Col"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:C(?:ol(?:ossenses)?|l)) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["2Thess"] regexp: ///(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏḀ-ỿⱠ-ⱿꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])( (?:(?:2(?:[\s\xa0]*Tessalonicense|[\s\xa0]*T(?:es)?|Thes)|(?:2[ao]|II)[\s\xa0]*Tessalonicense|(?:2[ao]?|II)\.[\s\xa0]*Tessalonicense|Segund[ao][\s\xa0]*Tessalonicense)s) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["1Thess"] regexp: ///(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏḀ-ỿⱠ-ⱿꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])( (?:(?:1(?:[\s\xa0]*Tessalonicense|[\s\xa0]*T(?:es)?|Thes)|(?:1[ao]|I)[\s\xa0]*Tessalonicense|(?:1[ao]?|I)\.[\s\xa0]*Tessalonicense|Primeir[ao][\s\xa0]*Tessalonicense)s) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["2Tim"] regexp: ///(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏḀ-ỿⱠ-ⱿꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])( (?:2[\s\xa0]*Tim[o\xF3]teo)|(?:(?:2[ao]|II)[\s\xa0]*Tim[o\xF3]teo|2(?:(?:[\s\xa0]*Ti?|Ti)m|[\s\xa0]*Ti)|(?:2[ao]?|II)\.[\s\xa0]*Tim[o\xF3]teo|Segund[ao][\s\xa0]*Tim[o\xF3]teo) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["1Tim"] regexp: ///(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏḀ-ỿⱠ-ⱿꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])( (?:1[\s\xa0]*Tim[o\xF3]teo)|(?:(?:1[ao]|I)[\s\xa0]*Tim[o\xF3]teo|1(?:(?:[\s\xa0]*Ti?|Ti)m|[\s\xa0]*Ti)|(?:1[ao]?|I)\.[\s\xa0]*Tim[o\xF3]teo|Primeir[ao][\s\xa0]*Tim[o\xF3]teo) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Titus"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:T(?:it(?:us|o)?|t)) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Phlm"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:F(?:il(?:emo[mn]|\xE9mon)|l?mn|l?m)|Phlm) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Heb"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:H(?:eb(?:reus)?|b)) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Jas"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:T(?:iago|g)|Jas) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["2Pet"] regexp: ///(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏḀ-ỿⱠ-ⱿꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])( (?:2(?:[\s\xa0]*Pedro|Pet))|(?:(?:2[ao]|II)[\s\xa0]*Pedro|2[\s\xa0]*Ped?|(?:2[ao]?|II)\.[\s\xa0]*Pedro|Segund[ao][\s\xa0]*Pedro) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["1Pet"] regexp: ///(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏḀ-ỿⱠ-ⱿꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])( (?:1(?:[\s\xa0]*Pedro|Pet))|(?:(?:1[ao]|I)[\s\xa0]*Pedro|1[\s\xa0]*Ped?|(?:1[ao]?|I)\.[\s\xa0]*Pedro|Primeir[ao][\s\xa0]*Pedro) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Jude"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:J(?:ud(?:as|e)?|d)) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Tob"] apocrypha: true regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:Tob(?:ias)?) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Jdt"] apocrypha: true regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:J(?:udite|dt)) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Bar"] apocrypha: true regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:Bar(?:u(?:[ck]|que))?) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Sus"] apocrypha: true regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:Hist[o\xF3]ria[\s\xa0]*de[\s\xa0]*Susana|Sus(?:ana)?) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi ] # Short-circuit the look if we know we want all the books. return books if include_apocrypha is true and case_sensitive is "none" # Filter out books in the Apocrypha if we don't want them. `Array.map` isn't supported below IE9. out = [] for book in books continue if include_apocrypha is false and book.apocrypha? and book.apocrypha is true if case_sensitive is "books" book.regexp = new RegExp book.regexp.source, "g" out.push book out # Default to not using the Apocrypha bcv_parser::regexps.books = bcv_parser::regexps.get_books false, "none"
215167
bcv_parser::regexps.space = "[\\s\\xa0]" bcv_parser::regexps.escaped_passage = /// (?:^ | [^\x1f\x1e\dA-Za-zªµºÀ-ÖØ-öø-ɏḀ-ỿⱠ-ⱿꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ] ) # Beginning of string or not in the middle of a word or immediately following another book. Only count a book if it's part of a sequence: `Matt5John3` is OK, but not `1Matt5John3` ( # Start inverted book/chapter (cb) (?: (?: ch (?: apters? | a?pts?\.? | a?p?s?\.? )? \s* \d+ \s* (?: [\u2013\u2014\-] | through | thru | to) \s* \d+ \s* (?: from | of | in ) (?: \s+ the \s+ book \s+ of )?\s* ) | (?: ch (?: apters? | a?pts?\.? | a?p?s?\.? )? \s* \d+ \s* (?: from | of | in ) (?: \s+ the \s+ book \s+ of )?\s* ) | (?: \d+ (?: th | nd | st ) \s* ch (?: apter | a?pt\.? | a?p?\.? )? \s* #no plurals here since it's a single chapter (?: from | of | in ) (?: \s+ the \s+ book \s+ of )? \s* ) )? # End inverted book/chapter (cb) \x1f(\d+)(?:/\d+)?\x1f #book (?: /\d+\x1f #special Psalm chapters | [\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014] | t[íi]tulo (?! [a-z] ) #could be followed by a number | e(?!#{bcv_parser::regexps.space}+sig) | e#{bcv_parser::regexps.space}+sig | vers[íi]culos | cap[íi]tulos | vers[íi]culo | cap[íi]tulo | caps | vers | cap | ver | vss | vs | vv | á | v | [a-d] (?! \w ) #a-e allows 1:1a | $ #or the end of the string )+ ) ///gi # These are the only valid ways to end a potential passage match. The closing parenthesis allows for fully capturing parentheses surrounding translations (ESV**)**. The last one, `[\d\x1f]` needs not to be +; otherwise `Gen5ff` becomes `\x1f0\x1f5ff`, and `adjust_regexp_end` matches the `\x1f5` and incorrectly dangles the ff. bcv_parser::regexps.match_end_split = /// \d \W* t[íi]tulo | \d \W* e#{bcv_parser::regexps.space}+sig (?: [\s\xa0*]* \.)? | \d [\s\xa0*]* [a-d] (?! \w ) | \x1e (?: [\s\xa0*]* [)\]\uff09] )? #ff09 is a full-width closing parenthesis | [\d\x1f] ///gi bcv_parser::regexps.control = /[\x1e\x1f]/g bcv_parser::regexps.pre_book = "[^A-Za-zªµºÀ-ÖØ-öø-ɏḀ-ỿⱠ-ⱿꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ]" bcv_parser::regexps.first = "(?:Primeir[ao]|1[ao]?|I)\\.?#{bcv_parser::regexps.space}*" bcv_parser::regexps.second = "(?:Segund[ao]|2[ao]?|II)\\.?#{bcv_parser::regexps.space}*" bcv_parser::regexps.third = "(?:Terceir[ao]|3[ao]?|III)\\.?#{bcv_parser::regexps.space}*" bcv_parser::regexps.range_and = "(?:[&\u2013\u2014-]|e(?!#{bcv_parser::regexps.space}+sig)|á)" bcv_parser::regexps.range_only = "(?:[\u2013\u2014-]|á)" # Each book regexp should return two parenthesized objects: an optional preliminary character and the book itself. bcv_parser::regexps.get_books = (include_apocrypha, case_sensitive) -> books = [ osis: ["Ps"] apocrypha: true extra: "2" regexp: ///(\b)( # Don't match a preceding \d like usual because we only want to match a valid OSIS, which will never have a preceding digit. Ps151 # Always follwed by ".1"; the regular Psalms parser can handle `Ps151` on its own. )(?=\.1)///g # Case-sensitive because we only want to match a valid OSIS. , osis: ["Gen"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:G(?:[e\xE9\xEA]n(?:esis)?|n)) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Exod"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:[E\xCA]x(?:o(?:do?)?|d)?|\xC9xodo) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Bel"] apocrypha: true regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:Bel(?:[\s\xa0]*e[\s\xa0]*o[\s\xa0]*[Dd]rag[a\xE3]o)?) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Lev"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:L(?:e(?:v(?:[i\xED]ticos?)?)?|v)) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Num"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:N(?:[u\xFA](?:m(?:eros)?)?|m)) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Sir"] apocrypha: true regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:Sir(?:[a\xE1]cida)?|Eclesi[a\xE1]stico) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Wis"] apocrypha: true regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:S(?:ab(?:edoria(?:[\s\xa0]*de[\s\xa0]*Salom[a\xE3]o)?)?|b)|Wis) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Lam"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:L(?:am(?:enta[c\xE7](?:[o\xF5]es(?:[\s\xa0]*de[\s\xa0]*Jeremias)?|\xF4es[\s\xa0]*de[\s\xa0]*Jeremias))?|m)) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["EpJer"] apocrypha: true regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:Cart(?:a[\s\xa0]*de[\s\xa0]*Jeremias|\.?[\s\xa0]*Jer)|EpJer) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Rev"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:Ap(?:oc(?:alipse(?:[\s\xa0]*de[\s\xa0]*(?:S[a\xE3]o[\s\xa0]*Jo[a\xE3]|Jo[a\xE3])o)?)?|c)?|Rev) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["PrMan"] apocrypha: true regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:Pr(?:ece[\s\xa0]*de[\s\xa0]*Manass[e\xE9]s|[\s\xa0]*?Man)) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Deut"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:D(?:eu(?:t(?:eron[o\xF3\xF4]mio)?)?|t)) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Josh"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:J(?:os(?:u[e\xE9]|h)?|s)) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Judg"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:J(?:u(?:[i\xED]z(?:es)?|dg)|z)) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Ruth"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:R(?:u(?:t[eh]?)?|t)) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["2Esd"] apocrypha: true regexp: ///(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏḀ-ỿⱠ-ⱿꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])( (?:2[\s\xa0]*Esdras)|(?:(?:2[ao]|II)[\s\xa0]*Esdras|2(?:[\s\xa0]*?Esd|[\s\xa0]*Es)|(?:2[ao]?|II)\.[\s\xa0]*Esdras|Segund[ao][\s\xa0]*Esdras) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["1Esd"] apocrypha: true regexp: ///(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏḀ-ỿⱠ-ⱿꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])( (?:1[\s\xa0]*Esdras)|(?:(?:1[ao]|I)[\s\xa0]*Esdras|1(?:[\s\xa0]*?Esd|[\s\xa0]*Es)|(?:1[ao]?|I)\.[\s\xa0]*Esdras|Primeir[ao][\s\xa0]*Esdras) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Isa"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:Is(?:a(?:[i\xED]as)?)?) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["2Sam"] regexp: ///(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏḀ-ỿⱠ-ⱿꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])( (?:2(?:(?:[\s\xa0]*S|Sa)m|[\s\xa0]*Samuel|[\s\xa0]*S(?:am?)?|[\s\xa0]*Reinos)|(?:2[ao]|II)[\s\xa0]*(?:Reinos|Samuel)|(?:2[ao]?|II)\.[\s\xa0]*(?:Reinos|Samuel)|Segund[ao][\s\xa0]*(?:Reinos|Samuel)) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["1Sam"] regexp: ///(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏḀ-ỿⱠ-ⱿꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])( (?:1(?:(?:[\s\xa0]*S|Sa)m|[\s\xa0]*Samuel|[\s\xa0]*S(?:am?)?|[\s\xa0]*Reinos)|(?:1[ao]|I)[\s\xa0]*(?:Reinos|Samuel)|(?:1[ao]?|I)\.[\s\xa0]*(?:Reinos|Samuel)|Primeir[ao][\s\xa0]*(?:Reinos|Samuel)) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["2Kgs"] regexp: ///(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏḀ-ỿⱠ-ⱿꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])( (?:(?:(?:2[ao]|II)[\s\xa0]*Rei|2(?:[\s\xa0]*Rei|Kg)|(?:2[ao]?|II)\.[\s\xa0]*Rei|Segund[ao][\s\xa0]*Rei)s|2[\s\xa0]*R(?:e|s)?|(?:4[ao]?|IV)[\s\xa0]*Reinos|(?:4[ao]?|IV)\.[\s\xa0]*Reinos|Quart[ao][\s\xa0]*Reinos) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["1Kgs"] regexp: ///(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏḀ-ỿⱠ-ⱿꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])( (?:(?:(?:1[ao]|I)[\s\xa0]*Rei|1(?:[\s\xa0]*Rei|Kg)|(?:1[ao]?|I)\.[\s\xa0]*Rei|Primeir[ao][\s\xa0]*Rei)s|1[\s\xa0]*R(?:e|s)?|(?:3[ao]?|III)[\s\xa0]*Reinos|(?:3[ao]?|III)\.[\s\xa0]*Reinos|Terceir[ao][\s\xa0]*Reinos) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["2Chr"] regexp: ///(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏḀ-ỿⱠ-ⱿꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])( (?:2[\s\xa0]*Cr[o\xF4]nicas)|(?:2(?:[\s\xa0]*Cr[o\xF4]n|Chr|[\s\xa0]*Cr[o\xF4]?)|(?:2[ao]|II)[\s\xa0]*Cr[o\xF4]nicas|(?:2[ao]?|II)\.[\s\xa0]*Cr[o\xF4]nicas|Segund[ao][\s\xa0]*Cr[o\xF4]nicas) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["1Chr"] regexp: ///(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏḀ-ỿⱠ-ⱿꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])( (?:1[\s\xa0]*Cr[o\xF4]nicas)|(?:1(?:[\s\xa0]*Cr[o\xF4]n|Chr|[\s\xa0]*Cr[o\xF4]?)|(?:1[ao]|I)[\s\xa0]*Cr[o\xF4]nicas|(?:1[ao]?|I)\.[\s\xa0]*Cr[o\xF4]nicas|Primeir[ao][\s\xa0]*Cr[o\xF4]nicas) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Ezra"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:E(?:sd(?:r(?:as)?)?|zra|d)) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Neh"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:Ne(?:emias|h)?) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["GkEsth"] apocrypha: true regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:Est(?:er[\s\xa0]*(?:\([Gg]rega\)|[Gg]rega)|[\s\xa0]*\(Gr\))|GkEsth) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Esth"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:E(?:st(?:er|h)?|t)) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Job"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:J(?:\xF3|ob)) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["PrAzar"] apocrypha: true regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:Sal(?:mo[\s\xa0]*de[\s\xa0]*Azarias|[\s\xa0]*Azar)|PrAzar) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Ps"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:S(?:al(?:mos?)?|l)|Ps) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Prov"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:P(?:r(?:o(?:v(?:[e\xE9]rbios)?)?|v)?|v)) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Eccl"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:Ec(?:l(?:esiastes)?|cl)?|Co[e\xE9]let) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["SgThree"] apocrypha: true regexp: ///(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏḀ-ỿⱠ-ⱿꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])( (?:C(?:[a\xE2]ntico[\s\xa0]*dos[\s\xa0]*(?:Tr[e\xEA]s|3)[\s\xa0]*Jovens|3J)|SgThree) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Song"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:C(?:ant(?:ico(?:[\s\xa0]*(?:(?:de[\s\xa0]*Salom[a\xE3]|Superlativ)o|dos[\s\xa0]*C[a\xE2]nticos)|s[\s\xa0]*dos[\s\xa0]*C[a\xE2]nticos)|ares[\s\xa0]*de[\s\xa0]*Salom[a\xE3]o)?|\xE2ntico(?:[\s\xa0]*(?:(?:de[\s\xa0]*Salom[a\xE3]|Superlativ)o|dos[\s\xa0]*C[a\xE2]nticos)|s[\s\xa0]*dos[\s\xa0]*C[a\xE2]nticos)|(?:\xE2n|n)?t)|Song)|(?:C(?:ant(?:are|ico)|\xE2ntico)s) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Jer"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:J(?:e(?:r(?:emias)?)?|r)) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Ezek"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:Ez(?:e(?:q(?:uiel)?|k)?)?) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Dan"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:D(?:a(?:n(?:iel)?)?|n)) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Hos"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:Os(?:[e\xE9]ias)?|Hos) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Joel"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:J(?:oe)?l) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Amos"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:Am(?:[o\xF3]s)?) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Obad"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:Ob(?:a(?:d(?:ias)?)?|d)?|Abd(?:ias)?) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Jonah"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:J(?:on(?:a[hs])?|n)) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Mic"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:M(?:i(?:q(?:u[e\xE9]ias)?|c)|q)) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Nah"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:Na(?:um|h)?) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Hab"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:H(?:ab(?:acu(?:que|c))?|c)) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Zeph"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:S(?:of(?:onias)?|f)|Zeph) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Hag"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:Ag(?:eu)?|Hag) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Zech"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:Z(?:ac(?:arias)?|ech|c)) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Mal"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:M(?:al(?:aquias)?|l)) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Matt"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:M(?:at(?:eus|t)?|t)) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["1Macc"] apocrypha: true regexp: ///(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏḀ-ỿⱠ-ⱿꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])( (?:1[\s\xa0]*Macabeus)|(?:1Macc)|(?:(?:1[ao]|I)[\s\xa0]*Macabeus|1[\s\xa0]*M(?:a?c)?|(?:1[ao]?|I)\.[\s\xa0]*Macabeus|Primeir[ao][\s\xa0]*Macabeus) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["2Macc"] apocrypha: true regexp: ///(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏḀ-ỿⱠ-ⱿꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])( (?:2[\s\xa0]*Macabeus)|(?:2Macc)|(?:(?:2[ao]|II)[\s\xa0]*Macabeus|2[\s\xa0]*M(?:a?c)?|(?:2[ao]?|II)\.[\s\xa0]*Macabeus|Segund[ao][\s\xa0]*Macabeus) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["3Macc"] apocrypha: true regexp: ///(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏḀ-ỿⱠ-ⱿꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])( (?:3[\s\xa0]*Macabeus)|(?:3Macc)|(?:(?:3[ao]|III)[\s\xa0]*Macabeus|3[\s\xa0]*M(?:a?c)?|(?:3[ao]?|III)\.[\s\xa0]*Macabeus|Terceir[ao][\s\xa0]*Macabeus) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["4Macc"] apocrypha: true regexp: ///(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏḀ-ỿⱠ-ⱿꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])( (?:4[\s\xa0]*Macabeus)|(?:4Macc)|(?:(?:4[ao]|IV)[\s\xa0]*Macabeus|4[\s\xa0]*M(?:a?c)?|(?:4[ao]?|IV)\.[\s\xa0]*Macabeus|Quart[ao][\s\xa0]*Macabeus) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Mark"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:M(?:ar(?:cos|k)|r?c)) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Luke"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:L(?:u(?:c(?:as)?|ke)|c)) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["1John"] regexp: ///(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏḀ-ỿⱠ-ⱿꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])( (?:<NAME>John)|(?:(?:1[ao]|I)[\s\xa0]*Jo[a\xE3]o|1[\s\xa0]*J(?:o[a\xE3]o|o)?|(?:1[ao]?|I)\.[\s\xa0]*Jo[a\xE3]o|Primeir[ao][\s\xa0]*Jo[a\xE3]o) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["2<NAME>"] regexp: ///(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏḀ-ỿⱠ-ⱿꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])( (?:<NAME>John)|(?:(?:2[ao]|II)[\s\xa0]*Jo[a\xE3]o|2[\s\xa0]*J(?:o[a\xE3]o|o)?|(?:2[ao]?|II)\.[\s\xa0]*Jo[a\xE3]o|Segund[ao][\s\xa0]*Jo[a\xE3]o) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["3John"] regexp: ///(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏḀ-ỿⱠ-ⱿꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])( (?:3John)|(?:(?:3[ao]|III)[\s\xa0]*Jo[a\xE3]o|3[\s\xa0]*J(?:o[a\xE3]o|o)?|(?:3[ao]?|III)\.[\s\xa0]*Jo[a\xE3]o|Terceir[ao][\s\xa0]*Jo[a\xE3]o) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["John"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:Jo(?:[a\xE3]o|hn)?) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Acts"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:A(?:t(?:os(?:[\s\xa0]*dos[\s\xa0]*Ap[o\xF3]stolos)?)?|cts)) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Rom"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:R(?:o(?:m(?:anos)?)?|m)) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["2Cor"] regexp: ///(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏḀ-ỿⱠ-ⱿꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])( (?:2(?:[\s\xa0]*Cor[i\xED]ntios|[\s\xa0]*Cor?|Cor)|(?:2[ao]|II)[\s\xa0]*Cor[i\xED]ntios|(?:2[ao]?|II)\.[\s\xa0]*Cor[i\xED]ntios|Segund[ao][\s\xa0]*Cor[i\xED]ntios) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["1Cor"] regexp: ///(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏḀ-ỿⱠ-ⱿꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])( (?:1(?:[\s\xa0]*Cor[i\xED]ntios|[\s\xa0]*Cor?|Cor)|(?:1[ao]|I)[\s\xa0]*Cor[i\xED]ntios|(?:1[ao]?|I)\.[\s\xa0]*Cor[i\xED]ntios|Primeir[ao][\s\xa0]*Cor[i\xED]ntios) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Gal"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:G(?:[a\xE1]l(?:atas)?|l)) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Eph"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:E(?:f(?:[e\xE9]sios)?|ph)) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Phil"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:F(?:il(?:ipenses)?|[lp])|Phil) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Col"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:C(?:ol(?:ossenses)?|l)) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["2Thess"] regexp: ///(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏḀ-ỿⱠ-ⱿꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])( (?:(?:2(?:[\s\xa0]*Tessalonicense|[\s\xa0]*T(?:es)?|Thes)|(?:2[ao]|II)[\s\xa0]*Tessalonicense|(?:2[ao]?|II)\.[\s\xa0]*Tessalonicense|Segund[ao][\s\xa0]*Tessalonicense)s) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["1Thess"] regexp: ///(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏḀ-ỿⱠ-ⱿꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])( (?:(?:1(?:[\s\xa0]*Tessalonicense|[\s\xa0]*T(?:es)?|Thes)|(?:1[ao]|I)[\s\xa0]*Tessalonicense|(?:1[ao]?|I)\.[\s\xa0]*Tessalonicense|Primeir[ao][\s\xa0]*Tessalonicense)s) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["2Tim"] regexp: ///(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏḀ-ỿⱠ-ⱿꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])( (?:2[\s\xa0]*Tim[o\xF3]teo)|(?:(?:2[ao]|II)[\s\xa0]*Tim[o\xF3]teo|2(?:(?:[\s\xa0]*Ti?|Ti)m|[\s\xa0]*Ti)|(?:2[ao]?|II)\.[\s\xa0]*Tim[o\xF3]teo|Segund[ao][\s\xa0]*Tim[o\xF3]teo) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["1Tim"] regexp: ///(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏḀ-ỿⱠ-ⱿꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])( (?:1[\s\xa0]*Tim[o\xF3]teo)|(?:(?:1[ao]|I)[\s\xa0]*Tim[o\xF3]teo|1(?:(?:[\s\xa0]*Ti?|Ti)m|[\s\xa0]*Ti)|(?:1[ao]?|I)\.[\s\xa0]*Tim[o\xF3]teo|Primeir[ao][\s\xa0]*Tim[o\xF3]teo) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Titus"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:T(?:it(?:us|o)?|t)) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Phlm"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:F(?:il(?:emo[mn]|\xE9mon)|l?mn|l?m)|Phlm) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Heb"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:H(?:eb(?:reus)?|b)) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Jas"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:T(?:iago|g)|Jas) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["2Pet"] regexp: ///(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏḀ-ỿⱠ-ⱿꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])( (?:2(?:[\s\xa0]*Pedro|Pet))|(?:(?:2[ao]|II)[\s\xa0]*Pedro|2[\s\xa0]*Ped?|(?:2[ao]?|II)\.[\s\xa0]*Pedro|Segund[ao][\s\xa0]*Pedro) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["1Pet"] regexp: ///(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏḀ-ỿⱠ-ⱿꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])( (?:1(?:[\s\xa0]*Pedro|Pet))|(?:(?:1[ao]|I)[\s\xa0]*Pedro|1[\s\xa0]*Ped?|(?:1[ao]?|I)\.[\s\xa0]*Pedro|Primeir[ao][\s\xa0]*Pedro) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Jude"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:J(?:ud(?:as|e)?|d)) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Tob"] apocrypha: true regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:Tob(?:ias)?) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Jdt"] apocrypha: true regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:J(?:udite|dt)) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Bar"] apocrypha: true regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:Bar(?:u(?:[ck]|que))?) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Sus"] apocrypha: true regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:Hist[o\xF3]ria[\s\xa0]*de[\s\xa0]*Susana|Sus(?:ana)?) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi ] # Short-circuit the look if we know we want all the books. return books if include_apocrypha is true and case_sensitive is "none" # Filter out books in the Apocrypha if we don't want them. `Array.map` isn't supported below IE9. out = [] for book in books continue if include_apocrypha is false and book.apocrypha? and book.apocrypha is true if case_sensitive is "books" book.regexp = new RegExp book.regexp.source, "g" out.push book out # Default to not using the Apocrypha bcv_parser::regexps.books = bcv_parser::regexps.get_books false, "none"
true
bcv_parser::regexps.space = "[\\s\\xa0]" bcv_parser::regexps.escaped_passage = /// (?:^ | [^\x1f\x1e\dA-Za-zªµºÀ-ÖØ-öø-ɏḀ-ỿⱠ-ⱿꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ] ) # Beginning of string or not in the middle of a word or immediately following another book. Only count a book if it's part of a sequence: `Matt5John3` is OK, but not `1Matt5John3` ( # Start inverted book/chapter (cb) (?: (?: ch (?: apters? | a?pts?\.? | a?p?s?\.? )? \s* \d+ \s* (?: [\u2013\u2014\-] | through | thru | to) \s* \d+ \s* (?: from | of | in ) (?: \s+ the \s+ book \s+ of )?\s* ) | (?: ch (?: apters? | a?pts?\.? | a?p?s?\.? )? \s* \d+ \s* (?: from | of | in ) (?: \s+ the \s+ book \s+ of )?\s* ) | (?: \d+ (?: th | nd | st ) \s* ch (?: apter | a?pt\.? | a?p?\.? )? \s* #no plurals here since it's a single chapter (?: from | of | in ) (?: \s+ the \s+ book \s+ of )? \s* ) )? # End inverted book/chapter (cb) \x1f(\d+)(?:/\d+)?\x1f #book (?: /\d+\x1f #special Psalm chapters | [\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014] | t[íi]tulo (?! [a-z] ) #could be followed by a number | e(?!#{bcv_parser::regexps.space}+sig) | e#{bcv_parser::regexps.space}+sig | vers[íi]culos | cap[íi]tulos | vers[íi]culo | cap[íi]tulo | caps | vers | cap | ver | vss | vs | vv | á | v | [a-d] (?! \w ) #a-e allows 1:1a | $ #or the end of the string )+ ) ///gi # These are the only valid ways to end a potential passage match. The closing parenthesis allows for fully capturing parentheses surrounding translations (ESV**)**. The last one, `[\d\x1f]` needs not to be +; otherwise `Gen5ff` becomes `\x1f0\x1f5ff`, and `adjust_regexp_end` matches the `\x1f5` and incorrectly dangles the ff. bcv_parser::regexps.match_end_split = /// \d \W* t[íi]tulo | \d \W* e#{bcv_parser::regexps.space}+sig (?: [\s\xa0*]* \.)? | \d [\s\xa0*]* [a-d] (?! \w ) | \x1e (?: [\s\xa0*]* [)\]\uff09] )? #ff09 is a full-width closing parenthesis | [\d\x1f] ///gi bcv_parser::regexps.control = /[\x1e\x1f]/g bcv_parser::regexps.pre_book = "[^A-Za-zªµºÀ-ÖØ-öø-ɏḀ-ỿⱠ-ⱿꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ]" bcv_parser::regexps.first = "(?:Primeir[ao]|1[ao]?|I)\\.?#{bcv_parser::regexps.space}*" bcv_parser::regexps.second = "(?:Segund[ao]|2[ao]?|II)\\.?#{bcv_parser::regexps.space}*" bcv_parser::regexps.third = "(?:Terceir[ao]|3[ao]?|III)\\.?#{bcv_parser::regexps.space}*" bcv_parser::regexps.range_and = "(?:[&\u2013\u2014-]|e(?!#{bcv_parser::regexps.space}+sig)|á)" bcv_parser::regexps.range_only = "(?:[\u2013\u2014-]|á)" # Each book regexp should return two parenthesized objects: an optional preliminary character and the book itself. bcv_parser::regexps.get_books = (include_apocrypha, case_sensitive) -> books = [ osis: ["Ps"] apocrypha: true extra: "2" regexp: ///(\b)( # Don't match a preceding \d like usual because we only want to match a valid OSIS, which will never have a preceding digit. Ps151 # Always follwed by ".1"; the regular Psalms parser can handle `Ps151` on its own. )(?=\.1)///g # Case-sensitive because we only want to match a valid OSIS. , osis: ["Gen"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:G(?:[e\xE9\xEA]n(?:esis)?|n)) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Exod"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:[E\xCA]x(?:o(?:do?)?|d)?|\xC9xodo) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Bel"] apocrypha: true regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:Bel(?:[\s\xa0]*e[\s\xa0]*o[\s\xa0]*[Dd]rag[a\xE3]o)?) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Lev"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:L(?:e(?:v(?:[i\xED]ticos?)?)?|v)) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Num"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:N(?:[u\xFA](?:m(?:eros)?)?|m)) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Sir"] apocrypha: true regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:Sir(?:[a\xE1]cida)?|Eclesi[a\xE1]stico) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Wis"] apocrypha: true regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:S(?:ab(?:edoria(?:[\s\xa0]*de[\s\xa0]*Salom[a\xE3]o)?)?|b)|Wis) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Lam"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:L(?:am(?:enta[c\xE7](?:[o\xF5]es(?:[\s\xa0]*de[\s\xa0]*Jeremias)?|\xF4es[\s\xa0]*de[\s\xa0]*Jeremias))?|m)) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["EpJer"] apocrypha: true regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:Cart(?:a[\s\xa0]*de[\s\xa0]*Jeremias|\.?[\s\xa0]*Jer)|EpJer) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Rev"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:Ap(?:oc(?:alipse(?:[\s\xa0]*de[\s\xa0]*(?:S[a\xE3]o[\s\xa0]*Jo[a\xE3]|Jo[a\xE3])o)?)?|c)?|Rev) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["PrMan"] apocrypha: true regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:Pr(?:ece[\s\xa0]*de[\s\xa0]*Manass[e\xE9]s|[\s\xa0]*?Man)) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Deut"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:D(?:eu(?:t(?:eron[o\xF3\xF4]mio)?)?|t)) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Josh"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:J(?:os(?:u[e\xE9]|h)?|s)) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Judg"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:J(?:u(?:[i\xED]z(?:es)?|dg)|z)) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Ruth"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:R(?:u(?:t[eh]?)?|t)) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["2Esd"] apocrypha: true regexp: ///(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏḀ-ỿⱠ-ⱿꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])( (?:2[\s\xa0]*Esdras)|(?:(?:2[ao]|II)[\s\xa0]*Esdras|2(?:[\s\xa0]*?Esd|[\s\xa0]*Es)|(?:2[ao]?|II)\.[\s\xa0]*Esdras|Segund[ao][\s\xa0]*Esdras) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["1Esd"] apocrypha: true regexp: ///(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏḀ-ỿⱠ-ⱿꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])( (?:1[\s\xa0]*Esdras)|(?:(?:1[ao]|I)[\s\xa0]*Esdras|1(?:[\s\xa0]*?Esd|[\s\xa0]*Es)|(?:1[ao]?|I)\.[\s\xa0]*Esdras|Primeir[ao][\s\xa0]*Esdras) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Isa"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:Is(?:a(?:[i\xED]as)?)?) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["2Sam"] regexp: ///(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏḀ-ỿⱠ-ⱿꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])( (?:2(?:(?:[\s\xa0]*S|Sa)m|[\s\xa0]*Samuel|[\s\xa0]*S(?:am?)?|[\s\xa0]*Reinos)|(?:2[ao]|II)[\s\xa0]*(?:Reinos|Samuel)|(?:2[ao]?|II)\.[\s\xa0]*(?:Reinos|Samuel)|Segund[ao][\s\xa0]*(?:Reinos|Samuel)) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["1Sam"] regexp: ///(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏḀ-ỿⱠ-ⱿꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])( (?:1(?:(?:[\s\xa0]*S|Sa)m|[\s\xa0]*Samuel|[\s\xa0]*S(?:am?)?|[\s\xa0]*Reinos)|(?:1[ao]|I)[\s\xa0]*(?:Reinos|Samuel)|(?:1[ao]?|I)\.[\s\xa0]*(?:Reinos|Samuel)|Primeir[ao][\s\xa0]*(?:Reinos|Samuel)) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["2Kgs"] regexp: ///(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏḀ-ỿⱠ-ⱿꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])( (?:(?:(?:2[ao]|II)[\s\xa0]*Rei|2(?:[\s\xa0]*Rei|Kg)|(?:2[ao]?|II)\.[\s\xa0]*Rei|Segund[ao][\s\xa0]*Rei)s|2[\s\xa0]*R(?:e|s)?|(?:4[ao]?|IV)[\s\xa0]*Reinos|(?:4[ao]?|IV)\.[\s\xa0]*Reinos|Quart[ao][\s\xa0]*Reinos) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["1Kgs"] regexp: ///(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏḀ-ỿⱠ-ⱿꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])( (?:(?:(?:1[ao]|I)[\s\xa0]*Rei|1(?:[\s\xa0]*Rei|Kg)|(?:1[ao]?|I)\.[\s\xa0]*Rei|Primeir[ao][\s\xa0]*Rei)s|1[\s\xa0]*R(?:e|s)?|(?:3[ao]?|III)[\s\xa0]*Reinos|(?:3[ao]?|III)\.[\s\xa0]*Reinos|Terceir[ao][\s\xa0]*Reinos) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["2Chr"] regexp: ///(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏḀ-ỿⱠ-ⱿꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])( (?:2[\s\xa0]*Cr[o\xF4]nicas)|(?:2(?:[\s\xa0]*Cr[o\xF4]n|Chr|[\s\xa0]*Cr[o\xF4]?)|(?:2[ao]|II)[\s\xa0]*Cr[o\xF4]nicas|(?:2[ao]?|II)\.[\s\xa0]*Cr[o\xF4]nicas|Segund[ao][\s\xa0]*Cr[o\xF4]nicas) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["1Chr"] regexp: ///(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏḀ-ỿⱠ-ⱿꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])( (?:1[\s\xa0]*Cr[o\xF4]nicas)|(?:1(?:[\s\xa0]*Cr[o\xF4]n|Chr|[\s\xa0]*Cr[o\xF4]?)|(?:1[ao]|I)[\s\xa0]*Cr[o\xF4]nicas|(?:1[ao]?|I)\.[\s\xa0]*Cr[o\xF4]nicas|Primeir[ao][\s\xa0]*Cr[o\xF4]nicas) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Ezra"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:E(?:sd(?:r(?:as)?)?|zra|d)) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Neh"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:Ne(?:emias|h)?) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["GkEsth"] apocrypha: true regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:Est(?:er[\s\xa0]*(?:\([Gg]rega\)|[Gg]rega)|[\s\xa0]*\(Gr\))|GkEsth) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Esth"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:E(?:st(?:er|h)?|t)) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Job"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:J(?:\xF3|ob)) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["PrAzar"] apocrypha: true regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:Sal(?:mo[\s\xa0]*de[\s\xa0]*Azarias|[\s\xa0]*Azar)|PrAzar) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Ps"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:S(?:al(?:mos?)?|l)|Ps) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Prov"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:P(?:r(?:o(?:v(?:[e\xE9]rbios)?)?|v)?|v)) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Eccl"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:Ec(?:l(?:esiastes)?|cl)?|Co[e\xE9]let) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["SgThree"] apocrypha: true regexp: ///(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏḀ-ỿⱠ-ⱿꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])( (?:C(?:[a\xE2]ntico[\s\xa0]*dos[\s\xa0]*(?:Tr[e\xEA]s|3)[\s\xa0]*Jovens|3J)|SgThree) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Song"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:C(?:ant(?:ico(?:[\s\xa0]*(?:(?:de[\s\xa0]*Salom[a\xE3]|Superlativ)o|dos[\s\xa0]*C[a\xE2]nticos)|s[\s\xa0]*dos[\s\xa0]*C[a\xE2]nticos)|ares[\s\xa0]*de[\s\xa0]*Salom[a\xE3]o)?|\xE2ntico(?:[\s\xa0]*(?:(?:de[\s\xa0]*Salom[a\xE3]|Superlativ)o|dos[\s\xa0]*C[a\xE2]nticos)|s[\s\xa0]*dos[\s\xa0]*C[a\xE2]nticos)|(?:\xE2n|n)?t)|Song)|(?:C(?:ant(?:are|ico)|\xE2ntico)s) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Jer"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:J(?:e(?:r(?:emias)?)?|r)) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Ezek"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:Ez(?:e(?:q(?:uiel)?|k)?)?) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Dan"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:D(?:a(?:n(?:iel)?)?|n)) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Hos"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:Os(?:[e\xE9]ias)?|Hos) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Joel"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:J(?:oe)?l) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Amos"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:Am(?:[o\xF3]s)?) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Obad"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:Ob(?:a(?:d(?:ias)?)?|d)?|Abd(?:ias)?) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Jonah"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:J(?:on(?:a[hs])?|n)) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Mic"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:M(?:i(?:q(?:u[e\xE9]ias)?|c)|q)) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Nah"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:Na(?:um|h)?) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Hab"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:H(?:ab(?:acu(?:que|c))?|c)) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Zeph"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:S(?:of(?:onias)?|f)|Zeph) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Hag"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:Ag(?:eu)?|Hag) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Zech"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:Z(?:ac(?:arias)?|ech|c)) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Mal"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:M(?:al(?:aquias)?|l)) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Matt"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:M(?:at(?:eus|t)?|t)) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["1Macc"] apocrypha: true regexp: ///(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏḀ-ỿⱠ-ⱿꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])( (?:1[\s\xa0]*Macabeus)|(?:1Macc)|(?:(?:1[ao]|I)[\s\xa0]*Macabeus|1[\s\xa0]*M(?:a?c)?|(?:1[ao]?|I)\.[\s\xa0]*Macabeus|Primeir[ao][\s\xa0]*Macabeus) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["2Macc"] apocrypha: true regexp: ///(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏḀ-ỿⱠ-ⱿꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])( (?:2[\s\xa0]*Macabeus)|(?:2Macc)|(?:(?:2[ao]|II)[\s\xa0]*Macabeus|2[\s\xa0]*M(?:a?c)?|(?:2[ao]?|II)\.[\s\xa0]*Macabeus|Segund[ao][\s\xa0]*Macabeus) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["3Macc"] apocrypha: true regexp: ///(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏḀ-ỿⱠ-ⱿꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])( (?:3[\s\xa0]*Macabeus)|(?:3Macc)|(?:(?:3[ao]|III)[\s\xa0]*Macabeus|3[\s\xa0]*M(?:a?c)?|(?:3[ao]?|III)\.[\s\xa0]*Macabeus|Terceir[ao][\s\xa0]*Macabeus) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["4Macc"] apocrypha: true regexp: ///(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏḀ-ỿⱠ-ⱿꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])( (?:4[\s\xa0]*Macabeus)|(?:4Macc)|(?:(?:4[ao]|IV)[\s\xa0]*Macabeus|4[\s\xa0]*M(?:a?c)?|(?:4[ao]?|IV)\.[\s\xa0]*Macabeus|Quart[ao][\s\xa0]*Macabeus) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Mark"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:M(?:ar(?:cos|k)|r?c)) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Luke"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:L(?:u(?:c(?:as)?|ke)|c)) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["1John"] regexp: ///(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏḀ-ỿⱠ-ⱿꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])( (?:PI:NAME:<NAME>END_PIJohn)|(?:(?:1[ao]|I)[\s\xa0]*Jo[a\xE3]o|1[\s\xa0]*J(?:o[a\xE3]o|o)?|(?:1[ao]?|I)\.[\s\xa0]*Jo[a\xE3]o|Primeir[ao][\s\xa0]*Jo[a\xE3]o) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["2PI:NAME:<NAME>END_PI"] regexp: ///(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏḀ-ỿⱠ-ⱿꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])( (?:PI:NAME:<NAME>END_PIJohn)|(?:(?:2[ao]|II)[\s\xa0]*Jo[a\xE3]o|2[\s\xa0]*J(?:o[a\xE3]o|o)?|(?:2[ao]?|II)\.[\s\xa0]*Jo[a\xE3]o|Segund[ao][\s\xa0]*Jo[a\xE3]o) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["3John"] regexp: ///(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏḀ-ỿⱠ-ⱿꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])( (?:3John)|(?:(?:3[ao]|III)[\s\xa0]*Jo[a\xE3]o|3[\s\xa0]*J(?:o[a\xE3]o|o)?|(?:3[ao]?|III)\.[\s\xa0]*Jo[a\xE3]o|Terceir[ao][\s\xa0]*Jo[a\xE3]o) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["John"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:Jo(?:[a\xE3]o|hn)?) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Acts"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:A(?:t(?:os(?:[\s\xa0]*dos[\s\xa0]*Ap[o\xF3]stolos)?)?|cts)) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Rom"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:R(?:o(?:m(?:anos)?)?|m)) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["2Cor"] regexp: ///(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏḀ-ỿⱠ-ⱿꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])( (?:2(?:[\s\xa0]*Cor[i\xED]ntios|[\s\xa0]*Cor?|Cor)|(?:2[ao]|II)[\s\xa0]*Cor[i\xED]ntios|(?:2[ao]?|II)\.[\s\xa0]*Cor[i\xED]ntios|Segund[ao][\s\xa0]*Cor[i\xED]ntios) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["1Cor"] regexp: ///(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏḀ-ỿⱠ-ⱿꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])( (?:1(?:[\s\xa0]*Cor[i\xED]ntios|[\s\xa0]*Cor?|Cor)|(?:1[ao]|I)[\s\xa0]*Cor[i\xED]ntios|(?:1[ao]?|I)\.[\s\xa0]*Cor[i\xED]ntios|Primeir[ao][\s\xa0]*Cor[i\xED]ntios) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Gal"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:G(?:[a\xE1]l(?:atas)?|l)) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Eph"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:E(?:f(?:[e\xE9]sios)?|ph)) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Phil"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:F(?:il(?:ipenses)?|[lp])|Phil) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Col"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:C(?:ol(?:ossenses)?|l)) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["2Thess"] regexp: ///(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏḀ-ỿⱠ-ⱿꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])( (?:(?:2(?:[\s\xa0]*Tessalonicense|[\s\xa0]*T(?:es)?|Thes)|(?:2[ao]|II)[\s\xa0]*Tessalonicense|(?:2[ao]?|II)\.[\s\xa0]*Tessalonicense|Segund[ao][\s\xa0]*Tessalonicense)s) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["1Thess"] regexp: ///(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏḀ-ỿⱠ-ⱿꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])( (?:(?:1(?:[\s\xa0]*Tessalonicense|[\s\xa0]*T(?:es)?|Thes)|(?:1[ao]|I)[\s\xa0]*Tessalonicense|(?:1[ao]?|I)\.[\s\xa0]*Tessalonicense|Primeir[ao][\s\xa0]*Tessalonicense)s) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["2Tim"] regexp: ///(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏḀ-ỿⱠ-ⱿꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])( (?:2[\s\xa0]*Tim[o\xF3]teo)|(?:(?:2[ao]|II)[\s\xa0]*Tim[o\xF3]teo|2(?:(?:[\s\xa0]*Ti?|Ti)m|[\s\xa0]*Ti)|(?:2[ao]?|II)\.[\s\xa0]*Tim[o\xF3]teo|Segund[ao][\s\xa0]*Tim[o\xF3]teo) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["1Tim"] regexp: ///(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏḀ-ỿⱠ-ⱿꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])( (?:1[\s\xa0]*Tim[o\xF3]teo)|(?:(?:1[ao]|I)[\s\xa0]*Tim[o\xF3]teo|1(?:(?:[\s\xa0]*Ti?|Ti)m|[\s\xa0]*Ti)|(?:1[ao]?|I)\.[\s\xa0]*Tim[o\xF3]teo|Primeir[ao][\s\xa0]*Tim[o\xF3]teo) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Titus"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:T(?:it(?:us|o)?|t)) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Phlm"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:F(?:il(?:emo[mn]|\xE9mon)|l?mn|l?m)|Phlm) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Heb"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:H(?:eb(?:reus)?|b)) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Jas"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:T(?:iago|g)|Jas) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["2Pet"] regexp: ///(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏḀ-ỿⱠ-ⱿꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])( (?:2(?:[\s\xa0]*Pedro|Pet))|(?:(?:2[ao]|II)[\s\xa0]*Pedro|2[\s\xa0]*Ped?|(?:2[ao]?|II)\.[\s\xa0]*Pedro|Segund[ao][\s\xa0]*Pedro) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["1Pet"] regexp: ///(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏḀ-ỿⱠ-ⱿꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])( (?:1(?:[\s\xa0]*Pedro|Pet))|(?:(?:1[ao]|I)[\s\xa0]*Pedro|1[\s\xa0]*Ped?|(?:1[ao]?|I)\.[\s\xa0]*Pedro|Primeir[ao][\s\xa0]*Pedro) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Jude"] regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:J(?:ud(?:as|e)?|d)) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Tob"] apocrypha: true regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:Tob(?:ias)?) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Jdt"] apocrypha: true regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:J(?:udite|dt)) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Bar"] apocrypha: true regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:Bar(?:u(?:[ck]|que))?) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi , osis: ["Sus"] apocrypha: true regexp: ///(^|#{bcv_parser::regexps.pre_book})( (?:Hist[o\xF3]ria[\s\xa0]*de[\s\xa0]*Susana|Sus(?:ana)?) )(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]/"'\*=~\-\u2013\u2014])|$)///gi ] # Short-circuit the look if we know we want all the books. return books if include_apocrypha is true and case_sensitive is "none" # Filter out books in the Apocrypha if we don't want them. `Array.map` isn't supported below IE9. out = [] for book in books continue if include_apocrypha is false and book.apocrypha? and book.apocrypha is true if case_sensitive is "books" book.regexp = new RegExp book.regexp.source, "g" out.push book out # Default to not using the Apocrypha bcv_parser::regexps.books = bcv_parser::regexps.get_books false, "none"
[ { "context": "User\r\n email: info.email\r\n password: info.password\r\n , (error, userData) =>\r\n if error o", "end": 1716, "score": 0.9989002346992493, "start": 1703, "tag": "PASSWORD", "value": "info.password" } ]
dev/fire_auth_class.coffee
CurtisHumphrey/knockout-firebase-users
0
define (require) -> ko = require 'knockout' require 'knockout_firebase' Firebase = require 'firebase' class Fire_Auth_Class constructor: () -> @user = {} @user_id = ko.observable() @valid = ko.pureComputed => Boolean @user_id() @checking = ko.observable false @error = ko.observable '' @reset_requested = ko.fireObservable false, read_once: true read_only: true Setup: (options) => @fire_ref = options.fire_ref public_keys = options.public ? {} private_keys = options.private ? {} #always expect email on private private_keys.email ?= null ko.fireModelByRef @user, public_keys, fire_ref: @fire_ref.child('users/public') ref_obs_id: @user_id ko.fireModelByRef @user, private_keys, fire_ref: @fire_ref.child('users/private') ref_obs_id: @user_id #changes the reset_requested based on the current email @user.email.subscribe (email) => return unless email #nv is an email #set default @reset_requested false #check if exists email = email.replace('.','') @reset_requested.Change_Fire_Ref @fire_ref.child('users/resets/' + email) @_defaults = ko.fireObservable null, fire_ref: @fire_ref.child('users/defaults') read_once: true read_only: true @fire_ref.onAuth @_Auth_Monitor Create_User: (info, callback) => info.new_private ?= {} info.new_private.email ?= info.email #force this condition @fire_ref.createUser email: info.email password: info.password , (error, userData) => if error or not userData? @error error console.error error return fire_ref = @fire_ref #setup defaults @_defaults.Once_Loaded (defaults) => if defaults?.public? fire_ref.child('users/public').child(userData.uid) .update defaults.public if defaults?.private? fire_ref.child('users/private').child(userData.uid) .update defaults.private if info.new_public fire_ref.child('users/public').child(userData.uid) .update info.new_public if info.new_private fire_ref.child('users/private').child(userData.uid) .update info.new_private return callback? userData return Login: (credentials) => @checking true @fire_ref.authWithPassword ko.toJS(credentials), (error, authData) => @checking false if error @error error console.error "Login Failed!", error else @error '' #Auth_Monitor should handle this Logout: => @fire_ref.unauth() Recover_Password: (email) => @fire_ref.resetPassword email: email , (error) => unless error email = email.replace('.','') @fire_ref.child('users/resets').child email .set Firebase.ServerValue.TIMESTAMP _Auth_Monitor: (authData) => if authData @user_id authData.uid @_defaults.Once_Loaded (defaults) => for key, value of defaults?.private if @user[key] and @user[key]() is null @user[key] value for key, value of defaults?.public if @user[key] and @user[key]() is null @user[key] value return else @user_id null @user[key] null for key of @user return
197229
define (require) -> ko = require 'knockout' require 'knockout_firebase' Firebase = require 'firebase' class Fire_Auth_Class constructor: () -> @user = {} @user_id = ko.observable() @valid = ko.pureComputed => Boolean @user_id() @checking = ko.observable false @error = ko.observable '' @reset_requested = ko.fireObservable false, read_once: true read_only: true Setup: (options) => @fire_ref = options.fire_ref public_keys = options.public ? {} private_keys = options.private ? {} #always expect email on private private_keys.email ?= null ko.fireModelByRef @user, public_keys, fire_ref: @fire_ref.child('users/public') ref_obs_id: @user_id ko.fireModelByRef @user, private_keys, fire_ref: @fire_ref.child('users/private') ref_obs_id: @user_id #changes the reset_requested based on the current email @user.email.subscribe (email) => return unless email #nv is an email #set default @reset_requested false #check if exists email = email.replace('.','') @reset_requested.Change_Fire_Ref @fire_ref.child('users/resets/' + email) @_defaults = ko.fireObservable null, fire_ref: @fire_ref.child('users/defaults') read_once: true read_only: true @fire_ref.onAuth @_Auth_Monitor Create_User: (info, callback) => info.new_private ?= {} info.new_private.email ?= info.email #force this condition @fire_ref.createUser email: info.email password: <PASSWORD> , (error, userData) => if error or not userData? @error error console.error error return fire_ref = @fire_ref #setup defaults @_defaults.Once_Loaded (defaults) => if defaults?.public? fire_ref.child('users/public').child(userData.uid) .update defaults.public if defaults?.private? fire_ref.child('users/private').child(userData.uid) .update defaults.private if info.new_public fire_ref.child('users/public').child(userData.uid) .update info.new_public if info.new_private fire_ref.child('users/private').child(userData.uid) .update info.new_private return callback? userData return Login: (credentials) => @checking true @fire_ref.authWithPassword ko.toJS(credentials), (error, authData) => @checking false if error @error error console.error "Login Failed!", error else @error '' #Auth_Monitor should handle this Logout: => @fire_ref.unauth() Recover_Password: (email) => @fire_ref.resetPassword email: email , (error) => unless error email = email.replace('.','') @fire_ref.child('users/resets').child email .set Firebase.ServerValue.TIMESTAMP _Auth_Monitor: (authData) => if authData @user_id authData.uid @_defaults.Once_Loaded (defaults) => for key, value of defaults?.private if @user[key] and @user[key]() is null @user[key] value for key, value of defaults?.public if @user[key] and @user[key]() is null @user[key] value return else @user_id null @user[key] null for key of @user return
true
define (require) -> ko = require 'knockout' require 'knockout_firebase' Firebase = require 'firebase' class Fire_Auth_Class constructor: () -> @user = {} @user_id = ko.observable() @valid = ko.pureComputed => Boolean @user_id() @checking = ko.observable false @error = ko.observable '' @reset_requested = ko.fireObservable false, read_once: true read_only: true Setup: (options) => @fire_ref = options.fire_ref public_keys = options.public ? {} private_keys = options.private ? {} #always expect email on private private_keys.email ?= null ko.fireModelByRef @user, public_keys, fire_ref: @fire_ref.child('users/public') ref_obs_id: @user_id ko.fireModelByRef @user, private_keys, fire_ref: @fire_ref.child('users/private') ref_obs_id: @user_id #changes the reset_requested based on the current email @user.email.subscribe (email) => return unless email #nv is an email #set default @reset_requested false #check if exists email = email.replace('.','') @reset_requested.Change_Fire_Ref @fire_ref.child('users/resets/' + email) @_defaults = ko.fireObservable null, fire_ref: @fire_ref.child('users/defaults') read_once: true read_only: true @fire_ref.onAuth @_Auth_Monitor Create_User: (info, callback) => info.new_private ?= {} info.new_private.email ?= info.email #force this condition @fire_ref.createUser email: info.email password: PI:PASSWORD:<PASSWORD>END_PI , (error, userData) => if error or not userData? @error error console.error error return fire_ref = @fire_ref #setup defaults @_defaults.Once_Loaded (defaults) => if defaults?.public? fire_ref.child('users/public').child(userData.uid) .update defaults.public if defaults?.private? fire_ref.child('users/private').child(userData.uid) .update defaults.private if info.new_public fire_ref.child('users/public').child(userData.uid) .update info.new_public if info.new_private fire_ref.child('users/private').child(userData.uid) .update info.new_private return callback? userData return Login: (credentials) => @checking true @fire_ref.authWithPassword ko.toJS(credentials), (error, authData) => @checking false if error @error error console.error "Login Failed!", error else @error '' #Auth_Monitor should handle this Logout: => @fire_ref.unauth() Recover_Password: (email) => @fire_ref.resetPassword email: email , (error) => unless error email = email.replace('.','') @fire_ref.child('users/resets').child email .set Firebase.ServerValue.TIMESTAMP _Auth_Monitor: (authData) => if authData @user_id authData.uid @_defaults.Once_Loaded (defaults) => for key, value of defaults?.private if @user[key] and @user[key]() is null @user[key] value for key, value of defaults?.public if @user[key] and @user[key]() is null @user[key] value return else @user_id null @user[key] null for key of @user return
[ { "context": "###\n* @author Robert Kolatzek\n * The MIT License (MIT)\n *\n * Copyright (c)", "end": 29, "score": 0.9998608827590942, "start": 14, "tag": "NAME", "value": "Robert Kolatzek" }, { "context": "he MIT License (MIT)\n *\n * Copyright (c) 2015 Dr. Robert Kolatzek\n *...
src/en.coffee
SULB/GNDcoffeine
0
### * @author Robert Kolatzek * The MIT License (MIT) * * Copyright (c) 2015 Dr. Robert Kolatzek * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. ### gndSearchTimeout = 5000 gndDivInsertAfterId = '#swd_div' insertswdCollectionAfterId = '#partSearchButton' swdId = '#subject_swd' swdErsatzNachrichtId = '#swdBereich' xgndSearchFormId = '#xgndSearchForm' swdDivSammlungId = '#swd_div_sammlung' partSearchButtonId = '#partSearchButton' exactSearchId = '#exactSearch' swdWortClass = "swd_wort" gndsDiv = '#gnds' suchwortId = '#suchwort' documentHistoryItem = 'GND search for ' timeoutWarning = "<span class='gndTimeoutWarning'>Server responds very slowly. Please be patient and use more precise terms next time.</span>" dataErrorWarning = "<p class='searchGndTimeout'>Server is not responding. Please be patient (up to one minute) and use more precise terms next time.</p>" emptyResultWarning = "<div class='emptyResult'>No matches found.</div>" schlagwortSpanselected = '<div class="#{swdWortClass}" title="click to remove \'#{schlagwort}\' from list" data-wort="#{schlagwort}"><span class="wort">#{schlagwort}</span>&nbsp;,&nbsp;</div>' bitteWarten = '<span class="waitGnd">Please wait, loading…</span>' zeigeListeDerGruppeTyp = 'Click to show #{typ} keyword group' schlagwortInFundListe = 'Click to apply' detailsFuerSchlagwort = '#{schlagwort} Details' Typ = "Type" Inhalt = "Content" Details = "Details" detailsHinweis = "Click to get additional information about this keyword." schlagwortUebernehmen = "<i>Keywords to submit to SciDok:</i>&nbsp;" gndFormHtml = ' <form id="xgndSearchForm" onsubmit="return false;" aria-role="application" aria-labelledby="GNDcoffeineUeberschrift" aria-describedby="GNDcoffeineAnleitung"> <h1 id="GNDcoffeineUeberschrift">Search for subject headings in GND</h1> <p id="GNDcoffeineAnleitung">Start with searching for a term (exact or fuzzy search). Open relevant keyword group like "Person" for people, "Werk" for books, sculptures, paintings or "Sachschlagwort" for topical subject headings. Click on the keyword to apply it. By clicking on "Details" you can get additional information about this keyword (and a list of related keywords). You can also remove applied keywords by clicking on it. </p> <input type="search" placeholder="Term for a keyword" size="40" id="suchwort" /> <input type="submit" value="exact search" id="exactSearch"/><input type="submit" value="fuzzy search" title="This action can retrive more keywords and it needs more time. Please be patient!" id="partSearchButton" /> <div id="gnds" aria-live="polite" aria-atomic="true" aria-relevant="all"></div> </form>' exactSearchResultMsg = "<p>Result of exact search</p>" fuzzySearchResultMsg = "<p>EResult of fuzzy search:</p>"
170426
### * @author <NAME> * The MIT License (MIT) * * Copyright (c) 2015 Dr. <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. ### gndSearchTimeout = 5000 gndDivInsertAfterId = '#swd_div' insertswdCollectionAfterId = '#partSearchButton' swdId = '#subject_swd' swdErsatzNachrichtId = '#swdBereich' xgndSearchFormId = '#xgndSearchForm' swdDivSammlungId = '#swd_div_sammlung' partSearchButtonId = '#partSearchButton' exactSearchId = '#exactSearch' swdWortClass = "swd_wort" gndsDiv = '#gnds' suchwortId = '#suchwort' documentHistoryItem = 'GND search for ' timeoutWarning = "<span class='gndTimeoutWarning'>Server responds very slowly. Please be patient and use more precise terms next time.</span>" dataErrorWarning = "<p class='searchGndTimeout'>Server is not responding. Please be patient (up to one minute) and use more precise terms next time.</p>" emptyResultWarning = "<div class='emptyResult'>No matches found.</div>" schlagwortSpanselected = '<div class="#{swdWortClass}" title="click to remove \'#{schlagwort}\' from list" data-wort="#{schlagwort}"><span class="wort">#{schlagwort}</span>&nbsp;,&nbsp;</div>' bitteWarten = '<span class="waitGnd">Please wait, loading…</span>' zeigeListeDerGruppeTyp = 'Click to show #{typ} keyword group' schlagwortInFundListe = 'Click to apply' detailsFuerSchlagwort = '#{schlagwort} Details' Typ = "Type" Inhalt = "Content" Details = "Details" detailsHinweis = "Click to get additional information about this keyword." schlagwortUebernehmen = "<i>Keywords to submit to SciDok:</i>&nbsp;" gndFormHtml = ' <form id="xgndSearchForm" onsubmit="return false;" aria-role="application" aria-labelledby="GNDcoffeineUeberschrift" aria-describedby="GNDcoffeineAnleitung"> <h1 id="GNDcoffeineUeberschrift">Search for subject headings in GND</h1> <p id="GNDcoffeineAnleitung">Start with searching for a term (exact or fuzzy search). Open relevant keyword group like "Person" for people, "Werk" for books, sculptures, paintings or "Sachschlagwort" for topical subject headings. Click on the keyword to apply it. By clicking on "Details" you can get additional information about this keyword (and a list of related keywords). You can also remove applied keywords by clicking on it. </p> <input type="search" placeholder="Term for a keyword" size="40" id="suchwort" /> <input type="submit" value="exact search" id="exactSearch"/><input type="submit" value="fuzzy search" title="This action can retrive more keywords and it needs more time. Please be patient!" id="partSearchButton" /> <div id="gnds" aria-live="polite" aria-atomic="true" aria-relevant="all"></div> </form>' exactSearchResultMsg = "<p>Result of exact search</p>" fuzzySearchResultMsg = "<p>EResult of fuzzy search:</p>"
true
### * @author PI:NAME:<NAME>END_PI * The MIT License (MIT) * * Copyright (c) 2015 Dr. PI:NAME:<NAME>END_PI * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. ### gndSearchTimeout = 5000 gndDivInsertAfterId = '#swd_div' insertswdCollectionAfterId = '#partSearchButton' swdId = '#subject_swd' swdErsatzNachrichtId = '#swdBereich' xgndSearchFormId = '#xgndSearchForm' swdDivSammlungId = '#swd_div_sammlung' partSearchButtonId = '#partSearchButton' exactSearchId = '#exactSearch' swdWortClass = "swd_wort" gndsDiv = '#gnds' suchwortId = '#suchwort' documentHistoryItem = 'GND search for ' timeoutWarning = "<span class='gndTimeoutWarning'>Server responds very slowly. Please be patient and use more precise terms next time.</span>" dataErrorWarning = "<p class='searchGndTimeout'>Server is not responding. Please be patient (up to one minute) and use more precise terms next time.</p>" emptyResultWarning = "<div class='emptyResult'>No matches found.</div>" schlagwortSpanselected = '<div class="#{swdWortClass}" title="click to remove \'#{schlagwort}\' from list" data-wort="#{schlagwort}"><span class="wort">#{schlagwort}</span>&nbsp;,&nbsp;</div>' bitteWarten = '<span class="waitGnd">Please wait, loading…</span>' zeigeListeDerGruppeTyp = 'Click to show #{typ} keyword group' schlagwortInFundListe = 'Click to apply' detailsFuerSchlagwort = '#{schlagwort} Details' Typ = "Type" Inhalt = "Content" Details = "Details" detailsHinweis = "Click to get additional information about this keyword." schlagwortUebernehmen = "<i>Keywords to submit to SciDok:</i>&nbsp;" gndFormHtml = ' <form id="xgndSearchForm" onsubmit="return false;" aria-role="application" aria-labelledby="GNDcoffeineUeberschrift" aria-describedby="GNDcoffeineAnleitung"> <h1 id="GNDcoffeineUeberschrift">Search for subject headings in GND</h1> <p id="GNDcoffeineAnleitung">Start with searching for a term (exact or fuzzy search). Open relevant keyword group like "Person" for people, "Werk" for books, sculptures, paintings or "Sachschlagwort" for topical subject headings. Click on the keyword to apply it. By clicking on "Details" you can get additional information about this keyword (and a list of related keywords). You can also remove applied keywords by clicking on it. </p> <input type="search" placeholder="Term for a keyword" size="40" id="suchwort" /> <input type="submit" value="exact search" id="exactSearch"/><input type="submit" value="fuzzy search" title="This action can retrive more keywords and it needs more time. Please be patient!" id="partSearchButton" /> <div id="gnds" aria-live="polite" aria-atomic="true" aria-relevant="all"></div> </form>' exactSearchResultMsg = "<p>Result of exact search</p>" fuzzySearchResultMsg = "<p>EResult of fuzzy search:</p>"
[ { "context": " random_password = (Math.random().toString() + '097654345771').slice(2, 20)\n\n random_username = h", "end": 7489, "score": 0.9768962264060974, "start": 7477, "tag": "PASSWORD", "value": "097654345771" } ]
app/workers/importer.coffee
lesmo/BlackSam
1
module.exports = (helpers, cfg, log) -> parse_torrent = require 'parse-torrent' line_reader = require 'line-reader' async = require 'async' trycatch = require 'trycatch' cfg = sultanna_path: cfg.get 'sultanna path' userdir: cfg.get 'importer userdir' random_userdir_torrents: cfg.get 'importer random userdir torrents' lock_random_userdir: cfg.enabled 'importer lock random userdir' batch_size: cfg.get 'importer torrents per batch' if not cfg.userdir? and cfg.random_userdir_torrents < 1 log.error 'Importer Worker cannot work with both [userdir] and [random userdir] disabled' return undefined else return (finish) -> try helpers.fs.ensureDirSync "#{cfg.sultanna_path}/import" catch e return finish e async.waterfall [ # Retrieve all paths inside {sultanna path}/import folder (next_step) -> log.verbose "Traversing import directory", path: "#{cfg.sultanna_path}/import" helpers.fs.traverseDir "#{cfg.sultanna_path}/import", next_step # Filter-out any unknown file types (filepaths, next_step) -> log.verbose "Filtering non-torrent files...", total: filepaths.length async.filter filepaths , (path, _if) -> _if path.match /\.(torrent|magnet)$/i , (new_filepaths) -> log.info "Processing #{new_filepaths.length} Torrents" next_step null, new_filepaths # Convert Magnet Links to Torrent files (filepaths, next_step) -> log.verbose "Converting *.magnet into *.torrent files..." async.mapLimit filepaths , cfg.batch_size , (filepath, next_file) -> if not filepath.match /\.magnet$/i return async.nextTick -> next_file null, filepath async.waterfall [ # Retrieve Magnet Link from file (next) -> line_reader.eachLine filepath, (line, last, cb) -> cb false next null, line # Find Torrent metadata (magnet, next) -> trycatch -> log.verbose "Finding metadata for Magnet Link...", magnet: magnet helpers.torrent.get magnet, next , next # Convert to Torrent file Buffer (torrent_engine, next) -> try parsed_torrent = torrent_engine.torrent torrent_engine.destroy() if parsed_torrent? try next null, parsed_torrent.infoHash, parse_torrent.toTorrentFile(parsed_torrent) else next new Error('blacksam.importer.invalidTorrent') catch e next e # Write to *.torrent file (info_hash, buffer, next) -> new_filepath = filepath.replace /[^/]+$/, "#{info_hash.toUpperCase()}.torrent" helpers.fs.outputFile new_filepath, buffer, (err) -> if not err? log.verbose "Written Torrent file", path: new_filepath next err, new_filepath # Delete *.magnet file (new_filepath, next) -> helpers.fs.remove filepath, (err) -> if not err? log.verbose "Deleted Magnet file", path: filepath else log.verbose "Error while deleting Magnet file", path: filepath, err next null, new_filepath ], (err, new_filepath) -> if err log.verbose "Torrent will be skipped (error occured)", {path: filepath, error: err} helpers.torrent.solveConflict filepath, -> next_file null, null else log.verbose "Torrent processed", path: new_filepath next_file null, new_filepath , (err, new_filepaths) -> new_filepaths = new_filepaths.compact() converted = (p for p in new_filepaths when p.match /\.magnet$/i).length skipped = (p for p in filepaths when p.match /\.magnet$/i).length - converted log.info "Converted #{converted} Magnet Links to Torrent Files (skipped #{skipped})" next_step err, new_filepaths # Rename Torrent files to {infoHash}.torrent (filepaths, next_step) -> log.verbose "Renaming *.torrent files to {info_hash}.torrent ...", total: filepaths.length async.mapLimit filepaths , cfg.batch_size , (filepath, next_file) -> async.waterfall [ (next) -> helpers.fs.readFile filepath, next (torrent_data, next) -> torrent = parse_torrent torrent_data if torrent? async.nextTick -> next null, filepath.replace(/[^/]+$/, "#{torrent.infoHash.toUpperCase()}.torrent") else async.nextTick -> next new Error() (new_filepath, next) -> if filepath is new_filepath async.nextTick -> log.verbose "Torrent already has correct name", path: filepath next null, new_filepath else helpers.fs.move filepath, new_filepath, {clobber: true}, (err) -> if not err? log.verbose "Torrent renamed", path: new_filepath else log.verbose "Torrent renaming failed", err next err, new_filepath ], (err, new_filepath) -> if err log.verbose "Error ocurred while renaming Torrent", {path: filepath, new_path: new_filepath} next_file null, null else log.verbose "Torrent renamed", path: filepath next_file null, new_filepath , (err, new_filepaths) -> new_filepaths = new_filepaths.compact() converted = new_filepaths.length skipped = filepaths.length - converted log.info "Renamed #{converted} Torrent Files to {hash}.torrent (skipped #{skipped})" next_step err, new_filepaths # Calculate userdirs (and locks if required) (filepaths, next_step) -> if filepaths.length is 0 return async.nextTick -> log.verbose "Skipping userdir creation" next_step null, {}, {} log.verbose "Preparing random userdirs..." files_per_dir = cfg.random_userdir_torrents folders_torrents = {} folders_locks = {} if files_per_dir is 0 folders_torrents[helpers.user.validHash cfg.userdir] = filepaths else userdirs = filepaths.length / cfg.random_userdir_torrents userdirs = Math.floor(userdirs) + 1 for i in [0...userdirs] random_username = (Math.random().toString() + '843910248184').slice(2, 20) random_password = (Math.random().toString() + '097654345771').slice(2, 20) random_username = helpers.crypto.js.SHA1(random_username).toString() random_password = helpers.crypto.js.SHA1(random_password).toString() random_userhash = helpers.user.getHash random_username + random_password random_userpath = helpers.user.getPath random_userhash if cfg.lock_random_userdir folders_locks["#{random_userpath}/user.lock"] = helpers.crypto.user.getLockHash random_username, random_password if i + 1 < userdirs folders_torrents[random_userpath] = filepaths[i * files_per_dir .. i * files_per_dir + files_per_dir] else folders_torrents[random_userpath] = filepaths[i * files_per_dir ..] log.verbose "Created %s userdirs (locking: %s)", userdirs.length, cfg.lock_random_userdir async.nextTick -> next_step null, folders_torrents, folders_locks # Move Torrent files (folders_torrents, folders_locks, next_step) -> queue = for folder, torrents of folders_torrents for torrent in torrents tmp : torrent dest: "#{folder}/#{torrent.match(/[^/]+$/)[0]}" queue = queue.flatten() if queue.length < 1 log.verbose "No Torrent files to move" next_step null, folders_locks else log.verbose "Moving Torrent files..." async.mapLimit queue.flatten() , cfg.batch_size , (item, next) -> log.verbose "Moving Torrent file...", path: item.tmp helpers.fs.move item.tmp, item.dest, (err) -> if err? log.verbose "Error while moving Torrent file", err else log.verbose "Torrent file moved", path: item.dest next null, err ? null , (err, res) -> skipped = res.compact().length moved = res.length - skipped log.info "#{moved} Torrents moved (#{skipped} skipped)" next_step null, folders_locks # Create lock files (folder_locks, next_step) -> queue = for path, hash of folder_locks path: path hash: hash queue = queue.flatten() if queue.length < 1 next_step() else log.verbose "Creating user locks..." async.mapLimit queue , cfg.batch_size , (item, next) -> helpers.fs.outputFile item.path, item.hash, (err) -> next null, err ? null , (err, res) -> skipped = res.compact().length created = res.length - skipped log.info "#{created} User Locks created (#{skipped} skipped)" next_step() ], finish
103974
module.exports = (helpers, cfg, log) -> parse_torrent = require 'parse-torrent' line_reader = require 'line-reader' async = require 'async' trycatch = require 'trycatch' cfg = sultanna_path: cfg.get 'sultanna path' userdir: cfg.get 'importer userdir' random_userdir_torrents: cfg.get 'importer random userdir torrents' lock_random_userdir: cfg.enabled 'importer lock random userdir' batch_size: cfg.get 'importer torrents per batch' if not cfg.userdir? and cfg.random_userdir_torrents < 1 log.error 'Importer Worker cannot work with both [userdir] and [random userdir] disabled' return undefined else return (finish) -> try helpers.fs.ensureDirSync "#{cfg.sultanna_path}/import" catch e return finish e async.waterfall [ # Retrieve all paths inside {sultanna path}/import folder (next_step) -> log.verbose "Traversing import directory", path: "#{cfg.sultanna_path}/import" helpers.fs.traverseDir "#{cfg.sultanna_path}/import", next_step # Filter-out any unknown file types (filepaths, next_step) -> log.verbose "Filtering non-torrent files...", total: filepaths.length async.filter filepaths , (path, _if) -> _if path.match /\.(torrent|magnet)$/i , (new_filepaths) -> log.info "Processing #{new_filepaths.length} Torrents" next_step null, new_filepaths # Convert Magnet Links to Torrent files (filepaths, next_step) -> log.verbose "Converting *.magnet into *.torrent files..." async.mapLimit filepaths , cfg.batch_size , (filepath, next_file) -> if not filepath.match /\.magnet$/i return async.nextTick -> next_file null, filepath async.waterfall [ # Retrieve Magnet Link from file (next) -> line_reader.eachLine filepath, (line, last, cb) -> cb false next null, line # Find Torrent metadata (magnet, next) -> trycatch -> log.verbose "Finding metadata for Magnet Link...", magnet: magnet helpers.torrent.get magnet, next , next # Convert to Torrent file Buffer (torrent_engine, next) -> try parsed_torrent = torrent_engine.torrent torrent_engine.destroy() if parsed_torrent? try next null, parsed_torrent.infoHash, parse_torrent.toTorrentFile(parsed_torrent) else next new Error('blacksam.importer.invalidTorrent') catch e next e # Write to *.torrent file (info_hash, buffer, next) -> new_filepath = filepath.replace /[^/]+$/, "#{info_hash.toUpperCase()}.torrent" helpers.fs.outputFile new_filepath, buffer, (err) -> if not err? log.verbose "Written Torrent file", path: new_filepath next err, new_filepath # Delete *.magnet file (new_filepath, next) -> helpers.fs.remove filepath, (err) -> if not err? log.verbose "Deleted Magnet file", path: filepath else log.verbose "Error while deleting Magnet file", path: filepath, err next null, new_filepath ], (err, new_filepath) -> if err log.verbose "Torrent will be skipped (error occured)", {path: filepath, error: err} helpers.torrent.solveConflict filepath, -> next_file null, null else log.verbose "Torrent processed", path: new_filepath next_file null, new_filepath , (err, new_filepaths) -> new_filepaths = new_filepaths.compact() converted = (p for p in new_filepaths when p.match /\.magnet$/i).length skipped = (p for p in filepaths when p.match /\.magnet$/i).length - converted log.info "Converted #{converted} Magnet Links to Torrent Files (skipped #{skipped})" next_step err, new_filepaths # Rename Torrent files to {infoHash}.torrent (filepaths, next_step) -> log.verbose "Renaming *.torrent files to {info_hash}.torrent ...", total: filepaths.length async.mapLimit filepaths , cfg.batch_size , (filepath, next_file) -> async.waterfall [ (next) -> helpers.fs.readFile filepath, next (torrent_data, next) -> torrent = parse_torrent torrent_data if torrent? async.nextTick -> next null, filepath.replace(/[^/]+$/, "#{torrent.infoHash.toUpperCase()}.torrent") else async.nextTick -> next new Error() (new_filepath, next) -> if filepath is new_filepath async.nextTick -> log.verbose "Torrent already has correct name", path: filepath next null, new_filepath else helpers.fs.move filepath, new_filepath, {clobber: true}, (err) -> if not err? log.verbose "Torrent renamed", path: new_filepath else log.verbose "Torrent renaming failed", err next err, new_filepath ], (err, new_filepath) -> if err log.verbose "Error ocurred while renaming Torrent", {path: filepath, new_path: new_filepath} next_file null, null else log.verbose "Torrent renamed", path: filepath next_file null, new_filepath , (err, new_filepaths) -> new_filepaths = new_filepaths.compact() converted = new_filepaths.length skipped = filepaths.length - converted log.info "Renamed #{converted} Torrent Files to {hash}.torrent (skipped #{skipped})" next_step err, new_filepaths # Calculate userdirs (and locks if required) (filepaths, next_step) -> if filepaths.length is 0 return async.nextTick -> log.verbose "Skipping userdir creation" next_step null, {}, {} log.verbose "Preparing random userdirs..." files_per_dir = cfg.random_userdir_torrents folders_torrents = {} folders_locks = {} if files_per_dir is 0 folders_torrents[helpers.user.validHash cfg.userdir] = filepaths else userdirs = filepaths.length / cfg.random_userdir_torrents userdirs = Math.floor(userdirs) + 1 for i in [0...userdirs] random_username = (Math.random().toString() + '843910248184').slice(2, 20) random_password = (Math.random().toString() + '<PASSWORD>').slice(2, 20) random_username = helpers.crypto.js.SHA1(random_username).toString() random_password = helpers.crypto.js.SHA1(random_password).toString() random_userhash = helpers.user.getHash random_username + random_password random_userpath = helpers.user.getPath random_userhash if cfg.lock_random_userdir folders_locks["#{random_userpath}/user.lock"] = helpers.crypto.user.getLockHash random_username, random_password if i + 1 < userdirs folders_torrents[random_userpath] = filepaths[i * files_per_dir .. i * files_per_dir + files_per_dir] else folders_torrents[random_userpath] = filepaths[i * files_per_dir ..] log.verbose "Created %s userdirs (locking: %s)", userdirs.length, cfg.lock_random_userdir async.nextTick -> next_step null, folders_torrents, folders_locks # Move Torrent files (folders_torrents, folders_locks, next_step) -> queue = for folder, torrents of folders_torrents for torrent in torrents tmp : torrent dest: "#{folder}/#{torrent.match(/[^/]+$/)[0]}" queue = queue.flatten() if queue.length < 1 log.verbose "No Torrent files to move" next_step null, folders_locks else log.verbose "Moving Torrent files..." async.mapLimit queue.flatten() , cfg.batch_size , (item, next) -> log.verbose "Moving Torrent file...", path: item.tmp helpers.fs.move item.tmp, item.dest, (err) -> if err? log.verbose "Error while moving Torrent file", err else log.verbose "Torrent file moved", path: item.dest next null, err ? null , (err, res) -> skipped = res.compact().length moved = res.length - skipped log.info "#{moved} Torrents moved (#{skipped} skipped)" next_step null, folders_locks # Create lock files (folder_locks, next_step) -> queue = for path, hash of folder_locks path: path hash: hash queue = queue.flatten() if queue.length < 1 next_step() else log.verbose "Creating user locks..." async.mapLimit queue , cfg.batch_size , (item, next) -> helpers.fs.outputFile item.path, item.hash, (err) -> next null, err ? null , (err, res) -> skipped = res.compact().length created = res.length - skipped log.info "#{created} User Locks created (#{skipped} skipped)" next_step() ], finish
true
module.exports = (helpers, cfg, log) -> parse_torrent = require 'parse-torrent' line_reader = require 'line-reader' async = require 'async' trycatch = require 'trycatch' cfg = sultanna_path: cfg.get 'sultanna path' userdir: cfg.get 'importer userdir' random_userdir_torrents: cfg.get 'importer random userdir torrents' lock_random_userdir: cfg.enabled 'importer lock random userdir' batch_size: cfg.get 'importer torrents per batch' if not cfg.userdir? and cfg.random_userdir_torrents < 1 log.error 'Importer Worker cannot work with both [userdir] and [random userdir] disabled' return undefined else return (finish) -> try helpers.fs.ensureDirSync "#{cfg.sultanna_path}/import" catch e return finish e async.waterfall [ # Retrieve all paths inside {sultanna path}/import folder (next_step) -> log.verbose "Traversing import directory", path: "#{cfg.sultanna_path}/import" helpers.fs.traverseDir "#{cfg.sultanna_path}/import", next_step # Filter-out any unknown file types (filepaths, next_step) -> log.verbose "Filtering non-torrent files...", total: filepaths.length async.filter filepaths , (path, _if) -> _if path.match /\.(torrent|magnet)$/i , (new_filepaths) -> log.info "Processing #{new_filepaths.length} Torrents" next_step null, new_filepaths # Convert Magnet Links to Torrent files (filepaths, next_step) -> log.verbose "Converting *.magnet into *.torrent files..." async.mapLimit filepaths , cfg.batch_size , (filepath, next_file) -> if not filepath.match /\.magnet$/i return async.nextTick -> next_file null, filepath async.waterfall [ # Retrieve Magnet Link from file (next) -> line_reader.eachLine filepath, (line, last, cb) -> cb false next null, line # Find Torrent metadata (magnet, next) -> trycatch -> log.verbose "Finding metadata for Magnet Link...", magnet: magnet helpers.torrent.get magnet, next , next # Convert to Torrent file Buffer (torrent_engine, next) -> try parsed_torrent = torrent_engine.torrent torrent_engine.destroy() if parsed_torrent? try next null, parsed_torrent.infoHash, parse_torrent.toTorrentFile(parsed_torrent) else next new Error('blacksam.importer.invalidTorrent') catch e next e # Write to *.torrent file (info_hash, buffer, next) -> new_filepath = filepath.replace /[^/]+$/, "#{info_hash.toUpperCase()}.torrent" helpers.fs.outputFile new_filepath, buffer, (err) -> if not err? log.verbose "Written Torrent file", path: new_filepath next err, new_filepath # Delete *.magnet file (new_filepath, next) -> helpers.fs.remove filepath, (err) -> if not err? log.verbose "Deleted Magnet file", path: filepath else log.verbose "Error while deleting Magnet file", path: filepath, err next null, new_filepath ], (err, new_filepath) -> if err log.verbose "Torrent will be skipped (error occured)", {path: filepath, error: err} helpers.torrent.solveConflict filepath, -> next_file null, null else log.verbose "Torrent processed", path: new_filepath next_file null, new_filepath , (err, new_filepaths) -> new_filepaths = new_filepaths.compact() converted = (p for p in new_filepaths when p.match /\.magnet$/i).length skipped = (p for p in filepaths when p.match /\.magnet$/i).length - converted log.info "Converted #{converted} Magnet Links to Torrent Files (skipped #{skipped})" next_step err, new_filepaths # Rename Torrent files to {infoHash}.torrent (filepaths, next_step) -> log.verbose "Renaming *.torrent files to {info_hash}.torrent ...", total: filepaths.length async.mapLimit filepaths , cfg.batch_size , (filepath, next_file) -> async.waterfall [ (next) -> helpers.fs.readFile filepath, next (torrent_data, next) -> torrent = parse_torrent torrent_data if torrent? async.nextTick -> next null, filepath.replace(/[^/]+$/, "#{torrent.infoHash.toUpperCase()}.torrent") else async.nextTick -> next new Error() (new_filepath, next) -> if filepath is new_filepath async.nextTick -> log.verbose "Torrent already has correct name", path: filepath next null, new_filepath else helpers.fs.move filepath, new_filepath, {clobber: true}, (err) -> if not err? log.verbose "Torrent renamed", path: new_filepath else log.verbose "Torrent renaming failed", err next err, new_filepath ], (err, new_filepath) -> if err log.verbose "Error ocurred while renaming Torrent", {path: filepath, new_path: new_filepath} next_file null, null else log.verbose "Torrent renamed", path: filepath next_file null, new_filepath , (err, new_filepaths) -> new_filepaths = new_filepaths.compact() converted = new_filepaths.length skipped = filepaths.length - converted log.info "Renamed #{converted} Torrent Files to {hash}.torrent (skipped #{skipped})" next_step err, new_filepaths # Calculate userdirs (and locks if required) (filepaths, next_step) -> if filepaths.length is 0 return async.nextTick -> log.verbose "Skipping userdir creation" next_step null, {}, {} log.verbose "Preparing random userdirs..." files_per_dir = cfg.random_userdir_torrents folders_torrents = {} folders_locks = {} if files_per_dir is 0 folders_torrents[helpers.user.validHash cfg.userdir] = filepaths else userdirs = filepaths.length / cfg.random_userdir_torrents userdirs = Math.floor(userdirs) + 1 for i in [0...userdirs] random_username = (Math.random().toString() + '843910248184').slice(2, 20) random_password = (Math.random().toString() + 'PI:PASSWORD:<PASSWORD>END_PI').slice(2, 20) random_username = helpers.crypto.js.SHA1(random_username).toString() random_password = helpers.crypto.js.SHA1(random_password).toString() random_userhash = helpers.user.getHash random_username + random_password random_userpath = helpers.user.getPath random_userhash if cfg.lock_random_userdir folders_locks["#{random_userpath}/user.lock"] = helpers.crypto.user.getLockHash random_username, random_password if i + 1 < userdirs folders_torrents[random_userpath] = filepaths[i * files_per_dir .. i * files_per_dir + files_per_dir] else folders_torrents[random_userpath] = filepaths[i * files_per_dir ..] log.verbose "Created %s userdirs (locking: %s)", userdirs.length, cfg.lock_random_userdir async.nextTick -> next_step null, folders_torrents, folders_locks # Move Torrent files (folders_torrents, folders_locks, next_step) -> queue = for folder, torrents of folders_torrents for torrent in torrents tmp : torrent dest: "#{folder}/#{torrent.match(/[^/]+$/)[0]}" queue = queue.flatten() if queue.length < 1 log.verbose "No Torrent files to move" next_step null, folders_locks else log.verbose "Moving Torrent files..." async.mapLimit queue.flatten() , cfg.batch_size , (item, next) -> log.verbose "Moving Torrent file...", path: item.tmp helpers.fs.move item.tmp, item.dest, (err) -> if err? log.verbose "Error while moving Torrent file", err else log.verbose "Torrent file moved", path: item.dest next null, err ? null , (err, res) -> skipped = res.compact().length moved = res.length - skipped log.info "#{moved} Torrents moved (#{skipped} skipped)" next_step null, folders_locks # Create lock files (folder_locks, next_step) -> queue = for path, hash of folder_locks path: path hash: hash queue = queue.flatten() if queue.length < 1 next_step() else log.verbose "Creating user locks..." async.mapLimit queue , cfg.batch_size , (item, next) -> helpers.fs.outputFile item.path, item.hash, (err) -> next null, err ? null , (err, res) -> skipped = res.compact().length created = res.length - skipped log.info "#{created} User Locks created (#{skipped} skipped)" next_step() ], finish
[ { "context": "###\n@authors\nNicholas McCready - https://twitter.com/nmccready\nOriginal idea fro", "end": 30, "score": 0.9998911023139954, "start": 13, "tag": "NAME", "value": "Nicholas McCready" }, { "context": "\n@authors\nNicholas McCready - https://twitter.com/nmccready\nOrigina...
SafetyNet_Mobile/www/lib/angular-google-maps-master/src/coffee/directives/api/models/child/free-draw-polygons-child.coffee
donh/pheonix
0
### @authors Nicholas McCready - https://twitter.com/nmccready Original idea from: http://stackoverflow.com/questions/22758950/google-map-drawing-freehand , & http://jsfiddle.net/YsQdh/88/ ### angular.module('uiGmapgoogle-maps.directives.api.models.child') .factory 'uiGmapDrawFreeHandChildModel', ['uiGmapLogger', '$q', ($log, $q) -> drawFreeHand = (map, polys, done) -> poly = new google.maps.Polyline map: map clickable: false move = google.maps.event.addListener map, 'mousemove', (e) -> poly.getPath().push e.latLng google.maps.event.addListenerOnce map, 'mouseup', (e) -> google.maps.event.removeListener move path = poly.getPath() poly.setMap null polys.push new google.maps.Polygon map: map path: path poly = null google.maps.event.clearListeners map.getDiv(), 'mousedown' done() undefined freeHandMgr = (@map, scope) -> disableMap = => # Whilst drawing, freeze the map (so that mouse "drag" action draws and doesn't move the map). mapOptions = draggable: false disableDefaultUI: true scrollwheel: false disableDoubleClickZoom: false $log.info 'disabling map move' @map.setOptions mapOptions enableMap = => # After drawing, un-freeze the map. mapOptions = draggable: true disableDefaultUI: false scrollwheel: true disableDoubleClickZoom: true @deferred?.resolve() _.defer => @map.setOptions _.extend mapOptions, scope.options @engage = (@polys) => @deferred = $q.defer() disableMap() $log.info 'DrawFreeHandChildModel is engaged (drawing).' google.maps.event.addDomListener @map.getDiv(), 'mousedown', (e) => drawFreeHand @map, @polys, enableMap @deferred.promise this freeHandMgr ]
144461
### @authors <NAME> - https://twitter.com/nmccready Original idea from: http://stackoverflow.com/questions/22758950/google-map-drawing-freehand , & http://jsfiddle.net/YsQdh/88/ ### angular.module('uiGmapgoogle-maps.directives.api.models.child') .factory 'uiGmapDrawFreeHandChildModel', ['uiGmapLogger', '$q', ($log, $q) -> drawFreeHand = (map, polys, done) -> poly = new google.maps.Polyline map: map clickable: false move = google.maps.event.addListener map, 'mousemove', (e) -> poly.getPath().push e.latLng google.maps.event.addListenerOnce map, 'mouseup', (e) -> google.maps.event.removeListener move path = poly.getPath() poly.setMap null polys.push new google.maps.Polygon map: map path: path poly = null google.maps.event.clearListeners map.getDiv(), 'mousedown' done() undefined freeHandMgr = (@map, scope) -> disableMap = => # Whilst drawing, freeze the map (so that mouse "drag" action draws and doesn't move the map). mapOptions = draggable: false disableDefaultUI: true scrollwheel: false disableDoubleClickZoom: false $log.info 'disabling map move' @map.setOptions mapOptions enableMap = => # After drawing, un-freeze the map. mapOptions = draggable: true disableDefaultUI: false scrollwheel: true disableDoubleClickZoom: true @deferred?.resolve() _.defer => @map.setOptions _.extend mapOptions, scope.options @engage = (@polys) => @deferred = $q.defer() disableMap() $log.info 'DrawFreeHandChildModel is engaged (drawing).' google.maps.event.addDomListener @map.getDiv(), 'mousedown', (e) => drawFreeHand @map, @polys, enableMap @deferred.promise this freeHandMgr ]
true
### @authors PI:NAME:<NAME>END_PI - https://twitter.com/nmccready Original idea from: http://stackoverflow.com/questions/22758950/google-map-drawing-freehand , & http://jsfiddle.net/YsQdh/88/ ### angular.module('uiGmapgoogle-maps.directives.api.models.child') .factory 'uiGmapDrawFreeHandChildModel', ['uiGmapLogger', '$q', ($log, $q) -> drawFreeHand = (map, polys, done) -> poly = new google.maps.Polyline map: map clickable: false move = google.maps.event.addListener map, 'mousemove', (e) -> poly.getPath().push e.latLng google.maps.event.addListenerOnce map, 'mouseup', (e) -> google.maps.event.removeListener move path = poly.getPath() poly.setMap null polys.push new google.maps.Polygon map: map path: path poly = null google.maps.event.clearListeners map.getDiv(), 'mousedown' done() undefined freeHandMgr = (@map, scope) -> disableMap = => # Whilst drawing, freeze the map (so that mouse "drag" action draws and doesn't move the map). mapOptions = draggable: false disableDefaultUI: true scrollwheel: false disableDoubleClickZoom: false $log.info 'disabling map move' @map.setOptions mapOptions enableMap = => # After drawing, un-freeze the map. mapOptions = draggable: true disableDefaultUI: false scrollwheel: true disableDoubleClickZoom: true @deferred?.resolve() _.defer => @map.setOptions _.extend mapOptions, scope.options @engage = (@polys) => @deferred = $q.defer() disableMap() $log.info 'DrawFreeHandChildModel is engaged (drawing).' google.maps.event.addDomListener @map.getDiv(), 'mousedown', (e) => drawFreeHand @map, @polys, enableMap @deferred.promise this freeHandMgr ]
[ { "context": " data: [\n id: 1\n name: \"Bob\"\n ,\n id: 2\n name: ", "end": 355, "score": 0.9998229146003723, "start": 352, "tag": "NAME", "value": "Bob" }, { "context": "\n ,\n id: 2\n name: \"S...
test/spec_coffee/model_all_with_order_ignore_case_spec.coffee
kirkbowers/mvcoffee
0
MVCoffee = require("../lib/mvcoffee") theUser = class User extends MVCoffee.Model store = null describe "models with out of order data", -> beforeEach -> store = new MVCoffee.ModelStore user: User store.load mvcoffee_version: "1.0.0" models: user: data: [ id: 1 name: "Bob" , id: 2 name: "Sue" , id: 3 name: "danny" ] it "should return all users in ascending lexicographic order", -> users = User.all order: 'name' expect(users.length).toBe(3) expect(users[0].name).toBe("Bob") expect(users[0].id).toBe(1) expect(users[1].name).toBe("Sue") expect(users[1].id).toBe(2) expect(users[2].name).toBe("danny") expect(users[2].id).toBe(3) it "should return all users in ascending ignored case order", -> users = User.all order: 'name', ignoreCase: true expect(users.length).toBe(3) expect(users[0].name).toBe("Bob") expect(users[0].id).toBe(1) expect(users[1].name).toBe("danny") expect(users[1].id).toBe(3) expect(users[2].name).toBe("Sue") expect(users[2].id).toBe(2) it "should return all users in descending lexicographic order", -> users = User.all order: 'name desc' expect(users.length).toBe(3) expect(users[0].name).toBe("danny") expect(users[0].id).toBe(3) expect(users[1].name).toBe("Sue") expect(users[1].id).toBe(2) expect(users[2].name).toBe("Bob") expect(users[2].id).toBe(1) it "should return all users in descending ignored case order", -> users = User.all order: 'name desc', ignoreCase: true expect(users.length).toBe(3) expect(users[0].name).toBe("Sue") expect(users[0].id).toBe(2) expect(users[1].name).toBe("danny") expect(users[1].id).toBe(3) expect(users[2].name).toBe("Bob") expect(users[2].id).toBe(1)
17726
MVCoffee = require("../lib/mvcoffee") theUser = class User extends MVCoffee.Model store = null describe "models with out of order data", -> beforeEach -> store = new MVCoffee.ModelStore user: User store.load mvcoffee_version: "1.0.0" models: user: data: [ id: 1 name: "<NAME>" , id: 2 name: "<NAME>" , id: 3 name: "<NAME>" ] it "should return all users in ascending lexicographic order", -> users = User.all order: 'name' expect(users.length).toBe(3) expect(users[0].name).toBe("<NAME>") expect(users[0].id).toBe(1) expect(users[1].name).toBe("<NAME>") expect(users[1].id).toBe(2) expect(users[2].name).toBe("<NAME>") expect(users[2].id).toBe(3) it "should return all users in ascending ignored case order", -> users = User.all order: 'name', ignoreCase: true expect(users.length).toBe(3) expect(users[0].name).toBe("<NAME>") expect(users[0].id).toBe(1) expect(users[1].name).toBe("<NAME>") expect(users[1].id).toBe(3) expect(users[2].name).toBe("<NAME>") expect(users[2].id).toBe(2) it "should return all users in descending lexicographic order", -> users = User.all order: 'name desc' expect(users.length).toBe(3) expect(users[0].name).toBe("<NAME>") expect(users[0].id).toBe(3) expect(users[1].name).toBe("<NAME>") expect(users[1].id).toBe(2) expect(users[2].name).toBe("<NAME>") expect(users[2].id).toBe(1) it "should return all users in descending ignored case order", -> users = User.all order: 'name desc', ignoreCase: true expect(users.length).toBe(3) expect(users[0].name).toBe("<NAME>") expect(users[0].id).toBe(2) expect(users[1].name).toBe("<NAME>") expect(users[1].id).toBe(3) expect(users[2].name).toBe("<NAME>") expect(users[2].id).toBe(1)
true
MVCoffee = require("../lib/mvcoffee") theUser = class User extends MVCoffee.Model store = null describe "models with out of order data", -> beforeEach -> store = new MVCoffee.ModelStore user: User store.load mvcoffee_version: "1.0.0" models: user: data: [ id: 1 name: "PI:NAME:<NAME>END_PI" , id: 2 name: "PI:NAME:<NAME>END_PI" , id: 3 name: "PI:NAME:<NAME>END_PI" ] it "should return all users in ascending lexicographic order", -> users = User.all order: 'name' expect(users.length).toBe(3) expect(users[0].name).toBe("PI:NAME:<NAME>END_PI") expect(users[0].id).toBe(1) expect(users[1].name).toBe("PI:NAME:<NAME>END_PI") expect(users[1].id).toBe(2) expect(users[2].name).toBe("PI:NAME:<NAME>END_PI") expect(users[2].id).toBe(3) it "should return all users in ascending ignored case order", -> users = User.all order: 'name', ignoreCase: true expect(users.length).toBe(3) expect(users[0].name).toBe("PI:NAME:<NAME>END_PI") expect(users[0].id).toBe(1) expect(users[1].name).toBe("PI:NAME:<NAME>END_PI") expect(users[1].id).toBe(3) expect(users[2].name).toBe("PI:NAME:<NAME>END_PI") expect(users[2].id).toBe(2) it "should return all users in descending lexicographic order", -> users = User.all order: 'name desc' expect(users.length).toBe(3) expect(users[0].name).toBe("PI:NAME:<NAME>END_PI") expect(users[0].id).toBe(3) expect(users[1].name).toBe("PI:NAME:<NAME>END_PI") expect(users[1].id).toBe(2) expect(users[2].name).toBe("PI:NAME:<NAME>END_PI") expect(users[2].id).toBe(1) it "should return all users in descending ignored case order", -> users = User.all order: 'name desc', ignoreCase: true expect(users.length).toBe(3) expect(users[0].name).toBe("PI:NAME:<NAME>END_PI") expect(users[0].id).toBe(2) expect(users[1].name).toBe("PI:NAME:<NAME>END_PI") expect(users[1].id).toBe(3) expect(users[2].name).toBe("PI:NAME:<NAME>END_PI") expect(users[2].id).toBe(1)
[ { "context": "te\n\n rateLimit: (id=\"\", callback=->) =>\n key = \"#{@name}:#{id}:#{moment().unix()}\"\n debug 'rateLi", "end": 309, "score": 0.7713908553123474, "start": 306, "tag": "KEY", "value": "\"#{" }, { "context": " rateLimit: (id=\"\", callback=->) =>\n key = \"#{...
lib/RedisThrottle.coffee
CESARBR/knot-cloud-source
4
debug = require('debug')('meshblu:RedisThrottle') moment = require 'moment' redis = require './redis' logError = require 'logError' ### THIS DOESN'T WORK YET!! ### class RedisThrottle constructor: (@name, @rate) -> debug 'constructor', @name, @rate rateLimit: (id="", callback=->) => key = "#{@name}:#{id}:#{moment().unix()}" debug 'rateLimit', callback redis.get key, (error, value) => return if value > 10 redis .multi() .incr(key, 1) .expire(key, 10) .exec (error) => return logError error if error? callback() module.exports = RedisThrottle # FUNCTION LIMIT_API_CALL(ip) # ts = CURRENT_UNIX_TIME() # keyname = ip+":"+ts # current = GET(keyname) # IF current != NULL AND current > 10 THEN # ERROR "too many requests per second" # ELSE # MULTI # INCR(keyname,1) # EXPIRE(keyname,10) # EXEC # PERFORM_API_CALL() # END
60938
debug = require('debug')('meshblu:RedisThrottle') moment = require 'moment' redis = require './redis' logError = require 'logError' ### THIS DOESN'T WORK YET!! ### class RedisThrottle constructor: (@name, @rate) -> debug 'constructor', @name, @rate rateLimit: (id="", callback=->) => key = <KEY>@<KEY>moment().<KEY> debug 'rateLimit', callback redis.get key, (error, value) => return if value > 10 redis .multi() .incr(key, 1) .expire(key, 10) .exec (error) => return logError error if error? callback() module.exports = RedisThrottle # FUNCTION LIMIT_API_CALL(ip) # ts = CURRENT_UNIX_TIME() # keyname = ip+":"+ts # current = GET(keyname) # IF current != NULL AND current > 10 THEN # ERROR "too many requests per second" # ELSE # MULTI # INCR(keyname,1) # EXPIRE(keyname,10) # EXEC # PERFORM_API_CALL() # END
true
debug = require('debug')('meshblu:RedisThrottle') moment = require 'moment' redis = require './redis' logError = require 'logError' ### THIS DOESN'T WORK YET!! ### class RedisThrottle constructor: (@name, @rate) -> debug 'constructor', @name, @rate rateLimit: (id="", callback=->) => key = PI:KEY:<KEY>END_PI@PI:KEY:<KEY>END_PImoment().PI:KEY:<KEY>END_PI debug 'rateLimit', callback redis.get key, (error, value) => return if value > 10 redis .multi() .incr(key, 1) .expire(key, 10) .exec (error) => return logError error if error? callback() module.exports = RedisThrottle # FUNCTION LIMIT_API_CALL(ip) # ts = CURRENT_UNIX_TIME() # keyname = ip+":"+ts # current = GET(keyname) # IF current != NULL AND current > 10 THEN # ERROR "too many requests per second" # ELSE # MULTI # INCR(keyname,1) # EXPIRE(keyname,10) # EXEC # PERFORM_API_CALL() # END
[ { "context": "ibutes =\n id: m.prop ''\n email: m.prop '1@1.cc'\n nickname: m.prop ''\n firstname: m.pro", "end": 559, "score": 0.9792434573173523, "start": 553, "tag": "EMAIL", "value": "1@1.cc" }, { "context": ".prop ''\n lastname: m.prop ''\n password...
client/app/scripts/components/user/UserVM.coffee
softwarerero/protothril
0
m = require 'mithril' ViewModel = require '../abstract/ViewModel' module.exports = class UserVM extends ViewModel constructor: () -> super() @modelName = 'User' @vm = UserVM @verb = 'user' @url = 'api/user' @homeRoute = '/users' # create clean hash map without object prototype - ECMAScript5 # see: http://ryanmorr.com/true-hash-maps-in-javascript/ @attributes = Object.create(null) @filter = false @init() @pageSize = 3 init: () -> @attributes = id: m.prop '' email: m.prop '1@1.cc' nickname: m.prop '' firstname: m.prop '' lastname: m.prop '' password: m.prop '' birthday: m.prop '' rols: m.prop [] @current: new UserVM createObj: -> new UserVM @validate: (obj) -> validation = new Validation() validation.test 'email', Validation.notNull obj.email(), {fieldName: T9n.get('email')} validation.test 'email', Validation.email obj.email(), {fieldName: T9n.get('email')} # validation.test 'nickname', Validation.notNull obj.nickname(), {fieldName: T9n.get('nickname')} # validation.test 'nickname', Validation.minLength obj.nickname(), {fieldName: T9n.get('nickname'), length: 3} validation.test 'password', Validation.notNull obj.password(), {fieldName: T9n.get('password')} validation.test 'password', Validation.minLength obj.password(), {fieldName: T9n.get('password'), length: 5} validation filters: field: 'email'
130717
m = require 'mithril' ViewModel = require '../abstract/ViewModel' module.exports = class UserVM extends ViewModel constructor: () -> super() @modelName = 'User' @vm = UserVM @verb = 'user' @url = 'api/user' @homeRoute = '/users' # create clean hash map without object prototype - ECMAScript5 # see: http://ryanmorr.com/true-hash-maps-in-javascript/ @attributes = Object.create(null) @filter = false @init() @pageSize = 3 init: () -> @attributes = id: m.prop '' email: m.prop '<EMAIL>' nickname: m.prop '' firstname: m.prop '' lastname: m.prop '' password: <PASSWORD> '' birthday: m.prop '' rols: m.prop [] @current: new UserVM createObj: -> new UserVM @validate: (obj) -> validation = new Validation() validation.test 'email', Validation.notNull obj.email(), {fieldName: T9n.get('email')} validation.test 'email', Validation.email obj.email(), {fieldName: T9n.get('email')} # validation.test 'nickname', Validation.notNull obj.nickname(), {fieldName: T9n.get('nickname')} # validation.test 'nickname', Validation.minLength obj.nickname(), {fieldName: T9n.get('nickname'), length: 3} validation.test 'password', Validation.notNull obj.password(), {fieldName: T9n.get('password')} validation.test 'password', Validation.minLength obj.password(), {fieldName: T9n.get('password'), length: 5} validation filters: field: 'email'
true
m = require 'mithril' ViewModel = require '../abstract/ViewModel' module.exports = class UserVM extends ViewModel constructor: () -> super() @modelName = 'User' @vm = UserVM @verb = 'user' @url = 'api/user' @homeRoute = '/users' # create clean hash map without object prototype - ECMAScript5 # see: http://ryanmorr.com/true-hash-maps-in-javascript/ @attributes = Object.create(null) @filter = false @init() @pageSize = 3 init: () -> @attributes = id: m.prop '' email: m.prop 'PI:EMAIL:<EMAIL>END_PI' nickname: m.prop '' firstname: m.prop '' lastname: m.prop '' password: PI:PASSWORD:<PASSWORD>END_PI '' birthday: m.prop '' rols: m.prop [] @current: new UserVM createObj: -> new UserVM @validate: (obj) -> validation = new Validation() validation.test 'email', Validation.notNull obj.email(), {fieldName: T9n.get('email')} validation.test 'email', Validation.email obj.email(), {fieldName: T9n.get('email')} # validation.test 'nickname', Validation.notNull obj.nickname(), {fieldName: T9n.get('nickname')} # validation.test 'nickname', Validation.minLength obj.nickname(), {fieldName: T9n.get('nickname'), length: 3} validation.test 'password', Validation.notNull obj.password(), {fieldName: T9n.get('password')} validation.test 'password', Validation.minLength obj.password(), {fieldName: T9n.get('password'), length: 5} validation filters: field: 'email'
[ { "context": "\"#login_account\").val()\n password: $(\"#login_pwd\").val()\n dataType: 'json'\n type: 'P", "end": 236, "score": 0.9431117177009583, "start": 227, "tag": "PASSWORD", "value": "login_pwd" } ]
static/coffee/auth.coffee
gray0018/tornado-storminton
0
root = exports ? this # !!!! Hotpoor root object root.Hs or= {} Hs = root.Hs root.start_login = ()-> $.ajax url: "/api/login" data: username: $("#login_account").val() password: $("#login_pwd").val() dataType: 'json' type: 'POST' success: (data)-> console.log data if data.info == "success" if data.action == "redirect" redirect_uri = data.redirect_uri window.location.href = redirect_uri error: (data)-> console.log data root.start_logout = ()-> redirect_uri = window.location.pathname + window.location.search window.location.href = "/api/logout?next="+ encodeURI(redirect_uri)
99513
root = exports ? this # !!!! Hotpoor root object root.Hs or= {} Hs = root.Hs root.start_login = ()-> $.ajax url: "/api/login" data: username: $("#login_account").val() password: $("#<PASSWORD>").val() dataType: 'json' type: 'POST' success: (data)-> console.log data if data.info == "success" if data.action == "redirect" redirect_uri = data.redirect_uri window.location.href = redirect_uri error: (data)-> console.log data root.start_logout = ()-> redirect_uri = window.location.pathname + window.location.search window.location.href = "/api/logout?next="+ encodeURI(redirect_uri)
true
root = exports ? this # !!!! Hotpoor root object root.Hs or= {} Hs = root.Hs root.start_login = ()-> $.ajax url: "/api/login" data: username: $("#login_account").val() password: $("#PI:PASSWORD:<PASSWORD>END_PI").val() dataType: 'json' type: 'POST' success: (data)-> console.log data if data.info == "success" if data.action == "redirect" redirect_uri = data.redirect_uri window.location.href = redirect_uri error: (data)-> console.log data root.start_logout = ()-> redirect_uri = window.location.pathname + window.location.search window.location.href = "/api/logout?next="+ encodeURI(redirect_uri)
[ { "context": "rue, users are forced to set a username\n\tusername: false\n\t\n\t# Localisation\n\tdefaultLanguage: 'en'\n\tdateFor", "end": 508, "score": 0.8500896096229553, "start": 503, "tag": "USERNAME", "value": "false" }, { "context": "al:\n\t\taddress: 'Postfach 317, 8630 Rüti'...
lib/_config/_config.coffee
meip/vmt
0
# These values get propagated through the app # E.g. The 'name' and 'subtitle' are used in seo.coffee @Config = # Basic Details name: 'VMT' title: -> TAPi18n.__ 'configTitle' subtitle: -> TAPi18n.__ 'configSubtitle' logo: -> '<b>' + @name + '</b>' footer: -> @name + ' - Copyright ' + new Date().getFullYear() # Emails emails: from: 'no-reply@' + Meteor.absoluteUrl() contact: 'hello' + Meteor.absoluteUrl() # Username - if true, users are forced to set a username username: false # Localisation defaultLanguage: 'en' dateFormat: 'D/M/YYYY' # Meta / Extenrnal content privacyUrl: Meteor.absoluteUrl() termsUrl: Meteor.absoluteUrl() # For email footers legal: address: 'Postfach 317, 8630 Rüti' name: 'FB Riders' url: 'http://www.fbriders.ch' about: 'http://philippmeier.ch' blog: 'http://philippmeier.ch/blog' socialMedia: twitter: url: 'http://twitter.com/vilibm' icon: 'twitter' github: url: 'http://github.com/meip' icon: 'github' info: url: 'http://philippmeier.ch' icon: 'link' #Routes homeRoute: '/' publicRoutes: ['home'] dashboardRoute: '/dashboard'
53990
# These values get propagated through the app # E.g. The 'name' and 'subtitle' are used in seo.coffee @Config = # Basic Details name: 'VMT' title: -> TAPi18n.__ 'configTitle' subtitle: -> TAPi18n.__ 'configSubtitle' logo: -> '<b>' + @name + '</b>' footer: -> @name + ' - Copyright ' + new Date().getFullYear() # Emails emails: from: 'no-reply@' + Meteor.absoluteUrl() contact: 'hello' + Meteor.absoluteUrl() # Username - if true, users are forced to set a username username: false # Localisation defaultLanguage: 'en' dateFormat: 'D/M/YYYY' # Meta / Extenrnal content privacyUrl: Meteor.absoluteUrl() termsUrl: Meteor.absoluteUrl() # For email footers legal: address: 'Postfach 317, 8630 Rüti' name: '<NAME>' url: 'http://www.fbriders.ch' about: 'http://philippmeier.ch' blog: 'http://philippmeier.ch/blog' socialMedia: twitter: url: 'http://twitter.com/vilibm' icon: 'twitter' github: url: 'http://github.com/meip' icon: 'github' info: url: 'http://philippmeier.ch' icon: 'link' #Routes homeRoute: '/' publicRoutes: ['home'] dashboardRoute: '/dashboard'
true
# These values get propagated through the app # E.g. The 'name' and 'subtitle' are used in seo.coffee @Config = # Basic Details name: 'VMT' title: -> TAPi18n.__ 'configTitle' subtitle: -> TAPi18n.__ 'configSubtitle' logo: -> '<b>' + @name + '</b>' footer: -> @name + ' - Copyright ' + new Date().getFullYear() # Emails emails: from: 'no-reply@' + Meteor.absoluteUrl() contact: 'hello' + Meteor.absoluteUrl() # Username - if true, users are forced to set a username username: false # Localisation defaultLanguage: 'en' dateFormat: 'D/M/YYYY' # Meta / Extenrnal content privacyUrl: Meteor.absoluteUrl() termsUrl: Meteor.absoluteUrl() # For email footers legal: address: 'Postfach 317, 8630 Rüti' name: 'PI:NAME:<NAME>END_PI' url: 'http://www.fbriders.ch' about: 'http://philippmeier.ch' blog: 'http://philippmeier.ch/blog' socialMedia: twitter: url: 'http://twitter.com/vilibm' icon: 'twitter' github: url: 'http://github.com/meip' icon: 'github' info: url: 'http://philippmeier.ch' icon: 'link' #Routes homeRoute: '/' publicRoutes: ['home'] dashboardRoute: '/dashboard'
[ { "context": "eBeenCalledWith \\\n 'https://github.com/some-user/some-repo/blob/master/some-dir/some-file.md'\n\n ", "end": 2279, "score": 0.9994929432868958, "start": 2270, "tag": "USERNAME", "value": "some-user" }, { "context": "eenCalledWith \\\n 'https:/...
spec/github-file-spec.coffee
AEgan/open-on-github
1
GitHubFile = require '../lib/github-file' fs = require 'fs-plus' path = require 'path' os = require 'os' describe "GitHubFile", -> [githubFile, editor] = [] describe "commands", -> workingDirPath = path.join(os.tmpdir(), 'open-on-github-working-dir') filePathRelativeToWorkingDir = 'some-dir/some-file.md' fixturePath = (fixtureName) -> path.join(__dirname, "fixtures", "#{fixtureName}.git") setupWorkingDir = (fixtureName) -> fs.makeTreeSync workingDirPath fs.copySync fixturePath(fixtureName), path.join(workingDirPath, '.git') subdirectoryPath = path.join(workingDirPath, 'some-dir') fs.makeTreeSync subdirectoryPath filePath = path.join(subdirectoryPath, 'some-file.md') fs.writeFileSync filePath, 'some file content' setupGithubFile = -> atom.project.setPaths([workingDirPath]) waitsForPromise -> atom.workspace.open(filePathRelativeToWorkingDir) runs -> editor = atom.workspace.getActiveTextEditor() githubFile = GitHubFile.fromPath(editor.getPath()) teardownWorkingDirAndRestoreFixture = (fixtureName) -> success = null # On Windows, you can not remove a watched directory/file, therefore we # have to close the project before attempting to delete. Unfortunately, # Pathwatcher's close function is also not synchronous. Once # atom/node-pathwatcher#4 is implemented this should be alot cleaner. runs -> atom.project.setPaths([]) repeat = setInterval -> try fs.removeSync(workingDirPath) clearInterval(repeat) success = true catch e success = false , 50 waitsFor -> success describe "open", -> describe "when the file is openable on GitHub.com", -> fixtureName = 'github-remote' beforeEach -> setupWorkingDir(fixtureName) setupGithubFile() afterEach -> teardownWorkingDirAndRestoreFixture(fixtureName) it "opens the GitHub.com blob URL for the file", -> spyOn(githubFile, 'openUrlInBrowser') githubFile.open() expect(githubFile.openUrlInBrowser).toHaveBeenCalledWith \ 'https://github.com/some-user/some-repo/blob/master/some-dir/some-file.md' describe "when text is selected", -> it "opens the GitHub.com blob URL for the file with the selection range in the hash", -> atom.config.set('open-on-github.includeLineNumbersInUrls', true) spyOn(githubFile, 'openUrlInBrowser') githubFile.open([[0, 0], [1, 1]]) expect(githubFile.openUrlInBrowser).toHaveBeenCalledWith \ 'https://github.com/some-user/some-repo/blob/master/some-dir/some-file.md#L1-L2' describe "when the file has a '#' in its name", -> it "opens the GitHub.com blob URL for the file", -> waitsForPromise -> atom.workspace.open('a/b#/test#hash.md') runs -> editor = atom.workspace.getActiveTextEditor() githubFile = GitHubFile.fromPath(editor.getPath()) spyOn(githubFile, 'openUrlInBrowser') githubFile.open() expect(githubFile.openUrlInBrowser).toHaveBeenCalledWith \ 'https://github.com/some-user/some-repo/blob/master/a/b%23/test%23hash.md' describe "when the branch has a '/' in its name", -> fixtureName = 'branch-with-slash-in-name' beforeEach -> setupWorkingDir(fixtureName) setupGithubFile() afterEach -> teardownWorkingDirAndRestoreFixture(fixtureName) it "opens the GitHub.com blob URL for the file", -> spyOn(githubFile, 'openUrlInBrowser') githubFile.open() expect(githubFile.openUrlInBrowser).toHaveBeenCalledWith \ 'https://github.com/some-user/some-repo/blob/foo/bar/some-dir/some-file.md' describe "when the branch has a '#' in its name", -> fixtureName = 'branch-with-hash-in-name' beforeEach -> setupWorkingDir(fixtureName) setupGithubFile() afterEach -> teardownWorkingDirAndRestoreFixture(fixtureName) it "opens the GitHub.com blob URL for the file", -> spyOn(githubFile, 'openUrlInBrowser') githubFile.open() expect(githubFile.openUrlInBrowser).toHaveBeenCalledWith \ 'https://github.com/some-user/some-repo/blob/a%23b%23c/some-dir/some-file.md' describe "when the remote has a '/' in its name", -> fixtureName = 'remote-with-slash-in-name' beforeEach -> setupWorkingDir(fixtureName) setupGithubFile() afterEach -> teardownWorkingDirAndRestoreFixture(fixtureName) it "opens the GitHub.com blob URL for the file", -> spyOn(githubFile, 'openUrlInBrowser') githubFile.open() expect(githubFile.openUrlInBrowser).toHaveBeenCalledWith \ 'https://github.com/some-user/some-repo/blob/baz/some-dir/some-file.md' describe "when the local branch is not tracked", -> fixtureName = 'non-tracked-branch' beforeEach -> setupWorkingDir(fixtureName) setupGithubFile() afterEach -> teardownWorkingDirAndRestoreFixture(fixtureName) it "opens the GitHub.com blob URL for the file", -> spyOn(githubFile, 'openUrlInBrowser') githubFile.open() expect(githubFile.openUrlInBrowser).toHaveBeenCalledWith \ 'https://github.com/some-user/some-repo/blob/non-tracked-branch/some-dir/some-file.md' describe "when there is no remote", -> fixtureName = 'no-remote' beforeEach -> setupWorkingDir(fixtureName) setupGithubFile() afterEach -> teardownWorkingDirAndRestoreFixture(fixtureName) it "logs an error", -> spyOn(atom.notifications, 'addWarning') githubFile.open() expect(atom.notifications.addWarning).toHaveBeenCalledWith \ 'No URL defined for remote: null' describe "when the root directory doesn't have a git repo", -> beforeEach -> teardownWorkingDirAndRestoreFixture() fs.mkdirSync(workingDirPath) setupGithubFile() it "does nothing", -> spyOn(atom.notifications, 'addWarning') githubFile.open() expect(atom.notifications.addWarning).toHaveBeenCalled() expect(atom.notifications.addWarning.mostRecentCall.args[0]).toContain("No repository found") describe "when the remote repo is not hosted on github.com", -> fixtureName = 'github-enterprise-remote' beforeEach -> setupWorkingDir(fixtureName) githubFile = setupGithubFile() afterEach -> teardownWorkingDirAndRestoreFixture(fixtureName) it "opens a GitHub enterprise style blob URL for the file", -> spyOn(githubFile, 'openUrlInBrowser') githubFile.open() expect(githubFile.openUrlInBrowser).toHaveBeenCalledWith \ 'https://git.enterprize.me/some-user/some-repo/blob/master/some-dir/some-file.md' describe "blame", -> describe "when the file is openable on GitHub.com", -> fixtureName = 'github-remote' beforeEach -> setupWorkingDir(fixtureName) setupGithubFile() afterEach -> teardownWorkingDirAndRestoreFixture(fixtureName) it "opens the GitHub.com blame URL for the file", -> spyOn(githubFile, 'openUrlInBrowser') githubFile.blame() expect(githubFile.openUrlInBrowser).toHaveBeenCalledWith \ 'https://github.com/some-user/some-repo/blame/master/some-dir/some-file.md' describe "when text is selected", -> it "opens the GitHub.com blame URL for the file with the selection range in the hash", -> atom.config.set('open-on-github.includeLineNumbersInUrls', true) spyOn(githubFile, 'openUrlInBrowser') githubFile.blame([[0, 0], [1, 1]]) expect(githubFile.openUrlInBrowser).toHaveBeenCalledWith \ 'https://github.com/some-user/some-repo/blame/master/some-dir/some-file.md#L1-L2' describe "branchCompare", -> describe "when the file is openable on GitHub.com", -> fixtureName = 'github-remote' beforeEach -> setupWorkingDir(fixtureName) setupGithubFile() afterEach -> teardownWorkingDirAndRestoreFixture(fixtureName) it "opens the GitHub.com branch compare URL for the file", -> spyOn(githubFile, 'openUrlInBrowser') githubFile.openBranchCompare() expect(githubFile.openUrlInBrowser).toHaveBeenCalledWith \ 'https://github.com/some-user/some-repo/compare/master' describe "history", -> describe "when the file is openable on GitHub.com", -> fixtureName = 'github-remote' beforeEach -> setupWorkingDir(fixtureName) setupGithubFile() afterEach -> teardownWorkingDirAndRestoreFixture(fixtureName) it "opens the GitHub.com history URL for the file", -> spyOn(githubFile, 'openUrlInBrowser') githubFile.history() expect(githubFile.openUrlInBrowser).toHaveBeenCalledWith \ 'https://github.com/some-user/some-repo/commits/master/some-dir/some-file.md' describe "copyUrl", -> fixtureName = 'github-remote' beforeEach -> setupWorkingDir(fixtureName) atom.config.set('open-on-github.includeLineNumbersInUrls', true) setupGithubFile() afterEach -> teardownWorkingDirAndRestoreFixture(fixtureName) describe "when text is selected", -> it "copies the URL to the clipboard with the selection range in the hash", -> githubFile.copyUrl([[0, 0], [1, 1]]) expect(atom.clipboard.read()).toBe 'https://github.com/some-user/some-repo/blob/80b7897ceb6bd7531708509b50afeab36a4b73fd/some-dir/some-file.md#L1-L2' describe "when no text is selected", -> it "copies the URL to the clipboard with the cursor location in the hash", -> githubFile.copyUrl([[2, 1], [2, 1]]) expect(atom.clipboard.read()).toBe 'https://github.com/some-user/some-repo/blob/80b7897ceb6bd7531708509b50afeab36a4b73fd/some-dir/some-file.md#L3' describe "openRepository", -> describe "when the file is openable on GitHub.com", -> fixtureName = 'github-remote' beforeEach -> setupWorkingDir(fixtureName) setupGithubFile() afterEach -> teardownWorkingDirAndRestoreFixture(fixtureName) it "opens the GitHub.com repository URL", -> spyOn(githubFile, 'openUrlInBrowser') githubFile.openRepository() expect(githubFile.openUrlInBrowser).toHaveBeenCalledWith \ 'https://github.com/some-user/some-repo' describe "openIssues", -> describe 'when the file is openable on GitHub.com', -> fixtureName = 'github-remote' beforeEach -> setupWorkingDir(fixtureName) setupGithubFile() afterEach -> teardownWorkingDirAndRestoreFixture(fixtureName) it 'opens the GitHub.com issues URL', -> spyOn(githubFile, 'openUrlInBrowser') githubFile.openIssues() expect(githubFile.openUrlInBrowser).toHaveBeenCalledWith \ 'https://github.com/some-user/some-repo/issues' describe "githubRepoUrl", -> beforeEach -> githubFile = new GitHubFile() it "returns the GitHub.com URL for an HTTP remote URL", -> githubFile.gitUrl = -> "https://github.com/foo/bar.git" expect(githubFile.githubRepoUrl()).toBe "https://github.com/foo/bar" it "returns the GitHub.com URL for an SSH remote URL", -> githubFile.gitUrl = -> "git@github.com:foo/bar.git" expect(githubFile.githubRepoUrl()).toBe "http://github.com/foo/bar" it "returns a GitHub enterprise URL for a non-Github.com remote URL", -> githubFile.gitUrl = -> "https://git.enterprize.me/foo/bar.git" expect(githubFile.githubRepoUrl()).toBe "https://git.enterprize.me/foo/bar" githubFile.gitUrl = -> "git@git.enterprize.me:foo/bar.git" expect(githubFile.githubRepoUrl()).toBe "http://git.enterprize.me/foo/bar" it "returns the GitHub.com URL for a git:// URL", -> githubFile.gitUrl = -> "git://github.com/foo/bar.git" expect(githubFile.githubRepoUrl()).toBe "http://github.com/foo/bar" it "returns the GitHub.com URL for a ssh:// URL", -> githubFile.gitUrl = -> "ssh://git@github.com/foo/bar.git" expect(githubFile.githubRepoUrl()).toBe "http://github.com/foo/bar" it "returns undefined for Bitbucket URLs", -> githubFile.gitUrl = -> "https://bitbucket.org/somebody/repo.git" expect(githubFile.githubRepoUrl()).toBeUndefined() githubFile.gitUrl = -> "https://bitbucket.org/somebody/repo" expect(githubFile.githubRepoUrl()).toBeUndefined() githubFile.gitUrl = -> "git@bitbucket.org:somebody/repo.git" expect(githubFile.githubRepoUrl()).toBeUndefined() githubFile.gitUrl = -> "git@bitbucket.org:somebody/repo" expect(githubFile.githubRepoUrl()).toBeUndefined() it "removes leading and trailing slashes", -> githubFile.gitUrl = -> "https://github.com/foo/bar/" expect(githubFile.githubRepoUrl()).toBe "https://github.com/foo/bar" githubFile.gitUrl = -> "https://github.com/foo/bar//////" expect(githubFile.githubRepoUrl()).toBe "https://github.com/foo/bar" githubFile.gitUrl = -> "git@github.com:/foo/bar.git" expect(githubFile.githubRepoUrl()).toBe "http://github.com/foo/bar" it "activates when a command is triggered on the active editor", -> activationPromise = atom.packages.activatePackage('open-on-github') waitsForPromise -> atom.workspace.open() runs -> atom.commands.dispatch(atom.views.getView(atom.workspace.getActivePane()), 'open-on-github:file') waitsForPromise -> activationPromise
105611
GitHubFile = require '../lib/github-file' fs = require 'fs-plus' path = require 'path' os = require 'os' describe "GitHubFile", -> [githubFile, editor] = [] describe "commands", -> workingDirPath = path.join(os.tmpdir(), 'open-on-github-working-dir') filePathRelativeToWorkingDir = 'some-dir/some-file.md' fixturePath = (fixtureName) -> path.join(__dirname, "fixtures", "#{fixtureName}.git") setupWorkingDir = (fixtureName) -> fs.makeTreeSync workingDirPath fs.copySync fixturePath(fixtureName), path.join(workingDirPath, '.git') subdirectoryPath = path.join(workingDirPath, 'some-dir') fs.makeTreeSync subdirectoryPath filePath = path.join(subdirectoryPath, 'some-file.md') fs.writeFileSync filePath, 'some file content' setupGithubFile = -> atom.project.setPaths([workingDirPath]) waitsForPromise -> atom.workspace.open(filePathRelativeToWorkingDir) runs -> editor = atom.workspace.getActiveTextEditor() githubFile = GitHubFile.fromPath(editor.getPath()) teardownWorkingDirAndRestoreFixture = (fixtureName) -> success = null # On Windows, you can not remove a watched directory/file, therefore we # have to close the project before attempting to delete. Unfortunately, # Pathwatcher's close function is also not synchronous. Once # atom/node-pathwatcher#4 is implemented this should be alot cleaner. runs -> atom.project.setPaths([]) repeat = setInterval -> try fs.removeSync(workingDirPath) clearInterval(repeat) success = true catch e success = false , 50 waitsFor -> success describe "open", -> describe "when the file is openable on GitHub.com", -> fixtureName = 'github-remote' beforeEach -> setupWorkingDir(fixtureName) setupGithubFile() afterEach -> teardownWorkingDirAndRestoreFixture(fixtureName) it "opens the GitHub.com blob URL for the file", -> spyOn(githubFile, 'openUrlInBrowser') githubFile.open() expect(githubFile.openUrlInBrowser).toHaveBeenCalledWith \ 'https://github.com/some-user/some-repo/blob/master/some-dir/some-file.md' describe "when text is selected", -> it "opens the GitHub.com blob URL for the file with the selection range in the hash", -> atom.config.set('open-on-github.includeLineNumbersInUrls', true) spyOn(githubFile, 'openUrlInBrowser') githubFile.open([[0, 0], [1, 1]]) expect(githubFile.openUrlInBrowser).toHaveBeenCalledWith \ 'https://github.com/some-user/some-repo/blob/master/some-dir/some-file.md#L1-L2' describe "when the file has a '#' in its name", -> it "opens the GitHub.com blob URL for the file", -> waitsForPromise -> atom.workspace.open('a/b#/test#hash.md') runs -> editor = atom.workspace.getActiveTextEditor() githubFile = GitHubFile.fromPath(editor.getPath()) spyOn(githubFile, 'openUrlInBrowser') githubFile.open() expect(githubFile.openUrlInBrowser).toHaveBeenCalledWith \ 'https://github.com/some-user/some-repo/blob/master/a/b%23/test%23hash.md' describe "when the branch has a '/' in its name", -> fixtureName = 'branch-with-slash-in-name' beforeEach -> setupWorkingDir(fixtureName) setupGithubFile() afterEach -> teardownWorkingDirAndRestoreFixture(fixtureName) it "opens the GitHub.com blob URL for the file", -> spyOn(githubFile, 'openUrlInBrowser') githubFile.open() expect(githubFile.openUrlInBrowser).toHaveBeenCalledWith \ 'https://github.com/some-user/some-repo/blob/foo/bar/some-dir/some-file.md' describe "when the branch has a '#' in its name", -> fixtureName = 'branch-with-hash-in-name' beforeEach -> setupWorkingDir(fixtureName) setupGithubFile() afterEach -> teardownWorkingDirAndRestoreFixture(fixtureName) it "opens the GitHub.com blob URL for the file", -> spyOn(githubFile, 'openUrlInBrowser') githubFile.open() expect(githubFile.openUrlInBrowser).toHaveBeenCalledWith \ 'https://github.com/some-user/some-repo/blob/a%23b%23c/some-dir/some-file.md' describe "when the remote has a '/' in its name", -> fixtureName = 'remote-with-slash-in-name' beforeEach -> setupWorkingDir(fixtureName) setupGithubFile() afterEach -> teardownWorkingDirAndRestoreFixture(fixtureName) it "opens the GitHub.com blob URL for the file", -> spyOn(githubFile, 'openUrlInBrowser') githubFile.open() expect(githubFile.openUrlInBrowser).toHaveBeenCalledWith \ 'https://github.com/some-user/some-repo/blob/baz/some-dir/some-file.md' describe "when the local branch is not tracked", -> fixtureName = 'non-tracked-branch' beforeEach -> setupWorkingDir(fixtureName) setupGithubFile() afterEach -> teardownWorkingDirAndRestoreFixture(fixtureName) it "opens the GitHub.com blob URL for the file", -> spyOn(githubFile, 'openUrlInBrowser') githubFile.open() expect(githubFile.openUrlInBrowser).toHaveBeenCalledWith \ 'https://github.com/some-user/some-repo/blob/non-tracked-branch/some-dir/some-file.md' describe "when there is no remote", -> fixtureName = 'no-remote' beforeEach -> setupWorkingDir(fixtureName) setupGithubFile() afterEach -> teardownWorkingDirAndRestoreFixture(fixtureName) it "logs an error", -> spyOn(atom.notifications, 'addWarning') githubFile.open() expect(atom.notifications.addWarning).toHaveBeenCalledWith \ 'No URL defined for remote: null' describe "when the root directory doesn't have a git repo", -> beforeEach -> teardownWorkingDirAndRestoreFixture() fs.mkdirSync(workingDirPath) setupGithubFile() it "does nothing", -> spyOn(atom.notifications, 'addWarning') githubFile.open() expect(atom.notifications.addWarning).toHaveBeenCalled() expect(atom.notifications.addWarning.mostRecentCall.args[0]).toContain("No repository found") describe "when the remote repo is not hosted on github.com", -> fixtureName = 'github-enterprise-remote' beforeEach -> setupWorkingDir(fixtureName) githubFile = setupGithubFile() afterEach -> teardownWorkingDirAndRestoreFixture(fixtureName) it "opens a GitHub enterprise style blob URL for the file", -> spyOn(githubFile, 'openUrlInBrowser') githubFile.open() expect(githubFile.openUrlInBrowser).toHaveBeenCalledWith \ 'https://git.enterprize.me/some-user/some-repo/blob/master/some-dir/some-file.md' describe "blame", -> describe "when the file is openable on GitHub.com", -> fixtureName = 'github-remote' beforeEach -> setupWorkingDir(fixtureName) setupGithubFile() afterEach -> teardownWorkingDirAndRestoreFixture(fixtureName) it "opens the GitHub.com blame URL for the file", -> spyOn(githubFile, 'openUrlInBrowser') githubFile.blame() expect(githubFile.openUrlInBrowser).toHaveBeenCalledWith \ 'https://github.com/some-user/some-repo/blame/master/some-dir/some-file.md' describe "when text is selected", -> it "opens the GitHub.com blame URL for the file with the selection range in the hash", -> atom.config.set('open-on-github.includeLineNumbersInUrls', true) spyOn(githubFile, 'openUrlInBrowser') githubFile.blame([[0, 0], [1, 1]]) expect(githubFile.openUrlInBrowser).toHaveBeenCalledWith \ 'https://github.com/some-user/some-repo/blame/master/some-dir/some-file.md#L1-L2' describe "branchCompare", -> describe "when the file is openable on GitHub.com", -> fixtureName = 'github-remote' beforeEach -> setupWorkingDir(fixtureName) setupGithubFile() afterEach -> teardownWorkingDirAndRestoreFixture(fixtureName) it "opens the GitHub.com branch compare URL for the file", -> spyOn(githubFile, 'openUrlInBrowser') githubFile.openBranchCompare() expect(githubFile.openUrlInBrowser).toHaveBeenCalledWith \ 'https://github.com/some-user/some-repo/compare/master' describe "history", -> describe "when the file is openable on GitHub.com", -> fixtureName = 'github-remote' beforeEach -> setupWorkingDir(fixtureName) setupGithubFile() afterEach -> teardownWorkingDirAndRestoreFixture(fixtureName) it "opens the GitHub.com history URL for the file", -> spyOn(githubFile, 'openUrlInBrowser') githubFile.history() expect(githubFile.openUrlInBrowser).toHaveBeenCalledWith \ 'https://github.com/some-user/some-repo/commits/master/some-dir/some-file.md' describe "copyUrl", -> fixtureName = 'github-remote' beforeEach -> setupWorkingDir(fixtureName) atom.config.set('open-on-github.includeLineNumbersInUrls', true) setupGithubFile() afterEach -> teardownWorkingDirAndRestoreFixture(fixtureName) describe "when text is selected", -> it "copies the URL to the clipboard with the selection range in the hash", -> githubFile.copyUrl([[0, 0], [1, 1]]) expect(atom.clipboard.read()).toBe 'https://github.com/some-user/some-repo/blob/80b7897ceb6bd7531708509b50afeab36a4b73fd/some-dir/some-file.md#L1-L2' describe "when no text is selected", -> it "copies the URL to the clipboard with the cursor location in the hash", -> githubFile.copyUrl([[2, 1], [2, 1]]) expect(atom.clipboard.read()).toBe 'https://github.com/some-user/some-repo/blob/80b7897ceb6bd7531708509b50afeab36a4b73fd/some-dir/some-file.md#L3' describe "openRepository", -> describe "when the file is openable on GitHub.com", -> fixtureName = 'github-remote' beforeEach -> setupWorkingDir(fixtureName) setupGithubFile() afterEach -> teardownWorkingDirAndRestoreFixture(fixtureName) it "opens the GitHub.com repository URL", -> spyOn(githubFile, 'openUrlInBrowser') githubFile.openRepository() expect(githubFile.openUrlInBrowser).toHaveBeenCalledWith \ 'https://github.com/some-user/some-repo' describe "openIssues", -> describe 'when the file is openable on GitHub.com', -> fixtureName = 'github-remote' beforeEach -> setupWorkingDir(fixtureName) setupGithubFile() afterEach -> teardownWorkingDirAndRestoreFixture(fixtureName) it 'opens the GitHub.com issues URL', -> spyOn(githubFile, 'openUrlInBrowser') githubFile.openIssues() expect(githubFile.openUrlInBrowser).toHaveBeenCalledWith \ 'https://github.com/some-user/some-repo/issues' describe "githubRepoUrl", -> beforeEach -> githubFile = new GitHubFile() it "returns the GitHub.com URL for an HTTP remote URL", -> githubFile.gitUrl = -> "https://github.com/foo/bar.git" expect(githubFile.githubRepoUrl()).toBe "https://github.com/foo/bar" it "returns the GitHub.com URL for an SSH remote URL", -> githubFile.gitUrl = -> "git@github.com:foo/bar.git" expect(githubFile.githubRepoUrl()).toBe "http://github.com/foo/bar" it "returns a GitHub enterprise URL for a non-Github.com remote URL", -> githubFile.gitUrl = -> "https://git.enterprize.me/foo/bar.git" expect(githubFile.githubRepoUrl()).toBe "https://git.enterprize.me/foo/bar" githubFile.gitUrl = -> "git<EMAIL>@git.<EMAIL>:foo/bar.git" expect(githubFile.githubRepoUrl()).toBe "http://git.enterprize.me/foo/bar" it "returns the GitHub.com URL for a git:// URL", -> githubFile.gitUrl = -> "git://github.com/foo/bar.git" expect(githubFile.githubRepoUrl()).toBe "http://github.com/foo/bar" it "returns the GitHub.com URL for a ssh:// URL", -> githubFile.gitUrl = -> "ssh://git@github.com/foo/bar.git" expect(githubFile.githubRepoUrl()).toBe "http://github.com/foo/bar" it "returns undefined for Bitbucket URLs", -> githubFile.gitUrl = -> "https://bitbucket.org/somebody/repo.git" expect(githubFile.githubRepoUrl()).toBeUndefined() githubFile.gitUrl = -> "https://bitbucket.org/somebody/repo" expect(githubFile.githubRepoUrl()).toBeUndefined() githubFile.gitUrl = -> "<EMAIL>:somebody/repo.git" expect(githubFile.githubRepoUrl()).toBeUndefined() githubFile.gitUrl = -> "<EMAIL>:somebody/repo" expect(githubFile.githubRepoUrl()).toBeUndefined() it "removes leading and trailing slashes", -> githubFile.gitUrl = -> "https://github.com/foo/bar/" expect(githubFile.githubRepoUrl()).toBe "https://github.com/foo/bar" githubFile.gitUrl = -> "https://github.com/foo/bar//////" expect(githubFile.githubRepoUrl()).toBe "https://github.com/foo/bar" githubFile.gitUrl = -> "git@github.com:/foo/bar.git" expect(githubFile.githubRepoUrl()).toBe "http://github.com/foo/bar" it "activates when a command is triggered on the active editor", -> activationPromise = atom.packages.activatePackage('open-on-github') waitsForPromise -> atom.workspace.open() runs -> atom.commands.dispatch(atom.views.getView(atom.workspace.getActivePane()), 'open-on-github:file') waitsForPromise -> activationPromise
true
GitHubFile = require '../lib/github-file' fs = require 'fs-plus' path = require 'path' os = require 'os' describe "GitHubFile", -> [githubFile, editor] = [] describe "commands", -> workingDirPath = path.join(os.tmpdir(), 'open-on-github-working-dir') filePathRelativeToWorkingDir = 'some-dir/some-file.md' fixturePath = (fixtureName) -> path.join(__dirname, "fixtures", "#{fixtureName}.git") setupWorkingDir = (fixtureName) -> fs.makeTreeSync workingDirPath fs.copySync fixturePath(fixtureName), path.join(workingDirPath, '.git') subdirectoryPath = path.join(workingDirPath, 'some-dir') fs.makeTreeSync subdirectoryPath filePath = path.join(subdirectoryPath, 'some-file.md') fs.writeFileSync filePath, 'some file content' setupGithubFile = -> atom.project.setPaths([workingDirPath]) waitsForPromise -> atom.workspace.open(filePathRelativeToWorkingDir) runs -> editor = atom.workspace.getActiveTextEditor() githubFile = GitHubFile.fromPath(editor.getPath()) teardownWorkingDirAndRestoreFixture = (fixtureName) -> success = null # On Windows, you can not remove a watched directory/file, therefore we # have to close the project before attempting to delete. Unfortunately, # Pathwatcher's close function is also not synchronous. Once # atom/node-pathwatcher#4 is implemented this should be alot cleaner. runs -> atom.project.setPaths([]) repeat = setInterval -> try fs.removeSync(workingDirPath) clearInterval(repeat) success = true catch e success = false , 50 waitsFor -> success describe "open", -> describe "when the file is openable on GitHub.com", -> fixtureName = 'github-remote' beforeEach -> setupWorkingDir(fixtureName) setupGithubFile() afterEach -> teardownWorkingDirAndRestoreFixture(fixtureName) it "opens the GitHub.com blob URL for the file", -> spyOn(githubFile, 'openUrlInBrowser') githubFile.open() expect(githubFile.openUrlInBrowser).toHaveBeenCalledWith \ 'https://github.com/some-user/some-repo/blob/master/some-dir/some-file.md' describe "when text is selected", -> it "opens the GitHub.com blob URL for the file with the selection range in the hash", -> atom.config.set('open-on-github.includeLineNumbersInUrls', true) spyOn(githubFile, 'openUrlInBrowser') githubFile.open([[0, 0], [1, 1]]) expect(githubFile.openUrlInBrowser).toHaveBeenCalledWith \ 'https://github.com/some-user/some-repo/blob/master/some-dir/some-file.md#L1-L2' describe "when the file has a '#' in its name", -> it "opens the GitHub.com blob URL for the file", -> waitsForPromise -> atom.workspace.open('a/b#/test#hash.md') runs -> editor = atom.workspace.getActiveTextEditor() githubFile = GitHubFile.fromPath(editor.getPath()) spyOn(githubFile, 'openUrlInBrowser') githubFile.open() expect(githubFile.openUrlInBrowser).toHaveBeenCalledWith \ 'https://github.com/some-user/some-repo/blob/master/a/b%23/test%23hash.md' describe "when the branch has a '/' in its name", -> fixtureName = 'branch-with-slash-in-name' beforeEach -> setupWorkingDir(fixtureName) setupGithubFile() afterEach -> teardownWorkingDirAndRestoreFixture(fixtureName) it "opens the GitHub.com blob URL for the file", -> spyOn(githubFile, 'openUrlInBrowser') githubFile.open() expect(githubFile.openUrlInBrowser).toHaveBeenCalledWith \ 'https://github.com/some-user/some-repo/blob/foo/bar/some-dir/some-file.md' describe "when the branch has a '#' in its name", -> fixtureName = 'branch-with-hash-in-name' beforeEach -> setupWorkingDir(fixtureName) setupGithubFile() afterEach -> teardownWorkingDirAndRestoreFixture(fixtureName) it "opens the GitHub.com blob URL for the file", -> spyOn(githubFile, 'openUrlInBrowser') githubFile.open() expect(githubFile.openUrlInBrowser).toHaveBeenCalledWith \ 'https://github.com/some-user/some-repo/blob/a%23b%23c/some-dir/some-file.md' describe "when the remote has a '/' in its name", -> fixtureName = 'remote-with-slash-in-name' beforeEach -> setupWorkingDir(fixtureName) setupGithubFile() afterEach -> teardownWorkingDirAndRestoreFixture(fixtureName) it "opens the GitHub.com blob URL for the file", -> spyOn(githubFile, 'openUrlInBrowser') githubFile.open() expect(githubFile.openUrlInBrowser).toHaveBeenCalledWith \ 'https://github.com/some-user/some-repo/blob/baz/some-dir/some-file.md' describe "when the local branch is not tracked", -> fixtureName = 'non-tracked-branch' beforeEach -> setupWorkingDir(fixtureName) setupGithubFile() afterEach -> teardownWorkingDirAndRestoreFixture(fixtureName) it "opens the GitHub.com blob URL for the file", -> spyOn(githubFile, 'openUrlInBrowser') githubFile.open() expect(githubFile.openUrlInBrowser).toHaveBeenCalledWith \ 'https://github.com/some-user/some-repo/blob/non-tracked-branch/some-dir/some-file.md' describe "when there is no remote", -> fixtureName = 'no-remote' beforeEach -> setupWorkingDir(fixtureName) setupGithubFile() afterEach -> teardownWorkingDirAndRestoreFixture(fixtureName) it "logs an error", -> spyOn(atom.notifications, 'addWarning') githubFile.open() expect(atom.notifications.addWarning).toHaveBeenCalledWith \ 'No URL defined for remote: null' describe "when the root directory doesn't have a git repo", -> beforeEach -> teardownWorkingDirAndRestoreFixture() fs.mkdirSync(workingDirPath) setupGithubFile() it "does nothing", -> spyOn(atom.notifications, 'addWarning') githubFile.open() expect(atom.notifications.addWarning).toHaveBeenCalled() expect(atom.notifications.addWarning.mostRecentCall.args[0]).toContain("No repository found") describe "when the remote repo is not hosted on github.com", -> fixtureName = 'github-enterprise-remote' beforeEach -> setupWorkingDir(fixtureName) githubFile = setupGithubFile() afterEach -> teardownWorkingDirAndRestoreFixture(fixtureName) it "opens a GitHub enterprise style blob URL for the file", -> spyOn(githubFile, 'openUrlInBrowser') githubFile.open() expect(githubFile.openUrlInBrowser).toHaveBeenCalledWith \ 'https://git.enterprize.me/some-user/some-repo/blob/master/some-dir/some-file.md' describe "blame", -> describe "when the file is openable on GitHub.com", -> fixtureName = 'github-remote' beforeEach -> setupWorkingDir(fixtureName) setupGithubFile() afterEach -> teardownWorkingDirAndRestoreFixture(fixtureName) it "opens the GitHub.com blame URL for the file", -> spyOn(githubFile, 'openUrlInBrowser') githubFile.blame() expect(githubFile.openUrlInBrowser).toHaveBeenCalledWith \ 'https://github.com/some-user/some-repo/blame/master/some-dir/some-file.md' describe "when text is selected", -> it "opens the GitHub.com blame URL for the file with the selection range in the hash", -> atom.config.set('open-on-github.includeLineNumbersInUrls', true) spyOn(githubFile, 'openUrlInBrowser') githubFile.blame([[0, 0], [1, 1]]) expect(githubFile.openUrlInBrowser).toHaveBeenCalledWith \ 'https://github.com/some-user/some-repo/blame/master/some-dir/some-file.md#L1-L2' describe "branchCompare", -> describe "when the file is openable on GitHub.com", -> fixtureName = 'github-remote' beforeEach -> setupWorkingDir(fixtureName) setupGithubFile() afterEach -> teardownWorkingDirAndRestoreFixture(fixtureName) it "opens the GitHub.com branch compare URL for the file", -> spyOn(githubFile, 'openUrlInBrowser') githubFile.openBranchCompare() expect(githubFile.openUrlInBrowser).toHaveBeenCalledWith \ 'https://github.com/some-user/some-repo/compare/master' describe "history", -> describe "when the file is openable on GitHub.com", -> fixtureName = 'github-remote' beforeEach -> setupWorkingDir(fixtureName) setupGithubFile() afterEach -> teardownWorkingDirAndRestoreFixture(fixtureName) it "opens the GitHub.com history URL for the file", -> spyOn(githubFile, 'openUrlInBrowser') githubFile.history() expect(githubFile.openUrlInBrowser).toHaveBeenCalledWith \ 'https://github.com/some-user/some-repo/commits/master/some-dir/some-file.md' describe "copyUrl", -> fixtureName = 'github-remote' beforeEach -> setupWorkingDir(fixtureName) atom.config.set('open-on-github.includeLineNumbersInUrls', true) setupGithubFile() afterEach -> teardownWorkingDirAndRestoreFixture(fixtureName) describe "when text is selected", -> it "copies the URL to the clipboard with the selection range in the hash", -> githubFile.copyUrl([[0, 0], [1, 1]]) expect(atom.clipboard.read()).toBe 'https://github.com/some-user/some-repo/blob/80b7897ceb6bd7531708509b50afeab36a4b73fd/some-dir/some-file.md#L1-L2' describe "when no text is selected", -> it "copies the URL to the clipboard with the cursor location in the hash", -> githubFile.copyUrl([[2, 1], [2, 1]]) expect(atom.clipboard.read()).toBe 'https://github.com/some-user/some-repo/blob/80b7897ceb6bd7531708509b50afeab36a4b73fd/some-dir/some-file.md#L3' describe "openRepository", -> describe "when the file is openable on GitHub.com", -> fixtureName = 'github-remote' beforeEach -> setupWorkingDir(fixtureName) setupGithubFile() afterEach -> teardownWorkingDirAndRestoreFixture(fixtureName) it "opens the GitHub.com repository URL", -> spyOn(githubFile, 'openUrlInBrowser') githubFile.openRepository() expect(githubFile.openUrlInBrowser).toHaveBeenCalledWith \ 'https://github.com/some-user/some-repo' describe "openIssues", -> describe 'when the file is openable on GitHub.com', -> fixtureName = 'github-remote' beforeEach -> setupWorkingDir(fixtureName) setupGithubFile() afterEach -> teardownWorkingDirAndRestoreFixture(fixtureName) it 'opens the GitHub.com issues URL', -> spyOn(githubFile, 'openUrlInBrowser') githubFile.openIssues() expect(githubFile.openUrlInBrowser).toHaveBeenCalledWith \ 'https://github.com/some-user/some-repo/issues' describe "githubRepoUrl", -> beforeEach -> githubFile = new GitHubFile() it "returns the GitHub.com URL for an HTTP remote URL", -> githubFile.gitUrl = -> "https://github.com/foo/bar.git" expect(githubFile.githubRepoUrl()).toBe "https://github.com/foo/bar" it "returns the GitHub.com URL for an SSH remote URL", -> githubFile.gitUrl = -> "git@github.com:foo/bar.git" expect(githubFile.githubRepoUrl()).toBe "http://github.com/foo/bar" it "returns a GitHub enterprise URL for a non-Github.com remote URL", -> githubFile.gitUrl = -> "https://git.enterprize.me/foo/bar.git" expect(githubFile.githubRepoUrl()).toBe "https://git.enterprize.me/foo/bar" githubFile.gitUrl = -> "gitPI:EMAIL:<EMAIL>END_PI@git.PI:EMAIL:<EMAIL>END_PI:foo/bar.git" expect(githubFile.githubRepoUrl()).toBe "http://git.enterprize.me/foo/bar" it "returns the GitHub.com URL for a git:// URL", -> githubFile.gitUrl = -> "git://github.com/foo/bar.git" expect(githubFile.githubRepoUrl()).toBe "http://github.com/foo/bar" it "returns the GitHub.com URL for a ssh:// URL", -> githubFile.gitUrl = -> "ssh://git@github.com/foo/bar.git" expect(githubFile.githubRepoUrl()).toBe "http://github.com/foo/bar" it "returns undefined for Bitbucket URLs", -> githubFile.gitUrl = -> "https://bitbucket.org/somebody/repo.git" expect(githubFile.githubRepoUrl()).toBeUndefined() githubFile.gitUrl = -> "https://bitbucket.org/somebody/repo" expect(githubFile.githubRepoUrl()).toBeUndefined() githubFile.gitUrl = -> "PI:EMAIL:<EMAIL>END_PI:somebody/repo.git" expect(githubFile.githubRepoUrl()).toBeUndefined() githubFile.gitUrl = -> "PI:EMAIL:<EMAIL>END_PI:somebody/repo" expect(githubFile.githubRepoUrl()).toBeUndefined() it "removes leading and trailing slashes", -> githubFile.gitUrl = -> "https://github.com/foo/bar/" expect(githubFile.githubRepoUrl()).toBe "https://github.com/foo/bar" githubFile.gitUrl = -> "https://github.com/foo/bar//////" expect(githubFile.githubRepoUrl()).toBe "https://github.com/foo/bar" githubFile.gitUrl = -> "git@github.com:/foo/bar.git" expect(githubFile.githubRepoUrl()).toBe "http://github.com/foo/bar" it "activates when a command is triggered on the active editor", -> activationPromise = atom.packages.activatePackage('open-on-github') waitsForPromise -> atom.workspace.open() runs -> atom.commands.dispatch(atom.views.getView(atom.workspace.getActivePane()), 'open-on-github:file') waitsForPromise -> activationPromise
[ { "context": "{name} = {name: 'Jeremy'}\n[a, [{b: c}]] = [1, [{b: 2}]]\n\nf = (a, [b], {c}", "end": 23, "score": 0.999832808971405, "start": 17, "tag": "NAME", "value": "Jeremy" }, { "context": "Trace:\n# 1: before name=/\n# 1: after name='Jeremy'\n# 2: before a=/ c=/\n# ...
test/traces/coffee/pattern_matching.coffee
paigeruten/pencil-tracer
1
{name} = {name: 'Jeremy'} [a, [{b: c}]] = [1, [{b: 2}]] f = (a, [b], {c}, @d, e...) -> f 1, [2], {c: 3}, 4, 5, 6 # Trace: # 1: before name=/ # 1: after name='Jeremy' # 2: before a=/ c=/ # 2: after a=1 c=2 # 4: before f=/ # 4: after f=<function> # 5: before # 4: enter a=1 b=2 c=3 @d=4 e=[5, 6] # 4: leave return=/ # 5: after f()=/
3923
{name} = {name: '<NAME>'} [a, [{b: c}]] = [1, [{b: 2}]] f = (a, [b], {c}, @d, e...) -> f 1, [2], {c: 3}, 4, 5, 6 # Trace: # 1: before name=/ # 1: after name='<NAME>' # 2: before a=/ c=/ # 2: after a=1 c=2 # 4: before f=/ # 4: after f=<function> # 5: before # 4: enter a=1 b=2 c=3 @d=4 e=[5, 6] # 4: leave return=/ # 5: after f()=/
true
{name} = {name: 'PI:NAME:<NAME>END_PI'} [a, [{b: c}]] = [1, [{b: 2}]] f = (a, [b], {c}, @d, e...) -> f 1, [2], {c: 3}, 4, 5, 6 # Trace: # 1: before name=/ # 1: after name='PI:NAME:<NAME>END_PI' # 2: before a=/ c=/ # 2: after a=1 c=2 # 4: before f=/ # 4: after f=<function> # 5: before # 4: enter a=1 b=2 c=3 @d=4 e=[5, 6] # 4: leave return=/ # 5: after f()=/
[ { "context": " equal $(\".ts-userProfile dd\").eq(0).text(), 'Mrs. Mary Smith'\n equal $(\".ts-userProfile dd\").eq(1).text(), ", "end": 842, "score": 0.9992225170135498, "start": 832, "tag": "NAME", "value": "Mary Smith" }, { "context": "\n equal $(\".ts-userProfile dd\").eq(1...
test/spec/integration/profile/profile_test.coffee
JulianMiller/opened.io
1
module 'Profile', setup: -> Em.run -> $.mockjaxClear() localStorage.clear() Openedui.reset() Openedui.deferReadiness() #teardown: -> # Openedui.reset() # Ember.testing = false # localStorage.clear() test "index page without login", -> expect 2 Ember.run Openedui, 'advanceReadiness' ok !Openedui.session.apiKey, "empty session" Ember.run Openedui, 'advanceReadiness' visit('/profile/index').then -> equal($('.ts-signin-signinButton').length, 1, 'Sign In link exists') test "index page with login", -> expect 4 Ember.run Openedui, 'advanceReadiness' authenticate() ok Openedui.session.apiKey, "session exists" visit('/profile/index').then -> equal $('.ts-profileButton').length, 1, 'see profile button' equal $(".ts-userProfile dd").eq(0).text(), 'Mrs. Mary Smith' equal $(".ts-userProfile dd").eq(1).text(), 'teacher@example.com' test "Change password page", -> expect 5 Ember.run Openedui, 'advanceReadiness' authenticate() visit('/profile/index').then -> equal($('.ts-profile-changePasswordLink').length, 1, 'Change password link exists.') click('.ts-profile-changePasswordLink') .then -> equal $('.ts-changePassword-password').length, 1, 'see password field' equal $('.ts-changePassword-passwordConfirmation').length, 1, 'see password confirmation field' equal $('.ts-changePassword-currentPassword').length, 1, 'see current password field' equal $('.ts-changePassword-submitButton').length, 1, 'see button'
100549
module 'Profile', setup: -> Em.run -> $.mockjaxClear() localStorage.clear() Openedui.reset() Openedui.deferReadiness() #teardown: -> # Openedui.reset() # Ember.testing = false # localStorage.clear() test "index page without login", -> expect 2 Ember.run Openedui, 'advanceReadiness' ok !Openedui.session.apiKey, "empty session" Ember.run Openedui, 'advanceReadiness' visit('/profile/index').then -> equal($('.ts-signin-signinButton').length, 1, 'Sign In link exists') test "index page with login", -> expect 4 Ember.run Openedui, 'advanceReadiness' authenticate() ok Openedui.session.apiKey, "session exists" visit('/profile/index').then -> equal $('.ts-profileButton').length, 1, 'see profile button' equal $(".ts-userProfile dd").eq(0).text(), 'Mrs. <NAME>' equal $(".ts-userProfile dd").eq(1).text(), '<EMAIL>' test "Change password page", -> expect 5 Ember.run Openedui, 'advanceReadiness' authenticate() visit('/profile/index').then -> equal($('.ts-profile-changePasswordLink').length, 1, 'Change password link exists.') click('.ts-profile-changePasswordLink') .then -> equal $('.ts-changePassword-password').length, 1, 'see password field' equal $('.ts-changePassword-passwordConfirmation').length, 1, 'see password confirmation field' equal $('.ts-changePassword-currentPassword').length, 1, 'see current password field' equal $('.ts-changePassword-submitButton').length, 1, 'see button'
true
module 'Profile', setup: -> Em.run -> $.mockjaxClear() localStorage.clear() Openedui.reset() Openedui.deferReadiness() #teardown: -> # Openedui.reset() # Ember.testing = false # localStorage.clear() test "index page without login", -> expect 2 Ember.run Openedui, 'advanceReadiness' ok !Openedui.session.apiKey, "empty session" Ember.run Openedui, 'advanceReadiness' visit('/profile/index').then -> equal($('.ts-signin-signinButton').length, 1, 'Sign In link exists') test "index page with login", -> expect 4 Ember.run Openedui, 'advanceReadiness' authenticate() ok Openedui.session.apiKey, "session exists" visit('/profile/index').then -> equal $('.ts-profileButton').length, 1, 'see profile button' equal $(".ts-userProfile dd").eq(0).text(), 'Mrs. PI:NAME:<NAME>END_PI' equal $(".ts-userProfile dd").eq(1).text(), 'PI:EMAIL:<EMAIL>END_PI' test "Change password page", -> expect 5 Ember.run Openedui, 'advanceReadiness' authenticate() visit('/profile/index').then -> equal($('.ts-profile-changePasswordLink').length, 1, 'Change password link exists.') click('.ts-profile-changePasswordLink') .then -> equal $('.ts-changePassword-password').length, 1, 'see password field' equal $('.ts-changePassword-passwordConfirmation').length, 1, 'see password confirmation field' equal $('.ts-changePassword-currentPassword').length, 1, 'see current password field' equal $('.ts-changePassword-submitButton').length, 1, 'see button'
[ { "context": "###\n * bag\n * getbag.io\n *\n * Copyright (c) 2015 Ryan Gaus\n * Licensed under the MIT license.\n###\nuuid = req", "end": 58, "score": 0.9998422265052795, "start": 49, "tag": "NAME", "value": "Ryan Gaus" } ]
src/controllers/list_controller.coffee
1egoman/bag-node
0
### * bag * getbag.io * * Copyright (c) 2015 Ryan Gaus * Licensed under the MIT license. ### uuid = require "uuid" List = require "../models/list_model" # get a list of all lists # GET /list exports.index = (req, res) -> query = List.find({}).sort date: -1 # limit quantity and a start index query = query.skip parseInt req.body.start if req.body?.start query = query.limit parseInt req.body.limit if req.body?.limit # limit by user if req.body?.user if req.body.user is "me" query = query.find user: req.user._id else query = query.find user: req.body.user query.exec (err, data) -> if err res.send status: "bag.error.list.index" error: err else res.send status: "bag.success.list.index" data: data exports.new = (req, res) -> res.send "Not supported." # create a new list # POST /list exports.create = (req, res) -> list_params = req.body?.list if list_params and \ list_params.name? and \ list_params.desc? and \ list_params.contents? and \ list_params.tags? list_params.user = req.user._id if req.user?._id list = new List list_params list.save (err) -> if err res.send status: "bag.error.list.create" error: err else res.send status: "bag.success.list.create" data: list else res.send status: "bag.error.list.create" error: "all the required elements weren't there." # get a list with the specified id # GET /list/:list exports.show = (req, res) -> List.findOne _id: req.params.list, (err, data) -> if err res.send status: "bag.error.list.show" error: err else res.send status: "bag.success.list.show" data: data exports.edit = (req, res) -> res.send "Not supported." # update a list # PUT /list/:list exports.update = (req, res) -> List.findOne _id: req.params.list or req.body._id, (err, data) -> if err res.send status: "bag.error.list.update" error: err else data[k] = v for k, v of req.body?.list data.save (err) -> if err res.send status: "bag.error.list.update" data: err all: req.body?.list else # List.find {}, (err, all) -> res.send status: "bag.success.list.update" data: data # all: all # delete a list # DELETE /list/:list exports.destroy = (req, res) -> List.remove _id: req.params.list, (err, data) -> if err res.send status: "bag.error.list.delete" error: err else res.send status: "bag.success.list.delete" # search for a foodstuff using the given search query (req.params.foodstuff) exports.search = (req, res) -> console.log req.params.list List.find name: $regex: new RegExp req.params.list, 'i' , (err, data) -> console.log err if err res.send status: "bag.error.list.search" error: err else res.send status: "bag.success.list.search" data: data
94195
### * bag * getbag.io * * Copyright (c) 2015 <NAME> * Licensed under the MIT license. ### uuid = require "uuid" List = require "../models/list_model" # get a list of all lists # GET /list exports.index = (req, res) -> query = List.find({}).sort date: -1 # limit quantity and a start index query = query.skip parseInt req.body.start if req.body?.start query = query.limit parseInt req.body.limit if req.body?.limit # limit by user if req.body?.user if req.body.user is "me" query = query.find user: req.user._id else query = query.find user: req.body.user query.exec (err, data) -> if err res.send status: "bag.error.list.index" error: err else res.send status: "bag.success.list.index" data: data exports.new = (req, res) -> res.send "Not supported." # create a new list # POST /list exports.create = (req, res) -> list_params = req.body?.list if list_params and \ list_params.name? and \ list_params.desc? and \ list_params.contents? and \ list_params.tags? list_params.user = req.user._id if req.user?._id list = new List list_params list.save (err) -> if err res.send status: "bag.error.list.create" error: err else res.send status: "bag.success.list.create" data: list else res.send status: "bag.error.list.create" error: "all the required elements weren't there." # get a list with the specified id # GET /list/:list exports.show = (req, res) -> List.findOne _id: req.params.list, (err, data) -> if err res.send status: "bag.error.list.show" error: err else res.send status: "bag.success.list.show" data: data exports.edit = (req, res) -> res.send "Not supported." # update a list # PUT /list/:list exports.update = (req, res) -> List.findOne _id: req.params.list or req.body._id, (err, data) -> if err res.send status: "bag.error.list.update" error: err else data[k] = v for k, v of req.body?.list data.save (err) -> if err res.send status: "bag.error.list.update" data: err all: req.body?.list else # List.find {}, (err, all) -> res.send status: "bag.success.list.update" data: data # all: all # delete a list # DELETE /list/:list exports.destroy = (req, res) -> List.remove _id: req.params.list, (err, data) -> if err res.send status: "bag.error.list.delete" error: err else res.send status: "bag.success.list.delete" # search for a foodstuff using the given search query (req.params.foodstuff) exports.search = (req, res) -> console.log req.params.list List.find name: $regex: new RegExp req.params.list, 'i' , (err, data) -> console.log err if err res.send status: "bag.error.list.search" error: err else res.send status: "bag.success.list.search" data: data
true
### * bag * getbag.io * * Copyright (c) 2015 PI:NAME:<NAME>END_PI * Licensed under the MIT license. ### uuid = require "uuid" List = require "../models/list_model" # get a list of all lists # GET /list exports.index = (req, res) -> query = List.find({}).sort date: -1 # limit quantity and a start index query = query.skip parseInt req.body.start if req.body?.start query = query.limit parseInt req.body.limit if req.body?.limit # limit by user if req.body?.user if req.body.user is "me" query = query.find user: req.user._id else query = query.find user: req.body.user query.exec (err, data) -> if err res.send status: "bag.error.list.index" error: err else res.send status: "bag.success.list.index" data: data exports.new = (req, res) -> res.send "Not supported." # create a new list # POST /list exports.create = (req, res) -> list_params = req.body?.list if list_params and \ list_params.name? and \ list_params.desc? and \ list_params.contents? and \ list_params.tags? list_params.user = req.user._id if req.user?._id list = new List list_params list.save (err) -> if err res.send status: "bag.error.list.create" error: err else res.send status: "bag.success.list.create" data: list else res.send status: "bag.error.list.create" error: "all the required elements weren't there." # get a list with the specified id # GET /list/:list exports.show = (req, res) -> List.findOne _id: req.params.list, (err, data) -> if err res.send status: "bag.error.list.show" error: err else res.send status: "bag.success.list.show" data: data exports.edit = (req, res) -> res.send "Not supported." # update a list # PUT /list/:list exports.update = (req, res) -> List.findOne _id: req.params.list or req.body._id, (err, data) -> if err res.send status: "bag.error.list.update" error: err else data[k] = v for k, v of req.body?.list data.save (err) -> if err res.send status: "bag.error.list.update" data: err all: req.body?.list else # List.find {}, (err, all) -> res.send status: "bag.success.list.update" data: data # all: all # delete a list # DELETE /list/:list exports.destroy = (req, res) -> List.remove _id: req.params.list, (err, data) -> if err res.send status: "bag.error.list.delete" error: err else res.send status: "bag.success.list.delete" # search for a foodstuff using the given search query (req.params.foodstuff) exports.search = (req, res) -> console.log req.params.list List.find name: $regex: new RegExp req.params.list, 'i' , (err, data) -> console.log err if err res.send status: "bag.error.list.search" error: err else res.send status: "bag.success.list.search" data: data
[ { "context": "rts =\n _id: setup.newId()\n id: 1234567\n name: 'Mike Adams'\n token: 'sofake'\n tokenSecret: 'sosecret'\n us", "end": 99, "score": 0.9998824596405029, "start": 89, "tag": "NAME", "value": "Mike Adams" }, { "context": "Id()\n id: 1234567\n name: 'Mike Adams'\n ...
app/scaffold/templates/^language/@coffee/^backend/@yes/server/test/user/mock.coffee
gentryjs/gentry-boiler
0
setup = require '../setup' module.exports = _id: setup.newId() id: 1234567 name: 'Mike Adams' token: 'sofake' tokenSecret: 'sosecret' username: 'mikeadams'
67002
setup = require '../setup' module.exports = _id: setup.newId() id: 1234567 name: '<NAME>' token: '<PASSWORD>' tokenSecret: '<KEY>' username: 'mikeadams'
true
setup = require '../setup' module.exports = _id: setup.newId() id: 1234567 name: 'PI:NAME:<NAME>END_PI' token: 'PI:PASSWORD:<PASSWORD>END_PI' tokenSecret: 'PI:KEY:<KEY>END_PI' username: 'mikeadams'
[ { "context": "fileoverview Tests for no-iterator rule.\n# @author Ian Christian Myers\n###\n\n'use strict'\n\n#-----------------------------", "end": 78, "score": 0.9997979402542114, "start": 59, "tag": "NAME", "value": "Ian Christian Myers" } ]
src/tests/rules/no-iterator.coffee
danielbayley/eslint-plugin-coffee
21
###* # @fileoverview Tests for no-iterator rule. # @author Ian Christian Myers ### 'use strict' #------------------------------------------------------------------------------ # Requirements #------------------------------------------------------------------------------ rule = require 'eslint/lib/rules/no-iterator' {RuleTester} = require 'eslint' path = require 'path' #------------------------------------------------------------------------------ # Tests #------------------------------------------------------------------------------ ruleTester = new RuleTester parser: path.join __dirname, '../../..' ruleTester.run 'no-iterator', rule, valid: ['a = test[__iterator__]', '__iterator__ = null'] invalid: [ code: 'a = test.__iterator__' errors: [message: "Reserved name '__iterator__'.", type: 'MemberExpression'] , code: 'Foo.prototype.__iterator__ = ->' errors: [message: "Reserved name '__iterator__'.", type: 'MemberExpression'] , code: 'Foo::__iterator__ = ->' errors: [message: "Reserved name '__iterator__'.", type: 'MemberExpression'] , code: "a = test['__iterator__']" errors: [message: "Reserved name '__iterator__'.", type: 'MemberExpression'] ]
94408
###* # @fileoverview Tests for no-iterator rule. # @author <NAME> ### 'use strict' #------------------------------------------------------------------------------ # Requirements #------------------------------------------------------------------------------ rule = require 'eslint/lib/rules/no-iterator' {RuleTester} = require 'eslint' path = require 'path' #------------------------------------------------------------------------------ # Tests #------------------------------------------------------------------------------ ruleTester = new RuleTester parser: path.join __dirname, '../../..' ruleTester.run 'no-iterator', rule, valid: ['a = test[__iterator__]', '__iterator__ = null'] invalid: [ code: 'a = test.__iterator__' errors: [message: "Reserved name '__iterator__'.", type: 'MemberExpression'] , code: 'Foo.prototype.__iterator__ = ->' errors: [message: "Reserved name '__iterator__'.", type: 'MemberExpression'] , code: 'Foo::__iterator__ = ->' errors: [message: "Reserved name '__iterator__'.", type: 'MemberExpression'] , code: "a = test['__iterator__']" errors: [message: "Reserved name '__iterator__'.", type: 'MemberExpression'] ]
true
###* # @fileoverview Tests for no-iterator rule. # @author PI:NAME:<NAME>END_PI ### 'use strict' #------------------------------------------------------------------------------ # Requirements #------------------------------------------------------------------------------ rule = require 'eslint/lib/rules/no-iterator' {RuleTester} = require 'eslint' path = require 'path' #------------------------------------------------------------------------------ # Tests #------------------------------------------------------------------------------ ruleTester = new RuleTester parser: path.join __dirname, '../../..' ruleTester.run 'no-iterator', rule, valid: ['a = test[__iterator__]', '__iterator__ = null'] invalid: [ code: 'a = test.__iterator__' errors: [message: "Reserved name '__iterator__'.", type: 'MemberExpression'] , code: 'Foo.prototype.__iterator__ = ->' errors: [message: "Reserved name '__iterator__'.", type: 'MemberExpression'] , code: 'Foo::__iterator__ = ->' errors: [message: "Reserved name '__iterator__'.", type: 'MemberExpression'] , code: "a = test['__iterator__']" errors: [message: "Reserved name '__iterator__'.", type: 'MemberExpression'] ]
[ { "context": "in\",\n \"joke\",\n \"judge\",\n \"juice\",\n \"jump\",\n \"jury\",\n \"justify\",\n \"keep\",\n \"kick\",\n \"kid\",\n ", "end": 5497, "score": 0.7999828457832336, "start": 5496, "tag": "NAME", "value": "j" } ]
src/bro.coffee
PurdyForks/hubot-bro
0
# Description: # Listens for "bro" terms = [ "abuse", "accept", "access", "according", "account", "accuse", "achieve", "acquire", "act", "adapt", "add", "address", "adjust", "admire", "admit", "adopt", "advance", "advantage", "affect", "afford", "age", "agree", "air", "alarm", "allow", "amazing", "amount", "anger", "angle", "announce", "answer", "anticipate", "apologize", "appeal", "appear", "apply", "appreciate", "approach", "appropriate", "approve", "argue", "arise", "arm", "arrive", "ask", "assist", "associate", "assume", "assure", "attach", "attack", "attempt", "attend", "attract", "author", "average", "avoid", "award", "baby", "bag", "bake", "balance", "ball", "band", "bank", "bar", "base", "bat", "battle", "be", "beach", "bear", "beat", "become", "bed", "begin", "behave", "being", "believe", "bell", "belong", "belt", "bench", "bend", "benefit", "bet", "bicycle", "bid", "bike", "bill", "birth", "bit", "bite", "black", "blame", "blank", "blind", "block", "blow", "blue", "board", "boat", "body", "bone", "book", "boot", "border", "borrow", "boss", "bother", "bottle", "bottom", "bowl", "box", "brain", "branch", "break", "breakfast", "breast", "brick", "bridge", "bring", "brush", "buddy", "bug", "build", "building", "bunch", "burn", "bus", "busy", "button", "buy", "cable", "cake", "calculate", "calendar", "call", "camp", "campaign", "cancel", "candle", "candy", "cap", "card", "care", "career", "carpet", "carry", "case", "cash", "cat", "catch", "cause", "celebrate", "chain", "chair", "challenge", "champion", "change", "channel", "charge", "chart", "check", "chip", "choose", "claim", "class", "clerk", "click", "clock", "closet", "cloud", "club", "clue", "coach", "coast", "coat", "code", "collar", "collect", "combine", "come", "comfort", "command", "comment", "commission", "commit", "communicate", "company", "compare", "compete", "complain", "complete", "concentrate", "concern", "concert", "condition", "conference", "confirm", "conflict", "connect", "consider", "consist", "consult", "contact", "contain", "content", "contest", "continue", "contribute", "convert", "convince", "cook", "copy", "correct", "cost", "count", "counter", "couple", "course", "court", "cover", "cow", "crack", "craft", "crash", "cream", "create", "credit", "crew", "criticize", "cross", "cry", "culture", "cup", "curve", "cut", "cycle", "damage", "dance", "dare", "date", "deal", "debate", "decide", "delay", "deliver", "demand", "depend", "deposit", "describe", "deserve", "design", "desire", "destroy", "detail", "determine", "develop", "devil", "die", "diet", "differ", "dig", "dimension", "dirty", "disagree", "discipline", "discount", "discover", "discuss", "dish", "display", "distance", "distribute", "district", "divide", "doctor", "document", "does", "dog", "dot", "doubt", "draft", "drag", "draw", "dream", "drink", "drive", "drop", "dry", "dump", "dust", "earn", "earth", "ease", "eat", "edge", "effect", "egg", "emphasize", "employ", "empty", "enable", "encourage", "encouraging", "end", "engage", "engineer", "enhance", "enjoy", "ensure", "enter", "entrance", "escape", "essay", "establish", "estimate", "even", "evidence", "exact", "examine", "example", "exchange", "excuse", "exercise", "exist", "exit", "expand", "expect", "experience", "explain", "explore", "expose", "express", "extend", "eye", "face", "factor", "fail", "fall", "fan", "farm", "father", "fault", "fear", "feature", "fee", "feed", "feel", "field", "fight", "figure", "file", "fill", "film", "finance", "find", "finger", "finish", "fire", "firm", "fish", "fit", "fix", "floor", "flow", "flower", "fly", "focus", "fold", "follow", "foot", "force", "forget", "form", "frame", "frequent", "friend", "fruit", "fuel", "function", "gain", "gap", "garage", "garden", "gas", "gather", "gear", "generate", "gift", "give", "glove", "go", "golf", "grab", "grade", "grandfather", "grass", "ground", "group", "grow", "guarantee", "guard", "guess", "guide", "habit", "hand", "handle", "hang", "happen", "harm", "hate", "have", "hear", "heat", "help", "hesitate", "hide", "highlight", "hire", "hit", "hold", "hole", "hook", "hope", "horse", "host", "hunt", "hurry", "hurt", "husband", "ice", "identify", "ignore", "illustrate", "image", "imagine", "impact", "implement", "imply", "impress", "improve", "include", "incorporate", "increase", "indicate", "influence", "inform", "insist", "install", "intend", "interest", "interview", "introduce", "invest", "investigate", "invite", "involve", "iron", "island", "issue", "jacket", "job", "join", "joke", "judge", "juice", "jump", "jury", "justify", "keep", "kick", "kid", "kill", "kiss", "knee", "knife", "know", "lack", "land", "landscape", "laugh", "lawyer", "lay", "layer", "lead", "league", "learn", "leave", "lecture", "leg", "lesson", "let", "letter", "lie", "lift", "light", "like", "limit", "line", "link", "list", "listen", "live", "load", "loan", "lock", "log", "look", "loose", "lose", "lost", "luck", "lunch", "machine", "mail", "maintain", "make", "man", "manage", "manufacturing", "march", "mark", "market", "marry", "match", "mate", "matter", "mean", "meet", "mention", "mess", "metal", "milk", "mind", "mirror", "miss", "mistake", "mix", "model", "monitor", "mortgage", "mouse", "mouth", "move", "muscle", "must", "nail", "name", "narrow", "neck", "need", "negotiate", "nerve", "net", "network", "noise", "nose", "note", "notice", "number", "nurse", "object", "obtain", "occasion", "occur", "offer", "officer", "oil", "open", "operate", "option", "order", "organize", "ought", "overcome", "owe", "own", "pace", "pack", "package", "page", "pain", "paint", "pair", "panic", "parent", "park", "part", "participate", "partner", "pass", "passage", "pattern", "pause", "pay", "peak", "pen", "pension", "perfect", "perform", "permit", "persuade", "phase", "phrase", "pick", "picture", "piece", "pin", "pipe", "pitch", "place", "plan", "plant", "plate", "play", "please", "pleasure", "point", "pool", "pop", "position", "possess", "post", "pot", "pound", "pour", "practice", "pray", "prefer", "prepare", "press", "pressure", "pretend", "prevent", "price", "pride", "priest", "print", "process", "produce", "profile", "profit", "program", "progress", "project", "promise", "prompt", "propose", "protect", "prove", "provide", "pull", "punch", "purchase", "purpose", "pursue", "push", "put", "qualify", "quarter", "question", "quit", "quote", "race", "radio", "rain", "raise", "range", "rate", "reach", "react", "read", "ready", "realize", "reason", "receive", "recognize", "recommend", "record", "recover", "reduce", "refer", "reference", "reflect", "refuse", "register", "regret", "relate", "relax", "release", "relieve", "rely", "remain", "remaining", "remember", "remind", "remove", "rent", "repair", "repeat", "replace", "reply", "report", "represent", "request", "require", "research", "reserve", "resist", "resolve", "resort", "respect", "respond", "rest", "result", "retain", "retire", "return", "reveal", "review", "reward", "rice", "rid", "ride", "ring", "rip", "rise", "risk", "rock", "roll", "roof", "room", "rope", "row", "rub", "ruin", "rule", "run", "rush", "sail", "salary", "sand", "sandwich", "save", "say", "scale", "schedule", "scheme", "school", "score", "scratch", "screen", "screw", "script", "search", "season", "seat", "section", "secure", "see", "seek", "seem", "select", "sell", "send", "sense", "sentence", "separate", "serve", "service", "set", "settle", "sex", "shake", "shall", "shame", "shape", "share", "sharp", "shelter", "shift", "shine", "ship", "shock", "shoe", "shoot", "shop", "shoulder", "show", "shower", "shut", "side", "sign", "sing", "sink", "sit", "site", "size", "skin", "skirt", "sky", "sleep", "slice", "slide", "slight", "slip", "smart", "smell", "smile", "smoke", "snow", "sock", "soil", "solve", "sort", "sound", "source", "space", "speak", "specify", "speed", "spell", "spend", "spirit", "spite", "split", "sport", "spot", "spray", "spread", "spring", "stable", "staff", "stage", "stand", "star", "start", "state", "station", "stay", "steal", "step", "stick", "stomach", "stop", "store", "storm", "strain", "stress", "stretch", "strike", "string", "strip", "stroke", "structure", "struggle", "study", "stuff", "style", "submit", "succeed", "suck", "suffer", "sugar", "suggest", "suit", "summer", "sun", "supply", "support", "suppose", "surprise", "surround", "survey", "survive", "suspect", "swim", "swing", "switch", "table", "tackle", "take", "talk", "tank", "tap", "target", "task", "taste", "tax", "teach", "team", "tear", "telephone", "tell", "tend", "term", "test", "text", "thank", "theme", "think", "throw", "ticket", "tie", "till", "tip", "title", "toe", "tone", "tool", "touch", "tour", "towel", "tower", "track", "trade", "traffic", "train", "transition", "translate", "trash", "travel", "treat", "tree", "trip", "trouble", "truck", "trust", "try", "tune", "turn", "twist", "type", "understand", "upset", "use", "vacation", "value", "vary", "view", "visit", "voice", "wait", "wake", "walk", "wall", "want", "war", "warm", "warn", "wash", "waste", "watch", "water", "wave", "wear", "weather", "web", "weekend", "weigh", "weight", "well", "wheel", "win", "wind", "window", "wing", "wise", "wish", "witness", "wonder", "word", "worry", "would", "wrap", "write", "yard", "zone" ] module.exports = (robot) -> robot.hear /\bbro\b/i, (msg) -> term = terms[Math.floor(Math.random() * terms.length)] msg.reply "bro do you even #{term}?"
97882
# Description: # Listens for "bro" terms = [ "abuse", "accept", "access", "according", "account", "accuse", "achieve", "acquire", "act", "adapt", "add", "address", "adjust", "admire", "admit", "adopt", "advance", "advantage", "affect", "afford", "age", "agree", "air", "alarm", "allow", "amazing", "amount", "anger", "angle", "announce", "answer", "anticipate", "apologize", "appeal", "appear", "apply", "appreciate", "approach", "appropriate", "approve", "argue", "arise", "arm", "arrive", "ask", "assist", "associate", "assume", "assure", "attach", "attack", "attempt", "attend", "attract", "author", "average", "avoid", "award", "baby", "bag", "bake", "balance", "ball", "band", "bank", "bar", "base", "bat", "battle", "be", "beach", "bear", "beat", "become", "bed", "begin", "behave", "being", "believe", "bell", "belong", "belt", "bench", "bend", "benefit", "bet", "bicycle", "bid", "bike", "bill", "birth", "bit", "bite", "black", "blame", "blank", "blind", "block", "blow", "blue", "board", "boat", "body", "bone", "book", "boot", "border", "borrow", "boss", "bother", "bottle", "bottom", "bowl", "box", "brain", "branch", "break", "breakfast", "breast", "brick", "bridge", "bring", "brush", "buddy", "bug", "build", "building", "bunch", "burn", "bus", "busy", "button", "buy", "cable", "cake", "calculate", "calendar", "call", "camp", "campaign", "cancel", "candle", "candy", "cap", "card", "care", "career", "carpet", "carry", "case", "cash", "cat", "catch", "cause", "celebrate", "chain", "chair", "challenge", "champion", "change", "channel", "charge", "chart", "check", "chip", "choose", "claim", "class", "clerk", "click", "clock", "closet", "cloud", "club", "clue", "coach", "coast", "coat", "code", "collar", "collect", "combine", "come", "comfort", "command", "comment", "commission", "commit", "communicate", "company", "compare", "compete", "complain", "complete", "concentrate", "concern", "concert", "condition", "conference", "confirm", "conflict", "connect", "consider", "consist", "consult", "contact", "contain", "content", "contest", "continue", "contribute", "convert", "convince", "cook", "copy", "correct", "cost", "count", "counter", "couple", "course", "court", "cover", "cow", "crack", "craft", "crash", "cream", "create", "credit", "crew", "criticize", "cross", "cry", "culture", "cup", "curve", "cut", "cycle", "damage", "dance", "dare", "date", "deal", "debate", "decide", "delay", "deliver", "demand", "depend", "deposit", "describe", "deserve", "design", "desire", "destroy", "detail", "determine", "develop", "devil", "die", "diet", "differ", "dig", "dimension", "dirty", "disagree", "discipline", "discount", "discover", "discuss", "dish", "display", "distance", "distribute", "district", "divide", "doctor", "document", "does", "dog", "dot", "doubt", "draft", "drag", "draw", "dream", "drink", "drive", "drop", "dry", "dump", "dust", "earn", "earth", "ease", "eat", "edge", "effect", "egg", "emphasize", "employ", "empty", "enable", "encourage", "encouraging", "end", "engage", "engineer", "enhance", "enjoy", "ensure", "enter", "entrance", "escape", "essay", "establish", "estimate", "even", "evidence", "exact", "examine", "example", "exchange", "excuse", "exercise", "exist", "exit", "expand", "expect", "experience", "explain", "explore", "expose", "express", "extend", "eye", "face", "factor", "fail", "fall", "fan", "farm", "father", "fault", "fear", "feature", "fee", "feed", "feel", "field", "fight", "figure", "file", "fill", "film", "finance", "find", "finger", "finish", "fire", "firm", "fish", "fit", "fix", "floor", "flow", "flower", "fly", "focus", "fold", "follow", "foot", "force", "forget", "form", "frame", "frequent", "friend", "fruit", "fuel", "function", "gain", "gap", "garage", "garden", "gas", "gather", "gear", "generate", "gift", "give", "glove", "go", "golf", "grab", "grade", "grandfather", "grass", "ground", "group", "grow", "guarantee", "guard", "guess", "guide", "habit", "hand", "handle", "hang", "happen", "harm", "hate", "have", "hear", "heat", "help", "hesitate", "hide", "highlight", "hire", "hit", "hold", "hole", "hook", "hope", "horse", "host", "hunt", "hurry", "hurt", "husband", "ice", "identify", "ignore", "illustrate", "image", "imagine", "impact", "implement", "imply", "impress", "improve", "include", "incorporate", "increase", "indicate", "influence", "inform", "insist", "install", "intend", "interest", "interview", "introduce", "invest", "investigate", "invite", "involve", "iron", "island", "issue", "jacket", "job", "join", "joke", "judge", "juice", "jump", "<NAME>ury", "justify", "keep", "kick", "kid", "kill", "kiss", "knee", "knife", "know", "lack", "land", "landscape", "laugh", "lawyer", "lay", "layer", "lead", "league", "learn", "leave", "lecture", "leg", "lesson", "let", "letter", "lie", "lift", "light", "like", "limit", "line", "link", "list", "listen", "live", "load", "loan", "lock", "log", "look", "loose", "lose", "lost", "luck", "lunch", "machine", "mail", "maintain", "make", "man", "manage", "manufacturing", "march", "mark", "market", "marry", "match", "mate", "matter", "mean", "meet", "mention", "mess", "metal", "milk", "mind", "mirror", "miss", "mistake", "mix", "model", "monitor", "mortgage", "mouse", "mouth", "move", "muscle", "must", "nail", "name", "narrow", "neck", "need", "negotiate", "nerve", "net", "network", "noise", "nose", "note", "notice", "number", "nurse", "object", "obtain", "occasion", "occur", "offer", "officer", "oil", "open", "operate", "option", "order", "organize", "ought", "overcome", "owe", "own", "pace", "pack", "package", "page", "pain", "paint", "pair", "panic", "parent", "park", "part", "participate", "partner", "pass", "passage", "pattern", "pause", "pay", "peak", "pen", "pension", "perfect", "perform", "permit", "persuade", "phase", "phrase", "pick", "picture", "piece", "pin", "pipe", "pitch", "place", "plan", "plant", "plate", "play", "please", "pleasure", "point", "pool", "pop", "position", "possess", "post", "pot", "pound", "pour", "practice", "pray", "prefer", "prepare", "press", "pressure", "pretend", "prevent", "price", "pride", "priest", "print", "process", "produce", "profile", "profit", "program", "progress", "project", "promise", "prompt", "propose", "protect", "prove", "provide", "pull", "punch", "purchase", "purpose", "pursue", "push", "put", "qualify", "quarter", "question", "quit", "quote", "race", "radio", "rain", "raise", "range", "rate", "reach", "react", "read", "ready", "realize", "reason", "receive", "recognize", "recommend", "record", "recover", "reduce", "refer", "reference", "reflect", "refuse", "register", "regret", "relate", "relax", "release", "relieve", "rely", "remain", "remaining", "remember", "remind", "remove", "rent", "repair", "repeat", "replace", "reply", "report", "represent", "request", "require", "research", "reserve", "resist", "resolve", "resort", "respect", "respond", "rest", "result", "retain", "retire", "return", "reveal", "review", "reward", "rice", "rid", "ride", "ring", "rip", "rise", "risk", "rock", "roll", "roof", "room", "rope", "row", "rub", "ruin", "rule", "run", "rush", "sail", "salary", "sand", "sandwich", "save", "say", "scale", "schedule", "scheme", "school", "score", "scratch", "screen", "screw", "script", "search", "season", "seat", "section", "secure", "see", "seek", "seem", "select", "sell", "send", "sense", "sentence", "separate", "serve", "service", "set", "settle", "sex", "shake", "shall", "shame", "shape", "share", "sharp", "shelter", "shift", "shine", "ship", "shock", "shoe", "shoot", "shop", "shoulder", "show", "shower", "shut", "side", "sign", "sing", "sink", "sit", "site", "size", "skin", "skirt", "sky", "sleep", "slice", "slide", "slight", "slip", "smart", "smell", "smile", "smoke", "snow", "sock", "soil", "solve", "sort", "sound", "source", "space", "speak", "specify", "speed", "spell", "spend", "spirit", "spite", "split", "sport", "spot", "spray", "spread", "spring", "stable", "staff", "stage", "stand", "star", "start", "state", "station", "stay", "steal", "step", "stick", "stomach", "stop", "store", "storm", "strain", "stress", "stretch", "strike", "string", "strip", "stroke", "structure", "struggle", "study", "stuff", "style", "submit", "succeed", "suck", "suffer", "sugar", "suggest", "suit", "summer", "sun", "supply", "support", "suppose", "surprise", "surround", "survey", "survive", "suspect", "swim", "swing", "switch", "table", "tackle", "take", "talk", "tank", "tap", "target", "task", "taste", "tax", "teach", "team", "tear", "telephone", "tell", "tend", "term", "test", "text", "thank", "theme", "think", "throw", "ticket", "tie", "till", "tip", "title", "toe", "tone", "tool", "touch", "tour", "towel", "tower", "track", "trade", "traffic", "train", "transition", "translate", "trash", "travel", "treat", "tree", "trip", "trouble", "truck", "trust", "try", "tune", "turn", "twist", "type", "understand", "upset", "use", "vacation", "value", "vary", "view", "visit", "voice", "wait", "wake", "walk", "wall", "want", "war", "warm", "warn", "wash", "waste", "watch", "water", "wave", "wear", "weather", "web", "weekend", "weigh", "weight", "well", "wheel", "win", "wind", "window", "wing", "wise", "wish", "witness", "wonder", "word", "worry", "would", "wrap", "write", "yard", "zone" ] module.exports = (robot) -> robot.hear /\bbro\b/i, (msg) -> term = terms[Math.floor(Math.random() * terms.length)] msg.reply "bro do you even #{term}?"
true
# Description: # Listens for "bro" terms = [ "abuse", "accept", "access", "according", "account", "accuse", "achieve", "acquire", "act", "adapt", "add", "address", "adjust", "admire", "admit", "adopt", "advance", "advantage", "affect", "afford", "age", "agree", "air", "alarm", "allow", "amazing", "amount", "anger", "angle", "announce", "answer", "anticipate", "apologize", "appeal", "appear", "apply", "appreciate", "approach", "appropriate", "approve", "argue", "arise", "arm", "arrive", "ask", "assist", "associate", "assume", "assure", "attach", "attack", "attempt", "attend", "attract", "author", "average", "avoid", "award", "baby", "bag", "bake", "balance", "ball", "band", "bank", "bar", "base", "bat", "battle", "be", "beach", "bear", "beat", "become", "bed", "begin", "behave", "being", "believe", "bell", "belong", "belt", "bench", "bend", "benefit", "bet", "bicycle", "bid", "bike", "bill", "birth", "bit", "bite", "black", "blame", "blank", "blind", "block", "blow", "blue", "board", "boat", "body", "bone", "book", "boot", "border", "borrow", "boss", "bother", "bottle", "bottom", "bowl", "box", "brain", "branch", "break", "breakfast", "breast", "brick", "bridge", "bring", "brush", "buddy", "bug", "build", "building", "bunch", "burn", "bus", "busy", "button", "buy", "cable", "cake", "calculate", "calendar", "call", "camp", "campaign", "cancel", "candle", "candy", "cap", "card", "care", "career", "carpet", "carry", "case", "cash", "cat", "catch", "cause", "celebrate", "chain", "chair", "challenge", "champion", "change", "channel", "charge", "chart", "check", "chip", "choose", "claim", "class", "clerk", "click", "clock", "closet", "cloud", "club", "clue", "coach", "coast", "coat", "code", "collar", "collect", "combine", "come", "comfort", "command", "comment", "commission", "commit", "communicate", "company", "compare", "compete", "complain", "complete", "concentrate", "concern", "concert", "condition", "conference", "confirm", "conflict", "connect", "consider", "consist", "consult", "contact", "contain", "content", "contest", "continue", "contribute", "convert", "convince", "cook", "copy", "correct", "cost", "count", "counter", "couple", "course", "court", "cover", "cow", "crack", "craft", "crash", "cream", "create", "credit", "crew", "criticize", "cross", "cry", "culture", "cup", "curve", "cut", "cycle", "damage", "dance", "dare", "date", "deal", "debate", "decide", "delay", "deliver", "demand", "depend", "deposit", "describe", "deserve", "design", "desire", "destroy", "detail", "determine", "develop", "devil", "die", "diet", "differ", "dig", "dimension", "dirty", "disagree", "discipline", "discount", "discover", "discuss", "dish", "display", "distance", "distribute", "district", "divide", "doctor", "document", "does", "dog", "dot", "doubt", "draft", "drag", "draw", "dream", "drink", "drive", "drop", "dry", "dump", "dust", "earn", "earth", "ease", "eat", "edge", "effect", "egg", "emphasize", "employ", "empty", "enable", "encourage", "encouraging", "end", "engage", "engineer", "enhance", "enjoy", "ensure", "enter", "entrance", "escape", "essay", "establish", "estimate", "even", "evidence", "exact", "examine", "example", "exchange", "excuse", "exercise", "exist", "exit", "expand", "expect", "experience", "explain", "explore", "expose", "express", "extend", "eye", "face", "factor", "fail", "fall", "fan", "farm", "father", "fault", "fear", "feature", "fee", "feed", "feel", "field", "fight", "figure", "file", "fill", "film", "finance", "find", "finger", "finish", "fire", "firm", "fish", "fit", "fix", "floor", "flow", "flower", "fly", "focus", "fold", "follow", "foot", "force", "forget", "form", "frame", "frequent", "friend", "fruit", "fuel", "function", "gain", "gap", "garage", "garden", "gas", "gather", "gear", "generate", "gift", "give", "glove", "go", "golf", "grab", "grade", "grandfather", "grass", "ground", "group", "grow", "guarantee", "guard", "guess", "guide", "habit", "hand", "handle", "hang", "happen", "harm", "hate", "have", "hear", "heat", "help", "hesitate", "hide", "highlight", "hire", "hit", "hold", "hole", "hook", "hope", "horse", "host", "hunt", "hurry", "hurt", "husband", "ice", "identify", "ignore", "illustrate", "image", "imagine", "impact", "implement", "imply", "impress", "improve", "include", "incorporate", "increase", "indicate", "influence", "inform", "insist", "install", "intend", "interest", "interview", "introduce", "invest", "investigate", "invite", "involve", "iron", "island", "issue", "jacket", "job", "join", "joke", "judge", "juice", "jump", "PI:NAME:<NAME>END_PIury", "justify", "keep", "kick", "kid", "kill", "kiss", "knee", "knife", "know", "lack", "land", "landscape", "laugh", "lawyer", "lay", "layer", "lead", "league", "learn", "leave", "lecture", "leg", "lesson", "let", "letter", "lie", "lift", "light", "like", "limit", "line", "link", "list", "listen", "live", "load", "loan", "lock", "log", "look", "loose", "lose", "lost", "luck", "lunch", "machine", "mail", "maintain", "make", "man", "manage", "manufacturing", "march", "mark", "market", "marry", "match", "mate", "matter", "mean", "meet", "mention", "mess", "metal", "milk", "mind", "mirror", "miss", "mistake", "mix", "model", "monitor", "mortgage", "mouse", "mouth", "move", "muscle", "must", "nail", "name", "narrow", "neck", "need", "negotiate", "nerve", "net", "network", "noise", "nose", "note", "notice", "number", "nurse", "object", "obtain", "occasion", "occur", "offer", "officer", "oil", "open", "operate", "option", "order", "organize", "ought", "overcome", "owe", "own", "pace", "pack", "package", "page", "pain", "paint", "pair", "panic", "parent", "park", "part", "participate", "partner", "pass", "passage", "pattern", "pause", "pay", "peak", "pen", "pension", "perfect", "perform", "permit", "persuade", "phase", "phrase", "pick", "picture", "piece", "pin", "pipe", "pitch", "place", "plan", "plant", "plate", "play", "please", "pleasure", "point", "pool", "pop", "position", "possess", "post", "pot", "pound", "pour", "practice", "pray", "prefer", "prepare", "press", "pressure", "pretend", "prevent", "price", "pride", "priest", "print", "process", "produce", "profile", "profit", "program", "progress", "project", "promise", "prompt", "propose", "protect", "prove", "provide", "pull", "punch", "purchase", "purpose", "pursue", "push", "put", "qualify", "quarter", "question", "quit", "quote", "race", "radio", "rain", "raise", "range", "rate", "reach", "react", "read", "ready", "realize", "reason", "receive", "recognize", "recommend", "record", "recover", "reduce", "refer", "reference", "reflect", "refuse", "register", "regret", "relate", "relax", "release", "relieve", "rely", "remain", "remaining", "remember", "remind", "remove", "rent", "repair", "repeat", "replace", "reply", "report", "represent", "request", "require", "research", "reserve", "resist", "resolve", "resort", "respect", "respond", "rest", "result", "retain", "retire", "return", "reveal", "review", "reward", "rice", "rid", "ride", "ring", "rip", "rise", "risk", "rock", "roll", "roof", "room", "rope", "row", "rub", "ruin", "rule", "run", "rush", "sail", "salary", "sand", "sandwich", "save", "say", "scale", "schedule", "scheme", "school", "score", "scratch", "screen", "screw", "script", "search", "season", "seat", "section", "secure", "see", "seek", "seem", "select", "sell", "send", "sense", "sentence", "separate", "serve", "service", "set", "settle", "sex", "shake", "shall", "shame", "shape", "share", "sharp", "shelter", "shift", "shine", "ship", "shock", "shoe", "shoot", "shop", "shoulder", "show", "shower", "shut", "side", "sign", "sing", "sink", "sit", "site", "size", "skin", "skirt", "sky", "sleep", "slice", "slide", "slight", "slip", "smart", "smell", "smile", "smoke", "snow", "sock", "soil", "solve", "sort", "sound", "source", "space", "speak", "specify", "speed", "spell", "spend", "spirit", "spite", "split", "sport", "spot", "spray", "spread", "spring", "stable", "staff", "stage", "stand", "star", "start", "state", "station", "stay", "steal", "step", "stick", "stomach", "stop", "store", "storm", "strain", "stress", "stretch", "strike", "string", "strip", "stroke", "structure", "struggle", "study", "stuff", "style", "submit", "succeed", "suck", "suffer", "sugar", "suggest", "suit", "summer", "sun", "supply", "support", "suppose", "surprise", "surround", "survey", "survive", "suspect", "swim", "swing", "switch", "table", "tackle", "take", "talk", "tank", "tap", "target", "task", "taste", "tax", "teach", "team", "tear", "telephone", "tell", "tend", "term", "test", "text", "thank", "theme", "think", "throw", "ticket", "tie", "till", "tip", "title", "toe", "tone", "tool", "touch", "tour", "towel", "tower", "track", "trade", "traffic", "train", "transition", "translate", "trash", "travel", "treat", "tree", "trip", "trouble", "truck", "trust", "try", "tune", "turn", "twist", "type", "understand", "upset", "use", "vacation", "value", "vary", "view", "visit", "voice", "wait", "wake", "walk", "wall", "want", "war", "warm", "warn", "wash", "waste", "watch", "water", "wave", "wear", "weather", "web", "weekend", "weigh", "weight", "well", "wheel", "win", "wind", "window", "wing", "wise", "wish", "witness", "wonder", "word", "worry", "would", "wrap", "write", "yard", "zone" ] module.exports = (robot) -> robot.hear /\bbro\b/i, (msg) -> term = terms[Math.floor(Math.random() * terms.length)] msg.reply "bro do you even #{term}?"
[ { "context": "# 'degrees' module v1.0\n# by Marc Krenn, Sept. 2015 | marc.krenn@gmail.com | @marc_krenn\n", "end": 39, "score": 0.9998838305473328, "start": 29, "tag": "NAME", "value": "Marc Krenn" }, { "context": "degrees' module v1.0\n# by Marc Krenn, Sept. 2015 | marc.krenn@gmail....
module/degrees.coffee
marckrenn/framer-degrees
17
# 'degrees' module v1.0 # by Marc Krenn, Sept. 2015 | marc.krenn@gmail.com | @marc_krenn # # Add the following line to your project in Framer Studio. # degrees = require "degrees" startcord = false startX = 0 startY = 0 dx = 0 dy = 0 degr = 0.0 # Returns degrees between current and start position of a draggable layer exports.toDragStart = (layer) -> if startcord is false startX = layer.x startY = layer.y startcord = true dx = startX - layer.x dy = startY - layer.y degr = Math.atan2(dx, dy) degr *= 180 / Math.PI * -1 if degr < 0 degr = 360 + degr layer.on Events.DragEnd, -> startcord = false degr = 0.0 dx = 0 dy = 0 return degr # Returns degrees between two points (point1x, point1y, point2x, point2y) exports.twoPoints = (p1x, p1y, p2x, p2y) -> dx = p1x - p2x dy = p1y - p2y degr = Math.atan2(dx, dy) degr *= 180 / Math.PI * -1 if degr < 0 degr = 360 + degr return degr
64318
# 'degrees' module v1.0 # by <NAME>, Sept. 2015 | <EMAIL> | @marc_krenn # # Add the following line to your project in Framer Studio. # degrees = require "degrees" startcord = false startX = 0 startY = 0 dx = 0 dy = 0 degr = 0.0 # Returns degrees between current and start position of a draggable layer exports.toDragStart = (layer) -> if startcord is false startX = layer.x startY = layer.y startcord = true dx = startX - layer.x dy = startY - layer.y degr = Math.atan2(dx, dy) degr *= 180 / Math.PI * -1 if degr < 0 degr = 360 + degr layer.on Events.DragEnd, -> startcord = false degr = 0.0 dx = 0 dy = 0 return degr # Returns degrees between two points (point1x, point1y, point2x, point2y) exports.twoPoints = (p1x, p1y, p2x, p2y) -> dx = p1x - p2x dy = p1y - p2y degr = Math.atan2(dx, dy) degr *= 180 / Math.PI * -1 if degr < 0 degr = 360 + degr return degr
true
# 'degrees' module v1.0 # by PI:NAME:<NAME>END_PI, Sept. 2015 | PI:EMAIL:<EMAIL>END_PI | @marc_krenn # # Add the following line to your project in Framer Studio. # degrees = require "degrees" startcord = false startX = 0 startY = 0 dx = 0 dy = 0 degr = 0.0 # Returns degrees between current and start position of a draggable layer exports.toDragStart = (layer) -> if startcord is false startX = layer.x startY = layer.y startcord = true dx = startX - layer.x dy = startY - layer.y degr = Math.atan2(dx, dy) degr *= 180 / Math.PI * -1 if degr < 0 degr = 360 + degr layer.on Events.DragEnd, -> startcord = false degr = 0.0 dx = 0 dy = 0 return degr # Returns degrees between two points (point1x, point1y, point2x, point2y) exports.twoPoints = (p1x, p1y, p2x, p2y) -> dx = p1x - p2x dy = p1y - p2y degr = Math.atan2(dx, dy) degr *= 180 / Math.PI * -1 if degr < 0 degr = 360 + degr return degr
[ { "context": "module for shrinking URLs\n https://www.github.com/jonahoffline/node-linkshrink\n Copyright (c) 2013 Jonah Ruiz\n M", "end": 87, "score": 0.9993348717689514, "start": 75, "tag": "USERNAME", "value": "jonahoffline" }, { "context": "m/jonahoffline/node-linkshrink\n Copyri...
src/linkshrink.coffee
jonahoffline/node-linkshrink
0
### linkshrink - A node module for shrinking URLs https://www.github.com/jonahoffline/node-linkshrink Copyright (c) 2013 Jonah Ruiz MIT Licence ### request = require 'request' class LinkShrink constructor: (api_key) -> @defaults() @api_key = api_key ? process.env.GOOGLE_URL_KEY @configureApi() if @api_key defaults: -> @params ?= {} @params.headers = 'content-type': 'application/json' @params.url = "https://www.googleapis.com/urlshortener/v1/url/" shrinkUrl: (longUrl) -> @params.body = JSON.stringify('longUrl': longUrl) @call (res) -> console.log(res) configureApi: -> @params.url += "?key=#{@api_key}" call: (callback) -> request.post(@params, (err, res, body) -> callback(body) unless err ) module.exports = LinkShrink
143117
### linkshrink - A node module for shrinking URLs https://www.github.com/jonahoffline/node-linkshrink Copyright (c) 2013 <NAME> MIT Licence ### request = require 'request' class LinkShrink constructor: (api_key) -> @defaults() @api_key = api_key ? process.env.GOOGLE_URL_KEY @configureApi() if @api_key defaults: -> @params ?= {} @params.headers = 'content-type': 'application/json' @params.url = "https://www.googleapis.com/urlshortener/v1/url/" shrinkUrl: (longUrl) -> @params.body = JSON.stringify('longUrl': longUrl) @call (res) -> console.log(res) configureApi: -> @params.url += "?key=#{@api_key}" call: (callback) -> request.post(@params, (err, res, body) -> callback(body) unless err ) module.exports = LinkShrink
true
### linkshrink - A node module for shrinking URLs https://www.github.com/jonahoffline/node-linkshrink Copyright (c) 2013 PI:NAME:<NAME>END_PI MIT Licence ### request = require 'request' class LinkShrink constructor: (api_key) -> @defaults() @api_key = api_key ? process.env.GOOGLE_URL_KEY @configureApi() if @api_key defaults: -> @params ?= {} @params.headers = 'content-type': 'application/json' @params.url = "https://www.googleapis.com/urlshortener/v1/url/" shrinkUrl: (longUrl) -> @params.body = JSON.stringify('longUrl': longUrl) @call (res) -> console.log(res) configureApi: -> @params.url += "?key=#{@api_key}" call: (callback) -> request.post(@params, (err, res, body) -> callback(body) unless err ) module.exports = LinkShrink
[ { "context": " unless users.admin\n METEOR_ADMIN_PASSWORD = env.METEOR_ADMIN_PASSWORD\n METEOR_ADMIN_EMAIL = env.METEOR_ADM", "end": 212, "score": 0.9635602831840515, "start": 195, "tag": "PASSWORD", "value": "env.METEOR_ADMIN_" }, { "context": "rs.admin =\n name: '...
src/AccountsLocal.coffee
urbanetic/meteor-accounts-local
0
AccountsLocal = config: (users) -> users ?= {} env = process.env # Create an admin user from environment variables if needed. unless users.admin METEOR_ADMIN_PASSWORD = env.METEOR_ADMIN_PASSWORD METEOR_ADMIN_EMAIL = env.METEOR_ADMIN_EMAIL unless METEOR_ADMIN_PASSWORD throw new Error('Admin user details not provided in AccountsLocal.config() or with ' + 'environment variables.') users.admin = name: 'Admin' password: env.METEOR_ADMIN_PASSWORD email: env.METEOR_ADMIN_EMAIL roles: ['admin'] # Admin password and email will always update on server restart based on the environment # variables. Set METEOR_ACCOUNTS_LOCAL_UPDATE to '0' to prevent updating existing users. # This prevents needing to log in after each live reload in Meteor (due to the update # changing the user). update: if process.env.METEOR_ACCOUNTS_LOCAL_UPDATE == '0' then false else true # Create all other users in the user.json. _.each users, (userArgs, username) -> return unless users.hasOwnProperty(username) selector = {username: username} existing = Meteor.users.findOne(username: username) # Only update user if reset is set to true or the user doesn't exist. This allows changing # the user details when they are changed in user.json. return if existing && userArgs.update == false emails = userArgs.emails ? userArgs.email unless emails? then emails = [] unless Types.isArray(emails) then emails = [emails] emails = _.map emails, (email) -> if Types.isString(email) # Considered verified since this method is called from the server. {address: email, verified: true} else email userModifier = username: username emails: emails 'profile.name': userArgs.name Meteor.users.upsert selector, {$set: userModifier} user = Meteor.users.findOne(selector) # Setting password must take place through Accounts module. Accounts.setPassword(user._id, userArgs.password) # Don't show the password in logs. delete user.password Roles.setUserRoles(user._id, userArgs.roles) action = if existing then 'Created' else 'Updated' Logger.debug(action + ' user:', username)
175260
AccountsLocal = config: (users) -> users ?= {} env = process.env # Create an admin user from environment variables if needed. unless users.admin METEOR_ADMIN_PASSWORD = <PASSWORD>PASSWORD METEOR_ADMIN_EMAIL = env.METEOR_ADMIN_EMAIL unless METEOR_ADMIN_PASSWORD throw new Error('Admin user details not provided in AccountsLocal.config() or with ' + 'environment variables.') users.admin = name: 'Admin' password: <PASSWORD> email: env.METEOR_ADMIN_EMAIL roles: ['admin'] # Admin password and email will always update on server restart based on the environment # variables. Set METEOR_ACCOUNTS_LOCAL_UPDATE to '0' to prevent updating existing users. # This prevents needing to log in after each live reload in Meteor (due to the update # changing the user). update: if process.env.METEOR_ACCOUNTS_LOCAL_UPDATE == '0' then false else true # Create all other users in the user.json. _.each users, (userArgs, username) -> return unless users.hasOwnProperty(username) selector = {username: username} existing = Meteor.users.findOne(username: username) # Only update user if reset is set to true or the user doesn't exist. This allows changing # the user details when they are changed in user.json. return if existing && userArgs.update == false emails = userArgs.emails ? userArgs.email unless emails? then emails = [] unless Types.isArray(emails) then emails = [emails] emails = _.map emails, (email) -> if Types.isString(email) # Considered verified since this method is called from the server. {address: email, verified: true} else email userModifier = username: username emails: emails 'profile.name': userArgs.name Meteor.users.upsert selector, {$set: userModifier} user = Meteor.users.findOne(selector) # Setting password must take place through Accounts module. Accounts.setPassword(user._id, userArgs.password) # Don't show the password in logs. delete user.password Roles.setUserRoles(user._id, userArgs.roles) action = if existing then 'Created' else 'Updated' Logger.debug(action + ' user:', username)
true
AccountsLocal = config: (users) -> users ?= {} env = process.env # Create an admin user from environment variables if needed. unless users.admin METEOR_ADMIN_PASSWORD = PI:PASSWORD:<PASSWORD>END_PIPASSWORD METEOR_ADMIN_EMAIL = env.METEOR_ADMIN_EMAIL unless METEOR_ADMIN_PASSWORD throw new Error('Admin user details not provided in AccountsLocal.config() or with ' + 'environment variables.') users.admin = name: 'Admin' password: PI:PASSWORD:<PASSWORD>END_PI email: env.METEOR_ADMIN_EMAIL roles: ['admin'] # Admin password and email will always update on server restart based on the environment # variables. Set METEOR_ACCOUNTS_LOCAL_UPDATE to '0' to prevent updating existing users. # This prevents needing to log in after each live reload in Meteor (due to the update # changing the user). update: if process.env.METEOR_ACCOUNTS_LOCAL_UPDATE == '0' then false else true # Create all other users in the user.json. _.each users, (userArgs, username) -> return unless users.hasOwnProperty(username) selector = {username: username} existing = Meteor.users.findOne(username: username) # Only update user if reset is set to true or the user doesn't exist. This allows changing # the user details when they are changed in user.json. return if existing && userArgs.update == false emails = userArgs.emails ? userArgs.email unless emails? then emails = [] unless Types.isArray(emails) then emails = [emails] emails = _.map emails, (email) -> if Types.isString(email) # Considered verified since this method is called from the server. {address: email, verified: true} else email userModifier = username: username emails: emails 'profile.name': userArgs.name Meteor.users.upsert selector, {$set: userModifier} user = Meteor.users.findOne(selector) # Setting password must take place through Accounts module. Accounts.setPassword(user._id, userArgs.password) # Don't show the password in logs. delete user.password Roles.setUserRoles(user._id, userArgs.roles) action = if existing then 'Created' else 'Updated' Logger.debug(action + ' user:', username)
[ { "context": "rView} = require 'atom'\n\ngiphy_public_beta_key = \"dc6zaTOxFJmzC\"\n\n# See http://coffeescriptcookbook.com/chapters/", "end": 78, "score": 0.9994198083877563, "start": 65, "tag": "KEY", "value": "dc6zaTOxFJmzC" } ]
lib/giphy-view.coffee
rgbkrk/atom-giphy
2
{$, View, EditorView} = require 'atom' giphy_public_beta_key = "dc6zaTOxFJmzC" # See http://coffeescriptcookbook.com/chapters/arrays/shuffling-array-elements # shuffle = (a) -> i = a.length while --i > 0 j = ~~(Math.random() * (i + 1)) # ~~ is a common optimization for Math.floor t = a[j] a[j] = a[i] a[i] = t a module.exports = class GiphyView extends View @content: -> @div class: 'giphy overlay from-bottom', => @div click: "destroy", class: "block", => @h1 class: "inline-block", "GIPHY" @p class: "text-subtle inline-block", "click image to copy to clipboard" @img outlet: "image", class: "block giph", click: 'copy' @div class: "block", => @button class: 'btn btn-primary inline-block', click: 'random', 'NEW GIF PLEASE' @button class: 'btn inline-block', click: 'destroy', 'CLOSE ME' @span class: 'inline-block', => @subview 'searchTerm', new EditorView(mini: true) @button class: 'btn inline-block', click: 'search', 'SEARCH PLZ' initialize: (serializeState) -> atom.workspaceView.command "giphy:random", => @random() atom.workspaceView.command "giphy:goaway", => @destroy() # Returns an object that can be retrieved when package is activated serialize: -> copy: -> atom.clipboard.write(@image.attr('src')) # Tear down any state and detach destroy: -> @detach() random_response_callback: (data) => image_url = data["data"]["image_original_url"] @image.attr("src", image_url) random: -> giphy_key = giphy_public_beta_key xhr = $.get("http://api.giphy.com/v1/gifs/random?api_key=" + giphy_key); xhr.done(@random_response_callback) if not @hasParent() console.log("FRESHEN UP!") atom.workspaceView.append(this) else console.log("MOAR IMAGEZ") search: -> term = encodeURIComponent(@searchTerm.getEditor().getText()) $.get("http://api.giphy.com/v1/gifs/search?q=#{term}&limit=50&api_key=#{giphy_public_beta_key}").done (data) => possibilities = data["data"] console.log("#{possibilities.length} results!!!") if possibilities.length > 0 chosen = shuffle(possibilities)[0] image_url = chosen["images"]["original"]["url"] @image.attr('src', image_url) else @image.attr('src', 'http://media3.giphy.com/media/hNfSSrfLfWwgw/giphy.gif')
160963
{$, View, EditorView} = require 'atom' giphy_public_beta_key = "<KEY>" # See http://coffeescriptcookbook.com/chapters/arrays/shuffling-array-elements # shuffle = (a) -> i = a.length while --i > 0 j = ~~(Math.random() * (i + 1)) # ~~ is a common optimization for Math.floor t = a[j] a[j] = a[i] a[i] = t a module.exports = class GiphyView extends View @content: -> @div class: 'giphy overlay from-bottom', => @div click: "destroy", class: "block", => @h1 class: "inline-block", "GIPHY" @p class: "text-subtle inline-block", "click image to copy to clipboard" @img outlet: "image", class: "block giph", click: 'copy' @div class: "block", => @button class: 'btn btn-primary inline-block', click: 'random', 'NEW GIF PLEASE' @button class: 'btn inline-block', click: 'destroy', 'CLOSE ME' @span class: 'inline-block', => @subview 'searchTerm', new EditorView(mini: true) @button class: 'btn inline-block', click: 'search', 'SEARCH PLZ' initialize: (serializeState) -> atom.workspaceView.command "giphy:random", => @random() atom.workspaceView.command "giphy:goaway", => @destroy() # Returns an object that can be retrieved when package is activated serialize: -> copy: -> atom.clipboard.write(@image.attr('src')) # Tear down any state and detach destroy: -> @detach() random_response_callback: (data) => image_url = data["data"]["image_original_url"] @image.attr("src", image_url) random: -> giphy_key = giphy_public_beta_key xhr = $.get("http://api.giphy.com/v1/gifs/random?api_key=" + giphy_key); xhr.done(@random_response_callback) if not @hasParent() console.log("FRESHEN UP!") atom.workspaceView.append(this) else console.log("MOAR IMAGEZ") search: -> term = encodeURIComponent(@searchTerm.getEditor().getText()) $.get("http://api.giphy.com/v1/gifs/search?q=#{term}&limit=50&api_key=#{giphy_public_beta_key}").done (data) => possibilities = data["data"] console.log("#{possibilities.length} results!!!") if possibilities.length > 0 chosen = shuffle(possibilities)[0] image_url = chosen["images"]["original"]["url"] @image.attr('src', image_url) else @image.attr('src', 'http://media3.giphy.com/media/hNfSSrfLfWwgw/giphy.gif')
true
{$, View, EditorView} = require 'atom' giphy_public_beta_key = "PI:KEY:<KEY>END_PI" # See http://coffeescriptcookbook.com/chapters/arrays/shuffling-array-elements # shuffle = (a) -> i = a.length while --i > 0 j = ~~(Math.random() * (i + 1)) # ~~ is a common optimization for Math.floor t = a[j] a[j] = a[i] a[i] = t a module.exports = class GiphyView extends View @content: -> @div class: 'giphy overlay from-bottom', => @div click: "destroy", class: "block", => @h1 class: "inline-block", "GIPHY" @p class: "text-subtle inline-block", "click image to copy to clipboard" @img outlet: "image", class: "block giph", click: 'copy' @div class: "block", => @button class: 'btn btn-primary inline-block', click: 'random', 'NEW GIF PLEASE' @button class: 'btn inline-block', click: 'destroy', 'CLOSE ME' @span class: 'inline-block', => @subview 'searchTerm', new EditorView(mini: true) @button class: 'btn inline-block', click: 'search', 'SEARCH PLZ' initialize: (serializeState) -> atom.workspaceView.command "giphy:random", => @random() atom.workspaceView.command "giphy:goaway", => @destroy() # Returns an object that can be retrieved when package is activated serialize: -> copy: -> atom.clipboard.write(@image.attr('src')) # Tear down any state and detach destroy: -> @detach() random_response_callback: (data) => image_url = data["data"]["image_original_url"] @image.attr("src", image_url) random: -> giphy_key = giphy_public_beta_key xhr = $.get("http://api.giphy.com/v1/gifs/random?api_key=" + giphy_key); xhr.done(@random_response_callback) if not @hasParent() console.log("FRESHEN UP!") atom.workspaceView.append(this) else console.log("MOAR IMAGEZ") search: -> term = encodeURIComponent(@searchTerm.getEditor().getText()) $.get("http://api.giphy.com/v1/gifs/search?q=#{term}&limit=50&api_key=#{giphy_public_beta_key}").done (data) => possibilities = data["data"] console.log("#{possibilities.length} results!!!") if possibilities.length > 0 chosen = shuffle(possibilities)[0] image_url = chosen["images"]["original"]["url"] @image.attr('src', image_url) else @image.attr('src', 'http://media3.giphy.com/media/hNfSSrfLfWwgw/giphy.gif')
[ { "context": " new Auction fabricate('sale',\n name: 'An Auction'\n start_at: moment().add(2, 'day", "end": 2636, "score": 0.6886143088340759, "start": 2632, "tag": "NAME", "value": "An A" } ]
src/mobile/apps/auction/test/template.coffee
streamich/force
0
_ = require 'underscore' benv = require 'benv' moment = require 'moment' { resolve } = require 'path' { fabricate } = require 'antigravity' Auction = require '../../../models/auction' CurrentUser = require '../../../models/current_user' Artworks = require '../../../collections/artworks' SaleArtworks = require '../../../collections/sale_artworks' State = require '../../../components/auction_artwork_list/state' describe 'auction templates', -> before -> @baseData = _: require 'underscore' sd: {} artworks: @artworks = new Artworks _.times 3, -> fabricate 'artwork' saleArtworks: @saleArtworks = new SaleArtworks _.times 3, -> fabricate 'sale_artwork' user: @user = new CurrentUser state: @state = new State navItems: [ { name: 'Lots', hasItems: true } { name: 'Sale Info', hasItems: true } ] describe 'default auction - open', -> before (done) -> benv.setup => benv.expose $: benv.require 'jquery' data = _.extend {}, @baseData, auction: @auction = new Auction fabricate 'sale', name: 'An Auction' start_at: moment().subtract(2, 'days').format() end_at: moment().add(2, 'days').format() benv.render resolve(__dirname, '../templates/index.jade'), data, => done() after -> benv.teardown() describe 'index', -> it 'renders correctly', -> $('.auction-title').text().should.equal 'An Auction' $('.auction-artwork-list-item').should.have.lengthOf 3 describe 'default auction - preview', -> before (done) -> benv.setup => benv.expose $: benv.require 'jquery' data = _.extend {}, @baseData, auction: @auction = new Auction fabricate('sale', name: 'An Auction' start_at: moment().add(2, 'days').format() end_at: moment().add(4, 'days').format() auction_state: 'preview' ) benv.render resolve(__dirname, '../templates/index.jade'), data, => done() after -> benv.teardown() describe 'index', -> it 'renders correctly', -> $('.auction-title').text().should.equal 'An Auction' $('.auction-preview-registration').should.have.lengthOf 1 $('.auction-artwork-list-item').should.have.lengthOf 0 describe 'default auction - preview without user', -> before (done) -> benv.setup => benv.expose $: benv.require 'jquery' data = _.extend {}, @baseData, user: null, auction: @auction = new Auction fabricate('sale', name: 'An Auction' start_at: moment().add(2, 'days').format() end_at: moment().add(4, 'days').format() auction_state: 'preview' ) benv.render resolve(__dirname, '../templates/index.jade'), data, => done() after -> benv.teardown() describe 'without user', -> it 'renders the register to bid button', -> $('.auction-title').text().should.equal 'An Auction' $('.auction-preview-registration').should.have.lengthOf 1 $('.auction-preview-sidebar-label').should.have.lengthOf 0 describe 'auction promo', -> before (done) -> benv.setup => benv.expose $: benv.require 'jquery' data = _.extend {}, @baseData, auction: @auction = new Auction fabricate 'sale', name: 'An Auction Promo', sale_type: 'auction promo' benv.render resolve(__dirname, '../templates/index.jade'), data, => done() after -> benv.teardown() describe 'index', -> it 'renders correctly', -> $('.auction-title').text().should.equal 'An Auction Promo' $('.auction-artwork-list-item').should.have.lengthOf 3 $('body').html().should.containEql 'This is a sale preview. Bidding for this auction does not take place on Artsy.'
12506
_ = require 'underscore' benv = require 'benv' moment = require 'moment' { resolve } = require 'path' { fabricate } = require 'antigravity' Auction = require '../../../models/auction' CurrentUser = require '../../../models/current_user' Artworks = require '../../../collections/artworks' SaleArtworks = require '../../../collections/sale_artworks' State = require '../../../components/auction_artwork_list/state' describe 'auction templates', -> before -> @baseData = _: require 'underscore' sd: {} artworks: @artworks = new Artworks _.times 3, -> fabricate 'artwork' saleArtworks: @saleArtworks = new SaleArtworks _.times 3, -> fabricate 'sale_artwork' user: @user = new CurrentUser state: @state = new State navItems: [ { name: 'Lots', hasItems: true } { name: 'Sale Info', hasItems: true } ] describe 'default auction - open', -> before (done) -> benv.setup => benv.expose $: benv.require 'jquery' data = _.extend {}, @baseData, auction: @auction = new Auction fabricate 'sale', name: 'An Auction' start_at: moment().subtract(2, 'days').format() end_at: moment().add(2, 'days').format() benv.render resolve(__dirname, '../templates/index.jade'), data, => done() after -> benv.teardown() describe 'index', -> it 'renders correctly', -> $('.auction-title').text().should.equal 'An Auction' $('.auction-artwork-list-item').should.have.lengthOf 3 describe 'default auction - preview', -> before (done) -> benv.setup => benv.expose $: benv.require 'jquery' data = _.extend {}, @baseData, auction: @auction = new Auction fabricate('sale', name: 'An Auction' start_at: moment().add(2, 'days').format() end_at: moment().add(4, 'days').format() auction_state: 'preview' ) benv.render resolve(__dirname, '../templates/index.jade'), data, => done() after -> benv.teardown() describe 'index', -> it 'renders correctly', -> $('.auction-title').text().should.equal 'An Auction' $('.auction-preview-registration').should.have.lengthOf 1 $('.auction-artwork-list-item').should.have.lengthOf 0 describe 'default auction - preview without user', -> before (done) -> benv.setup => benv.expose $: benv.require 'jquery' data = _.extend {}, @baseData, user: null, auction: @auction = new Auction fabricate('sale', name: '<NAME>uction' start_at: moment().add(2, 'days').format() end_at: moment().add(4, 'days').format() auction_state: 'preview' ) benv.render resolve(__dirname, '../templates/index.jade'), data, => done() after -> benv.teardown() describe 'without user', -> it 'renders the register to bid button', -> $('.auction-title').text().should.equal 'An Auction' $('.auction-preview-registration').should.have.lengthOf 1 $('.auction-preview-sidebar-label').should.have.lengthOf 0 describe 'auction promo', -> before (done) -> benv.setup => benv.expose $: benv.require 'jquery' data = _.extend {}, @baseData, auction: @auction = new Auction fabricate 'sale', name: 'An Auction Promo', sale_type: 'auction promo' benv.render resolve(__dirname, '../templates/index.jade'), data, => done() after -> benv.teardown() describe 'index', -> it 'renders correctly', -> $('.auction-title').text().should.equal 'An Auction Promo' $('.auction-artwork-list-item').should.have.lengthOf 3 $('body').html().should.containEql 'This is a sale preview. Bidding for this auction does not take place on Artsy.'
true
_ = require 'underscore' benv = require 'benv' moment = require 'moment' { resolve } = require 'path' { fabricate } = require 'antigravity' Auction = require '../../../models/auction' CurrentUser = require '../../../models/current_user' Artworks = require '../../../collections/artworks' SaleArtworks = require '../../../collections/sale_artworks' State = require '../../../components/auction_artwork_list/state' describe 'auction templates', -> before -> @baseData = _: require 'underscore' sd: {} artworks: @artworks = new Artworks _.times 3, -> fabricate 'artwork' saleArtworks: @saleArtworks = new SaleArtworks _.times 3, -> fabricate 'sale_artwork' user: @user = new CurrentUser state: @state = new State navItems: [ { name: 'Lots', hasItems: true } { name: 'Sale Info', hasItems: true } ] describe 'default auction - open', -> before (done) -> benv.setup => benv.expose $: benv.require 'jquery' data = _.extend {}, @baseData, auction: @auction = new Auction fabricate 'sale', name: 'An Auction' start_at: moment().subtract(2, 'days').format() end_at: moment().add(2, 'days').format() benv.render resolve(__dirname, '../templates/index.jade'), data, => done() after -> benv.teardown() describe 'index', -> it 'renders correctly', -> $('.auction-title').text().should.equal 'An Auction' $('.auction-artwork-list-item').should.have.lengthOf 3 describe 'default auction - preview', -> before (done) -> benv.setup => benv.expose $: benv.require 'jquery' data = _.extend {}, @baseData, auction: @auction = new Auction fabricate('sale', name: 'An Auction' start_at: moment().add(2, 'days').format() end_at: moment().add(4, 'days').format() auction_state: 'preview' ) benv.render resolve(__dirname, '../templates/index.jade'), data, => done() after -> benv.teardown() describe 'index', -> it 'renders correctly', -> $('.auction-title').text().should.equal 'An Auction' $('.auction-preview-registration').should.have.lengthOf 1 $('.auction-artwork-list-item').should.have.lengthOf 0 describe 'default auction - preview without user', -> before (done) -> benv.setup => benv.expose $: benv.require 'jquery' data = _.extend {}, @baseData, user: null, auction: @auction = new Auction fabricate('sale', name: 'PI:NAME:<NAME>END_PIuction' start_at: moment().add(2, 'days').format() end_at: moment().add(4, 'days').format() auction_state: 'preview' ) benv.render resolve(__dirname, '../templates/index.jade'), data, => done() after -> benv.teardown() describe 'without user', -> it 'renders the register to bid button', -> $('.auction-title').text().should.equal 'An Auction' $('.auction-preview-registration').should.have.lengthOf 1 $('.auction-preview-sidebar-label').should.have.lengthOf 0 describe 'auction promo', -> before (done) -> benv.setup => benv.expose $: benv.require 'jquery' data = _.extend {}, @baseData, auction: @auction = new Auction fabricate 'sale', name: 'An Auction Promo', sale_type: 'auction promo' benv.render resolve(__dirname, '../templates/index.jade'), data, => done() after -> benv.teardown() describe 'index', -> it 'renders correctly', -> $('.auction-title').text().should.equal 'An Auction Promo' $('.auction-artwork-list-item').should.have.lengthOf 3 $('body').html().should.containEql 'This is a sale preview. Bidding for this auction does not take place on Artsy.'
[ { "context": "e to flag references to undeclared types\n# @author Julian Rosse\n###\n\n{getAddImportFix: getFix} = require '../util", "end": 87, "score": 0.9998661279678345, "start": 75, "tag": "NAME", "value": "Julian Rosse" } ]
src/rules/no-undef-types.coffee
helixbass/eslint-plugin-known-imports
4
###* # @fileoverview Rule to flag references to undeclared types # @author Julian Rosse ### {getAddImportFix: getFix} = require '../utils' # ------------------------------------------------------------------------------ # Helpers # ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------ # Rule Definition # ------------------------------------------------------------------------------ BUILTIN_UTILITY_TYPES = [ 'Partial' 'Readonly' 'Record' 'Pick' 'Omit' 'Exclude' 'Extract' 'NonNullable' 'Parameters' 'ConstructorParameters' 'ReturnType' 'InstanceType' 'Required' 'ThisParameterType' 'OmitThisParameter' 'ThisType' 'Uppercase' 'Lowercase' 'Capitalize' 'Uncapitalize' ] BUILTIN_ES5_TYPES = [ 'Symbol' 'PropertyKey' 'PropertyDescriptor' 'PropertyDescriptorMap' 'Object' 'ObjectConstructor' 'Function' 'FunctionConstructor' 'CallableFunction' 'NewableFunction' 'IArguments' 'String' 'StringConstructor' 'Boolean' 'BooleanConstructor' 'Number' 'NumberConstructor' 'TemplateStringsArray' 'ReadonlyArray' 'ImportMeta' 'Math' 'Date' 'DateConstructor' 'RegExpMatchArray' 'RegExpExecArray' 'Array' 'RegExp' 'RegExpConstructor' 'Error' 'ErrorConstructor' 'EvalError' 'EvalErrorConstructor' 'RangeError' 'RangeErrorConstructor' 'ReferenceError' 'ReferenceErrorConstructor' 'SyntaxError' 'SyntaxErrorConstructor' 'TypeError' 'TypeErrorConstructor' 'URIError' 'URIErrorConstructor' 'JSON' 'ConcatArray' 'ArrayConstructor' 'TypedPropertyDescriptor' 'ClassDecorator' 'PropertyDecorator' 'MethodDecorator' 'ParameterDecorator' 'PromiseConstructorLike' 'PromiseLike' 'Promise' 'ArrayLike' 'ArrayBuffer' 'ArrayBufferTypes' 'ArrayBufferLike' 'ArrayBufferConstructor' 'ArrayBufferView' 'DataView' 'DataViewConstructor' 'Int8Array' 'Int8ArrayConstructor' 'Uint8Array' 'Uint8ArrayConstructor' 'Uint8ClampedArray' 'Uint8ClampedArrayConstructor' 'Int16Array' 'Int16ArrayConstructor' 'Uint16Array' 'Uint16ArrayConstructor' 'Int32Array' 'Int32ArrayConstructor' 'Uint32Array' 'Uint32ArrayConstructor' 'Float32Array' 'Float32ArrayConstructor' 'Float64Array' 'Float64ArrayConstructor' ] BUILTIN_DOM_TYPES = require '../typenames/dom' BUILTIN_DOM_ITERABLE_TYPES = require '../typenames/dom-iterable' BUILTIN_SCRIPTHOST_TYPES = require '../typenames/scripthost' BUILTIN_ES2015_COLLECTION_TYPES = require '../typenames/es2015-collection' BUILTIN_ES2015_PROMISE_TYPES = ['PromiseConstructor'] BUILTIN_ES2015_GENERATOR_TYPES = require '../typenames/es2015-generator' BUILTIN_ES2015_ITERABLE_TYPES = require '../typenames/es2015-iterable' BUILTIN_ES2015_PROXY_TYPES = require '../typenames/es2015-proxy' BUILTIN_ES2015_TYPES = [ ...BUILTIN_ES5_TYPES ...BUILTIN_ES2015_COLLECTION_TYPES ...BUILTIN_ES2015_PROMISE_TYPES ...BUILTIN_ES2015_GENERATOR_TYPES ...BUILTIN_ES2015_ITERABLE_TYPES ...BUILTIN_ES2015_PROXY_TYPES ] BUILTIN_ES2016_TYPES = BUILTIN_ES2015_TYPES BUILTIN_ES2017_SHARED_MEMORY_TYPES = require '../typenames/es2017-shared-memory' BUILTIN_ES2017_TYPES = [ ...BUILTIN_ES2016_TYPES ...BUILTIN_ES2017_SHARED_MEMORY_TYPES ] BUILTIN_ES2018_ASYNC_GENERATOR_TYPES = require( '../typenames/es2018-async-generator' ) BUILTIN_ES2018_ASYNC_ITERABLE_TYPES = require( '../typenames/es2018-async-iterable' ) BUILTIN_ES2018_TYPES = [ ...BUILTIN_ES2017_TYPES ...BUILTIN_ES2018_ASYNC_GENERATOR_TYPES ...BUILTIN_ES2018_ASYNC_ITERABLE_TYPES ] BUILTIN_ES2019_TYPES = BUILTIN_ES2018_TYPES BUILTIN_ES2020_SYMBOL_WELLKNOWN_TYPES = ['SymbolConstructor'] BUILTIN_ES2020_TYPES = [ ...BUILTIN_ES2019_TYPES ...BUILTIN_ES2020_SYMBOL_WELLKNOWN_TYPES ] BUILTIN_ESNEXT_BIGINT_TYPES = require '../typenames/esnext-bigint' BUILTIN_ESNEXT_TYPES = [...BUILTIN_ES2020_TYPES, ...BUILTIN_ESNEXT_BIGINT_TYPES] ALL_BUILTIN_TYPES = [ ...BUILTIN_UTILITY_TYPES ...BUILTIN_DOM_TYPES ...BUILTIN_DOM_ITERABLE_TYPES ...BUILTIN_SCRIPTHOST_TYPES ...BUILTIN_ESNEXT_TYPES ] ALL_BUILTIN_TYPES_LOOKUP = do -> ret = {} (ret[builtinType] = yes) for builtinType in ALL_BUILTIN_TYPES ret module.exports = meta: docs: description: 'disallow the use of undeclared types unless mentioned in `/*global */` comments' # category: 'Variables' # recommended: yes # url: 'https://eslint.org/docs/rules/no-undef' schema: [] fixable: 'code' create: (context) -> allImports = [] lastNonlocalImport = {} allIdentifiersBesidesTypeReferences = {} allIdentifiersWhichAreTypeReferences = {} ImportDeclaration: (node) -> allImports.push node Identifier: (node) -> return if node.name is 'const' if node.parent?.type is 'TSTypeReference' and node is node.parent.typeName allIdentifiersWhichAreTypeReferences[node.name] = node else allIdentifiersBesidesTypeReferences[node.name] = node 'Program:exit': (### node ###) -> for identifierName, identifier of ( allIdentifiersWhichAreTypeReferences ) when ( not allIdentifiersBesidesTypeReferences[identifierName] and not ALL_BUILTIN_TYPES_LOOKUP[identifierName] ) context.report node: identifier message: "'{{name}}' is not defined." data: identifier fix: getFix { name: identifier.name context allImports lastNonlocalImport }
187205
###* # @fileoverview Rule to flag references to undeclared types # @author <NAME> ### {getAddImportFix: getFix} = require '../utils' # ------------------------------------------------------------------------------ # Helpers # ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------ # Rule Definition # ------------------------------------------------------------------------------ BUILTIN_UTILITY_TYPES = [ 'Partial' 'Readonly' 'Record' 'Pick' 'Omit' 'Exclude' 'Extract' 'NonNullable' 'Parameters' 'ConstructorParameters' 'ReturnType' 'InstanceType' 'Required' 'ThisParameterType' 'OmitThisParameter' 'ThisType' 'Uppercase' 'Lowercase' 'Capitalize' 'Uncapitalize' ] BUILTIN_ES5_TYPES = [ 'Symbol' 'PropertyKey' 'PropertyDescriptor' 'PropertyDescriptorMap' 'Object' 'ObjectConstructor' 'Function' 'FunctionConstructor' 'CallableFunction' 'NewableFunction' 'IArguments' 'String' 'StringConstructor' 'Boolean' 'BooleanConstructor' 'Number' 'NumberConstructor' 'TemplateStringsArray' 'ReadonlyArray' 'ImportMeta' 'Math' 'Date' 'DateConstructor' 'RegExpMatchArray' 'RegExpExecArray' 'Array' 'RegExp' 'RegExpConstructor' 'Error' 'ErrorConstructor' 'EvalError' 'EvalErrorConstructor' 'RangeError' 'RangeErrorConstructor' 'ReferenceError' 'ReferenceErrorConstructor' 'SyntaxError' 'SyntaxErrorConstructor' 'TypeError' 'TypeErrorConstructor' 'URIError' 'URIErrorConstructor' 'JSON' 'ConcatArray' 'ArrayConstructor' 'TypedPropertyDescriptor' 'ClassDecorator' 'PropertyDecorator' 'MethodDecorator' 'ParameterDecorator' 'PromiseConstructorLike' 'PromiseLike' 'Promise' 'ArrayLike' 'ArrayBuffer' 'ArrayBufferTypes' 'ArrayBufferLike' 'ArrayBufferConstructor' 'ArrayBufferView' 'DataView' 'DataViewConstructor' 'Int8Array' 'Int8ArrayConstructor' 'Uint8Array' 'Uint8ArrayConstructor' 'Uint8ClampedArray' 'Uint8ClampedArrayConstructor' 'Int16Array' 'Int16ArrayConstructor' 'Uint16Array' 'Uint16ArrayConstructor' 'Int32Array' 'Int32ArrayConstructor' 'Uint32Array' 'Uint32ArrayConstructor' 'Float32Array' 'Float32ArrayConstructor' 'Float64Array' 'Float64ArrayConstructor' ] BUILTIN_DOM_TYPES = require '../typenames/dom' BUILTIN_DOM_ITERABLE_TYPES = require '../typenames/dom-iterable' BUILTIN_SCRIPTHOST_TYPES = require '../typenames/scripthost' BUILTIN_ES2015_COLLECTION_TYPES = require '../typenames/es2015-collection' BUILTIN_ES2015_PROMISE_TYPES = ['PromiseConstructor'] BUILTIN_ES2015_GENERATOR_TYPES = require '../typenames/es2015-generator' BUILTIN_ES2015_ITERABLE_TYPES = require '../typenames/es2015-iterable' BUILTIN_ES2015_PROXY_TYPES = require '../typenames/es2015-proxy' BUILTIN_ES2015_TYPES = [ ...BUILTIN_ES5_TYPES ...BUILTIN_ES2015_COLLECTION_TYPES ...BUILTIN_ES2015_PROMISE_TYPES ...BUILTIN_ES2015_GENERATOR_TYPES ...BUILTIN_ES2015_ITERABLE_TYPES ...BUILTIN_ES2015_PROXY_TYPES ] BUILTIN_ES2016_TYPES = BUILTIN_ES2015_TYPES BUILTIN_ES2017_SHARED_MEMORY_TYPES = require '../typenames/es2017-shared-memory' BUILTIN_ES2017_TYPES = [ ...BUILTIN_ES2016_TYPES ...BUILTIN_ES2017_SHARED_MEMORY_TYPES ] BUILTIN_ES2018_ASYNC_GENERATOR_TYPES = require( '../typenames/es2018-async-generator' ) BUILTIN_ES2018_ASYNC_ITERABLE_TYPES = require( '../typenames/es2018-async-iterable' ) BUILTIN_ES2018_TYPES = [ ...BUILTIN_ES2017_TYPES ...BUILTIN_ES2018_ASYNC_GENERATOR_TYPES ...BUILTIN_ES2018_ASYNC_ITERABLE_TYPES ] BUILTIN_ES2019_TYPES = BUILTIN_ES2018_TYPES BUILTIN_ES2020_SYMBOL_WELLKNOWN_TYPES = ['SymbolConstructor'] BUILTIN_ES2020_TYPES = [ ...BUILTIN_ES2019_TYPES ...BUILTIN_ES2020_SYMBOL_WELLKNOWN_TYPES ] BUILTIN_ESNEXT_BIGINT_TYPES = require '../typenames/esnext-bigint' BUILTIN_ESNEXT_TYPES = [...BUILTIN_ES2020_TYPES, ...BUILTIN_ESNEXT_BIGINT_TYPES] ALL_BUILTIN_TYPES = [ ...BUILTIN_UTILITY_TYPES ...BUILTIN_DOM_TYPES ...BUILTIN_DOM_ITERABLE_TYPES ...BUILTIN_SCRIPTHOST_TYPES ...BUILTIN_ESNEXT_TYPES ] ALL_BUILTIN_TYPES_LOOKUP = do -> ret = {} (ret[builtinType] = yes) for builtinType in ALL_BUILTIN_TYPES ret module.exports = meta: docs: description: 'disallow the use of undeclared types unless mentioned in `/*global */` comments' # category: 'Variables' # recommended: yes # url: 'https://eslint.org/docs/rules/no-undef' schema: [] fixable: 'code' create: (context) -> allImports = [] lastNonlocalImport = {} allIdentifiersBesidesTypeReferences = {} allIdentifiersWhichAreTypeReferences = {} ImportDeclaration: (node) -> allImports.push node Identifier: (node) -> return if node.name is 'const' if node.parent?.type is 'TSTypeReference' and node is node.parent.typeName allIdentifiersWhichAreTypeReferences[node.name] = node else allIdentifiersBesidesTypeReferences[node.name] = node 'Program:exit': (### node ###) -> for identifierName, identifier of ( allIdentifiersWhichAreTypeReferences ) when ( not allIdentifiersBesidesTypeReferences[identifierName] and not ALL_BUILTIN_TYPES_LOOKUP[identifierName] ) context.report node: identifier message: "'{{name}}' is not defined." data: identifier fix: getFix { name: identifier.name context allImports lastNonlocalImport }
true
###* # @fileoverview Rule to flag references to undeclared types # @author PI:NAME:<NAME>END_PI ### {getAddImportFix: getFix} = require '../utils' # ------------------------------------------------------------------------------ # Helpers # ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------ # Rule Definition # ------------------------------------------------------------------------------ BUILTIN_UTILITY_TYPES = [ 'Partial' 'Readonly' 'Record' 'Pick' 'Omit' 'Exclude' 'Extract' 'NonNullable' 'Parameters' 'ConstructorParameters' 'ReturnType' 'InstanceType' 'Required' 'ThisParameterType' 'OmitThisParameter' 'ThisType' 'Uppercase' 'Lowercase' 'Capitalize' 'Uncapitalize' ] BUILTIN_ES5_TYPES = [ 'Symbol' 'PropertyKey' 'PropertyDescriptor' 'PropertyDescriptorMap' 'Object' 'ObjectConstructor' 'Function' 'FunctionConstructor' 'CallableFunction' 'NewableFunction' 'IArguments' 'String' 'StringConstructor' 'Boolean' 'BooleanConstructor' 'Number' 'NumberConstructor' 'TemplateStringsArray' 'ReadonlyArray' 'ImportMeta' 'Math' 'Date' 'DateConstructor' 'RegExpMatchArray' 'RegExpExecArray' 'Array' 'RegExp' 'RegExpConstructor' 'Error' 'ErrorConstructor' 'EvalError' 'EvalErrorConstructor' 'RangeError' 'RangeErrorConstructor' 'ReferenceError' 'ReferenceErrorConstructor' 'SyntaxError' 'SyntaxErrorConstructor' 'TypeError' 'TypeErrorConstructor' 'URIError' 'URIErrorConstructor' 'JSON' 'ConcatArray' 'ArrayConstructor' 'TypedPropertyDescriptor' 'ClassDecorator' 'PropertyDecorator' 'MethodDecorator' 'ParameterDecorator' 'PromiseConstructorLike' 'PromiseLike' 'Promise' 'ArrayLike' 'ArrayBuffer' 'ArrayBufferTypes' 'ArrayBufferLike' 'ArrayBufferConstructor' 'ArrayBufferView' 'DataView' 'DataViewConstructor' 'Int8Array' 'Int8ArrayConstructor' 'Uint8Array' 'Uint8ArrayConstructor' 'Uint8ClampedArray' 'Uint8ClampedArrayConstructor' 'Int16Array' 'Int16ArrayConstructor' 'Uint16Array' 'Uint16ArrayConstructor' 'Int32Array' 'Int32ArrayConstructor' 'Uint32Array' 'Uint32ArrayConstructor' 'Float32Array' 'Float32ArrayConstructor' 'Float64Array' 'Float64ArrayConstructor' ] BUILTIN_DOM_TYPES = require '../typenames/dom' BUILTIN_DOM_ITERABLE_TYPES = require '../typenames/dom-iterable' BUILTIN_SCRIPTHOST_TYPES = require '../typenames/scripthost' BUILTIN_ES2015_COLLECTION_TYPES = require '../typenames/es2015-collection' BUILTIN_ES2015_PROMISE_TYPES = ['PromiseConstructor'] BUILTIN_ES2015_GENERATOR_TYPES = require '../typenames/es2015-generator' BUILTIN_ES2015_ITERABLE_TYPES = require '../typenames/es2015-iterable' BUILTIN_ES2015_PROXY_TYPES = require '../typenames/es2015-proxy' BUILTIN_ES2015_TYPES = [ ...BUILTIN_ES5_TYPES ...BUILTIN_ES2015_COLLECTION_TYPES ...BUILTIN_ES2015_PROMISE_TYPES ...BUILTIN_ES2015_GENERATOR_TYPES ...BUILTIN_ES2015_ITERABLE_TYPES ...BUILTIN_ES2015_PROXY_TYPES ] BUILTIN_ES2016_TYPES = BUILTIN_ES2015_TYPES BUILTIN_ES2017_SHARED_MEMORY_TYPES = require '../typenames/es2017-shared-memory' BUILTIN_ES2017_TYPES = [ ...BUILTIN_ES2016_TYPES ...BUILTIN_ES2017_SHARED_MEMORY_TYPES ] BUILTIN_ES2018_ASYNC_GENERATOR_TYPES = require( '../typenames/es2018-async-generator' ) BUILTIN_ES2018_ASYNC_ITERABLE_TYPES = require( '../typenames/es2018-async-iterable' ) BUILTIN_ES2018_TYPES = [ ...BUILTIN_ES2017_TYPES ...BUILTIN_ES2018_ASYNC_GENERATOR_TYPES ...BUILTIN_ES2018_ASYNC_ITERABLE_TYPES ] BUILTIN_ES2019_TYPES = BUILTIN_ES2018_TYPES BUILTIN_ES2020_SYMBOL_WELLKNOWN_TYPES = ['SymbolConstructor'] BUILTIN_ES2020_TYPES = [ ...BUILTIN_ES2019_TYPES ...BUILTIN_ES2020_SYMBOL_WELLKNOWN_TYPES ] BUILTIN_ESNEXT_BIGINT_TYPES = require '../typenames/esnext-bigint' BUILTIN_ESNEXT_TYPES = [...BUILTIN_ES2020_TYPES, ...BUILTIN_ESNEXT_BIGINT_TYPES] ALL_BUILTIN_TYPES = [ ...BUILTIN_UTILITY_TYPES ...BUILTIN_DOM_TYPES ...BUILTIN_DOM_ITERABLE_TYPES ...BUILTIN_SCRIPTHOST_TYPES ...BUILTIN_ESNEXT_TYPES ] ALL_BUILTIN_TYPES_LOOKUP = do -> ret = {} (ret[builtinType] = yes) for builtinType in ALL_BUILTIN_TYPES ret module.exports = meta: docs: description: 'disallow the use of undeclared types unless mentioned in `/*global */` comments' # category: 'Variables' # recommended: yes # url: 'https://eslint.org/docs/rules/no-undef' schema: [] fixable: 'code' create: (context) -> allImports = [] lastNonlocalImport = {} allIdentifiersBesidesTypeReferences = {} allIdentifiersWhichAreTypeReferences = {} ImportDeclaration: (node) -> allImports.push node Identifier: (node) -> return if node.name is 'const' if node.parent?.type is 'TSTypeReference' and node is node.parent.typeName allIdentifiersWhichAreTypeReferences[node.name] = node else allIdentifiersBesidesTypeReferences[node.name] = node 'Program:exit': (### node ###) -> for identifierName, identifier of ( allIdentifiersWhichAreTypeReferences ) when ( not allIdentifiersBesidesTypeReferences[identifierName] and not ALL_BUILTIN_TYPES_LOOKUP[identifierName] ) context.report node: identifier message: "'{{name}}' is not defined." data: identifier fix: getFix { name: identifier.name context allImports lastNonlocalImport }
[ { "context": " logger.warning data.stderr\n\n responseKey = \"\\nResponse:\\n\"\n responsePos = data.stdout.indexOf respon", "end": 3043, "score": 0.9956908226013184, "start": 3029, "tag": "KEY", "value": "\"\\nResponse:\\n" } ]
packages/litexa/src/command-line/api/smapi.coffee
cheruvian/litexa
34
LoggingChannel = require '../loggingChannel' { spawn } = require('child_process') ### # Utility function to call a SMAPI command via the `ask api` CLI. # @param askProfile ... required ASK profile name # @param command ... required ASK API command # @param params ... optional flags to send with the command # @param logChannel ... optional caller's LoggingChannel (derived from for SMAPI logs) ### # only need to fetch once per session version = major: null minor: null patch: null module.exports = { version: version prepare: (logger) -> module.exports.getVersion logger getVersion: (logger) -> if version.major != null return Promise.resolve version cmd = 'ask' args = [ '--version' ] @spawnPromise(cmd, args) .then (data) -> parts = data.stdout.split '.' version.major = parseInt parts[0] ? "0" version.minor = parseInt parts[1] ? "0" version.patch = parseInt parts[2] ? "0" logger.log "ask-cli version #{version.major}.#{version.minor}.#{version.patch}" return version call: (args) -> askProfile = args.askProfile command = args.command params = args.params logger = if args.logChannel then args.logChannel.derive('smapi') else new LoggingChannel({logPrefix: 'smapi'}) unless command throw new Error "SMAPI called without a command. Please provide one." if version.major == null await @getVersion logger cmd = 'ask' args = [] if version.major < 2 args.push 'api' args.push command else args.push 'smapi' args.push command unless askProfile throw new Error "SMAPI called with command '#{command}' is missing an ASK profile. Please make sure you've inserted a valid askProfile in your litexa.config file." args.push '--profile' args.push askProfile for k, v of params args.push "--#{k}" args.push "#{v}" logger.verbose "ask #{args.join ' '}" @spawnPromise(cmd, args) .then (data) -> badCommand = data.stdout.toLowerCase().indexOf("command not recognized") >= 0 badCommand = badCommand || data.stderr.toLowerCase().indexOf("command not recognized") >= 0 if badCommand throw new Error "SMAPI called with command '#{command}', which was reported as an invalid ask-cli command. Please ensure you have the latest version installed and configured correctly." logger.verbose "SMAPI #{command} stdout: #{data.stdout}" logger.verbose "SMAPI stderr: #{data.stderr}" if version.major >= 2 if data.errorCode != 0 if data.stderr throw data.stderr else throw "SMAPI command '#{command}' failed, without an error message" if data.stderr do -> # we can filter this one out, as it can be confusing in the litexa output return if data.stderr.match /This is an asynchronous operation/ logger.warning data.stderr responseKey = "\nResponse:\n" responsePos = data.stdout.indexOf responseKey if responsePos >= 0 responsePos += responseKey.length response = JSON.parse( data.stdout[responsePos...] ) logger.verbose "SMAPI statusCode #{response.statusCode}" data.stdout = JSON.stringify response.body, null, 2 if version.major < 2 # errors pre V2 were fatal, assume the process failed if data.stderr if data.stderr.indexOf('ETag') >= 0 # some v1 commands returned an ETag here, don't need it but it's not an error else throw data.stderr Promise.resolve data.stdout .catch (err) -> if typeof(err) != 'string' if err.message and err.message.match /\s*Cannot resolve profile/i throw new Error "ASK profile '#{askProfile}' not found. Make sure the profile exists and was correctly configured with ask init." else return Promise.reject(err) code = undefined message = undefined name = '' # else, err was a string which means it's the SMAPI call's stderr output if version.major < 2 try lines = err.split '\n' for line in lines k = line.split(':')[0] ? '' v = (line.replace k, '')[1..].trim() k = k.trim() if k.toLowerCase().indexOf('error code') == 0 code = parseInt v else if k == '"message"' message = v.trim() catch err2 logger.error "failed to extract failure code and message from SMAPI call: #{err2}" else # starting v2, the error may be a service response JSON error, or it may be a local one prefix = "[Error]: " offset = err.indexOf prefix if offset >= 0 try err = err[offset + prefix.length ..] parsed = JSON.parse err code = parsed.statusCode message = parsed.message if parsed.response? message = JSON.stringify parsed.response, null, 2 name = parsed.name catch err2 logger.error "failed to extract failure code and message from SMAPI call: #{err2}" unless message message = "Unknown SMAPI error during command '#{command}': #{err}" Promise.reject { code, message, name } spawnPromise: (cmd, args) -> return new Promise (resolve, reject) => spawnedProcess = spawn(cmd, args, {shell:true}) stdout = null stderr = '' spawnedProcess.on('error', (err) -> if err.code == 'ENOENT' throw new Error "Unable to run 'ask'. Is the ask-cli installed and configured correctly?" else throw err ) spawnedProcess.stdout.on('data', (data) -> if stdout == null if typeof(data) == 'object' # observed a binary response here, if so accumulate bytes instead stdout = data return else stdout = '' if typeof(data) == 'object' stdout = Buffer.concat [ stdout, data ] else stdout += data ) spawnedProcess.stderr.on('data', (data) -> stderr += data ) resolver = (errorCode) -> if stdout == null stdout = '' if typeof(stdout) == 'object' stdout = stdout.toString('utf8') resolve { errorCode, stdout, stderr } spawnedProcess.on('exit', resolver) spawnedProcess.on('close', resolver) }
72557
LoggingChannel = require '../loggingChannel' { spawn } = require('child_process') ### # Utility function to call a SMAPI command via the `ask api` CLI. # @param askProfile ... required ASK profile name # @param command ... required ASK API command # @param params ... optional flags to send with the command # @param logChannel ... optional caller's LoggingChannel (derived from for SMAPI logs) ### # only need to fetch once per session version = major: null minor: null patch: null module.exports = { version: version prepare: (logger) -> module.exports.getVersion logger getVersion: (logger) -> if version.major != null return Promise.resolve version cmd = 'ask' args = [ '--version' ] @spawnPromise(cmd, args) .then (data) -> parts = data.stdout.split '.' version.major = parseInt parts[0] ? "0" version.minor = parseInt parts[1] ? "0" version.patch = parseInt parts[2] ? "0" logger.log "ask-cli version #{version.major}.#{version.minor}.#{version.patch}" return version call: (args) -> askProfile = args.askProfile command = args.command params = args.params logger = if args.logChannel then args.logChannel.derive('smapi') else new LoggingChannel({logPrefix: 'smapi'}) unless command throw new Error "SMAPI called without a command. Please provide one." if version.major == null await @getVersion logger cmd = 'ask' args = [] if version.major < 2 args.push 'api' args.push command else args.push 'smapi' args.push command unless askProfile throw new Error "SMAPI called with command '#{command}' is missing an ASK profile. Please make sure you've inserted a valid askProfile in your litexa.config file." args.push '--profile' args.push askProfile for k, v of params args.push "--#{k}" args.push "#{v}" logger.verbose "ask #{args.join ' '}" @spawnPromise(cmd, args) .then (data) -> badCommand = data.stdout.toLowerCase().indexOf("command not recognized") >= 0 badCommand = badCommand || data.stderr.toLowerCase().indexOf("command not recognized") >= 0 if badCommand throw new Error "SMAPI called with command '#{command}', which was reported as an invalid ask-cli command. Please ensure you have the latest version installed and configured correctly." logger.verbose "SMAPI #{command} stdout: #{data.stdout}" logger.verbose "SMAPI stderr: #{data.stderr}" if version.major >= 2 if data.errorCode != 0 if data.stderr throw data.stderr else throw "SMAPI command '#{command}' failed, without an error message" if data.stderr do -> # we can filter this one out, as it can be confusing in the litexa output return if data.stderr.match /This is an asynchronous operation/ logger.warning data.stderr responseKey = <KEY>" responsePos = data.stdout.indexOf responseKey if responsePos >= 0 responsePos += responseKey.length response = JSON.parse( data.stdout[responsePos...] ) logger.verbose "SMAPI statusCode #{response.statusCode}" data.stdout = JSON.stringify response.body, null, 2 if version.major < 2 # errors pre V2 were fatal, assume the process failed if data.stderr if data.stderr.indexOf('ETag') >= 0 # some v1 commands returned an ETag here, don't need it but it's not an error else throw data.stderr Promise.resolve data.stdout .catch (err) -> if typeof(err) != 'string' if err.message and err.message.match /\s*Cannot resolve profile/i throw new Error "ASK profile '#{askProfile}' not found. Make sure the profile exists and was correctly configured with ask init." else return Promise.reject(err) code = undefined message = undefined name = '' # else, err was a string which means it's the SMAPI call's stderr output if version.major < 2 try lines = err.split '\n' for line in lines k = line.split(':')[0] ? '' v = (line.replace k, '')[1..].trim() k = k.trim() if k.toLowerCase().indexOf('error code') == 0 code = parseInt v else if k == '"message"' message = v.trim() catch err2 logger.error "failed to extract failure code and message from SMAPI call: #{err2}" else # starting v2, the error may be a service response JSON error, or it may be a local one prefix = "[Error]: " offset = err.indexOf prefix if offset >= 0 try err = err[offset + prefix.length ..] parsed = JSON.parse err code = parsed.statusCode message = parsed.message if parsed.response? message = JSON.stringify parsed.response, null, 2 name = parsed.name catch err2 logger.error "failed to extract failure code and message from SMAPI call: #{err2}" unless message message = "Unknown SMAPI error during command '#{command}': #{err}" Promise.reject { code, message, name } spawnPromise: (cmd, args) -> return new Promise (resolve, reject) => spawnedProcess = spawn(cmd, args, {shell:true}) stdout = null stderr = '' spawnedProcess.on('error', (err) -> if err.code == 'ENOENT' throw new Error "Unable to run 'ask'. Is the ask-cli installed and configured correctly?" else throw err ) spawnedProcess.stdout.on('data', (data) -> if stdout == null if typeof(data) == 'object' # observed a binary response here, if so accumulate bytes instead stdout = data return else stdout = '' if typeof(data) == 'object' stdout = Buffer.concat [ stdout, data ] else stdout += data ) spawnedProcess.stderr.on('data', (data) -> stderr += data ) resolver = (errorCode) -> if stdout == null stdout = '' if typeof(stdout) == 'object' stdout = stdout.toString('utf8') resolve { errorCode, stdout, stderr } spawnedProcess.on('exit', resolver) spawnedProcess.on('close', resolver) }
true
LoggingChannel = require '../loggingChannel' { spawn } = require('child_process') ### # Utility function to call a SMAPI command via the `ask api` CLI. # @param askProfile ... required ASK profile name # @param command ... required ASK API command # @param params ... optional flags to send with the command # @param logChannel ... optional caller's LoggingChannel (derived from for SMAPI logs) ### # only need to fetch once per session version = major: null minor: null patch: null module.exports = { version: version prepare: (logger) -> module.exports.getVersion logger getVersion: (logger) -> if version.major != null return Promise.resolve version cmd = 'ask' args = [ '--version' ] @spawnPromise(cmd, args) .then (data) -> parts = data.stdout.split '.' version.major = parseInt parts[0] ? "0" version.minor = parseInt parts[1] ? "0" version.patch = parseInt parts[2] ? "0" logger.log "ask-cli version #{version.major}.#{version.minor}.#{version.patch}" return version call: (args) -> askProfile = args.askProfile command = args.command params = args.params logger = if args.logChannel then args.logChannel.derive('smapi') else new LoggingChannel({logPrefix: 'smapi'}) unless command throw new Error "SMAPI called without a command. Please provide one." if version.major == null await @getVersion logger cmd = 'ask' args = [] if version.major < 2 args.push 'api' args.push command else args.push 'smapi' args.push command unless askProfile throw new Error "SMAPI called with command '#{command}' is missing an ASK profile. Please make sure you've inserted a valid askProfile in your litexa.config file." args.push '--profile' args.push askProfile for k, v of params args.push "--#{k}" args.push "#{v}" logger.verbose "ask #{args.join ' '}" @spawnPromise(cmd, args) .then (data) -> badCommand = data.stdout.toLowerCase().indexOf("command not recognized") >= 0 badCommand = badCommand || data.stderr.toLowerCase().indexOf("command not recognized") >= 0 if badCommand throw new Error "SMAPI called with command '#{command}', which was reported as an invalid ask-cli command. Please ensure you have the latest version installed and configured correctly." logger.verbose "SMAPI #{command} stdout: #{data.stdout}" logger.verbose "SMAPI stderr: #{data.stderr}" if version.major >= 2 if data.errorCode != 0 if data.stderr throw data.stderr else throw "SMAPI command '#{command}' failed, without an error message" if data.stderr do -> # we can filter this one out, as it can be confusing in the litexa output return if data.stderr.match /This is an asynchronous operation/ logger.warning data.stderr responseKey = PI:KEY:<KEY>END_PI" responsePos = data.stdout.indexOf responseKey if responsePos >= 0 responsePos += responseKey.length response = JSON.parse( data.stdout[responsePos...] ) logger.verbose "SMAPI statusCode #{response.statusCode}" data.stdout = JSON.stringify response.body, null, 2 if version.major < 2 # errors pre V2 were fatal, assume the process failed if data.stderr if data.stderr.indexOf('ETag') >= 0 # some v1 commands returned an ETag here, don't need it but it's not an error else throw data.stderr Promise.resolve data.stdout .catch (err) -> if typeof(err) != 'string' if err.message and err.message.match /\s*Cannot resolve profile/i throw new Error "ASK profile '#{askProfile}' not found. Make sure the profile exists and was correctly configured with ask init." else return Promise.reject(err) code = undefined message = undefined name = '' # else, err was a string which means it's the SMAPI call's stderr output if version.major < 2 try lines = err.split '\n' for line in lines k = line.split(':')[0] ? '' v = (line.replace k, '')[1..].trim() k = k.trim() if k.toLowerCase().indexOf('error code') == 0 code = parseInt v else if k == '"message"' message = v.trim() catch err2 logger.error "failed to extract failure code and message from SMAPI call: #{err2}" else # starting v2, the error may be a service response JSON error, or it may be a local one prefix = "[Error]: " offset = err.indexOf prefix if offset >= 0 try err = err[offset + prefix.length ..] parsed = JSON.parse err code = parsed.statusCode message = parsed.message if parsed.response? message = JSON.stringify parsed.response, null, 2 name = parsed.name catch err2 logger.error "failed to extract failure code and message from SMAPI call: #{err2}" unless message message = "Unknown SMAPI error during command '#{command}': #{err}" Promise.reject { code, message, name } spawnPromise: (cmd, args) -> return new Promise (resolve, reject) => spawnedProcess = spawn(cmd, args, {shell:true}) stdout = null stderr = '' spawnedProcess.on('error', (err) -> if err.code == 'ENOENT' throw new Error "Unable to run 'ask'. Is the ask-cli installed and configured correctly?" else throw err ) spawnedProcess.stdout.on('data', (data) -> if stdout == null if typeof(data) == 'object' # observed a binary response here, if so accumulate bytes instead stdout = data return else stdout = '' if typeof(data) == 'object' stdout = Buffer.concat [ stdout, data ] else stdout += data ) spawnedProcess.stderr.on('data', (data) -> stderr += data ) resolver = (errorCode) -> if stdout == null stdout = '' if typeof(stdout) == 'object' stdout = stdout.toString('utf8') resolve { errorCode, stdout, stderr } spawnedProcess.on('exit', resolver) spawnedProcess.on('close', resolver) }
[ { "context": " \"data\": \"<tsRequest>\\n <user fullName=\\\"AmyK\\\"\\n email=\\\"AmyK@Amy.com\\\"\\n password=\\\"Amy", "end": 1054, "score": 0.9475100636482239, "start": 1050, "tag": "USERNAME", "value": "AmyK" }, { "context": "tsRequest>\\n <user fullName=\\\"AmyK\...
snippets/updateuser.cson
cmtoomey/TableauRESTJS
1
'.source.js': 'Update User': 'prefix': 'truu' 'body': """ //Update User // Modifies information about the specified user. If Tableau Server is configured to use local authentication, // you can update the user's name, email address, password, or site role. If Tableau Server is configured to use Active Directory for authentication, // you can change the user's display name (full name), email address, and site role. // However, if you synchronize the user with Active Directory, the display name and email address will be overwritten with the information // that's in Active Directory. function updateUser() { var settings = { "async": true, "crossDomain": true, "url": url + "sites/" + siteid + "/users/"+userID, "method": "PUT", "headers": { "x-tableau-auth": auth }, "data": "<tsRequest>\n <user fullName=\"AmyK\"\n email=\"AmyK@Amy.com\"\n password=\"AmyK\"\n siteRole=\"PublisherInteractor\" />\n</tsRequest>" } $.ajax(settings).done(function(response) { console.log(response); }); } """
183970
'.source.js': 'Update User': 'prefix': 'truu' 'body': """ //Update User // Modifies information about the specified user. If Tableau Server is configured to use local authentication, // you can update the user's name, email address, password, or site role. If Tableau Server is configured to use Active Directory for authentication, // you can change the user's display name (full name), email address, and site role. // However, if you synchronize the user with Active Directory, the display name and email address will be overwritten with the information // that's in Active Directory. function updateUser() { var settings = { "async": true, "crossDomain": true, "url": url + "sites/" + siteid + "/users/"+userID, "method": "PUT", "headers": { "x-tableau-auth": auth }, "data": "<tsRequest>\n <user fullName=\"AmyK\"\n email=\"<EMAIL>\"\n password=\"<PASSWORD>\"\n siteRole=\"PublisherInteractor\" />\n</tsRequest>" } $.ajax(settings).done(function(response) { console.log(response); }); } """
true
'.source.js': 'Update User': 'prefix': 'truu' 'body': """ //Update User // Modifies information about the specified user. If Tableau Server is configured to use local authentication, // you can update the user's name, email address, password, or site role. If Tableau Server is configured to use Active Directory for authentication, // you can change the user's display name (full name), email address, and site role. // However, if you synchronize the user with Active Directory, the display name and email address will be overwritten with the information // that's in Active Directory. function updateUser() { var settings = { "async": true, "crossDomain": true, "url": url + "sites/" + siteid + "/users/"+userID, "method": "PUT", "headers": { "x-tableau-auth": auth }, "data": "<tsRequest>\n <user fullName=\"AmyK\"\n email=\"PI:EMAIL:<EMAIL>END_PI\"\n password=\"PI:PASSWORD:<PASSWORD>END_PI\"\n siteRole=\"PublisherInteractor\" />\n</tsRequest>" } $.ajax(settings).done(function(response) { console.log(response); }); } """
[ { "context": "lloWorldDict =\n 'en': 'Hello World'\n 'se': 'Hejsan Världen'\n 'jp': 'こんにちは世界'\n 'de': 'Hallo Welt'\n '", "end": 189, "score": 0.9995070695877075, "start": 175, "tag": "NAME", "value": "Hejsan Världen" }, { "context": ": 'Hejsan Världen'\n 'jp': 'こんにち...
tests/WheatonStoreTest.coffee
lessthanthree/wheaton
1
storeClassPath = '../src/vendor/wheaton/Store' jest.dontMock storeClassPath describe 'Store', -> store = undefined helloWorldDict = 'en': 'Hello World' 'se': 'Hejsan Världen' 'jp': 'こんにちは世界' 'de': 'Hallo Welt' 'es': 'Hola mundo' 'nl': 'Hello wereld' 'ru': 'Здравствулте мир' gothamVillainsDict = 'jk': 'The Joker' 'hq': 'Harley Quinn' 'en': 'Edward Nigma' beforeEach -> Store = require storeClassPath store = new Store helloWorldDict it 'returns data store with Storage.data getter', -> expect helloWorldDict .toEqual store.data it 'replaces data store with Storage.data setter', -> store.data = gothamVillainsDict expect helloWorldDict .not.toEqual store.data it 'returns size of data store with Storage.size', -> helloWorldDictSize = Object.keys(helloWorldDict).length expect helloWorldDictSize .toEqual store.size it 'returns only keys from data store with Storage.keys', -> helloWorldDictKeys = Object.keys helloWorldDict expect helloWorldDictKeys .toEqual store.keys it 'can shuffle data store keys', -> expect store.shuffledKeys .not.toEqual store.keys it 'returns only values from data store with Storage.values', -> gothamVillainsValues = Object.keys(gothamVillainsDict).map (key) -> gothamVillainsDict[key] store.replace gothamVillainsDict expect gothamVillainsValues .toEqual store.values it 'returns a random key from data store', -> hasRandomKey = store.has store.randomKey expect hasRandomKey .toBe true it 'returns first key from data store with Storage.firstKey', -> firstKeyInHelloWorldDict = Object.keys(helloWorldDict)[0] expect firstKeyInHelloWorldDict .toBe store.firstKey it 'returns last key from data store with Storage.lastKey', -> helloWorldDictKeys = Object.keys helloWorldDict helloWorldDictSize = helloWorldDictKeys.length lastKeyInHelloWorldDict = helloWorldDictKeys[helloWorldDictSize - 1] expect lastKeyInHelloWorldDict .toBe store.lastKey it 'returns a random value from data store', -> includesRandomValue = store.includes store.random expect includesRandomValue .toBe true it 'returns key from input value', -> expect(store.keyOf 'Hello World') .toBe 'en' it 'returns first value from data store with Storage.first', -> helloWorldDictKeys = Object.keys helloWorldDict firstKeyInHelloWorldDict = helloWorldDictKeys[0] firstValueInHelloWorldDict = helloWorldDict[firstKeyInHelloWorldDict] expect firstValueInHelloWorldDict .toBe store.first it 'returns last key from data store with Storage.last', -> helloWorldDictKeys = Object.keys helloWorldDict helloWorldDictSize = helloWorldDictKeys.length lastKeyInHelloWorldDict = helloWorldDictKeys[helloWorldDictSize - 1] lastValueInHelloWorldDict = helloWorldDict[lastKeyInHelloWorldDict] expect lastValueInHelloWorldDict .toBe store.last it 'can check if a key exists', -> storeHasKey = store.has 'en' expect storeHasKey .toBe true it 'can check if several keys exists', -> storeHasKeys = store.has 'en', 'se', 'jp' expect storeHasKeys .toBe true it 'can check if a value exists', -> storeIncludesValue = store.includes 'Hello World' expect storeIncludesValue .toBe true it 'can check if several values exists', -> storeIncludesValues = store.includes 'Hello World', 'Hejsan Världen', 'こんにちは世界' expect storeIncludesValues .toBe true it 'returns data based on key', -> englishWorldGreet = store.get 'en' expect englishWorldGreet .not.toBe null it 'sets a value based on key', -> store.replace gothamVillainsDict store.set 'oc', 'Oswald Cobblepot' hasSetValue = store.has 'oc' expect hasSetValue .toBe true it 'can check if key and value pair match', -> keyValueMatches = store.is 'en', 'Hello World' expect keyValueMatches .toBe true it 'removes and returns data from store using Storage.grab', -> store.set 'swedishChef', 'Hellu Vurld' grabbedData = store.grab 'swedishChef' grabbedDataExistsInStore = store.includes grabbedData expect grabbedData .toBe 'Hellu Vurld' expect grabbedDataExistsInStore .toBe false it 'destroys store', -> emptyObject = {} destroyedStorage = do store.destroy expect emptyObject .toEqual destroyedStorage.data it 'returns a query string using Storage.parameterize', -> store.replace 'foo': 'Foo', 'bar': 'Bar' expectedQueryString = 'foo=Foo&bar=Bar' parameterizedStorage = store.parameterized expect expectedQueryString .toEqual parameterizedStorage it 'returns a serialized JSON string using Storage.serialize', -> jsonHelloWorldDict = JSON.stringify helloWorldDict serializedStorage = store.serialized expect jsonHelloWorldDict .toEqual serializedStorage
143777
storeClassPath = '../src/vendor/wheaton/Store' jest.dontMock storeClassPath describe 'Store', -> store = undefined helloWorldDict = 'en': 'Hello World' 'se': '<NAME>' 'jp': 'こんにちは世界' 'de': '<NAME>' 'es': 'Hola mundo' 'nl': 'Hello wereld' 'ru': 'Здравствулте мир' gothamVillainsDict = 'jk': 'The Joker' 'hq': '<NAME>' 'en': '<NAME>' beforeEach -> Store = require storeClassPath store = new Store helloWorldDict it 'returns data store with Storage.data getter', -> expect helloWorldDict .toEqual store.data it 'replaces data store with Storage.data setter', -> store.data = gothamVillainsDict expect helloWorldDict .not.toEqual store.data it 'returns size of data store with Storage.size', -> helloWorldDictSize = Object.keys(helloWorldDict).length expect helloWorldDictSize .toEqual store.size it 'returns only keys from data store with Storage.keys', -> helloWorldDictKeys = Object.keys helloWorldDict expect helloWorldDictKeys .toEqual store.keys it 'can shuffle data store keys', -> expect store.shuffledKeys .not.toEqual store.keys it 'returns only values from data store with Storage.values', -> gothamVillainsValues = Object.keys(gothamVillainsDict).map (key) -> gothamVillainsDict[key] store.replace gothamVillainsDict expect gothamVillainsValues .toEqual store.values it 'returns a random key from data store', -> hasRandomKey = store.has store.randomKey expect hasRandomKey .toBe true it 'returns first key from data store with Storage.firstKey', -> firstKeyInHelloWorldDict = Object.keys(helloWorldDict)[0] expect firstKeyInHelloWorldDict .toBe store.firstKey it 'returns last key from data store with Storage.lastKey', -> helloWorldDictKeys = Object.keys helloWorldDict helloWorldDictSize = helloWorldDictKeys.length lastKeyInHelloWorldDict = helloWorldDictKeys[helloWorldDictSize - 1] expect lastKeyInHelloWorldDict .toBe store.lastKey it 'returns a random value from data store', -> includesRandomValue = store.includes store.random expect includesRandomValue .toBe true it 'returns key from input value', -> expect(store.keyOf 'Hello World') .toBe 'en' it 'returns first value from data store with Storage.first', -> helloWorldDictKeys = Object.keys helloWorldDict firstKeyInHelloWorldDict = helloWorldDictKeys[0] firstValueInHelloWorldDict = helloWorldDict[firstKeyInHelloWorldDict] expect firstValueInHelloWorldDict .toBe store.first it 'returns last key from data store with Storage.last', -> helloWorldDictKeys = Object.keys helloWorldDict helloWorldDictSize = helloWorldDictKeys.length lastKeyInHelloWorldDict = helloWorldDictKeys[helloWorldDictSize - 1] lastValueInHelloWorldDict = helloWorldDict[lastKeyInHelloWorldDict] expect lastValueInHelloWorldDict .toBe store.last it 'can check if a key exists', -> storeHasKey = store.has 'en' expect storeHasKey .toBe true it 'can check if several keys exists', -> storeHasKeys = store.has 'en', 'se', 'jp' expect storeHasKeys .toBe true it 'can check if a value exists', -> storeIncludesValue = store.includes 'Hello World' expect storeIncludesValue .toBe true it 'can check if several values exists', -> storeIncludesValues = store.includes 'Hello World', '<NAME>', 'こんにちは世界' expect storeIncludesValues .toBe true it 'returns data based on key', -> englishWorldGreet = store.get 'en' expect englishWorldGreet .not.toBe null it 'sets a value based on key', -> store.replace gothamVillainsDict store.set 'oc', 'Oswald Cobblepot' hasSetValue = store.has 'oc' expect hasSetValue .toBe true it 'can check if key and value pair match', -> keyValueMatches = store.is 'en', 'Hello World' expect keyValueMatches .toBe true it 'removes and returns data from store using Storage.grab', -> store.set 'swedishChef', '<NAME>' grabbedData = store.grab 'swedishChef' grabbedDataExistsInStore = store.includes grabbedData expect grabbedData .toBe '<NAME>' expect grabbedDataExistsInStore .toBe false it 'destroys store', -> emptyObject = {} destroyedStorage = do store.destroy expect emptyObject .toEqual destroyedStorage.data it 'returns a query string using Storage.parameterize', -> store.replace 'foo': 'Foo', 'bar': 'Bar' expectedQueryString = 'foo=Foo&bar=Bar' parameterizedStorage = store.parameterized expect expectedQueryString .toEqual parameterizedStorage it 'returns a serialized JSON string using Storage.serialize', -> jsonHelloWorldDict = JSON.stringify helloWorldDict serializedStorage = store.serialized expect jsonHelloWorldDict .toEqual serializedStorage
true
storeClassPath = '../src/vendor/wheaton/Store' jest.dontMock storeClassPath describe 'Store', -> store = undefined helloWorldDict = 'en': 'Hello World' 'se': 'PI:NAME:<NAME>END_PI' 'jp': 'こんにちは世界' 'de': 'PI:NAME:<NAME>END_PI' 'es': 'Hola mundo' 'nl': 'Hello wereld' 'ru': 'Здравствулте мир' gothamVillainsDict = 'jk': 'The Joker' 'hq': 'PI:NAME:<NAME>END_PI' 'en': 'PI:NAME:<NAME>END_PI' beforeEach -> Store = require storeClassPath store = new Store helloWorldDict it 'returns data store with Storage.data getter', -> expect helloWorldDict .toEqual store.data it 'replaces data store with Storage.data setter', -> store.data = gothamVillainsDict expect helloWorldDict .not.toEqual store.data it 'returns size of data store with Storage.size', -> helloWorldDictSize = Object.keys(helloWorldDict).length expect helloWorldDictSize .toEqual store.size it 'returns only keys from data store with Storage.keys', -> helloWorldDictKeys = Object.keys helloWorldDict expect helloWorldDictKeys .toEqual store.keys it 'can shuffle data store keys', -> expect store.shuffledKeys .not.toEqual store.keys it 'returns only values from data store with Storage.values', -> gothamVillainsValues = Object.keys(gothamVillainsDict).map (key) -> gothamVillainsDict[key] store.replace gothamVillainsDict expect gothamVillainsValues .toEqual store.values it 'returns a random key from data store', -> hasRandomKey = store.has store.randomKey expect hasRandomKey .toBe true it 'returns first key from data store with Storage.firstKey', -> firstKeyInHelloWorldDict = Object.keys(helloWorldDict)[0] expect firstKeyInHelloWorldDict .toBe store.firstKey it 'returns last key from data store with Storage.lastKey', -> helloWorldDictKeys = Object.keys helloWorldDict helloWorldDictSize = helloWorldDictKeys.length lastKeyInHelloWorldDict = helloWorldDictKeys[helloWorldDictSize - 1] expect lastKeyInHelloWorldDict .toBe store.lastKey it 'returns a random value from data store', -> includesRandomValue = store.includes store.random expect includesRandomValue .toBe true it 'returns key from input value', -> expect(store.keyOf 'Hello World') .toBe 'en' it 'returns first value from data store with Storage.first', -> helloWorldDictKeys = Object.keys helloWorldDict firstKeyInHelloWorldDict = helloWorldDictKeys[0] firstValueInHelloWorldDict = helloWorldDict[firstKeyInHelloWorldDict] expect firstValueInHelloWorldDict .toBe store.first it 'returns last key from data store with Storage.last', -> helloWorldDictKeys = Object.keys helloWorldDict helloWorldDictSize = helloWorldDictKeys.length lastKeyInHelloWorldDict = helloWorldDictKeys[helloWorldDictSize - 1] lastValueInHelloWorldDict = helloWorldDict[lastKeyInHelloWorldDict] expect lastValueInHelloWorldDict .toBe store.last it 'can check if a key exists', -> storeHasKey = store.has 'en' expect storeHasKey .toBe true it 'can check if several keys exists', -> storeHasKeys = store.has 'en', 'se', 'jp' expect storeHasKeys .toBe true it 'can check if a value exists', -> storeIncludesValue = store.includes 'Hello World' expect storeIncludesValue .toBe true it 'can check if several values exists', -> storeIncludesValues = store.includes 'Hello World', 'PI:NAME:<NAME>END_PI', 'こんにちは世界' expect storeIncludesValues .toBe true it 'returns data based on key', -> englishWorldGreet = store.get 'en' expect englishWorldGreet .not.toBe null it 'sets a value based on key', -> store.replace gothamVillainsDict store.set 'oc', 'Oswald Cobblepot' hasSetValue = store.has 'oc' expect hasSetValue .toBe true it 'can check if key and value pair match', -> keyValueMatches = store.is 'en', 'Hello World' expect keyValueMatches .toBe true it 'removes and returns data from store using Storage.grab', -> store.set 'swedishChef', 'PI:NAME:<NAME>END_PI' grabbedData = store.grab 'swedishChef' grabbedDataExistsInStore = store.includes grabbedData expect grabbedData .toBe 'PI:NAME:<NAME>END_PI' expect grabbedDataExistsInStore .toBe false it 'destroys store', -> emptyObject = {} destroyedStorage = do store.destroy expect emptyObject .toEqual destroyedStorage.data it 'returns a query string using Storage.parameterize', -> store.replace 'foo': 'Foo', 'bar': 'Bar' expectedQueryString = 'foo=Foo&bar=Bar' parameterizedStorage = store.parameterized expect expectedQueryString .toEqual parameterizedStorage it 'returns a serialized JSON string using Storage.serialize', -> jsonHelloWorldDict = JSON.stringify helloWorldDict serializedStorage = store.serialized expect jsonHelloWorldDict .toEqual serializedStorage
[ { "context": "# Droplet Java mode\n#\n# Copyright (c) 2015 Anthony Bau\n# MIT License\nparser = require '../parser.coffee'", "end": 54, "score": 0.9998555183410645, "start": 43, "tag": "NAME", "value": "Anthony Bau" } ]
src/languages/java.coffee
takeratta/droplet
145
# Droplet Java mode # # Copyright (c) 2015 Anthony Bau # MIT License parser = require '../parser.coffee' antlrHelper = require '../antlr.coffee' INDENTS = ['block', 'classBody'] SKIPS = ['compilationUnit', 'variableDeclarators' 'variableDeclarator' 'classDeclaration', 'memberDeclaration', 'constructorDeclaration', 'methodDeclaration', 'formalParameters', 'formalParameterList' ] PARENS = [ 'statement' 'blockStatement' 'localVariableDeclarationStatement' 'primary' ] SOCKET_TOKENS = [ 'Identifier' 'IntegerLiteral' 'StringLiteral' ] COLORS_FORWARD = { 'statement': 'control' 'typeDeclaration': 'control' 'classBodyDeclaration': 'control' 'variableDeclarator': 'command' 'formalParameter': 'command' 'statementExpression': 'command' 'blockStatement': 'command' 'expression': 'value' } COLORS_BACKWARD = {} config = { INDENTS, SKIPS, PARENS, SOCKET_TOKENS, COLORS_FORWARD, COLORS_BACKWARD, } module.exports = parser.wrapParser antlrHelper.createANTLRParser 'Java', config
205115
# Droplet Java mode # # Copyright (c) 2015 <NAME> # MIT License parser = require '../parser.coffee' antlrHelper = require '../antlr.coffee' INDENTS = ['block', 'classBody'] SKIPS = ['compilationUnit', 'variableDeclarators' 'variableDeclarator' 'classDeclaration', 'memberDeclaration', 'constructorDeclaration', 'methodDeclaration', 'formalParameters', 'formalParameterList' ] PARENS = [ 'statement' 'blockStatement' 'localVariableDeclarationStatement' 'primary' ] SOCKET_TOKENS = [ 'Identifier' 'IntegerLiteral' 'StringLiteral' ] COLORS_FORWARD = { 'statement': 'control' 'typeDeclaration': 'control' 'classBodyDeclaration': 'control' 'variableDeclarator': 'command' 'formalParameter': 'command' 'statementExpression': 'command' 'blockStatement': 'command' 'expression': 'value' } COLORS_BACKWARD = {} config = { INDENTS, SKIPS, PARENS, SOCKET_TOKENS, COLORS_FORWARD, COLORS_BACKWARD, } module.exports = parser.wrapParser antlrHelper.createANTLRParser 'Java', config
true
# Droplet Java mode # # Copyright (c) 2015 PI:NAME:<NAME>END_PI # MIT License parser = require '../parser.coffee' antlrHelper = require '../antlr.coffee' INDENTS = ['block', 'classBody'] SKIPS = ['compilationUnit', 'variableDeclarators' 'variableDeclarator' 'classDeclaration', 'memberDeclaration', 'constructorDeclaration', 'methodDeclaration', 'formalParameters', 'formalParameterList' ] PARENS = [ 'statement' 'blockStatement' 'localVariableDeclarationStatement' 'primary' ] SOCKET_TOKENS = [ 'Identifier' 'IntegerLiteral' 'StringLiteral' ] COLORS_FORWARD = { 'statement': 'control' 'typeDeclaration': 'control' 'classBodyDeclaration': 'control' 'variableDeclarator': 'command' 'formalParameter': 'command' 'statementExpression': 'command' 'blockStatement': 'command' 'expression': 'value' } COLORS_BACKWARD = {} config = { INDENTS, SKIPS, PARENS, SOCKET_TOKENS, COLORS_FORWARD, COLORS_BACKWARD, } module.exports = parser.wrapParser antlrHelper.createANTLRParser 'Java', config
[ { "context": "->\n user = App.User.build\n username: 'A username'\n email: 'A email'\n password: 'A pa", "end": 150, "score": 0.9994528293609619, "start": 140, "tag": "USERNAME", "value": "A username" }, { "context": "name'\n email: 'A email'\n ...
test/cases/models/shared/userTest.coffee
MagicPower2/Power
0
describe 'App.User', -> user = undefined describe 'fields', -> beforeEach (done) -> user = App.User.build username: 'A username' email: 'A email' password: 'A password' createTime: 'A createTime' done() test 'username', -> assert.ok user.get('username') test 'email', -> assert.ok user.get('email') test 'password', -> assert.ok user.get('password') test 'createTime', -> assert.ok user.get('createTime') describe 'relations', ->
219629
describe 'App.User', -> user = undefined describe 'fields', -> beforeEach (done) -> user = App.User.build username: 'A username' email: 'A email' password: '<PASSWORD>' createTime: 'A createTime' done() test 'username', -> assert.ok user.get('username') test 'email', -> assert.ok user.get('email') test 'password', -> assert.ok user.get('password') test 'createTime', -> assert.ok user.get('createTime') describe 'relations', ->
true
describe 'App.User', -> user = undefined describe 'fields', -> beforeEach (done) -> user = App.User.build username: 'A username' email: 'A email' password: 'PI:PASSWORD:<PASSWORD>END_PI' createTime: 'A createTime' done() test 'username', -> assert.ok user.get('username') test 'email', -> assert.ok user.get('email') test 'password', -> assert.ok user.get('password') test 'createTime', -> assert.ok user.get('createTime') describe 'relations', ->
[ { "context": " url\n }\n }\n author {\n name\n }\n }\n publisher\n manufacturer\n ", "end": 285, "score": 0.9955283999443054, "start": 281, "tag": "NAME", "value": "name" } ]
src/desktop/apps/artwork/components/additional_info/query.coffee
kanaabe/force
1
module.exports = """ fragment additional_info on Artwork { articles(size: 2) { title href thumbnail: thumbnail_image { image: cropped(width: 150, height: 100) { width height url } } author { name } } publisher manufacturer signature provenance(format: HTML) description(format: HTML) additional_information(format: HTML) exhibition_history(format: HTML) bibliography: literature(format: HTML) } """
180096
module.exports = """ fragment additional_info on Artwork { articles(size: 2) { title href thumbnail: thumbnail_image { image: cropped(width: 150, height: 100) { width height url } } author { <NAME> } } publisher manufacturer signature provenance(format: HTML) description(format: HTML) additional_information(format: HTML) exhibition_history(format: HTML) bibliography: literature(format: HTML) } """
true
module.exports = """ fragment additional_info on Artwork { articles(size: 2) { title href thumbnail: thumbnail_image { image: cropped(width: 150, height: 100) { width height url } } author { PI:NAME:<NAME>END_PI } } publisher manufacturer signature provenance(format: HTML) description(format: HTML) additional_information(format: HTML) exhibition_history(format: HTML) bibliography: literature(format: HTML) } """
[ { "context": " cameratype \n ###\n constructor: ->\n @name = 'Panasonic WV-SW598'\n @sensorWidth = 7.93\n @sens", "end": 228, "score": 0.7689076662063599, "start": 225, "tag": "NAME", "value": "Pan" } ]
test/sampleptzcameratype.coffee
kruschid/threenorama
0
###* # Sample PTZ-CameraConfig Panasonic WV-SW598 # @memberOf threenorama.test # @namespace SamplePTZCameraType ### module.exports = class SamplePTZCameraType ###* # inits cameratype ### constructor: -> @name = 'Panasonic WV-SW598' @sensorWidth = 7.93 @sensorHeight = 4.46 @focalLengthMin = 4.3 @focalLengthMax = 387.0 @devicePanMin = 0 @devicePanMax = 1 @deviceTiltMin = -0.972 @deviceTiltMax = 0 @deviceZoomMin = 0 @deviceZoomMax = 0.083 @panMin = 0 # 0° @panMax = Math.PI*2 # 360° @tiltMin= Math.PI/2 # 90° @tiltMax = Math.PI # 180° # picture sizes cover full zoom range of 0 to 1 @pictureSizeList = [ {width: 0.7448879726520004, height:0.4784203108246571} {width: 0.0928727648872172, height:0.05233647073487066} {width: 0.04900822741466041, height: 0.02757835993714685} {width: 0.03327626897098891, height: 0.018720002529591315} {width: 0.025188470079966295, height: 0.01416857780454378} {width: 0.02026300701636162, height: 0.011397410883920944} {width: 0.01694861634996136, height: 0.009532884954293714} {width: 0.014566000147632282, height: 0.00819262319677842} {width: 0.01277067721052659, height: 0.007182766378006881} {width: 0.01136933776119369, height: 0.006394544790715413} {width: 0.010245119570089906, height: 0.005762210126614937} ]
219987
###* # Sample PTZ-CameraConfig Panasonic WV-SW598 # @memberOf threenorama.test # @namespace SamplePTZCameraType ### module.exports = class SamplePTZCameraType ###* # inits cameratype ### constructor: -> @name = '<NAME>asonic WV-SW598' @sensorWidth = 7.93 @sensorHeight = 4.46 @focalLengthMin = 4.3 @focalLengthMax = 387.0 @devicePanMin = 0 @devicePanMax = 1 @deviceTiltMin = -0.972 @deviceTiltMax = 0 @deviceZoomMin = 0 @deviceZoomMax = 0.083 @panMin = 0 # 0° @panMax = Math.PI*2 # 360° @tiltMin= Math.PI/2 # 90° @tiltMax = Math.PI # 180° # picture sizes cover full zoom range of 0 to 1 @pictureSizeList = [ {width: 0.7448879726520004, height:0.4784203108246571} {width: 0.0928727648872172, height:0.05233647073487066} {width: 0.04900822741466041, height: 0.02757835993714685} {width: 0.03327626897098891, height: 0.018720002529591315} {width: 0.025188470079966295, height: 0.01416857780454378} {width: 0.02026300701636162, height: 0.011397410883920944} {width: 0.01694861634996136, height: 0.009532884954293714} {width: 0.014566000147632282, height: 0.00819262319677842} {width: 0.01277067721052659, height: 0.007182766378006881} {width: 0.01136933776119369, height: 0.006394544790715413} {width: 0.010245119570089906, height: 0.005762210126614937} ]
true
###* # Sample PTZ-CameraConfig Panasonic WV-SW598 # @memberOf threenorama.test # @namespace SamplePTZCameraType ### module.exports = class SamplePTZCameraType ###* # inits cameratype ### constructor: -> @name = 'PI:NAME:<NAME>END_PIasonic WV-SW598' @sensorWidth = 7.93 @sensorHeight = 4.46 @focalLengthMin = 4.3 @focalLengthMax = 387.0 @devicePanMin = 0 @devicePanMax = 1 @deviceTiltMin = -0.972 @deviceTiltMax = 0 @deviceZoomMin = 0 @deviceZoomMax = 0.083 @panMin = 0 # 0° @panMax = Math.PI*2 # 360° @tiltMin= Math.PI/2 # 90° @tiltMax = Math.PI # 180° # picture sizes cover full zoom range of 0 to 1 @pictureSizeList = [ {width: 0.7448879726520004, height:0.4784203108246571} {width: 0.0928727648872172, height:0.05233647073487066} {width: 0.04900822741466041, height: 0.02757835993714685} {width: 0.03327626897098891, height: 0.018720002529591315} {width: 0.025188470079966295, height: 0.01416857780454378} {width: 0.02026300701636162, height: 0.011397410883920944} {width: 0.01694861634996136, height: 0.009532884954293714} {width: 0.014566000147632282, height: 0.00819262319677842} {width: 0.01277067721052659, height: 0.007182766378006881} {width: 0.01136933776119369, height: 0.006394544790715413} {width: 0.010245119570089906, height: 0.005762210126614937} ]
[ { "context": "###\nThe MIT License\n\nCopyright (c) 2015 Juan Cruz Viotti. https://jviotti.github.io.\n\nPermission is hereby", "end": 56, "score": 0.9998188018798828, "start": 40, "tag": "NAME", "value": "Juan Cruz Viotti" } ]
lib/temporal.coffee
jviotti/wary
1
### The MIT License Copyright (c) 2015 Juan Cruz Viotti. https://jviotti.github.io. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ### fs = require('fs-extra') Promise = require('bluebird') tmp = Promise.promisifyAll(require('tmp')) tmp.setGracefulCleanup() ###* # @summary Make temporal copy from a file # @function # @protected # # @param {String} filePath - file path # @returns {Promise<String>} temporal path # # @example # temporal.fromFile('images/rpi.img').then (temporalPath) -> # console.log("The temporal copy is in #{temporalPath}") ### exports.fromFile = (filePath) -> fs.statAsync(filePath).then (stat) -> return stat.isDirectory() .then (isDirectory) -> if isDirectory return tmp.dirAsync() return tmp.fileAsync() .spread (temporalPath) -> # Use sync version since async fails on Windows # with EPERM issues for some reason. fs.copySync(filePath, temporalPath) return temporalPath
120831
### The MIT License Copyright (c) 2015 <NAME>. https://jviotti.github.io. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ### fs = require('fs-extra') Promise = require('bluebird') tmp = Promise.promisifyAll(require('tmp')) tmp.setGracefulCleanup() ###* # @summary Make temporal copy from a file # @function # @protected # # @param {String} filePath - file path # @returns {Promise<String>} temporal path # # @example # temporal.fromFile('images/rpi.img').then (temporalPath) -> # console.log("The temporal copy is in #{temporalPath}") ### exports.fromFile = (filePath) -> fs.statAsync(filePath).then (stat) -> return stat.isDirectory() .then (isDirectory) -> if isDirectory return tmp.dirAsync() return tmp.fileAsync() .spread (temporalPath) -> # Use sync version since async fails on Windows # with EPERM issues for some reason. fs.copySync(filePath, temporalPath) return temporalPath
true
### The MIT License Copyright (c) 2015 PI:NAME:<NAME>END_PI. https://jviotti.github.io. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ### fs = require('fs-extra') Promise = require('bluebird') tmp = Promise.promisifyAll(require('tmp')) tmp.setGracefulCleanup() ###* # @summary Make temporal copy from a file # @function # @protected # # @param {String} filePath - file path # @returns {Promise<String>} temporal path # # @example # temporal.fromFile('images/rpi.img').then (temporalPath) -> # console.log("The temporal copy is in #{temporalPath}") ### exports.fromFile = (filePath) -> fs.statAsync(filePath).then (stat) -> return stat.isDirectory() .then (isDirectory) -> if isDirectory return tmp.dirAsync() return tmp.fileAsync() .spread (temporalPath) -> # Use sync version since async fails on Windows # with EPERM issues for some reason. fs.copySync(filePath, temporalPath) return temporalPath
[ { "context": "srv.uname\n s.uname = @defUname\n s.pass = @defPass\n C.C.connect s, (err,res) => @onConnect(srvId,", "end": 3380, "score": 0.9990237355232239, "start": 3372, "tag": "PASSWORD", "value": "@defPass" } ]
lib/servers.coffee
quintanar401/connect-kdb-q
8
C = require './c' class Servers constructor: -> @srvView = null; @barView = @pendingQuery = null @srvs = []; @tagLists = []; @tags = {}; @srvMap = {}; @defUname = null; @defPass = null @init(); @currSrv = -1 setConnection: -> try if !@srvView view = require './servers-view' @srvView = new view() @srvView.init this @srvView.show() catch err console.error err disconnect: -> return unless @isConnected() @srvs[@currSrv].handle.close() init: -> path = require 'path' fs = require 'fs' srvs = [] @srvFilePath = path.join atom.getConfigDirPath(), 'qservers.json' @srvFilePathUser = path.join atom.getConfigDirPath(), 'qservers_user.json' if fs.existsSync @srvFilePathUser @initSrvs fs.readFileSync @srvFilePathUser else console.log "Use #{@srvFilePathUser} file to set your servers." if fs.existsSync @srvFilePath @initSrvs fs.readFileSync @srvFilePath else console.log "Use #{@srvFilePath} file to set global servers." initSrvs: (file) -> try ctx = JSON.parse file for n,v of ctx if n is "servers" @updSrv i for i in v else if n is 'uname' @defUname ?= v else if n is 'pass' @defPass ?= v else v = v.split ' ' if typeof v is 'string' if v instanceof Array if /:list$/.test n n = n.slice 0, -5 @tagLists.push n @tags[n] = v else console.error "JSON config file has an incorrect entry " + n catch error console.error "Couldn't load the config file: " + error updSrv: (cfg) -> throw "port is not defined: " + JSON.stringify cfg unless cfg.port cfg.tags = cfg.tags.split ' ' if cfg.tags and typeof cfg.tags is 'string' cfg.host ?= 'localhost' cfg.name ?= cfg.tags.join('-') if cfg.tags cfg.name ?= cfg.host + ":" + cfg.port cfg.uname ?= "" cfg.pass ?= "" cfg.handle = null cfg.lastErr = "" cfg.inProgress = false @srvs.push cfg getEditorPath: -> return null unless editor = atom.workspace.getActiveTextEditor() return null unless editor.getGrammar().scopeName is "source.q" editor.getPath() || 'undefined' isConnected: -> return false if @currSrv is -1 or !@srvs[@currSrv].handle or @srvs[@currSrv].handle.status() isnt 'conn' true # cb from servers-view srvViewCallback: (srvId) -> return unless srvId? if typeof srvId is 'string' srv = srvId.split ':' return if srv.length < 2 @srvs.push name: srvId, host: srv[0] || 'localhost', port: Number(srv[1]), uname: srv[2] || '', pass: srv[3] || '', handle: null, lastErr: '', inProgress: false srvId = @srvs.length - 1 @srvView.addSrv srvId @pendingQuery.currSrv = srvId if @pendingQuery @srvMap[path] = srvId if path = @getEditorPath() @connectToSrv srvId connectToSrv: (srvId) -> return unless srvId? @currSrv = srvId; srv = @srvs[srvId] if srv.handle?.status() is 'conn' @barView.update() return srv.inProgress = true @barView.update() srv.handle?.clearEvents() srv.handle = null s = host: srv.host, port: srv.port, uname: srv.uname, pass: srv.pass, exclusive: false if !srv.uname s.uname = @defUname s.pass = @defPass C.C.connect s, (err,res) => @onConnect(srvId,err,res) onConnect: (srvId, err, res) -> srv = @srvs[srvId] srv.inProgress = false; srv.lastErr = null if err srv.lastErr = err else srv.handle = res srv.handle.on 'down', (err) => @onDisconnect srvId, err @srvView.updateOnline srvId, true @barView.update() q = @pendingQuery if q and q.currSrv is srvId if err and q.cnt is 0 q.cnt++ @setConnection() else if err @pendingQuery = null q.cb err else @pendingQuery = null @send q.msg, q.cb onDisconnect: (srvId, err) -> srv = @srvs[srvId] srv.lastErr = err srv.inProgress = false query = @pendingQuery @pendingQuery = null if query?.currSrv is srvId srv.handle?.clearEvents() srv.handle = null @barView.update() @srvView.updateOnline srvId, false atom.notifications.addError "Server #{srv.name} has disconnected" @send query.msg, query.cb if query?.retry and query?.currSrv is srvId setStatusBar: (statusBar) -> if !@statusBarTile view = require './bar-view' @barView = new view() @barView.init this @statusBarTile = statusBar.addLeftTile item: @barView.getElement(), priority: 100 updateStatus: () -> path = @getEditorPath() @currSrv = @srvMap[path] if path and @srvMap[path] @barView?.update() send: (msg, cb) -> try if @isConnected() srv = @srvs[@currSrv] if srv.inProgress b = atom.confirm message: 'Abort the running query?' detailedMessage: 'Do you really want to disconnect from the current server and try to run the new query?' buttons: ['No','Yes'] if srv.inProgress and b is 1 @pendingQuery = {@currSrv, msg, cb, cnt: 0, retry: true} @disconnect() return srv.inProgress = true @barView.update() srv.handle.sendSync msg, (err, res) => @pendingQuery = null if @pendingQuery?.currSrv is srv.srvId srv.inProgress = false @barView.update() res.srv = srv.name if res res = err: err, srv: srv.name if err cb err, res else # cnt = 0 means try to connect automatically, show srv view otherwise, 1 means stop @pendingQuery = {@currSrv, msg, cb, cnt: 0} if @currSrv is -1 @pendingQuery.cnt++ @setConnection() else @connectToSrv @currSrv catch err console.error err destroy: -> @srvView?.destroy() @statusBarTile?.destroy() @srvs = []; @tagLists = []; @tags = {}; @srvView = null; @srvMap = {} @statusBarTile = @pendingQuery = @defUname = @defPass = null module.exports = servers: new Servers()
82914
C = require './c' class Servers constructor: -> @srvView = null; @barView = @pendingQuery = null @srvs = []; @tagLists = []; @tags = {}; @srvMap = {}; @defUname = null; @defPass = null @init(); @currSrv = -1 setConnection: -> try if !@srvView view = require './servers-view' @srvView = new view() @srvView.init this @srvView.show() catch err console.error err disconnect: -> return unless @isConnected() @srvs[@currSrv].handle.close() init: -> path = require 'path' fs = require 'fs' srvs = [] @srvFilePath = path.join atom.getConfigDirPath(), 'qservers.json' @srvFilePathUser = path.join atom.getConfigDirPath(), 'qservers_user.json' if fs.existsSync @srvFilePathUser @initSrvs fs.readFileSync @srvFilePathUser else console.log "Use #{@srvFilePathUser} file to set your servers." if fs.existsSync @srvFilePath @initSrvs fs.readFileSync @srvFilePath else console.log "Use #{@srvFilePath} file to set global servers." initSrvs: (file) -> try ctx = JSON.parse file for n,v of ctx if n is "servers" @updSrv i for i in v else if n is 'uname' @defUname ?= v else if n is 'pass' @defPass ?= v else v = v.split ' ' if typeof v is 'string' if v instanceof Array if /:list$/.test n n = n.slice 0, -5 @tagLists.push n @tags[n] = v else console.error "JSON config file has an incorrect entry " + n catch error console.error "Couldn't load the config file: " + error updSrv: (cfg) -> throw "port is not defined: " + JSON.stringify cfg unless cfg.port cfg.tags = cfg.tags.split ' ' if cfg.tags and typeof cfg.tags is 'string' cfg.host ?= 'localhost' cfg.name ?= cfg.tags.join('-') if cfg.tags cfg.name ?= cfg.host + ":" + cfg.port cfg.uname ?= "" cfg.pass ?= "" cfg.handle = null cfg.lastErr = "" cfg.inProgress = false @srvs.push cfg getEditorPath: -> return null unless editor = atom.workspace.getActiveTextEditor() return null unless editor.getGrammar().scopeName is "source.q" editor.getPath() || 'undefined' isConnected: -> return false if @currSrv is -1 or !@srvs[@currSrv].handle or @srvs[@currSrv].handle.status() isnt 'conn' true # cb from servers-view srvViewCallback: (srvId) -> return unless srvId? if typeof srvId is 'string' srv = srvId.split ':' return if srv.length < 2 @srvs.push name: srvId, host: srv[0] || 'localhost', port: Number(srv[1]), uname: srv[2] || '', pass: srv[3] || '', handle: null, lastErr: '', inProgress: false srvId = @srvs.length - 1 @srvView.addSrv srvId @pendingQuery.currSrv = srvId if @pendingQuery @srvMap[path] = srvId if path = @getEditorPath() @connectToSrv srvId connectToSrv: (srvId) -> return unless srvId? @currSrv = srvId; srv = @srvs[srvId] if srv.handle?.status() is 'conn' @barView.update() return srv.inProgress = true @barView.update() srv.handle?.clearEvents() srv.handle = null s = host: srv.host, port: srv.port, uname: srv.uname, pass: srv.pass, exclusive: false if !srv.uname s.uname = @defUname s.pass = <PASSWORD> C.C.connect s, (err,res) => @onConnect(srvId,err,res) onConnect: (srvId, err, res) -> srv = @srvs[srvId] srv.inProgress = false; srv.lastErr = null if err srv.lastErr = err else srv.handle = res srv.handle.on 'down', (err) => @onDisconnect srvId, err @srvView.updateOnline srvId, true @barView.update() q = @pendingQuery if q and q.currSrv is srvId if err and q.cnt is 0 q.cnt++ @setConnection() else if err @pendingQuery = null q.cb err else @pendingQuery = null @send q.msg, q.cb onDisconnect: (srvId, err) -> srv = @srvs[srvId] srv.lastErr = err srv.inProgress = false query = @pendingQuery @pendingQuery = null if query?.currSrv is srvId srv.handle?.clearEvents() srv.handle = null @barView.update() @srvView.updateOnline srvId, false atom.notifications.addError "Server #{srv.name} has disconnected" @send query.msg, query.cb if query?.retry and query?.currSrv is srvId setStatusBar: (statusBar) -> if !@statusBarTile view = require './bar-view' @barView = new view() @barView.init this @statusBarTile = statusBar.addLeftTile item: @barView.getElement(), priority: 100 updateStatus: () -> path = @getEditorPath() @currSrv = @srvMap[path] if path and @srvMap[path] @barView?.update() send: (msg, cb) -> try if @isConnected() srv = @srvs[@currSrv] if srv.inProgress b = atom.confirm message: 'Abort the running query?' detailedMessage: 'Do you really want to disconnect from the current server and try to run the new query?' buttons: ['No','Yes'] if srv.inProgress and b is 1 @pendingQuery = {@currSrv, msg, cb, cnt: 0, retry: true} @disconnect() return srv.inProgress = true @barView.update() srv.handle.sendSync msg, (err, res) => @pendingQuery = null if @pendingQuery?.currSrv is srv.srvId srv.inProgress = false @barView.update() res.srv = srv.name if res res = err: err, srv: srv.name if err cb err, res else # cnt = 0 means try to connect automatically, show srv view otherwise, 1 means stop @pendingQuery = {@currSrv, msg, cb, cnt: 0} if @currSrv is -1 @pendingQuery.cnt++ @setConnection() else @connectToSrv @currSrv catch err console.error err destroy: -> @srvView?.destroy() @statusBarTile?.destroy() @srvs = []; @tagLists = []; @tags = {}; @srvView = null; @srvMap = {} @statusBarTile = @pendingQuery = @defUname = @defPass = null module.exports = servers: new Servers()
true
C = require './c' class Servers constructor: -> @srvView = null; @barView = @pendingQuery = null @srvs = []; @tagLists = []; @tags = {}; @srvMap = {}; @defUname = null; @defPass = null @init(); @currSrv = -1 setConnection: -> try if !@srvView view = require './servers-view' @srvView = new view() @srvView.init this @srvView.show() catch err console.error err disconnect: -> return unless @isConnected() @srvs[@currSrv].handle.close() init: -> path = require 'path' fs = require 'fs' srvs = [] @srvFilePath = path.join atom.getConfigDirPath(), 'qservers.json' @srvFilePathUser = path.join atom.getConfigDirPath(), 'qservers_user.json' if fs.existsSync @srvFilePathUser @initSrvs fs.readFileSync @srvFilePathUser else console.log "Use #{@srvFilePathUser} file to set your servers." if fs.existsSync @srvFilePath @initSrvs fs.readFileSync @srvFilePath else console.log "Use #{@srvFilePath} file to set global servers." initSrvs: (file) -> try ctx = JSON.parse file for n,v of ctx if n is "servers" @updSrv i for i in v else if n is 'uname' @defUname ?= v else if n is 'pass' @defPass ?= v else v = v.split ' ' if typeof v is 'string' if v instanceof Array if /:list$/.test n n = n.slice 0, -5 @tagLists.push n @tags[n] = v else console.error "JSON config file has an incorrect entry " + n catch error console.error "Couldn't load the config file: " + error updSrv: (cfg) -> throw "port is not defined: " + JSON.stringify cfg unless cfg.port cfg.tags = cfg.tags.split ' ' if cfg.tags and typeof cfg.tags is 'string' cfg.host ?= 'localhost' cfg.name ?= cfg.tags.join('-') if cfg.tags cfg.name ?= cfg.host + ":" + cfg.port cfg.uname ?= "" cfg.pass ?= "" cfg.handle = null cfg.lastErr = "" cfg.inProgress = false @srvs.push cfg getEditorPath: -> return null unless editor = atom.workspace.getActiveTextEditor() return null unless editor.getGrammar().scopeName is "source.q" editor.getPath() || 'undefined' isConnected: -> return false if @currSrv is -1 or !@srvs[@currSrv].handle or @srvs[@currSrv].handle.status() isnt 'conn' true # cb from servers-view srvViewCallback: (srvId) -> return unless srvId? if typeof srvId is 'string' srv = srvId.split ':' return if srv.length < 2 @srvs.push name: srvId, host: srv[0] || 'localhost', port: Number(srv[1]), uname: srv[2] || '', pass: srv[3] || '', handle: null, lastErr: '', inProgress: false srvId = @srvs.length - 1 @srvView.addSrv srvId @pendingQuery.currSrv = srvId if @pendingQuery @srvMap[path] = srvId if path = @getEditorPath() @connectToSrv srvId connectToSrv: (srvId) -> return unless srvId? @currSrv = srvId; srv = @srvs[srvId] if srv.handle?.status() is 'conn' @barView.update() return srv.inProgress = true @barView.update() srv.handle?.clearEvents() srv.handle = null s = host: srv.host, port: srv.port, uname: srv.uname, pass: srv.pass, exclusive: false if !srv.uname s.uname = @defUname s.pass = PI:PASSWORD:<PASSWORD>END_PI C.C.connect s, (err,res) => @onConnect(srvId,err,res) onConnect: (srvId, err, res) -> srv = @srvs[srvId] srv.inProgress = false; srv.lastErr = null if err srv.lastErr = err else srv.handle = res srv.handle.on 'down', (err) => @onDisconnect srvId, err @srvView.updateOnline srvId, true @barView.update() q = @pendingQuery if q and q.currSrv is srvId if err and q.cnt is 0 q.cnt++ @setConnection() else if err @pendingQuery = null q.cb err else @pendingQuery = null @send q.msg, q.cb onDisconnect: (srvId, err) -> srv = @srvs[srvId] srv.lastErr = err srv.inProgress = false query = @pendingQuery @pendingQuery = null if query?.currSrv is srvId srv.handle?.clearEvents() srv.handle = null @barView.update() @srvView.updateOnline srvId, false atom.notifications.addError "Server #{srv.name} has disconnected" @send query.msg, query.cb if query?.retry and query?.currSrv is srvId setStatusBar: (statusBar) -> if !@statusBarTile view = require './bar-view' @barView = new view() @barView.init this @statusBarTile = statusBar.addLeftTile item: @barView.getElement(), priority: 100 updateStatus: () -> path = @getEditorPath() @currSrv = @srvMap[path] if path and @srvMap[path] @barView?.update() send: (msg, cb) -> try if @isConnected() srv = @srvs[@currSrv] if srv.inProgress b = atom.confirm message: 'Abort the running query?' detailedMessage: 'Do you really want to disconnect from the current server and try to run the new query?' buttons: ['No','Yes'] if srv.inProgress and b is 1 @pendingQuery = {@currSrv, msg, cb, cnt: 0, retry: true} @disconnect() return srv.inProgress = true @barView.update() srv.handle.sendSync msg, (err, res) => @pendingQuery = null if @pendingQuery?.currSrv is srv.srvId srv.inProgress = false @barView.update() res.srv = srv.name if res res = err: err, srv: srv.name if err cb err, res else # cnt = 0 means try to connect automatically, show srv view otherwise, 1 means stop @pendingQuery = {@currSrv, msg, cb, cnt: 0} if @currSrv is -1 @pendingQuery.cnt++ @setConnection() else @connectToSrv @currSrv catch err console.error err destroy: -> @srvView?.destroy() @statusBarTile?.destroy() @srvs = []; @tagLists = []; @tags = {}; @srvView = null; @srvMap = {} @statusBarTile = @pendingQuery = @defUname = @defPass = null module.exports = servers: new Servers()
[ { "context": "\n \"index.start\" : \"Start Now\"\n \"full_name\" : \"{{firstName}} {{lastName}}\"\n \"select_district\" : \"Select a d", "end": 1067, "score": 0.8322252035140991, "start": 1058, "tag": "NAME", "value": "firstName" }, { "context": "t\" : \"Start Now\"\n \"full_name...
addon/locales/en/translations.coffee
crossroads/shared.goodcity
0
I18nTranslationsEn = "offline_error": "Unable to complete action, please check your internet connection." "offline_page": "Unable to load app, please check your internet connection." "try_again": "Try Again" "send": "Send" "delete_confirm": "Are you sure? This cannot be undone." "online": "Online" "not_connected": "Not Connected" "not_now": "Not Now" "crossroads" : "Crossroads" "language": "en" "loading": "Loading..." "loading_timeout": "This is taking too long! Click okay to reload." "goodcity.hk" : "GoodCity.HK" "skip_intro" : "Skip intro" "next" : "Next" "prev" : "Prev" "back" : "Back" "end" : "End" "done": "Done" "other": "Other" "error.message" : "Sorry, an error occurred!" "images" : "Images" "delete" : "Delete" "edit" : "Edit" "remove" : "Remove" "yes" : "Yes" "no" : "No" "ok" : "OK" "index.title" : "Crossroads Foundation Presents" "index.donate_goods" : "Donate your quality goods to people in need" "index.how" : "Learn How" "index.start" : "Start Now" "full_name" : "{{firstName}} {{lastName}}" "select_district" : "Select a district" "offer_not_found": "The offer you were looking for could not be found." "item_not_found": "The item you were looking for could not be found." "404_error" : "Unfortunately, the details that you are looking for are not here." "403_error" : "You are not authorized to take this action." "not_found": "Oooops, the location you're headed to doesn't seem to exist anymore. Sorry!" "okay": "Okay" "cancel": "Cancel" "save": "Save" "unexpected_error": "Something went wrong" "all": "All" "thank_you": "Thank you" "go_to_top": "Go to Top" "loading_timeout_error": "Loading view timeout reached." "items_text": "items" "version": "Version" "crossroads_foundation": "Crossroads Foundation" "app_review": "title": "Rate us!" "message": "It won’t take more than a minute and helps to promote our app. Thanks for your support :)" "cancel_button_label": "No, Thanks" "later_button_label": "Remind Me Later" "rate_button_label": "Sure" "yes_button_label": "Yes!" "no_button_label": "Not now" "app_rate_prompt_title": "Rate GoodCity! Thank you for your kind donation." "feedback_prompt_title": "Mind giving us some feedback?" "menu": "terms": "Terms of Use" "policy": "Privacy Policy" "version_short": "ver." "day": "today": "Today" "morning": "Morning" "afternoon": "Afternoon" "time_ago": "right_now" : "Right Now" "1m": "1m" "m": "m" "h": "h" "d": "d" "mth": "mth" "mths": "mths" "y": "y" "application": "home" : "Home" "all_offers" : "All Offers" "login" : "Login" "logout" : "Logout" "register" : "Register" "tour" : "Tour" "authenticate": "input_code" : "Input Code" "districts": "all" : "All" "contact": "title" : "Contact Details" "confirm_location" : "Who should we call to confirm location & address detail?" "name" : "Name" "phone" : "Phone" "address" : "Collection address (Hong Kong)" "street" : "Street" "building" : "Building" "flat" : "Flat" "done" : "Done" "_resend": "try_again": "Try again in {{timer}} seconds", "please_wait": "Please wait {{timer}} seconds before requesting a pin again", "resend" : "Resend" "_verification_pin": "input_code" : "Input 4-digit SMS code we just sent you:" "auth_error" : "Sorry! Please enter the correct pin." "login": "hk_only" : "Mobile phone # (Hong Kong only)" "login" : "Login" "smscode": "Get 4-digit SMS code" "messages": "unread" : "Unread ({{unreadCount}})" "owner" : "You" "today_with_time": "Today, {{time}}" "chat_note": "Chat about this item with our reviewers" "draft_chat_note": "Once you have submitted this offer, you can chat with our reviewers." "notifications": "view": "View" "delivery": "select_district": "Select Destrict" "thank_offer": "staff_will_contact": "Our staff will call {{name}} on {{mobile}} next Friday to confirm." "book_timeslot": "hint": "Pick preferred date/time. First available times listed below." "select_time": "Select Time" "cancel": "cancel_title": "Cancel Booking" "cancel_transport": "Cancel Transport" "modify_title": "Modify Booking" "no_ggv_cancel": "Unfortunately we cannot cancel a confirmed GoGoVan booking for you." "no_ggv_modify": "Unfortunately we cannot modify a confirmed GoGoVan booking for you." "cancel_ggv": "Please cancel your GoGoVan booking:" "call_driver": "call the driver on" "call_ggv": "call GoGoVan on" "back": "Go Back" "cancel_booking": "Cancel Booking" "confirm_ggv_cancel": "Once GoGoVan confirms the order is cancelled you will be able to proceed to cancel your booking." "driver_mobile": "Driver's Mobile" "ggv_office": "GoGoVan Office" "delivery_details": "name": "Contact Name" "phone": "Contact Phone" "address": "Address" "district": "District" "driver": "Driver" "driver_contact": "Driver contact" "vehicle_reg": "Vehicle registration" "fee": "Base fee" "booked": "Booking Confirmed" "driver_completed": "Picked up" "waiting": "Awaiting Driver Confirmation" "display_driver_details": "Driver & vehicle details will appear here once a driver accepts your booking." "ensure_time": "Please ensure your delivery will arrive at our location by 4pm at the latest. Our volunteers will unload the vehicle at the end." "time": "Booking Time" "id": "Booking ID" "driver_screen": "Driver Screen" "modify": "Modify" "cancel_booking": "Cancel Booking" "accepted_items": "Accepted items to be transported" "driver_picked_up_items": "Items picked up by GGV Driver" "charity_sale": "Charity sale ok?" "crossroads_phone": "Crossroads' Phone" "items": "add_item": "condition": "Condition?" "edit_image" : "Edit photos" "save" : "Save Details" "cancel": "Cancel" "description_placeholder" : "Item description, size, quantity etc. To add or edit photos of this item, click the thumbnail." "item_log": "added": "{{name}} added item" "updated": "{{name}} edited item" "accepted": "{{name}} accepted item" "rejected": "{{name}} rejected item" "submitted": "{{name}} submitted item" "received": "{{name}} received item" "missing": "{{name}} marked item missing" "offer_log": "donor_called": "{{name}} called" "call_accepted": "{{name}} answered call" "edit_images": "upload": "Choose Image" "camera": "Take Photo" "cancel": "Cancel" "add_photo" : "Add photo" "delete_confirm" : "Are you sure you want to delete this image?" "cant_delete_last_image" : "You must have at least one image" "donating_what" : "What are you donating?" "take_photos" : "Take some photos" "fullscreen_tooltip" : "toggle fullscreen" "favourite_tooltip" : "set as cover image" "delete_tooltip" : "delete image" "image_uploading": "Image Uploading " "remove_image": "Remove image" "cancel_item": "Cancel item" "cannot_provide_photo": "Cannot provide photo" "last_image_with_item": "This is the only image associated with this item" "cancelling_item_will_cancel_offer": "Cancelling the last item will cancel this offer and any associated transport booking." "plan_delivery": "title" : "Plan Transport" "fastest" : "include_coupon_discount": "Includes ${{cost}} promotional discount." "promo_discount": "Promotional discount" "title" : "Fastest" "info" : "Hire a vehicle with a few clicks.<br/>Recommended!" "cost" : "From ${{cost}}" "discount_cost": "From ${{cost}}" "booking_button" : "Go to Booking" "learn_more": "Learn More" "gogovan_charges": "Gogovan Bookings" "alternate" : "title" : "Alternative" "info" : "Wait 14+ days until our team<br/>can collect from your area." "cost" : "Fee ${{cost}}" "booking_button" : "Go to Booking" "collection_charges": "Collection Charges" "crossroads" : "title" : "Deliver to Us" "info" : "Drop off at Tuen Mun during<br/>our hours of operation." "free" : "Free" "booking_button" : "Details & Booking" "collection_charges": "info": ''' Crossroads' collection service is staffed partially by volunteers and partially by a social enterprise partner who is helping people get back into the workforce. We seek corporate sponsors to cover labour and vehicles (purchase / depreciation, insurance etc.) We ask donors to contribute the variable costs (fuel, parking, tolls, maintenance etc.) Our variable costs average $600 per collection day so, depending on how much of the truck your donation fills up, we ask for a contribution of between $75 and $600. If you have ways to handle the vehicle hire and labour yourself we are always very grateful and it could save you time. Our collection service is very popular so donors typically have to wait weeks for a booking. Sorry! If you or your company are interested in being a vehicle sponsor we'd love to hear from you! We could provide faster service and help more people if we had the sponsorship to expand our collection service. We'd love to display your corporate logo on our truck to show Hong Kong how you are making a difference. Please email {{email}} ''' "gogovan_charges": "info": ''' We partner with GoGoVan so you can hire a van or truck from within GoodCity! Quotes are live, based on your location and the type of vehicle your donation requires. Our reviewers have already indicated if you will need a van or a truck so your quotes will be based on that. GoGoVan quotes do not include labour, tunnel tolls or other charges. You need to agree these with the driver before you finalise your booking. Labour charges:<br/>In our experience, labour will typically cost about $100 per worker, per hour. You will often need two labourers to safely move large items. Independent drivers use GoGoVan to get transport bookings, they are not employed by GoGoVan. Different drivers will have different skills and expectations when asked to provide "removal services". They won't ordinarily come prepared to disassemble items for you or put loose items into boxes. You can do all this in advance to keep things fast and simple or you can chat to the driver about your needs in detail so he can quote for the work. Also, please be up-front and clear about any challenges associated with your location (such as stairs, parking, footpaths or other obstacles) so the driver can charge for labour accordingly. If you're in a tricky location, please note that some drivers may not be able to take the job. ''' "gogovan": "porterage": "title" : "Labour Charges" "driver" : "This needs to be negotiated with driver." "price_factors" : "The price will vary based on many factors, including" "item_count_size" : "How many items of what size" "obstacles" : "Stairs or obstacles" "park_van" : "Ability to park van unattended" "help" : "If you or a friend can help" "unwilling_driver" : "If you have large furniture and/or challenging needs you may find drivers are unwilling to take the job or require a significant price." "thanks" : "Got it, thank you!" "confirm_van" : "crossroads": "Crossroads (Tuen Mun)" "other-msg" : "Tolls, parking, etc. not included" "title" : "Confirm Van" "base_fee" : "Base fee" "porterage" : "Labour" "speak_english" : "Speak English" "details" : "Details" "other" : "Other" "confirm_with_driver" : "Please confirm total price with driver before loading." "name" : "Your Name" "phone" : "Phone" "book_delivery" : "Confirm & Book" "negotiate" : "Negotiate with driver" "no_porterage" : "Not Requested" "goods_6ft": "Goods >6ft" "trolley": "Trolley" "estimate": "Estimate" "confirm_total_price": "Estimate does not include tunnel/bridge fees, parking and other misc. fees. Please confirm total price with driver before loading." "ggv_link": "More about fees on the GoGoVan website" "book_van" : "title" : "Book Van" "location" : "Collection address (Hong Kong)" "select_day" : "Preferred day/time" "crossroads_time" : "Limited to Crossroads' operating hours" "requirements" : "Extra Requirements" "speak_english" : "Speak English + $5" "van_trolly_cost" : "Borrow trolley(s) + $10/piece" "truck_trolly_cost" : "Borrow trolley(s) + $20/piece" "porterage" : "Labour (negotiate with drivers)" "longer_goods": "Goods longer than 6ft (183cm)" "longer_goods_6ft": "longer than 6ft +$10" "longer_goods_6ft_tall": "longer than 6ft &taller than 2ft(60cm) +$20" "extra_time_charge" : "Extra Time(15 minutes waiting time is included for you to load the van. Extra time incurs a charge.)" "get_quote" : "Get Quote" "date": "Date" "time": "Time" "am": "AM" "pm": "PM" "vehicle": "Vehicle Type" "drop-off": "select_schedule": "Select Schedule" "expect_delivery": "When can we expect your delivery?" "open_new_tab": "will open in new tab" "book_schedule": "Book Schedule" "arrive_on_time": "Please arrive during our operating hours to ensure we can receive your kind donation." "volunteer": "Our volunteers can help unload your vehicle." "see_map": "See map" "delivery_to": "Deliver To:" "crossroads_address": "Crossroads Village,<br/> 2 Castle Peak Road, Tuen Mun, NT<br/> Drop off at Building 32" "arrive": "Please arrive during our operating hours." "message_us": "Message us via this app if you have any questions." "thanks": "Thank you for arranging delivery of your items." "crossroads_truck": "book_time": "Book Time" "show_more": "Show More" "offer": "disable": "Disable" "closed_by": "Closed by {{firstName}} {{lastName}}" "cancelled_by": "Cancelled by {{firstName}} {{lastName}}" "received_by": "Received by {{firstName}} {{lastName}}" # Components "upload-images": "angles" : "Got all the angles of this item?" "favourite" : "Favourite" "add_another" : "Add another image" "upload-image": "upload_error" : "There is an error with your image upload. Please try again after some time." "ggv_order": "message" : "Our Staff will confirm each item listed below when you arrive." "delivery_from" : "Delivery from" "delivery_to" : "Delivery to: Tuen Mun" "crossroads_foundation" : "Crossroads Foundation" "crossroads_address1" : "2 Castle Peak Road, Tuen Mun" "crossroads_address2" : "Opposite Gold Coast Phase 1 Apartments Unload at Building 32" "map" : "map" "goodcity_job_summary" : "GoodCity Job Summary" "pics": "title": "Personal Information" "confidentiality": 'Crossroads Foundation is committed to protecting the confidentiality and security of the personal data that we collect in the course of our activities, including through the GoodCity.HK website at www.goodcity.hk ("we", "us", "our", "Crossroads" and "GoodCity.HK")' "ask_to_access": "This Personal Information Collection Statement (PICS) outlines our policies and practices with respect to the personal data you may be asked to provide when you register to receive items through GoodCity.HK. Our full privacy policy is available to view" "here": "here" "change_privacy_policy": "We pledge to comply with the requirements of the Personal Data (Privacy) Ordinance in Hong Kong. We may change this PICS or our privacy policy from time to time by updating and re-posting them here. Your continued use of GoodCity.HK will mean that you accept these changes." "child": "If you are under 18 years old, please ask your parents or guardian before using GoodCity.HK." "commitement_to_you": "Our Commitment to You" "use_purposely": "We only use the personal data that you provide to us for the purpose for which it is collected or a directly related purpose;" "will_not_sell_dara": "We will not sell or pass your personal data to any other organisation without your knowledge (or consent, as required);" "unsubscribe": "We will always give you the opportunity to unsubscribe from our communications;" "questions": "We take our obligations under the law seriously and want to hear from you if you have any questions or concerns;" "personal_data_collected": "Personal Data Collected" "provide_data_to_use_services": "When you register with GoodCity.HK we may ask you to provide the following personal data. Please note that it is mandatory for you to provide certain categories of personal data as specified at the time of collection. Without this data we may not be able to provide you with our products and services:" "contact_details": "your name, address, email, phone and fax numbers;" "gender_and_dob": "your gender and date of birth;" "financial_information": "financial information such as credit card information (if you make a payment to us) and bank account details (if we are making payment to you by direct debit);" "personal_identifier": "a personal identifier such as passport or other official document or case number. Save in exceptional circumstances, we will not collect or retain HKID card numbers;" "responses_to_feedback": "your responses to surveys or feedback." "purpose_and_use": "Purpose and Use" "will_use_data_for_following": "We may use the personal data that you provide to us for the following purposes and purposes directly related to them:" "new_or_any_invitation": "at your request, or subject to your consent having been given, to deliver news, updates and invitations on our activities, programs, products, research and upcoming events;" "respond_to_your_questions": "to respond to your enquiries or suggestions;" "to_process_feedback": "to process feedback and to follow up with you on your enquiries;" "requested_by_govt_or_legal_claim": "as permitted or required by law or regulation, or as requested by government authorities or to establish or exercise our legal rights or defend against legal claims;" "deliver_items_to_you": "to deliver items to you and facilitate your requests;" "improve_services": "to improve our services, activities, products and content and for statistical and other analysis to help us improve our effectiveness;" "prevent_crime": "to prevent or detect a crime or possible criminal activity." "third_parties": "Third Parties" "third_party_organisations": "We may retain other organisations and individuals to perform functions on our behalf, such as our logistics partner GoGoVan. Such third parties may be provided with access to such of your personal data as needed to perform their functions, but we do not authorise them to use that data for any other purpose. Those third parties may be located outside Hong Kong. Our policy is to select reputable service providers who have the technical competence and organisational measures to meet our needs and who have a good track record on data protection." "social_welfare_dept": "If you have been referred by an organisation (such as the Social Welfare Department or another organisation), we may need to discuss your case with them and accordingly there will be a disclosure or transfer of your personal data as part of this process." "crossroads_network": "Crossroads Network" "use_data_in_crossroads_network": 'Crossroads operates on a global basis. We have offices in Hong Kong and the United Kingdom. We refer to this as the "Crossroads Network". We may disclose, share and transfer your personal data within the Crossroads Network for the purposes set forth in this PICS. We require those in the Crossroads Network to adhere to the procedures of data security and confidentiality as set out in this PICS and our privacy policy.' "correction_of_data": "Access and Correction of Personal Data" "right_to_review_and_correct": "You have the right to review and correct personal data given to us. If the process of reviewing or correcting your personal data incurs any costs, we may charge you a reasonable fee to do this. Should you wish to review or correct personal data or if you have any questions regarding this PICS or our privacy policy please contact us at privacy@crossroads.org.hk" "last_updated": "The statement was last updated in August 2014." "terms": "title": "Terms and Conditions" "info": "GoodCity.hk is part of the Crossroads Foundation network. By using the GoodCity.hk website http://www.goodcity.hk (\"GoodCity Website\") you are agreeing to be bound by these terms of use between you and the Crossroads Foundation and its affiliates (\"Crossroads\", \"us\", \"we\" and \"our\")." "agreement": "title": "Your Agreement" "terms_of_use": "You agree to use the GoodCity Website in accordance with these terms of use." "use_authority": "You agree to use the GoodCity Website only for your personal use. If you are using the GoodCity Website on behalf of a company, partnership, association, government or other organisation, you represent and warrant that you are authorised to do so and that you are authorised to bind your organisation to these terms of use." "lawful_use": "You agree to use the GoodCity Website only for lawful purposes." "security": "You agree not to take any action that might compromise the security of the GoodCity Website, render the GoodCity Website inaccessible to others or otherwise cause damage to the GoodCity Website or its content." "access_attempt": "You agree not to attempt to access any parts of the GoodCity Website that are not intended for you;" "website_rights": "You agree not to use the GoodCity Website in any manner that might interfere with the rights of third parties." "changes": "title": "Changes to these Terms of Use" "info": "We may from time to time issue, revise or add specific instructions, policies and terms applicable to your use of the GoodCity Website and these instructions, policies and terms form part of these terms of use. Please read the GoodCity Website terms of use carefully and come back to review them from time to time. By continuing to use the GoodCity Website after any amendment to the terms of use you are agreeing to these terms of use as amended." "contact_us": "If you have any questions about the GoodCity Website terms of use, please contact us at" "account": "title": "Account Details" "info": "Your GoodCity account name remains our property and we can reclaim and reuse the account name once your account is terminated or deactivated for whatever reason by either you or us. You are responsible for safeguarding any passwords used to access your account and the GoodCity Website. You will promptly notify us at privacy@crossroads.org.hk if you believe that your password or account has been compromised." "privacy": "title": "Privacy Policy" "info": "Your privacy is very important to us. We have prepared a Personal Information Collection Statement (PICS) which outlines our policies and practices with respect to the personal data you may be asked to provide when registering to receive items through GoodCity.HK." "pics": "The PICS is available to view" "privacy_link": "The full Crossroads privacy policy is available to view" "use": "These policies are incorporated into and form part of these GoodCity Website terms of use." "here": "here" "intellectual": "title": "Intellectual Property" "info": "All intellectual property rights in the GoodCity Website (including any future updates, upgrades and new versions) and any connected or related applications, systems and services shall continue to belong to us and our licensors. You have no right to use our intellectual property rights except to the extent expressly permitted by us. In particular, you have no right to use our trade marks or product names, logos, domain names or other distinctive brand features without our prior written consent." "grant": "We grant you a personal, non-exclusive, non-sublicensable, non-transferrable, royalty-free and revocable licence to use the GoodCity Website only in accordance with these terms of use." "unauthorised_access": "You may not copy, modify, reverse engineer or extract any information, source codes or underlying HTML from the GoodCity Website or any connected or related applications, systems or services, except to the extent that we may not prohibit you from doing so under applicable law or you have our prior written consent to do so. You will not use the GoodCity Website in conjunction with any application or other technology that attempts to do any of the foregoing or which otherwise causes the GoodCity Website to operate in an unauthorised manner." "content": "title": "Your Content" "info": "When you submit, upload, transmit or display any photographs, data, information, media or other content in connection with your use of the GoodCity Website (“Your Content”), you understand and agree that:" "responsible": "You will continue to own and be responsible for Your Content." "no_sell": "We will not sell Your Content to any third party." "privacy_policy": "Our use of Your Content will be subject to our Privacy Policy." "right_to_use": "You are giving us and our affiliate companies the right to use Your Content (with no fees or charges payable by us to you) to provide our services and for the purposes of promoting, developing and trying to improve our services, including new services that we may provide in the future." "share": "We may share Your Content with third parties that we work with to help provide, promote, develop and improve our services, but these third parties (other than our affiliate companies) will not make any separate use of Your Content for their own purposes (i.e. for any purposes that are not related to our services) and" "suggestions": "Any comments or suggestions you may provide regarding the GoodCity Website are entirely voluntary and we will be free to use such comments and suggestions in our discretion without any obligation to you." "warranty": "title": "Warranty and Disclaimer" "info": "We warrant that we will provide the GoodCity Website and the services relating to it using reasonable care and skill. However, apart from this warranty, we make no representation or warranty and give no undertaking in relation to our services, our software or any content submitted, transmitted or displayed by our services, including any representation, warranty or undertaking that the GoodCity Website or any software, content or information provided to you by it will be secure or error-free or that the GoodCity Website will be compatible with your device or any software operating on it or fit for a particular purpose. The GoodCity Website is provided on an “as is” and “as available” basis." "liability": "title": "Liability" "info": "The total aggregate liability of us and our affiliated companies in connection with the GoodCity Website, arising out of any circumstances, shall be limited to USD100." "exclude": "Nothing in these terms of use shall limit or exclude any liability for any loss arising from death or personal injury caused by negligence, for fraudulent misrepresentation or for any other liability, to the extent that any such liability cannot be limited or excluded by law." "indemnify_us": "You agree to indemnify us and hold us harmless against any liability or loss incurred by us arising in connection with your breach of these terms of use." "policy_to_children": "title": "Our Policy Towards Children" "info": "The GoodCity Website is not intended for use by children. Unfortunately, we cannot always determine the age of users to our site. Please do not use the GoodCity Website if you are under 18 years of age." "general": "title": "General" "info": "These GoodCity Website terms of use are the entire agreement between you and us in relation to the GoodCity Website. You agree that you will have no claim against us for any statement which is not explicitly set out in these terms of use. No delay in enforcing any provision of these terms of use shall be construed to be a waiver of any rights under that provision. Any rights and obligations under these terms of use which by their nature should survive, including but not limited to any obligations in relation to the liability of the respective parties, will remain in effect after termination or expiration of these terms of use." "hk_law": "These terms of use and any dispute or claim arising out of or in connection with them shall be governed by the laws of the Hong Kong Special Administrative Region. All legal proceedings arising out or in connection with these terms of use shall be non-exclusively brought in the courts of the Hong Kong Special Administrative Region." "language": "Where there is any inconsistency between the English and any other language versions of these terms of use, the English language version will prevail." "contact": "title": "Contact Us" "info": "If you have any questions or concerns regarding the GoodCity Website or these terms of use please contact us at" `export default I18nTranslationsEn`
163010
I18nTranslationsEn = "offline_error": "Unable to complete action, please check your internet connection." "offline_page": "Unable to load app, please check your internet connection." "try_again": "Try Again" "send": "Send" "delete_confirm": "Are you sure? This cannot be undone." "online": "Online" "not_connected": "Not Connected" "not_now": "Not Now" "crossroads" : "Crossroads" "language": "en" "loading": "Loading..." "loading_timeout": "This is taking too long! Click okay to reload." "goodcity.hk" : "GoodCity.HK" "skip_intro" : "Skip intro" "next" : "Next" "prev" : "Prev" "back" : "Back" "end" : "End" "done": "Done" "other": "Other" "error.message" : "Sorry, an error occurred!" "images" : "Images" "delete" : "Delete" "edit" : "Edit" "remove" : "Remove" "yes" : "Yes" "no" : "No" "ok" : "OK" "index.title" : "Crossroads Foundation Presents" "index.donate_goods" : "Donate your quality goods to people in need" "index.how" : "Learn How" "index.start" : "Start Now" "full_name" : "{{<NAME>}} {{<NAME>}}" "select_district" : "Select a district" "offer_not_found": "The offer you were looking for could not be found." "item_not_found": "The item you were looking for could not be found." "404_error" : "Unfortunately, the details that you are looking for are not here." "403_error" : "You are not authorized to take this action." "not_found": "Oooops, the location you're headed to doesn't seem to exist anymore. Sorry!" "okay": "Okay" "cancel": "Cancel" "save": "Save" "unexpected_error": "Something went wrong" "all": "All" "thank_you": "Thank you" "go_to_top": "Go to Top" "loading_timeout_error": "Loading view timeout reached." "items_text": "items" "version": "Version" "crossroads_foundation": "Crossroads Foundation" "app_review": "title": "Rate us!" "message": "It won’t take more than a minute and helps to promote our app. Thanks for your support :)" "cancel_button_label": "No, Thanks" "later_button_label": "Remind Me Later" "rate_button_label": "Sure" "yes_button_label": "Yes!" "no_button_label": "Not now" "app_rate_prompt_title": "Rate GoodCity! Thank you for your kind donation." "feedback_prompt_title": "Mind giving us some feedback?" "menu": "terms": "Terms of Use" "policy": "Privacy Policy" "version_short": "ver." "day": "today": "Today" "morning": "Morning" "afternoon": "Afternoon" "time_ago": "right_now" : "Right Now" "1m": "1m" "m": "m" "h": "h" "d": "d" "mth": "mth" "mths": "mths" "y": "y" "application": "home" : "Home" "all_offers" : "All Offers" "login" : "Login" "logout" : "Logout" "register" : "Register" "tour" : "Tour" "authenticate": "input_code" : "Input Code" "districts": "all" : "All" "contact": "title" : "Contact Details" "confirm_location" : "Who should we call to confirm location & address detail?" "name" : "<NAME>" "phone" : "Phone" "address" : "Collection address (Hong Kong)" "street" : "Street" "building" : "Building" "flat" : "Flat" "done" : "Done" "_resend": "try_again": "Try again in {{timer}} seconds", "please_wait": "Please wait {{timer}} seconds before requesting a pin again", "resend" : "Resend" "_verification_pin": "input_code" : "Input 4-digit SMS code we just sent you:" "auth_error" : "Sorry! Please enter the correct pin." "login": "hk_only" : "Mobile phone # (Hong Kong only)" "login" : "Login" "smscode": "Get 4-digit SMS code" "messages": "unread" : "Unread ({{unreadCount}})" "owner" : "You" "today_with_time": "Today, {{time}}" "chat_note": "Chat about this item with our reviewers" "draft_chat_note": "Once you have submitted this offer, you can chat with our reviewers." "notifications": "view": "View" "delivery": "select_district": "Select Destrict" "thank_offer": "staff_will_contact": "Our staff will call {{name}} on {{mobile}} next Friday to confirm." "book_timeslot": "hint": "Pick preferred date/time. First available times listed below." "select_time": "Select Time" "cancel": "cancel_title": "Cancel Booking" "cancel_transport": "Cancel Transport" "modify_title": "Modify Booking" "no_ggv_cancel": "Unfortunately we cannot cancel a confirmed GoGoVan booking for you." "no_ggv_modify": "Unfortunately we cannot modify a confirmed GoGoVan booking for you." "cancel_ggv": "Please cancel your GoGoVan booking:" "call_driver": "call the driver on" "call_ggv": "call GoGoVan on" "back": "Go Back" "cancel_booking": "Cancel Booking" "confirm_ggv_cancel": "Once GoGoVan confirms the order is cancelled you will be able to proceed to cancel your booking." "driver_mobile": "Driver's Mobile" "ggv_office": "GoGoVan Office" "delivery_details": "name": "<NAME>" "phone": "Contact Phone" "address": "Address" "district": "District" "driver": "Driver" "driver_contact": "Driver contact" "vehicle_reg": "Vehicle registration" "fee": "Base fee" "booked": "Booking Confirmed" "driver_completed": "Picked up" "waiting": "Awaiting Driver Confirmation" "display_driver_details": "Driver & vehicle details will appear here once a driver accepts your booking." "ensure_time": "Please ensure your delivery will arrive at our location by 4pm at the latest. Our volunteers will unload the vehicle at the end." "time": "Booking Time" "id": "Booking ID" "driver_screen": "Driver Screen" "modify": "Modify" "cancel_booking": "Cancel Booking" "accepted_items": "Accepted items to be transported" "driver_picked_up_items": "Items picked up by GGV Driver" "charity_sale": "Charity sale ok?" "crossroads_phone": "Crossroads' Phone" "items": "add_item": "condition": "Condition?" "edit_image" : "Edit photos" "save" : "Save Details" "cancel": "Cancel" "description_placeholder" : "Item description, size, quantity etc. To add or edit photos of this item, click the thumbnail." "item_log": "added": "{{name}} added item" "updated": "{{name}} edited item" "accepted": "{{name}} accepted item" "rejected": "{{name}} rejected item" "submitted": "{{name}} submitted item" "received": "{{name}} received item" "missing": "{{name}} marked item missing" "offer_log": "donor_called": "{{name}} called" "call_accepted": "{{name}} answered call" "edit_images": "upload": "Choose Image" "camera": "Take Photo" "cancel": "Cancel" "add_photo" : "Add photo" "delete_confirm" : "Are you sure you want to delete this image?" "cant_delete_last_image" : "You must have at least one image" "donating_what" : "What are you donating?" "take_photos" : "Take some photos" "fullscreen_tooltip" : "toggle fullscreen" "favourite_tooltip" : "set as cover image" "delete_tooltip" : "delete image" "image_uploading": "Image Uploading " "remove_image": "Remove image" "cancel_item": "Cancel item" "cannot_provide_photo": "Cannot provide photo" "last_image_with_item": "This is the only image associated with this item" "cancelling_item_will_cancel_offer": "Cancelling the last item will cancel this offer and any associated transport booking." "plan_delivery": "title" : "Plan Transport" "fastest" : "include_coupon_discount": "Includes ${{cost}} promotional discount." "promo_discount": "Promotional discount" "title" : "Fastest" "info" : "Hire a vehicle with a few clicks.<br/>Recommended!" "cost" : "From ${{cost}}" "discount_cost": "From ${{cost}}" "booking_button" : "Go to Booking" "learn_more": "Learn More" "gogovan_charges": "Gogovan Bookings" "alternate" : "title" : "Alternative" "info" : "Wait 14+ days until our team<br/>can collect from your area." "cost" : "Fee ${{cost}}" "booking_button" : "Go to Booking" "collection_charges": "Collection Charges" "crossroads" : "title" : "Deliver to Us" "info" : "Drop off at Tuen Mun during<br/>our hours of operation." "free" : "Free" "booking_button" : "Details & Booking" "collection_charges": "info": ''' Crossroads' collection service is staffed partially by volunteers and partially by a social enterprise partner who is helping people get back into the workforce. We seek corporate sponsors to cover labour and vehicles (purchase / depreciation, insurance etc.) We ask donors to contribute the variable costs (fuel, parking, tolls, maintenance etc.) Our variable costs average $600 per collection day so, depending on how much of the truck your donation fills up, we ask for a contribution of between $75 and $600. If you have ways to handle the vehicle hire and labour yourself we are always very grateful and it could save you time. Our collection service is very popular so donors typically have to wait weeks for a booking. Sorry! If you or your company are interested in being a vehicle sponsor we'd love to hear from you! We could provide faster service and help more people if we had the sponsorship to expand our collection service. We'd love to display your corporate logo on our truck to show Hong Kong how you are making a difference. Please email {{email}} ''' "gogovan_charges": "info": ''' We partner with GoGoVan so you can hire a van or truck from within GoodCity! Quotes are live, based on your location and the type of vehicle your donation requires. Our reviewers have already indicated if you will need a van or a truck so your quotes will be based on that. GoGoVan quotes do not include labour, tunnel tolls or other charges. You need to agree these with the driver before you finalise your booking. Labour charges:<br/>In our experience, labour will typically cost about $100 per worker, per hour. You will often need two labourers to safely move large items. Independent drivers use GoGoVan to get transport bookings, they are not employed by GoGoVan. Different drivers will have different skills and expectations when asked to provide "removal services". They won't ordinarily come prepared to disassemble items for you or put loose items into boxes. You can do all this in advance to keep things fast and simple or you can chat to the driver about your needs in detail so he can quote for the work. Also, please be up-front and clear about any challenges associated with your location (such as stairs, parking, footpaths or other obstacles) so the driver can charge for labour accordingly. If you're in a tricky location, please note that some drivers may not be able to take the job. ''' "gogovan": "porterage": "title" : "Labour Charges" "driver" : "This needs to be negotiated with driver." "price_factors" : "The price will vary based on many factors, including" "item_count_size" : "How many items of what size" "obstacles" : "Stairs or obstacles" "park_van" : "Ability to park van unattended" "help" : "If you or a friend can help" "unwilling_driver" : "If you have large furniture and/or challenging needs you may find drivers are unwilling to take the job or require a significant price." "thanks" : "Got it, thank you!" "confirm_van" : "crossroads": "Crossroads (Tuen Mun)" "other-msg" : "Tolls, parking, etc. not included" "title" : "Confirm Van" "base_fee" : "Base fee" "porterage" : "Labour" "speak_english" : "Speak English" "details" : "Details" "other" : "Other" "confirm_with_driver" : "Please confirm total price with driver before loading." "name" : "<NAME>" "phone" : "Phone" "book_delivery" : "Confirm & Book" "negotiate" : "Negotiate with driver" "no_porterage" : "Not Requested" "goods_6ft": "Goods >6ft" "trolley": "Trolley" "estimate": "Estimate" "confirm_total_price": "Estimate does not include tunnel/bridge fees, parking and other misc. fees. Please confirm total price with driver before loading." "ggv_link": "More about fees on the GoGoVan website" "book_van" : "title" : "Book Van" "location" : "Collection address (Hong Kong)" "select_day" : "Preferred day/time" "crossroads_time" : "Limited to Crossroads' operating hours" "requirements" : "Extra Requirements" "speak_english" : "Speak English + $5" "van_trolly_cost" : "Borrow trolley(s) + $10/piece" "truck_trolly_cost" : "Borrow trolley(s) + $20/piece" "porterage" : "Labour (negotiate with drivers)" "longer_goods": "Goods longer than 6ft (183cm)" "longer_goods_6ft": "longer than 6ft +$10" "longer_goods_6ft_tall": "longer than 6ft &taller than 2ft(60cm) +$20" "extra_time_charge" : "Extra Time(15 minutes waiting time is included for you to load the van. Extra time incurs a charge.)" "get_quote" : "Get Quote" "date": "Date" "time": "Time" "am": "AM" "pm": "PM" "vehicle": "Vehicle Type" "drop-off": "select_schedule": "Select Schedule" "expect_delivery": "When can we expect your delivery?" "open_new_tab": "will open in new tab" "book_schedule": "Book Schedule" "arrive_on_time": "Please arrive during our operating hours to ensure we can receive your kind donation." "volunteer": "Our volunteers can help unload your vehicle." "see_map": "See map" "delivery_to": "Deliver To:" "crossroads_address": "Crossroads Village,<br/> 2 Castle Peak Road, Tuen Mun, NT<br/> Drop off at Building 32" "arrive": "Please arrive during our operating hours." "message_us": "Message us via this app if you have any questions." "thanks": "Thank you for arranging delivery of your items." "crossroads_truck": "book_time": "Book Time" "show_more": "Show More" "offer": "disable": "Disable" "closed_by": "Closed by {{<NAME>}} {{<NAME>}}" "cancelled_by": "Cancelled by {{<NAME>}} {{<NAME>}}" "received_by": "Received by {{<NAME>}} {{<NAME>}}" # Components "upload-images": "angles" : "Got all the angles of this item?" "favourite" : "Favourite" "add_another" : "Add another image" "upload-image": "upload_error" : "There is an error with your image upload. Please try again after some time." "ggv_order": "message" : "Our Staff will confirm each item listed below when you arrive." "delivery_from" : "Delivery from" "delivery_to" : "Delivery to: <NAME>" "crossroads_foundation" : "Crossroads Foundation" "crossroads_address1" : "2 Castle Peak Road, Tuen Mun" "crossroads_address2" : "Opposite Gold Coast Phase 1 Apartments Unload at Building 32" "map" : "map" "goodcity_job_summary" : "GoodCity Job Summary" "pics": "title": "Personal Information" "confidentiality": 'Crossroads Foundation is committed to protecting the confidentiality and security of the personal data that we collect in the course of our activities, including through the GoodCity.HK website at www.goodcity.hk ("we", "us", "our", "Crossroads" and "GoodCity.HK")' "ask_to_access": "This Personal Information Collection Statement (PICS) outlines our policies and practices with respect to the personal data you may be asked to provide when you register to receive items through GoodCity.HK. Our full privacy policy is available to view" "here": "here" "change_privacy_policy": "We pledge to comply with the requirements of the Personal Data (Privacy) Ordinance in Hong Kong. We may change this PICS or our privacy policy from time to time by updating and re-posting them here. Your continued use of GoodCity.HK will mean that you accept these changes." "child": "If you are under 18 years old, please ask your parents or guardian before using GoodCity.HK." "commitement_to_you": "Our Commitment to You" "use_purposely": "We only use the personal data that you provide to us for the purpose for which it is collected or a directly related purpose;" "will_not_sell_dara": "We will not sell or pass your personal data to any other organisation without your knowledge (or consent, as required);" "unsubscribe": "We will always give you the opportunity to unsubscribe from our communications;" "questions": "We take our obligations under the law seriously and want to hear from you if you have any questions or concerns;" "personal_data_collected": "Personal Data Collected" "provide_data_to_use_services": "When you register with GoodCity.HK we may ask you to provide the following personal data. Please note that it is mandatory for you to provide certain categories of personal data as specified at the time of collection. Without this data we may not be able to provide you with our products and services:" "contact_details": "your name, address, email, phone and fax numbers;" "gender_and_dob": "your gender and date of birth;" "financial_information": "financial information such as credit card information (if you make a payment to us) and bank account details (if we are making payment to you by direct debit);" "personal_identifier": "a personal identifier such as passport or other official document or case number. Save in exceptional circumstances, we will not collect or retain HKID card numbers;" "responses_to_feedback": "your responses to surveys or feedback." "purpose_and_use": "Purpose and Use" "will_use_data_for_following": "We may use the personal data that you provide to us for the following purposes and purposes directly related to them:" "new_or_any_invitation": "at your request, or subject to your consent having been given, to deliver news, updates and invitations on our activities, programs, products, research and upcoming events;" "respond_to_your_questions": "to respond to your enquiries or suggestions;" "to_process_feedback": "to process feedback and to follow up with you on your enquiries;" "requested_by_govt_or_legal_claim": "as permitted or required by law or regulation, or as requested by government authorities or to establish or exercise our legal rights or defend against legal claims;" "deliver_items_to_you": "to deliver items to you and facilitate your requests;" "improve_services": "to improve our services, activities, products and content and for statistical and other analysis to help us improve our effectiveness;" "prevent_crime": "to prevent or detect a crime or possible criminal activity." "third_parties": "Third Parties" "third_party_organisations": "We may retain other organisations and individuals to perform functions on our behalf, such as our logistics partner GoGoVan. Such third parties may be provided with access to such of your personal data as needed to perform their functions, but we do not authorise them to use that data for any other purpose. Those third parties may be located outside Hong Kong. Our policy is to select reputable service providers who have the technical competence and organisational measures to meet our needs and who have a good track record on data protection." "social_welfare_dept": "If you have been referred by an organisation (such as the Social Welfare Department or another organisation), we may need to discuss your case with them and accordingly there will be a disclosure or transfer of your personal data as part of this process." "crossroads_network": "Crossroads Network" "use_data_in_crossroads_network": 'Crossroads operates on a global basis. We have offices in Hong Kong and the United Kingdom. We refer to this as the "Crossroads Network". We may disclose, share and transfer your personal data within the Crossroads Network for the purposes set forth in this PICS. We require those in the Crossroads Network to adhere to the procedures of data security and confidentiality as set out in this PICS and our privacy policy.' "correction_of_data": "Access and Correction of Personal Data" "right_to_review_and_correct": "You have the right to review and correct personal data given to us. If the process of reviewing or correcting your personal data incurs any costs, we may charge you a reasonable fee to do this. Should you wish to review or correct personal data or if you have any questions regarding this PICS or our privacy policy please contact us at <EMAIL>.hk" "last_updated": "The statement was last updated in August 2014." "terms": "title": "Terms and Conditions" "info": "GoodCity.hk is part of the Crossroads Foundation network. By using the GoodCity.hk website http://www.goodcity.hk (\"GoodCity Website\") you are agreeing to be bound by these terms of use between you and the Crossroads Foundation and its affiliates (\"Crossroads\", \"us\", \"we\" and \"our\")." "agreement": "title": "Your Agreement" "terms_of_use": "You agree to use the GoodCity Website in accordance with these terms of use." "use_authority": "You agree to use the GoodCity Website only for your personal use. If you are using the GoodCity Website on behalf of a company, partnership, association, government or other organisation, you represent and warrant that you are authorised to do so and that you are authorised to bind your organisation to these terms of use." "lawful_use": "You agree to use the GoodCity Website only for lawful purposes." "security": "You agree not to take any action that might compromise the security of the GoodCity Website, render the GoodCity Website inaccessible to others or otherwise cause damage to the GoodCity Website or its content." "access_attempt": "You agree not to attempt to access any parts of the GoodCity Website that are not intended for you;" "website_rights": "You agree not to use the GoodCity Website in any manner that might interfere with the rights of third parties." "changes": "title": "Changes to these Terms of Use" "info": "We may from time to time issue, revise or add specific instructions, policies and terms applicable to your use of the GoodCity Website and these instructions, policies and terms form part of these terms of use. Please read the GoodCity Website terms of use carefully and come back to review them from time to time. By continuing to use the GoodCity Website after any amendment to the terms of use you are agreeing to these terms of use as amended." "contact_us": "If you have any questions about the GoodCity Website terms of use, please contact us at" "account": "title": "Account Details" "info": "Your GoodCity account name remains our property and we can reclaim and reuse the account name once your account is terminated or deactivated for whatever reason by either you or us. You are responsible for safeguarding any passwords used to access your account and the GoodCity Website. You will promptly notify us at <EMAIL> if you believe that your password or account has been compromised." "privacy": "title": "Privacy Policy" "info": "Your privacy is very important to us. We have prepared a Personal Information Collection Statement (PICS) which outlines our policies and practices with respect to the personal data you may be asked to provide when registering to receive items through GoodCity.HK." "pics": "The PICS is available to view" "privacy_link": "The full Crossroads privacy policy is available to view" "use": "These policies are incorporated into and form part of these GoodCity Website terms of use." "here": "here" "intellectual": "title": "Intellectual Property" "info": "All intellectual property rights in the GoodCity Website (including any future updates, upgrades and new versions) and any connected or related applications, systems and services shall continue to belong to us and our licensors. You have no right to use our intellectual property rights except to the extent expressly permitted by us. In particular, you have no right to use our trade marks or product names, logos, domain names or other distinctive brand features without our prior written consent." "grant": "We grant you a personal, non-exclusive, non-sublicensable, non-transferrable, royalty-free and revocable licence to use the GoodCity Website only in accordance with these terms of use." "unauthorised_access": "You may not copy, modify, reverse engineer or extract any information, source codes or underlying HTML from the GoodCity Website or any connected or related applications, systems or services, except to the extent that we may not prohibit you from doing so under applicable law or you have our prior written consent to do so. You will not use the GoodCity Website in conjunction with any application or other technology that attempts to do any of the foregoing or which otherwise causes the GoodCity Website to operate in an unauthorised manner." "content": "title": "Your Content" "info": "When you submit, upload, transmit or display any photographs, data, information, media or other content in connection with your use of the GoodCity Website (“Your Content”), you understand and agree that:" "responsible": "You will continue to own and be responsible for Your Content." "no_sell": "We will not sell Your Content to any third party." "privacy_policy": "Our use of Your Content will be subject to our Privacy Policy." "right_to_use": "You are giving us and our affiliate companies the right to use Your Content (with no fees or charges payable by us to you) to provide our services and for the purposes of promoting, developing and trying to improve our services, including new services that we may provide in the future." "share": "We may share Your Content with third parties that we work with to help provide, promote, develop and improve our services, but these third parties (other than our affiliate companies) will not make any separate use of Your Content for their own purposes (i.e. for any purposes that are not related to our services) and" "suggestions": "Any comments or suggestions you may provide regarding the GoodCity Website are entirely voluntary and we will be free to use such comments and suggestions in our discretion without any obligation to you." "warranty": "title": "Warranty and Disclaimer" "info": "We warrant that we will provide the GoodCity Website and the services relating to it using reasonable care and skill. However, apart from this warranty, we make no representation or warranty and give no undertaking in relation to our services, our software or any content submitted, transmitted or displayed by our services, including any representation, warranty or undertaking that the GoodCity Website or any software, content or information provided to you by it will be secure or error-free or that the GoodCity Website will be compatible with your device or any software operating on it or fit for a particular purpose. The GoodCity Website is provided on an “as is” and “as available” basis." "liability": "title": "Liability" "info": "The total aggregate liability of us and our affiliated companies in connection with the GoodCity Website, arising out of any circumstances, shall be limited to USD100." "exclude": "Nothing in these terms of use shall limit or exclude any liability for any loss arising from death or personal injury caused by negligence, for fraudulent misrepresentation or for any other liability, to the extent that any such liability cannot be limited or excluded by law." "indemnify_us": "You agree to indemnify us and hold us harmless against any liability or loss incurred by us arising in connection with your breach of these terms of use." "policy_to_children": "title": "Our Policy Towards Children" "info": "The GoodCity Website is not intended for use by children. Unfortunately, we cannot always determine the age of users to our site. Please do not use the GoodCity Website if you are under 18 years of age." "general": "title": "General" "info": "These GoodCity Website terms of use are the entire agreement between you and us in relation to the GoodCity Website. You agree that you will have no claim against us for any statement which is not explicitly set out in these terms of use. No delay in enforcing any provision of these terms of use shall be construed to be a waiver of any rights under that provision. Any rights and obligations under these terms of use which by their nature should survive, including but not limited to any obligations in relation to the liability of the respective parties, will remain in effect after termination or expiration of these terms of use." "hk_law": "These terms of use and any dispute or claim arising out of or in connection with them shall be governed by the laws of the Hong Kong Special Administrative Region. All legal proceedings arising out or in connection with these terms of use shall be non-exclusively brought in the courts of the Hong Kong Special Administrative Region." "language": "Where there is any inconsistency between the English and any other language versions of these terms of use, the English language version will prevail." "contact": "title": "Contact Us" "info": "If you have any questions or concerns regarding the GoodCity Website or these terms of use please contact us at" `export default I18nTranslationsEn`
true
I18nTranslationsEn = "offline_error": "Unable to complete action, please check your internet connection." "offline_page": "Unable to load app, please check your internet connection." "try_again": "Try Again" "send": "Send" "delete_confirm": "Are you sure? This cannot be undone." "online": "Online" "not_connected": "Not Connected" "not_now": "Not Now" "crossroads" : "Crossroads" "language": "en" "loading": "Loading..." "loading_timeout": "This is taking too long! Click okay to reload." "goodcity.hk" : "GoodCity.HK" "skip_intro" : "Skip intro" "next" : "Next" "prev" : "Prev" "back" : "Back" "end" : "End" "done": "Done" "other": "Other" "error.message" : "Sorry, an error occurred!" "images" : "Images" "delete" : "Delete" "edit" : "Edit" "remove" : "Remove" "yes" : "Yes" "no" : "No" "ok" : "OK" "index.title" : "Crossroads Foundation Presents" "index.donate_goods" : "Donate your quality goods to people in need" "index.how" : "Learn How" "index.start" : "Start Now" "full_name" : "{{PI:NAME:<NAME>END_PI}} {{PI:NAME:<NAME>END_PI}}" "select_district" : "Select a district" "offer_not_found": "The offer you were looking for could not be found." "item_not_found": "The item you were looking for could not be found." "404_error" : "Unfortunately, the details that you are looking for are not here." "403_error" : "You are not authorized to take this action." "not_found": "Oooops, the location you're headed to doesn't seem to exist anymore. Sorry!" "okay": "Okay" "cancel": "Cancel" "save": "Save" "unexpected_error": "Something went wrong" "all": "All" "thank_you": "Thank you" "go_to_top": "Go to Top" "loading_timeout_error": "Loading view timeout reached." "items_text": "items" "version": "Version" "crossroads_foundation": "Crossroads Foundation" "app_review": "title": "Rate us!" "message": "It won’t take more than a minute and helps to promote our app. Thanks for your support :)" "cancel_button_label": "No, Thanks" "later_button_label": "Remind Me Later" "rate_button_label": "Sure" "yes_button_label": "Yes!" "no_button_label": "Not now" "app_rate_prompt_title": "Rate GoodCity! Thank you for your kind donation." "feedback_prompt_title": "Mind giving us some feedback?" "menu": "terms": "Terms of Use" "policy": "Privacy Policy" "version_short": "ver." "day": "today": "Today" "morning": "Morning" "afternoon": "Afternoon" "time_ago": "right_now" : "Right Now" "1m": "1m" "m": "m" "h": "h" "d": "d" "mth": "mth" "mths": "mths" "y": "y" "application": "home" : "Home" "all_offers" : "All Offers" "login" : "Login" "logout" : "Logout" "register" : "Register" "tour" : "Tour" "authenticate": "input_code" : "Input Code" "districts": "all" : "All" "contact": "title" : "Contact Details" "confirm_location" : "Who should we call to confirm location & address detail?" "name" : "PI:NAME:<NAME>END_PI" "phone" : "Phone" "address" : "Collection address (Hong Kong)" "street" : "Street" "building" : "Building" "flat" : "Flat" "done" : "Done" "_resend": "try_again": "Try again in {{timer}} seconds", "please_wait": "Please wait {{timer}} seconds before requesting a pin again", "resend" : "Resend" "_verification_pin": "input_code" : "Input 4-digit SMS code we just sent you:" "auth_error" : "Sorry! Please enter the correct pin." "login": "hk_only" : "Mobile phone # (Hong Kong only)" "login" : "Login" "smscode": "Get 4-digit SMS code" "messages": "unread" : "Unread ({{unreadCount}})" "owner" : "You" "today_with_time": "Today, {{time}}" "chat_note": "Chat about this item with our reviewers" "draft_chat_note": "Once you have submitted this offer, you can chat with our reviewers." "notifications": "view": "View" "delivery": "select_district": "Select Destrict" "thank_offer": "staff_will_contact": "Our staff will call {{name}} on {{mobile}} next Friday to confirm." "book_timeslot": "hint": "Pick preferred date/time. First available times listed below." "select_time": "Select Time" "cancel": "cancel_title": "Cancel Booking" "cancel_transport": "Cancel Transport" "modify_title": "Modify Booking" "no_ggv_cancel": "Unfortunately we cannot cancel a confirmed GoGoVan booking for you." "no_ggv_modify": "Unfortunately we cannot modify a confirmed GoGoVan booking for you." "cancel_ggv": "Please cancel your GoGoVan booking:" "call_driver": "call the driver on" "call_ggv": "call GoGoVan on" "back": "Go Back" "cancel_booking": "Cancel Booking" "confirm_ggv_cancel": "Once GoGoVan confirms the order is cancelled you will be able to proceed to cancel your booking." "driver_mobile": "Driver's Mobile" "ggv_office": "GoGoVan Office" "delivery_details": "name": "PI:NAME:<NAME>END_PI" "phone": "Contact Phone" "address": "Address" "district": "District" "driver": "Driver" "driver_contact": "Driver contact" "vehicle_reg": "Vehicle registration" "fee": "Base fee" "booked": "Booking Confirmed" "driver_completed": "Picked up" "waiting": "Awaiting Driver Confirmation" "display_driver_details": "Driver & vehicle details will appear here once a driver accepts your booking." "ensure_time": "Please ensure your delivery will arrive at our location by 4pm at the latest. Our volunteers will unload the vehicle at the end." "time": "Booking Time" "id": "Booking ID" "driver_screen": "Driver Screen" "modify": "Modify" "cancel_booking": "Cancel Booking" "accepted_items": "Accepted items to be transported" "driver_picked_up_items": "Items picked up by GGV Driver" "charity_sale": "Charity sale ok?" "crossroads_phone": "Crossroads' Phone" "items": "add_item": "condition": "Condition?" "edit_image" : "Edit photos" "save" : "Save Details" "cancel": "Cancel" "description_placeholder" : "Item description, size, quantity etc. To add or edit photos of this item, click the thumbnail." "item_log": "added": "{{name}} added item" "updated": "{{name}} edited item" "accepted": "{{name}} accepted item" "rejected": "{{name}} rejected item" "submitted": "{{name}} submitted item" "received": "{{name}} received item" "missing": "{{name}} marked item missing" "offer_log": "donor_called": "{{name}} called" "call_accepted": "{{name}} answered call" "edit_images": "upload": "Choose Image" "camera": "Take Photo" "cancel": "Cancel" "add_photo" : "Add photo" "delete_confirm" : "Are you sure you want to delete this image?" "cant_delete_last_image" : "You must have at least one image" "donating_what" : "What are you donating?" "take_photos" : "Take some photos" "fullscreen_tooltip" : "toggle fullscreen" "favourite_tooltip" : "set as cover image" "delete_tooltip" : "delete image" "image_uploading": "Image Uploading " "remove_image": "Remove image" "cancel_item": "Cancel item" "cannot_provide_photo": "Cannot provide photo" "last_image_with_item": "This is the only image associated with this item" "cancelling_item_will_cancel_offer": "Cancelling the last item will cancel this offer and any associated transport booking." "plan_delivery": "title" : "Plan Transport" "fastest" : "include_coupon_discount": "Includes ${{cost}} promotional discount." "promo_discount": "Promotional discount" "title" : "Fastest" "info" : "Hire a vehicle with a few clicks.<br/>Recommended!" "cost" : "From ${{cost}}" "discount_cost": "From ${{cost}}" "booking_button" : "Go to Booking" "learn_more": "Learn More" "gogovan_charges": "Gogovan Bookings" "alternate" : "title" : "Alternative" "info" : "Wait 14+ days until our team<br/>can collect from your area." "cost" : "Fee ${{cost}}" "booking_button" : "Go to Booking" "collection_charges": "Collection Charges" "crossroads" : "title" : "Deliver to Us" "info" : "Drop off at Tuen Mun during<br/>our hours of operation." "free" : "Free" "booking_button" : "Details & Booking" "collection_charges": "info": ''' Crossroads' collection service is staffed partially by volunteers and partially by a social enterprise partner who is helping people get back into the workforce. We seek corporate sponsors to cover labour and vehicles (purchase / depreciation, insurance etc.) We ask donors to contribute the variable costs (fuel, parking, tolls, maintenance etc.) Our variable costs average $600 per collection day so, depending on how much of the truck your donation fills up, we ask for a contribution of between $75 and $600. If you have ways to handle the vehicle hire and labour yourself we are always very grateful and it could save you time. Our collection service is very popular so donors typically have to wait weeks for a booking. Sorry! If you or your company are interested in being a vehicle sponsor we'd love to hear from you! We could provide faster service and help more people if we had the sponsorship to expand our collection service. We'd love to display your corporate logo on our truck to show Hong Kong how you are making a difference. Please email {{email}} ''' "gogovan_charges": "info": ''' We partner with GoGoVan so you can hire a van or truck from within GoodCity! Quotes are live, based on your location and the type of vehicle your donation requires. Our reviewers have already indicated if you will need a van or a truck so your quotes will be based on that. GoGoVan quotes do not include labour, tunnel tolls or other charges. You need to agree these with the driver before you finalise your booking. Labour charges:<br/>In our experience, labour will typically cost about $100 per worker, per hour. You will often need two labourers to safely move large items. Independent drivers use GoGoVan to get transport bookings, they are not employed by GoGoVan. Different drivers will have different skills and expectations when asked to provide "removal services". They won't ordinarily come prepared to disassemble items for you or put loose items into boxes. You can do all this in advance to keep things fast and simple or you can chat to the driver about your needs in detail so he can quote for the work. Also, please be up-front and clear about any challenges associated with your location (such as stairs, parking, footpaths or other obstacles) so the driver can charge for labour accordingly. If you're in a tricky location, please note that some drivers may not be able to take the job. ''' "gogovan": "porterage": "title" : "Labour Charges" "driver" : "This needs to be negotiated with driver." "price_factors" : "The price will vary based on many factors, including" "item_count_size" : "How many items of what size" "obstacles" : "Stairs or obstacles" "park_van" : "Ability to park van unattended" "help" : "If you or a friend can help" "unwilling_driver" : "If you have large furniture and/or challenging needs you may find drivers are unwilling to take the job or require a significant price." "thanks" : "Got it, thank you!" "confirm_van" : "crossroads": "Crossroads (Tuen Mun)" "other-msg" : "Tolls, parking, etc. not included" "title" : "Confirm Van" "base_fee" : "Base fee" "porterage" : "Labour" "speak_english" : "Speak English" "details" : "Details" "other" : "Other" "confirm_with_driver" : "Please confirm total price with driver before loading." "name" : "PI:NAME:<NAME>END_PI" "phone" : "Phone" "book_delivery" : "Confirm & Book" "negotiate" : "Negotiate with driver" "no_porterage" : "Not Requested" "goods_6ft": "Goods >6ft" "trolley": "Trolley" "estimate": "Estimate" "confirm_total_price": "Estimate does not include tunnel/bridge fees, parking and other misc. fees. Please confirm total price with driver before loading." "ggv_link": "More about fees on the GoGoVan website" "book_van" : "title" : "Book Van" "location" : "Collection address (Hong Kong)" "select_day" : "Preferred day/time" "crossroads_time" : "Limited to Crossroads' operating hours" "requirements" : "Extra Requirements" "speak_english" : "Speak English + $5" "van_trolly_cost" : "Borrow trolley(s) + $10/piece" "truck_trolly_cost" : "Borrow trolley(s) + $20/piece" "porterage" : "Labour (negotiate with drivers)" "longer_goods": "Goods longer than 6ft (183cm)" "longer_goods_6ft": "longer than 6ft +$10" "longer_goods_6ft_tall": "longer than 6ft &taller than 2ft(60cm) +$20" "extra_time_charge" : "Extra Time(15 minutes waiting time is included for you to load the van. Extra time incurs a charge.)" "get_quote" : "Get Quote" "date": "Date" "time": "Time" "am": "AM" "pm": "PM" "vehicle": "Vehicle Type" "drop-off": "select_schedule": "Select Schedule" "expect_delivery": "When can we expect your delivery?" "open_new_tab": "will open in new tab" "book_schedule": "Book Schedule" "arrive_on_time": "Please arrive during our operating hours to ensure we can receive your kind donation." "volunteer": "Our volunteers can help unload your vehicle." "see_map": "See map" "delivery_to": "Deliver To:" "crossroads_address": "Crossroads Village,<br/> 2 Castle Peak Road, Tuen Mun, NT<br/> Drop off at Building 32" "arrive": "Please arrive during our operating hours." "message_us": "Message us via this app if you have any questions." "thanks": "Thank you for arranging delivery of your items." "crossroads_truck": "book_time": "Book Time" "show_more": "Show More" "offer": "disable": "Disable" "closed_by": "Closed by {{PI:NAME:<NAME>END_PI}} {{PI:NAME:<NAME>END_PI}}" "cancelled_by": "Cancelled by {{PI:NAME:<NAME>END_PI}} {{PI:NAME:<NAME>END_PI}}" "received_by": "Received by {{PI:NAME:<NAME>END_PI}} {{PI:NAME:<NAME>END_PI}}" # Components "upload-images": "angles" : "Got all the angles of this item?" "favourite" : "Favourite" "add_another" : "Add another image" "upload-image": "upload_error" : "There is an error with your image upload. Please try again after some time." "ggv_order": "message" : "Our Staff will confirm each item listed below when you arrive." "delivery_from" : "Delivery from" "delivery_to" : "Delivery to: PI:NAME:<NAME>END_PI" "crossroads_foundation" : "Crossroads Foundation" "crossroads_address1" : "2 Castle Peak Road, Tuen Mun" "crossroads_address2" : "Opposite Gold Coast Phase 1 Apartments Unload at Building 32" "map" : "map" "goodcity_job_summary" : "GoodCity Job Summary" "pics": "title": "Personal Information" "confidentiality": 'Crossroads Foundation is committed to protecting the confidentiality and security of the personal data that we collect in the course of our activities, including through the GoodCity.HK website at www.goodcity.hk ("we", "us", "our", "Crossroads" and "GoodCity.HK")' "ask_to_access": "This Personal Information Collection Statement (PICS) outlines our policies and practices with respect to the personal data you may be asked to provide when you register to receive items through GoodCity.HK. Our full privacy policy is available to view" "here": "here" "change_privacy_policy": "We pledge to comply with the requirements of the Personal Data (Privacy) Ordinance in Hong Kong. We may change this PICS or our privacy policy from time to time by updating and re-posting them here. Your continued use of GoodCity.HK will mean that you accept these changes." "child": "If you are under 18 years old, please ask your parents or guardian before using GoodCity.HK." "commitement_to_you": "Our Commitment to You" "use_purposely": "We only use the personal data that you provide to us for the purpose for which it is collected or a directly related purpose;" "will_not_sell_dara": "We will not sell or pass your personal data to any other organisation without your knowledge (or consent, as required);" "unsubscribe": "We will always give you the opportunity to unsubscribe from our communications;" "questions": "We take our obligations under the law seriously and want to hear from you if you have any questions or concerns;" "personal_data_collected": "Personal Data Collected" "provide_data_to_use_services": "When you register with GoodCity.HK we may ask you to provide the following personal data. Please note that it is mandatory for you to provide certain categories of personal data as specified at the time of collection. Without this data we may not be able to provide you with our products and services:" "contact_details": "your name, address, email, phone and fax numbers;" "gender_and_dob": "your gender and date of birth;" "financial_information": "financial information such as credit card information (if you make a payment to us) and bank account details (if we are making payment to you by direct debit);" "personal_identifier": "a personal identifier such as passport or other official document or case number. Save in exceptional circumstances, we will not collect or retain HKID card numbers;" "responses_to_feedback": "your responses to surveys or feedback." "purpose_and_use": "Purpose and Use" "will_use_data_for_following": "We may use the personal data that you provide to us for the following purposes and purposes directly related to them:" "new_or_any_invitation": "at your request, or subject to your consent having been given, to deliver news, updates and invitations on our activities, programs, products, research and upcoming events;" "respond_to_your_questions": "to respond to your enquiries or suggestions;" "to_process_feedback": "to process feedback and to follow up with you on your enquiries;" "requested_by_govt_or_legal_claim": "as permitted or required by law or regulation, or as requested by government authorities or to establish or exercise our legal rights or defend against legal claims;" "deliver_items_to_you": "to deliver items to you and facilitate your requests;" "improve_services": "to improve our services, activities, products and content and for statistical and other analysis to help us improve our effectiveness;" "prevent_crime": "to prevent or detect a crime or possible criminal activity." "third_parties": "Third Parties" "third_party_organisations": "We may retain other organisations and individuals to perform functions on our behalf, such as our logistics partner GoGoVan. Such third parties may be provided with access to such of your personal data as needed to perform their functions, but we do not authorise them to use that data for any other purpose. Those third parties may be located outside Hong Kong. Our policy is to select reputable service providers who have the technical competence and organisational measures to meet our needs and who have a good track record on data protection." "social_welfare_dept": "If you have been referred by an organisation (such as the Social Welfare Department or another organisation), we may need to discuss your case with them and accordingly there will be a disclosure or transfer of your personal data as part of this process." "crossroads_network": "Crossroads Network" "use_data_in_crossroads_network": 'Crossroads operates on a global basis. We have offices in Hong Kong and the United Kingdom. We refer to this as the "Crossroads Network". We may disclose, share and transfer your personal data within the Crossroads Network for the purposes set forth in this PICS. We require those in the Crossroads Network to adhere to the procedures of data security and confidentiality as set out in this PICS and our privacy policy.' "correction_of_data": "Access and Correction of Personal Data" "right_to_review_and_correct": "You have the right to review and correct personal data given to us. If the process of reviewing or correcting your personal data incurs any costs, we may charge you a reasonable fee to do this. Should you wish to review or correct personal data or if you have any questions regarding this PICS or our privacy policy please contact us at PI:EMAIL:<EMAIL>END_PI.hk" "last_updated": "The statement was last updated in August 2014." "terms": "title": "Terms and Conditions" "info": "GoodCity.hk is part of the Crossroads Foundation network. By using the GoodCity.hk website http://www.goodcity.hk (\"GoodCity Website\") you are agreeing to be bound by these terms of use between you and the Crossroads Foundation and its affiliates (\"Crossroads\", \"us\", \"we\" and \"our\")." "agreement": "title": "Your Agreement" "terms_of_use": "You agree to use the GoodCity Website in accordance with these terms of use." "use_authority": "You agree to use the GoodCity Website only for your personal use. If you are using the GoodCity Website on behalf of a company, partnership, association, government or other organisation, you represent and warrant that you are authorised to do so and that you are authorised to bind your organisation to these terms of use." "lawful_use": "You agree to use the GoodCity Website only for lawful purposes." "security": "You agree not to take any action that might compromise the security of the GoodCity Website, render the GoodCity Website inaccessible to others or otherwise cause damage to the GoodCity Website or its content." "access_attempt": "You agree not to attempt to access any parts of the GoodCity Website that are not intended for you;" "website_rights": "You agree not to use the GoodCity Website in any manner that might interfere with the rights of third parties." "changes": "title": "Changes to these Terms of Use" "info": "We may from time to time issue, revise or add specific instructions, policies and terms applicable to your use of the GoodCity Website and these instructions, policies and terms form part of these terms of use. Please read the GoodCity Website terms of use carefully and come back to review them from time to time. By continuing to use the GoodCity Website after any amendment to the terms of use you are agreeing to these terms of use as amended." "contact_us": "If you have any questions about the GoodCity Website terms of use, please contact us at" "account": "title": "Account Details" "info": "Your GoodCity account name remains our property and we can reclaim and reuse the account name once your account is terminated or deactivated for whatever reason by either you or us. You are responsible for safeguarding any passwords used to access your account and the GoodCity Website. You will promptly notify us at PI:EMAIL:<EMAIL>END_PI if you believe that your password or account has been compromised." "privacy": "title": "Privacy Policy" "info": "Your privacy is very important to us. We have prepared a Personal Information Collection Statement (PICS) which outlines our policies and practices with respect to the personal data you may be asked to provide when registering to receive items through GoodCity.HK." "pics": "The PICS is available to view" "privacy_link": "The full Crossroads privacy policy is available to view" "use": "These policies are incorporated into and form part of these GoodCity Website terms of use." "here": "here" "intellectual": "title": "Intellectual Property" "info": "All intellectual property rights in the GoodCity Website (including any future updates, upgrades and new versions) and any connected or related applications, systems and services shall continue to belong to us and our licensors. You have no right to use our intellectual property rights except to the extent expressly permitted by us. In particular, you have no right to use our trade marks or product names, logos, domain names or other distinctive brand features without our prior written consent." "grant": "We grant you a personal, non-exclusive, non-sublicensable, non-transferrable, royalty-free and revocable licence to use the GoodCity Website only in accordance with these terms of use." "unauthorised_access": "You may not copy, modify, reverse engineer or extract any information, source codes or underlying HTML from the GoodCity Website or any connected or related applications, systems or services, except to the extent that we may not prohibit you from doing so under applicable law or you have our prior written consent to do so. You will not use the GoodCity Website in conjunction with any application or other technology that attempts to do any of the foregoing or which otherwise causes the GoodCity Website to operate in an unauthorised manner." "content": "title": "Your Content" "info": "When you submit, upload, transmit or display any photographs, data, information, media or other content in connection with your use of the GoodCity Website (“Your Content”), you understand and agree that:" "responsible": "You will continue to own and be responsible for Your Content." "no_sell": "We will not sell Your Content to any third party." "privacy_policy": "Our use of Your Content will be subject to our Privacy Policy." "right_to_use": "You are giving us and our affiliate companies the right to use Your Content (with no fees or charges payable by us to you) to provide our services and for the purposes of promoting, developing and trying to improve our services, including new services that we may provide in the future." "share": "We may share Your Content with third parties that we work with to help provide, promote, develop and improve our services, but these third parties (other than our affiliate companies) will not make any separate use of Your Content for their own purposes (i.e. for any purposes that are not related to our services) and" "suggestions": "Any comments or suggestions you may provide regarding the GoodCity Website are entirely voluntary and we will be free to use such comments and suggestions in our discretion without any obligation to you." "warranty": "title": "Warranty and Disclaimer" "info": "We warrant that we will provide the GoodCity Website and the services relating to it using reasonable care and skill. However, apart from this warranty, we make no representation or warranty and give no undertaking in relation to our services, our software or any content submitted, transmitted or displayed by our services, including any representation, warranty or undertaking that the GoodCity Website or any software, content or information provided to you by it will be secure or error-free or that the GoodCity Website will be compatible with your device or any software operating on it or fit for a particular purpose. The GoodCity Website is provided on an “as is” and “as available” basis." "liability": "title": "Liability" "info": "The total aggregate liability of us and our affiliated companies in connection with the GoodCity Website, arising out of any circumstances, shall be limited to USD100." "exclude": "Nothing in these terms of use shall limit or exclude any liability for any loss arising from death or personal injury caused by negligence, for fraudulent misrepresentation or for any other liability, to the extent that any such liability cannot be limited or excluded by law." "indemnify_us": "You agree to indemnify us and hold us harmless against any liability or loss incurred by us arising in connection with your breach of these terms of use." "policy_to_children": "title": "Our Policy Towards Children" "info": "The GoodCity Website is not intended for use by children. Unfortunately, we cannot always determine the age of users to our site. Please do not use the GoodCity Website if you are under 18 years of age." "general": "title": "General" "info": "These GoodCity Website terms of use are the entire agreement between you and us in relation to the GoodCity Website. You agree that you will have no claim against us for any statement which is not explicitly set out in these terms of use. No delay in enforcing any provision of these terms of use shall be construed to be a waiver of any rights under that provision. Any rights and obligations under these terms of use which by their nature should survive, including but not limited to any obligations in relation to the liability of the respective parties, will remain in effect after termination or expiration of these terms of use." "hk_law": "These terms of use and any dispute or claim arising out of or in connection with them shall be governed by the laws of the Hong Kong Special Administrative Region. All legal proceedings arising out or in connection with these terms of use shall be non-exclusively brought in the courts of the Hong Kong Special Administrative Region." "language": "Where there is any inconsistency between the English and any other language versions of these terms of use, the English language version will prevail." "contact": "title": "Contact Us" "info": "If you have any questions or concerns regarding the GoodCity Website or these terms of use please contact us at" `export default I18nTranslationsEn`
[ { "context": " user = robot.brain.userForId '1',\n name: 'mocha'\n room: '#mocha'\n adapter = robot.ada", "end": 783, "score": 0.6482627987861633, "start": 778, "tag": "NAME", "value": "mocha" }, { "context": "gs) ->\n expect(envelope.user.name).to.equal(\"moc...
test/github-op_test.coffee
groovenauts/hubot-groovenauts
0
# references: # http://devlog.forkwell.com/2014/10/28/testable-hubot-tdddetesutowoshu-kinagarabotwozuo-ru/ # http://ja.ngs.io/2014/06/13/tdd-hubot-scripts/ # chai = require("chai") nock = require("nock") { expect } = chai Robot = require('hubot/src/robot') TextMessage = require('hubot/src/message').TextMessage describe "GitHub Operation", -> robot = null user = null adapter = null beforeEach (done) -> nock.disableNetConnect() nock("https://api.github.com").get("/repos/example/test").reply(200) robot = new Robot(null, "mock-adapter", yes, "hubot") robot.adapter.on "connected", -> require("../scripts/github-account-map")(robot) require("../scripts/github-op")(robot) user = robot.brain.userForId '1', name: 'mocha' room: '#mocha' adapter = robot.adapter done() robot.run() afterEach -> robot.server.close() robot.shutdown() nock.cleanAll() it "github show repos", (done) -> adapter.on "send", (envelope, strings) -> expect(envelope.user.name).to.equal("mocha") expect(strings[0]).to.equal("GitHub の以下のリポジトリがデフォルトの対象です:\n") done() adapter.receive(new TextMessage(user, "hubot github show repos")) it "github add repo", (done) -> adapter.on "send", (envelope, strings) -> expect(envelope.user.name).to.equal("mocha") expect(strings[0]).to.equal("対象のリポジトリに example/test を追加しました") done() adapter.receive(new TextMessage(user, "hubot github add repo example/test"))
93536
# references: # http://devlog.forkwell.com/2014/10/28/testable-hubot-tdddetesutowoshu-kinagarabotwozuo-ru/ # http://ja.ngs.io/2014/06/13/tdd-hubot-scripts/ # chai = require("chai") nock = require("nock") { expect } = chai Robot = require('hubot/src/robot') TextMessage = require('hubot/src/message').TextMessage describe "GitHub Operation", -> robot = null user = null adapter = null beforeEach (done) -> nock.disableNetConnect() nock("https://api.github.com").get("/repos/example/test").reply(200) robot = new Robot(null, "mock-adapter", yes, "hubot") robot.adapter.on "connected", -> require("../scripts/github-account-map")(robot) require("../scripts/github-op")(robot) user = robot.brain.userForId '1', name: '<NAME>' room: '#mocha' adapter = robot.adapter done() robot.run() afterEach -> robot.server.close() robot.shutdown() nock.cleanAll() it "github show repos", (done) -> adapter.on "send", (envelope, strings) -> expect(envelope.user.name).to.equal("mocha") expect(strings[0]).to.equal("GitHub の以下のリポジトリがデフォルトの対象です:\n") done() adapter.receive(new TextMessage(user, "hubot github show repos")) it "github add repo", (done) -> adapter.on "send", (envelope, strings) -> expect(envelope.user.name).to.equal("mocha") expect(strings[0]).to.equal("対象のリポジトリに example/test を追加しました") done() adapter.receive(new TextMessage(user, "hubot github add repo example/test"))
true
# references: # http://devlog.forkwell.com/2014/10/28/testable-hubot-tdddetesutowoshu-kinagarabotwozuo-ru/ # http://ja.ngs.io/2014/06/13/tdd-hubot-scripts/ # chai = require("chai") nock = require("nock") { expect } = chai Robot = require('hubot/src/robot') TextMessage = require('hubot/src/message').TextMessage describe "GitHub Operation", -> robot = null user = null adapter = null beforeEach (done) -> nock.disableNetConnect() nock("https://api.github.com").get("/repos/example/test").reply(200) robot = new Robot(null, "mock-adapter", yes, "hubot") robot.adapter.on "connected", -> require("../scripts/github-account-map")(robot) require("../scripts/github-op")(robot) user = robot.brain.userForId '1', name: 'PI:NAME:<NAME>END_PI' room: '#mocha' adapter = robot.adapter done() robot.run() afterEach -> robot.server.close() robot.shutdown() nock.cleanAll() it "github show repos", (done) -> adapter.on "send", (envelope, strings) -> expect(envelope.user.name).to.equal("mocha") expect(strings[0]).to.equal("GitHub の以下のリポジトリがデフォルトの対象です:\n") done() adapter.receive(new TextMessage(user, "hubot github show repos")) it "github add repo", (done) -> adapter.on "send", (envelope, strings) -> expect(envelope.user.name).to.equal("mocha") expect(strings[0]).to.equal("対象のリポジトリに example/test を追加しました") done() adapter.receive(new TextMessage(user, "hubot github add repo example/test"))
[ { "context": " ### extends [NPM:MPBasic](https://cdn.rawgit.com/mpneuried/mpbaisc/master/_docs/index.coffee.html)\n#\n# ### E", "end": 79, "score": 0.9996998906135559, "start": 70, "tag": "USERNAME", "value": "mpneuried" }, { "context": " The config key to load redis\n\t\t\tredisConf...
_src/lib/redisconnector.coffee
mpneuried/node-pi-photobooth
1
# # RedisConnector # ### extends [NPM:MPBasic](https://cdn.rawgit.com/mpneuried/mpbaisc/master/_docs/index.coffee.html) # # ### Exports: *Class* # # Basic module to handle a redis connection. # Just call `@connect()` within the constructor to connect savely to redis # # ### Class-Vars # # * **redis** *RedisClient* the generated redis client instance # * **connected** *Boolean* Flag to mark if the module is currently connected to redis # ### Events # # * **connected**: emitted on redis connect. # * **disconnect**: emitted on redis disconnect. # * **redis:error**: emitted on redis error. # * **err** *Error* The passed error object # **npm modules** redis = require( "redis" ) # **internal modules** # [Config](./config.coffee.html) config = require( "../lib/config" ) # internal var to reuse only one redis client globalclient = {} class RedisConnector extends require( "mpbasic" )( config ) # ## defaults defaults: => return @extend super, # **redisConfigKey** *String* The config key to load redis redisConfigKey: "redis" # **seperateClient** *Boolean* Force create of a new client and not use the global single client. seperateClient: false ### ## constructor ### constructor: -> super # define the `connected` flag @connected = false return ### ## connect `redisconnector.connect()` Connect to redis and add the renerated client th `@redis` @return { RedisClient } Return The Redis Client. Eventually not conneted yet. @api public ### connect: => # get the redis config @configRedis = config.get( @config.redisConfigKey ) if @configRedis.client?.constructor?.name is "RedisClient" # try to use the passed client @redis = @configRedis.client else if not @configRedis.seperateClient and globalclient?[@config.redisConfigKey]?.constructor?.name is "RedisClient" # try to use the global client of this config key @redis = globalclient[@config.redisConfigKey] else # generate a new client try redis = require("redis") catch _err @error( "you have to load redis via `npm install redis hiredis`" ) return @redis = redis.createClient( @configRedis.port or 6379, @configRedis.host or "127.0.0.1", @configRedis.options or {} ) # save the new client to the global var if not @config.seperateClient globalclient[ @config.redisConfigKey ] = @redis # check if this redis instance is allready conencted @connected = @redis.connected or false # listen to the redis connect event and set the class vars @redis.on "connect", => @connected = true @debug "connected" @emit( "connected" ) return # listen to redis errors @redis.on "error", ( err )=> # if it's a connection error emit the disconnect if err.message.indexOf( "ECONNREFUSED" ) @connected = false @emit( "disconnect" ) else @error( "Redis ERROR", err ) @emit( "redis:error", err ) return return @client ### ## _getKey `redisconnector._getKey( id, name )` Samll helper to prefix and get a redis key. @param { String } id The key @param { String } name the class name @return { String } Return The generated key @api public ### _getKey: ( id, name = @name )=> _key = @configRedis.prefix or "" if name? _key += ":#{name}" if id? _key += ":#{id}" return _key #export this class module.exports = RedisConnector
200234
# # RedisConnector # ### extends [NPM:MPBasic](https://cdn.rawgit.com/mpneuried/mpbaisc/master/_docs/index.coffee.html) # # ### Exports: *Class* # # Basic module to handle a redis connection. # Just call `@connect()` within the constructor to connect savely to redis # # ### Class-Vars # # * **redis** *RedisClient* the generated redis client instance # * **connected** *Boolean* Flag to mark if the module is currently connected to redis # ### Events # # * **connected**: emitted on redis connect. # * **disconnect**: emitted on redis disconnect. # * **redis:error**: emitted on redis error. # * **err** *Error* The passed error object # **npm modules** redis = require( "redis" ) # **internal modules** # [Config](./config.coffee.html) config = require( "../lib/config" ) # internal var to reuse only one redis client globalclient = {} class RedisConnector extends require( "mpbasic" )( config ) # ## defaults defaults: => return @extend super, # **redisConfigKey** *String* The config key to load redis redisConfigKey: "<KEY>" # **seperateClient** *Boolean* Force create of a new client and not use the global single client. seperateClient: false ### ## constructor ### constructor: -> super # define the `connected` flag @connected = false return ### ## connect `redisconnector.connect()` Connect to redis and add the renerated client th `@redis` @return { RedisClient } Return The Redis Client. Eventually not conneted yet. @api public ### connect: => # get the redis config @configRedis = config.get( @config.redisConfigKey ) if @configRedis.client?.constructor?.name is "RedisClient" # try to use the passed client @redis = @configRedis.client else if not @configRedis.seperateClient and globalclient?[@config.redisConfigKey]?.constructor?.name is "RedisClient" # try to use the global client of this config key @redis = globalclient[@config.redisConfigKey] else # generate a new client try redis = require("redis") catch _err @error( "you have to load redis via `npm install redis hiredis`" ) return @redis = redis.createClient( @configRedis.port or 6379, @configRedis.host or "127.0.0.1", @configRedis.options or {} ) # save the new client to the global var if not @config.seperateClient globalclient[ @config.redisConfigKey ] = @redis # check if this redis instance is allready conencted @connected = @redis.connected or false # listen to the redis connect event and set the class vars @redis.on "connect", => @connected = true @debug "connected" @emit( "connected" ) return # listen to redis errors @redis.on "error", ( err )=> # if it's a connection error emit the disconnect if err.message.indexOf( "ECONNREFUSED" ) @connected = false @emit( "disconnect" ) else @error( "Redis ERROR", err ) @emit( "redis:error", err ) return return @client ### ## _getKey `redisconnector._getKey( id, name )` Samll helper to prefix and get a redis key. @param { String } id The key @param { String } name the class name @return { String } Return The generated key @api public ### _getKey: ( id, name = @name )=> _key = @configRedis.prefix or "" if name? _key += ":<KEY>name<KEY>}" if id? _key += ":<KEY>{id}" return _key #export this class module.exports = RedisConnector
true
# # RedisConnector # ### extends [NPM:MPBasic](https://cdn.rawgit.com/mpneuried/mpbaisc/master/_docs/index.coffee.html) # # ### Exports: *Class* # # Basic module to handle a redis connection. # Just call `@connect()` within the constructor to connect savely to redis # # ### Class-Vars # # * **redis** *RedisClient* the generated redis client instance # * **connected** *Boolean* Flag to mark if the module is currently connected to redis # ### Events # # * **connected**: emitted on redis connect. # * **disconnect**: emitted on redis disconnect. # * **redis:error**: emitted on redis error. # * **err** *Error* The passed error object # **npm modules** redis = require( "redis" ) # **internal modules** # [Config](./config.coffee.html) config = require( "../lib/config" ) # internal var to reuse only one redis client globalclient = {} class RedisConnector extends require( "mpbasic" )( config ) # ## defaults defaults: => return @extend super, # **redisConfigKey** *String* The config key to load redis redisConfigKey: "PI:KEY:<KEY>END_PI" # **seperateClient** *Boolean* Force create of a new client and not use the global single client. seperateClient: false ### ## constructor ### constructor: -> super # define the `connected` flag @connected = false return ### ## connect `redisconnector.connect()` Connect to redis and add the renerated client th `@redis` @return { RedisClient } Return The Redis Client. Eventually not conneted yet. @api public ### connect: => # get the redis config @configRedis = config.get( @config.redisConfigKey ) if @configRedis.client?.constructor?.name is "RedisClient" # try to use the passed client @redis = @configRedis.client else if not @configRedis.seperateClient and globalclient?[@config.redisConfigKey]?.constructor?.name is "RedisClient" # try to use the global client of this config key @redis = globalclient[@config.redisConfigKey] else # generate a new client try redis = require("redis") catch _err @error( "you have to load redis via `npm install redis hiredis`" ) return @redis = redis.createClient( @configRedis.port or 6379, @configRedis.host or "127.0.0.1", @configRedis.options or {} ) # save the new client to the global var if not @config.seperateClient globalclient[ @config.redisConfigKey ] = @redis # check if this redis instance is allready conencted @connected = @redis.connected or false # listen to the redis connect event and set the class vars @redis.on "connect", => @connected = true @debug "connected" @emit( "connected" ) return # listen to redis errors @redis.on "error", ( err )=> # if it's a connection error emit the disconnect if err.message.indexOf( "ECONNREFUSED" ) @connected = false @emit( "disconnect" ) else @error( "Redis ERROR", err ) @emit( "redis:error", err ) return return @client ### ## _getKey `redisconnector._getKey( id, name )` Samll helper to prefix and get a redis key. @param { String } id The key @param { String } name the class name @return { String } Return The generated key @api public ### _getKey: ( id, name = @name )=> _key = @configRedis.prefix or "" if name? _key += ":PI:KEY:<KEY>END_PInamePI:KEY:<KEY>END_PI}" if id? _key += ":PI:KEY:<KEY>END_PI{id}" return _key #export this class module.exports = RedisConnector
[ { "context": "###\n * zouti\n * https://github.com/krkn/zouti\n *\n * Copyright (c) 2014 Leny\n * Licensed u", "end": 39, "score": 0.9995752573013306, "start": 35, "tag": "USERNAME", "value": "krkn" }, { "context": "s://github.com/krkn/zouti\n *\n * Copyright (c) 2014 Leny\n * Licens...
lib/zouti.coffee
krkn/zouti
1
### * zouti * https://github.com/krkn/zouti * * Copyright (c) 2014 Leny * Licensed under the WTFPL license. ### "use strict" crypto = require "crypto" chalk = require "chalk" # Log formatting constants exports.ERROR = ERROR = "ERROR" exports.WARNING = WARNING = "WARNING" exports.SUCCESS = SUCCESS = "SUCCESS" # Mute functions exports.muted = _bIsMuted = false exports.mute = mute = () -> _bIsMuted = true exports.unmute = mute = () -> _bIsMuted = false # Formatted console log, with date, color & context. exports.log = log = ( sMessage, sContext = "node", sMessageType = "LOG" ) -> aMonthName = [ "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" ] dDate = new Date() sHours = if ( iHours = dDate.getHours() ) < 10 then "0#{ iHours }" else iHours sMinutes = if ( iMinutes = dDate.getMinutes() ) < 10 then "0#{ iMinutes }" else iMinutes sSeconds = if ( iSeconds = dDate.getSeconds() ) < 10 then "0#{ iSeconds }" else iSeconds sDatePrefix = "#{ dDate.getDate() } #{ aMonthName[ dDate.getMonth() ] } #{ sHours }:#{ sMinutes }:#{ sSeconds }" switch sMessageType.toUpperCase() when ERROR, "ERR", "RED" sMessage = "[#{ sContext }] #{ sMessage }" not _bIsMuted and console.log "#{ sDatePrefix } - #{ chalk.red.bold( sMessage ) }" when WARNING, "WARN", "YELLOW" sMessage = "[#{ sContext }] #{ sMessage }" not _bIsMuted and console.log "#{ sDatePrefix } - #{ chalk.yellow( sMessage ) }" when SUCCESS, "GREEN" sMessage = "[#{ sContext }] #{ sMessage }" not _bIsMuted and console.log "#{ sDatePrefix } - #{ chalk.green( sMessage ) }" when "MAGENTA" sMessage = "[#{ sContext }] #{ sMessage }" not _bIsMuted and console.log "#{ sDatePrefix } - #{ chalk.magenta( sMessage ) }" when "INSPECT", "DEBUG" sContext = "[#{ sContext }]" not _bIsMuted and console.log "#{ sDatePrefix } - #{ chalk.cyan( sContext ) }", sMessage else sMessage = "[#{ sContext }] #{ sMessage }" not _bIsMuted and console.log "#{ sDatePrefix } - #{ chalk.cyan( sMessage ) }" exports.warn = exports.warning = ( sMessage, sContext ) -> log sMessage, sContext, WARNING exports.error = exports.notOk = ( sMessage, sContext ) -> log sMessage, sContext, ERROR exports.success = exports.ok = ( sMessage, sContext ) -> log sMessage, sContext, SUCCESS exports.inspect = exports.debug = ( sMessage, sContext ) -> log sMessage, sContext, "DEBUG" # Clearing console log messages. exports.clearConsole = clearConsole = -> not _bIsMuted and console.log "\u001B[2J\u001B[0;0f" # Spacer (print empty console log messages to create visual spaces) exports.spacer = spacer = ( iAmount = 1 ) -> iAmount = 1 if ( isNaN iAmount = +iAmount ) do console.log while iAmount-- return # Simple bench tools for console. oBenches = {} exports.bench = bench = ( sName, bLog = yes ) -> return oBenches[ sName ] = process.hrtime() unless oBenches[ sName ] iDiff = Math.round( ( ( aEnd = process.hrtime( oBenches[ sName ] ) )[ 0 ] * 1e9 + aEnd[ 1 ] ) / 1000 ) / 1000 sDiff = if iDiff > 1000 then "#{ Math.round( iDiff / 100 ) / 10 }s" else ( if iDiff > 25 then "#{ Math.round( iDiff ) }ms" else "#{ iDiff }ms" ) log "took #{ sDiff }.", ( sName or "TIMER" ), "YELLOW" if bLog delete oBenches[ sName ] oDiffs = value: if iDiff > 25 then Math.round( iDiff ) else iDiff literal: sDiff # Generate an UUID (https://gist.github.com/bmc/1893440) compliant to RFC 4122. exports.uuid = uuid = -> 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace( /[xy]/g, (c) -> r = Math.random() * 16 | 0 v = if c is 'x' then r else ( r & 0x3 | 0x8 ) v.toString( 16 ) ) # Old-time, 'quick&dirty' sleep function. Use with care. Eat CPU's :) doNothing = -> return exports.sleep = sleep = ( iDuration ) -> dEnd = Date.now() + ( 1000 * iDuration ) while Date.now() <= dEnd doNothing() # Misc hashing functions. _hash = ( sStr, sAlgorythm ) -> oHash = crypto.createHash sAlgorythm oHash.update sStr, "utf8" oHash.digest "hex" exports.md5 = md5 = ( sStr ) -> _hash sStr, "md5" exports.sha1 = sha1 = ( sStr ) -> _hash sStr, "sha1" exports.sha256 = sha256 = ( sStr ) -> _hash sStr, "sha256" exports.sha512 = sha512 = ( sStr ) -> _hash sStr, "sha512" exports.whirlpool = whirlpool = ( sStr ) -> _hash sStr, "whirlpool" # kindOf - cf. grunt.util.kindOf kindsOf = {} "Number String Boolean Function RegExp Array Date Error".split( " " ).forEach (k) -> kindsOf[ "[object #{ k }]"] = k.toLowerCase() exports.kindOf = kindOf = ( value ) -> return String value unless value? kindsOf[ kindsOf.toString.call( value ) ] or "object"
88055
### * zouti * https://github.com/krkn/zouti * * Copyright (c) 2014 <NAME> * Licensed under the WTFPL license. ### "use strict" crypto = require "crypto" chalk = require "chalk" # Log formatting constants exports.ERROR = ERROR = "ERROR" exports.WARNING = WARNING = "WARNING" exports.SUCCESS = SUCCESS = "SUCCESS" # Mute functions exports.muted = _bIsMuted = false exports.mute = mute = () -> _bIsMuted = true exports.unmute = mute = () -> _bIsMuted = false # Formatted console log, with date, color & context. exports.log = log = ( sMessage, sContext = "node", sMessageType = "LOG" ) -> aMonthName = [ "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" ] dDate = new Date() sHours = if ( iHours = dDate.getHours() ) < 10 then "0#{ iHours }" else iHours sMinutes = if ( iMinutes = dDate.getMinutes() ) < 10 then "0#{ iMinutes }" else iMinutes sSeconds = if ( iSeconds = dDate.getSeconds() ) < 10 then "0#{ iSeconds }" else iSeconds sDatePrefix = "#{ dDate.getDate() } #{ aMonthName[ dDate.getMonth() ] } #{ sHours }:#{ sMinutes }:#{ sSeconds }" switch sMessageType.toUpperCase() when ERROR, "ERR", "RED" sMessage = "[#{ sContext }] #{ sMessage }" not _bIsMuted and console.log "#{ sDatePrefix } - #{ chalk.red.bold( sMessage ) }" when WARNING, "WARN", "YELLOW" sMessage = "[#{ sContext }] #{ sMessage }" not _bIsMuted and console.log "#{ sDatePrefix } - #{ chalk.yellow( sMessage ) }" when SUCCESS, "GREEN" sMessage = "[#{ sContext }] #{ sMessage }" not _bIsMuted and console.log "#{ sDatePrefix } - #{ chalk.green( sMessage ) }" when "MAGENTA" sMessage = "[#{ sContext }] #{ sMessage }" not _bIsMuted and console.log "#{ sDatePrefix } - #{ chalk.magenta( sMessage ) }" when "INSPECT", "DEBUG" sContext = "[#{ sContext }]" not _bIsMuted and console.log "#{ sDatePrefix } - #{ chalk.cyan( sContext ) }", sMessage else sMessage = "[#{ sContext }] #{ sMessage }" not _bIsMuted and console.log "#{ sDatePrefix } - #{ chalk.cyan( sMessage ) }" exports.warn = exports.warning = ( sMessage, sContext ) -> log sMessage, sContext, WARNING exports.error = exports.notOk = ( sMessage, sContext ) -> log sMessage, sContext, ERROR exports.success = exports.ok = ( sMessage, sContext ) -> log sMessage, sContext, SUCCESS exports.inspect = exports.debug = ( sMessage, sContext ) -> log sMessage, sContext, "DEBUG" # Clearing console log messages. exports.clearConsole = clearConsole = -> not _bIsMuted and console.log "\u001B[2J\u001B[0;0f" # Spacer (print empty console log messages to create visual spaces) exports.spacer = spacer = ( iAmount = 1 ) -> iAmount = 1 if ( isNaN iAmount = +iAmount ) do console.log while iAmount-- return # Simple bench tools for console. oBenches = {} exports.bench = bench = ( sName, bLog = yes ) -> return oBenches[ sName ] = process.hrtime() unless oBenches[ sName ] iDiff = Math.round( ( ( aEnd = process.hrtime( oBenches[ sName ] ) )[ 0 ] * 1e9 + aEnd[ 1 ] ) / 1000 ) / 1000 sDiff = if iDiff > 1000 then "#{ Math.round( iDiff / 100 ) / 10 }s" else ( if iDiff > 25 then "#{ Math.round( iDiff ) }ms" else "#{ iDiff }ms" ) log "took #{ sDiff }.", ( sName or "TIMER" ), "YELLOW" if bLog delete oBenches[ sName ] oDiffs = value: if iDiff > 25 then Math.round( iDiff ) else iDiff literal: sDiff # Generate an UUID (https://gist.github.com/bmc/1893440) compliant to RFC 4122. exports.uuid = uuid = -> 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace( /[xy]/g, (c) -> r = Math.random() * 16 | 0 v = if c is 'x' then r else ( r & 0x3 | 0x8 ) v.toString( 16 ) ) # Old-time, 'quick&dirty' sleep function. Use with care. Eat CPU's :) doNothing = -> return exports.sleep = sleep = ( iDuration ) -> dEnd = Date.now() + ( 1000 * iDuration ) while Date.now() <= dEnd doNothing() # Misc hashing functions. _hash = ( sStr, sAlgorythm ) -> oHash = crypto.createHash sAlgorythm oHash.update sStr, "utf8" oHash.digest "hex" exports.md5 = md5 = ( sStr ) -> _hash sStr, "md5" exports.sha1 = sha1 = ( sStr ) -> _hash sStr, "sha1" exports.sha256 = sha256 = ( sStr ) -> _hash sStr, "sha256" exports.sha512 = sha512 = ( sStr ) -> _hash sStr, "sha512" exports.whirlpool = whirlpool = ( sStr ) -> _hash sStr, "whirlpool" # kindOf - cf. grunt.util.kindOf kindsOf = {} "Number String Boolean Function RegExp Array Date Error".split( " " ).forEach (k) -> kindsOf[ "[object #{ k }]"] = k.toLowerCase() exports.kindOf = kindOf = ( value ) -> return String value unless value? kindsOf[ kindsOf.toString.call( value ) ] or "object"
true
### * zouti * https://github.com/krkn/zouti * * Copyright (c) 2014 PI:NAME:<NAME>END_PI * Licensed under the WTFPL license. ### "use strict" crypto = require "crypto" chalk = require "chalk" # Log formatting constants exports.ERROR = ERROR = "ERROR" exports.WARNING = WARNING = "WARNING" exports.SUCCESS = SUCCESS = "SUCCESS" # Mute functions exports.muted = _bIsMuted = false exports.mute = mute = () -> _bIsMuted = true exports.unmute = mute = () -> _bIsMuted = false # Formatted console log, with date, color & context. exports.log = log = ( sMessage, sContext = "node", sMessageType = "LOG" ) -> aMonthName = [ "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" ] dDate = new Date() sHours = if ( iHours = dDate.getHours() ) < 10 then "0#{ iHours }" else iHours sMinutes = if ( iMinutes = dDate.getMinutes() ) < 10 then "0#{ iMinutes }" else iMinutes sSeconds = if ( iSeconds = dDate.getSeconds() ) < 10 then "0#{ iSeconds }" else iSeconds sDatePrefix = "#{ dDate.getDate() } #{ aMonthName[ dDate.getMonth() ] } #{ sHours }:#{ sMinutes }:#{ sSeconds }" switch sMessageType.toUpperCase() when ERROR, "ERR", "RED" sMessage = "[#{ sContext }] #{ sMessage }" not _bIsMuted and console.log "#{ sDatePrefix } - #{ chalk.red.bold( sMessage ) }" when WARNING, "WARN", "YELLOW" sMessage = "[#{ sContext }] #{ sMessage }" not _bIsMuted and console.log "#{ sDatePrefix } - #{ chalk.yellow( sMessage ) }" when SUCCESS, "GREEN" sMessage = "[#{ sContext }] #{ sMessage }" not _bIsMuted and console.log "#{ sDatePrefix } - #{ chalk.green( sMessage ) }" when "MAGENTA" sMessage = "[#{ sContext }] #{ sMessage }" not _bIsMuted and console.log "#{ sDatePrefix } - #{ chalk.magenta( sMessage ) }" when "INSPECT", "DEBUG" sContext = "[#{ sContext }]" not _bIsMuted and console.log "#{ sDatePrefix } - #{ chalk.cyan( sContext ) }", sMessage else sMessage = "[#{ sContext }] #{ sMessage }" not _bIsMuted and console.log "#{ sDatePrefix } - #{ chalk.cyan( sMessage ) }" exports.warn = exports.warning = ( sMessage, sContext ) -> log sMessage, sContext, WARNING exports.error = exports.notOk = ( sMessage, sContext ) -> log sMessage, sContext, ERROR exports.success = exports.ok = ( sMessage, sContext ) -> log sMessage, sContext, SUCCESS exports.inspect = exports.debug = ( sMessage, sContext ) -> log sMessage, sContext, "DEBUG" # Clearing console log messages. exports.clearConsole = clearConsole = -> not _bIsMuted and console.log "\u001B[2J\u001B[0;0f" # Spacer (print empty console log messages to create visual spaces) exports.spacer = spacer = ( iAmount = 1 ) -> iAmount = 1 if ( isNaN iAmount = +iAmount ) do console.log while iAmount-- return # Simple bench tools for console. oBenches = {} exports.bench = bench = ( sName, bLog = yes ) -> return oBenches[ sName ] = process.hrtime() unless oBenches[ sName ] iDiff = Math.round( ( ( aEnd = process.hrtime( oBenches[ sName ] ) )[ 0 ] * 1e9 + aEnd[ 1 ] ) / 1000 ) / 1000 sDiff = if iDiff > 1000 then "#{ Math.round( iDiff / 100 ) / 10 }s" else ( if iDiff > 25 then "#{ Math.round( iDiff ) }ms" else "#{ iDiff }ms" ) log "took #{ sDiff }.", ( sName or "TIMER" ), "YELLOW" if bLog delete oBenches[ sName ] oDiffs = value: if iDiff > 25 then Math.round( iDiff ) else iDiff literal: sDiff # Generate an UUID (https://gist.github.com/bmc/1893440) compliant to RFC 4122. exports.uuid = uuid = -> 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace( /[xy]/g, (c) -> r = Math.random() * 16 | 0 v = if c is 'x' then r else ( r & 0x3 | 0x8 ) v.toString( 16 ) ) # Old-time, 'quick&dirty' sleep function. Use with care. Eat CPU's :) doNothing = -> return exports.sleep = sleep = ( iDuration ) -> dEnd = Date.now() + ( 1000 * iDuration ) while Date.now() <= dEnd doNothing() # Misc hashing functions. _hash = ( sStr, sAlgorythm ) -> oHash = crypto.createHash sAlgorythm oHash.update sStr, "utf8" oHash.digest "hex" exports.md5 = md5 = ( sStr ) -> _hash sStr, "md5" exports.sha1 = sha1 = ( sStr ) -> _hash sStr, "sha1" exports.sha256 = sha256 = ( sStr ) -> _hash sStr, "sha256" exports.sha512 = sha512 = ( sStr ) -> _hash sStr, "sha512" exports.whirlpool = whirlpool = ( sStr ) -> _hash sStr, "whirlpool" # kindOf - cf. grunt.util.kindOf kindsOf = {} "Number String Boolean Function RegExp Array Date Error".split( " " ).forEach (k) -> kindsOf[ "[object #{ k }]"] = k.toLowerCase() exports.kindOf = kindOf = ( value ) -> return String value unless value? kindsOf[ kindsOf.toString.call( value ) ] or "object"
[ { "context": "s added in\ntwo links, first one with one invite (\"basil%1\") and second with two\ninvites (\"rose%1\", \"lily%", "end": 115, "score": 0.7140970230102539, "start": 110, "tag": "NAME", "value": "basil" }, { "context": "asil%1\") and second with two\ninvites (\"rose%1\",...
teamchains/inputs/invite_obsolete.iced
keybase/keybase-test-vectors
4
description: """Obsoleting invites - This chain has 3 invites added in two links, first one with one invite ("basil%1") and second with two invites ("rose%1", "lily%1"). Then, basil user is added as a member using change_membership link, but it does not explicitly complete invite. Team player should mark "basil%1" invite as obsolete. Last link cancels "rose%1" invite. After replaying the chain, team should have two members (herb and basil), and one active invite ("lily%1").""" users: { "herb": {} "basil": {} "rose": {} "lily": {} } teams: { "cabal": { links: [ type: "root" members: owner: ["herb"] , type: "invite" signer: "herb" invites: writer: [ { id: "54eafff3400b5bcd8b40bff3d225ab27", # basil%1 name: "579651b0d574971040b531b66efbc519%1", type: "keybase" } ] , type: "invite" signer: "herb" invites: reader: [ { id: "55eafff3400b5bcd8b40bff3d225ab27", # rose%1 name: "618d663af0f1ec88a5a19defa65a2f19%1", type: "keybase" }, { id: "56eafff3400b5bcd8b40bff3d225ab27", # lily%1 name: "40903c59d19feef1d67c455499304c19%1", type: "keybase" } ] , type: "change_membership" signer: "herb" members: writer: ["basil"] , type: "invite" signer: "herb" invites: cancel: ["55eafff3400b5bcd8b40bff3d225ab27"] ] } } sessions: [ loads: [ error: false ] ]
118232
description: """Obsoleting invites - This chain has 3 invites added in two links, first one with one invite ("<NAME>%1") and second with two invites ("rose%1", "l<NAME>%1"). Then, <NAME>il user is added as a member using change_membership link, but it does not explicitly complete invite. Team player should mark "bas<NAME>%1" invite as obsolete. Last link cancels "rose%1" invite. After replaying the chain, team should have two members (<NAME> and <NAME>), and one active invite ("<NAME>%1").""" users: { "herb": {} "<NAME>": {} "<NAME>": {} "<NAME>": {} } teams: { "cabal": { links: [ type: "root" members: owner: ["herb"] , type: "invite" signer: "herb" invites: writer: [ { id: "<KEY>", # <NAME>%1 name: "579651b0d574971040b531b66efbc519%1", type: "keybase" } ] , type: "invite" signer: "herb" invites: reader: [ { id: "<KEY>", # <NAME>%1 name: "618d663af0f1ec88a5a19defa65a2f19%1", type: "keybase" }, { id: "<KEY>", # <NAME>%1 name: "40903c59d19feef1d67c455499304c19%1", type: "keybase" } ] , type: "change_membership" signer: "herb" members: writer: ["<NAME>"] , type: "invite" signer: "herb" invites: cancel: ["5<KEY>"] ] } } sessions: [ loads: [ error: false ] ]
true
description: """Obsoleting invites - This chain has 3 invites added in two links, first one with one invite ("PI:NAME:<NAME>END_PI%1") and second with two invites ("rose%1", "lPI:NAME:<NAME>END_PI%1"). Then, PI:NAME:<NAME>END_PIil user is added as a member using change_membership link, but it does not explicitly complete invite. Team player should mark "basPI:NAME:<NAME>END_PI%1" invite as obsolete. Last link cancels "rose%1" invite. After replaying the chain, team should have two members (PI:NAME:<NAME>END_PI and PI:NAME:<NAME>END_PI), and one active invite ("PI:NAME:<NAME>END_PI%1").""" users: { "herb": {} "PI:NAME:<NAME>END_PI": {} "PI:NAME:<NAME>END_PI": {} "PI:NAME:<NAME>END_PI": {} } teams: { "cabal": { links: [ type: "root" members: owner: ["herb"] , type: "invite" signer: "herb" invites: writer: [ { id: "PI:KEY:<KEY>END_PI", # PI:NAME:<NAME>END_PI%1 name: "579651b0d574971040b531b66efbc519%1", type: "keybase" } ] , type: "invite" signer: "herb" invites: reader: [ { id: "PI:KEY:<KEY>END_PI", # PI:NAME:<NAME>END_PI%1 name: "618d663af0f1ec88a5a19defa65a2f19%1", type: "keybase" }, { id: "PI:KEY:<KEY>END_PI", # PI:NAME:<NAME>END_PI%1 name: "40903c59d19feef1d67c455499304c19%1", type: "keybase" } ] , type: "change_membership" signer: "herb" members: writer: ["PI:NAME:<NAME>END_PI"] , type: "invite" signer: "herb" invites: cancel: ["5PI:KEY:<KEY>END_PI"] ] } } sessions: [ loads: [ error: false ] ]
[ { "context": "# Copyright Joyent, Inc. and other Node contributors.\n#\n# Permission", "end": 18, "score": 0.9991018176078796, "start": 12, "tag": "NAME", "value": "Joyent" }, { "context": " error event, not an exception.\nkey = new Buffer(\"48fb56eb10ffeb13fc0ef551bbca3b1b\", \"hex\...
test/simple/test-crypto-stream.coffee
lxe/io.coffee
0
# Copyright Joyent, Inc. and other Node contributors. # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to use, copy, modify, merge, publish, # distribute, sublicense, and/or sell copies of the Software, and to permit # persons to whom the Software is furnished to do so, subject to the # following conditions: # # The above copyright notice and this permission notice shall be included # in all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN # NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, # DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR # OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE # USE OR OTHER DEALINGS IN THE SOFTWARE. # Small stream to buffer converter Stream2buffer = (callback) -> stream.Writable.call this @_buffers = [] @once "finish", -> callback null, Buffer.concat(@_buffers) return return common = require("../common") assert = require("assert") stream = require("stream") util = require("util") try crypto = require("crypto") catch e console.log "Not compiled with OPENSSL support." process.exit() util.inherits Stream2buffer, stream.Writable Stream2buffer::_write = (data, encodeing, done) -> @_buffers.push data done null # Create an md5 hash of "Hallo world" hasher1 = crypto.createHash("md5") hasher1.pipe new Stream2buffer(common.mustCall(end = (err, hash) -> assert.equal err, null assert.equal hash.toString("hex"), "06460dadb35d3d503047ce750ceb2d07" return )) hasher1.end "Hallo world" # Simpler check for unpipe, setEncoding, pause and resume crypto.createHash("md5").unpipe {} crypto.createHash("md5").setEncoding "utf8" crypto.createHash("md5").pause() crypto.createHash("md5").resume() # Decipher._flush() should emit an error event, not an exception. key = new Buffer("48fb56eb10ffeb13fc0ef551bbca3b1b", "hex") badkey = new Buffer("12341234123412341234123412341234", "hex") iv = new Buffer("6d358219d1f488f5f4eb12820a66d146", "hex") cipher = crypto.createCipheriv("aes-128-cbc", key, iv) decipher = crypto.createDecipheriv("aes-128-cbc", badkey, iv) cipher.pipe(decipher).on "error", common.mustCall(end = (err) -> assert /Unsupported/.test(err) return ) cipher.end "Papaya!" # Should not cause an unhandled exception.
113781
# Copyright <NAME>, Inc. and other Node contributors. # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to use, copy, modify, merge, publish, # distribute, sublicense, and/or sell copies of the Software, and to permit # persons to whom the Software is furnished to do so, subject to the # following conditions: # # The above copyright notice and this permission notice shall be included # in all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN # NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, # DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR # OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE # USE OR OTHER DEALINGS IN THE SOFTWARE. # Small stream to buffer converter Stream2buffer = (callback) -> stream.Writable.call this @_buffers = [] @once "finish", -> callback null, Buffer.concat(@_buffers) return return common = require("../common") assert = require("assert") stream = require("stream") util = require("util") try crypto = require("crypto") catch e console.log "Not compiled with OPENSSL support." process.exit() util.inherits Stream2buffer, stream.Writable Stream2buffer::_write = (data, encodeing, done) -> @_buffers.push data done null # Create an md5 hash of "Hallo world" hasher1 = crypto.createHash("md5") hasher1.pipe new Stream2buffer(common.mustCall(end = (err, hash) -> assert.equal err, null assert.equal hash.toString("hex"), "06460dadb35d3d503047ce750ceb2d07" return )) hasher1.end "Hallo world" # Simpler check for unpipe, setEncoding, pause and resume crypto.createHash("md5").unpipe {} crypto.createHash("md5").setEncoding "utf8" crypto.createHash("md5").pause() crypto.createHash("md5").resume() # Decipher._flush() should emit an error event, not an exception. key = new Buffer("<KEY>", "hex") badkey = new Buffer("<KEY>", "hex") iv = new Buffer("6d358219d1f488f5f4eb12820a66d146", "hex") cipher = crypto.createCipheriv("aes-128-cbc", key, iv) decipher = crypto.createDecipheriv("aes-128-cbc", badkey, iv) cipher.pipe(decipher).on "error", common.mustCall(end = (err) -> assert /Unsupported/.test(err) return ) cipher.end "Papaya!" # Should not cause an unhandled exception.
true
# Copyright PI:NAME:<NAME>END_PI, Inc. and other Node contributors. # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to use, copy, modify, merge, publish, # distribute, sublicense, and/or sell copies of the Software, and to permit # persons to whom the Software is furnished to do so, subject to the # following conditions: # # The above copyright notice and this permission notice shall be included # in all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN # NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, # DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR # OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE # USE OR OTHER DEALINGS IN THE SOFTWARE. # Small stream to buffer converter Stream2buffer = (callback) -> stream.Writable.call this @_buffers = [] @once "finish", -> callback null, Buffer.concat(@_buffers) return return common = require("../common") assert = require("assert") stream = require("stream") util = require("util") try crypto = require("crypto") catch e console.log "Not compiled with OPENSSL support." process.exit() util.inherits Stream2buffer, stream.Writable Stream2buffer::_write = (data, encodeing, done) -> @_buffers.push data done null # Create an md5 hash of "Hallo world" hasher1 = crypto.createHash("md5") hasher1.pipe new Stream2buffer(common.mustCall(end = (err, hash) -> assert.equal err, null assert.equal hash.toString("hex"), "06460dadb35d3d503047ce750ceb2d07" return )) hasher1.end "Hallo world" # Simpler check for unpipe, setEncoding, pause and resume crypto.createHash("md5").unpipe {} crypto.createHash("md5").setEncoding "utf8" crypto.createHash("md5").pause() crypto.createHash("md5").resume() # Decipher._flush() should emit an error event, not an exception. key = new Buffer("PI:KEY:<KEY>END_PI", "hex") badkey = new Buffer("PI:KEY:<KEY>END_PI", "hex") iv = new Buffer("6d358219d1f488f5f4eb12820a66d146", "hex") cipher = crypto.createCipheriv("aes-128-cbc", key, iv) decipher = crypto.createDecipheriv("aes-128-cbc", badkey, iv) cipher.pipe(decipher).on "error", common.mustCall(end = (err) -> assert /Unsupported/.test(err) return ) cipher.end "Papaya!" # Should not cause an unhandled exception.
[ { "context": "to: \"author\"\n post = new Post(author: { name: \"Jonas\", email: \"jonas@elabs.se\" })\n expect(post.name", "end": 233, "score": 0.9995430707931519, "start": 228, "tag": "NAME", "value": "Jonas" }, { "context": " post = new Post(author: { name: \"Jonas\", email:...
test/model/delegate.spec.coffee
varvet/serenade.js
5
require './../spec_helper' describe "Serenade.Model.delegate", -> it "sets up delegated attributes", -> class Post extends Serenade.Model @delegate "name", "email", to: "author" post = new Post(author: { name: "Jonas", email: "jonas@elabs.se" }) expect(post.name).to.eql("Jonas") expect(post.email).to.eql("jonas@elabs.se") it "forwards other options", -> class Post extends Serenade.Model @delegate "name", "email", to: "author", serialize: true post = new Post(author: { name: "Jonas", email: "jonas@elabs.se" }) expect(post.toJSON().name).to.eql("Jonas") it "assigns value to delegated object when given", -> class Post extends Serenade.Model @delegate "name", "email", to: "author" post = new Post(author: {}) post.name = "Jonas" expect(post.author.name).to.eql("Jonas") it "does nothign when delegated object does not exist", -> class Post extends Serenade.Model @delegate "name", "email", to: "author" post = new Post() post.name = "Jonas" expect(post.author).to.be.undefined it "returns undefined when the attribute being delegated to is undefined", -> class Post extends Serenade.Model @delegate "name", "email", to: "author" post = new Post(author: undefined) expect(post.name).to.eql(undefined) expect(post.email).to.eql(undefined) it "notifies of changes when delegated attributes are changed", -> author = Serenade(name: "Jonas", email: "jonas@elabs.se") class Post extends Serenade.Model @delegate "name", "email", to: "author" @property "author" post = new Post(author: author) post.name_property.trigger() post.email_property.trigger() expect(-> author.name = "peter").to.triggerEvent(post.name_property, with: ["Jonas", "peter"]) expect(-> author.email = "peter@elabs.se").to.triggerEvent(post.email_property, with: ["jonas@elabs.se", "peter@elabs.se"]) it "allows dependencies to be overwritten", -> author = Serenade(name: "Jonas", email: "jonas@elabs.se") class Post extends Serenade.Model @delegate "name", "email", to: "author", dependsOn: [] post = new Post(author: author) expect(-> author.name = "peter").not.to.triggerEvent(post.name_property) it "can set prefix", -> author = Serenade(name: "Jonas", email: "jonas@elabs.se") class Post extends Serenade.Model @delegate "name", "email", to: "author", prefix: true post = new Post(author: { name: "Jonas", email: "jonas@elabs.se" }) expect(post.authorName).to.eql("Jonas") expect(post.authorEmail).to.eql("jonas@elabs.se") it "can set suffix", -> author = Serenade(name: "Jonas", email: "jonas@elabs.se") class Post extends Serenade.Model @delegate "name", "email", to: "author", suffix: true post = new Post(author: { name: "Jonas", email: "jonas@elabs.se" }) expect(post.nameAuthor).to.eql("Jonas") expect(post.emailAuthor).to.eql("jonas@elabs.se") it "can set prefix as string", -> author = Serenade(name: "Jonas", email: "jonas@elabs.se") class Post extends Serenade.Model @delegate "name", "email", to: "author", prefix: "quox" post = new Post(author: { name: "Jonas", email: "jonas@elabs.se" }) expect(post.quoxName).to.eql("Jonas") expect(post.quoxEmail).to.eql("jonas@elabs.se") it "can set suffix as string", -> author = Serenade(name: "Jonas", email: "jonas@elabs.se") class Post extends Serenade.Model @delegate "name", "email", to: "author", suffix: "Quox" post = new Post(author: { name: "Jonas", email: "jonas@elabs.se" }) expect(post.nameQuox).to.eql("Jonas") expect(post.emailQuox).to.eql("jonas@elabs.se") it "forwards formatters", -> class Author extends Serenade.Model @property "email", format: (email) -> email.replace(/@/, "[at]") class Post extends Serenade.Model @delegate "email", to: "author", prefix: true author = new Author({ email: "jonas@elabs.se" }) post = new Post(author: author) expect(post.authorEmail).to.eql("jonas@elabs.se") expect(Serenade.format(post, "authorEmail")).to.eql("jonas[at]elabs.se")
108771
require './../spec_helper' describe "Serenade.Model.delegate", -> it "sets up delegated attributes", -> class Post extends Serenade.Model @delegate "name", "email", to: "author" post = new Post(author: { name: "<NAME>", email: "<EMAIL>" }) expect(post.name).to.eql("<NAME>") expect(post.email).to.eql("<EMAIL>") it "forwards other options", -> class Post extends Serenade.Model @delegate "name", "email", to: "author", serialize: true post = new Post(author: { name: "<NAME>", email: "<EMAIL>" }) expect(post.toJSON().name).to.eql("<NAME>") it "assigns value to delegated object when given", -> class Post extends Serenade.Model @delegate "name", "email", to: "author" post = new Post(author: {}) post.name = "<NAME>" expect(post.author.name).to.eql("<NAME>") it "does nothign when delegated object does not exist", -> class Post extends Serenade.Model @delegate "name", "email", to: "author" post = new Post() post.name = "<NAME>" expect(post.author).to.be.undefined it "returns undefined when the attribute being delegated to is undefined", -> class Post extends Serenade.Model @delegate "name", "email", to: "author" post = new Post(author: undefined) expect(post.name).to.eql(undefined) expect(post.email).to.eql(undefined) it "notifies of changes when delegated attributes are changed", -> author = Serenade(name: "<NAME>", email: "<EMAIL>") class Post extends Serenade.Model @delegate "name", "email", to: "author" @property "author" post = new Post(author: author) post.name_property.trigger() post.email_property.trigger() expect(-> author.name = "pe<NAME>").to.triggerEvent(post.name_property, with: ["<NAME>", "<NAME>"]) expect(-> author.email = "<EMAIL>").to.triggerEvent(post.email_property, with: ["<EMAIL>", "<EMAIL>"]) it "allows dependencies to be overwritten", -> author = Serenade(name: "<NAME>", email: "<EMAIL>") class Post extends Serenade.Model @delegate "name", "email", to: "author", dependsOn: [] post = new Post(author: author) expect(-> author.name = "<NAME>").not.to.triggerEvent(post.name_property) it "can set prefix", -> author = Serenade(name: "<NAME>", email: "<EMAIL>") class Post extends Serenade.Model @delegate "name", "email", to: "author", prefix: true post = new Post(author: { name: "<NAME>", email: "<EMAIL>" }) expect(post.authorName).to.eql("<NAME>") expect(post.authorEmail).to.eql("<EMAIL>") it "can set suffix", -> author = Serenade(name: "<NAME>", email: "<EMAIL>") class Post extends Serenade.Model @delegate "name", "email", to: "author", suffix: true post = new Post(author: { name: "<NAME>", email: "<EMAIL>" }) expect(post.nameAuthor).to.eql("<NAME>") expect(post.emailAuthor).to.eql("<EMAIL>") it "can set prefix as string", -> author = Serenade(name: "<NAME>", email: "<EMAIL>") class Post extends Serenade.Model @delegate "name", "email", to: "author", prefix: "quox" post = new Post(author: { name: "<NAME>", email: "<EMAIL>" }) expect(post.quoxName).to.eql("<NAME>") expect(post.quoxEmail).to.eql("<EMAIL>") it "can set suffix as string", -> author = Serenade(name: "<NAME>", email: "<EMAIL>") class Post extends Serenade.Model @delegate "name", "email", to: "author", suffix: "Quox" post = new Post(author: { name: "<NAME>", email: "<EMAIL>" }) expect(post.nameQuox).to.eql("<NAME>") expect(post.emailQuox).to.eql("<EMAIL>") it "forwards formatters", -> class Author extends Serenade.Model @property "email", format: (email) -> email.replace(/@/, "[at]") class Post extends Serenade.Model @delegate "email", to: "author", prefix: true author = new Author({ email: "<EMAIL>" }) post = new Post(author: author) expect(post.authorEmail).to.eql("<EMAIL>") expect(Serenade.format(post, "authorEmail")).to.eql("jonas[at]elabs.se")
true
require './../spec_helper' describe "Serenade.Model.delegate", -> it "sets up delegated attributes", -> class Post extends Serenade.Model @delegate "name", "email", to: "author" post = new Post(author: { name: "PI:NAME:<NAME>END_PI", email: "PI:EMAIL:<EMAIL>END_PI" }) expect(post.name).to.eql("PI:NAME:<NAME>END_PI") expect(post.email).to.eql("PI:EMAIL:<EMAIL>END_PI") it "forwards other options", -> class Post extends Serenade.Model @delegate "name", "email", to: "author", serialize: true post = new Post(author: { name: "PI:NAME:<NAME>END_PI", email: "PI:EMAIL:<EMAIL>END_PI" }) expect(post.toJSON().name).to.eql("PI:NAME:<NAME>END_PI") it "assigns value to delegated object when given", -> class Post extends Serenade.Model @delegate "name", "email", to: "author" post = new Post(author: {}) post.name = "PI:NAME:<NAME>END_PI" expect(post.author.name).to.eql("PI:NAME:<NAME>END_PI") it "does nothign when delegated object does not exist", -> class Post extends Serenade.Model @delegate "name", "email", to: "author" post = new Post() post.name = "PI:NAME:<NAME>END_PI" expect(post.author).to.be.undefined it "returns undefined when the attribute being delegated to is undefined", -> class Post extends Serenade.Model @delegate "name", "email", to: "author" post = new Post(author: undefined) expect(post.name).to.eql(undefined) expect(post.email).to.eql(undefined) it "notifies of changes when delegated attributes are changed", -> author = Serenade(name: "PI:NAME:<NAME>END_PI", email: "PI:EMAIL:<EMAIL>END_PI") class Post extends Serenade.Model @delegate "name", "email", to: "author" @property "author" post = new Post(author: author) post.name_property.trigger() post.email_property.trigger() expect(-> author.name = "pePI:NAME:<NAME>END_PI").to.triggerEvent(post.name_property, with: ["PI:NAME:<NAME>END_PI", "PI:NAME:<NAME>END_PI"]) expect(-> author.email = "PI:EMAIL:<EMAIL>END_PI").to.triggerEvent(post.email_property, with: ["PI:EMAIL:<EMAIL>END_PI", "PI:EMAIL:<EMAIL>END_PI"]) it "allows dependencies to be overwritten", -> author = Serenade(name: "PI:NAME:<NAME>END_PI", email: "PI:EMAIL:<EMAIL>END_PI") class Post extends Serenade.Model @delegate "name", "email", to: "author", dependsOn: [] post = new Post(author: author) expect(-> author.name = "PI:NAME:<NAME>END_PI").not.to.triggerEvent(post.name_property) it "can set prefix", -> author = Serenade(name: "PI:NAME:<NAME>END_PI", email: "PI:EMAIL:<EMAIL>END_PI") class Post extends Serenade.Model @delegate "name", "email", to: "author", prefix: true post = new Post(author: { name: "PI:NAME:<NAME>END_PI", email: "PI:EMAIL:<EMAIL>END_PI" }) expect(post.authorName).to.eql("PI:NAME:<NAME>END_PI") expect(post.authorEmail).to.eql("PI:EMAIL:<EMAIL>END_PI") it "can set suffix", -> author = Serenade(name: "PI:NAME:<NAME>END_PI", email: "PI:EMAIL:<EMAIL>END_PI") class Post extends Serenade.Model @delegate "name", "email", to: "author", suffix: true post = new Post(author: { name: "PI:NAME:<NAME>END_PI", email: "PI:EMAIL:<EMAIL>END_PI" }) expect(post.nameAuthor).to.eql("PI:NAME:<NAME>END_PI") expect(post.emailAuthor).to.eql("PI:EMAIL:<EMAIL>END_PI") it "can set prefix as string", -> author = Serenade(name: "PI:NAME:<NAME>END_PI", email: "PI:EMAIL:<EMAIL>END_PI") class Post extends Serenade.Model @delegate "name", "email", to: "author", prefix: "quox" post = new Post(author: { name: "PI:NAME:<NAME>END_PI", email: "PI:EMAIL:<EMAIL>END_PI" }) expect(post.quoxName).to.eql("PI:NAME:<NAME>END_PI") expect(post.quoxEmail).to.eql("PI:EMAIL:<EMAIL>END_PI") it "can set suffix as string", -> author = Serenade(name: "PI:NAME:<NAME>END_PI", email: "PI:EMAIL:<EMAIL>END_PI") class Post extends Serenade.Model @delegate "name", "email", to: "author", suffix: "Quox" post = new Post(author: { name: "PI:NAME:<NAME>END_PI", email: "PI:EMAIL:<EMAIL>END_PI" }) expect(post.nameQuox).to.eql("PI:NAME:<NAME>END_PI") expect(post.emailQuox).to.eql("PI:EMAIL:<EMAIL>END_PI") it "forwards formatters", -> class Author extends Serenade.Model @property "email", format: (email) -> email.replace(/@/, "[at]") class Post extends Serenade.Model @delegate "email", to: "author", prefix: true author = new Author({ email: "PI:EMAIL:<EMAIL>END_PI" }) post = new Post(author: author) expect(post.authorEmail).to.eql("PI:EMAIL:<EMAIL>END_PI") expect(Serenade.format(post, "authorEmail")).to.eql("jonas[at]elabs.se")
[ { "context": "izeSubscription: ->\n routingKey1 = \"changes.project.#{@scope.projectId}.userstories\"\n r", "end": 12807, "score": 0.560716986656189, "start": 12807, "tag": "KEY", "value": "" } ]
app/coffee/modules/kanban/main.coffee
threefoldtech/Threefold-Circles-front
0
### # Copyright (C) 2014-2018 Taiga Agile LLC # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. # # File: modules/kanban/main.coffee ### taiga = @.taiga mixOf = @.taiga.mixOf toggleText = @.taiga.toggleText scopeDefer = @.taiga.scopeDefer bindOnce = @.taiga.bindOnce groupBy = @.taiga.groupBy timeout = @.taiga.timeout bindMethods = @.taiga.bindMethods debounceLeading = @.taiga.debounceLeading module = angular.module("taigaKanban") ############################################################################# ## Kanban Controller ############################################################################# class KanbanController extends mixOf(taiga.Controller, taiga.PageMixin, taiga.FiltersMixin, taiga.UsFiltersMixin) @.$inject = [ "$scope", "$rootScope", "$tgRepo", "$tgConfirm", "$tgResources", "tgResources", "$routeParams", "$q", "$tgLocation", "tgAppMetaService", "$tgNavUrls", "$tgEvents", "$tgAnalytics", "$translate", "tgErrorHandlingService", "$tgModel", "tgKanbanUserstories", "$tgStorage", "tgFilterRemoteStorageService", "tgProjectService", "tgLightboxFactory", "tgLoader", "$timeout" ] storeCustomFiltersName: 'kanban-custom-filters' storeFiltersName: 'kanban-filters' constructor: (@scope, @rootscope, @repo, @confirm, @rs, @rs2, @params, @q, @location, @appMetaService, @navUrls, @events, @analytics, @translate, @errorHandlingService, @model, @kanbanUserstoriesService, @storage, @filterRemoteStorageService, @projectService, @lightboxFactory, @tgLoader, @timeout) -> bindMethods(@) @kanbanUserstoriesService.reset() @.openFilter = false @.selectedUss = {} return if @.applyStoredFilters(@params.pslug, "kanban-filters") @scope.sectionName = @translate.instant("KANBAN.SECTION_NAME") @.initializeEventHandlers() taiga.defineImmutableProperty @.scope, "usByStatus", () => return @kanbanUserstoriesService.usByStatus cleanSelectedUss: () -> for key of @.selectedUss @.selectedUss[key] = false toggleSelectedUs: (usId) -> @.selectedUss[usId] = !@.selectedUss[usId] firstLoad: () -> promise = @.loadInitialData() # On Success promise.then => title = @translate.instant("KANBAN.PAGE_TITLE", {projectName: @scope.project.name}) description = @translate.instant("KANBAN.PAGE_DESCRIPTION", { projectName: @scope.project.name, projectDescription: @scope.project.description }) @appMetaService.setAll(title, description) # On Error promise.then null, @.onInitialDataError.bind(@) setZoom: (zoomLevel, zoom) -> if @.zoomLevel == zoomLevel return null @.isFirstLoad = !@.zoomLevel previousZoomLevel = @.zoomLevel @.zoomLevel = zoomLevel @.zoom = zoom if @.isFirstLoad @.firstLoad().then () => @.isFirstLoad = false @kanbanUserstoriesService.resetFolds() else if @.zoomLevel > 2 && previousZoomLevel <= 2 @.zoomLoading = true @.loadUserstories().then () => @.zoomLoading = false @kanbanUserstoriesService.resetFolds() filtersReloadContent: () -> @.loadUserstories().then () => openArchived = _.difference(@kanbanUserstoriesService.archivedStatus, @kanbanUserstoriesService.statusHide) if openArchived.length for statusId in openArchived @.loadUserStoriesForStatus({}, statusId) initializeEventHandlers: -> @scope.$on "usform:new:success", (event, us) => @.refreshTagsColors().then () => @kanbanUserstoriesService.add(us) @analytics.trackEvent("userstory", "create", "create userstory on kanban", 1) @scope.$on "usform:bulk:success", (event, uss) => @.refreshTagsColors().then () => @kanbanUserstoriesService.add(uss) @analytics.trackEvent("userstory", "create", "bulk create userstory on kanban", 1) @scope.$on "usform:edit:success", (event, us) => @.refreshTagsColors().then () => @kanbanUserstoriesService.replaceModel(us) @scope.$on "kanban:us:deleted", (event, us) => @.filtersReloadContent() @scope.$on("kanban:us:move", @.moveUs) @scope.$on("kanban:show-userstories-for-status", @.loadUserStoriesForStatus) @scope.$on("kanban:hide-userstories-for-status", @.hideUserStoriesForStatus) addNewUs: (type, statusId) -> switch type when "standard" then @rootscope.$broadcast("genericform:new", { 'objType': 'us', 'project': @scope.project, 'statusId': statusId }) when "bulk" then @rootscope.$broadcast("usform:bulk", @scope.projectId, statusId) editUs: (id) -> us = @kanbanUserstoriesService.getUs(id) us = us.set('loading-edit', true) @kanbanUserstoriesService.replace(us) @rs.userstories.getByRef(us.getIn(['model', 'project']), us.getIn(['model', 'ref'])) .then (editingUserStory) => @rs2.attachments.list( "us", us.get('id'), us.getIn(['model', 'project'])).then (attachments) => @rootscope.$broadcast("genericform:edit", { 'objType': 'us', 'obj': editingUserStory, 'statusList': @scope.usStatusList, 'attachments': attachments.toJS() }) us = us.set('loading-edit', false) @kanbanUserstoriesService.replace(us) deleteUs: (id) -> us = @kanbanUserstoriesService.getUs(id) us = us.set('loading-delete', true) @rs.userstories.getByRef(us.getIn(['model', 'project']), us.getIn(['model', 'ref'])) .then (deletingUserStory) => us = us.set('loading-delete', false) title = @translate.instant("US.TITLE_DELETE_ACTION") message = deletingUserStory.subject @confirm.askOnDelete(title, message).then (askResponse) => promise = @repo.remove(deletingUserStory) promise.then => @scope.$broadcast("kanban:us:deleted") askResponse.finish() promise.then null, -> askResponse.finish(false) @confirm.notify("error") showPlaceHolder: (statusId) -> if @scope.usStatusList[0].id == statusId && !@kanbanUserstoriesService.userstoriesRaw.length return true return false toggleFold: (id) -> @kanbanUserstoriesService.toggleFold(id) isUsInArchivedHiddenStatus: (usId) -> return @kanbanUserstoriesService.isUsInArchivedHiddenStatus(usId) changeUsAssignedUsers: (id) => item = @kanbanUserstoriesService.getUsModel(id) onClose = (assignedUsersIds) => item.assigned_users = assignedUsersIds if item.assigned_to not in assignedUsersIds and assignedUsersIds.length > 0 item.assigned_to = assignedUsersIds[0] if assignedUsersIds.length == 0 item.assigned_to = null @kanbanUserstoriesService.replaceModel(item) @repo.save(item).then => @.generateFilters() if @.isFilterDataTypeSelected('assigned_users') || @.isFilterDataTypeSelected('role') @.filtersReloadContent() @lightboxFactory.create( 'tg-lb-select-user', { "class": "lightbox lightbox-select-user", }, { "currentUsers": _.compact(_.union(item.assigned_users, [item.assigned_to])), "activeUsers": @scope.activeUsers, "onClose": onClose, "lbTitle": @translate.instant("COMMON.ASSIGNED_USERS.ADD"), } ) refreshTagsColors: -> return @rs.projects.tagsColors(@scope.projectId).then (tags_colors) => @scope.project.tags_colors = tags_colors._attrs renderBatch: () -> @.rendered = _.concat(@.rendered, _.take(@.queue, @.batchSize)) @.queue = _.drop(@.queue, @.batchSize) @kanbanUserstoriesService.set(@.rendered) if @.queue.length > 0 @timeout(@.renderBatch) else scopeDefer @scope, => # The broadcast must be executed when the DOM has been fully reloaded. # We can't assure when this exactly happens so we need a defer @rootscope.$broadcast("kanban:userstories:loaded", @.rendered) @scope.$broadcast("userstories:loaded", @.rendered) renderUserStories: (userstories) => userstories = _.sortBy(userstories, 'kanban_order') userstoriesMap = _.groupBy(userstories, 'status') @.rendered = [] @.queue = [] @.batchSize = 0 while (@.queue.length < userstories.length) _.each @scope.project.us_statuses, (x) => if (userstoriesMap[x.id]?.length > 0) @.queue = _.concat(@.queue, _.take(userstoriesMap[x.id], 3)) userstoriesMap[x.id] = _.drop(userstoriesMap[x.id], 3) if !@.batchSize @.batchSize = @.queue.length @timeout(@.renderBatch) loadUserstories: () -> params = { status__is_archived: false } if @.zoomLevel > 2 params.include_attachments = 1 params.include_tasks = 1 params = _.merge params, @location.search() promise = @rs.userstories.listAll(@scope.projectId, params).then (userstories) => @kanbanUserstoriesService.init(@scope.project, @scope.usersById) @tgLoader.pageLoaded() @.renderUserStories(userstories) return userstories promise.then( => @scope.$broadcast("redraw:wip")) return promise loadUserStoriesForStatus: (ctx, statusId) -> filteredStatus = @location.search().status # if there are filters applied the action doesn't end if the statusId is not in the url if filteredStatus filteredStatus = filteredStatus.split(",").map (it) -> parseInt(it, 10) return if filteredStatus.indexOf(statusId) == -1 params = { status: statusId include_attachments: true, include_tasks: true } params = _.merge params, @location.search() return @rs.userstories.listAll(@scope.projectId, params).then (userstories) => @scope.$broadcast("kanban:shown-userstories-for-status", statusId, userstories) return userstories hideUserStoriesForStatus: (ctx, statusId) -> @scope.$broadcast("kanban:hidden-userstories-for-status", statusId) loadKanban: -> return @q.all([ @.refreshTagsColors(), @.loadUserstories() ]) loadProject: -> project = @projectService.project.toJS() if not project.is_kanban_activated @errorHandlingService.permissionDenied() @scope.projectId = project.id @scope.project = project @scope.projectId = project.id @scope.points = _.sortBy(project.points, "order") @scope.pointsById = groupBy(project.points, (x) -> x.id) @scope.usStatusById = groupBy(project.us_statuses, (x) -> x.id) @scope.usStatusList = _.sortBy(project.us_statuses, "order") @scope.$emit("project:loaded", project) return project initializeSubscription: -> routingKey1 = "changes.project.#{@scope.projectId}.userstories" randomTimeout = taiga.randomInt(700, 1000) @events.subscribe @scope, routingKey1, debounceLeading(randomTimeout, (message) => @.loadUserstories()) loadInitialData: -> project = @.loadProject() @.fillUsersAndRoles(project.members, project.roles) @.initializeSubscription() @.loadKanban() @.generateFilters() # Utils methods prepareBulkUpdateData: (uses, field="kanban_order") -> return _.map(uses, (x) -> {"us_id": x.id, "order": x[field]}) moveUs: (ctx, usList, newStatusId, index) -> @.cleanSelectedUss() usList = _.map usList, (us) => return @kanbanUserstoriesService.getUsModel(us.id) @rootscope.$broadcast("kanban:userstories:loaded", usList, newStatusId, index) data = @kanbanUserstoriesService.move(usList, newStatusId, index) promise = @rs.userstories.bulkUpdateKanbanOrder(@scope.projectId, newStatusId, data.bulkOrders) promise.then () => # saving # drag single or different status options = { headers: { "set-orders": JSON.stringify(data.setOrders) } } params = { include_attachments: true, include_tasks: true } promises = _.map usList, (us) => @repo.save(us, true, params, options, true) promise = @q.all(promises) promise.then (result) => headers = result[1] if headers && headers['taiga-info-order-updated'] order = JSON.parse(headers['taiga-info-order-updated']) @kanbanUserstoriesService.assignOrders(order) @scope.$broadcast("redraw:wip") @.generateFilters() if @.isFilterDataTypeSelected('status') @.filtersReloadContent() return promise module.controller("KanbanController", KanbanController) ############################################################################# ## Kanban Directive ############################################################################# KanbanDirective = ($repo, $rootscope) -> link = ($scope, $el, $attrs) -> tableBodyDom = $el.find(".kanban-table-body") tableBodyDom.on "scroll", (event) -> target = angular.element(event.currentTarget) tableHeaderDom = $el.find(".kanban-table-header .kanban-table-inner") tableHeaderDom.css("left", -1 * target.scrollLeft()) $scope.$on "$destroy", -> $el.off() return {link: link} module.directive("tgKanban", ["$tgRepo", "$rootScope", KanbanDirective]) ############################################################################# ## Kanban Archived Status Column Header Control ############################################################################# KanbanArchivedStatusHeaderDirective = ($rootscope, $translate, kanbanUserstoriesService) -> showArchivedText = $translate.instant("KANBAN.ACTION_SHOW_ARCHIVED") hideArchivedText = $translate.instant("KANBAN.ACTION_HIDE_ARCHIVED") link = ($scope, $el, $attrs) -> status = $scope.$eval($attrs.tgKanbanArchivedStatusHeader) hidden = true kanbanUserstoriesService.addArchivedStatus(status.id) kanbanUserstoriesService.hideStatus(status.id) $scope.class = "icon-watch" $scope.title = showArchivedText $el.on "click", (event) -> hidden = not hidden $scope.$apply -> if hidden $scope.class = "icon-watch" $scope.title = showArchivedText $rootscope.$broadcast("kanban:hide-userstories-for-status", status.id) kanbanUserstoriesService.hideStatus(status.id) else $scope.class = "icon-unwatch" $scope.title = hideArchivedText $rootscope.$broadcast("kanban:show-userstories-for-status", status.id) kanbanUserstoriesService.showStatus(status.id) $scope.$on "$destroy", -> $el.off() return {link:link} module.directive("tgKanbanArchivedStatusHeader", [ "$rootScope", "$translate", "tgKanbanUserstories", KanbanArchivedStatusHeaderDirective]) ############################################################################# ## Kanban Archived Status Column Intro Directive ############################################################################# KanbanArchivedStatusIntroDirective = ($translate, kanbanUserstoriesService) -> userStories = [] link = ($scope, $el, $attrs) -> hiddenUserStoriexText = $translate.instant("KANBAN.HIDDEN_USER_STORIES") status = $scope.$eval($attrs.tgKanbanArchivedStatusIntro) $el.text(hiddenUserStoriexText) updateIntroText = (hasArchived) -> if hasArchived $el.text("") else $el.text(hiddenUserStoriexText) $scope.$on "kanban:us:move", (ctx, itemUs, oldStatusId, newStatusId, itemIndex) -> hasArchived = !!kanbanUserstoriesService.getStatus(newStatusId).length updateIntroText(hasArchived) $scope.$on "kanban:shown-userstories-for-status", (ctx, statusId, userStoriesLoaded) -> if statusId == status.id kanbanUserstoriesService.deleteStatus(statusId) kanbanUserstoriesService.add(userStoriesLoaded) hasArchived = !!kanbanUserstoriesService.getStatus(statusId).length updateIntroText(hasArchived) $scope.$on "kanban:hidden-userstories-for-status", (ctx, statusId) -> if statusId == status.id updateIntroText(false) $scope.$on "$destroy", -> $el.off() return {link:link} module.directive("tgKanbanArchivedStatusIntro", ["$translate", "tgKanbanUserstories", KanbanArchivedStatusIntroDirective]) ############################################################################# ## Kanban Squish Column Directive ############################################################################# KanbanSquishColumnDirective = (rs, projectService) -> link = ($scope, $el, $attrs) -> $scope.foldStatus = (status) -> $scope.folds[status.id] = !!!$scope.folds[status.id] rs.kanban.storeStatusColumnModes($scope.projectId, $scope.folds) updateTableWidth() return updateTableWidth = -> columnWidths = _.map $scope.usStatusList, (status) -> if $scope.folds[status.id] return 40 else return 310 totalWidth = _.reduce columnWidths, (total, width) -> return total + width $el.find('.kanban-table-inner').css("width", totalWidth) unwatch = $scope.$watch 'usByStatus', (usByStatus) -> if usByStatus?.size $scope.folds = rs.kanban.getStatusColumnModes(projectService.project.get('id')) updateTableWidth() unwatch() return {link: link} module.directive("tgKanbanSquishColumn", ["$tgResources", "tgProjectService", KanbanSquishColumnDirective]) ############################################################################# ## Kanban WIP Limit Directive ############################################################################# KanbanWipLimitDirective = ($timeout) -> link = ($scope, $el, $attrs) -> status = $scope.$eval($attrs.tgKanbanWipLimit) redrawWipLimit = => $el.find(".kanban-wip-limit").remove() $timeout => element = $el.find("tg-card")[status.wip_limit] if element angular.element(element).before("<div class='kanban-wip-limit'></div>") if status and not status.is_archived $scope.$on "redraw:wip", redrawWipLimit $scope.$on "kanban:us:move", redrawWipLimit $scope.$on "usform:new:success", redrawWipLimit $scope.$on "usform:bulk:success", redrawWipLimit $scope.$on "$destroy", -> $el.off() return {link: link} module.directive("tgKanbanWipLimit", ["$timeout", KanbanWipLimitDirective])
46986
### # Copyright (C) 2014-2018 Taiga Agile LLC # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. # # File: modules/kanban/main.coffee ### taiga = @.taiga mixOf = @.taiga.mixOf toggleText = @.taiga.toggleText scopeDefer = @.taiga.scopeDefer bindOnce = @.taiga.bindOnce groupBy = @.taiga.groupBy timeout = @.taiga.timeout bindMethods = @.taiga.bindMethods debounceLeading = @.taiga.debounceLeading module = angular.module("taigaKanban") ############################################################################# ## Kanban Controller ############################################################################# class KanbanController extends mixOf(taiga.Controller, taiga.PageMixin, taiga.FiltersMixin, taiga.UsFiltersMixin) @.$inject = [ "$scope", "$rootScope", "$tgRepo", "$tgConfirm", "$tgResources", "tgResources", "$routeParams", "$q", "$tgLocation", "tgAppMetaService", "$tgNavUrls", "$tgEvents", "$tgAnalytics", "$translate", "tgErrorHandlingService", "$tgModel", "tgKanbanUserstories", "$tgStorage", "tgFilterRemoteStorageService", "tgProjectService", "tgLightboxFactory", "tgLoader", "$timeout" ] storeCustomFiltersName: 'kanban-custom-filters' storeFiltersName: 'kanban-filters' constructor: (@scope, @rootscope, @repo, @confirm, @rs, @rs2, @params, @q, @location, @appMetaService, @navUrls, @events, @analytics, @translate, @errorHandlingService, @model, @kanbanUserstoriesService, @storage, @filterRemoteStorageService, @projectService, @lightboxFactory, @tgLoader, @timeout) -> bindMethods(@) @kanbanUserstoriesService.reset() @.openFilter = false @.selectedUss = {} return if @.applyStoredFilters(@params.pslug, "kanban-filters") @scope.sectionName = @translate.instant("KANBAN.SECTION_NAME") @.initializeEventHandlers() taiga.defineImmutableProperty @.scope, "usByStatus", () => return @kanbanUserstoriesService.usByStatus cleanSelectedUss: () -> for key of @.selectedUss @.selectedUss[key] = false toggleSelectedUs: (usId) -> @.selectedUss[usId] = !@.selectedUss[usId] firstLoad: () -> promise = @.loadInitialData() # On Success promise.then => title = @translate.instant("KANBAN.PAGE_TITLE", {projectName: @scope.project.name}) description = @translate.instant("KANBAN.PAGE_DESCRIPTION", { projectName: @scope.project.name, projectDescription: @scope.project.description }) @appMetaService.setAll(title, description) # On Error promise.then null, @.onInitialDataError.bind(@) setZoom: (zoomLevel, zoom) -> if @.zoomLevel == zoomLevel return null @.isFirstLoad = !@.zoomLevel previousZoomLevel = @.zoomLevel @.zoomLevel = zoomLevel @.zoom = zoom if @.isFirstLoad @.firstLoad().then () => @.isFirstLoad = false @kanbanUserstoriesService.resetFolds() else if @.zoomLevel > 2 && previousZoomLevel <= 2 @.zoomLoading = true @.loadUserstories().then () => @.zoomLoading = false @kanbanUserstoriesService.resetFolds() filtersReloadContent: () -> @.loadUserstories().then () => openArchived = _.difference(@kanbanUserstoriesService.archivedStatus, @kanbanUserstoriesService.statusHide) if openArchived.length for statusId in openArchived @.loadUserStoriesForStatus({}, statusId) initializeEventHandlers: -> @scope.$on "usform:new:success", (event, us) => @.refreshTagsColors().then () => @kanbanUserstoriesService.add(us) @analytics.trackEvent("userstory", "create", "create userstory on kanban", 1) @scope.$on "usform:bulk:success", (event, uss) => @.refreshTagsColors().then () => @kanbanUserstoriesService.add(uss) @analytics.trackEvent("userstory", "create", "bulk create userstory on kanban", 1) @scope.$on "usform:edit:success", (event, us) => @.refreshTagsColors().then () => @kanbanUserstoriesService.replaceModel(us) @scope.$on "kanban:us:deleted", (event, us) => @.filtersReloadContent() @scope.$on("kanban:us:move", @.moveUs) @scope.$on("kanban:show-userstories-for-status", @.loadUserStoriesForStatus) @scope.$on("kanban:hide-userstories-for-status", @.hideUserStoriesForStatus) addNewUs: (type, statusId) -> switch type when "standard" then @rootscope.$broadcast("genericform:new", { 'objType': 'us', 'project': @scope.project, 'statusId': statusId }) when "bulk" then @rootscope.$broadcast("usform:bulk", @scope.projectId, statusId) editUs: (id) -> us = @kanbanUserstoriesService.getUs(id) us = us.set('loading-edit', true) @kanbanUserstoriesService.replace(us) @rs.userstories.getByRef(us.getIn(['model', 'project']), us.getIn(['model', 'ref'])) .then (editingUserStory) => @rs2.attachments.list( "us", us.get('id'), us.getIn(['model', 'project'])).then (attachments) => @rootscope.$broadcast("genericform:edit", { 'objType': 'us', 'obj': editingUserStory, 'statusList': @scope.usStatusList, 'attachments': attachments.toJS() }) us = us.set('loading-edit', false) @kanbanUserstoriesService.replace(us) deleteUs: (id) -> us = @kanbanUserstoriesService.getUs(id) us = us.set('loading-delete', true) @rs.userstories.getByRef(us.getIn(['model', 'project']), us.getIn(['model', 'ref'])) .then (deletingUserStory) => us = us.set('loading-delete', false) title = @translate.instant("US.TITLE_DELETE_ACTION") message = deletingUserStory.subject @confirm.askOnDelete(title, message).then (askResponse) => promise = @repo.remove(deletingUserStory) promise.then => @scope.$broadcast("kanban:us:deleted") askResponse.finish() promise.then null, -> askResponse.finish(false) @confirm.notify("error") showPlaceHolder: (statusId) -> if @scope.usStatusList[0].id == statusId && !@kanbanUserstoriesService.userstoriesRaw.length return true return false toggleFold: (id) -> @kanbanUserstoriesService.toggleFold(id) isUsInArchivedHiddenStatus: (usId) -> return @kanbanUserstoriesService.isUsInArchivedHiddenStatus(usId) changeUsAssignedUsers: (id) => item = @kanbanUserstoriesService.getUsModel(id) onClose = (assignedUsersIds) => item.assigned_users = assignedUsersIds if item.assigned_to not in assignedUsersIds and assignedUsersIds.length > 0 item.assigned_to = assignedUsersIds[0] if assignedUsersIds.length == 0 item.assigned_to = null @kanbanUserstoriesService.replaceModel(item) @repo.save(item).then => @.generateFilters() if @.isFilterDataTypeSelected('assigned_users') || @.isFilterDataTypeSelected('role') @.filtersReloadContent() @lightboxFactory.create( 'tg-lb-select-user', { "class": "lightbox lightbox-select-user", }, { "currentUsers": _.compact(_.union(item.assigned_users, [item.assigned_to])), "activeUsers": @scope.activeUsers, "onClose": onClose, "lbTitle": @translate.instant("COMMON.ASSIGNED_USERS.ADD"), } ) refreshTagsColors: -> return @rs.projects.tagsColors(@scope.projectId).then (tags_colors) => @scope.project.tags_colors = tags_colors._attrs renderBatch: () -> @.rendered = _.concat(@.rendered, _.take(@.queue, @.batchSize)) @.queue = _.drop(@.queue, @.batchSize) @kanbanUserstoriesService.set(@.rendered) if @.queue.length > 0 @timeout(@.renderBatch) else scopeDefer @scope, => # The broadcast must be executed when the DOM has been fully reloaded. # We can't assure when this exactly happens so we need a defer @rootscope.$broadcast("kanban:userstories:loaded", @.rendered) @scope.$broadcast("userstories:loaded", @.rendered) renderUserStories: (userstories) => userstories = _.sortBy(userstories, 'kanban_order') userstoriesMap = _.groupBy(userstories, 'status') @.rendered = [] @.queue = [] @.batchSize = 0 while (@.queue.length < userstories.length) _.each @scope.project.us_statuses, (x) => if (userstoriesMap[x.id]?.length > 0) @.queue = _.concat(@.queue, _.take(userstoriesMap[x.id], 3)) userstoriesMap[x.id] = _.drop(userstoriesMap[x.id], 3) if !@.batchSize @.batchSize = @.queue.length @timeout(@.renderBatch) loadUserstories: () -> params = { status__is_archived: false } if @.zoomLevel > 2 params.include_attachments = 1 params.include_tasks = 1 params = _.merge params, @location.search() promise = @rs.userstories.listAll(@scope.projectId, params).then (userstories) => @kanbanUserstoriesService.init(@scope.project, @scope.usersById) @tgLoader.pageLoaded() @.renderUserStories(userstories) return userstories promise.then( => @scope.$broadcast("redraw:wip")) return promise loadUserStoriesForStatus: (ctx, statusId) -> filteredStatus = @location.search().status # if there are filters applied the action doesn't end if the statusId is not in the url if filteredStatus filteredStatus = filteredStatus.split(",").map (it) -> parseInt(it, 10) return if filteredStatus.indexOf(statusId) == -1 params = { status: statusId include_attachments: true, include_tasks: true } params = _.merge params, @location.search() return @rs.userstories.listAll(@scope.projectId, params).then (userstories) => @scope.$broadcast("kanban:shown-userstories-for-status", statusId, userstories) return userstories hideUserStoriesForStatus: (ctx, statusId) -> @scope.$broadcast("kanban:hidden-userstories-for-status", statusId) loadKanban: -> return @q.all([ @.refreshTagsColors(), @.loadUserstories() ]) loadProject: -> project = @projectService.project.toJS() if not project.is_kanban_activated @errorHandlingService.permissionDenied() @scope.projectId = project.id @scope.project = project @scope.projectId = project.id @scope.points = _.sortBy(project.points, "order") @scope.pointsById = groupBy(project.points, (x) -> x.id) @scope.usStatusById = groupBy(project.us_statuses, (x) -> x.id) @scope.usStatusList = _.sortBy(project.us_statuses, "order") @scope.$emit("project:loaded", project) return project initializeSubscription: -> routingKey1 = "changes<KEY>.project.#{@scope.projectId}.userstories" randomTimeout = taiga.randomInt(700, 1000) @events.subscribe @scope, routingKey1, debounceLeading(randomTimeout, (message) => @.loadUserstories()) loadInitialData: -> project = @.loadProject() @.fillUsersAndRoles(project.members, project.roles) @.initializeSubscription() @.loadKanban() @.generateFilters() # Utils methods prepareBulkUpdateData: (uses, field="kanban_order") -> return _.map(uses, (x) -> {"us_id": x.id, "order": x[field]}) moveUs: (ctx, usList, newStatusId, index) -> @.cleanSelectedUss() usList = _.map usList, (us) => return @kanbanUserstoriesService.getUsModel(us.id) @rootscope.$broadcast("kanban:userstories:loaded", usList, newStatusId, index) data = @kanbanUserstoriesService.move(usList, newStatusId, index) promise = @rs.userstories.bulkUpdateKanbanOrder(@scope.projectId, newStatusId, data.bulkOrders) promise.then () => # saving # drag single or different status options = { headers: { "set-orders": JSON.stringify(data.setOrders) } } params = { include_attachments: true, include_tasks: true } promises = _.map usList, (us) => @repo.save(us, true, params, options, true) promise = @q.all(promises) promise.then (result) => headers = result[1] if headers && headers['taiga-info-order-updated'] order = JSON.parse(headers['taiga-info-order-updated']) @kanbanUserstoriesService.assignOrders(order) @scope.$broadcast("redraw:wip") @.generateFilters() if @.isFilterDataTypeSelected('status') @.filtersReloadContent() return promise module.controller("KanbanController", KanbanController) ############################################################################# ## Kanban Directive ############################################################################# KanbanDirective = ($repo, $rootscope) -> link = ($scope, $el, $attrs) -> tableBodyDom = $el.find(".kanban-table-body") tableBodyDom.on "scroll", (event) -> target = angular.element(event.currentTarget) tableHeaderDom = $el.find(".kanban-table-header .kanban-table-inner") tableHeaderDom.css("left", -1 * target.scrollLeft()) $scope.$on "$destroy", -> $el.off() return {link: link} module.directive("tgKanban", ["$tgRepo", "$rootScope", KanbanDirective]) ############################################################################# ## Kanban Archived Status Column Header Control ############################################################################# KanbanArchivedStatusHeaderDirective = ($rootscope, $translate, kanbanUserstoriesService) -> showArchivedText = $translate.instant("KANBAN.ACTION_SHOW_ARCHIVED") hideArchivedText = $translate.instant("KANBAN.ACTION_HIDE_ARCHIVED") link = ($scope, $el, $attrs) -> status = $scope.$eval($attrs.tgKanbanArchivedStatusHeader) hidden = true kanbanUserstoriesService.addArchivedStatus(status.id) kanbanUserstoriesService.hideStatus(status.id) $scope.class = "icon-watch" $scope.title = showArchivedText $el.on "click", (event) -> hidden = not hidden $scope.$apply -> if hidden $scope.class = "icon-watch" $scope.title = showArchivedText $rootscope.$broadcast("kanban:hide-userstories-for-status", status.id) kanbanUserstoriesService.hideStatus(status.id) else $scope.class = "icon-unwatch" $scope.title = hideArchivedText $rootscope.$broadcast("kanban:show-userstories-for-status", status.id) kanbanUserstoriesService.showStatus(status.id) $scope.$on "$destroy", -> $el.off() return {link:link} module.directive("tgKanbanArchivedStatusHeader", [ "$rootScope", "$translate", "tgKanbanUserstories", KanbanArchivedStatusHeaderDirective]) ############################################################################# ## Kanban Archived Status Column Intro Directive ############################################################################# KanbanArchivedStatusIntroDirective = ($translate, kanbanUserstoriesService) -> userStories = [] link = ($scope, $el, $attrs) -> hiddenUserStoriexText = $translate.instant("KANBAN.HIDDEN_USER_STORIES") status = $scope.$eval($attrs.tgKanbanArchivedStatusIntro) $el.text(hiddenUserStoriexText) updateIntroText = (hasArchived) -> if hasArchived $el.text("") else $el.text(hiddenUserStoriexText) $scope.$on "kanban:us:move", (ctx, itemUs, oldStatusId, newStatusId, itemIndex) -> hasArchived = !!kanbanUserstoriesService.getStatus(newStatusId).length updateIntroText(hasArchived) $scope.$on "kanban:shown-userstories-for-status", (ctx, statusId, userStoriesLoaded) -> if statusId == status.id kanbanUserstoriesService.deleteStatus(statusId) kanbanUserstoriesService.add(userStoriesLoaded) hasArchived = !!kanbanUserstoriesService.getStatus(statusId).length updateIntroText(hasArchived) $scope.$on "kanban:hidden-userstories-for-status", (ctx, statusId) -> if statusId == status.id updateIntroText(false) $scope.$on "$destroy", -> $el.off() return {link:link} module.directive("tgKanbanArchivedStatusIntro", ["$translate", "tgKanbanUserstories", KanbanArchivedStatusIntroDirective]) ############################################################################# ## Kanban Squish Column Directive ############################################################################# KanbanSquishColumnDirective = (rs, projectService) -> link = ($scope, $el, $attrs) -> $scope.foldStatus = (status) -> $scope.folds[status.id] = !!!$scope.folds[status.id] rs.kanban.storeStatusColumnModes($scope.projectId, $scope.folds) updateTableWidth() return updateTableWidth = -> columnWidths = _.map $scope.usStatusList, (status) -> if $scope.folds[status.id] return 40 else return 310 totalWidth = _.reduce columnWidths, (total, width) -> return total + width $el.find('.kanban-table-inner').css("width", totalWidth) unwatch = $scope.$watch 'usByStatus', (usByStatus) -> if usByStatus?.size $scope.folds = rs.kanban.getStatusColumnModes(projectService.project.get('id')) updateTableWidth() unwatch() return {link: link} module.directive("tgKanbanSquishColumn", ["$tgResources", "tgProjectService", KanbanSquishColumnDirective]) ############################################################################# ## Kanban WIP Limit Directive ############################################################################# KanbanWipLimitDirective = ($timeout) -> link = ($scope, $el, $attrs) -> status = $scope.$eval($attrs.tgKanbanWipLimit) redrawWipLimit = => $el.find(".kanban-wip-limit").remove() $timeout => element = $el.find("tg-card")[status.wip_limit] if element angular.element(element).before("<div class='kanban-wip-limit'></div>") if status and not status.is_archived $scope.$on "redraw:wip", redrawWipLimit $scope.$on "kanban:us:move", redrawWipLimit $scope.$on "usform:new:success", redrawWipLimit $scope.$on "usform:bulk:success", redrawWipLimit $scope.$on "$destroy", -> $el.off() return {link: link} module.directive("tgKanbanWipLimit", ["$timeout", KanbanWipLimitDirective])
true
### # Copyright (C) 2014-2018 Taiga Agile LLC # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. # # File: modules/kanban/main.coffee ### taiga = @.taiga mixOf = @.taiga.mixOf toggleText = @.taiga.toggleText scopeDefer = @.taiga.scopeDefer bindOnce = @.taiga.bindOnce groupBy = @.taiga.groupBy timeout = @.taiga.timeout bindMethods = @.taiga.bindMethods debounceLeading = @.taiga.debounceLeading module = angular.module("taigaKanban") ############################################################################# ## Kanban Controller ############################################################################# class KanbanController extends mixOf(taiga.Controller, taiga.PageMixin, taiga.FiltersMixin, taiga.UsFiltersMixin) @.$inject = [ "$scope", "$rootScope", "$tgRepo", "$tgConfirm", "$tgResources", "tgResources", "$routeParams", "$q", "$tgLocation", "tgAppMetaService", "$tgNavUrls", "$tgEvents", "$tgAnalytics", "$translate", "tgErrorHandlingService", "$tgModel", "tgKanbanUserstories", "$tgStorage", "tgFilterRemoteStorageService", "tgProjectService", "tgLightboxFactory", "tgLoader", "$timeout" ] storeCustomFiltersName: 'kanban-custom-filters' storeFiltersName: 'kanban-filters' constructor: (@scope, @rootscope, @repo, @confirm, @rs, @rs2, @params, @q, @location, @appMetaService, @navUrls, @events, @analytics, @translate, @errorHandlingService, @model, @kanbanUserstoriesService, @storage, @filterRemoteStorageService, @projectService, @lightboxFactory, @tgLoader, @timeout) -> bindMethods(@) @kanbanUserstoriesService.reset() @.openFilter = false @.selectedUss = {} return if @.applyStoredFilters(@params.pslug, "kanban-filters") @scope.sectionName = @translate.instant("KANBAN.SECTION_NAME") @.initializeEventHandlers() taiga.defineImmutableProperty @.scope, "usByStatus", () => return @kanbanUserstoriesService.usByStatus cleanSelectedUss: () -> for key of @.selectedUss @.selectedUss[key] = false toggleSelectedUs: (usId) -> @.selectedUss[usId] = !@.selectedUss[usId] firstLoad: () -> promise = @.loadInitialData() # On Success promise.then => title = @translate.instant("KANBAN.PAGE_TITLE", {projectName: @scope.project.name}) description = @translate.instant("KANBAN.PAGE_DESCRIPTION", { projectName: @scope.project.name, projectDescription: @scope.project.description }) @appMetaService.setAll(title, description) # On Error promise.then null, @.onInitialDataError.bind(@) setZoom: (zoomLevel, zoom) -> if @.zoomLevel == zoomLevel return null @.isFirstLoad = !@.zoomLevel previousZoomLevel = @.zoomLevel @.zoomLevel = zoomLevel @.zoom = zoom if @.isFirstLoad @.firstLoad().then () => @.isFirstLoad = false @kanbanUserstoriesService.resetFolds() else if @.zoomLevel > 2 && previousZoomLevel <= 2 @.zoomLoading = true @.loadUserstories().then () => @.zoomLoading = false @kanbanUserstoriesService.resetFolds() filtersReloadContent: () -> @.loadUserstories().then () => openArchived = _.difference(@kanbanUserstoriesService.archivedStatus, @kanbanUserstoriesService.statusHide) if openArchived.length for statusId in openArchived @.loadUserStoriesForStatus({}, statusId) initializeEventHandlers: -> @scope.$on "usform:new:success", (event, us) => @.refreshTagsColors().then () => @kanbanUserstoriesService.add(us) @analytics.trackEvent("userstory", "create", "create userstory on kanban", 1) @scope.$on "usform:bulk:success", (event, uss) => @.refreshTagsColors().then () => @kanbanUserstoriesService.add(uss) @analytics.trackEvent("userstory", "create", "bulk create userstory on kanban", 1) @scope.$on "usform:edit:success", (event, us) => @.refreshTagsColors().then () => @kanbanUserstoriesService.replaceModel(us) @scope.$on "kanban:us:deleted", (event, us) => @.filtersReloadContent() @scope.$on("kanban:us:move", @.moveUs) @scope.$on("kanban:show-userstories-for-status", @.loadUserStoriesForStatus) @scope.$on("kanban:hide-userstories-for-status", @.hideUserStoriesForStatus) addNewUs: (type, statusId) -> switch type when "standard" then @rootscope.$broadcast("genericform:new", { 'objType': 'us', 'project': @scope.project, 'statusId': statusId }) when "bulk" then @rootscope.$broadcast("usform:bulk", @scope.projectId, statusId) editUs: (id) -> us = @kanbanUserstoriesService.getUs(id) us = us.set('loading-edit', true) @kanbanUserstoriesService.replace(us) @rs.userstories.getByRef(us.getIn(['model', 'project']), us.getIn(['model', 'ref'])) .then (editingUserStory) => @rs2.attachments.list( "us", us.get('id'), us.getIn(['model', 'project'])).then (attachments) => @rootscope.$broadcast("genericform:edit", { 'objType': 'us', 'obj': editingUserStory, 'statusList': @scope.usStatusList, 'attachments': attachments.toJS() }) us = us.set('loading-edit', false) @kanbanUserstoriesService.replace(us) deleteUs: (id) -> us = @kanbanUserstoriesService.getUs(id) us = us.set('loading-delete', true) @rs.userstories.getByRef(us.getIn(['model', 'project']), us.getIn(['model', 'ref'])) .then (deletingUserStory) => us = us.set('loading-delete', false) title = @translate.instant("US.TITLE_DELETE_ACTION") message = deletingUserStory.subject @confirm.askOnDelete(title, message).then (askResponse) => promise = @repo.remove(deletingUserStory) promise.then => @scope.$broadcast("kanban:us:deleted") askResponse.finish() promise.then null, -> askResponse.finish(false) @confirm.notify("error") showPlaceHolder: (statusId) -> if @scope.usStatusList[0].id == statusId && !@kanbanUserstoriesService.userstoriesRaw.length return true return false toggleFold: (id) -> @kanbanUserstoriesService.toggleFold(id) isUsInArchivedHiddenStatus: (usId) -> return @kanbanUserstoriesService.isUsInArchivedHiddenStatus(usId) changeUsAssignedUsers: (id) => item = @kanbanUserstoriesService.getUsModel(id) onClose = (assignedUsersIds) => item.assigned_users = assignedUsersIds if item.assigned_to not in assignedUsersIds and assignedUsersIds.length > 0 item.assigned_to = assignedUsersIds[0] if assignedUsersIds.length == 0 item.assigned_to = null @kanbanUserstoriesService.replaceModel(item) @repo.save(item).then => @.generateFilters() if @.isFilterDataTypeSelected('assigned_users') || @.isFilterDataTypeSelected('role') @.filtersReloadContent() @lightboxFactory.create( 'tg-lb-select-user', { "class": "lightbox lightbox-select-user", }, { "currentUsers": _.compact(_.union(item.assigned_users, [item.assigned_to])), "activeUsers": @scope.activeUsers, "onClose": onClose, "lbTitle": @translate.instant("COMMON.ASSIGNED_USERS.ADD"), } ) refreshTagsColors: -> return @rs.projects.tagsColors(@scope.projectId).then (tags_colors) => @scope.project.tags_colors = tags_colors._attrs renderBatch: () -> @.rendered = _.concat(@.rendered, _.take(@.queue, @.batchSize)) @.queue = _.drop(@.queue, @.batchSize) @kanbanUserstoriesService.set(@.rendered) if @.queue.length > 0 @timeout(@.renderBatch) else scopeDefer @scope, => # The broadcast must be executed when the DOM has been fully reloaded. # We can't assure when this exactly happens so we need a defer @rootscope.$broadcast("kanban:userstories:loaded", @.rendered) @scope.$broadcast("userstories:loaded", @.rendered) renderUserStories: (userstories) => userstories = _.sortBy(userstories, 'kanban_order') userstoriesMap = _.groupBy(userstories, 'status') @.rendered = [] @.queue = [] @.batchSize = 0 while (@.queue.length < userstories.length) _.each @scope.project.us_statuses, (x) => if (userstoriesMap[x.id]?.length > 0) @.queue = _.concat(@.queue, _.take(userstoriesMap[x.id], 3)) userstoriesMap[x.id] = _.drop(userstoriesMap[x.id], 3) if !@.batchSize @.batchSize = @.queue.length @timeout(@.renderBatch) loadUserstories: () -> params = { status__is_archived: false } if @.zoomLevel > 2 params.include_attachments = 1 params.include_tasks = 1 params = _.merge params, @location.search() promise = @rs.userstories.listAll(@scope.projectId, params).then (userstories) => @kanbanUserstoriesService.init(@scope.project, @scope.usersById) @tgLoader.pageLoaded() @.renderUserStories(userstories) return userstories promise.then( => @scope.$broadcast("redraw:wip")) return promise loadUserStoriesForStatus: (ctx, statusId) -> filteredStatus = @location.search().status # if there are filters applied the action doesn't end if the statusId is not in the url if filteredStatus filteredStatus = filteredStatus.split(",").map (it) -> parseInt(it, 10) return if filteredStatus.indexOf(statusId) == -1 params = { status: statusId include_attachments: true, include_tasks: true } params = _.merge params, @location.search() return @rs.userstories.listAll(@scope.projectId, params).then (userstories) => @scope.$broadcast("kanban:shown-userstories-for-status", statusId, userstories) return userstories hideUserStoriesForStatus: (ctx, statusId) -> @scope.$broadcast("kanban:hidden-userstories-for-status", statusId) loadKanban: -> return @q.all([ @.refreshTagsColors(), @.loadUserstories() ]) loadProject: -> project = @projectService.project.toJS() if not project.is_kanban_activated @errorHandlingService.permissionDenied() @scope.projectId = project.id @scope.project = project @scope.projectId = project.id @scope.points = _.sortBy(project.points, "order") @scope.pointsById = groupBy(project.points, (x) -> x.id) @scope.usStatusById = groupBy(project.us_statuses, (x) -> x.id) @scope.usStatusList = _.sortBy(project.us_statuses, "order") @scope.$emit("project:loaded", project) return project initializeSubscription: -> routingKey1 = "changesPI:KEY:<KEY>END_PI.project.#{@scope.projectId}.userstories" randomTimeout = taiga.randomInt(700, 1000) @events.subscribe @scope, routingKey1, debounceLeading(randomTimeout, (message) => @.loadUserstories()) loadInitialData: -> project = @.loadProject() @.fillUsersAndRoles(project.members, project.roles) @.initializeSubscription() @.loadKanban() @.generateFilters() # Utils methods prepareBulkUpdateData: (uses, field="kanban_order") -> return _.map(uses, (x) -> {"us_id": x.id, "order": x[field]}) moveUs: (ctx, usList, newStatusId, index) -> @.cleanSelectedUss() usList = _.map usList, (us) => return @kanbanUserstoriesService.getUsModel(us.id) @rootscope.$broadcast("kanban:userstories:loaded", usList, newStatusId, index) data = @kanbanUserstoriesService.move(usList, newStatusId, index) promise = @rs.userstories.bulkUpdateKanbanOrder(@scope.projectId, newStatusId, data.bulkOrders) promise.then () => # saving # drag single or different status options = { headers: { "set-orders": JSON.stringify(data.setOrders) } } params = { include_attachments: true, include_tasks: true } promises = _.map usList, (us) => @repo.save(us, true, params, options, true) promise = @q.all(promises) promise.then (result) => headers = result[1] if headers && headers['taiga-info-order-updated'] order = JSON.parse(headers['taiga-info-order-updated']) @kanbanUserstoriesService.assignOrders(order) @scope.$broadcast("redraw:wip") @.generateFilters() if @.isFilterDataTypeSelected('status') @.filtersReloadContent() return promise module.controller("KanbanController", KanbanController) ############################################################################# ## Kanban Directive ############################################################################# KanbanDirective = ($repo, $rootscope) -> link = ($scope, $el, $attrs) -> tableBodyDom = $el.find(".kanban-table-body") tableBodyDom.on "scroll", (event) -> target = angular.element(event.currentTarget) tableHeaderDom = $el.find(".kanban-table-header .kanban-table-inner") tableHeaderDom.css("left", -1 * target.scrollLeft()) $scope.$on "$destroy", -> $el.off() return {link: link} module.directive("tgKanban", ["$tgRepo", "$rootScope", KanbanDirective]) ############################################################################# ## Kanban Archived Status Column Header Control ############################################################################# KanbanArchivedStatusHeaderDirective = ($rootscope, $translate, kanbanUserstoriesService) -> showArchivedText = $translate.instant("KANBAN.ACTION_SHOW_ARCHIVED") hideArchivedText = $translate.instant("KANBAN.ACTION_HIDE_ARCHIVED") link = ($scope, $el, $attrs) -> status = $scope.$eval($attrs.tgKanbanArchivedStatusHeader) hidden = true kanbanUserstoriesService.addArchivedStatus(status.id) kanbanUserstoriesService.hideStatus(status.id) $scope.class = "icon-watch" $scope.title = showArchivedText $el.on "click", (event) -> hidden = not hidden $scope.$apply -> if hidden $scope.class = "icon-watch" $scope.title = showArchivedText $rootscope.$broadcast("kanban:hide-userstories-for-status", status.id) kanbanUserstoriesService.hideStatus(status.id) else $scope.class = "icon-unwatch" $scope.title = hideArchivedText $rootscope.$broadcast("kanban:show-userstories-for-status", status.id) kanbanUserstoriesService.showStatus(status.id) $scope.$on "$destroy", -> $el.off() return {link:link} module.directive("tgKanbanArchivedStatusHeader", [ "$rootScope", "$translate", "tgKanbanUserstories", KanbanArchivedStatusHeaderDirective]) ############################################################################# ## Kanban Archived Status Column Intro Directive ############################################################################# KanbanArchivedStatusIntroDirective = ($translate, kanbanUserstoriesService) -> userStories = [] link = ($scope, $el, $attrs) -> hiddenUserStoriexText = $translate.instant("KANBAN.HIDDEN_USER_STORIES") status = $scope.$eval($attrs.tgKanbanArchivedStatusIntro) $el.text(hiddenUserStoriexText) updateIntroText = (hasArchived) -> if hasArchived $el.text("") else $el.text(hiddenUserStoriexText) $scope.$on "kanban:us:move", (ctx, itemUs, oldStatusId, newStatusId, itemIndex) -> hasArchived = !!kanbanUserstoriesService.getStatus(newStatusId).length updateIntroText(hasArchived) $scope.$on "kanban:shown-userstories-for-status", (ctx, statusId, userStoriesLoaded) -> if statusId == status.id kanbanUserstoriesService.deleteStatus(statusId) kanbanUserstoriesService.add(userStoriesLoaded) hasArchived = !!kanbanUserstoriesService.getStatus(statusId).length updateIntroText(hasArchived) $scope.$on "kanban:hidden-userstories-for-status", (ctx, statusId) -> if statusId == status.id updateIntroText(false) $scope.$on "$destroy", -> $el.off() return {link:link} module.directive("tgKanbanArchivedStatusIntro", ["$translate", "tgKanbanUserstories", KanbanArchivedStatusIntroDirective]) ############################################################################# ## Kanban Squish Column Directive ############################################################################# KanbanSquishColumnDirective = (rs, projectService) -> link = ($scope, $el, $attrs) -> $scope.foldStatus = (status) -> $scope.folds[status.id] = !!!$scope.folds[status.id] rs.kanban.storeStatusColumnModes($scope.projectId, $scope.folds) updateTableWidth() return updateTableWidth = -> columnWidths = _.map $scope.usStatusList, (status) -> if $scope.folds[status.id] return 40 else return 310 totalWidth = _.reduce columnWidths, (total, width) -> return total + width $el.find('.kanban-table-inner').css("width", totalWidth) unwatch = $scope.$watch 'usByStatus', (usByStatus) -> if usByStatus?.size $scope.folds = rs.kanban.getStatusColumnModes(projectService.project.get('id')) updateTableWidth() unwatch() return {link: link} module.directive("tgKanbanSquishColumn", ["$tgResources", "tgProjectService", KanbanSquishColumnDirective]) ############################################################################# ## Kanban WIP Limit Directive ############################################################################# KanbanWipLimitDirective = ($timeout) -> link = ($scope, $el, $attrs) -> status = $scope.$eval($attrs.tgKanbanWipLimit) redrawWipLimit = => $el.find(".kanban-wip-limit").remove() $timeout => element = $el.find("tg-card")[status.wip_limit] if element angular.element(element).before("<div class='kanban-wip-limit'></div>") if status and not status.is_archived $scope.$on "redraw:wip", redrawWipLimit $scope.$on "kanban:us:move", redrawWipLimit $scope.$on "usform:new:success", redrawWipLimit $scope.$on "usform:bulk:success", redrawWipLimit $scope.$on "$destroy", -> $el.off() return {link: link} module.directive("tgKanbanWipLimit", ["$timeout", KanbanWipLimitDirective])
[ { "context": "nitialState: ->\r\n template:\r\n fieldName: \"title\"\r\n type: undefined\r\n custom: false\r\n ", "end": 155, "score": 0.9897066950798035, "start": 150, "tag": "NAME", "value": "title" } ]
lib/assets/javascripts/excel-i-o/export/main.js.coffee.cjsx
mystand/excel-io
1
window.ExcelMapperExportMain = React.createClass mixins: [React.addons.LinkedStateMixin], getInitialState: -> template: fieldName: "title" type: undefined custom: false fieldsData: JSON.parse(@props.fieldsData) fieldNames: JSON.parse(@props.fieldNames) sampleData: JSON.parse(@props.sampleData) downloadUrl: @props.download rules: [] types: ["text", "string", "localized", "integer", "float", "boolean", "belongs_to", "has_many"] availableFieldNames: (current = null)-> selected = _(@state.rules).pluck("fieldName") _.filter @state.fieldNames, (obj)-> obj == current || !(obj in selected) downloadExcel: -> $.ajax data: model: @props.model rules: @state.rules type: "POST" url: @props.downloadUrl success: (url) => window.location = url console.log(arguments) error: => console.log(arguments) addRule: -> newRule = _.clone(@state.template) newRule.fieldName = @availableFieldNames()[0] rules = @state.rules rules.push newRule @setRules rules, @scrollToLeft scrollToLeft: -> node = @getDOMNode() table = $ "table", node container = $ ".left-block", node left = table.width() - container.width() container.scrollLeft left getType: (name) -> @state.fieldsData[name]["type"] getCustom: (name) -> @state.fieldsData[name]["custom"] setRules: (rules, clbck) -> result = for rule, i in rules rule.number = i + 1 rule.type = @getType rule.fieldName rule.custom = @getCustom rule.fieldName rule @setState rules: result, clbck updateRule: (currentRule, newParams) -> index = @state.rules.indexOf currentRule rules = @state.rules for key, value of newParams if key is "number" value = parseInt(value) rules[index][key] = value @setRules rules removeRule: (rule) -> index = @state.rules.indexOf(rule) if index > -1 rules = [] for rule, it in @state.rules rules.push(rule) if it != index @setRules rules render: -> window.rules = @state.rules samples = for obj in @state.sampleData tds = for rule in @state.rules <td>{obj[rule.fieldName]}</td> <tr>{tds}</tr> rulesViews = for rule in @state.rules <ExcelMapperExportRule rule={rule} types={@state.types} fieldNames={@availableFieldNames(rule.fieldName)} onChange={_.partial(@updateRule, rule)} removeRule={_.partial(@removeRule, rule)} /> <div className="excel-mapper-export-container"> <div className="right-block"> <a className="btn btn-primary export-btn" onClick={@downloadExcel}>Скачать Excel</a> </div> <div className="left-block"> <table className="white-bg table-striped"> <tr>{rulesViews}<td className="add-rule-container"> { if (@availableFieldNames().length > 0) then <a className="add-rule btn btn-primary btn-sm" onClick={@addRule}> <i className="fa fa-plus"></i>Добавить столбец </a> else null} </td> </tr>{samples} </table> </div> </div>
41606
window.ExcelMapperExportMain = React.createClass mixins: [React.addons.LinkedStateMixin], getInitialState: -> template: fieldName: "<NAME>" type: undefined custom: false fieldsData: JSON.parse(@props.fieldsData) fieldNames: JSON.parse(@props.fieldNames) sampleData: JSON.parse(@props.sampleData) downloadUrl: @props.download rules: [] types: ["text", "string", "localized", "integer", "float", "boolean", "belongs_to", "has_many"] availableFieldNames: (current = null)-> selected = _(@state.rules).pluck("fieldName") _.filter @state.fieldNames, (obj)-> obj == current || !(obj in selected) downloadExcel: -> $.ajax data: model: @props.model rules: @state.rules type: "POST" url: @props.downloadUrl success: (url) => window.location = url console.log(arguments) error: => console.log(arguments) addRule: -> newRule = _.clone(@state.template) newRule.fieldName = @availableFieldNames()[0] rules = @state.rules rules.push newRule @setRules rules, @scrollToLeft scrollToLeft: -> node = @getDOMNode() table = $ "table", node container = $ ".left-block", node left = table.width() - container.width() container.scrollLeft left getType: (name) -> @state.fieldsData[name]["type"] getCustom: (name) -> @state.fieldsData[name]["custom"] setRules: (rules, clbck) -> result = for rule, i in rules rule.number = i + 1 rule.type = @getType rule.fieldName rule.custom = @getCustom rule.fieldName rule @setState rules: result, clbck updateRule: (currentRule, newParams) -> index = @state.rules.indexOf currentRule rules = @state.rules for key, value of newParams if key is "number" value = parseInt(value) rules[index][key] = value @setRules rules removeRule: (rule) -> index = @state.rules.indexOf(rule) if index > -1 rules = [] for rule, it in @state.rules rules.push(rule) if it != index @setRules rules render: -> window.rules = @state.rules samples = for obj in @state.sampleData tds = for rule in @state.rules <td>{obj[rule.fieldName]}</td> <tr>{tds}</tr> rulesViews = for rule in @state.rules <ExcelMapperExportRule rule={rule} types={@state.types} fieldNames={@availableFieldNames(rule.fieldName)} onChange={_.partial(@updateRule, rule)} removeRule={_.partial(@removeRule, rule)} /> <div className="excel-mapper-export-container"> <div className="right-block"> <a className="btn btn-primary export-btn" onClick={@downloadExcel}>Скачать Excel</a> </div> <div className="left-block"> <table className="white-bg table-striped"> <tr>{rulesViews}<td className="add-rule-container"> { if (@availableFieldNames().length > 0) then <a className="add-rule btn btn-primary btn-sm" onClick={@addRule}> <i className="fa fa-plus"></i>Добавить столбец </a> else null} </td> </tr>{samples} </table> </div> </div>
true
window.ExcelMapperExportMain = React.createClass mixins: [React.addons.LinkedStateMixin], getInitialState: -> template: fieldName: "PI:NAME:<NAME>END_PI" type: undefined custom: false fieldsData: JSON.parse(@props.fieldsData) fieldNames: JSON.parse(@props.fieldNames) sampleData: JSON.parse(@props.sampleData) downloadUrl: @props.download rules: [] types: ["text", "string", "localized", "integer", "float", "boolean", "belongs_to", "has_many"] availableFieldNames: (current = null)-> selected = _(@state.rules).pluck("fieldName") _.filter @state.fieldNames, (obj)-> obj == current || !(obj in selected) downloadExcel: -> $.ajax data: model: @props.model rules: @state.rules type: "POST" url: @props.downloadUrl success: (url) => window.location = url console.log(arguments) error: => console.log(arguments) addRule: -> newRule = _.clone(@state.template) newRule.fieldName = @availableFieldNames()[0] rules = @state.rules rules.push newRule @setRules rules, @scrollToLeft scrollToLeft: -> node = @getDOMNode() table = $ "table", node container = $ ".left-block", node left = table.width() - container.width() container.scrollLeft left getType: (name) -> @state.fieldsData[name]["type"] getCustom: (name) -> @state.fieldsData[name]["custom"] setRules: (rules, clbck) -> result = for rule, i in rules rule.number = i + 1 rule.type = @getType rule.fieldName rule.custom = @getCustom rule.fieldName rule @setState rules: result, clbck updateRule: (currentRule, newParams) -> index = @state.rules.indexOf currentRule rules = @state.rules for key, value of newParams if key is "number" value = parseInt(value) rules[index][key] = value @setRules rules removeRule: (rule) -> index = @state.rules.indexOf(rule) if index > -1 rules = [] for rule, it in @state.rules rules.push(rule) if it != index @setRules rules render: -> window.rules = @state.rules samples = for obj in @state.sampleData tds = for rule in @state.rules <td>{obj[rule.fieldName]}</td> <tr>{tds}</tr> rulesViews = for rule in @state.rules <ExcelMapperExportRule rule={rule} types={@state.types} fieldNames={@availableFieldNames(rule.fieldName)} onChange={_.partial(@updateRule, rule)} removeRule={_.partial(@removeRule, rule)} /> <div className="excel-mapper-export-container"> <div className="right-block"> <a className="btn btn-primary export-btn" onClick={@downloadExcel}>Скачать Excel</a> </div> <div className="left-block"> <table className="white-bg table-striped"> <tr>{rulesViews}<td className="add-rule-container"> { if (@availableFieldNames().length > 0) then <a className="add-rule btn btn-primary btn-sm" onClick={@addRule}> <i className="fa fa-plus"></i>Добавить столбец </a> else null} </td> </tr>{samples} </table> </div> </div>
[ { "context": "# @author alteredq / http://alteredqualia.com/\n# @author aladjev.and", "end": 18, "score": 0.972034215927124, "start": 10, "tag": "USERNAME", "value": "alteredq" }, { "context": "hor alteredq / http://alteredqualia.com/\n# @author aladjev.andrew@gmail.com\n\nclass Cloc...
source/javascripts/new_src/core/clock.coffee
andrew-aladev/three.js
0
# @author alteredq / http://alteredqualia.com/ # @author aladjev.andrew@gmail.com class Clock constructor: (autoStart) -> if autoStart is undefined @autoStart = true @startTime = 0 @oldTime = 0 @elapsedTime = 0 @running = false start: -> @startTime = Date.now() @oldTime = @startTime @running = true stop: -> @getElapsedTime() @running = false getElapsedTime: -> @elapsedTime += @getDelta() getDelta: -> diff = 0 @start() if @autoStart and not @running if @running newTime = Date.now() diff = 0.001 * (newTime - @oldTime) @oldTime = newTime @elapsedTime += diff diff namespace "THREE", (exports) -> exports.Clock = Clock
6854
# @author alteredq / http://alteredqualia.com/ # @author <EMAIL> class Clock constructor: (autoStart) -> if autoStart is undefined @autoStart = true @startTime = 0 @oldTime = 0 @elapsedTime = 0 @running = false start: -> @startTime = Date.now() @oldTime = @startTime @running = true stop: -> @getElapsedTime() @running = false getElapsedTime: -> @elapsedTime += @getDelta() getDelta: -> diff = 0 @start() if @autoStart and not @running if @running newTime = Date.now() diff = 0.001 * (newTime - @oldTime) @oldTime = newTime @elapsedTime += diff diff namespace "THREE", (exports) -> exports.Clock = Clock
true
# @author alteredq / http://alteredqualia.com/ # @author PI:EMAIL:<EMAIL>END_PI class Clock constructor: (autoStart) -> if autoStart is undefined @autoStart = true @startTime = 0 @oldTime = 0 @elapsedTime = 0 @running = false start: -> @startTime = Date.now() @oldTime = @startTime @running = true stop: -> @getElapsedTime() @running = false getElapsedTime: -> @elapsedTime += @getDelta() getDelta: -> diff = 0 @start() if @autoStart and not @running if @running newTime = Date.now() diff = 0.001 * (newTime - @oldTime) @oldTime = newTime @elapsedTime += diff diff namespace "THREE", (exports) -> exports.Clock = Clock
[ { "context": "ions\"\n\t\tauth: { user: settings.apis.v1.user, pass: settings.apis.v1.pass }\n\t\tjson: true,\n\t\ttimeout: 20 * 1000\n\t}, (error, ", "end": 3593, "score": 0.8872625827789307, "start": 3572, "tag": "PASSWORD", "value": "settings.apis.v1.pass" } ]
app/coffee/Features/User/UserGetter.coffee
davidmehren/web-sharelatex
0
mongojs = require("../../infrastructure/mongojs") metrics = require('metrics-sharelatex') logger = require('logger-sharelatex') db = mongojs.db ObjectId = mongojs.ObjectId settings = require "settings-sharelatex" request = require "request" module.exports = UserGetter = getUser: (query, projection, callback = (error, user) ->) -> if query?.email? return callback(new Error("Don't use getUser to find user by email"), null) if arguments.length == 2 callback = projection projection = {} if typeof query == "string" try query = _id: ObjectId(query) catch e return callback(null, null) else if query instanceof ObjectId query = _id: query db.users.findOne query, projection, callback getUserEmail: (userId, callback = (error, email) ->) -> @getUser userId, { email: 1 }, (error, user) -> callback(error, user?.email) getUserFullEmails: (userId, callback = (error, emails) ->) -> @getUser userId, { email: 1, emails: 1 }, (error, user) -> return callback error if error? return callback new Error('User not Found') unless user getAffiliations userId, (error, affiliationsData) -> return callback error if error? callback null, decorateFullEmails(user.email, user.emails, affiliationsData) getUserByMainEmail: (email, projection, callback = (error, user) ->) -> email = email.trim() if arguments.length == 2 callback = projection projection = {} db.users.findOne email: email, projection, callback getUserByAnyEmail: (email, projection, callback = (error, user) ->) -> email = email.trim() if arguments.length == 2 callback = projection projection = {} # $exists: true MUST be set to use the partial index query = emails: { $exists: true }, 'emails.email': email db.users.findOne query, projection, (error, user) => return callback(error, user) if error? or user? # While multiple emails are being rolled out, check for the main email as # well @getUserByMainEmail email, projection, callback getUsers: (user_ids, projection, callback = (error, users) ->) -> try user_ids = user_ids.map (u) -> ObjectId(u.toString()) catch error return callback error db.users.find { _id: { $in: user_ids} }, projection, callback getUserOrUserStubById: (user_id, projection, callback = (error, user) ->) -> try query = _id: ObjectId(user_id.toString()) catch e return callback(new Error(e)) db.users.findOne query, projection, (error, user) -> return callback(error) if error? return callback(null, user) if user? db.userstubs.findOne query, projection, callback # check for duplicate email address. This is also enforced at the DB level ensureUniqueEmailAddress: (newEmail, callback) -> @getUserByAnyEmail newEmail, (error, user) -> return callback(message: 'alread_exists') if user? callback(error) decorateFullEmails = (defaultEmail, emailsData, affiliationsData) -> emailsData.map (emailData) -> emailData.default = emailData.email == defaultEmail affiliation = affiliationsData.find (aff) -> aff.email == emailData.email if affiliation? { institution, inferred, role, department } = affiliation emailData.affiliation = { institution, inferred, role, department } else emailsData.affiliation = null emailData getAffiliations = (userId, callback = (error) ->) -> return callback(null, []) unless settings?.apis?.v1?.url # service is not configured request { method: 'GET' url: "#{settings.apis.v1.url}/api/v2/users/#{userId.toString()}/affiliations" auth: { user: settings.apis.v1.user, pass: settings.apis.v1.pass } json: true, timeout: 20 * 1000 }, (error, response, body) -> return callback(error) if error? unless 200 <= response.statusCode < 300 errorMessage = "Couldn't get affiliations: #{response.statusCode}" return callback(new Error(errorMessage)) callback(null, body) [ 'getUser', 'getUserEmail', 'getUserByMainEmail', 'getUserByAnyEmail', 'getUsers', 'getUserOrUserStubById', 'ensureUniqueEmailAddress', ].map (method) -> metrics.timeAsyncMethod UserGetter, method, 'mongo.UserGetter', logger
32588
mongojs = require("../../infrastructure/mongojs") metrics = require('metrics-sharelatex') logger = require('logger-sharelatex') db = mongojs.db ObjectId = mongojs.ObjectId settings = require "settings-sharelatex" request = require "request" module.exports = UserGetter = getUser: (query, projection, callback = (error, user) ->) -> if query?.email? return callback(new Error("Don't use getUser to find user by email"), null) if arguments.length == 2 callback = projection projection = {} if typeof query == "string" try query = _id: ObjectId(query) catch e return callback(null, null) else if query instanceof ObjectId query = _id: query db.users.findOne query, projection, callback getUserEmail: (userId, callback = (error, email) ->) -> @getUser userId, { email: 1 }, (error, user) -> callback(error, user?.email) getUserFullEmails: (userId, callback = (error, emails) ->) -> @getUser userId, { email: 1, emails: 1 }, (error, user) -> return callback error if error? return callback new Error('User not Found') unless user getAffiliations userId, (error, affiliationsData) -> return callback error if error? callback null, decorateFullEmails(user.email, user.emails, affiliationsData) getUserByMainEmail: (email, projection, callback = (error, user) ->) -> email = email.trim() if arguments.length == 2 callback = projection projection = {} db.users.findOne email: email, projection, callback getUserByAnyEmail: (email, projection, callback = (error, user) ->) -> email = email.trim() if arguments.length == 2 callback = projection projection = {} # $exists: true MUST be set to use the partial index query = emails: { $exists: true }, 'emails.email': email db.users.findOne query, projection, (error, user) => return callback(error, user) if error? or user? # While multiple emails are being rolled out, check for the main email as # well @getUserByMainEmail email, projection, callback getUsers: (user_ids, projection, callback = (error, users) ->) -> try user_ids = user_ids.map (u) -> ObjectId(u.toString()) catch error return callback error db.users.find { _id: { $in: user_ids} }, projection, callback getUserOrUserStubById: (user_id, projection, callback = (error, user) ->) -> try query = _id: ObjectId(user_id.toString()) catch e return callback(new Error(e)) db.users.findOne query, projection, (error, user) -> return callback(error) if error? return callback(null, user) if user? db.userstubs.findOne query, projection, callback # check for duplicate email address. This is also enforced at the DB level ensureUniqueEmailAddress: (newEmail, callback) -> @getUserByAnyEmail newEmail, (error, user) -> return callback(message: 'alread_exists') if user? callback(error) decorateFullEmails = (defaultEmail, emailsData, affiliationsData) -> emailsData.map (emailData) -> emailData.default = emailData.email == defaultEmail affiliation = affiliationsData.find (aff) -> aff.email == emailData.email if affiliation? { institution, inferred, role, department } = affiliation emailData.affiliation = { institution, inferred, role, department } else emailsData.affiliation = null emailData getAffiliations = (userId, callback = (error) ->) -> return callback(null, []) unless settings?.apis?.v1?.url # service is not configured request { method: 'GET' url: "#{settings.apis.v1.url}/api/v2/users/#{userId.toString()}/affiliations" auth: { user: settings.apis.v1.user, pass: <PASSWORD> } json: true, timeout: 20 * 1000 }, (error, response, body) -> return callback(error) if error? unless 200 <= response.statusCode < 300 errorMessage = "Couldn't get affiliations: #{response.statusCode}" return callback(new Error(errorMessage)) callback(null, body) [ 'getUser', 'getUserEmail', 'getUserByMainEmail', 'getUserByAnyEmail', 'getUsers', 'getUserOrUserStubById', 'ensureUniqueEmailAddress', ].map (method) -> metrics.timeAsyncMethod UserGetter, method, 'mongo.UserGetter', logger
true
mongojs = require("../../infrastructure/mongojs") metrics = require('metrics-sharelatex') logger = require('logger-sharelatex') db = mongojs.db ObjectId = mongojs.ObjectId settings = require "settings-sharelatex" request = require "request" module.exports = UserGetter = getUser: (query, projection, callback = (error, user) ->) -> if query?.email? return callback(new Error("Don't use getUser to find user by email"), null) if arguments.length == 2 callback = projection projection = {} if typeof query == "string" try query = _id: ObjectId(query) catch e return callback(null, null) else if query instanceof ObjectId query = _id: query db.users.findOne query, projection, callback getUserEmail: (userId, callback = (error, email) ->) -> @getUser userId, { email: 1 }, (error, user) -> callback(error, user?.email) getUserFullEmails: (userId, callback = (error, emails) ->) -> @getUser userId, { email: 1, emails: 1 }, (error, user) -> return callback error if error? return callback new Error('User not Found') unless user getAffiliations userId, (error, affiliationsData) -> return callback error if error? callback null, decorateFullEmails(user.email, user.emails, affiliationsData) getUserByMainEmail: (email, projection, callback = (error, user) ->) -> email = email.trim() if arguments.length == 2 callback = projection projection = {} db.users.findOne email: email, projection, callback getUserByAnyEmail: (email, projection, callback = (error, user) ->) -> email = email.trim() if arguments.length == 2 callback = projection projection = {} # $exists: true MUST be set to use the partial index query = emails: { $exists: true }, 'emails.email': email db.users.findOne query, projection, (error, user) => return callback(error, user) if error? or user? # While multiple emails are being rolled out, check for the main email as # well @getUserByMainEmail email, projection, callback getUsers: (user_ids, projection, callback = (error, users) ->) -> try user_ids = user_ids.map (u) -> ObjectId(u.toString()) catch error return callback error db.users.find { _id: { $in: user_ids} }, projection, callback getUserOrUserStubById: (user_id, projection, callback = (error, user) ->) -> try query = _id: ObjectId(user_id.toString()) catch e return callback(new Error(e)) db.users.findOne query, projection, (error, user) -> return callback(error) if error? return callback(null, user) if user? db.userstubs.findOne query, projection, callback # check for duplicate email address. This is also enforced at the DB level ensureUniqueEmailAddress: (newEmail, callback) -> @getUserByAnyEmail newEmail, (error, user) -> return callback(message: 'alread_exists') if user? callback(error) decorateFullEmails = (defaultEmail, emailsData, affiliationsData) -> emailsData.map (emailData) -> emailData.default = emailData.email == defaultEmail affiliation = affiliationsData.find (aff) -> aff.email == emailData.email if affiliation? { institution, inferred, role, department } = affiliation emailData.affiliation = { institution, inferred, role, department } else emailsData.affiliation = null emailData getAffiliations = (userId, callback = (error) ->) -> return callback(null, []) unless settings?.apis?.v1?.url # service is not configured request { method: 'GET' url: "#{settings.apis.v1.url}/api/v2/users/#{userId.toString()}/affiliations" auth: { user: settings.apis.v1.user, pass: PI:PASSWORD:<PASSWORD>END_PI } json: true, timeout: 20 * 1000 }, (error, response, body) -> return callback(error) if error? unless 200 <= response.statusCode < 300 errorMessage = "Couldn't get affiliations: #{response.statusCode}" return callback(new Error(errorMessage)) callback(null, body) [ 'getUser', 'getUserEmail', 'getUserByMainEmail', 'getUserByAnyEmail', 'getUsers', 'getUserOrUserStubById', 'ensureUniqueEmailAddress', ].map (method) -> metrics.timeAsyncMethod UserGetter, method, 'mongo.UserGetter', logger
[ { "context": "ption of project}',\n author='${4:Joe Schmoe}',\n author_email='${5:joe@schmoe", "end": 338, "score": 0.9998680353164673, "start": 328, "tag": "NAME", "value": "Joe Schmoe" }, { "context": "Joe Schmoe}',\n author_email=...
snippets/setup-snippet.cson
andydevs/better-python-snippets
0
'.source.python': 'Setup Function': prefix: 'setup' body: ''' from distutils.core import setup # Setup function setup(name='${1:my-project}', version='${2:0.1}', description='${3:description of project}', author='${4:Joe Schmoe}', author_email='${5:joe@schmoes.goes}', homepage='${6:http://github.com/joe/my-project}', packages=[${7:'myPackage'}]) '''
105082
'.source.python': 'Setup Function': prefix: 'setup' body: ''' from distutils.core import setup # Setup function setup(name='${1:my-project}', version='${2:0.1}', description='${3:description of project}', author='${4:<NAME>}', author_email='${5:<EMAIL>}', homepage='${6:http://github.com/joe/my-project}', packages=[${7:'myPackage'}]) '''
true
'.source.python': 'Setup Function': prefix: 'setup' body: ''' from distutils.core import setup # Setup function setup(name='${1:my-project}', version='${2:0.1}', description='${3:description of project}', author='${4:PI:NAME:<NAME>END_PI}', author_email='${5:PI:EMAIL:<EMAIL>END_PI}', homepage='${6:http://github.com/joe/my-project}', packages=[${7:'myPackage'}]) '''
[ { "context": "//localhost:5000'\n sd['ARTSY_XAPP_TOKEN'] = 'xappfoobar'\n sd['CURRENT_USER'] = { accessToken: 'acces", "end": 530, "score": 0.796227753162384, "start": 520, "tag": "PASSWORD", "value": "xappfoobar" }, { "context": "oobar'\n sd['CURRENT_USER'] = { access...
src/mobile/components/layout/test/layout.coffee
kanaabe/force
0
jade = require 'jade' path = require 'path' fs = require 'fs' Backbone = require 'backbone' benv = require 'benv' { resolve } = require 'path' sd = require('sharify').data rewire = require 'rewire' sinon = require 'sinon' { fabricate } = require 'antigravity' describe 'Bootstrapping client-side environment', -> beforeEach (done) -> benv.setup => benv.expose $: benv.require 'jquery' jQuery: require 'jquery' sd['API_URL'] = 'http://localhost:5000' sd['ARTSY_XAPP_TOKEN'] = 'xappfoobar' sd['CURRENT_USER'] = { accessToken: 'accessfoobar' } sd['APP_URL'] = 'http://m.artsy.net' require('../bootstrap')() done() afterEach -> benv.teardown() it 'adds the XAPP token to ajax requests', -> $.ajaxSettings.headers['X-XAPP-TOKEN'].should.equal 'xappfoobar' it 'adds the access token to ajax requests', -> $.ajaxSettings.headers['X-ACCESS-TOKEN'].should.equal 'accessfoobar' describe 'Layout init code', -> beforeEach (done) -> benv.setup => benv.expose $: benv.require 'jquery' jQuery: require 'jquery' sd['ARTSY_XAPP_TOKEN'] = 'xappfoobar' sd['CURRENT_USER'] = { accessToken: 'accessfoobar' } sd['APP_URL'] = 'http://m.artsy.net' require('../bootstrap')() sinon.stub $, 'ajax' { @syncAuth } = require '../bootstrap' done() afterEach -> benv.teardown() xit 'logs you out if Gravity throws an auth error', -> sd.CURRENT_USER = fabricate 'user' @syncAuth() $.ajax.args[0][0].url.should.containEql 'api/v1/me' $.ajax.args[0][0].error() window.location.should.equal '/users/sign_out' sd.CURRENT_USER = null describe 'Canonical url', -> xit "renders the canonical meta tag", -> filename = path.resolve __dirname, "../templates/main.jade" jade.compile( fs.readFileSync(filename), { filename: filename } )(pathname: '/test', sd: { APP_URL: 'http://artsy.net'}).should.containEql "link href=\"http://artsy.net/test\" rel=\"canonical\"" describe 'inquiry cookies', -> beforeEach (done) -> benv.setup => benv.expose $: benv.require 'jquery' jQuery: require 'jquery' @bootstrap = rewire '../bootstrap' @bootstrap.__set__ 'Cookies', @Cookies = { set: sinon.stub(), get: sinon.stub() } @bootstrap.__set__ 'sd', { APP_URL: 'http://artsy.net' } done() afterEach -> benv.teardown() it 'sets the inquiry-session-start and inquiry-referrer cookies', -> @bootstrap.__set__ 'doc', { referrer: 'http://google.com' } @bootstrap() @Cookies.set.args[0][0].should.equal 'inquiry-referrer' @Cookies.set.args[1][0].should.equal 'inquiry-session-start' it 'does not set the referrer if its from artsy.net', -> @bootstrap.__set__ 'doc', { referrer: 'http://m.artsy.net/artwork/foo' } @bootstrap() @Cookies.set.called.should.not.be.ok() describe 'afterSignUpAction', -> beforeEach (done) -> benv.setup => benv.expose $: benv.require 'jquery' jQuery: require 'jquery' @bootstrap = rewire '../bootstrap' @getCookie = sinon.stub() @bootstrap.__set__ 'Cookies', @Cookies = { set: sinon.stub() get: @getCookie expire: sinon.stub() } @bootstrap.__set__ 'CurrentUser', { orNull: sinon.stub().returns({ initializeDefaultArtworkCollection: sinon.stub(), defaultArtworkCollection: sinon.stub().returns({ saveArtwork: @saveArtwork = sinon.stub() }), follow: @follow = sinon.stub() }) } done() afterEach -> benv.teardown() it 'returns if there is not a user', -> @bootstrap.__set__ 'CurrentUser', { orNull: sinon.stub().returns(false) } @bootstrap() @Cookies.expire.callCount.should.equal 0 it 'saves an artwork', -> @getCookie.returns( JSON.stringify({ action: 'save', objectId: '123', kind: 'artist' }) ) @bootstrap() @saveArtwork.args[0][0].should.equal '123' it 'follows an entity', -> @getCookie.returns( JSON.stringify({ action: 'follow', objectId: '123', kind: 'gallery' }) ) @bootstrap() @follow.args[0][0].should.equal '123' @follow.args[0][1].should.equal 'gallery' it 'expires the cookie afterwards', -> @getCookie.returns( JSON.stringify({ action: 'follow', objectId: '123', kind: 'gallery' }) ) @bootstrap() @Cookies.expire.args[0][0].should.equal 'afterSignUpAction'
26221
jade = require 'jade' path = require 'path' fs = require 'fs' Backbone = require 'backbone' benv = require 'benv' { resolve } = require 'path' sd = require('sharify').data rewire = require 'rewire' sinon = require 'sinon' { fabricate } = require 'antigravity' describe 'Bootstrapping client-side environment', -> beforeEach (done) -> benv.setup => benv.expose $: benv.require 'jquery' jQuery: require 'jquery' sd['API_URL'] = 'http://localhost:5000' sd['ARTSY_XAPP_TOKEN'] = '<PASSWORD>' sd['CURRENT_USER'] = { accessToken: '<KEY>' } sd['APP_URL'] = 'http://m.artsy.net' require('../bootstrap')() done() afterEach -> benv.teardown() it 'adds the XAPP token to ajax requests', -> $.ajaxSettings.headers['X-XAPP-TOKEN'].should.equal 'xappfoobar' it 'adds the access token to ajax requests', -> $.ajaxSettings.headers['X-ACCESS-TOKEN'].should.equal 'accessfoobar' describe 'Layout init code', -> beforeEach (done) -> benv.setup => benv.expose $: benv.require 'jquery' jQuery: require 'jquery' sd['ARTSY_XAPP_TOKEN'] = '<KEY> <PASSWORD>' sd['CURRENT_USER'] = { accessToken: '<KEY>' } sd['APP_URL'] = 'http://m.artsy.net' require('../bootstrap')() sinon.stub $, 'ajax' { @syncAuth } = require '../bootstrap' done() afterEach -> benv.teardown() xit 'logs you out if Gravity throws an auth error', -> sd.CURRENT_USER = fabricate 'user' @syncAuth() $.ajax.args[0][0].url.should.containEql 'api/v1/me' $.ajax.args[0][0].error() window.location.should.equal '/users/sign_out' sd.CURRENT_USER = null describe 'Canonical url', -> xit "renders the canonical meta tag", -> filename = path.resolve __dirname, "../templates/main.jade" jade.compile( fs.readFileSync(filename), { filename: filename } )(pathname: '/test', sd: { APP_URL: 'http://artsy.net'}).should.containEql "link href=\"http://artsy.net/test\" rel=\"canonical\"" describe 'inquiry cookies', -> beforeEach (done) -> benv.setup => benv.expose $: benv.require 'jquery' jQuery: require 'jquery' @bootstrap = rewire '../bootstrap' @bootstrap.__set__ 'Cookies', @Cookies = { set: sinon.stub(), get: sinon.stub() } @bootstrap.__set__ 'sd', { APP_URL: 'http://artsy.net' } done() afterEach -> benv.teardown() it 'sets the inquiry-session-start and inquiry-referrer cookies', -> @bootstrap.__set__ 'doc', { referrer: 'http://google.com' } @bootstrap() @Cookies.set.args[0][0].should.equal 'inquiry-referrer' @Cookies.set.args[1][0].should.equal 'inquiry-session-start' it 'does not set the referrer if its from artsy.net', -> @bootstrap.__set__ 'doc', { referrer: 'http://m.artsy.net/artwork/foo' } @bootstrap() @Cookies.set.called.should.not.be.ok() describe 'afterSignUpAction', -> beforeEach (done) -> benv.setup => benv.expose $: benv.require 'jquery' jQuery: require 'jquery' @bootstrap = rewire '../bootstrap' @getCookie = sinon.stub() @bootstrap.__set__ 'Cookies', @Cookies = { set: sinon.stub() get: @getCookie expire: sinon.stub() } @bootstrap.__set__ 'CurrentUser', { orNull: sinon.stub().returns({ initializeDefaultArtworkCollection: sinon.stub(), defaultArtworkCollection: sinon.stub().returns({ saveArtwork: @saveArtwork = sinon.stub() }), follow: @follow = sinon.stub() }) } done() afterEach -> benv.teardown() it 'returns if there is not a user', -> @bootstrap.__set__ 'CurrentUser', { orNull: sinon.stub().returns(false) } @bootstrap() @Cookies.expire.callCount.should.equal 0 it 'saves an artwork', -> @getCookie.returns( JSON.stringify({ action: 'save', objectId: '123', kind: 'artist' }) ) @bootstrap() @saveArtwork.args[0][0].should.equal '123' it 'follows an entity', -> @getCookie.returns( JSON.stringify({ action: 'follow', objectId: '123', kind: 'gallery' }) ) @bootstrap() @follow.args[0][0].should.equal '123' @follow.args[0][1].should.equal 'gallery' it 'expires the cookie afterwards', -> @getCookie.returns( JSON.stringify({ action: 'follow', objectId: '123', kind: 'gallery' }) ) @bootstrap() @Cookies.expire.args[0][0].should.equal 'afterSignUpAction'
true
jade = require 'jade' path = require 'path' fs = require 'fs' Backbone = require 'backbone' benv = require 'benv' { resolve } = require 'path' sd = require('sharify').data rewire = require 'rewire' sinon = require 'sinon' { fabricate } = require 'antigravity' describe 'Bootstrapping client-side environment', -> beforeEach (done) -> benv.setup => benv.expose $: benv.require 'jquery' jQuery: require 'jquery' sd['API_URL'] = 'http://localhost:5000' sd['ARTSY_XAPP_TOKEN'] = 'PI:PASSWORD:<PASSWORD>END_PI' sd['CURRENT_USER'] = { accessToken: 'PI:KEY:<KEY>END_PI' } sd['APP_URL'] = 'http://m.artsy.net' require('../bootstrap')() done() afterEach -> benv.teardown() it 'adds the XAPP token to ajax requests', -> $.ajaxSettings.headers['X-XAPP-TOKEN'].should.equal 'xappfoobar' it 'adds the access token to ajax requests', -> $.ajaxSettings.headers['X-ACCESS-TOKEN'].should.equal 'accessfoobar' describe 'Layout init code', -> beforeEach (done) -> benv.setup => benv.expose $: benv.require 'jquery' jQuery: require 'jquery' sd['ARTSY_XAPP_TOKEN'] = 'PI:KEY:<KEY>END_PI PI:PASSWORD:<PASSWORD>END_PI' sd['CURRENT_USER'] = { accessToken: 'PI:KEY:<KEY>END_PI' } sd['APP_URL'] = 'http://m.artsy.net' require('../bootstrap')() sinon.stub $, 'ajax' { @syncAuth } = require '../bootstrap' done() afterEach -> benv.teardown() xit 'logs you out if Gravity throws an auth error', -> sd.CURRENT_USER = fabricate 'user' @syncAuth() $.ajax.args[0][0].url.should.containEql 'api/v1/me' $.ajax.args[0][0].error() window.location.should.equal '/users/sign_out' sd.CURRENT_USER = null describe 'Canonical url', -> xit "renders the canonical meta tag", -> filename = path.resolve __dirname, "../templates/main.jade" jade.compile( fs.readFileSync(filename), { filename: filename } )(pathname: '/test', sd: { APP_URL: 'http://artsy.net'}).should.containEql "link href=\"http://artsy.net/test\" rel=\"canonical\"" describe 'inquiry cookies', -> beforeEach (done) -> benv.setup => benv.expose $: benv.require 'jquery' jQuery: require 'jquery' @bootstrap = rewire '../bootstrap' @bootstrap.__set__ 'Cookies', @Cookies = { set: sinon.stub(), get: sinon.stub() } @bootstrap.__set__ 'sd', { APP_URL: 'http://artsy.net' } done() afterEach -> benv.teardown() it 'sets the inquiry-session-start and inquiry-referrer cookies', -> @bootstrap.__set__ 'doc', { referrer: 'http://google.com' } @bootstrap() @Cookies.set.args[0][0].should.equal 'inquiry-referrer' @Cookies.set.args[1][0].should.equal 'inquiry-session-start' it 'does not set the referrer if its from artsy.net', -> @bootstrap.__set__ 'doc', { referrer: 'http://m.artsy.net/artwork/foo' } @bootstrap() @Cookies.set.called.should.not.be.ok() describe 'afterSignUpAction', -> beforeEach (done) -> benv.setup => benv.expose $: benv.require 'jquery' jQuery: require 'jquery' @bootstrap = rewire '../bootstrap' @getCookie = sinon.stub() @bootstrap.__set__ 'Cookies', @Cookies = { set: sinon.stub() get: @getCookie expire: sinon.stub() } @bootstrap.__set__ 'CurrentUser', { orNull: sinon.stub().returns({ initializeDefaultArtworkCollection: sinon.stub(), defaultArtworkCollection: sinon.stub().returns({ saveArtwork: @saveArtwork = sinon.stub() }), follow: @follow = sinon.stub() }) } done() afterEach -> benv.teardown() it 'returns if there is not a user', -> @bootstrap.__set__ 'CurrentUser', { orNull: sinon.stub().returns(false) } @bootstrap() @Cookies.expire.callCount.should.equal 0 it 'saves an artwork', -> @getCookie.returns( JSON.stringify({ action: 'save', objectId: '123', kind: 'artist' }) ) @bootstrap() @saveArtwork.args[0][0].should.equal '123' it 'follows an entity', -> @getCookie.returns( JSON.stringify({ action: 'follow', objectId: '123', kind: 'gallery' }) ) @bootstrap() @follow.args[0][0].should.equal '123' @follow.args[0][1].should.equal 'gallery' it 'expires the cookie afterwards', -> @getCookie.returns( JSON.stringify({ action: 'follow', objectId: '123', kind: 'gallery' }) ) @bootstrap() @Cookies.expire.args[0][0].should.equal 'afterSignUpAction'
[ { "context": "w Tests for no-useless-constructor rule.\n# @author Alberto Rodriguez\n###\n\n'use strict'\n\n#-----------------------------", "end": 87, "score": 0.9998433589935303, "start": 70, "tag": "NAME", "value": "Alberto Rodriguez" } ]
src/tests/rules/no-useless-constructor.coffee
danielbayley/eslint-plugin-coffee
21
###* # @fileoverview Tests for no-useless-constructor rule. # @author Alberto Rodriguez ### 'use strict' #------------------------------------------------------------------------------ # Requirements #------------------------------------------------------------------------------ rule = require '../../rules/no-useless-constructor' {RuleTester} = require 'eslint' path = require 'path' #------------------------------------------------------------------------------ # Tests #------------------------------------------------------------------------------ ruleTester = new RuleTester parser: path.join __dirname, '../../..' error = message: 'Useless constructor.', type: 'MethodDefinition' ruleTester.run 'no-useless-constructor', rule, valid: [ 'class A' ''' class A constructor: -> doSomething() ''' ''' class A extends B constructor: -> super 'foo' ''' ''' class A extends B constructor: -> ''' ''' class A extends B constructor: -> super('foo') ''' ''' class A extends B constructor: (foo, bar) -> super(foo, bar, 1) ''' ''' class A extends B constructor: -> super() doSomething() ''' ''' class A extends B constructor: (...args) -> super(...args) doSomething() ''' ''' class A dummyMethod: -> doSomething() ''' ''' class A extends B.C constructor: -> super(foo) ''' ''' class A extends B.C constructor: ([a, b, c]) -> super(...arguments) ''' ''' class A extends B.C constructor: (a = f()) -> super(...arguments) ''' ''' class A extends B constructor: (a, b, c) -> super(a, b) ''' ''' class A extends B constructor: (foo, bar) -> super(foo) ''' ''' class A extends B constructor: (test) -> super() ''' ''' class A extends B constructor: -> foo ''' ''' class A extends B constructor: (foo, bar) -> super(bar) ''' ''' class A constructor: (@foo) -> ''' ''' class A constructor: ([@foo]) -> ''' ''' class A constructor: ({@foo}) -> ''' ''' class A constructor: ([{@foo}]) -> ''' ''' class A constructor: (@foo = 1) -> ''' ''' class A constructor: ([@foo = 1]) -> ''' ''' class A constructor: ({@foo = 1}) -> ''' ''' class A constructor: ([{@foo = 1}]) -> ''' ''' class A constructor: ({foo: @bar = 1}) -> ''' ] invalid: [ code: ''' class A constructor: -> ''' errors: [error] , code: ''' class A 'constructor': -> ''' errors: [error] , code: ''' class A extends B constructor: -> super() ''' errors: [error] , code: ''' class A extends B constructor: (foo) -> super foo ''' errors: [error] , code: ''' class A extends B constructor: (foo, bar) -> super(foo, bar) ''' errors: [error] , code: ''' class A extends B constructor: (...args) -> super(...args) ''' errors: [error] , code: ''' class A extends B.C constructor: -> super(...arguments) ''' errors: [error] , code: ''' class A extends B constructor: (a, b, ...c) -> super(...arguments) ''' errors: [error] , code: ''' class A extends B constructor: (a, b, ...c) -> super(a, b, ...c) ''' errors: [error] ]
167468
###* # @fileoverview Tests for no-useless-constructor rule. # @author <NAME> ### 'use strict' #------------------------------------------------------------------------------ # Requirements #------------------------------------------------------------------------------ rule = require '../../rules/no-useless-constructor' {RuleTester} = require 'eslint' path = require 'path' #------------------------------------------------------------------------------ # Tests #------------------------------------------------------------------------------ ruleTester = new RuleTester parser: path.join __dirname, '../../..' error = message: 'Useless constructor.', type: 'MethodDefinition' ruleTester.run 'no-useless-constructor', rule, valid: [ 'class A' ''' class A constructor: -> doSomething() ''' ''' class A extends B constructor: -> super 'foo' ''' ''' class A extends B constructor: -> ''' ''' class A extends B constructor: -> super('foo') ''' ''' class A extends B constructor: (foo, bar) -> super(foo, bar, 1) ''' ''' class A extends B constructor: -> super() doSomething() ''' ''' class A extends B constructor: (...args) -> super(...args) doSomething() ''' ''' class A dummyMethod: -> doSomething() ''' ''' class A extends B.C constructor: -> super(foo) ''' ''' class A extends B.C constructor: ([a, b, c]) -> super(...arguments) ''' ''' class A extends B.C constructor: (a = f()) -> super(...arguments) ''' ''' class A extends B constructor: (a, b, c) -> super(a, b) ''' ''' class A extends B constructor: (foo, bar) -> super(foo) ''' ''' class A extends B constructor: (test) -> super() ''' ''' class A extends B constructor: -> foo ''' ''' class A extends B constructor: (foo, bar) -> super(bar) ''' ''' class A constructor: (@foo) -> ''' ''' class A constructor: ([@foo]) -> ''' ''' class A constructor: ({@foo}) -> ''' ''' class A constructor: ([{@foo}]) -> ''' ''' class A constructor: (@foo = 1) -> ''' ''' class A constructor: ([@foo = 1]) -> ''' ''' class A constructor: ({@foo = 1}) -> ''' ''' class A constructor: ([{@foo = 1}]) -> ''' ''' class A constructor: ({foo: @bar = 1}) -> ''' ] invalid: [ code: ''' class A constructor: -> ''' errors: [error] , code: ''' class A 'constructor': -> ''' errors: [error] , code: ''' class A extends B constructor: -> super() ''' errors: [error] , code: ''' class A extends B constructor: (foo) -> super foo ''' errors: [error] , code: ''' class A extends B constructor: (foo, bar) -> super(foo, bar) ''' errors: [error] , code: ''' class A extends B constructor: (...args) -> super(...args) ''' errors: [error] , code: ''' class A extends B.C constructor: -> super(...arguments) ''' errors: [error] , code: ''' class A extends B constructor: (a, b, ...c) -> super(...arguments) ''' errors: [error] , code: ''' class A extends B constructor: (a, b, ...c) -> super(a, b, ...c) ''' errors: [error] ]
true
###* # @fileoverview Tests for no-useless-constructor rule. # @author PI:NAME:<NAME>END_PI ### 'use strict' #------------------------------------------------------------------------------ # Requirements #------------------------------------------------------------------------------ rule = require '../../rules/no-useless-constructor' {RuleTester} = require 'eslint' path = require 'path' #------------------------------------------------------------------------------ # Tests #------------------------------------------------------------------------------ ruleTester = new RuleTester parser: path.join __dirname, '../../..' error = message: 'Useless constructor.', type: 'MethodDefinition' ruleTester.run 'no-useless-constructor', rule, valid: [ 'class A' ''' class A constructor: -> doSomething() ''' ''' class A extends B constructor: -> super 'foo' ''' ''' class A extends B constructor: -> ''' ''' class A extends B constructor: -> super('foo') ''' ''' class A extends B constructor: (foo, bar) -> super(foo, bar, 1) ''' ''' class A extends B constructor: -> super() doSomething() ''' ''' class A extends B constructor: (...args) -> super(...args) doSomething() ''' ''' class A dummyMethod: -> doSomething() ''' ''' class A extends B.C constructor: -> super(foo) ''' ''' class A extends B.C constructor: ([a, b, c]) -> super(...arguments) ''' ''' class A extends B.C constructor: (a = f()) -> super(...arguments) ''' ''' class A extends B constructor: (a, b, c) -> super(a, b) ''' ''' class A extends B constructor: (foo, bar) -> super(foo) ''' ''' class A extends B constructor: (test) -> super() ''' ''' class A extends B constructor: -> foo ''' ''' class A extends B constructor: (foo, bar) -> super(bar) ''' ''' class A constructor: (@foo) -> ''' ''' class A constructor: ([@foo]) -> ''' ''' class A constructor: ({@foo}) -> ''' ''' class A constructor: ([{@foo}]) -> ''' ''' class A constructor: (@foo = 1) -> ''' ''' class A constructor: ([@foo = 1]) -> ''' ''' class A constructor: ({@foo = 1}) -> ''' ''' class A constructor: ([{@foo = 1}]) -> ''' ''' class A constructor: ({foo: @bar = 1}) -> ''' ] invalid: [ code: ''' class A constructor: -> ''' errors: [error] , code: ''' class A 'constructor': -> ''' errors: [error] , code: ''' class A extends B constructor: -> super() ''' errors: [error] , code: ''' class A extends B constructor: (foo) -> super foo ''' errors: [error] , code: ''' class A extends B constructor: (foo, bar) -> super(foo, bar) ''' errors: [error] , code: ''' class A extends B constructor: (...args) -> super(...args) ''' errors: [error] , code: ''' class A extends B.C constructor: -> super(...arguments) ''' errors: [error] , code: ''' class A extends B constructor: (a, b, ...c) -> super(...arguments) ''' errors: [error] , code: ''' class A extends B constructor: (a, b, ...c) -> super(a, b, ...c) ''' errors: [error] ]
[ { "context": "angular: [\n {\n key: \"desiredState.color\"\n }\n]\n", "end": 37, "score": 0.6730431914329529, "start": 37, "tag": "KEY", "value": "" } ]
src/schemas/configure/default-form.cson
octoblu/alexa-service
3
angular: [ { key: "desiredState.color" } ]
64459
angular: [ { key: "desiredState<KEY>.color" } ]
true
angular: [ { key: "desiredStatePI:KEY:<KEY>END_PI.color" } ]
[ { "context": "key] = data.key.split ':'\n user.username ?= username\n user[key] = data.value\n .on 'error',", "end": 382, "score": 0.996137261390686, "start": 374, "tag": "USERNAME", "value": "username" }, { "context": " person.value = data.value\n te...
lib/db.coffee
Vowow/LoginJS
0
level = require 'level' module.exports = (db="#{__dirname}../db") -> db = level db if typeof db is 'string' close: (callback) -> db.close callback users: get: (username, callback) -> user = {} db.createReadStream gt: "users:#{username}:" .on 'data', (data) -> [_, username, key] = data.key.split ':' user.username ?= username user[key] = data.value .on 'error', (err) -> callback err .on 'end', -> callback user getAll: (callback) -> person = {} listUsers = [] db.createReadStream gt: "" .on 'data', (data) -> [_, username, _] = data.key.split ':' person.key = username person.value = data.value test = [username, data.value] listUsers.push test .on 'end', -> callback listUsers .on 'error', (err) -> callback err if callback and typeof (callback) is "function" set: (username, user, callback) -> console.log "SET" ops = for k, v of user continue if k is 'username' type: 'put' key: "users:#{username}:#{k}" value: v db.batch ops, (err) -> callback err del: (username, callback) -> emails: get: (emailname, callback) -> users_by_email = {} db.createReadStream gt: "users_by_email:#{emailname}:" .on 'data', (data) -> [_, emailname, key] = data.key.split ':' users_by_email.emailname ?= emailname users_by_email[key] = data.value .on 'error', (err) -> callback err if callback and typeof (callback) is "function" .on 'end', -> callback users_by_email set: (emailname, users_by_email, callback) -> console.log "SET" ops = for k, v of users_by_email continue if k is 'emailname' type: 'put' key: "users_by_email:#{emailname}:#{k}" value: v db.batch ops, (err) -> callback err if callback and typeof (callback) is "function"
94334
level = require 'level' module.exports = (db="#{__dirname}../db") -> db = level db if typeof db is 'string' close: (callback) -> db.close callback users: get: (username, callback) -> user = {} db.createReadStream gt: "users:#{username}:" .on 'data', (data) -> [_, username, key] = data.key.split ':' user.username ?= username user[key] = data.value .on 'error', (err) -> callback err .on 'end', -> callback user getAll: (callback) -> person = {} listUsers = [] db.createReadStream gt: "" .on 'data', (data) -> [_, username, _] = data.key.split ':' person.key = username person.value = data.value test = [username, data.value] listUsers.push test .on 'end', -> callback listUsers .on 'error', (err) -> callback err if callback and typeof (callback) is "function" set: (username, user, callback) -> console.log "SET" ops = for k, v of user continue if k is 'username' type: 'put' key: "users:#{username}:#{k}" value: v db.batch ops, (err) -> callback err del: (username, callback) -> emails: get: (emailname, callback) -> users_by_email = {} db.createReadStream gt: "users_by_email:#{emailname}:" .on 'data', (data) -> [_, emailname, key] = data.key.split ':' users_by_email.emailname ?= emailname users_by_email[key] = data.value .on 'error', (err) -> callback err if callback and typeof (callback) is "function" .on 'end', -> callback users_by_email set: (emailname, users_by_email, callback) -> console.log "SET" ops = for k, v of users_by_email continue if k is 'emailname' type: 'put' key: "<KEY> value: v db.batch ops, (err) -> callback err if callback and typeof (callback) is "function"
true
level = require 'level' module.exports = (db="#{__dirname}../db") -> db = level db if typeof db is 'string' close: (callback) -> db.close callback users: get: (username, callback) -> user = {} db.createReadStream gt: "users:#{username}:" .on 'data', (data) -> [_, username, key] = data.key.split ':' user.username ?= username user[key] = data.value .on 'error', (err) -> callback err .on 'end', -> callback user getAll: (callback) -> person = {} listUsers = [] db.createReadStream gt: "" .on 'data', (data) -> [_, username, _] = data.key.split ':' person.key = username person.value = data.value test = [username, data.value] listUsers.push test .on 'end', -> callback listUsers .on 'error', (err) -> callback err if callback and typeof (callback) is "function" set: (username, user, callback) -> console.log "SET" ops = for k, v of user continue if k is 'username' type: 'put' key: "users:#{username}:#{k}" value: v db.batch ops, (err) -> callback err del: (username, callback) -> emails: get: (emailname, callback) -> users_by_email = {} db.createReadStream gt: "users_by_email:#{emailname}:" .on 'data', (data) -> [_, emailname, key] = data.key.split ':' users_by_email.emailname ?= emailname users_by_email[key] = data.value .on 'error', (err) -> callback err if callback and typeof (callback) is "function" .on 'end', -> callback users_by_email set: (emailname, users_by_email, callback) -> console.log "SET" ops = for k, v of users_by_email continue if k is 'emailname' type: 'put' key: "PI:KEY:<KEY>END_PI value: v db.batch ops, (err) -> callback err if callback and typeof (callback) is "function"
[ { "context": " engine = new AiEngine 'Default', topics, {name: 'Jonny', age: 21}\n done()\n\n it 'should not res", "end": 2556, "score": 0.999670147895813, "start": 2551, "tag": "NAME", "value": "Jonny" }, { "context": "wn message', (done) ->\n engine.reply {name: 'Lis...
lib/aiml/test/engine-tests.coffee
XunshanTech/ryori
0
should = require('chai').should() AiEngine = require('./../index').AiEngine parse = require('./../index').parse xml = "<?xml version=\"1.0\" encoding=\"UTF-8\"?> <aiml version=\"1.0\"> <category> <pattern>what is your Name</pattern> <that>bot</that> <template>My name is <bot name=\"name\"/></template> </category> <category> <pattern>do you like *</pattern> <template><star/>? Maybe.</template> </category> <category> <pattern>you age</pattern> <template><bot name=\"age\"/></template> </category> <category> <pattern>how old are you</pattern> <template><srai>you age</srai></template> </category> <category> <pattern>lets chainge topic to Dev</pattern> <template><set name=\"topic\">Development</set>ok</template> </category> <category> <pattern>lets talk about *</pattern> <template><set name=\"subject\"><star/> stuff</set>ok</template> </category> <category> <pattern>what the subject</pattern> <template>Subject is <get name=\"subject\"/></template> </category> <topic name=\"Development\"> <category> <pattern><bot name=\"name\"/>, how are yoy</pattern> <template>awesome</template> </category> <category> <pattern><bot name=\"name\"/>, what is your preffered programming language</pattern> <template> <random> <li>My name is <bot name=\"name\"/> and i prefer F#.</li> <li>Only Haskell, <get name=\"dude\"/></li> <li>Maybe OCaml</li> </random> </template> </category> </topic> </aiml>" describe 'AIML engine', () -> it 'should throw error without room name', (done) -> should.throw () -> new AiEngine() done() it 'should throw error without topics', (done) -> should.throw () -> new AiEngine 'Default' done() describe '#reply', () -> engine = null beforeEach (done) -> parse xml, (err, topics) -> engine = new AiEngine 'Default', topics, {name: 'Jonny', age: 21} done() it 'should not responce for unknown message', (done) -> engine.reply {name: 'Lisa'}, 'LOL', (err, reply) -> should.not.exist err should.not.exist reply done() it 'should responce to exact message', (done) -> engine.reply {name: 'Lisa'}, 'what is your name', (err, reply) -> should.exist reply reply.should.be.equal 'My name is Jonny' done() it 'should responce to not exact message', (done) -> engine.reply {name: 'Lisa'}, 'Hey, what is your name?', (err, reply) -> should.exist reply reply.should.be.equal 'My name is Jonny' done() it 'should responce with context', (done) -> engine.reply {name: 'Lisa'}, 'Dude, do you like bananas', (err, reply) -> should.exist reply reply.should.be.equal 'bananas? Maybe.' done() it 'should work with references', (done) -> engine.reply {name: 'Lisa'}, 'how old are you?', (err, reply) -> should.exist reply reply.should.be.equal '21' done() it 'should work with references', (done) -> engine.reply {name: 'Lisa'}, 'how old are you?', (err, reply) -> should.exist reply reply.should.be.equal '21' done() it 'should work with setters ang getters', (done) -> engine.reply {name: 'Lisa'}, 'lets chainge topic to Dev?', (err, reply) -> should.exist reply reply.should.be.equal 'ok' should.exist engine.view.topic engine.view.topic.should.be.equal 'Development' done() it 'should work with setters ang getters (with star)', (done) -> engine.reply {name: 'Lisa'}, 'lets talk about js?', (err, reply) -> should.exist reply reply.should.be.equal 'ok' engine.reply {name: 'Lisa'}, 'what the subject?', (err, reply) -> should.exist reply reply.should.be.equal 'Subject is js stuff' done()
107017
should = require('chai').should() AiEngine = require('./../index').AiEngine parse = require('./../index').parse xml = "<?xml version=\"1.0\" encoding=\"UTF-8\"?> <aiml version=\"1.0\"> <category> <pattern>what is your Name</pattern> <that>bot</that> <template>My name is <bot name=\"name\"/></template> </category> <category> <pattern>do you like *</pattern> <template><star/>? Maybe.</template> </category> <category> <pattern>you age</pattern> <template><bot name=\"age\"/></template> </category> <category> <pattern>how old are you</pattern> <template><srai>you age</srai></template> </category> <category> <pattern>lets chainge topic to Dev</pattern> <template><set name=\"topic\">Development</set>ok</template> </category> <category> <pattern>lets talk about *</pattern> <template><set name=\"subject\"><star/> stuff</set>ok</template> </category> <category> <pattern>what the subject</pattern> <template>Subject is <get name=\"subject\"/></template> </category> <topic name=\"Development\"> <category> <pattern><bot name=\"name\"/>, how are yoy</pattern> <template>awesome</template> </category> <category> <pattern><bot name=\"name\"/>, what is your preffered programming language</pattern> <template> <random> <li>My name is <bot name=\"name\"/> and i prefer F#.</li> <li>Only Haskell, <get name=\"dude\"/></li> <li>Maybe OCaml</li> </random> </template> </category> </topic> </aiml>" describe 'AIML engine', () -> it 'should throw error without room name', (done) -> should.throw () -> new AiEngine() done() it 'should throw error without topics', (done) -> should.throw () -> new AiEngine 'Default' done() describe '#reply', () -> engine = null beforeEach (done) -> parse xml, (err, topics) -> engine = new AiEngine 'Default', topics, {name: '<NAME>', age: 21} done() it 'should not responce for unknown message', (done) -> engine.reply {name: '<NAME>'}, 'LOL', (err, reply) -> should.not.exist err should.not.exist reply done() it 'should responce to exact message', (done) -> engine.reply {name: '<NAME>'}, 'what is your name', (err, reply) -> should.exist reply reply.should.be.equal 'My name is <NAME>' done() it 'should responce to not exact message', (done) -> engine.reply {name: '<NAME>'}, 'Hey, what is your name?', (err, reply) -> should.exist reply reply.should.be.equal 'My name is <NAME>' done() it 'should responce with context', (done) -> engine.reply {name: '<NAME>'}, 'Dude, do you like bananas', (err, reply) -> should.exist reply reply.should.be.equal 'bananas? Maybe.' done() it 'should work with references', (done) -> engine.reply {name: '<NAME>'}, 'how old are you?', (err, reply) -> should.exist reply reply.should.be.equal '21' done() it 'should work with references', (done) -> engine.reply {name: '<NAME>'}, 'how old are you?', (err, reply) -> should.exist reply reply.should.be.equal '21' done() it 'should work with setters ang getters', (done) -> engine.reply {name: '<NAME>'}, 'lets chainge topic to Dev?', (err, reply) -> should.exist reply reply.should.be.equal 'ok' should.exist engine.view.topic engine.view.topic.should.be.equal 'Development' done() it 'should work with setters ang getters (with star)', (done) -> engine.reply {name: '<NAME>'}, 'lets talk about js?', (err, reply) -> should.exist reply reply.should.be.equal 'ok' engine.reply {name: '<NAME>'}, 'what the subject?', (err, reply) -> should.exist reply reply.should.be.equal 'Subject is js stuff' done()
true
should = require('chai').should() AiEngine = require('./../index').AiEngine parse = require('./../index').parse xml = "<?xml version=\"1.0\" encoding=\"UTF-8\"?> <aiml version=\"1.0\"> <category> <pattern>what is your Name</pattern> <that>bot</that> <template>My name is <bot name=\"name\"/></template> </category> <category> <pattern>do you like *</pattern> <template><star/>? Maybe.</template> </category> <category> <pattern>you age</pattern> <template><bot name=\"age\"/></template> </category> <category> <pattern>how old are you</pattern> <template><srai>you age</srai></template> </category> <category> <pattern>lets chainge topic to Dev</pattern> <template><set name=\"topic\">Development</set>ok</template> </category> <category> <pattern>lets talk about *</pattern> <template><set name=\"subject\"><star/> stuff</set>ok</template> </category> <category> <pattern>what the subject</pattern> <template>Subject is <get name=\"subject\"/></template> </category> <topic name=\"Development\"> <category> <pattern><bot name=\"name\"/>, how are yoy</pattern> <template>awesome</template> </category> <category> <pattern><bot name=\"name\"/>, what is your preffered programming language</pattern> <template> <random> <li>My name is <bot name=\"name\"/> and i prefer F#.</li> <li>Only Haskell, <get name=\"dude\"/></li> <li>Maybe OCaml</li> </random> </template> </category> </topic> </aiml>" describe 'AIML engine', () -> it 'should throw error without room name', (done) -> should.throw () -> new AiEngine() done() it 'should throw error without topics', (done) -> should.throw () -> new AiEngine 'Default' done() describe '#reply', () -> engine = null beforeEach (done) -> parse xml, (err, topics) -> engine = new AiEngine 'Default', topics, {name: 'PI:NAME:<NAME>END_PI', age: 21} done() it 'should not responce for unknown message', (done) -> engine.reply {name: 'PI:NAME:<NAME>END_PI'}, 'LOL', (err, reply) -> should.not.exist err should.not.exist reply done() it 'should responce to exact message', (done) -> engine.reply {name: 'PI:NAME:<NAME>END_PI'}, 'what is your name', (err, reply) -> should.exist reply reply.should.be.equal 'My name is PI:NAME:<NAME>END_PI' done() it 'should responce to not exact message', (done) -> engine.reply {name: 'PI:NAME:<NAME>END_PI'}, 'Hey, what is your name?', (err, reply) -> should.exist reply reply.should.be.equal 'My name is PI:NAME:<NAME>END_PI' done() it 'should responce with context', (done) -> engine.reply {name: 'PI:NAME:<NAME>END_PI'}, 'Dude, do you like bananas', (err, reply) -> should.exist reply reply.should.be.equal 'bananas? Maybe.' done() it 'should work with references', (done) -> engine.reply {name: 'PI:NAME:<NAME>END_PI'}, 'how old are you?', (err, reply) -> should.exist reply reply.should.be.equal '21' done() it 'should work with references', (done) -> engine.reply {name: 'PI:NAME:<NAME>END_PI'}, 'how old are you?', (err, reply) -> should.exist reply reply.should.be.equal '21' done() it 'should work with setters ang getters', (done) -> engine.reply {name: 'PI:NAME:<NAME>END_PI'}, 'lets chainge topic to Dev?', (err, reply) -> should.exist reply reply.should.be.equal 'ok' should.exist engine.view.topic engine.view.topic.should.be.equal 'Development' done() it 'should work with setters ang getters (with star)', (done) -> engine.reply {name: 'PI:NAME:<NAME>END_PI'}, 'lets talk about js?', (err, reply) -> should.exist reply reply.should.be.equal 'ok' engine.reply {name: 'PI:NAME:<NAME>END_PI'}, 'what the subject?', (err, reply) -> should.exist reply reply.should.be.equal 'Subject is js stuff' done()
[ { "context": " [\n new UserModel\n id: 'AWiYXbY_SjjuUM2b1CGI'\n name: 'enju'\n ", "end": 1265, "score": 0.8126559853553772, "start": 1263, "tag": "USERNAME", "value": "AW" }, { "context": "id: 'AWiYXbY_SjjuUM2b1CGI'\n name: 'enj...
__tests__/utils.coffee
kelp404/enju
12
config = require 'config' elasticsearch = require 'elasticsearch' utils = require '../lib/utils' enju = require '../' beforeEach -> jest.mock 'elasticsearch' afterEach -> jest.restoreAllMocks() test 'Get elasticsearch client.', -> jest.spyOn(elasticsearch, 'Client').mockImplementation (args) -> { host apiVersion } = args expect(utils.getElasticsearch()).toMatchSnapshot() expect(elasticsearch.Client).toBeCalled() test 'Get index prefix.', -> expect(utils.getIndexPrefix()).toBe config.enju.indexPrefix test 'Bleach regex words.', -> result = utils.bleachRegexWords '^$*+?{}.[]()\\hello|/' expect(result).toMatchSnapshot() test 'Fetch the reference property of the document.', -> class UserModel extends enju.Document @_index = 'users' @define name: new enju.StringProperty() class ArticleModel extends enju.Document @_index = 'articles' @define content: new enju.StringProperty() user: new enju.ReferenceProperty referenceClass: UserModel jest.spyOn(UserModel, 'get').mockImplementation (ids) -> new Promise (resolve) -> resolve [ new UserModel id: 'AWiYXbY_SjjuUM2b1CGI' name: 'enju' ] article = new ArticleModel user: 'AWiYXbY_SjjuUM2b1CGI' utils.updateReferenceProperties([article]).then -> expect(UserModel.get).toBeCalledWith ['AWiYXbY_SjjuUM2b1CGI'], no expect(article).toMatchSnapshot()
132382
config = require 'config' elasticsearch = require 'elasticsearch' utils = require '../lib/utils' enju = require '../' beforeEach -> jest.mock 'elasticsearch' afterEach -> jest.restoreAllMocks() test 'Get elasticsearch client.', -> jest.spyOn(elasticsearch, 'Client').mockImplementation (args) -> { host apiVersion } = args expect(utils.getElasticsearch()).toMatchSnapshot() expect(elasticsearch.Client).toBeCalled() test 'Get index prefix.', -> expect(utils.getIndexPrefix()).toBe config.enju.indexPrefix test 'Bleach regex words.', -> result = utils.bleachRegexWords '^$*+?{}.[]()\\hello|/' expect(result).toMatchSnapshot() test 'Fetch the reference property of the document.', -> class UserModel extends enju.Document @_index = 'users' @define name: new enju.StringProperty() class ArticleModel extends enju.Document @_index = 'articles' @define content: new enju.StringProperty() user: new enju.ReferenceProperty referenceClass: UserModel jest.spyOn(UserModel, 'get').mockImplementation (ids) -> new Promise (resolve) -> resolve [ new UserModel id: 'AWiYXbY_SjjuUM2b1CGI' name: '<NAME>ju' ] article = new ArticleModel user: 'AWiYXbY_SjjuUM2b1CGI' utils.updateReferenceProperties([article]).then -> expect(UserModel.get).toBeCalledWith ['AWiYXbY_SjjuUM2b1CGI'], no expect(article).toMatchSnapshot()
true
config = require 'config' elasticsearch = require 'elasticsearch' utils = require '../lib/utils' enju = require '../' beforeEach -> jest.mock 'elasticsearch' afterEach -> jest.restoreAllMocks() test 'Get elasticsearch client.', -> jest.spyOn(elasticsearch, 'Client').mockImplementation (args) -> { host apiVersion } = args expect(utils.getElasticsearch()).toMatchSnapshot() expect(elasticsearch.Client).toBeCalled() test 'Get index prefix.', -> expect(utils.getIndexPrefix()).toBe config.enju.indexPrefix test 'Bleach regex words.', -> result = utils.bleachRegexWords '^$*+?{}.[]()\\hello|/' expect(result).toMatchSnapshot() test 'Fetch the reference property of the document.', -> class UserModel extends enju.Document @_index = 'users' @define name: new enju.StringProperty() class ArticleModel extends enju.Document @_index = 'articles' @define content: new enju.StringProperty() user: new enju.ReferenceProperty referenceClass: UserModel jest.spyOn(UserModel, 'get').mockImplementation (ids) -> new Promise (resolve) -> resolve [ new UserModel id: 'AWiYXbY_SjjuUM2b1CGI' name: 'PI:NAME:<NAME>END_PIju' ] article = new ArticleModel user: 'AWiYXbY_SjjuUM2b1CGI' utils.updateReferenceProperties([article]).then -> expect(UserModel.get).toBeCalledWith ['AWiYXbY_SjjuUM2b1CGI'], no expect(article).toMatchSnapshot()
[ { "context": ") ->\n console.log \"Sending message\"\n\n user = @userFromParams(params)\n\n strings.forEach (str) =>\n ", "end": 247, "score": 0.5958369970321655, "start": 242, "tag": "USERNAME", "value": "@user" }, { "context": "({\"channel\": user.reply_to, \"text\": str, ...
src/slack.coffee
patcon/hubot-slack
0
Robot = require('hubot').Robot Adapter = require('hubot').Adapter TextMessage = require('hubot').TextMessage HTTPS = require 'https' class Slack extends Adapter send: (params, strings...) -> console.log "Sending message" user = @userFromParams(params) strings.forEach (str) => # Escape this str = str.replace(/&/g, '&amp;') str = str.replace(/</g, '&lt;') str = str.replace(/>/g, '&gt;') # Linkify. We assume that the bot is well-behaved and # consistently sending links with the protocol part str = str.replace(/((\bhttp)\S+)/g, '<$1>') args = JSON.stringify({"channel": user.reply_to, "text": str, username: @robot.name}) @post "/services/hooks/hubot", args reply: (params, strings...) -> console.log "Sending reply" user = @userFromParams(params) strings.forEach (str) => @send params, "#{user.name}: #{str}" topic: (params, strings...) -> # TODO: Set the topic userFromParams: (params) -> # hubot < 2.4.2: params = user # hubot >= 2.4.2: params = {user: user, ...} params = if params.user then params.user else params # Ghetto hack to make robot.messageRoom work with Slack's adapter # # Note: Slack's API here uses rooom ID's, not room names. They look # something like C0capitallettersandnumbershere params.reply_to ||= params.room params run: -> self = @ @options = token: process.env.HUBOT_SLACK_TOKEN or null team: process.env.HUBOT_SLACK_TEAM or null name: process.env.HUBOT_SLACK_BOTNAME or 'slackbot' console.log "Slack adapter options:", @options unless @options.token console.error "No services token provided to Hubot" return unless @options.team console.error "No team provided to Hubot" return # Listen to incoming webhooks from slack self.robot.router.post "/hubot/slack-webhook", (req, res) -> console.log "Incoming message received" # Parse the payload from = req.param('user_id') from_name = req.param('user_name') channel = req.param('channel_id') channel_name = req.param('channel_name') hubot_msg = req.param('text') if hubot_msg # Convert markup into plain url string. hubot_msg = hubot_msg.replace(/<((\bhttps?)[^|]+)(\|(.*))+>/g, '< $1 >') hubot_msg = hubot_msg.replace(/<((\bhttps?)(.*))?>/g, '< $1 >') # Unescape hubot_msg = hubot_msg.replace(/&amp;/g, '&') hubot_msg = hubot_msg.replace(/&lt;/g, '<') hubot_msg = hubot_msg.replace(/&gt;/g, '>') # Construct an author object author = {} author.id = from author.name = from_name author.reply_to = channel author.room = channel_name # Pass to the robot console.log "Received #{hubot_msg} from #{author.name}" self.receive new TextMessage(author, hubot_msg) # Just send back an empty reply, since our actual reply, # if any, will be async above res.end "" # Provide our name to Hubot self.robot.name = @options.name # Tell Hubot we're connected so it can load scripts console.log "Successfully 'connected' as", self.robot.name self.emit "connected" # Convenience HTTP Methods for sending data back to slack get: (path, callback) -> @request "GET", path, null, callback post: (path, body, callback) -> @request "POST", path, body, callback request: (method, path, body, callback) -> #console.log method, path, body host = @options.team + '.slack.com' headers = "Host": host path += "?token=" + @options.token req_options = "agent" : false "hostname" : host "port" : 443 "path" : path "method" : method "headers": headers if method is "POST" headers["Content-Type"] = "application/x-www-form-urlencoded" req_options.headers["Content-Length"] = body.length request = HTTPS.request req_options, (response) -> data = "" response.on "data", (chunk) -> data += chunk response.on "end", -> if response.statusCode >= 400 console.error "Slack services error: #{response.statusCode}" console.error data #console.log "HTTPS response:", data if callback callback null, data response.on "error", (err) -> console.error "HTTPS response error:", err if callback callback err, null if method is "POST" request.end(body, 'binary') else request.end() request.on "error", (err) -> console.error "HTTPS request error:", err console.error err.stack if callback callback err exports.use = (robot) -> new Slack robot
26360
Robot = require('hubot').Robot Adapter = require('hubot').Adapter TextMessage = require('hubot').TextMessage HTTPS = require 'https' class Slack extends Adapter send: (params, strings...) -> console.log "Sending message" user = @userFromParams(params) strings.forEach (str) => # Escape this str = str.replace(/&/g, '&amp;') str = str.replace(/</g, '&lt;') str = str.replace(/>/g, '&gt;') # Linkify. We assume that the bot is well-behaved and # consistently sending links with the protocol part str = str.replace(/((\bhttp)\S+)/g, '<$1>') args = JSON.stringify({"channel": user.reply_to, "text": str, username: @robot.name}) @post "/services/hooks/hubot", args reply: (params, strings...) -> console.log "Sending reply" user = @userFromParams(params) strings.forEach (str) => @send params, "#{user.name}: #{str}" topic: (params, strings...) -> # TODO: Set the topic userFromParams: (params) -> # hubot < 2.4.2: params = user # hubot >= 2.4.2: params = {user: user, ...} params = if params.user then params.user else params # Ghetto hack to make robot.messageRoom work with Slack's adapter # # Note: Slack's API here uses rooom ID's, not room names. They look # something like C0capitallettersandnumbershere params.reply_to ||= params.room params run: -> self = @ @options = token: process.env.HUBOT_SLACK_TOKEN or null team: process.env.HUBOT_SLACK_TEAM or null name: process.env.HUBOT_SLACK_BOTNAME or 'slackbot' console.log "Slack adapter options:", @options unless @options.token console.error "No services token provided to Hubot" return unless @options.team console.error "No team provided to Hubot" return # Listen to incoming webhooks from slack self.robot.router.post "/hubot/slack-webhook", (req, res) -> console.log "Incoming message received" # Parse the payload from = req.param('user_id') from_name = req.param('user_name') channel = req.param('channel_id') channel_name = req.param('channel_name') hubot_msg = req.param('text') if hubot_msg # Convert markup into plain url string. hubot_msg = hubot_msg.replace(/<((\bhttps?)[^|]+)(\|(.*))+>/g, '< $1 >') hubot_msg = hubot_msg.replace(/<((\bhttps?)(.*))?>/g, '< $1 >') # Unescape hubot_msg = hubot_msg.replace(/&amp;/g, '&') hubot_msg = hubot_msg.replace(/&lt;/g, '<') hubot_msg = hubot_msg.replace(/&gt;/g, '>') # Construct an author object author = {} author.id = from author.name = <NAME> author.reply_to = channel author.room = channel_name # Pass to the robot console.log "Received #{hubot_msg} from #{author.name}" self.receive new TextMessage(author, hubot_msg) # Just send back an empty reply, since our actual reply, # if any, will be async above res.end "" # Provide our name to Hubot self.robot.name = @options.name # Tell Hubot we're connected so it can load scripts console.log "Successfully 'connected' as", self.robot.name self.emit "connected" # Convenience HTTP Methods for sending data back to slack get: (path, callback) -> @request "GET", path, null, callback post: (path, body, callback) -> @request "POST", path, body, callback request: (method, path, body, callback) -> #console.log method, path, body host = @options.team + '.slack.com' headers = "Host": host path += "?token=" + @options.token req_options = "agent" : false "hostname" : host "port" : 443 "path" : path "method" : method "headers": headers if method is "POST" headers["Content-Type"] = "application/x-www-form-urlencoded" req_options.headers["Content-Length"] = body.length request = HTTPS.request req_options, (response) -> data = "" response.on "data", (chunk) -> data += chunk response.on "end", -> if response.statusCode >= 400 console.error "Slack services error: #{response.statusCode}" console.error data #console.log "HTTPS response:", data if callback callback null, data response.on "error", (err) -> console.error "HTTPS response error:", err if callback callback err, null if method is "POST" request.end(body, 'binary') else request.end() request.on "error", (err) -> console.error "HTTPS request error:", err console.error err.stack if callback callback err exports.use = (robot) -> new Slack robot
true
Robot = require('hubot').Robot Adapter = require('hubot').Adapter TextMessage = require('hubot').TextMessage HTTPS = require 'https' class Slack extends Adapter send: (params, strings...) -> console.log "Sending message" user = @userFromParams(params) strings.forEach (str) => # Escape this str = str.replace(/&/g, '&amp;') str = str.replace(/</g, '&lt;') str = str.replace(/>/g, '&gt;') # Linkify. We assume that the bot is well-behaved and # consistently sending links with the protocol part str = str.replace(/((\bhttp)\S+)/g, '<$1>') args = JSON.stringify({"channel": user.reply_to, "text": str, username: @robot.name}) @post "/services/hooks/hubot", args reply: (params, strings...) -> console.log "Sending reply" user = @userFromParams(params) strings.forEach (str) => @send params, "#{user.name}: #{str}" topic: (params, strings...) -> # TODO: Set the topic userFromParams: (params) -> # hubot < 2.4.2: params = user # hubot >= 2.4.2: params = {user: user, ...} params = if params.user then params.user else params # Ghetto hack to make robot.messageRoom work with Slack's adapter # # Note: Slack's API here uses rooom ID's, not room names. They look # something like C0capitallettersandnumbershere params.reply_to ||= params.room params run: -> self = @ @options = token: process.env.HUBOT_SLACK_TOKEN or null team: process.env.HUBOT_SLACK_TEAM or null name: process.env.HUBOT_SLACK_BOTNAME or 'slackbot' console.log "Slack adapter options:", @options unless @options.token console.error "No services token provided to Hubot" return unless @options.team console.error "No team provided to Hubot" return # Listen to incoming webhooks from slack self.robot.router.post "/hubot/slack-webhook", (req, res) -> console.log "Incoming message received" # Parse the payload from = req.param('user_id') from_name = req.param('user_name') channel = req.param('channel_id') channel_name = req.param('channel_name') hubot_msg = req.param('text') if hubot_msg # Convert markup into plain url string. hubot_msg = hubot_msg.replace(/<((\bhttps?)[^|]+)(\|(.*))+>/g, '< $1 >') hubot_msg = hubot_msg.replace(/<((\bhttps?)(.*))?>/g, '< $1 >') # Unescape hubot_msg = hubot_msg.replace(/&amp;/g, '&') hubot_msg = hubot_msg.replace(/&lt;/g, '<') hubot_msg = hubot_msg.replace(/&gt;/g, '>') # Construct an author object author = {} author.id = from author.name = PI:NAME:<NAME>END_PI author.reply_to = channel author.room = channel_name # Pass to the robot console.log "Received #{hubot_msg} from #{author.name}" self.receive new TextMessage(author, hubot_msg) # Just send back an empty reply, since our actual reply, # if any, will be async above res.end "" # Provide our name to Hubot self.robot.name = @options.name # Tell Hubot we're connected so it can load scripts console.log "Successfully 'connected' as", self.robot.name self.emit "connected" # Convenience HTTP Methods for sending data back to slack get: (path, callback) -> @request "GET", path, null, callback post: (path, body, callback) -> @request "POST", path, body, callback request: (method, path, body, callback) -> #console.log method, path, body host = @options.team + '.slack.com' headers = "Host": host path += "?token=" + @options.token req_options = "agent" : false "hostname" : host "port" : 443 "path" : path "method" : method "headers": headers if method is "POST" headers["Content-Type"] = "application/x-www-form-urlencoded" req_options.headers["Content-Length"] = body.length request = HTTPS.request req_options, (response) -> data = "" response.on "data", (chunk) -> data += chunk response.on "end", -> if response.statusCode >= 400 console.error "Slack services error: #{response.statusCode}" console.error data #console.log "HTTPS response:", data if callback callback null, data response.on "error", (err) -> console.error "HTTPS response error:", err if callback callback err, null if method is "POST" request.end(body, 'binary') else request.end() request.on "error", (err) -> console.error "HTTPS request error:", err console.error err.stack if callback callback err exports.use = (robot) -> new Slack robot
[ { "context": "ssible operations\n # see https://github.com/visionmedia/supertest\n # and https://github.com/visionm", "end": 1281, "score": 0.9996219873428345, "start": 1270, "tag": "USERNAME", "value": "visionmedia" }, { "context": "onmedia/supertest\n # and https:...
example/test/events.coffee
pauldambra/supersamples
45
# These specs are written in CoffeeScript (personal choice) # but would work just as well in JavaScript request = require 'supertest' sinon = require 'sinon' server = require '../src/server' fixtures = require './fixtures' # We use a sinon sandboxes to cleanup our stubs/mocks # http://sinonjs.org/docs/#sinon-sandbox sandbox = null # You can group tests into categories with typical Mocha nested describe blocks # The nested hierarchy is combined and merged across all test files describe 'Events', -> # Load test fixtures # so we know exactly what our sample responses will be beforeEach -> sandbox = sinon.sandbox.create() fixtures.fakeSports(sandbox) # Reset stubs afterEach -> sandbox.restore() # Nested describe block # The first two nested levels will be used for navigation in the generated docs describe 'Sports', -> # Test name and summary # This is markdown text that will appear in the docs it ''' Get list of sports - list is ordered alphabetically - doesn't return sports with no active competitions ''', () -> # The expected request/response sample using "supertest" # # For more details on all possible operations # see https://github.com/visionmedia/supertest # and https://github.com/visionmedia/superagent # # Note: if you specify multiple assertions on the body or on a given header # the documentation will only show the first one request(server) .get('/sports') .set('Accept', 'application/json') .expect(200) .expect('Content-Type', /json/) .expect( sports: [ { id: 1, name: 'Soccer' } { id: 2, name: 'Tennis' } ] ) # Just another API sample describe 'Competitions', -> it ''' Competitions by sport - List of **open** competitions for a given sport. - Returns all countries by default. ''', () -> request(server) .get('/sports/1/competitions') .set('Accept', 'application/json') .expect(200) .expect('Content-Type', /json/) .expect( competitions: [ { id: 1, country: 'gb', name: 'English premier league' } { id: 2, country: 'fr', name: 'Coupe de France' } ] ) it ''' Filter by country - Only get competitions for a given country - Uses the official ISO [country codes](http://en.wikipedia.org/wiki/ISO_3166-1) ''', () -> request(server) .get('/sports/1/competitions?country=fr') .set('Accept', 'application/json') .expect(200) .expect('Content-Type', /json/) .expect( competitions: [ { id: 2, country: 'fr', name: 'Coupe de France' } ] )
158349
# These specs are written in CoffeeScript (personal choice) # but would work just as well in JavaScript request = require 'supertest' sinon = require 'sinon' server = require '../src/server' fixtures = require './fixtures' # We use a sinon sandboxes to cleanup our stubs/mocks # http://sinonjs.org/docs/#sinon-sandbox sandbox = null # You can group tests into categories with typical Mocha nested describe blocks # The nested hierarchy is combined and merged across all test files describe 'Events', -> # Load test fixtures # so we know exactly what our sample responses will be beforeEach -> sandbox = sinon.sandbox.create() fixtures.fakeSports(sandbox) # Reset stubs afterEach -> sandbox.restore() # Nested describe block # The first two nested levels will be used for navigation in the generated docs describe 'Sports', -> # Test name and summary # This is markdown text that will appear in the docs it ''' Get list of sports - list is ordered alphabetically - doesn't return sports with no active competitions ''', () -> # The expected request/response sample using "supertest" # # For more details on all possible operations # see https://github.com/visionmedia/supertest # and https://github.com/visionmedia/superagent # # Note: if you specify multiple assertions on the body or on a given header # the documentation will only show the first one request(server) .get('/sports') .set('Accept', 'application/json') .expect(200) .expect('Content-Type', /json/) .expect( sports: [ { id: 1, name: '<NAME>' } { id: 2, name: '<NAME>' } ] ) # Just another API sample describe 'Competitions', -> it ''' Competitions by sport - List of **open** competitions for a given sport. - Returns all countries by default. ''', () -> request(server) .get('/sports/1/competitions') .set('Accept', 'application/json') .expect(200) .expect('Content-Type', /json/) .expect( competitions: [ { id: 1, country: 'gb', name: 'English premier league' } { id: 2, country: 'fr', name: 'Coupe de France' } ] ) it ''' Filter by country - Only get competitions for a given country - Uses the official ISO [country codes](http://en.wikipedia.org/wiki/ISO_3166-1) ''', () -> request(server) .get('/sports/1/competitions?country=fr') .set('Accept', 'application/json') .expect(200) .expect('Content-Type', /json/) .expect( competitions: [ { id: 2, country: 'fr', name: 'Coupe de France' } ] )
true
# These specs are written in CoffeeScript (personal choice) # but would work just as well in JavaScript request = require 'supertest' sinon = require 'sinon' server = require '../src/server' fixtures = require './fixtures' # We use a sinon sandboxes to cleanup our stubs/mocks # http://sinonjs.org/docs/#sinon-sandbox sandbox = null # You can group tests into categories with typical Mocha nested describe blocks # The nested hierarchy is combined and merged across all test files describe 'Events', -> # Load test fixtures # so we know exactly what our sample responses will be beforeEach -> sandbox = sinon.sandbox.create() fixtures.fakeSports(sandbox) # Reset stubs afterEach -> sandbox.restore() # Nested describe block # The first two nested levels will be used for navigation in the generated docs describe 'Sports', -> # Test name and summary # This is markdown text that will appear in the docs it ''' Get list of sports - list is ordered alphabetically - doesn't return sports with no active competitions ''', () -> # The expected request/response sample using "supertest" # # For more details on all possible operations # see https://github.com/visionmedia/supertest # and https://github.com/visionmedia/superagent # # Note: if you specify multiple assertions on the body or on a given header # the documentation will only show the first one request(server) .get('/sports') .set('Accept', 'application/json') .expect(200) .expect('Content-Type', /json/) .expect( sports: [ { id: 1, name: 'PI:NAME:<NAME>END_PI' } { id: 2, name: 'PI:NAME:<NAME>END_PI' } ] ) # Just another API sample describe 'Competitions', -> it ''' Competitions by sport - List of **open** competitions for a given sport. - Returns all countries by default. ''', () -> request(server) .get('/sports/1/competitions') .set('Accept', 'application/json') .expect(200) .expect('Content-Type', /json/) .expect( competitions: [ { id: 1, country: 'gb', name: 'English premier league' } { id: 2, country: 'fr', name: 'Coupe de France' } ] ) it ''' Filter by country - Only get competitions for a given country - Uses the official ISO [country codes](http://en.wikipedia.org/wiki/ISO_3166-1) ''', () -> request(server) .get('/sports/1/competitions?country=fr') .set('Accept', 'application/json') .expect(200) .expect('Content-Type', /json/) .expect( competitions: [ { id: 2, country: 'fr', name: 'Coupe de France' } ] )
[ { "context": "s\n\t\treturn if @isTransitioning\n\n\t\t# Maybe people (Jorn) pass in a layer accidentally\n\t\toptions = {} if o", "end": 5028, "score": 0.9607884883880615, "start": 5024, "tag": "NAME", "value": "Jorn" } ]
framer/Components/FlowComponent.coffee
ig-la/Framer
3,817
Utils = require "../Utils" {Layer} = require "../Layer" {Events} = require "../Events" {LayerStates} = require "../LayerStates" {LayerStateMachine} = require "../LayerStateMachine" {AnimationGroup} = require "../AnimationGroup" FlowComponentLayerScrollKey = "_flowComponentWrapped" Events.TransitionStart = "transitionstart" Events.TransitionHalt = "transitionhalt" Events.TransitionStop = "transitionstop" Events.TransitionEnd = "transitionend" class exports.FlowComponent extends Layer constructor: (layerOrOptions={}, options={}) -> layer = null if layerOrOptions instanceof Layer layer = layerOrOptions options = options else options = layerOrOptions options = _.defaults {}, options, backgroundColor: "black" if not options.size options.width ?= Screen.width options.height ?= Screen.height options.clip ?= true super options @reset() @overlay = new Layer name: "overlay" parent: @ size: 0 backgroundColor: "black" visible: false @overlay.onTap(@_handleOverlayTap) if layer @showNext(layer) else @_tempScroll = new ScrollComponent name: "scrollComponent" parent: @ width: @width height: @height reset: -> if @_stack for item in @_stack item.layer.visible = false unless item.layer is @_initial @_stack = [] @_seen = [] @_current = null @_isModal = false @showNext(@_initial, animate: false) if @_initial # @define "isTransitioning", # get: -> @_runningTransition @define "isModal", get: -> @_isModal @define "stack", get: -> @_stack.map (item) -> item.layer @define "current", get: -> return @_stack[@_stack.length - 1]?.layer @define "previous", get: -> return @_stack[@_stack.length - 2]?.layer @define "scroll", get: -> return @current?._flowScroll @define "mouseWheelEnabled", default: false get: -> return @_mouseWheelEnabled set: (value) -> @_mouseWheelEnabled = value ############################################################## # Header and footer @define "header", get: -> @_header set: (layer) -> return unless layer instanceof Layer @_header = layer @_header.name = "header" @_header.width = @width @_header.setParentPreservingConstraintValues(@) if not @_header.constraintValues? @_header.x = Align.center @_header.y = Align.top @_wrapLayer(@current) if @current @define "footer", get: -> @_footer set: (layer) -> return unless layer instanceof Layer @_footer = layer @_footer.name = "footer" @_footer.width = @width @_footer.setParentPreservingConstraintValues(@) if not @_footer.constraintValues? @_footer.x = Align.center @_footer.y = Align.bottom @_wrapLayer(@current) if @current ############################################################## # Transitions transition: (layer, transitionFunction, options={}) -> # Transition over to a new layer using a specific transtition function. # Some basic error checking throw new Error "FlowComponent.transition expects a layer" unless layer instanceof Layer throw new Error "FlowComponent.transition expects transitionFunction" unless transitionFunction return if layer is @current # Remove the temporary scroll component when the first layer gets added @_tempScroll?.destroy() # Set the default values so we get some expected results (visibility, # correct parent, events, wrapping, etcetera). # If this is the first layer we navigate to, we skip the animation options = _.defaults {}, options, animate: if @_firstTransition is true then true else false scroll: true wrap: true modal: false # Deal with modal transitions, where a click on the overlay goes back @_isModal = options.modal # Make sure the layer is visible layer.visible = true layer.opacity = 1 # We want the layer to block events so you can't click on layers # that end up behind it without knowing it. layer.ignoreEvents = false # Wrap the layer into a ScrollComponent if it exceeds the size # and correct the parent if needed. wrappedLayer = layer wrappedLayer = @_wrapLayer(layer) if options.scroll and options.wrap wrappedLayer.parent = @ wrappedLayer.visible = not options.animate layerA = @current layerB = wrappedLayer overlay = @overlay # Get the executed template data by passing in the layers for this transition template = transitionFunction(@, layerA, layerB, overlay) # Build the transition function to setup all the states, using the # transition, current and new layer, and optionally a background. transition = @_buildTransition(template, layerA, layerB, overlay) # Run the transition and update the history @_runTransition(transition, "forward", options.animate, @current, layer) @_stack.push({layer: layer, transition: transition}) showNext: (layer, options={}) -> @_initial ?= layer @transition(layer, Transitions.show, options) showPrevious: (options={}) => return unless @previous return if @isTransitioning # Maybe people (Jorn) pass in a layer accidentally options = {} if options instanceof(Framer._Layer) options = _.defaults({}, options, {count: 1, animate: true}) if options.count > 1 count = options.count @showPrevious(animate: false, count: 1) for n in [2..count] previous = @_stack.pop() @_runTransition(previous?.transition, "back", options.animate, @current, previous.layer) showOverlayCenter: (layer, options={}) -> @_showOverlay(layer, Transitions.overlayCenter, options) showOverlayTop: (layer, options={}) -> @_showOverlay(layer, Transitions.overlayTop, options) showOverlayRight: (layer, options={}) -> @_showOverlay(layer, Transitions.overlayRight, options) showOverlayBottom: (layer, options={}) -> @_showOverlay(layer, Transitions.overlayBottom, options) showOverlayLeft: (layer, options={}) -> @_showOverlay(layer, Transitions.overlayLeft, options) ############################################################## # Internal methods _showOverlay: (layer, transition, options={}) -> @transition(layer, transition, _.defaults({}, options, {animate: true, scroll: false, modal: false})) _handleOverlayTap: => @showPrevious() if not @isModal _wrapLayer: (flowLayer) -> flowLayer._flowLayer = flowLayer return flowLayer if flowLayer instanceof ScrollComponent return flowLayer if flowLayer._flowWrapped # Make the layer at least match the device size flowLayer.width = Math.max(flowLayer.width, @width) flowLayer.height = Math.max(flowLayer.height, @height) size = @size # Save the parent so we can clean up when we re-wrap this layer if @ in flowLayer.ancestors() content = flowLayer?.parent scroll = content?.parent if scroll instanceof ScrollComponent previousWrappingScroll = scroll previousWrappingContent = content layer = layoutPage(flowLayer, size) layer = layoutScroll(layer, size) if flowLayer isnt layer and previousWrappingContent?.children.length is 0 and previousWrappingScroll?.children.length is 1 and previousWrappingScroll?.children[0] is previousWrappingContent # we wrapped the layer previousWrappingScroll.destroy() # Mark the layer so we don't layout it twice' layer._flowLayer = flowLayer # Forward the scroll events from created scroll components for scroll in [layer, layer.children...] @_forwardScrollEvents(scroll) if scroll instanceof ScrollComponent inset = {} inset.top = @header?.height or 0 if scroll.y is 0 inset.bottom = @footer?.height or 0 if scroll.maxY is @height scroll.contentInset = inset flowLayer._flowScroll = scroll scroll.mouseWheelEnabled = @_mouseWheelEnabled # Set the background color for he created scroll component if layer instanceof ScrollComponent layer.backgroundColor = @backgroundColor return layer _forwardScrollEvents: (scroll) => return unless scroll instanceof ScrollComponent return if scroll._flowForward is true # But only the actual scroll events for event in [ Events.Move, Events.ScrollStart, Events.ScrollMove, Events.ScrollEnd, Events.ScrollAnimationDidStart, Events.ScrollAnimationDidEnd] do (event) => scroll.on event, => @emit(event, scroll) scroll._flowForward = true _runTransition: (transition, direction, animate, from, to) => if direction is "forward" a = from b = to else a = to b = from @emit(Events.TransitionStart, a, b, direction) # Start the transition with a small delay added so it only runs after all # js has been processed. It's also important for hints, as they rely on # ignoreEvents to be false at the moment of a click. Utils.delay 0, => @_firstTransition = true transition[direction](animate) _buildTransition: (template, layerA, layerB, overlay) -> # # Buld a new transtition object with empty states transition = {} # Add the forward function for this state to transition forward transition.forward = (animate=true, callback) => forwardEvents = (group, direction) => group.once Events.AnimationHalt, => @emit(Events.TransitionHalt, layerA, layerB, direction) group.once Events.AnimationStop, => @emit(Events.TransitionStop, layerA, layerB, direction) group.once Events.AnimationEnd, => @emit(Events.TransitionEnd, layerA, layerB, direction) animations = [] options = {instant: not animate} if layerA and template.layerA layerA.visible = true animations.push(new Animation(layerA, template.layerA.hide, options)) if layerB and template.layerB layerB.props = template.layerB.hide # layerB.props = template.layerB.hide if animate # This breaks events now layerB.bringToFront() layerB.visible = true animations.push(new Animation(layerB, template.layerB.show, options)) if overlay and template.overlay overlay.visible = true overlay.ignoreEvents = false overlay.placeBehind(layerB) overlay.props = template.overlay.hide animations.push(new Animation(overlay, template.overlay.show, options)) # Set the right layer indexes for the header and footer if they are there. if overlay and template.overlay @header.placeBehind(overlay) if @header @footer.placeBehind(overlay) if @footer else @header.bringToFront() if @header @footer.bringToFront() if @footer group = new AnimationGroup(animations) forwardEvents(group, "forward") group.once Events.AnimationEnd, -> if layerA and template.layerA and not (overlay and template.overlay) layerA.visible = false group.start() transition.back = (animate=true, callback) => forwardEvents = (group, direction) => group.once Events.AnimationHalt, => @emit(Events.TransitionHalt, layerB, layerA, direction) group.once Events.AnimationStop, => @emit(Events.TransitionStop, layerB, layerA, direction) group.once Events.AnimationEnd, => @emit(Events.TransitionEnd, layerB, layerA, direction) animations = [] options = {instant: not animate} if overlay and template.overlay overlay.visible = true overlay.ignoreEvents = true animations.push(new Animation(overlay, template.overlay.hide, options)) if layerA and template.layerA layerA.visible = true animations.push(new Animation(layerA, template.layerA.show, options)) if layerB and template.layerB layerB.visible = true animations.push(new Animation(layerB, template.layerB.hide, options)) group = new AnimationGroup(animations) group.stopAnimations = false forwardEvents(group, "back") group.once Events.AnimationEnd, -> if layerB and template.layerB layerB.visible = false group.start() return transition ############################################################## # Event helpers onTransitionStart: (cb) -> @on(Events.TransitionStart, cb) onTransitionHalt: (cb) -> @on(Events.TransitionHalt, cb) onTransitionStop: (cb) -> @on(Events.TransitionStop, cb) onTransitionEnd: (cb) -> @on(Events.TransitionEnd, cb) onStart: (cb) -> @onTransitionStart(cb) onHalt: (cb) -> @onTransitionHalt(cb) onStop: (cb) -> @onTransitionStop(cb) onEnd: (cb) -> @onTransitionEnd(cb) ############################################################## # Layout helpers findPossibleHeader = (layer) -> candidate = null for child in layer.children attachedLeft = child.x is 0 or child.constraintValues?.left is 0 atttachedRight = child.width is layer.width or child.constraintValues?.right is 0 attachedTop = child.y is 0 or child.constraintValues?.top is 0 if attachedLeft and atttachedRight and attachedTop return if candidate candidate = child return unless candidate for child in layer.children continue if candidate is child return if child.minY < candidate.maxY return candidate findPossibleFooter = (layer) -> candidate = null for child in layer.children attachedLeft = child.x is 0 or child.constraintValues?.left is 0 atttachedRight = child.width is layer.width or child.constraintValues?.right is 0 attachedBottom = child.maxY is layer.height or child.constraintValues?.bottom is 0 if attachedLeft and atttachedRight and attachedBottom return if candidate candidate = child return unless candidate for child in layer.children continue if candidate is child return if child.maxY > candidate.minY return candidate findHeader = (layer) -> header = findPossibleHeader(layer) footer = findPossibleFooter(layer) if header and footer if header.maxY is footer.minY return if header.height >= footer.height return header findFooter = (layer) -> header = findPossibleHeader(layer) footer = findPossibleFooter(layer) if header and footer if header.maxY is footer.minY return if footer.height >= header.height return footer findBody = (layer, header, footer) -> return unless header or footer for child in layer.children continue if child is header continue if child is footer if child.x is 0 and child.width is layer.width if header and footer and child.minY is header.maxY and child.maxY is footer.minY return child else if header and child.minY is header.maxY and child.maxY is layer.height return child else if footer and child.minY is 0 and child.maxY is footer.minY return child guessBodyFrame = (layer, header, footer) -> return unless header or footer return if header?.maxY is footer?.minY if header and footer frame = {x: 0, y: header.height, width: layer.width, height: layer.height - header.height - footer.height} else if header frame = {x: 0, y: header.height, width: layer.width, height: layer.height - header.height} else if footer frame = {x: 0, y: 0, width: layer.width, height: layer.height - footer.height} else return return if (header?.height or 0) > frame.height return if (footer?.height or 0) > frame.height return frame layoutPage = (layer, size) -> header = findHeader(layer) footer = findFooter(layer) return layer unless header or footer body = findBody(layer, header, footer) if not body bodyFrame = guessBodyFrame(layer, header, footer) if bodyFrame body = new Layer frame: bodyFrame backgroundColor: null for child in layer.children continue if child is header continue if child is footer child.setParentPreservingConstraintValues(body) headerHeight = header?.height or 0 if child.constraintValues? if child.constraintValues?.top? child.constraintValues?.top -= headerHeight child.layout() else child.y -= headerHeight return layer unless body bodyFrame = body.frame bodyFrame.width = size.width bodyFrame.height = size.height - (header?.height or 0) - (footer?.height or 0) body.point = 0 # Not scroll vertically if there's a header or footer body.width = size.width scroll = layoutScroll(body, bodyFrame) scroll.parent = layer scroll.frame = bodyFrame layer.size = size if footer?.maxY > size.height footer.maxY = size.height header?.bringToFront() footer?.bringToFront() return layer layoutScroll = (layer, size) -> if layer.width <= size.width and layer.height <= size.height return layer scroll = new ScrollComponent size: size name: "scroll" height = layer.height scroll.propagateEvents = false constraints = layer.constraintValues layer.point = 0 layer.parent = scroll.content layer.constraintValues = constraints scroll.scrollHorizontal = layer.maxX > size.width scroll.scrollVertical = layer.maxY > size.height return scroll Transitions = {} Transitions.show = (nav, layerA, layerB, overlay) -> options = {curve: "spring(300, 35, 0)"} transition = layerA: show: {options: options, x: 0, y: 0} hide: {options: options, x: 0 - layerA?.width / 2, y: 0} layerB: show: {options: options, x: 0, y: 0} hide: {options: options, x: layerB.width, y: 0} Transitions.overlayCenter = (nav, layerA, layerB, overlay) -> transition = layerB: show: {options: {curve: "spring(500, 35, 0)"}, x: Align.center, y: Align.center, scale: 1.0, opacity: 1} hide: {options: {curve: "spring(500, 35, 0)"}, x: Align.center, y: Align.center, scale: 0.5, opacity: 0} overlay: show: {options: {time: 0.1}, opacity: .5, x: 0, y: 0, size: nav.size} hide: {options: {time: 0.1}, opacity: 0, x: 0, y: 0, size: nav.size} Transitions.overlayLeft = (nav, layerA, layerB, overlay) -> transition = layerB: show: {options: {curve: "spring(300, 35, 0)"}, y: 0, x: 0} hide: {options: {curve: "spring(300, 35, 0)"}, y: 0, x: 0 - layerB?.width} overlay: show: {options: {time: 0.1}, opacity: .5, x: 0, y: 0, size: nav.size} hide: {options: {time: 0.1}, opacity: 0, x: 0, y: 0, size: nav.size} Transitions.overlayRight = (nav, layerA, layerB, overlay) -> transition = layerB: show: {options: {curve: "spring(300, 35, 0)"}, y: 0, x: nav?.width - layerB?.width} hide: {options: {curve: "spring(300, 35, 0)"}, y: 0, x: nav?.width} overlay: show: {options: {time: 0.1}, opacity: .5, x: 0, y: 0, size: nav.size} hide: {options: {time: 0.1}, opacity: 0, x: 0, y: 0, size: nav.size} Transitions.overlayTop = (nav, layerA, layerB, overlay) -> transition = layerB: show: {options: {curve: "spring(300, 35, 0)"}, x: Align.center, y: 0} hide: {options: {curve: "spring(300, 35, 0)"}, x: Align.center, maxY: 0} overlay: show: {options: {time: 0.1}, opacity: .5, x: 0, y: 0, size: nav.size} hide: {options: {time: 0.1}, opacity: 0, x: 0, y: 0, size: nav.size} Transitions.overlayBottom = (nav, layerA, layerB, overlay) -> transition = layerB: show: {options: {curve: "spring(300, 35, 0)"}, x: Align.center, y: nav?.height - layerB?.height} hide: {options: {curve: "spring(300, 35, 0)"}, x: Align.center, y: nav?.height} overlay: show: {options: {time: 0.1}, opacity: .5, x: 0, y: 0, size: nav.size} hide: {options: {time: 0.1}, opacity: 0, x: 0, y: 0, size: nav.size}
39609
Utils = require "../Utils" {Layer} = require "../Layer" {Events} = require "../Events" {LayerStates} = require "../LayerStates" {LayerStateMachine} = require "../LayerStateMachine" {AnimationGroup} = require "../AnimationGroup" FlowComponentLayerScrollKey = "_flowComponentWrapped" Events.TransitionStart = "transitionstart" Events.TransitionHalt = "transitionhalt" Events.TransitionStop = "transitionstop" Events.TransitionEnd = "transitionend" class exports.FlowComponent extends Layer constructor: (layerOrOptions={}, options={}) -> layer = null if layerOrOptions instanceof Layer layer = layerOrOptions options = options else options = layerOrOptions options = _.defaults {}, options, backgroundColor: "black" if not options.size options.width ?= Screen.width options.height ?= Screen.height options.clip ?= true super options @reset() @overlay = new Layer name: "overlay" parent: @ size: 0 backgroundColor: "black" visible: false @overlay.onTap(@_handleOverlayTap) if layer @showNext(layer) else @_tempScroll = new ScrollComponent name: "scrollComponent" parent: @ width: @width height: @height reset: -> if @_stack for item in @_stack item.layer.visible = false unless item.layer is @_initial @_stack = [] @_seen = [] @_current = null @_isModal = false @showNext(@_initial, animate: false) if @_initial # @define "isTransitioning", # get: -> @_runningTransition @define "isModal", get: -> @_isModal @define "stack", get: -> @_stack.map (item) -> item.layer @define "current", get: -> return @_stack[@_stack.length - 1]?.layer @define "previous", get: -> return @_stack[@_stack.length - 2]?.layer @define "scroll", get: -> return @current?._flowScroll @define "mouseWheelEnabled", default: false get: -> return @_mouseWheelEnabled set: (value) -> @_mouseWheelEnabled = value ############################################################## # Header and footer @define "header", get: -> @_header set: (layer) -> return unless layer instanceof Layer @_header = layer @_header.name = "header" @_header.width = @width @_header.setParentPreservingConstraintValues(@) if not @_header.constraintValues? @_header.x = Align.center @_header.y = Align.top @_wrapLayer(@current) if @current @define "footer", get: -> @_footer set: (layer) -> return unless layer instanceof Layer @_footer = layer @_footer.name = "footer" @_footer.width = @width @_footer.setParentPreservingConstraintValues(@) if not @_footer.constraintValues? @_footer.x = Align.center @_footer.y = Align.bottom @_wrapLayer(@current) if @current ############################################################## # Transitions transition: (layer, transitionFunction, options={}) -> # Transition over to a new layer using a specific transtition function. # Some basic error checking throw new Error "FlowComponent.transition expects a layer" unless layer instanceof Layer throw new Error "FlowComponent.transition expects transitionFunction" unless transitionFunction return if layer is @current # Remove the temporary scroll component when the first layer gets added @_tempScroll?.destroy() # Set the default values so we get some expected results (visibility, # correct parent, events, wrapping, etcetera). # If this is the first layer we navigate to, we skip the animation options = _.defaults {}, options, animate: if @_firstTransition is true then true else false scroll: true wrap: true modal: false # Deal with modal transitions, where a click on the overlay goes back @_isModal = options.modal # Make sure the layer is visible layer.visible = true layer.opacity = 1 # We want the layer to block events so you can't click on layers # that end up behind it without knowing it. layer.ignoreEvents = false # Wrap the layer into a ScrollComponent if it exceeds the size # and correct the parent if needed. wrappedLayer = layer wrappedLayer = @_wrapLayer(layer) if options.scroll and options.wrap wrappedLayer.parent = @ wrappedLayer.visible = not options.animate layerA = @current layerB = wrappedLayer overlay = @overlay # Get the executed template data by passing in the layers for this transition template = transitionFunction(@, layerA, layerB, overlay) # Build the transition function to setup all the states, using the # transition, current and new layer, and optionally a background. transition = @_buildTransition(template, layerA, layerB, overlay) # Run the transition and update the history @_runTransition(transition, "forward", options.animate, @current, layer) @_stack.push({layer: layer, transition: transition}) showNext: (layer, options={}) -> @_initial ?= layer @transition(layer, Transitions.show, options) showPrevious: (options={}) => return unless @previous return if @isTransitioning # Maybe people (<NAME>) pass in a layer accidentally options = {} if options instanceof(Framer._Layer) options = _.defaults({}, options, {count: 1, animate: true}) if options.count > 1 count = options.count @showPrevious(animate: false, count: 1) for n in [2..count] previous = @_stack.pop() @_runTransition(previous?.transition, "back", options.animate, @current, previous.layer) showOverlayCenter: (layer, options={}) -> @_showOverlay(layer, Transitions.overlayCenter, options) showOverlayTop: (layer, options={}) -> @_showOverlay(layer, Transitions.overlayTop, options) showOverlayRight: (layer, options={}) -> @_showOverlay(layer, Transitions.overlayRight, options) showOverlayBottom: (layer, options={}) -> @_showOverlay(layer, Transitions.overlayBottom, options) showOverlayLeft: (layer, options={}) -> @_showOverlay(layer, Transitions.overlayLeft, options) ############################################################## # Internal methods _showOverlay: (layer, transition, options={}) -> @transition(layer, transition, _.defaults({}, options, {animate: true, scroll: false, modal: false})) _handleOverlayTap: => @showPrevious() if not @isModal _wrapLayer: (flowLayer) -> flowLayer._flowLayer = flowLayer return flowLayer if flowLayer instanceof ScrollComponent return flowLayer if flowLayer._flowWrapped # Make the layer at least match the device size flowLayer.width = Math.max(flowLayer.width, @width) flowLayer.height = Math.max(flowLayer.height, @height) size = @size # Save the parent so we can clean up when we re-wrap this layer if @ in flowLayer.ancestors() content = flowLayer?.parent scroll = content?.parent if scroll instanceof ScrollComponent previousWrappingScroll = scroll previousWrappingContent = content layer = layoutPage(flowLayer, size) layer = layoutScroll(layer, size) if flowLayer isnt layer and previousWrappingContent?.children.length is 0 and previousWrappingScroll?.children.length is 1 and previousWrappingScroll?.children[0] is previousWrappingContent # we wrapped the layer previousWrappingScroll.destroy() # Mark the layer so we don't layout it twice' layer._flowLayer = flowLayer # Forward the scroll events from created scroll components for scroll in [layer, layer.children...] @_forwardScrollEvents(scroll) if scroll instanceof ScrollComponent inset = {} inset.top = @header?.height or 0 if scroll.y is 0 inset.bottom = @footer?.height or 0 if scroll.maxY is @height scroll.contentInset = inset flowLayer._flowScroll = scroll scroll.mouseWheelEnabled = @_mouseWheelEnabled # Set the background color for he created scroll component if layer instanceof ScrollComponent layer.backgroundColor = @backgroundColor return layer _forwardScrollEvents: (scroll) => return unless scroll instanceof ScrollComponent return if scroll._flowForward is true # But only the actual scroll events for event in [ Events.Move, Events.ScrollStart, Events.ScrollMove, Events.ScrollEnd, Events.ScrollAnimationDidStart, Events.ScrollAnimationDidEnd] do (event) => scroll.on event, => @emit(event, scroll) scroll._flowForward = true _runTransition: (transition, direction, animate, from, to) => if direction is "forward" a = from b = to else a = to b = from @emit(Events.TransitionStart, a, b, direction) # Start the transition with a small delay added so it only runs after all # js has been processed. It's also important for hints, as they rely on # ignoreEvents to be false at the moment of a click. Utils.delay 0, => @_firstTransition = true transition[direction](animate) _buildTransition: (template, layerA, layerB, overlay) -> # # Buld a new transtition object with empty states transition = {} # Add the forward function for this state to transition forward transition.forward = (animate=true, callback) => forwardEvents = (group, direction) => group.once Events.AnimationHalt, => @emit(Events.TransitionHalt, layerA, layerB, direction) group.once Events.AnimationStop, => @emit(Events.TransitionStop, layerA, layerB, direction) group.once Events.AnimationEnd, => @emit(Events.TransitionEnd, layerA, layerB, direction) animations = [] options = {instant: not animate} if layerA and template.layerA layerA.visible = true animations.push(new Animation(layerA, template.layerA.hide, options)) if layerB and template.layerB layerB.props = template.layerB.hide # layerB.props = template.layerB.hide if animate # This breaks events now layerB.bringToFront() layerB.visible = true animations.push(new Animation(layerB, template.layerB.show, options)) if overlay and template.overlay overlay.visible = true overlay.ignoreEvents = false overlay.placeBehind(layerB) overlay.props = template.overlay.hide animations.push(new Animation(overlay, template.overlay.show, options)) # Set the right layer indexes for the header and footer if they are there. if overlay and template.overlay @header.placeBehind(overlay) if @header @footer.placeBehind(overlay) if @footer else @header.bringToFront() if @header @footer.bringToFront() if @footer group = new AnimationGroup(animations) forwardEvents(group, "forward") group.once Events.AnimationEnd, -> if layerA and template.layerA and not (overlay and template.overlay) layerA.visible = false group.start() transition.back = (animate=true, callback) => forwardEvents = (group, direction) => group.once Events.AnimationHalt, => @emit(Events.TransitionHalt, layerB, layerA, direction) group.once Events.AnimationStop, => @emit(Events.TransitionStop, layerB, layerA, direction) group.once Events.AnimationEnd, => @emit(Events.TransitionEnd, layerB, layerA, direction) animations = [] options = {instant: not animate} if overlay and template.overlay overlay.visible = true overlay.ignoreEvents = true animations.push(new Animation(overlay, template.overlay.hide, options)) if layerA and template.layerA layerA.visible = true animations.push(new Animation(layerA, template.layerA.show, options)) if layerB and template.layerB layerB.visible = true animations.push(new Animation(layerB, template.layerB.hide, options)) group = new AnimationGroup(animations) group.stopAnimations = false forwardEvents(group, "back") group.once Events.AnimationEnd, -> if layerB and template.layerB layerB.visible = false group.start() return transition ############################################################## # Event helpers onTransitionStart: (cb) -> @on(Events.TransitionStart, cb) onTransitionHalt: (cb) -> @on(Events.TransitionHalt, cb) onTransitionStop: (cb) -> @on(Events.TransitionStop, cb) onTransitionEnd: (cb) -> @on(Events.TransitionEnd, cb) onStart: (cb) -> @onTransitionStart(cb) onHalt: (cb) -> @onTransitionHalt(cb) onStop: (cb) -> @onTransitionStop(cb) onEnd: (cb) -> @onTransitionEnd(cb) ############################################################## # Layout helpers findPossibleHeader = (layer) -> candidate = null for child in layer.children attachedLeft = child.x is 0 or child.constraintValues?.left is 0 atttachedRight = child.width is layer.width or child.constraintValues?.right is 0 attachedTop = child.y is 0 or child.constraintValues?.top is 0 if attachedLeft and atttachedRight and attachedTop return if candidate candidate = child return unless candidate for child in layer.children continue if candidate is child return if child.minY < candidate.maxY return candidate findPossibleFooter = (layer) -> candidate = null for child in layer.children attachedLeft = child.x is 0 or child.constraintValues?.left is 0 atttachedRight = child.width is layer.width or child.constraintValues?.right is 0 attachedBottom = child.maxY is layer.height or child.constraintValues?.bottom is 0 if attachedLeft and atttachedRight and attachedBottom return if candidate candidate = child return unless candidate for child in layer.children continue if candidate is child return if child.maxY > candidate.minY return candidate findHeader = (layer) -> header = findPossibleHeader(layer) footer = findPossibleFooter(layer) if header and footer if header.maxY is footer.minY return if header.height >= footer.height return header findFooter = (layer) -> header = findPossibleHeader(layer) footer = findPossibleFooter(layer) if header and footer if header.maxY is footer.minY return if footer.height >= header.height return footer findBody = (layer, header, footer) -> return unless header or footer for child in layer.children continue if child is header continue if child is footer if child.x is 0 and child.width is layer.width if header and footer and child.minY is header.maxY and child.maxY is footer.minY return child else if header and child.minY is header.maxY and child.maxY is layer.height return child else if footer and child.minY is 0 and child.maxY is footer.minY return child guessBodyFrame = (layer, header, footer) -> return unless header or footer return if header?.maxY is footer?.minY if header and footer frame = {x: 0, y: header.height, width: layer.width, height: layer.height - header.height - footer.height} else if header frame = {x: 0, y: header.height, width: layer.width, height: layer.height - header.height} else if footer frame = {x: 0, y: 0, width: layer.width, height: layer.height - footer.height} else return return if (header?.height or 0) > frame.height return if (footer?.height or 0) > frame.height return frame layoutPage = (layer, size) -> header = findHeader(layer) footer = findFooter(layer) return layer unless header or footer body = findBody(layer, header, footer) if not body bodyFrame = guessBodyFrame(layer, header, footer) if bodyFrame body = new Layer frame: bodyFrame backgroundColor: null for child in layer.children continue if child is header continue if child is footer child.setParentPreservingConstraintValues(body) headerHeight = header?.height or 0 if child.constraintValues? if child.constraintValues?.top? child.constraintValues?.top -= headerHeight child.layout() else child.y -= headerHeight return layer unless body bodyFrame = body.frame bodyFrame.width = size.width bodyFrame.height = size.height - (header?.height or 0) - (footer?.height or 0) body.point = 0 # Not scroll vertically if there's a header or footer body.width = size.width scroll = layoutScroll(body, bodyFrame) scroll.parent = layer scroll.frame = bodyFrame layer.size = size if footer?.maxY > size.height footer.maxY = size.height header?.bringToFront() footer?.bringToFront() return layer layoutScroll = (layer, size) -> if layer.width <= size.width and layer.height <= size.height return layer scroll = new ScrollComponent size: size name: "scroll" height = layer.height scroll.propagateEvents = false constraints = layer.constraintValues layer.point = 0 layer.parent = scroll.content layer.constraintValues = constraints scroll.scrollHorizontal = layer.maxX > size.width scroll.scrollVertical = layer.maxY > size.height return scroll Transitions = {} Transitions.show = (nav, layerA, layerB, overlay) -> options = {curve: "spring(300, 35, 0)"} transition = layerA: show: {options: options, x: 0, y: 0} hide: {options: options, x: 0 - layerA?.width / 2, y: 0} layerB: show: {options: options, x: 0, y: 0} hide: {options: options, x: layerB.width, y: 0} Transitions.overlayCenter = (nav, layerA, layerB, overlay) -> transition = layerB: show: {options: {curve: "spring(500, 35, 0)"}, x: Align.center, y: Align.center, scale: 1.0, opacity: 1} hide: {options: {curve: "spring(500, 35, 0)"}, x: Align.center, y: Align.center, scale: 0.5, opacity: 0} overlay: show: {options: {time: 0.1}, opacity: .5, x: 0, y: 0, size: nav.size} hide: {options: {time: 0.1}, opacity: 0, x: 0, y: 0, size: nav.size} Transitions.overlayLeft = (nav, layerA, layerB, overlay) -> transition = layerB: show: {options: {curve: "spring(300, 35, 0)"}, y: 0, x: 0} hide: {options: {curve: "spring(300, 35, 0)"}, y: 0, x: 0 - layerB?.width} overlay: show: {options: {time: 0.1}, opacity: .5, x: 0, y: 0, size: nav.size} hide: {options: {time: 0.1}, opacity: 0, x: 0, y: 0, size: nav.size} Transitions.overlayRight = (nav, layerA, layerB, overlay) -> transition = layerB: show: {options: {curve: "spring(300, 35, 0)"}, y: 0, x: nav?.width - layerB?.width} hide: {options: {curve: "spring(300, 35, 0)"}, y: 0, x: nav?.width} overlay: show: {options: {time: 0.1}, opacity: .5, x: 0, y: 0, size: nav.size} hide: {options: {time: 0.1}, opacity: 0, x: 0, y: 0, size: nav.size} Transitions.overlayTop = (nav, layerA, layerB, overlay) -> transition = layerB: show: {options: {curve: "spring(300, 35, 0)"}, x: Align.center, y: 0} hide: {options: {curve: "spring(300, 35, 0)"}, x: Align.center, maxY: 0} overlay: show: {options: {time: 0.1}, opacity: .5, x: 0, y: 0, size: nav.size} hide: {options: {time: 0.1}, opacity: 0, x: 0, y: 0, size: nav.size} Transitions.overlayBottom = (nav, layerA, layerB, overlay) -> transition = layerB: show: {options: {curve: "spring(300, 35, 0)"}, x: Align.center, y: nav?.height - layerB?.height} hide: {options: {curve: "spring(300, 35, 0)"}, x: Align.center, y: nav?.height} overlay: show: {options: {time: 0.1}, opacity: .5, x: 0, y: 0, size: nav.size} hide: {options: {time: 0.1}, opacity: 0, x: 0, y: 0, size: nav.size}
true
Utils = require "../Utils" {Layer} = require "../Layer" {Events} = require "../Events" {LayerStates} = require "../LayerStates" {LayerStateMachine} = require "../LayerStateMachine" {AnimationGroup} = require "../AnimationGroup" FlowComponentLayerScrollKey = "_flowComponentWrapped" Events.TransitionStart = "transitionstart" Events.TransitionHalt = "transitionhalt" Events.TransitionStop = "transitionstop" Events.TransitionEnd = "transitionend" class exports.FlowComponent extends Layer constructor: (layerOrOptions={}, options={}) -> layer = null if layerOrOptions instanceof Layer layer = layerOrOptions options = options else options = layerOrOptions options = _.defaults {}, options, backgroundColor: "black" if not options.size options.width ?= Screen.width options.height ?= Screen.height options.clip ?= true super options @reset() @overlay = new Layer name: "overlay" parent: @ size: 0 backgroundColor: "black" visible: false @overlay.onTap(@_handleOverlayTap) if layer @showNext(layer) else @_tempScroll = new ScrollComponent name: "scrollComponent" parent: @ width: @width height: @height reset: -> if @_stack for item in @_stack item.layer.visible = false unless item.layer is @_initial @_stack = [] @_seen = [] @_current = null @_isModal = false @showNext(@_initial, animate: false) if @_initial # @define "isTransitioning", # get: -> @_runningTransition @define "isModal", get: -> @_isModal @define "stack", get: -> @_stack.map (item) -> item.layer @define "current", get: -> return @_stack[@_stack.length - 1]?.layer @define "previous", get: -> return @_stack[@_stack.length - 2]?.layer @define "scroll", get: -> return @current?._flowScroll @define "mouseWheelEnabled", default: false get: -> return @_mouseWheelEnabled set: (value) -> @_mouseWheelEnabled = value ############################################################## # Header and footer @define "header", get: -> @_header set: (layer) -> return unless layer instanceof Layer @_header = layer @_header.name = "header" @_header.width = @width @_header.setParentPreservingConstraintValues(@) if not @_header.constraintValues? @_header.x = Align.center @_header.y = Align.top @_wrapLayer(@current) if @current @define "footer", get: -> @_footer set: (layer) -> return unless layer instanceof Layer @_footer = layer @_footer.name = "footer" @_footer.width = @width @_footer.setParentPreservingConstraintValues(@) if not @_footer.constraintValues? @_footer.x = Align.center @_footer.y = Align.bottom @_wrapLayer(@current) if @current ############################################################## # Transitions transition: (layer, transitionFunction, options={}) -> # Transition over to a new layer using a specific transtition function. # Some basic error checking throw new Error "FlowComponent.transition expects a layer" unless layer instanceof Layer throw new Error "FlowComponent.transition expects transitionFunction" unless transitionFunction return if layer is @current # Remove the temporary scroll component when the first layer gets added @_tempScroll?.destroy() # Set the default values so we get some expected results (visibility, # correct parent, events, wrapping, etcetera). # If this is the first layer we navigate to, we skip the animation options = _.defaults {}, options, animate: if @_firstTransition is true then true else false scroll: true wrap: true modal: false # Deal with modal transitions, where a click on the overlay goes back @_isModal = options.modal # Make sure the layer is visible layer.visible = true layer.opacity = 1 # We want the layer to block events so you can't click on layers # that end up behind it without knowing it. layer.ignoreEvents = false # Wrap the layer into a ScrollComponent if it exceeds the size # and correct the parent if needed. wrappedLayer = layer wrappedLayer = @_wrapLayer(layer) if options.scroll and options.wrap wrappedLayer.parent = @ wrappedLayer.visible = not options.animate layerA = @current layerB = wrappedLayer overlay = @overlay # Get the executed template data by passing in the layers for this transition template = transitionFunction(@, layerA, layerB, overlay) # Build the transition function to setup all the states, using the # transition, current and new layer, and optionally a background. transition = @_buildTransition(template, layerA, layerB, overlay) # Run the transition and update the history @_runTransition(transition, "forward", options.animate, @current, layer) @_stack.push({layer: layer, transition: transition}) showNext: (layer, options={}) -> @_initial ?= layer @transition(layer, Transitions.show, options) showPrevious: (options={}) => return unless @previous return if @isTransitioning # Maybe people (PI:NAME:<NAME>END_PI) pass in a layer accidentally options = {} if options instanceof(Framer._Layer) options = _.defaults({}, options, {count: 1, animate: true}) if options.count > 1 count = options.count @showPrevious(animate: false, count: 1) for n in [2..count] previous = @_stack.pop() @_runTransition(previous?.transition, "back", options.animate, @current, previous.layer) showOverlayCenter: (layer, options={}) -> @_showOverlay(layer, Transitions.overlayCenter, options) showOverlayTop: (layer, options={}) -> @_showOverlay(layer, Transitions.overlayTop, options) showOverlayRight: (layer, options={}) -> @_showOverlay(layer, Transitions.overlayRight, options) showOverlayBottom: (layer, options={}) -> @_showOverlay(layer, Transitions.overlayBottom, options) showOverlayLeft: (layer, options={}) -> @_showOverlay(layer, Transitions.overlayLeft, options) ############################################################## # Internal methods _showOverlay: (layer, transition, options={}) -> @transition(layer, transition, _.defaults({}, options, {animate: true, scroll: false, modal: false})) _handleOverlayTap: => @showPrevious() if not @isModal _wrapLayer: (flowLayer) -> flowLayer._flowLayer = flowLayer return flowLayer if flowLayer instanceof ScrollComponent return flowLayer if flowLayer._flowWrapped # Make the layer at least match the device size flowLayer.width = Math.max(flowLayer.width, @width) flowLayer.height = Math.max(flowLayer.height, @height) size = @size # Save the parent so we can clean up when we re-wrap this layer if @ in flowLayer.ancestors() content = flowLayer?.parent scroll = content?.parent if scroll instanceof ScrollComponent previousWrappingScroll = scroll previousWrappingContent = content layer = layoutPage(flowLayer, size) layer = layoutScroll(layer, size) if flowLayer isnt layer and previousWrappingContent?.children.length is 0 and previousWrappingScroll?.children.length is 1 and previousWrappingScroll?.children[0] is previousWrappingContent # we wrapped the layer previousWrappingScroll.destroy() # Mark the layer so we don't layout it twice' layer._flowLayer = flowLayer # Forward the scroll events from created scroll components for scroll in [layer, layer.children...] @_forwardScrollEvents(scroll) if scroll instanceof ScrollComponent inset = {} inset.top = @header?.height or 0 if scroll.y is 0 inset.bottom = @footer?.height or 0 if scroll.maxY is @height scroll.contentInset = inset flowLayer._flowScroll = scroll scroll.mouseWheelEnabled = @_mouseWheelEnabled # Set the background color for he created scroll component if layer instanceof ScrollComponent layer.backgroundColor = @backgroundColor return layer _forwardScrollEvents: (scroll) => return unless scroll instanceof ScrollComponent return if scroll._flowForward is true # But only the actual scroll events for event in [ Events.Move, Events.ScrollStart, Events.ScrollMove, Events.ScrollEnd, Events.ScrollAnimationDidStart, Events.ScrollAnimationDidEnd] do (event) => scroll.on event, => @emit(event, scroll) scroll._flowForward = true _runTransition: (transition, direction, animate, from, to) => if direction is "forward" a = from b = to else a = to b = from @emit(Events.TransitionStart, a, b, direction) # Start the transition with a small delay added so it only runs after all # js has been processed. It's also important for hints, as they rely on # ignoreEvents to be false at the moment of a click. Utils.delay 0, => @_firstTransition = true transition[direction](animate) _buildTransition: (template, layerA, layerB, overlay) -> # # Buld a new transtition object with empty states transition = {} # Add the forward function for this state to transition forward transition.forward = (animate=true, callback) => forwardEvents = (group, direction) => group.once Events.AnimationHalt, => @emit(Events.TransitionHalt, layerA, layerB, direction) group.once Events.AnimationStop, => @emit(Events.TransitionStop, layerA, layerB, direction) group.once Events.AnimationEnd, => @emit(Events.TransitionEnd, layerA, layerB, direction) animations = [] options = {instant: not animate} if layerA and template.layerA layerA.visible = true animations.push(new Animation(layerA, template.layerA.hide, options)) if layerB and template.layerB layerB.props = template.layerB.hide # layerB.props = template.layerB.hide if animate # This breaks events now layerB.bringToFront() layerB.visible = true animations.push(new Animation(layerB, template.layerB.show, options)) if overlay and template.overlay overlay.visible = true overlay.ignoreEvents = false overlay.placeBehind(layerB) overlay.props = template.overlay.hide animations.push(new Animation(overlay, template.overlay.show, options)) # Set the right layer indexes for the header and footer if they are there. if overlay and template.overlay @header.placeBehind(overlay) if @header @footer.placeBehind(overlay) if @footer else @header.bringToFront() if @header @footer.bringToFront() if @footer group = new AnimationGroup(animations) forwardEvents(group, "forward") group.once Events.AnimationEnd, -> if layerA and template.layerA and not (overlay and template.overlay) layerA.visible = false group.start() transition.back = (animate=true, callback) => forwardEvents = (group, direction) => group.once Events.AnimationHalt, => @emit(Events.TransitionHalt, layerB, layerA, direction) group.once Events.AnimationStop, => @emit(Events.TransitionStop, layerB, layerA, direction) group.once Events.AnimationEnd, => @emit(Events.TransitionEnd, layerB, layerA, direction) animations = [] options = {instant: not animate} if overlay and template.overlay overlay.visible = true overlay.ignoreEvents = true animations.push(new Animation(overlay, template.overlay.hide, options)) if layerA and template.layerA layerA.visible = true animations.push(new Animation(layerA, template.layerA.show, options)) if layerB and template.layerB layerB.visible = true animations.push(new Animation(layerB, template.layerB.hide, options)) group = new AnimationGroup(animations) group.stopAnimations = false forwardEvents(group, "back") group.once Events.AnimationEnd, -> if layerB and template.layerB layerB.visible = false group.start() return transition ############################################################## # Event helpers onTransitionStart: (cb) -> @on(Events.TransitionStart, cb) onTransitionHalt: (cb) -> @on(Events.TransitionHalt, cb) onTransitionStop: (cb) -> @on(Events.TransitionStop, cb) onTransitionEnd: (cb) -> @on(Events.TransitionEnd, cb) onStart: (cb) -> @onTransitionStart(cb) onHalt: (cb) -> @onTransitionHalt(cb) onStop: (cb) -> @onTransitionStop(cb) onEnd: (cb) -> @onTransitionEnd(cb) ############################################################## # Layout helpers findPossibleHeader = (layer) -> candidate = null for child in layer.children attachedLeft = child.x is 0 or child.constraintValues?.left is 0 atttachedRight = child.width is layer.width or child.constraintValues?.right is 0 attachedTop = child.y is 0 or child.constraintValues?.top is 0 if attachedLeft and atttachedRight and attachedTop return if candidate candidate = child return unless candidate for child in layer.children continue if candidate is child return if child.minY < candidate.maxY return candidate findPossibleFooter = (layer) -> candidate = null for child in layer.children attachedLeft = child.x is 0 or child.constraintValues?.left is 0 atttachedRight = child.width is layer.width or child.constraintValues?.right is 0 attachedBottom = child.maxY is layer.height or child.constraintValues?.bottom is 0 if attachedLeft and atttachedRight and attachedBottom return if candidate candidate = child return unless candidate for child in layer.children continue if candidate is child return if child.maxY > candidate.minY return candidate findHeader = (layer) -> header = findPossibleHeader(layer) footer = findPossibleFooter(layer) if header and footer if header.maxY is footer.minY return if header.height >= footer.height return header findFooter = (layer) -> header = findPossibleHeader(layer) footer = findPossibleFooter(layer) if header and footer if header.maxY is footer.minY return if footer.height >= header.height return footer findBody = (layer, header, footer) -> return unless header or footer for child in layer.children continue if child is header continue if child is footer if child.x is 0 and child.width is layer.width if header and footer and child.minY is header.maxY and child.maxY is footer.minY return child else if header and child.minY is header.maxY and child.maxY is layer.height return child else if footer and child.minY is 0 and child.maxY is footer.minY return child guessBodyFrame = (layer, header, footer) -> return unless header or footer return if header?.maxY is footer?.minY if header and footer frame = {x: 0, y: header.height, width: layer.width, height: layer.height - header.height - footer.height} else if header frame = {x: 0, y: header.height, width: layer.width, height: layer.height - header.height} else if footer frame = {x: 0, y: 0, width: layer.width, height: layer.height - footer.height} else return return if (header?.height or 0) > frame.height return if (footer?.height or 0) > frame.height return frame layoutPage = (layer, size) -> header = findHeader(layer) footer = findFooter(layer) return layer unless header or footer body = findBody(layer, header, footer) if not body bodyFrame = guessBodyFrame(layer, header, footer) if bodyFrame body = new Layer frame: bodyFrame backgroundColor: null for child in layer.children continue if child is header continue if child is footer child.setParentPreservingConstraintValues(body) headerHeight = header?.height or 0 if child.constraintValues? if child.constraintValues?.top? child.constraintValues?.top -= headerHeight child.layout() else child.y -= headerHeight return layer unless body bodyFrame = body.frame bodyFrame.width = size.width bodyFrame.height = size.height - (header?.height or 0) - (footer?.height or 0) body.point = 0 # Not scroll vertically if there's a header or footer body.width = size.width scroll = layoutScroll(body, bodyFrame) scroll.parent = layer scroll.frame = bodyFrame layer.size = size if footer?.maxY > size.height footer.maxY = size.height header?.bringToFront() footer?.bringToFront() return layer layoutScroll = (layer, size) -> if layer.width <= size.width and layer.height <= size.height return layer scroll = new ScrollComponent size: size name: "scroll" height = layer.height scroll.propagateEvents = false constraints = layer.constraintValues layer.point = 0 layer.parent = scroll.content layer.constraintValues = constraints scroll.scrollHorizontal = layer.maxX > size.width scroll.scrollVertical = layer.maxY > size.height return scroll Transitions = {} Transitions.show = (nav, layerA, layerB, overlay) -> options = {curve: "spring(300, 35, 0)"} transition = layerA: show: {options: options, x: 0, y: 0} hide: {options: options, x: 0 - layerA?.width / 2, y: 0} layerB: show: {options: options, x: 0, y: 0} hide: {options: options, x: layerB.width, y: 0} Transitions.overlayCenter = (nav, layerA, layerB, overlay) -> transition = layerB: show: {options: {curve: "spring(500, 35, 0)"}, x: Align.center, y: Align.center, scale: 1.0, opacity: 1} hide: {options: {curve: "spring(500, 35, 0)"}, x: Align.center, y: Align.center, scale: 0.5, opacity: 0} overlay: show: {options: {time: 0.1}, opacity: .5, x: 0, y: 0, size: nav.size} hide: {options: {time: 0.1}, opacity: 0, x: 0, y: 0, size: nav.size} Transitions.overlayLeft = (nav, layerA, layerB, overlay) -> transition = layerB: show: {options: {curve: "spring(300, 35, 0)"}, y: 0, x: 0} hide: {options: {curve: "spring(300, 35, 0)"}, y: 0, x: 0 - layerB?.width} overlay: show: {options: {time: 0.1}, opacity: .5, x: 0, y: 0, size: nav.size} hide: {options: {time: 0.1}, opacity: 0, x: 0, y: 0, size: nav.size} Transitions.overlayRight = (nav, layerA, layerB, overlay) -> transition = layerB: show: {options: {curve: "spring(300, 35, 0)"}, y: 0, x: nav?.width - layerB?.width} hide: {options: {curve: "spring(300, 35, 0)"}, y: 0, x: nav?.width} overlay: show: {options: {time: 0.1}, opacity: .5, x: 0, y: 0, size: nav.size} hide: {options: {time: 0.1}, opacity: 0, x: 0, y: 0, size: nav.size} Transitions.overlayTop = (nav, layerA, layerB, overlay) -> transition = layerB: show: {options: {curve: "spring(300, 35, 0)"}, x: Align.center, y: 0} hide: {options: {curve: "spring(300, 35, 0)"}, x: Align.center, maxY: 0} overlay: show: {options: {time: 0.1}, opacity: .5, x: 0, y: 0, size: nav.size} hide: {options: {time: 0.1}, opacity: 0, x: 0, y: 0, size: nav.size} Transitions.overlayBottom = (nav, layerA, layerB, overlay) -> transition = layerB: show: {options: {curve: "spring(300, 35, 0)"}, x: Align.center, y: nav?.height - layerB?.height} hide: {options: {curve: "spring(300, 35, 0)"}, x: Align.center, y: nav?.height} overlay: show: {options: {time: 0.1}, opacity: .5, x: 0, y: 0, size: nav.size} hide: {options: {time: 0.1}, opacity: 0, x: 0, y: 0, size: nav.size}
[ { "context": "version %>',\n # github:\n # repo: 'pozadi/kefir', //put your user/repo here\n # use", "end": 3274, "score": 0.9944421648979187, "start": 3268, "tag": "USERNAME", "value": "pozadi" }, { "context": "put your user/repo here\n # usernameVa...
Gruntfile.coffee
raimohanska/kefir
0
module.exports = (grunt) -> pkg = grunt.file.readJSON('package.json') banner = """ /*! Kefir.js v#{pkg.version} * #{pkg.homepage} */ """ intro = """ ;(function(global){ "use strict"; var Kefir = {}; """ outro = """ if (typeof define === 'function' && define.amd) { define([], function() { return Kefir; }); global.Kefir = Kefir; } else if (typeof module === "object" && typeof exports === "object") { module.exports = Kefir; Kefir.Kefir = Kefir; } else { global.Kefir = Kefir; } }(this)); """ grunt.initConfig( browserify: tests: src: ['test/specs/*.js', 'test/specs/*.coffee'] dest: 'test/in-browser/spec/KefirSpecs.js' options: transform: ['coffeeify'] perf: expand: true cwd: "test/perf/perf-specs" src: "*.coffee" dest: "tmp/perf-bundles" ext: ".js" options: transform: ['coffeeify'] uglify: kefir: options: banner: banner sourceMap: true files: 'dist/kefir.min.js': 'dist/kefir.js' concat: kefir: options: banner: banner + intro footer: outro files: 'dist/kefir.js': [ 'src/utils/*.js' 'src/core.js' 'src/*.js' ] jasmine_node: main: options: specFolders: ['test/specs'] matchall: true verbose: true coffee: true jshint: options: jshintrc: true main: ['src/**'] jade: docs: options: data: {pkg} filters: escapehtml: (block) -> block .replace(/&/g, '&amp;') .replace(/</g, '&lt;') .replace(/>/g, '&gt;') .replace(/"/g, '&quot;') .replace(/'/g, '&#x27;') files: 'index.html': 'docs-src/index.jade' watch: docs: files: 'docs-src/**/*' tasks: ['build-docs'] src_and_tests: files: ['test/specs/*', 'test/test-helpers*', 'src/*.js', 'addons/*.js'] tasks: ['concat:kefir', 'concat:addons', 'test'] clean: main: src: ['dist', 'index.html'] bower: install: options: cleanup: true verbose: true targetDir: './bower-packages' release: options: bump: false, # default: true # file: 'component.json', # default: package.json add: false, # default: true commit: false, # default: true # tag: false, # default: true push: false, # default: true # pushTags: false, # default: true # npm: false, # default: true # npmtag: true, # default: no tag # folder: 'folder/to/publish/to/npm', # default project root # tagName: 'some-tag-<%= version %>', # default: '<%= version %>' # commitMessage: 'check out my release <%= version %>', # default: 'release <%= version %>' # tagMessage: 'tagging version <%= version %>', # default: 'Version <%= version %>', # github: # repo: 'pozadi/kefir', //put your user/repo here # usernameVar: 'GITHUB_USERNAME', //ENVIRONMENT VARIABLE that contains Github username # passwordVar: 'GITHUB_PASSWORD' //ENVIRONMENT VARIABLE that contains Github password ) require('load-grunt-tasks')(grunt) grunt.loadTasks('grunt-tasks') grunt.registerTask 'build-browser-tests', ['browserify:tests'] grunt.registerTask 'build-kefir', ['concat:kefir', 'uglify:kefir'] grunt.registerTask 'test', ['jasmine_node:main', 'jshint:main'] grunt.registerTask 'build-docs', ['jade:docs'] grunt.registerTask 'release-patch', ['bump', 'release'] grunt.registerTask 'release-minor', ['bump:minor', 'release'] grunt.registerTask 'release-major', ['bump:major', 'release'] grunt.registerTask 'release-pre', ['bump:prerelease', 'release'] grunt.registerTask 'default', [ 'clean', 'build-docs', 'build-kefir', 'build-browser-tests', 'test'] grunt.registerTask 'build-light', [ 'concat:kefir' 'concat:addons' 'test' ]
3305
module.exports = (grunt) -> pkg = grunt.file.readJSON('package.json') banner = """ /*! Kefir.js v#{pkg.version} * #{pkg.homepage} */ """ intro = """ ;(function(global){ "use strict"; var Kefir = {}; """ outro = """ if (typeof define === 'function' && define.amd) { define([], function() { return Kefir; }); global.Kefir = Kefir; } else if (typeof module === "object" && typeof exports === "object") { module.exports = Kefir; Kefir.Kefir = Kefir; } else { global.Kefir = Kefir; } }(this)); """ grunt.initConfig( browserify: tests: src: ['test/specs/*.js', 'test/specs/*.coffee'] dest: 'test/in-browser/spec/KefirSpecs.js' options: transform: ['coffeeify'] perf: expand: true cwd: "test/perf/perf-specs" src: "*.coffee" dest: "tmp/perf-bundles" ext: ".js" options: transform: ['coffeeify'] uglify: kefir: options: banner: banner sourceMap: true files: 'dist/kefir.min.js': 'dist/kefir.js' concat: kefir: options: banner: banner + intro footer: outro files: 'dist/kefir.js': [ 'src/utils/*.js' 'src/core.js' 'src/*.js' ] jasmine_node: main: options: specFolders: ['test/specs'] matchall: true verbose: true coffee: true jshint: options: jshintrc: true main: ['src/**'] jade: docs: options: data: {pkg} filters: escapehtml: (block) -> block .replace(/&/g, '&amp;') .replace(/</g, '&lt;') .replace(/>/g, '&gt;') .replace(/"/g, '&quot;') .replace(/'/g, '&#x27;') files: 'index.html': 'docs-src/index.jade' watch: docs: files: 'docs-src/**/*' tasks: ['build-docs'] src_and_tests: files: ['test/specs/*', 'test/test-helpers*', 'src/*.js', 'addons/*.js'] tasks: ['concat:kefir', 'concat:addons', 'test'] clean: main: src: ['dist', 'index.html'] bower: install: options: cleanup: true verbose: true targetDir: './bower-packages' release: options: bump: false, # default: true # file: 'component.json', # default: package.json add: false, # default: true commit: false, # default: true # tag: false, # default: true push: false, # default: true # pushTags: false, # default: true # npm: false, # default: true # npmtag: true, # default: no tag # folder: 'folder/to/publish/to/npm', # default project root # tagName: 'some-tag-<%= version %>', # default: '<%= version %>' # commitMessage: 'check out my release <%= version %>', # default: 'release <%= version %>' # tagMessage: 'tagging version <%= version %>', # default: 'Version <%= version %>', # github: # repo: 'pozadi/kefir', //put your user/repo here # usernameVar: 'GITHUB_USERNAME', //ENVIRONMENT VARIABLE that contains Github username # passwordVar: '<PASSWORD>' //ENVIRONMENT VARIABLE that contains Github password ) require('load-grunt-tasks')(grunt) grunt.loadTasks('grunt-tasks') grunt.registerTask 'build-browser-tests', ['browserify:tests'] grunt.registerTask 'build-kefir', ['concat:kefir', 'uglify:kefir'] grunt.registerTask 'test', ['jasmine_node:main', 'jshint:main'] grunt.registerTask 'build-docs', ['jade:docs'] grunt.registerTask 'release-patch', ['bump', 'release'] grunt.registerTask 'release-minor', ['bump:minor', 'release'] grunt.registerTask 'release-major', ['bump:major', 'release'] grunt.registerTask 'release-pre', ['bump:prerelease', 'release'] grunt.registerTask 'default', [ 'clean', 'build-docs', 'build-kefir', 'build-browser-tests', 'test'] grunt.registerTask 'build-light', [ 'concat:kefir' 'concat:addons' 'test' ]
true
module.exports = (grunt) -> pkg = grunt.file.readJSON('package.json') banner = """ /*! Kefir.js v#{pkg.version} * #{pkg.homepage} */ """ intro = """ ;(function(global){ "use strict"; var Kefir = {}; """ outro = """ if (typeof define === 'function' && define.amd) { define([], function() { return Kefir; }); global.Kefir = Kefir; } else if (typeof module === "object" && typeof exports === "object") { module.exports = Kefir; Kefir.Kefir = Kefir; } else { global.Kefir = Kefir; } }(this)); """ grunt.initConfig( browserify: tests: src: ['test/specs/*.js', 'test/specs/*.coffee'] dest: 'test/in-browser/spec/KefirSpecs.js' options: transform: ['coffeeify'] perf: expand: true cwd: "test/perf/perf-specs" src: "*.coffee" dest: "tmp/perf-bundles" ext: ".js" options: transform: ['coffeeify'] uglify: kefir: options: banner: banner sourceMap: true files: 'dist/kefir.min.js': 'dist/kefir.js' concat: kefir: options: banner: banner + intro footer: outro files: 'dist/kefir.js': [ 'src/utils/*.js' 'src/core.js' 'src/*.js' ] jasmine_node: main: options: specFolders: ['test/specs'] matchall: true verbose: true coffee: true jshint: options: jshintrc: true main: ['src/**'] jade: docs: options: data: {pkg} filters: escapehtml: (block) -> block .replace(/&/g, '&amp;') .replace(/</g, '&lt;') .replace(/>/g, '&gt;') .replace(/"/g, '&quot;') .replace(/'/g, '&#x27;') files: 'index.html': 'docs-src/index.jade' watch: docs: files: 'docs-src/**/*' tasks: ['build-docs'] src_and_tests: files: ['test/specs/*', 'test/test-helpers*', 'src/*.js', 'addons/*.js'] tasks: ['concat:kefir', 'concat:addons', 'test'] clean: main: src: ['dist', 'index.html'] bower: install: options: cleanup: true verbose: true targetDir: './bower-packages' release: options: bump: false, # default: true # file: 'component.json', # default: package.json add: false, # default: true commit: false, # default: true # tag: false, # default: true push: false, # default: true # pushTags: false, # default: true # npm: false, # default: true # npmtag: true, # default: no tag # folder: 'folder/to/publish/to/npm', # default project root # tagName: 'some-tag-<%= version %>', # default: '<%= version %>' # commitMessage: 'check out my release <%= version %>', # default: 'release <%= version %>' # tagMessage: 'tagging version <%= version %>', # default: 'Version <%= version %>', # github: # repo: 'pozadi/kefir', //put your user/repo here # usernameVar: 'GITHUB_USERNAME', //ENVIRONMENT VARIABLE that contains Github username # passwordVar: 'PI:PASSWORD:<PASSWORD>END_PI' //ENVIRONMENT VARIABLE that contains Github password ) require('load-grunt-tasks')(grunt) grunt.loadTasks('grunt-tasks') grunt.registerTask 'build-browser-tests', ['browserify:tests'] grunt.registerTask 'build-kefir', ['concat:kefir', 'uglify:kefir'] grunt.registerTask 'test', ['jasmine_node:main', 'jshint:main'] grunt.registerTask 'build-docs', ['jade:docs'] grunt.registerTask 'release-patch', ['bump', 'release'] grunt.registerTask 'release-minor', ['bump:minor', 'release'] grunt.registerTask 'release-major', ['bump:major', 'release'] grunt.registerTask 'release-pre', ['bump:prerelease', 'release'] grunt.registerTask 'default', [ 'clean', 'build-docs', 'build-kefir', 'build-browser-tests', 'test'] grunt.registerTask 'build-light', [ 'concat:kefir' 'concat:addons' 'test' ]
[ { "context": "gtrainer.LangtrainerApp.currentUser.set('email', 'test@test.ru')\n window.Langtrainer.LangtrainerApp.current", "end": 1268, "score": 0.9999178051948547, "start": 1256, "tag": "EMAIL", "value": "test@test.ru" } ]
spec/javascripts/langtrainer_app/views/navbar_control_spec.js.coffee
beorc/langtrainer_frontend_backbone
0
describe "Langtrainer.LangtrainerApp.Views.NavbarControl", -> runApplication = -> worldData = getJSONFixture('world.json') window.Langtrainer.LangtrainerApp.run({}) Langtrainer.LangtrainerApp.world.set(worldData) runApplication() beforeEach -> @view = new Langtrainer.LangtrainerApp.Views.NavbarControl @view.render() it "should be a Backbone.View", -> expect(@view).toEqual(jasmine.any(Backbone.View)) describe 'given not signed in user', -> it 'should render sign in button', -> expect(@view.$('.sign-in-btn')).toExist() it 'should render sign up button', -> expect(@view.$('.sign-up-btn')).toExist() describe 'when user clicks sign in button', -> beforeEach -> @view.$('.sign-in-btn').click() it 'should show sign in dialog', -> expect($('#dialog-sign-in')).toExist() describe 'when user clicks sign up button', -> beforeEach -> @view.$('.sign-up-btn').click() it 'should show sign up dialog', -> expect($('#dialog-sign-up')).toExist() describe 'given signed in user', -> beforeEach -> window.Langtrainer.LangtrainerApp.currentUser.set('id', '1') window.Langtrainer.LangtrainerApp.currentUser.set('email', 'test@test.ru') window.Langtrainer.LangtrainerApp.currentUser.set('activation_state', 'active') @view.render() it 'should render sign out button', -> expect(@view.$('.sign-out-btn')).toExist()
107681
describe "Langtrainer.LangtrainerApp.Views.NavbarControl", -> runApplication = -> worldData = getJSONFixture('world.json') window.Langtrainer.LangtrainerApp.run({}) Langtrainer.LangtrainerApp.world.set(worldData) runApplication() beforeEach -> @view = new Langtrainer.LangtrainerApp.Views.NavbarControl @view.render() it "should be a Backbone.View", -> expect(@view).toEqual(jasmine.any(Backbone.View)) describe 'given not signed in user', -> it 'should render sign in button', -> expect(@view.$('.sign-in-btn')).toExist() it 'should render sign up button', -> expect(@view.$('.sign-up-btn')).toExist() describe 'when user clicks sign in button', -> beforeEach -> @view.$('.sign-in-btn').click() it 'should show sign in dialog', -> expect($('#dialog-sign-in')).toExist() describe 'when user clicks sign up button', -> beforeEach -> @view.$('.sign-up-btn').click() it 'should show sign up dialog', -> expect($('#dialog-sign-up')).toExist() describe 'given signed in user', -> beforeEach -> window.Langtrainer.LangtrainerApp.currentUser.set('id', '1') window.Langtrainer.LangtrainerApp.currentUser.set('email', '<EMAIL>') window.Langtrainer.LangtrainerApp.currentUser.set('activation_state', 'active') @view.render() it 'should render sign out button', -> expect(@view.$('.sign-out-btn')).toExist()
true
describe "Langtrainer.LangtrainerApp.Views.NavbarControl", -> runApplication = -> worldData = getJSONFixture('world.json') window.Langtrainer.LangtrainerApp.run({}) Langtrainer.LangtrainerApp.world.set(worldData) runApplication() beforeEach -> @view = new Langtrainer.LangtrainerApp.Views.NavbarControl @view.render() it "should be a Backbone.View", -> expect(@view).toEqual(jasmine.any(Backbone.View)) describe 'given not signed in user', -> it 'should render sign in button', -> expect(@view.$('.sign-in-btn')).toExist() it 'should render sign up button', -> expect(@view.$('.sign-up-btn')).toExist() describe 'when user clicks sign in button', -> beforeEach -> @view.$('.sign-in-btn').click() it 'should show sign in dialog', -> expect($('#dialog-sign-in')).toExist() describe 'when user clicks sign up button', -> beforeEach -> @view.$('.sign-up-btn').click() it 'should show sign up dialog', -> expect($('#dialog-sign-up')).toExist() describe 'given signed in user', -> beforeEach -> window.Langtrainer.LangtrainerApp.currentUser.set('id', '1') window.Langtrainer.LangtrainerApp.currentUser.set('email', 'PI:EMAIL:<EMAIL>END_PI') window.Langtrainer.LangtrainerApp.currentUser.set('activation_state', 'active') @view.render() it 'should render sign out button', -> expect(@view.$('.sign-out-btn')).toExist()
[ { "context": "ck) ->\n\n id = data.getId()\n { profile : { email, firstName, lastName } } = data\n invitations = [ { email, f", "end": 136, "score": 0.9993287324905396, "start": 127, "tag": "NAME", "value": "firstName" }, { "context": "d = data.getId()\n { profile : { email, firs...
client/app/lib/util/invitationWithNoEmail.coffee
lionheart1022/koding
0
remote = require 'app/remote' module.exports = (data, currentGroup, callback) -> id = data.getId() { profile : { email, firstName, lastName } } = data invitations = [ { email, firstName, lastName, role : 'member' } ] remote.api.JInvitation.create invitations : invitations noEmail : yes returnCodes : yes , (err, res) -> return callback err if err return callback { message: 'Something went wrong, please try again!' } unless res invite = res[0] invite.status = 'accepted' invite.accept().then (response) -> options = id: id removeUserFromTeam: no currentGroup.unblockMember id, (err) -> return callback err if err callback null, response .catch (err) -> callback err
121079
remote = require 'app/remote' module.exports = (data, currentGroup, callback) -> id = data.getId() { profile : { email, <NAME>, <NAME> } } = data invitations = [ { email, <NAME>, <NAME>, role : 'member' } ] remote.api.JInvitation.create invitations : invitations noEmail : yes returnCodes : yes , (err, res) -> return callback err if err return callback { message: 'Something went wrong, please try again!' } unless res invite = res[0] invite.status = 'accepted' invite.accept().then (response) -> options = id: id removeUserFromTeam: no currentGroup.unblockMember id, (err) -> return callback err if err callback null, response .catch (err) -> callback err
true
remote = require 'app/remote' module.exports = (data, currentGroup, callback) -> id = data.getId() { profile : { email, PI:NAME:<NAME>END_PI, PI:NAME:<NAME>END_PI } } = data invitations = [ { email, PI:NAME:<NAME>END_PI, PI:NAME:<NAME>END_PI, role : 'member' } ] remote.api.JInvitation.create invitations : invitations noEmail : yes returnCodes : yes , (err, res) -> return callback err if err return callback { message: 'Something went wrong, please try again!' } unless res invite = res[0] invite.status = 'accepted' invite.accept().then (response) -> options = id: id removeUserFromTeam: no currentGroup.unblockMember id, (err) -> return callback err if err callback null, response .catch (err) -> callback err
[ { "context": "io.com\n\nCopyright 2016 Chai Biotechnologies Inc. <info@chaibio.com>\n\nLicensed under the Apache License, Version 2.0 ", "end": 194, "score": 0.9999187588691711, "start": 178, "tag": "EMAIL", "value": "info@chaibio.com" } ]
frontend/javascripts/app/services/chart_data.js.coffee
MakerButt/chaipcr
1
### Chai PCR - Software platform for Open qPCR and Chai's Real-Time PCR instruments. For more information visit http://www.chaibio.com Copyright 2016 Chai Biotechnologies Inc. <info@chaibio.com> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ### # # this file formats data from different sources to be consumed by various chart libraries # window.ChaiBioTech.ngApp # .service 'ChartData', [ # 'SecondsDisplay' # (SecondsDisplay) -> # @temperatureLogs = (temperature_logs) -> # temperature_logs = temperature_logs || [] # # formats temperature logs for angular-charts # toAngularCharts: -> # elapsed_time = [] # heat_block_zone_temp = [] # lid_temp = [] # for temp_log in angular.copy(temperature_logs) # elapsed_time.push SecondsDisplay.display2 Math.round(temp_log.temperature_log.elapsed_time/1000) # # get heat_block_zone_temp average # hbz = (parseFloat(temp_log.temperature_log.heat_block_zone_1_temp)+ parseFloat(temp_log.temperature_log.heat_block_zone_2_temp))/2 # # round to nearest hundreth # hbz = Math.ceil(hbz*100)/100 # heat_block_zone_temp.push hbz # lid_temp.push parseFloat temp_log.temperature_log.lid_temp # elapsed_time: elapsed_time # heat_block_zone_temp: heat_block_zone_temp # lid_temp: lid_temp # toNVD3: -> # lid_temps = [] # heat_block_zone_temps = [] # for temp_log in temperature_logs # et = temp_log.temperature_log.elapsed_time # lid_temps.push [ # et # parseFloat temp_log.temperature_log.lid_temp # ] # hbzAverage = (parseFloat temp_log.temperature_log.heat_block_zone_1_temp + parseFloat temp_log.temperature_log.heat_block_zone_2_temp ) / 2 # heat_block_zone_temps.push [ # et # Math.round(hbzAverage*100)/100 #round to hundreth # ] # lid_temps: lid_temps # heat_block_zone_temps: heat_block_zone_temps # toN3LineChart: -> # tmp_logs = []; # for temp_log in temperature_logs # et = temp_log.temperature_log.elapsed_time/1000 # # get heat_block_zone_temp average # hbz = (parseFloat(temp_log.temperature_log.heat_block_zone_1_temp)+ parseFloat(temp_log.temperature_log.heat_block_zone_2_temp))/2 # # round to nearest hundreth # hbz = Math.ceil(hbz*100)/100 # lid_temp = parseFloat temp_log.temperature_log.lid_temp # tmp_logs.push({ # elapsed_time: et # heat_block_zone_temp: hbz # lid_temp: lid_temp # }) # tmp_logs # return # ]
219929
### Chai PCR - Software platform for Open qPCR and Chai's Real-Time PCR instruments. For more information visit http://www.chaibio.com Copyright 2016 Chai Biotechnologies Inc. <<EMAIL>> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ### # # this file formats data from different sources to be consumed by various chart libraries # window.ChaiBioTech.ngApp # .service 'ChartData', [ # 'SecondsDisplay' # (SecondsDisplay) -> # @temperatureLogs = (temperature_logs) -> # temperature_logs = temperature_logs || [] # # formats temperature logs for angular-charts # toAngularCharts: -> # elapsed_time = [] # heat_block_zone_temp = [] # lid_temp = [] # for temp_log in angular.copy(temperature_logs) # elapsed_time.push SecondsDisplay.display2 Math.round(temp_log.temperature_log.elapsed_time/1000) # # get heat_block_zone_temp average # hbz = (parseFloat(temp_log.temperature_log.heat_block_zone_1_temp)+ parseFloat(temp_log.temperature_log.heat_block_zone_2_temp))/2 # # round to nearest hundreth # hbz = Math.ceil(hbz*100)/100 # heat_block_zone_temp.push hbz # lid_temp.push parseFloat temp_log.temperature_log.lid_temp # elapsed_time: elapsed_time # heat_block_zone_temp: heat_block_zone_temp # lid_temp: lid_temp # toNVD3: -> # lid_temps = [] # heat_block_zone_temps = [] # for temp_log in temperature_logs # et = temp_log.temperature_log.elapsed_time # lid_temps.push [ # et # parseFloat temp_log.temperature_log.lid_temp # ] # hbzAverage = (parseFloat temp_log.temperature_log.heat_block_zone_1_temp + parseFloat temp_log.temperature_log.heat_block_zone_2_temp ) / 2 # heat_block_zone_temps.push [ # et # Math.round(hbzAverage*100)/100 #round to hundreth # ] # lid_temps: lid_temps # heat_block_zone_temps: heat_block_zone_temps # toN3LineChart: -> # tmp_logs = []; # for temp_log in temperature_logs # et = temp_log.temperature_log.elapsed_time/1000 # # get heat_block_zone_temp average # hbz = (parseFloat(temp_log.temperature_log.heat_block_zone_1_temp)+ parseFloat(temp_log.temperature_log.heat_block_zone_2_temp))/2 # # round to nearest hundreth # hbz = Math.ceil(hbz*100)/100 # lid_temp = parseFloat temp_log.temperature_log.lid_temp # tmp_logs.push({ # elapsed_time: et # heat_block_zone_temp: hbz # lid_temp: lid_temp # }) # tmp_logs # return # ]
true
### Chai PCR - Software platform for Open qPCR and Chai's Real-Time PCR instruments. For more information visit http://www.chaibio.com Copyright 2016 Chai Biotechnologies Inc. <PI:EMAIL:<EMAIL>END_PI> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ### # # this file formats data from different sources to be consumed by various chart libraries # window.ChaiBioTech.ngApp # .service 'ChartData', [ # 'SecondsDisplay' # (SecondsDisplay) -> # @temperatureLogs = (temperature_logs) -> # temperature_logs = temperature_logs || [] # # formats temperature logs for angular-charts # toAngularCharts: -> # elapsed_time = [] # heat_block_zone_temp = [] # lid_temp = [] # for temp_log in angular.copy(temperature_logs) # elapsed_time.push SecondsDisplay.display2 Math.round(temp_log.temperature_log.elapsed_time/1000) # # get heat_block_zone_temp average # hbz = (parseFloat(temp_log.temperature_log.heat_block_zone_1_temp)+ parseFloat(temp_log.temperature_log.heat_block_zone_2_temp))/2 # # round to nearest hundreth # hbz = Math.ceil(hbz*100)/100 # heat_block_zone_temp.push hbz # lid_temp.push parseFloat temp_log.temperature_log.lid_temp # elapsed_time: elapsed_time # heat_block_zone_temp: heat_block_zone_temp # lid_temp: lid_temp # toNVD3: -> # lid_temps = [] # heat_block_zone_temps = [] # for temp_log in temperature_logs # et = temp_log.temperature_log.elapsed_time # lid_temps.push [ # et # parseFloat temp_log.temperature_log.lid_temp # ] # hbzAverage = (parseFloat temp_log.temperature_log.heat_block_zone_1_temp + parseFloat temp_log.temperature_log.heat_block_zone_2_temp ) / 2 # heat_block_zone_temps.push [ # et # Math.round(hbzAverage*100)/100 #round to hundreth # ] # lid_temps: lid_temps # heat_block_zone_temps: heat_block_zone_temps # toN3LineChart: -> # tmp_logs = []; # for temp_log in temperature_logs # et = temp_log.temperature_log.elapsed_time/1000 # # get heat_block_zone_temp average # hbz = (parseFloat(temp_log.temperature_log.heat_block_zone_1_temp)+ parseFloat(temp_log.temperature_log.heat_block_zone_2_temp))/2 # # round to nearest hundreth # hbz = Math.ceil(hbz*100)/100 # lid_temp = parseFloat temp_log.temperature_log.lid_temp # tmp_logs.push({ # elapsed_time: et # heat_block_zone_temp: hbz # lid_temp: lid_temp # }) # tmp_logs # return # ]
[ { "context": "\t\t\t\t\trole = {\n\t\t\t\t\t\t\t\t\t_id: role_id\n\t\t\t\t\t\t\t\t\tname: role_name\n\t\t\t\t\t\t\t\t\tspace: spaceId\n\t\t\t\t\t\t\t\t\tcreated: ne", "end": 15237, "score": 0.5490521192550659, "start": 15233, "tag": "NAME", "value": "role" }, { "context": "\t\t\t\t\t...
creator/packages/steedos-app-workflow/server/lib/import.coffee
baozhoutao/steedos-platform
0
objectql = require("@steedos/objectql"); steedosImport = {} _formatFieldsID = (fields)-> _.each(fields, (f)-> if (!f._id && f.id) f._id = f.id; delete f.id; if (f.type == 'section' || f.type == 'table') _formatFieldsID(f.fields); ); return fields; upgradeFlowByForm = (flow, formVersionId, options)-> flowCollection = Creator.getCollection('flows'); up = false; now = options.now currentUserId = options.currentUserId spaceId = options.spaceId if (Creator.getCollection('instances').find({ space: spaceId, flow: flow._id, flow_version: flow.current._id }).count()) up = true; flowUpdateObj = { $set: {} }; if up == true && flow.current.start_date flowUpdateObj.$push = { 'historys': flow.current }; flowCurrent = { '_id': flowCollection._makeNewID(), 'created': now, 'created_by': currentUserId, 'steps': flow.current.steps, '_rev': flow.current._rev + 1, 'flow': flow._id, 'form_version': formVersionId, 'modified': now, 'modified_by': currentUserId }; if flow.state == "enabled" flowCurrent.start_date = now; flowUpdateObj.$set['current'] = flowCurrent; else flowUpdateObj.$set = { 'current.form_version': formVersionId, 'current.modified': now, 'current.modified_by': currentUserId } flowUpdateObj.$set['modified'] = now; flowUpdateObj.$set['modified_by'] = currentUserId; flowCollection.update(flow._id, flowUpdateObj); upgradeForm = (formId, form, currentUserId, spaceId)-> formCollection = Creator.getCollection('forms'); flowCollection = Creator.getCollection('flows'); ff = formCollection.findOne({_id: formId, space: spaceId}); if !ff throw new Meteor.Error('error', "无效的formId") spaceId = ff.space; now = new Date(); current = {}; formUpdateObj = {}; pass = false; # 根据APP 判断表单当前版本是否走过申请单 或者 records if ff.app == 'workflow' insCount = Creator.getCollection('instances').find({ space: spaceId, form: formId, 'form_version': form['current']['id'] }).count(); if insCount > 0 pass = true else if ff.app == 'creator' recordsCount = Creator.getCollection('records').find({ space: spaceId, form: formId, 'form_version': form['current']['id'] }).count(); if recordsCount > 0 pass = true; if pass == true && ff["current"]["start_date"] formUpdateObj.$push = { 'historys': ff["current"] }; current._id = formCollection._makeNewID(); current._rev = ff["current"]["_rev"] + 1; current.created = now; current.created_by = currentUserId; if ff.state == 'enabled' current.start_date = now; flowCollection.find({form: formId}).forEach (flow)-> upgradeFlowByForm(flow, current._id, {now: now, currentUserId: currentUserId, spaceId: spaceId}) else current = ff.current; current.modified = now; current.modified_by = currentUserId; current.form = formId; current.fields = _formatFieldsID(form["current"]["fields"]); current.form_script = form["current"]["form_script"]; current.name_forumla = form["current"]["name_forumla"]; formUpdateObj.$set = { 'current': current, 'name': form["name"], 'modified': now, 'modified_by': currentUserId, 'is_valid': form["is_valid"], 'description': form["description"], 'help_text': form["help_text"], 'error_message': form["error_message"], 'category': form["category"], 'instance_style': form["instance_style"] } formCollection.update(formId, formUpdateObj); upgradeFlow = (flowCome, userId, flowId)-> now = new Date(); flowCollection = Creator.getCollection('flows'); formCollection = Creator.getCollection('forms'); flow = flowCollection.findOne(flowId); spaceId = flow.space # 某步骤被删除后,删除同流程的“指定历史步骤”属性中被引用的步骤id(仅限于流程的最新版) clientStepIds = [] _.each(flowCome['current']['steps'], (step) -> clientStepIds.push(step['id']); ) _.each(flowCome['current']['steps'], (step) -> if (step['approver_step']) if (!clientStepIds.includes(step['approver_step'])) step['approver_step'] = ''; ) # 流程升级 # 由于前台后台posx posy timeout_hours字段类型不一致会导致流程升级 所以在这里统一转为后台Float类型 便于比较 _.each(flowCome['current']['steps'], (st) -> st['posx'] = parseFloat(st['posx']); st['posy'] = parseFloat(st['posy']); if (st['timeout_hours']) st['timeout_hours'] = parseFloat(st['timeout_hours']); ) # 由于前台传的是id而非_id,故比较时将id转为_id _.each(flowCome['current']['steps'], (step) -> if step['id'] step['_id'] = step['id']; delete step['id']; if (step['lines']) _.each(step['lines'], (line) -> if line['id'] line['_id'] = line['id']; delete line['id']; ) ) stepsStr = JSON.stringify(flow['current']['steps']); flowComeStepsStr = JSON.stringify(flowCome['current']['steps']); pass = false; updateObj = { $set: {} }; insCount = Creator.getCollection('instances').find({ space: spaceId, flow: flowId, flow_version: flow.current._id }).count(); if (insCount > 0) pass = true; if pass == true && flow.current.start_date && stepsStr == flowComeStepsStr updateObj.$push = { 'historys': flow.current }; current = { '_id': flowCollection._makeNewID(), 'modified': now, 'modified_by': userId, 'created': now, 'created_by': userId, 'steps': flowCome['current']['steps'], 'form_version': flow.current.form_version, '_rev': flow.current._rev, 'flow': flowId, }; if (flow.state == 'enabled') current['start_date'] = now; updateObj.$set.current = current; else updateObj.$set = { 'current.modified': now, 'current.modified_by': userId, 'current.steps': flowCome["current"]["steps"] } updateObj.$set.name = flowCome['name']; updateObj.$set.name_formula = ''; updateObj.$set.code_formula = ''; updateObj.$set.is_valid = flowCome['is_valid']; updateObj.$set.flowtype = flowCome['flowtype']; updateObj.$set.help_text = flowCome['help_text']; updateObj.$set.decription = flowCome['descriptions']; updateObj.$set.error_message = flowCome['error_message']; updateObj.$set.modified = now; updateObj.$set.modified_by = userId; #流程权限保持不变 # if (flowCome['perms']) # flowCome['perms']['_id'] = flowCome['perms']['id']; # delete flowCome['perms']['id']; # updateObj.$set.perms = flowCome['perms']; # flow对象上添加categoryId form = formCollection.findOne(flow.form, { fields: { category: 1 } }); updateObj.$set.category = form['category']; flowCollection.update(flowId, updateObj); # TODO check 对象、字段是否存在 checkObjectWorkflow = (spaceId, objectName, doc)-> try _obj = objectql.getObject(objectName); catch if !_obj throw new Meteor.Error(500, "import_flows_error_not_find_object", objectName); _objconfig = _obj.toConfig(); if !_objconfig.enable_workflow throw new Meteor.Error(500, "import_flows_error_not_allow_enable_workflow", _objconfig.name); fileds = _objconfig.fields allowValues = _.pluck(Creator.getObjectLookupFieldOptions(objectName, true, false, true), 'value'); objectField = _.pluck(doc.field_map, "object_field"); diff = _.difference(objectField, allowValues); if diff.length > 0 throw new Meteor.Error(500, "import_flows_error_not_find_fields", diff.join(",")); objectFieldBack = _.pluck(doc.field_map_back, "object_field"); diff1 = _.difference(objectFieldBack, allowValues); if diff1.length > 0 throw new Meteor.Error(500, "import_flows_error_not_find_fields", diff1.join(",")); steedosImport.objectWorkflow = (spaceId, flowId, objectName, doc)-> delete doc._id oldDoc = Creator.getCollection("object_workflows").findOne({space: spaceId, flow_id: flowId, object_name: objectName}) if oldDoc Creator.getCollection("object_workflows").update(oldDoc._id, {$set: Object.assign({}, doc, {space: spaceId, flow_id: flowId, object_name: objectName})}) else Creator.getCollection("object_workflows").insert(Object.assign({}, doc, {space: spaceId, flow_id: flowId, object_name: objectName})) steedosImport.workflow = (uid, spaceId, form, enabled, company_id, options)-> upgrade = options?.upgrade || false upgradeFormId = options?.formId upgradeFlowId = options?.flowId if _.isEmpty(form) throw new Meteor.Error('error', "无效的json data") if company_id if Creator.getCollection("company").find({ _id: company_id, space: spaceId }).count() == 0 throw new Meteor.Error('error', "无效的字段: company_id") # if form?.flows # _.each form.flows, (flow)-> # if flow.object_workflows # _.each flow.object_workflows, (_ow)-> # checkObjectWorkflow(spaceId, _ow.object_name, _ow) new_form_ids = new Array() new_flow_ids = new Array() try if form?.category_name category = db.categories.findOne({space: spaceId, name: form.category_name}, {fields: {_id: 1}}) if _.isEmpty(category) category_id = new Mongo.ObjectID()._str; new_category = { _id: category_id, name: form.category_name, space: spaceId, created: new Date, created_by: uid, modified: new Date, modified_by: uid, owner: uid } if company_id new_category.company_id = company_id new_category.company_ids = [company_id] db.categories.direct.insert(new_category); form.category = category_id else form.category = category._id delete form.category_name if form?.instance_number_rules form.instance_number_rules.forEach (nr)-> try rules = db.instance_number_rules.findOne({space: spaceId, "name": nr.name}) if !rules nr.space = spaceId nr._id = new Mongo.ObjectID()._str nr.created = new Date nr.created_by = uid nr.modified = new Date nr.modified_by = uid delete nr.company_id delete nr.company_ids if company_id nr.company_id = company_id nr.company_ids = [company_id] db.instance_number_rules.direct.insert(nr) catch e console.log "steedosImport.workflow", e delete form.instance_number_rules form_id = new Mongo.ObjectID()._str flows = form.flows delete form.flows form._id = form_id form.space = spaceId if enabled form.state = 'enabled' form.is_valid = true #直接启用的表单设置is valid值为true else form.state = 'disabled' #设置状态为 未启用 form.is_valid = true #设置已验证为 true , 简化用户操作 form.created = new Date() form.created_by = uid form.modified = form.created form.modified_by = uid form.historys = [] form.current._id = new Mongo.ObjectID()._str form.current._rev = 1 #重置版本号 form.current.form = form_id form.current.created = new Date() form.current.created_by = uid form.current.modified = new Date() form.current.modified_by = uid delete form.company_id delete form.company_ids if company_id form.company_id = company_id form.company_ids = [company_id] form.import = true form.owner = uid if upgrade upgradeForm(upgradeFormId, form, uid, spaceId) else db.forms.direct.insert(form) new_form_ids.push(form_id) flows.forEach (flow)-> flowObjectWorkflows = flow.object_workflows delete flow.object_workflows flow_id = new Mongo.ObjectID()._str flow._id = flow_id flow.form = form_id flow.category = form.category if enabled flow.state = 'enabled' flow.is_valid = true #直接启用的流程设置is valid值为true else flow.state = 'disabled' #设置状态为 未启用 flow.is_valid = true flow.current_no = 0 #重置编号起始为0 flow.created = new Date() flow.created_by = uid flow.modified = flow.created flow.modified_by = uid delete flow.company_id delete flow.company_ids if company_id flow.company_id = company_id flow.company_ids = [company_id] #跨工作区导入时,重置流程权限perms if flow.perms && flow.space == spaceId perms = { _id: new Mongo.ObjectID()._str users_can_add: [] orgs_can_add: orgs_can_add users_can_monitor: [] orgs_can_monitor: [] users_can_admin: [] orgs_can_admin: [] } users_can_add = perms.users_can_add orgs_can_add = perms.orgs_can_add users_can_monitor = perms.users_can_monitor orgs_can_monitor = perms.orgs_can_monitor users_can_admin = perms.users_can_admin orgs_can_admin = perms.orgs_can_admin if !_.isEmpty(users_can_add) perms.users_can_add = _.pluck(db.space_users.find({user: {$in: users_can_add}}, {fields: {user: 1}}).fetch(), 'user'); if !_.isEmpty(orgs_can_add) perms.orgs_can_add = _.pluck(db.organizations.find({_id: {$in: orgs_can_add}}, {fields: {_id: 1}}).fetch(), '_id'); if _.isEmpty(perms.orgs_can_add) if company_id perms.orgs_can_add = [company_id] else perms.orgs_can_add = db.organizations.find({ space: spaceId, parent: null }, {fields: {_id: 1}}).fetch().getProperty("_id") if !_.isEmpty(users_can_monitor) perms.users_can_monitor = _.pluck(db.space_users.find({user: {$in: users_can_monitor}}, {fields: {user: 1}}).fetch(), 'user'); if !_.isEmpty(orgs_can_monitor) perms.orgs_can_monitor = _.pluck(db.organizations.find({_id: {$in: orgs_can_monitor}}, {fields: {_id: 1}}).fetch(), '_id'); if !_.isEmpty(users_can_admin) perms.users_can_monitor = _.pluck(db.space_users.find({user: {$in: users_can_admin}}, {fields: {user: 1}}).fetch(), 'user'); if !_.isEmpty(orgs_can_admin) perms.orgs_can_monitor = _.pluck(db.organizations.find({_id: {$in: orgs_can_admin}}, {fields: {_id: 1}}).fetch(), '_id'); else if !flow.perms || flow.space != spaceId orgs_can_add = [] if company_id orgs_can_add = [company_id] else orgs_can_add = db.organizations.find({ space: spaceId, parent: null }, {fields: {_id: 1}}).fetch().getProperty("_id") #设置提交部门为:全公司 perms = { _id: new Mongo.ObjectID()._str users_can_add: [] orgs_can_add: orgs_can_add users_can_monitor: [] orgs_can_monitor: [] users_can_admin: [] orgs_can_admin: [] } flow.perms = perms flow.space = spaceId flow.current._id = new Mongo.ObjectID()._str flow.current.flow = flow_id flow.current._rev = 1 #重置版本 flow.current.form_version = form.current._id flow.current.created = new Date() flow.current.created_by = uid flow.current.modified = new Date() flow.current.modified_by = uid flow.current?.steps.forEach (step)-> if _.isArray(step.approver_users) _accepted_approve_users = []; _.each step.approver_users, (uid)-> if db.space_users.findOne({user: uid, user_accepted: true, space: spaceId}) _accepted_approve_users.push(uid); step.approver_users = _accepted_approve_users; if _.isArray(step.approver_orgs) _accepted_approver_orgs = []; _.each step.approver_orgs, (oid)-> if db.organizations.findOne({_id: oid, space: spaceId}) _accepted_approver_orgs.push(oid); step.approver_orgs = _accepted_approver_orgs; if _.isEmpty(step.approver_roles_name) delete step.approver_roles_name if _.isEmpty(step.approver_roles) step.approver_roles = [] if !_.isEmpty(step.approver_hr_roles_name) approver_hr_roles = new Array() step.approver_hr_roles_name.forEach (role_name) -> role_query = {space: spaceId, name: role_name} role = db.roles.findOne(role_query, {fields: {_id: 1}}) if _.isEmpty(role) role_id = db.roles._makeNewID() role = { _id: role_id name: role_name space: spaceId created: new Date created_by: uid owner: uid } db.roles.direct.insert(role) approver_hr_roles.push(role_id) else approver_hr_roles.push(role._id) step.approver_hr_roles = approver_hr_roles delete step.approver_roles_name else approve_roles = new Array(); approveRolesByIds = []; if _.isArray(step.approver_roles) && !_.isEmpty(step.approver_roles) approveRolesByIds = db.flow_roles.find({_id: {$in: step.approver_roles}, space: spaceId}, {fields: {_id: 1, name: 1, company_id: 1}}).fetch() step.approver_roles_name.forEach (role_name, _index) -> approveRoleById = _.find approveRolesByIds, (_role)-> return _role._id == step.approver_roles[_index] flow_role_query = {space: spaceId, name: role_name} if (!approveRoleById && company_id) || (approveRoleById?.company_id && company_id) flow_role_query.company_id = company_id else flow_role_query.$or = [{ company_id: { $exists: false } }, { company_id: null }, { company_id: '' }] role = db.flow_roles.findOne(flow_role_query, {fields: {_id: 1}}) if _.isEmpty(role) role_id = db.flow_roles._makeNewID() role = { _id: role_id name: role_name space: spaceId created: new Date created_by: uid owner: uid } if company_id role.company_id = company_id role.company_ids = [company_id] db.flow_roles.direct.insert(role) approve_roles.push(role_id) else approve_roles.push(role._id) step.approver_roles = approve_roles delete step.approver_roles_name flow.import = true flow.owner = uid if upgrade upgradeFlow(flow, uid, upgradeFlowId) _.each flowObjectWorkflows, (_objectWorkflow)-> steedosImport.objectWorkflow(spaceId, upgradeFlowId, _objectWorkflow.object_name, _objectWorkflow) else db.flows._check(spaceId); db.flows.direct.insert(flow) new_flow_ids.push(flow_id) _.each flowObjectWorkflows, (_objectWorkflow)-> steedosImport.objectWorkflow(spaceId, flow_id, _objectWorkflow.object_name, _objectWorkflow) return new_flow_ids; catch e new_form_ids.forEach (id)-> db.forms.direct.remove(id) new_flow_ids.forEach (id)-> db.flows.direct.remove(id) throw e
131076
objectql = require("@steedos/objectql"); steedosImport = {} _formatFieldsID = (fields)-> _.each(fields, (f)-> if (!f._id && f.id) f._id = f.id; delete f.id; if (f.type == 'section' || f.type == 'table') _formatFieldsID(f.fields); ); return fields; upgradeFlowByForm = (flow, formVersionId, options)-> flowCollection = Creator.getCollection('flows'); up = false; now = options.now currentUserId = options.currentUserId spaceId = options.spaceId if (Creator.getCollection('instances').find({ space: spaceId, flow: flow._id, flow_version: flow.current._id }).count()) up = true; flowUpdateObj = { $set: {} }; if up == true && flow.current.start_date flowUpdateObj.$push = { 'historys': flow.current }; flowCurrent = { '_id': flowCollection._makeNewID(), 'created': now, 'created_by': currentUserId, 'steps': flow.current.steps, '_rev': flow.current._rev + 1, 'flow': flow._id, 'form_version': formVersionId, 'modified': now, 'modified_by': currentUserId }; if flow.state == "enabled" flowCurrent.start_date = now; flowUpdateObj.$set['current'] = flowCurrent; else flowUpdateObj.$set = { 'current.form_version': formVersionId, 'current.modified': now, 'current.modified_by': currentUserId } flowUpdateObj.$set['modified'] = now; flowUpdateObj.$set['modified_by'] = currentUserId; flowCollection.update(flow._id, flowUpdateObj); upgradeForm = (formId, form, currentUserId, spaceId)-> formCollection = Creator.getCollection('forms'); flowCollection = Creator.getCollection('flows'); ff = formCollection.findOne({_id: formId, space: spaceId}); if !ff throw new Meteor.Error('error', "无效的formId") spaceId = ff.space; now = new Date(); current = {}; formUpdateObj = {}; pass = false; # 根据APP 判断表单当前版本是否走过申请单 或者 records if ff.app == 'workflow' insCount = Creator.getCollection('instances').find({ space: spaceId, form: formId, 'form_version': form['current']['id'] }).count(); if insCount > 0 pass = true else if ff.app == 'creator' recordsCount = Creator.getCollection('records').find({ space: spaceId, form: formId, 'form_version': form['current']['id'] }).count(); if recordsCount > 0 pass = true; if pass == true && ff["current"]["start_date"] formUpdateObj.$push = { 'historys': ff["current"] }; current._id = formCollection._makeNewID(); current._rev = ff["current"]["_rev"] + 1; current.created = now; current.created_by = currentUserId; if ff.state == 'enabled' current.start_date = now; flowCollection.find({form: formId}).forEach (flow)-> upgradeFlowByForm(flow, current._id, {now: now, currentUserId: currentUserId, spaceId: spaceId}) else current = ff.current; current.modified = now; current.modified_by = currentUserId; current.form = formId; current.fields = _formatFieldsID(form["current"]["fields"]); current.form_script = form["current"]["form_script"]; current.name_forumla = form["current"]["name_forumla"]; formUpdateObj.$set = { 'current': current, 'name': form["name"], 'modified': now, 'modified_by': currentUserId, 'is_valid': form["is_valid"], 'description': form["description"], 'help_text': form["help_text"], 'error_message': form["error_message"], 'category': form["category"], 'instance_style': form["instance_style"] } formCollection.update(formId, formUpdateObj); upgradeFlow = (flowCome, userId, flowId)-> now = new Date(); flowCollection = Creator.getCollection('flows'); formCollection = Creator.getCollection('forms'); flow = flowCollection.findOne(flowId); spaceId = flow.space # 某步骤被删除后,删除同流程的“指定历史步骤”属性中被引用的步骤id(仅限于流程的最新版) clientStepIds = [] _.each(flowCome['current']['steps'], (step) -> clientStepIds.push(step['id']); ) _.each(flowCome['current']['steps'], (step) -> if (step['approver_step']) if (!clientStepIds.includes(step['approver_step'])) step['approver_step'] = ''; ) # 流程升级 # 由于前台后台posx posy timeout_hours字段类型不一致会导致流程升级 所以在这里统一转为后台Float类型 便于比较 _.each(flowCome['current']['steps'], (st) -> st['posx'] = parseFloat(st['posx']); st['posy'] = parseFloat(st['posy']); if (st['timeout_hours']) st['timeout_hours'] = parseFloat(st['timeout_hours']); ) # 由于前台传的是id而非_id,故比较时将id转为_id _.each(flowCome['current']['steps'], (step) -> if step['id'] step['_id'] = step['id']; delete step['id']; if (step['lines']) _.each(step['lines'], (line) -> if line['id'] line['_id'] = line['id']; delete line['id']; ) ) stepsStr = JSON.stringify(flow['current']['steps']); flowComeStepsStr = JSON.stringify(flowCome['current']['steps']); pass = false; updateObj = { $set: {} }; insCount = Creator.getCollection('instances').find({ space: spaceId, flow: flowId, flow_version: flow.current._id }).count(); if (insCount > 0) pass = true; if pass == true && flow.current.start_date && stepsStr == flowComeStepsStr updateObj.$push = { 'historys': flow.current }; current = { '_id': flowCollection._makeNewID(), 'modified': now, 'modified_by': userId, 'created': now, 'created_by': userId, 'steps': flowCome['current']['steps'], 'form_version': flow.current.form_version, '_rev': flow.current._rev, 'flow': flowId, }; if (flow.state == 'enabled') current['start_date'] = now; updateObj.$set.current = current; else updateObj.$set = { 'current.modified': now, 'current.modified_by': userId, 'current.steps': flowCome["current"]["steps"] } updateObj.$set.name = flowCome['name']; updateObj.$set.name_formula = ''; updateObj.$set.code_formula = ''; updateObj.$set.is_valid = flowCome['is_valid']; updateObj.$set.flowtype = flowCome['flowtype']; updateObj.$set.help_text = flowCome['help_text']; updateObj.$set.decription = flowCome['descriptions']; updateObj.$set.error_message = flowCome['error_message']; updateObj.$set.modified = now; updateObj.$set.modified_by = userId; #流程权限保持不变 # if (flowCome['perms']) # flowCome['perms']['_id'] = flowCome['perms']['id']; # delete flowCome['perms']['id']; # updateObj.$set.perms = flowCome['perms']; # flow对象上添加categoryId form = formCollection.findOne(flow.form, { fields: { category: 1 } }); updateObj.$set.category = form['category']; flowCollection.update(flowId, updateObj); # TODO check 对象、字段是否存在 checkObjectWorkflow = (spaceId, objectName, doc)-> try _obj = objectql.getObject(objectName); catch if !_obj throw new Meteor.Error(500, "import_flows_error_not_find_object", objectName); _objconfig = _obj.toConfig(); if !_objconfig.enable_workflow throw new Meteor.Error(500, "import_flows_error_not_allow_enable_workflow", _objconfig.name); fileds = _objconfig.fields allowValues = _.pluck(Creator.getObjectLookupFieldOptions(objectName, true, false, true), 'value'); objectField = _.pluck(doc.field_map, "object_field"); diff = _.difference(objectField, allowValues); if diff.length > 0 throw new Meteor.Error(500, "import_flows_error_not_find_fields", diff.join(",")); objectFieldBack = _.pluck(doc.field_map_back, "object_field"); diff1 = _.difference(objectFieldBack, allowValues); if diff1.length > 0 throw new Meteor.Error(500, "import_flows_error_not_find_fields", diff1.join(",")); steedosImport.objectWorkflow = (spaceId, flowId, objectName, doc)-> delete doc._id oldDoc = Creator.getCollection("object_workflows").findOne({space: spaceId, flow_id: flowId, object_name: objectName}) if oldDoc Creator.getCollection("object_workflows").update(oldDoc._id, {$set: Object.assign({}, doc, {space: spaceId, flow_id: flowId, object_name: objectName})}) else Creator.getCollection("object_workflows").insert(Object.assign({}, doc, {space: spaceId, flow_id: flowId, object_name: objectName})) steedosImport.workflow = (uid, spaceId, form, enabled, company_id, options)-> upgrade = options?.upgrade || false upgradeFormId = options?.formId upgradeFlowId = options?.flowId if _.isEmpty(form) throw new Meteor.Error('error', "无效的json data") if company_id if Creator.getCollection("company").find({ _id: company_id, space: spaceId }).count() == 0 throw new Meteor.Error('error', "无效的字段: company_id") # if form?.flows # _.each form.flows, (flow)-> # if flow.object_workflows # _.each flow.object_workflows, (_ow)-> # checkObjectWorkflow(spaceId, _ow.object_name, _ow) new_form_ids = new Array() new_flow_ids = new Array() try if form?.category_name category = db.categories.findOne({space: spaceId, name: form.category_name}, {fields: {_id: 1}}) if _.isEmpty(category) category_id = new Mongo.ObjectID()._str; new_category = { _id: category_id, name: form.category_name, space: spaceId, created: new Date, created_by: uid, modified: new Date, modified_by: uid, owner: uid } if company_id new_category.company_id = company_id new_category.company_ids = [company_id] db.categories.direct.insert(new_category); form.category = category_id else form.category = category._id delete form.category_name if form?.instance_number_rules form.instance_number_rules.forEach (nr)-> try rules = db.instance_number_rules.findOne({space: spaceId, "name": nr.name}) if !rules nr.space = spaceId nr._id = new Mongo.ObjectID()._str nr.created = new Date nr.created_by = uid nr.modified = new Date nr.modified_by = uid delete nr.company_id delete nr.company_ids if company_id nr.company_id = company_id nr.company_ids = [company_id] db.instance_number_rules.direct.insert(nr) catch e console.log "steedosImport.workflow", e delete form.instance_number_rules form_id = new Mongo.ObjectID()._str flows = form.flows delete form.flows form._id = form_id form.space = spaceId if enabled form.state = 'enabled' form.is_valid = true #直接启用的表单设置is valid值为true else form.state = 'disabled' #设置状态为 未启用 form.is_valid = true #设置已验证为 true , 简化用户操作 form.created = new Date() form.created_by = uid form.modified = form.created form.modified_by = uid form.historys = [] form.current._id = new Mongo.ObjectID()._str form.current._rev = 1 #重置版本号 form.current.form = form_id form.current.created = new Date() form.current.created_by = uid form.current.modified = new Date() form.current.modified_by = uid delete form.company_id delete form.company_ids if company_id form.company_id = company_id form.company_ids = [company_id] form.import = true form.owner = uid if upgrade upgradeForm(upgradeFormId, form, uid, spaceId) else db.forms.direct.insert(form) new_form_ids.push(form_id) flows.forEach (flow)-> flowObjectWorkflows = flow.object_workflows delete flow.object_workflows flow_id = new Mongo.ObjectID()._str flow._id = flow_id flow.form = form_id flow.category = form.category if enabled flow.state = 'enabled' flow.is_valid = true #直接启用的流程设置is valid值为true else flow.state = 'disabled' #设置状态为 未启用 flow.is_valid = true flow.current_no = 0 #重置编号起始为0 flow.created = new Date() flow.created_by = uid flow.modified = flow.created flow.modified_by = uid delete flow.company_id delete flow.company_ids if company_id flow.company_id = company_id flow.company_ids = [company_id] #跨工作区导入时,重置流程权限perms if flow.perms && flow.space == spaceId perms = { _id: new Mongo.ObjectID()._str users_can_add: [] orgs_can_add: orgs_can_add users_can_monitor: [] orgs_can_monitor: [] users_can_admin: [] orgs_can_admin: [] } users_can_add = perms.users_can_add orgs_can_add = perms.orgs_can_add users_can_monitor = perms.users_can_monitor orgs_can_monitor = perms.orgs_can_monitor users_can_admin = perms.users_can_admin orgs_can_admin = perms.orgs_can_admin if !_.isEmpty(users_can_add) perms.users_can_add = _.pluck(db.space_users.find({user: {$in: users_can_add}}, {fields: {user: 1}}).fetch(), 'user'); if !_.isEmpty(orgs_can_add) perms.orgs_can_add = _.pluck(db.organizations.find({_id: {$in: orgs_can_add}}, {fields: {_id: 1}}).fetch(), '_id'); if _.isEmpty(perms.orgs_can_add) if company_id perms.orgs_can_add = [company_id] else perms.orgs_can_add = db.organizations.find({ space: spaceId, parent: null }, {fields: {_id: 1}}).fetch().getProperty("_id") if !_.isEmpty(users_can_monitor) perms.users_can_monitor = _.pluck(db.space_users.find({user: {$in: users_can_monitor}}, {fields: {user: 1}}).fetch(), 'user'); if !_.isEmpty(orgs_can_monitor) perms.orgs_can_monitor = _.pluck(db.organizations.find({_id: {$in: orgs_can_monitor}}, {fields: {_id: 1}}).fetch(), '_id'); if !_.isEmpty(users_can_admin) perms.users_can_monitor = _.pluck(db.space_users.find({user: {$in: users_can_admin}}, {fields: {user: 1}}).fetch(), 'user'); if !_.isEmpty(orgs_can_admin) perms.orgs_can_monitor = _.pluck(db.organizations.find({_id: {$in: orgs_can_admin}}, {fields: {_id: 1}}).fetch(), '_id'); else if !flow.perms || flow.space != spaceId orgs_can_add = [] if company_id orgs_can_add = [company_id] else orgs_can_add = db.organizations.find({ space: spaceId, parent: null }, {fields: {_id: 1}}).fetch().getProperty("_id") #设置提交部门为:全公司 perms = { _id: new Mongo.ObjectID()._str users_can_add: [] orgs_can_add: orgs_can_add users_can_monitor: [] orgs_can_monitor: [] users_can_admin: [] orgs_can_admin: [] } flow.perms = perms flow.space = spaceId flow.current._id = new Mongo.ObjectID()._str flow.current.flow = flow_id flow.current._rev = 1 #重置版本 flow.current.form_version = form.current._id flow.current.created = new Date() flow.current.created_by = uid flow.current.modified = new Date() flow.current.modified_by = uid flow.current?.steps.forEach (step)-> if _.isArray(step.approver_users) _accepted_approve_users = []; _.each step.approver_users, (uid)-> if db.space_users.findOne({user: uid, user_accepted: true, space: spaceId}) _accepted_approve_users.push(uid); step.approver_users = _accepted_approve_users; if _.isArray(step.approver_orgs) _accepted_approver_orgs = []; _.each step.approver_orgs, (oid)-> if db.organizations.findOne({_id: oid, space: spaceId}) _accepted_approver_orgs.push(oid); step.approver_orgs = _accepted_approver_orgs; if _.isEmpty(step.approver_roles_name) delete step.approver_roles_name if _.isEmpty(step.approver_roles) step.approver_roles = [] if !_.isEmpty(step.approver_hr_roles_name) approver_hr_roles = new Array() step.approver_hr_roles_name.forEach (role_name) -> role_query = {space: spaceId, name: role_name} role = db.roles.findOne(role_query, {fields: {_id: 1}}) if _.isEmpty(role) role_id = db.roles._makeNewID() role = { _id: role_id name: <NAME>_name space: spaceId created: new Date created_by: uid owner: uid } db.roles.direct.insert(role) approver_hr_roles.push(role_id) else approver_hr_roles.push(role._id) step.approver_hr_roles = approver_hr_roles delete step.approver_roles_name else approve_roles = new Array(); approveRolesByIds = []; if _.isArray(step.approver_roles) && !_.isEmpty(step.approver_roles) approveRolesByIds = db.flow_roles.find({_id: {$in: step.approver_roles}, space: spaceId}, {fields: {_id: 1, name: 1, company_id: 1}}).fetch() step.approver_roles_name.forEach (role_name, _index) -> approveRoleById = _.find approveRolesByIds, (_role)-> return _role._id == step.approver_roles[_index] flow_role_query = {space: spaceId, name: role_name} if (!approveRoleById && company_id) || (approveRoleById?.company_id && company_id) flow_role_query.company_id = company_id else flow_role_query.$or = [{ company_id: { $exists: false } }, { company_id: null }, { company_id: '' }] role = db.flow_roles.findOne(flow_role_query, {fields: {_id: 1}}) if _.isEmpty(role) role_id = db.flow_roles._makeNewID() role = { _id: role_id name: <NAME>_name space: spaceId created: new Date created_by: uid owner: uid } if company_id role.company_id = company_id role.company_ids = [company_id] db.flow_roles.direct.insert(role) approve_roles.push(role_id) else approve_roles.push(role._id) step.approver_roles = approve_roles delete step.approver_roles_name flow.import = true flow.owner = uid if upgrade upgradeFlow(flow, uid, upgradeFlowId) _.each flowObjectWorkflows, (_objectWorkflow)-> steedosImport.objectWorkflow(spaceId, upgradeFlowId, _objectWorkflow.object_name, _objectWorkflow) else db.flows._check(spaceId); db.flows.direct.insert(flow) new_flow_ids.push(flow_id) _.each flowObjectWorkflows, (_objectWorkflow)-> steedosImport.objectWorkflow(spaceId, flow_id, _objectWorkflow.object_name, _objectWorkflow) return new_flow_ids; catch e new_form_ids.forEach (id)-> db.forms.direct.remove(id) new_flow_ids.forEach (id)-> db.flows.direct.remove(id) throw e
true
objectql = require("@steedos/objectql"); steedosImport = {} _formatFieldsID = (fields)-> _.each(fields, (f)-> if (!f._id && f.id) f._id = f.id; delete f.id; if (f.type == 'section' || f.type == 'table') _formatFieldsID(f.fields); ); return fields; upgradeFlowByForm = (flow, formVersionId, options)-> flowCollection = Creator.getCollection('flows'); up = false; now = options.now currentUserId = options.currentUserId spaceId = options.spaceId if (Creator.getCollection('instances').find({ space: spaceId, flow: flow._id, flow_version: flow.current._id }).count()) up = true; flowUpdateObj = { $set: {} }; if up == true && flow.current.start_date flowUpdateObj.$push = { 'historys': flow.current }; flowCurrent = { '_id': flowCollection._makeNewID(), 'created': now, 'created_by': currentUserId, 'steps': flow.current.steps, '_rev': flow.current._rev + 1, 'flow': flow._id, 'form_version': formVersionId, 'modified': now, 'modified_by': currentUserId }; if flow.state == "enabled" flowCurrent.start_date = now; flowUpdateObj.$set['current'] = flowCurrent; else flowUpdateObj.$set = { 'current.form_version': formVersionId, 'current.modified': now, 'current.modified_by': currentUserId } flowUpdateObj.$set['modified'] = now; flowUpdateObj.$set['modified_by'] = currentUserId; flowCollection.update(flow._id, flowUpdateObj); upgradeForm = (formId, form, currentUserId, spaceId)-> formCollection = Creator.getCollection('forms'); flowCollection = Creator.getCollection('flows'); ff = formCollection.findOne({_id: formId, space: spaceId}); if !ff throw new Meteor.Error('error', "无效的formId") spaceId = ff.space; now = new Date(); current = {}; formUpdateObj = {}; pass = false; # 根据APP 判断表单当前版本是否走过申请单 或者 records if ff.app == 'workflow' insCount = Creator.getCollection('instances').find({ space: spaceId, form: formId, 'form_version': form['current']['id'] }).count(); if insCount > 0 pass = true else if ff.app == 'creator' recordsCount = Creator.getCollection('records').find({ space: spaceId, form: formId, 'form_version': form['current']['id'] }).count(); if recordsCount > 0 pass = true; if pass == true && ff["current"]["start_date"] formUpdateObj.$push = { 'historys': ff["current"] }; current._id = formCollection._makeNewID(); current._rev = ff["current"]["_rev"] + 1; current.created = now; current.created_by = currentUserId; if ff.state == 'enabled' current.start_date = now; flowCollection.find({form: formId}).forEach (flow)-> upgradeFlowByForm(flow, current._id, {now: now, currentUserId: currentUserId, spaceId: spaceId}) else current = ff.current; current.modified = now; current.modified_by = currentUserId; current.form = formId; current.fields = _formatFieldsID(form["current"]["fields"]); current.form_script = form["current"]["form_script"]; current.name_forumla = form["current"]["name_forumla"]; formUpdateObj.$set = { 'current': current, 'name': form["name"], 'modified': now, 'modified_by': currentUserId, 'is_valid': form["is_valid"], 'description': form["description"], 'help_text': form["help_text"], 'error_message': form["error_message"], 'category': form["category"], 'instance_style': form["instance_style"] } formCollection.update(formId, formUpdateObj); upgradeFlow = (flowCome, userId, flowId)-> now = new Date(); flowCollection = Creator.getCollection('flows'); formCollection = Creator.getCollection('forms'); flow = flowCollection.findOne(flowId); spaceId = flow.space # 某步骤被删除后,删除同流程的“指定历史步骤”属性中被引用的步骤id(仅限于流程的最新版) clientStepIds = [] _.each(flowCome['current']['steps'], (step) -> clientStepIds.push(step['id']); ) _.each(flowCome['current']['steps'], (step) -> if (step['approver_step']) if (!clientStepIds.includes(step['approver_step'])) step['approver_step'] = ''; ) # 流程升级 # 由于前台后台posx posy timeout_hours字段类型不一致会导致流程升级 所以在这里统一转为后台Float类型 便于比较 _.each(flowCome['current']['steps'], (st) -> st['posx'] = parseFloat(st['posx']); st['posy'] = parseFloat(st['posy']); if (st['timeout_hours']) st['timeout_hours'] = parseFloat(st['timeout_hours']); ) # 由于前台传的是id而非_id,故比较时将id转为_id _.each(flowCome['current']['steps'], (step) -> if step['id'] step['_id'] = step['id']; delete step['id']; if (step['lines']) _.each(step['lines'], (line) -> if line['id'] line['_id'] = line['id']; delete line['id']; ) ) stepsStr = JSON.stringify(flow['current']['steps']); flowComeStepsStr = JSON.stringify(flowCome['current']['steps']); pass = false; updateObj = { $set: {} }; insCount = Creator.getCollection('instances').find({ space: spaceId, flow: flowId, flow_version: flow.current._id }).count(); if (insCount > 0) pass = true; if pass == true && flow.current.start_date && stepsStr == flowComeStepsStr updateObj.$push = { 'historys': flow.current }; current = { '_id': flowCollection._makeNewID(), 'modified': now, 'modified_by': userId, 'created': now, 'created_by': userId, 'steps': flowCome['current']['steps'], 'form_version': flow.current.form_version, '_rev': flow.current._rev, 'flow': flowId, }; if (flow.state == 'enabled') current['start_date'] = now; updateObj.$set.current = current; else updateObj.$set = { 'current.modified': now, 'current.modified_by': userId, 'current.steps': flowCome["current"]["steps"] } updateObj.$set.name = flowCome['name']; updateObj.$set.name_formula = ''; updateObj.$set.code_formula = ''; updateObj.$set.is_valid = flowCome['is_valid']; updateObj.$set.flowtype = flowCome['flowtype']; updateObj.$set.help_text = flowCome['help_text']; updateObj.$set.decription = flowCome['descriptions']; updateObj.$set.error_message = flowCome['error_message']; updateObj.$set.modified = now; updateObj.$set.modified_by = userId; #流程权限保持不变 # if (flowCome['perms']) # flowCome['perms']['_id'] = flowCome['perms']['id']; # delete flowCome['perms']['id']; # updateObj.$set.perms = flowCome['perms']; # flow对象上添加categoryId form = formCollection.findOne(flow.form, { fields: { category: 1 } }); updateObj.$set.category = form['category']; flowCollection.update(flowId, updateObj); # TODO check 对象、字段是否存在 checkObjectWorkflow = (spaceId, objectName, doc)-> try _obj = objectql.getObject(objectName); catch if !_obj throw new Meteor.Error(500, "import_flows_error_not_find_object", objectName); _objconfig = _obj.toConfig(); if !_objconfig.enable_workflow throw new Meteor.Error(500, "import_flows_error_not_allow_enable_workflow", _objconfig.name); fileds = _objconfig.fields allowValues = _.pluck(Creator.getObjectLookupFieldOptions(objectName, true, false, true), 'value'); objectField = _.pluck(doc.field_map, "object_field"); diff = _.difference(objectField, allowValues); if diff.length > 0 throw new Meteor.Error(500, "import_flows_error_not_find_fields", diff.join(",")); objectFieldBack = _.pluck(doc.field_map_back, "object_field"); diff1 = _.difference(objectFieldBack, allowValues); if diff1.length > 0 throw new Meteor.Error(500, "import_flows_error_not_find_fields", diff1.join(",")); steedosImport.objectWorkflow = (spaceId, flowId, objectName, doc)-> delete doc._id oldDoc = Creator.getCollection("object_workflows").findOne({space: spaceId, flow_id: flowId, object_name: objectName}) if oldDoc Creator.getCollection("object_workflows").update(oldDoc._id, {$set: Object.assign({}, doc, {space: spaceId, flow_id: flowId, object_name: objectName})}) else Creator.getCollection("object_workflows").insert(Object.assign({}, doc, {space: spaceId, flow_id: flowId, object_name: objectName})) steedosImport.workflow = (uid, spaceId, form, enabled, company_id, options)-> upgrade = options?.upgrade || false upgradeFormId = options?.formId upgradeFlowId = options?.flowId if _.isEmpty(form) throw new Meteor.Error('error', "无效的json data") if company_id if Creator.getCollection("company").find({ _id: company_id, space: spaceId }).count() == 0 throw new Meteor.Error('error', "无效的字段: company_id") # if form?.flows # _.each form.flows, (flow)-> # if flow.object_workflows # _.each flow.object_workflows, (_ow)-> # checkObjectWorkflow(spaceId, _ow.object_name, _ow) new_form_ids = new Array() new_flow_ids = new Array() try if form?.category_name category = db.categories.findOne({space: spaceId, name: form.category_name}, {fields: {_id: 1}}) if _.isEmpty(category) category_id = new Mongo.ObjectID()._str; new_category = { _id: category_id, name: form.category_name, space: spaceId, created: new Date, created_by: uid, modified: new Date, modified_by: uid, owner: uid } if company_id new_category.company_id = company_id new_category.company_ids = [company_id] db.categories.direct.insert(new_category); form.category = category_id else form.category = category._id delete form.category_name if form?.instance_number_rules form.instance_number_rules.forEach (nr)-> try rules = db.instance_number_rules.findOne({space: spaceId, "name": nr.name}) if !rules nr.space = spaceId nr._id = new Mongo.ObjectID()._str nr.created = new Date nr.created_by = uid nr.modified = new Date nr.modified_by = uid delete nr.company_id delete nr.company_ids if company_id nr.company_id = company_id nr.company_ids = [company_id] db.instance_number_rules.direct.insert(nr) catch e console.log "steedosImport.workflow", e delete form.instance_number_rules form_id = new Mongo.ObjectID()._str flows = form.flows delete form.flows form._id = form_id form.space = spaceId if enabled form.state = 'enabled' form.is_valid = true #直接启用的表单设置is valid值为true else form.state = 'disabled' #设置状态为 未启用 form.is_valid = true #设置已验证为 true , 简化用户操作 form.created = new Date() form.created_by = uid form.modified = form.created form.modified_by = uid form.historys = [] form.current._id = new Mongo.ObjectID()._str form.current._rev = 1 #重置版本号 form.current.form = form_id form.current.created = new Date() form.current.created_by = uid form.current.modified = new Date() form.current.modified_by = uid delete form.company_id delete form.company_ids if company_id form.company_id = company_id form.company_ids = [company_id] form.import = true form.owner = uid if upgrade upgradeForm(upgradeFormId, form, uid, spaceId) else db.forms.direct.insert(form) new_form_ids.push(form_id) flows.forEach (flow)-> flowObjectWorkflows = flow.object_workflows delete flow.object_workflows flow_id = new Mongo.ObjectID()._str flow._id = flow_id flow.form = form_id flow.category = form.category if enabled flow.state = 'enabled' flow.is_valid = true #直接启用的流程设置is valid值为true else flow.state = 'disabled' #设置状态为 未启用 flow.is_valid = true flow.current_no = 0 #重置编号起始为0 flow.created = new Date() flow.created_by = uid flow.modified = flow.created flow.modified_by = uid delete flow.company_id delete flow.company_ids if company_id flow.company_id = company_id flow.company_ids = [company_id] #跨工作区导入时,重置流程权限perms if flow.perms && flow.space == spaceId perms = { _id: new Mongo.ObjectID()._str users_can_add: [] orgs_can_add: orgs_can_add users_can_monitor: [] orgs_can_monitor: [] users_can_admin: [] orgs_can_admin: [] } users_can_add = perms.users_can_add orgs_can_add = perms.orgs_can_add users_can_monitor = perms.users_can_monitor orgs_can_monitor = perms.orgs_can_monitor users_can_admin = perms.users_can_admin orgs_can_admin = perms.orgs_can_admin if !_.isEmpty(users_can_add) perms.users_can_add = _.pluck(db.space_users.find({user: {$in: users_can_add}}, {fields: {user: 1}}).fetch(), 'user'); if !_.isEmpty(orgs_can_add) perms.orgs_can_add = _.pluck(db.organizations.find({_id: {$in: orgs_can_add}}, {fields: {_id: 1}}).fetch(), '_id'); if _.isEmpty(perms.orgs_can_add) if company_id perms.orgs_can_add = [company_id] else perms.orgs_can_add = db.organizations.find({ space: spaceId, parent: null }, {fields: {_id: 1}}).fetch().getProperty("_id") if !_.isEmpty(users_can_monitor) perms.users_can_monitor = _.pluck(db.space_users.find({user: {$in: users_can_monitor}}, {fields: {user: 1}}).fetch(), 'user'); if !_.isEmpty(orgs_can_monitor) perms.orgs_can_monitor = _.pluck(db.organizations.find({_id: {$in: orgs_can_monitor}}, {fields: {_id: 1}}).fetch(), '_id'); if !_.isEmpty(users_can_admin) perms.users_can_monitor = _.pluck(db.space_users.find({user: {$in: users_can_admin}}, {fields: {user: 1}}).fetch(), 'user'); if !_.isEmpty(orgs_can_admin) perms.orgs_can_monitor = _.pluck(db.organizations.find({_id: {$in: orgs_can_admin}}, {fields: {_id: 1}}).fetch(), '_id'); else if !flow.perms || flow.space != spaceId orgs_can_add = [] if company_id orgs_can_add = [company_id] else orgs_can_add = db.organizations.find({ space: spaceId, parent: null }, {fields: {_id: 1}}).fetch().getProperty("_id") #设置提交部门为:全公司 perms = { _id: new Mongo.ObjectID()._str users_can_add: [] orgs_can_add: orgs_can_add users_can_monitor: [] orgs_can_monitor: [] users_can_admin: [] orgs_can_admin: [] } flow.perms = perms flow.space = spaceId flow.current._id = new Mongo.ObjectID()._str flow.current.flow = flow_id flow.current._rev = 1 #重置版本 flow.current.form_version = form.current._id flow.current.created = new Date() flow.current.created_by = uid flow.current.modified = new Date() flow.current.modified_by = uid flow.current?.steps.forEach (step)-> if _.isArray(step.approver_users) _accepted_approve_users = []; _.each step.approver_users, (uid)-> if db.space_users.findOne({user: uid, user_accepted: true, space: spaceId}) _accepted_approve_users.push(uid); step.approver_users = _accepted_approve_users; if _.isArray(step.approver_orgs) _accepted_approver_orgs = []; _.each step.approver_orgs, (oid)-> if db.organizations.findOne({_id: oid, space: spaceId}) _accepted_approver_orgs.push(oid); step.approver_orgs = _accepted_approver_orgs; if _.isEmpty(step.approver_roles_name) delete step.approver_roles_name if _.isEmpty(step.approver_roles) step.approver_roles = [] if !_.isEmpty(step.approver_hr_roles_name) approver_hr_roles = new Array() step.approver_hr_roles_name.forEach (role_name) -> role_query = {space: spaceId, name: role_name} role = db.roles.findOne(role_query, {fields: {_id: 1}}) if _.isEmpty(role) role_id = db.roles._makeNewID() role = { _id: role_id name: PI:NAME:<NAME>END_PI_name space: spaceId created: new Date created_by: uid owner: uid } db.roles.direct.insert(role) approver_hr_roles.push(role_id) else approver_hr_roles.push(role._id) step.approver_hr_roles = approver_hr_roles delete step.approver_roles_name else approve_roles = new Array(); approveRolesByIds = []; if _.isArray(step.approver_roles) && !_.isEmpty(step.approver_roles) approveRolesByIds = db.flow_roles.find({_id: {$in: step.approver_roles}, space: spaceId}, {fields: {_id: 1, name: 1, company_id: 1}}).fetch() step.approver_roles_name.forEach (role_name, _index) -> approveRoleById = _.find approveRolesByIds, (_role)-> return _role._id == step.approver_roles[_index] flow_role_query = {space: spaceId, name: role_name} if (!approveRoleById && company_id) || (approveRoleById?.company_id && company_id) flow_role_query.company_id = company_id else flow_role_query.$or = [{ company_id: { $exists: false } }, { company_id: null }, { company_id: '' }] role = db.flow_roles.findOne(flow_role_query, {fields: {_id: 1}}) if _.isEmpty(role) role_id = db.flow_roles._makeNewID() role = { _id: role_id name: PI:NAME:<NAME>END_PI_name space: spaceId created: new Date created_by: uid owner: uid } if company_id role.company_id = company_id role.company_ids = [company_id] db.flow_roles.direct.insert(role) approve_roles.push(role_id) else approve_roles.push(role._id) step.approver_roles = approve_roles delete step.approver_roles_name flow.import = true flow.owner = uid if upgrade upgradeFlow(flow, uid, upgradeFlowId) _.each flowObjectWorkflows, (_objectWorkflow)-> steedosImport.objectWorkflow(spaceId, upgradeFlowId, _objectWorkflow.object_name, _objectWorkflow) else db.flows._check(spaceId); db.flows.direct.insert(flow) new_flow_ids.push(flow_id) _.each flowObjectWorkflows, (_objectWorkflow)-> steedosImport.objectWorkflow(spaceId, flow_id, _objectWorkflow.object_name, _objectWorkflow) return new_flow_ids; catch e new_form_ids.forEach (id)-> db.forms.direct.remove(id) new_flow_ids.forEach (id)-> db.flows.direct.remove(id) throw e
[ { "context": "'fileTypes': [\n 'ily',\n 'ly'\n]\n'name': 'LilyPond'\n'patterns': [\n {\n 'include': 'source.lilypon", "end": 50, "score": 0.8705443143844604, "start": 42, "tag": "NAME", "value": "LilyPond" } ]
grammars/lilypond.cson
skafdasschaf/lilypond-grammar
0
'fileTypes': [ 'ily', 'ly' ] 'name': 'LilyPond' 'patterns': [ { 'include': 'source.lilypond-notenames' } { 'include': 'source.lilypond-internals' } { 'include': 'source.lilypond-notemode' } { 'include': 'source.lilypond-drummode' } { 'include': 'source.lilypond-lyricsmode' } { 'include': 'source.lilypond-notemode-explicit' } { 'include': 'source.lilypond-markupmode' } { 'include': 'source.lilypond-figbassmode' } { 'include': 'source.lilypond-schememode' } ] 'scopeName': 'source.lilypond'
210577
'fileTypes': [ 'ily', 'ly' ] 'name': '<NAME>' 'patterns': [ { 'include': 'source.lilypond-notenames' } { 'include': 'source.lilypond-internals' } { 'include': 'source.lilypond-notemode' } { 'include': 'source.lilypond-drummode' } { 'include': 'source.lilypond-lyricsmode' } { 'include': 'source.lilypond-notemode-explicit' } { 'include': 'source.lilypond-markupmode' } { 'include': 'source.lilypond-figbassmode' } { 'include': 'source.lilypond-schememode' } ] 'scopeName': 'source.lilypond'
true
'fileTypes': [ 'ily', 'ly' ] 'name': 'PI:NAME:<NAME>END_PI' 'patterns': [ { 'include': 'source.lilypond-notenames' } { 'include': 'source.lilypond-internals' } { 'include': 'source.lilypond-notemode' } { 'include': 'source.lilypond-drummode' } { 'include': 'source.lilypond-lyricsmode' } { 'include': 'source.lilypond-notemode-explicit' } { 'include': 'source.lilypond-markupmode' } { 'include': 'source.lilypond-figbassmode' } { 'include': 'source.lilypond-schememode' } ] 'scopeName': 'source.lilypond'
[ { "context": "nfig()\n\nBase64 =\n # private property\n _keyStr: \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\"\n\n # public method for encoding\n encode: (input)", "end": 7482, "score": 0.9997506141662598, "start": 7416, "tag": "KEY", "value": "ABCDEFGHIJKLMNOPQRS...
templates/conekta.js-0.6.0/src/conekta.js.coffee
josmrhyde/Base
0
base_url = 'https://api.conekta.io/' #'https://api.conekta.io/' session_id = "" _language = 'es' kount_merchant_id = '205000' antifraud_config = {} unless window.conektaAjax if typeof jQuery != 'undefined' window.conektaAjax = jQuery.ajax #fallback to jquery else console.error("no either a jQuery or ajax function provided") localstorageGet = (key)-> if typeof localStorage != 'undefined' and typeof localStorage.getItem != 'undefined' try localStorage.setItem('testKey', '1') localStorage.removeItem('testKey') return localStorage.getItem(key) catch error return null else null localstorageSet = (key, value)-> if typeof localStorage != 'undefined' and typeof localStorage.setItem != 'undefined' try localStorage.setItem('testKey', '1') localStorage.removeItem('testKey') return localStorage.setItem(key, value) catch error return null else return null public_key = localstorageGet('_conekta_publishable_key') fingerprint = -> if typeof document != 'undefined' and typeof document.body != 'undefined' and document.body and (document.readyState == 'interactive' or document.readyState == 'complete') and 'undefined' != typeof Conekta if ! Conekta._helpers.finger_printed Conekta._helpers.finger_printed = true #kount body = document.getElementsByTagName('body')[0] #if ! (location.protocol == 'https:' and (navigator.userAgent.match(/MSIE/) or navigator.userAgent.match(/Trident\/7\./))) #fingerprinting png iframe = document.createElement('iframe') iframe.setAttribute("height", "1") iframe.setAttribute("scrolling", "no") iframe.setAttribute("frameborder", "0") iframe.setAttribute("width", "1") iframe.setAttribute("src", "#{base_url}fraud_providers/kount/logo.htm?m=#{kount_merchant_id}&s=#{session_id}") image = document.createElement('img') image.setAttribute("height", "1") image.setAttribute("width", "1") image.setAttribute("src", "#{base_url}fraud_providers/kount/logo.gif?m=#{kount_merchant_id}&s=#{session_id}") try iframe.appendChild(image) catch e #do nothing body.appendChild(iframe) else setTimeout(fingerprint, 150) return send_beacon = -> if typeof document != 'undefined' and typeof document.body != 'undefined' and document.body and (document.readyState == 'interactive' or document.readyState == 'complete') and 'undefined' != typeof Conekta if ! Conekta._helpers.beacon_sent if antifraud_config['riskified'] ls = -> store_domain = antifraud_config['riskified']['domain'] session_id = session_id url = (if 'https:' == document.location.protocol then 'https://' else 'http://') + 'beacon.riskified.com?shop=' + store_domain + '&sid=' + session_id s = document.createElement('script') s.type = 'text/javascript' s.async = true s.src = url x = document.getElementsByTagName('script')[0] x.parentNode.insertBefore s, x return ls() if antifraud_config['siftscience'] _user_id = session_id window._sift = window._sift or [] _sift.push [ "_setAccount" antifraud_config['siftscience']['beacon_key'] ] _sift.push [ "_setSessionId" session_id ] _sift.push ["_trackPageview"] ls = -> e = document.createElement("script") e.type = "text/javascript" e.async = true e.src = (if 'https:' == document.location.protocol then 'https://' else 'http://') + 'cdn.siftscience.com/s.js' s = document.getElementsByTagName("script")[0] s.parentNode.insertBefore e, s return ls() else setTimeout(send_beacon, 150) return if localstorageGet('_conekta_session_id') and localstorageGet('_conekta_session_id_timestamp') and ((new Date).getTime() - 600000) < parseInt(localstorageGet('_conekta_session_id_timestamp')) session_id = localStorage.getItem('_conekta_session_id') fingerprint() else if typeof Shopify != 'undefined' # verify Shopify.getCart is defined if typeof Shopify.getCart == 'undefined' and typeof jQuery != 'undefined' Shopify.getCart = (callback) -> jQuery.getJSON("/cart.js", (cart) -> callback(cart) if "function" == typeof callback ) getCartCallback = (cart)-> session_id = cart['token'] if session_id != null and session_id != '' fingerprint() send_beacon() localstorageSet('_conekta_session_id', session_id) localstorageSet('_conekta_session_id_timestamp', (new Date).getTime().toString()) return #getting cart if typeof Shopify.getCart != 'undefined' Shopify.getCart (cart)-> getCartCallback(cart) return #tapping getCart originalGetCart = Shopify.getCart Shopify.getCart = (callback)-> tapped_callback = (cart)-> getCartCallback(cart) callback(cart) return originalGetCart(tapped_callback) return #tapping onItemAdded originalOnItemAdded = Shopify.onItemAdded Shopify.onItemAdded = (callback)-> tapped_callback = (item)-> Shopify.getCart (cart)-> getCartCallback(cart) return callback(item) return originalOnItemAdded(tapped_callback) return #tapping onCartUpdated originalOnCartUpdated = Shopify.onCartUpdated Shopify.onCartUpdated = (callback)-> tapped_callback = (cart)-> getCartCallback(cart) callback(cart) return originalOnCartUpdated(tapped_callback) return #fire fingerprints whenever an item is added to the cart if typeof jQuery != 'undefined' jQuery(document).ajaxSuccess (event, request, options, data)-> if options['url'] == 'cart/add.js' Shopify.getCart (cart)-> getCartCallback(cart) return return else useable_characters = "abcdefghijklmnopqrstuvwxyz0123456789" if typeof crypto != 'undefined' and typeof crypto.getRandomValues != 'undefined' random_value_array = new Uint32Array(32) crypto.getRandomValues(random_value_array) for i in [0..random_value_array.length-1] session_id += useable_characters.charAt(random_value_array[i] % 36) else for i in [0..30] random_index = Math.floor(Math.random() * 36) session_id += useable_characters.charAt(random_index) localstorageSet('_conekta_session_id', session_id) localstorageSet('_conekta_session_id_timestamp', (new Date).getTime().toString()) fingerprint() getAntifraudConfig = ()-> unparsed_antifraud_config = localstorageGet('conekta_antifraud_config') if unparsed_antifraud_config and unparsed_antifraud_config.match(/^\{/) antifraud_config = JSON.parse(unparsed_antifraud_config) else success_callback = (config)-> antifraud_config = config localstorageSet('conekta_antifraud_config', antifraud_config) send_beacon() error_callback = ()-> #no config, fallback url = "https://d3fxnri0mz3rya.cloudfront.net/antifraud/#{public_key}.js" conektaAjax( url: url dataType: 'jsonp' jsonpCallback: 'conekta_antifraud_config_jsonp' success: success_callback error: error_callback ) getAntifraudConfig() Base64 = # private property _keyStr: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=" # public method for encoding encode: (input) -> output = "" chr1 = undefined chr2 = undefined chr3 = undefined enc1 = undefined enc2 = undefined enc3 = undefined enc4 = undefined i = 0 input = Base64._utf8_encode(input) while i < input.length chr1 = input.charCodeAt(i++) chr2 = input.charCodeAt(i++) chr3 = input.charCodeAt(i++) enc1 = chr1 >> 2 enc2 = ((chr1 & 3) << 4) | (chr2 >> 4) enc3 = ((chr2 & 15) << 2) | (chr3 >> 6) enc4 = chr3 & 63 if isNaN(chr2) enc3 = enc4 = 64 else enc4 = 64 if isNaN(chr3) output = output + Base64._keyStr.charAt(enc1) + Base64._keyStr.charAt(enc2) + Base64._keyStr.charAt(enc3) + Base64._keyStr.charAt(enc4) output # public method for decoding decode: (input) -> output = "" chr1 = undefined chr2 = undefined chr3 = undefined enc1 = undefined enc2 = undefined enc3 = undefined enc4 = undefined i = 0 input = input.replace(/[^A-Za-z0-9\+\/\=]/g, "") while i < input.length enc1 = Base64._keyStr.indexOf(input.charAt(i++)) enc2 = Base64._keyStr.indexOf(input.charAt(i++)) enc3 = Base64._keyStr.indexOf(input.charAt(i++)) enc4 = Base64._keyStr.indexOf(input.charAt(i++)) chr1 = (enc1 << 2) | (enc2 >> 4) chr2 = ((enc2 & 15) << 4) | (enc3 >> 2) chr3 = ((enc3 & 3) << 6) | enc4 output = output + String.fromCharCode(chr1) output = output + String.fromCharCode(chr2) unless enc3 is 64 output = output + String.fromCharCode(chr3) unless enc4 is 64 output = Base64._utf8_decode(output) output # private method for UTF-8 encoding _utf8_encode: (string) -> string = string.replace(/\r\n/g, "\n") utftext = "" n = 0 while n < string.length c = string.charCodeAt(n) if c < 128 utftext += String.fromCharCode(c) else if (c > 127) and (c < 2048) utftext += String.fromCharCode((c >> 6) | 192) utftext += String.fromCharCode((c & 63) | 128) else utftext += String.fromCharCode((c >> 12) | 224) utftext += String.fromCharCode(((c >> 6) & 63) | 128) utftext += String.fromCharCode((c & 63) | 128) n++ utftext # private method for UTF-8 decoding _utf8_decode: (utftext) -> string = "" i = 0 c = c1 = c2 = 0 while i < utftext.length c = utftext.charCodeAt(i) if c < 128 string += String.fromCharCode(c) i++ else if (c > 191) and (c < 224) c2 = utftext.charCodeAt(i + 1) string += String.fromCharCode(((c & 31) << 6) | (c2 & 63)) i += 2 else c2 = utftext.charCodeAt(i + 1) c3 = utftext.charCodeAt(i + 2) string += String.fromCharCode(((c & 15) << 12) | ((c2 & 63) << 6) | (c3 & 63)) i += 3 string if !window.Conekta window.Conekta = setLanguage: (language)-> _language = language getLanguage: ()-> _language setPublicKey: (key) -> if typeof key == 'string' and key.match(/^[a-zA-Z0-9_]*$/) and key.length >= 20 and key.length < 30 public_key = key localstorageSet('_conekta_publishable_key', public_key) else Conekta._helpers.log('Unusable public key: ' + key) return getPublicKey: (key) -> public_key _helpers: finger_printed: false beacon_sent: false objectKeys:(obj)-> keys = [] for p of obj if Object.prototype.hasOwnProperty.call(obj,p) keys.push(p) return keys parseForm:(form_object)-> json_object = {} if typeof form_object == 'object' if typeof jQuery != 'undefined' and (form_object instanceof jQuery or 'jquery' of Object(form_object)) form_object = form_object.get()[0] #if jquery selector returned nothing if typeof form_object != 'object' return {} if form_object.nodeType textareas = form_object.getElementsByTagName('textarea') inputs = form_object.getElementsByTagName('input') selects = form_object.getElementsByTagName('select') all_inputs = new Array(textareas.length + inputs.length + selects.length) for i in [0..textareas.length-1] by 1 all_inputs[i] = textareas[i] for i in [0..inputs.length-1] by 1 all_inputs[i+textareas.length] = inputs[i] for i in [0..selects.length-1] by 1 all_inputs[i+textareas.length + inputs.length] = selects[i] for input in all_inputs if input attribute_name = input.getAttribute('data-conekta') if attribute_name if input.tagName == 'SELECT' val = input.value else val = input.getAttribute('value') || input.innerHTML || input.value attributes = attribute_name.replace(/\]/g, '').replace(/\-/g,'_').split(/\[/) parent_node = null node = json_object last_attribute = null for attribute in attributes if ! node[attribute] node[attribute] = {} parent_node = node last_attribute = attribute node = node[attribute] parent_node[last_attribute] = val else json_object = form_object json_object getSessionId:()-> session_id xDomainPost:(params)-> success_callback = (data, textStatus, jqXHR)-> if ! data or (data.object == 'error') or ! data.id params.error(data || { object: 'error' type:'api_error' message:"Something went wrong on Conekta's end" message_to_purchaser:"Your code could not be processed, please try again later" }) else params.success(data) error_callback = ()-> params.error({ object: 'error' type:'api_error' message:'Something went wrong, possibly a connectivity issue' message_to_purchaser:"Your code could not be processed, please try again later" }) if document.location.protocol == 'file:' and navigator.userAgent.indexOf("MSIE") != -1 params.url = (params.jsonp_url || params.url) + '/create.js' params.data['_Version'] = "0.3.0" params.data['_RaiseHtmlError'] = false params.data['auth_token'] = Conekta.getPublicKey() params.data['conekta_client_user_agent'] = '{"agent":"Conekta JavascriptBindings/0.3.0"}' conektaAjax( url: base_url + params.url dataType: 'jsonp' data: params.data success: success_callback error: error_callback ) else if typeof (new XMLHttpRequest()).withCredentials != 'undefined' conektaAjax( url: base_url + params.url type: 'POST' dataType: 'json' data: JSON.stringify(params.data) contentType:'application/json' headers: 'RaiseHtmlError': false 'Accept': 'application/vnd.conekta-v0.3.0+json' 'Accept-Language': Conekta.getLanguage() 'Conekta-Client-User-Agent':'{"agent":"Conekta JavascriptBindings/0.3.0"}' 'Authorization':'Basic ' + Base64.encode(Conekta.getPublicKey() + ':') success: success_callback error:error_callback ) else rpc = new easyXDM.Rpc({ swf:"https://conektaapi.s3.amazonaws.com/v0.3.2/flash/easyxdm.swf" remote: base_url + "easyxdm_cors_proxy.html" },{ remote:{ request:{} } }) rpc.request({ url: base_url + params.url method:'POST' headers: 'RaiseHtmlError': false 'Accept': 'application/vnd.conekta-v0.3.0+json' 'Accept-Language': Conekta.getLanguage() 'Conekta-Client-User-Agent':'{"agent":"Conekta JavascriptBindings/0.3.0"}' 'Authorization':'Basic ' + Base64.encode(Conekta.getPublicKey() + ':') data:JSON.stringify(params.data) }, success_callback, error_callback) log: (data)-> if typeof console != 'undefined' and console.log console.log(data) querySelectorAll: (selectors)-> if !document.querySelectorAll style = document.createElement('style') elements = [] document.documentElement.firstChild.appendChild(style) document._qsa = [] if style.styleSheet style.styleSheet.cssText = selectors + '{x-qsa:expression(document._qsa && document._qsa.push(this))}' else style.style.cssText = selectors + '{x-qsa:expression(document._qsa && document._qsa.push(this))}' window.scrollBy(0, 0) style.parentNode.removeChild(style) while document._qsa.length element = document._qsa.shift() element.style.removeAttribute('x-qsa') elements.push(element) document._qsa = null elements else document.querySelectorAll(selectors) querySelector: (selectors)-> if !document.querySelector elements = this.querySelectorAll(selectors) if elements.length > 0 elements[0] else null else document.querySelector(selectors) if Conekta._helpers.querySelectorAll('script[data-conekta-session-id]').length > 0 $tag = Conekta._helpers.querySelectorAll('script[data-conekta-session-id]')[0]; session_id = $tag.getAttribute('data-conekta-session-id') if Conekta._helpers.querySelectorAll('script[data-conekta-public-key]').length > 0 $tag = Conekta._helpers.querySelectorAll('script[data-conekta-public-key]')[0]; window.Conekta.setPublicKey($tag.getAttribute('data-conekta-public-key'));
19885
base_url = 'https://api.conekta.io/' #'https://api.conekta.io/' session_id = "" _language = 'es' kount_merchant_id = '205000' antifraud_config = {} unless window.conektaAjax if typeof jQuery != 'undefined' window.conektaAjax = jQuery.ajax #fallback to jquery else console.error("no either a jQuery or ajax function provided") localstorageGet = (key)-> if typeof localStorage != 'undefined' and typeof localStorage.getItem != 'undefined' try localStorage.setItem('testKey', '1') localStorage.removeItem('testKey') return localStorage.getItem(key) catch error return null else null localstorageSet = (key, value)-> if typeof localStorage != 'undefined' and typeof localStorage.setItem != 'undefined' try localStorage.setItem('testKey', '1') localStorage.removeItem('testKey') return localStorage.setItem(key, value) catch error return null else return null public_key = localstorageGet('_conekta_publishable_key') fingerprint = -> if typeof document != 'undefined' and typeof document.body != 'undefined' and document.body and (document.readyState == 'interactive' or document.readyState == 'complete') and 'undefined' != typeof Conekta if ! Conekta._helpers.finger_printed Conekta._helpers.finger_printed = true #kount body = document.getElementsByTagName('body')[0] #if ! (location.protocol == 'https:' and (navigator.userAgent.match(/MSIE/) or navigator.userAgent.match(/Trident\/7\./))) #fingerprinting png iframe = document.createElement('iframe') iframe.setAttribute("height", "1") iframe.setAttribute("scrolling", "no") iframe.setAttribute("frameborder", "0") iframe.setAttribute("width", "1") iframe.setAttribute("src", "#{base_url}fraud_providers/kount/logo.htm?m=#{kount_merchant_id}&s=#{session_id}") image = document.createElement('img') image.setAttribute("height", "1") image.setAttribute("width", "1") image.setAttribute("src", "#{base_url}fraud_providers/kount/logo.gif?m=#{kount_merchant_id}&s=#{session_id}") try iframe.appendChild(image) catch e #do nothing body.appendChild(iframe) else setTimeout(fingerprint, 150) return send_beacon = -> if typeof document != 'undefined' and typeof document.body != 'undefined' and document.body and (document.readyState == 'interactive' or document.readyState == 'complete') and 'undefined' != typeof Conekta if ! Conekta._helpers.beacon_sent if antifraud_config['riskified'] ls = -> store_domain = antifraud_config['riskified']['domain'] session_id = session_id url = (if 'https:' == document.location.protocol then 'https://' else 'http://') + 'beacon.riskified.com?shop=' + store_domain + '&sid=' + session_id s = document.createElement('script') s.type = 'text/javascript' s.async = true s.src = url x = document.getElementsByTagName('script')[0] x.parentNode.insertBefore s, x return ls() if antifraud_config['siftscience'] _user_id = session_id window._sift = window._sift or [] _sift.push [ "_setAccount" antifraud_config['siftscience']['beacon_key'] ] _sift.push [ "_setSessionId" session_id ] _sift.push ["_trackPageview"] ls = -> e = document.createElement("script") e.type = "text/javascript" e.async = true e.src = (if 'https:' == document.location.protocol then 'https://' else 'http://') + 'cdn.siftscience.com/s.js' s = document.getElementsByTagName("script")[0] s.parentNode.insertBefore e, s return ls() else setTimeout(send_beacon, 150) return if localstorageGet('_conekta_session_id') and localstorageGet('_conekta_session_id_timestamp') and ((new Date).getTime() - 600000) < parseInt(localstorageGet('_conekta_session_id_timestamp')) session_id = localStorage.getItem('_conekta_session_id') fingerprint() else if typeof Shopify != 'undefined' # verify Shopify.getCart is defined if typeof Shopify.getCart == 'undefined' and typeof jQuery != 'undefined' Shopify.getCart = (callback) -> jQuery.getJSON("/cart.js", (cart) -> callback(cart) if "function" == typeof callback ) getCartCallback = (cart)-> session_id = cart['token'] if session_id != null and session_id != '' fingerprint() send_beacon() localstorageSet('_conekta_session_id', session_id) localstorageSet('_conekta_session_id_timestamp', (new Date).getTime().toString()) return #getting cart if typeof Shopify.getCart != 'undefined' Shopify.getCart (cart)-> getCartCallback(cart) return #tapping getCart originalGetCart = Shopify.getCart Shopify.getCart = (callback)-> tapped_callback = (cart)-> getCartCallback(cart) callback(cart) return originalGetCart(tapped_callback) return #tapping onItemAdded originalOnItemAdded = Shopify.onItemAdded Shopify.onItemAdded = (callback)-> tapped_callback = (item)-> Shopify.getCart (cart)-> getCartCallback(cart) return callback(item) return originalOnItemAdded(tapped_callback) return #tapping onCartUpdated originalOnCartUpdated = Shopify.onCartUpdated Shopify.onCartUpdated = (callback)-> tapped_callback = (cart)-> getCartCallback(cart) callback(cart) return originalOnCartUpdated(tapped_callback) return #fire fingerprints whenever an item is added to the cart if typeof jQuery != 'undefined' jQuery(document).ajaxSuccess (event, request, options, data)-> if options['url'] == 'cart/add.js' Shopify.getCart (cart)-> getCartCallback(cart) return return else useable_characters = "abcdefghijklmnopqrstuvwxyz0123456789" if typeof crypto != 'undefined' and typeof crypto.getRandomValues != 'undefined' random_value_array = new Uint32Array(32) crypto.getRandomValues(random_value_array) for i in [0..random_value_array.length-1] session_id += useable_characters.charAt(random_value_array[i] % 36) else for i in [0..30] random_index = Math.floor(Math.random() * 36) session_id += useable_characters.charAt(random_index) localstorageSet('_conekta_session_id', session_id) localstorageSet('_conekta_session_id_timestamp', (new Date).getTime().toString()) fingerprint() getAntifraudConfig = ()-> unparsed_antifraud_config = localstorageGet('conekta_antifraud_config') if unparsed_antifraud_config and unparsed_antifraud_config.match(/^\{/) antifraud_config = JSON.parse(unparsed_antifraud_config) else success_callback = (config)-> antifraud_config = config localstorageSet('conekta_antifraud_config', antifraud_config) send_beacon() error_callback = ()-> #no config, fallback url = "https://d3fxnri0mz3rya.cloudfront.net/antifraud/#{public_key}.js" conektaAjax( url: url dataType: 'jsonp' jsonpCallback: 'conekta_antifraud_config_jsonp' success: success_callback error: error_callback ) getAntifraudConfig() Base64 = # private property _keyStr: "<KEY> # public method for encoding encode: (input) -> output = "" chr1 = undefined chr2 = undefined chr3 = undefined enc1 = undefined enc2 = undefined enc3 = undefined enc4 = undefined i = 0 input = Base64._utf8_encode(input) while i < input.length chr1 = input.charCodeAt(i++) chr2 = input.charCodeAt(i++) chr3 = input.charCodeAt(i++) enc1 = chr1 >> 2 enc2 = ((chr1 & 3) << 4) | (chr2 >> 4) enc3 = ((chr2 & 15) << 2) | (chr3 >> 6) enc4 = chr3 & 63 if isNaN(chr2) enc3 = enc4 = 64 else enc4 = 64 if isNaN(chr3) output = output + Base64._keyStr.charAt(enc1) + Base64._keyStr.charAt(enc2) + Base64._keyStr.charAt(enc3) + Base64._keyStr.charAt(enc4) output # public method for decoding decode: (input) -> output = "" chr1 = undefined chr2 = undefined chr3 = undefined enc1 = undefined enc2 = undefined enc3 = undefined enc4 = undefined i = 0 input = input.replace(/[^A-Za-z0-9\+\/\=]/g, "") while i < input.length enc1 = Base64._keyStr.indexOf(input.charAt(i++)) enc2 = Base64._keyStr.indexOf(input.charAt(i++)) enc3 = Base64._keyStr.indexOf(input.charAt(i++)) enc4 = Base64._keyStr.indexOf(input.charAt(i++)) chr1 = (enc1 << 2) | (enc2 >> 4) chr2 = ((enc2 & 15) << 4) | (enc3 >> 2) chr3 = ((enc3 & 3) << 6) | enc4 output = output + String.fromCharCode(chr1) output = output + String.fromCharCode(chr2) unless enc3 is 64 output = output + String.fromCharCode(chr3) unless enc4 is 64 output = Base64._utf8_decode(output) output # private method for UTF-8 encoding _utf8_encode: (string) -> string = string.replace(/\r\n/g, "\n") utftext = "" n = 0 while n < string.length c = string.charCodeAt(n) if c < 128 utftext += String.fromCharCode(c) else if (c > 127) and (c < 2048) utftext += String.fromCharCode((c >> 6) | 192) utftext += String.fromCharCode((c & 63) | 128) else utftext += String.fromCharCode((c >> 12) | 224) utftext += String.fromCharCode(((c >> 6) & 63) | 128) utftext += String.fromCharCode((c & 63) | 128) n++ utftext # private method for UTF-8 decoding _utf8_decode: (utftext) -> string = "" i = 0 c = c1 = c2 = 0 while i < utftext.length c = utftext.charCodeAt(i) if c < 128 string += String.fromCharCode(c) i++ else if (c > 191) and (c < 224) c2 = utftext.charCodeAt(i + 1) string += String.fromCharCode(((c & 31) << 6) | (c2 & 63)) i += 2 else c2 = utftext.charCodeAt(i + 1) c3 = utftext.charCodeAt(i + 2) string += String.fromCharCode(((c & 15) << 12) | ((c2 & 63) << 6) | (c3 & 63)) i += 3 string if !window.Conekta window.Conekta = setLanguage: (language)-> _language = language getLanguage: ()-> _language setPublicKey: (key) -> if typeof key == 'string' and key.match(/^[<KEY> and key.length >= 20 and key.length < 30 public_key = key localstorageSet('_conekta_publishable_key', public_key) else Conekta._helpers.log('Unusable public key: ' + key) return getPublicKey: (key) -> public_key _helpers: finger_printed: false beacon_sent: false objectKeys:(obj)-> keys = [] for p of obj if Object.prototype.hasOwnProperty.call(obj,p) keys.push(p) return keys parseForm:(form_object)-> json_object = {} if typeof form_object == 'object' if typeof jQuery != 'undefined' and (form_object instanceof jQuery or 'jquery' of Object(form_object)) form_object = form_object.get()[0] #if jquery selector returned nothing if typeof form_object != 'object' return {} if form_object.nodeType textareas = form_object.getElementsByTagName('textarea') inputs = form_object.getElementsByTagName('input') selects = form_object.getElementsByTagName('select') all_inputs = new Array(textareas.length + inputs.length + selects.length) for i in [0..textareas.length-1] by 1 all_inputs[i] = textareas[i] for i in [0..inputs.length-1] by 1 all_inputs[i+textareas.length] = inputs[i] for i in [0..selects.length-1] by 1 all_inputs[i+textareas.length + inputs.length] = selects[i] for input in all_inputs if input attribute_name = input.getAttribute('data-conekta') if attribute_name if input.tagName == 'SELECT' val = input.value else val = input.getAttribute('value') || input.innerHTML || input.value attributes = attribute_name.replace(/\]/g, '').replace(/\-/g,'_').split(/\[/) parent_node = null node = json_object last_attribute = null for attribute in attributes if ! node[attribute] node[attribute] = {} parent_node = node last_attribute = attribute node = node[attribute] parent_node[last_attribute] = val else json_object = form_object json_object getSessionId:()-> session_id xDomainPost:(params)-> success_callback = (data, textStatus, jqXHR)-> if ! data or (data.object == 'error') or ! data.id params.error(data || { object: 'error' type:'api_error' message:"Something went wrong on Conekta's end" message_to_purchaser:"Your code could not be processed, please try again later" }) else params.success(data) error_callback = ()-> params.error({ object: 'error' type:'api_error' message:'Something went wrong, possibly a connectivity issue' message_to_purchaser:"Your code could not be processed, please try again later" }) if document.location.protocol == 'file:' and navigator.userAgent.indexOf("MSIE") != -1 params.url = (params.jsonp_url || params.url) + '/create.js' params.data['_Version'] = "0.3.0" params.data['_RaiseHtmlError'] = false params.data['auth_token'] = Conekta.getPublicKey() params.data['conekta_client_user_agent'] = '{"agent":"Conekta JavascriptBindings/0.3.0"}' conektaAjax( url: base_url + params.url dataType: 'jsonp' data: params.data success: success_callback error: error_callback ) else if typeof (new XMLHttpRequest()).withCredentials != 'undefined' conektaAjax( url: base_url + params.url type: 'POST' dataType: 'json' data: JSON.stringify(params.data) contentType:'application/json' headers: 'RaiseHtmlError': false 'Accept': 'application/vnd.conekta-v0.3.0+json' 'Accept-Language': Conekta.getLanguage() 'Conekta-Client-User-Agent':'{"agent":"Conekta JavascriptBindings/0.3.0"}' 'Authorization':'Basic ' + Base64.encode(Conekta.getPublicKey() + ':') success: success_callback error:error_callback ) else rpc = new easyXDM.Rpc({ swf:"https://conektaapi.s3.amazonaws.com/v0.3.2/flash/easyxdm.swf" remote: base_url + "easyxdm_cors_proxy.html" },{ remote:{ request:{} } }) rpc.request({ url: base_url + params.url method:'POST' headers: 'RaiseHtmlError': false 'Accept': 'application/vnd.conekta-v0.3.0+json' 'Accept-Language': Conekta.getLanguage() 'Conekta-Client-User-Agent':'{"agent":"Conekta JavascriptBindings/0.3.0"}' 'Authorization':'Basic ' + Base64.encode(Conekta.getPublicKey() + ':') data:JSON.stringify(params.data) }, success_callback, error_callback) log: (data)-> if typeof console != 'undefined' and console.log console.log(data) querySelectorAll: (selectors)-> if !document.querySelectorAll style = document.createElement('style') elements = [] document.documentElement.firstChild.appendChild(style) document._qsa = [] if style.styleSheet style.styleSheet.cssText = selectors + '{x-qsa:expression(document._qsa && document._qsa.push(this))}' else style.style.cssText = selectors + '{x-qsa:expression(document._qsa && document._qsa.push(this))}' window.scrollBy(0, 0) style.parentNode.removeChild(style) while document._qsa.length element = document._qsa.shift() element.style.removeAttribute('x-qsa') elements.push(element) document._qsa = null elements else document.querySelectorAll(selectors) querySelector: (selectors)-> if !document.querySelector elements = this.querySelectorAll(selectors) if elements.length > 0 elements[0] else null else document.querySelector(selectors) if Conekta._helpers.querySelectorAll('script[data-conekta-session-id]').length > 0 $tag = Conekta._helpers.querySelectorAll('script[data-conekta-session-id]')[0]; session_id = $tag.getAttribute('data-conekta-session-id') if Conekta._helpers.querySelectorAll('script[data-conekta-public-key]').length > 0 $tag = Conekta._helpers.querySelectorAll('script[data-conekta-public-key]')[0]; window.Conekta.setPublicKey($tag.getAttribute('data-conekta-public-key'));
true
base_url = 'https://api.conekta.io/' #'https://api.conekta.io/' session_id = "" _language = 'es' kount_merchant_id = '205000' antifraud_config = {} unless window.conektaAjax if typeof jQuery != 'undefined' window.conektaAjax = jQuery.ajax #fallback to jquery else console.error("no either a jQuery or ajax function provided") localstorageGet = (key)-> if typeof localStorage != 'undefined' and typeof localStorage.getItem != 'undefined' try localStorage.setItem('testKey', '1') localStorage.removeItem('testKey') return localStorage.getItem(key) catch error return null else null localstorageSet = (key, value)-> if typeof localStorage != 'undefined' and typeof localStorage.setItem != 'undefined' try localStorage.setItem('testKey', '1') localStorage.removeItem('testKey') return localStorage.setItem(key, value) catch error return null else return null public_key = localstorageGet('_conekta_publishable_key') fingerprint = -> if typeof document != 'undefined' and typeof document.body != 'undefined' and document.body and (document.readyState == 'interactive' or document.readyState == 'complete') and 'undefined' != typeof Conekta if ! Conekta._helpers.finger_printed Conekta._helpers.finger_printed = true #kount body = document.getElementsByTagName('body')[0] #if ! (location.protocol == 'https:' and (navigator.userAgent.match(/MSIE/) or navigator.userAgent.match(/Trident\/7\./))) #fingerprinting png iframe = document.createElement('iframe') iframe.setAttribute("height", "1") iframe.setAttribute("scrolling", "no") iframe.setAttribute("frameborder", "0") iframe.setAttribute("width", "1") iframe.setAttribute("src", "#{base_url}fraud_providers/kount/logo.htm?m=#{kount_merchant_id}&s=#{session_id}") image = document.createElement('img') image.setAttribute("height", "1") image.setAttribute("width", "1") image.setAttribute("src", "#{base_url}fraud_providers/kount/logo.gif?m=#{kount_merchant_id}&s=#{session_id}") try iframe.appendChild(image) catch e #do nothing body.appendChild(iframe) else setTimeout(fingerprint, 150) return send_beacon = -> if typeof document != 'undefined' and typeof document.body != 'undefined' and document.body and (document.readyState == 'interactive' or document.readyState == 'complete') and 'undefined' != typeof Conekta if ! Conekta._helpers.beacon_sent if antifraud_config['riskified'] ls = -> store_domain = antifraud_config['riskified']['domain'] session_id = session_id url = (if 'https:' == document.location.protocol then 'https://' else 'http://') + 'beacon.riskified.com?shop=' + store_domain + '&sid=' + session_id s = document.createElement('script') s.type = 'text/javascript' s.async = true s.src = url x = document.getElementsByTagName('script')[0] x.parentNode.insertBefore s, x return ls() if antifraud_config['siftscience'] _user_id = session_id window._sift = window._sift or [] _sift.push [ "_setAccount" antifraud_config['siftscience']['beacon_key'] ] _sift.push [ "_setSessionId" session_id ] _sift.push ["_trackPageview"] ls = -> e = document.createElement("script") e.type = "text/javascript" e.async = true e.src = (if 'https:' == document.location.protocol then 'https://' else 'http://') + 'cdn.siftscience.com/s.js' s = document.getElementsByTagName("script")[0] s.parentNode.insertBefore e, s return ls() else setTimeout(send_beacon, 150) return if localstorageGet('_conekta_session_id') and localstorageGet('_conekta_session_id_timestamp') and ((new Date).getTime() - 600000) < parseInt(localstorageGet('_conekta_session_id_timestamp')) session_id = localStorage.getItem('_conekta_session_id') fingerprint() else if typeof Shopify != 'undefined' # verify Shopify.getCart is defined if typeof Shopify.getCart == 'undefined' and typeof jQuery != 'undefined' Shopify.getCart = (callback) -> jQuery.getJSON("/cart.js", (cart) -> callback(cart) if "function" == typeof callback ) getCartCallback = (cart)-> session_id = cart['token'] if session_id != null and session_id != '' fingerprint() send_beacon() localstorageSet('_conekta_session_id', session_id) localstorageSet('_conekta_session_id_timestamp', (new Date).getTime().toString()) return #getting cart if typeof Shopify.getCart != 'undefined' Shopify.getCart (cart)-> getCartCallback(cart) return #tapping getCart originalGetCart = Shopify.getCart Shopify.getCart = (callback)-> tapped_callback = (cart)-> getCartCallback(cart) callback(cart) return originalGetCart(tapped_callback) return #tapping onItemAdded originalOnItemAdded = Shopify.onItemAdded Shopify.onItemAdded = (callback)-> tapped_callback = (item)-> Shopify.getCart (cart)-> getCartCallback(cart) return callback(item) return originalOnItemAdded(tapped_callback) return #tapping onCartUpdated originalOnCartUpdated = Shopify.onCartUpdated Shopify.onCartUpdated = (callback)-> tapped_callback = (cart)-> getCartCallback(cart) callback(cart) return originalOnCartUpdated(tapped_callback) return #fire fingerprints whenever an item is added to the cart if typeof jQuery != 'undefined' jQuery(document).ajaxSuccess (event, request, options, data)-> if options['url'] == 'cart/add.js' Shopify.getCart (cart)-> getCartCallback(cart) return return else useable_characters = "abcdefghijklmnopqrstuvwxyz0123456789" if typeof crypto != 'undefined' and typeof crypto.getRandomValues != 'undefined' random_value_array = new Uint32Array(32) crypto.getRandomValues(random_value_array) for i in [0..random_value_array.length-1] session_id += useable_characters.charAt(random_value_array[i] % 36) else for i in [0..30] random_index = Math.floor(Math.random() * 36) session_id += useable_characters.charAt(random_index) localstorageSet('_conekta_session_id', session_id) localstorageSet('_conekta_session_id_timestamp', (new Date).getTime().toString()) fingerprint() getAntifraudConfig = ()-> unparsed_antifraud_config = localstorageGet('conekta_antifraud_config') if unparsed_antifraud_config and unparsed_antifraud_config.match(/^\{/) antifraud_config = JSON.parse(unparsed_antifraud_config) else success_callback = (config)-> antifraud_config = config localstorageSet('conekta_antifraud_config', antifraud_config) send_beacon() error_callback = ()-> #no config, fallback url = "https://d3fxnri0mz3rya.cloudfront.net/antifraud/#{public_key}.js" conektaAjax( url: url dataType: 'jsonp' jsonpCallback: 'conekta_antifraud_config_jsonp' success: success_callback error: error_callback ) getAntifraudConfig() Base64 = # private property _keyStr: "PI:KEY:<KEY>END_PI # public method for encoding encode: (input) -> output = "" chr1 = undefined chr2 = undefined chr3 = undefined enc1 = undefined enc2 = undefined enc3 = undefined enc4 = undefined i = 0 input = Base64._utf8_encode(input) while i < input.length chr1 = input.charCodeAt(i++) chr2 = input.charCodeAt(i++) chr3 = input.charCodeAt(i++) enc1 = chr1 >> 2 enc2 = ((chr1 & 3) << 4) | (chr2 >> 4) enc3 = ((chr2 & 15) << 2) | (chr3 >> 6) enc4 = chr3 & 63 if isNaN(chr2) enc3 = enc4 = 64 else enc4 = 64 if isNaN(chr3) output = output + Base64._keyStr.charAt(enc1) + Base64._keyStr.charAt(enc2) + Base64._keyStr.charAt(enc3) + Base64._keyStr.charAt(enc4) output # public method for decoding decode: (input) -> output = "" chr1 = undefined chr2 = undefined chr3 = undefined enc1 = undefined enc2 = undefined enc3 = undefined enc4 = undefined i = 0 input = input.replace(/[^A-Za-z0-9\+\/\=]/g, "") while i < input.length enc1 = Base64._keyStr.indexOf(input.charAt(i++)) enc2 = Base64._keyStr.indexOf(input.charAt(i++)) enc3 = Base64._keyStr.indexOf(input.charAt(i++)) enc4 = Base64._keyStr.indexOf(input.charAt(i++)) chr1 = (enc1 << 2) | (enc2 >> 4) chr2 = ((enc2 & 15) << 4) | (enc3 >> 2) chr3 = ((enc3 & 3) << 6) | enc4 output = output + String.fromCharCode(chr1) output = output + String.fromCharCode(chr2) unless enc3 is 64 output = output + String.fromCharCode(chr3) unless enc4 is 64 output = Base64._utf8_decode(output) output # private method for UTF-8 encoding _utf8_encode: (string) -> string = string.replace(/\r\n/g, "\n") utftext = "" n = 0 while n < string.length c = string.charCodeAt(n) if c < 128 utftext += String.fromCharCode(c) else if (c > 127) and (c < 2048) utftext += String.fromCharCode((c >> 6) | 192) utftext += String.fromCharCode((c & 63) | 128) else utftext += String.fromCharCode((c >> 12) | 224) utftext += String.fromCharCode(((c >> 6) & 63) | 128) utftext += String.fromCharCode((c & 63) | 128) n++ utftext # private method for UTF-8 decoding _utf8_decode: (utftext) -> string = "" i = 0 c = c1 = c2 = 0 while i < utftext.length c = utftext.charCodeAt(i) if c < 128 string += String.fromCharCode(c) i++ else if (c > 191) and (c < 224) c2 = utftext.charCodeAt(i + 1) string += String.fromCharCode(((c & 31) << 6) | (c2 & 63)) i += 2 else c2 = utftext.charCodeAt(i + 1) c3 = utftext.charCodeAt(i + 2) string += String.fromCharCode(((c & 15) << 12) | ((c2 & 63) << 6) | (c3 & 63)) i += 3 string if !window.Conekta window.Conekta = setLanguage: (language)-> _language = language getLanguage: ()-> _language setPublicKey: (key) -> if typeof key == 'string' and key.match(/^[PI:KEY:<KEY>END_PI and key.length >= 20 and key.length < 30 public_key = key localstorageSet('_conekta_publishable_key', public_key) else Conekta._helpers.log('Unusable public key: ' + key) return getPublicKey: (key) -> public_key _helpers: finger_printed: false beacon_sent: false objectKeys:(obj)-> keys = [] for p of obj if Object.prototype.hasOwnProperty.call(obj,p) keys.push(p) return keys parseForm:(form_object)-> json_object = {} if typeof form_object == 'object' if typeof jQuery != 'undefined' and (form_object instanceof jQuery or 'jquery' of Object(form_object)) form_object = form_object.get()[0] #if jquery selector returned nothing if typeof form_object != 'object' return {} if form_object.nodeType textareas = form_object.getElementsByTagName('textarea') inputs = form_object.getElementsByTagName('input') selects = form_object.getElementsByTagName('select') all_inputs = new Array(textareas.length + inputs.length + selects.length) for i in [0..textareas.length-1] by 1 all_inputs[i] = textareas[i] for i in [0..inputs.length-1] by 1 all_inputs[i+textareas.length] = inputs[i] for i in [0..selects.length-1] by 1 all_inputs[i+textareas.length + inputs.length] = selects[i] for input in all_inputs if input attribute_name = input.getAttribute('data-conekta') if attribute_name if input.tagName == 'SELECT' val = input.value else val = input.getAttribute('value') || input.innerHTML || input.value attributes = attribute_name.replace(/\]/g, '').replace(/\-/g,'_').split(/\[/) parent_node = null node = json_object last_attribute = null for attribute in attributes if ! node[attribute] node[attribute] = {} parent_node = node last_attribute = attribute node = node[attribute] parent_node[last_attribute] = val else json_object = form_object json_object getSessionId:()-> session_id xDomainPost:(params)-> success_callback = (data, textStatus, jqXHR)-> if ! data or (data.object == 'error') or ! data.id params.error(data || { object: 'error' type:'api_error' message:"Something went wrong on Conekta's end" message_to_purchaser:"Your code could not be processed, please try again later" }) else params.success(data) error_callback = ()-> params.error({ object: 'error' type:'api_error' message:'Something went wrong, possibly a connectivity issue' message_to_purchaser:"Your code could not be processed, please try again later" }) if document.location.protocol == 'file:' and navigator.userAgent.indexOf("MSIE") != -1 params.url = (params.jsonp_url || params.url) + '/create.js' params.data['_Version'] = "0.3.0" params.data['_RaiseHtmlError'] = false params.data['auth_token'] = Conekta.getPublicKey() params.data['conekta_client_user_agent'] = '{"agent":"Conekta JavascriptBindings/0.3.0"}' conektaAjax( url: base_url + params.url dataType: 'jsonp' data: params.data success: success_callback error: error_callback ) else if typeof (new XMLHttpRequest()).withCredentials != 'undefined' conektaAjax( url: base_url + params.url type: 'POST' dataType: 'json' data: JSON.stringify(params.data) contentType:'application/json' headers: 'RaiseHtmlError': false 'Accept': 'application/vnd.conekta-v0.3.0+json' 'Accept-Language': Conekta.getLanguage() 'Conekta-Client-User-Agent':'{"agent":"Conekta JavascriptBindings/0.3.0"}' 'Authorization':'Basic ' + Base64.encode(Conekta.getPublicKey() + ':') success: success_callback error:error_callback ) else rpc = new easyXDM.Rpc({ swf:"https://conektaapi.s3.amazonaws.com/v0.3.2/flash/easyxdm.swf" remote: base_url + "easyxdm_cors_proxy.html" },{ remote:{ request:{} } }) rpc.request({ url: base_url + params.url method:'POST' headers: 'RaiseHtmlError': false 'Accept': 'application/vnd.conekta-v0.3.0+json' 'Accept-Language': Conekta.getLanguage() 'Conekta-Client-User-Agent':'{"agent":"Conekta JavascriptBindings/0.3.0"}' 'Authorization':'Basic ' + Base64.encode(Conekta.getPublicKey() + ':') data:JSON.stringify(params.data) }, success_callback, error_callback) log: (data)-> if typeof console != 'undefined' and console.log console.log(data) querySelectorAll: (selectors)-> if !document.querySelectorAll style = document.createElement('style') elements = [] document.documentElement.firstChild.appendChild(style) document._qsa = [] if style.styleSheet style.styleSheet.cssText = selectors + '{x-qsa:expression(document._qsa && document._qsa.push(this))}' else style.style.cssText = selectors + '{x-qsa:expression(document._qsa && document._qsa.push(this))}' window.scrollBy(0, 0) style.parentNode.removeChild(style) while document._qsa.length element = document._qsa.shift() element.style.removeAttribute('x-qsa') elements.push(element) document._qsa = null elements else document.querySelectorAll(selectors) querySelector: (selectors)-> if !document.querySelector elements = this.querySelectorAll(selectors) if elements.length > 0 elements[0] else null else document.querySelector(selectors) if Conekta._helpers.querySelectorAll('script[data-conekta-session-id]').length > 0 $tag = Conekta._helpers.querySelectorAll('script[data-conekta-session-id]')[0]; session_id = $tag.getAttribute('data-conekta-session-id') if Conekta._helpers.querySelectorAll('script[data-conekta-public-key]').length > 0 $tag = Conekta._helpers.querySelectorAll('script[data-conekta-public-key]')[0]; window.Conekta.setPublicKey($tag.getAttribute('data-conekta-public-key'));