<commit_before><div ng-app="app">

  <div ng-controller="parentsCtrl" ng-init="setup(<%= current_user.id %>)">

    <h1>Welcome to your dashboard, {{ first_name }} </h1>

    <h2>Tasks Needing to be Done:</h2>
      <div ng-repeat="child in children" ng-mouseover="hoverIn()" ng-mouseleave="hoverOut()">
        <div>
          {{ child.first_name }}
        </div>
          <div ng-repeat="task in child.incomplete_tasks">
            <span ng-show="hoverTask">
              <ol>
                <div>
                  Task: {{ task.to_do }}
                </div>
                <div>
                  Amount: {{ task.amount_earned }}
                </div>
                <div>
                  Status: {{ task.status }}
                </div>
              </ol>
            </span>
          </div>
        </div>
        

    <h2>Tasks Needing Approval:</h2>
      <div ng-repeat="child in children">
        <div>
          {{ child.first_name }}
        </div>
        <div ng-repeat="task in child.tasks_needing_approval">
            <ol>
              <div>
                Task: {{ task.to_do }}
              </div>
              <div>
                Amount: {{ task.amount_earned }}
              </div>
              <div>
                Status: {{ task.status }}
              </div>
              <button ng-click="approveTask(task.id)">Approve
              </button>
              <button ng-click="incompleteTask(task.id)">Not Actually Complete</button>
            </ol>
        </div>
      </div>

    <h2>Rewards Needing Approval:</h2>
      <div ng-repeat="child in children">
        <div>
          {{ child.first_name }}
        </div>
        <div ng-repeat="reward in child.rewards_needing_approval">
          <ol>
            <div>
              Description: {{ reward.description }}
            </div>
            <div>
              <img ng-src="{{ reward.image_url }}" width="100">
            </div>
            <div>
              Price: {{ reward.amount_cost }}
            </div>
            <button ng-click="approveOrder(reward.id)">Approve</button>
            <button ng-click="cancelOrder(reward.id)">Cancel Order</button>
          </ol>
        </div>
      </div>


    <h3>Set interest rate per day for your children's investments:</h3>
      <div ng-repeat="child in children">
        <ol>
          <div>
            {{ child.first_name }}'s Current Interest Rate: {{ child.interest_rate }}
          </div>
        </ol>
      </div>

    Set Interest Rate: <input ng-model="interestRate">
    <select ng-model="myChild" ng-options="child.email for child in children"></select>
    <button ng-click="addInterestRate(interestRate, myChild)">Save</button>
  </div>
</div><commit_msg>display placeholder text in input field<commit_after><div ng-app="app">

  <div ng-controller="parentsCtrl" ng-init="setup(<%= current_user.id %>)">

    <h1>Welcome to your dashboard, {{ first_name }} </h1>

    <h2>Tasks Needing to be Done:</h2>
      <div ng-repeat="child in children" ng-mouseover="hoverIn()" ng-mouseleave="hoverOut()">
        <div>
          {{ child.first_name }}
        </div>
          <div ng-repeat="task in child.incomplete_tasks">
            <span ng-show="hoverTask">
              <ol>
                <div>
                  Task: {{ task.to_do }}
                </div>
                <div>
                  Amount: {{ task.amount_earned }}
                </div>
                <div>
                  Status: {{ task.status }}
                </div>
              </ol>
            </span>
          </div>
        </div>
        

    <h2>Tasks Needing Approval:</h2>
      <div ng-repeat="child in children">
        <div>
          {{ child.first_name }}
        </div>
        <div ng-repeat="task in child.tasks_needing_approval">
            <ol>
              <div>
                Task: {{ task.to_do }}
              </div>
              <div>
                Amount: {{ task.amount_earned }}
              </div>
              <div>
                Status: {{ task.status }}
              </div>
              <button ng-click="approveTask(task.id)">Approve
              </button>
              <button ng-click="incompleteTask(task.id)">Not Actually Complete</button>
            </ol>
        </div>
      </div>

    <h2>Rewards Needing Approval:</h2>
      <div ng-repeat="child in children">
        <div>
          {{ child.first_name }}
        </div>
        <div ng-repeat="reward in child.rewards_needing_approval">
          <ol>
            <div>
              Description: {{ reward.description }}
            </div>
            <div>
              <img ng-src="{{ reward.image_url }}" width="100">
            </div>
            <div>
              Price: {{ reward.amount_cost }}
            </div>
            <button ng-click="approveOrder(reward.id)">Approve</button>
            <button ng-click="cancelOrder(reward.id)">Cancel Order</button>
          </ol>
        </div>
      </div>


    <h3>Set interest rate per day for your children's investments:</h3>
      <div ng-repeat="child in children">
        <ol>
          <div>
            {{ child.first_name }}'s Current Interest Rate: {{ child.interest_rate }}
          </div>
        </ol>
      </div>

    Set Interest Rate: <input ng-model="interestRate" placeholder="e.g.: 10% = .10">
    <select ng-model="myChild" ng-options="child.first_name for child in children"></select>
    <button ng-click="addInterestRate(interestRate, myChild)">Save</button>
  </div>
</div>
{'fraction_non_alphanumeric': 0.1494501532359834, 'fraction_numerical': 0.005408328826392645, 'mean_word_length': 1.4756804997768853, 'pattern_counts': {'":': 0, '<': 161, '<?xml version=': 0, '>': 161, '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': '2977', 'n_tokens_mistral': 1670, 'n_tokens_neox': 1586, 'n_words': 335}