<commit_before><div *ngIf="myPeer">
  <button (click)="changeIcon()">アイコンを変更する</button>
  <div *ngIf="myPeer.image" class="image contain" [style.background-image]="'url(' + myPeer.image.url + ')' | safe: 'style' "
    (click)="changeIcon()">
    <!--<img *ngIf="myPeer.image" [src]="myPeer.image.url | safe: 'resourceUrl'" />-->
  </div>
  <span>あなたのニックネーム：  <input [(ngModel)]="myPeer.name"  placeholder="ニックネーム" /></span>
</div>
<div>
  <span>あなたのPeer ID：<span *ngIf="networkService.isConnected" style="font-weight: bold;">{{networkService.peerContext.id}}</span>
  <span *ngIf="!networkService.isConnected" style="font-weight: bold;">???</span>
  </span>
</div>
<!--<div>host ID:{{networkService.hostPeerID}}</div>-->
<ng-container *ngIf="18 < networkService.peerId.length">
  <hr/>
  <div>
    <span>ルーム名：<span *ngIf="networkService.isConnected" style="font-weight: bold;">{{networkService.peerContext.roomName}}/{{networkService.peerContext.room}}</span></span>
  </div>
  <div>
    <span>パスワード：<span *ngIf="networkService.isConnected" style="font-weight: bold;">{{networkService.peerContext.password}}</span></span>
  </div>
</ng-container>
<hr/>
<div *ngFor="let conn of networkService.peerContexts">
  <div>
    <span *ngIf="!conn.isOpen">[接続中]</span>
    <span>他のPeer：{{conn.id}} [{{findPeerName(conn.fullstring)}}]</span>
  </div>
</div>
<div>
  <ng-container *ngIf="networkService.peerId.length <= 18">
    <input [(ngModel)]="targetPeerId" placeholder="Peer ID" name="targetPeerId" />
    <button (click)="connectPeer()" [disabled]="!networkService.isConnected">他のPeerと接続</button><br>
  </ng-container>
  <button *ngIf="networkService.peerIds.length <= 1 && 0 < appConfigService.peerHistory.length && !appConfigService.isOpen"
    (click)="connectPeerHistory()">前回接続していたPeerに再接続</button><br>
  <button *ngIf="networkService.peerIds.length <= 1" (click)="showLobby()">ルーム機能を使う</button><commit_msg>fix: Peer接続が出来ない状態では接続ボタンを非アクティブにする<commit_after><div *ngIf="myPeer">
  <button (click)="changeIcon()">アイコンを変更する</button>
  <div *ngIf="myPeer.image" class="image contain" [style.background-image]="'url(' + myPeer.image.url + ')' | safe: 'style' "
    (click)="changeIcon()">
    <!--<img *ngIf="myPeer.image" [src]="myPeer.image.url | safe: 'resourceUrl'" />-->
  </div>
  <span>あなたのニックネーム：  <input [(ngModel)]="myPeer.name"  placeholder="ニックネーム" /></span>
</div>
<div>
  <span>あなたのPeer ID：<span *ngIf="networkService.isConnected" style="font-weight: bold;">{{networkService.peerContext.id}}</span>
  <span *ngIf="!networkService.isConnected" style="font-weight: bold;">???</span>
  </span>
</div>
<!--<div>host ID:{{networkService.hostPeerID}}</div>-->
<ng-container *ngIf="18 < networkService.peerId.length">
  <hr/>
  <div>
    <span>ルーム名：<span *ngIf="networkService.isConnected" style="font-weight: bold;">{{networkService.peerContext.roomName}}/{{networkService.peerContext.room}}</span></span>
  </div>
  <div>
    <span>パスワード：<span *ngIf="networkService.isConnected" style="font-weight: bold;">{{networkService.peerContext.password}}</span></span>
  </div>
</ng-container>
<hr/>
<div *ngFor="let conn of networkService.peerContexts">
  <div>
    <span *ngIf="!conn.isOpen">[接続中]</span>
    <span>他のPeer：{{conn.id}} [{{findPeerName(conn.fullstring)}}]</span>
  </div>
</div>
<div>
  <ng-container *ngIf="networkService.peerId.length <= 18">
    <input [(ngModel)]="targetPeerId" placeholder="Peer ID" name="targetPeerId" />
    <button (click)="connectPeer()" [disabled]="!networkService.isConnected">他のPeerと接続</button><br>
  </ng-container>
  <button *ngIf="networkService.peerIds.length <= 1 && 0 < appConfigService.peerHistory.length && !appConfigService.isOpen"
    (click)="connectPeerHistory()" [disabled]="!networkService.isConnected">前回接続していたPeerに再接続</button><br>
  <button *ngIf="networkService.peerIds.length <= 1" (click)="showLobby()" [disabled]="!networkService.isConnected">ルーム機能を使う</button>
{'fraction_non_alphanumeric': 0.2221938775510204, 'fraction_numerical': 0.0035714285714285713, 'mean_word_length': 6.315298507462686, 'pattern_counts': {'":': 0, '<': 129, '<?xml version=': 0, '>': 119, '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': '5212209', 'n_tokens_mistral': 1519, 'n_tokens_neox': 1470, 'n_words': 188}