<commit_before>/*
Copyright 2015 <NAME>, <NAME>, <NAME>

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package edsl

import akka.actor.ActorRef

import scala.collection.mutable


/** Base trait for representing a balance sheet.
  *
  * We think of every actor in the economy as a kind of "bank", in the sense
  * that every actor needs to be monitoring its inflow and outflow of money
  * balances. The current state of represents the current state of its
  * money balances and stores collections of [ContractLike] actors representing
  * contracts which will generate modey inflows (i.e., assets)
  * cash flow events (i.e., receipts of various kinds) as well as liabilities
  * cash flow events (i.e., expenditures of various kinds) over time.
  *
  * A balance sheet represents the state of an economic actor's assets, liabilities, and equity at a particular point in time. In particular, the balance sheet details the balance of cash inflows and cash outflows over the preceding period.
  */
trait BalanceSheetLike {

  /** Unordered collection of tradable objects that are assets. */
  def assets: mutable.Set[ActorRef]

  /** Unordered collection of tradable objects that are liabilities. */
  def liabilities: mutable.Set[ActorRef]<commit_msg>Refreshed the documentation.<commit_after>/*
Copyright 2015 <NAME>, <NAME>, <NAME>

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License
is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
or implied. See the License for the specific language governing permissions and limitations under
the License.
*/
package edsl

import akka.actor.ActorRef

import scala.collection.mutable


/** Base trait for representing a balance sheet.
  *
  * A `BalanceSheetLike` object represents the state of a [[CounterpartyActor]] actor's assets,
  * liabilities, and equity at a point in time. In particular, the balance sheet details the
  * overall balance of incoming payment and outgoing payments for a [[CounterpartyActor]].
  */
trait BalanceSheetLike {

  /** Collection of [[ContractActorLike]] actors that represent assets. */
  def assets: mutable.Set[ActorRef]

  /** Collection of [[ContractActorLike]] actors that represent liabilities. */
  def liabilities: mutable.Set[ActorRef]
{'fraction_non_alphanumeric': 0.06883937479215164, 'fraction_numerical': 0.005320917858330562, 'mean_word_length': 4.352313167259786, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '4256439', 'n_tokens_mistral': 778, 'n_tokens_neox': 738, 'n_words': 395}