Skip to content

Commit

Permalink
pp
Browse files Browse the repository at this point in the history
  • Loading branch information
TeamSPoon committed Feb 4, 2023
1 parent bd99298 commit 49c4c4d
Show file tree
Hide file tree
Showing 126 changed files with 21,837 additions and 33,582 deletions.
4 changes: 2 additions & 2 deletions docker/rootfs/etc/apache2/conf-available/doc_root_ssl.conf
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ SSLProxyVerify None
SSLProxyCheckPeerCN On
SSLProxyCheckPeerName On

SSLCertificateFile /etc/letsencrypt/live/logicmoo.org/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/logicmoo.org/privkey.pem
SSLCertificateFile /etc/letsencrypt/live/logicmoo.org-0006/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/logicmoo.org-0006/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf

Include /etc/apache2/conf-available/doc_root.conf
Expand Down
2 changes: 2 additions & 0 deletions docker/rootfs/etc/apache2/sites-enabled/000-logicmoo.conf
Original file line number Diff line number Diff line change
Expand Up @@ -291,5 +291,7 @@ Use NamedVS mud 5001

Use Butterfly 7771
Use ButterThru 1766
Use ButterThru 3020
Use ButterThru 1666
Use ButterThru 8501

1 change: 1 addition & 0 deletions docker/rootfs/usr/local/bin/websocket_redir.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

#!/bin/bash

# BUTTERFLY_HOME=$LOGICMOO_WS/packs_web/butterfly
Expand Down
1 change: 1 addition & 0 deletions docker/rootfs/usr/local/lib/swipl/library/check.pl
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
list_strings/1, % +Options
list_rationals/0, % list rational objects in clauses
list_rationals/1 % +Options
%found_undef/3
]).
:- autoload(library(apply),[maplist/2]).
:- autoload(library(lists),[member/2,append/3]).
Expand Down
1 change: 1 addition & 0 deletions docker/rootfs/usr/local/lib/swipl/library/edit.pl
Original file line number Diff line number Diff line change
Expand Up @@ -617,3 +617,4 @@
load_extensions.

:- load_extensions.

2 changes: 2 additions & 0 deletions docker/rootfs/usr/local/lib/swipl/library/yall.pl
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,9 @@
lambda_free({_}) :- !.
lambda_free({}) :- !.
lambda_free(Free) :-
trace,
type_error(lambda_free, Free).
%lambda_free(_):- trace.

%! expand_lambda(+Goal, -Head) is semidet.
%
Expand Down
3,615 changes: 2,771 additions & 844 deletions logicmoo_workspace.vpj

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions packs_sys/dictoo/prolog/dictoo_lib.pl
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
is_oo/2,
% '$was_dictoo'/2,
is_oo_invokable/2,
is_oo_hooked/4,
oo_call/4,
oo_call_dot_hook/4,
oo_jpl_call/3,
Expand Down Expand Up @@ -166,6 +167,7 @@
oo_set(UDT,Key,Value):- fail_on_missing(jpl_is_ref(UDT)),fail_on_missing(jpl_set(UDT,Key,Value)).
%oo_set(UDT,Key,Value):- trace_or_throw(oo_set(UDT,Key,Value)).

nb_rb_insert(UDT,Key,Value,NewUDT):- nb_rb_insert(UDT,Key,Value),NewUDT=UDT. % not actually new

oo_nb_set_varholder('$VAR',Name,[],UDT,Key,Value):- atom(Name),!,nb_setarg(1,UDT,att(vn, Name, att(Key,Value, []))).
oo_nb_set_varholder('$VAR',Att3,[],UDT,Key,Value):- nb_setarg(1,UDT,att(Key,Value,Att3)).
Expand Down
61 changes: 61 additions & 0 deletions packs_sys/dictoo/prolog/gvar_fixup_exports.pl
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@


% :- include(gvar_fixup_exports).

:- if( \+ current_prolog_flag(xref,true)).

:- if( \+ current_predicate(f:gvar_file_predicates_are_exported/2)).

lmconfig:never_export_named_gvar(attr_unify_hook/2).
lmconfig:never_export_named_gvar(attribute_goals/3).
lmconfig:never_export_named_gvar(project_attributes/2).
lmconfig:never_export_named_gvar(attr_portray_hook/2).


:- module_transparent(f:gvar_file_predicates_are_exported/2).
:- export(f:gvar_file_predicates_are_exported/2).
f:gvar_file_predicates_are_exported(S,LC):-
forall(source_file(M:H,S),
ignore((functor(H,F,A), \+ atom_concat('$',_,F), \+ lmconfig:never_export_named_gvar(F/_),
ignore(((atom(LC),atom(M), LC\==M,M:export(M:F/A),LC:multifile(M:F/A),fail,atom_concat('$',_,F),LC:import(M:F/A)))),
ignore(((\+ atom_concat('$',_,F),\+ atom_concat('__aux',_,F),LC:export(M:F/A),
ignore(((current_predicate(system:F/A)->true; system:import(M:F/A)))))))))).

