<commit_before>package bio.terra.workspace.service.workspace;

import bio.terra.workspace.service.iam.model.IamRole;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableMap;
import java.util.List;

public class CloudSyncRoleMapping {
  public static final ImmutableMap<IamRole, List<String>> cloudSyncRoleMap =
      ImmutableMap.of(
          IamRole.OWNER,
              ImmutableList.of(
                  "roles/viewer",
                  "roles/bigquery.dataEditor",
                  "roles/lifesciences.editor",
                  "roles/storage.objectAdmin"),
          IamRole.WRITER,
              ImmutableList.of(
                  "roles/viewer",
                  "roles/bigquery.dataEditor",
                  "roles/lifesciences.editor",
                  "roles/storage.objectAdmin"),
          IamRole.READER, ImmutableList.of("roles/viewer"));
}<commit_msg>Temporarily add 'roles/notebooks.admin' for workspace owners and writers. (#200)<commit_after>package bio.terra.workspace.service.workspace;

import bio.terra.workspace.service.iam.model.IamRole;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableMap;
import java.util.List;

public class CloudSyncRoleMapping {
  public static final ImmutableMap<IamRole, List<String>> cloudSyncRoleMap =
      ImmutableMap.of(
          IamRole.OWNER,
              ImmutableList.of(
                  "roles/viewer",
                  "roles/bigquery.dataEditor",
                  "roles/lifesciences.editor",
                  // TODO(wchambers): Revise notebooks permissions when there are controlled resources for notebooks.
                  "roles/notebooks.admin",
                  "roles/storage.objectAdmin"),
          IamRole.WRITER,
              ImmutableList.of(
                  "roles/viewer",
                  "roles/bigquery.dataEditor",
                  "roles/lifesciences.editor",
                  // TODO(wchambers): Revise notebooks permissions when there are controlled resources for notebooks.
                  "roles/notebooks.admin",
                  "roles/storage.objectAdmin"),
          IamRole.READER, ImmutableList.of("roles/viewer"));
}
{'fraction_non_alphanumeric': 0.10022573363431152, 'fraction_numerical': 0.0013544018058690745, 'mean_word_length': 2.165714285714286, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '261620', 'n_tokens_mistral': 644, 'n_tokens_neox': 616, 'n_words': 100}