Miosy commited on
Commit
2143587
·
verified ·
1 Parent(s): 43fd655

Upload folder using huggingface_hub

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
.gitattributes CHANGED
The diff for this file is too large to render. See raw diff
 
vpp_env/bin/2to3 ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ #!/workspace/miniconda3/envs/vpp/bin/python3.10
2
+ import sys
3
+ from lib2to3.main import main
4
+
5
+ sys.exit(main("lib2to3.fixes"))
vpp_env/bin/2to3-3.10 ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ #!/workspace/miniconda3/envs/vpp/bin/python3.10
2
+ import sys
3
+ from lib2to3.main import main
4
+
5
+ sys.exit(main("lib2to3.fixes"))
vpp_env/bin/accelerate ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ #!/workspace/miniconda3/envs/vpp/bin/python3.10
2
+ import sys
3
+ from accelerate.commands.accelerate_cli import main
4
+ if __name__ == '__main__':
5
+ sys.argv[0] = sys.argv[0].removesuffix('.exe')
6
+ sys.exit(main())
vpp_env/bin/accelerate-config ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ #!/workspace/miniconda3/envs/vpp/bin/python3.10
2
+ import sys
3
+ from accelerate.commands.config import main
4
+ if __name__ == '__main__':
5
+ sys.argv[0] = sys.argv[0].removesuffix('.exe')
6
+ sys.exit(main())
vpp_env/bin/accelerate-estimate-memory ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ #!/workspace/miniconda3/envs/vpp/bin/python3.10
2
+ import sys
3
+ from accelerate.commands.estimate import main
4
+ if __name__ == '__main__':
5
+ sys.argv[0] = sys.argv[0].removesuffix('.exe')
6
+ sys.exit(main())
vpp_env/bin/accelerate-launch ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ #!/workspace/miniconda3/envs/vpp/bin/python3.10
2
+ import sys
3
+ from accelerate.commands.launch import main
4
+ if __name__ == '__main__':
5
+ sys.argv[0] = sys.argv[0].removesuffix('.exe')
6
+ sys.exit(main())
vpp_env/bin/accelerate-merge-weights ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ #!/workspace/miniconda3/envs/vpp/bin/python3.10
2
+ import sys
3
+ from accelerate.commands.merge import main
4
+ if __name__ == '__main__':
5
+ sys.argv[0] = sys.argv[0].removesuffix('.exe')
6
+ sys.exit(main())
vpp_env/bin/bunzip2 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8a514cce807cb1656a3bcd59794401e7d63c9554267e9acc77097a406092a8ed
3
+ size 299464
vpp_env/bin/bzcat ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8a514cce807cb1656a3bcd59794401e7d63c9554267e9acc77097a406092a8ed
3
+ size 299464
vpp_env/bin/bzcmp ADDED
@@ -0,0 +1,76 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/sh
2
+ # sh is buggy on RS/6000 AIX 3.2. Replace above line with #!/bin/ksh
3
+
4
+ # Bzcmp/diff wrapped for bzip2,
5
+ # adapted from zdiff by Philippe Troin <phil@fifi.org> for Debian GNU/Linux.
6
+
7
+ # Bzcmp and bzdiff are used to invoke the cmp or the diff pro-
8
+ # gram on compressed files. All options specified are passed
9
+ # directly to cmp or diff. If only 1 file is specified, then
10
+ # the files compared are file1 and an uncompressed file1.gz.
11
+ # If two files are specified, then they are uncompressed (if
12
+ # necessary) and fed to cmp or diff. The exit status from cmp
13
+ # or diff is preserved.
14
+
15
+ PATH="/usr/bin:/bin:$PATH"; export PATH
16
+ prog=`echo $0 | sed 's|.*/||'`
17
+ case "$prog" in
18
+ *cmp) comp=${CMP-cmp} ;;
19
+ *) comp=${DIFF-diff} ;;
20
+ esac
21
+
22
+ OPTIONS=
23
+ FILES=
24
+ for ARG
25
+ do
26
+ case "$ARG" in
27
+ -*) OPTIONS="$OPTIONS $ARG";;
28
+ *) if test -f "$ARG"; then
29
+ FILES="$FILES $ARG"
30
+ else
31
+ echo "${prog}: $ARG not found or not a regular file"
32
+ exit 1
33
+ fi ;;
34
+ esac
35
+ done
36
+ if test -z "$FILES"; then
37
+ echo "Usage: $prog [${comp}_options] file [file]"
38
+ exit 1
39
+ fi
40
+ set $FILES
41
+ if test $# -eq 1; then
42
+ FILE=`echo "$1" | sed 's/.bz2$//'`
43
+ bzip2 -cd "$FILE.bz2" | $comp $OPTIONS - "$FILE"
44
+ STAT="$?"
45
+
46
+ elif test $# -eq 2; then
47
+ case "$1" in
48
+ *.bz2)
49
+ case "$2" in
50
+ *.bz2)
51
+ F=`echo "$2" | sed 's|.*/||;s|.bz2$||'`
52
+ tmp=`mktemp "${TMPDIR:-/tmp}"/bzdiff.XXXXXXXXXX` || {
53
+ echo 'cannot create a temporary file' >&2
54
+ exit 1
55
+ }
56
+ bzip2 -cdfq "$2" > "$tmp"
57
+ bzip2 -cdfq "$1" | $comp $OPTIONS - "$tmp"
58
+ STAT="$?"
59
+ /bin/rm -f "$tmp";;
60
+
61
+ *) bzip2 -cdfq "$1" | $comp $OPTIONS - "$2"
62
+ STAT="$?";;
63
+ esac;;
64
+ *) case "$2" in
65
+ *.bz2)
66
+ bzip2 -cdfq "$2" | $comp $OPTIONS "$1" -
67
+ STAT="$?";;
68
+ *) $comp $OPTIONS "$1" "$2"
69
+ STAT="$?";;
70
+ esac;;
71
+ esac
72
+ else
73
+ echo "Usage: $prog [${comp}_options] file [file]"
74
+ exit 1
75
+ fi
76
+ exit "$STAT"
vpp_env/bin/bzdiff ADDED
@@ -0,0 +1,76 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/sh
2
+ # sh is buggy on RS/6000 AIX 3.2. Replace above line with #!/bin/ksh
3
+
4
+ # Bzcmp/diff wrapped for bzip2,
5
+ # adapted from zdiff by Philippe Troin <phil@fifi.org> for Debian GNU/Linux.
6
+
7
+ # Bzcmp and bzdiff are used to invoke the cmp or the diff pro-
8
+ # gram on compressed files. All options specified are passed
9
+ # directly to cmp or diff. If only 1 file is specified, then
10
+ # the files compared are file1 and an uncompressed file1.gz.
11
+ # If two files are specified, then they are uncompressed (if
12
+ # necessary) and fed to cmp or diff. The exit status from cmp
13
+ # or diff is preserved.
14
+
15
+ PATH="/usr/bin:/bin:$PATH"; export PATH
16
+ prog=`echo $0 | sed 's|.*/||'`
17
+ case "$prog" in
18
+ *cmp) comp=${CMP-cmp} ;;
19
+ *) comp=${DIFF-diff} ;;
20
+ esac
21
+
22
+ OPTIONS=
23
+ FILES=
24
+ for ARG
25
+ do
26
+ case "$ARG" in
27
+ -*) OPTIONS="$OPTIONS $ARG";;
28
+ *) if test -f "$ARG"; then
29
+ FILES="$FILES $ARG"
30
+ else
31
+ echo "${prog}: $ARG not found or not a regular file"
32
+ exit 1
33
+ fi ;;
34
+ esac
35
+ done
36
+ if test -z "$FILES"; then
37
+ echo "Usage: $prog [${comp}_options] file [file]"
38
+ exit 1
39
+ fi
40
+ set $FILES
41
+ if test $# -eq 1; then
42
+ FILE=`echo "$1" | sed 's/.bz2$//'`
43
+ bzip2 -cd "$FILE.bz2" | $comp $OPTIONS - "$FILE"
44
+ STAT="$?"
45
+
46
+ elif test $# -eq 2; then
47
+ case "$1" in
48
+ *.bz2)
49
+ case "$2" in
50
+ *.bz2)
51
+ F=`echo "$2" | sed 's|.*/||;s|.bz2$||'`
52
+ tmp=`mktemp "${TMPDIR:-/tmp}"/bzdiff.XXXXXXXXXX` || {
53
+ echo 'cannot create a temporary file' >&2
54
+ exit 1
55
+ }
56
+ bzip2 -cdfq "$2" > "$tmp"
57
+ bzip2 -cdfq "$1" | $comp $OPTIONS - "$tmp"
58
+ STAT="$?"
59
+ /bin/rm -f "$tmp";;
60
+
61
+ *) bzip2 -cdfq "$1" | $comp $OPTIONS - "$2"
62
+ STAT="$?";;
63
+ esac;;
64
+ *) case "$2" in
65
+ *.bz2)
66
+ bzip2 -cdfq "$2" | $comp $OPTIONS "$1" -
67
+ STAT="$?";;
68
+ *) $comp $OPTIONS "$1" "$2"
69
+ STAT="$?";;
70
+ esac;;
71
+ esac
72
+ else
73
+ echo "Usage: $prog [${comp}_options] file [file]"
74
+ exit 1
75
+ fi
76
+ exit "$STAT"
vpp_env/bin/bzegrep ADDED
@@ -0,0 +1,85 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/sh
2
+
3
+ # Bzgrep wrapped for bzip2,
4
+ # adapted from zgrep by Philippe Troin <phil@fifi.org> for Debian GNU/Linux.
5
+ ## zgrep notice:
6
+ ## zgrep -- a wrapper around a grep program that decompresses files as needed
7
+ ## Adapted from a version sent by Charles Levert <charles@comm.polymtl.ca>
8
+
9
+ PATH="/usr/bin:$PATH"; export PATH
10
+
11
+ prog=`echo $0 | sed 's|.*/||'`
12
+ case "$prog" in
13
+ *egrep) grep=${EGREP-egrep} ;;
14
+ *fgrep) grep=${FGREP-fgrep} ;;
15
+ *) grep=${GREP-grep} ;;
16
+ esac
17
+ pat=""
18
+ while test $# -ne 0; do
19
+ case "$1" in
20
+ -e | -f) opt="$opt $1"; shift; pat="$1"
21
+ if test "$grep" = grep; then # grep is buggy with -e on SVR4
22
+ grep=egrep
23
+ fi;;
24
+ -A | -B) opt="$opt $1 $2"; shift;;
25
+ -*) opt="$opt $1";;
26
+ *) if test -z "$pat"; then
27
+ pat="$1"
28
+ else
29
+ break;
30
+ fi;;
31
+ esac
32
+ shift
33
+ done
34
+
35
+ if test -z "$pat"; then
36
+ echo "grep through bzip2 files"
37
+ echo "usage: $prog [grep_options] pattern [files]"
38
+ exit 1
39
+ fi
40
+
41
+ list=0
42
+ silent=0
43
+ op=`echo "$opt" | sed -e 's/ //g' -e 's/-//g'`
44
+ case "$op" in
45
+ *l*) list=1
46
+ esac
47
+ case "$op" in
48
+ *h*) silent=1
49
+ esac
50
+
51
+ if test $# -eq 0; then
52
+ bzip2 -cdfq | $grep $opt "$pat"
53
+ exit $?
54
+ fi
55
+
56
+ res=0
57
+ for i do
58
+ if test -f "$i"; then :; else if test -f "$i.bz2"; then i="$i.bz2"; fi; fi
59
+ if test $list -eq 1; then
60
+ bzip2 -cdfq "$i" | $grep $opt "$pat" 2>&1 > /dev/null && echo $i
61
+ r=$?
62
+ elif test $# -eq 1 -o $silent -eq 1; then
63
+ bzip2 -cdfq "$i" | $grep $opt "$pat"
64
+ r=$?
65
+ else
66
+ j=$(echo "$i" | sed 's/\\/&&/g;s/|/\\&/g;s/&/\\&/g')
67
+ j=`printf "%s" "$j" | tr '\n' ' '`
68
+ # A trick adapted from
69
+ # https://groups.google.com/forum/#!original/comp.unix.shell/x1345iu10eg/Nn1n-1r1uU0J
70
+ # that has the same effect as the following bash code:
71
+ # bzip2 -cdfq "$i" | $grep $opt "$pat" | sed "s|^|${j}:|"
72
+ # r=${PIPESTATUS[1]}
73
+ exec 3>&1
74
+ eval `
75
+ exec 4>&1 >&3 3>&-
76
+ {
77
+ bzip2 -cdfq "$i" 4>&-
78
+ } | {
79
+ $grep $opt "$pat" 4>&-; echo "r=$?;" >&4
80
+ } | sed "s|^|${j}:|"
81
+ `
82
+ fi
83
+ test "$r" -ne 0 && res="$r"
84
+ done
85
+ exit $res
vpp_env/bin/bzfgrep ADDED
@@ -0,0 +1,85 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/sh
2
+
3
+ # Bzgrep wrapped for bzip2,
4
+ # adapted from zgrep by Philippe Troin <phil@fifi.org> for Debian GNU/Linux.
5
+ ## zgrep notice:
6
+ ## zgrep -- a wrapper around a grep program that decompresses files as needed
7
+ ## Adapted from a version sent by Charles Levert <charles@comm.polymtl.ca>
8
+
9
+ PATH="/usr/bin:$PATH"; export PATH
10
+
11
+ prog=`echo $0 | sed 's|.*/||'`
12
+ case "$prog" in
13
+ *egrep) grep=${EGREP-egrep} ;;
14
+ *fgrep) grep=${FGREP-fgrep} ;;
15
+ *) grep=${GREP-grep} ;;
16
+ esac
17
+ pat=""
18
+ while test $# -ne 0; do
19
+ case "$1" in
20
+ -e | -f) opt="$opt $1"; shift; pat="$1"
21
+ if test "$grep" = grep; then # grep is buggy with -e on SVR4
22
+ grep=egrep
23
+ fi;;
24
+ -A | -B) opt="$opt $1 $2"; shift;;
25
+ -*) opt="$opt $1";;
26
+ *) if test -z "$pat"; then
27
+ pat="$1"
28
+ else
29
+ break;
30
+ fi;;
31
+ esac
32
+ shift
33
+ done
34
+
35
+ if test -z "$pat"; then
36
+ echo "grep through bzip2 files"
37
+ echo "usage: $prog [grep_options] pattern [files]"
38
+ exit 1
39
+ fi
40
+
41
+ list=0
42
+ silent=0
43
+ op=`echo "$opt" | sed -e 's/ //g' -e 's/-//g'`
44
+ case "$op" in
45
+ *l*) list=1
46
+ esac
47
+ case "$op" in
48
+ *h*) silent=1
49
+ esac
50
+
51
+ if test $# -eq 0; then
52
+ bzip2 -cdfq | $grep $opt "$pat"
53
+ exit $?
54
+ fi
55
+
56
+ res=0
57
+ for i do
58
+ if test -f "$i"; then :; else if test -f "$i.bz2"; then i="$i.bz2"; fi; fi
59
+ if test $list -eq 1; then
60
+ bzip2 -cdfq "$i" | $grep $opt "$pat" 2>&1 > /dev/null && echo $i
61
+ r=$?
62
+ elif test $# -eq 1 -o $silent -eq 1; then
63
+ bzip2 -cdfq "$i" | $grep $opt "$pat"
64
+ r=$?
65
+ else
66
+ j=$(echo "$i" | sed 's/\\/&&/g;s/|/\\&/g;s/&/\\&/g')
67
+ j=`printf "%s" "$j" | tr '\n' ' '`
68
+ # A trick adapted from
69
+ # https://groups.google.com/forum/#!original/comp.unix.shell/x1345iu10eg/Nn1n-1r1uU0J
70
+ # that has the same effect as the following bash code:
71
+ # bzip2 -cdfq "$i" | $grep $opt "$pat" | sed "s|^|${j}:|"
72
+ # r=${PIPESTATUS[1]}
73
+ exec 3>&1
74
+ eval `
75
+ exec 4>&1 >&3 3>&-
76
+ {
77
+ bzip2 -cdfq "$i" 4>&-
78
+ } | {
79
+ $grep $opt "$pat" 4>&-; echo "r=$?;" >&4
80
+ } | sed "s|^|${j}:|"
81
+ `
82
+ fi
83
+ test "$r" -ne 0 && res="$r"
84
+ done
85
+ exit $res
vpp_env/bin/bzgrep ADDED
@@ -0,0 +1,85 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/sh
2
+
3
+ # Bzgrep wrapped for bzip2,
4
+ # adapted from zgrep by Philippe Troin <phil@fifi.org> for Debian GNU/Linux.
5
+ ## zgrep notice:
6
+ ## zgrep -- a wrapper around a grep program that decompresses files as needed
7
+ ## Adapted from a version sent by Charles Levert <charles@comm.polymtl.ca>
8
+
9
+ PATH="/usr/bin:$PATH"; export PATH
10
+
11
+ prog=`echo $0 | sed 's|.*/||'`
12
+ case "$prog" in
13
+ *egrep) grep=${EGREP-egrep} ;;
14
+ *fgrep) grep=${FGREP-fgrep} ;;
15
+ *) grep=${GREP-grep} ;;
16
+ esac
17
+ pat=""
18
+ while test $# -ne 0; do
19
+ case "$1" in
20
+ -e | -f) opt="$opt $1"; shift; pat="$1"
21
+ if test "$grep" = grep; then # grep is buggy with -e on SVR4
22
+ grep=egrep
23
+ fi;;
24
+ -A | -B) opt="$opt $1 $2"; shift;;
25
+ -*) opt="$opt $1";;
26
+ *) if test -z "$pat"; then
27
+ pat="$1"
28
+ else
29
+ break;
30
+ fi;;
31
+ esac
32
+ shift
33
+ done
34
+
35
+ if test -z "$pat"; then
36
+ echo "grep through bzip2 files"
37
+ echo "usage: $prog [grep_options] pattern [files]"
38
+ exit 1
39
+ fi
40
+
41
+ list=0
42
+ silent=0
43
+ op=`echo "$opt" | sed -e 's/ //g' -e 's/-//g'`
44
+ case "$op" in
45
+ *l*) list=1
46
+ esac
47
+ case "$op" in
48
+ *h*) silent=1
49
+ esac
50
+
51
+ if test $# -eq 0; then
52
+ bzip2 -cdfq | $grep $opt "$pat"
53
+ exit $?
54
+ fi
55
+
56
+ res=0
57
+ for i do
58
+ if test -f "$i"; then :; else if test -f "$i.bz2"; then i="$i.bz2"; fi; fi
59
+ if test $list -eq 1; then
60
+ bzip2 -cdfq "$i" | $grep $opt "$pat" 2>&1 > /dev/null && echo $i
61
+ r=$?
62
+ elif test $# -eq 1 -o $silent -eq 1; then
63
+ bzip2 -cdfq "$i" | $grep $opt "$pat"
64
+ r=$?
65
+ else
66
+ j=$(echo "$i" | sed 's/\\/&&/g;s/|/\\&/g;s/&/\\&/g')
67
+ j=`printf "%s" "$j" | tr '\n' ' '`
68
+ # A trick adapted from
69
+ # https://groups.google.com/forum/#!original/comp.unix.shell/x1345iu10eg/Nn1n-1r1uU0J
70
+ # that has the same effect as the following bash code:
71
+ # bzip2 -cdfq "$i" | $grep $opt "$pat" | sed "s|^|${j}:|"
72
+ # r=${PIPESTATUS[1]}
73
+ exec 3>&1
74
+ eval `
75
+ exec 4>&1 >&3 3>&-
76
+ {
77
+ bzip2 -cdfq "$i" 4>&-
78
+ } | {
79
+ $grep $opt "$pat" 4>&-; echo "r=$?;" >&4
80
+ } | sed "s|^|${j}:|"
81
+ `
82
+ fi
83
+ test "$r" -ne 0 && res="$r"
84
+ done
85
+ exit $res
vpp_env/bin/bzip2 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8a514cce807cb1656a3bcd59794401e7d63c9554267e9acc77097a406092a8ed
3
+ size 299464
vpp_env/bin/bzip2recover ADDED
Binary file (30.9 kB). View file
 
vpp_env/bin/bzless ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/sh
2
+
3
+ # Bzmore wrapped for bzip2,
4
+ # adapted from zmore by Philippe Troin <phil@fifi.org> for Debian GNU/Linux.
5
+
6
+ PATH="/usr/bin:$PATH"; export PATH
7
+
8
+ prog=`echo $0 | sed 's|.*/||'`
9
+ case "$prog" in
10
+ *less) more=less ;;
11
+ *) more=more ;;
12
+ esac
13
+
14
+ if test "`echo -n a`" = "-n a"; then
15
+ # looks like a SysV system:
16
+ n1=''; n2='\c'
17
+ else
18
+ n1='-n'; n2=''
19
+ fi
20
+ oldtty=`stty -g 2>/dev/null`
21
+ if stty -cbreak 2>/dev/null; then
22
+ cb='cbreak'; ncb='-cbreak'
23
+ else
24
+ # 'stty min 1' resets eof to ^a on both SunOS and SysV!
25
+ cb='min 1 -icanon'; ncb='icanon eof ^d'
26
+ fi
27
+ if test $? -eq 0 -a -n "$oldtty"; then
28
+ trap 'stty $oldtty 2>/dev/null; exit' 0 2 3 5 10 13 15
29
+ else
30
+ trap 'stty $ncb echo 2>/dev/null; exit' 0 2 3 5 10 13 15
31
+ fi
32
+
33
+ if test $# = 0; then
34
+ if test -t 0; then
35
+ echo usage: $prog files...
36
+ else
37
+ bzip2 -cdfq | eval $more
38
+ fi
39
+ else
40
+ FIRST=1
41
+ for FILE
42
+ do
43
+ if test $FIRST -eq 0; then
44
+ echo $n1 "--More--(Next file: $FILE)$n2"
45
+ stty $cb -echo 2>/dev/null
46
+ ANS=`dd bs=1 count=1 2>/dev/null`
47
+ stty $ncb echo 2>/dev/null
48
+ echo " "
49
+ if test "$ANS" = 'e' -o "$ANS" = 'q'; then
50
+ exit
51
+ fi
52
+ fi
53
+ if test "$ANS" != 's'; then
54
+ echo "------> $FILE <------"
55
+ bzip2 -cdfq "$FILE" | eval $more
56
+ fi
57
+ if test -t; then
58
+ FIRST=0
59
+ fi
60
+ done
61
+ fi
vpp_env/bin/bzmore ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/sh
2
+
3
+ # Bzmore wrapped for bzip2,
4
+ # adapted from zmore by Philippe Troin <phil@fifi.org> for Debian GNU/Linux.
5
+
6
+ PATH="/usr/bin:$PATH"; export PATH
7
+
8
+ prog=`echo $0 | sed 's|.*/||'`
9
+ case "$prog" in
10
+ *less) more=less ;;
11
+ *) more=more ;;
12
+ esac
13
+
14
+ if test "`echo -n a`" = "-n a"; then
15
+ # looks like a SysV system:
16
+ n1=''; n2='\c'
17
+ else
18
+ n1='-n'; n2=''
19
+ fi
20
+ oldtty=`stty -g 2>/dev/null`
21
+ if stty -cbreak 2>/dev/null; then
22
+ cb='cbreak'; ncb='-cbreak'
23
+ else
24
+ # 'stty min 1' resets eof to ^a on both SunOS and SysV!
25
+ cb='min 1 -icanon'; ncb='icanon eof ^d'
26
+ fi
27
+ if test $? -eq 0 -a -n "$oldtty"; then
28
+ trap 'stty $oldtty 2>/dev/null; exit' 0 2 3 5 10 13 15
29
+ else
30
+ trap 'stty $ncb echo 2>/dev/null; exit' 0 2 3 5 10 13 15
31
+ fi
32
+
33
+ if test $# = 0; then
34
+ if test -t 0; then
35
+ echo usage: $prog files...
36
+ else
37
+ bzip2 -cdfq | eval $more
38
+ fi
39
+ else
40
+ FIRST=1
41
+ for FILE
42
+ do
43
+ if test $FIRST -eq 0; then
44
+ echo $n1 "--More--(Next file: $FILE)$n2"
45
+ stty $cb -echo 2>/dev/null
46
+ ANS=`dd bs=1 count=1 2>/dev/null`
47
+ stty $ncb echo 2>/dev/null
48
+ echo " "
49
+ if test "$ANS" = 'e' -o "$ANS" = 'q'; then
50
+ exit
51
+ fi
52
+ fi
53
+ if test "$ANS" != 's'; then
54
+ echo "------> $FILE <------"
55
+ bzip2 -cdfq "$FILE" | eval $more
56
+ fi
57
+ if test -t; then
58
+ FIRST=0
59
+ fi
60
+ done
61
+ fi
vpp_env/bin/c_rehash ADDED
@@ -0,0 +1,251 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/croot/openssl_1694464909176/_build_env/bin/perl
2
+
3
+ # WARNING: do not edit!
4
+ # Generated by Makefile from tools/c_rehash.in
5
+ # Copyright 1999-2022 The OpenSSL Project Authors. All Rights Reserved.
6
+ #
7
+ # Licensed under the OpenSSL license (the "License"). You may not use
8
+ # this file except in compliance with the License. You can obtain a copy
9
+ # in the file LICENSE in the source distribution or at
10
+ # https://www.openssl.org/source/license.html
11
+
12
+ # Perl c_rehash script, scan all files in a directory
13
+ # and add symbolic links to their hash values.
14
+
15
+ my $dir = "";
16
+ my $prefix = "/workspace/miniconda3/envs/vpp";
17
+
18
+ my $errorcount = 0;
19
+ my $openssl = $ENV{OPENSSL} || "openssl";
20
+ my $pwd;
21
+ my $x509hash = "-subject_hash";
22
+ my $crlhash = "-hash";
23
+ my $verbose = 0;
24
+ my $symlink_exists=eval {symlink("",""); 1};
25
+ my $removelinks = 1;
26
+
27
+ ## Parse flags.
28
+ while ( $ARGV[0] =~ /^-/ ) {
29
+ my $flag = shift @ARGV;
30
+ last if ( $flag eq '--');
31
+ if ( $flag eq '-old') {
32
+ $x509hash = "-subject_hash_old";
33
+ $crlhash = "-hash_old";
34
+ } elsif ( $flag eq '-h' || $flag eq '-help' ) {
35
+ help();
36
+ } elsif ( $flag eq '-n' ) {
37
+ $removelinks = 0;
38
+ } elsif ( $flag eq '-v' ) {
39
+ $verbose++;
40
+ }
41
+ else {
42
+ print STDERR "Usage error; try -h.\n";
43
+ exit 1;
44
+ }
45
+ }
46
+
47
+ sub help {
48
+ print "Usage: c_rehash [-old] [-h] [-help] [-v] [dirs...]\n";
49
+ print " -old use old-style digest\n";
50
+ print " -h or -help print this help text\n";
51
+ print " -v print files removed and linked\n";
52
+ exit 0;
53
+ }
54
+
55
+ eval "require Cwd";
56
+ if (defined(&Cwd::getcwd)) {
57
+ $pwd=Cwd::getcwd();
58
+ } else {
59
+ $pwd=`pwd`;
60
+ chomp($pwd);
61
+ }
62
+
63
+ # DOS/Win32 or Unix delimiter? Prefix our installdir, then search.
64
+ my $path_delim = ($pwd =~ /^[a-z]\:/i) ? ';' : ':';
65
+ $ENV{PATH} = "$prefix/bin" . ($ENV{PATH} ? $path_delim . $ENV{PATH} : "");
66
+
67
+ if (! -x $openssl) {
68
+ my $found = 0;
69
+ foreach (split /$path_delim/, $ENV{PATH}) {
70
+ if (-x "$_/$openssl") {
71
+ $found = 1;
72
+ $openssl = "$_/$openssl";
73
+ last;
74
+ }
75
+ }
76
+ if ($found == 0) {
77
+ print STDERR "c_rehash: rehashing skipped ('openssl' program not available)\n";
78
+ exit 0;
79
+ }
80
+ }
81
+
82
+ if (@ARGV) {
83
+ @dirlist = @ARGV;
84
+ } elsif ($ENV{SSL_CERT_DIR}) {
85
+ @dirlist = split /$path_delim/, $ENV{SSL_CERT_DIR};
86
+ } else {
87
+ $dirlist[0] = "$dir/certs";
88
+ }
89
+
90
+ if (-d $dirlist[0]) {
91
+ chdir $dirlist[0];
92
+ $openssl="$pwd/$openssl" if (!-x $openssl);
93
+ chdir $pwd;
94
+ }
95
+
96
+ foreach (@dirlist) {
97
+ if (-d $_ ) {
98
+ if ( -w $_) {
99
+ hash_dir($_);
100
+ } else {
101
+ print "Skipping $_, can't write\n";
102
+ $errorcount++;
103
+ }
104
+ }
105
+ }
106
+ exit($errorcount);
107
+
108
+ sub copy_file {
109
+ my ($src_fname, $dst_fname) = @_;
110
+
111
+ if (open(my $in, "<", $src_fname)) {
112
+ if (open(my $out, ">", $dst_fname)) {
113
+ print $out $_ while (<$in>);
114
+ close $out;
115
+ } else {
116
+ warn "Cannot open $dst_fname for write, $!";
117
+ }
118
+ close $in;
119
+ } else {
120
+ warn "Cannot open $src_fname for read, $!";
121
+ }
122
+ }
123
+
124
+ sub hash_dir {
125
+ my $dir = shift;
126
+ my %hashlist;
127
+
128
+ print "Doing $dir\n";
129
+
130
+ if (!chdir $dir) {
131
+ print STDERR "WARNING: Cannot chdir to '$dir', $!\n";
132
+ return;
133
+ }
134
+
135
+ opendir(DIR, ".") || print STDERR "WARNING: Cannot opendir '.', $!\n";
136
+ my @flist = sort readdir(DIR);
137
+ closedir DIR;
138
+ if ( $removelinks ) {
139
+ # Delete any existing symbolic links
140
+ foreach (grep {/^[\da-f]+\.r{0,1}\d+$/} @flist) {
141
+ if (-l $_) {
142
+ print "unlink $_\n" if $verbose;
143
+ unlink $_ || warn "Can't unlink $_, $!\n";
144
+ }
145
+ }
146
+ }
147
+ FILE: foreach $fname (grep {/\.(pem)|(crt)|(cer)|(crl)$/} @flist) {
148
+ # Check to see if certificates and/or CRLs present.
149
+ my ($cert, $crl) = check_file($fname);
150
+ if (!$cert && !$crl) {
151
+ print STDERR "WARNING: $fname does not contain a certificate or CRL: skipping\n";
152
+ next;
153
+ }
154
+ link_hash_cert($fname) if ($cert);
155
+ link_hash_crl($fname) if ($crl);
156
+ }
157
+
158
+ chdir $pwd;
159
+ }
160
+
161
+ sub check_file {
162
+ my ($is_cert, $is_crl) = (0,0);
163
+ my $fname = $_[0];
164
+
165
+ open(my $in, "<", $fname);
166
+ while(<$in>) {
167
+ if (/^-----BEGIN (.*)-----/) {
168
+ my $hdr = $1;
169
+ if ($hdr =~ /^(X509 |TRUSTED |)CERTIFICATE$/) {
170
+ $is_cert = 1;
171
+ last if ($is_crl);
172
+ } elsif ($hdr eq "X509 CRL") {
173
+ $is_crl = 1;
174
+ last if ($is_cert);
175
+ }
176
+ }
177
+ }
178
+ close $in;
179
+ return ($is_cert, $is_crl);
180
+ }
181
+
182
+ sub compute_hash {
183
+ my $fh;
184
+ if ( $^O eq "VMS" ) {
185
+ # VMS uses the open through shell
186
+ # The file names are safe there and list form is unsupported
187
+ if (!open($fh, "-|", join(' ', @_))) {
188
+ print STDERR "Cannot compute hash on '$fname'\n";
189
+ return;
190
+ }
191
+ } else {
192
+ if (!open($fh, "-|", @_)) {
193
+ print STDERR "Cannot compute hash on '$fname'\n";
194
+ return;
195
+ }
196
+ }
197
+ return (<$fh>, <$fh>);
198
+ }
199
+
200
+ # Link a certificate to its subject name hash value, each hash is of
201
+ # the form <hash>.<n> where n is an integer. If the hash value already exists
202
+ # then we need to up the value of n, unless its a duplicate in which
203
+ # case we skip the link. We check for duplicates by comparing the
204
+ # certificate fingerprints
205
+
206
+ sub link_hash_cert {
207
+ link_hash($_[0], 'cert');
208
+ }
209
+
210
+ # Same as above except for a CRL. CRL links are of the form <hash>.r<n>
211
+
212
+ sub link_hash_crl {
213
+ link_hash($_[0], 'crl');
214
+ }
215
+
216
+ sub link_hash {
217
+ my ($fname, $type) = @_;
218
+ my $is_cert = $type eq 'cert';
219
+
220
+ my ($hash, $fprint) = compute_hash($openssl,
221
+ $is_cert ? "x509" : "crl",
222
+ $is_cert ? $x509hash : $crlhash,
223
+ "-fingerprint", "-noout",
224
+ "-in", $fname);
225
+ chomp $hash;
226
+ chomp $fprint;
227
+ return if !$hash;
228
+ $fprint =~ s/^.*=//;
229
+ $fprint =~ tr/://d;
230
+ my $suffix = 0;
231
+ # Search for an unused hash filename
232
+ my $crlmark = $is_cert ? "" : "r";
233
+ while(exists $hashlist{"$hash.$crlmark$suffix"}) {
234
+ # Hash matches: if fingerprint matches its a duplicate cert
235
+ if ($hashlist{"$hash.$crlmark$suffix"} eq $fprint) {
236
+ my $what = $is_cert ? 'certificate' : 'CRL';
237
+ print STDERR "WARNING: Skipping duplicate $what $fname\n";
238
+ return;
239
+ }
240
+ $suffix++;
241
+ }
242
+ $hash .= ".$crlmark$suffix";
243
+ if ($symlink_exists) {
244
+ print "link $fname -> $hash\n" if $verbose;
245
+ symlink $fname, $hash || warn "Can't symlink, $!";
246
+ } else {
247
+ print "copy $fname -> $hash\n" if $verbose;
248
+ copy_file($fname, $hash);
249
+ }
250
+ $hashlist{$hash} = $fprint;
251
+ }
vpp_env/bin/captoinfo ADDED
Binary file (92.2 kB). View file
 