%% f:gvar_file_predicates_are_transparent() is det.
%
% All Module Predicates Are Transparent.
:- module_transparent(f:gvar_file_predicates_are_transparent/0).
f:gvar_file_predicates_are_transparent:-
source_location(S,_), prolog_load_context(module,LC),
f:gvar_file_predicates_are_transparent(S,LC).

:- module_transparent(f:gvar_file_predicates_are_transparent/2).
f:gvar_file_predicates_are_transparent(S,LC):-
forall(source_file(M:H,S),
(functor(H,F,A),
ignore(((\+ predicate_property(M:H,transparent), ignore( LC = M),
module_transparent(M:F/A),
\+ atom_concat('__aux',_,F),
nop(debug(modules,'~N:- module_transparent((~q)/~q).~n',[F,A]))))))).


%% f:gvar_file_predicates_are_exported() is det.
%
% All Module Predicates Are Exported.

:- module_transparent(f:gvar_file_predicates_are_exported/0).

f:gvar_file_predicates_are_exported:- current_prolog_flag(xref,true),!.
f:gvar_file_predicates_are_exported:-
source_location(S,_), prolog_load_context(module,LC),
% writeln(f:gvar_file_predicates_are_exported(S,LC)),
f:gvar_file_predicates_are_exported(S,LC).

:- endif.

:-
f:gvar_file_predicates_are_exported,
f:gvar_file_predicates_are_transparent.

:- endif.

2 changes: 1 addition & 1 deletion packs_sys/logicmoo_agi/arc_web.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ do
#pip install butterfly --force-reinstall

cd $LM_ARC_BASE
export BFLYCMD="$LM_ARC_BASE/prolog/kaggle_arc/Kaggle_arc.sh -g user:bfly_startup ${@} -- LM_ARC_BASE=$LM_ARC_BASE"
export BFLYCMD="$LM_ARC_BASE/prolog/kaggle_arc/Kaggle_arc.sh ${@} -- --bfly --no-xpce --www --no-swish LM_ARC_BASE=$LM_ARC_BASE"
butterfly.server.py --port=7771 --host='0.0.0.0' --unsecure --i-hereby-declare-i-dont-want-any-security-whatsoever --cmd="${BFLYCMD}" --force-unicode-width || stty sane
done
stty sane
Expand Down
17 changes: 15 additions & 2 deletions packs_sys/logicmoo_agi/prolog/kaggle_arc/Kaggle_arc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,15 @@ mkdir -p muarc_tmp ; chmod -R 777 muarc_tmp
mkdir -p muarc_cache ; chmod -R 777 muarc_cache
mkdir -p muarc_output ; chmod -R 777 muarc_output



if [ "${1}" == "--tee" ] ; then
shift 1
[ -z "$TEE_FILE" ] && export TEE_FILE="muarc_tmp/tee.ansi"
[ -z "$TYPESCRIPT" ] && TYPESCRIPT=1 exec /usr/bin/script -f -e -a ${TEE_FILE} -c "TYPESCRIPT=1 $0 --tee $@"
echo start $0 $@
fi


chmod 777 tee.ansi


Expand Down Expand Up @@ -46,12 +47,24 @@ chmod -R 555 data/

chmod -R 777 muarc_tmp/

export SWIPL_OPTIONS="${@}"
if [[ $SWIPL_OPTIONS == *" -- "* ]];
then
echo "$SWIPL_OPTIONS"
else
SWIPL_OPTIONS="-- ${SWIPL_OPTIONS}"
fi

killall -9 xterm

export BCMD="cd '${ARC_DIR}' ; pwd ; export TEE_FILE='${TEE_FILE}' ; swipl -l kaggle_arc.pl ${@}"
export BCMD="cd '${ARC_DIR}' ; pwd ; export TEE_FILE='${TEE_FILE}' ; swipl -l kaggle_arc.pl ${SWIPL_OPTIONS}"

echo BCMD=$BCMD
sleep 2

# % 642,202,528 inferences, 104.676 CPU in 104.682 seconds (100% CPU, 6135124 Lips)
swipl -g "time(load_files([muarc_cache/arc_db_temp_cache],[qcompile(auto)])),halt."

if id -u "norights" >/dev/null 2>&1; then
sudo -u norights bash -l -c "git config --global --add safe.directory /opt/logicmoo_workspace/packs_sys/logicmoo_utils" || stty sane
sudo -u norights bash -l -c "${BCMD}" || stty sane
Expand Down
2 changes: 1 addition & 1 deletion packs_sys/logicmoo_agi/prolog/kaggle_arc/arc_module.pl
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
:- module_transparent(do_forgotten_exports/0).
do_forgotten_exports:-
strip_module(_,M,_),
wdmsg(do_forgotten_exports(M)),
u_dmsg(do_forgotten_exports(M)),
do_forgotten_exports(M).

%:- use_module(library(pfc_lib)).
Expand Down
Loading

0 comments on commit 49c4c4d

Please sign in to comment.