commit 891b250: [Project] Remove torch
Vsevolod Stakhov
vsevolod at highsecure.ru
Mon Jul 1 16:28:31 UTC 2019
Author: Vsevolod Stakhov
Date: 2019-07-01 15:13:04 +0100
URL: https://github.com/rspamd/rspamd/commit/891b250b452f8e1963a99931f241ac75e34d0281
[Project] Remove torch
---
CMakeLists.txt | 18 -
contrib/lua-moses/LICENSE | 20 -
contrib/lua-moses/moses.lua | 364 -
contrib/lua-torch/decisiontree/CMakeLists.txt | 51 -
contrib/lua-torch/decisiontree/CartNode.lua | 42 -
contrib/lua-torch/decisiontree/CartTrainer.lua | 180 -
contrib/lua-torch/decisiontree/CartTree.lua | 90 -
contrib/lua-torch/decisiontree/DFD.lua | 182 -
contrib/lua-torch/decisiontree/DataSet.lua | 142 -
contrib/lua-torch/decisiontree/DecisionForest.lua | 82 -
.../decisiontree/DecisionForestTrainer.lua | 22 -
contrib/lua-torch/decisiontree/DecisionTree.lua | 12 -
contrib/lua-torch/decisiontree/GBDT_common.h | 106 -
contrib/lua-torch/decisiontree/GiniState.lua | 54 -
.../lua-torch/decisiontree/GradientBoostState.lua | 57 -
.../decisiontree/GradientBoostTrainer.lua | 244 -
contrib/lua-torch/decisiontree/LICENSE | 201 -
.../lua-torch/decisiontree/LogitBoostCriterion.lua | 45 -
contrib/lua-torch/decisiontree/MSECriterion.lua | 13 -
contrib/lua-torch/decisiontree/README.md | 386 -
.../lua-torch/decisiontree/RandomForestTrainer.lua | 159 -
contrib/lua-torch/decisiontree/Sparse2Dense.lua | 88 -
contrib/lua-torch/decisiontree/SparseTensor.lua | 54 -
contrib/lua-torch/decisiontree/TreeState.lua | 191 -
contrib/lua-torch/decisiontree/WorkPool.lua | 156 -
contrib/lua-torch/decisiontree/_env.lua | 5 -
contrib/lua-torch/decisiontree/benchmark.lua | 171 -
contrib/lua-torch/decisiontree/doc/benchmark.md | 291 -
contrib/lua-torch/decisiontree/error.h | 24 -
contrib/lua-torch/decisiontree/generic/CartTree.c | 88 -
contrib/lua-torch/decisiontree/generic/DFD.c | 157 -
contrib/lua-torch/decisiontree/generic/GBDT.c | 392 -
.../lua-torch/decisiontree/generic/GBDT_internal.c | 312 -
.../lua-torch/decisiontree/generic/GBDT_internal.h | 34 -
.../decisiontree/generic/LogitBoostCriterion.c | 90 -
contrib/lua-torch/decisiontree/generic/S2D.c | 90 -
contrib/lua-torch/decisiontree/hash_map.c | 445 -
contrib/lua-torch/decisiontree/hash_map.h | 36 -
contrib/lua-torch/decisiontree/init.c | 77 -
contrib/lua-torch/decisiontree/init.lua | 70 -
contrib/lua-torch/decisiontree/internal_hash_map.h | 13 -
contrib/lua-torch/decisiontree/khash.h | 627 -
contrib/lua-torch/decisiontree/math.lua | 84 -
.../decisiontree/rocks/decisiontree-scm-1.rockspec | 40 -
contrib/lua-torch/decisiontree/test.lua | 817 -
contrib/lua-torch/decisiontree/utils.h | 45 -
contrib/lua-torch/decisiontree/utils.lua | 125 -
contrib/lua-torch/nn/.gitignore | 2 -
contrib/lua-torch/nn/.luacheckrc | 13 -
contrib/lua-torch/nn/.travis.yml | 56 -
contrib/lua-torch/nn/Abs.lua | 22 -
contrib/lua-torch/nn/AbsCriterion.lua | 32 -
contrib/lua-torch/nn/Add.lua | 66 -
contrib/lua-torch/nn/AddConstant.lua | 50 -
contrib/lua-torch/nn/BCECriterion.lua | 64 -
contrib/lua-torch/nn/BatchNormalization.lua | 213 -
contrib/lua-torch/nn/Bilinear.lua | 163 -
contrib/lua-torch/nn/Bottle.lua | 71 -
contrib/lua-torch/nn/CAdd.lua | 127 -
contrib/lua-torch/nn/CAddTable.lua | 36 -
contrib/lua-torch/nn/CAddTensorTable.lua | 43 -
contrib/lua-torch/nn/CDivTable.lua | 26 -
contrib/lua-torch/nn/CMakeLists.txt | 14 -
contrib/lua-torch/nn/CMaxTable.lua | 46 -
contrib/lua-torch/nn/CMinTable.lua | 46 -
contrib/lua-torch/nn/CMul.lua | 166 -
contrib/lua-torch/nn/CMulTable.lua | 55 -
contrib/lua-torch/nn/CONTRIBUTING.md | 136 -
contrib/lua-torch/nn/COPYRIGHT.txt | 36 -
contrib/lua-torch/nn/CReLU.lua | 57 -
contrib/lua-torch/nn/CSubTable.lua | 26 -
contrib/lua-torch/nn/Clamp.lua | 5 -
contrib/lua-torch/nn/ClassNLLCriterion.lua | 82 -
contrib/lua-torch/nn/ClassSimplexCriterion.lua | 118 -
contrib/lua-torch/nn/Collapse.lua | 30 -
contrib/lua-torch/nn/Concat.lua | 158 -
contrib/lua-torch/nn/ConcatTable.lua | 118 -
contrib/lua-torch/nn/Constant.lua | 36 -
contrib/lua-torch/nn/Container.lua | 149 -
contrib/lua-torch/nn/Contiguous.lua | 21 -
contrib/lua-torch/nn/Convert.lua | 245 -
contrib/lua-torch/nn/Copy.lua | 42 -
contrib/lua-torch/nn/Cosine.lua | 175 -
contrib/lua-torch/nn/CosineDistance.lua | 116 -
contrib/lua-torch/nn/CosineEmbeddingCriterion.lua | 142 -
contrib/lua-torch/nn/Criterion.lua | 64 -
contrib/lua-torch/nn/CriterionTable.lua | 17 -
contrib/lua-torch/nn/CrossEntropyCriterion.lua | 42 -
contrib/lua-torch/nn/Decorator.lua | 47 -
contrib/lua-torch/nn/DepthConcat.lua | 116 -
contrib/lua-torch/nn/DistKLDivCriterion.lua | 34 -
contrib/lua-torch/nn/DistanceRatioCriterion.lua | 142 -
contrib/lua-torch/nn/DontCast.lua | 124 -
contrib/lua-torch/nn/DotProduct.lua | 61 -
contrib/lua-torch/nn/Dropout.lua | 70 -
contrib/lua-torch/nn/ELU.lua | 45 -
contrib/lua-torch/nn/ErrorMessages.lua | 19 -
contrib/lua-torch/nn/Euclidean.lua | 197 -
contrib/lua-torch/nn/Exp.lua | 9 -
contrib/lua-torch/nn/FlattenTable.lua | 106 -
contrib/lua-torch/nn/GPU.lua | 273 -
contrib/lua-torch/nn/GatedLinearUnit.lua | 27 -
contrib/lua-torch/nn/GradientReversal.lua | 32 -
contrib/lua-torch/nn/HardShrink.lua | 25 -
contrib/lua-torch/nn/HardTanh.lua | 37 -
contrib/lua-torch/nn/HingeEmbeddingCriterion.lua | 43 -
contrib/lua-torch/nn/Identity.lua | 30 -
contrib/lua-torch/nn/Index.lua | 32 -
contrib/lua-torch/nn/IndexLinear.lua | 398 -
contrib/lua-torch/nn/Jacobian.lua | 389 -
contrib/lua-torch/nn/JoinTable.lua | 74 -
contrib/lua-torch/nn/Kmeans.lua | 215 -
contrib/lua-torch/nn/L1Cost.lua | 30 -
contrib/lua-torch/nn/L1HingeEmbeddingCriterion.lua | 41 -
contrib/lua-torch/nn/L1Penalty.lua | 42 -
contrib/lua-torch/nn/LayerNormalization.lua | 27 -
contrib/lua-torch/nn/LeakyReLU.lua | 41 -
contrib/lua-torch/nn/Linear.lua | 122 -
contrib/lua-torch/nn/LinearWeightNorm.lua | 168 -
contrib/lua-torch/nn/Log.lua | 20 -
contrib/lua-torch/nn/LogSigmoid.lua | 27 -
contrib/lua-torch/nn/LogSoftMax.lua | 19 -
contrib/lua-torch/nn/LookupTable.lua | 166 -
contrib/lua-torch/nn/MM.lua | 92 -
contrib/lua-torch/nn/MSECriterion.lua | 32 -
contrib/lua-torch/nn/MV.lua | 82 -
contrib/lua-torch/nn/MapTable.lua | 119 -
contrib/lua-torch/nn/MarginCriterion.lua | 31 -
contrib/lua-torch/nn/MarginRankingCriterion.lua | 75 -
contrib/lua-torch/nn/MaskedSelect.lua | 71 -
contrib/lua-torch/nn/Max.lua | 66 -
contrib/lua-torch/nn/Maxout.lua | 13 -
contrib/lua-torch/nn/Mean.lua | 14 -
contrib/lua-torch/nn/Min.lua | 66 -
contrib/lua-torch/nn/MixtureTable.lua | 165 -
contrib/lua-torch/nn/Module.lua | 429 -
contrib/lua-torch/nn/ModuleCriterion.lua | 44 -
contrib/lua-torch/nn/Mul.lua | 38 -
contrib/lua-torch/nn/MulConstant.lua | 41 -
contrib/lua-torch/nn/MultiCriterion.lua | 40 -
contrib/lua-torch/nn/MultiLabelMarginCriterion.lua | 41 -
.../lua-torch/nn/MultiLabelSoftMarginCriterion.lua | 86 -
contrib/lua-torch/nn/MultiMarginCriterion.lua | 64 -
contrib/lua-torch/nn/NaN.lua | 72 -
contrib/lua-torch/nn/Narrow.lua | 45 -
contrib/lua-torch/nn/NarrowTable.lua | 43 -
contrib/lua-torch/nn/Normalize.lua | 150 -
contrib/lua-torch/nn/OneHot.lua | 69 -
contrib/lua-torch/nn/PReLU.lua | 52 -
contrib/lua-torch/nn/Padding.lua | 65 -
contrib/lua-torch/nn/PairwiseDistance.lua | 91 -
contrib/lua-torch/nn/Parallel.lua | 116 -
contrib/lua-torch/nn/ParallelCriterion.lua | 41 -
contrib/lua-torch/nn/ParallelTable.lua | 58 -
contrib/lua-torch/nn/PartialLinear.lua | 114 -
contrib/lua-torch/nn/PixelShuffle.lua | 111 -
contrib/lua-torch/nn/Power.lua | 22 -
contrib/lua-torch/nn/PrintSize.lua | 36 -
contrib/lua-torch/nn/Profile.lua | 55 -
contrib/lua-torch/nn/README.md | 21 -
contrib/lua-torch/nn/RReLU.lua | 50 -
contrib/lua-torch/nn/ReLU.lua | 5 -
contrib/lua-torch/nn/ReLU6.lua | 32 -
contrib/lua-torch/nn/Replicate.lua | 57 -
contrib/lua-torch/nn/Reshape.lua | 72 -
contrib/lua-torch/nn/Select.lua | 24 -
contrib/lua-torch/nn/SelectTable.lua | 71 -
contrib/lua-torch/nn/Sequential.lua | 122 -
contrib/lua-torch/nn/Sigmoid.lua | 19 -
contrib/lua-torch/nn/SmoothL1Criterion.lua | 32 -
contrib/lua-torch/nn/SoftMarginCriterion.lua | 24 -
contrib/lua-torch/nn/SoftMax.lua | 19 -
contrib/lua-torch/nn/SoftMin.lua | 31 -
contrib/lua-torch/nn/SoftPlus.lua | 35 -
contrib/lua-torch/nn/SoftShrink.lua | 25 -
contrib/lua-torch/nn/SoftSign.lua | 20 -
contrib/lua-torch/nn/SparseJacobian.lua | 277 -
contrib/lua-torch/nn/SparseLinear.lua | 242 -
.../lua-torch/nn/SpatialAdaptiveAveragePooling.lua | 35 -
contrib/lua-torch/nn/SpatialAdaptiveMaxPooling.lua | 46 -
.../lua-torch/nn/SpatialAutoCropMSECriterion.lua | 74 -
contrib/lua-torch/nn/SpatialAveragePooling.lua | 93 -
contrib/lua-torch/nn/SpatialBatchNormalization.lua | 35 -
contrib/lua-torch/nn/SpatialClassNLLCriterion.lua | 81 -
.../nn/SpatialContrastiveNormalization.lua | 36 -
contrib/lua-torch/nn/SpatialConvolution.lua | 155 -
contrib/lua-torch/nn/SpatialConvolutionLocal.lua | 188 -
contrib/lua-torch/nn/SpatialConvolutionMM.lua | 139 -
contrib/lua-torch/nn/SpatialConvolutionMap.lua | 154 -
contrib/lua-torch/nn/SpatialCrossMapLRN.lua | 153 -
.../lua-torch/nn/SpatialDepthWiseConvolution.lua | 139 -
contrib/lua-torch/nn/SpatialDilatedConvolution.lua | 80 -
contrib/lua-torch/nn/SpatialDilatedMaxPooling.lua | 67 -
.../lua-torch/nn/SpatialDivisiveNormalization.lua | 136 -
contrib/lua-torch/nn/SpatialDropout.lua | 55 -
.../lua-torch/nn/SpatialFractionalMaxPooling.lua | 165 -
contrib/lua-torch/nn/SpatialFullConvolution.lua | 219 -
contrib/lua-torch/nn/SpatialFullConvolutionMap.lua | 91 -
contrib/lua-torch/nn/SpatialLPPooling.lua | 43 -
contrib/lua-torch/nn/SpatialLogSoftMax.lua | 19 -
contrib/lua-torch/nn/SpatialMaxPooling.lua | 94 -
contrib/lua-torch/nn/SpatialMaxUnpooling.lua | 45 -
contrib/lua-torch/nn/SpatialReflectionPadding.lua | 51 -
contrib/lua-torch/nn/SpatialReplicationPadding.lua | 51 -
contrib/lua-torch/nn/SpatialSoftMax.lua | 19 -
contrib/lua-torch/nn/SpatialSubSampling.lua | 79 -
.../nn/SpatialSubtractiveNormalization.lua | 115 -
contrib/lua-torch/nn/SpatialUpSamplingBilinear.lua | 139 -
contrib/lua-torch/nn/SpatialUpSamplingNearest.lua | 59 -
contrib/lua-torch/nn/SpatialZeroPadding.lua | 104 -
contrib/lua-torch/nn/SplitTable.lua | 43 -
contrib/lua-torch/nn/Sqrt.lua | 26 -
contrib/lua-torch/nn/Square.lua | 22 -
contrib/lua-torch/nn/Squeeze.lua | 40 -
contrib/lua-torch/nn/StochasticGradient.lua | 65 -
contrib/lua-torch/nn/Sum.lua | 67 -
contrib/lua-torch/nn/THNN.lua | 140 -
contrib/lua-torch/nn/Tanh.lua | 19 -
contrib/lua-torch/nn/TanhShrink.lua | 20 -
contrib/lua-torch/nn/TemporalConvolution.lua | 73 -
.../lua-torch/nn/TemporalDynamicKMaxPooling.lua | 65 -
contrib/lua-torch/nn/TemporalMaxPooling.lua | 44 -
contrib/lua-torch/nn/TemporalRowConvolution.lua | 120 -
contrib/lua-torch/nn/TemporalSubSampling.lua | 64 -
contrib/lua-torch/nn/Threshold.lua | 51 -
contrib/lua-torch/nn/Transpose.lua | 35 -
contrib/lua-torch/nn/Unsqueeze.lua | 52 -
contrib/lua-torch/nn/View.lua | 96 -
contrib/lua-torch/nn/VolumetricAveragePooling.lua | 54 -
.../lua-torch/nn/VolumetricBatchNormalization.lua | 4 -
contrib/lua-torch/nn/VolumetricConvolution.lua | 169 -
.../lua-torch/nn/VolumetricDilatedConvolution.lua | 84 -
.../lua-torch/nn/VolumetricDilatedMaxPooling.lua | 71 -
contrib/lua-torch/nn/VolumetricDropout.lua | 55 -
.../nn/VolumetricFractionalMaxPooling.lua | 175 -
contrib/lua-torch/nn/VolumetricFullConvolution.lua | 225 -
contrib/lua-torch/nn/VolumetricMaxPooling.lua | 102 -
contrib/lua-torch/nn/VolumetricMaxUnpooling.lua | 56 -
.../lua-torch/nn/VolumetricReplicationPadding.lua | 58 -
contrib/lua-torch/nn/WeightNorm.lua | 208 -
contrib/lua-torch/nn/WeightedEuclidean.lua | 244 -
contrib/lua-torch/nn/WeightedMSECriterion.lua | 45 -
contrib/lua-torch/nn/WhiteNoise.lua | 40 -
contrib/lua-torch/nn/ZeroGrad.lua | 14 -
contrib/lua-torch/nn/ZipTable.lua | 34 -
contrib/lua-torch/nn/ZipTableOneToMany.lua | 37 -
contrib/lua-torch/nn/hessian.lua | 391 -
contrib/lua-torch/nn/init.lua | 221 -
contrib/lua-torch/nn/lib/CMakeLists.txt | 5 -
contrib/lua-torch/nn/lib/THNN/CMakeLists.txt | 49 -
contrib/lua-torch/nn/lib/THNN/README.md | 32 -
contrib/lua-torch/nn/lib/THNN/THNN.h | 33 -
contrib/lua-torch/nn/lib/THNN/generic/Abs.c | 28 -
.../lua-torch/nn/lib/THNN/generic/AbsCriterion.c | 40 -
.../lua-torch/nn/lib/THNN/generic/BCECriterion.c | 66 -
.../nn/lib/THNN/generic/BatchNormalization.c | 149 -
.../nn/lib/THNN/generic/ClassNLLCriterion.c | 163 -
.../nn/lib/THNN/generic/DistKLDivCriterion.c | 44 -
contrib/lua-torch/nn/lib/THNN/generic/ELU.c | 54 -
.../lua-torch/nn/lib/THNN/generic/FusedRNNKernel.c | 55 -
.../nn/lib/THNN/generic/GatedLinearUnit.c | 73 -
contrib/lua-torch/nn/lib/THNN/generic/HardShrink.c | 42 -
contrib/lua-torch/nn/lib/THNN/generic/HardTanh.c | 133 -
.../lua-torch/nn/lib/THNN/generic/IndexLinear.c | 742 -
contrib/lua-torch/nn/lib/THNN/generic/L1Cost.c | 38 -
contrib/lua-torch/nn/lib/THNN/generic/LeakyReLU.c | 57 -
contrib/lua-torch/nn/lib/THNN/generic/Linear.c | 114 -
contrib/lua-torch/nn/lib/THNN/generic/LogSigmoid.c | 36 -
contrib/lua-torch/nn/lib/THNN/generic/LogSoftMax.c | 137 -
.../lua-torch/nn/lib/THNN/generic/LookupTable.c | 225 -
.../lua-torch/nn/lib/THNN/generic/MSECriterion.c | 45 -
.../nn/lib/THNN/generic/MarginCriterion.c | 47 -
.../lib/THNN/generic/MultiLabelMarginCriterion.c | 184 -
.../nn/lib/THNN/generic/MultiMarginCriterion.c | 168 -
contrib/lua-torch/nn/lib/THNN/generic/PReLU.c | 207 -
contrib/lua-torch/nn/lib/THNN/generic/RReLU.c | 132 -
contrib/lua-torch/nn/lib/THNN/generic/Sigmoid.c | 28 -
.../nn/lib/THNN/generic/SmoothL1Criterion.c | 49 -
.../nn/lib/THNN/generic/SoftMarginCriterion.c | 44 -
contrib/lua-torch/nn/lib/THNN/generic/SoftMax.c | 150 -
contrib/lua-torch/nn/lib/THNN/generic/SoftPlus.c | 47 -
contrib/lua-torch/nn/lib/THNN/generic/SoftShrink.c | 42 -
.../lua-torch/nn/lib/THNN/generic/SparseLinear.c | 564 -
.../THNN/generic/SpatialAdaptiveAveragePooling.c | 258 -
.../lib/THNN/generic/SpatialAdaptiveMaxPooling.c | 274 -
.../nn/lib/THNN/generic/SpatialAveragePooling.c | 329 -
.../nn/lib/THNN/generic/SpatialClassNLLCriterion.c | 131 -
.../nn/lib/THNN/generic/SpatialConvolutionLocal.c | 367 -
.../nn/lib/THNN/generic/SpatialConvolutionMM.c | 377 -
.../nn/lib/THNN/generic/SpatialConvolutionMap.c | 277 -
.../lib/THNN/generic/SpatialDepthWiseConvolution.c | 528 -
.../lib/THNN/generic/SpatialDilatedConvolution.c | 408 -
.../nn/lib/THNN/generic/SpatialDilatedMaxPooling.c | 401 -
.../lib/THNN/generic/SpatialFractionalMaxPooling.c | 253 -
.../nn/lib/THNN/generic/SpatialFullConvolution.c | 462 -
.../lib/THNN/generic/SpatialFullConvolutionMap.c | 222 -
.../nn/lib/THNN/generic/SpatialMaxPooling.c | 44 -
.../nn/lib/THNN/generic/SpatialMaxUnpooling.c | 234 -
.../nn/lib/THNN/generic/SpatialReflectionPadding.c | 260 -
.../lib/THNN/generic/SpatialReplicationPadding.c | 260 -
.../nn/lib/THNN/generic/SpatialSubSampling.c | 302 -
.../lib/THNN/generic/SpatialUpSamplingBilinear.c | 174 -
.../nn/lib/THNN/generic/SpatialUpSamplingNearest.c | 199 -
contrib/lua-torch/nn/lib/THNN/generic/Sqrt.c | 52 -
contrib/lua-torch/nn/lib/THNN/generic/Square.c | 59 -
contrib/lua-torch/nn/lib/THNN/generic/THNN.h | 1501 -
contrib/lua-torch/nn/lib/THNN/generic/Tanh.c | 49 -
.../nn/lib/THNN/generic/TemporalConvolution.c | 398 -
.../nn/lib/THNN/generic/TemporalMaxPooling.c | 283 -
.../nn/lib/THNN/generic/TemporalRowConvolution.c | 472 -
.../nn/lib/THNN/generic/TemporalSubSampling.c | 156 -
contrib/lua-torch/nn/lib/THNN/generic/Threshold.c | 64 -
.../nn/lib/THNN/generic/VolumetricAveragePooling.c | 373 -
.../nn/lib/THNN/generic/VolumetricConvolution.c | 260 -
.../nn/lib/THNN/generic/VolumetricConvolutionMM.c | 628 -
.../THNN/generic/VolumetricDilatedConvolution.c | 420 -
.../lib/THNN/generic/VolumetricDilatedMaxPooling.c | 515 -
.../THNN/generic/VolumetricFractionalMaxPooling.c | 279 -
.../lib/THNN/generic/VolumetricFullConvolution.c | 541 -
.../nn/lib/THNN/generic/VolumetricMaxPooling.c | 50 -
.../nn/lib/THNN/generic/VolumetricMaxUnpooling.c | 373 -
.../THNN/generic/VolumetricReplicationPadding.c | 357 -
.../lib/THNN/generic/VolumetricUpSamplingNearest.c | 226 -
.../THNN/generic/VolumetricUpSamplingTrilinear.c | 213 -
contrib/lua-torch/nn/lib/THNN/generic/unfold.c | 166 -
contrib/lua-torch/nn/lib/THNN/init.c | 280 -
contrib/lua-torch/nn/mkdocs.yml | 18 -
contrib/lua-torch/nn/test.lua | 8787 --
contrib/lua-torch/nn/utils.lua | 223 -
contrib/lua-torch/optim/CMakeLists.txt | 5 -
contrib/lua-torch/optim/COPYRIGHT.txt | 35 -
contrib/lua-torch/optim/ConfusionMatrix.lua | 361 -
contrib/lua-torch/optim/Logger.lua | 189 -
contrib/lua-torch/optim/adadelta.lua | 55 -
contrib/lua-torch/optim/adagrad.lua | 55 -
contrib/lua-torch/optim/adam.lua | 72 -
contrib/lua-torch/optim/adamax.lua | 66 -
contrib/lua-torch/optim/asgd.lua | 73 -
contrib/lua-torch/optim/cg.lua | 208 -
contrib/lua-torch/optim/checkgrad.lua | 52 -
contrib/lua-torch/optim/cmaes.lua | 270 -
contrib/lua-torch/optim/de.lua | 109 -
contrib/lua-torch/optim/fista.lua | 192 -
contrib/lua-torch/optim/init.lua | 33 -
contrib/lua-torch/optim/lbfgs.lua | 268 -
contrib/lua-torch/optim/lswolfe.lua | 192 -
contrib/lua-torch/optim/nag.lua | 86 -
contrib/lua-torch/optim/polyinterp.lua | 212 -
contrib/lua-torch/optim/rmsprop.lua | 58 -
contrib/lua-torch/optim/rprop.lua | 103 -
contrib/lua-torch/optim/sgd.lua | 90 -
contrib/lua-torch/paths/CMakeLists.txt | 55 -
contrib/lua-torch/paths/COPYRIGHT.txt | 36 -
contrib/lua-torch/paths/README.md | 13 -
contrib/lua-torch/paths/init.lua | 141 -
contrib/lua-torch/paths/mkdocs.yml | 12 -
contrib/lua-torch/paths/paths.c | 1161 -
contrib/lua-torch/paths/paths.h.in | 86 -
contrib/lua-torch/torch7/CMakeLists.txt | 50 -
contrib/lua-torch/torch7/COPYRIGHT.txt | 36 -
contrib/lua-torch/torch7/CmdLine.lua | 269 -
contrib/lua-torch/torch7/DiskFile.c | 103 -
contrib/lua-torch/torch7/FFInterface.lua | 222 -
contrib/lua-torch/torch7/File.c | 207 -
contrib/lua-torch/torch7/File.lua | 454 -
contrib/lua-torch/torch7/Generator.c | 50 -
contrib/lua-torch/torch7/MemoryFile.c | 70 -
contrib/lua-torch/torch7/PipeFile.c | 43 -
contrib/lua-torch/torch7/README.md | 45 -
contrib/lua-torch/torch7/ROADMAP.md | 144 -
contrib/lua-torch/torch7/Storage.c | 18 -
contrib/lua-torch/torch7/Tensor.c | 12 -
contrib/lua-torch/torch7/Tensor.lua | 573 -
contrib/lua-torch/torch7/TensorMath.c | 117889 ------------------
contrib/lua-torch/torch7/TensorMath.lua | 1527 -
contrib/lua-torch/torch7/TensorOperator.c | 8 -
contrib/lua-torch/torch7/TestSuite.lua | 30 -
contrib/lua-torch/torch7/Tester.lua | 879 -
contrib/lua-torch/torch7/Timer.c | 185 -
.../lua-torch/torch7/cmake/TorchConfig.cmake.in | 35 -
contrib/lua-torch/torch7/cmake/TorchExports.cmake | 2 -
contrib/lua-torch/torch7/cmake/TorchPackage.cmake | 58 -
contrib/lua-torch/torch7/cmake/TorchPaths.cmake | 32 -
.../lua-torch/torch7/cmake/TorchPathsInit.cmake | 23 -
contrib/lua-torch/torch7/cmake/TorchWrap.cmake | 19 -
contrib/lua-torch/torch7/cmake/TorchWrap.cmake.in | 19 -
contrib/lua-torch/torch7/general.h | 29 -
contrib/lua-torch/torch7/generic/Storage.c | 314 -
contrib/lua-torch/torch7/generic/Tensor.c | 1360 -
contrib/lua-torch/torch7/generic/TensorOperator.c | 193 -
contrib/lua-torch/torch7/generic/luaG.h | 62 -
contrib/lua-torch/torch7/init.c | 93 -
contrib/lua-torch/torch7/init.lua | 192 -
contrib/lua-torch/torch7/lib/CMakeLists.txt | 7 -
contrib/lua-torch/torch7/lib/TH/CMakeLists.txt | 296 -
contrib/lua-torch/torch7/lib/TH/README.md | 11 -
contrib/lua-torch/torch7/lib/TH/TH.h | 25 -
contrib/lua-torch/torch7/lib/TH/THAllocator.c | 500 -
contrib/lua-torch/torch7/lib/TH/THAllocator.h | 43 -
contrib/lua-torch/torch7/lib/TH/THAtomic.c | 267 -
contrib/lua-torch/torch7/lib/TH/THAtomic.h | 125 -
contrib/lua-torch/torch7/lib/TH/THBlas.c | 4 -
contrib/lua-torch/torch7/lib/TH/THBlas.h | 11 -
contrib/lua-torch/torch7/lib/TH/THConfig.cmake.in | 9 -
contrib/lua-torch/torch7/lib/TH/THDiskFile.c | 797 -
contrib/lua-torch/torch7/lib/TH/THDiskFile.h | 19 -
contrib/lua-torch/torch7/lib/TH/THFile.c | 157 -
contrib/lua-torch/torch7/lib/TH/THFile.h | 91 -
contrib/lua-torch/torch7/lib/TH/THFilePrivate.h | 50 -
contrib/lua-torch/torch7/lib/TH/THGeneral.c | 406 -
contrib/lua-torch/torch7/lib/TH/THGeneral.h.in | 130 -
.../lua-torch/torch7/lib/TH/THGenerateAllTypes.h | 17 -
.../lua-torch/torch7/lib/TH/THGenerateByteType.h | 24 -
.../lua-torch/torch7/lib/TH/THGenerateCharType.h | 24 -
.../lua-torch/torch7/lib/TH/THGenerateDoubleType.h | 24 -
.../lua-torch/torch7/lib/TH/THGenerateFloatType.h | 24 -
.../lua-torch/torch7/lib/TH/THGenerateFloatTypes.h | 17 -
.../lua-torch/torch7/lib/TH/THGenerateHalfType.h | 25 -
.../lua-torch/torch7/lib/TH/THGenerateIntType.h | 24 -
.../lua-torch/torch7/lib/TH/THGenerateIntTypes.h | 20 -
.../lua-torch/torch7/lib/TH/THGenerateLongType.h | 24 -
.../lua-torch/torch7/lib/TH/THGenerateShortType.h | 24 -
contrib/lua-torch/torch7/lib/TH/THHalf.c | 100 -
contrib/lua-torch/torch7/lib/TH/THHalf.h | 41 -
contrib/lua-torch/torch7/lib/TH/THLapack.c | 4 -
contrib/lua-torch/torch7/lib/TH/THLapack.h | 27 -
contrib/lua-torch/torch7/lib/TH/THLogAdd.c | 88 -
contrib/lua-torch/torch7/lib/TH/THLogAdd.h | 14 -
contrib/lua-torch/torch7/lib/TH/THMath.h | 36 -
contrib/lua-torch/torch7/lib/TH/THMemoryFile.c | 685 -
contrib/lua-torch/torch7/lib/TH/THMemoryFile.h | 13 -
contrib/lua-torch/torch7/lib/TH/THRandom.c | 272 -
contrib/lua-torch/torch7/lib/TH/THRandom.h | 81 -
contrib/lua-torch/torch7/lib/TH/THSize.c | 26 -
contrib/lua-torch/torch7/lib/TH/THSize.h | 13 -
contrib/lua-torch/torch7/lib/TH/THStorage.c | 153 -
contrib/lua-torch/torch7/lib/TH/THStorage.h | 39 -
contrib/lua-torch/torch7/lib/TH/THTensor.c | 34 -
contrib/lua-torch/torch7/lib/TH/THTensor.h | 42 -
contrib/lua-torch/torch7/lib/TH/THTensorApply.h | 238 -
contrib/lua-torch/torch7/lib/TH/THTensorDimApply.h | 324 -
contrib/lua-torch/torch7/lib/TH/THTensorMacros.h | 30 -
contrib/lua-torch/torch7/lib/TH/THVector.c | 30 -
contrib/lua-torch/torch7/lib/TH/THVector.h | 13 -
.../lua-torch/torch7/lib/TH/cmake/FindARM.cmake | 76 -
.../lua-torch/torch7/lib/TH/cmake/FindBLAS.cmake | 309 -
.../lua-torch/torch7/lib/TH/cmake/FindLAPACK.cmake | 190 -
.../lua-torch/torch7/lib/TH/cmake/FindMKL.cmake | 272 -
.../lua-torch/torch7/lib/TH/cmake/FindSSE.cmake | 125 -
contrib/lua-torch/torch7/lib/TH/generic/THBlas.c | 412 -
contrib/lua-torch/torch7/lib/TH/generic/THBlas.h | 19 -
contrib/lua-torch/torch7/lib/TH/generic/THLapack.c | 270 -
contrib/lua-torch/torch7/lib/TH/generic/THLapack.h | 40 -
.../lua-torch/torch7/lib/TH/generic/THStorage.c | 226 -
.../lua-torch/torch7/lib/TH/generic/THStorage.h | 71 -
.../torch7/lib/TH/generic/THStorageCopy.c | 75 -
.../torch7/lib/TH/generic/THStorageCopy.h | 18 -
contrib/lua-torch/torch7/lib/TH/generic/THTensor.c | 939 -
contrib/lua-torch/torch7/lib/TH/generic/THTensor.h | 138 -
.../lua-torch/torch7/lib/TH/generic/THTensorConv.c | 1957 -
.../lua-torch/torch7/lib/TH/generic/THTensorConv.h | 79 -
.../lua-torch/torch7/lib/TH/generic/THTensorCopy.c | 136 -
.../lua-torch/torch7/lib/TH/generic/THTensorCopy.h | 17 -
.../torch7/lib/TH/generic/THTensorLapack.c | 1121 -
.../torch7/lib/TH/generic/THTensorLapack.h | 25 -
.../lua-torch/torch7/lib/TH/generic/THTensorMath.c | 3275 -
.../lua-torch/torch7/lib/TH/generic/THTensorMath.h | 198 -
.../torch7/lib/TH/generic/THTensorRandom.c | 250 -
.../torch7/lib/TH/generic/THTensorRandom.h | 25 -
contrib/lua-torch/torch7/lib/TH/generic/THVector.h | 17 -
.../torch7/lib/TH/generic/THVectorDefault.c | 131 -
.../torch7/lib/TH/generic/THVectorDispatch.c | 262 -
.../torch7/lib/TH/generic/simd/common_simd.h | 395 -
.../torch7/lib/TH/generic/simd/convolve.c | 127 -
.../torch7/lib/TH/generic/simd/convolve.h | 1 -
.../torch7/lib/TH/generic/simd/convolve5x5_avx.c | 212 -
.../torch7/lib/TH/generic/simd/convolve5x5_sse.c | 320 -
.../lua-torch/torch7/lib/TH/generic/simd/simd.h | 165 -
contrib/lua-torch/torch7/lib/TH/vector/AVX.c | 274 -
contrib/lua-torch/torch7/lib/TH/vector/AVX.h | 23 -
contrib/lua-torch/torch7/lib/TH/vector/AVX2.c | 47 -
contrib/lua-torch/torch7/lib/TH/vector/AVX2.h | 9 -
contrib/lua-torch/torch7/lib/TH/vector/NEON.c | 105 -
contrib/lua-torch/torch7/lib/TH/vector/SSE.c | 268 -
contrib/lua-torch/torch7/lib/TH/vector/VSX.c | 2520 -
contrib/lua-torch/torch7/lib/luaT/CMakeLists.txt | 12 -
contrib/lua-torch/torch7/lib/luaT/README.md | 266 -
contrib/lua-torch/torch7/lib/luaT/luaT.c | 1373 -
contrib/lua-torch/torch7/lib/luaT/luaT.h | 135 -
.../lua-torch/torch7/lib/luaT/luaTConfig.cmake.in | 9 -
contrib/lua-torch/torch7/mkdocs.yml | 21 -
contrib/lua-torch/torch7/paths.lua.in | 11 -
contrib/lua-torch/torch7/random.c | 237 -
contrib/lua-torch/torch7/random.lua | 53 -
contrib/lua-torch/torch7/test/longSize.lua | 61 -
contrib/lua-torch/torch7/test/test.lua | 3969 -
contrib/lua-torch/torch7/test/test_Multinomial.lua | 25 -
contrib/lua-torch/torch7/test/test_Tester.lua | 626 -
contrib/lua-torch/torch7/test/test_half.lua | 55 -
contrib/lua-torch/torch7/test/test_qr.lua | 274 -
contrib/lua-torch/torch7/test/test_sharedmem.lua | 92 -
contrib/lua-torch/torch7/test/test_timer.lua | 52 -
contrib/lua-torch/torch7/test/test_writeObject.lua | 238 -
contrib/lua-torch/torch7/test/timeSort.lua | 153 -
contrib/lua-torch/torch7/torchcwrap.lua | 515 -
contrib/lua-torch/torch7/utils.c | 255 -
contrib/lua-torch/torch7/utils.h | 36 -
507 files changed, 208744 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 00822aecb..2f455d941 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -57,7 +57,6 @@ OPTION(ENABLE_JEMALLOC "Build rspamd with jemalloc allocator [default: OFF]
OPTION(ENABLE_COVERAGE "Build rspamd with code coverage options [default: OFF]" OFF)
OPTION(ENABLE_FULL_DEBUG "Build rspamd with all possible debug [default: OFF]" OFF)
OPTION(ENABLE_UTILS "Build rspamd internal utils [default: OFF]" OFF)
-OPTION(ENABLE_TORCH "Install torch7 with Rspamd [default: ON]" ON)
OPTION(ENABLE_LIBUNWIND "Use libunwind to print crash traces [default: OFF]" OFF)
OPTION(ENABLE_LUA_TRACE "Trace all Lua C API invocations [default: OFF]" OFF)
@@ -1232,19 +1231,6 @@ IF(ENABLE_CLANG_PLUGIN MATCHES "ON")
ADD_SUBDIRECTORY(clang-plugin)
ENDIF()
-IF(ENABLE_TORCH MATCHES "ON")
- IF(WITH_LUAJIT)
- ADD_SUBDIRECTORY(contrib/lua-torch/paths)
- ADD_SUBDIRECTORY(contrib/lua-torch/torch7)
- ADD_SUBDIRECTORY(contrib/lua-torch/nn)
- ADD_SUBDIRECTORY(contrib/lua-torch/optim)
- ADD_SUBDIRECTORY(contrib/lua-torch/decisiontree)
- SET(WITH_TORCH 1)
- ELSE()
- MESSAGE(FATAL_ERROR "Cannot enable torch without luajit")
- ENDIF()
-ENDIF()
-
ADD_SUBDIRECTORY(src)
ADD_SUBDIRECTORY(test)
ADD_SUBDIRECTORY(utils)
@@ -1337,10 +1323,6 @@ INSTALL(FILES "contrib/lua-tableshape/tableshape.lua" DESTINATION ${LUALIBDIR})
INSTALL(FILES "contrib/lua-lupa/lupa.lua" DESTINATION ${LUALIBDIR})
INSTALL(FILES "contrib/lua-lpeg/lpegre.lua" DESTINATION ${LUALIBDIR})
-IF(ENABLE_TORCH MATCHES "ON")
- INSTALL(FILES "contrib/lua-moses/moses.lua" DESTINATION ${LUALIBDIR})
-ENDIF()
-
# systemd unit
IF(CMAKE_SYSTEM_NAME STREQUAL "Linux" AND WANT_SYSTEMD_UNITS MATCHES "ON")
INSTALL(FILES "rspamd.service" DESTINATION ${SYSTEMDDIR})
diff --git a/contrib/lua-moses/LICENSE b/contrib/lua-moses/LICENSE
deleted file mode 100644
index f06dce3e8..000000000
--- a/contrib/lua-moses/LICENSE
+++ /dev/null
@@ -1,20 +0,0 @@
-Copyright (c) 2012-2014 Roland Yonaba
-
-Permission is hereby granted, free of charge, to any person obtaining a
-copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be included
-in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
-OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
-IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
-CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
-TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
-SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/contrib/lua-moses/moses.lua b/contrib/lua-moses/moses.lua
deleted file mode 100644
index bb67dccad..000000000
--- a/contrib/lua-moses/moses.lua
+++ /dev/null
@@ -1,364 +0,0 @@
-local _ba='1.6.1'local aba,bba,cba,dba=next,type,select,pcall;local _ca,aca=setmetatable,getmetatable
-local bca,cca=table.insert,table.sort;local dca,_da=table.remove,table.concat
-local ada,bda,cda=math.randomseed,math.random,math.huge;local dda,__b,a_b=math.floor,math.max,math.min;local b_b=rawget
-local c_b=table.unpack or unpack;local d_b,_ab=pairs,ipairs;local aab=os.clock;local bab={}
-local function cab(dcb,_db)return dcb>_db end;local function dab(dcb,_db)return dcb<_db end
-local function _bb(dcb,_db,adb)return(dcb<_db)and _db or
-(dcb>adb and adb or dcb)end;local function abb(dcb,_db)return _db and true end
-local function bbb(dcb)return not dcb end
-local function cbb(dcb)local _db=0;for adb,bdb in d_b(dcb)do _db=_db+1 end;return _db end
-local function dbb(dcb,_db,adb,...)local bdb;local cdb=adb or bab.identity;for ddb,__c in d_b(dcb)do
-if not bdb then bdb=cdb(__c,...)else
-local a_c=cdb(__c,...)bdb=_db(bdb,a_c)and bdb or a_c end end;return bdb end
-local function _cb(dcb,_db,adb,bdb)for i=0,#dcb,_db do local cdb=bab.slice(dcb,i+1,i+_db)
-if#cdb>0 then while
-(#cdb<_db and bdb)do cdb[#cdb+1]=bdb end;adb(cdb)end end end
-local function acb(dcb,_db,adb,bdb)
-for i=0,#dcb,_db-1 do local cdb=bab.slice(dcb,i+1,i+_db)if
-#cdb>0 and i+1 <#dcb then while(#cdb<_db and bdb)do cdb[#cdb+1]=bdb end
-adb(cdb)end end end
-local function bcb(dcb,_db,adb)if _db==0 then adb(dcb)end
-for i=1,_db do dcb[_db],dcb[i]=dcb[i],dcb[_db]bcb(dcb,_db-
-1,adb)dcb[_db],dcb[i]=dcb[i],dcb[_db]end end;local ccb=-1
-function bab.clear(dcb)for _db in d_b(dcb)do dcb[_db]=nil end;return dcb end
-function bab.each(dcb,_db,...)for adb,bdb in d_b(dcb)do _db(adb,bdb,...)end end
-function bab.eachi(dcb,_db,...)
-local adb=bab.sort(bab.select(bab.keys(dcb),function(bdb,cdb)return bab.isInteger(cdb)end))for bdb,cdb in _ab(adb)do _db(cdb,dcb[cdb],...)end end
-function bab.at(dcb,...)local _db={}for adb,bdb in _ab({...})do
-if bab.has(dcb,bdb)then _db[#_db+1]=dcb[bdb]end end;return _db end
-function bab.count(dcb,_db)if bab.isNil(_db)then return bab.size(dcb)end;local adb=0
-bab.each(dcb,function(bdb,cdb)if
-bab.isEqual(cdb,_db)then adb=adb+1 end end)return adb end
-function bab.countf(dcb,_db,...)return bab.count(bab.map(dcb,_db,...),true)end
-function bab.cycle(dcb,_db)_db=_db or 1;if _db<=0 then return bab.noop end;local adb,bdb;local cdb=0
-while true do
-return
-function()adb=adb and
-aba(dcb,adb)or aba(dcb)
-bdb=not bdb and adb or bdb;if _db then cdb=(adb==bdb)and cdb+1 or cdb
-if cdb>_db then return end end;return adb,dcb[adb]end end end
-function bab.map(dcb,_db,...)local adb={}
-for bdb,cdb in d_b(dcb)do local ddb,__c,a_c=bdb,_db(bdb,cdb,...)adb[a_c and __c or ddb]=
-a_c or __c end;return adb end;function bab.reduce(dcb,_db,adb)
-for bdb,cdb in d_b(dcb)do if adb==nil then adb=cdb else adb=_db(adb,cdb)end end;return adb end;function bab.reduceby(dcb,_db,adb,bdb,...)return
-bab.reduce(bab.select(dcb,bdb,...),_db,adb)end;function bab.reduceRight(dcb,_db,adb)return
-bab.reduce(bab.reverse(dcb),_db,adb)end
-function bab.mapReduce(dcb,_db,adb)
-local bdb={}for cdb,ddb in d_b(dcb)do bdb[cdb]=not adb and ddb or _db(adb,ddb)
-adb=bdb[cdb]end;return bdb end;function bab.mapReduceRight(dcb,_db,adb)
-return bab.mapReduce(bab.reverse(dcb),_db,adb)end
-function bab.include(dcb,_db)local adb=
-bab.isFunction(_db)and _db or bab.isEqual;for bdb,cdb in d_b(dcb)do if adb(cdb,_db)then
-return true end end;return false end
-function bab.detect(dcb,_db)
-local adb=bab.isFunction(_db)and _db or bab.isEqual;for bdb,cdb in d_b(dcb)do if adb(cdb,_db)then return bdb end end end
-function bab.where(dcb,_db)
-local adb=bab.select(dcb,function(bdb,cdb)
-for ddb in d_b(_db)do if cdb[ddb]~=_db[ddb]then return false end end;return true end)return#adb>0 and adb or nil end
-function bab.findWhere(dcb,_db)
-local adb=bab.detect(dcb,function(bdb)for cdb in d_b(_db)do
-if _db[cdb]~=bdb[cdb]then return false end end;return true end)return adb and dcb[adb]end
-function bab.select(dcb,_db,...)local adb={}for bdb,cdb in d_b(dcb)do
-if _db(bdb,cdb,...)then adb[#adb+1]=cdb end end;return adb end
-function bab.reject(dcb,_db,...)local adb=bab.map(dcb,_db,...)local bdb={}for cdb,ddb in d_b(adb)do if not ddb then
-bdb[#bdb+1]=dcb[cdb]end end;return bdb end
-function bab.all(dcb,_db,...)return( (#bab.select(bab.map(dcb,_db,...),abb))==
-cbb(dcb))end
-function bab.invoke(dcb,_db,...)local adb={...}
-return
-bab.map(dcb,function(bdb,cdb)
-if bab.isTable(cdb)then
-if bab.has(cdb,_db)then
-if
-bab.isCallable(cdb[_db])then return cdb[_db](cdb,c_b(adb))else return cdb[_db]end else
-if bab.isCallable(_db)then return _db(cdb,c_b(adb))end end elseif bab.isCallable(_db)then return _db(cdb,c_b(adb))end end)end
-function bab.pluck(dcb,_db)return
-bab.reject(bab.map(dcb,function(adb,bdb)return bdb[_db]end),bbb)end;function bab.max(dcb,_db,...)return dbb(dcb,cab,_db,...)end;function bab.min(dcb,_db,...)return
-dbb(dcb,dab,_db,...)end
-function bab.shuffle(dcb,_db)if _db then ada(_db)end
-local adb={}
-bab.each(dcb,function(bdb,cdb)local ddb=dda(bda()*bdb)+1;adb[bdb]=adb[ddb]
-adb[ddb]=cdb end)return adb end
-function bab.same(dcb,_db)
-return
-bab.all(dcb,function(adb,bdb)return bab.include(_db,bdb)end)and
-bab.all(_db,function(adb,bdb)return bab.include(dcb,bdb)end)end;function bab.sort(dcb,_db)cca(dcb,_db)return dcb end
-function bab.sortBy(dcb,_db,adb)
-local bdb=_db or bab.identity
-if bab.isString(_db)then bdb=function(ddb)return ddb[_db]end end;adb=adb or dab;local cdb={}
-bab.each(dcb,function(ddb,__c)
-cdb[#cdb+1]={value=__c,transform=bdb(__c)}end)
-cca(cdb,function(ddb,__c)return adb(ddb.transform,__c.transform)end)return bab.pluck(cdb,'value')end
-function bab.groupBy(dcb,_db,...)local adb={...}local bdb={}
-bab.each(dcb,function(cdb,ddb)local __c=_db(cdb,ddb,c_b(adb))
-if
-bdb[__c]then bdb[__c][#bdb[__c]+1]=ddb else bdb[__c]={ddb}end end)return bdb end
-function bab.countBy(dcb,_db,...)local adb={...}local bdb={}
-bab.each(dcb,function(cdb,ddb)local __c=_db(cdb,ddb,c_b(adb))bdb[__c]=(
-bdb[__c]or 0)+1 end)return bdb end
-function bab.size(...)local dcb={...}local _db=dcb[1]if bab.isTable(_db)then return cbb(dcb[1])else
-return cbb(dcb)end end;function bab.containsKeys(dcb,_db)
-for adb in d_b(_db)do if not dcb[adb]then return false end end;return true end
-function bab.sameKeys(dcb,_db)for adb in
-d_b(dcb)do if not _db[adb]then return false end end;for adb in
-d_b(_db)do if not dcb[adb]then return false end end
-return true end
-function bab.sample(dcb,_db,adb)_db=_db or 1;if _db<1 then return end;if _db==1 then if adb then ada(adb)end;return
-dcb[bda(1,#dcb)]end;return
-bab.slice(bab.shuffle(dcb,adb),1,_db)end
-function bab.sampleProb(dcb,_db,adb)if adb then ada(adb)end;return
*** OUTPUT TRUNCATED, 211632 LINES SKIPPED ***
More information about the Commits
mailing list