Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Mateusz Pawlik
ted-datasets
Commits
8d28fda0
Commit
8d28fda0
authored
Oct 23, 2018
by
Mateusz Pawlik
Browse files
Moved redundant script into utilitites subdirectory.
parent
88e11b07
Changes
5
Hide whitespace changes
Inline
Side-by-side
dblp/sort_dataset.sh
deleted
100755 → 0
View file @
88e11b07
#!/bin/bash
# | sort by number of nodes (equivalent to number of "{")
cat
$1
|
awk
'{print gsub("{","{"), $0}'
|
sort
-n
|
cut
-d
' '
-f2-
>
"
${
1
%.bracket
}
_sorted.bracket"
swissprot/random_lines.py
deleted
100644 → 0
View file @
88e11b07
import
random
import
sys
number
=
int
(
sys
.
argv
[
1
])
filename
=
sys
.
argv
[
2
]
with
open
(
filename
)
as
f
:
lines
=
f
.
readlines
()
linestoprint
=
random
.
sample
(
range
(
len
(
lines
)),
number
)
for
ln
in
linestoprint
:
print
(
lines
[
ln
],
end
=
''
)
swissprot/sort_dataset.sh
deleted
100755 → 0
View file @
88e11b07
#!/bin/bash
# | sort by number of nodes (equivalent to number of "{")
cat
$1
|
awk
'{print gsub("{","{"), $0}'
|
sort
-n
|
cut
-d
' '
-f2-
>
"
${
1
%.bracket
}
_sorted.bracket"
dblp
/random_lines.py
→
utilities
/random_lines.py
View file @
8d28fda0
File moved
python
/sort_dataset.sh
→
utilities
/sort_dataset.sh
View file @
8d28fda0
File moved
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment