jasonfan commited on
Commit
720d47e
·
verified ·
1 Parent(s): 07e7040

Add files using upload-large-folder tool

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. miniconda3/bin/normalizer +11 -0
  2. miniconda3/bin/pcre2-config +121 -0
  3. miniconda3/bin/pip +10 -0
  4. miniconda3/bin/pip3 +10 -0
  5. miniconda3/bin/pkgdata +0 -0
  6. miniconda3/bin/pydoc +5 -0
  7. miniconda3/bin/pydoc3 +5 -0
  8. miniconda3/bin/pydoc3.13 +5 -0
  9. miniconda3/bin/pygmentize +11 -0
  10. miniconda3/bin/pysemver +11 -0
  11. miniconda3/bin/python3-config +122 -0
  12. miniconda3/bin/python3.13-config +122 -0
  13. miniconda3/bin/recode-sr-latin +0 -0
  14. miniconda3/bin/repo2solv +0 -0
  15. miniconda3/bin/reset +0 -0
  16. miniconda3/bin/sqlite3_analyzer +899 -0
  17. miniconda3/bin/tabs +0 -0
  18. miniconda3/bin/tclsh +0 -0
  19. miniconda3/bin/tclsh8.6 +0 -0
  20. miniconda3/bin/testsolv +0 -0
  21. miniconda3/bin/tic +0 -0
  22. miniconda3/bin/toe +0 -0
  23. miniconda3/bin/tput +0 -0
  24. miniconda3/bin/tqdm +11 -0
  25. miniconda3/bin/tset +0 -0
  26. miniconda3/bin/typer +11 -0
  27. miniconda3/bin/wheel +11 -0
  28. miniconda3/bin/wish +0 -0
  29. miniconda3/bin/wish8.6 +0 -0
  30. miniconda3/bin/xml2-config +108 -0
  31. miniconda3/bin/xmlcatalog +0 -0
  32. miniconda3/bin/xmllint +0 -0
  33. miniconda3/bin/xmlwf +0 -0
  34. miniconda3/bin/xzcmp +224 -0
  35. miniconda3/bin/xzdec +0 -0
  36. miniconda3/bin/xzdiff +224 -0
  37. miniconda3/bin/xzegrep +302 -0
  38. miniconda3/bin/xzfgrep +302 -0
  39. miniconda3/bin/xzgrep +302 -0
  40. miniconda3/bin/xzless +76 -0
  41. miniconda3/bin/xzmore +82 -0
  42. miniconda3/bin/zstdgrep +134 -0
  43. miniconda3/bin/zstdless +8 -0
  44. miniconda3/compiler_compat/README +2 -0
  45. miniconda3/conda-meta/_libgcc_mutex-0.1-main.json +31 -0
  46. miniconda3/conda-meta/_openmp_mutex-5.1-1_gnu.json +38 -0
  47. miniconda3/conda-meta/anaconda-anon-usage-0.7.5-pyhb46e38b_100.json +89 -0
  48. miniconda3/conda-meta/anaconda-auth-0.13.0-py313h06a4308_0.json +139 -0
  49. miniconda3/conda-meta/anaconda-cli-base-0.8.1-py313h06a4308_0.json +85 -0
  50. miniconda3/conda-meta/annotated-types-0.6.0-py313h06a4308_1.json +48 -0
miniconda3/bin/normalizer ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/mnt/bn/bohanzhainas1/jiashuo/miniconda3/bin/python
2
+
3
+ # -*- coding: utf-8 -*-
4
+ import re
5
+ import sys
6
+
7
+ from charset_normalizer.cli import cli_detect
8
+
9
+ if __name__ == '__main__':
10
+ sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
11
+ sys.exit(cli_detect())
miniconda3/bin/pcre2-config ADDED
@@ -0,0 +1,121 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/sh
2
+
3
+ prefix=/mnt/bn/bohanzhainas1/jiashuo/miniconda3
4
+ exec_prefix=${prefix}
5
+ exec_prefix_set=no
6
+
7
+ cflags="[--cflags]"
8
+ libs=
9
+
10
+ if test yes = yes ; then
11
+ libs="[--libs16] $libs"
12
+ fi
13
+
14
+ if test yes = yes ; then
15
+ libs="[--libs32] $libs"
16
+ fi
17
+
18
+ if test yes = yes ; then
19
+ libs="[--libs8] [--libs-posix] $libs"
20
+ cflags="$cflags [--cflags-posix]"
21
+ fi
22
+
23
+ usage="Usage: pcre2-config [--prefix] [--exec-prefix] [--version] $libs $cflags"
24
+
25
+ if test $# -eq 0; then
26
+ echo "${usage}" 1>&2
27
+ exit 1
28
+ fi
29
+
30
+ libR=
31
+ case `uname -s` in
32
+ *SunOS*)
33
+ libR=" -R${exec_prefix}/lib"
34
+ ;;
35
+ *BSD*)
36
+ libR=" -Wl,-R${exec_prefix}/lib"
37
+ ;;
38
+ esac
39
+
40
+ libS=
41
+ if test ${exec_prefix}/lib != /usr/lib ; then
42
+ libS=-L${exec_prefix}/lib
43
+ fi
44
+
45
+ while test $# -gt 0; do
46
+ case "$1" in
47
+ -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
48
+ *) optarg= ;;
49
+ esac
50
+
51
+ case $1 in
52
+ --prefix=*)
53
+ prefix=$optarg
54
+ if test $exec_prefix_set = no ; then
55
+ exec_prefix=$optarg
56
+ fi
57
+ ;;
58
+ --prefix)
59
+ echo $prefix
60
+ ;;
61
+ --exec-prefix=*)
62
+ exec_prefix=$optarg
63
+ exec_prefix_set=yes
64
+ ;;
65
+ --exec-prefix)
66
+ echo $exec_prefix
67
+ ;;
68
+ --version)
69
+ echo 10.46
70
+ ;;
71
+ --cflags)
72
+ if test ${prefix}/include != /usr/include ; then
73
+ includes=-I${prefix}/include
74
+ fi
75
+ echo $includes
76
+ ;;
77
+ --cflags-posix)
78
+ if test yes = yes ; then
79
+ if test ${prefix}/include != /usr/include ; then
80
+ includes=-I${prefix}/include
81
+ fi
82
+ echo $includes -DPCRE2POSIX_SHARED
83
+ else
84
+ echo "${usage}" 1>&2
85
+ fi
86
+ ;;
87
+ --libs-posix)
88
+ if test yes = yes ; then
89
+ echo $libS$libR -lpcre2-posix -lpcre2-8
90
+ else
91
+ echo "${usage}" 1>&2
92
+ fi
93
+ ;;
94
+ --libs8)
95
+ if test yes = yes ; then
96
+ echo $libS$libR -lpcre2-8
97
+ else
98
+ echo "${usage}" 1>&2
99
+ fi
100
+ ;;
101
+ --libs16)
102
+ if test yes = yes ; then
103
+ echo $libS$libR -lpcre2-16
104
+ else
105
+ echo "${usage}" 1>&2
106
+ fi
107
+ ;;
108
+ --libs32)
109
+ if test yes = yes ; then
110
+ echo $libS$libR -lpcre2-32
111
+ else
112
+ echo "${usage}" 1>&2
113
+ fi
114
+ ;;
115
+ *)
116
+ echo "${usage}" 1>&2
117
+ exit 1
118
+ ;;
119
+ esac
120
+ shift
121
+ done
miniconda3/bin/pip ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/mnt/bn/bohanzhainas1/jiashuo/miniconda3/bin/python3.13
2
+ # -*- coding: utf-8 -*-
3
+ import re
4
+ import sys
5
+
6
+ from pip._internal.cli.main import main
7
+
8
+ if __name__ == '__main__':
9
+ sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
10
+ sys.exit(main())
miniconda3/bin/pip3 ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/mnt/bn/bohanzhainas1/jiashuo/miniconda3/bin/python3.13
2
+ # -*- coding: utf-8 -*-
3
+ import re
4
+ import sys
5
+
6
+ from pip._internal.cli.main import main
7
+
8
+ if __name__ == '__main__':
9
+ sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
10
+ sys.exit(main())
miniconda3/bin/pkgdata ADDED
Binary file (50.7 kB). View file
 
miniconda3/bin/pydoc ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ #!/mnt/bn/bohanzhainas1/jiashuo/miniconda3/bin/python3.13
2
+
3
+ import pydoc
4
+ if __name__ == '__main__':
5
+ pydoc.cli()
miniconda3/bin/pydoc3 ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ #!/mnt/bn/bohanzhainas1/jiashuo/miniconda3/bin/python3.13
2
+
3
+ import pydoc
4
+ if __name__ == '__main__':
5
+ pydoc.cli()
miniconda3/bin/pydoc3.13 ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ #!/mnt/bn/bohanzhainas1/jiashuo/miniconda3/bin/python3.13
2
+
3
+ import pydoc
4
+ if __name__ == '__main__':
5
+ pydoc.cli()
miniconda3/bin/pygmentize ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/mnt/bn/bohanzhainas1/jiashuo/miniconda3/bin/python
2
+
3
+ # -*- coding: utf-8 -*-
4
+ import re
5
+ import sys
6
+
7
+ from pygments.cmdline import main
8
+
9
+ if __name__ == '__main__':
10
+ sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
11
+ sys.exit(main())
miniconda3/bin/pysemver ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/mnt/bn/bohanzhainas1/jiashuo/miniconda3/bin/python
2
+
3
+ # -*- coding: utf-8 -*-
4
+ import re
5
+ import sys
6
+
7
+ from semver.cli import main
8
+
9
+ if __name__ == '__main__':
10
+ sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
11
+ sys.exit(main())
miniconda3/bin/python3-config ADDED
@@ -0,0 +1,122 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/sh
2
+
3
+ # Keep this script in sync with python-config.in
4
+
5
+ exit_with_usage ()
6
+ {
7
+ local usage
8
+ usage="Usage: $0 --prefix|--exec-prefix|--includes|--libs|--cflags|--ldflags|--extension-suffix|--help|--abiflags|--configdir|--embed"
9
+ if [ "$1" -eq 0 ]; then
10
+ echo "$usage"
11
+ else
12
+ echo "$usage" >&2
13
+ fi
14
+ exit $1
15
+ }
16
+
17
+ if [ "$1" = "" ] ; then
18
+ exit_with_usage 1
19
+ fi
20
+
21
+ # Returns the actual prefix where this script was installed to.
22
+ installed_prefix ()
23
+ {
24
+ RESULT=$(dirname $(cd $(dirname "$1") && pwd -P))
25
+ if which readlink >/dev/null 2>&1 ; then
26
+ if readlink -f "$RESULT" >/dev/null 2>&1; then
27
+ RESULT=$(readlink -f "$RESULT")
28
+ fi
29
+ fi
30
+ echo $RESULT
31
+ }
32
+
33
+ prefix_real=$(installed_prefix "$0")
34
+
35
+ # Use sed to fix paths from their built-to locations to their installed-to
36
+ # locations. Keep prefix & exec_prefix using their original values in case
37
+ # they are referenced in other configure variables, to prevent double
38
+ # substitution, issue #22140.
39
+ prefix="/mnt/bn/bohanzhainas1/jiashuo/miniconda3"
40
+ exec_prefix="${prefix}"
41
+ exec_prefix_real=${prefix_real}
42
+ includedir=$(echo "${prefix}/include" | sed "s#$prefix#$prefix_real#")
43
+ libdir=$(echo "${exec_prefix}/lib" | sed "s#$prefix#$prefix_real#")
44
+ CFLAGS=$(echo "-march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O3 -ffunction-sections -pipe -isystem /mnt/bn/bohanzhainas1/jiashuo/miniconda3/include -fdebug-prefix-map=/home/task_177194891265482/croot/python-split_1771948977002/work=/usr/local/src/conda/python-3.13.12 -fdebug-prefix-map=/mnt/bn/bohanzhainas1/jiashuo/miniconda3=/usr/local/src/conda-prefix -fuse-linker-plugin -ffat-lto-objects -flto-partition=none -flto" | sed "s#$prefix#$prefix_real#")
45
+ VERSION="3.13"
46
+ LIBM="-lm"
47
+ LIBC=""
48
+ SYSLIBS="$LIBM $LIBC"
49
+ ABIFLAGS=""
50
+ LIBS=" -lpthread -ldl -lutil $SYSLIBS"
51
+ LIBS_EMBED="-lpython${VERSION}${ABIFLAGS} -lpthread -ldl -lutil $SYSLIBS"
52
+ BASECFLAGS=" -fno-strict-overflow -Wsign-compare"
53
+ LDLIBRARY="libpython${VERSION}${ABIFLAGS}.a"
54
+ OPT="-DNDEBUG -O3 -Wall"
55
+ PY_ENABLE_SHARED="0"
56
+ LDVERSION="${VERSION}${ABIFLAGS}"
57
+ LIBDEST=${prefix_real}/lib/python${VERSION}
58
+ LIBPL=$(echo "${prefix}/lib/python3.13/config-${VERSION}${ABIFLAGS}-x86_64-linux-gnu" | sed "s#$prefix#$prefix_real#")
59
+ SO=".cpython-313-x86_64-linux-gnu.so"
60
+ PYTHONFRAMEWORK=""
61
+ INCDIR="-I$includedir/python${VERSION}${ABIFLAGS}"
62
+ PLATINCDIR="-I$includedir/python${VERSION}${ABIFLAGS}"
63
+ PY_EMBED=0
64
+
65
+ # Scan for --help or unknown argument.
66
+ for ARG in $*
67
+ do
68
+ case $ARG in
69
+ --help)
70
+ exit_with_usage 0
71
+ ;;
72
+ --embed)
73
+ PY_EMBED=1
74
+ ;;
75
+ --prefix|--exec-prefix|--includes|--libs|--cflags|--ldflags|--extension-suffix|--abiflags|--configdir)
76
+ ;;
77
+ *)
78
+ exit_with_usage 1
79
+ ;;
80
+ esac
81
+ done
82
+
83
+ if [ $PY_EMBED = 1 ] ; then
84
+ LIBS="$LIBS_EMBED"
85
+ fi
86
+
87
+ for ARG in "$@"
88
+ do
89
+ case "$ARG" in
90
+ --prefix)
91
+ echo "$prefix_real"
92
+ ;;
93
+ --exec-prefix)
94
+ echo "$exec_prefix_real"
95
+ ;;
96
+ --includes)
97
+ echo "$INCDIR $PLATINCDIR"
98
+ ;;
99
+ --cflags)
100
+ echo "$INCDIR $PLATINCDIR $BASECFLAGS $CFLAGS $OPT"
101
+ ;;
102
+ --libs)
103
+ echo "$LIBS"
104
+ ;;
105
+ --ldflags)
106
+ LIBPLUSED=
107
+ if [ "$PY_ENABLE_SHARED" = "0" ] ; then
108
+ LIBPLUSED="-L$LIBPL"
109
+ fi
110
+ echo "$LIBPLUSED -L$libdir $LIBS"
111
+ ;;
112
+ --extension-suffix)
113
+ echo "$SO"
114
+ ;;
115
+ --abiflags)
116
+ echo "$ABIFLAGS"
117
+ ;;
118
+ --configdir)
119
+ echo "$LIBPL"
120
+ ;;
121
+ esac
122
+ done
miniconda3/bin/python3.13-config ADDED
@@ -0,0 +1,122 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/sh
2
+
3
+ # Keep this script in sync with python-config.in
4
+
5
+ exit_with_usage ()
6
+ {
7
+ local usage
8
+ usage="Usage: $0 --prefix|--exec-prefix|--includes|--libs|--cflags|--ldflags|--extension-suffix|--help|--abiflags|--configdir|--embed"
9
+ if [ "$1" -eq 0 ]; then
10
+ echo "$usage"
11
+ else
12
+ echo "$usage" >&2
13
+ fi
14
+ exit $1
15
+ }
16
+
17
+ if [ "$1" = "" ] ; then
18
+ exit_with_usage 1
19
+ fi
20
+
21
+ # Returns the actual prefix where this script was installed to.
22
+ installed_prefix ()
23
+ {
24
+ RESULT=$(dirname $(cd $(dirname "$1") && pwd -P))
25
+ if which readlink >/dev/null 2>&1 ; then
26
+ if readlink -f "$RESULT" >/dev/null 2>&1; then
27
+ RESULT=$(readlink -f "$RESULT")
28
+ fi
29
+ fi
30
+ echo $RESULT
31
+ }
32
+
33
+ prefix_real=$(installed_prefix "$0")
34
+
35
+ # Use sed to fix paths from their built-to locations to their installed-to
36
+ # locations. Keep prefix & exec_prefix using their original values in case
37
+ # they are referenced in other configure variables, to prevent double
38
+ # substitution, issue #22140.
39
+ prefix="/mnt/bn/bohanzhainas1/jiashuo/miniconda3"
40
+ exec_prefix="${prefix}"
41
+ exec_prefix_real=${prefix_real}
42
+ includedir=$(echo "${prefix}/include" | sed "s#$prefix#$prefix_real#")
43
+ libdir=$(echo "${exec_prefix}/lib" | sed "s#$prefix#$prefix_real#")
44
+ CFLAGS=$(echo "-march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O3 -ffunction-sections -pipe -isystem /mnt/bn/bohanzhainas1/jiashuo/miniconda3/include -fdebug-prefix-map=/home/task_177194891265482/croot/python-split_1771948977002/work=/usr/local/src/conda/python-3.13.12 -fdebug-prefix-map=/mnt/bn/bohanzhainas1/jiashuo/miniconda3=/usr/local/src/conda-prefix -fuse-linker-plugin -ffat-lto-objects -flto-partition=none -flto" | sed "s#$prefix#$prefix_real#")
45
+ VERSION="3.13"
46
+ LIBM="-lm"
47
+ LIBC=""
48
+ SYSLIBS="$LIBM $LIBC"
49
+ ABIFLAGS=""
50
+ LIBS=" -lpthread -ldl -lutil $SYSLIBS"
51
+ LIBS_EMBED="-lpython${VERSION}${ABIFLAGS} -lpthread -ldl -lutil $SYSLIBS"
52
+ BASECFLAGS=" -fno-strict-overflow -Wsign-compare"
53
+ LDLIBRARY="libpython${VERSION}${ABIFLAGS}.a"
54
+ OPT="-DNDEBUG -O3 -Wall"
55
+ PY_ENABLE_SHARED="0"
56
+ LDVERSION="${VERSION}${ABIFLAGS}"
57
+ LIBDEST=${prefix_real}/lib/python${VERSION}
58
+ LIBPL=$(echo "${prefix}/lib/python3.13/config-${VERSION}${ABIFLAGS}-x86_64-linux-gnu" | sed "s#$prefix#$prefix_real#")
59
+ SO=".cpython-313-x86_64-linux-gnu.so"
60
+ PYTHONFRAMEWORK=""
61
+ INCDIR="-I$includedir/python${VERSION}${ABIFLAGS}"
62
+ PLATINCDIR="-I$includedir/python${VERSION}${ABIFLAGS}"
63
+ PY_EMBED=0
64
+
65
+ # Scan for --help or unknown argument.
66
+ for ARG in $*
67
+ do
68
+ case $ARG in
69
+ --help)
70
+ exit_with_usage 0
71
+ ;;
72
+ --embed)
73
+ PY_EMBED=1
74
+ ;;
75
+ --prefix|--exec-prefix|--includes|--libs|--cflags|--ldflags|--extension-suffix|--abiflags|--configdir)
76
+ ;;
77
+ *)
78
+ exit_with_usage 1
79
+ ;;
80
+ esac
81
+ done
82
+
83
+ if [ $PY_EMBED = 1 ] ; then
84
+ LIBS="$LIBS_EMBED"
85
+ fi
86
+
87
+ for ARG in "$@"
88
+ do
89
+ case "$ARG" in
90
+ --prefix)
91
+ echo "$prefix_real"
92
+ ;;
93
+ --exec-prefix)
94
+ echo "$exec_prefix_real"
95
+ ;;
96
+ --includes)
97
+ echo "$INCDIR $PLATINCDIR"
98
+ ;;
99
+ --cflags)
100
+ echo "$INCDIR $PLATINCDIR $BASECFLAGS $CFLAGS $OPT"
101
+ ;;
102
+ --libs)
103
+ echo "$LIBS"
104
+ ;;
105
+ --ldflags)
106
+ LIBPLUSED=
107
+ if [ "$PY_ENABLE_SHARED" = "0" ] ; then
108
+ LIBPLUSED="-L$LIBPL"
109
+ fi
110
+ echo "$LIBPLUSED -L$libdir $LIBS"
111
+ ;;
112
+ --extension-suffix)
113
+ echo "$SO"
114
+ ;;
115
+ --abiflags)
116
+ echo "$ABIFLAGS"
117
+ ;;
118
+ --configdir)
119
+ echo "$LIBPL"
120
+ ;;
121
+ esac
122
+ done
miniconda3/bin/recode-sr-latin ADDED
Binary file (23.8 kB). View file
 
miniconda3/bin/repo2solv ADDED
Binary file (23.6 kB). View file
 
miniconda3/bin/reset ADDED
Binary file (30.7 kB). View file
 
miniconda3/bin/sqlite3_analyzer ADDED
@@ -0,0 +1,899 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #! /bin/sh
2
+ # restart with tclsh \
3
+ exec tclsh "$0" ${1+"$@"}
4
+ package require sqlite3
5
+
6
+ # Run this TCL script using an SQLite-enabled TCL interpreter to get a report
7
+ # on how much disk space is used by a particular data to actually store data
8
+ # versus how much space is unused.
9
+ #
10
+ # The dbstat virtual table is required.
11
+ #
12
+
13
+ if {[catch {
14
+
15
+ # Argument $tname is the name of a table within the database opened by
16
+ # database handle [db]. Return true if it is a WITHOUT ROWID table, or
17
+ # false otherwise.
18
+ #
19
+ proc is_without_rowid {tname} {
20
+ set t [string map {' ''} $tname]
21
+ db eval "PRAGMA index_list = '$t'" o {
22
+ if {$o(origin) == "pk"} {
23
+ set n $o(name)
24
+ if {0==[db one { SELECT count(*) FROM sqlite_schema WHERE name=$n }]} {
25
+ return 1
26
+ }
27
+ }
28
+ }
29
+ return 0
30
+ }
31
+
32
+ # Read and run TCL commands from standard input. Used to implement
33
+ # the --tclsh option.
34
+ #
35
+ proc tclsh {} {
36
+ set line {}
37
+ while {![eof stdin]} {
38
+ if {$line!=""} {
39
+ puts -nonewline "> "
40
+ } else {
41
+ puts -nonewline "% "
42
+ }
43
+ flush stdout
44
+ append line [gets stdin]
45
+ if {[info complete $line]} {
46
+ if {[catch {uplevel #0 $line} result]} {
47
+ puts stderr "Error: $result"
48
+ } elseif {$result!=""} {
49
+ puts $result
50
+ }
51
+ set line {}
52
+ } else {
53
+ append line \n
54
+ }
55
+ }
56
+ }
57
+
58
+
59
+ # Get the name of the database to analyze
60
+ #
61
+ proc usage {} {
62
+ set argv0 [file rootname [file tail [info script]]]
63
+ puts stderr "Usage: $argv0 ?--pageinfo? ?--stats? database-filename"
64
+ puts stderr {
65
+ Analyze the SQLite3 database file specified by the "database-filename"
66
+ argument and output a report detailing size and storage efficiency
67
+ information for the database and its constituent tables and indexes.
68
+
69
+ Options:
70
+
71
+ --pageinfo Show how each page of the database-file is used
72
+
73
+ --stats Output SQL text that creates a new database containing
74
+ statistics about the database that was analyzed
75
+
76
+ --tclsh Run the built-in TCL interpreter interactively (for debugging)
77
+
78
+ --version Show the version number of SQLite
79
+ }
80
+ exit 1
81
+ }
82
+ set file_to_analyze {}
83
+ set flags(-pageinfo) 0
84
+ set flags(-stats) 0
85
+ set flags(-debug) 0
86
+ append argv {}
87
+ foreach arg $argv {
88
+ if {[regexp {^-+pageinfo$} $arg]} {
89
+ set flags(-pageinfo) 1
90
+ } elseif {[regexp {^-+stats$} $arg]} {
91
+ set flags(-stats) 1
92
+ } elseif {[regexp {^-+debug$} $arg]} {
93
+ set flags(-debug) 1
94
+ } elseif {[regexp {^-+tclsh$} $arg]} {
95
+ tclsh
96
+ exit 0
97
+ } elseif {[regexp {^-+version$} $arg]} {
98
+ sqlite3 mem :memory:
99
+ puts [mem one {SELECT sqlite_version()||' '||sqlite_source_id()}]
100
+ mem close
101
+ exit 0
102
+ } elseif {[regexp {^-} $arg]} {
103
+ puts stderr "Unknown option: $arg"
104
+ usage
105
+ } elseif {$file_to_analyze!=""} {
106
+ usage
107
+ } else {
108
+ set file_to_analyze $arg
109
+ }
110
+ }
111
+ if {$file_to_analyze==""} usage
112
+ set root_filename $file_to_analyze
113
+ regexp {^file:(//)?([^?]*)} $file_to_analyze all x1 root_filename
114
+ if {![file exists $root_filename]} {
115
+ puts stderr "No such file: $root_filename"
116
+ exit 1
117
+ }
118
+ if {![file readable $root_filename]} {
119
+ puts stderr "File is not readable: $root_filename"
120
+ exit 1
121
+ }
122
+ set true_file_size [file size $root_filename]
123
+ if {$true_file_size<512} {
124
+ puts stderr "Empty or malformed database: $root_filename"
125
+ exit 1
126
+ }
127
+
128
+ # Compute the total file size assuming test_multiplexor is being used.
129
+ # Assume that SQLITE_ENABLE_8_3_NAMES might be enabled
130
+ #
131
+ set extension [file extension $root_filename]
132
+ set pattern $root_filename
133
+ append pattern {[0-3][0-9][0-9]}
134
+ foreach f [glob -nocomplain $pattern] {
135
+ incr true_file_size [file size $f]
136
+ set extension {}
137
+ }
138
+ if {[string length $extension]>=2 && [string length $extension]<=4} {
139
+ set pattern [file rootname $root_filename]
140
+ append pattern {.[0-3][0-9][0-9]}
141
+ foreach f [glob -nocomplain $pattern] {
142
+ incr true_file_size [file size $f]
143
+ }
144
+ }
145
+
146
+ # Open the database
147
+ #
148
+ if {[catch {sqlite3 db $file_to_analyze -uri 1} msg]} {
149
+ puts stderr "error trying to open $file_to_analyze: $msg"
150
+ exit 1
151
+ }
152
+ if {$flags(-debug)} {
153
+ proc dbtrace {txt} {puts $txt; flush stdout;}
154
+ db trace ::dbtrace
155
+ }
156
+
157
+ # Make sure all required compile-time options are available
158
+ #
159
+ if {![db exists {SELECT 1 FROM pragma_compile_options
160
+ WHERE compile_options='ENABLE_DBSTAT_VTAB'}]} {
161
+ puts "The SQLite database engine linked with this application\
162
+ lacks required capabilities. Recompile using the\
163
+ -DSQLITE_ENABLE_DBSTAT_VTAB compile-time option to fix\
164
+ this problem."
165
+ exit 1
166
+ }
167
+
168
+ db eval {SELECT count(*) FROM sqlite_schema}
169
+ set pageSize [expr {wide([db one {PRAGMA page_size}])}]
170
+
171
+ if {$flags(-pageinfo)} {
172
+ db eval {CREATE VIRTUAL TABLE temp.stat USING dbstat}
173
+ db eval {SELECT name, path, pageno FROM temp.stat ORDER BY pageno} {
174
+ puts "$pageno $name $path"
175
+ }
176
+ exit 0
177
+ }
178
+ if {$flags(-stats)} {
179
+ db eval {CREATE VIRTUAL TABLE temp.stat USING dbstat}
180
+ puts "BEGIN;"
181
+ puts "CREATE TABLE stats("
182
+ puts " name STRING, /* Name of table or index */"
183
+ puts " path INTEGER, /* Path to page from root */"
184
+ puts " pageno INTEGER, /* Page number */"
185
+ puts " pagetype STRING, /* 'internal', 'leaf' or 'overflow' */"
186
+ puts " ncell INTEGER, /* Cells on page (0 for overflow) */"
187
+ puts " payload INTEGER, /* Bytes of payload on this page */"
188
+ puts " unused INTEGER, /* Bytes of unused space on this page */"
189
+ puts " mx_payload INTEGER, /* Largest payload size of all cells */"
190
+ puts " pgoffset INTEGER, /* Offset of page in file */"
191
+ puts " pgsize INTEGER /* Size of the page */"
192
+ puts ");"
193
+ db eval {SELECT quote(name) || ',' ||
194
+ quote(path) || ',' ||
195
+ quote(pageno) || ',' ||
196
+ quote(pagetype) || ',' ||
197
+ quote(ncell) || ',' ||
198
+ quote(payload) || ',' ||
199
+ quote(unused) || ',' ||
200
+ quote(mx_payload) || ',' ||
201
+ quote(pgoffset) || ',' ||
202
+ quote(pgsize) AS x FROM stat} {
203
+ puts "INSERT INTO stats VALUES($x);"
204
+ }
205
+ puts "COMMIT;"
206
+ exit 0
207
+ }
208
+
209
+
210
+ # In-memory database for collecting statistics. This script loops through
211
+ # the tables and indices in the database being analyzed, adding a row for each
212
+ # to an in-memory database (for which the schema is shown below). It then
213
+ # queries the in-memory db to produce the space-analysis report.
214
+ #
215
+ sqlite3 mem :memory:
216
+ if {$flags(-debug)} {
217
+ proc dbtrace {txt} {puts $txt; flush stdout;}
218
+ mem trace ::dbtrace
219
+ }
220
+ set tabledef {CREATE TABLE space_used(
221
+ name clob, -- Name of a table or index in the database file
222
+ tblname clob, -- Name of associated table
223
+ is_index boolean, -- TRUE if it is an index, false for a table
224
+ is_without_rowid boolean, -- TRUE if WITHOUT ROWID table
225
+ nentry int, -- Number of entries in the BTree
226
+ leaf_entries int, -- Number of leaf entries
227
+ depth int, -- Depth of the b-tree
228
+ payload int, -- Total amount of data stored in this table or index
229
+ ovfl_payload int, -- Total amount of data stored on overflow pages
230
+ ovfl_cnt int, -- Number of entries that use overflow
231
+ mx_payload int, -- Maximum payload size
232
+ int_pages int, -- Number of interior pages used
233
+ leaf_pages int, -- Number of leaf pages used
234
+ ovfl_pages int, -- Number of overflow pages used
235
+ int_unused int, -- Number of unused bytes on interior pages
236
+ leaf_unused int, -- Number of unused bytes on primary pages
237
+ ovfl_unused int, -- Number of unused bytes on overflow pages
238
+ gap_cnt int, -- Number of gaps in the page layout
239
+ compressed_size int -- Total bytes stored on disk
240
+ );}
241
+ mem eval $tabledef
242
+
243
+ # Create a temporary "dbstat" virtual table.
244
+ #
245
+ db eval {CREATE VIRTUAL TABLE temp.stat USING dbstat}
246
+ db eval {CREATE TEMP TABLE dbstat AS SELECT * FROM temp.stat
247
+ ORDER BY name, path}
248
+ db eval {DROP TABLE temp.stat}
249
+
250
+ set isCompressed 0
251
+ set compressOverhead 0
252
+ set depth 0
253
+ set sql { SELECT name, tbl_name FROM sqlite_schema WHERE rootpage>0 }
254
+ foreach {name tblname} [concat sqlite_schema sqlite_schema [db eval $sql]] {
255
+
256
+ set is_index [expr {$name!=$tblname}]
257
+ set is_without_rowid [is_without_rowid $name]
258
+ db eval {
259
+ SELECT
260
+ sum(ncell) AS nentry,
261
+ sum((pagetype=='leaf')*ncell) AS leaf_entries,
262
+ sum(payload) AS payload,
263
+ sum((pagetype=='overflow') * payload) AS ovfl_payload,
264
+ sum(path LIKE '%+000000') AS ovfl_cnt,
265
+ max(mx_payload) AS mx_payload,
266
+ sum(pagetype=='internal') AS int_pages,
267
+ sum(pagetype=='leaf') AS leaf_pages,
268
+ sum(pagetype=='overflow') AS ovfl_pages,
269
+ sum((pagetype=='internal') * unused) AS int_unused,
270
+ sum((pagetype=='leaf') * unused) AS leaf_unused,
271
+ sum((pagetype=='overflow') * unused) AS ovfl_unused,
272
+ sum(pgsize) AS compressed_size,
273
+ max((length(CASE WHEN path LIKE '%+%' THEN '' ELSE path END)+3)/4)
274
+ AS depth
275
+ FROM temp.dbstat WHERE name = $name
276
+ } break
277
+
278
+ set total_pages [expr {$leaf_pages+$int_pages+$ovfl_pages}]
279
+ set storage [expr {$total_pages*$pageSize}]
280
+ if {!$isCompressed && $storage>$compressed_size} {
281
+ set isCompressed 1
282
+ set compressOverhead 14
283
+ }
284
+
285
+ # Column 'gap_cnt' is set to the number of non-contiguous entries in the
286
+ # list of pages visited if the b-tree structure is traversed in a top-down
287
+ # fashion (each node visited before its child-tree is passed). Any overflow
288
+ # chains present are traversed from start to finish before any child-tree
289
+ # is.
290
+ #
291
+ set gap_cnt 0
292
+ set prev 0
293
+ db eval {
294
+ SELECT pageno, pagetype FROM temp.dbstat
295
+ WHERE name=$name
296
+ ORDER BY pageno
297
+ } {
298
+ if {$prev>0 && $pagetype=="leaf" && $pageno!=$prev+1} {
299
+ incr gap_cnt
300
+ }
301
+ set prev $pageno
302
+ }
303
+ mem eval {
304
+ INSERT INTO space_used VALUES(
305
+ $name,
306
+ $tblname,
307
+ $is_index,
308
+ $is_without_rowid,
309
+ $nentry,
310
+ $leaf_entries,
311
+ $depth,
312
+ $payload,
313
+ $ovfl_payload,
314
+ $ovfl_cnt,
315
+ $mx_payload,
316
+ $int_pages,
317
+ $leaf_pages,
318
+ $ovfl_pages,
319
+ $int_unused,
320
+ $leaf_unused,
321
+ $ovfl_unused,
322
+ $gap_cnt,
323
+ $compressed_size
324
+ );
325
+ }
326
+ }
327
+
328
+ proc integerify {real} {
329
+ if {[string is double -strict $real]} {
330
+ return [expr {wide($real)}]
331
+ } else {
332
+ return 0
333
+ }
334
+ }
335
+ mem function int integerify
336
+
337
+ # Quote a string for use in an SQL query. Examples:
338
+ #
339
+ # [quote {hello world}] == {'hello world'}
340
+ # [quote {hello world's}] == {'hello world''s'}
341
+ #
342
+ proc quote {txt} {
343
+ return [string map {' ''} $txt]
344
+ }
345
+
346
+ # Output a title line
347
+ #
348
+ proc titleline {title} {
349
+ if {$title==""} {
350
+ puts [string repeat * 79]
351
+ } else {
352
+ set len [string length $title]
353
+ set stars [string repeat * [expr {79-$len-5}]]
354
+ puts "*** $title $stars"
355
+ }
356
+ }
357
+
358
+ # Generate a single line of output in the statistics section of the
359
+ # report.
360
+ #
361
+ proc statline {title value {extra {}}} {
362
+ set len [string length $title]
363
+ set dots [string repeat . [expr {50-$len}]]
364
+ set len [string length $value]
365
+ set sp2 [string range { } $len end]
366
+ if {$extra ne ""} {
367
+ set extra " $extra"
368
+ }
369
+ puts "$title$dots $value$sp2$extra"
370
+ }
371
+
372
+ # Generate a formatted percentage value for $num/$denom
373
+ #
374
+ proc percent {num denom {of {}}} {
375
+ if {$denom==0.0} {return ""}
376
+ set v [expr {$num*100.0/$denom}]
377
+ set of {}
378
+ if {$v==100.0 || $v<0.001 || ($v>1.0 && $v<99.0)} {
379
+ return [format {%5.1f%% %s} $v $of]
380
+ } elseif {$v<0.1 || $v>99.9} {
381
+ return [format {%7.3f%% %s} $v $of]
382
+ } else {
383
+ return [format {%6.2f%% %s} $v $of]
384
+ }
385
+ }
386
+
387
+ proc divide {num denom} {
388
+ if {$denom==0} {return 0.0}
389
+ return [format %.2f [expr {double($num)/double($denom)}]]
390
+ }
391
+
392
+ # Generate a subreport that covers some subset of the database.
393
+ # the $where clause determines which subset to analyze.
394
+ #
395
+ proc subreport {title where showFrag} {
396
+ global pageSize file_pgcnt compressOverhead
397
+
398
+ # Query the in-memory database for the sum of various statistics
399
+ # for the subset of tables/indices identified by the WHERE clause in
400
+ # $where. Note that even if the WHERE clause matches no rows, the
401
+ # following query returns exactly one row (because it is an aggregate).
402
+ #
403
+ # The results of the query are stored directly by SQLite into local
404
+ # variables (i.e. $nentry, $payload etc.).
405
+ #
406
+ mem eval "
407
+ SELECT
408
+ int(sum(
409
+ CASE WHEN (is_without_rowid OR is_index) THEN nentry
410
+ ELSE leaf_entries
411
+ END
412
+ )) AS nentry,
413
+ int(sum(payload)) AS payload,
414
+ int(sum(ovfl_payload)) AS ovfl_payload,
415
+ max(mx_payload) AS mx_payload,
416
+ int(sum(ovfl_cnt)) as ovfl_cnt,
417
+ int(sum(leaf_pages)) AS leaf_pages,
418
+ int(sum(int_pages)) AS int_pages,
419
+ int(sum(ovfl_pages)) AS ovfl_pages,
420
+ int(sum(leaf_unused)) AS leaf_unused,
421
+ int(sum(int_unused)) AS int_unused,
422
+ int(sum(ovfl_unused)) AS ovfl_unused,
423
+ int(sum(gap_cnt)) AS gap_cnt,
424
+ int(sum(compressed_size)) AS compressed_size,
425
+ int(max(depth)) AS depth,
426
+ count(*) AS cnt
427
+ FROM space_used WHERE $where" {} {}
428
+
429
+ # Output the sub-report title, nicely decorated with * characters.
430
+ #
431
+ puts ""
432
+ titleline $title
433
+ puts ""
434
+
435
+ # Calculate statistics and store the results in TCL variables, as follows:
436
+ #
437
+ # total_pages: Database pages consumed.
438
+ # total_pages_percent: Pages consumed as a percentage of the file.
439
+ # storage: Bytes consumed.
440
+ # payload_percent: Payload bytes used as a percentage of $storage.
441
+ # total_unused: Unused bytes on pages.
442
+ # avg_payload: Average payload per btree entry.
443
+ # avg_fanout: Average fanout for internal pages.
444
+ # avg_unused: Average unused bytes per btree entry.
445
+ # avg_meta: Average metadata overhead per entry.
446
+ # ovfl_cnt_percent: Percentage of btree entries that use overflow pages.
447
+ #
448
+ set total_pages [expr {$leaf_pages+$int_pages+$ovfl_pages}]
449
+ set total_pages_percent [percent $total_pages $file_pgcnt]
450
+ set storage [expr {$total_pages*$pageSize}]
451
+ set payload_percent [percent $payload $storage {of storage consumed}]
452
+ set total_unused [expr {$ovfl_unused+$int_unused+$leaf_unused}]
453
+ set avg_payload [divide $payload $nentry]
454
+ set avg_unused [divide $total_unused $nentry]
455
+ set total_meta [expr {$storage - $payload - $total_unused}]
456
+ set total_meta [expr {$total_meta + 4*($ovfl_pages - $ovfl_cnt)}]
457
+ set meta_percent [percent $total_meta $storage {of metadata}]
458
+ set avg_meta [divide $total_meta $nentry]
459
+ if {$int_pages>0} {
460
+ # TODO: Is this formula correct?
461
+ set nTab [mem eval "
462
+ SELECT count(*) FROM (
463
+ SELECT DISTINCT tblname FROM space_used WHERE $where AND is_index=0
464
+ )
465
+ "]
466
+ set avg_fanout [mem eval "
467
+ SELECT (sum(leaf_pages+int_pages)-$nTab)/sum(int_pages) FROM space_used
468
+ WHERE $where
469
+ "]
470
+ set avg_fanout [format %.2f $avg_fanout]
471
+ }
472
+ set ovfl_cnt_percent [percent $ovfl_cnt $nentry {of all entries}]
473
+
474
+ # Print out the sub-report statistics.
475
+ #
476
+ statline {Percentage of total database} $total_pages_percent
477
+ statline {Number of entries} $nentry
478
+ statline {Bytes of storage consumed} $storage
479
+ if {$compressed_size!=$storage} {
480
+ set compressed_size [expr {$compressed_size+$compressOverhead*$total_pages}]
481
+ set pct [expr {$compressed_size*100.0/$storage}]
482
+ set pct [format {%5.1f%%} $pct]
483
+ statline {Bytes used after compression} $compressed_size $pct
484
+ }
485
+ statline {Bytes of payload} $payload $payload_percent
486
+ statline {Bytes of metadata} $total_meta $meta_percent
487
+ if {$cnt==1} {statline {B-tree depth} $depth}
488
+ statline {Average payload per entry} $avg_payload
489
+ statline {Average unused bytes per entry} $avg_unused
490
+ statline {Average metadata per entry} $avg_meta
491
+ if {[info exists avg_fanout]} {
492
+ statline {Average fanout} $avg_fanout
493
+ }
494
+ if {$showFrag && $total_pages>1} {
495
+ set fragmentation [percent $gap_cnt [expr {$total_pages-1}]]
496
+ statline {Non-sequential pages} $gap_cnt $fragmentation
497
+ }
498
+ statline {Maximum payload per entry} $mx_payload
499
+ statline {Entries that use overflow} $ovfl_cnt $ovfl_cnt_percent
500
+ if {$int_pages>0} {
501
+ statline {Index pages used} $int_pages
502
+ }
503
+ statline {Primary pages used} $leaf_pages
504
+ statline {Overflow pages used} $ovfl_pages
505
+ statline {Total pages used} $total_pages
506
+ if {$int_unused>0} {
507
+ set int_unused_percent [
508
+ percent $int_unused [expr {$int_pages*$pageSize}] {of index space}]
509
+ statline "Unused bytes on index pages" $int_unused $int_unused_percent
510
+ }
511
+ statline "Unused bytes on primary pages" $leaf_unused [
512
+ percent $leaf_unused [expr {$leaf_pages*$pageSize}] {of primary space}]
513
+ statline "Unused bytes on overflow pages" $ovfl_unused [
514
+ percent $ovfl_unused [expr {$ovfl_pages*$pageSize}] {of overflow space}]
515
+ statline "Unused bytes on all pages" $total_unused [
516
+ percent $total_unused $storage {of all space}]
517
+ return 1
518
+ }
519
+
520
+ # Calculate the overhead in pages caused by auto-vacuum.
521
+ #
522
+ # This procedure calculates and returns the number of pages used by the
523
+ # auto-vacuum 'pointer-map'. If the database does not support auto-vacuum,
524
+ # then 0 is returned. The two arguments are the size of the database file in
525
+ # pages and the page size used by the database (in bytes).
526
+ proc autovacuum_overhead {filePages pageSize} {
527
+
528
+ # Set $autovacuum to non-zero for databases that support auto-vacuum.
529
+ set autovacuum [db one {PRAGMA auto_vacuum}]
530
+
531
+ # If the database is not an auto-vacuum database or the file consists
532
+ # of one page only then there is no overhead for auto-vacuum. Return zero.
533
+ if {0==$autovacuum || $filePages==1} {
534
+ return 0
535
+ }
536
+
537
+ # The number of entries on each pointer map page. The layout of the
538
+ # database file is one pointer-map page, followed by $ptrsPerPage other
539
+ # pages, followed by a pointer-map page etc. The first pointer-map page
540
+ # is the second page of the file overall.
541
+ set ptrsPerPage [expr {double($pageSize/5)}]
542
+
543
+ # Return the number of pointer map pages in the database.
544
+ return [expr {wide(ceil(($filePages-1.0)/($ptrsPerPage+1.0)))}]
545
+ }
546
+
547
+
548
+ # Calculate the summary statistics for the database and store the results
549
+ # in TCL variables. They are output below. Variables are as follows:
550
+ #
551
+ # pageSize: Size of each page in bytes.
552
+ # file_bytes: File size in bytes.
553
+ # file_pgcnt: Number of pages in the file.
554
+ # file_pgcnt2: Number of pages in the file (calculated).
555
+ # av_pgcnt: Pages consumed by the auto-vacuum pointer-map.
556
+ # av_percent: Percentage of the file consumed by auto-vacuum pointer-map.
557
+ # inuse_pgcnt: Data pages in the file.
558
+ # inuse_percent: Percentage of pages used to store data.
559
+ # free_pgcnt: Free pages calculated as (<total pages> - <in-use pages>)
560
+ # free_pgcnt2: Free pages in the file according to the file header.
561
+ # free_percent: Percentage of file consumed by free pages (calculated).
562
+ # free_percent2: Percentage of file consumed by free pages (header).
563
+ # ntable: Number of tables in the db.
564
+ # nindex: Number of indices in the db.
565
+ # nautoindex: Number of indices created automatically.
566
+ # nmanindex: Number of indices created manually.
567
+ # user_payload: Number of bytes of payload in table btrees
568
+ # (not including sqlite_schema)
569
+ # user_percent: $user_payload as a percentage of total file size.
570
+
571
+ ### The following, setting $file_bytes based on the actual size of the file
572
+ ### on disk, causes this tool to choke on zipvfs databases. So set it based
573
+ ### on the return of [PRAGMA page_count] instead.
574
+ if 0 {
575
+ set file_bytes [file size $file_to_analyze]
576
+ set file_pgcnt [expr {$file_bytes/$pageSize}]
577
+ }
578
+ set file_pgcnt [db one {PRAGMA page_count}]
579
+ set file_bytes [expr {$file_pgcnt * $pageSize}]
580
+
581
+ set av_pgcnt [autovacuum_overhead $file_pgcnt $pageSize]
582
+ set av_percent [percent $av_pgcnt $file_pgcnt]
583
+
584
+ set sql {SELECT sum(leaf_pages+int_pages+ovfl_pages) FROM space_used}
585
+ set inuse_pgcnt [expr {wide([mem eval $sql])}]
586
+ set inuse_percent [percent $inuse_pgcnt $file_pgcnt]
587
+
588
+ set free_pgcnt [expr {$file_pgcnt-$inuse_pgcnt-$av_pgcnt}]
589
+ set free_percent [percent $free_pgcnt $file_pgcnt]
590
+ set free_pgcnt2 [db one {PRAGMA freelist_count}]
591
+ set free_percent2 [percent $free_pgcnt2 $file_pgcnt]
592
+
593
+ set file_pgcnt2 [expr {$inuse_pgcnt+$free_pgcnt2+$av_pgcnt}]
594
+
595
+ # Account for the lockbyte page
596
+ if {$file_pgcnt2*$pageSize>1073742335} {incr file_pgcnt2}
597
+
598
+ set ntable [db eval {SELECT count(*)+1 FROM sqlite_schema WHERE type='table'}]
599
+ set nindex [db eval {SELECT count(*) FROM sqlite_schema WHERE type='index'}]
600
+ set sql {SELECT count(*) FROM sqlite_schema WHERE name LIKE 'sqlite_autoindex%'}
601
+ set nautoindex [db eval $sql]
602
+ set nmanindex [expr {$nindex-$nautoindex}]
603
+
604
+ # set total_payload [mem eval "SELECT sum(payload) FROM space_used"]
605
+ set user_payload [mem one {SELECT int(sum(payload)) FROM space_used
606
+ WHERE NOT is_index AND name NOT LIKE 'sqlite_schema'}]
607
+ set user_percent [percent $user_payload $file_bytes]
608
+
609
+ # Output the summary statistics calculated above.
610
+ #
611
+ puts "/** Disk-Space Utilization Report For $root_filename"
612
+ puts ""
613
+ statline {Page size in bytes} $pageSize
614
+ statline {Pages in the whole file (measured)} $file_pgcnt
615
+ statline {Pages in the whole file (calculated)} $file_pgcnt2
616
+ statline {Pages that store data} $inuse_pgcnt $inuse_percent
617
+ statline {Pages on the freelist (per header)} $free_pgcnt2 $free_percent2
618
+ statline {Pages on the freelist (calculated)} $free_pgcnt $free_percent
619
+ statline {Pages of auto-vacuum overhead} $av_pgcnt $av_percent
620
+ statline {Number of tables in the database} $ntable
621
+ statline {Number of indices} $nindex
622
+ statline {Number of defined indices} $nmanindex
623
+ statline {Number of implied indices} $nautoindex
624
+ if {$isCompressed} {
625
+ statline {Size of uncompressed content in bytes} $file_bytes
626
+ set efficiency [percent $true_file_size $file_bytes]
627
+ statline {Size of compressed file on disk} $true_file_size $efficiency
628
+ } else {
629
+ statline {Size of the file in bytes} $file_bytes
630
+ }
631
+ statline {Bytes of user payload stored} $user_payload $user_percent
632
+
633
+ # Output table rankings
634
+ #
635
+ puts ""
636
+ titleline "Page counts for all tables with their indices"
637
+ puts ""
638
+ mem eval {SELECT tblname, count(*) AS cnt,
639
+ int(sum(int_pages+leaf_pages+ovfl_pages)) AS size
640
+ FROM space_used GROUP BY tblname ORDER BY size+0 DESC, tblname} {} {
641
+ statline [string toupper $tblname] $size [percent $size $file_pgcnt]
642
+ }
643
+ puts ""
644
+ titleline "Page counts for all tables and indices separately"
645
+ puts ""
646
+ mem eval {
647
+ SELECT
648
+ upper(name) AS nm,
649
+ int(int_pages+leaf_pages+ovfl_pages) AS size
650
+ FROM space_used
651
+ ORDER BY size+0 DESC, name} {} {
652
+ statline $nm $size [percent $size $file_pgcnt]
653
+ }
654
+ if {$isCompressed} {
655
+ puts ""
656
+ titleline "Bytes of disk space used after compression"
657
+ puts ""
658
+ set csum 0
659
+ mem eval {SELECT tblname,
660
+ int(sum(compressed_size)) +
661
+ $compressOverhead*sum(int_pages+leaf_pages+ovfl_pages)
662
+ AS csize
663
+ FROM space_used GROUP BY tblname ORDER BY csize+0 DESC, tblname} {} {
664
+ incr csum $csize
665
+ statline [string toupper $tblname] $csize [percent $csize $true_file_size]
666
+ }
667
+ set overhead [expr {$true_file_size - $csum}]
668
+ if {$overhead>0} {
669
+ statline {Header and free space} $overhead [percent $overhead $true_file_size]
670
+ }
671
+ }
672
+
673
+ # Output subreports
674
+ #
675
+ if {$nindex>0} {
676
+ subreport {All tables and indices} 1 0
677
+ }
678
+ subreport {All tables} {NOT is_index} 0
679
+ if {$nindex>0} {
680
+ subreport {All indices} {is_index} 0
681
+ }
682
+ foreach tbl [mem eval {SELECT DISTINCT tblname name FROM space_used
683
+ ORDER BY name}] {
684
+ set qn [quote $tbl]
685
+ set name [string toupper $tbl]
686
+ set n [mem eval {SELECT count(*) FROM space_used WHERE tblname=$tbl}]
687
+ if {$n>1} {
688
+ set idxlist [mem eval "SELECT name FROM space_used
689
+ WHERE tblname='$qn' AND is_index
690
+ ORDER BY 1"]
691
+ subreport "Table $name and all its indices" "tblname='$qn'" 0
692
+ subreport "Table $name w/o any indices" "name='$qn'" 1
693
+ if {[llength $idxlist]>1} {
694
+ subreport "Indices of table $name" "tblname='$qn' AND is_index" 0
695
+ }
696
+ foreach idx $idxlist {
697
+ set qidx [quote $idx]
698
+ subreport "Index [string toupper $idx] of table $name" "name='$qidx'" 1
699
+ }
700
+ } else {
701
+ subreport "Table $name" "name='$qn'" 1
702
+ }
703
+ }
704
+
705
+ # Output instructions on what the numbers above mean.
706
+ #
707
+ puts ""
708
+ titleline Definitions
709
+ puts {
710
+ Page size in bytes
711
+
712
+ The number of bytes in a single page of the database file.
713
+ Usually 1024.
714
+
715
+ Number of pages in the whole file
716
+ }
717
+ puts " The number of $pageSize-byte pages that go into forming the complete
718
+ database"
719
+ puts {
720
+ Pages that store data
721
+
722
+ The number of pages that store data, either as primary B*Tree pages or
723
+ as overflow pages. The number at the right is the data pages divided by
724
+ the total number of pages in the file.
725
+
726
+ Pages on the freelist
727
+
728
+ The number of pages that are not currently in use but are reserved for
729
+ future use. The percentage at the right is the number of freelist pages
730
+ divided by the total number of pages in the file.
731
+
732
+ Pages of auto-vacuum overhead
733
+
734
+ The number of pages that store data used by the database to facilitate
735
+ auto-vacuum. This is zero for databases that do not support auto-vacuum.
736
+
737
+ Number of tables in the database
738
+
739
+ The number of tables in the database, including the SQLITE_SCHEMA table
740
+ used to store schema information.
741
+
742
+ Number of indices
743
+
744
+ The total number of indices in the database.
745
+
746
+ Number of defined indices
747
+
748
+ The number of indices created using an explicit CREATE INDEX statement.
749
+
750
+ Number of implied indices
751
+
752
+ The number of indices used to implement PRIMARY KEY or UNIQUE constraints
753
+ on tables.
754
+
755
+ Size of the file in bytes
756
+
757
+ The total amount of disk space used by the entire database files.
758
+
759
+ Bytes of user payload stored
760
+
761
+ The total number of bytes of user payload stored in the database. The
762
+ schema information in the SQLITE_SCHEMA table is not counted when
763
+ computing this number. The percentage at the right shows the payload
764
+ divided by the total file size.
765
+
766
+ Percentage of total database
767
+
768
+ The amount of the complete database file that is devoted to storing
769
+ information described by this category.
770
+
771
+ Number of entries
772
+
773
+ The total number of B-Tree key/value pairs stored under this category.
774
+
775
+ Bytes of storage consumed
776
+
777
+ The total amount of disk space required to store all B-Tree entries
778
+ under this category. The is the total number of pages used times
779
+ the pages size.
780
+
781
+ Bytes of payload
782
+
783
+ The amount of payload stored under this category. Payload is the data
784
+ part of table entries and the key part of index entries. The percentage
785
+ at the right is the bytes of payload divided by the bytes of storage
786
+ consumed.
787
+
788
+ Bytes of metadata
789
+
790
+ The amount of formatting and structural information stored in the
791
+ table or index. Metadata includes the btree page header, the cell pointer
792
+ array, the size field for each cell, the left child pointer or non-leaf
793
+ cells, the overflow pointers for overflow cells, and the rowid value for
794
+ rowid table cells. In other words, metadata is everything that is neither
795
+ unused space nor content. The record header in the payload is counted as
796
+ content, not metadata.
797
+
798
+ Average payload per entry
799
+
800
+ The average amount of payload on each entry. This is just the bytes of
801
+ payload divided by the number of entries.
802
+
803
+ Average unused bytes per entry
804
+
805
+ The average amount of free space remaining on all pages under this
806
+ category on a per-entry basis. This is the number of unused bytes on
807
+ all pages divided by the number of entries.
808
+
809
+ Non-sequential pages
810
+
811
+ The number of pages in the table or index that are out of sequence.
812
+ Many filesystems are optimized for sequential file access so a small
813
+ number of non-sequential pages might result in faster queries,
814
+ especially for larger database files that do not fit in the disk cache.
815
+ Note that after running VACUUM, the root page of each table or index is
816
+ at the beginning of the database file and all other pages are in a
817
+ separate part of the database file, resulting in a single non-
818
+ sequential page.
819
+
820
+ Maximum payload per entry
821
+
822
+ The largest payload size of any entry.
823
+
824
+ Entries that use overflow
825
+
826
+ The number of entries that user one or more overflow pages.
827
+
828
+ Total pages used
829
+
830
+ This is the number of pages used to hold all information in the current
831
+ category. This is the sum of index, primary, and overflow pages.
832
+
833
+ Index pages used
834
+
835
+ This is the number of pages in a table B-tree that hold only key (rowid)
836
+ information and no data.
837
+
838
+ Primary pages used
839
+
840
+ This is the number of B-tree pages that hold both key and data.
841
+
842
+ Overflow pages used
843
+
844
+ The total number of overflow pages used for this category.
845
+
846
+ Unused bytes on index pages
847
+
848
+ The total number of bytes of unused space on all index pages. The
849
+ percentage at the right is the number of unused bytes divided by the
850
+ total number of bytes on index pages.
851
+
852
+ Unused bytes on primary pages
853
+
854
+ The total number of bytes of unused space on all primary pages. The
855
+ percentage at the right is the number of unused bytes divided by the
856
+ total number of bytes on primary pages.
857
+
858
+ Unused bytes on overflow pages
859
+
860
+ The total number of bytes of unused space on all overflow pages. The
861
+ percentage at the right is the number of unused bytes divided by the
862
+ total number of bytes on overflow pages.
863
+
864
+ Unused bytes on all pages
865
+
866
+ The total number of bytes of unused space on all primary and overflow
867
+ pages. The percentage at the right is the number of unused bytes
868
+ divided by the total number of bytes.
869
+ }
870
+
871
+ # Output a dump of the in-memory database. This can be used for more
872
+ # complex offline analysis.
873
+ #
874
+ titleline {}
875
+ puts "The entire text of this report can be sourced into any SQL database"
876
+ puts "engine for further analysis. All of the text above is an SQL comment."
877
+ puts "The data used to generate this report follows:"
878
+ puts "*/"
879
+ puts "BEGIN;"
880
+ puts $tabledef
881
+ unset -nocomplain x
882
+ mem eval {SELECT * FROM space_used} x {
883
+ puts -nonewline "INSERT INTO space_used VALUES"
884
+ set sep (
885
+ foreach col $x(*) {
886
+ set v $x($col)
887
+ if {$v=="" || ![string is double $v]} {set v '[quote $v]'}
888
+ puts -nonewline $sep$v
889
+ set sep ,
890
+ }
891
+ puts ");"
892
+ }
893
+ puts "COMMIT;"
894
+
895
+ } err]} {
896
+ puts "ERROR: $err"
897
+ puts $errorInfo
898
+ exit 1
899
+ }
miniconda3/bin/tabs ADDED
Binary file (22.4 kB). View file
 
miniconda3/bin/tclsh ADDED
Binary file (16 kB). View file
 
miniconda3/bin/tclsh8.6 ADDED
Binary file (16 kB). View file
 
miniconda3/bin/testsolv ADDED
Binary file (28.8 kB). View file
 
miniconda3/bin/tic ADDED
Binary file (92.2 kB). View file
 
miniconda3/bin/toe ADDED
Binary file (22.4 kB). View file
 
miniconda3/bin/tput ADDED
Binary file (26.6 kB). View file
 
miniconda3/bin/tqdm ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/mnt/bn/bohanzhainas1/jiashuo/miniconda3/bin/python
2
+
3
+ # -*- coding: utf-8 -*-
4
+ import re
5
+ import sys
6
+
7
+ from tqdm.cli import main
8
+
9
+ if __name__ == '__main__':
10
+ sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
11
+ sys.exit(main())
miniconda3/bin/tset ADDED
Binary file (30.7 kB). View file
 
miniconda3/bin/typer ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/mnt/bn/bohanzhainas1/jiashuo/miniconda3/bin/python
2
+
3
+ # -*- coding: utf-8 -*-
4
+ import re
5
+ import sys
6
+
7
+ from typer.cli import main
8
+
9
+ if __name__ == '__main__':
10
+ sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
11
+ sys.exit(main())
miniconda3/bin/wheel ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/mnt/bn/bohanzhainas1/jiashuo/miniconda3/bin/python
2
+
3
+ # -*- coding: utf-8 -*-
4
+ import re
5
+ import sys
6
+
7
+ from wheel._commands import main
8
+
9
+ if __name__ == '__main__':
10
+ sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
11
+ sys.exit(main())
miniconda3/bin/wish ADDED
Binary file (16.1 kB). View file
 
miniconda3/bin/wish8.6 ADDED
Binary file (16.1 kB). View file
 
miniconda3/bin/xml2-config ADDED
@@ -0,0 +1,108 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #! /bin/sh
2
+
3
+ prefix=/mnt/bn/bohanzhainas1/jiashuo/miniconda3
4
+ exec_prefix=${prefix}
5
+ includedir=${prefix}/include
6
+ libdir=${exec_prefix}/lib
7
+ cflags=
8
+ libs=
9
+
10
+ usage()
11
+ {
12
+ cat <<EOF
13
+ Usage: xml2-config [OPTION]
14
+
15
+ Known values for OPTION are:
16
+
17
+ --prefix=DIR change libxml prefix [default $prefix]
18
+ --exec-prefix=DIR change libxml exec prefix [default $exec_prefix]
19
+ --libs print library linking information
20
+ add --dynamic to print only shared libraries
21
+ --cflags print pre-processor and compiler flags
22
+ --modules module support enabled
23
+ --help display this help and exit
24
+ --version output version information
25
+ EOF
26
+
27
+ exit $1
28
+ }
29
+
30
+ if test $# -eq 0; then
31
+ usage 1
32
+ fi
33
+
34
+ while test $# -gt 0; do
35
+ case "$1" in
36
+ -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
37
+ *) optarg= ;;
38
+ esac
39
+
40
+ case "$1" in
41
+ --prefix=*)
42
+ prefix=$optarg
43
+ includedir=$prefix/include
44
+ libdir=$prefix/lib
45
+ ;;
46
+
47
+ --prefix)
48
+ echo $prefix
49
+ ;;
50
+
51
+ --exec-prefix=*)
52
+ exec_prefix=$optarg
53
+ libdir=$exec_prefix/lib
54
+ ;;
55
+
56
+ --exec-prefix)
57
+ echo $exec_prefix
58
+ ;;
59
+
60
+ --version)
61
+ echo 2.13.9
62
+ exit 0
63
+ ;;
64
+
65
+ --help)
66
+ usage 0
67
+ ;;
68
+
69
+ --cflags)
70
+ cflags="-I${includedir}/libxml2 -I/mnt/bn/bohanzhainas1/jiashuo/miniconda3/include "
71
+ ;;
72
+
73
+ --libtool-libs)
74
+ if [ -r ${libdir}/libxml2.la ]
75
+ then
76
+ echo ${libdir}/libxml2.la
77
+ fi
78
+ ;;
79
+
80
+ --modules)
81
+ echo 1
82
+ ;;
83
+
84
+ --libs)
85
+ if [ "$2" = "--dynamic" ]; then
86
+ shift
87
+ libs="-lxml2 "
88
+ else
89
+ libs="-lxml2 -L/mnt/bn/bohanzhainas1/jiashuo/miniconda3/lib -lz -L/mnt/bn/bohanzhainas1/jiashuo/miniconda3/lib -llzma -L/mnt/bn/bohanzhainas1/jiashuo/miniconda3/lib -licui18n -licuuc -licudata -L/mnt/bn/bohanzhainas1/jiashuo/miniconda3/lib -lm -ldl "
90
+ fi
91
+
92
+ if [ "-L${libdir}" != "-L/usr/lib" -a "-L${libdir}" != "-L/usr/lib64" ]; then
93
+ libs="-L${libdir} $libs"
94
+ fi
95
+ ;;
96
+
97
+ *)
98
+ usage 1
99
+ ;;
100
+ esac
101
+ shift
102
+ done
103
+
104
+ if test -n "$cflags$libs"; then
105
+ echo $cflags $libs
106
+ fi
107
+
108
+ exit 0
miniconda3/bin/xmlcatalog ADDED
Binary file (27.5 kB). View file
 