vpp_env/bin/clear ADDED
Binary file (14.3 kB). View file
 
vpp_env/bin/cmake ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ #!/workspace/miniconda3/envs/vpp/bin/python3.10
2
+ import sys
3
+ from cmake import cmake
4
+ if __name__ == '__main__':
5
+ if sys.argv[0].endswith('.exe'):
6
+ sys.argv[0] = sys.argv[0][:-4]
7
+ sys.exit(cmake())
vpp_env/bin/cpack ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ #!/workspace/miniconda3/envs/vpp/bin/python3.10
2
+ import sys
3
+ from cmake import cpack
4
+ if __name__ == '__main__':
5
+ if sys.argv[0].endswith('.exe'):
6
+ sys.argv[0] = sys.argv[0][:-4]
7
+ sys.exit(cpack())
vpp_env/bin/ctest ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ #!/workspace/miniconda3/envs/vpp/bin/python3.10
2
+ import sys
3
+ from cmake import ctest
4
+ if __name__ == '__main__':
5
+ if sys.argv[0].endswith('.exe'):
6
+ sys.argv[0] = sys.argv[0][:-4]
7
+ sys.exit(ctest())
vpp_env/bin/debugpy ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ #!/workspace/miniconda3/envs/vpp/bin/python3.10
2
+ import sys
3
+ from debugpy.server.cli import main
4
+ if __name__ == '__main__':
5
+ sys.argv[0] = sys.argv[0].removesuffix('.exe')
6
+ sys.exit(main())
vpp_env/bin/debugpy-adapter ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ #!/workspace/miniconda3/envs/vpp/bin/python3.10
2
+ import sys
3
+ from debugpy.adapter.__main__ import main
4
+ if __name__ == '__main__':
5
+ sys.argv[0] = sys.argv[0].removesuffix('.exe')
6
+ sys.exit(main())
vpp_env/bin/diffusers-cli ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ #!/workspace/miniconda3/envs/vpp/bin/python3.10
2
+ import sys
3
+ from diffusers.commands.diffusers_cli import main
4
+ if __name__ == '__main__':
5
+ sys.argv[0] = sys.argv[0].removesuffix('.exe')
6
+ sys.exit(main())
vpp_env/bin/f2py ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ #!/workspace/miniconda3/envs/vpp/bin/python3.10
2
+ import sys
3
+ from numpy.f2py.f2py2e import main
4
+ if __name__ == '__main__':
5
+ sys.argv[0] = sys.argv[0].removesuffix('.exe')
6
+ sys.exit(main())
vpp_env/bin/fastapi ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ #!/workspace/miniconda3/envs/vpp/bin/python3.10
2
+ import sys
3
+ from fastapi.cli import main
4
+ if __name__ == '__main__':
5
+ sys.argv[0] = sys.argv[0].removesuffix('.exe')
6
+ sys.exit(main())
vpp_env/bin/fonttools ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ #!/workspace/miniconda3/envs/vpp/bin/python3.10
2
+ import sys
3
+ from fontTools.__main__ import main
4
+ if __name__ == '__main__':
5
+ if sys.argv[0].endswith('.exe'):
6
+ sys.argv[0] = sys.argv[0][:-4]
7
+ sys.exit(main())
vpp_env/bin/ftfy ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ #!/workspace/miniconda3/envs/vpp/bin/python3.10
2
+ import sys
3
+ from ftfy.cli import main
4
+ if __name__ == '__main__':
5
+ sys.argv[0] = sys.argv[0].removesuffix('.exe')
6
+ sys.exit(main())
vpp_env/bin/gdown ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ #!/workspace/miniconda3/envs/vpp/bin/python3.10
2
+ import sys
3
+ from gdown.__main__ import main
4
+ if __name__ == '__main__':
5
+ sys.argv[0] = sys.argv[0].removesuffix('.exe')
6
+ sys.exit(main())
vpp_env/bin/gradio ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ #!/workspace/miniconda3/envs/vpp/bin/python3.10
2
+ import sys
3
+ from gradio.cli import cli
4
+ if __name__ == '__main__':
5
+ sys.argv[0] = sys.argv[0].removesuffix('.exe')
6
+ sys.exit(cli())
vpp_env/bin/httpx ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ #!/workspace/miniconda3/envs/vpp/bin/python3.10
2
+ import sys
3
+ from httpx import main
4
+ if __name__ == '__main__':
5
+ sys.argv[0] = sys.argv[0].removesuffix('.exe')
6
+ sys.exit(main())
vpp_env/bin/huggingface-cli ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ #!/workspace/miniconda3/envs/vpp/bin/python3.10
2
+ import sys
3
+ from huggingface_hub.commands.huggingface_cli import main
4
+ if __name__ == '__main__':
5
+ sys.argv[0] = sys.argv[0].removesuffix('.exe')
6
+ sys.exit(main())
vpp_env/bin/idle3 ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ #!/workspace/miniconda3/envs/vpp/bin/python3.10
2
+
3
+ from idlelib.pyshell import main
4
+ if __name__ == '__main__':
5
+ main()
vpp_env/bin/idle3.10 ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ #!/workspace/miniconda3/envs/vpp/bin/python3.10
2
+
3
+ from idlelib.pyshell import main
4
+ if __name__ == '__main__':
5
+ main()
vpp_env/bin/imageio_download_bin ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ #!/workspace/miniconda3/envs/vpp/bin/python3.10
2
+ import sys
3
+ from imageio.__main__ import download_bin_main
4
+ if __name__ == '__main__':
5
+ if sys.argv[0].endswith('.exe'):
6
+ sys.argv[0] = sys.argv[0][:-4]
7
+ sys.exit(download_bin_main())
vpp_env/bin/imageio_remove_bin ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ #!/workspace/miniconda3/envs/vpp/bin/python3.10
2
+ import sys
3
+ from imageio.__main__ import remove_bin_main
4
+ if __name__ == '__main__':
5
+ if sys.argv[0].endswith('.exe'):
6
+ sys.argv[0] = sys.argv[0][:-4]
7
+ sys.exit(remove_bin_main())
vpp_env/bin/infocmp ADDED
Binary file (63.5 kB). View file
 
