Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
string_gan
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
zaglanz
string_gan
Commits
6f1d56c1
Commit
6f1d56c1
authored
4 years ago
by
zaglanz
Browse files
Options
Downloads
Patches
Plain Diff
linux fixed
parent
f3d03d3d
No related branches found
No related tags found
2 merge requests
!2
Merge for work. Discard merge branch.
,
!1
Code not finished, but runnable. Use it as a base for work.
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
getCoverageGAN_l.sh
+5
-5
5 additions, 5 deletions
getCoverageGAN_l.sh
shell_test.ipynb
+4
-3
4 additions, 3 deletions
shell_test.ipynb
string_gan.ipynb
+42
-117
42 additions, 117 deletions
string_gan.ipynb
with
51 additions
and
125 deletions
getCoverageGAN_l.sh
100644 → 100755
+
5
−
5
View file @
6f1d56c1
#! /usr/bin/sh
#! /usr/bin/
ba
sh
# Script to run the program, generate its coverage information
# and move it to a directory
# Make directory to save the output
mkdir
-p
Temporary
GAN_Inputs
=(
./G
AN
/
*
.txt
)
GAN_Inputs
=(
./G
anSamples
/
*
.txt
)
Total
=
${#
GAN_Inputs
[@]
}
echo
Total
$Total
GAME
=
0
...
...
@@ -20,9 +20,9 @@ for input in "${GAN_Inputs[@]}"; do
# Generate the coverage information
fd
-d
1
-e
gcda
-X
gcov
>
/dev/null
# Make directory to save the output
mkdir
-p
./GanCoverage/Game
$GAME
/
cp
UnixGanInput ./GanCoverage/Game
$GAME
/input
fd
-d
1
-e
gcov
-e
gameOut
-X
mv
{}
./GanCoverage/Game
$GAME
mkdir
-p
../../
./GanCoverage/Game
$GAME
/
cp
UnixGanInput
../../
./GanCoverage/Game
$GAME
/input
fd
-d
1
-e
gcov
-e
gameOut
-X
mv
{}
../../
./GanCoverage/Game
$GAME
cd
../../
rm
-rf
./Temporary/Zork
$GAME
done
...
...
This diff is collapsed.
Click to expand it.
shell_test.ipynb
+
4
−
3
View file @
6f1d56c1
...
...
@@ -8,7 +8,7 @@
{
"data": {
"text/plain": [
"CompletedProcess(args=[
'C:\\\\Program Files\\\\Git\\\\git-bash.exe',
'./getCoverageGAN.sh'], returncode=
0
)"
"CompletedProcess(args=['./getCoverageGAN
_l
.sh'], returncode=
2
)"
]
},
"execution_count": 2,
...
...
@@ -19,7 +19,8 @@
"source": [
"import subprocess\n",
"#subprocess.call(['C:\\Users\\User\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Windows PowerShell', './getCoverageGAN.sh'])\n",
"subprocess.run(['C:\\Program Files\\Git\\git-bash.exe', './getCoverageGAN.sh'])\n"
"#subprocess.run(['C:\\Program Files\\Git\\git-bash.exe', './getCoverageGAN.sh'])\n",
"subprocess.run(['./getCoverageGAN_l.sh'])\n"
]
},
{
...
...
@@ -66,7 +67,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.
8.2
"
"version": "3.
7.6
"
}
},
"nbformat": 4,
...
...
%% Cell type:code id: tags:
```
python
import
subprocess
#subprocess.call(['C:\Users\User\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Windows PowerShell', './getCoverageGAN.sh'])
subprocess
.
run
([
'
C:\Program Files\Git\git-bash.exe
'
,
'
./getCoverageGAN.sh
'
])
#subprocess.run(['C:\Program Files\Git\git-bash.exe', './getCoverageGAN.sh'])
subprocess
.
run
([
'
./getCoverageGAN_l.sh
'
])
```
%% Output
CompletedProcess(args=[
'C:\\Program Files\\Git\\git-bash.exe',
'./getCoverageGAN.sh'], returncode=
0
)
CompletedProcess(args=['./getCoverageGAN
_l
.sh'], returncode=
2
)
%% Cell type:code id: tags:
```
python
subprocess
.
run
([
'
C:\Program Files\Git\git-bash.exe
'
,
'
./remove_output.sh
'
])
```
%% Output
CompletedProcess(args=['C:\\Program Files\\Git\\git-bash.exe', './remove_output.sh'], returncode=0)
%% Cell type:code id: tags:
```
python
```
...
...
This diff is collapsed.
Click to expand it.
string_gan.ipynb
+
42
−
117
View file @
6f1d56c1
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment