<commit_before>rebol [

]

;-------------------------
; setup globals
;-------------------------
root-dir: join what-dir %slim-libs/

git-connection-mode: 'ssh

git-url-base: switch git-connection-mode [
	ssh [
		"git@github.com:moliad/" 
	]
	
	https [
		"https://github.com/moliad/" 
	]
]



;--------------------------
;- get-slim-package()
;--------------------------
get-slim-package: func [
	package
][
	print "^/^/---"
	print "pull-project()"
	
	path: rejoin [ root-dir package ]
	?? path
	
	either exists? path [
		print ["UPDATING " package ]
		cmd: " git pull origin "
		change-dir path
		call/shell/console/wait cmd
	][
		print ["CLONING " package "" ]
		cmd: rejoin [ "git clone " package ".git" ]
		;make-dir path
		change-dir root-dir
		call/shell/console/wait cmd
	]
]




;-------------------------
; grab all the stuff from Github
;-------------------------<commit_msg>fixed github cloning tool so it's use of CALL works in all situations.<commit_after>rebol [

]

;-------------------------
; setup globals
;-------------------------
root-dir: join what-dir %slim-libs/

git-connection-mode: 'ssh

git-url-base: switch git-connection-mode [
	ssh [
		"git@github.com:moliad/" 
	]
	
	https [
		"https://github.com/moliad/" 
	]
]



;--------------------------
;- get-slim-package()
;--------------------------
get-slim-package: func [
	package
][
	print "^/^/---"
	print "pull-project()"
	
	path: rejoin [ root-dir package ]
	?? path
	
	either exists? path [
		print ["UPDATING " package ]
		cmd: "git pull origin "
		change-dir path
		?? cmd
		call/show/console/wait cmd
	][
		print ["CLONING " package "" ]
		cmd: rejoin [ "git clone " git-url-base  package ".git" ]
		;make-dir path
		change-dir root-dir
		?? cmd
		call/show/console/wait cmd
	]
]




;-------------------------
; grab all the stuff from Github
;-------------------------
{'fraction_non_alphanumeric': 0.2952586206896552, 'fraction_numerical': 0.0, 'mean_word_length': 1.6044880785413744, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6575094', 'n_tokens_mistral': 676, 'n_tokens_neox': 607, 'n_words': 141}