deepmutation's People
deepmutation's Issues
hang on executing compile/test command
Execution error
Hello, I have a problem when I want to run DeepMutation with the provided config file.
I'm running on MacOS Big sure.
After cloning the project, I created a conda environment, with the exact requirements.
I run python3 defects4j_checkout.py -f Lang
(after deleting Chart from the dict)
And ./check_env.sh
with success
Next I replaced Chart with Lang inside of config example file
And when I run java -jar dist/DeepMutation.jar config
, I obtain the following errors:
Extracting methods from data/in/Lang/1f/...
Building AST...
done.
ERROR: Could not extract any methods.
done.
Writing extracted methods...
done.
Abstracting methods...
ERROR: null/empty input map
Writing abstracted methods...
done.
Writing mappings...
done.
Mutating methods...
ERROR: null/empty input map
Writing abstracted mutants...
ERROR: cannot write null/empty map
Translating abstract mutants...
ERROR: null/empty input map
Writing translated mutants...
ERROR: cannot write null/empty map
Creating mutant files...
ERROR: cannot write null/empty map
Testing ${HOME}/DeepMutation/data/in/Lang/1f...
ERROR: maps are null for all models
Writing logs...
ERROR: cannot write null maps
Writing timeouts...
ERROR: cannot write null timeouts map
Writing results...
ERROR: cannot write null result maps
Please can you tell me is there anything I'm doing wrong?
A problem about running DeepMutation
After I have prepared the environment, I run it but there is a problem:
`Mutating methods...
Running model 50len_ident_lit...
Generated 0 mutated methods.
Using command:
python3 -m bin.infer --tasks - class: DecodeText --model_dir . --input_pipeline class: ParallelTextInputPipeline
params:
source_files:
- /root/DeepMutation/out/methods.abs
/opt/conda/bin/python3: Error while finding module specification for 'bin.infer' (ModuleNotFoundError: No module named 'bin')
WARNING: could not generate mutated methods. Set MethodMutator.verbose(true) via config file for more details.
done.
Writing abstracted mutants...
ERROR: cannot write null/empty map
Translating abstract mutants...
ERROR: null/empty input map
Writing translated mutants...
ERROR: cannot write null/empty map
Creating mutant files...
ERROR: cannot write null/empty map
Testing /root/DeepMutation/data/Chart-1f...
ERROR: maps are null for all models
Writing logs...
ERROR: cannot write null maps
Writing timeouts...
ERROR: cannot write null timeouts map
Writing results...
ERROR: cannot write null result maps
`
Do you know how to solve it? Thank you!
Why do I get an error when using Beamsearh?
Hello, I have received an error after setting beamsearch, looking forward to your answer.
### The following information is displayed:
Checking out 41ba9e00 to /root/DeepMutation/data/in/Math/106f.............. OK
Init local repository...................................................... OK
Tag post-fix revision...................................................... OK
Excluding broken/flaky tests............................................... OK
Excluding broken/flaky tests............................................... OK
Initialize fixed program version........................................... OK
Apply patch................................................................ OK
Initialize buggy program version........................................... OK
Diff 41ba9e00:5de83dca..................................................... OK
Apply patch................................................................ OK
Tag pre-fix revision....................................................... OK
Check out program version: Math-106f....................................... OK
Extracting methods from data/in/Math/106f/...
Building AST...
done.
Extracted 588 methods.
done.
Writing extracted methods...
done.
Abstracting methods...
There were 0 unparseable methods.
There were 0 methods longer than 1000 tokens.
There are 588 remaining methods.
done.
Writing abstracted methods...
done.
Writing mappings...
done.
Mutating methods...
Using 5 beams.
Running model 50len_ident_lit...
Generated 100 mutated methods.
Generated 200 mutated methods.
Generated 300 mutated methods.
Generated 400 mutated methods.
Generated 500 mutated methods.
Generated 588 mutated methods.
WARNING: could not generate mutated methods. Set MethodMutator.verbose(true) via config file for more details.
done.
Writing abstracted mutants...
ERROR: cannot write null/empty map
Translating abstract mutants...
ERROR: null/empty input map
Writing translated mutants...
ERROR: cannot write null/empty map
Creating mutant files...
ERROR: cannot write null/empty map
MutantTester disabled. Stopping.
### My config:
// Configuration file example.
################## Paths #####################
// Path to output directory
output.path=data/out/Math/106f/
// Path to the project directory
project.path=data/in/Math/106f/
// Path to the src root directory
source.path=data/in/Math/106f/src/java/
// Path to lib directory
library.path=spoonLibs/Math/
// Path to libWrapper.so (generated post-build)
wrapper.library.file=dist/libWrapper.so
// Path to model directories (comma-separated)
model.paths=models/50len_ident_lit/
token.threshold=1000
############## MethodMutator #################
mutator.enable=true
MethodMutator.verbose=true
mutator.verbose=true
// python3 command
python=python3
// verbose
verbose=false
// Use beam search
use.beams=true
// Number of beams
num.beams=5
############# MutantTranslator ###############
translator.enable=true
############## MutantTester ##################
tester.enable=false
// Enable parallel testing
max.threads=8
// Compile command
compile.command=defects4j compile
// Test command
test.command=defects4j test
// Timeout per command (in seconds)
timeout=300
// Remove project copies after testing
clean.up=true
// Baseline is established by running the provided
// commands on a copy of the original project.
// Success/failure is determined by a string diff.
use.baseline=false
// Alternatively, set fail strings that appear in
// command output (comma-separated)
compile.fail.strings=FAIL
test.fail.strings=FAIL,Failing
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.