Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ssh://git@github.com/kaptoxic/scala-ide-insynth-integration.git Conflicts: ch.epfl.insynth.build/README.rst
- Loading branch information
Showing
21 changed files
with
1,406 additions
and
1,310 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
48 changes: 46 additions & 2 deletions
48
ch.epfl.insynth.reconstruction/src/ch/epfl/insynth/Config.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,58 @@ | ||
package ch.epfl.insynth | ||
|
||
import java.util.logging._ | ||
|
||
object Config { | ||
final val getTimeOutSlot = 500 | ||
|
||
final val loadPredefs = true | ||
|
||
final val numberOfSnippets = 15 | ||
final val numberOfSnippets = 1 | ||
|
||
val logCombinatorInputProofTreeLevel = 6 | ||
|
||
final val outputFileName = "/home/ivcha/development/workspace_gsoc/Insynth_core_svn/insynthOutput.txt" | ||
final val errorFileName = "/home/ivcha/development/workspace_gsoc/Insynth_core_svn/insynthError.txt" | ||
|
||
final val debugFileName = "/home/ivcha/development/workspace_gsoc/Insynth_core_svn/insynthDebug.txt" | ||
final val debugFileName = "/home/ivcha/development/workspace_gsoc/Insynth_core_svn/insynthDebug.txt" | ||
|
||
// logging for code generation phase | ||
|
||
// defines loggers | ||
val logger = Logger.getLogger("reconstruction.combination") | ||
val logStructures = Logger.getLogger("reconstruction.combination.structures") | ||
val logApply = Logger.getLogger("reconstruction.combination.apply") | ||
val logPQAdding = Logger.getLogger("reconstruction.combination.apply.pqadding") | ||
|
||
val logExtractor = Logger.getLogger("reconstruction.extractor") | ||
|
||
val isLogging = true | ||
|
||
// static code for loggers setup | ||
{ | ||
val array = Array(logger, logStructures, logApply, logExtractor, logPQAdding) | ||
|
||
// remove all handlers | ||
for (logger <- array) | ||
for (handler <- logger.getHandlers) | ||
logger.removeHandler(handler) | ||
|
||
Logger.getLogger("reconstruction.combination").setLevel(Level.FINE) | ||
Logger.getLogger("reconstruction.combination.apply").setLevel(Level.FINE) | ||
Logger.getLogger("reconstruction.combination.structures").setLevel(Level.INFO) | ||
logPQAdding.setLevel(Level.FINEST) | ||
|
||
logExtractor.setLevel(Level.FINEST) | ||
|
||
val handler = new FileHandler("%h/combinator%u.log"); | ||
val handlerEx = new FileHandler("%h/extractor%u.log"); | ||
handler.setFormatter(new SimpleFormatter) | ||
handlerEx.setFormatter(new SimpleFormatter) | ||
// PUBLISH this level | ||
handler.setLevel(Level.FINEST); | ||
logger.addHandler(handler); | ||
logExtractor.addHandler(handlerEx) | ||
// Logger.getLogger("reconstruction.combination.apply").addHandler(handler); | ||
// Logger.getLogger("reconstruction.combination.structures").addHandler(handler); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.