<commit_before>sharedMainLayoutScripts: backToLearnOrDefaultSetup
Allow User Abort [ Off ]
Set Error Capture [ On ]
Set Variable [ $$referenceRecordOne ]
Set Variable [ $$referenceSort ]
Set Variable [ $$findMode ]
If [ Left ( $$defaultTagLayout ; 1 ) = "d" ]
#
#Go to testlearn layout and loop back to record.
Set Window Title [ Current Window; New Title: "Setup" ]
Go to Layout [ “defaultSetup” (tempSetup) ]
Show All Records
Delete All Records
[ No dialog ]
New Record/Request
Go to Field [ ]
#
#Check for any dragged changes to tag spellings.
Select Window [ Name: "Tag Menus"; Current file ]
#organ
Perform Find [ Specified Find Requests: Find Records; Criteria: tagMenus::match: “organ” ]
[ Restore ]
#copyist
Extend Found Set [ Specified Find Requests: Find Records; Criteria: tagMenus::match: “copyist” ]
[ Restore ]
#heatlh
Extend Found Set [ Specified Find Requests: Find Records; Criteria: tagMenus::match: “health” ]
[ Restore ]
#node
Extend Found Set [ Specified Find Requests: Find Records; Criteria: tagMenus::match: “node” ]
[ Restore ]
Perform Script [ “insureEqualityOfSpellFields” ]
#
#Go to Learn tag menu layout and loop back to record.
Set Variable [ $$stopAddTagToCitation; Value:1 ]
Go to Layout [ “defaultSections” (ruleSection) ]
Go to Record/Request/Page [ $$defaultRecordNumber ]
[ No dialog ]
Set Variable [ $$stopAddTagToCitation ]
Set Variable [ $$defaultRecordNumber ]
Set Variable [ $$defaultTagLayout ]
Set Variable [ $$citationMatch; Value:"section" ]
Perform Script [ “defaultSectionMenu” ]
Exit Script [ ]
End If
#
#Go to testlearn layout and loop back to record.
Set Variable [ $$stoploadCitation; Value:1 ]
Set Variable [ $$stopLoadTagRecord; Value:1 ]
Set Window Title [ Current Window; New Title: "Learn" ]
If [ tempSetup::layoutLmain = "" ]
Go to Layout [ “learn1” (testlearn) ]
Set Field [ TEMP::layoutLmain; "more" & Get (LayoutName) ]
Else If [ tempSetup::layoutLmain ≠ "" ]
Go to Layout [ Middle ( tempSetup::layoutLmain ; 5 ; 42 ) ]
End If
Enter Find Mode [ ]
Set Field [ testlearn::kcsection; TEMP::ksection ]
Perform Find [ ]
Sort Records [ Specified Sort Order: testlearn::date; descending
testlearn::timestamp; descending ]
[ Restore; No dialog ]
Go to Record/Request/Page
[ First ]
Loop
Exit Loop If [ $$LearnEdit = testlearn::_Ltestlearn ]
Go to Record/Request/Page
[ Next; Exit after last ]
End Loop
Set Variable [ $$stoploadCitation ]
#
#Go to Learn tag menu layout and loop back to record.
Select Window [ Name: "Tag Menus"; Current file ]
#
Go to Layout [ $$learnTagLayout ]
Set Variable [ $$learnTagLayout ]
Set Variable [ $$stopLoadTagRecord ]
If [ $$citeORref = "ref" ]
Perform Script [ “menuReference” ]
Else
Perform Script [ “menuRefAddKeyWords” ]
End If
#
If [ $$citeORref = "cite" ]
Set Variable [ $$citationMatch; Value:"cite" ]
Else If [ $$citeORref = "ref" ]
Set Variable [ $$citationMatch; Value:"ref" ]
End If
Select Window [ Name: "Learn"; Current file ]
#
#Perform Load Citation script to restore conditional
#formatting.
Perform Script [ “loadCitation” ]
January 7, 平成26 18:05:32 Imagination Quality Management.fp7 - backToLearnOrDefaultSetup -1-
<commit_msg>Removed annoying script step from Library Test module<commit_after>sharedMainLayoutScripts: backToLearnOrDefaultSetup
Allow User Abort [ Off ]
Set Error Capture [ On ]
Set Variable [ $$referenceRecordOne ]
Set Variable [ $$referenceSort ]
Set Variable [ $$findMode ]
If [ Left ( $$defaultTagLayout ; 1 ) = "d" ]
#
#Go to testlearn layout and loop back to record.
Set Window Title [ Current Window; New Title: "Setup" ]
Go to Layout [ “defaultSetup” (tempSetup) ]
Show All Records
Delete All Records
[ No dialog ]
New Record/Request
Go to Field [ ]
#
#Check for any dragged changes to tag spellings.
Select Window [ Name: "Tag Menus"; Current file ]
#organ
Perform Find [ Specified Find Requests: Find Records; Criteria: tagMenus::match: “organ” ]
[ Restore ]
#copyist
Extend Found Set [ Specified Find Requests: Find Records; Criteria: tagMenus::match: “copyist” ]
[ Restore ]
#heatlh
Extend Found Set [ Specified Find Requests: Find Records; Criteria: tagMenus::match: “health” ]
[ Restore ]
#node
Extend Found Set [ Specified Find Requests: Find Records; Criteria: tagMenus::match: “node” ]
[ Restore ]
Perform Script [ “insureEqualityOfSpellFields” ]
#
#Go to Learn tag menu layout and loop back to record.
Set Variable [ $$stopAddTagToCitation; Value:1 ]
Go to Layout [ “defaultSections” (ruleSection) ]
Go to Record/Request/Page [ $$defaultRecordNumber ]
[ No dialog ]
Set Variable [ $$stopAddTagToCitation ]
Set Variable [ $$defaultRecordNumber ]
Set Variable [ $$defaultTagLayout ]
Set Variable [ $$citationMatch; Value:"section" ]
Perform Script [ “defaultSectionMenu” ]
Exit Script [ ]
End If
#
#Go to testlearn layout and loop back to record.
Set Variable [ $$stoploadCitation; Value:1 ]
Set Variable [ $$stopLoadTagRecord; Value:1 ]
Set Window Title [ Current Window; New Title: "Learn" ]
If [ tempSetup::layoutLmain = "" ]
Go to Layout [ “learn1” (testlearn) ]
Set Field [ TEMP::layoutLmain; "more" & Get (LayoutName) ]
Else If [ tempSetup::layoutLmain ≠ "" ]
Go to Layout [ Middle ( tempSetup::layoutLmain ; 5 ; 42 ) ]
End If
Enter Find Mode [ ]
Set Field [ testlearn::kcsection; TEMP::ksection ]
Perform Find [ ]
Sort Records [ Specified Sort Order: testlearn::date; descending
testlearn::timestamp; descending ]
[ Restore; No dialog ]
Go to Record/Request/Page
[ First ]
Loop
Exit Loop If [ $$LearnEdit = testlearn::_Ltestlearn ]
Go to Record/Request/Page
[ Next; Exit after last ]
End Loop
Set Variable [ $$stoploadCitation ]
#
#Go to Learn tag menu layout and loop back to record.
Select Window [ Name: "Tag Menus"; Current file ]
#
Go to Layout [ $$learnTagLayout ]
Set Variable [ $$learnTagLayout ]
Set Variable [ $$stopLoadTagRecord ]
If [ $$citeORref = "ref" ]
Perform Script [ “menuReference” ]
Else
#
#NOT SURE WHY this is done, so I am disabling
#for now as it doesn't make sense. Further testing
#is required before it is deleted to determine
#why it was put here in the first place.
// Perform Script [ “menuRefAddKeyWords” ]
End If
#
If [ $$citeORref = "cite" ]
Set Variable [ $$citationMatch; Value:"cite" ]
Else If [ $$citeORref = "ref" ]
Set Variable [ $$citationMatch; Value:"ref" ]
End If
Select Window [ Name: "Learn"; Current file ]
#
#Perform Load Citation script to restore conditional
#formatting.
Perform Script [ “loadCitation” ]
July 3, 平成27 19:39:00 Library.fp7 - backToLearnOrDefaultSetup -1-

{'fraction_non_alphanumeric': 0.11150634085988247, 'fraction_numerical': 0.005876894525208784, 'mean_word_length': 5.021415270018622, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, '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': '1887667', 'n_tokens_mistral': 2058, 'n_tokens_neox': 1949, 'n_words': 743}