Skip to content

Instantly share code, notes, and snippets.

( https://github.com/VOICEVOX/voicevox/pull/2866 用 )
!hiho_get_pr_detail_comments_review_threads 2866
以上が VOICEVOX/voicevox/pull/2866 のPRのやり取りすべてです。
このPRはすでにマージされています。
更に必要な情報があればgithub mcpで取得して下さい。
このPRで未解決なコメントをまとめてissueを作ろうと思います。
もれなく作りたいです。

指示プロンプト(!gh pr diffを実行したあと)

以上が今のブランチとmainブランチとのdiffです。
この実装は変更が2000行ほどあります。100~500行ほどの変更に分けていきたいのですが、どう分けるのが良さそうでしょうか。
コードを熟読してください。READMEも読んでこのプロジェクトの目的も把握しつつ適切な粒度を教えて下さい。
ultrathink

↓結果

@Hiroshiba
Hiroshiba / createProviderAndInjector.ts
Created October 25, 2024 16:45
Vueで、型を指定しつつprovide/injectできる関数を生成する。
import { InjectionKey, provide, inject } from "vue";
/**
* 型を指定しつつprovide/injectできる関数を生成する。
* 親のコンポーネントでprovideを行い、子孫コンポーネントでinjectを行うことで、
* 離れているコンポーネント間のデータの受け渡しが簡単になる。
*
* @example
* // 親コンポーネント
@Hiroshiba
Hiroshiba / hiho_counter_pr.bash
Created October 23, 2024 12:56
プルリクエストに対してプルリクエストを投げるコード
#!/bin/bash
set -euo pipefail
# HEADから過去5回分のコミットを探索し、カウンタープルリクエスト対象のブランチを決定
attempts=5
branches=""
for ((i = 0; i < attempts; i++)); do
commit_ref="HEAD"
for ((j = 0; j < i; j++)); do
@Hiroshiba
Hiroshiba / generate.ipynb
Last active May 20, 2021 21:54
PySide2 Property Generator
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Hiroshiba
Hiroshiba / 01.py
Created April 3, 2021 18:22
きりたん歌唱データベースにjuliusの音素アライメントを適用させるコードメモ
import subprocess
from pathlib import Path
lab = Path("01.lab.txt").read_text()
i = 0
out_labs = []
for l in lab.splitlines():
a, b, c = l.split()
if c == "pau":
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Hiroshiba
Hiroshiba / analyze.py
Created January 11, 2020 16:14
JVSデータでの話者re-identifierの精度評価
from pathlib import Path
import numpy
from scipy.spatial.distance import cdist
def load_vector(path_format: Path):
predicted_vectors = []
true_speaker_nums = []
for speaker_num in range(100):