Search is not available for this dataset
repo stringlengths 2 152 ⌀ | file stringlengths 15 239 | code stringlengths 0 58.4M | file_length int64 0 58.4M | avg_line_length float64 0 1.81M | max_line_length int64 0 12.7M | extension_type stringclasses 364
values |
|---|---|---|---|---|---|---|
OLED | OLED-master/src/main/scala/oled/functions/SingleCoreOLEDFunctions.scala | /*
* Copyright (C) 2016 Nikos Katzouris
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is d... | 17,978 | 40.909091 | 199 | scala |
OLED | OLED-master/src/main/scala/oled/functions/WeightLearningFunctions.scala | /*
* Copyright (C) 2016 Nikos Katzouris
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is d... | 9,601 | 47.251256 | 151 | scala |
OLED | OLED-master/src/main/scala/oled/mwua/ClassicSleepingExpertsHedge.scala | /*
* Copyright (C) 2016 Nikos Katzouris
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is d... | 12,394 | 41.594502 | 160 | scala |
OLED | OLED-master/src/main/scala/oled/mwua/ExpertAdviceFunctions.scala | /*
* Copyright (C) 2016 Nikos Katzouris
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is d... | 69,990 | 45.41313 | 244 | scala |
OLED | OLED-master/src/main/scala/oled/mwua/HelperClasses.scala | /*
* Copyright (C) 2016 Nikos Katzouris
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is d... | 1,114 | 33.84375 | 103 | scala |
OLED | OLED-master/src/main/scala/oled/mwua/InertiaExpert.scala | /*
* Copyright (C) 2016 Nikos Katzouris
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is d... | 1,408 | 27.755102 | 121 | scala |
OLED | OLED-master/src/main/scala/oled/mwua/Learner.scala | /*
* Copyright (C) 2016 Nikos Katzouris
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is d... | 63,191 | 43.564175 | 169 | scala |
OLED | OLED-master/src/main/scala/oled/mwua/Learner_NEW.scala | /*
* Copyright (C) 2016 Nikos Katzouris
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is d... | 23,733 | 40.932862 | 172 | scala |
OLED | OLED-master/src/main/scala/oled/mwua/Learner_OLD_DEBUG.scala | /*
* Copyright (C) 2016 Nikos Katzouris
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is d... | 55,908 | 43.301902 | 174 | scala |
OLED | OLED-master/src/main/scala/oled/mwua/MiniBatchInference.scala | /*
* Copyright (C) 2016 Nikos Katzouris
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is d... | 745 | 31.434783 | 72 | scala |
OLED | OLED-master/src/main/scala/oled/mwua/PrequentialInference.scala | /*
* Copyright (C) 2016 Nikos Katzouris
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is d... | 3,281 | 33.914894 | 121 | scala |
OLED | OLED-master/src/main/scala/oled/mwua/RuleEnsemble.scala | /*
* Copyright (C) 2016 Nikos Katzouris
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is d... | 4,141 | 35.017391 | 149 | scala |
OLED | OLED-master/src/main/scala/oled/mwua/Runner.scala | /*
* Copyright (C) 2016 Nikos Katzouris
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is d... | 10,573 | 46.846154 | 252 | scala |
OLED | OLED-master/src/main/scala/oled/mwua/Runner_Streaming.scala | /*
* Copyright (C) 2016 Nikos Katzouris
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is d... | 3,102 | 38.782051 | 141 | scala |
OLED | OLED-master/src/main/scala/oled/mwua/StateHandler.scala | /*
* Copyright (C) 2016 Nikos Katzouris
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is d... | 6,751 | 37.582857 | 128 | scala |
OLED | OLED-master/src/main/scala/oled/mwua/StructureLearning.scala | /*
* Copyright (C) 2016 Nikos Katzouris
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is d... | 5,428 | 40.128788 | 137 | scala |
OLED | OLED-master/src/main/scala/oled/mwua/Worker.scala | /*
* Copyright (C) 2016 Nikos Katzouris
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is d... | 1,454 | 31.333333 | 128 | scala |
OLED | OLED-master/src/main/scala/oled/mwua/bandits/BanditFunctions.scala | /*
* Copyright (C) 2016 Nikos Katzouris
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is d... | 794 | 29.576923 | 72 | scala |
OLED | OLED-master/src/main/scala/oled/mwua/bandits/PartialExpertTree.scala | /*
* Copyright (C) 2016 Nikos Katzouris
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is d... | 3,447 | 25.9375 | 106 | scala |
OLED | OLED-master/src/main/scala/oled/mwua/experiments_/ExpLearner.scala | /*
* Copyright (C) 2016 Nikos Katzouris
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is d... | 10,789 | 37.673835 | 172 | scala |
OLED | OLED-master/src/main/scala/oled/mwua/experiments_/ExpRunner.scala | /*
* Copyright (C) 2016 Nikos Katzouris
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is d... | 4,596 | 40.790909 | 140 | scala |
OLED | OLED-master/src/main/scala/oled/non_blocking/Dispatcher.scala | /*
* Copyright (C) 2016 Nikos Katzouris
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is d... | 7,433 | 39.846154 | 166 | scala |
OLED | OLED-master/src/main/scala/oled/non_blocking/Node.scala | /*
* Copyright (C) 2016 Nikos Katzouris
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is d... | 15,531 | 40.198939 | 147 | scala |
OLED | OLED-master/src/main/scala/oled/non_blocking/PingActor.scala | /*
* Copyright (C) 2016 Nikos Katzouris
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is d... | 1,320 | 27.717391 | 72 | scala |
OLED | OLED-master/src/main/scala/oled/non_blocking/TopLevelActor.scala | /*
* Copyright (C) 2016 Nikos Katzouris
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is d... | 5,600 | 35.607843 | 184 | scala |
OLED | OLED-master/src/main/scala/oled/non_blocking/Utils.scala | /*
* Copyright (C) 2016 Nikos Katzouris
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is d... | 9,221 | 40.540541 | 168 | scala |
OLED | OLED-master/src/main/scala/oled/selftraining/DataBatch.scala | /*
* Copyright (C) 2016 Nikos Katzouris
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is d... | 880 | 31.62963 | 108 | scala |
OLED | OLED-master/src/main/scala/oled/selftraining/Learner.scala | /*
* Copyright (C) 2016 Nikos Katzouris
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is d... | 1,211 | 27.186047 | 72 | scala |
OLED | OLED-master/src/main/scala/oled/selftraining/Master.scala | /*
* Copyright (C) 2016 Nikos Katzouris
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is d... | 1,153 | 28.589744 | 72 | scala |
OLED | OLED-master/src/main/scala/oled/single_core/Dispatcher.scala | /*
* Copyright (C) 2016 Nikos Katzouris
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is d... | 9,203 | 43.463768 | 237 | scala |
OLED | OLED-master/src/main/scala/oled/single_core/Master.scala | /*
* Copyright (C) 2016 Nikos Katzouris
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is d... | 1,724 | 31.54717 | 114 | scala |
OLED | OLED-master/src/main/scala/oled/single_core/TheoryLearner.scala | /*
* Copyright (C) 2016 Nikos Katzouris
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is d... | 4,927 | 36.052632 | 121 | scala |
OLED | OLED-master/src/main/scala/oled/single_core/WholeTheoryLearner.scala | /*
* Copyright (C) 2016 Nikos Katzouris
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is d... | 7,511 | 36.748744 | 159 | scala |
OLED | OLED-master/src/main/scala/oled/weightlearn/AdaGrad.scala | /*
* Copyright (C) 2016 Nikos Katzouris
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is d... | 8,877 | 36.778723 | 115 | scala |
OLED | OLED-master/src/main/scala/oled/weightlearn/Auxil.scala | /*
* Copyright (C) 2016 Nikos Katzouris
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is d... | 5,336 | 37.121429 | 143 | scala |
OLED | OLED-master/src/main/scala/oled/weightlearn/EvalAfterWeightLearning.scala | /*
* Copyright (C) 2016 Nikos Katzouris
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is d... | 5,075 | 37.454545 | 133 | scala |
OLED | OLED-master/src/main/scala/oled/weightlearn/MAPInference.scala | /*
* Copyright (C) 2016 Nikos Katzouris
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is d... | 5,163 | 33.891892 | 98 | scala |
OLED | OLED-master/src/main/scala/oled/weightlearn/parallel/IO.scala | /*
* Copyright (C) 2016 Nikos Katzouris
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is d... | 1,796 | 37.234043 | 109 | scala |
OLED | OLED-master/src/main/scala/oled/weightlearn/parallel/MLNClauseEvalMaster.scala | /*
* Copyright (C) 2016 Nikos Katzouris
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is d... | 5,535 | 36.659864 | 155 | scala |
OLED | OLED-master/src/main/scala/oled/weightlearn/parallel/MLNClauseEvalWorker.scala | /*
* Copyright (C) 2016 Nikos Katzouris
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is d... | 2,661 | 36.492958 | 142 | scala |
OLED | OLED-master/src/main/scala/oled/weightlearn/parallel/Test.scala | /*
* Copyright (C) 2016 Nikos Katzouris
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is d... | 2,052 | 34.396552 | 142 | scala |
OLED | OLED-master/src/main/scala/oled/weightlearn/parallel/WeightedTheoryLearner.scala | /*
* Copyright (C) 2016 Nikos Katzouris
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is d... | 11,976 | 39.056856 | 150 | scala |
OLED | OLED-master/src/main/scala/utils/ASP.scala | /*
* Copyright (C) 2016 Nikos Katzouris
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is d... | 38,019 | 45.536108 | 177 | scala |
OLED | OLED-master/src/main/scala/utils/DataHandler.scala | /*
* Copyright (C) 2016 Nikos Katzouris
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is d... | 2,119 | 32.650794 | 119 | scala |
OLED | OLED-master/src/main/scala/utils/DataUtils.scala | /*
* Copyright (C) 2016 Nikos Katzouris
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is d... | 4,676 | 35.539063 | 131 | scala |
OLED | OLED-master/src/main/scala/utils/Implicits.scala | /*
* Copyright (C) 2016 Nikos Katzouris
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is d... | 3,291 | 34.021277 | 136 | scala |
OLED | OLED-master/src/main/scala/utils/LookAheads.scala | /*
* Copyright (C) 2016 Nikos Katzouris
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is d... | 9,476 | 45.915842 | 202 | scala |
OLED | OLED-master/src/main/scala/utils/MongoUtils.scala | /*
* Copyright (C) 2016 Nikos Katzouris
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is d... | 20,833 | 39.691406 | 167 | scala |
OLED | OLED-master/src/main/scala/utils/Utils.scala | /*
* Copyright (C) 2016 Nikos Katzouris
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is d... | 19,953 | 37.007619 | 157 | scala |
OLED | OLED-master/src/main/scala/utils/lookaheads/LookAheadImplementations.scala | /*
* Copyright (C) 2016 Nikos Katzouris
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is d... | 5,337 | 45.417391 | 170 | scala |
OLED | OLED-master/src/main/scala/utils/lookaheads/LookAheadUtils.scala | /*
* Copyright (C) 2016 Nikos Katzouris
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is d... | 5,490 | 43.642276 | 178 | scala |
OLED | OLED-master/src/main/scala/utils/parsers/ASPResultsParser.scala | /*
* Copyright (C) 2016 Nikos Katzouris
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is d... | 1,379 | 30.363636 | 106 | scala |
OLED | OLED-master/src/main/scala/utils/parsers/ClausalLogicParser.scala | /*
* Copyright (C) 2016 Nikos Katzouris
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is d... | 3,338 | 46.028169 | 170 | scala |
OLED | OLED-master/src/main/scala/utils/parsers/ModesParser.scala | /*
* Copyright (C) 2016 Nikos Katzouris
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is d... | 3,979 | 46.380952 | 121 | scala |
OLED | OLED-master/src/main/scala/utils/parsers/PB2LogicParser.scala | /*
* Copyright (C) 2016 Nikos Katzouris
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is d... | 6,620 | 41.716129 | 239 | scala |
OLED | OLED-master/src/main/scala/utils/plotting/Draft.scala | /*
* Copyright (C) 2016 Nikos Katzouris
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is d... | 5,716 | 45.479675 | 137 | scala |
OLED | OLED-master/src/main/scala/utils/plotting/LPARPlots.scala | package utils.plotting
import scalatikz.pgf.enums.Color.{BLACK, BLUE, RED}
import scalatikz.pgf.plots.Figure
import scalatikz.pgf.plots.enums.FontSize.VERY_LARGE
import scalatikz.pgf.plots.enums.LegendPos.{NORTH_EAST, NORTH_WEST}
import scalatikz.pgf.plots.enums.Mark.{TRIANGLE, X}
/**
* Created by nkatz at 27/2/20
... | 11,010 | 46.666667 | 114 | scala |
OLED | OLED-master/src/main/scala/utils/plotting/PlotTest2.scala | /*
* Copyright (C) 2016 Nikos Katzouris
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is d... | 13,968 | 43.346032 | 170 | scala |
OLED | OLED-master/src/main/scala/utils/plotting/TPLPExpertsPlots.scala | /*
* Copyright (C) 2016 Nikos Katzouris
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is d... | 22,942 | 52.232019 | 158 | scala |
OLED | OLED-master/src/main/scala/woled/ASPActor.scala | /*
* Copyright (C) 2016 Nikos Katzouris
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is d... | 741 | 28.68 | 72 | scala |
OLED | OLED-master/src/main/scala/woled/Learner.scala | /*
* Copyright (C) 2016 Nikos Katzouris
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is d... | 8,763 | 43.714286 | 191 | scala |
OLED | OLED-master/src/main/scala/woled/MAPActor.scala | /*
* Copyright (C) 2016 Nikos Katzouris
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is d... | 1,013 | 26.405405 | 72 | scala |
OLED | OLED-master/src/main/scala/woled/MAPCorrect.scala | /*
* Copyright (C) 2016 Nikos Katzouris
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is d... | 4,715 | 36.428571 | 165 | scala |
OLED | OLED-master/src/main/scala/woled/Pruning.scala | /*
* Copyright (C) 2016 Nikos Katzouris
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is d... | 1,211 | 24.25 | 98 | scala |
OLED | OLED-master/src/main/scala/woled/Runner.scala | /*
* Copyright (C) 2016 Nikos Katzouris
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is d... | 5,475 | 46.206897 | 172 | scala |
OLED | OLED-master/src/main/scala/woled/Scoring.scala | /*
* Copyright (C) 2016 Nikos Katzouris
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is d... | 26,236 | 49.945631 | 235 | scala |
OLED | OLED-master/src/main/scala/woled/State.scala | /*
* Copyright (C) 2016 Nikos Katzouris
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is d... | 3,718 | 32.205357 | 113 | scala |
OLED | OLED-master/src/main/scala/woled/Test.scala | /*
* Copyright (C) 2016 Nikos Katzouris
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is d... | 2,558 | 24.088235 | 160 | scala |
OLED | OLED-master/src/main/scala/woled/Utils.scala | /*
* Copyright (C) 2016 Nikos Katzouris
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is d... | 2,018 | 31.564516 | 115 | scala |
OLED | OLED-master/src/main/scala/woled/WoledUtils.scala | /*
* Copyright (C) 2016 Nikos Katzouris
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is d... | 24,859 | 48.423459 | 165 | scala |
OLED | OLED-master/src/main/scala/xhail/Xhail.scala | /*
* Copyright (C) 2016 Nikos Katzouris
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is d... | 20,479 | 43.137931 | 179 | scala |
deep-translator | deep-translator-master/.pre-commit-config.yaml | default_language_version:
python: python3
default_stages: [commit, push]
ci:
autofix_commit_msg: |
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
autofix_prs: true
autoupdate_branch: ''
autoupdate_commit_msg: '[pre-commit.ci] p... | 1,708 | 26.564516 | 66 | yaml |
deep-translator | deep-translator-master/.readthedocs.yaml |
# File: .readthedocs.yaml
version: 2
# Build from the docs/ directory with Sphinx
sphinx:
configuration: docs/conf.py
# Explicitly set the version of Python and its requirements
python:
version: 3.7
install:
- requirements: docs/requirements_docs.txt
| 265 | 16.733333 | 59 | yaml |
deep-translator | deep-translator-master/.scrutinizer.yml | checks:
python:
code_rating: true
duplicate_code: true
build:
nodes:
analysis:
tests:
override:
- py-scrutinizer-run
| 168 | 13.083333 | 30 | yml |
deep-translator | deep-translator-master/.github/FUNDING.yml | # These are supported funding model platforms
github: nidhaloff
| 65 | 15.5 | 45 | yml |
deep-translator | deep-translator-master/.github/ISSUE_TEMPLATE.md | * deep_translator version:
* Python version:
* Operating System:
### Description
Describe what you were trying to get done.
Tell us what happened, what went wrong, and what you expected to happen.
### What I Did
```
Paste the command(s) you ran and the output.
If there was a crash, please include the traceback here... | 326 | 19.4375 | 72 | md |
deep-translator | deep-translator-master/.github/release-drafter.yml | template: |
## What’s Changed
$CHANGES
| 44 | 8 | 19 | yml |
deep-translator | deep-translator-master/.github/workflows/pre-commit.yml | on:
pull_request:
push:
branches: [main, master]
jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.7
- uses: pre-commit/action@v3.0.0
| 255 | 16.066667 | 36 | yml |
deep-translator | deep-translator-master/.github/workflows/production-tests.yml | name: production-tests
on:
push:
tags:
- 'v*'
jobs:
test:
strategy:
matrix:
python-version: [ "3.7", "3.8", "3.9" ]
os: [ubuntu-latest] # we can add other os like windows if we want
runs-on: ${{ matrix.os }}
steps:
... | 931 | 27.242424 | 82 | yml |
deep-translator | deep-translator-master/.github/workflows/release.yml | name: Semantic Release
on:
workflow_dispatch:
inputs:
version:
description: Bump version
required: true
workflow_run:
workflows:
- "production-tests"
types:
- completed
jobs:
update_release_draft:
runs-on: ubuntu-latest
... | 1,197 | 25.043478 | 76 | yml |
deep-translator | deep-translator-master/.github/workflows/test-release.yml | name: test-release
on:
push:
branches:
- master
workflow_run:
workflows:
- "production-tests"
types:
- completed
jobs:
test-release:
name: "Release on Test Pypi"
runs-on: ubuntu-latest
concurrency: release
steps:
... | 1,005 | 24.794872 | 76 | yml |
deep-translator | deep-translator-master/.github/workflows/test.yml | name: test
on: [push, pull_request]
jobs:
test:
strategy:
matrix:
python-version: [ "3.7", "3.8", "3.9" ]
os: [ubuntu-latest] # we can add other os like macOS-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
... | 1,150 | 30.972222 | 125 | yml |
deep-translator | deep-translator-master/deep_translator/__init__.py | """Top-level package for Deep Translator"""
__copyright__ = "Copyright (C) 2020 Nidhal Baccouri"
from deep_translator.baidu import BaiduTranslator
from deep_translator.chatgpt import ChatGptTranslator
from deep_translator.deepl import DeeplTranslator
from deep_translator.detection import batch_detection, single_detec... | 1,317 | 31.146341 | 71 | py |
deep-translator | deep-translator-master/deep_translator/__main__.py | __copyright__ = "Copyright (C) 2020 Nidhal Baccouri"
from deep_translator.cli import CLI
def main():
CLI().run()
if __name__ == "__main__":
main()
| 161 | 11.461538 | 52 | py |
deep-translator | deep-translator-master/deep_translator/baidu.py | """
baidu translator API
"""
__copyright__ = "Copyright (C) 2020 Nidhal Baccouri"
import hashlib
import os
import random
from typing import List, Optional
import requests
from deep_translator.base import BaseTranslator
from deep_translator.constants import (
BAIDU_APPID_ENV_VAR,
BAIDU_APPKEY_ENV_VAR,
BA... | 3,687 | 29.479339 | 77 | py |
deep-translator | deep-translator-master/deep_translator/base.py | """base translator class"""
__copyright__ = "Copyright (C) 2020 Nidhal Baccouri"
from abc import ABC, abstractmethod
from pathlib import Path
from typing import List, Optional, Union
from deep_translator.constants import GOOGLE_LANGUAGES_TO_CODES
from deep_translator.exceptions import (
InvalidSourceOrTargetLang... | 5,625 | 29.576087 | 88 | py |
deep-translator | deep-translator-master/deep_translator/chatgpt.py | __copyright__ = "Copyright (C) 2020 Nidhal Baccouri"
import os
from typing import List, Optional
from deep_translator.base import BaseTranslator
from deep_translator.constants import OPEN_AI_ENV_VAR
from deep_translator.exceptions import ApiKeyException
class ChatGptTranslator(BaseTranslator):
"""
class tha... | 1,974 | 26.816901 | 72 | py |
deep-translator | deep-translator-master/deep_translator/cli.py | """Console script for deep_translator."""
__copyright__ = "Copyright (C) 2020 Nidhal Baccouri"
import argparse
from typing import Optional
from deep_translator.engines import __engines__
class CLI(object):
translators_dict = __engines__
translator = None
def __init__(self, custom_args: Optional[list] ... | 3,253 | 30.592233 | 81 | py |
deep-translator | deep-translator-master/deep_translator/constants.py | __copyright__ = "Copyright (C) 2020 Nidhal Baccouri"
OPEN_AI_ENV_VAR = "OPEN_API_KEY"
DEEPL_ENV_VAR = "DEEPL_API_KEY"
LIBRE_ENV_VAR = "LIBRE_API_KEY"
MSFT_ENV_VAR = "MICROSOFT_API_KEY"
QCRI_ENV_VAR = "QCRI_API_KEY"
YANDEX_ENV_VAR = "YANDEX_API_KEY"
TENCENT_SECRET_ID_ENV_VAR = "TENCENT_SECRET_ID"
TENCENT_SECRET_KEY_EN... | 16,652 | 24.042105 | 101 | py |
deep-translator | deep-translator-master/deep_translator/deepl.py | __copyright__ = "Copyright (C) 2020 Nidhal Baccouri"
import os
from typing import List, Optional
import requests
from deep_translator.base import BaseTranslator
from deep_translator.constants import (
BASE_URLS,
DEEPL_ENV_VAR,
DEEPL_LANGUAGE_TO_CODE,
)
from deep_translator.exceptions import (
ApiKeyE... | 3,511 | 30.357143 | 77 | py |
deep-translator | deep-translator-master/deep_translator/detection.py | """
language detection API
"""
__copyright__ = "Copyright (C) 2020 Nidhal Baccouri"
from typing import List, Optional, Union
import requests
from requests.exceptions import HTTPError
# Module global config
config = {
"url": "https://ws.detectlanguage.com/0.2/detect",
"headers": {
"User-Agent": "Dete... | 2,760 | 25.805825 | 79 | py |
deep-translator | deep-translator-master/deep_translator/engines.py | __copyright__ = "Copyright (C) 2020 Nidhal Baccouri"
from deep_translator.base import BaseTranslator
__engines__ = {
translator.__name__.replace("Translator", "").lower(): translator
for translator in BaseTranslator.__subclasses__()
}
| 245 | 26.333333 | 69 | py |
deep-translator | deep-translator-master/deep_translator/exceptions.py | __copyright__ = "Copyright (C) 2020 Nidhal Baccouri"
class BaseError(Exception):
"""
base error structure class
"""
def __init__(self, val, message):
"""
@param val: actual value
@param message: message shown to the user
"""
self.val = val
self.message ... | 5,691 | 26.23445 | 97 | py |
deep-translator | deep-translator-master/deep_translator/google.py | """
google translator API
"""
__copyright__ = "Copyright (C) 2020 Nidhal Baccouri"
from typing import List, Optional
import requests
from bs4 import BeautifulSoup
from deep_translator.base import BaseTranslator
from deep_translator.constants import BASE_URLS
from deep_translator.exceptions import (
RequestError... | 3,935 | 31 | 94 | py |
deep-translator | deep-translator-master/deep_translator/libre.py | """
LibreTranslate API
"""
__copyright__ = "Copyright (C) 2020 Nidhal Baccouri"
import os
from typing import List, Optional
import requests
from deep_translator.base import BaseTranslator
from deep_translator.constants import (
BASE_URLS,
LIBRE_ENV_VAR,
LIBRE_LANGUAGES_TO_CODES,
)
from deep_translator.ex... | 4,002 | 31.282258 | 94 | py |
deep-translator | deep-translator-master/deep_translator/linguee.py | """
linguee translator API
"""
__copyright__ = "Copyright (C) 2020 Nidhal Baccouri"
from typing import List, Optional, Union
import requests
from bs4 import BeautifulSoup
from requests.utils import requote_uri
from deep_translator.base import BaseTranslator
from deep_translator.constants import BASE_URLS, LINGUEE_L... | 3,744 | 31.284483 | 109 | py |
deep-translator | deep-translator-master/deep_translator/microsoft.py | # -*- coding: utf-8 -*-
__copyright__ = "Copyright (C) 2020 Nidhal Baccouri"
import logging
import os
import sys
from typing import List, Optional
import requests
from deep_translator.base import BaseTranslator
from deep_translator.constants import BASE_URLS, MSFT_ENV_VAR
from deep_translator.exceptions import ApiK... | 4,768 | 35.684615 | 109 | py |
deep-translator | deep-translator-master/deep_translator/mymemory.py | """
mymemory translator API
"""
__copyright__ = "Copyright (C) 2020 Nidhal Baccouri"
from typing import List, Optional, Union
import requests
from deep_translator.base import BaseTranslator
from deep_translator.constants import BASE_URLS, MY_MEMORY_LANGUAGES_TO_CODES
from deep_translator.exceptions import (
Req... | 3,627 | 30.824561 | 92 | py |
deep-translator | deep-translator-master/deep_translator/papago.py | """
papago translator API
"""
__copyright__ = "Copyright (C) 2020 Nidhal Baccouri"
import json
from typing import List, Optional
import requests
from deep_translator.base import BaseTranslator
from deep_translator.constants import BASE_URLS, PAPAGO_LANGUAGE_TO_CODE
from deep_translator.exceptions import Translation... | 3,285 | 31.215686 | 100 | py |
deep-translator | deep-translator-master/deep_translator/pons.py | """
pons translator API
"""
__copyright__ = "Copyright (C) 2020 Nidhal Baccouri"
from typing import List, Optional, Union
import requests
from bs4 import BeautifulSoup
from requests.utils import requote_uri
from deep_translator.base import BaseTranslator
from deep_translator.constants import BASE_URLS, PONS_CODES_T... | 3,657 | 29.739496 | 83 | py |