id
int64
0
328k
repository_name
stringlengths
7
58
file_path
stringlengths
9
302
class_name
stringlengths
5
256
human_written_code
stringlengths
16
2.16M
class_skeleton
stringlengths
18
1.49M
total_program_units
int64
1
1.76k
total_doc_str
int64
0
771
AvgCountLine
float64
0
7.89k
AvgCountLineBlank
float64
0
297
AvgCountLineCode
float64
0
7.89k
AvgCountLineComment
float64
0
7.89k
AvgCyclomatic
float64
0
130
CommentToCodeRatio
float64
0
168
CountClassBase
float64
0
40
CountClassCoupled
float64
0
583
CountClassCoupledModified
float64
0
575
CountClassDerived
float64
0
5.35k
CountDeclInstanceMethod
float64
0
529
CountDeclInstanceVariable
float64
0
296
CountDeclMethod
float64
0
599
CountDeclMethodAll
float64
0
1.12k
CountLine
float64
1
40.4k
CountLineBlank
float64
0
8.16k
CountLineCode
float64
1
25.7k
CountLineCodeDecl
float64
1
8.15k
CountLineCodeExe
float64
0
24.2k
CountLineComment
float64
0
16.5k
CountStmt
float64
1
9.71k
CountStmtDecl
float64
1
8.15k
CountStmtExe
float64
0
9.69k
MaxCyclomatic
float64
0
759
MaxInheritanceTree
float64
0
16
MaxNesting
float64
0
34
SumCyclomatic
float64
0
2.9k
325,300
ExpediaGroup/kamae
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ExpediaGroup_kamae/src/kamae/spark/transformers/array_concatenate.py
kamae.spark.transformers.array_concatenate.ArrayConcatenateTransformer
import tensorflow as tf from typing import List, Optional from pyspark import keyword_only from pyspark.sql.types import ArrayType, DataType from kamae.spark.params import AutoBroadcastParams, MultiInputSingleOutputParams from kamae.tensorflow.layers import ArrayConcatenateLayer from pyspark.sql import Column, DataFram...
class ArrayConcatenateTransformer(BaseTransformer, MultiInputSingleOutputParams, AutoBroadcastParams): ''' ArrayConcatenate Spark Transformer for use in Spark pipelines. This transformer assembles multiple columns into a single array column. ''' @keyword_only def __init__(self, inputCols: Optio...
9
6
47
3
19
25
1
1.25
3
7
1
0
4
0
5
60
253
19
104
39
80
130
32
20
26
3
6
1
7
325,301
ExpediaGroup/kamae
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ExpediaGroup_kamae/src/kamae/spark/transformers/array_crop.py
kamae.spark.transformers.array_crop.ArrayCropParams
from pyspark.ml.param import Param, TypeConverters from kamae.spark.params import PadValueParams, SingleInputSingleOutputParams class ArrayCropParams(PadValueParams): """ Mixin class containing pad value parameters needed for array crop transformers. """ arrayLength = Param(PadValueParams._dummy(),...
class ArrayCropParams(PadValueParams): ''' Mixin class containing pad value parameters needed for array crop transformers. ''' def setArrayLength(self, value: int) -> 'ArrayCropParams': ''' Sets the parameter array length to the given value. :param value: array length. ...
3
3
8
0
3
5
2
1
1
2
0
1
2
0
2
4
29
3
13
4
10
13
8
4
5
2
2
1
3
325,302
ExpediaGroup/kamae
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ExpediaGroup_kamae/src/kamae/spark/transformers/array_crop.py
kamae.spark.transformers.array_crop.ArrayCropTransformer
import pyspark.sql.functions as F from pyspark.sql.types import BooleanType, DataType, FloatType, IntegerType, StringType from kamae.spark.utils import get_array_nesting_level_and_element_dtype, single_input_single_output_array_transform import tensorflow as tf from kamae.spark.params import PadValueParams, SingleInput...
class ArrayCropTransformer(BaseTransformer, SingleInputSingleOutputParams, ArrayCropParams): ''' Transformer that reshapes arrays into consistent shapes by either cropping or padding. If the tensor is shorter than the specified length, it is padded with specified pad value. ''' @keyword_onl...
9
5
27
1
15
11
2
0.78
3
8
1
0
4
1
5
62
153
11
80
28
58
62
28
12
22
5
6
1
10
325,303
ExpediaGroup/kamae
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ExpediaGroup_kamae/src/kamae/spark/transformers/array_split.py
kamae.spark.transformers.array_split.ArraySplitTransformer
from .base import BaseTransformer import pyspark.sql.functions as F from pyspark.sql import DataFrame from kamae.spark.utils import single_input_single_output_array_transform from kamae.tensorflow.layers import ArraySplitLayer from pyspark.sql.types import DataType from pyspark import keyword_only from kamae.spark.para...
class ArraySplitTransformer(BaseTransformer, SingleInputMultiOutputParams): ''' ArraySplit Spark Transformer for use in Spark pipelines. This transformer splits an array column into multiple columns. ''' @keyword_only def __init__(self, inputCol: Optional[str]=None, outputCols: Optional[List[st...
7
5
17
1
9
7
1
0.8
2
4
1
0
4
0
4
57
82
8
41
24
24
33
18
12
13
2
6
1
5
325,304
ExpediaGroup/kamae
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ExpediaGroup_kamae/src/kamae/spark/transformers/array_subtract_minimum.py
kamae.spark.transformers.array_subtract_minimum.ArraySubtractMinimumParams
from pyspark.ml.param import Param, Params, TypeConverters class ArraySubtractMinimumParams(Params): """ Mixin class containing pad value parameters needed for array subtract min transformers. """ padValue = Param(Params._dummy(), 'padValue', 'The value to be considered as padding. Defaults to `Non...
class ArraySubtractMinimumParams(Params): ''' Mixin class containing pad value parameters needed for array subtract min transformers. ''' def setPadValue(self, value: float) -> 'ArraySubtractMinimumParams': ''' Sets the parameter pad value to the given value. :param value: ...
3
3
8
1
2
5
1
1.18
1
1
0
1
2
0
2
2
29
5
11
4
8
13
6
4
3
1
1
0
2
325,305
ExpediaGroup/kamae
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ExpediaGroup_kamae/src/kamae/spark/transformers/array_subtract_minimum.py
kamae.spark.transformers.array_subtract_minimum.ArraySubtractMinimumTransformer
import tensorflow as tf from typing import List, Optional import pyspark.sql.functions as F from kamae.spark.utils import single_input_single_output_array_transform from kamae.tensorflow.layers import ArraySubtractMinimumLayer from pyspark.sql.types import ArrayType, ByteType, DataType, DoubleType, FloatType, IntegerTy...
class ArraySubtractMinimumTransformer(BaseTransformer, SingleInputSingleOutputParams, ArraySubtractMinimumParams): ''' ArraySubtractMinimumTransformer that computes the difference within an array from the minimum non-paded element in the input tensor. The calculation preserves the pad value elements. ...
8
5
24
1
13
9
1
0.85
3
5
1
0
4
0
4
59
125
12
61
24
41
52
21
10
15
2
6
1
7
325,306
ExpediaGroup/kamae
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ExpediaGroup_kamae/src/kamae/spark/transformers/base.py
kamae.spark.transformers.base.BaseTransformer
from pyspark.sql import DataFrame from abc import abstractmethod from pyspark.ml import Transformer import tensorflow as tf from kamae.spark.common import SparkOperation from typing import TYPE_CHECKING, Any, Dict, List, Optional, Union class BaseTransformer(Transformer, SparkOperation): """ Abstract class for...
class BaseTransformer(Transformer, SparkOperation): ''' Abstract class for all transformers. ''' def __init__(self) -> None: ''' Initializes the transformer. ''' pass def transform(self, dataset: DataFrame, params: Optional['ParamMap']=None) -> DataFrame: ...
6
5
20
2
12
7
1
0.6
2
5
0
70
4
1
4
48
88
11
48
13
40
29
21
8
16
2
5
1
5
325,307
ExpediaGroup/kamae
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ExpediaGroup_kamae/src/kamae/spark/transformers/bearing_angle.py
kamae.spark.transformers.bearing_angle.BearingAngleParams
from kamae.spark.params import LatLonConstantParams, MultiInputSingleOutputParams from typing import List, Optional class BearingAngleParams(LatLonConstantParams, MultiInputSingleOutputParams): """ Mixin class setting input cols. """ def setInputCols(self, value: List[str]) -> 'BearingAngleParams': ...
class BearingAngleParams(LatLonConstantParams, MultiInputSingleOutputParams): ''' Mixin class setting input cols. ''' def setInputCols(self, value: List[str]) -> 'BearingAngleParams': ''' Overrides setting the input columns for the transformer. Throws an error if we do not ...
2
2
20
0
13
7
3
0.71
2
2
0
1
1
0
1
16
25
1
14
2
12
10
6
2
4
3
4
1
3
325,308
ExpediaGroup/kamae
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ExpediaGroup_kamae/src/kamae/spark/transformers/bearing_angle.py
kamae.spark.transformers.bearing_angle.BearingAngleTransformer
from pyspark.sql.types import DataType, DoubleType, FloatType from kamae.tensorflow.layers import BearingAngleLayer import math import pyspark.sql.functions as F from typing import List, Optional from kamae.spark.utils import multi_input_single_output_scalar_transform from pyspark.sql import Column, DataFrame import te...
class BearingAngleTransformer(BaseTransformer, BearingAngleParams): ''' Bearing Angle Calculator Spark Transformer for use in Spark pipelines. This transformer computes the bearing angle between two lat/lon pairs. This can be between four columns (one for each lat/lon) or between two columns and a ...
13
8
22
1
13
8
1
0.77
2
5
1
0
5
0
7
63
171
15
88
42
62
68
39
25
30
2
6
1
10
325,309
ExpediaGroup/kamae
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ExpediaGroup_kamae/src/kamae/spark/transformers/bin.py
kamae.spark.transformers.bin.BinParams
from pyspark.ml.param import Param, Params, TypeConverters from typing import Any, List, Optional, Union class BinParams(Params): """ Mixin class containing parameters needed for Bin transform layers. """ conditionOperators = Param(Params._dummy(), 'conditionOperators', 'Operators to use in condition: ...
class BinParams(Params): ''' Mixin class containing parameters needed for Bin transform layers. ''' def _check_params_size(self, param_name: str, param_value: List[Any]) -> None: ''' Checks that the length of the given parameter is the same as the length of the other parame...
10
10
11
1
4
6
1
1.02
1
5
0
1
9
0
9
9
144
23
60
17
50
61
34
17
24
4
1
3
13
325,310
ExpediaGroup/kamae
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ExpediaGroup_kamae/src/kamae/spark/transformers/bin.py
kamae.spark.transformers.bin.BinTransformer
import pyspark.sql.functions as F from pyspark.sql import Column, DataFrame from kamae.spark.params import SingleInputSingleOutputParams from kamae.tensorflow.layers import BinLayer from typing import Any, List, Optional, Union from pyspark.sql.types import ByteType, DataType, DoubleType, FloatType, IntegerType, LongTy...
class BinTransformer(BaseTransformer, SingleInputSingleOutputParams, BinParams): ''' Bin Spark Transformer for use in Spark pipelines. This transformer performs a binning operation on a column in a Spark dataframe. The binning operation is performed by comparing the input column to a list of values...
8
6
26
2
13
12
1
0.89
3
6
1
0
4
0
4
66
134
13
64
32
41
57
22
15
16
2
6
1
6
325,311
ExpediaGroup/kamae
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ExpediaGroup_kamae/src/kamae/spark/transformers/bloom_encode.py
kamae.spark.transformers.bloom_encode.BloomEncodeParams
from kamae.spark.params import HashIndexParams, SingleInputSingleOutputParams from pyspark.ml.param import Param, Params, TypeConverters class BloomEncodeParams(HashIndexParams): """ Mixin class containing parameters needed for bloom encoding. """ numHashFns = Param(Params._dummy(), 'numHashFns', 'Numb...
class BloomEncodeParams(HashIndexParams): ''' Mixin class containing parameters needed for bloom encoding. ''' def setNumHashFns(self, value: int) -> 'BloomEncodeParams': ''' Sets the `numHashFns` parameter. ''' pass def getNumHashFns(self) -> int: ''' ...
8
8
7
0
4
3
2
0.55
1
3
0
1
7
0
7
11
78
10
44
11
36
24
25
11
17
3
2
1
11
325,312
ExpediaGroup/kamae
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ExpediaGroup_kamae/src/kamae/spark/transformers/bloom_encode.py
kamae.spark.transformers.bloom_encode.BloomEncodeTransformer
from pyspark import keyword_only from kamae.spark.params import HashIndexParams, SingleInputSingleOutputParams from pyspark.sql import Column, DataFrame import tensorflow as tf from kamae.tensorflow.layers import BloomEncodeLayer from pyspark.sql.types import ArrayType, DataType, IntegerType, StringType from typing imp...
class BloomEncodeTransformer(BaseTransformer, BloomEncodeParams, SingleInputSingleOutputParams): ''' Bloom encoder Spark Transformer for use in Spark pipelines. This transformer performs bloom encoding on the input column resulting in an array of integers of size equal to numHashFns. See paper for ...
9
6
25
1
13
11
1
0.87
3
8
1
0
5
0
5
69
155
13
76
31
51
66
23
13
16
2
6
1
8
325,313
ExpediaGroup/kamae
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ExpediaGroup_kamae/src/kamae/spark/transformers/bucketize.py
kamae.spark.transformers.bucketize.BucketizeParams
from typing import List, Optional, Union from pyspark.ml.param import Param, Params, TypeConverters class BucketizeParams(Params): """ Mixin class containing splits parameter needed for bucketing. """ splits = Param(Params._dummy(), 'splits', 'List of split points for bucketing.', typeConverter=TypeCon...
class BucketizeParams(Params): ''' Mixin class containing splits parameter needed for bucketing. ''' @staticmethod def check_splits_sorted(splits: List[float]) -> None: ''' Checks that the splits parameter is sorted. :param splits: List of float values to use for bucketi...
5
4
8
1
3
4
1
1
1
2
0
1
2
0
3
3
39
7
16
6
11
16
10
5
6
2
1
1
4
325,314
ExpediaGroup/kamae
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ExpediaGroup_kamae/src/kamae/spark/transformers/bucketize.py
kamae.spark.transformers.bucketize.BucketizeTransformer
import pyspark.sql.functions as F from pyspark import keyword_only from .base import BaseTransformer from kamae.spark.utils.transform_utils import single_input_single_output_scalar_udf_transform from kamae.spark.params import SingleInputSingleOutputParams import tensorflow as tf from typing import List, Optional, Union...
class BucketizeTransformer(BaseTransformer, BucketizeParams, SingleInputSingleOutputParams): ''' BucketizeLayer Spark Transformer for use in Spark pipelines. This transformer buckets a numerical column into bins. Buckets will be created based on the splits parameter. The bins are integer values sta...
8
5
17
1
9
7
1
0.83
3
5
1
0
4
0
4
60
97
11
47
24
27
39
18
10
12
2
6
1
6
325,315
ExpediaGroup/kamae
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ExpediaGroup_kamae/src/kamae/spark/transformers/conditional_standard_scale.py
kamae.spark.transformers.conditional_standard_scale.ConditionalStandardScaleTransformer
from kamae.spark.params import SingleInputSingleOutputParams, StandardScaleSkipZerosParams from kamae.spark.utils.transform_utils import single_input_single_output_array_transform from pyspark import keyword_only import pyspark.sql.functions as F from pyspark.sql import DataFrame from pyspark.sql.types import ArrayType...
class ConditionalStandardScaleTransformer(BaseTransformer, StandardScaleParams, StandardScaleSkipZerosParams, SingleInputSingleOutputParams): ''' Conditional standard scaler transformer for use in Spark pipelines. This is used to standardize/transform the input column using the mean and the standard de...
9
5
28
1
16
12
2
0.8
4
5
1
0
4
0
4
67
134
10
70
34
47
56
29
16
24
5
6
1
8
325,316
ExpediaGroup/kamae
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ExpediaGroup_kamae/src/kamae/spark/transformers/cosine_similarity.py
kamae.spark.transformers.cosine_similarity.CosineSimilarityTransformer
from kamae.tensorflow.layers import CosineSimilarityLayer from typing import List, Optional from .base import BaseTransformer import pyspark.sql.functions as F from pyspark.sql.types import ArrayType, DataType, DoubleType, FloatType from pyspark.sql import Column, DataFrame from pyspark import keyword_only from kamae.s...
class CosineSimilarityTransformer(BaseTransformer, MultiInputSingleOutputParams): ''' Cosine Similarity Spark Transformer for use in Spark pipelines. This transformer computes the cosine similarity between two array columns. ''' @keyword_only def __init__(self, inputCols: Optional[List[str]]=No...
10
6
17
1
11
5
1
0.59
2
5
1
0
5
0
5
58
124
14
69
25
49
41
25
13
17
2
6
1
9
325,317
ExpediaGroup/kamae
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ExpediaGroup_kamae/src/kamae/spark/transformers/current_date.py
kamae.spark.transformers.current_date.CurrentDateTransformer
from pyspark import keyword_only import tensorflow as tf from pyspark.sql.types import DataType from kamae.spark.params import SingleInputSingleOutputParams from kamae.tensorflow.layers import CurrentDateLayer from typing import List, Optional from kamae.spark.transformers.base import BaseTransformer from kamae.spark.u...
class CurrentDateTransformer(BaseTransformer, SingleInputSingleOutputParams): ''' Returns the current UTC date in yyyy-MM-dd format. ''' @keyword_only def __init__(self, inputCol: Optional[str]=None, outputCol: Optional[str]=None, inputDtype: Optional[str]=None, outputDtype: Optional[str]=None, lay...
8
6
19
2
8
10
1
1.19
2
3
1
0
4
1
4
57
94
13
37
21
22
44
18
12
12
1
6
0
5
325,318
ExpediaGroup/kamae
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ExpediaGroup_kamae/src/kamae/spark/transformers/current_date_time.py
kamae.spark.transformers.current_date_time.CurrentDateTimeTransformer
from typing import List, Optional from kamae.tensorflow.layers import CurrentDateTimeLayer import pyspark.sql.functions as F from kamae.spark.utils import single_input_single_output_scalar_transform from kamae.spark.params import SingleInputSingleOutputParams import tensorflow as tf from kamae.spark.transformers.base i...
class CurrentDateTimeTransformer(BaseTransformer, SingleInputSingleOutputParams): ''' Returns the current UTC datetime in yyyy-MM-dd HH:mm:ss.SSS format. NOTE: Parity between this and its TensorFlow counterpart is very difficult at the millisecond level. We have to round the TensorFlow timestamp to the...
8
6
21
2
9
10
1
1.23
2
3
1
0
4
1
4
57
104
15
40
21
25
49
18
12
12
1
6
0
5
325,319
ExpediaGroup/kamae
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ExpediaGroup_kamae/src/kamae/spark/transformers/current_unix_timestamp.py
kamae.spark.transformers.current_unix_timestamp.CurrentUnixTimestampTransformer
from kamae.spark.params import SingleInputSingleOutputParams, UnixTimestampParams import pyspark.sql.functions as F from pyspark import keyword_only from kamae.spark.utils import single_input_single_output_scalar_transform from kamae.spark.transformers.base import BaseTransformer from kamae.tensorflow.layers import Cur...
class CurrentUnixTimestampTransformer(BaseTransformer, SingleInputSingleOutputParams, UnixTimestampParams): ''' Returns the current unix timestamp in either seconds or milliseconds. NOTE: Parity between this and its TensorFlow counterpart is very difficult at the millisecond level. TensorFlow provides ...
8
6
23
2
12
9
1
0.94
3
3
1
0
4
0
4
59
111
14
50
26
32
47
21
14
15
2
6
0
6
325,320
ExpediaGroup/kamae
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ExpediaGroup_kamae/src/kamae/spark/transformers/date_add.py
kamae.spark.transformers.date_add.DateAddTransformer
from pyspark.sql import DataFrame import tensorflow as tf import pyspark.sql.functions as F from kamae.spark.params import MultiInputSingleOutputParams, SingleInputSingleOutputParams from kamae.spark.utils import get_element_type, multi_input_single_output_scalar_transform from pyspark import keyword_only from pyspark....
class DateAddTransformer(BaseTransformer, SingleInputSingleOutputParams, MultiInputSingleOutputParams, DateAdditionParams): ''' Transformer to add or subtract a static or dynamic (column) number of days from a date column. WARNING: This transform destroys the time component of the date column. ''' ...
9
7
22
1
13
8
2
0.59
4
5
1
0
6
0
6
62
149
14
85
30
62
50
34
14
27
4
6
1
12
325,321
ExpediaGroup/kamae
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ExpediaGroup_kamae/src/kamae/spark/transformers/date_add.py
kamae.spark.transformers.date_add.DateAdditionParams
from pyspark.ml.param import Param, Params, TypeConverters class DateAdditionParams(Params): """ Mixin class for a date addition transformer. """ numDays = Param(Params._dummy(), 'numDays', 'Number of days to add/subtract. Negative values subtract.', typeConverter=TypeConverters.toInt) def getNumD...
class DateAdditionParams(Params): ''' Mixin class for a date addition transformer. ''' def getNumDays(self) -> int: ''' Gets the value of the numDays parameter. :returns: Number of days to add/subtract. ''' pass def setNumDays(self, value: int) -> 'Date...
3
3
9
1
3
5
2
0.92
1
2
0
1
2
0
2
2
30
5
13
4
10
12
8
4
5
2
1
1
3
325,322
ExpediaGroup/kamae
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ExpediaGroup_kamae/src/kamae/spark/transformers/date_diff.py
kamae.spark.transformers.date_diff.DateDiffTransformer
import pyspark.sql.functions as F from typing import List, Optional from pyspark.sql import Column, DataFrame from kamae.spark.params import DefaultIntValueParams, MultiInputSingleOutputParams from .base import BaseTransformer from kamae.spark.utils import multi_input_single_output_scalar_transform import tensorflow as...
class DateDiffTransformer(BaseTransformer, MultiInputSingleOutputParams, DefaultIntValueParams): ''' DateDiffLayer Spark Transformer for use in Spark pipelines. This transformer calculates the difference between two dates. ''' @keyword_only def __init__(self, inputCols: Optional[List[str]]=None...
9
6
18
1
10
7
1
0.74
3
5
1
0
5
0
5
60
114
13
58
26
37
43
24
12
17
2
6
1
8
325,323
ExpediaGroup/kamae
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ExpediaGroup_kamae/src/kamae/spark/transformers/date_parse.py
kamae.spark.transformers.date_parse.DateParseParams
from kamae.spark.params import DefaultIntValueParams, SingleInputSingleOutputParams from pyspark.ml.param import Param, Params, TypeConverters class DateParseParams(DefaultIntValueParams): """ Mixin class for a date part. """ datePart = Param(Params._dummy(), 'datePart', 'Date part to extract from date...
class DateParseParams(DefaultIntValueParams): ''' Mixin class for a date part. ''' def getDatePart(self) -> str: ''' Gets the value of the datePart parameter. :returns: Date part to extract from date. ''' pass def setDatePart(self, value: str) -> 'DateP...
3
3
17
3
10
5
2
0.46
1
2
0
1
2
0
2
4
46
8
26
5
23
12
9
5
6
2
2
1
3
325,324
ExpediaGroup/kamae
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ExpediaGroup_kamae/src/kamae/spark/transformers/date_parse.py
kamae.spark.transformers.date_parse.DateParseTransformer
from kamae.spark.utils import single_input_single_output_scalar_transform from pyspark.sql import Column, DataFrame from pyspark import keyword_only import tensorflow as tf from kamae.tensorflow.layers import DateParseLayer from typing import List, Optional from itertools import chain from kamae.spark.params import Def...
class DateParseTransformer(BaseTransformer, SingleInputSingleOutputParams, DateParseParams): ''' Date parse transform layer. This layer parses a date(time) column into a specified date part. We require the date format to be yyyy-MM-dd (HH:mm:ss.SSS). Date parts can be one of the following: - `D...
9
6
22
3
13
6
2
0.68
3
6
1
0
5
0
5
62
154
23
78
28
58
53
29
15
22
2
6
1
9
325,325
ExpediaGroup/kamae
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ExpediaGroup_kamae/src/kamae/spark/transformers/date_time_to_unix_timestamp.py
kamae.spark.transformers.date_time_to_unix_timestamp.DateTimeToUnixTimestampTransformer
import tensorflow as tf import pyspark.sql.functions as F from kamae.spark.utils import single_input_single_output_scalar_transform from kamae.spark.transformers.base import BaseTransformer from pyspark import keyword_only from typing import List, Optional from kamae.tensorflow.layers import DateTimeToUnixTimestampLaye...
class DateTimeToUnixTimestampTransformer(BaseTransformer, SingleInputSingleOutputParams, UnixTimestampParams): ''' Transformer that converts a datetime string to a unix timestamp. The unix timestamp can be in milliseconds or seconds, set by the `unit` parameter. ''' @keyword_only def __init__(s...
8
6
25
2
12
12
1
0.92
3
3
1
0
4
0
4
59
113
13
52
28
34
48
23
16
17
1
6
0
5
325,326
ExpediaGroup/kamae
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ExpediaGroup_kamae/src/kamae/spark/transformers/divide.py
kamae.spark.transformers.divide.DivideTransformer
from typing import List, Optional from functools import reduce from kamae.spark.utils import multi_input_single_output_scalar_transform from pyspark import keyword_only import pyspark.sql.functions as F import tensorflow as tf from pyspark.sql import Column, DataFrame from kamae.spark.params import MathFloatConstantPar...
class DivideTransformer(BaseTransformer, SingleInputSingleOutputParams, MultiInputSingleOutputParams, MathFloatConstantParams): ''' DivideLayer Spark Transformer for use in Spark pipelines. This transformer divides a column by a constant or another column. ''' @keyword_only def __init__(self, i...
8
6
19
1
9
8
1
0.81
4
4
1
0
4
0
4
61
104
10
52
27
30
42
18
11
12
1
6
0
5
325,327
ExpediaGroup/kamae
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ExpediaGroup_kamae/src/kamae/spark/transformers/exp.py
kamae.spark.transformers.exp.ExpTransformer
from kamae.tensorflow.layers import ExpLayer from .base import BaseTransformer from kamae.spark.utils import single_input_single_output_scalar_transform from pyspark import keyword_only from kamae.spark.params import SingleInputSingleOutputParams from typing import List, Optional import tensorflow as tf from pyspark.sq...
class ExpTransformer(BaseTransformer, SingleInputSingleOutputParams): ''' exp value Spark Transformer for use in Spark pipelines. This transformer applies exp(x) operation to the input. ''' @keyword_only def __init__(self, inputCol: Optional[str]=None, outputCol: Optional[str]=None, inputDtype:...
7
5
15
1
7
7
1
0.91
2
3
1
0
4
0
4
57
75
8
35
20
18
32
13
8
8
1
6
0
4
325,328
ExpediaGroup/kamae
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ExpediaGroup_kamae/src/kamae/spark/transformers/exponent.py
kamae.spark.transformers.exponent.ExponentParams
from pyspark.ml.param import Param, Params, TypeConverters class ExponentParams(Params): """ Mixin class containing alpha parameter needed for exponent transform layers. """ exponent = Param(Params._dummy(), 'exponent', 'Value to use in exponent transform: x^exponent', typeConverter=TypeConverters.toFl...
class ExponentParams(Params): ''' Mixin class containing alpha parameter needed for exponent transform layers. ''' def setExponent(self, value: float) -> 'ExponentParams': ''' Sets the exponent parameter. :param value: Float value to use in exponent transform: x^exponent. ...
3
3
8
1
2
5
1
1.09
1
1
0
1
2
0
2
2
28
5
11
4
8
12
6
4
3
1
1
0
2
325,329
ExpediaGroup/kamae
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ExpediaGroup_kamae/src/kamae/spark/transformers/exponent.py
kamae.spark.transformers.exponent.ExponentTransformer
from pyspark import keyword_only from .base import BaseTransformer from kamae.spark.utils import multi_input_single_output_scalar_transform from kamae.tensorflow.layers import ExponentLayer from pyspark.sql import DataFrame from pyspark.sql.types import DataType, DoubleType, FloatType import tensorflow as tf from kamae...
class ExponentTransformer(BaseTransformer, SingleInputSingleOutputParams, MultiInputSingleOutputParams, ExponentParams): ''' Exponent Spark Transformer for use in Spark pipelines. This transformer applies x^exponent in the case of single input and or x^y in the case of two inputs. ''' @keyword_...
8
6
20
1
10
9
1
0.88
4
5
1
0
5
0
5
61
119
12
57
27
35
50
20
11
14
2
6
1
6
325,330
ExpediaGroup/kamae
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ExpediaGroup_kamae/src/kamae/spark/transformers/hash_index.py
kamae.spark.transformers.hash_index.HashIndexTransformer
from pyspark.sql.types import DataType, IntegerType, StringType from kamae.tensorflow.layers import HashIndexLayer import tensorflow as tf from pyspark import keyword_only import pyspark.sql.functions as F from .base import BaseTransformer from kamae.spark.params import HashIndexParams, SingleInputSingleOutputParams fr...
class HashIndexTransformer(BaseTransformer, HashIndexParams, SingleInputSingleOutputParams): ''' Hash indexer Spark Transformer for use in Spark pipelines. This transformer hashes the input column and then bins it into the specified number of bins using modulo arithmetic. NOTE: If your data contain...
7
5
19
2
10
8
1
0.83
3
4
1
0
4
0
4
61
97
11
47
25
27
39
16
10
11
1
6
0
4
325,331
ExpediaGroup/kamae
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ExpediaGroup_kamae/src/kamae/spark/transformers/haversine_distance.py
kamae.spark.transformers.haversine_distance.HaversineDistanceParams
from pyspark.ml.param import Param, Params, TypeConverters from kamae.spark.params import LatLonConstantParams, MultiInputSingleOutputParams from typing import List, Optional class HaversineDistanceParams(LatLonConstantParams, MultiInputSingleOutputParams): """ Mixin class containing unit parameters. """ ...
class HaversineDistanceParams(LatLonConstantParams, MultiInputSingleOutputParams): ''' Mixin class containing unit parameters. ''' def setUnit(self, value: str) -> 'HaversineDistanceParams': ''' Sets the unit parameter. :param value: The unit to use for the distance calcula...
4
4
12
0
6
5
2
0.7
2
2
0
1
3
0
3
18
50
4
27
5
23
19
13
5
9
3
4
1
6
325,332
ExpediaGroup/kamae
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ExpediaGroup_kamae/src/kamae/spark/transformers/haversine_distance.py
kamae.spark.transformers.haversine_distance.HaversineDistanceTransformer
from .base import BaseTransformer import pyspark.sql.functions as F from pyspark.sql.types import DataType, DoubleType, FloatType from typing import List, Optional from kamae.tensorflow.layers import HaversineDistanceLayer from pyspark.sql import Column, DataFrame from kamae.spark.utils import multi_input_single_output...
class HaversineDistanceTransformer(BaseTransformer, HaversineDistanceParams): ''' Haversine Distance Spark Transformer for use in Spark pipelines. This transformer computes the haversine distance between two lat/lon pairs. This can be between four columns (one for each lat/lon) or between two columns ...
13
8
23
3
13
8
1
0.74
2
5
1
0
5
1
7
65
185
25
92
45
65
68
39
27
30
2
6
1
11
325,333
ExpediaGroup/kamae
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ExpediaGroup_kamae/src/kamae/spark/transformers/identity.py
kamae.spark.transformers.identity.IdentityTransformer
from kamae.spark.params import SingleInputSingleOutputParams from pyspark.sql.types import DataType from pyspark.sql import DataFrame from pyspark import keyword_only from .base import BaseTransformer from typing import List, Optional import pyspark.sql.functions as F from kamae.tensorflow.layers import IdentityLayer i...
class IdentityTransformer(BaseTransformer, SingleInputSingleOutputParams): ''' IdentityLayer Spark Transformer for use in Spark pipelines. This transformer simply passes the input to the output unchanged. Used for cases where you want to keep the input the same. ''' @keyword_only def __init...
7
5
14
1
5
8
1
1.33
2
3
1
0
4
0
4
57
71
8
27
18
10
36
11
6
6
1
6
0
4
325,334
ExpediaGroup/kamae
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ExpediaGroup_kamae/src/kamae/spark/transformers/if_statement.py
kamae.spark.transformers.if_statement.IfStatementParams
from numbers import Number from pyspark.ml.param import Param, Params, TypeConverters from typing import List, Optional, Union class IfStatementParams(Params): """ Mixin class containing parameters needed for IfStatementTransformer transform layers. """ conditionOperator = Param(Params._dummy(), 'c...
class IfStatementParams(Params): ''' Mixin class containing parameters needed for IfStatementTransformer transform layers. ''' def setConditionOperator(self, value: str) -> 'IfStatementParams': ''' Sets the conditionOperator parameter. :param value: String value describing ...
9
9
13
1
6
6
1
0.74
1
7
0
1
8
0
8
8
142
20
70
20
55
52
28
14
19
3
1
1
11
325,335
ExpediaGroup/kamae
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ExpediaGroup_kamae/src/kamae/spark/transformers/if_statement.py
kamae.spark.transformers.if_statement.IfStatementTransformer
from pyspark.sql import Column, DataFrame from .base import BaseTransformer from pyspark import keyword_only from pyspark.sql.types import DataType from kamae.spark.params import MultiInputSingleOutputParams, SingleInputSingleOutputParams from kamae.utils import get_condition_operator import tensorflow as tf from typin...
class IfStatementTransformer(BaseTransformer, SingleInputSingleOutputParams, MultiInputSingleOutputParams, IfStatementParams): ''' IfStatement Spark Transformer for use in Spark pipelines. This transformer computes an if statement between a set of constants and columns. ''' @keyword_only de...
9
7
34
2
19
12
2
0.65
4
7
1
0
6
0
6
68
220
19
122
40
96
79
44
21
37
7
6
3
14
325,336
ExpediaGroup/kamae
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ExpediaGroup_kamae/src/kamae/spark/transformers/impute.py
kamae.spark.transformers.impute.ImputeParams
from typing import List, Optional, Union from pyspark.ml.param import Param, Params, TypeConverters class ImputeParams(Params): """ Mixin class used to provide imputation and mask value needed for imputation. """ imputeValue = Param(Params._dummy(), 'imputeValue', 'Value to be imputed.', typeConverter=...
class ImputeParams(Params): ''' Mixin class used to provide imputation and mask value needed for imputation. ''' def setImputeValue(self, value: Union[float, int, str]) -> 'ImputeParams': ''' Sets the parameter imputeValue to the given scalar value. :param value: List of im...
5
5
8
1
3
5
1
0.81
1
4
0
1
4
0
4
4
56
9
26
7
21
21
13
7
8
2
1
1
5
325,337
ExpediaGroup/kamae
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ExpediaGroup_kamae/src/kamae/spark/transformers/impute.py
kamae.spark.transformers.impute.ImputeTransformer
from pyspark.sql import DataFrame from pyspark.sql.types import DataType from pyspark import keyword_only from kamae.spark.utils import single_input_single_output_scalar_transform import tensorflow as tf from .base import BaseTransformer import pyspark.sql.functions as F from kamae.tensorflow.layers import ImputeLayer ...
class ImputeTransformer(BaseTransformer, ImputeParams, SingleInputSingleOutputParams): ''' Imputation transformer for use in Spark pipelines. This is used to impute the mean or median value when value is null or equalling a mask ''' @keyword_only def __init__(self, inputCol: Optional[str]=N...
7
5
19
1
9
9
1
1
3
5
1
0
4
0
4
61
89
9
40
20
24
40
14
9
9
1
6
0
4
325,338
ExpediaGroup/kamae
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ExpediaGroup_kamae/src/kamae/spark/transformers/lambda_function.py
kamae.spark.transformers.lambda_function.LambdaFunctionParams
from pyspark.ml.param import Param, Params, TypeConverters from typing import Any, Callable, List, Optional, Union import base64 from pyspark.sql.types import ArrayType, DataType, StructField, StructType import dill class LambdaFunctionParams(Params): """ Mixin class containing parameters needed for the Lambda...
class LambdaFunctionParams(Params): ''' Mixin class containing parameters needed for the LambdaFunctionTransformer. ''' def setFunction(self, value: Callable[[Any], Any]) -> 'LambdaFunctionParams': ''' Sets the lambda function to apply to the input column. :param value: Lam...
5
5
10
1
4
5
1
0.72
1
1
0
1
4
0
4
4
61
11
29
13
24
21
18
13
13
2
1
1
5
325,339
ExpediaGroup/kamae
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ExpediaGroup_kamae/src/kamae/spark/transformers/lambda_function.py
kamae.spark.transformers.lambda_function.LambdaFunctionTransformer
from .base import BaseTransformer from kamae.tensorflow.layers import LambdaFunctionLayer from typing import Any, Callable, List, Optional, Union import tensorflow as tf from pyspark.sql.types import ArrayType, DataType, StructField, StructType from kamae.spark.params import MultiInputMultiOutputParams, MultiInputSingl...
class LambdaFunctionTransformer(BaseTransformer, SingleInputSingleOutputParams, SingleInputMultiOutputParams, MultiInputSingleOutputParams, MultiInputMultiOutputParams, LambdaFunctionParams): ''' Spark Transformer that applies tensorflow lambda functions to the input column(s). The provided function must e...
18
14
28
2
15
11
3
0.85
6
8
1
0
11
0
12
72
336
42
159
59
113
135
82
28
67
9
6
3
36
325,340
ExpediaGroup/kamae
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ExpediaGroup_kamae/src/kamae/spark/transformers/list_max.py
kamae.spark.transformers.list_max.ListMaxTransformer
from pyspark.sql.types import ByteType, DataType, DoubleType, FloatType, IntegerType, LongType, ShortType from .base import BaseTransformer from typing import List, Optional import pyspark.sql.functions as F from pyspark.sql import DataFrame from kamae.tensorflow.layers import ListMaxLayer from kamae.spark.params impor...
class ListMaxTransformer(BaseTransformer, SingleInputSingleOutputParams, MultiInputSingleOutputParams, ListwiseStatisticsParams, NanFillValueParams): ''' Calculate the listwise maximum across the query id column. - If inputCol is set, the transformer calculates the maximum of the input column based on ...
7
4
25
2
18
5
2
0.59
5
6
1
0
4
0
4
69
145
15
82
31
56
48
24
10
19
4
6
1
7
325,341
ExpediaGroup/kamae
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ExpediaGroup_kamae/src/kamae/spark/transformers/list_mean.py
kamae.spark.transformers.list_mean.ListMeanTransformer
from .base import BaseTransformer import tensorflow as tf from pyspark import keyword_only from pyspark.sql import DataFrame from typing import List, Optional from pyspark.sql.types import DataType, DoubleType, FloatType from kamae.spark.params import ListwiseStatisticsParams, MultiInputSingleOutputParams, NanFillValue...
class ListMeanTransformer(BaseTransformer, SingleInputSingleOutputParams, MultiInputSingleOutputParams, ListwiseStatisticsParams, NanFillValueParams): ''' Calculate the listwise mean across the query id column. - If inputCol is set, the transformer calculates the mean of the input column based on all t...
7
4
24
2
17
5
2
0.62
5
6
1
0
4
0
4
69
141
15
78
31
52
48
24
10
19
4
6
1
7
325,342
ExpediaGroup/kamae
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ExpediaGroup_kamae/src/kamae/spark/transformers/list_median.py
kamae.spark.transformers.list_median.ListMedianTransformer
from kamae.spark.params import ListwiseStatisticsParams, MultiInputSingleOutputParams, NanFillValueParams, SingleInputSingleOutputParams from pyspark.sql import DataFrame from pyspark.sql.types import DataType, DoubleType, FloatType from typing import List, Optional import tensorflow as tf from .base import BaseTransfo...
class ListMedianTransformer(BaseTransformer, SingleInputSingleOutputParams, MultiInputSingleOutputParams, ListwiseStatisticsParams, NanFillValueParams): ''' Calculate the listwise median across the query id column. - If inputCol is set, the transformer calculates the median of the input column based on...
7
4
29
2
22
5
2
0.51
5
6
1
0
4
0
4
69
161
16
96
33
70
49
28
12
23
4
6
1
7
325,343
ExpediaGroup/kamae
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ExpediaGroup_kamae/src/kamae/spark/transformers/list_min.py
kamae.spark.transformers.list_min.ListMinTransformer
import tensorflow as tf from pyspark import keyword_only from pyspark.sql import DataFrame from kamae.spark.utils import check_listwise_columns, get_listwise_condition_and_window from pyspark.sql.types import ByteType, DataType, DoubleType, FloatType, IntegerType, LongType, ShortType from kamae.spark.params import List...
class ListMinTransformer(BaseTransformer, SingleInputSingleOutputParams, MultiInputSingleOutputParams, ListwiseStatisticsParams, NanFillValueParams): ''' Calculate the listwise minimum across the query id column. - If inputCol is set, the transformer calculates the minimum of the input column based on ...
7
4
25
2
18
5
2
0.59
5
6
1
0
4
0
4
69
145
15
82
31
56
48
24
10
19
4
6
1
7
325,344
ExpediaGroup/kamae
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ExpediaGroup_kamae/src/kamae/spark/transformers/list_rank.py
kamae.spark.transformers.list_rank.ListRankTransformer
from kamae.spark.params import ListwiseParams, SingleInputSingleOutputParams from pyspark.sql import DataFrame, Window from pyspark.sql.types import ByteType, DataType, DoubleType, FloatType, IntegerType, LongType, ShortType import tensorflow as tf from kamae.spark.utils import check_listwise_columns from typing import...
class ListRankTransformer(BaseTransformer, SingleInputSingleOutputParams, ListwiseParams): ''' Calculate the listwise rank across the query id column. Example: calculate the rank of items within a query, given the score. :param inputCol: Value column, on which to calculate the rank. :param outputCo...
7
4
20
2
13
5
2
0.56
3
4
1
0
4
0
4
61
105
13
59
27
39
33
25
12
20
4
6
1
7
325,345
ExpediaGroup/kamae
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ExpediaGroup_kamae/src/kamae/spark/transformers/list_std_dev.py
kamae.spark.transformers.list_std_dev.ListStdDevTransformer
from pyspark.sql.types import DataType, DoubleType, FloatType from kamae.spark.params import ListwiseStatisticsParams, MultiInputSingleOutputParams, NanFillValueParams, SingleInputSingleOutputParams import pyspark.sql.functions as F from pyspark import keyword_only from typing import List, Optional import tensorflow as...
class ListStdDevTransformer(BaseTransformer, SingleInputSingleOutputParams, MultiInputSingleOutputParams, ListwiseStatisticsParams, NanFillValueParams): ''' Calculate the listwise standard deviation across the query id column. - If inputCol is set, the transformer calculates the stddev of the input column ...
7
4
24
2
17
5
2
0.62
5
6
1
0
4
0
4
69
141
15
78
31
52
48
24
10
19
4
6
1
7
325,346
ExpediaGroup/kamae
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ExpediaGroup_kamae/src/kamae/spark/transformers/log.py
kamae.spark.transformers.log.LogParams
from pyspark.ml.param import Param, Params, TypeConverters class LogParams(Params): """ Mixin class containing alpha parameter needed for log transform layers. """ alpha = Param(Params._dummy(), 'alpha', 'Value to use in log transform: log(alpha + x)', typeConverter=TypeConverters.toFloat) def set...
class LogParams(Params): ''' Mixin class containing alpha parameter needed for log transform layers. ''' def setAlpha(self, value: float) -> 'LogParams': ''' Sets the alpha parameter. :param value: Float value to use in log transform: log(alpha + x). :returns: Insta...
3
3
8
1
2
5
1
1.09
1
1
0
1
2
0
2
2
28
5
11
4
8
12
6
4
3
1
1
0
2
325,347
ExpediaGroup/kamae
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ExpediaGroup_kamae/src/kamae/spark/transformers/log.py
kamae.spark.transformers.log.LogTransformer
from kamae.tensorflow.layers import LogLayer import tensorflow as tf from pyspark import keyword_only from pyspark.sql.types import DataType, DoubleType, FloatType from pyspark.sql import DataFrame from kamae.spark.params import SingleInputSingleOutputParams from .base import BaseTransformer import pyspark.sql.function...
class LogTransformer(BaseTransformer, LogParams, SingleInputSingleOutputParams): ''' Log Spark Transformer for use in Spark pipelines. This transformer applies a log(alpha + x) transform to the input column. ''' @keyword_only def __init__(self, inputCol: Optional[str]=None, outputCol: Optional[...
7
5
17
1
8
8
1
0.85
3
4
1
0
4
0
4
59
83
9
40
23
21
34
15
9
10
1
6
0
4
325,348
ExpediaGroup/kamae
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ExpediaGroup_kamae/src/kamae/spark/transformers/logical_and.py
kamae.spark.transformers.logical_and.LogicalAndTransformer
from pyspark.sql import DataFrame import tensorflow as tf from functools import reduce from .base import BaseTransformer from pyspark.sql.types import BooleanType, DataType from typing import List, Optional import pyspark.sql.functions as F from operator import and_ from kamae.tensorflow.layers import LogicalAndLayer f...
class LogicalAndTransformer(BaseTransformer, MultiInputSingleOutputParams): ''' Logical And Spark Transformer for use in Spark pipelines. This transformer performs an element-wise logical and operation on multiple columns. ''' @keyword_only def __init__(self, inputCols: Optional[List[str]]=None...
8
6
15
1
7
7
1
0.88
2
4
1
0
5
0
5
58
91
10
43
23
25
38
19
11
13
2
6
1
6
325,349
ExpediaGroup/kamae
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ExpediaGroup_kamae/src/kamae/spark/transformers/logical_not.py
kamae.spark.transformers.logical_not.LogicalNotTransformer
from kamae.tensorflow.layers import LogicalNotLayer from kamae.spark.params import SingleInputSingleOutputParams from typing import List, Optional from kamae.spark.utils import single_input_single_output_scalar_transform from .base import BaseTransformer import tensorflow as tf from pyspark.sql import DataFrame from py...
class LogicalNotTransformer(BaseTransformer, SingleInputSingleOutputParams): ''' Logical Not Spark Transformer for use in Spark pipelines. This transformer performs a logical not operation on a single column. ''' @keyword_only def __init__(self, inputCol: Optional[str]=None, outputCol: Optional...
7
5
15
1
7
7
1
0.91
2
3
1
0
4
0
4
57
75
8
35
20
18
32
13
8
8
1
6
0
4
325,350
ExpediaGroup/kamae
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ExpediaGroup_kamae/src/kamae/spark/transformers/logical_or.py
kamae.spark.transformers.logical_or.LogicalOrTransformer
import pyspark.sql.functions as F from functools import reduce from .base import BaseTransformer from operator import or_ from pyspark.sql.types import BooleanType, DataType from kamae.tensorflow.layers import LogicalOrLayer import tensorflow as tf from typing import List, Optional from pyspark import keyword_only from...
class LogicalOrTransformer(BaseTransformer, MultiInputSingleOutputParams): ''' Logical Or Spark Transformer for use in Spark pipelines. This transformer performs an element-wise logical or operation on multiple columns. ''' @keyword_only def __init__(self, inputCols: Optional[List[str]]=None, o...
8
6
15
1
7
7
1
0.88
2
4
1
0
5
0
5
58
91
10
43
23
25
38
19
11
13
2
6
1
6
325,351
ExpediaGroup/kamae
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ExpediaGroup_kamae/src/kamae/spark/transformers/max.py
kamae.spark.transformers.max.MaxTransformer
from typing import List, Optional import tensorflow as tf from pyspark.sql.types import ByteType, DataType, DoubleType, FloatType, IntegerType, LongType, ShortType from kamae.spark.utils import multi_input_single_output_scalar_transform import pyspark.sql.functions as F from pyspark import keyword_only from pyspark.sql...
class MaxTransformer(BaseTransformer, SingleInputSingleOutputParams, MultiInputSingleOutputParams, MathFloatConstantParams): ''' MaxLayer Spark Transformer for use in Spark pipelines. This transformer gets the max of a column and a constant or another column. ''' @keyword_only def __init__(self...
7
5
22
1
12
9
1
0.74
4
4
1
0
4
0
4
61
103
9
54
26
33
40
16
10
11
1
6
0
4
325,352
ExpediaGroup/kamae
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ExpediaGroup_kamae/src/kamae/spark/transformers/mean.py
kamae.spark.transformers.mean.MeanTransformer
from kamae.spark.params import MathFloatConstantParams, MultiInputSingleOutputParams, SingleInputSingleOutputParams from functools import reduce from typing import List, Optional from operator import add from kamae.tensorflow.layers import MeanLayer from .base import BaseTransformer from pyspark import keyword_only fro...
class MeanTransformer(BaseTransformer, SingleInputSingleOutputParams, MultiInputSingleOutputParams, MathFloatConstantParams): ''' Mean Spark Transformer for use in Spark pipelines. This transformer gets the mean of a column and a constant or another column. ''' @keyword_only def __init__(self, ...
7
5
22
1
12
9
1
0.71
4
4
1
0
4
0
4
61
105
9
56
26
35
40
16
10
11
1
6
0
4
325,353
ExpediaGroup/kamae
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ExpediaGroup_kamae/src/kamae/spark/transformers/min.py
kamae.spark.transformers.min.MinTransformer
import pyspark.sql.functions as F import tensorflow as tf from .base import BaseTransformer from typing import List, Optional from pyspark import keyword_only from kamae.tensorflow.layers import MinLayer from pyspark.sql import DataFrame from pyspark.sql.types import ByteType, DataType, DoubleType, FloatType, IntegerTy...
class MinTransformer(BaseTransformer, SingleInputSingleOutputParams, MultiInputSingleOutputParams, MathFloatConstantParams): ''' MinLayer Spark Transformer for use in Spark pipelines. This transformer gets the min of a column and a constant or another column. ''' @keyword_only def __init__(self...
7
5
22
1
12
9
1
0.74
4
4
1
0
4
0
4
61
103
9
54
26
33
40
16
10
11
1
6
0
4
325,354
ExpediaGroup/kamae
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ExpediaGroup_kamae/src/kamae/spark/transformers/min_hash_index.py
kamae.spark.transformers.min_hash_index.MinHashIndexParams
from kamae.spark.params import MaskStringValueParams, SingleInputSingleOutputParams from pyspark.ml.param import Param, Params, TypeConverters class MinHashIndexParams(MaskStringValueParams): """ Mixin class containing bin parameter needed for the MinHashIndexTransformer. """ numPermutations = Param(Pa...
class MinHashIndexParams(MaskStringValueParams): ''' Mixin class containing bin parameter needed for the MinHashIndexTransformer. ''' def setNumPermutations(self, value: int) -> 'MinHashIndexParams': ''' Sets the numPermutations parameter. :param value: Integer value for th...
3
3
9
1
3
5
2
0.86
1
2
0
1
2
0
2
4
31
5
14
4
11
12
8
4
5
2
2
1
3
325,355
ExpediaGroup/kamae
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ExpediaGroup_kamae/src/kamae/spark/transformers/min_hash_index.py
kamae.spark.transformers.min_hash_index.MinHashIndexTransformer
import pyspark.sql.functions as F from typing import List, Optional from .base import BaseTransformer from kamae.spark.params import MaskStringValueParams, SingleInputSingleOutputParams from pyspark import keyword_only import tensorflow as tf from kamae.tensorflow.layers import MinHashIndexLayer from pyspark.sql import...
class MinHashIndexTransformer(BaseTransformer, MinHashIndexParams, SingleInputSingleOutputParams): ''' MinHash indexer Spark Transformer for use in Spark pipelines. This transformer hashes the input string set using the MinHash algorithm: https://en.wikipedia.org/wiki/MinHash MinHash approximates t...
7
5
22
1
12
8
2
0.88
3
5
1
0
4
0
4
61
117
12
56
25
36
49
20
10
15
3
6
1
6
325,356
ExpediaGroup/kamae
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ExpediaGroup_kamae/src/kamae/spark/transformers/min_max_scale.py
kamae.spark.transformers.min_max_scale.MinMaxScaleParams
from kamae.spark.params import MaskValueParams, SingleInputSingleOutputParams from typing import List, Optional from pyspark.ml.param import Param, Params, TypeConverters class MinMaxScaleParams(MaskValueParams): """ Mixin class containing minimum and maximum parameters needed for min/max scaler transforme...
class MinMaxScaleParams(MaskValueParams): ''' Mixin class containing minimum and maximum parameters needed for min/max scaler transformers. ''' def setMin(self, value: List[float]) -> 'MinMaxScaleParams': ''' Sets the parameter min to the given list value. Saves the min as ...
5
5
10
1
4
5
2
0.89
1
4
0
1
4
0
4
6
61
10
27
7
22
24
17
7
12
2
2
1
6
325,357
ExpediaGroup/kamae
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ExpediaGroup_kamae/src/kamae/spark/transformers/min_max_scale.py
kamae.spark.transformers.min_max_scale.MinMaxScaleTransformer
from .base import BaseTransformer import tensorflow as tf import numpy as np from kamae.spark.utils import single_input_single_output_array_transform from pyspark import keyword_only from typing import List, Optional from kamae.tensorflow.layers import MinMaxScaleLayer from pyspark.sql import DataFrame from pyspark.sql...
class MinMaxScaleTransformer(BaseTransformer, MinMaxScaleParams, SingleInputSingleOutputParams): ''' MinMax scale transformer for use in Spark pipelines. This is used to standardize/transform the input column to the range [0, 1] using the minimum and maximum values. Formula: (x - min)/(max - min) ...
7
5
25
2
14
8
2
0.64
3
5
1
0
4
0
4
63
119
14
64
31
43
41
26
15
21
4
6
1
7
325,358
ExpediaGroup/kamae
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ExpediaGroup_kamae/src/kamae/spark/transformers/modulo.py
kamae.spark.transformers.modulo.ModuloParams
from pyspark.ml.param import Param, Params, TypeConverters class ModuloParams(Params): """ Mixin class for divisor used in modulo transform layers. """ divisor = Param(Params._dummy(), 'divisor', 'Integer divisor used in modulo transform', typeConverter=TypeConverters.toFloat) def __init__(self) -...
class ModuloParams(Params): ''' Mixin class for divisor used in modulo transform layers. ''' def __init__(self) -> None: pass def getDivisor(self) -> float: ''' Gets the value of the divisor parameter. :returns: Float divisor used in modulo transform. '...
4
3
6
1
2
3
1
0.86
1
2
0
1
3
0
3
3
32
6
14
5
10
12
9
5
5
1
1
0
3
325,359
ExpediaGroup/kamae
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ExpediaGroup_kamae/src/kamae/spark/transformers/modulo.py
kamae.spark.transformers.modulo.ModuloTransformer
import pyspark.sql.functions as F from kamae.spark.utils import multi_input_single_output_scalar_transform from typing import List, Optional from .base import BaseTransformer from pyspark.sql import DataFrame from pyspark import keyword_only from pyspark.sql.types import ByteType, DataType, DoubleType, FloatType, Integ...
class ModuloTransformer(BaseTransformer, SingleInputSingleOutputParams, MultiInputSingleOutputParams, ModuloParams): ''' ModuloLayer Spark Transformer for use in Spark pipelines. This transformer applies a modulo transform to the input column by dividing by the divisor parameter or another column. ...
8
6
21
1
11
9
1
0.75
4
5
1
0
5
0
5
62
123
11
64
27
42
48
20
11
14
2
6
1
6
325,360
ExpediaGroup/kamae
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ExpediaGroup_kamae/src/kamae/spark/transformers/multiply.py
kamae.spark.transformers.multiply.MultiplyTransformer
from pyspark.sql import DataFrame import tensorflow as tf from typing import List, Optional from kamae.spark.params import MathFloatConstantParams, MultiInputSingleOutputParams, SingleInputSingleOutputParams from kamae.tensorflow.layers import MultiplyLayer from kamae.spark.utils import multi_input_single_output_scalar...
class MultiplyTransformer(BaseTransformer, SingleInputSingleOutputParams, MultiInputSingleOutputParams, MathFloatConstantParams): ''' MultiplyLayer Spark Transformer for use in Spark pipelines. This transformer multiplies a column by a constant or another column. ''' @keyword_only def __init__(...
7
5
22
1
12
9
1
0.72
4
4
1
0
4
0
4
61
102
9
54
26
33
39
16
10
11
1
6
0
4
325,361
ExpediaGroup/kamae
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ExpediaGroup_kamae/src/kamae/spark/transformers/numerical_if_statement.py
kamae.spark.transformers.numerical_if_statement.NumericalIfStatementParams
from pyspark.ml.param import Param, Params, TypeConverters class NumericalIfStatementParams(Params): """ Mixin class containing parameters needed for NumericalIfStatementTransformer transform layers. """ conditionOperator = Param(Params._dummy(), 'conditionOperator', 'Operator to use in condition: ...
class NumericalIfStatementParams(Params): ''' Mixin class containing parameters needed for NumericalIfStatementTransformer transform layers. ''' def setConditionOperator(self, value: str) -> 'NumericalIfStatementParams': ''' Sets the conditionOperator parameter. :param valu...
9
9
10
1
3
6
1
1.13
1
3
0
1
8
0
8
8
118
20
46
14
37
52
24
14
15
2
1
1
9
325,362
ExpediaGroup/kamae
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ExpediaGroup_kamae/src/kamae/spark/transformers/numerical_if_statement.py
kamae.spark.transformers.numerical_if_statement.NumericalIfStatementTransformer
from .base import BaseTransformer from kamae.spark.utils import multi_input_single_output_scalar_transform from kamae.spark.params import MultiInputSingleOutputParams, SingleInputSingleOutputParams import tensorflow as tf from pyspark import keyword_only from typing import List, Optional from kamae.tensorflow.layers im...
class NumericalIfStatementTransformer(BaseTransformer, SingleInputSingleOutputParams, MultiInputSingleOutputParams, NumericalIfStatementParams): ''' NumericalIfStatement Spark Transformer for use in Spark pipelines. This transformer computes an if statement between a set of numerical constants and colu...
9
7
34
2
19
12
2
0.65
4
5
1
0
6
0
6
68
220
19
122
40
96
79
44
21
37
7
6
3
14
325,363
ExpediaGroup/kamae
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ExpediaGroup_kamae/src/kamae/spark/transformers/one_hot_encode.py
kamae.spark.transformers.one_hot_encode.OneHotEncodeTransformer
import pyspark.sql.functions as F from kamae.spark.params import DropUnseenParams, SingleInputSingleOutputParams, StringIndexParams from typing import List, Optional from pyspark.sql import DataFrame from pyspark import keyword_only from kamae.spark.utils import one_hot_encoding_udf, single_input_single_output_scalar_u...
class OneHotEncodeTransformer(BaseTransformer, DropUnseenParams, StringIndexParams, SingleInputSingleOutputParams): ''' OneHotEncodeTransformer Spark Transformer for use in Spark pipelines. This transformer is used to one-hot feature columns using the string labels collected by the OneHotEncodeEstimato...
7
5
27
2
15
10
1
0.76
4
5
1
0
4
0
4
69
128
12
66
31
42
50
18
12
13
1
6
0
4
325,364
ExpediaGroup/kamae
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ExpediaGroup_kamae/src/kamae/spark/transformers/ordinal_array_encode.py
kamae.spark.transformers.ordinal_array_encode.OrdinalArrayEncodeTransformer
from kamae.spark.utils import ordinal_array_encode_udf, single_input_single_output_array_udf_transform from pyspark import keyword_only from kamae.spark.params import PadValueParams, SingleInputSingleOutputParams import pyspark.sql.functions as F from typing import List, Optional from .base import BaseTransformer impor...
class OrdinalArrayEncodeTransformer(BaseTransformer, SingleInputSingleOutputParams, PadValueParams): ''' Transformer that encodes an array of strings into an array of integers. The transformer will map each unique string in the array to an integer, according to the order in which they appear in the arr...
7
5
24
1
11
12
1
1.02
3
4
1
0
4
0
4
59
112
9
51
22
32
52
16
8
11
2
6
1
5
325,365
ExpediaGroup/kamae
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ExpediaGroup_kamae/src/kamae/spark/transformers/round.py
kamae.spark.transformers.round.RoundParams
from pyspark.ml.param import Param, Params, TypeConverters class RoundParams(Params): """ Mixin class containing roundType parameter needed for rounding transform layers. """ roundType = Param(Params._dummy(), 'roundType', "Round type to use in round transform, one of 'floor', 'ceil' or 'round'.", type...
class RoundParams(Params): ''' Mixin class containing roundType parameter needed for rounding transform layers. ''' def setRoundType(self, value: str) -> 'RoundParams': ''' Sets the roundType parameter. :param value: Rounding type to use in round transform, one of '...
3
3
10
1
3
6
2
1.08
1
2
0
1
2
0
2
2
32
5
13
4
10
14
8
4
5
2
1
1
3
325,366
ExpediaGroup/kamae
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ExpediaGroup_kamae/src/kamae/spark/transformers/round.py
kamae.spark.transformers.round.RoundTransformer
from kamae.tensorflow.layers import RoundLayer from .base import BaseTransformer from pyspark.sql.types import DataType, DoubleType, FloatType from pyspark.sql import DataFrame import tensorflow as tf import pyspark.sql.functions as F from pyspark import keyword_only from kamae.spark.params import SingleInputSingleOutp...
class RoundTransformer(BaseTransformer, SingleInputSingleOutputParams, RoundParams): ''' Round Spark Transformer for use in Spark pipelines. This transformer rounds the input column to the nearest integer using the specified rounding type. ''' @keyword_only def __init__(self, inputCol: Opti...
7
5
18
1
9
8
1
0.8
3
3
1
0
4
0
4
59
88
9
44
23
25
35
15
9
10
1
6
0
4
325,367
ExpediaGroup/kamae
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ExpediaGroup_kamae/src/kamae/spark/transformers/round_to_decimal.py
kamae.spark.transformers.round_to_decimal.RoundToDecimalParams
from pyspark.ml.param import Param, Params, TypeConverters class RoundToDecimalParams(Params): """ Mixin class containing decimals parameter needed for rounding transform layers. """ decimals = Param(Params._dummy(), 'decimals', 'Number of decimals to round to', typeConverter=TypeConverters.toInt) ...
class RoundToDecimalParams(Params): ''' Mixin class containing decimals parameter needed for rounding transform layers. ''' def setDecimals(self, value: int) -> 'RoundToDecimalParams': ''' Sets the decimals parameter. :param value: Number of decimals to round to. :r...
3
3
9
1
3
5
2
0.92
1
2
0
1
2
0
2
2
30
5
13
4
10
12
8
4
5
2
1
1
3
325,368
ExpediaGroup/kamae
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ExpediaGroup_kamae/src/kamae/spark/transformers/round_to_decimal.py
kamae.spark.transformers.round_to_decimal.RoundToDecimalTransformer
from pyspark import keyword_only from pyspark.sql import DataFrame from kamae.tensorflow.layers import RoundToDecimalLayer from pyspark.sql.types import DataType, DoubleType, FloatType, IntegerType, LongType import tensorflow as tf from kamae.spark.params import SingleInputSingleOutputParams from kamae.spark.utils impo...
class RoundToDecimalTransformer(BaseTransformer, SingleInputSingleOutputParams, RoundToDecimalParams): ''' Round Spark Transformer for use in Spark pipelines. This transformer rounds the input column to the nearest decimal using the specified number of decimals. ''' @keyword_only def __init...
7
5
16
1
8
7
1
0.89
3
4
1
0
4
0
4
59
81
9
38
22
19
34
13
8
8
1
6
0
4
325,369
ExpediaGroup/kamae
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ExpediaGroup_kamae/src/kamae/spark/transformers/shared_one_hot_encode.py
kamae.spark.transformers.shared_one_hot_encode.SharedOneHotEncodeTransformer
from kamae.tensorflow.layers import OneHotEncodeLayer from pyspark.sql.types import ArrayType, DataType, FloatType, IntegerType, LongType, ShortType, StringType from .base import BaseTransformer import pyspark.sql.functions as F from kamae.spark.params import DropUnseenParams, MultiInputMultiOutputParams, StringIndexPa...
class SharedOneHotEncodeTransformer(BaseTransformer, MultiInputMultiOutputParams, StringIndexParams, DropUnseenParams): ''' SharedOneHotEncodeTransformer Spark Transformer for use in Spark pipelines. This transformer is used to one-hot encode multiple input columns using the string labels collected by ...
7
5
28
2
16
10
1
0.68
4
6
1
0
4
0
4
69
133
14
71
34
47
48
22
15
17
2
6
1
5
325,370
ExpediaGroup/kamae
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ExpediaGroup_kamae/src/kamae/spark/transformers/shared_string_index.py
kamae.spark.transformers.shared_string_index.SharedStringIndexTransformer
from kamae.spark.params import MultiInputMultiOutputParams, StringIndexParams from .base import BaseTransformer from typing import List, Optional import pyspark.sql.functions as F from pyspark import keyword_only from pyspark.sql import DataFrame from pyspark.sql.types import DataType, IntegerType, StringType import te...
class SharedStringIndexTransformer(BaseTransformer, StringIndexParams, MultiInputMultiOutputParams): ''' SharedStringIndexTransformer Spark Transformer for use in Spark pipelines. This transformer is used to index/transform feature columns using the string labels collected by the SharedStringIndexEstim...
7
5
26
2
14
10
1
0.75
3
5
1
0
4
0
4
67
124
14
63
31
41
47
21
14
16
2
6
1
5
325,371
ExpediaGroup/kamae
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ExpediaGroup_kamae/src/kamae/spark/transformers/standard_scale.py
kamae.spark.transformers.standard_scale.StandardScaleTransformer
from kamae.tensorflow.layers import StandardScaleLayer from kamae.spark.params import SingleInputSingleOutputParams, StandardScaleParams from pyspark.sql.types import ArrayType, DataType, DoubleType, FloatType import tensorflow as tf from .base import BaseTransformer from kamae.spark.utils import single_input_single_ou...
class StandardScaleTransformer(BaseTransformer, StandardScaleParams, SingleInputSingleOutputParams): ''' Standard scaler transformer for use in Spark pipelines. This is used to standardize/transform the input column using the mean and standard deviation. WARNING: If the input is an array, we assume...
7
5
24
2
13
9
2
0.75
3
4
1
0
4
0
4
63
116
13
59
31
38
44
26
15
21
4
6
1
7
325,372
ExpediaGroup/kamae
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ExpediaGroup_kamae/src/kamae/spark/transformers/string_affix.py
kamae.spark.transformers.string_affix.StringAffixParams
from pyspark.ml.param import Param, Params, TypeConverters class StringAffixParams(Params): """ Mixin class containing parameters needed for string affixing. transforms. """ prefix = Param(Params._dummy(), 'prefix', 'Value to use as a prefix when joining the strings.', typeConverter=TypeConverters....
class StringAffixParams(Params): ''' Mixin class containing parameters needed for string affixing. transforms. ''' def setPrefix(self, value: str) -> 'StringAffixParams': ''' Sets the prefix parameter. :param value: String value to use as a prefix when joining the strings. ...
5
5
8
1
2
5
1
1.05
1
1
0
1
4
0
4
4
52
9
21
7
16
22
11
7
6
1
1
0
4
325,373
ExpediaGroup/kamae
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ExpediaGroup_kamae/src/kamae/spark/transformers/string_affix.py
kamae.spark.transformers.string_affix.StringAffixTransformer
import pyspark.sql.functions as F from pyspark.sql import Column, DataFrame from kamae.spark.params import SingleInputSingleOutputParams from typing import List, Optional import tensorflow as tf from pyspark.sql.types import DataType, StringType from pyspark import keyword_only from kamae.tensorflow.layers import Strin...
class StringAffixTransformer(BaseTransformer, SingleInputSingleOutputParams, StringAffixParams): ''' String Affix Spark Transformer for use in Spark pipelines. This transformer takes in a column and pre- and su- fixes it. Input columns must be of type string. ''' @keyword_only def __init__(...
9
6
16
1
10
5
2
0.65
3
4
1
0
5
0
5
62
106
12
57
29
33
37
26
12
19
3
6
1
9
325,374
ExpediaGroup/kamae
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ExpediaGroup_kamae/src/kamae/spark/transformers/string_array_constant.py
kamae.spark.transformers.string_array_constant.StringArrayConstantTransformer
from pyspark import keyword_only from kamae.tensorflow.layers import StringArrayConstantLayer from .base import BaseTransformer import pyspark.sql.functions as F import tensorflow as tf from kamae.spark.params import ConstantStringArrayParams, SingleInputSingleOutputParams from typing import List, Optional from pyspark...
class StringArrayConstantTransformer(BaseTransformer, SingleInputSingleOutputParams, ConstantStringArrayParams): ''' String Array Constant Spark Transformer for use in Spark pipelines. This transformer populates a column with a constant string array. ''' @keyword_only def __init__(self, inputCo...
7
5
16
1
8
7
1
0.87
3
3
1
0
4
0
4
59
79
8
38
22
19
33
13
8
8
1
6
0
4
325,375
ExpediaGroup/kamae
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ExpediaGroup_kamae/src/kamae/spark/transformers/string_case.py
kamae.spark.transformers.string_case.StringCaseParams
from pyspark.ml.param import Param, Params, TypeConverters class StringCaseParams(Params): """ Mixin class containing stringCaseType parameter needed for string casing transforms. """ stringCaseType = Param(Params._dummy(), 'stringCaseType', 'How to change the case of the string.', typeConverter=TypeCo...
class StringCaseParams(Params): ''' Mixin class containing stringCaseType parameter needed for string casing transforms. ''' def setStringCaseType(self, value: str) -> 'StringCaseParams': ''' Sets the stringCaseType parameter to the given value. Must be one of: - 'u...
3
3
13
1
6
6
2
0.79
1
2
0
1
2
0
2
2
39
5
19
5
16
15
9
5
6
2
1
1
3
325,376
ExpediaGroup/kamae
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ExpediaGroup_kamae/src/kamae/spark/transformers/string_case.py
kamae.spark.transformers.string_case.StringCaseTransformer
from kamae.tensorflow.layers import StringCaseLayer from kamae.spark.utils import single_input_single_output_scalar_transform import tensorflow as tf from typing import List, Optional from pyspark.sql.types import DataType, StringType from pyspark import keyword_only from pyspark.sql import Column, DataFrame from kamae...
class StringCaseTransformer(BaseTransformer, SingleInputSingleOutputParams, StringCaseParams): ''' StringCaseLayer Spark Transformer for use in Spark pipelines. This transformer applies an upper, lower or capitalise operation on the input column. ''' @keyword_only def __init__(self, inputCo...
8
5
18
1
11
6
1
0.74
3
4
1
0
4
0
4
59
98
11
50
24
30
37
20
10
14
3
6
1
7
325,377
ExpediaGroup/kamae
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ExpediaGroup_kamae/src/kamae/spark/transformers/string_concatenate.py
kamae.spark.transformers.string_concatenate.StringConcatenateParams
from pyspark.ml.param import Param, Params, TypeConverters class StringConcatenateParams(Params): """ Mixin class containing separator parameter needed for string concatenation transforms. """ separator = Param(Params._dummy(), 'separator', 'Value to use as a separator when joining the strings.', t...
class StringConcatenateParams(Params): ''' Mixin class containing separator parameter needed for string concatenation transforms. ''' def setSeparator(self, value: str) -> 'StringConcatenateParams': ''' Sets the separator parameter. :param value: String value to use as a se...
3
3
8
1
2
5
1
1.18
1
1
0
1
2
0
2
2
29
5
11
4
8
13
6
4
3
1
1
0
2
325,378
ExpediaGroup/kamae
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ExpediaGroup_kamae/src/kamae/spark/transformers/string_concatenate.py
kamae.spark.transformers.string_concatenate.StringConcatenateTransformer
import tensorflow as tf from kamae.spark.params import MultiInputSingleOutputParams from pyspark.sql import DataFrame from pyspark.sql.types import DataType, StringType from kamae.tensorflow.layers import StringConcatenateLayer from typing import List, Optional from kamae.spark.utils import multi_input_single_output_sc...
class StringConcatenateTransformer(BaseTransformer, MultiInputSingleOutputParams, StringConcatenateParams): ''' String Concatenate Spark Transformer for use in Spark pipelines. This transformer takes in multiple columns and concatenates them together into a single column using a separator. Input column...
7
5
19
2
10
7
1
0.74
3
3
1
0
4
0
4
59
90
10
46
25
27
34
17
11
12
1
6
0
4
325,379
ExpediaGroup/kamae
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ExpediaGroup_kamae/src/kamae/spark/transformers/string_contains.py
kamae.spark.transformers.string_contains.StringContainsTransformer
import pyspark.sql.functions as F from typing import List, Optional from pyspark import keyword_only from kamae.spark.utils import multi_input_single_output_scalar_transform from kamae.tensorflow.layers import StringContainsLayer import tensorflow as tf from kamae.spark.params import MultiInputSingleOutputParams, Negat...
class StringContainsTransformer(BaseTransformer, SingleInputSingleOutputParams, MultiInputSingleOutputParams, NegationParams, StringConstantParams): ''' String contains Spark Transformer for use in Spark pipelines. This transformer performs a string contains operation on the input column. If the string...
9
6
19
1
10
7
1
0.78
5
5
1
0
5
0
5
63
127
13
64
33
37
50
23
13
16
2
6
1
8
325,380
ExpediaGroup/kamae
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ExpediaGroup_kamae/src/kamae/spark/transformers/string_contains_list.py
kamae.spark.transformers.string_contains_list.StringContainsListTransformer
from kamae.tensorflow.layers import StringContainsListLayer from typing import List, Optional from kamae.spark.utils import single_input_single_output_scalar_transform import tensorflow as tf import pyspark.sql.functions as F from pyspark.sql import Column, DataFrame from pyspark.sql.types import DataType, StringType f...
class StringContainsListTransformer(BaseTransformer, SingleInputSingleOutputParams, NegationParams, ConstantStringArrayParams): ''' String contains list Spark Transformer for use in Spark pipelines. This transformer performs a string contains operation on the input column over all constants in the pass...
8
5
20
2
12
6
2
0.62
4
5
1
0
4
0
4
61
107
13
58
29
34
36
22
11
16
2
6
1
8
325,381
ExpediaGroup/kamae
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ExpediaGroup_kamae/src/kamae/spark/transformers/string_equals_if_statement.py
kamae.spark.transformers.string_equals_if_statement.StringEqualsIfStatementParams
from pyspark.ml.param import Param, Params, TypeConverters class StringEqualsIfStatementParams(Params): """ Mixin class containing parameters needed for StringEqualsIfStatementTransformer transform layers. """ valueToCompare = Param(Params._dummy(), 'valueToCompare', 'Float value to compare to inpu...
class StringEqualsIfStatementParams(Params): ''' Mixin class containing parameters needed for StringEqualsIfStatementTransformer transform layers. ''' def setResultIfTrue(self, value: str) -> 'StringEqualsIfStatementParams': ''' Sets the resultIfTrue parameter. :param value...
7
7
8
1
2
5
1
1
1
1
0
1
6
0
6
6
77
15
31
10
24
31
16
10
9
1
1
0
6
325,382
ExpediaGroup/kamae
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ExpediaGroup_kamae/src/kamae/spark/transformers/string_equals_if_statement.py
kamae.spark.transformers.string_equals_if_statement.StringEqualsIfStatementTransformer
from pyspark.sql import Column, DataFrame from kamae.tensorflow.layers import StringEqualsIfStatementLayer from kamae.spark.params import MultiInputSingleOutputParams, SingleInputSingleOutputParams from typing import List, Optional from .base import BaseTransformer import tensorflow as tf from pyspark.sql.types import ...
class StringEqualsIfStatementTransformer(BaseTransformer, SingleInputSingleOutputParams, MultiInputSingleOutputParams, StringEqualsIfStatementParams): ''' StringEqualIfStatement Spark Transformer for use in Spark pipelines. This transformer computes an if equal statement between a set of constants and ...
9
7
32
2
18
12
2
0.66
4
4
1
0
6
0
6
66
211
18
116
38
91
77
41
20
34
7
6
3
13
325,383
ExpediaGroup/kamae
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ExpediaGroup_kamae/src/kamae/spark/transformers/string_index.py
kamae.spark.transformers.string_index.StringIndexTransformer
from .base import BaseTransformer import tensorflow as tf from typing import List, Optional from pyspark.sql import DataFrame import pyspark.sql.functions as F from pyspark import keyword_only from kamae.spark.params import SingleInputSingleOutputParams, StringIndexParams from pyspark.sql.types import DataType, Integer...
class StringIndexTransformer(BaseTransformer, StringIndexParams, SingleInputSingleOutputParams): ''' StringIndexTransformer Spark Transformer for use in Spark pipelines. This transformer is used to index/transform feature columns using the string labels collected by the StringIndexEstimator. NOTE: ...
7
5
24
2
13
9
1
0.78
3
4
1
0
4
0
4
67
115
12
58
28
36
45
17
11
12
1
6
0
4
325,384
ExpediaGroup/kamae
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ExpediaGroup_kamae/src/kamae/spark/transformers/string_isin_list.py
kamae.spark.transformers.string_isin_list.StringIsInListTransformer
from typing import List, Optional from pyspark.sql.types import DataType, StringType from kamae.tensorflow.layers import StringIsInListLayer from .base import BaseTransformer from pyspark import keyword_only import pyspark.sql.functions as F from kamae.spark.utils import single_input_single_output_scalar_transform impo...
class StringIsInListTransformer(BaseTransformer, SingleInputSingleOutputParams, NegationParams, ConstantStringArrayParams): ''' String is in list Spark Transformer for use in Spark pipelines. This transformer performs a string equality operation on the input column over all constants in the passed cons...
8
5
18
2
10
6
2
0.65
4
5
1
0
4
0
4
61
104
13
55
28
31
36
21
10
15
2
6
1
8
325,385
ExpediaGroup/kamae
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ExpediaGroup_kamae/src/kamae/spark/transformers/string_list_to_string.py
kamae.spark.transformers.string_list_to_string.StringListToStringParams
from pyspark.ml.param import Param, Params, TypeConverters class StringListToStringParams(Params): """ Mixin class containing separator parameter needed for string list to string transforms. """ separator = Param(Params._dummy(), 'separator', 'Separator to use when joining the string list.', typeCo...
class StringListToStringParams(Params): ''' Mixin class containing separator parameter needed for string list to string transforms. ''' def getSeparator(self) -> str: ''' Gets the separator to use when joining the string list. :returns: Separator to use when joining the str...
3
3
8
1
2
5
1
1.18
1
1
0
1
2
0
2
2
29
5
11
4
8
13
6
4
3
1
1
0
2
325,386
ExpediaGroup/kamae
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ExpediaGroup_kamae/src/kamae/spark/transformers/string_list_to_string.py
kamae.spark.transformers.string_list_to_string.StringListToStringTransformer
from typing import List, Optional from pyspark import keyword_only from pyspark.sql import DataFrame from kamae.spark.params import SingleInputSingleOutputParams import tensorflow as tf from kamae.spark.utils import single_input_single_output_array_transform from kamae.tensorflow.layers import StringListToStringLayer f...
class StringListToStringTransformer(BaseTransformer, SingleInputSingleOutputParams, StringListToStringParams): ''' StringListToStringLayer Spark Transformer for use in Spark pipelines. This transformer takes a column of string lists and joins them into a single string. ''' @keyword_only def __i...
7
5
19
1
10
8
1
0.72
3
4
1
0
4
0
4
59
90
9
47
23
28
34
17
9
12
2
6
1
5
325,387
ExpediaGroup/kamae
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ExpediaGroup_kamae/src/kamae/spark/transformers/string_map.py
kamae.spark.transformers.string_map.StringMapTransformer
from kamae.tensorflow.layers import StringMapLayer import tensorflow as tf from .base import BaseTransformer from pyspark.sql import Column, DataFrame from typing import List, Optional from kamae.spark.utils import single_input_single_output_scalar_transform from pyspark.sql.types import DataType, StringType from pyspa...
class StringMapTransformer(BaseTransformer, SingleInputSingleOutputParams, StringMapTransformerParams): ''' String Map Spark Transformer for use in Spark Pipelines. This transformer replaces a list of strings with the respective mapping value. ''' @keyword_only def __init__(self, inputCol: Opti...
8
6
21
1
12
7
2
0.59
3
5
1
0
5
0
5
64
120
10
69
27
47
41
28
11
22
4
6
2
10
325,388
ExpediaGroup/kamae
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ExpediaGroup_kamae/src/kamae/spark/transformers/string_map.py
kamae.spark.transformers.string_map.StringMapTransformerParams
from typing import List, Optional from pyspark.ml.param import Param, Params, TypeConverters class StringMapTransformerParams(Params): """ Mixin class containing StringMatchValues and StringReplaceValues needed for string map layers. """ stringMatchValues = Param(Params._dummy(), 'stringMatchValues...
class StringMapTransformerParams(Params): ''' Mixin class containing StringMatchValues and StringReplaceValues needed for string map layers. ''' def setStringMatchValues(self, value: List[str]) -> 'StringMapTransformerParams': ''' Sets the stringMatchValues parameter. :para...
7
7
8
1
3
5
1
0.84
1
2
0
1
6
0
6
6
85
15
38
10
31
32
20
10
13
2
1
1
8
325,389
ExpediaGroup/kamae
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ExpediaGroup_kamae/src/kamae/spark/transformers/string_replace.py
kamae.spark.transformers.string_replace.StringReplaceParams
from kamae.spark.params import MultiInputSingleOutputParams, SingleInputSingleOutputParams, StringRegexParams from pyspark.ml.param import Param, Params, TypeConverters class StringReplaceParams(StringRegexParams): """ Mixin class containing StringMatchConstant, StringReplaceConstant needed for string repl...
class StringReplaceParams(StringRegexParams): ''' Mixin class containing StringMatchConstant, StringReplaceConstant needed for string replace layers. ''' def setStringMatchConstant(self, value: str) -> 'StringReplaceParams': ''' Sets the stringConstant parameter. :param val...
5
5
7
1
2
4
1
0.95
1
1
0
1
4
0
4
6
50
9
21
7
16
20
11
7
6
1
2
0
4
325,390
ExpediaGroup/kamae
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ExpediaGroup_kamae/src/kamae/spark/transformers/string_replace.py
kamae.spark.transformers.string_replace.StringReplaceTransformer
from pyspark.sql import Column, DataFrame import tensorflow as tf from kamae.tensorflow.layers import StringReplaceLayer from kamae.spark.utils import multi_input_single_output_scalar_transform from typing import List, Optional from .base import BaseTransformer from pyspark.sql.types import DataType, StringType import ...
class StringReplaceTransformer(BaseTransformer, SingleInputSingleOutputParams, MultiInputSingleOutputParams, StringReplaceParams): ''' String replace Spark Transformer for use in Spark Pipelines. This transformer performs a string replace operation on the input column. The transformer takes up to 3 inp...
10
7
26
2
18
7
2
0.5
4
5
1
0
6
0
6
66
190
20
113
36
85
57
37
16
29
7
6
1
15
325,391
ExpediaGroup/kamae
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ExpediaGroup_kamae/src/kamae/spark/transformers/string_to_string_list.py
kamae.spark.transformers.string_to_string_list.StringToStringListParams
from pyspark.ml.param import Param, Params, TypeConverters class StringToStringListParams(Params): """ Mixin class containing separator parameter needed for string to string list transforms. """ separator = Param(Params._dummy(), 'separator', 'Separator to use when joining the string list.', typeCo...
class StringToStringListParams(Params): ''' Mixin class containing separator parameter needed for string to string list transforms. ''' def getSeparator(self) -> str: ''' Gets the separator to use when joining the string list. :returns: Separator to use when joining the str...
7
7
8
1
2
5
1
0.94
1
3
0
1
6
0
6
6
79
15
33
10
26
31
18
10
11
2
1
1
7
325,392
ExpediaGroup/kamae
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ExpediaGroup_kamae/src/kamae/spark/transformers/string_to_string_list.py
kamae.spark.transformers.string_to_string_list.StringToStringListTransformer
from typing import List, Optional import re from kamae.tensorflow.layers import StringToStringListLayer import tensorflow as tf from pyspark.sql.types import DataType, StringType from pyspark import keyword_only from .base import BaseTransformer import pyspark.sql.functions as F from kamae.spark.utils import single_inp...
class StringToStringListTransformer(BaseTransformer, SingleInputSingleOutputParams, StringToStringListParams): ''' StringToStringListLayer Spark Transformer for use in Spark pipelines. This transformer takes a column of string lists and joins them into a single string. ''' @keyword_only def __i...
8
5
22
1
13
7
1
0.65
3
4
1
0
4
0
4
63
110
11
60
29
38
39
22
13
16
1
6
0
5
325,393
ExpediaGroup/kamae
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ExpediaGroup_kamae/src/kamae/spark/transformers/sub_string_delim_at_index.py
kamae.spark.transformers.sub_string_delim_at_index.SubStringDelimAtIndexParams
from pyspark.ml.param import Param, Params, TypeConverters class SubStringDelimAtIndexParams(Params): """ Mixin class containing delimiter & index parameter needed for sub string transforms. """ delimiter = Param(Params._dummy(), 'delimiter', 'Value to use to split the string into substrings.', typeCon...
class SubStringDelimAtIndexParams(Params): ''' Mixin class containing delimiter & index parameter needed for sub string transforms. ''' def setDelimiter(self, value: str) -> 'SubStringDelimAtIndexParams': ''' Sets the delimiter parameter. :param value: String value to split...
7
7
8
1
2
5
1
0.97
1
2
0
1
6
0
6
6
76
15
31
10
24
30
16
10
9
1
1
0
6
325,394
ExpediaGroup/kamae
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ExpediaGroup_kamae/src/kamae/spark/transformers/sub_string_delim_at_index.py
kamae.spark.transformers.sub_string_delim_at_index.SubStringDelimAtIndexTransformer
from kamae.tensorflow.layers import SubStringDelimAtIndexLayer from pyspark.sql import DataFrame from kamae.spark.params import SingleInputSingleOutputParams import re from pyspark import keyword_only from typing import List, Optional from kamae.spark.utils import single_input_single_output_scalar_transform from .base ...
class SubStringDelimAtIndexTransformer(BaseTransformer, SingleInputSingleOutputParams, SubStringDelimAtIndexParams): ''' Sub string at delimiter Spark Transformer for use in Spark pipelines. This transformer splits a string at a delimiter and returns the substring at the specified index. If the delimit...
7
5
22
1
11
10
1
0.9
3
4
1
0
4
0
4
63
108
9
52
28
31
47
20
12
15
2
6
0
5
325,395
ExpediaGroup/kamae
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ExpediaGroup_kamae/src/kamae/spark/transformers/subtract.py
kamae.spark.transformers.subtract.SubtractTransformer
from kamae.spark.params import MathFloatConstantParams, MultiInputSingleOutputParams, SingleInputSingleOutputParams from .base import BaseTransformer from pyspark.sql import DataFrame import tensorflow as tf from kamae.tensorflow.layers import SubtractLayer from kamae.spark.utils import multi_input_single_output_scalar...
class SubtractTransformer(BaseTransformer, SingleInputSingleOutputParams, MultiInputSingleOutputParams, MathFloatConstantParams): ''' SubtractLayer Spark Transformer for use in Spark pipelines. This transformer subtracts a column by a constant or another column. ''' @keyword_only def __init__(s...
7
5
22
1
12
9
1
0.72
4
4
1
0
4
0
4
61
102
9
54
26
33
39
16
10
11
1
6
0
4
325,396
ExpediaGroup/kamae
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ExpediaGroup_kamae/src/kamae/spark/transformers/sum.py
kamae.spark.transformers.sum.SumTransformer
from operator import add from functools import reduce from pyspark.sql.types import ByteType, DataType, DoubleType, FloatType, IntegerType, LongType, ShortType from .base import BaseTransformer from kamae.tensorflow.layers import SumLayer from kamae.spark.utils import multi_input_single_output_scalar_transform import t...
class SumTransformer(BaseTransformer, SingleInputSingleOutputParams, MultiInputSingleOutputParams, MathFloatConstantParams): ''' SumLayer Spark Transformer for use in Spark pipelines. This transformer sums a column with a constant or another column. ''' @keyword_only def __init__(self, inputCol...
7
5
22
1
12
9
1
0.72
4
4
1
0
4
0
4
61
102
9
54
26
33
39
16
10
11
1
6
0
4
325,397
ExpediaGroup/kamae
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ExpediaGroup_kamae/src/kamae/spark/transformers/unix_timestamp_to_date_time.py
kamae.spark.transformers.unix_timestamp_to_date_time.UnixTimestampToDateTimeTransformer
from kamae.tensorflow.layers import UnixTimestampToDateTimeLayer from typing import List, Optional import pyspark.sql.functions as F from kamae.spark.transformers.base import BaseTransformer from pyspark.sql import Column, DataFrame, SparkSession import tensorflow as tf from pyspark.sql.types import DataType, DoubleTyp...
class UnixTimestampToDateTimeTransformer(BaseTransformer, SingleInputSingleOutputParams, UnixTimestampParams, DateTimeParams): ''' Transformer that converts a unix timestamp to a datetime. The unix timestamp can be in milliseconds or seconds, set by the `unit` parameter. If the `includeTime` parameter ...
8
6
30
2
17
11
1
0.78
4
4
1
0
4
1
4
61
132
13
67
31
46
52
23
16
17
2
6
0
6
325,398
ExpediaGroup/kamae
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ExpediaGroup_kamae/src/kamae/tensorflow/layers/absolute_value.py
kamae.tensorflow.layers.absolute_value.AbsoluteValueLayer
from kamae.tensorflow.typing import Tensor import tensorflow as tf from .base import BaseLayer from kamae.tensorflow.utils import enforce_single_tensor_input import kamae from typing import Any, Dict, List, Optional @tf.keras.utils.register_keras_serializable(package=kamae.__name__) class AbsoluteValueLayer(BaseLayer)...
@tf.keras.utils.register_keras_serializable(package=kamae.__name__) class AbsoluteValueLayer(BaseLayer): ''' Performs the abs(x) operation on a given input tensor ''' def __init__(self, name: Optional[str]=None, input_dtype: Optional[str]=None, output_dtype: Optional[str]=None, **kwargs: Any) -> None: ...
8
5
14
1
7
6
1
0.9
1
3
0
0
4
0
4
41
64
9
29
15
16
26
11
7
6
1
5
0
4
325,399
ExpediaGroup/kamae
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/ExpediaGroup_kamae/src/kamae/tensorflow/layers/array_concatenate.py
kamae.tensorflow.layers.array_concatenate.ArrayConcatenateLayer
import tensorflow as tf from .base import BaseLayer import kamae from kamae.tensorflow.typing import Tensor from kamae.tensorflow.utils import enforce_multiple_tensor_input, reshape_to_equal_rank from typing import Any, Dict, Iterable, List, Optional @tf.keras.utils.register_keras_serializable(kamae.__name__) class Ar...
@tf.keras.utils.register_keras_serializable(kamae.__name__) class ArrayConcatenateLayer(BaseLayer): ''' Performs a concatenation of the input tensors. ''' def __init__(self, name: Optional[str]=None, input_dtype: Optional[str]=None, output_dtype: Optional[str]=None, axis: int=-1, auto_broadcast: bool=F...
8
5
26
3
13
10
3
0.8
1
8
0
0
4
2
4
41
112
15
54
29
39
43
36
19
31
7
5
3
11