miniconda3/bin/xmllint ADDED
Binary file (84.6 kB). View file
 
miniconda3/bin/xmlwf ADDED
Binary file (47.1 kB). View file
 
miniconda3/bin/xzcmp ADDED
@@ -0,0 +1,224 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/sh
2
+ # SPDX-License-Identifier: GPL-2.0-or-later
3
+
4
+ # Copyright (C) 1998, 2002, 2006, 2007 Free Software Foundation
5
+ # Copyright (C) 1993 Jean-loup Gailly
6
+
7
+ # Modified for XZ Utils by Andrew Dudman and Lasse Collin.
8
+
9
+ # This program is free software; you can redistribute it and/or modify
10
+ # it under the terms of the GNU General Public License as published by
11
+ # the Free Software Foundation; either version 2 of the License, or
12
+ # (at your option) any later version.
13
+
14
+ # This program is distributed in the hope that it will be useful,
15
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
16
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
+ # GNU General Public License for more details.
18
+
19
+ # shellcheck shell=sh disable=SC1003,SC2016
20
+
21
+
22
+ #SET_PATH - This line is a placeholder to ease patching this script.
23
+
24
+ # Instead of unsetting XZ_OPT, just make sure that xz will use file format
25
+ # autodetection. This way memory usage limit and thread limit can be
26
+ # specified via XZ_OPT. With gzip, bzip2, and lzop it's OK to just unset the
27
+ # environment variables.
28
+ xz='xz --format=auto'
29
+ unset GZIP BZIP BZIP2 LZOP
30
+
31
+ case ${0##*/} in
32
+ *cmp*) prog=xzcmp; cmp=${CMP:-cmp};;
33
+ *) prog=xzdiff; cmp=${DIFF:-diff};;
34
+ esac
35
+
36
+ version="$prog (XZ Utils) 5.8.2"
37
+
38
+ usage="Usage: ${0##*/} [OPTION]... FILE1 [FILE2]
39
+ Compare FILE1 to FILE2, using their uncompressed contents if they are
40
+ compressed. If FILE2 is omitted, then the files compared are FILE1 and
41
+ FILE1 from which the compression format suffix has been stripped.
42
+
43
+ Do comparisons like '$cmp' does. OPTIONs are the same as for '$cmp'.
44
+
45
+ Report bugs to <xz@tukaani.org>."
46
+
47
+ # sed script to escape all ' for the shell, and then (to handle trailing
48
+ # newlines correctly) turn trailing X on last line into '.
49
+ escape='
50
+ s/'\''/'\''\\'\'''\''/g
51
+ $s/X$/'\''/
52
+ '
53
+
54
+ while :; do
55
+ case $1 in
56
+ --h*) printf '%s\n' "$usage" || exit 2; exit;;
57
+ --v*) printf '%s\n' "$version" || exit 2; exit;;
58
+ --) shift; break;;
59
+ -*\'*) cmp="$cmp '"`printf '%sX\n' "$1" | sed "$escape"`;;
60
+ -?*) cmp="$cmp '$1'";;
61
+ *) break;;
62
+ esac
63
+ shift
64
+ done
65
+ cmp="$cmp --"
66
+
67
+ for file; do
68
+ test "X$file" = X- || true < "$file" || exit 2
69
+ done
70
+
71
+ # xz needs -qQ to ignore warnings like unsupported check type.
72
+ xz1="$xz -qQ"
73
+ xz2="$xz -qQ"
74
+ xz_status=0
75
+ exec 3>&1
76
+
77
+ if test $# -eq 1; then
78
+ case $1 in
79
+ *[-.]xz | *[-.]lzma | *[-.]lz | *.t[lx]z)
80
+ ;;
81
+ *[-.]bz2 | *.tbz | *.tbz2)
82
+ xz1=bzip2;;
83
+ *[-.][zZ] | *_z | *[-.]gz | *.t[ag]z)
84
+ xz1=gzip;;
85
+ *[-.]lzo | *.tzo)
86
+ xz1=lzop;;
87
+ *[-.]zst | *.tzst)
88
+ xz1='zstd -q';;
89
+ *[-.]lz4)
90
+ xz1=lz4;;
91
+ *)
92
+ printf '%s\n' "$0: $1: Unknown compressed file name suffix" >&2
93
+ exit 2;;
94
+ esac
95
+ # The FILE variable is used with eval, and shellcheck doesn't see that.
96
+ # shellcheck disable=SC2034
97
+ case $1 in
98
+ *[-.][zZ] | *_z | *[-.][gx]z | *[-.]bz2 | *[-.]lzma | *[-.]lz | *[-.]lzo | *[-.]zst | *[-.]lz4)
99
+ FILE=`expr "X$1" : 'X\(.*\)[-.][abglmostxzZ24]*$'`;;
100
+ *.t[abglx]z)
101
+ FILE=`expr "X$1" : 'X\(.*[-.]t\)[abglx]z$'`ar;;
102
+ *.tbz2)
103
+ FILE=`expr "X$1" : 'X\(.*[-.]t\)bz2$'`ar;;
104
+ *.tzo)
105
+ FILE=`expr "X$1" : 'X\(.*[-.]t\)zo$'`ar;;
106
+ *.tzst)
107
+ FILE=`expr "X$1" : 'X\(.*[-.]t\)zst$'`ar;;
108
+ esac
109
+ xz_status=$(
110
+ exec 4>&1
111
+ ($xz1 -cd -- "$1" 4>&-; echo $? >&4) 3>&- | eval "$cmp" - '"$FILE"' >&3
112
+ )
113
+ elif test $# -eq 2; then
114
+ case $1 in
115
+ *[-.]bz2 | *.tbz | *.tbz2) xz1=bzip2;;
116
+ *[-.][zZ] | *_z | *[-.]gz | *.t[ag]z) xz1=gzip;;
117
+ *[-.]lzo | *.tzo) xz1=lzop;;
118
+ *[-.]zst | *.tzst) xz1='zstd -q';;
119
+ *[-.]lz4) xz1=lz4;;
120
+ esac
121
+ case $2 in
122
+ *[-.]bz2 | *.tbz | *.tbz2) xz2=bzip2;;
123
+ *[-.][zZ] | *_z | *[-.]gz | *.t[ag]z) xz2=gzip;;
124
+ *[-.]lzo | *.tzo) xz2=lzop;;
125
+ *[-.]zst | *.tzst) xz2='zstd -q';;
126
+ *[-.]lz4) xz2=lz4;;
127
+ esac
128
+ case $1 in
129
+ *[-.][zZ] | *_z | *[-.][gx]z | *[-.]bz2 | *[-.]lzma | *[-.]lz | *.t[abglx]z | *.tbz2 | *[-.]lzo | *.tzo | *[-.]zst | *.tzst | *[-.]lz4 | -)
130
+ case "$2" in
131
+ *[-.][zZ] | *_z | *[-.][gx]z | *[-.]bz2 | *[-.]lzma | *[-.]lz | *.t[abglx]z | *.tbz2 | *[-.]lzo | *.tzo | *[-.]zst | *.tzst | *[-.]lz4 | -)
132
+ if test "$1$2" = --; then
133
+ xz_status=$(
134
+ exec 4>&1
135
+ ($xz1 -cdf - 4>&-; echo $? >&4) 3>&- |
136
+ eval "$cmp" - - >&3
137
+ )
138
+ elif # Reject Solaris 8's buggy /bin/bash 2.03.
139
+ echo X | (echo X | eval "$cmp" /dev/fd/5 - >/dev/null 2>&1) 5<&0; then
140
+ # NOTE: xz_status will contain two numbers.
141
+ xz_status=$(
142
+ exec 4>&1
143
+ ($xz1 -cdf -- "$1" 4>&-; echo $? >&4) 3>&- |
144
+ ( ($xz2 -cdf -- "$2" 4>&-; echo $? >&4) 3>&- 5<&- </dev/null |
145
+ eval "$cmp" /dev/fd/5 - >&3) 5<&0
146
+ )
147
+ else
148
+ F=`expr "/$2" : '.*/\(.*\)[-.][ablmotxz2]*$'` || F=$prog
149
+ tmp=
150
+ trap '
151
+ test -n "$tmp" && rm -rf "$tmp"
152
+ (exit 2); exit 2
153
+ ' HUP INT PIPE TERM 0
154
+ if type mktemp >/dev/null 2>&1; then
155
+ # Note that FreeBSD's mktemp isn't fully compatible with
156
+ # the implementations from mktemp.org and GNU coreutils.
157
+ # It is important that the -t argument is the last argument
158
+ # and that no "--" is used between -t and the template argument.
159
+ # This way this command works on all implementations.
160
+ tmp=`mktemp -d -t "$prog.XXXXXXXXXX"` || exit 2
161
+ else
162
+ # Fallback code if mktemp is missing. This isn't as
163
+ # robust as using mktemp since this doesn't try with
164
+ # different file names in case of a file name conflict.
165
+ #
166
+ # There's no need to save the original umask since
167
+ # we don't create any non-temp files. Note that using
168
+ # mkdir -m 0077 isn't secure since some mkdir implementations
169
+ # create the dir with the default umask and chmod the
170
+ # the dir afterwards.
171
+ umask 0077
172
+ mkdir -- "${TMPDIR-/tmp}/$prog.$$" || exit 2
173
+ tmp="${TMPDIR-/tmp}/$prog.$$"
174
+ fi
175
+ $xz2 -cdf -- "$2" > "$tmp/$F" || exit 2
176
+ xz_status=$(
177
+ exec 4>&1
178
+ ($xz1 -cdf -- "$1" 4>&-; echo $? >&4) 3>&- |
179
+ eval "$cmp" - '"$tmp/$F"' >&3
180
+ )
181
+ cmp_status=$?
182
+ rm -rf "$tmp" || xz_status=$?
183
+ trap - HUP INT PIPE TERM 0
184
+ (exit $cmp_status)
185
+ fi;;
186
+ *)
187
+ xz_status=$(
188
+ exec 4>&1
189
+ ($xz1 -cdf -- "$1" 4>&-; echo $? >&4) 3>&- |
190
+ eval "$cmp" - '"$2"' >&3
191
+ );;
192
+ esac;;
193
+ *)
194
+ case "$2" in
195
+ *[-.][zZ] | *_z | *[-.][gx]z | *[-.]bz2 | *[-.]lzma | *[-.]lz | *.t[abglx]z | *.tbz2 | *[-.]lzo | *.tzo | *[-.]zst | *.tzst | *[-.]lz4 | -)
196
+ xz_status=$(
197
+ exec 4>&1
198
+ ($xz2 -cdf -- "$2" 4>&-; echo $? >&4) 3>&- |
199
+ eval "$cmp" '"$1"' - >&3
200
+ );;
201
+ *)
202
+ eval "$cmp" '"$1"' '"$2"';;
203
+ esac;;
204
+ esac
205
+ else
206
+ printf '%s\n' "$0: Invalid number of operands; try '${0##*/} --help' for help" >&2
207
+ exit 2
208
+ fi
209
+
210
+ cmp_status=$?
211
+ for num in $xz_status ; do
212
+ # 0 from decompressor means successful decompression. SIGPIPE from
213
+ # decompressor is possible when diff or cmp exits before the whole file
214
+ # has been decompressed. In that case we want to retain the exit status
215
+ # from diff or cmp. Note that using "trap '' PIPE" is not possible
216
+ # because gzip changes its behavior (including exit status) if SIGPIPE
217
+ # is ignored.
218
+ test "$num" -eq 0 && continue
219
+ test "$num" -ge 128 \
220
+ && test "$(kill -l "$num" 2> /dev/null)" = "PIPE" \
221
+ && continue
222
+ exit 2
223
+ done
224
+ exit $cmp_status
miniconda3/bin/xzdec ADDED
Binary file (23.2 kB). View file
 
