Skip to content

Commit aeaab53

Browse files
committed
Auto-generated commit
1 parent 617c0be commit aeaab53

File tree

18 files changed

+2191
-13824
lines changed

18 files changed

+2191
-13824
lines changed

CHANGELOG.md

+1,931-13,803
Large diffs are not rendered by default.

CONTRIBUTORS

+1
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ Yaswanth Kosuru <[email protected]>
179179
Yernar Yergaziyev <[email protected]>
180180
Yugal Kaushik <[email protected]>
181181
Yuvi Mittal <[email protected]>
182+
devshree-bhati <[email protected]>
182183
183184
ekambains <[email protected]>
184185
fadiothman22 <[email protected]>

base/accessors/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ var fcns = obj.accessors;
8181
- **idx**: element index.
8282
- **value**: value to set.
8383

84-
- The intent of this function is to provide a minimal abstraction over how elements are accessed when operating on indexed (i.e., array-like objects supporting element accesss via integer indices using bracket `[]` syntax) and accessor (i.e., array-like objects supporting the get/set protocol in which explicit `get` and `set` methods are used for element access) array-like objects.
84+
- The intent of this function is to provide a minimal abstraction over how elements are accessed when operating on indexed (i.e., array-like objects supporting element access via integer indices using bracket `[]` syntax) and accessor (i.e., array-like objects supporting the get/set protocol in which explicit `get` and `set` methods are used for element access) array-like objects.
8585

8686
</section>
8787

base/at/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ The function accepts the following arguments:
7272

7373
## Notes
7474

75-
- If provided an array-like object having an `at` method , the function defers execution to that method and assumes that the method has the following signature:
75+
- If provided an array-like object having an `at` method, the function defers execution to that method and assumes that the method has the following signature:
7676

7777
```text
7878
x.at( index )

base/cusome-by/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ function fcn( value) {
4242
var x = [ 0, 0, 0, 1, 1 ];
4343

4444
var y = cusomeBy( x, 2, fcn );
45-
// returns [ false, false, false , false, true ]
45+
// returns [ false, false, false, false, true ]
4646
```
4747

4848
The invoked `predicate` function is provided three arguments:

base/for-each/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ limitations under the License.
2020

2121
# forEach
2222

23-
> Invoke a callback funcion once for each array element.
23+
> Invoke a callback function once for each array element.
2424
2525
<!-- Section to include introductory text. Make sure to keep an empty line after the intro `section` element and another before the `/section` close. -->
2626

defaults/README.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,14 @@ The returned object has the following properties:
5959
- **floating_point**: default floating-point data type.
6060
- **real_floating_point**: default real-valued floating-point data type.
6161
- **complex_floating_point**: default complex-valued floating-point data type.
62-
- **boolean**: default boolean data type.
6362
- **integer**: default integer data type.
6463
- **signed_integer**: default signed integer data type.
6564
- **unsigned_integer**: default unsigned integer data type.
65+
- **boolean**: default boolean data type.
66+
- **index**: default index data type.
67+
- **integer_index**: default integer index data type.
68+
- **boolean_index**: default boolean index data type.
69+
- **mask_index**: default mask index data type.
6670

6771
#### defaults.get( name )
6872

defaults/docs/repl.txt

+15-3
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,6 @@
2828
out.dtypes.complex_floating_point: string
2929
Default complex-valued floating-point data type.
3030

31-
out.dtypes.boolean: string
32-
Default boolean data type.
33-
3431
out.dtypes.integer: string
3532
Default integer data type.
3633

@@ -40,6 +37,21 @@
4037
out.dtypes.unsigned_integer: string
4138
Default unsigned integer data type.
4239

40+
out.dtypes.boolean: string
41+
Default boolean data type.
42+
43+
out.dtypes.index: string
44+
Default index data type.
45+
46+
out.dtypes.integer_index: string
47+
Default integer index data type.
48+
49+
out.dtypes.boolean_index: string
50+
Default boolean index data type.
51+
52+
out.dtypes.mask_index: string
53+
Default mask index data type.
54+
4355
Examples
4456
--------
4557
> var out = {{alias}}()

