Search is not available for this dataset
query
stringlengths
7
355k
document
stringlengths
9
341k
metadata
dict
negatives
listlengths
0
101
negative_scores
listlengths
0
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Replace an existing control.
setControl(name, control) { if (this.controls[name]) this.controls[name]._registerOnCollectionChange(() => { }); delete (this.controls[name]); if (control) this.registerControl(name, control); this.updateValueAndValidity(); this._onCollectionChange(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "setControl(index, control) {\n if (this.controls[index])\n this.controls[index]._registerOnCollectionChange(() => { });\n this.controls.splice(index, 1);\n if (control) {\n this.controls.splice(index, 0, control);\n this._registerControl(control);\n }\n ...
[ "0.58886623", "0.58886623", "0.58886623", "0.58886623", "0.58886623", "0.58886623", "0.58886623", "0.5766109", "0.5665157", "0.5665157", "0.5665157", "0.5665157", "0.5665157", "0.5665157", "0.5665157", "0.5386565", "0.53734714", "0.53724164", "0.5335248", "0.5331158", "0.5315...
0.53299147
25
The aggregate value of the `FormGroup`, including any disabled controls. Retrieves all values regardless of disabled status. The `value` property is the best way to get the value of the group, because it excludes disabled controls in the `FormGroup`.
getRawValue() { return this._reduceChildren({}, (acc, control, name) => { acc[name] = control instanceof FormControl ? control.value : control.getRawValue(); return acc; }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "getRawValue() {\n return this.controls.map((control) => {\n return control instanceof FormControl ? control.value : control.getRawValue();\n });\n }", "getRawValue() {\n return this.controls.map((control) => {\n return control instanceof FormControl ? control.value :...
[ "0.67265517", "0.67265517", "0.67265517", "0.67265517", "0.67265517", "0.67265517", "0.67265517", "0.66816765", "0.62090325", "0.5972166", "0.58570373", "0.5847829", "0.581653", "0.5797844", "0.5734819", "0.570647", "0.570647", "0.570647", "0.569395", "0.566719", "0.56136286"...
0.6836988
6
Creates a new `FormArray` instance.
constructor(controls, validatorOrOpts, asyncValidator) { super(pickValidators(validatorOrOpts), pickAsyncValidators(asyncValidator, validatorOrOpts)); this.controls = controls; this._initObservables(); this._setUpdateStrategy(validatorOrOpts); this._setUpControls(); this....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "array(controlsConfig, validatorOrOpts, asyncValidator) {\n const controls = controlsConfig.map(c => this._createControl(c));\n return new FormArray(controls, validatorOrOpts, asyncValidator);\n }", "array(controlsConfig, validatorOrOpts, asyncValidator) {\n const controls = controlsConfig.map(c => ...
[ "0.6812677", "0.6641679", "0.6641679", "0.6641679", "0.6641679", "0.6641679", "0.6641679", "0.6641679", "0.6256327", "0.6122363", "0.61093664", "0.61093664", "0.61093664", "0.61093664", "0.6093982", "0.586185", "0.586185", "0.586185", "0.57426685", "0.5696426", "0.5696426", ...
0.0
-1
Get the `AbstractControl` at the given `index` in the array.
at(index) { return this.controls[index]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "at(index) {\n return this.controls[index];\n }", "get(index) {\n return this._array[this._getCyclicIndex(index)];\n }", "getComponent(index)\n {\n return this.component_list[index];\n }", "get(index) {\n return this.array[index];\n }", "get(index) {\n ...
[ "0.76274776", "0.60112125", "0.5910564", "0.58989346", "0.58989346", "0.58989346", "0.57608414", "0.5703052", "0.56869453", "0.568515", "0.56469685", "0.55867064", "0.5585679", "0.55779856", "0.5541656", "0.5541206", "0.54650176", "0.5424466", "0.5381908", "0.5367814", "0.535...
0.7710009
6
Insert a new `AbstractControl` at the end of the array.
push(control) { this.controls.push(control); this._registerControl(control); this.updateValueAndValidity(); this._onCollectionChange(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "insert(index, control, options = {}) {\n this.controls.splice(index, 0, control);\n\n this._registerControl(control);\n\n this.updateValueAndValidity({\n emitEvent: options.emitEvent\n });\n }", "insert(index, control) {\n this.controls.splice(index, 0, control);\n this._registerC...
[ "0.6285048", "0.62394476", "0.62394476", "0.62394476", "0.62394476", "0.62394476", "0.62394476", "0.62394476", "0.5987528", "0.5941698", "0.5608804", "0.5527233", "0.5432126", "0.5290772", "0.5252187", "0.5244386", "0.517851", "0.51702315", "0.51424515", "0.51424515", "0.5142...
0.6176023
14
Insert a new `AbstractControl` at the given `index` in the array.
insert(index, control) { this.controls.splice(index, 0, control); this._registerControl(control); this.updateValueAndValidity(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "insert(index, control, options = {}) {\n this.controls.splice(index, 0, control);\n\n this._registerControl(control);\n\n this.updateValueAndValidity({\n emitEvent: options.emitEvent\n });\n }", "function insertControlAt(targetControl, index, newControl, insertBefore) {\n\n if (!...
[ "0.75168085", "0.7492884", "0.6455659", "0.6448035", "0.64356", "0.6389367", "0.63495207", "0.6084039", "0.6076671", "0.60279953", "0.599705", "0.59934366", "0.59934366", "0.59840494", "0.59749675", "0.59749675", "0.59749675", "0.59749675", "0.59749675", "0.59749675", "0.5974...
0.7702066
5
Remove the control at the given `index` in the array.
removeAt(index) { if (this.controls[index]) this.controls[index]._registerOnCollectionChange(() => { }); this.controls.splice(index, 1); this.updateValueAndValidity(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "removeAt(index, options = {}) {\n if (this.controls[index]) this.controls[index]._registerOnCollectionChange(() => {});\n this.controls.splice(index, 1);\n this.updateValueAndValidity({\n emitEvent: options.emitEvent\n });\n }", "remove(index) {\n // If the index argument is out of bounds\n ...
[ "0.7461694", "0.743977", "0.7398513", "0.7339972", "0.728129", "0.72720486", "0.7161045", "0.7161045", "0.7111973", "0.7100153", "0.7100153", "0.7100153", "0.7100153", "0.70819074", "0.7057127", "0.70252895", "0.69992137", "0.6997549", "0.69903743", "0.6979768", "0.6970871", ...
0.7810461
5
Replace an existing control.
setControl(index, control) { if (this.controls[index]) this.controls[index]._registerOnCollectionChange(() => { }); this.controls.splice(index, 1); if (control) { this.controls.splice(index, 0, control); this._registerControl(control); } this.u...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "setControl(index, control, options = {}) {\n if (this.controls[index]) this.controls[index]._registerOnCollectionChange(() => {});\n this.controls.splice(index, 1);\n\n if (control) {\n this.controls.splice(index, 0, control);\n\n this._registerControl(control);\n }\n\n this.updateValueAnd...
[ "0.5766109", "0.5665157", "0.5665157", "0.5665157", "0.5665157", "0.5665157", "0.5665157", "0.5665157", "0.5386565", "0.53734714", "0.53724164", "0.5335248", "0.5331158", "0.53299147", "0.53299147", "0.53299147", "0.53299147", "0.53299147", "0.53299147", "0.53299147", "0.5315...
0.58886623
5
Length of the control array.
get length() { return this.controls.length; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get size() {\n return this._array.length\n }", "length(arr) {\n return arr.length;\n }", "get length() {\n return this.controls.length;\n }", "get arraySize() {}", "length() {\n const arrayLen = this.array.length;\n debug(`\\nLOG: There are total ${arrayLen} data in the array`...
[ "0.7518254", "0.7469096", "0.7348539", "0.7271587", "0.71945643", "0.7155339", "0.7111077", "0.70519185", "0.70391566", "0.68869966", "0.68785644", "0.6812921", "0.6812921", "0.68069965", "0.6789008", "0.6739611", "0.67362416", "0.6720894", "0.6705673", "0.6677417", "0.664836...
0.76781034
5
The aggregate value of the array, including any disabled controls. Reports all values regardless of disabled status. For enabled controls only, the `value` property is the best way to get the value of the array.
getRawValue() { return this.controls.map((control) => { return control instanceof FormControl ? control.value : control.getRawValue(); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "getValues() {\n return _.mapObject(this.controls, (c) => c.getValue())\n }", "get values() {\n return this._array;\n }", "getRawValue() {\n return this.controls.map(control => getRawValue(control));\n }", "getValues() {\n return this._currentValue;\n }", "getValues() {\n re...
[ "0.63743025", "0.6283017", "0.6110502", "0.60304296", "0.60304296", "0.6029184", "0.59270555", "0.5888605", "0.58788896", "0.58788896", "0.58340615", "0.58340615", "0.58340615", "0.58340615", "0.58340615", "0.58340615", "0.58340615", "0.57833177", "0.57705194", "0.57577187", ...
0.5932618
11
Sets the new value for the provided `NgControl` directive.
updateModel(dir, value) { resolvedPromise.then(() => { const ctrl = this.form.get(dir.path); ctrl.setValue(value); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "updateValue(value) {\n if (this.control) {\n this.control.control.setValue(value);\n }\n else {\n this.target.value = value;\n }\n }", "function setUpControl(control, dir) {\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n if (!control)\n ...
[ "0.6431544", "0.6403229", "0.6403229", "0.6403229", "0.6400517", "0.63183767", "0.6022863", "0.6009398", "0.6009398", "0.6009398", "0.6009398", "0.6009398", "0.6009398", "0.6009398", "0.5990759", "0.57397133", "0.55911756", "0.55495954", "0.55495954", "0.55495954", "0.5549595...
0.0
-1
Sets the "value" property on the input element.
writeValue(value) { // The value needs to be normalized for IE9, otherwise it is set to 'null' when null const normalizedValue = value == null ? '' : value; this._renderer.setProperty(this._elementRef.nativeElement, 'value', normalizedValue); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "setInputValue(value) {\n\t\tthis._input.value = value;\n\t}", "set value(v) {\n this.input.value = v;\n }", "set value(val) {\n const input = this.refs.myInput\n input.value = val\n }", "onInputValueChange() {\n assert && assert( this.node.inputValue !== undefined, 'use null to remove inp...
[ "0.85334474", "0.79136664", "0.7669701", "0.76387334", "0.7491071", "0.73858094", "0.7347845", "0.7329416", "0.7323993", "0.7294445", "0.72812396", "0.719129", "0.71903926", "0.7163326", "0.713537", "0.71200943", "0.70611614", "0.7024088", "0.69571", "0.69555134", "0.6943684"...
0.64326674
73
Registers a function called when the control value changes.
registerOnChange(fn) { this.onChange = (value) => { fn(value == '' ? null : parseFloat(value)); }; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "setOnValueChangeEvent(func){\r\n this._onValueChange = func;\r\n }", "registerOnChange(fn) {\n this._controlValueAccessorChangeFn = fn;\n }", "registerOnChange(fn) {\n this._controlValueAccessorChangeFn = fn;\n }", "registerOnChange(fn) {\n this.controlValueAccessorChangeFn = f...
[ "0.78405017", "0.76935136", "0.76935136", "0.76354617", "0.7352922", "0.7352922", "0.7215024", "0.7215024", "0.7215024", "0.7215024", "0.7215024", "0.7215024", "0.7215024", "0.7215024", "0.7215024", "0.7215024", "0.7215024", "0.7215024", "0.7215024", "0.71557236", "0.7149438"...
0.0
-1
Registers a function called when the control is touched.
registerOnTouched(fn) { this.onTouched = fn; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "registerOnTouched(fn) {\n this._onTouch = fn;\n }", "registerOnTouched(fn) {\n this._onTouch = fn;\n }", "registerOnTouched(fn) {\n this._onTouch = fn;\n }", "registerOnTouched(fn) {\n this._onTouch = fn;\n }", "registerOnTouched(fn) {\n this._onTouch = fn;\n ...
[ "0.7175659", "0.7175659", "0.7175659", "0.7175659", "0.7175659", "0.7175659", "0.69502825", "0.69502825", "0.69502825", "0.69502825", "0.69502825", "0.69502825", "0.69502825", "0.69502825", "0.69502825", "0.69502825", "0.6828925", "0.6828925", "0.6828925", "0.6828925", "0.666...
0.67502266
66
Sets the "disabled" property on the input element.
setDisabledState(isDisabled) { this._renderer.setProperty(this._elementRef.nativeElement, 'disabled', isDisabled); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function disableInput() {\n inputField.attr('disabled', 'disabled');\n}", "disable() {\n var self = this;\n self.input.disabled = true;\n self.control_input.disabled = true;\n self.control_input.tabIndex = -1;\n self.isDisabled = true;\n self.lock();\n }", "function enableInput() {\n input...
[ "0.79799587", "0.79230005", "0.77597666", "0.7724013", "0.7691288", "0.74284536", "0.7338008", "0.7287742", "0.723145", "0.7161405", "0.7161405", "0.7161405", "0.7158093", "0.71114504", "0.71114504", "0.71114504", "0.70673984", "0.7067156", "0.70670813", "0.703813", "0.703813...
0.0
-1
Sets the "checked" property value on the radio input element.
writeValue(value) { this._state = value === this.value; this._renderer.setProperty(this._elementRef.nativeElement, 'checked', this._state); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "set checked(isChecked) {\n var _a, _b;\n const oldValue = this._checked;\n if (isChecked === oldValue) {\n return;\n }\n this._checked = isChecked;\n if (this.formElement) {\n this.formElement.checked = isChecked;\n }\n (_a = this._selec...
[ "0.7566222", "0.7454879", "0.7188102", "0.70900637", "0.69798964", "0.69695276", "0.6969267", "0.69459087", "0.6791683", "0.66039616", "0.65934587", "0.65434617", "0.6466607", "0.6274555", "0.6274555", "0.6274555", "0.6274555", "0.6274555", "0.6274555", "0.6274555", "0.626808...
0.5973413
40
Registers a function called when the control value changes.
registerOnChange(fn) { this._fn = fn; this.onChange = () => { fn(this.value); this._registry.select(this); }; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "setOnValueChangeEvent(func){\r\n this._onValueChange = func;\r\n }", "registerOnChange(fn) {\n this._controlValueAccessorChangeFn = fn;\n }", "registerOnChange(fn) {\n this._controlValueAccessorChangeFn = fn;\n }", "registerOnChange(fn) {\n this.controlValueAccessorChangeFn = f...
[ "0.78405017", "0.76935136", "0.76935136", "0.76354617", "0.7352922", "0.7352922", "0.7215024", "0.7215024", "0.7215024", "0.7215024", "0.7215024", "0.7215024", "0.7215024", "0.7215024", "0.7215024", "0.7215024", "0.7215024", "0.7215024", "0.7215024", "0.71557236", "0.7149438"...
0.70348215
43
Sets the "value" on the radio input element and unchecks it.
fireUncheck(value) { this.writeValue(value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "setValue() {\n\t\tif (this.node.hasAttribute('type') && this.type == 'radio')\n\t\t{\n\t\t\t// radio\n\t\t\tthis.node.checked = this.node.value == this.resolver.resolved ? true : false;\n\t\t\tif (this.node.value == this.resolver.resolved) this.node.setAttribute('checked', '');\n\t\t\telse this.node.removeAttribut...
[ "0.723973", "0.71414316", "0.68701154", "0.6672519", "0.66138417", "0.65357405", "0.63456714", "0.619318", "0.6184044", "0.61662376", "0.6131146", "0.6094331", "0.6080856", "0.6074676", "0.60627514", "0.60627514", "0.60627514", "0.60627514", "0.60627514", "0.60627514", "0.606...
0.5973835
36
Registers a function called when the control is touched.
registerOnTouched(fn) { this.onTouched = fn; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "registerOnTouched(fn) {\n this._onTouch = fn;\n }", "registerOnTouched(fn) {\n this._onTouch = fn;\n }", "registerOnTouched(fn) {\n this._onTouch = fn;\n }", "registerOnTouched(fn) {\n this._onTouch = fn;\n }", "registerOnTouched(fn) {\n this._onTouch = fn;\n ...
[ "0.7175659", "0.7175659", "0.7175659", "0.7175659", "0.7175659", "0.7175659", "0.69502825", "0.69502825", "0.69502825", "0.69502825", "0.69502825", "0.69502825", "0.69502825", "0.69502825", "0.69502825", "0.69502825", "0.6828925", "0.6828925", "0.6828925", "0.6828925", "0.666...
0.67502266
68
Sets the "disabled" property on the input element.
setDisabledState(isDisabled) { this._renderer.setProperty(this._elementRef.nativeElement, 'disabled', isDisabled); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function disableInput() {\n inputField.attr('disabled', 'disabled');\n}", "disable() {\n var self = this;\n self.input.disabled = true;\n self.control_input.disabled = true;\n self.control_input.tabIndex = -1;\n self.isDisabled = true;\n self.lock();\n }", "function enableInput() {\n input...
[ "0.79799587", "0.79230005", "0.77597666", "0.7724013", "0.7691288", "0.74284536", "0.7338008", "0.7287742", "0.723145", "0.7161405", "0.7161405", "0.7161405", "0.7158093", "0.71114504", "0.71114504", "0.71114504", "0.70673984", "0.7067156", "0.70670813", "0.703813", "0.703813...
0.0
-1
Sets the "value" property on the input element.
writeValue(value) { this._renderer.setProperty(this._elementRef.nativeElement, 'value', parseFloat(value)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "setInputValue(value) {\n\t\tthis._input.value = value;\n\t}", "set value(v) {\n this.input.value = v;\n }", "set value(val) {\n const input = this.refs.myInput\n input.value = val\n }", "onInputValueChange() {\n assert && assert( this.node.inputValue !== undefined, 'use null to remove inp...
[ "0.85334474", "0.79136664", "0.7669701", "0.76387334", "0.7491071", "0.73858094", "0.7347845", "0.7329416", "0.7323993", "0.7294445", "0.72812396", "0.719129", "0.71903926", "0.7163326", "0.713537", "0.71200943", "0.70611614", "0.7024088", "0.69571", "0.69555134", "0.6943684"...
0.0
-1
Registers a function called when the control value changes.
registerOnChange(fn) { this.onChange = (value) => { fn(value == '' ? null : parseFloat(value)); }; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "setOnValueChangeEvent(func){\r\n this._onValueChange = func;\r\n }", "registerOnChange(fn) {\n this._controlValueAccessorChangeFn = fn;\n }", "registerOnChange(fn) {\n this._controlValueAccessorChangeFn = fn;\n }", "registerOnChange(fn) {\n this.controlValueAccessorChangeFn = f...
[ "0.78405017", "0.76935136", "0.76935136", "0.76354617", "0.7352922", "0.7352922", "0.7215024", "0.7215024", "0.7215024", "0.7215024", "0.7215024", "0.7215024", "0.7215024", "0.7215024", "0.7215024", "0.7215024", "0.7215024", "0.7215024", "0.7215024", "0.71557236", "0.7149438"...
0.0
-1
Registers a function called when the control is touched.
registerOnTouched(fn) { this.onTouched = fn; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "registerOnTouched(fn) {\n this._onTouch = fn;\n }", "registerOnTouched(fn) {\n this._onTouch = fn;\n }", "registerOnTouched(fn) {\n this._onTouch = fn;\n }", "registerOnTouched(fn) {\n this._onTouch = fn;\n }", "registerOnTouched(fn) {\n this._onTouch = fn;\n ...
[ "0.7175659", "0.7175659", "0.7175659", "0.7175659", "0.7175659", "0.7175659", "0.69502825", "0.69502825", "0.69502825", "0.69502825", "0.69502825", "0.69502825", "0.69502825", "0.69502825", "0.69502825", "0.69502825", "0.6828925", "0.6828925", "0.6828925", "0.6828925", "0.666...
0.67502266
69
Sets the "disabled" property on the range input element.
setDisabledState(isDisabled) { this._renderer.setProperty(this._elementRef.nativeElement, 'disabled', isDisabled); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "disable() {\n var self = this;\n self.input.disabled = true;\n self.control_input.disabled = true;\n self.control_input.tabIndex = -1;\n self.isDisabled = true;\n self.lock();\n }", "function disableInput() {\n inputField.attr('disabled', 'disabled');\n}", "disable() {\n this.enabled_ = ...
[ "0.693727", "0.6806456", "0.6697722", "0.6645072", "0.6612535", "0.6606387", "0.6606387", "0.6606387", "0.65859115", "0.6577327", "0.6527254", "0.65196186", "0.65013", "0.6454163", "0.6454163", "0.6454163", "0.6386189", "0.6386189", "0.6386189", "0.6386189", "0.6378515", "0...
0.0
-1
Adds a new `FormGroupName` directive instance to the form.
addFormGroup(dir) { this._setUpFormContainer(dir); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "addFormGroup(dir) {\n this._setUpFormContainer(dir);\n }", "addFormGroup(dir) {\n const ctrl = this.form.get(dir.path);\n setUpFormContainer(ctrl, dir);\n ctrl.updateValueAndValidity({ emitEvent: false });\n }", "addFormGroup(dir) {\n const ctrl = this.form.get(dir.path);\n ...
[ "0.565704", "0.5480926", "0.5480926", "0.5480926", "0.5480926", "0.5242392", "0.5226755", "0.49930045", "0.4970208", "0.49428695", "0.4920507", "0.4891098", "0.48624477", "0.48518696", "0.48153737", "0.47118762", "0.46552795", "0.46542546", "0.4623467", "0.4623467", "0.462346...
0.5483913
3
Performs the necessary cleanup when a `FormGroupName` directive instance is removed from the view.
removeFormGroup(dir) { this._cleanUpFormContainer(dir); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "removeFormGroup(dir) {\n this._cleanUpFormContainer(dir);\n }", "ngOnDestroy() {\n if (this.formDirective) {\n this.formDirective.removeFormArray(this);\n }\n }", "ngOnDestroy() {\n if (this.formDirective) {\n this.formDirective.removeFormArray(this);\n ...
[ "0.6390782", "0.6361495", "0.6361495", "0.6361495", "0.6361495", "0.6361495", "0.6361495", "0.6361495", "0.6333794", "0.6319298", "0.6298256", "0.6298256", "0.6298256", "0.6298256", "0.6201884", "0.6117105", "0.5988534", "0.5987952", "0.58940274", "0.5869493", "0.5778013", ...
0.6110467
18
Performs the necessary setup when a `FormArrayName` directive instance is added to the view.
addFormArray(dir) { this._setUpFormContainer(dir); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ngOnInit() {\n this._checkParentType();\n\n this.formDirective.addFormArray(this);\n }", "addFormArray(dir) {\n this._setUpFormContainer(dir);\n }", "ngOnInit() {\n this._checkParentType();\n this.formDirective.addFormArray(this);\n }", "ngOnInit() {\n this._checkParentType...
[ "0.6310792", "0.626292", "0.6163204", "0.6163204", "0.6163204", "0.6163204", "0.6163204", "0.6163204", "0.6163204", "0.5775856", "0.5775856", "0.5775856", "0.5775856", "0.5297462", "0.51294553", "0.51294553", "0.51294553", "0.51294553", "0.51294553", "0.51294553", "0.51294553...
0.5971204
11
Performs the necessary cleanup when a `FormArrayName` directive instance is removed from the view.
removeFormArray(dir) { this._cleanUpFormContainer(dir); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ngOnDestroy() {\n if (this.formDirective) {\n this.formDirective.removeFormArray(this);\n }\n }", "ngOnDestroy() {\n if (this.formDirective) {\n this.formDirective.removeFormArray(this);\n }\n }", "ngOnDestroy() {\n if (this.formDirective) {\n ...
[ "0.75233257", "0.75233257", "0.75233257", "0.75233257", "0.75233257", "0.75233257", "0.75233257", "0.75197124", "0.64978075", "0.6404118", "0.62721217", "0.62672263", "0.6243117", "0.6212732", "0.6022559", "0.6022559", "0.6022559", "0.6022559", "0.59940845", "0.58478105", "0....
0.6264372
14
Sets the new value for the provided `FormControlName` directive.
updateModel(dir, value) { const ctrl = this.form.get(dir.path); ctrl.setValue(value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setFormFieldValue(formFieldName, formFieldValue) {\n formFieldName.value = formFieldValue;\n}", "function SetFieldValue( name, newValue, form, createIfNotFound)\n{\n var field = GetFieldNamed( name, form, createIfNotFound);\n\n if(field != undefined)\n field.value = newValue;\n}", "set...
[ "0.61646026", "0.5998529", "0.5948502", "0.5948502", "0.5948502", "0.5948502", "0.5948502", "0.5948502", "0.5948502", "0.59426427", "0.5874313", "0.58631873", "0.5830097", "0.5762461", "0.55991733", "0.5589026", "0.5556273", "0.55363363", "0.5506119", "0.5457673", "0.5357379"...
0.0
-1
A lifecycle method called when the directive's inputs are initialized. For internal use only.
ngOnInit() { this._checkParentType(); this.formDirective.addFormArray(this); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "_init() {\n this.$inputs = this.$element.find('input, textarea, select');\n\n this._events();\n }", "initializeInputs() {\n this.componentFactory.inputs.forEach(({ propName, transform }) => {\n if (this.initialInputValues.has(propName)) {\n // Call `setInputValue()` now th...
[ "0.68713", "0.6798048", "0.65354496", "0.6365774", "0.63046277", "0.62269616", "0.6076271", "0.60248435", "0.60168743", "0.5981593", "0.5981593", "0.5955776", "0.5954924", "0.5921373", "0.5920756", "0.59045786", "0.57957715", "0.5753412", "0.57451904", "0.57337147", "0.571218...
0.5830189
22
A lifecycle method called before the directive's instance is destroyed. For internal use only.
ngOnDestroy() { if (this.formDirective) { this.formDirective.removeFormArray(this); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ngOnDestroy() {\n this._destroyed.next();\n this._destroyed.complete();\n }", "ngOnDestroy() {\n this._destroyed = true;\n this._completeExit();\n }", "ngOnDestroy() {\n this._destroyed = true;\n this._clearFromModals();\n this._completeExit();\n }", ...
[ "0.7171189", "0.7117235", "0.67900383", "0.6735729", "0.66656816", "0.66275", "0.6512742", "0.650176", "0.6490136", "0.64830685", "0.64774555", "0.64774555", "0.64544433", "0.64383185", "0.64383185", "0.6419884", "0.6419884", "0.6419884", "0.6416055", "0.64021325", "0.6396767...
0.0
-1
Sets the "value" property on the input element. The "selectedIndex" property is also set if an ID is provided on the option element.
writeValue(value) { this.value = value; const id = this._getOptionId(value); if (id == null) { this._renderer.setProperty(this._elementRef.nativeElement, 'selectedIndex', -1); } const valueString = _buildValueString(id, value); this._renderer.setProperty(this....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "setInputValue(value) {\n\t\tthis._input.value = value;\n\t}", "_setValue(value) {\n const that = this;\n\n that.value = value;\n that.$.input.value = value;\n\n that._number = that._numericProcessor.createDescriptor(value, true);\n\n that._setDropDownOptions();\n }", "set ...
[ "0.7258282", "0.6989628", "0.6890985", "0.688614", "0.65734315", "0.65573835", "0.64787716", "0.6460406", "0.6443513", "0.6428426", "0.6421142", "0.63701606", "0.6369652", "0.6358226", "0.6341524", "0.62852895", "0.6280122", "0.62798136", "0.62780136", "0.6253082", "0.6230182...
0.6556567
12
Registers a function called when the control value changes.
registerOnChange(fn) { this.onChange = (valueString) => { this.value = this._getOptionValue(valueString); fn(this.value); }; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "setOnValueChangeEvent(func){\r\n this._onValueChange = func;\r\n }", "registerOnChange(fn) {\n this._controlValueAccessorChangeFn = fn;\n }", "registerOnChange(fn) {\n this._controlValueAccessorChangeFn = fn;\n }", "registerOnChange(fn) {\n this.controlValueAccessorChangeFn = f...
[ "0.78405017", "0.76935136", "0.76935136", "0.76354617", "0.7352922", "0.7352922", "0.7215024", "0.7215024", "0.7215024", "0.7215024", "0.7215024", "0.7215024", "0.7215024", "0.7215024", "0.7215024", "0.7215024", "0.7215024", "0.7215024", "0.7215024", "0.71557236", "0.7149438"...
0.69377625
59
Registers a function called when the control is touched.
registerOnTouched(fn) { this.onTouched = fn; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "registerOnTouched(fn) {\n this._onTouch = fn;\n }", "registerOnTouched(fn) {\n this._onTouch = fn;\n }", "registerOnTouched(fn) {\n this._onTouch = fn;\n }", "registerOnTouched(fn) {\n this._onTouch = fn;\n }", "registerOnTouched(fn) {\n this._onTouch = fn;\n ...
[ "0.7175659", "0.7175659", "0.7175659", "0.7175659", "0.7175659", "0.7175659", "0.69502825", "0.69502825", "0.69502825", "0.69502825", "0.69502825", "0.69502825", "0.69502825", "0.69502825", "0.69502825", "0.69502825", "0.6828925", "0.6828925", "0.6828925", "0.6828925", "0.666...
0.67502266
67
Sets the "disabled" property on the select input element.
setDisabledState(isDisabled) { this._renderer.setProperty(this._elementRef.nativeElement, 'disabled', isDisabled); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function disable(){\r\n document.getElementById(\"Select\").disabled=true;\r\n}", "disable() {\n (this.selectEl || this.el).setAttribute('disabled', '');\n return this;\n }", "enable() {\n (this.selectEl || this.el).removeAttribute('disabled');\n return this;\n }", "function disableDropdown(id...
[ "0.7564597", "0.7561148", "0.733572", "0.66112524", "0.6568982", "0.64493704", "0.6421656", "0.6353828", "0.6343859", "0.6343859", "0.6343859", "0.6335122", "0.6316363", "0.6316363", "0.6316363", "0.63055426", "0.62565684", "0.62452334", "0.62407637", "0.62213707", "0.6175847...
0.0
-1
Sets the "value" property on one or of more of the select's options.
writeValue(value) { this.value = value; let optionSelectedStateSetter; if (Array.isArray(value)) { // convert values to ids const ids = value.map((v) => this._getOptionId(v)); optionSelectedStateSetter = (opt, o) => { opt._setSelected(ids.index...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "set values(values) {\n if (!Util.validateType(values, 'list')) {\n throw new Error('Values must be an array.')\n }\n\n if (\n this.dataType === 'select-single' ||\n this.dataType === 'select-multiple'\n ) {\n this._values = values\n } else {\n throw new Error(\n 'To u...
[ "0.6616081", "0.6477341", "0.63779557", "0.626729", "0.6249312", "0.6224907", "0.6224907", "0.6188199", "0.6092852", "0.60663885", "0.6052578", "0.60475653", "0.6018751", "0.5989727", "0.5989727", "0.5988742", "0.59627813", "0.5924", "0.58777297", "0.58777297", "0.58757913", ...
0.621444
13
Registers a function called when the control value changes and writes an array of the selected options.
registerOnChange(fn) { this.onChange = (_) => { const selected = []; if (_.selectedOptions !== undefined) { const options = _.selectedOptions; for (let i = 0; i < options.length; i++) { const opt = options.item(i); c...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "registerOnChange(fn) {\n this.onChange = element => {\n const selected = [];\n const selectedOptions = element.selectedOptions;\n\n if (selectedOptions !== undefined) {\n const options = selectedOptions;\n\n for (let i = 0; i < options.length; i++) {\n const opt = options[i...
[ "0.69645536", "0.64073634", "0.63185596", "0.62863374", "0.62863374", "0.62863374", "0.62863374", "0.62863374", "0.62863374", "0.62863374", "0.62406", "0.62406", "0.62406", "0.62406", "0.62406", "0.62406", "0.62406", "0.618049", "0.61770165", "0.61766815", "0.6124155", "0.6...
0.71224415
5
Registers a function called when the control is touched.
registerOnTouched(fn) { this.onTouched = fn; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "registerOnTouched(fn) {\n this._onTouch = fn;\n }", "registerOnTouched(fn) {\n this._onTouch = fn;\n }", "registerOnTouched(fn) {\n this._onTouch = fn;\n }", "registerOnTouched(fn) {\n this._onTouch = fn;\n }", "registerOnTouched(fn) {\n this._onTouch = fn;\n ...
[ "0.7175659", "0.7175659", "0.7175659", "0.7175659", "0.7175659", "0.7175659", "0.69502825", "0.69502825", "0.69502825", "0.69502825", "0.69502825", "0.69502825", "0.69502825", "0.69502825", "0.69502825", "0.69502825", "0.6828925", "0.6828925", "0.6828925", "0.6828925", "0.666...
0.67502266
71
Sets the "disabled" property on the select input element.
setDisabledState(isDisabled) { this._renderer.setProperty(this._elementRef.nativeElement, 'disabled', isDisabled); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function disable(){\r\n document.getElementById(\"Select\").disabled=true;\r\n}", "disable() {\n (this.selectEl || this.el).setAttribute('disabled', '');\n return this;\n }", "enable() {\n (this.selectEl || this.el).removeAttribute('disabled');\n return this;\n }", "function disableDropdown(id...
[ "0.7564597", "0.7561148", "0.733572", "0.66112524", "0.6568982", "0.64493704", "0.6421656", "0.6353828", "0.6343859", "0.6343859", "0.6343859", "0.6335122", "0.6316363", "0.6316363", "0.6316363", "0.63055426", "0.62565684", "0.62452334", "0.62407637", "0.62213707", "0.6175847...
0.0
-1
Method that validates whether the control is empty. Returns the validation result if enabled, otherwise null.
validate(control) { return this.required ? requiredValidator(control) : null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get empty() {\n return !this._isNeverEmpty() && !this._elementRef.nativeElement.value && !this._isBadInput() && !this.autofilled;\n }", "get empty() {\n return !this._isNeverEmpty() && !this._elementRef.nativeElement.value && !this._isBadInput() &&\n !this.autofilled;\n }", "get ...
[ "0.7308788", "0.730266", "0.72480774", "0.70598143", "0.6946011", "0.6946011", "0.6844338", "0.6830017", "0.6816485", "0.6732208", "0.6641307", "0.65423906", "0.65418386", "0.65418386", "0.646176", "0.6421979", "0.63917017", "0.6369178", "0.6364145", "0.63572645", "0.62871796...
0.0
-1
Registers a callback function to call when the validator inputs change.
registerOnValidatorChange(fn) { this._onChange = fn; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "onChange(callback) {\n this.listeners.push(callback);\n }", "addChangeListener (callback) {\n\t\tthis.on(Constants.CHANGE_EVENT, callback);\n\t}", "addChangeListener (callback) {\n this.on(Constants.CHANGE_EVENT, callback);\n }", "addChangeListener(callback) {\n this.on('change', callback);\...
[ "0.70980525", "0.6943101", "0.69412863", "0.6909606", "0.68989915", "0.6802588", "0.67846495", "0.6744128", "0.6744128", "0.6738833", "0.6730698", "0.6725904", "0.6725904", "0.671578", "0.6648279", "0.6648279", "0.6648279", "0.6648279", "0.6648279", "0.6648279", "0.6648279", ...
0.77414894
27
Method that validates whether or not the checkbox has been checked. Returns the validation result if enabled, otherwise null.
validate(control) { return this.required ? requiredTrueValidator(control) : null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function validate() {\n return Promise.try(() => {\n if (!options.enabled) {\n return {\n isValid: true,\n validated: false,\n diagnosis: Constants.DIAGNOSIS.DISABLED,\n };\n ...
[ "0.69712883", "0.62907827", "0.6204333", "0.6049363", "0.60169566", "0.58525205", "0.57740575", "0.5715796", "0.5697544", "0.5681747", "0.5653275", "0.5644853", "0.56299096", "0.55675155", "0.5539781", "0.5492455", "0.54830813", "0.546848", "0.5459953", "0.5452864", "0.544623...
0.53503424
34
Method that validates whether an email address is valid. Returns the validation result if enabled, otherwise null.
validate(control) { return this._enabled ? emailValidator(control) : null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function checkEmail() {\r\n const emailValue = email.value.trim();\r\n\r\n var mailformat = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\\.[a-zA-Z0-9-]+)*$/;\r\n if (emailValue === '' || !emailValue.match(mailformat)) {\r\n isValid &= false;\r\n setErrorFor(email, 'Email not valid');\...
[ "0.71200013", "0.69714546", "0.6914144", "0.6817552", "0.68172026", "0.68167126", "0.67999446", "0.67937577", "0.67772895", "0.6769922", "0.67533654", "0.6704377", "0.66943395", "0.6686723", "0.6674823", "0.6633006", "0.6612662", "0.66056645", "0.6590394", "0.65852684", "0.65...
0.62762785
99
Registers a callback function to call when the validator inputs change.
registerOnValidatorChange(fn) { this._onChange = fn; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "onChange(callback) {\n this.listeners.push(callback);\n }", "addChangeListener (callback) {\n\t\tthis.on(Constants.CHANGE_EVENT, callback);\n\t}", "addChangeListener (callback) {\n this.on(Constants.CHANGE_EVENT, callback);\n }", "addChangeListener(callback) {\n this.on('change', callback);\...
[ "0.709553", "0.69411427", "0.69390416", "0.6907489", "0.69028556", "0.6799897", "0.6782721", "0.6742574", "0.6742574", "0.67366457", "0.67288995", "0.6723679", "0.6723679", "0.6713797", "0.6645702", "0.6645702", "0.6645702", "0.6645702", "0.6645702", "0.6645702", "0.6645702",...
0.7741223
29
Method that validates whether the value meets a minimum length requirement. Returns the validation result if enabled, otherwise null.
validate(control) { return this.minlength == null ? null : this._validator(control); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function minLength(value, min) {\n return typeof value === 'string' && validator_lib_isLength__WEBPACK_IMPORTED_MODULE_1___default()(value, { min });\n}", "minLength(val, length) {\n return String(val).length >= length;\n }", "minLength(length) {\n return this.addValidator({\n mess...
[ "0.7453566", "0.7324337", "0.711936", "0.7093933", "0.7075371", "0.7065005", "0.68398637", "0.68320626", "0.6711949", "0.6689371", "0.6689371", "0.6689371", "0.6689371", "0.6689371", "0.6689371", "0.6689371", "0.6689371", "0.6624027", "0.66111875", "0.6602", "0.65818214", "...
0.5704786
98
Registers a callback function to call when the validator inputs change.
registerOnValidatorChange(fn) { this._onChange = fn; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "onChange(callback) {\n this.listeners.push(callback);\n }", "addChangeListener (callback) {\n\t\tthis.on(Constants.CHANGE_EVENT, callback);\n\t}", "addChangeListener (callback) {\n this.on(Constants.CHANGE_EVENT, callback);\n }", "addChangeListener(callback) {\n this.on('change', callback);\...
[ "0.709553", "0.69411427", "0.69390416", "0.6907489", "0.69028556", "0.6799897", "0.6782721", "0.6742574", "0.6742574", "0.67366457", "0.67288995", "0.6723679", "0.6723679", "0.6713797", "0.6645702", "0.6645702", "0.6645702", "0.6645702", "0.6645702", "0.6645702", "0.6645702",...
0.7741223
25
Method that validates whether the value exceeds the maximum length requirement.
validate(control) { return this.maxlength != null ? this._validator(control) : null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "isMaxLength(value, limit) {\n if (typeof value !== \"string\") return false;\n\n return value.length <= limit;\n }", "maxLength(val, length) {\n return String(val).length <= length;\n }", "verifyLength(value, length) {\n if (value.length >= length) {\n return true;\n }\n return fal...
[ "0.8266684", "0.81704", "0.7987609", "0.7987609", "0.7987609", "0.7987609", "0.7987609", "0.7987609", "0.7987609", "0.7987609", "0.78633076", "0.77611727", "0.7739316", "0.7691079", "0.7616841", "0.75841403", "0.7538159", "0.74913436", "0.7460386", "0.7459917", "0.74265593", ...
0.0
-1
Registers a callback function to call when the validator inputs change.
registerOnValidatorChange(fn) { this._onChange = fn; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "onChange(callback) {\n this.listeners.push(callback);\n }", "addChangeListener (callback) {\n\t\tthis.on(Constants.CHANGE_EVENT, callback);\n\t}", "addChangeListener (callback) {\n this.on(Constants.CHANGE_EVENT, callback);\n }", "addChangeListener(callback) {\n this.on('change', callback);\...
[ "0.709553", "0.69411427", "0.69390416", "0.6907489", "0.69028556", "0.6799897", "0.6782721", "0.6742574", "0.6742574", "0.67366457", "0.67288995", "0.6723679", "0.6723679", "0.6713797", "0.6645702", "0.6645702", "0.6645702", "0.6645702", "0.6645702", "0.6645702", "0.6645702",...
0.7741223
26
Method that validates whether the value matches the pattern requirement.
validate(control) { return this._validator(control); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function CheckValidity(value, patternWord) {\n let pattern = RegExp(patternWord)\n if (pattern.test(value)) {\n return true;\n }\n else {\n return false;\n }\n }", "function pattern(rule,value,source,errors,options){if(rule.pattern instanceof RegExp){if...
[ "0.79863614", "0.70558375", "0.70558375", "0.70558375", "0.69849247", "0.69453645", "0.69453645", "0.69453645", "0.69133806", "0.6908721", "0.68996876", "0.68996876", "0.68996876", "0.68996876", "0.68996876", "0.68946785", "0.6870925", "0.67917365", "0.67917365", "0.67917365", ...
0.0
-1
Registers a callback function to call when the validator inputs change.
registerOnValidatorChange(fn) { this._onChange = fn; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "onChange(callback) {\n this.listeners.push(callback);\n }", "addChangeListener (callback) {\n\t\tthis.on(Constants.CHANGE_EVENT, callback);\n\t}", "addChangeListener (callback) {\n this.on(Constants.CHANGE_EVENT, callback);\n }", "addChangeListener(callback) {\n this.on('change', callback);\...
[ "0.709553", "0.69411427", "0.69390416", "0.6907489", "0.69028556", "0.6799897", "0.6782721", "0.6742574", "0.6742574", "0.67366457", "0.67288995", "0.6723679", "0.6723679", "0.6713797", "0.6645702", "0.6645702", "0.6645702", "0.6645702", "0.6645702", "0.6645702", "0.6645702",...
0.7741223
28
Constructs a new `FormArray` from the given array of configurations, validators and options.
array(controlsConfig, validatorOrOpts, asyncValidator) { const controls = controlsConfig.map(c => this._createControl(c)); return new FormArray(controls, validatorOrOpts, asyncValidator); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "array(controlsConfig, validatorOrOpts, asyncValidator) {\n const controls = controlsConfig.map(c => this._createControl(c));\n return new FormArray(controls, validatorOrOpts, asyncValidator);\n }", "function FormArray(controls, validatorOrOpts, asyncValidator) {\n var _this27;\n\n _class...
[ "0.7631936", "0.6712334", "0.6552869", "0.65026855", "0.65026855", "0.65026855", "0.65026855", "0.55803424", "0.55776584", "0.55776584", "0.5269044", "0.5089444", "0.5020911", "0.49741712", "0.4929762", "0.49226558", "0.4875526", "0.4875526", "0.4875526", "0.4875526", "0.4857...
0.74878025
6
Compresses data with DEFLATE without any wrapper
function deflateSync(data, opts) { if (opts === void 0) { opts = {}; } return dopt(data, opts, 0, 0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function deflateSync(data, opts) {\n return dopt(data, opts || {}, 0, 0);\n }", "function inflateSync(data, out) {\n return inflt(data, out);\n}", "function inflateSync(data, out) {\n return inflt(data, out);\n}", "function inflateSync(data, out) {\n return inflt(data, out);\n}", "function U...
[ "0.61106455", "0.5988624", "0.5988624", "0.5988624", "0.5954146", "0.5920729", "0.58934593", "0.5879859", "0.5834262", "0.580729", "0.580729", "0.580729", "0.580729", "0.580729", "0.5802519", "0.57876086", "0.57731134", "0.57421845", "0.57395995", "0.5724774", "0.5683131", ...
0.6061367
2
Creates an inflation stream
function Inflate(cb) { this.s = {}; this.p = new u8(0); this.ondata = cb; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Inflate(cb) {\n this.s = {};\n this.p = new u8(0);\n this.ondata = cb;\n }", "createStream () {\n\n }", "function convert_streams(bufferIn, tinyInflate) {\r\n var dataViewIn = new DataView(bufferIn);\r\n var offsetIn = 0;\r\n\r\n function read2() {\r\n ...
[ "0.54459214", "0.5329311", "0.5242561", "0.5164036", "0.5118253", "0.5044322", "0.5044322", "0.5000873", "0.5000873", "0.49821842", "0.49533498", "0.49169493", "0.49028867", "0.49028867", "0.49028867", "0.49028867", "0.49028867", "0.49028867", "0.49028867", "0.49028867", "0.4...
0.54354995
2
Creates an asynchronous inflation stream
function AsyncInflate(cb) { this.ondata = cb; astrmify([ bInflt, function () { return [astrm, Inflate]; } ], this, 0, function () { var strm = new Inflate(); onmessage = astrm(strm); }, 7); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function AsyncInflate(cb) {\n this.ondata = cb;\n astrmify([\n bInflt,\n function () { return [astrm, Inflate]; }\n ], this, 0, function () {\n var strm = new Inflate();\n onmessage = astrm(strm);\n }, 7);\n }", "createS...
[ "0.6501182", "0.6116461", "0.56584734", "0.55674785", "0.55542463", "0.55376977", "0.55235195", "0.54084045", "0.54084045", "0.54084045", "0.537512", "0.5200421", "0.5157026", "0.5157026", "0.5157026", "0.51545477", "0.5139648", "0.5132737", "0.512515", "0.5084364", "0.507201...
0.6508634
1
Expands DEFLATE data with no wrapper
function inflateSync(data, out) { return inflt(data, out); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "dehydrate() {\n return compress(JSON.stringify(this.internalData));\n }", "function deflateRaw(input,options){options=options||{};options.raw=true;return deflate$1(input,options);}", "function UnzipInflate() {\n var _this_1 = this;\n this.i = new Inflate(function (dat, final) {\n ...
[ "0.55797845", "0.55529433", "0.5372971", "0.5340522", "0.529865", "0.527996", "0.5263644", "0.5233837", "0.52232707", "0.52208525", "0.5196003", "0.51755154", "0.5162862", "0.5159156", "0.51547223", "0.5119336", "0.5119336", "0.5119336", "0.5119336", "0.5119336", "0.5119336",...
0.51115555
23
Compresses data with GZIP
function gzipSync(data, opts) { if (opts === void 0) { opts = {}; } var c = crc(), l = data.length; c.p(data); var d = dopt(data, opts, gzhl(opts), 8), s = d.length; return gzh(d, opts), wbytes(d, s - 8, c.d()), wbytes(d, s - 4, l), d; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function gzipSync(data, opts) {\n if (!opts)\n opts = {};\n var c = crc(), l = data.length;\n c.p(data);\n var d = dopt(data, opts, gzhl(opts), 8), s = d.length;\n return gzh(d, opts), wbytes(d, s - 8, c.d()), wbytes(d, s - 4, l), d;\n }", "function gzip(input,options){options=...
[ "0.69385695", "0.6765915", "0.64843315", "0.63766605", "0.6369987", "0.63118", "0.62780404", "0.626407", "0.6231311", "0.6231311", "0.6231311", "0.6187729", "0.6187729", "0.6187729", "0.6187729", "0.6187729", "0.6187729", "0.6184954", "0.6160366", "0.614457", "0.61341554", ...
0.6867324
2
Creates a GUNZIP stream
function Gunzip(cb) { this.v = 1; Inflate.call(this, cb); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function gunzip(src){\n fs.createReadStream(src)\n .pipe(zlib.createGunzip())\n .pipe(fs.createWriteStream(path.join(__dirname,path.basename(src,'.gz'))));\n}", "function ungzipStream(rawstream) {\n return (rawstream ? rawstream.pipe(ZL.createGunzip()) : undefined);\n}", "function write(chu...
[ "0.6832572", "0.6599485", "0.6571264", "0.64254147", "0.64254147", "0.64254147", "0.64254147", "0.64254147", "0.64254147", "0.63599145", "0.63577425", "0.63577425", "0.63577425", "0.63577425", "0.63577425", "0.63577425", "0.63577425", "0.63577425", "0.63577425", "0.63577425", ...
0.62268174
51
Creates an asynchronous GUNZIP stream
function AsyncGunzip(cb) { this.ondata = cb; astrmify([ bInflt, guze, function () { return [astrm, Inflate, Gunzip]; } ], this, 0, function () { var strm = new Gunzip(); onmessage = astrm(strm); }, 9); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function AsyncGunzip(cb) {\n this.ondata = cb;\n astrmify([\n bInflt,\n guze,\n function () { return [astrm, Inflate, Gunzip]; }\n ], this, 0, function () {\n var strm = new Gunzip();\n onmessage = astrm(strm);\n }...
[ "0.7346512", "0.6714183", "0.6706205", "0.6706205", "0.6706205", "0.61786807", "0.61220264", "0.6108448", "0.6085429", "0.60048026", "0.60048026", "0.60048026", "0.5846968", "0.5846968", "0.5768752", "0.5768752", "0.5768752", "0.5740415", "0.56792325", "0.56792325", "0.567923...
0.7326929
2
Compress data with Zlib
function zlibSync(data, opts) { if (opts === void 0) { opts = {}; } var a = adler(); a.p(data); var d = dopt(data, opts, 2, 4); return zlh(d, opts), wbytes(d, d.length - 4, a.d()), d; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "encode(compress, slashes) {\n const shouldCompress = compress !== undefined ? compress : this.zlib !== undefined;\n if (shouldCompress && this.zlib === undefined) {\n throw new Error('Need zlib to compress');\n }\n let header = this.version;\n c...
[ "0.6744156", "0.67336494", "0.6718105", "0.6344676", "0.63159454", "0.62703073", "0.62658703", "0.62658703", "0.62114763", "0.62114763", "0.62114763", "0.6187143", "0.6182308", "0.6165995", "0.61160374", "0.61160374", "0.61160374", "0.61067027", "0.61008775", "0.60806966", "0...
0.59652215
25
Creates a Zlib decompression stream
function Unzlib(cb) { this.v = 1; Inflate.call(this, cb); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ZStream(){/* next input byte */this.input=null;// JS specific, because we have no pointers\nthis.next_in=0;/* number of bytes available at input */this.avail_in=0;/* total number of input bytes read so far */this.total_in=0;/* next output byte should be put there */this.output=null;// JS specific, because...
[ "0.70602155", "0.6925459", "0.6895672", "0.68861765", "0.68859947", "0.687732", "0.68772566", "0.686647", "0.686647", "0.686647", "0.686647", "0.686647", "0.686647", "0.686647", "0.686647", "0.686647", "0.686647", "0.686647", "0.686647", "0.686647", "0.686647", "0.686647", ...
0.66151565
64
Creates an asynchronous Zlib decompression stream
function AsyncUnzlib(cb) { this.ondata = cb; astrmify([ bInflt, zule, function () { return [astrm, Inflate, Unzlib]; } ], this, 0, function () { var strm = new Unzlib(); onmessage = astrm(strm); }, 11); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function AsyncDecompress(cb) {\n this.G = AsyncGunzip;\n this.I = AsyncInflate;\n this.Z = AsyncUnzlib;\n this.ondata = cb;\n }", "function AsyncDecompress(cb) {\n this.G = AsyncGunzip;\n this.I = AsyncInflate;\n this.Z = AsyncUnzlib;\n this.on...
[ "0.7289155", "0.71979576", "0.71979576", "0.71979576", "0.71477985", "0.65802073", "0.6368826", "0.6368817", "0.6307168", "0.6307168", "0.6307168", "0.62240857", "0.61275405", "0.6118746", "0.6118412", "0.61042076", "0.60950375", "0.60950375", "0.60950375", "0.60872763", "0.6...
0.7111593
7
Creates a decompression stream
function Decompress(cb) { this.G = Gunzip; this.I = Inflate; this.Z = Unzlib; this.ondata = cb; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async decompress(streaming) {\n\n if (!decompress_fns[this.algorithm]) {\n throw new Error(this.algorithm + ' decompression not supported');\n }\n\n await this.packets.read(decompress_fns[this.algorithm](this.compressed), {\n LiteralDataPacket,\n OnePassSignaturePacket,\n SignaturePack...
[ "0.6900904", "0.6784532", "0.67156273", "0.6709343", "0.6335579", "0.6327458", "0.6327458", "0.6327458", "0.6243511", "0.6113501", "0.5956838", "0.59420615", "0.593546", "0.5920891", "0.5906808", "0.59067106", "0.58765453", "0.58594716", "0.58516467", "0.58414316", "0.5825591...
0.6671527
5
Creates an asynchronous decompression stream
function AsyncDecompress(cb) { this.G = AsyncGunzip; this.I = AsyncInflate; this.Z = AsyncUnzlib; this.ondata = cb; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function AsyncDecompress(cb) {\n this.G = AsyncGunzip;\n this.I = AsyncInflate;\n this.Z = AsyncUnzlib;\n this.ondata = cb;\n }", "function AsyncUnzlib(cb) {\n this.ondata = cb;\n astrmify([\n bInflt,\n zule,\n func...
[ "0.7395968", "0.6904885", "0.68917", "0.68917", "0.68917", "0.6686172", "0.63142", "0.62697136", "0.62697136", "0.62697136", "0.6217394", "0.61991984", "0.61991984", "0.61991984", "0.5830403", "0.57878834", "0.5774992", "0.57077235", "0.5681854", "0.5646834", "0.55737555", ...
0.73137724
2
Expands compressed GZIP, Zlib, or raw DEFLATE data, automatically detecting the format
function decompressSync(data, out) { return (data[0] == 31 && data[1] == 139 && data[2] == 8) ? gunzipSync(data, out) : ((data[0] & 15) != 8 || (data[0] >> 4) > 7 || ((data[0] << 8 | data[1]) % 31)) ? inflateSync(data, out) : unzlibSync(data, out); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get compressionFormat() {}", "function gzip(input,options){options=options||{};options.gzip=true;return deflate$1(input,options);}", "function PackFileReaderLess(data, usize) {\n\t // When server side (S3 and viewing service) is configured properly,\n\t // browser can decompress the pack file for...
[ "0.67353415", "0.63097197", "0.62983245", "0.6213885", "0.62051666", "0.62021065", "0.61656654", "0.6129395", "0.59928113", "0.5957838", "0.5930612", "0.58648556", "0.57618093", "0.5741171", "0.5741171", "0.5741171", "0.5741171", "0.5719888", "0.56998825", "0.56998825", "0.56...
0.0
-1
Converts a string into a Uint8Array for use with compression/decompression methods
function strToU8(str, latin1) { var l = str.length; if (!latin1 && typeof TextEncoder != 'undefined') return new TextEncoder().encode(str); var ar = new u8(str.length + (str.length >>> 1)); var ai = 0; var w = function (v) { ar[ai++] = v; }; for (var i = 0; i < l; ++i) { if (ai +...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function stringToUint8Array(str) {\n return Uint8Array.from(buffer_1.Buffer.from(str));\n}", "function stringToUint8Array(str) {\n const arr = [];\n for (let i = 0, j = str.length; i < j; ++i) {\n arr.push(str.charCodeAt(i));\n }\n\n const tmpUint8Array = new Uint8Array(arr);\n return tmpUint8Array;\n...
[ "0.8374902", "0.81101835", "0.8041652", "0.795743", "0.7792884", "0.74268013", "0.72917557", "0.7234765", "0.7233486", "0.7208495", "0.71837544", "0.717994", "0.71752566", "0.7170958", "0.71524763", "0.71518606", "0.71511567", "0.71511567", "0.708318", "0.70598775", "0.705599...
0.0
-1
Converts a Uint8Array to a string
function strFromU8(dat, latin1) { var r = ''; if (!latin1 && typeof TextDecoder != 'undefined') return new TextDecoder().decode(dat); for (var i = 0; i < dat.length;) { var c = dat[i++]; if (c < 128 || latin1) r += String.fromCharCode(c); else if (c < 224) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function uint8arrayToString(data) {\n return String.fromCharCode.apply(null, data);\n}", "function Uint8ArrayToString(fileData) {\n let dataString = \"\";\n for (var i = 0; i < fileData.length; i++) {\n dataString += String.fromCharCode(fileData[i]);\n }\n\n return dataString\n\n}", "func...
[ "0.8148997", "0.788489", "0.7538489", "0.7538489", "0.74459046", "0.74282175", "0.7396016", "0.73896164", "0.73885334", "0.7282253", "0.7241179", "0.72364867", "0.7164142", "0.7164142", "0.7164142", "0.7164142", "0.7164142", "0.7164142", "0.71507543", "0.7148659", "0.7100871"...
0.0
-1
Synchronously creates a ZIP file. Prefer using `zip` for better performance with more than one file.
function zipSync(data, opts) { if (opts === void 0) { opts = {}; } var r = {}; var files = []; fltn(data, '', r, opts); var o = 0; var tot = 0; for (var fn in r) { var _a = r[fn], file = _a[0], p = _a[1]; var t = p.level == 0 ? 0 : 8; var n = strToU8(fn), s = n.length...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function makeZip() {\n const { filename, content } = fflateBuildZipContent()\n const [zipPromise, resolve, reject] = makePromise()\n\n fflate.zip(content, (err, data) => {\n if (err) {\n reject(err)\n return\n }\n resolve(data)\n })\n\n return zipPromise.then(makeBlob).then(blob => {\n s...
[ "0.72673976", "0.6331741", "0.60384303", "0.6022285", "0.5982865", "0.5973974", "0.59496605", "0.59249127", "0.59183466", "0.5910976", "0.590029", "0.5870127", "0.5863751", "0.583276", "0.58312386", "0.58301926", "0.58291924", "0.57609195", "0.5689139", "0.56791514", "0.56574...
0.5756997
20
Asynchronously decompresses a ZIP archive
function unzip(data, cb) { if (typeof cb != 'function') throw 'no callback'; var term = []; var tAll = function () { for (var i = 0; i < term.length; ++i) term[i](); }; var files = {}; var e = data.length - 22; for (; b4(data, e) != 0x6054B50; --e) { if (!...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function AsyncDecompress(cb) {\n this.G = AsyncGunzip;\n this.I = AsyncInflate;\n this.Z = AsyncUnzlib;\n this.ondata = cb;\n }", "function AsyncUnzlib(cb) {\n this.ondata = cb;\n astrmify([\n bInflt,\n zule,\n func...
[ "0.62067974", "0.61464584", "0.61461425", "0.6080641", "0.6080641", "0.6080641", "0.6075878", "0.6029024", "0.6029024", "0.6029024", "0.59684235", "0.59192103", "0.589921", "0.58210975", "0.5693471", "0.5693471", "0.5693471", "0.5690865", "0.55805486", "0.5550466", "0.5543292...
0.52457684
46
Synchronously decompresses a ZIP archive. Prefer using `unzip` for better performance with more than one file.
function unzipSync(data) { var files = {}; var e = data.length - 22; for (; b4(data, e) != 0x6054B50; --e) { if (!e || data.length - e > 65558) throw 'invalid zip file'; } ; var c = b2(data, e + 8); if (!c) return {}; var o = b4(data, e + 16); var z = o ==...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function unzip(filename) {\n const filePath = config.getTempPath(filename);\n\n var unzipper = new DecompressZip(filePath);\n unzipper.on(\"error\", function (err) {\n log.fatal(err);\n process.exit(1);\n });\n\n unzipper.on(\"extract\", function (json) {\n log.debug(\"Extracted \" + json.map(e => Ob...
[ "0.6424443", "0.640907", "0.638028", "0.6326797", "0.63136184", "0.6148756", "0.5999871", "0.59889895", "0.59889895", "0.59889895", "0.5986229", "0.59506977", "0.58901614", "0.5805554", "0.5795822", "0.576223", "0.576223", "0.576223", "0.5722522", "0.57108486", "0.5706076", ...
0.6353015
5
Storage Functions /////////////////////////////////////////////////////// / Add
function AddGroup(st) { if (SelectOutput == OUT_PRINT) { System.println(st); } else if (SelectOutput == OUT_STORE) { var NewGroup = {:title => st, :elements => []}; InfoData.add(NewGroup); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static addBookToStorage(whatToAdd) {\n \n //initialise new variable for storage data\n let newStoredBooks;\n\n //set variale values based on data gotten from ls\n if (storage.getStorageData() === null) {\n newStoredBooks = [];\n } else {\n newStoredBooks = storage.getStorageData();\n ...
[ "0.7003452", "0.6709272", "0.6709272", "0.6709272", "0.6709272", "0.6709272", "0.667638", "0.6633201", "0.6584644", "0.6550388", "0.6531503", "0.64592373", "0.64573586", "0.6452173", "0.643689", "0.64094496", "0.63892025", "0.63813627", "0.63810116", "0.63682306", "0.6345235"...
0.0
-1
Helper method for defining associations. This method is not a part of Sequelize lifecycle. The `models/index` file will call this method automatically.
static associate(models) { // define association here }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static associate(models) {\n // define association here\n // This is how Sequelize knows to create \"magic methods\"\n // These are functions that can automatically pull\n // related data.\n // For example: If I have a User object\n // I can call `await user.getContacts()` to get an\n...
[ "0.76411724", "0.7508184", "0.7313227", "0.7306762", "0.7306762", "0.7306762", "0.7294186", "0.72840846", "0.72780687" ]
0.0
-1
Film titles with planets
function film() { const requestData = JSON.parse(this.responseText); const data = requestData.results; console.log(data); //for loop to add the movie titles for(var i = 0; i < data.length; i++) { let li = document.createElement('li'); li.class = 'titleClass' + i; const contentEl = document.query...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getTitle(film) {\n let tytul = film.split(\" (\")[0]; // tniemy po \" (\"\n return tytul;\n}", "function videoName(){\n var artistName = document.getElementById(\"name\").value;\n var artistName2 = document.getElementById(\"name2\").value;\n var descriptiveItem = document.getElementById(\...
[ "0.6626204", "0.6378084", "0.6378084", "0.6378084", "0.6176604", "0.5991812", "0.5885684", "0.58381534", "0.5794124", "0.57888174", "0.5719572", "0.57175887", "0.5715384", "0.56860054", "0.5685909", "0.566849", "0.55988526", "0.5593712", "0.55874944", "0.5576577", "0.5575314"...
0.5712253
13
loading the planet names
function onPlanetData() { const requestData = JSON.parse(this.responseText); const planetName = requestData.name; let newLi = document.createElement('li'); newLi.innerHTML = planetName; newUl.appendChild(newLi); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function loadPlayerNames() {\n var player_names = [\n\t\t\"Aaron Ramsey\",\n\t\t\"Abdul Rahman Baba\",\n\t\t\"Adam Lallana\",\n\t\t\"Adem Ljajic\",\n\t\t\"Aderlan Santos\",\n\t\t\"Admir Mehmedi\",\n\t\t\"Adnan Januzaj\",\n\t\t\"Adrián Ramos\",\n\t\t\"Adriano\",\n\t\t\"Alberto Moreno\",\n\t\t\"Aleix Vidal\",\n\t...
[ "0.61184293", "0.60937047", "0.60771173", "0.5907949", "0.58918667", "0.58092624", "0.5746101", "0.5737628", "0.56993437", "0.5631527", "0.5596465", "0.55749875", "0.5520893", "0.55149513", "0.55112886", "0.55091065", "0.54972893", "0.5489412", "0.548679", "0.5451653", "0.544...
0.5504794
16
Fill this to do something on image upload
function handleImage(e){ var reader = new FileReader(); reader.onload = function(event){ var img = new Image(); img.onload = function(){ if (imageLoaderCallback) { imageLoaderCallback (img); } // clear the input element so that a new load on the s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function initUpload() {\n\t\t\t\tvar fileInput = document.getElementById('fileInput');\n\n\t\t\t\tfileInput.addEventListener('change', function(e) {\n\t\t\t\t imageChanged(fileInput);\n\t\t\t\t});\n\t\t\t }", "function uploadEventImage() {\n // Clear messages\n vm.success = vm.error = nul...
[ "0.7453433", "0.7150019", "0.70783067", "0.7021402", "0.6991555", "0.6801086", "0.6776946", "0.674913", "0.67273134", "0.6699037", "0.6699037", "0.6697585", "0.6683445", "0.66724426", "0.66397375", "0.66277367", "0.6622889", "0.6608764", "0.6599688", "0.65665513", "0.65565395...
0.6237191
74
obliquity of the Earth
function rightAscension(l, b) { return atan(sin(l) * cos(e) - tan(b) * sin(e), cos(l)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function earth_ecc(obs) {\n var T=(jd(obs)-2451545.0)/36525;\n var T2=T*T;\n var T3=T2*T;\n var e=0.016708617-0.000042037*T-0.0000001236*T2;\n return e;\n}", "obliquityEcliptic() {\n let jd = this.julianDate(2010, 1, 0);\n let centuries = (jd - 2451545) / 36525;\n let daysElapsed = 46.8...
[ "0.6985216", "0.64052063", "0.63950205", "0.6083493", "0.60825014", "0.5963867", "0.59560645", "0.59221137", "0.5855708", "0.5794576", "0.578016", "0.57589906", "0.57523525", "0.57481736", "0.57411957", "0.5737435", "0.5716253", "0.57126516", "0.5711723", "0.5680377", "0.5661...
0.0
-1
returns set time for the given sun altitude
function getSetJ(h, lw, phi, dec, n, M, L) { var w = hourAngle(h, phi, dec), a = approxTransit(w, lw, n); return solarTransitJ(a, M, L); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function RiseSet(jd0UT, coor1, coor2, lon, lat, timeinterval, altitude) {\n // altitude of sun center: semi-diameter, horizontal parallax and (standard) refraction of 34'\n var alt = 0.; // calculate\n var altitude = (altitude == null) ? 0. : altitude; // set default value\n\n // true height of sun cen...
[ "0.6426217", "0.5908158", "0.58714527", "0.5836513", "0.57499456", "0.5745927", "0.5586167", "0.5584863", "0.55477345", "0.5539313", "0.5508106", "0.5473249", "0.54355884", "0.5432796", "0.5431811", "0.54149336", "0.541347", "0.5400179", "0.539945", "0.53857857", "0.53518116"...
0.0
-1
moon calculations, based on formulas
function moonCoords(d) { // geocentric ecliptic coordinates of the moon var L = rad * (218.316 + 13.176396 * d), // ecliptic longitude M = rad * (134.963 + 13.064993 * d), // mean anomaly F = rad * (93.272 + 13.229350 * d), // mean distance l = L + rad * 6.289 * sin(M), // longitude ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function moon_facts()\n{\n with (Math) {\n\n var dt_as_str, mm, yy, i, tmp, k, t;\n var M, M1, F, NM_FM, FQ_LQ, RAD = 180 / PI;\n var jd_temp, d_of_w, dow_str, zz, ff, alpha;\n var aa, bb, cc, dd, ee, calendar_day, month;\n var calendar_month, int_day, hours, minutes;\n\n ...
[ "0.70675534", "0.70036733", "0.6779174", "0.63987064", "0.62719697", "0.62204546", "0.6125166", "0.61221147", "0.60727817", "0.5955362", "0.5912928", "0.589414", "0.5880389", "0.58734643", "0.5816596", "0.58153117", "0.5811429", "0.5749612", "0.57303286", "0.5701437", "0.5695...
0.51221806
75
component that loads the deck of cards
function Deck(){ const params = useParams(); const history = useHistory(); const [currentDeck, setCurrentDeck] = useState(null); const [currentCards, setCurrentCards] = useState(null); useEffect(() => { async function loadDeck() { setCurrentDeck([]); setCurrentCards...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "componentDidMount() {\n this.loadCards();\n }", "populateDeck()\n {\n this.cards = [];\n //jack 11\n //queen 12\n //king 13\n //ace 14\n\n for (let i = 2; i < 15; i++)\n {\n let card = new Card(\"Spades\", i, `./assets/Playing Cards/Playing...
[ "0.6955889", "0.6792446", "0.6768818", "0.67397434", "0.6698079", "0.6694816", "0.6691313", "0.66652715", "0.6642112", "0.65879655", "0.6529391", "0.651699", "0.64843786", "0.6468749", "0.6424301", "0.6398253", "0.6383658", "0.6375236", "0.6372974", "0.6350134", "0.6303167", ...
0.6132803
41
Arcfour.prototype.init = ARC4init; Initialize arcfour context from key, an array of ints, each from [0..255]
init(key) { let i; let j; let t; for (i = 0; i < 256; ++i) { this.S[i] = i; } j = 0; for (i = 0; i < 256; ++i) { j = (j + this.S[i] + key[i % key.length]) & 255; t = this.S[i]; this.S[i] = this.S[j]; this...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ARC4init(key) {\r\n var i, j, t;\r\n for (i = 0; i < 256; ++i)\r\n this.S[i] = i;\r\n j = 0;\r\n for (i = 0; i < 256; ++i) {\r\n j = (j + this.S[i] + key[i % key.length]) & 255;\r\n t = this.S[i];\r\n this.S[i] = this.S[j];\r\n this.S[j] = t;\r\n }\r\n ...
[ "0.80912673", "0.8077751", "0.8074179", "0.80263203", "0.80263203", "0.80263203", "0.8006964", "0.8000724", "0.8000724", "0.79941875", "0.79861987", "0.79861987", "0.79861987", "0.79861987", "0.79861987", "0.79861987", "0.79861987", "0.79861987", "0.79861987", "0.79861987", "...
0.0
-1
Override Proxy methods from BaseDriver
proxyActive () { return this.jwpProxyActive; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Proxy(){}", "function Proxy(){}", "_proxyMethods() {\n const methods = this._opts.methods || {}\n for(const method in methods) {\n Object.defineProperty(this, method, {\n get() {\n return methods[method]\n }\n })\n ...
[ "0.6509937", "0.6509937", "0.60139775", "0.57686126", "0.57653195", "0.576442", "0.576442", "0.5762481", "0.57319164", "0.56808245", "0.5670538", "0.5670538", "0.5564038", "0.55369437", "0.5534034", "0.55159044", "0.55159044", "0.55159044", "0.55159044", "0.55159044", "0.5515...
0.0
-1
override these timeout methods so we can make sure the safari driver gets them too. put them here because `super` is awful and can't be used outside of the class definition
async timeouts (type, duration) { await super.timeouts(type, duration); if (this._safariDriver) { this._safariDriver.timeouts(type, duration); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "onLoadingTimeout() {\n this.browserProxy_.timeout();\n this.onErrorOccurred();\n }", "constructor(timeout_in_secs) {\n this.initial_timeout_in_secs = timeout_in_secs\n this.reset()\n }", "function we_should_be_able_to_work_with_timeouts(){\n var timeouts=driver.manage().timeouts();\n var star...
[ "0.63545984", "0.60199034", "0.6001691", "0.59554094", "0.59466404", "0.59466404", "0.59437907", "0.59437907", "0.59437907", "0.59437907", "0.59437907", "0.59437907", "0.59437907", "0.59437907", "0.5908958", "0.5890769", "0.5856217", "0.5831009", "0.578092", "0.5769212", "0.5...
0.76355505
0
get Fat Query will update the response from server for item we update, this will update the Relay.Store by default all other items can access it
getFatQuery() { return Relay.QL` fragment on UpdatePostPayload @relay(pattern: true) { post { id title published_at tags items { id text { id description } image { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "queryUpdateHook() { }", "getFatQuery() {\r\n // CreateLinkPayload type that was defined for us on the server by Relay.Mutation helper we used.\r\n return Relay.QL`\r\n fragment on CreateLinkPayload {\r\n linkEdge,\r\n store { linkConnection }\r\n }\r\n `;\r\n\r\n\r\n // Return a...
[ "0.610299", "0.6061172", "0.6045207", "0.58399636", "0.5786112", "0.5744041", "0.5685876", "0.56543916", "0.56422687", "0.56205964", "0.5589423", "0.5532651", "0.5501301", "0.5501285", "0.5498713", "0.5482457", "0.54822457", "0.544132", "0.543593", "0.53712714", "0.5339754", ...
0.5333415
22
RANGE_DELETE: delete one or more edges between 2 nodes (parentName, parentID, connectionName,deletedIDFieldName) RANGE_ADD: create new node (parentName, parentID, connectionName, edgeName, rangeBehaviors) FIELDS_CHANGE: update node (fieldIDs) NODE_DELETE: delete node (parentName, parentID, connectionName, deletedIDFiel...
getConfigs() { return [{ type: 'FIELDS_CHANGE', fieldIDs: { post: this.props.post.id, }, }] }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function handleNodeDelete(writer, payload, config) {\n\t var recordIDs = payload[config.deletedIDFieldName];\n\t if (!recordIDs) {\n\t // for some mutations, deletions don't always occur so if there's no field\n\t // in the payload, carry on\n\t return;\n\t }\n\n\t if (Array.isArray(recordIDs)) {\n\t ...
[ "0.5501575", "0.5501575", "0.5501575", "0.5447033", "0.53372526", "0.52816916", "0.52656394", "0.516351", "0.50849664", "0.5077025", "0.50615275", "0.50486064", "0.50486064", "0.50047976", "0.49324185", "0.490295", "0.48740354", "0.48675442", "0.4853289", "0.48497155", "0.484...
0.0
-1
Parses an operation within a filter string results: Array of array of operator nodes into which results should be inserted filterString: filter string p: start position within the string Returns the new start position, after the parsed operation
function parseFilterOperation(operators,filterString,p) { var operator, operand, bracketPos; // Skip the starting square bracket if(filterString.charAt(p++) !== "[") { throw "Missing [ in filter expression"; } // Process each operator in turn do { operator = {}; // Check for an operator prefix if(filterSt...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function extractOperation(startPos, inputChangeset){\n var endPos = startPos + 1;\n var operators = \":><$=+-\";\n while(!operators.includes(inputChangeset[endPos]) && endPos<inputChangeset.length){\n endPos++;\n }\n return inputChangeset.slice(startPos,endPos);\n }", "function parseExpressi...
[ "0.6419135", "0.58423793", "0.5788412", "0.5788412", "0.5788412", "0.57044023", "0.5530936", "0.5498372", "0.5430452", "0.5424909", "0.5366403", "0.535175", "0.535175", "0.53461176", "0.53461176", "0.5326696", "0.5326696", "0.5262013", "0.52038133", "0.5178909", "0.51509255",...
0.7835054
0
endregion region Sheet functions
async function sheetAppend(sheets, auth, id, range, values) { await sheets.spreadsheets.values.append({ auth: auth, spreadsheetId: id, range: range, valueInputOption: "USER_ENTERED", resource: { values: [values], } }) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Xlsx() {\n }", "function sheetName() \n{\n return SpreadsheetApp.getActiveSpreadsheet().getActiveSheet().getName();\n}", "function movespecificSheet() {\n //var int = app.prompt('Select Sheet', 'Use int. only', app.ButtonSet.OK_CANCEL)\n // .getResponseText();\n var sheets = ss.getSheets()...
[ "0.6474596", "0.6325308", "0.63058364", "0.6293803", "0.6290111", "0.6286461", "0.6182554", "0.6144511", "0.6113543", "0.59524924", "0.5937617", "0.59269726", "0.5915001", "0.59114313", "0.5902001", "0.58988374", "0.58895344", "0.5887637", "0.5872631", "0.58495605", "0.583527...
0.0
-1
region Get and set
set Channel(value) { this.channel = value }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get set () {\n\t\treturn this._set;\n\t}", "get value() {}", "get value() {}", "get value() { return this._value; }", "get value() { return this._value; }", "get value() { return this._value; }", "get value() { return this._value; }", "get value() { return this._value; }", "get value() { return thi...
[ "0.7015341", "0.68333507", "0.68333507", "0.66647595", "0.66647595", "0.66647595", "0.66647595", "0.66647595", "0.66647595", "0.66647595", "0.66647595", "0.66647595", "0.66630125", "0.6661684", "0.65648496", "0.65648496", "0.65454966", "0.65113926", "0.65113926", "0.6509575", ...
0.0
-1
endregion region Adv functions
function calculateAdv(targetAdv, playerAdv) { var adv = targetAdv + playerAdv if (Math.abs(adv)==2) { adv = adv/2 } return adv }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "smaAdvancing() {\r\n\r\n }", "function IndicadorAntiguedad () {}", "function getAd()\n{\n}", "acc() {\n\t\tlet { x: maxvx, y: maxvy } = display.hedToVec( this.hed, this.mxsd );\n\n\t\tif( this.vx < maxvx ){\n\t\t\tthis.vx += this.ac;\n\t\t} else if( this.vx > maxvx ){\n\t\t\tthis.vx -= this.ac;\n\t\t}\n\n...
[ "0.6503471", "0.60660595", "0.5861248", "0.5748015", "0.57136357", "0.5675453", "0.56526667", "0.5584735", "0.55701786", "0.5555867", "0.5551695", "0.5551695", "0.5551695", "0.55497813", "0.55248016", "0.55048686", "0.54921144", "0.54583085", "0.5444285", "0.54092205", "0.539...
0.5594448
7
endregion region Embed functions
function getCharforgeEmbed(id) { const embed = new Discord.MessageEmbed().setTitle('```Registering```') embed.addField('```' + id + '```', 'Sheet ID') return embed }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ManageEmbed(){}", "function sendEmbed (p) {\n return medal(p);\n}", "function get_embed(data){\n let labeled_embeddings=[];\n let embedding_image=[];\n for (let i =0; i < array_length(data); i=i+1){\n embedding_image=[];\n const embedding_function=data[i][0];\n const lab...
[ "0.7424011", "0.68447083", "0.64811546", "0.62224", "0.5993026", "0.5964464", "0.59611714", "0.59191257", "0.5903357", "0.58996934", "0.5887949", "0.58630884", "0.5782229", "0.5721662", "0.57084906", "0.56951493", "0.56746733", "0.5666497", "0.55841476", "0.5575943", "0.55583...
0.5013013
72
endregion region Charforge functions
async function getUserArrayFromSheet(sheets, auth) { let users = [] let ids = [] let y = 1 //current y value of sheet let cell = 69 while (cell != undefined) { cell = (await sheetGet(sheets, auth, mainId, `A${y}:B${y}`)) if (cell != undefined) { users.push(c...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ConvertChar(c, fname) {\r\n if (c == '�') {\r\n // This is how InDesign handles glyphs in the font that don't have any unicode value... In this case\r\n // we output four zeros, in order to show that it needs inspection (haven't found yet how to convert properly)\r\n return [\"༠༠༠༠\", 0];\r\n ...
[ "0.6276378", "0.6252666", "0.61583906", "0.61221606", "0.6087461", "0.5945065", "0.59350014", "0.592959", "0.5902275", "0.58868366", "0.58868366", "0.58868366", "0.5852886", "0.58118635", "0.58078814", "0.57870466", "0.5554698", "0.5539634", "0.5539091", "0.5525401", "0.55099...
0.0
-1
endregion region Combat functions
function checkForConditions(channel, entityArray) { for(var i = 0; i < entityArray.length; i++) { if (entityArray[i].Conditions.includes(c.unconscious)) { channel.send('`' + entityArray[i].Name + ' is unconcious!`') //entityArray.splice(i, 1) } else if (entityA...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Comic(){}", "function \r\ncTransit(\r\n)\r\n{\t\r\n}", "function Copcar(){}", "function comportement (){\n\t }", "function Comb() {\n this.index = 0;\n this.buffer = [];\n this.filter = 0;\n}", "function Cdr() {\r\n}", "function Cnds() {}", "function CIQ(){}", "function ReadC() {\...
[ "0.63299406", "0.61500514", "0.598765", "0.59007907", "0.576226", "0.5726359", "0.5684814", "0.56823725", "0.56328136", "0.56272316", "0.5626194", "0.5615653", "0.5529373", "0.5527873", "0.5475322", "0.5460111", "0.54599404", "0.54205453", "0.53965807", "0.5380018", "0.537231...
0.0
-1
Listar todos los Repuestos
async ListAllRepuestos() { return await Repuesto.find(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function listarTudo() {\n\t\t\tImpostoService.listarTudo().then(function sucess(result) {\n\t\t\t\tvm.impostos = result.data;\n\t\t\t}, function error(response) {\n\t\t\t\tvm.mensagemErro(response);\n\t\t\t});\n\t\t}", "list (req, res) {\n const data = this._getTodoData(req.user.username)\n\n res.j...
[ "0.6654251", "0.6639196", "0.647406", "0.63837457", "0.6381838", "0.62071", "0.61875576", "0.6155448", "0.61154175", "0.6113812", "0.61077553", "0.61063105", "0.6093054", "0.60701996", "0.6023753", "0.60042506", "0.6004072", "0.5997468", "0.59938496", "0.597876", "0.59677213"...
0.77618587
0
Listar solo un accessorio
async GetOneRepuesto(id) { return await Repuesto.findById(id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getIndiceListe() {\r\n\trequest(\"GET\", \"admin.php?methode=INDICE_liste\" , true, setData);\r\n}", "get listarTareas () {\n\n const arreglo = [];\n\n Object.keys(this._listado).forEach(indice => {\n arreglo.push(this._listado[indice]);\n })\n\n return arreglo;\...
[ "0.59981334", "0.58414054", "0.5738655", "0.57040197", "0.5697937", "0.5624973", "0.56141895", "0.5595251", "0.55422276", "0.5472389", "0.54531807", "0.5452648", "0.5448762", "0.54480505", "0.5414732", "0.54115677", "0.54059225", "0.540461", "0.5391484", "0.5350473", "0.53446...
0.0
-1
Guardar un Repuesto en la base de datos
async StoreRepuesto(myRepuesto) { return await Repuesto.create(myRepuesto); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function guardar(req, res) {\n // declaramos una variable para contener la inscripcion\n let inscripcion = new Inscripcion()\n // requerimos del body cada parte del json y lo guardamos \n inscripcion.nombre_invitado = req.body.nombre_invitado\n inscripcion.email_invitado = req.body.email_invitado\n ...
[ "0.6589767", "0.6418766", "0.6297421", "0.60639197", "0.6038506", "0.598692", "0.59509414", "0.57912236", "0.5775645", "0.5762654", "0.5757936", "0.5755345", "0.5693802", "0.5681322", "0.5681107", "0.5681107", "0.56736785", "0.56639135", "0.5643776", "0.5641212", "0.5630312",...
0.6117774
3
Modificar los datos del producto
async updateRepuesto(id, Repuesto) { return await Repuesto.findByIdAndUpdate(id, Repuesto) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function editData(id) {\n var arr = []; //crea el nuevo arreglo\n data.forEach(function (elemento, key) {\n if (elemento.idVarianteProducto !== id) {\n //miestra el id del producto sea distinto al id escogido...\n arr.push(elemento); //añadira al nuevo array\n }\n });\n setData(...
[ "0.75247955", "0.696678", "0.69633335", "0.69411737", "0.6898873", "0.677063", "0.66438836", "0.6597008", "0.6566236", "0.65272516", "0.65214276", "0.65032697", "0.64971316", "0.64702874", "0.64636934", "0.6394914", "0.6389184", "0.63788086", "0.6364705", "0.63575065", "0.634...
0.0
-1
emit complete message for specified sensor to verify if is necessary
complete(measure) { measures[topics.indexOf(measure)].complete(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function pollSensorSerial() {\n let intervalPoll = setInterval(function () {\n that.stateMachine.sensorPiso.Get_state(function (err, dta) { });\n if(that.stateMachine.isDispense===false){\n clearInterval(intervalPoll);\n intervalPoll = ...
[ "0.5912871", "0.5730911", "0.56901854", "0.5664711", "0.56460285", "0.5556719", "0.5554108", "0.5526668", "0.5504142", "0.5469104", "0.54512244", "0.5433102", "0.54139733", "0.5404655", "0.5403262", "0.5391879", "0.5391404", "0.53846836", "0.5357064", "0.5343476", "0.53298396...
0.5385169
17
measure from config list of available sensor
extract(measure) { var obs = measures[this.topics.indexOf(measure)]; return obs; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getSensorMeasurementValues_drone(sensor, data) {\n var values = [];\n var value = \"\";\n\n switch(sensor) {\n case \"battery\":\n value = \"battery_voltage\";\n break;\n case \"barometer\":\n value = \"barometer_altitude\";\n break;\n ...
[ "0.64707917", "0.6390412", "0.58346045", "0.5709401", "0.5706205", "0.56894696", "0.5639311", "0.5588493", "0.5576296", "0.5562012", "0.5553617", "0.5429804", "0.5421998", "0.54158443", "0.5384881", "0.5379386", "0.5358693", "0.53356946", "0.5330672", "0.5330672", "0.5330672"...
0.0
-1
not sure if works, should complete first?
finalMax(measure) { var subscription = this.extract(measure) .max() .subscribe(x => console.log(x)); return subscription; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "complete() {}", "function done() {}", "private internal function m248() {}", "function loadComplete() {\n cnt--;\n if (!cnt) {\n execComplete();\n }\n }", "function finished(err){\n }", "_com...
[ "0.61195606", "0.60682964", "0.6012365", "0.59161", "0.5813621", "0.57676136", "0.5763324", "0.5705782", "0.5705782", "0.5705782", "0.56318295", "0.5567135", "0.5567135", "0.556403", "0.5563574", "0.5562464", "0.5554915", "0.5553888", "0.5540849", "0.5540849", "0.5540849", ...
0.0
-1
not sure if works
finalMin(measure) { var subscription = this.extract(measure) .min() .subscribe(x => console.log(x)); return subscription; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private internal function m248() {}", "private public function m246() {}", "protected internal function m252() {}", "static private internal function m121() {}", "transient protected internal function m189() {}", "transient private internal function m185() {}", "transient private protected internal fun...
[ "0.6420745", "0.6236171", "0.5975426", "0.5698851", "0.56088555", "0.5493189", "0.5487917", "0.5487051", "0.5330286", "0.53248644", "0.5322314", "0.5276784", "0.5246858", "0.52270126", "0.52270126", "0.51880467", "0.5141129", "0.5088026", "0.50554514", "0.50502574", "0.503893...
0.0
-1
da verificare se restituire subscription o variabili...!!! disjointed buffer it can be done with windowCount too...
avgByElement(measure, number) { var avg; var subscription = this.extract(measure) .bufferCount(number) .subscribe(function (x) { avg = x.reduce(function (tot, elem) { return tot + elem; }) / number; console.log(a...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "_listen(){\n if( this.isDiscretized ) {//for discretized flows...maintain the subscription state for consistency\n var streamers = []; //the order with which we should arrange data in discretized flows\n\n for (let iterator of this.iterators) {\n if (it...
[ "0.60032225", "0.5783171", "0.56026864", "0.54753923", "0.5460601", "0.54373413", "0.5355867", "0.53017575", "0.5192126", "0.51530737", "0.5122483", "0.51216537", "0.510164", "0.5076702", "0.50623786", "0.50576246", "0.505219", "0.50368863", "0.5025163", "0.5000133", "0.49951...
0.49647117
25
overlapped buffer, overlapping = bufdim
avgByElementOverlapped(measure, number, bufdim) { var avg; var subscription = this.extract(measure) .bufferCount(number, bufdim) .subscribe(function (x) { avg = x.reduce(function (tot, elem) { return tot + elem; }) / num; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function prepareBuffer(buffer, position) {\n var j;\n while (buffer[position] == undefined && buffer.length < getMaskLength()) {\n j = 0;\n while (getActiveBufferTemplate()[j] !== undefined) { //add a new buffer\n buffer.pus...
[ "0.5785131", "0.5785131", "0.5785131", "0.57782507", "0.555972", "0.5504756", "0.54851395", "0.54851395", "0.54798716", "0.54798716", "0.54798716", "0.5455623", "0.5455623", "0.54552335", "0.5449407", "0.544466", "0.5436669", "0.5436669", "0.54092056", "0.54092056", "0.535653...
0.0
-1