miniconda3/bin/xzdiff ADDED
@@ -0,0 +1,224 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/sh
2
+ # SPDX-License-Identifier: GPL-2.0-or-later
3
+
4
+ # Copyright (C) 1998, 2002, 2006, 2007 Free Software Foundation
5
+ # Copyright (C) 1993 Jean-loup Gailly
6
+
7
+ # Modified for XZ Utils by Andrew Dudman and Lasse Collin.
8
+
9
+ # This program is free software; you can redistribute it and/or modify
10
+ # it under the terms of the GNU General Public License as published by
11
+ # the Free Software Foundation; either version 2 of the License, or
12
+ # (at your option) any later version.
13
+
14
+ # This program is distributed in the hope that it will be useful,
15
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
16
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
+ # GNU General Public License for more details.
18
+
19
+ # shellcheck shell=sh disable=SC1003,SC2016
20
+
21
+
22
+ #SET_PATH - This line is a placeholder to ease patching this script.
23
+
24
+ # Instead of unsetting XZ_OPT, just make sure that xz will use file format
25
+ # autodetection. This way memory usage limit and thread limit can be
26
+ # specified via XZ_OPT. With gzip, bzip2, and lzop it's OK to just unset the
27
+ # environment variables.
28
+ xz='xz --format=auto'
29
+ unset GZIP BZIP BZIP2 LZOP
30
+
31
+ case ${0##*/} in
32
+ *cmp*) prog=xzcmp; cmp=${CMP:-cmp};;
33
+ *) prog=xzdiff; cmp=${DIFF:-diff};;
34
+ esac
35
+
36
+ version="$prog (XZ Utils) 5.8.2"
37
+
38
+ usage="Usage: ${0##*/} [OPTION]... FILE1 [FILE2]
39
+ Compare FILE1 to FILE2, using their uncompressed contents if they are
40
+ compressed. If FILE2 is omitted, then the files compared are FILE1 and
41
+ FILE1 from which the compression format suffix has been stripped.
42
+
43
+ Do comparisons like '$cmp' does. OPTIONs are the same as for '$cmp'.
44
+
45
+ Report bugs to <xz@tukaani.org>."
46
+
47
+ # sed script to escape all ' for the shell, and then (to handle trailing
48
+ # newlines correctly) turn trailing X on last line into '.
49
+ escape='
50
+ s/'\''/'\''\\'\'''\''/g
51
+ $s/X$/'\''/
52
+ '
53
+
54
+ while :; do
55
+ case $1 in
56
+ --h*) printf '%s\n' "$usage" || exit 2; exit;;
57
+ --v*) printf '%s\n' "$version" || exit 2; exit;;
58
+ --) shift; break;;
59
+ -*\'*) cmp="$cmp '"`printf '%sX\n' "$1" | sed "$escape"`;;
60
+ -?*) cmp="$cmp '$1'";;
61
+ *) break;;
62
+ esac
63
+ shift
64
+ done
65
+ cmp="$cmp --"
66
+
67
+ for file; do
68
+ test "X$file" = X- || true < "$file" || exit 2
69
+ done
70
+
71
+ # xz needs -qQ to ignore warnings like unsupported check type.
72
+ xz1="$xz -qQ"
73
+ xz2="$xz -qQ"
74
+ xz_status=0
75
+ exec 3>&1
76
+
77
+ if test $# -eq 1; then
78
+ case $1 in
79
+ *[-.]xz | *[-.]lzma | *[-.]lz | *.t[lx]z)
80
+ ;;
81
+ *[-.]bz2 | *.tbz | *.tbz2)
82
+ xz1=bzip2;;
83
+ *[-.][zZ] | *_z | *[-.]gz | *.t[ag]z)
84
+ xz1=gzip;;
85
+ *[-.]lzo | *.tzo)
86
+ xz1=lzop;;
87
+ *[-.]zst | *.tzst)
88
+ xz1='zstd -q';;
89
+ *[-.]lz4)
90
+ xz1=lz4;;
91
+ *)
92
+ printf '%s\n' "$0: $1: Unknown compressed file name suffix" >&2
93
+ exit 2;;
94
+ esac
95
+ # The FILE variable is used with eval, and shellcheck doesn't see that.
96
+ # shellcheck disable=SC2034
97
+ case $1 in
98
+ *[-.][zZ] | *_z | *[-.][gx]z | *[-.]bz2 | *[-.]lzma | *[-.]lz | *[-.]lzo | *[-.]zst | *[-.]lz4)
99
+ FILE=`expr "X$1" : 'X\(.*\)[-.][abglmostxzZ24]*$'`;;
100
+ *.t[abglx]z)
101
+ FILE=`expr "X$1" : 'X\(.*[-.]t\)[abglx]z$'`ar;;
102
+ *.tbz2)
103
+ FILE=`expr "X$1" : 'X\(.*[-.]t\)bz2$'`ar;;
104
+ *.tzo)
105
+ FILE=`expr "X$1" : 'X\(.*[-.]t\)zo$'`ar;;
106
+ *.tzst)
107
+ FILE=`expr "X$1" : 'X\(.*[-.]t\)zst$'`ar;;
108
+ esac
109
+ xz_status=$(
110
+ exec 4>&1
111
+ ($xz1 -cd -- "$1" 4>&-; echo $? >&4) 3>&- | eval "$cmp" - '"$FILE"' >&3
112
+ )
113
+ elif test $# -eq 2; then
114
+ case $1 in
115
+ *[-.]bz2 | *.tbz | *.tbz2) xz1=bzip2;;
116
+ *[-.][zZ] | *_z | *[-.]gz | *.t[ag]z) xz1=gzip;;
117
+ *[-.]lzo | *.tzo) xz1=lzop;;
118
+ *[-.]zst | *.tzst) xz1='zstd -q';;
119
+ *[-.]lz4) xz1=lz4;;
120
+ esac
121
+ case $2 in
122
+ *[-.]bz2 | *.tbz | *.tbz2) xz2=bzip2;;
123
+ *[-.][zZ] | *_z | *[-.]gz | *.t[ag]z) xz2=gzip;;
124
+ *[-.]lzo | *.tzo) xz2=lzop;;
125
+ *[-.]zst | *.tzst) xz2='zstd -q';;
126
+ *[-.]lz4) xz2=lz4;;
127
+ esac
128
+ case $1 in
129
+ *[-.][zZ] | *_z | *[-.][gx]z | *[-.]bz2 | *[-.]lzma | *[-.]lz | *.t[abglx]z | *.tbz2 | *[-.]lzo | *.tzo | *[-.]zst | *.tzst | *[-.]lz4 | -)
130
+ case "$2" in
131
+ *[-.][zZ] | *_z | *[-.][gx]z | *[-.]bz2 | *[-.]lzma | *[-.]lz | *.t[abglx]z | *.tbz2 | *[-.]lzo | *.tzo | *[-.]zst | *.tzst | *[-.]lz4 | -)
132
+ if test "$1$2" = --; then
133
+ xz_status=$(
134
+ exec 4>&1
135
+ ($xz1 -cdf - 4>&-; echo $? >&4) 3>&- |
136
+ eval "$cmp" - - >&3
137
+ )
138
+ elif # Reject Solaris 8's buggy /bin/bash 2.03.
139
+ echo X | (echo X | eval "$cmp" /dev/fd/5 - >/dev/null 2>&1) 5<&0; then
140
+ # NOTE: xz_status will contain two numbers.
141
+ xz_status=$(
142
+ exec 4>&1
143
+ ($xz1 -cdf -- "$1" 4>&-; echo $? >&4) 3>&- |
144
+ ( ($xz2 -cdf -- "$2" 4>&-; echo $? >&4) 3>&- 5<&- </dev/null |
145
+ eval "$cmp" /dev/fd/5 - >&3) 5<&0
146
+ )
147
+ else
148
+ F=`expr "/$2" : '.*/\(.*\)[-.][ablmotxz2]*$'` || F=$prog
149
+ tmp=
150
+ trap '
151
+ test -n "$tmp" && rm -rf "$tmp"
152
+ (exit 2); exit 2
153
+ ' HUP INT PIPE TERM 0
154
+ if type mktemp >/dev/null 2>&1; then
155
+ # Note that FreeBSD's mktemp isn't fully compatible with
156
+ # the implementations from mktemp.org and GNU coreutils.
157
+ # It is important that the -t argument is the last argument
158
+ # and that no "--" is used between -t and the template argument.
159
+ # This way this command works on all implementations.
160
+ tmp=`mktemp -d -t "$prog.XXXXXXXXXX"` || exit 2
161
+ else
162
+ # Fallback code if mktemp is missing. This isn't as
163
+ # robust as using mktemp since this doesn't try with
164
+ # different file names in case of a file name conflict.
165
+ #
166
+ # There's no need to save the original umask since
167
+ # we don't create any non-temp files. Note that using
168
+ # mkdir -m 0077 isn't secure since some mkdir implementations
169
+ # create the dir with the default umask and chmod the
170
+ # the dir afterwards.
171
+ umask 0077
172
+ mkdir -- "${TMPDIR-/tmp}/$prog.$$" || exit 2
173
+ tmp="${TMPDIR-/tmp}/$prog.$$"
174
+ fi
175
+ $xz2 -cdf -- "$2" > "$tmp/$F" || exit 2
176
+ xz_status=$(
177
+ exec 4>&1
178
+ ($xz1 -cdf -- "$1" 4>&-; echo $? >&4) 3>&- |
179
+ eval "$cmp" - '"$tmp/$F"' >&3
180
+ )
181
+ cmp_status=$?
182
+ rm -rf "$tmp" || xz_status=$?
183
+ trap - HUP INT PIPE TERM 0
184
+ (exit $cmp_status)
185
+ fi;;
186
+ *)
187
+ xz_status=$(
188
+ exec 4>&1
189
+ ($xz1 -cdf -- "$1" 4>&-; echo $? >&4) 3>&- |
190
+ eval "$cmp" - '"$2"' >&3
191
+ );;
192
+ esac;;
193
+ *)
194
+ case "$2" in
195
+ *[-.][zZ] | *_z | *[-.][gx]z | *[-.]bz2 | *[-.]lzma | *[-.]lz | *.t[abglx]z | *.tbz2 | *[-.]lzo | *.tzo | *[-.]zst | *.tzst | *[-.]lz4 | -)
196
+ xz_status=$(
197
+ exec 4>&1
198
+ ($xz2 -cdf -- "$2" 4>&-; echo $? >&4) 3>&- |
199
+ eval "$cmp" '"$1"' - >&3
200
+ );;
201
+ *)
202
+ eval "$cmp" '"$1"' '"$2"';;
203
+ esac;;
204
+ esac
205
+ else
206
+ printf '%s\n' "$0: Invalid number of operands; try '${0##*/} --help' for help" >&2
207
+ exit 2
208
+ fi
209
+
210
+ cmp_status=$?
211
+ for num in $xz_status ; do
212
+ # 0 from decompressor means successful decompression. SIGPIPE from
213
+ # decompressor is possible when diff or cmp exits before the whole file
214
+ # has been decompressed. In that case we want to retain the exit status
215
+ # from diff or cmp. Note that using "trap '' PIPE" is not possible
216
+ # because gzip changes its behavior (including exit status) if SIGPIPE
217
+ # is ignored.
218
+ test "$num" -eq 0 && continue
219
+ test "$num" -ge 128 \
220
+ && test "$(kill -l "$num" 2> /dev/null)" = "PIPE" \
221
+ && continue
222
+ exit 2
223
+ done
224
+ exit $cmp_status
miniconda3/bin/xzegrep ADDED
@@ -0,0 +1,302 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/sh
2
+ # SPDX-License-Identifier: GPL-2.0-or-later
3
+
4
+ # xzgrep -- a wrapper around a grep program that decompresses files as needed
5
+ # Adapted from a version sent by Charles Levert <charles@comm.polymtl.ca>
6
+
7
+ # Copyright (C) 1998, 2001, 2002, 2006, 2007 Free Software Foundation
8
+ # Copyright (C) 1993 Jean-loup Gailly
9
+
10
+ # Modified for XZ Utils by Andrew Dudman and Lasse Collin.
11
+
12
+ # This program is free software; you can redistribute it and/or modify
13
+ # it under the terms of the GNU General Public License as published by
14
+ # the Free Software Foundation; either version 2 of the License, or
15
+ # (at your option) any later version.
16
+
17
+ # This program is distributed in the hope that it will be useful,
18
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
19
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20
+ # GNU General Public License for more details.
21
+
22
+ # shellcheck shell=sh disable=SC1003,SC2016
23
+
24
+
25
+ #SET_PATH - This line is a placeholder to ease patching this script.
26
+
27
+ # Instead of unsetting XZ_OPT, just make sure that xz will use file format
28
+ # autodetection. This way memory usage limit and thread limit can be
29
+ # specified via XZ_OPT. With gzip, bzip2, and lzop it's OK to just unset the
30
+ # environment variables.
31
+ xz='xz --format=auto'
32
+ unset GZIP BZIP BZIP2 LZOP
33
+
34
+ case ${0##*/} in
35
+ *egrep*) prog=xzegrep; grep=${GREP:-grep -E};;
36
+ *fgrep*) prog=xzfgrep; grep=${GREP:-grep -F};;
37
+ *) prog=xzgrep; grep=${GREP:-grep};;
38
+ esac
39
+
40
+ version="$prog (XZ Utils) 5.8.2"
41
+
42
+ usage="Usage: ${0##*/} [OPTION]... [-e] PATTERN [FILE]...
43
+ Look for instances of PATTERN in the input FILEs, using their
44
+ uncompressed contents if they are compressed.
45
+
46
+ OPTIONs are the same as for '$grep'.
47
+
48
+ Report bugs to <xz@tukaani.org>."
49
+
50
+ # sed script to escape all ' for the shell, and then (to handle trailing
51
+ # newlines correctly) turn trailing X on last line into '.
52
+ escape='
53
+ s/'\''/'\''\\'\'''\''/g
54
+ $s/X$/'\''/
55
+ '
56
+ operands=
57
+ have_pat=0
58
+ files_with_matches=0
59
+ files_without_matches=0
60
+ no_filename=0
61
+ with_filename=0
62
+
63
+ # See if -H and --label options are supported (GNU and *BSDs).
64
+ if test f:x = "$(eval "echo x | $grep -H --label=f x 2> /dev/null")"; then
65
+ grep_supports_label=1
66
+ else
67
+ grep_supports_label=0
68
+ fi
69
+
70
+ while test $# -ne 0; do
71
+ option=$1
72
+ shift
73
+ optarg=
74
+
75
+ case $option in
76
+ (-[0123456789abcdEFGhHiIKlLnoPqrRsTuUvVwxyzZ]*[!0123456789]*)
77
+ # Something like -Fiv was specified, that is, $option contains more
78
+ # than one option of which the first option (in this example -F)
79
+ # doesn't take an argument. Split the first option into a standalone
80
+ # argument and continue parsing the rest of the options (in this example,
81
+ # replace -Fiv with -iv in the argument list and set option=-F).
82
+ #
83
+ # If there are digits [0-9] they are treated as if they were a single
84
+ # option character because this syntax is an alias for -C for GNU grep.
85
+ # For example, "grep -25F" is equivalent to "grep -C25 -F". If only
86
+ # digits are specified like "grep -25" we don't get here because the
87
+ # above pattern in the case-statement doesn't match such strings.
88
+ arg2=-\'$(LC_ALL=C expr "X${option}X" : 'X-.[0-9]*\(.*\)' |
89
+ LC_ALL=C sed "$escape")
90
+ eval "set -- $arg2 "'${1+"$@"}'
91
+ option=$(LC_ALL=C expr "X$option" : 'X\(-.[0-9]*\)');;
92
+ (--binary-*=* | --[lm]a*=* | --reg*=*)
93
+ # These options require an argument and an argument has been provided
94
+ # with the --foo=argument syntax. All is good.
95
+ ;;
96
+ (-[ABCDefmX] | --binary-* | --file | --[lm]a* | --reg*)
97
+ # These options require an argument which should now be in $1.
98
+ # If it isn't, display an error and exit.
99
+ case ${1?"$option option requires an argument"} in
100
+ (*\'*)
101
+ optarg=" '"$(printf '%sX\n' "$1" | LC_ALL=C sed "$escape");;
102
+ (*)
103
+ optarg=" '$1'";;
104
+ esac
105
+ shift;;
106
+ (--)
107
+ break;;
108
+ (-?*)
109
+ ;;
110
+ (*)
111
+ case $option in
112
+ (*\'*)
113
+ operands="$operands '"$(printf '%sX\n' "$option" |
114
+ LC_ALL=C sed "$escape");;
115
+ (*)
116
+ operands="$operands '$option'";;
117
+ esac
118
+ ${POSIXLY_CORRECT+break}
119
+ continue;;
120
+ esac
121
+
122
+ case $option in
123
+ (-[drRzZ] | --di* | --exc* | --inc* | --rec* | --nu*)
124
+ printf >&2 '%s: %s: Option not supported\n' "$0" "$option"
125
+ exit 2;;
126
+ (-[ef]* | --file | --file=* | --reg*)
127
+ have_pat=1;;
128
+ (--h | --he | --hel | --help)
129
+ printf '%s\n' "$usage" || exit 2
130
+ exit;;
131
+ (-H | --wi | --wit | --with | --with- | --with-f | --with-fi \
132
+ | --with-fil | --with-file | --with-filen | --with-filena | --with-filenam \
133
+ | --with-filename)
134
+ with_filename=1
135
+ continue;;
136
+ (-l | --files-with-*)
137
+ files_with_matches=1
138
+ continue;;
139
+ (-L | --files-witho*)
140
+ files_without_matches=1
141
+ continue;;
142
+ (-h | --no-f*)
143
+ no_filename=1;;
144
+ (-V | --v | --ve | --ver | --vers | --versi | --versio | --version)
145
+ printf '%s\n' "$version" || exit 2
146
+ exit;;
147
+ esac
148
+
149
+ case $option in
150
+ (*\'?*)
151
+ option=\'$(printf '%sX\n' "$option" | LC_ALL=C sed "$escape");;
152
+ (*)
153
+ option="'$option'";;
154
+ esac
155
+
156
+ grep="$grep $option$optarg"
157
+ done
158
+
159
+ eval "set -- $operands "'${1+"$@"}'
160
+
161
+ if test $have_pat -eq 0; then
162
+ case ${1?"Missing pattern; try '${0##*/} --help' for help"} in
163
+ (*\'*)
164
+ grep="$grep -e '"$(printf '%sX\n' "$1" | LC_ALL=C sed "$escape");;
165
+ (*)
166
+ grep="$grep -e '$1'";;
167
+ esac
168
+ shift
169
+ fi
170
+
171
+ if test $# -eq 0; then
172
+ set -- -
173
+ fi
174
+
175
+ exec 3>&1
176
+
177
+ # res=1 means that no file matched yet
178
+ res=1
179
+
180
+ for i; do
181
+ case $i in
182
+ *[-.][zZ] | *_z | *[-.]gz | *.t[ag]z) uncompress="gzip -cdf";;
183
+ *[-.]bz2 | *[-.]tbz | *.tbz2) uncompress="bzip2 -cdf";;
184
+ *[-.]lzo | *[-.]tzo) uncompress="lzop -cdf";;
185
+ *[-.]zst | *[-.]tzst) uncompress="zstd -cdfq";; # zstd needs -q.
186
+ *[-.]lz4) uncompress="lz4 -cdf";;
187
+ *) uncompress="$xz -cdfqQ";; # -qQ to ignore warnings like unsupp. check.
188
+ esac
189
+ # xz_status will hold the decompressor's exit status.
190
+ # Exit status of grep (and in rare cases, printf or sed) is
191
+ # available as the exit status of this assignment command.
192
+ xz_status=$(
193
+ exec 5>&1
194
+ ($uncompress -- "$i" 5>&-; echo $? >&5) 3>&- |
195
+ if test $files_with_matches -eq 1; then
196
+ eval "$grep -q" && { printf '%s\n' "$i" || exit 2; }
197
+ elif test $files_without_matches -eq 1; then
198
+ eval "$grep -q" || {
199
+ r=$?
200
+ if test $r -eq 1; then
201
+ printf '%s\n' "$i" || r=2
202
+ fi
203
+ exit $r
204
+ }
205
+ elif test $with_filename -eq 0 &&
206
+ { test $# -eq 1 || test $no_filename -eq 1; }; then
207
+ eval "$grep"
208
+ elif test $grep_supports_label -eq 1; then
209
+ # The grep implementation in use allows us to specify the filename
210
+ # that grep will prefix to the output lines. This is faster and
211
+ # less prone to security bugs than the fallback method that uses sed.
212
+ # This also avoids confusing output with GNU grep >= 3.5 (2020-09-27)
213
+ # which prints "binary file matches" to stderr instead of stdout.
214
+ #
215
+ # If reading from stdin, let grep use whatever name it prefers for
216
+ # stdin. With GNU grep it is a locale-specific translated string.
217
+ if test "x$i" = "x-"; then
218
+ eval "$grep -H"
219
+ else
220
+ eval "$grep -H --label \"\$i\""
221
+ fi
222
+ else
223
+ # Append a colon so that the last character will never be a newline
224
+ # which would otherwise get lost in shell command substitution.
225
+ i="$i:"
226
+
227
+ # Escape & \ | and newlines only if such characters are present
228
+ # (speed optimization).
229
+ case $i in
230
+ (*'
231
+ '* | *'&'* | *'\'* | *'|'*)
232
+ # If sed fails, set i to a known safe string to ensure that
233
+ # failing sed did not create a half-escaped dangerous string.
234
+ i=$(printf '%s\n' "$i" | LC_ALL=C sed 's/[&\|]/\\&/g; $!s/$/\\/') ||
235
+ i='(unknown filename):';;
236
+ esac
237
+
238
+ # $i already ends with a colon so do not add it here.
239
+ sed_script="s|^|$i|"
240
+
241
+ # If grep or sed fails, pick the larger value of the two exit statuses.
242
+ # If sed fails, use at least 2 since we use >= 2 to indicate errors.
243
+ r=$(
244
+ exec 4>&1
245
+ (eval "$grep" 4>&-; echo $? >&4) 3>&- |
246
+ LC_ALL=C sed "$sed_script" >&3 4>&-
247
+ ) || {
248
+ sed_status=$?
249
+ test "$sed_status" -lt 2 && sed_status=2
250
+ test "$r" -lt "$sed_status" && r=$sed_status
251
+ }
252
+ exit $r
253
+ fi >&3 5>&-
254
+ )
255
+ r=$?
256
+
257
+ # If grep or sed or other non-decompression command failed with a signal,
258
+ # exit immediately and ignore the possible remaining files.
259
+ #
260
+ # NOTE: Instead of 128 + signal_number, some shells use
261
+ # 256 + signal_number (ksh) or 384 + signal_number (yash).
262
+ # This is fine for us since their "exit" and "kill -l" commands take
263
+ # this into account. (At least the versions I tried do but there is
264
+ # a report of an old ksh variant whose "exit" truncates the exit status
265
+ # to 8 bits without any special handling for values indicating a signal.)
266
+ test "$r" -ge 128 && exit "$r"
267
+
268
+ if test -z "$xz_status"; then
269
+ # Something unusual happened, for example, we got a signal and
270
+ # the exit status of the decompressor was never echoed and thus
271
+ # $xz_status is empty. Exit immediately and ignore the possible
272
+ # remaining files.
273
+ exit 2
274
+ elif test "$xz_status" -ge 128; then
275
+ # The decompressor died due to a signal. SIGPIPE is ignored since it can
276
+ # occur if grep exits before the whole file has been decompressed (grep -q
277
+ # can do that). If the decompressor died with some other signal, exit
278
+ # immediately and ignore the possible remaining files.
279
+ test "$(kill -l "$xz_status" 2> /dev/null)" != "PIPE" && exit "$xz_status"
280
+ elif test "$xz_status" -gt 0; then
281
+ # Decompression failed but we will continue with the remaining
282
+ # files anyway. Set exit status to at least 2 to indicate an error.
283
+ test "$r" -lt 2 && r=2
284
+ fi
285
+
286
+ # Since res=1 is the initial value, we only need to care about
287
+ # matches (r == 0) and errors (r >= 2) here; r == 1 can be ignored.
288
+ if test "$r" -ge 2; then
289
+ # An error occurred in decompressor, grep, or some other command. Update
290
+ # res unless a larger error code has been seen with an earlier file.
291
+ test "$res" -lt "$r" && res=$r
292
+ elif test "$r" -eq 0; then
293
+ # grep found a match and no errors occurred. Update res if no errors have
294
+ # occurred with earlier files.
295
+ test "$res" -eq 1 && res=0
296
+ fi
297
+ done
298
+
299
+ # 0: At least one file matched and no errors occurred.
300
+ # 1: No matches were found and no errors occurred.
301
+ # >=2: Error. It's unknown if matches were found.
302
+ exit "$res"
miniconda3/bin/xzfgrep ADDED
@@ -0,0 +1,302 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/sh
2
+ # SPDX-License-Identifier: GPL-2.0-or-later
3
+
4
+ # xzgrep -- a wrapper around a grep program that decompresses files as needed
5
+ # Adapted from a version sent by Charles Levert <charles@comm.polymtl.ca>
6
+
7
+ # Copyright (C) 1998, 2001, 2002, 2006, 2007 Free Software Foundation
8
+ # Copyright (C) 1993 Jean-loup Gailly
9
+
10
+ # Modified for XZ Utils by Andrew Dudman and Lasse Collin.
11
+
12
+ # This program is free software; you can redistribute it and/or modify
13
+ # it under the terms of the GNU General Public License as published by
14
+ # the Free Software Foundation; either version 2 of the License, or
15
+ # (at your option) any later version.
16
+
17
+ # This program is distributed in the hope that it will be useful,
18
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
19
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20
+ # GNU General Public License for more details.
21
+
22
+ # shellcheck shell=sh disable=SC1003,SC2016
23
+
24
+
25
+ #SET_PATH - This line is a placeholder to ease patching this script.
26
+
27
+ # Instead of unsetting XZ_OPT, just make sure that xz will use file format
28
+ # autodetection. This way memory usage limit and thread limit can be
29
+ # specified via XZ_OPT. With gzip, bzip2, and lzop it's OK to just unset the
30
+ # environment variables.
31
+ xz='xz --format=auto'
32
+ unset GZIP BZIP BZIP2 LZOP
33
+
34
+ case ${0##*/} in
35
+ *egrep*) prog=xzegrep; grep=${GREP:-grep -E};;
36
+ *fgrep*) prog=xzfgrep; grep=${GREP:-grep -F};;
37
+ *) prog=xzgrep; grep=${GREP:-grep};;
38
+ esac
39
+
40
+ version="$prog (XZ Utils) 5.8.2"
41
+
42
+ usage="Usage: ${0##*/} [OPTION]... [-e] PATTERN [FILE]...
43
+ Look for instances of PATTERN in the input FILEs, using their
44
+ uncompressed contents if they are compressed.
45
+
46
+ OPTIONs are the same as for '$grep'.
47
+
48
+ Report bugs to <xz@tukaani.org>."
49
+
50
+ # sed script to escape all ' for the shell, and then (to handle trailing
51
+ # newlines correctly) turn trailing X on last line into '.
52
+ escape='
53
+ s/'\''/'\''\\'\'''\''/g
54
+ $s/X$/'\''/
55
+ '
56
+ operands=
57
+ have_pat=0
58
+ files_with_matches=0
59
+ files_without_matches=0
60
+ no_filename=0
61
+ with_filename=0
62
+
63
+ # See if -H and --label options are supported (GNU and *BSDs).
64
+ if test f:x = "$(eval "echo x | $grep -H --label=f x 2> /dev/null")"; then
65
+ grep_supports_label=1
66
+ else
67
+ grep_supports_label=0
68
+ fi
69
+
70
+ while test $# -ne 0; do
71
+ option=$1
72
+ shift
73
+ optarg=
74
+
75
+ case $option in
76
+ (-[0123456789abcdEFGhHiIKlLnoPqrRsTuUvVwxyzZ]*[!0123456789]*)
77
+ # Something like -Fiv was specified, that is, $option contains more
78
+ # than one option of which the first option (in this example -F)
79
+ # doesn't take an argument. Split the first option into a standalone
80
+ # argument and continue parsing the rest of the options (in this example,
81
+ # replace -Fiv with -iv in the argument list and set option=-F).
82
+ #
83
+ # If there are digits [0-9] they are treated as if they were a single
84
+ # option character because this syntax is an alias for -C for GNU grep.
85
+ # For example, "grep -25F" is equivalent to "grep -C25 -F". If only
86
+ # digits are specified like "grep -25" we don't get here because the
87
+ # above pattern in the case-statement doesn't match such strings.
88
+ arg2=-\'$(LC_ALL=C expr "X${option}X" : 'X-.[0-9]*\(.*\)' |
89
+ LC_ALL=C sed "$escape")
90
+ eval "set -- $arg2 "'${1+"$@"}'
91
+ option=$(LC_ALL=C expr "X$option" : 'X\(-.[0-9]*\)');;
92
+ (--binary-*=* | --[lm]a*=* | --reg*=*)
93
+ # These options require an argument and an argument has been provided
94
+ # with the --foo=argument syntax. All is good.
95
+ ;;
96
+ (-[ABCDefmX] | --binary-* | --file | --[lm]a* | --reg*)
97
+ # These options require an argument which should now be in $1.
98
+ # If it isn't, display an error and exit.
99
+ case ${1?"$option option requires an argument"} in
100
+ (*\'*)
101
+ optarg=" '"$(printf '%sX\n' "$1" | LC_ALL=C sed "$escape");;
102
+ (*)
103
+ optarg=" '$1'";;
104
+ esac
105
+ shift;;
106
+ (--)
107
+ break;;
108
+ (-?*)
109
+ ;;
110
+ (*)
111
+ case $option in
112
+ (*\'*)
113
+ operands="$operands '"$(printf '%sX\n' "$option" |
114
+ LC_ALL=C sed "$escape");;
115
+ (*)
116
+ operands="$operands '$option'";;
117
+ esac
118
+ ${POSIXLY_CORRECT+break}
119
+ continue;;
120
+ esac
121
+
122
+ case $option in
123
+ (-[drRzZ] | --di* | --exc* | --inc* | --rec* | --nu*)
124
+ printf >&2 '%s: %s: Option not supported\n' "$0" "$option"
125
+ exit 2;;
126
+ (-[ef]* | --file | --file=* | --reg*)
127
+ have_pat=1;;
128
+ (--h | --he | --hel | --help)
129
+ printf '%s\n' "$usage" || exit 2
130
+ exit;;
131
+ (-H | --wi | --wit | --with | --with- | --with-f | --with-fi \
132
+ | --with-fil | --with-file | --with-filen | --with-filena | --with-filenam \
133
+ | --with-filename)
134
+ with_filename=1
135
+ continue;;
136
+ (-l | --files-with-*)
137
+ files_with_matches=1
138
+ continue;;
139
+ (-L | --files-witho*)
140
+ files_without_matches=1
141
+ continue;;
142
+ (-h | --no-f*)
143
+ no_filename=1;;
144
+ (-V | --v | --ve | --ver | --vers | --versi | --versio | --version)
145
+ printf '%s\n' "$version" || exit 2
146
+ exit;;
147
+ esac
148
+
149
+ case $option in
150
+ (*\'?*)
151
+ option=\'$(printf '%sX\n' "$option" | LC_ALL=C sed "$escape");;
152
+ (*)
153
+ option="'$option'";;
154
+ esac
155
+
156
+ grep="$grep $option$optarg"
157
+ done
158
+
159
+ eval "set -- $operands "'${1+"$@"}'
160
+
161
+ if test $have_pat -eq 0; then
162
+ case ${1?"Missing pattern; try '${0##*/} --help' for help"} in
163
+ (*\'*)
164
+ grep="$grep -e '"$(printf '%sX\n' "$1" | LC_ALL=C sed "$escape");;
165
+ (*)
166
+ grep="$grep -e '$1'";;
167
+ esac
168
+ shift
169
+ fi
170
+
171
+ if test $# -eq 0; then
172
+ set -- -
173
+ fi
174
+
175
+ exec 3>&1
176
+
177
+ # res=1 means that no file matched yet
178
+ res=1
179
+
180
+ for i; do
181
+ case $i in
182
+ *[-.][zZ] | *_z | *[-.]gz | *.t[ag]z) uncompress="gzip -cdf";;
183
+ *[-.]bz2 | *[-.]tbz | *.tbz2) uncompress="bzip2 -cdf";;
184
+ *[-.]lzo | *[-.]tzo) uncompress="lzop -cdf";;
185
+ *[-.]zst | *[-.]tzst) uncompress="zstd -cdfq";; # zstd needs -q.
186
+ *[-.]lz4) uncompress="lz4 -cdf";;
187
+ *) uncompress="$xz -cdfqQ";; # -qQ to ignore warnings like unsupp. check.
188
+ esac
189
+ # xz_status will hold the decompressor's exit status.
190
+ # Exit status of grep (and in rare cases, printf or sed) is
191
+ # available as the exit status of this assignment command.
192
+ xz_status=$(
193
+ exec 5>&1
194
+ ($uncompress -- "$i" 5>&-; echo $? >&5) 3>&- |
195
+ if test $files_with_matches -eq 1; then
196
+ eval "$grep -q" && { printf '%s\n' "$i" || exit 2; }
197
+ elif test $files_without_matches -eq 1; then
198
+ eval "$grep -q" || {
199
+ r=$?
200
+ if test $r -eq 1; then
201
+ printf '%s\n' "$i" || r=2
202
+ fi
203
+ exit $r
204
+ }
205
+ elif test $with_filename -eq 0 &&
206
+ { test $# -eq 1 || test $no_filename -eq 1; }; then
207
+ eval "$grep"
208
+ elif test $grep_supports_label -eq 1; then
209
+ # The grep implementation in use allows us to specify the filename
210
+ # that grep will prefix to the output lines. This is faster and
211
+ # less prone to security bugs than the fallback method that uses sed.
212
+ # This also avoids confusing output with GNU grep >= 3.5 (2020-09-27)
213
+ # which prints "binary file matches" to stderr instead of stdout.
214
+ #
215
+ # If reading from stdin, let grep use whatever name it prefers for
216
+ # stdin. With GNU grep it is a locale-specific translated string.
217
+ if test "x$i" = "x-"; then
218
+ eval "$grep -H"
219
+ else
220
+ eval "$grep -H --label \"\$i\""
221
+ fi
222
+ else
223
+ # Append a colon so that the last character will never be a newline
224
+ # which would otherwise get lost in shell command substitution.
225
+ i="$i:"
226
+
227
+ # Escape & \ | and newlines only if such characters are present
228
+ # (speed optimization).
229
+ case $i in
230
+ (*'
231
+ '* | *'&'* | *'\'* | *'|'*)
232
+ # If sed fails, set i to a known safe string to ensure that
233
+ # failing sed did not create a half-escaped dangerous string.
234
+ i=$(printf '%s\n' "$i" | LC_ALL=C sed 's/[&\|]/\\&/g; $!s/$/\\/') ||
235
+ i='(unknown filename):';;
236
+ esac
237
+
238
+ # $i already ends with a colon so do not add it here.
239
+ sed_script="s|^|$i|"
240
+
241
+ # If grep or sed fails, pick the larger value of the two exit statuses.
242
+ # If sed fails, use at least 2 since we use >= 2 to indicate errors.
243
+ r=$(
244
+ exec 4>&1
245
+ (eval "$grep" 4>&-; echo $? >&4) 3>&- |
246
+ LC_ALL=C sed "$sed_script" >&3 4>&-
247
+ ) || {
248
+ sed_status=$?
249
+ test "$sed_status" -lt 2 && sed_status=2
250
+ test "$r" -lt "$sed_status" && r=$sed_status
251
+ }
252
+ exit $r
253
+ fi >&3 5>&-
254
+ )
255
+ r=$?
256
+
257
+ # If grep or sed or other non-decompression command failed with a signal,
258
+ # exit immediately and ignore the possible remaining files.
259
+ #
260
+ # NOTE: Instead of 128 + signal_number, some shells use
261
+ # 256 + signal_number (ksh) or 384 + signal_number (yash).
262
+ # This is fine for us since their "exit" and "kill -l" commands take
263
+ # this into account. (At least the versions I tried do but there is
264
+ # a report of an old ksh variant whose "exit" truncates the exit status
265
+ # to 8 bits without any special handling for values indicating a signal.)
266
+ test "$r" -ge 128 && exit "$r"
267
+
268
+ if test -z "$xz_status"; then
269
+ # Something unusual happened, for example, we got a signal and
270
+ # the exit status of the decompressor was never echoed and thus
271
+ # $xz_status is empty. Exit immediately and ignore the possible
272
+ # remaining files.
273
+ exit 2
274
+ elif test "$xz_status" -ge 128; then
275
+ # The decompressor died due to a signal. SIGPIPE is ignored since it can
276
+ # occur if grep exits before the whole file has been decompressed (grep -q
277
+ # can do that). If the decompressor died with some other signal, exit
278
+ # immediately and ignore the possible remaining files.
279
+ test "$(kill -l "$xz_status" 2> /dev/null)" != "PIPE" && exit "$xz_status"
280
+ elif test "$xz_status" -gt 0; then
281
+ # Decompression failed but we will continue with the remaining
282
+ # files anyway. Set exit status to at least 2 to indicate an error.
283
+ test "$r" -lt 2 && r=2
284
+ fi
285
+
286
+ # Since res=1 is the initial value, we only need to care about
287
+ # matches (r == 0) and errors (r >= 2) here; r == 1 can be ignored.
288
+ if test "$r" -ge 2; then
289
+ # An error occurred in decompressor, grep, or some other command. Update
290
+ # res unless a larger error code has been seen with an earlier file.
291
+ test "$res" -lt "$r" && res=$r
292
+ elif test "$r" -eq 0; then
293
+ # grep found a match and no errors occurred. Update res if no errors have
294
+ # occurred with earlier files.
295
+ test "$res" -eq 1 && res=0
296
+ fi
297
+ done
298
+
299
+ # 0: At least one file matched and no errors occurred.
300
+ # 1: No matches were found and no errors occurred.
301
+ # >=2: Error. It's unknown if matches were found.
302
+ exit "$res"
miniconda3/bin/xzgrep ADDED
@@ -0,0 +1,302 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/sh
2
+ # SPDX-License-Identifier: GPL-2.0-or-later
3
+
4
+ # xzgrep -- a wrapper around a grep program that decompresses files as needed
5
+ # Adapted from a version sent by Charles Levert <charles@comm.polymtl.ca>
6
+
7
+ # Copyright (C) 1998, 2001, 2002, 2006, 2007 Free Software Foundation
8
+ # Copyright (C) 1993 Jean-loup Gailly
9
+
10
+ # Modified for XZ Utils by Andrew Dudman and Lasse Collin.
11
+
12
+ # This program is free software; you can redistribute it and/or modify
13
+ # it under the terms of the GNU General Public License as published by
14
+ # the Free Software Foundation; either version 2 of the License, or
15
+ # (at your option) any later version.
16
+
17
+ # This program is distributed in the hope that it will be useful,
18
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
19
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20
+ # GNU General Public License for more details.
21
+
22
+ # shellcheck shell=sh disable=SC1003,SC2016
23
+
24
+
25
+ #SET_PATH - This line is a placeholder to ease patching this script.
26
+
27
+ # Instead of unsetting XZ_OPT, just make sure that xz will use file format
28
+ # autodetection. This way memory usage limit and thread limit can be
29
+ # specified via XZ_OPT. With gzip, bzip2, and lzop it's OK to just unset the
30
+ # environment variables.
31
+ xz='xz --format=auto'
32
+ unset GZIP BZIP BZIP2 LZOP
33
+
34
+ case ${0##*/} in
35
+ *egrep*) prog=xzegrep; grep=${GREP:-grep -E};;
36
+ *fgrep*) prog=xzfgrep; grep=${GREP:-grep -F};;
37
+ *) prog=xzgrep; grep=${GREP:-grep};;
38
+ esac
39
+
40
+ version="$prog (XZ Utils) 5.8.2"
41
+
42
+ usage="Usage: ${0##*/} [OPTION]... [-e] PATTERN [FILE]...
43
+ Look for instances of PATTERN in the input FILEs, using their
44
+ uncompressed contents if they are compressed.
45
+
46
+ OPTIONs are the same as for '$grep'.
47
+
48
+ Report bugs to <xz@tukaani.org>."
49
+
50
+ # sed script to escape all ' for the shell, and then (to handle trailing
51
+ # newlines correctly) turn trailing X on last line into '.
52
+ escape='
53
+ s/'\''/'\''\\'\'''\''/g
54
+ $s/X$/'\''/
55
+ '
56
+ operands=
57
+ have_pat=0
58
+ files_with_matches=0
59
+ files_without_matches=0
60
+ no_filename=0
61
+ with_filename=0
62
+
63
+ # See if -H and --label options are supported (GNU and *BSDs).
64
+ if test f:x = "$(eval "echo x | $grep -H --label=f x 2> /dev/null")"; then
65
+ grep_supports_label=1
66
+ else
67
+ grep_supports_label=0
68
+ fi
69
+
70
+ while test $# -ne 0; do
71
+ option=$1
72
+ shift
73
+ optarg=
74
+
75
+ case $option in
76
+ (-[0123456789abcdEFGhHiIKlLnoPqrRsTuUvVwxyzZ]*[!0123456789]*)
77
+ # Something like -Fiv was specified, that is, $option contains more
78
+ # than one option of which the first option (in this example -F)
79
+ # doesn't take an argument. Split the first option into a standalone
80
+ # argument and continue parsing the rest of the options (in this example,
81
+ # replace -Fiv with -iv in the argument list and set option=-F).
82
+ #
83
+ # If there are digits [0-9] they are treated as if they were a single
84
+ # option character because this syntax is an alias for -C for GNU grep.
85
+ # For example, "grep -25F" is equivalent to "grep -C25 -F". If only
86
+ # digits are specified like "grep -25" we don't get here because the
87
+ # above pattern in the case-statement doesn't match such strings.
88
+ arg2=-\'$(LC_ALL=C expr "X${option}X" : 'X-.[0-9]*\(.*\)' |
89
+ LC_ALL=C sed "$escape")
90
+ eval "set -- $arg2 "'${1+"$@"}'
91
+ option=$(LC_ALL=C expr "X$option" : 'X\(-.[0-9]*\)');;
92
+ (--binary-*=* | --[lm]a*=* | --reg*=*)
93
+ # These options require an argument and an argument has been provided
94
+ # with the --foo=argument syntax. All is good.
95
+ ;;
96
+ (-[ABCDefmX] | --binary-* | --file | --[lm]a* | --reg*)
97
+ # These options require an argument which should now be in $1.
98
+ # If it isn't, display an error and exit.
99
+ case ${1?"$option option requires an argument"} in
100
+ (*\'*)
101
+ optarg=" '"$(printf '%sX\n' "$1" | LC_ALL=C sed "$escape");;
102
+ (*)
103
+ optarg=" '$1'";;
104
+ esac
105
+ shift;;
106
+ (--)
107
+ break;;
108
+ (-?*)
109
+ ;;
110
+ (*)
111
+ case $option in
112
+ (*\'*)
113
+ operands="$operands '"$(printf '%sX\n' "$option" |
114
+ LC_ALL=C sed "$escape");;
115
+ (*)
116
+ operands="$operands '$option'";;
117
+ esac
118
+ ${POSIXLY_CORRECT+break}
119
+ continue;;
120
+ esac
121
+
122
+ case $option in
123
+ (-[drRzZ] | --di* | --exc* | --inc* | --rec* | --nu*)
124
+ printf >&2 '%s: %s: Option not supported\n' "$0" "$option"
125
+ exit 2;;
126
+ (-[ef]* | --file | --file=* | --reg*)
127
+ have_pat=1;;
128
+ (--h | --he | --hel | --help)
129
+ printf '%s\n' "$usage" || exit 2
130
+ exit;;
131
+ (-H | --wi | --wit | --with | --with- | --with-f | --with-fi \
132
+ | --with-fil | --with-file | --with-filen | --with-filena | --with-filenam \
133
+ | --with-filename)
134
+ with_filename=1
135
+ continue;;
136
+ (-l | --files-with-*)
137
+ files_with_matches=1
138
+ continue;;
139
+ (-L | --files-witho*)
140
+ files_without_matches=1
141
+ continue;;
142
+ (-h | --no-f*)
143
+ no_filename=1;;
144
+ (-V | --v | --ve | --ver | --vers | --versi | --versio | --version)
145
+ printf '%s\n' "$version" || exit 2
146
+ exit;;
147
+ esac
148
+
149
+ case $option in
150
+ (*\'?*)
151
+ option=\'$(printf '%sX\n' "$option" | LC_ALL=C sed "$escape");;
152
+ (*)
153
+ option="'$option'";;
154
+ esac
155
+
156
+ grep="$grep $option$optarg"
157
+ done
158
+
159
+ eval "set -- $operands "'${1+"$@"}'
160
+
161
+ if test $have_pat -eq 0; then
162
+ case ${1?"Missing pattern; try '${0##*/} --help' for help"} in
163
+ (*\'*)
164
+ grep="$grep -e '"$(printf '%sX\n' "$1" | LC_ALL=C sed "$escape");;
165
+ (*)
166
+ grep="$grep -e '$1'";;
167
+ esac
168
+ shift
169
+ fi
170
+
171
+ if test $# -eq 0; then
172
+ set -- -
173
+ fi
174
+
175
+ exec 3>&1
176
+
177
+ # res=1 means that no file matched yet
178
+ res=1
179
+
180
+ for i; do
181
+ case $i in
182
+ *[-.][zZ] | *_z | *[-.]gz | *.t[ag]z) uncompress="gzip -cdf";;
183
+ *[-.]bz2 | *[-.]tbz | *.tbz2) uncompress="bzip2 -cdf";;
184
+ *[-.]lzo | *[-.]tzo) uncompress="lzop -cdf";;
185
+ *[-.]zst | *[-.]tzst) uncompress="zstd -cdfq";; # zstd needs -q.
186
+ *[-.]lz4) uncompress="lz4 -cdf";;
187
+ *) uncompress="$xz -cdfqQ";; # -qQ to ignore warnings like unsupp. check.
188
+ esac
189
+ # xz_status will hold the decompressor's exit status.
190
+ # Exit status of grep (and in rare cases, printf or sed) is
191
+ # available as the exit status of this assignment command.
192
+ xz_status=$(
193
+ exec 5>&1
194
+ ($uncompress -- "$i" 5>&-; echo $? >&5) 3>&- |
195
+ if test $files_with_matches -eq 1; then
196
+ eval "$grep -q" && { printf '%s\n' "$i" || exit 2; }
197
+ elif test $files_without_matches -eq 1; then
198
+ eval "$grep -q" || {
199
+ r=$?
200
+ if test $r -eq 1; then
201
+ printf '%s\n' "$i" || r=2
202
+ fi
203
+ exit $r
204
+ }
205
+ elif test $with_filename -eq 0 &&
206
+ { test $# -eq 1 || test $no_filename -eq 1; }; then
207
+ eval "$grep"
208
+ elif test $grep_supports_label -eq 1; then
209
+ # The grep implementation in use allows us to specify the filename
210
+ # that grep will prefix to the output lines. This is faster and
211
+ # less prone to security bugs than the fallback method that uses sed.
212
+ # This also avoids confusing output with GNU grep >= 3.5 (2020-09-27)
213
+ # which prints "binary file matches" to stderr instead of stdout.
214
+ #
215
+ # If reading from stdin, let grep use whatever name it prefers for
216
+ # stdin. With GNU grep it is a locale-specific translated string.
217
+ if test "x$i" = "x-"; then
218
+ eval "$grep -H"
219
+ else
220
+ eval "$grep -H --label \"\$i\""
221
+ fi
222
+ else
223
+ # Append a colon so that the last character will never be a newline
224
+ # which would otherwise get lost in shell command substitution.
225
+ i="$i:"
226
+
227
+ # Escape & \ | and newlines only if such characters are present
228
+ # (speed optimization).
229
+ case $i in
230
+ (*'
231
+ '* | *'&'* | *'\'* | *'|'*)
232
+ # If sed fails, set i to a known safe string to ensure that
233
+ # failing sed did not create a half-escaped dangerous string.
234
+ i=$(printf '%s\n' "$i" | LC_ALL=C sed 's/[&\|]/\\&/g; $!s/$/\\/') ||
235
+ i='(unknown filename):';;
236
+ esac
237
+
238
+ # $i already ends with a colon so do not add it here.
239
+ sed_script="s|^|$i|"
240
+
241
+ # If grep or sed fails, pick the larger value of the two exit statuses.
242
+ # If sed fails, use at least 2 since we use >= 2 to indicate errors.
243
+ r=$(
244
+ exec 4>&1
245
+ (eval "$grep" 4>&-; echo $? >&4) 3>&- |
246
+ LC_ALL=C sed "$sed_script" >&3 4>&-
247
+ ) || {
248
+ sed_status=$?
249
+ test "$sed_status" -lt 2 && sed_status=2
250
+ test "$r" -lt "$sed_status" && r=$sed_status
251
+ }
252
+ exit $r
253
+ fi >&3 5>&-
254
+ )
255
+ r=$?
256
+
257
+ # If grep or sed or other non-decompression command failed with a signal,
258
+ # exit immediately and ignore the possible remaining files.
259
+ #
260
+ # NOTE: Instead of 128 + signal_number, some shells use
261
+ # 256 + signal_number (ksh) or 384 + signal_number (yash).
262
+ # This is fine for us since their "exit" and "kill -l" commands take
263
+ # this into account. (At least the versions I tried do but there is
264
+ # a report of an old ksh variant whose "exit" truncates the exit status
265
+ # to 8 bits without any special handling for values indicating a signal.)
266
+ test "$r" -ge 128 && exit "$r"
267
+
268
+ if test -z "$xz_status"; then
269
+ # Something unusual happened, for example, we got a signal and
270
+ # the exit status of the decompressor was never echoed and thus
271
+ # $xz_status is empty. Exit immediately and ignore the possible
272
+ # remaining files.
273
+ exit 2
274
+ elif test "$xz_status" -ge 128; then
275
+ # The decompressor died due to a signal. SIGPIPE is ignored since it can
276
+ # occur if grep exits before the whole file has been decompressed (grep -q
277
+ # can do that). If the decompressor died with some other signal, exit
278
+ # immediately and ignore the possible remaining files.
279
+ test "$(kill -l "$xz_status" 2> /dev/null)" != "PIPE" && exit "$xz_status"
280
+ elif test "$xz_status" -gt 0; then
281
+ # Decompression failed but we will continue with the remaining
282
+ # files anyway. Set exit status to at least 2 to indicate an error.
283
+ test "$r" -lt 2 && r=2
284
+ fi
285
+
286
+ # Since res=1 is the initial value, we only need to care about
287
+ # matches (r == 0) and errors (r >= 2) here; r == 1 can be ignored.
288
+ if test "$r" -ge 2; then
289
+ # An error occurred in decompressor, grep, or some other command. Update
290
+ # res unless a larger error code has been seen with an earlier file.
291
+ test "$res" -lt "$r" && res=$r
292
+ elif test "$r" -eq 0; then
293
+ # grep found a match and no errors occurred. Update res if no errors have
294
+ # occurred with earlier files.
295
+ test "$res" -eq 1 && res=0
296
+ fi
297
+ done
298
+
299
+ # 0: At least one file matched and no errors occurred.
300
+ # 1: No matches were found and no errors occurred.
301
+ # >=2: Error. It's unknown if matches were found.
302
+ exit "$res"
miniconda3/bin/xzless ADDED
@@ -0,0 +1,76 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/sh
2
+ # SPDX-License-Identifier: GPL-2.0-or-later
3
+
4
+ # Copyright (C) 1998, 2002, 2006, 2007 Free Software Foundation
5
+
6
+ # The original version for gzip was written by Paul Eggert.
7
+ # Modified for XZ Utils by Andrew Dudman and Lasse Collin.
8
+
9
+ # This program is free software; you can redistribute it and/or modify
10
+ # it under the terms of the GNU General Public License as published by
11
+ # the Free Software Foundation; either version 2 of the License, or
12
+ # (at your option) any later version.
13
+
14
+ # This program is distributed in the hope that it will be useful,
15
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
16
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
+ # GNU General Public License for more details.
18
+
19
+ # shellcheck shell=sh disable=SC2089,SC2090
20
+
21
+
22
+ #SET_PATH - This line is a placeholder to ease patching this script.
23
+
24
+ # Instead of unsetting XZ_OPT, just make sure that xz will use file format
25
+ # autodetection. This way memory usage limit and thread limit can be
26
+ # specified via XZ_OPT.
27
+ xz='xz --format=auto'
28
+
29
+ version='xzless (XZ Utils) 5.8.2'
30
+
31
+ usage="Usage: ${0##*/} [OPTION]... [FILE]...
32
+ Like 'less', but operate on the uncompressed contents of xz compressed FILEs.
33
+
34
+ Options are the same as for 'less'.
35
+
36
+ Report bugs to <xz@tukaani.org>."
37
+
38
+ case $1 in
39
+ --help) printf '%s\n' "$usage" || exit 2; exit;;
40
+ --version) printf '%s\n' "$version" || exit 2; exit;;
41
+ esac
42
+
43
+ if test "${LESSMETACHARS+set}" != set; then
44
+ # Work around a bug in less 394 and earlier;
45
+ # it mishandles the metacharacters '$%=~'.
46
+ space=' '
47
+ tab=' '
48
+ nl='
49
+ '
50
+ LESSMETACHARS="$space$tab$nl'"';*?"()<>[|&^`#\$%=~'
51
+ fi
52
+
53
+ VER=$(less -V | { read _ ver _ && echo ${ver%%.*}; })
54
+ if test "$VER" -ge 451; then
55
+ # less 451 or later: If the compressed file is valid but has
56
+ # zero bytes of uncompressed data, using two vertical bars ||- makes
57
+ # "less" check the exit status of xz and if it is zero then display
58
+ # an empty file. With a single vertical bar |- and no output from xz,
59
+ # "less" would attempt to display the raw input file instead.
60
+ LESSOPEN="||-$xz -cdfqQ -- %s"
61
+ elif test "$VER" -ge 429; then
62
+ # less 429 or later: LESSOPEN pipe will be used on
63
+ # standard input if $LESSOPEN begins with |-.
64
+ LESSOPEN="|-$xz -cdfqQ -- %s"
65
+ else
66
+ LESSOPEN="|$xz -cdfqQ -- %s"
67
+ fi
68
+
69
+ SHOW_PREPROC_ERRORS=
70
+ if test "$VER" -ge 632; then
71
+ SHOW_PREPROC_ERRORS=--show-preproc-errors
72
+ fi
73
+
74
+ export LESSMETACHARS LESSOPEN
75
+
76
+ exec less $SHOW_PREPROC_ERRORS "$@"
miniconda3/bin/xzmore ADDED
@@ -0,0 +1,82 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/sh
2
+ # SPDX-License-Identifier: GPL-2.0-or-later
3
+
4
+ # Copyright (C) 2001, 2002, 2007 Free Software Foundation
5
+ # Copyright (C) 1992, 1993 Jean-loup Gailly
6
+
7
+ # Modified for XZ Utils by Andrew Dudman and Lasse Collin.
8
+
9
+ # This program is free software; you can redistribute it and/or modify
10
+ # it under the terms of the GNU General Public License as published by
11
+ # the Free Software Foundation; either version 2 of the License, or
12
+ # (at your option) any later version.
13
+
14
+ # This program is distributed in the hope that it will be useful,
15
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
16
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
+ # GNU General Public License for more details.
18
+
19
+ # shellcheck shell=sh
20
+
21
+
22
+ #SET_PATH - This line is a placeholder to ease patching this script.
23
+
24
+ # Instead of unsetting XZ_OPT, just make sure that xz will use file format
25
+ # autodetection. This way memory usage limit and thread limit can be
26
+ # specified via XZ_OPT.
27
+ xz='xz --format=auto'
28
+
29
+ version='xzmore (XZ Utils) 5.8.2'
30
+
31
+ usage="Usage: ${0##*/} [OPTION]... [FILE]...
32
+ Like 'more', but operate on the uncompressed contents of xz compressed FILEs.
33
+
34
+ Report bugs to <xz@tukaani.org>."
35
+
36
+ case $1 in
37
+ --help) printf '%s\n' "$usage" || exit 2; exit;;
38
+ --version) printf '%s\n' "$version" || exit 2; exit;;
39
+ esac
40
+
41
+ oldtty=`stty -g 2>/dev/null`
42
+ if stty -cbreak 2>/dev/null; then
43
+ cb='cbreak'; ncb='-cbreak'
44
+ else
45
+ # 'stty min 1' resets eof to ^a on both SunOS and SysV!
46
+ cb='min 1 -icanon'; ncb='icanon eof ^d'
47
+ fi
48
+ if test $? -eq 0 && test -n "$oldtty"; then
49
+ trap 'stty $oldtty 2>/dev/null; exit' 0 2 3 5 10 13 15
50
+ else
51
+ trap 'stty $ncb echo 2>/dev/null; exit' 0 2 3 5 10 13 15
52
+ fi
53
+
54
+ if test $# = 0; then
55
+ if test -t 0; then
56
+ printf '%s\n' "$usage"; exit 1
57
+ else
58
+ $xz -cdfqQ | eval "${PAGER:-more}"
59
+ fi
60
+ else
61
+ FIRST=1
62
+ for FILE; do
63
+ true < "$FILE" || continue
64
+ if test $FIRST -eq 0; then
65
+ printf "%s--More--(Next file: %s)" "" "$FILE"
66
+ stty $cb -echo 2>/dev/null
67
+ ANS=`dd bs=1 count=1 2>/dev/null`
68
+ stty $ncb echo 2>/dev/null
69
+ echo " "
70
+ case "$ANS" in
71
+ [eq]) exit;;
72
+ esac
73
+ fi
74
+ if test "$ANS" != 's'; then
75
+ printf '%s\n' "------> $FILE <------"
76
+ $xz -cdfqQ -- "$FILE" | eval "${PAGER:-more}"
77
+ fi
78
+ if test -t 1; then
79
+ FIRST=0
80
+ fi
81
+ done
82
+ fi
miniconda3/bin/zstdgrep ADDED
@@ -0,0 +1,134 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/sh
2
+ #
3
+ # Copyright (c) 2003 Thomas Klausner.
4
+ #
5
+ # Redistribution and use in source and binary forms, with or without
6
+ # modification, are permitted provided that the following conditions
7
+ # are met:
8
+ # 1. Redistributions of source code must retain the above copyright
9
+ # notice, this list of conditions and the following disclaimer.
10
+ # 2. Redistributions in binary form must reproduce the above copyright
11
+ # notice, this list of conditions and the following disclaimer in the
12
+ # documentation and/or other materials provided with the distribution.
13
+ #
14
+ # THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
15
+ # IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
16
+ # OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
17
+ # IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
18
+ # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
19
+ # NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
20
+ # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
21
+ # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22
+ # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
23
+ # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24
+
25
+ grep=${GREP:-grep}
26
+ zcat=${ZCAT:-zstdcat}
27
+
28
+ endofopts=0
29
+ pattern_found=0
30
+ grep_args=""
31
+ hyphen=0
32
+ silent=0
33
+
34
+ prog=${0##*/}
35
+
36
+ # handle being called 'zegrep' or 'zfgrep'
37
+ case $prog in
38
+ *egrep*) prog=zegrep; grep_args='-E';;
39
+ *fgrep*) prog=zfgrep; grep_args='-F';;
40
+ *) prog=zstdgrep;;
41
+ esac
42
+
43
+ # skip all options and pass them on to grep taking care of options
44
+ # with arguments, and if -e was supplied
45
+
46
+ while [ "$#" -gt 0 ] && [ "${endofopts}" -eq 0 ]; do
47
+ case "$1" in
48
+ # from GNU grep-2.5.1 -- keep in sync!
49
+ -[ABCDXdefm])
50
+ if [ "$#" -lt 2 ]; then
51
+ printf '%s: missing argument for %s flag\n' "${prog}" "$1" >&2
52
+ exit 1
53
+ fi
54
+ case "$1" in
55
+ -e)
56
+ pattern="$2"
57
+ pattern_found=1
58
+ shift 2
59
+ break
60
+ ;;
61
+ -f)
62
+ pattern_found=2
63
+ ;;
64
+ *)
65
+ ;;
66
+ esac
67
+ grep_args="${grep_args} $1 $2"
68
+ shift 2
69
+ ;;
70
+ --)
71
+ shift
72
+ endofopts=1
73
+ ;;
74
+ -)
75
+ hyphen=1
76
+ shift
77
+ ;;
78
+ -h)
79
+ silent=1
80
+ shift
81
+ ;;
82
+ -*)
83
+ grep_args="${grep_args} $1"
84
+ shift
85
+ ;;
86
+ *)
87
+ # pattern to grep for
88
+ endofopts=1
89
+ ;;
90
+ esac
91
+ done
92
+
93
+ # if no -e option was found, take next argument as grep-pattern
94
+ if [ "${pattern_found}" -lt 1 ]; then
95
+ if [ "$#" -ge 1 ]; then
96
+ pattern="$1"
97
+ shift
98
+ elif [ "${hyphen}" -gt 0 ]; then
99
+ pattern="-"
100
+ else
101
+ printf '%s: missing pattern\n' "${prog}" >&2
102
+ exit 1
103
+ fi
104
+ fi
105
+
106
+ EXIT_CODE=0
107
+ # call grep ...
108
+ if [ "$#" -lt 1 ]; then
109
+ # ... on stdin
110
+ set -f # Disable file name generation (globbing).
111
+ # shellcheck disable=SC2086
112
+ "${zcat}" - | "${grep}" ${grep_args} -- "${pattern}" -
113
+ EXIT_CODE=$?
114
+ set +f
115
+ else
116
+ # ... on all files given on the command line
117
+ if [ "${silent}" -lt 1 ] && [ "$#" -gt 1 ]; then
118
+ grep_args="-H ${grep_args}"
119
+ fi
120
+ set -f
121
+ while [ "$#" -gt 0 ]; do
122
+ # shellcheck disable=SC2086
123
+ if [ $pattern_found -eq 2 ]; then
124
+ "${zcat}" -- "$1" | "${grep}" --label="${1}" ${grep_args} -- -
125
+ else
126
+ "${zcat}" -- "$1" | "${grep}" --label="${1}" ${grep_args} -- "${pattern}" -
127
+ fi
128
+ [ "$?" -ne 0 ] && EXIT_CODE=1
129
+ shift
130
+ done
131
+ set +f
132
+ fi
133
+
134
+ exit "${EXIT_CODE}"
miniconda3/bin/zstdless ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ #!/bin/sh
2
+
3
+ zstd=${ZSTD:-zstd}
4
+
5
+ # TODO: Address quirks and bugs tied to old versions of less, provide a mechanism to pass flags directly to zstd
6
+
7
+ export LESSOPEN="|-${zstd} -cdfq %s"
8
+ exec less "$@"
miniconda3/compiler_compat/README ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ Files in this folder are to enhance backwards compatibility of anaconda software with older compilers.
2
+ See: https://github.com/conda/conda/issues/6030 for more information.
miniconda3/conda-meta/_libgcc_mutex-0.1-main.json ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "_libgcc_mutex",
3
+ "version": "0.1",
4
+ "build": "main",
5
+ "build_number": 0,
6
+ "channel": "https://repo.anaconda.com/pkgs/main/linux-64",
7
+ "subdir": "linux-64",
8
+ "fn": "_libgcc_mutex-0.1-main.conda",
9
+ "md5": "c3473ff8bdb3d124ed5ff11ec380d6f9",
10
+ "url": "https://repo.anaconda.com/pkgs/main/linux-64/_libgcc_mutex-0.1-main.conda",
11
+ "sha256": "476626712f60e5ef0fe04c354727152b1ee5285d57ccd3575c7be930122bd051",
12
+ "arch": "x86_64",
13
+ "platform": "linux",
14
+ "depends": [],
15
+ "constrains": [],
16
+ "license": "",
17
+ "timestamp": 1562011674000,
18
+ "size": 3473,
19
+ "requested_spec": "pkgs/main/linux-64::_libgcc_mutex==0.1=main",
20
+ "package_tarball_full_path": "/mnt/bn/bohanzhainas1/jiashuo/miniconda3/pkgs/_libgcc_mutex-0.1-main.conda",
21
+ "extracted_package_dir": "/mnt/bn/bohanzhainas1/jiashuo/miniconda3/pkgs/_libgcc_mutex-0.1-main",
22
+ "files": [],
23
+ "paths_data": {
24
+ "paths_version": 1,
25
+ "paths": []
26
+ },
27
+ "link": {
28
+ "source": "/mnt/bn/bohanzhainas1/jiashuo/miniconda3/pkgs/_libgcc_mutex-0.1-main",
29
+ "type": 1
30
+ }
31
+ }
miniconda3/conda-meta/_openmp_mutex-5.1-1_gnu.json ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "_openmp_mutex",
3
+ "version": "5.1",
4
+ "build": "1_gnu",
5
+ "build_number": 0,
6
+ "channel": "https://repo.anaconda.com/pkgs/main/linux-64",
7
+ "subdir": "linux-64",
8
+ "fn": "_openmp_mutex-5.1-1_gnu.conda",
9
+ "md5": "71d281e9c2192cb3fa425655a8defb85",
10
+ "url": "https://repo.anaconda.com/pkgs/main/linux-64/_openmp_mutex-5.1-1_gnu.conda",
11
+ "sha256": "576011048d23f2e03372263493c5529f802286ff53e8426df99a5b11cc2572f3",
12
+ "arch": "x86_64",
13
+ "platform": "linux",
14
+ "depends": [
15
+ "_libgcc_mutex 0.1 main",
16
+ "libgomp >=7.5.0"
17
+ ],
18
+ "constrains": [
19
+ "openmp_impl 9999"
20
+ ],
21
+ "license": "BSD-3-Clause",
22
+ "timestamp": 1652859733000,
23
+ "size": 21315,
24
+ "requested_spec": "pkgs/main/linux-64::_openmp_mutex==5.1=1_gnu",
25
+ "package_tarball_full_path": "/mnt/bn/bohanzhainas1/jiashuo/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu.conda",
26
+ "extracted_package_dir": "/mnt/bn/bohanzhainas1/jiashuo/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu",
27
+ "files": [
28
+ "lib/libgomp.so.1"
29
+ ],
30
+ "paths_data": {
31
+ "paths_version": 1,
32
+ "paths": []
33
+ },
34
+ "link": {
35
+ "source": "/mnt/bn/bohanzhainas1/jiashuo/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu",
36
+ "type": 1
37
+ }
38
+ }
miniconda3/conda-meta/anaconda-anon-usage-0.7.5-pyhb46e38b_100.json ADDED
@@ -0,0 +1,89 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "anaconda-anon-usage",
3
+ "version": "0.7.5",
4
+ "build": "pyhb46e38b_100",
5
+ "build_number": 100,
6
+ "channel": "https://repo.anaconda.com/pkgs/main/noarch",
7
+ "subdir": "noarch",
8
+ "fn": "anaconda-anon-usage-0.7.5-pyhb46e38b_100.conda",
9
+ "md5": "e3c78ac191246e36d9ddd1f25cd56fd7",
10
+ "url": "https://repo.anaconda.com/pkgs/main/noarch/anaconda-anon-usage-0.7.5-pyhb46e38b_100.conda",
11
+ "sha256": "b9d6aff29f1ea89952f8491548d8bd8e823bbdb5b5adf8c8b36a78051115b55c",
12
+ "depends": [
13
+ "python >=3.8"
14
+ ],
15
+ "constrains": [
16
+ "conda >=23.7"
17
+ ],
18
+ "noarch": "python",
19
+ "license": "BSD-3-Clause",
20
+ "license_family": "BSD",
21
+ "package_type": "noarch_python",
22
+ "timestamp": 1764636667000,
23
+ "size": 19548,
24
+ "requested_spec": "pkgs/main/noarch::anaconda-anon-usage==0.7.5=pyhb46e38b_100",
25
+ "package_tarball_full_path": "/mnt/bn/bohanzhainas1/jiashuo/miniconda3/pkgs/anaconda-anon-usage-0.7.5-pyhb46e38b_100.conda",
26
+ "extracted_package_dir": "/mnt/bn/bohanzhainas1/jiashuo/miniconda3/pkgs/anaconda-anon-usage-0.7.5-pyhb46e38b_100",
27
+ "files": [
28
+ "lib/python3.13/site-packages/anaconda_anon_usage-0.7.5.dist-info/INSTALLER",
29
+ "lib/python3.13/site-packages/anaconda_anon_usage-0.7.5.dist-info/LICENSE",
30
+ "lib/python3.13/site-packages/anaconda_anon_usage-0.7.5.dist-info/METADATA",
31
+ "lib/python3.13/site-packages/anaconda_anon_usage-0.7.5.dist-info/RECORD",
32
+ "lib/python3.13/site-packages/anaconda_anon_usage-0.7.5.dist-info/REQUESTED",
33
+ "lib/python3.13/site-packages/anaconda_anon_usage-0.7.5.dist-info/WHEEL",
34
+ "lib/python3.13/site-packages/anaconda_anon_usage-0.7.5.dist-info/direct_url.json",
35
+ "lib/python3.13/site-packages/anaconda_anon_usage-0.7.5.dist-info/entry_points.txt",
36
+ "lib/python3.13/site-packages/anaconda_anon_usage-0.7.5.dist-info/top_level.txt",
37
+ "lib/python3.13/site-packages/anaconda_anon_usage/__init__.py",
38
+ "lib/python3.13/site-packages/anaconda_anon_usage/_version.py",
39
+ "lib/python3.13/site-packages/anaconda_anon_usage/heartbeat.py",
40
+ "lib/python3.13/site-packages/anaconda_anon_usage/patch.py",
41
+ "lib/python3.13/site-packages/anaconda_anon_usage/plugin.py",
42
+ "lib/python3.13/site-packages/anaconda_anon_usage/tokens.py",
43
+ "lib/python3.13/site-packages/anaconda_anon_usage/utils.py",
44
+ "lib/python3.13/site-packages/anaconda_anon_usage/__pycache__/__init__.cpython-313.pyc",
45
+ "lib/python3.13/site-packages/anaconda_anon_usage/__pycache__/_version.cpython-313.pyc",
46
+ "lib/python3.13/site-packages/anaconda_anon_usage/__pycache__/heartbeat.cpython-313.pyc",
47
+ "lib/python3.13/site-packages/anaconda_anon_usage/__pycache__/patch.cpython-313.pyc",
48
+ "lib/python3.13/site-packages/anaconda_anon_usage/__pycache__/plugin.cpython-313.pyc",
49
+ "lib/python3.13/site-packages/anaconda_anon_usage/__pycache__/tokens.cpython-313.pyc",
50
+ "lib/python3.13/site-packages/anaconda_anon_usage/__pycache__/utils.cpython-313.pyc"
51
+ ],
52
+ "paths_data": {
53
+ "paths_version": 1,
54
+ "paths": [
55
+ {
56
+ "_path": "lib/python3.13/site-packages/anaconda_anon_usage/__pycache__/__init__.cpython-313.pyc",
57
+ "path_type": "pyc_file"
58
+ },
59
+ {
60
+ "_path": "lib/python3.13/site-packages/anaconda_anon_usage/__pycache__/_version.cpython-313.pyc",
61
+ "path_type": "pyc_file"
62
+ },
63
+ {
64
+ "_path": "lib/python3.13/site-packages/anaconda_anon_usage/__pycache__/heartbeat.cpython-313.pyc",
65
+ "path_type": "pyc_file"
66
+ },
67
+ {
68
+ "_path": "lib/python3.13/site-packages/anaconda_anon_usage/__pycache__/patch.cpython-313.pyc",
69
+ "path_type": "pyc_file"
70
+ },
71
+ {
72
+ "_path": "lib/python3.13/site-packages/anaconda_anon_usage/__pycache__/plugin.cpython-313.pyc",
73
+ "path_type": "pyc_file"
74
+ },
75
+ {
76
+ "_path": "lib/python3.13/site-packages/anaconda_anon_usage/__pycache__/tokens.cpython-313.pyc",
77
+ "path_type": "pyc_file"
78
+ },
79
+ {
80
+ "_path": "lib/python3.13/site-packages/anaconda_anon_usage/__pycache__/utils.cpython-313.pyc",
81
+ "path_type": "pyc_file"
82
+ }
83
+ ]
84
+ },
85
+ "link": {
86
+ "source": "/mnt/bn/bohanzhainas1/jiashuo/miniconda3/pkgs/anaconda-anon-usage-0.7.5-pyhb46e38b_100",
87
+ "type": 1
88
+ }
89
+ }
miniconda3/conda-meta/anaconda-auth-0.13.0-py313h06a4308_0.json ADDED
@@ -0,0 +1,139 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "anaconda-auth",
3
+ "version": "0.13.0",
4
+ "build": "py313h06a4308_0",
5
+ "build_number": 0,
6
+ "channel": "https://repo.anaconda.com/pkgs/main/linux-64",
7
+ "subdir": "linux-64",
8
+ "fn": "anaconda-auth-0.13.0-py313h06a4308_0.conda",
9
+ "md5": "bbd5cbd9b4516a729a1d5414e9320ed9",
10
+ "url": "https://repo.anaconda.com/pkgs/main/linux-64/anaconda-auth-0.13.0-py313h06a4308_0.conda",
11
+ "sha256": "65e1eb7ca1260fe9e4bf6d7938e7d77f2f55a842ea668a184af80acad235423d",
12
+ "arch": "x86_64",
13
+ "platform": "linux",
14
+ "depends": [
15
+ "anaconda-cli-base >=0.8.1",
16
+ "cryptography >=3.4.0",
17
+ "httpx",
18
+ "keyring",
19
+ "pkce",
20
+ "pydantic",
21
+ "pyjwt",
22
+ "python >=3.13,<3.14.0a0",
23
+ "python-dotenv",
24
+ "python_abi 3.13.* *_cp313",
25
+ "requests",
26
+ "semver <4",
27
+ "anaconda-anon-usage >=0.7.2"
28
+ ],
29
+ "constrains": [
30
+ "anaconda-cloud-auth >=0.13.0",
31
+ "conda-token >=0.7.0",
32
+ "conda >=23.9.0"
33
+ ],
34
+ "license": "BSD-3-Clause",
35
+ "license_family": "BSD",
36
+ "timestamp": 1772491290000,
37
+ "size": 123443,
38
+ "requested_spec": "pkgs/main/linux-64::anaconda-auth==0.13.0=py313h06a4308_0",
39
+ "package_tarball_full_path": "/mnt/bn/bohanzhainas1/jiashuo/miniconda3/pkgs/anaconda-auth-0.13.0-py313h06a4308_0.conda",
40
+ "extracted_package_dir": "/mnt/bn/bohanzhainas1/jiashuo/miniconda3/pkgs/anaconda-auth-0.13.0-py313h06a4308_0",
41
+ "files": [
42
+ "bin/conda-token",
43
+ "condarc.d/anaconda-auth.yml",
44
+ "lib/python3.13/site-packages/anaconda_auth-0.13.0.dist-info/INSTALLER",
45
+ "lib/python3.13/site-packages/anaconda_auth-0.13.0.dist-info/METADATA",
46
+ "lib/python3.13/site-packages/anaconda_auth-0.13.0.dist-info/RECORD",
47
+ "lib/python3.13/site-packages/anaconda_auth-0.13.0.dist-info/REQUESTED",
48
+ "lib/python3.13/site-packages/anaconda_auth-0.13.0.dist-info/WHEEL",
49
+ "lib/python3.13/site-packages/anaconda_auth-0.13.0.dist-info/direct_url.json",
50
+ "lib/python3.13/site-packages/anaconda_auth-0.13.0.dist-info/entry_points.txt",
51
+ "lib/python3.13/site-packages/anaconda_auth-0.13.0.dist-info/licenses/LICENSE",
52
+ "lib/python3.13/site-packages/anaconda_auth/__init__.py",
53
+ "lib/python3.13/site-packages/anaconda_auth/__main__.py",
54
+ "lib/python3.13/site-packages/anaconda_auth/__pycache__/__init__.cpython-313.pyc",
55
+ "lib/python3.13/site-packages/anaconda_auth/__pycache__/__main__.cpython-313.pyc",
56
+ "lib/python3.13/site-packages/anaconda_auth/__pycache__/_version.cpython-313.pyc",
57
+ "lib/python3.13/site-packages/anaconda_auth/__pycache__/actions.cpython-313.pyc",
58
+ "lib/python3.13/site-packages/anaconda_auth/__pycache__/adapters.cpython-313.pyc",
59
+ "lib/python3.13/site-packages/anaconda_auth/__pycache__/async_client.cpython-313.pyc",
60
+ "lib/python3.13/site-packages/anaconda_auth/__pycache__/cli.cpython-313.pyc",
61
+ "lib/python3.13/site-packages/anaconda_auth/__pycache__/client.cpython-313.pyc",
62
+ "lib/python3.13/site-packages/anaconda_auth/__pycache__/config.cpython-313.pyc",
63
+ "lib/python3.13/site-packages/anaconda_auth/__pycache__/device_flow.cpython-313.pyc",
64
+ "lib/python3.13/site-packages/anaconda_auth/__pycache__/exceptions.cpython-313.pyc",
65
+ "lib/python3.13/site-packages/anaconda_auth/__pycache__/handlers.cpython-313.pyc",
66
+ "lib/python3.13/site-packages/anaconda_auth/__pycache__/panel.cpython-313.pyc",
67
+ "lib/python3.13/site-packages/anaconda_auth/__pycache__/repo.cpython-313.pyc",
68
+ "lib/python3.13/site-packages/anaconda_auth/__pycache__/token.cpython-313.pyc",
69
+ "lib/python3.13/site-packages/anaconda_auth/__pycache__/utils.cpython-313.pyc",
70
+ "lib/python3.13/site-packages/anaconda_auth/_conda/__init__.py",
71
+ "lib/python3.13/site-packages/anaconda_auth/_conda/__pycache__/__init__.cpython-313.pyc",
72
+ "lib/python3.13/site-packages/anaconda_auth/_conda/__pycache__/auth_handler.cpython-313.pyc",
73
+ "lib/python3.13/site-packages/anaconda_auth/_conda/__pycache__/conda_api.cpython-313.pyc",
74
+ "lib/python3.13/site-packages/anaconda_auth/_conda/__pycache__/conda_token.cpython-313.pyc",
75
+ "lib/python3.13/site-packages/anaconda_auth/_conda/__pycache__/condarc.cpython-313.pyc",
76
+ "lib/python3.13/site-packages/anaconda_auth/_conda/__pycache__/config.cpython-313.pyc",
77
+ "lib/python3.13/site-packages/anaconda_auth/_conda/__pycache__/entrypoint.cpython-313.pyc",
78
+ "lib/python3.13/site-packages/anaconda_auth/_conda/__pycache__/plugins.cpython-313.pyc",
79
+ "lib/python3.13/site-packages/anaconda_auth/_conda/__pycache__/repo_config.cpython-313.pyc",
80
+ "lib/python3.13/site-packages/anaconda_auth/_conda/auth_handler.py",
81
+ "lib/python3.13/site-packages/anaconda_auth/_conda/conda_api.py",
82
+ "lib/python3.13/site-packages/anaconda_auth/_conda/conda_token.py",
83
+ "lib/python3.13/site-packages/anaconda_auth/_conda/condarc.py",
84
+ "lib/python3.13/site-packages/anaconda_auth/_conda/config.py",
85
+ "lib/python3.13/site-packages/anaconda_auth/_conda/entrypoint.py",
86
+ "lib/python3.13/site-packages/anaconda_auth/_conda/plugins.py",
87
+ "lib/python3.13/site-packages/anaconda_auth/_conda/repo_config.py",
88
+ "lib/python3.13/site-packages/anaconda_auth/_version.py",
89
+ "lib/python3.13/site-packages/anaconda_auth/actions.py",
90
+ "lib/python3.13/site-packages/anaconda_auth/adapters.py",
91
+ "lib/python3.13/site-packages/anaconda_auth/async_client.py",
92
+ "lib/python3.13/site-packages/anaconda_auth/cli.py",
93
+ "lib/python3.13/site-packages/anaconda_auth/client.py",
94
+ "lib/python3.13/site-packages/anaconda_auth/config.py",
95
+ "lib/python3.13/site-packages/anaconda_auth/device_flow.py",
96
+ "lib/python3.13/site-packages/anaconda_auth/exceptions.py",
97
+ "lib/python3.13/site-packages/anaconda_auth/handlers.py",
98
+ "lib/python3.13/site-packages/anaconda_auth/panel.py",
99
+ "lib/python3.13/site-packages/anaconda_auth/py.typed",
100
+ "lib/python3.13/site-packages/anaconda_auth/repo.py",
101
+ "lib/python3.13/site-packages/anaconda_auth/token.py",
102
+ "lib/python3.13/site-packages/anaconda_auth/utils.py",
103
+ "lib/python3.13/site-packages/anaconda_cloud_auth/__init__.py",
104
+ "lib/python3.13/site-packages/anaconda_cloud_auth/__pycache__/__init__.cpython-313.pyc",
105
+ "lib/python3.13/site-packages/anaconda_cloud_auth/__pycache__/actions.cpython-313.pyc",
106
+ "lib/python3.13/site-packages/anaconda_cloud_auth/__pycache__/cli.cpython-313.pyc",
107
+ "lib/python3.13/site-packages/anaconda_cloud_auth/__pycache__/client.cpython-313.pyc",
108
+ "lib/python3.13/site-packages/anaconda_cloud_auth/__pycache__/config.cpython-313.pyc",
109
+ "lib/python3.13/site-packages/anaconda_cloud_auth/__pycache__/exceptions.cpython-313.pyc",
110
+ "lib/python3.13/site-packages/anaconda_cloud_auth/__pycache__/handlers.cpython-313.pyc",
111
+ "lib/python3.13/site-packages/anaconda_cloud_auth/__pycache__/token.cpython-313.pyc",
112
+ "lib/python3.13/site-packages/anaconda_cloud_auth/actions.py",
113
+ "lib/python3.13/site-packages/anaconda_cloud_auth/cli.py",
114
+ "lib/python3.13/site-packages/anaconda_cloud_auth/client.py",
115
+ "lib/python3.13/site-packages/anaconda_cloud_auth/config.py",
116
+ "lib/python3.13/site-packages/anaconda_cloud_auth/exceptions.py",
117
+ "lib/python3.13/site-packages/anaconda_cloud_auth/handlers.py",
118
+ "lib/python3.13/site-packages/anaconda_cloud_auth/py.typed",
119
+ "lib/python3.13/site-packages/anaconda_cloud_auth/token.py"
120
+ ],
121
+ "paths_data": {
122
+ "paths_version": 1,
123
+ "paths": [
124
+ {
125
+ "_path": "bin/conda-token",
126
+ "prefix_placeholder": "/home/task_177249124085225/croot/anaconda-cloud-auth-split_1772491269211/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_place",
127
+ "file_mode": "text",
128
+ "path_type": "hardlink",
129
+ "sha256": "2919966294f6057a204e09af551f0280f36ba1ff218f4953dcc0ce15e2fcb9cd",
130
+ "size_in_bytes": 483,
131
+ "sha256_in_prefix": "dfcf4896789f47fcfa078f19c6eb880b9a08d0007b69715e41ab4667fc2614c4"
132
+ }
133
+ ]
134
+ },
135
+ "link": {
136
+ "source": "/mnt/bn/bohanzhainas1/jiashuo/miniconda3/pkgs/anaconda-auth-0.13.0-py313h06a4308_0",
137
+ "type": 1
138
+ }
139
+ }
miniconda3/conda-meta/anaconda-cli-base-0.8.1-py313h06a4308_0.json ADDED
@@ -0,0 +1,85 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "anaconda-cli-base",
3
+ "version": "0.8.1",
4
+ "build": "py313h06a4308_0",
5
+ "build_number": 0,
6
+ "channel": "https://repo.anaconda.com/pkgs/main/linux-64",
7
+ "subdir": "linux-64",
8
+ "fn": "anaconda-cli-base-0.8.1-py313h06a4308_0.conda",
9
+ "md5": "efcf0008a5dd126dcba3a3e556828d50",
10
+ "url": "https://repo.anaconda.com/pkgs/main/linux-64/anaconda-cli-base-0.8.1-py313h06a4308_0.conda",
11
+ "sha256": "ddd1d4a198c7cb8c7d645a5c27c0138f405608b3eb2940759116fe4dab98b782",
12
+ "arch": "x86_64",
13
+ "platform": "linux",
14
+ "depends": [
15
+ "click",
16
+ "packaging >=23.0",
17
+ "pydantic-settings >=2.3",
18
+ "python >=3.13,<3.14.0a0",
19
+ "python_abi 3.13.* *_cp313",
20
+ "readchar",
21
+ "rich",
22
+ "tomli",
23
+ "tomlkit",
24
+ "typer >=0.17",
25
+ "pydantic >=2.12"
26
+ ],
27
+ "constrains": [
28
+ "anaconda-client >=1.13.0",
29
+ "anaconda-auth >=0.12.0",
30
+ "anaconda-cloud-cli >=0.3.0"
31
+ ],
32
+ "license": "BSD-3-Clause",
33
+ "license_family": "BSD",
34
+ "timestamp": 1770385849000,
35
+ "size": 62015,
36
+ "requested_spec": "pkgs/main/linux-64::anaconda-cli-base==0.8.1=py313h06a4308_0",
37
+ "package_tarball_full_path": "/mnt/bn/bohanzhainas1/jiashuo/miniconda3/pkgs/anaconda-cli-base-0.8.1-py313h06a4308_0.conda",
38
+ "extracted_package_dir": "/mnt/bn/bohanzhainas1/jiashuo/miniconda3/pkgs/anaconda-cli-base-0.8.1-py313h06a4308_0",
39
+ "files": [
40
+ "bin/anaconda",
41
+ "lib/python3.13/site-packages/anaconda_cli_base-0.8.1.dist-info/INSTALLER",
42
+ "lib/python3.13/site-packages/anaconda_cli_base-0.8.1.dist-info/METADATA",
43
+ "lib/python3.13/site-packages/anaconda_cli_base-0.8.1.dist-info/RECORD",
44
+ "lib/python3.13/site-packages/anaconda_cli_base-0.8.1.dist-info/REQUESTED",
45
+ "lib/python3.13/site-packages/anaconda_cli_base-0.8.1.dist-info/WHEEL",
46
+ "lib/python3.13/site-packages/anaconda_cli_base-0.8.1.dist-info/direct_url.json",
47
+ "lib/python3.13/site-packages/anaconda_cli_base-0.8.1.dist-info/entry_points.txt",
48
+ "lib/python3.13/site-packages/anaconda_cli_base-0.8.1.dist-info/licenses/LICENSE",
49
+ "lib/python3.13/site-packages/anaconda_cli_base/__init__.py",
50
+ "lib/python3.13/site-packages/anaconda_cli_base/__pycache__/__init__.cpython-313.pyc",
51
+ "lib/python3.13/site-packages/anaconda_cli_base/__pycache__/_version.cpython-313.pyc",
52
+ "lib/python3.13/site-packages/anaconda_cli_base/__pycache__/cli.cpython-313.pyc",
53
+ "lib/python3.13/site-packages/anaconda_cli_base/__pycache__/config.cpython-313.pyc",
54
+ "lib/python3.13/site-packages/anaconda_cli_base/__pycache__/console.cpython-313.pyc",
55
+ "lib/python3.13/site-packages/anaconda_cli_base/__pycache__/deprecations.cpython-313.pyc",
56
+ "lib/python3.13/site-packages/anaconda_cli_base/__pycache__/exceptions.cpython-313.pyc",
57
+ "lib/python3.13/site-packages/anaconda_cli_base/__pycache__/plugins.cpython-313.pyc",
58
+ "lib/python3.13/site-packages/anaconda_cli_base/_version.py",
59
+ "lib/python3.13/site-packages/anaconda_cli_base/cli.py",
60
+ "lib/python3.13/site-packages/anaconda_cli_base/config.py",
61
+ "lib/python3.13/site-packages/anaconda_cli_base/console.py",
62
+ "lib/python3.13/site-packages/anaconda_cli_base/deprecations.py",
63
+ "lib/python3.13/site-packages/anaconda_cli_base/exceptions.py",
64
+ "lib/python3.13/site-packages/anaconda_cli_base/plugins.py",
65
+ "lib/python3.13/site-packages/anaconda_cli_base/py.typed"
66
+ ],
67
+ "paths_data": {
68
+ "paths_version": 1,
69
+ "paths": [
70
+ {
71
+ "_path": "bin/anaconda",
72
+ "prefix_placeholder": "/home/task_177038556646156/croot/anaconda-cli-base_1770385830159/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pla",
73
+ "file_mode": "text",
74
+ "path_type": "hardlink",
75
+ "sha256": "5ea89fd8e7b4f2825358c2278d50b946603b131b648966dd26ec610c72be03a2",
76
+ "size_in_bytes": 472,
77
+ "sha256_in_prefix": "d718bdab1710a7517a13a7492ac55da0b28e4ad9b639433b7d98be8a351606d0"
78
+ }
79
+ ]
80
+ },
81
+ "link": {
82
+ "source": "/mnt/bn/bohanzhainas1/jiashuo/miniconda3/pkgs/anaconda-cli-base-0.8.1-py313h06a4308_0",
83
+ "type": 1
84
+ }
85
+ }
miniconda3/conda-meta/annotated-types-0.6.0-py313h06a4308_1.json ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "annotated-types",
3
+ "version": "0.6.0",
4
+ "build": "py313h06a4308_1",
5
+ "build_number": 1,
6
+ "channel": "https://repo.anaconda.com/pkgs/main/linux-64",
7
+ "subdir": "linux-64",
8
+ "fn": "annotated-types-0.6.0-py313h06a4308_1.conda",
9
+ "md5": "3d0213cea41b88c15fdf1ed04eba799c",
10
+ "url": "https://repo.anaconda.com/pkgs/main/linux-64/annotated-types-0.6.0-py313h06a4308_1.conda",
11
+ "sha256": "382f07779f01e3a6621b963ebd8f01b1759fd71c64cb8d47b4b1da17451e07a4",
12
+ "arch": "x86_64",
13
+ "platform": "linux",
14
+ "depends": [
15
+ "python >=3.13,<3.14.0a0",
16
+ "python_abi 3.13.* *_cp313"
17
+ ],
18
+ "constrains": [],
19
+ "license": "MIT",
20
+ "license_family": "MIT",
21
+ "timestamp": 1761744946000,
22
+ "size": 26097,
23
+ "requested_spec": "pkgs/main/linux-64::annotated-types==0.6.0=py313h06a4308_1",
24
+ "package_tarball_full_path": "/mnt/bn/bohanzhainas1/jiashuo/miniconda3/pkgs/annotated-types-0.6.0-py313h06a4308_1.conda",
25
+ "extracted_package_dir": "/mnt/bn/bohanzhainas1/jiashuo/miniconda3/pkgs/annotated-types-0.6.0-py313h06a4308_1",
26
+ "files": [
27
+ "lib/python3.13/site-packages/annotated_types-0.6.0.dist-info/INSTALLER",
28
+ "lib/python3.13/site-packages/annotated_types-0.6.0.dist-info/METADATA",
29
+ "lib/python3.13/site-packages/annotated_types-0.6.0.dist-info/RECORD",
30
+ "lib/python3.13/site-packages/annotated_types-0.6.0.dist-info/REQUESTED",
31
+ "lib/python3.13/site-packages/annotated_types-0.6.0.dist-info/WHEEL",
32
+ "lib/python3.13/site-packages/annotated_types-0.6.0.dist-info/direct_url.json",
33
+ "lib/python3.13/site-packages/annotated_types-0.6.0.dist-info/licenses/LICENSE",
34
+ "lib/python3.13/site-packages/annotated_types/__init__.py",
35
+ "lib/python3.13/site-packages/annotated_types/__pycache__/__init__.cpython-313.pyc",
36
+ "lib/python3.13/site-packages/annotated_types/__pycache__/test_cases.cpython-313.pyc",
37
+ "lib/python3.13/site-packages/annotated_types/py.typed",
38
+ "lib/python3.13/site-packages/annotated_types/test_cases.py"
39
+ ],
40
+ "paths_data": {
41
+ "paths_version": 1,
42
+ "paths": []
43
+ },
44
+ "link": {
45
+ "source": "/mnt/bn/bohanzhainas1/jiashuo/miniconda3/pkgs/annotated-types-0.6.0-py313h06a4308_1",
46
+ "type": 1
47
+ }
48
+ }