<commit_before><!DOCTYPE html>
<html ng-app>
  <head>
    <meta charset="utf-8">
    <script src="//ajax.googleapis.com/ajax/libs/angularjs/1.0.4/angular.min.js"></script>
    <script src="js/main.js"></script>
    <link rel="stylesheet" href="css/main.css">
    <title>Form</title>
  </head>
  <body>
    <h1>AngularJS Example: Form</h1>
    <form id="signupForm" name="form" ng-controller="SignupForm.Controller" ng-submit="submit()" novalidate>
      <p class="form-question">ログインID:</p>
      <div class="form-answer">
        <input type="text" name="username" ng-model="data.username"
          ng-minlength="8" ng-maxlength="16" ng-pattern="/^[a-zA-Z0-9]*$/" required>
        <span class="error" ng-show="form.username.$error.pattern">
          半角英数字のみで入力してください
        </span>
        <span class="error" ng-show="form.username.$error.minlength">
          8文字以上で入力してください
        </span>
        <span class="error" ng-show="form.username.$error.maxlength">
          16文字以内で入力してください
        </span>
        <span class="error" ng-show="form.username.$error.required">
          入力してください
        </span>
        <span class="valid" ng-show="form.username.$valid">
          OK
        </span>
      </div>

      <p class="form-question">パスワード:</p>
      <div class="form-answer">
        <input type="{{textOrPassword()}}" name="password" ng-model="data.password"
          ng-minlength="8" ng-maxlength="16" ng-pattern="/^[a-zA-Z0-9]*$/" required>
        <span class="valid" ng-show="form.password.$valid">OK</span>
        <span class="error" ng-show="form.password.$error.pattern">
          半角英数字のみで入力してください
        </span>
        <span class="error" ng-show="form.password.$error.minlength">
          8文字以上で入力してください
        </span>
        <span class="error" ng-show="form.password.$error.maxlength">
          16文字以内で入力してください
        </span>
        <span class="error" ng-show="form.password.$error.required">
          入力してください
        </span>
        <br>
        <input type="checkbox" id="passwordVisible" ng-model="passwordVisible">
        <label for="passwordVisible">パスワードを表示する</label>
      </div>

      <p class="form-question">氏名:</p>
      <div class="form-answer">
        <input type="text" name="lastName" ng-model="data.name.lastName"
          class="name" placeholder="姓" required>
        <input type="text" name="firstName" ng-model="data.name.firstName"
          class="name" placeholder="名" required>
        <span class="error"
          ng-show="form.firstName.$error.required || form.lastName.$error.required">
          入力してください
        </span>
        <span class="valid"
          ng-show="form.firstName.$valid &amp;&amp; form.lastName.$valid">
          OK
        </span>
      </div>

      <p class="form-question">フリガナ:</p>
      <div class="form-answer">
        <input type="text" name="phoneticLastName" class="name" placeholder="セイ"
          ng-model="data.name.phoneticLastName" ng-pattern="/^[ァ-ヶー]*$/" required>
        <input type="text" name="phoneticFirstName" class="name" placeholder="メイ"
          ng-model="data.name.phoneticFirstName" ng-pattern="/^[ァ-ヶー]*$/" required>
        <span class="error"
          ng-show="form.phoneticFirstName.$error.pattern || form.phoneticLastName.$error.pattern">
          カタカナで入力してください
        </span>
        <span class="error"
          ng-show="form.phoneticFirstName.$error.required || form.phoneticLastName.$error.required">
          入力してください
        </span>
        <span class="valid"
          ng-show="form.phoneticFirstName.$valid &amp;&amp; form.phoneticLastName.$valid">
          OK
        </span>
      </div>

      <p class="form-question">好きなプログラミング言語:</p>
      <div class="form-answer">
        <select name="lang" ng-model="data.lang"
          ng-options="x.id as x.label for x in langs" required>
          <option value="">----------------</option>
        </select>
        <span class="error" ng-show="form.lang.$error.required">選択してください</span>
        <span class="valid" ng-show="form.lang.$valid">OK</span>
      </div>

      <p class="form-question">好きな色:</p>
      <ul>
        <li ng-repeat="x in colors">
          <input type="radio" id="browser-{{x.id}}" value="{{x.id}}" ng-model="data.color">
          <label for="browser-{{x.id}}">{{x.label}}</label>
        </li>
      </ul>

      <p class="form-question">好きな球技（任意回答・複数可）:</p>
      <ul>
        <li ng-repeat="x in ballGames">
          <input type="checkbox" id="ballGame-{{x.id}}" value="{{x.id}}"
            ng-model="data.ballGame[x.id]" ng-required="isBallGameSelected()">
          <label for="ballGame-{{x.id}}">{{x.label}}</label>
        </li>
      </ul>

      <p class="form-question">メールアドレス:</p>
      <div class="form-answer">
        <input type="email" name="email" ng-model="data.email" required>
        <span class="error" ng-show="form.email.$error.email"><commit_msg>不要となった記述が残っていたので削除した<commit_after><!DOCTYPE html>
