text
stringlengths
5
22M
id
stringlengths
12
177
metadata
dict
__index_level_0__
int64
0
1.37k
# coding=utf-8 # Copyright (c) Facebook, Inc. and its affiliates. # Copyright (c) HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses...
AdaMix/examples/research_projects/mm-imdb/utils_mmimdb.py/0
{ "file_path": "AdaMix/examples/research_projects/mm-imdb/utils_mmimdb.py", "repo_id": "AdaMix", "token_count": 2032 }
39
# coding=utf-8 # Copyright 2018 The Google Flax Team Authors and The HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 ...
AdaMix/examples/research_projects/performer/modeling_flax_performer.py/0
{ "file_path": "AdaMix/examples/research_projects/performer/modeling_flax_performer.py", "repo_id": "AdaMix", "token_count": 9147 }
40
import logging import os from typing import List, Tuple import numpy as np import psutil import torch import torch.distributed as dist from transformers import RagRetriever logger = logging.getLogger(__name__) class RagPyTorchDistributedRetriever(RagRetriever): """ A distributed retriever built on top of ...
AdaMix/examples/research_projects/rag/distributed_pytorch_retriever.py/0
{ "file_path": "AdaMix/examples/research_projects/rag/distributed_pytorch_retriever.py", "repo_id": "AdaMix", "token_count": 2561 }
41
import argparse import logging import os import sys import tempfile from pathlib import Path import pytest import pytorch_lightning as pl import torch import lightning_base from convert_pl_checkpoint_to_hf import convert_pl_to_hf from distillation import distill_main from finetune import SummarizationModule, main fro...
AdaMix/examples/research_projects/seq2seq-distillation/_test_seq2seq_examples.py/0
{ "file_path": "AdaMix/examples/research_projects/seq2seq-distillation/_test_seq2seq_examples.py", "repo_id": "AdaMix", "token_count": 7867 }
42
#!/usr/bin/env python # coding=utf-8 # Copyright 2021 The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE...
AdaMix/examples/seq2seq/run_summarization.py/0
{ "file_path": "AdaMix/examples/seq2seq/run_summarization.py", "repo_id": "AdaMix", "token_count": 10001 }
43
#!/usr/bin/env python # coding=utf-8 # Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team. # Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. ...
AdaMix/examples/text-classification/run_xnli.py/0
{ "file_path": "AdaMix/examples/text-classification/run_xnli.py", "repo_id": "AdaMix", "token_count": 5328 }
44
#!/usr/bin/env bash # Copyright 2020 The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless r...
AdaMix/scripts/fsmt/convert-facebook-wmt19.sh/0
{ "file_path": "AdaMix/scripts/fsmt/convert-facebook-wmt19.sh", "repo_id": "AdaMix", "token_count": 1121 }
45
# Copyright 2020 The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
AdaMix/setup.py/0
{ "file_path": "AdaMix/setup.py", "repo_id": "AdaMix", "token_count": 4252 }
46
# Copyright 2020 The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
AdaMix/src/transformers/commands/run.py/0
{ "file_path": "AdaMix/src/transformers/commands/run.py", "repo_id": "AdaMix", "token_count": 1668 }
47
# Copyright 2020 The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
AdaMix/src/transformers/data/datasets/glue.py/0
{ "file_path": "AdaMix/src/transformers/data/datasets/glue.py", "repo_id": "AdaMix", "token_count": 2636 }
48
# Copyright 2020 The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
AdaMix/src/transformers/data/test_generation_utils.py/0
{ "file_path": "AdaMix/src/transformers/data/test_generation_utils.py", "repo_id": "AdaMix", "token_count": 1576 }
49
# Copyright 2020 The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
AdaMix/src/transformers/modeling_outputs.py/0
{ "file_path": "AdaMix/src/transformers/modeling_outputs.py", "repo_id": "AdaMix", "token_count": 19277 }
50
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team. # Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a cop...
AdaMix/src/transformers/models/albert/configuration_albert.py/0
{ "file_path": "AdaMix/src/transformers/models/albert/configuration_albert.py", "repo_id": "AdaMix", "token_count": 3191 }
51
# flake8: noqa # There's no way to ignore "F401 '...' imported but unused" warnings in this # module, but to preserve other warnings. So, don't check this module at all. # Copyright 2020 The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use thi...
AdaMix/src/transformers/models/bart/__init__.py/0
{ "file_path": "AdaMix/src/transformers/models/bart/__init__.py", "repo_id": "AdaMix", "token_count": 1095 }
52
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICEN...
AdaMix/src/transformers/models/bert/tokenization_bert_fast.py/0
{ "file_path": "AdaMix/src/transformers/models/bert/tokenization_bert_fast.py", "repo_id": "AdaMix", "token_count": 6104 }
53
# coding=utf-8 # Copyright (c) 2020, VinAI Research and the HuggingFace Inc. team. # Copyright 2018 The Open AI Team Authors and The HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of th...
AdaMix/src/transformers/models/bertweet/tokenization_bertweet.py/0
{ "file_path": "AdaMix/src/transformers/models/bertweet/tokenization_bertweet.py", "repo_id": "AdaMix", "token_count": 12344 }
54
# coding=utf-8 # Copyright 2019-present, the HuggingFace Inc. team, The Google AI Language Team and Facebook, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.or...
AdaMix/src/transformers/models/distilbert/modeling_distilbert.py/0
{ "file_path": "AdaMix/src/transformers/models/distilbert/modeling_distilbert.py", "repo_id": "AdaMix", "token_count": 16846 }
55
# coding=utf-8 # Copyright 2020 The HuggingFace Inc. team. # Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.a...
AdaMix/src/transformers/models/encoder_decoder/configuration_encoder_decoder.py/0
{ "file_path": "AdaMix/src/transformers/models/encoder_decoder/configuration_encoder_decoder.py", "repo_id": "AdaMix", "token_count": 1807 }
56
# coding=utf-8 # Copyright 2020 The HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
AdaMix/src/transformers/models/funnel/tokenization_funnel_fast.py/0
{ "file_path": "AdaMix/src/transformers/models/funnel/tokenization_funnel_fast.py", "repo_id": "AdaMix", "token_count": 2921 }
57
# Copyright 2021 The Fairseq Authors and The HuggingFace Inc. team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # #...
AdaMix/src/transformers/models/m2m_100/tokenization_m2m_100.py/0
{ "file_path": "AdaMix/src/transformers/models/m2m_100/tokenization_m2m_100.py", "repo_id": "AdaMix", "token_count": 6314 }
58
# coding=utf-8 # Copyright 2020 The HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
AdaMix/src/transformers/models/prophetnet/convert_prophetnet_original_pytorch_checkpoint_to_pytorch.py/0
{ "file_path": "AdaMix/src/transformers/models/prophetnet/convert_prophetnet_original_pytorch_checkpoint_to_pytorch.py", "repo_id": "AdaMix", "token_count": 3111 }
59
# coding=utf-8 # Copyright 2019-present, the HuggingFace Inc. team, The Google AI Language Team and Facebook, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.or...
AdaMix/src/transformers/models/retribert/modeling_retribert.py/0
{ "file_path": "AdaMix/src/transformers/models/retribert/modeling_retribert.py", "repo_id": "AdaMix", "token_count": 3881 }
60
# flake8: noqa # There's no way to ignore "F401 '...' imported but unused" warnings in this # module, but to preserve other warnings. So, don't check this module at all. # Copyright 2021 The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use thi...
AdaMix/src/transformers/models/speech_to_text/__init__.py/0
{ "file_path": "AdaMix/src/transformers/models/speech_to_text/__init__.py", "repo_id": "AdaMix", "token_count": 1001 }
61
# coding=utf-8 # Copyright 2018 T5 Authors and HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by...
AdaMix/src/transformers/models/t5/tokenization_t5_fast.py/0
{ "file_path": "AdaMix/src/transformers/models/t5/tokenization_t5_fast.py", "repo_id": "AdaMix", "token_count": 3701 }
62
# coding=utf-8 # Copyright 2018 Google AI, Google Brain and Carnegie Mellon University Authors and the HuggingFace Inc. team. # Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the Lice...
AdaMix/src/transformers/models/transfo_xl/configuration_transfo_xl.py/0
{ "file_path": "AdaMix/src/transformers/models/transfo_xl/configuration_transfo_xl.py", "repo_id": "AdaMix", "token_count": 3312 }
63
# coding=utf-8 # Copyright 2021 The HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
AdaMix/src/transformers/models/wav2vec2/processing_wav2vec2.py/0
{ "file_path": "AdaMix/src/transformers/models/wav2vec2/processing_wav2vec2.py", "repo_id": "AdaMix", "token_count": 2952 }
64
from typing import TYPE_CHECKING, Optional, Union from ..modelcard import ModelCard from ..tokenization_utils import PreTrainedTokenizer from .base import ArgumentHandler, Pipeline if TYPE_CHECKING: from ..modeling_tf_utils import TFPreTrainedModel from ..modeling_utils import PreTrainedModel # Can't use @...
AdaMix/src/transformers/pipelines/feature_extraction.py/0
{ "file_path": "AdaMix/src/transformers/pipelines/feature_extraction.py", "repo_id": "AdaMix", "token_count": 1402 }
65
# coding=utf-8 # Copyright 2020-present the HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ap...
AdaMix/src/transformers/trainer.py/0
{ "file_path": "AdaMix/src/transformers/trainer.py", "repo_id": "AdaMix", "token_count": 42179 }
66
{ "modelname": "Template", "uppercase_modelname": "TEMPLATE", "lowercase_modelname": "template", "camelcase_modelname": "Template", "authors": "The HuggingFace Team", "checkpoint_identifier": "brand-new-bert-base-cased", "tokenizer_type": "Based on BERT", "generate_tensorflow_and_pytorch": "PyTorch & Te...
AdaMix/templates/adding_a_new_model/tests/encoder-bert-tokenizer.json/0
{ "file_path": "AdaMix/templates/adding_a_new_model/tests/encoder-bert-tokenizer.json", "repo_id": "AdaMix", "token_count": 142 }
67
# coding=utf-8 # Copyright 2020 The HuggingFace Team Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a clone of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
AdaMix/tests/test_generation_utils.py/0
{ "file_path": "AdaMix/tests/test_generation_utils.py", "repo_id": "AdaMix", "token_count": 32147 }
68
# coding=utf-8 # Copyright 2021 The HuggingFace Inc. team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless r...
AdaMix/tests/test_modeling_convbert.py/0
{ "file_path": "AdaMix/tests/test_modeling_convbert.py", "repo_id": "AdaMix", "token_count": 8441 }
69
# coding=utf-8 # Copyright 2018 The Microsoft Research Asia LayoutLM Team Authors, The Hugging Face Team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/license...
AdaMix/tests/test_modeling_layoutlm.py/0
{ "file_path": "AdaMix/tests/test_modeling_layoutlm.py", "repo_id": "AdaMix", "token_count": 6762 }
70
# coding=utf-8 # Copyright 2021 The HuggingFace Inc. team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless r...
AdaMix/tests/test_modeling_speech_to_text.py/0
{ "file_path": "AdaMix/tests/test_modeling_speech_to_text.py", "repo_id": "AdaMix", "token_count": 14251 }
71
# coding=utf-8 # Copyright 2020 Huggingface # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed ...
AdaMix/tests/test_modeling_tf_dpr.py/0
{ "file_path": "AdaMix/tests/test_modeling_tf_dpr.py", "repo_id": "AdaMix", "token_count": 4521 }
72
import json import os import shutil import tempfile import unittest from unittest.mock import patch import numpy as np from transformers import BartTokenizer from transformers.file_utils import cached_property, is_datasets_available, is_faiss_available, is_tf_available from transformers.models.bert.tokenization_bert ...
AdaMix/tests/test_modeling_tf_rag.py/0
{ "file_path": "AdaMix/tests/test_modeling_tf_rag.py", "repo_id": "AdaMix", "token_count": 19383 }
73
# Copyright 2020 The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
AdaMix/tests/test_optimization_tf.py/0
{ "file_path": "AdaMix/tests/test_optimization_tf.py", "repo_id": "AdaMix", "token_count": 1782 }
74
# Copyright 2020 The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
AdaMix/tests/test_retrieval_rag.py/0
{ "file_path": "AdaMix/tests/test_retrieval_rag.py", "repo_id": "AdaMix", "token_count": 7696 }
75
# coding=utf-8 # Copyright 2019 Hugging Face inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
AdaMix/tests/test_tokenization_deberta_v2.py/0
{ "file_path": "AdaMix/tests/test_tokenization_deberta_v2.py", "repo_id": "AdaMix", "token_count": 3660 }
76
# coding=utf-8 # Copyright 2018 Salesforce and HuggingFace Inc. team. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
AdaMix/tests/test_tokenization_phobert.py/0
{ "file_path": "AdaMix/tests/test_tokenization_phobert.py", "repo_id": "AdaMix", "token_count": 1159 }
77
# coding=utf-8 # Copyright 2020 The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requir...
AdaMix/tests/test_tokenization_xlnet.py/0
{ "file_path": "AdaMix/tests/test_tokenization_xlnet.py", "repo_id": "AdaMix", "token_count": 3308 }
78
""" Script for downloading all GLUE data. Original source: https://gist.github.com/W4ngatang/60c2bdb54d156a41194446737ce03e2e Note: for legal reasons, we are unable to host MRPC. You can either use the version hosted by the SentEval team, which is already tokenized, or you can download the original data from (https://...
AdaMix/utils/download_glue_data.py/0
{ "file_path": "AdaMix/utils/download_glue_data.py", "repo_id": "AdaMix", "token_count": 3870 }
79
# !bin/bash # **Usage** # - for running default image, training binaries, in windowed mode: # `$ ./run_docker_image.sh "" training` # - for running default image, training binaries, in headless mode: # `$ ./run_docker_image.sh "" training headless` # - for running a custom image in windowed mode, pass...
AirSim-Drone-Racing-Lab/docker/run_docker_image.sh/0
{ "file_path": "AirSim-Drone-Racing-Lab/docker/run_docker_image.sh", "repo_id": "AirSim-Drone-Racing-Lab", "token_count": 1017 }
80
import tensorflow as tf from tensorflow.keras import Model from tensorflow.keras.layers import Dense, Flatten, Conv2D, BatchNormalization, Lambda, Concatenate, Conv2DTranspose, Reshape, ReLU class NonLinearTransformer(Model): def __init__(self): super(NonLinearTransformer, self).__init__() self.cre...
AirSim-Drone-Racing-VAE-Imitation/racing_models/transformer.py/0
{ "file_path": "AirSim-Drone-Racing-VAE-Imitation/racing_models/transformer.py", "repo_id": "AirSim-Drone-Racing-VAE-Imitation", "token_count": 717 }
81
#!/bin/sh # This script builds wheels for the API, SDK, and extension packages in the # dist/ dir, to be uploaded to PyPI. set -ev # Get the latest versions of packaging tools python -m pip install --upgrade pip build setuptools wheel BASEDIR=$(dirname $(readlink -f $(dirname $0))) DISTDIR=dist ( cd $BASEDIR m...
ApplicationInsights-Python/scripts/build.sh/0
{ "file_path": "ApplicationInsights-Python/scripts/build.sh", "repo_id": "ApplicationInsights-Python", "token_count": 256 }
82
{ "MD004": false, "MD007": { "indent": 2 }, "MD013": { "line_length": 400 }, "MD026": { "punctuation": ".,;:!。,;:" }, "MD029": false, "MD033": false, "MD036": false, "blank_lines": false }
AzureTRE/.markdownlint.json/0
{ "file_path": "AzureTRE/.markdownlint.json", "repo_id": "AzureTRE", "token_count": 115 }
83
{ "scriptFile": "__init__.py", "entryPoint": "main", "bindings": [ { "name": "msg", "type": "serviceBusTrigger", "direction": "in", "topicName": "%BLOB_CREATED_TOPIC_NAME%", "subscriptionName": "%TOPIC_SUBSCRIPTION_NAME%", "connection": "SB_CONNECTION_STRING" }, { ...
AzureTRE/airlock_processor/BlobCreatedTrigger/function.json/0
{ "file_path": "AzureTRE/airlock_processor/BlobCreatedTrigger/function.json", "repo_id": "AzureTRE", "token_count": 378 }
84
# RG CORE_RESOURCE_GROUP_NAME = "rg-{}" WORKSPACE_RESOURCE_GROUP_NAME = "rg-{}-ws-{}" IMPORT_TYPE = "import" EXPORT_TYPE = "export" # Import STORAGE_ACCOUNT_NAME_IMPORT_EXTERNAL = "stalimex" STORAGE_ACCOUNT_NAME_IMPORT_INPROGRESS = "stalimip" STORAGE_ACCOUNT_NAME_IMPORT_APPROVED = "stalimappws" STORAGE_ACCOUNT_NAME_IM...
AzureTRE/airlock_processor/shared_code/constants.py/0
{ "file_path": "AzureTRE/airlock_processor/shared_code/constants.py", "repo_id": "AzureTRE", "token_count": 609 }
85
import asyncio from fastapi import APIRouter, Depends, HTTPException, Header, status, Response from jsonschema.exceptions import ValidationError from db.repositories.operations import OperationRepository from db.errors import DuplicateEntity, MajorVersionUpdateDenied, UserNotAuthorizedToUseTemplate, TargetTemplateVer...
AzureTRE/api_app/api/routes/shared_services.py/0
{ "file_path": "AzureTRE/api_app/api/routes/shared_services.py", "repo_id": "AzureTRE", "token_count": 3867 }
86
import copy import uuid from datetime import datetime from typing import List, Optional from pydantic import UUID4 from azure.cosmos.exceptions import CosmosResourceNotFoundError, CosmosAccessConditionFailedError from fastapi import HTTPException, status from pydantic import parse_obj_as from models.domain.authenticat...
AzureTRE/api_app/db/repositories/airlock_requests.py/0
{ "file_path": "AzureTRE/api_app/db/repositories/airlock_requests.py", "repo_id": "AzureTRE", "token_count": 4302 }
87
from pydantic import Field from models.domain.resource import Resource, ResourceType class WorkspaceService(Resource): """ Workspace service request """ workspaceId: str = Field("", title="Workspace ID", description="Service target Workspace id") resourceType = ResourceType.WorkspaceService
AzureTRE/api_app/models/domain/workspace_service.py/0
{ "file_path": "AzureTRE/api_app/models/domain/workspace_service.py", "repo_id": "AzureTRE", "token_count": 86 }
88
from enum import Enum from typing import List from pydantic import BaseModel, Field from models.domain.resource import ResourceType from models.domain.workspace import Workspace, WorkspaceAuth def get_sample_workspace(workspace_id: str, spec_workspace_id: str = "0001") -> dict: return { "id": workspace_...
AzureTRE/api_app/models/schemas/workspace.py/0
{ "file_path": "AzureTRE/api_app/models/schemas/workspace.py", "repo_id": "AzureTRE", "token_count": 1233 }
89
import json from pathlib import Path from typing import List, Dict, Tuple def get_system_properties(id_field: str = "workspace_id"): return { "tre_id": { "type": "string" }, id_field: { "type": "string" }, "azure_location": { "type": "str...
AzureTRE/api_app/services/schema_service.py/0
{ "file_path": "AzureTRE/api_app/services/schema_service.py", "repo_id": "AzureTRE", "token_count": 1782 }
90
import datetime from unittest.mock import AsyncMock import uuid import pytest import pytest_asyncio from mock import patch import json from fastapi import HTTPException, status from api.routes.resource_helpers import save_and_deploy_resource, send_uninstall_message, mask_sensitive_properties, enrich_resource_with_ava...
AzureTRE/api_app/tests_ma/test_api/test_routes/test_resource_helpers.py/0
{ "file_path": "AzureTRE/api_app/tests_ma/test_api/test_routes/test_resource_helpers.py", "repo_id": "AzureTRE", "token_count": 6314 }
91
from unittest.mock import AsyncMock from mock import patch import pytest import pytest_asyncio from db.repositories.resources_history import ResourceHistoryRepository from models.domain.resource import Resource, ResourceHistoryItem, ResourceType from tests_ma.test_api.test_routes.test_resource_helpers import FAKE_CREA...
AzureTRE/api_app/tests_ma/test_db/test_repositories/test_resource_history_repository.py/0
{ "file_path": "AzureTRE/api_app/tests_ma/test_db/test_repositories/test_resource_history_repository.py", "repo_id": "AzureTRE", "token_count": 1650 }
92
[flake8] ignore = E501,W503
AzureTRE/cli/.flake8/0
{ "file_path": "AzureTRE/cli/.flake8", "repo_id": "AzureTRE", "token_count": 13 }
93
import sys import click import logging from tre.api_client import ApiClient from tre.output import output, output_option, query_option @click.command(name="migrations", help="Run migrations") @output_option() @query_option() def migrations(output_format, query) -> None: log = logging.getLogger(__name__) cli...
AzureTRE/cli/tre/commands/migrations.py/0
{ "file_path": "AzureTRE/cli/tre/commands/migrations.py", "repo_id": "AzureTRE", "token_count": 229 }
94
import logging import click from tre.api_client import ApiClient from tre.output import output, output_option, query_option from .contexts import UserResourceTemplateContext, pass_user_resource_template_context def template_name_completion(ctx: click.Context, param: click.Parameter, incomplete: str): log = loggi...
AzureTRE/cli/tre/commands/workspace_service_templates/user_resource_templates/user_resource_template.py/0
{ "file_path": "AzureTRE/cli/tre/commands/workspace_service_templates/user_resource_templates/user_resource_template.py", "repo_id": "AzureTRE", "token_count": 737 }
95
import json import sys import click import logging from tre.api_client import ApiClient from tre.commands.operation import default_operation_table_query_single, operation_show from tre.output import output, output_option, query_option from .contexts import pass_workspace_context, WorkspaceContext from .operation impo...
AzureTRE/cli/tre/commands/workspaces/workspace.py/0
{ "file_path": "AzureTRE/cli/tre/commands/workspaces/workspace.py", "repo_id": "AzureTRE", "token_count": 3326 }
96
--- # After you have replaced all the __CHANGE_ME__ values in this file, you need to # run `make auth` to setup the Auth. tre_id: __CHANGE_ME__ location: __CHANGE_ME__ management: mgmt_resource_group_name: __CHANGE_ME__ mgmt_storage_account_name: __CHANGE_ME__ terraform_state_container_name: tfstate acr_name: _...
AzureTRE/config.sample.yaml/0
{ "file_path": "AzureTRE/config.sample.yaml", "repo_id": "AzureTRE", "token_count": 1055 }
97
data "azurerm_client_config" "deployer" {} data "azurerm_monitor_diagnostic_categories" "agw" { resource_id = azurerm_application_gateway.agw.id depends_on = [ azurerm_application_gateway.agw ] }
AzureTRE/core/terraform/appgateway/data.tf/0
{ "file_path": "AzureTRE/core/terraform/appgateway/data.tf", "repo_id": "AzureTRE", "token_count": 84 }
98
#!/bin/bash set -o errexit set -o pipefail set -o nounset # set -o xtrace # This is where we can migrate any Terraform before we plan and apply # For instance deprecated Terraform resources # shellcheck disable=SC1091 source ./migrate.sh PLAN_FILE="tfplan$$" TS=$(date +"%s") LOG_FILE="${TS}-tre-core.log" # This var...
AzureTRE/core/terraform/deploy.sh/0
{ "file_path": "AzureTRE/core/terraform/deploy.sh", "repo_id": "AzureTRE", "token_count": 300 }
99
variable "tre_id" { type = string } variable "location" { type = string } variable "resource_group_name" { type = string } variable "core_address_space" { type = string } variable "arm_environment" { type = string }
AzureTRE/core/terraform/network/variables.tf/0
{ "file_path": "AzureTRE/core/terraform/network/variables.tf", "repo_id": "AzureTRE", "token_count": 77 }
100
#!/bin/bash set -o errexit set -o pipefail set -o nounset # Uncomment this line to see each command for debugging (careful: this will show secrets!) # set -o xtrace # Get the directory that this script is in DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" echo -e "\n\e[34m╔════════════════════...
AzureTRE/devops/scripts/check_dependencies.sh/0
{ "file_path": "AzureTRE/devops/scripts/check_dependencies.sh", "repo_id": "AzureTRE", "token_count": 1312 }
101
#!/bin/bash # This script adds missing env vars that are needed to run porter commands locally. # If a bundle defines a parameter that isn't in the environment it will be added. # When/if this issue will be address, we could remove the script: # https://github.com/getporter/porter/issues/2474 set -o errexit set -o pi...
AzureTRE/devops/scripts/porter_local_env.sh/0
{ "file_path": "AzureTRE/devops/scripts/porter_local_env.sh", "repo_id": "AzureTRE", "token_count": 214 }
102
{ "$schema": "https://json-schema.org/draft/2019-09/schema", "type": "object", "properties": { "id": { "type": "string", "description": "Assignment id." }, "userId": { "type": "string", "description": "User id.", "format": "...
AzureTRE/docs/schemas/resource-assignment.json/0
{ "file_path": "AzureTRE/docs/schemas/resource-assignment.json", "repo_id": "AzureTRE", "token_count": 768 }
103
# AzureTRE Deployment repo AzureTRE has an OSS deployment repository which you can find [here.](https://github.com/microsoft/AzureTRE-Deployment) It contains all the required tooling to develop your custom templates and deploy the Azure TRE: - Github Actions implementing AzureTRE automation, including running deploym...
AzureTRE/docs/tre-admins/setup-instructions/deployment-repo.md/0
{ "file_path": "AzureTRE/docs/tre-admins/setup-instructions/deployment-repo.md", "repo_id": "AzureTRE", "token_count": 627 }
104
# TRE CLI **WARNING - this CLI is currently experimental** This guide will cover various components of AzureTRE CLI such as installation, login, general command structure and other components that enable operating the CLI. ## Installation It is recommended to use CLI within the dev container. It should be installed...
AzureTRE/docs/tre-developers/CLI.md/0
{ "file_path": "AzureTRE/docs/tre-developers/CLI.md", "repo_id": "AzureTRE", "token_count": 2718 }
105
# Guacamole User Resource Service bundle (Windows) This is a User Resource Service template. It defines a VM to be used by TRE Airlock Managers with [Guacamole server](https://guacamole.apache.org/). It blocks all inbound traffic to the internet and allows only RDP connections from within the vnet. It also blocks all...
AzureTRE/docs/tre-templates/user-resources/export-reviewvm.md/0
{ "file_path": "AzureTRE/docs/tre-templates/user-resources/export-reviewvm.md", "repo_id": "AzureTRE", "token_count": 216 }
106
# Airlock Import Review workspace Airlock Import Review workspace is used as part of Review workflow for [Airlock](../../azure-tre-overview/airlock.md). It allows to review Airlock Data Import requests from, by providing a workspace to spin up VMs in that then can access the in-progress storage account. The workspace...
AzureTRE/docs/tre-templates/workspaces/airlock-import-review.md/0
{ "file_path": "AzureTRE/docs/tre-templates/workspaces/airlock-import-review.md", "repo_id": "AzureTRE", "token_count": 114 }
107
# Local Development This guide will cover how to setup local development environment to add custom templates to AzureTRE and deploy AzureTRE from the local machine. ## Local Development Setup ### Prerequisites To deploy an Azure TRE instance, the following assets and tools are required: * [Azure subscription](http...
AzureTRE/docs/using-tre/local-development/local-development.md/0
{ "file_path": "AzureTRE/docs/using-tre/local-development/local-development.md", "repo_id": "AzureTRE", "token_count": 790 }
108
[pytest] markers = smoke: marks tests as smoke (run sometimes, relatively fast) extended: marks tests as extended (run less frequently, relatively slow) extended_aad shared_services performance: marks tests for performance evaluation timeout: used to set test timeout with pytest-timeout airl...
AzureTRE/e2e_tests/pytest.ini/0
{ "file_path": "AzureTRE/e2e_tests/pytest.ini", "repo_id": "AzureTRE", "token_count": 194 }
109
import pytest from e2e_tests.conftest import get_workspace_owner_token, disable_and_delete_ws_resource from helpers import check_aad_auth_redirect from resources.resource import get_resource, post_resource from resources import strings pytestmark = pytest.mark.asyncio workspace_services = [ strings.AZUREML_SERVI...
AzureTRE/e2e_tests/test_workspace_services.py/0
{ "file_path": "AzureTRE/e2e_tests/test_workspace_services.py", "repo_id": "AzureTRE", "token_count": 1254 }
110
#!/bin/bash set -o errexit set -o pipefail set -o nounset # Uncomment this line to see each command for debugging (careful: this will show secrets!) # set -o xtrace export PORTER_HOME=${PORTER_HOME:-~/.porter} export PORTER_MIRROR=${PORTER_MIRROR:-https://cdn.porter.sh} PORTER_VERSION=${PORTER_VERSION:-latest} echo "...
AzureTRE/resource_processor/scripts/porter-v1.sh/0
{ "file_path": "AzureTRE/resource_processor/scripts/porter-v1.sh", "repo_id": "AzureTRE", "token_count": 374 }
111
TRE_ID="__CHANGE_ME__" TRE_URL="__CHANGE_ME__" SMTP_SERVER_ADDRESS="__CHANGE_ME__" SMTP_USERNAME="__CHANGE_ME__" SMTP_PASSWORD="__CHANGE_ME__" SMTP_FROM_EMAIL="__CHANGE_ME__" TRE_RESOURCE_ID="__CHANGE_ME__" SMTP_SERVER_PORT="25"
AzureTRE/templates/shared_services/airlock_notifier/.env.sample/0
{ "file_path": "AzureTRE/templates/shared_services/airlock_notifier/.env.sample", "repo_id": "AzureTRE", "token_count": 117 }
112
# Azure Provider source and version being used terraform { required_providers { azurerm = { source = "hashicorp/azurerm" version = "=3.57.0" } local = { source = "hashicorp/local" version = "=2.4.0" } } backend "azurerm" {} } provider "azurerm" { features {} }
AzureTRE/templates/shared_services/airlock_notifier/terraform/providers.tf/0
{ "file_path": "AzureTRE/templates/shared_services/airlock_notifier/terraform/providers.tf", "repo_id": "AzureTRE", "token_count": 143 }
113
resource "azurerm_storage_account" "cyclecloud" { name = local.storage_name location = data.azurerm_resource_group.rg.location resource_group_name = data.azurerm_resource_group.rg.name account_tier = "Standard" account_replication_type = "GRS" tags ...
AzureTRE/templates/shared_services/cyclecloud/terraform/storage.tf/0
{ "file_path": "AzureTRE/templates/shared_services/cyclecloud/terraform/storage.tf", "repo_id": "AzureTRE", "token_count": 652 }
114
variable "tre_id" { type = string description = "Unique TRE ID" } variable "tre_resource_id" { type = string description = "Unique TRE Resource ID" } variable "arm_environment" { type = string }
AzureTRE/templates/shared_services/databricks-auth/terraform/variables.tf/0
{ "file_path": "AzureTRE/templates/shared_services/databricks-auth/terraform/variables.tf", "repo_id": "AzureTRE", "token_count": 82 }
115
variable "tre_id" { type = string description = "Unique TRE ID" } variable "microsoft_graph_fqdn" { type = string description = "Microsoft Graph FQDN" } variable "tre_resource_id" { type = string description = "Resource ID" } variable "api_driven_rule_collections_b64" { type = s...
AzureTRE/templates/shared_services/firewall/terraform/variables.tf/0
{ "file_path": "AzureTRE/templates/shared_services/firewall/terraform/variables.tf", "repo_id": "AzureTRE", "token_count": 211 }
116
resource "random_password" "password" { length = 20 min_upper = 2 min_lower = 2 min_numeric = 2 min_special = 2 } resource "azurerm_mysql_flexible_server" "gitea" { name = "mysql-${var.tre_id}" resource_group_name = local.core_resource_group_name location ...
AzureTRE/templates/shared_services/gitea/terraform/mysql.tf/0
{ "file_path": "AzureTRE/templates/shared_services/gitea/terraform/mysql.tf", "repo_id": "AzureTRE", "token_count": 1154 }
117
#!/bin/bash export TF_LOG="" terraform init -input=false -backend=true -reconfigure -upgrade \ -backend-config="resource_group_name=${TF_VAR_mgmt_resource_group_name:?}" \ -backend-config="storage_account_name=${TF_VAR_mgmt_storage_account_name:?}" \ -backend-config="container_name=${TF_VAR_terraform_state...
AzureTRE/templates/shared_services/sonatype-nexus-vm/terraform/destroy.sh/0
{ "file_path": "AzureTRE/templates/shared_services/sonatype-nexus-vm/terraform/destroy.sh", "repo_id": "AzureTRE", "token_count": 178 }
118
#!/bin/bash set -o errexit set -o pipefail set -o nounset export TF_LOG="" terraform init -input=false -backend=true -reconfigure -upgrade \ -backend-config="resource_group_name=${TF_VAR_mgmt_resource_group_name?}" \ -backend-config="storage_account_name=${TF_VAR_mgmt_storage_account_name?}" \ -backend-co...
AzureTRE/templates/workspace_services/azureml/terraform/deploy.sh/0
{ "file_path": "AzureTRE/templates/workspace_services/azureml/terraform/deploy.sh", "repo_id": "AzureTRE", "token_count": 213 }
119
# This file is maintained automatically by "terraform init". # Manual edits may be lost in future updates. provider "registry.terraform.io/azure/azapi" { version = "1.1.0" constraints = "1.1.0" hashes = [ "h1:IR+AHCwfjl1c0baWwfOwZ6QZtHj41H2syTgHkJtAr/M=", "zh:2a25df6325a49f9e821f0b02c7da86167fc19a3ba...
AzureTRE/templates/workspace_services/azureml/user_resources/aml_compute/terraform/.terraform.lock.hcl/0
{ "file_path": "AzureTRE/templates/workspace_services/azureml/user_resources/aml_compute/terraform/.terraform.lock.hcl", "repo_id": "AzureTRE", "token_count": 1342 }
120
{ "australiacentral": { "webappDestinationAddresses": ["13.75.218.172/32"], "sccRelayDestinationAddresses": ["13.75.164.249/32"], "sccRelayDomains": ["tunnel.australiaeast.azuredatabricks.net"], "controlPlaneNatDestinationAddresses": ["13.70.105.50/32"], "extendedInfrastructureDestinationAddresses...
AzureTRE/templates/workspace_services/databricks/terraform/databricks-udr.json/0
{ "file_path": "AzureTRE/templates/workspace_services/databricks/terraform/databricks-udr.json", "repo_id": "AzureTRE", "token_count": 21485 }
121
--- schemaVersion: 1.0.0 name: tre-workspace-service-gitea version: 1.0.1 description: "A Gitea workspace service" dockerfile: Dockerfile.tmpl registry: azuretre custom: runtime_image: name: gitea-workspace-service build: version_file: version.txt docker_file: docker/Dockerfile docker_conte...
AzureTRE/templates/workspace_services/gitea/porter.yaml/0
{ "file_path": "AzureTRE/templates/workspace_services/gitea/porter.yaml", "repo_id": "AzureTRE", "token_count": 2097 }
122
<?xml version="1.0" encoding="UTF-8"?> <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>org.apache.gu...
AzureTRE/templates/workspace_services/guacamole/guacamole-server/guacamole-auth-azure/pom.xml/0
{ "file_path": "AzureTRE/templates/workspace_services/guacamole/guacamole-server/guacamole-auth-azure/pom.xml", "repo_id": "AzureTRE", "token_count": 3800 }
123
package org.apache.guacamole.auth.azuretre; import com.auth0.jwk.UrlJwkProvider; import org.apache.guacamole.GuacamoleException; import org.apache.guacamole.auth.azuretre.connection.ConnectionService; import org.apache.guacamole.auth.azuretre.user.AzureTREAuthenticatedUser; import org.apache.guacamole.auth.azuretre.us...
AzureTRE/templates/workspace_services/guacamole/guacamole-server/guacamole-auth-azure/src/test/java/org/apache/guacamole/auth/azuretre/AzureTREAuthenticationProviderTest.java/0
{ "file_path": "AzureTRE/templates/workspace_services/guacamole/guacamole-server/guacamole-auth-azure/src/test/java/org/apache/guacamole/auth/azuretre/AzureTREAuthenticationProviderTest.java", "repo_id": "AzureTRE", "token_count": 2052 }
124
data "azurerm_service_plan" "workspace" { name = "plan-${var.workspace_id}" resource_group_name = data.azurerm_resource_group.ws.name } # we have to use user-assigned to break a cycle in the dependencies: app identity, kv-policy, secrets in app settings resource "azurerm_user_assigned_identity" "gua...
AzureTRE/templates/workspace_services/guacamole/terraform/web_app.tf/0
{ "file_path": "AzureTRE/templates/workspace_services/guacamole/terraform/web_app.tf", "repo_id": "AzureTRE", "token_count": 2835 }
125
--- apt: preserve_sources_list: false primary: - arches: - default uri: "${nexus_proxy_url}/repository/ubuntu/" security: - arches: - default uri: "${nexus_proxy_url}/repository/ubuntu-security/" sources_list: | deb [trusted=yes] $PRIMARY $RELEASE main restricted univers...
AzureTRE/templates/workspace_services/guacamole/user_resources/guacamole-azure-linuxvm/terraform/apt_sources_config.yml/0
{ "file_path": "AzureTRE/templates/workspace_services/guacamole/user_resources/guacamole-azure-linuxvm/terraform/apt_sources_config.yml", "repo_id": "AzureTRE", "token_count": 342 }
126
{ "$schema": "http://json-schema.org/draft-07/schema", "$id": "https://github.com/microsoft/AzureTRE/templates/workspace_services/healthcare_services/template_schema.json", "type": "object", "title": "Azure Health Data Services Workspace Service", "description": "Provides Azure Health Data Services within the...
AzureTRE/templates/workspace_services/health-services/template_schema.json/0
{ "file_path": "AzureTRE/templates/workspace_services/health-services/template_schema.json", "repo_id": "AzureTRE", "token_count": 3781 }
127
--- schemaVersion: 1.0.0 name: tre-service-innereye version: 0.6.4 description: "An Azure TRE service for InnerEye Deep Learning" registry: azuretre dockerfile: Dockerfile.tmpl credentials: - name: azure_tenant_id env: ARM_TENANT_ID - name: azure_subscription_id env: ARM_SUBSCRIPTION_ID - name: azure_cli...
AzureTRE/templates/workspace_services/innereye/porter.yaml/0
{ "file_path": "AzureTRE/templates/workspace_services/innereye/porter.yaml", "repo_id": "AzureTRE", "token_count": 1827 }
128
# This is ssh server systemwide configuration file # # /etc/sshd_config Port 2222 ListenAddress 0.0.0.0 LoginGraceTime 180 X11Forwarding yes Ciphers aes128-cbc,3des-cbc,aes256-cbc MACs hmac-sha1,hmac-sha1-96 StrictModes yes ...
AzureTRE/templates/workspace_services/mlflow/mlflow-server/docker/sshd_config/0
{ "file_path": "AzureTRE/templates/workspace_services/mlflow/mlflow-server/docker/sshd_config", "repo_id": "AzureTRE", "token_count": 295 }
129
resource "random_string" "username" { length = 10 upper = true lower = true numeric = false min_lower = 1 special = false } resource "random_password" "password" { length = 16 lower = true min_lower = 1 upper = true min_upper = 1 nume...
AzureTRE/templates/workspace_services/mlflow/terraform/postgresql.tf/0
{ "file_path": "AzureTRE/templates/workspace_services/mlflow/terraform/postgresql.tf", "repo_id": "AzureTRE", "token_count": 1363 }
130
# Local .terraform directories **/.terraform/* # TF backend files **/*_backend.tf Dockerfile.tmpl
AzureTRE/templates/workspace_services/ohdsi/.dockerignore/0
{ "file_path": "AzureTRE/templates/workspace_services/ohdsi/.dockerignore", "repo_id": "AzureTRE", "token_count": 37 }
131
#!/bin/bash set -o errexit set -o pipefail set -o nounset if [[ -z ${DATA_SOURCE_CONFIG:-} ]] || [[ -z ${DATA_SOURCE_DIAMONS:-} ]]; then printf 'No data source or daimons configured.' exit 0 else # Parse Data source ds_config="$(echo "$DATA_SOURCE_CONFIG" | base64 --decode)" ds_daimons="$(echo "$DATA_SOURCE_...
AzureTRE/templates/workspace_services/ohdsi/synapse_runner.sh/0
{ "file_path": "AzureTRE/templates/workspace_services/ohdsi/synapse_runner.sh", "repo_id": "AzureTRE", "token_count": 809 }
132
# Workspace Templates Workspace Templates are located in this folder. To customize or author new Workspace Templates read the [Authoring Workspace Templates](../../docs/tre-workspace-authors/authoring-workspace-templates.md).
AzureTRE/templates/workspaces/README.md/0
{ "file_path": "AzureTRE/templates/workspaces/README.md", "repo_id": "AzureTRE", "token_count": 61 }
133
data "azuread_client_config" "current" {} resource "random_uuid" "oauth2_user_impersonation_id" {} resource "random_uuid" "app_role_workspace_owner_id" {} resource "random_uuid" "app_role_workspace_researcher_id" {} resource "random_uuid" "app_role_workspace_airlock_manager_id" {} resource "azuread_application" "work...
AzureTRE/templates/workspaces/base/terraform/aad/aad.tf/0
{ "file_path": "AzureTRE/templates/workspaces/base/terraform/aad/aad.tf", "repo_id": "AzureTRE", "token_count": 2884 }
134
variable "tre_id" { type = string } variable "location" { type = string } variable "resource_group_name" { type = string } variable "resource_group_id" { type = string } variable "tre_workspace_tags" { type = map(string) } variable "workspace_subnet_id" { type = string } variable "azure_monitor_dns_zone_id"...
AzureTRE/templates/workspaces/base/terraform/azure-monitor/variables.tf/0
{ "file_path": "AzureTRE/templates/workspaces/base/terraform/azure-monitor/variables.tf", "repo_id": "AzureTRE", "token_count": 267 }
135
resource "azurerm_storage_account" "stg" { name = local.storage_name resource_group_name = azurerm_resource_group.ws.name location = azurerm_resource_group.ws.location account_tier = "Standard" account_replication_type = "...
AzureTRE/templates/workspaces/base/terraform/storage.tf/0
{ "file_path": "AzureTRE/templates/workspaces/base/terraform/storage.tf", "repo_id": "AzureTRE", "token_count": 1857 }
136
{ "name": "tre-ui", "version": "0.5.22", "private": true, "dependencies": { "@azure/msal-browser": "^2.35.0", "@azure/msal-react": "^1.5.12", "@fluentui/react": "^8.114.1", "@fluentui/react-file-type-icons": "^8.7.9", "@reduxjs/toolkit": "^1.8.6", "@rjsf/core": "^4.2.3", "@rjsf/fluen...
AzureTRE/ui/app/package.json/0
{ "file_path": "AzureTRE/ui/app/package.json", "repo_id": "AzureTRE", "token_count": 915 }
137
import { Dialog, DialogFooter, PrimaryButton, DefaultButton, DialogType, Spinner } from '@fluentui/react'; import React, { useContext, useState } from 'react'; import { Resource } from '../../models/resource'; import { HttpMethod, ResultType, useAuthApiCall } from '../../hooks/useAuthApiCall'; import { WorkspaceContext...
AzureTRE/ui/app/src/components/shared/ConfirmDisableEnableResource.tsx/0
{ "file_path": "AzureTRE/ui/app/src/components/shared/ConfirmDisableEnableResource.tsx", "repo_id": "AzureTRE", "token_count": 1293 }
138