defaults/docs/types/index.d.ts

+25-5
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,6 @@ interface DataTypes {
5252
*/
5353
complex_floating_point: 'complex128';
5454

55-
/**
56-
* Default boolean data type.
57-
*/
58-
boolean: 'bool';
59-
6055
/**
6156
* Default integer data type.
6257
*/
@@ -71,6 +66,31 @@ interface DataTypes {
7166
* Default unsigned integer data type.
7267
*/
7368
unsigned_integer: 'uint32';
69+
70+
/**
71+
* Default boolean data type.
72+
*/
73+
boolean: 'bool';
74+
75+
/**
76+
* Default index data type.
77+
*/
78+
index: 'int32';
79+
80+
/**
81+
* Default integer index data type.
82+
*/
83+
integer_index: 'int32';
84+
85+
/**
86+
* Default boolean index data type.
87+
*/
88+
boolean_index: 'bool';
89+
90+
/**
91+
* Default mask index data type.
92+
*/
93+
mask_index: 'uint8';
7494
}
7595

7696
/**

defaults/lib/get.js

+6-2
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,14 @@ var HASH = {
3333
'dtypes.floating_point': DEFAULTS.dtypes.floating_point,
3434
'dtypes.real_floating_point': DEFAULTS.dtypes.real_floating_point,
3535
'dtypes.complex_floating_point': DEFAULTS.dtypes.complex_floating_point,
36-
'dtypes.boolean': DEFAULTS.dtypes.boolean,
3736
'dtypes.integer': DEFAULTS.dtypes.integer,
3837
'dtypes.signed_integer': DEFAULTS.dtypes.signed_integer,
39-
'dtypes.unsigned_integer': DEFAULTS.dtypes.unsigned_integer
38+
'dtypes.unsigned_integer': DEFAULTS.dtypes.unsigned_integer,
39+
'dtypes.boolean': DEFAULTS.dtypes.boolean,
40+
'dtypes.index': DEFAULTS.dtypes.index,
41+
'dtypes.integer_index': DEFAULTS.dtypes.integer_index,
42+
'dtypes.boolean_index': DEFAULTS.dtypes.boolean_index,
43+
'dtypes.mask_index': DEFAULTS.dtypes.mask_index
4044
};
4145

4246

defaults/lib/main.js

+6-2
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,14 @@ function defaults() {
3939
'floating_point': 'float64',
4040
'real_floating_point': 'float64',
4141
'complex_floating_point': 'complex128',
42-
'boolean': 'bool',
4342
'integer': 'int32',
4443
'signed_integer': 'int32',
45-
'unsigned_integer': 'uint32'
44+
'unsigned_integer': 'uint32',
45+
'boolean': 'bool',
46+
'index': 'int32',
47+
'integer_index': 'int32',
48+
'boolean_index': 'bool',
49+
'mask_index': 'uint8'
4650
}
4751
};
4852
}

defaults/test/test.get.js

+10-2
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,11 @@ tape( 'if provided a recognized setting, the function returns a default value',
5454
'dtypes.boolean',
5555
'dtypes.integer',
5656
'dtypes.signed_integer',
57-
'dtypes.unsigned_integer'
57+
'dtypes.unsigned_integer',
58+
'dtypes.index',
59+
'dtypes.integer_index',
60+
'dtypes.boolean_index',
61+
'dtypes.mask_index'
5862
];
5963
expected = [
6064
DEFAULTS.dtypes.default,
@@ -66,7 +70,11 @@ tape( 'if provided a recognized setting, the function returns a default value',
6670
DEFAULTS.dtypes.boolean,
6771
DEFAULTS.dtypes.integer,
6872
DEFAULTS.dtypes.signed_integer,
69-
DEFAULTS.dtypes.unsigned_integer
73+
DEFAULTS.dtypes.unsigned_integer,
74+
DEFAULTS.dtypes.index,
75+
DEFAULTS.dtypes.integer_index,
76+
DEFAULTS.dtypes.boolean_index,
77+
DEFAULTS.dtypes.mask_index
7078
];
7179
for ( i = 0; i < values.length; i++ ) {
7280
actual = get( values[ i ] );

defaults/test/test.main.js

+12
Original file line numberDiff line numberDiff line change
@@ -69,5 +69,17 @@ tape( 'the function returns default settings', function test( t ) {
6969
t.strictEqual( hasOwnProp( o.dtypes, 'unsigned_integer' ), true, 'has property' );
7070
t.strictEqual( typeof o.dtypes.unsigned_integer, 'string', 'returns expected value' );
7171

72+
t.strictEqual( hasOwnProp( o.dtypes, 'index' ), true, 'has property' );
73+
t.strictEqual( typeof o.dtypes.index, 'string', 'returns expected value' );
74+
75+
t.strictEqual( hasOwnProp( o.dtypes, 'integer_index' ), true, 'has property' );
76+
t.strictEqual( typeof o.dtypes.integer_index, 'string', 'returns expected value' );
77+
78+
t.strictEqual( hasOwnProp( o.dtypes, 'boolean_index' ), true, 'has property' );
79+
t.strictEqual( typeof o.dtypes.boolean_index, 'string', 'returns expected value' );
80+
81+
t.strictEqual( hasOwnProp( o.dtypes, 'mask_index' ), true, 'has property' );
82+
t.strictEqual( typeof o.dtypes.mask_index, 'string', 'returns expected value' );
83+
7284
t.end();
7385
});

dtypes/README.md

+5
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,11 @@ The function supports the following data type kinds:
8484
- `real`: real-valued data types.
8585
- `numeric`: numeric data types.
8686
- `typed`: typed data types.
87+
- `integer_index`: integer index data types.
88+
- `boolean_index`: boolean index data types.
89+
- `mask_index`: mask index data types.
90+
- `typed_index`: typed index data types.
91+
- `index`: index data types.
8792
- `all`: all data types.
8893

8994
Additionally, the function supports extending the "kinds" listed above by appending an `_and_generic` suffix to the kind name (e.g., `real_and_generic`).

dtypes/docs/repl.txt

+6-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,12 @@
3030
- unsigned_integer: unsigned integer data types.
3131
- real: real-valued data types.
3232
- numeric: numeric data types.
33-
- typed: "typed" data types.
33+
- typed: typed data types.
34+
- integer_index: integer index data types.
35+
- boolean_index: boolean index data types.
36+
- mask_index: mask index data types.
37+
- typed_index: typed index data types.
38+
- index: index data types.
3439
- all: all data types.
3540

3641
Additionally, the function supports extending the "kinds" listed above by

dtypes/lib/dtypes.json

+20
Original file line numberDiff line numberDiff line change
@@ -88,5 +88,25 @@
8888
"uint32",
8989
"uint8",
9090
"uint8c"
91+
],
92+
"index": [
93+
"int32",
94+
"uint8",
95+
"bool",
96+
"generic"
97+
],
98+
"integer_index": [
99+
"int32"
100+
],
101+
"boolean_index": [
102+
"bool"
103+
],
104+
"mask_index": [
105+
"uint8"
106+
],
107+
"typed_index": [
108+
"int32",
109+
"uint8",
110+
"bool"
91111
]
92112
}

dtypes/lib/main.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ function dtypes() {
5656
kind = arguments[ 0 ];
5757
if ( RE_SUFFIX.test( kind ) ) {
5858
kind = replace( kind, RE_SUFFIX, '' );
59-
if ( kind !== 'all' ) {
59+
if ( kind !== 'all' && kind !== 'index' ) {
6060
FLG = true;
6161
}
6262
}

0 commit comments

Comments
 (0)