Skip to content

Commit

Permalink
semantics plugin: rename classvar Plugins -> Instances, add cleanUp
Browse files Browse the repository at this point in the history
  • Loading branch information
LinqLover committed Aug 27, 2023
1 parent e62b870 commit 5d6466c
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
initialize-release
cleanUp: aggressive

aggressive = true ifTrue:
[Instances := nil].
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
accessing
for: aConversationBrowser

^ self plugins at: aConversationBrowser ifAbsentPut:
^ self instances at: aConversationBrowser ifAbsentPut:
[self newFor: aConversationBrowser]
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
accessing
instances

^ Instances ifNil:
[Instances := WeakKeyDictionary new.
WeakArray addWeakDependent: Instances.
Instances]

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"class" : {
"for:" : "ct 8/21/2023 02:15",
"cleanUp:" : "ct 8/27/2023 20:54",
"for:" : "ct 8/27/2023 20:50",
"instances" : "ct 8/27/2023 20:49",
"newFor:" : "ct 8/21/2023 02:15",
"plugins" : "ct 8/26/2023 00:09",
"semanticConversationConfig" : "ct 8/21/2023 02:27",
"shouldIncludeSimilarConversations" : "ct 8/21/2023 03:06",
"shouldIncludeSmartSummary" : "ct 8/26/2023 02:39",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
],
"classvars" : [
"ConversationConfig",
"Plugins",
"Instances",
"ShouldIncludeSmartSummary" ],
"commentStamp" : "ct 8/26/2023 01:11",
"instvars" : [
Expand Down

0 comments on commit 5d6466c

Please sign in to comment.