code stringlengths 3 6.57k |
|---|
testVocabSize(self) |
self.assertEqual(expected, encoder.vocab_size) |
CompositeScoreEncoderTest(tf.test.TestCase) |
testEncodeNoteSequence(self) |
music_encoders.TextChordsEncoder(steps_per_quarter=4) |
music_pb2.NoteSequence() |
ns.tempos.add(qpm=60) |
testing_lib.add_chords_to_sequence(ns, [('C', 0.5) |
zip(*encoder.encode_note_sequence(ns) |
ON(60) |
ON(62) |
HOLD(62) |
OFF(62) |
ON(64) |
HOLD(64) |
HOLD(64) |
self.assertEqual(expected_chord_ids, list(chord_ids) |
self.assertEqual(expected_melody_ids, list(melody_ids) |
TODO(iansimon) |
testVocabSize(self) |
music_encoders.TextChordsEncoder(steps_per_quarter=4) |
self.assertEqual([51, 92], encoder.vocab_size) |
tf.test.main() |
anyscale (if they don’t exist yet) |
Status (finished, error, timeout, invalid) |
logs (50 lines) |
results (see above) |
artifacts (links to s3 files) |
test (e.g. name, command to run, timeout) |
accept (or ignore) |
os.environ.get("RAY_ADDRESS", "auto") |
tested (e.g. latest master wheels) |
default("ray") |
user
(e.g. by setting the respective environment variables obtained from go/aws) |
ANYSCALE_CLI_TOKEN (should contain your anyscale credential token) |
ANYSCALE_PROJECT (should point to a project ID you have access to) |
number (usually `time.time() |
logging.getLogger() |
logger.setLevel(logging.INFO) |
logging.StreamHandler(stream=sys.stdout) |
logging.Formatter(fmt="[%(levelname) |
handler.setFormatter(formatter) |
logger.addHandler(handler) |
getenv_default(key: str, default: Optional[str] = None) |
os.environ.get(key, None) |
getenv_default("ANYSCALE_CLI_TOKEN") |
getenv_default("ANYSCALE_PROJECT", "") |
getenv_default("RAY_VERSION", "2.0.0.dev0") |
getenv_default("RAY_BRANCH", "master") |
getenv_default("RELEASE_AWS_LOCATION", "dev") |
getenv_default("RELEASE_AWS_DB_NAME", "ray_ci") |
str(datetime.datetime.now() |
strftime("%Y%m%d") |
str(int(datetime.datetime.now() |
timestamp() |
str((datetime.datetime.now() |
datetime.timedelta(days=1) |
strftime("%Y-%m-%d") |
str((datetime.datetime.now() |
datetime.timedelta(days=2) |
strftime("%Y-%m-%d") |
str((datetime.datetime.now() |
datetime.timedelta(days=3) |
strftime("%Y-%m-%d") |
f() |
time.sleep(retry_delay_s) |
maybe_fetch_api_token() |
NOTE(simon) |
PrepareCommandRuntimeError(RuntimeError) |
ReleaseTestTimeoutError(RuntimeError) |
SessionTimeoutError(ReleaseTestTimeoutError) |
FileSyncTimeoutError(ReleaseTestTimeoutError) |
CommandTimeoutError(ReleaseTestTimeoutError) |
PrepareCommandTimeoutError(ReleaseTestTimeoutError) |
AppConfigBuildFailure(RuntimeError) |
__init__(self, state: str, timestamp: float, data: Any) |
sys.path.insert(0, anyscale.ANYSCALE_RAY_DIR) |
anyscale_project_url(project_id: str) |
anyscale_session_url(project_id: str, session_id: str) |
anyscale_compute_tpl_url(compute_tpl_id: str) |
anyscale_app_config_build_url(build_id: str) |
wheel_url(ray_version, git_branch, git_commit) |
wheel_exists(ray_version, git_branch, git_commit) |
wheel_url(ray_version, git_branch, git_commit) |
requests.head(url) |
get_latest_commits(repo: str, branch: str = "master") |
os.getcwd() |
tempfile.TemporaryDirectory() |
os.chdir(tmpdir) |
subprocess.check_output(clone_cmd) |
subprocess.check_output(log_cmd) |
split("\n") |
os.chdir(cur) |
find_ray_wheels(repo: str, branch: str, version: str) |
get_latest_commits(repo, branch) |
logger.info(f"Latest 10 commits for branch {branch}: {commits}") |
wheel_exists(version, branch, commit) |
wheel_url(version, branch, commit) |
populate_wheels_sanity_check(commit: Optional[str] = None) |
_check_stop(stop_event: multiprocessing.Event, timeout_type: str) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.