<html ng-app>
  <head>
    <meta charset="utf-8">
    <script src="//ajax.googleapis.com/ajax/libs/angularjs/1.0.4/angular.min.js"></script>
    <script src="js/main.js"></script>
    <link rel="stylesheet" href="css/main.css">
    <title>Form</title>
  </head>
  <body>
    <h1>AngularJS Example: Form</h1>
    <form id="signupForm" name="form" ng-controller="SignupForm.Controller" ng-submit="submit()" novalidate>
      <p class="form-question">ログインID:</p>
      <div class="form-answer">
        <input type="text" name="username" ng-model="data.username"
          ng-minlength="8" ng-maxlength="16" ng-pattern="/^[a-zA-Z0-9]*$/" required>
        <span class="error" ng-show="form.username.$error.pattern">
          半角英数字のみで入力してください
        </span>
        <span class="error" ng-show="form.username.$error.minlength">
          8文字以上で入力してください
        </span>
        <span class="error" ng-show="form.username.$error.maxlength">
          16文字以内で入力してください
        </span>
        <span class="error" ng-show="form.username.$error.required">
          入力してください
        </span>
        <span class="valid" ng-show="form.username.$valid">
          OK
        </span>
      </div>

      <p class="form-question">パスワード:</p>
      <div class="form-answer">
        <input type="{{textOrPassword()}}" name="password" ng-model="data.password"
          ng-minlength="8" ng-maxlength="16" ng-pattern="/^[a-zA-Z0-9]*$/" required>
        <span class="valid" ng-show="form.password.$valid">OK</span>
        <span class="error" ng-show="form.password.$error.pattern">
          半角英数字のみで入力してください
        </span>
        <span class="error" ng-show="form.password.$error.minlength">
          8文字以上で入力してください
        </span>
        <span class="error" ng-show="form.password.$error.maxlength">
          16文字以内で入力してください
        </span>
        <span class="error" ng-show="form.password.$error.required">
          入力してください
        </span>
        <br>
        <input type="checkbox" id="passwordVisible" ng-model="passwordVisible">
        <label for="passwordVisible">パスワードを表示する</label>
      </div>

      <p class="form-question">氏名:</p>
      <div class="form-answer">
        <input type="text" name="lastName" ng-model="data.name.lastName"
          class="name" placeholder="姓" required>
        <input type="text" name="firstName" ng-model="data.name.firstName"
          class="name" placeholder="名" required>
        <span class="error"
          ng-show="form.firstName.$error.required || form.lastName.$error.required">
          入力してください
        </span>
        <span class="valid"
          ng-show="form.firstName.$valid &amp;&amp; form.lastName.$valid">
          OK
        </span>
      </div>

      <p class="form-question">フリガナ:</p>
      <div class="form-answer">
        <input type="text" name="phoneticLastName" class="name" placeholder="セイ"
          ng-model="data.name.phoneticLastName" ng-pattern="/^[ァ-ヶー]*$/" required>
        <input type="text" name="phoneticFirstName" class="name" placeholder="メイ"
          ng-model="data.name.phoneticFirstName" ng-pattern="/^[ァ-ヶー]*$/" required>
        <span class="error"
          ng-show="form.phoneticFirstName.$error.pattern || form.phoneticLastName.$error.pattern">
          カタカナで入力してください
        </span>
        <span class="error"
          ng-show="form.phoneticFirstName.$error.required || form.phoneticLastName.$error.required">
          入力してください
        </span>
        <span class="valid"
          ng-show="form.phoneticFirstName.$valid &amp;&amp; form.phoneticLastName.$valid">
          OK
        </span>
      </div>

      <p class="form-question">好きなプログラミング言語:</p>
      <div class="form-answer">
        <select name="lang" ng-model="data.lang"
          ng-options="x.id as x.label for x in langs" required>
          <option value="">----------------</option>
        </select>
        <span class="error" ng-show="form.lang.$error.required">選択してください</span>
        <span class="valid" ng-show="form.lang.$valid">OK</span>
      </div>

      <p class="form-question">好きな色:</p>
      <ul>
        <li ng-repeat="x in colors">
          <input type="radio" id="browser-{{x.id}}" value="{{x.id}}" ng-model="data.color">
          <label for="browser-{{x.id}}">{{x.label}}</label>
        </li>
      </ul>

      <p class="form-question">好きな球技（任意回答・複数可）:</p>
      <ul>
        <li ng-repeat="x in ballGames">
          <input type="checkbox" id="ballGame-{{x.id}}" value="{{x.id}}" ng-model="data.ballGame[x.id]">
          <label for="ballGame-{{x.id}}">{{x.label}}</label>
        </li>
      </ul>

      <p class="form-question">メールアドレス:</p>
      <div class="form-answer">
        <input type="email" name="email" ng-model="data.email" required>
        <span class="error" ng-show="form.email.$error.email">
{'fraction_non_alphanumeric': 0.18933333333333333, 'fraction_numerical': 0.0045128205128205125, 'mean_word_length': 2.549690571532581, 'pattern_counts': {'":': 0, '<': 217, '<?xml version=': 0, '>': 217, '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': '6849205', 'n_tokens_mistral': 3466, 'n_tokens_neox': 3386, 'n_words': 496}