vpp_env/bin/infotocap ADDED
Binary file (92.2 kB). View file
 
vpp_env/bin/ipython ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ #!/workspace/miniconda3/envs/vpp/bin/python3.10
2
+ import sys
3
+ from IPython import start_ipython
4
+ if __name__ == '__main__':
5
+ sys.argv[0] = sys.argv[0].removesuffix('.exe')
6
+ sys.exit(start_ipython())
vpp_env/bin/ipython3 ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ #!/workspace/miniconda3/envs/vpp/bin/python3.10
2
+ import sys
3
+ from IPython import start_ipython
4
+ if __name__ == '__main__':
5
+ sys.argv[0] = sys.argv[0].removesuffix('.exe')
6
+ sys.exit(start_ipython())
vpp_env/bin/isympy ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ #!/workspace/miniconda3/envs/vpp/bin/python3.10
2
+ import sys
3
+ from isympy import main
4
+ if __name__ == '__main__':
5
+ sys.argv[0] = sys.argv[0].removesuffix('.exe')
6
+ sys.exit(main())
vpp_env/bin/jlpm ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ #!/workspace/miniconda3/envs/vpp/bin/python3.10
2
+ import sys
3
+ from jupyterlab.jlpmapp import main
4
+ if __name__ == '__main__':
5
+ sys.argv[0] = sys.argv[0].removesuffix('.exe')
6
+ sys.exit(main())
vpp_env/bin/jsonpointer ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/workspace/miniconda3/envs/vpp/bin/python3.10
2
+ # -*- coding: utf-8 -*-
3
+
4
+
5
+ import argparse
6
+ import json
7
+ import sys
8
+
9
+ import jsonpointer
10
+
11
+ parser = argparse.ArgumentParser(
12
+ description='Resolve a JSON pointer on JSON files')
13
+
14
+ # Accept pointer as argument or as file
15
+ ptr_group = parser.add_mutually_exclusive_group(required=True)
16
+
17
+ ptr_group.add_argument('-f', '--pointer-file', type=argparse.FileType('r'),
18
+ nargs='?',
19
+ help='File containing a JSON pointer expression')
20
+
21
+ ptr_group.add_argument('POINTER', type=str, nargs='?',
22
+ help='A JSON pointer expression')
23
+
24
+ parser.add_argument('FILE', type=argparse.FileType('r'), nargs='+',
25
+ help='Files for which the pointer should be resolved')
26
+ parser.add_argument('--indent', type=int, default=None,
27
+ help='Indent output by n spaces')
28
+ parser.add_argument('-v', '--version', action='version',
29
+ version='%(prog)s ' + jsonpointer.__version__)
30
+
31
+
32
+ def main():
33
+ try:
34
+ resolve_files()
35
+ except KeyboardInterrupt:
36
+ sys.exit(1)
37
+
38
+
39
+ def parse_pointer(args):
40
+ if args.POINTER:
41
+ ptr = args.POINTER
42
+ elif args.pointer_file:
43
+ ptr = args.pointer_file.read().strip()
44
+ else:
45
+ parser.print_usage()
46
+ sys.exit(1)
47
+
48
+ return ptr
49
+
50
+
51
+ def resolve_files():
52
+ """ Resolve a JSON pointer on JSON files """
53
+ args = parser.parse_args()
54
+
55
+ ptr = parse_pointer(args)
56
+
57
+ for f in args.FILE:
58
+ doc = json.load(f)
59
+ try:
60
+ result = jsonpointer.resolve_pointer(doc, ptr)
61
+ print(json.dumps(result, indent=args.indent))
62
+ except jsonpointer.JsonPointerException as e:
63
+ print('Could not resolve pointer: %s' % str(e), file=sys.stderr)
64
+
65
+
66
+ if __name__ == "__main__":
67
+ main()
vpp_env/bin/jsonschema ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ #!/workspace/miniconda3/envs/vpp/bin/python3.10
2
+ import sys
3
+ from jsonschema.cli import main
4
+ if __name__ == '__main__':
5
+ sys.argv[0] = sys.argv[0].removesuffix('.exe')
6
+ sys.exit(main())
vpp_env/bin/jupyter ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ #!/workspace/miniconda3/envs/vpp/bin/python3.10
2
+ import sys
3
+ from jupyter_core.command import main
4
+ if __name__ == '__main__':
5
+ sys.argv[0] = sys.argv[0].removesuffix('.exe')
6
+ sys.exit(main())
vpp_env/bin/jupyter-dejavu ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ #!/workspace/miniconda3/envs/vpp/bin/python3.10
2
+ import sys
3
+ from nbconvert.nbconvertapp import dejavu_main
4
+ if __name__ == '__main__':
5
+ sys.argv[0] = sys.argv[0].removesuffix('.exe')
6
+ sys.exit(dejavu_main())