Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(#227): samples-filter integration #306

Merged
merged 3 commits into from
May 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ pylint==3.1.0
multimetric==1.3.0
chardet==5.2.0
mypy==1.10.0
cffconvert==2.0.0
cffconvert==2.0.0
samples-filter==0.4.1
9 changes: 9 additions & 0 deletions steps/discover.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,15 @@ elif [ -z "${REPOS}" ] || [ ! -e "${REPOS}" ]; then
fi
"${LOCAL}/help/assert-tool.sh" ruby -v
ruby "${LOCAL}/steps/discover-repos.rb" "${args[@]}"
nosamples=${TARGET}/no-samples.csv
declare -a fargs=( \
"--repositories=${csv}" \
"--out=${nosamples}" \
"--model=transformer"
)
samples-filter filter "${fargs[@]}"
rm "${csv}"
mv "${nosamples}" "${csv}"
else
echo "Using the list of repositories from the '${REPOS}' file (defined by the REPOS environment variable)..."
cat "${REPOS}" > "${csv}"
Expand Down
Loading