text
stringlengths
5
22M
id
stringlengths
12
177
metadata
dict
__index_level_0__
int64
0
1.37k
#!/usr/bin/env python # 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 co...
AdaMix/examples/text-generation/run_generation.py/0
{ "file_path": "AdaMix/examples/text-generation/run_generation.py", "repo_id": "AdaMix", "token_count": 4137 }
43
## 🔥 Model cards now live inside each huggingface.co model repo 🔥 For consistency, ease of use and scalability, `README.md` model cards now live directly inside each model repo on the HuggingFace model hub. ### How to update a model card You can directly update a model card inside any model repo you have **write ...
AdaMix/model_cards/README.md/0
{ "file_path": "AdaMix/model_cards/README.md", "repo_id": "AdaMix", "token_count": 309 }
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/eval-facebook-wmt19.sh/0
{ "file_path": "AdaMix/scripts/fsmt/eval-facebook-wmt19.sh", "repo_id": "AdaMix", "token_count": 2623 }
45
#!/usr/bin/env python # 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...
AdaMix/src/transformers/commands/transformers_cli.py/0
{ "file_path": "AdaMix/src/transformers/commands/transformers_cli.py", "repo_id": "AdaMix", "token_count": 553 }
46
# 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/data/metrics/__init__.py/0
{ "file_path": "AdaMix/src/transformers/data/metrics/__init__.py", "repo_id": "AdaMix", "token_count": 1426 }
47
# 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/feature_extraction_sequence_utils.py/0
{ "file_path": "AdaMix/src/transformers/feature_extraction_sequence_utils.py", "repo_id": "AdaMix", "token_count": 6638 }
48
# 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/modeling_tf_utils.py/0
{ "file_path": "AdaMix/src/transformers/modeling_tf_utils.py", "repo_id": "AdaMix", "token_count": 31708 }
49
# coding=utf-8 # Copyright 2018 The OpenAI Team Authors and 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...
AdaMix/src/transformers/models/albert/modeling_tf_albert.py/0
{ "file_path": "AdaMix/src/transformers/models/albert/modeling_tf_albert.py", "repo_id": "AdaMix", "token_count": 30002 }
50
# coding=utf-8 # Copyright 2021 The Facebook Inc. 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/LI...
AdaMix/src/transformers/models/blenderbot_small/tokenization_blenderbot_small.py/0
{ "file_path": "AdaMix/src/transformers/models/blenderbot_small/tokenization_blenderbot_small.py", "repo_id": "AdaMix", "token_count": 4044 }
51
# coding=utf-8 # Copyright 2018 Salesforce and 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 # # h...
AdaMix/src/transformers/models/ctrl/modeling_ctrl.py/0
{ "file_path": "AdaMix/src/transformers/models/ctrl/modeling_ctrl.py", "repo_id": "AdaMix", "token_count": 12620 }
52
# coding=utf-8 # Copyright 2020, Microsoft 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 # # Unless require...
AdaMix/src/transformers/models/deberta_v2/configuration_deberta_v2.py/0
{ "file_path": "AdaMix/src/transformers/models/deberta_v2/configuration_deberta_v2.py", "repo_id": "AdaMix", "token_count": 3471 }
53
# coding=utf-8 # Copyright 2020 The Facebook AI Research 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/LIC...
AdaMix/src/transformers/models/fsmt/modeling_fsmt.py/0
{ "file_path": "AdaMix/src/transformers/models/fsmt/modeling_fsmt.py", "repo_id": "AdaMix", "token_count": 23494 }
54
# coding=utf-8 # Copyright 2018 The Microsoft Research Asia LayoutLM Team Authors. # # 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 # # Unles...
AdaMix/src/transformers/models/layoutlm/tokenization_layoutlm.py/0
{ "file_path": "AdaMix/src/transformers/models/layoutlm/tokenization_layoutlm.py", "repo_id": "AdaMix", "token_count": 730 }
55
# coding=utf-8 # Copyright 2018 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/lxmert/convert_lxmert_original_tf_checkpoint_to_pytorch.py/0
{ "file_path": "AdaMix/src/transformers/models/lxmert/convert_lxmert_original_tf_checkpoint_to_pytorch.py", "repo_id": "AdaMix", "token_count": 735 }
56
# coding=utf-8 # Copyright 2018 The HuggingFace Inc. team, Microsoft Corporation. # 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 ...
AdaMix/src/transformers/models/mpnet/modeling_mpnet.py/0
{ "file_path": "AdaMix/src/transformers/models/mpnet/modeling_mpnet.py", "repo_id": "AdaMix", "token_count": 17881 }
57
# 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/roberta/__init__.py/0
{ "file_path": "AdaMix/src/transformers/models/roberta/__init__.py", "repo_id": "AdaMix", "token_count": 1565 }
58
# coding=utf-8 # Copyright 2020 The SqueezeBert 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 # # U...
AdaMix/src/transformers/models/squeezebert/tokenization_squeezebert.py/0
{ "file_path": "AdaMix/src/transformers/models/squeezebert/tokenization_squeezebert.py", "repo_id": "AdaMix", "token_count": 876 }
59
# 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/modeling_tf_transfo_xl_utilities.py/0
{ "file_path": "AdaMix/src/transformers/models/transfo_xl/modeling_tf_transfo_xl_utilities.py", "repo_id": "AdaMix", "token_count": 4236 }
60
import collections import numpy as np from ..file_utils import add_end_docstrings, is_torch_available, requires_pandas from .base import PIPELINE_INIT_ARGS, ArgumentHandler, Pipeline, PipelineException if is_torch_available(): import torch from ..models.auto.modeling_auto import MODEL_FOR_TABLE_QUESTION_AN...
AdaMix/src/transformers/pipelines/table_question_answering.py/0
{ "file_path": "AdaMix/src/transformers/pipelines/table_question_answering.py", "repo_id": "AdaMix", "token_count": 6349 }
61
# 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/trainer_seq2seq.py/0
{ "file_path": "AdaMix/src/transformers/trainer_seq2seq.py", "repo_id": "AdaMix", "token_count": 3917 }
62
# This file is autogenerated by the command `make fix-copies`, do not edit. from ..file_utils import requires_sentencepiece class AlbertTokenizer: def __init__(self, *args, **kwargs): requires_sentencepiece(self) @classmethod def from_pretrained(self, *args, **kwargs): requires_sentencepi...
AdaMix/src/transformers/utils/dummy_sentencepiece_objects.py/0
{ "file_path": "AdaMix/src/transformers/utils/dummy_sentencepiece_objects.py", "repo_id": "AdaMix", "token_count": 1518 }
63
{ "modelname": "{{cookiecutter.modelname}}", "uppercase_modelname": "{{cookiecutter.uppercase_modelname}}", "lowercase_modelname": "{{cookiecutter.lowercase_modelname}}", "camelcase_modelname": "{{cookiecutter.camelcase_modelname}}", "authors": "{{cookiecutter.authors}}", "checkpoint_identifier": "{{cookiec...
AdaMix/templates/adding_a_new_model/cookiecutter-template-{{cookiecutter.modelname}}/configuration.json/0
{ "file_path": "AdaMix/templates/adding_a_new_model/cookiecutter-template-{{cookiecutter.modelname}}/configuration.json", "repo_id": "AdaMix", "token_count": 201 }
64
{ "modelname": "TemplateBI", "uppercase_modelname": "TEMPLATE_BI", "lowercase_modelname": "template_bi", "camelcase_modelname": "TemplateBi", "authors": "The HuggingFace Team", "checkpoint_identifier": "bi-brand-new-bert-base-cased", "tokenizer_type": "Standalone", "generate_tensorflow_and_pytorch": "Py...
AdaMix/templates/adding_a_new_model/tests/standalone.json/0
{ "file_path": "AdaMix/templates/adding_a_new_model/tests/standalone.json", "repo_id": "AdaMix", "token_count": 149 }
65
# coding=utf-8 # Copyright 2019-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 a...
AdaMix/tests/test_cli.py/0
{ "file_path": "AdaMix/tests/test_cli.py", "repo_id": "AdaMix", "token_count": 375 }
66
# 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_logging.py/0
{ "file_path": "AdaMix/tests/test_logging.py", "repo_id": "AdaMix", "token_count": 1534 }
67
# coding=utf-8 # Copyright 2018 LXMERT 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/licenses/LICENSE-2.0 # # Unless required b...
AdaMix/tests/test_modeling_lxmert.py/0
{ "file_path": "AdaMix/tests/test_modeling_lxmert.py", "repo_id": "AdaMix", "token_count": 13691 }
68
# 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/tests/test_modeling_tapas.py/0
{ "file_path": "AdaMix/tests/test_modeling_tapas.py", "repo_id": "AdaMix", "token_count": 21540 }
69
# coding=utf-8 # Copyright 2020 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 law...
AdaMix/tests/test_modeling_tf_funnel.py/0
{ "file_path": "AdaMix/tests/test_modeling_tf_funnel.py", "repo_id": "AdaMix", "token_count": 6594 }
70
# 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_modeling_tf_transfo_xl.py/0
{ "file_path": "AdaMix/tests/test_modeling_tf_transfo_xl.py", "repo_id": "AdaMix", "token_count": 10349 }
71
# 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_albert.py/0
{ "file_path": "AdaMix/tests/test_tokenization_albert.py", "repo_id": "AdaMix", "token_count": 3513 }
72
# 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_fsmt.py/0
{ "file_path": "AdaMix/tests/test_tokenization_fsmt.py", "repo_id": "AdaMix", "token_count": 2935 }
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_tokenization_reformer.py/0
{ "file_path": "AdaMix/tests/test_tokenization_reformer.py", "repo_id": "AdaMix", "token_count": 5489 }
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_trainer_distributed.py/0
{ "file_path": "AdaMix/tests/test_trainer_distributed.py", "repo_id": "AdaMix", "token_count": 2069 }
75
# 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/utils/notification_service.py/0
{ "file_path": "AdaMix/utils/notification_service.py", "repo_id": "AdaMix", "token_count": 3412 }
76
## Baselines ### moveOnSpline - Plan and move on a minimum jerk trajectory using ground truth poses of gates: - Generate an AirSim settings.json file (same as the one provided in releases) ```shell $ cd baselines; $ python generate_settings_file.py ``` - Start the AirSim Neurips binary, [as explained a...
AirSim-Drone-Racing-Lab/docs/baselines.md/0
{ "file_path": "AirSim-Drone-Racing-Lab/docs/baselines.md", "repo_id": "AirSim-Drone-Racing-Lab", "token_count": 476 }
77
import os import sys from scipy.spatial.transform import Rotation import math from airsimdroneracingvae.utils import to_eularian_angles, to_quaternion import numpy as np from airsimdroneracingvae.types import Pose, Vector3r, Quaternionr def interp_vector(a, b, n): delta = (b-a)/(n-1) list_vecs = [] for i i...
AirSim-Drone-Racing-VAE-Imitation/racing_utils/geom_utils.py/0
{ "file_path": "AirSim-Drone-Racing-VAE-Imitation/racing_utils/geom_utils.py", "repo_id": "AirSim-Drone-Racing-VAE-Imitation", "token_count": 3170 }
78
# Game of Drones: A NeurIPS 2019 Competition **Note: This repository is not being maintained any more. Please use [AirSim Drone Racing Lab](https://github.com/microsoft/AirSim-Drone-Racing-Lab).** ## Quickstart - [Website](https://microsoft.github.io/AirSim-NeurIPS2019-Drone-Racing/) - [Register](https://www.microsof...
AirSim-NeurIPS2019-Drone-Racing/README.md/0
{ "file_path": "AirSim-NeurIPS2019-Drone-Racing/README.md", "repo_id": "AirSim-NeurIPS2019-Drone-Racing", "token_count": 9711 }
79
#!/bin/bash wget -c https://github.com/microsoft/AirSim-NeurIPS2019-Drone-Racing/releases/download/v0.3.0-linux/AirSim.zip; mkdir -p /home/$USER/Documents/AirSim; unzip AirSim.zip; mv AirSim AirSim_Training; wget --directory-prefix=AirSim_Training/AirSimExe/Content/Paks -c https://github.com/microsoft/AirSim-NeurIPS201...
AirSim-NeurIPS2019-Drone-Racing/download_training_binaries.sh/0
{ "file_path": "AirSim-NeurIPS2019-Drone-Racing/download_training_binaries.sh", "repo_id": "AirSim-NeurIPS2019-Drone-Racing", "token_count": 348 }
80
# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.166.1/containers/python-3/.devcontainer/base.Dockerfile # [Choice] Python version: 3, 3.9, 3.8, 3.7, 3.6 ARG VARIANT="3.8" ARG TARGETPLATFORM="linux/amd64" FROM --platform="${TARGETPLATFORM}" mcr.microsoft.com/vscode/devcontainer...
AzureTRE/.devcontainer/Dockerfile/0
{ "file_path": "AzureTRE/.devcontainer/Dockerfile", "repo_id": "AzureTRE", "token_count": 1961 }
81
<!-- markdownlint-disable MD041 --> ## 0.18.0 (Unreleased) **BREAKING CHANGES & MIGRATIONS**: FEATURES: ENHANCEMENTS: BUG FIXES: * Update to Resource Processor Image, now using Ubuntu 22.04 (jammy). Part of ([#3523](https://github.com/microsoft/AzureTRE/issues/3523)) * Remove TLS1.0/1.1 support from Application Gat...
AzureTRE/CHANGELOG.md/0
{ "file_path": "AzureTRE/CHANGELOG.md", "repo_id": "AzureTRE", "token_count": 20098 }
82
# To enable ssh & remote debugging on app service change the base image to the one below # FROM mcr.microsoft.com/azure-functions/python:4-python3.8-appservice as base FROM mcr.microsoft.com/azure-functions/python:4-python3.8-slim as base COPY requirements.txt / RUN pip install --no-cache-dir -r /requirements.txt FR...
AzureTRE/airlock_processor/Dockerfile/0
{ "file_path": "AzureTRE/airlock_processor/Dockerfile", "repo_id": "AzureTRE", "token_count": 250 }
83
from mock import patch, MagicMock from DataDeletionTrigger import delete_blob_and_container_if_last_blob from shared_code.blob_operations import get_storage_endpoint_suffix class TestDataDeletionTrigger(): @patch("DataDeletionTrigger.BlobServiceClient") def test_delete_blob_and_container_if_last_blob_delete...
AzureTRE/airlock_processor/tests/test_data_deletion_trigger.py/0
{ "file_path": "AzureTRE/airlock_processor/tests/test_data_deletion_trigger.py", "repo_id": "AzureTRE", "token_count": 725 }
84
from typing import Union from fastapi.exceptions import RequestValidationError from fastapi.openapi.constants import REF_PREFIX from fastapi.openapi.utils import validation_error_response_definition from pydantic import ValidationError from fastapi import Request, status from fastapi.responses import PlainTextResponse...
AzureTRE/api_app/api/errors/validation_error.py/0
{ "file_path": "AzureTRE/api_app/api/errors/validation_error.py", "repo_id": "AzureTRE", "token_count": 235 }
85
from typing import Optional from fastapi import APIRouter, Depends, HTTPException, status from pydantic import parse_obj_as from api.helpers import get_repository from db.errors import EntityVersionExist, InvalidInput from db.repositories.resource_templates import ResourceTemplateRepository from models.domain.resource...
AzureTRE/api_app/api/routes/workspace_templates.py/0
{ "file_path": "AzureTRE/api_app/api/routes/workspace_templates.py", "repo_id": "AzureTRE", "token_count": 828 }
86
import uuid from typing import List, Optional, Union from pydantic import parse_obj_as from core import config from db.errors import DuplicateEntity, EntityDoesNotExist, EntityVersionExist, InvalidInput from db.repositories.base import BaseRepository from models.domain.resource import ResourceType from models.domain....
AzureTRE/api_app/db/repositories/resource_templates.py/0
{ "file_path": "AzureTRE/api_app/db/repositories/resource_templates.py", "repo_id": "AzureTRE", "token_count": 3478 }
87
from collections import namedtuple from typing import List from pydantic import BaseModel, Field RoleAssignment = namedtuple("RoleAssignment", "resource_id, role_id") class User(BaseModel): id: str name: str email: str roles: List[str] = Field([]) roleAssignments: List[RoleAssignment] = Field([...
AzureTRE/api_app/models/domain/authentication.py/0
{ "file_path": "AzureTRE/api_app/models/domain/authentication.py", "repo_id": "AzureTRE", "token_count": 108 }
88
from pydantic import BaseModel def get_sample_airlock_request_container_url(container_url: str) -> dict: return { "containerUrl": container_url } class AirlockRequestTokenInResponse(BaseModel): containerUrl: str class Config: schema_extra = { "example": { ...
AzureTRE/api_app/models/schemas/airlock_request_url.py/0
{ "file_path": "AzureTRE/api_app/models/schemas/airlock_request_url.py", "repo_id": "AzureTRE", "token_count": 176 }
89
from models.domain.resource import ResourceType from models.domain.resource_template import CustomAction, ResourceTemplate, Property from models.schemas.resource_template import ResourceTemplateInCreate, ResourceTemplateInResponse def get_sample_workspace_template_object(template_name: str = "tre-workspace-base") -> ...
AzureTRE/api_app/models/schemas/workspace_template.py/0
{ "file_path": "AzureTRE/api_app/models/schemas/workspace_template.py", "repo_id": "AzureTRE", "token_count": 2097 }
90
from azure.servicebus import ServiceBusMessage from azure.servicebus.aio import ServiceBusClient from pydantic import parse_obj_as from db.repositories.resources_history import ResourceHistoryRepository from service_bus.substitutions import substitute_properties from models.domain.resource_template import PipelineStep ...
AzureTRE/api_app/service_bus/helpers.py/0
{ "file_path": "AzureTRE/api_app/service_bus/helpers.py", "repo_id": "AzureTRE", "token_count": 3091 }
91
# import os # import sys # TEST_DIR = os.path.dirname(os.path.abspath(__file__)) # PROJECT_DIR = os.path.abspath(os.path.join(TEST_DIR, os.pardir, 'api')) # sys.path.insert(0, PROJECT_DIR)
AzureTRE/api_app/tests_ma/test_api/__init__.py/0
{ "file_path": "AzureTRE/api_app/tests_ma/test_api/__init__.py", "repo_id": "AzureTRE", "token_count": 84 }
92
import json import pytest from mock import patch from starlette import status from services.authentication import get_current_admin_user, get_current_tre_user_or_tre_admin from db.errors import DuplicateEntity, EntityDoesNotExist, EntityVersionExist, InvalidInput, UnableToAccessDatabase from models.domain.resource im...
AzureTRE/api_app/tests_ma/test_api/test_routes/test_user_resource_templates.py/0
{ "file_path": "AzureTRE/api_app/tests_ma/test_api/test_routes/test_user_resource_templates.py", "repo_id": "AzureTRE", "token_count": 3428 }
93
from unittest.mock import AsyncMock import pytest import pytest_asyncio from mock import patch from db.errors import DuplicateEntity, EntityDoesNotExist from db.repositories.shared_services import SharedServiceRepository from db.repositories.operations import OperationRepository from models.domain.shared_service impor...
AzureTRE/api_app/tests_ma/test_db/test_repositories/test_shared_service_repository.py/0
{ "file_path": "AzureTRE/api_app/tests_ma/test_db/test_repositories/test_shared_service_repository.py", "repo_id": "AzureTRE", "token_count": 1606 }
94
from mock import patch from services import azure_resource_status from azure.mgmt.compute.models import VirtualMachineInstanceView, InstanceViewStatus @patch("services.azure_resource_status.get_azure_vm_instance_view") def test_get_azure_resource_status__correct_status_returned_for_vm(get_vm_instance_view_mock): ...
AzureTRE/api_app/tests_ma/test_services/test_azure_resource_status.py/0
{ "file_path": "AzureTRE/api_app/tests_ma/test_services/test_azure_resource_status.py", "repo_id": "AzureTRE", "token_count": 393 }
95
import click class SharedServiceTemplateContext(object): def __init__(self, template_name: str): self.template_name = template_name pass_shared_service_template_context = click.make_pass_decorator(SharedServiceTemplateContext)
AzureTRE/cli/tre/commands/shared_service_templates/contexts.py/0
{ "file_path": "AzureTRE/cli/tre/commands/shared_service_templates/contexts.py", "repo_id": "AzureTRE", "token_count": 75 }
96
import json import logging import click from tre.api_client import ApiClient from tre.output import output, output_option, query_option @click.group(name="workspace-service-templates", help="List workspace-service-templates ") def workspace_service_templates(): pass @click.command(name="list", help="List works...
AzureTRE/cli/tre/commands/workspace_service_templates/workspace_service_templates.py/0
{ "file_path": "AzureTRE/cli/tre/commands/workspace_service_templates/workspace_service_templates.py", "repo_id": "AzureTRE", "token_count": 648 }
97
import logging import click from tre.commands.operation import get_operation_id_completion, operation_show from tre.output import output_option, query_option from tre.api_client import ApiClient from .contexts import pass_workspace_service_operation_context, WorkspaceServiceOperationContext def operation_id_completi...
AzureTRE/cli/tre/commands/workspaces/workspace_services/operation.py/0
{ "file_path": "AzureTRE/cli/tre/commands/workspaces/workspace_services/operation.py", "repo_id": "AzureTRE", "token_count": 909 }
98
data "local_file" "airlock_processor_version" { filename = "${path.root}/../../airlock_processor/_version.py" } locals { version = replace(replace(replace(data.local_file.airlock_processor_version.content, "__version__ = \"", ""), "\"", ""), "\n", "") } resource "azurerm_service_plan" "airlock_plan" { name ...
AzureTRE/core/terraform/airlock/airlock_processor.tf/0
{ "file_path": "AzureTRE/core/terraform/airlock/airlock_processor.tf", "repo_id": "AzureTRE", "token_count": 2718 }
99
output "app_gateway_fqdn" { value = azurerm_public_ip.appgwpip.fqdn } output "app_gateway_name" { value = azurerm_application_gateway.agw.name } output "static_web_storage" { value = azurerm_storage_account.staticweb.name }
AzureTRE/core/terraform/appgateway/outputs.tf/0
{ "file_path": "AzureTRE/core/terraform/appgateway/outputs.tf", "repo_id": "AzureTRE", "token_count": 95 }
100
--- # cloud-config package_upgrade: true apt: sources: docker.list: source: deb [arch=amd64] https://download.docker.com/linux/ubuntu $RELEASE stable keyid: 9DC858229FC7DD38854AE2D88D81803C0EBFCD88 keyserver: hkp://keyserver.ubuntu.com:80 azure-cli.list: source: deb [arch=amd64...
AzureTRE/core/terraform/resource_processor/vmss_porter/cloud-config.yaml/0
{ "file_path": "AzureTRE/core/terraform/resource_processor/vmss_porter/cloud-config.yaml", "repo_id": "AzureTRE", "token_count": 1614 }
101
#!/bin/bash set -euo pipefail # Use this for debug only # set -o xtrace # AZURE_CORE_OUTPUT=jsonc # force CLI output to JSON for the script (user can still change default for interactive usage in the dev container) function show_usage() { cat << USAGE Utility script for creating an automation administrator for TR...
AzureTRE/devops/scripts/aad/create_automation_administrator.sh/0
{ "file_path": "AzureTRE/devops/scripts/aad/create_automation_administrator.sh", "repo_id": "AzureTRE", "token_count": 1454 }
102
#!/bin/bash set -o errexit set -o pipefail set -o nounset # set -o xtrace if [[ -z ${TRE_ID:-} ]]; then echo "TRE_ID environment variable must be set." exit 1 fi core_rg_name="rg-${TRE_ID}" fw_name="fw-${TRE_ID}" agw_name="agw-$TRE_ID" # if the resource group doesn't exist, no need to continue this script. #...
AzureTRE/devops/scripts/control_tre.sh/0
{ "file_path": "AzureTRE/devops/scripts/control_tre.sh", "repo_id": "AzureTRE", "token_count": 2377 }
103
#!/bin/bash # This script register a bundle with the TRE API. It relies on the bundle # pre-existing in the remote repository (i.e. has been publish beforehand). set -o errexit set -o pipefail # Uncomment this line to see each command for debugging (careful: this will show secrets!) # set -o xtrace function usage() ...
AzureTRE/devops/scripts/register_bundle_with_api.sh/0
{ "file_path": "AzureTRE/devops/scripts/register_bundle_with_api.sh", "repo_id": "AzureTRE", "token_count": 2059 }
104
# Configuring Airlock Review feature Airlock Review feature allows to setup a process for manually reviewing Airlock requests. When using this feature, Airlock Manager (a role with privileges of reviewing Airlock requests) is able to create Review User Resource (VM) and use it to review the data from. For information...
AzureTRE/docs/tre-admins/configure-airlock-review.md/0
{ "file_path": "AzureTRE/docs/tre-admins/configure-airlock-review.md", "repo_id": "AzureTRE", "token_count": 813 }
105
# Installing workspace service and user resource ## Publish and register a workspace service template We will use the [Guacamole workspace service bundle](../../tre-templates/workspace-services/guacamole.md) for the purposes of this tutorial; a template that provides Virtual Desktop functionality allowing the deploym...
AzureTRE/docs/tre-admins/setup-instructions/installing-workspace-service-and-user-resource.md/0
{ "file_path": "AzureTRE/docs/tre-admins/setup-instructions/installing-workspace-service-and-user-resource.md", "repo_id": "AzureTRE", "token_count": 1472 }
106
# End-to-end (E2E) tests ## Prerequisites 1. Authentication and Authorization configuration set up as noted [here](../tre-admins/auth.md) 1. An Azure Tre deployed environment. ## Registering bundles to run End-to-end tests End-to-end tests depend on certain bundles to be registered within the TRE API. When End-to-...
AzureTRE/docs/tre-developers/end-to-end-tests.md/0
{ "file_path": "AzureTRE/docs/tre-developers/end-to-end-tests.md", "repo_id": "AzureTRE", "token_count": 273 }
107
# 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. When deployed in a...
AzureTRE/docs/tre-templates/user-resources/import-reviewvm.md/0
{ "file_path": "AzureTRE/docs/tre-templates/user-resources/import-reviewvm.md", "repo_id": "AzureTRE", "token_count": 231 }
108
# Authoring templates Azure TRE workspaces, workspace services, shared services, and user resources are [Porter](https://porter.sh/) bundles. Porter bundles are based on [Cloud Native Application Bundles (CNAB)](https://cnab.io/). Authors are free to choose the technology stack for provisioning resources (e.g., ARM t...
AzureTRE/docs/tre-workspace-authors/authoring-workspace-templates.md/0
{ "file_path": "AzureTRE/docs/tre-workspace-authors/authoring-workspace-templates.md", "repo_id": "AzureTRE", "token_count": 2245 }
109
# Importing and exporting data with Airlock This guide will take you through the process of importing data into a TRE workspace, and exporting data from a workspace to the outside world, using the Airlock feature. The Airlock feature is intended for ad-hoc use when you need to bring in and export out files that you ...
AzureTRE/docs/using-tre/tre-for-research/importing-exporting-data-airlock.md/0
{ "file_path": "AzureTRE/docs/using-tre/tre-for-research/importing-exporting-data-airlock.md", "repo_id": "AzureTRE", "token_count": 1655 }
110
import logging import backoff from httpx import TimeoutException from e2e_tests.helpers import get_full_endpoint from e2e_tests.resources import strings LOGGER = logging.getLogger(__name__) async def delete_done(client, operation_endpoint, headers): delete_terminal_states = [strings.RESOURCE_STATUS_DELETED, stri...
AzureTRE/e2e_tests/resources/deployment.py/0
{ "file_path": "AzureTRE/e2e_tests/resources/deployment.py", "repo_id": "AzureTRE", "token_count": 891 }
111
{% extends "base.html" %} {% block outdated %} You're not viewing the latest version. <a href="{{ '../' ~ base_url }}"> <strong>Click here to go to latest.</strong> </a> </script> {% endblock %} {% block analytics %} <script type="text/javascript"> (function(c,l,a,r,i,t,y){ c[a]=c[a]||function(){(c[a]...
AzureTRE/mkdocs-overrides/main.html/0
{ "file_path": "AzureTRE/mkdocs-overrides/main.html", "repo_id": "AzureTRE", "token_count": 252 }
112
# syntax=docker/dockerfile-upstream:1.4.0 FROM --platform=linux/amd64 debian:bullseye-slim # PORTER_INIT # PORTER_MIXINS # Use the BUNDLE_DIR build argument to copy files into the bundle COPY --link . ${BUNDLE_DIR}//
AzureTRE/templates/shared_services/admin-vm/Dockerfile.tmpl/0
{ "file_path": "AzureTRE/templates/shared_services/admin-vm/Dockerfile.tmpl", "repo_id": "AzureTRE", "token_count": 89 }
113
{ "serviceProviderConnections": { "serviceBus": { "parameterValues": { "connectionString": "@appsetting('serviceBus_connectionString')" }, "serviceProvider": { "id": "/serviceProviders/serviceBus" }, "displayName": "core-service-bus" }, "Smtp": { "displa...
AzureTRE/templates/shared_services/airlock_notifier/app/connections.json/0
{ "file_path": "AzureTRE/templates/shared_services/airlock_notifier/app/connections.json", "repo_id": "AzureTRE", "token_count": 542 }
114
variable "tre_id" { type = string } variable "domain_prefix" { type = string } variable "cert_name" { type = string } variable "tre_resource_id" { type = string description = "Resource ID" }
AzureTRE/templates/shared_services/certs/terraform/variables.tf/0
{ "file_path": "AzureTRE/templates/shared_services/certs/terraform/variables.tf", "repo_id": "AzureTRE", "token_count": 80 }
115
ID=__CHANGE_ME__ AZURE_LOCATION=__CHANGE_ME__
AzureTRE/templates/shared_services/databricks-auth/.env.sample/0
{ "file_path": "AzureTRE/templates/shared_services/databricks-auth/.env.sample", "repo_id": "AzureTRE", "token_count": 22 }
116
output "nexus_allowed_fqdns_list" { value = jsonencode(local.nexus_allowed_fqdns_list) } output "workspace_vm_allowed_fqdns_list" { value = jsonencode(local.workspace_vm_allowed_fqdns_list) } output "private_ip_addresses" { value = jsonencode(azurerm_network_interface.nexus.private_ip_addresses) } output "conn...
AzureTRE/templates/shared_services/sonatype-nexus-vm/terraform/outputs.tf/0
{ "file_path": "AzureTRE/templates/shared_services/sonatype-nexus-vm/terraform/outputs.tf", "repo_id": "AzureTRE", "token_count": 178 }
117
resource "azurerm_machine_learning_workspace" "aml_workspace" { name = local.workspace_name resource_group_name = data.azurerm_resource_group.ws.name location = data.azurerm_resource_group.ws.location application_insights_id = azurerm_application_ins...
AzureTRE/templates/workspace_services/azureml/terraform/main.tf/0
{ "file_path": "AzureTRE/templates/workspace_services/azureml/terraform/main.tf", "repo_id": "AzureTRE", "token_count": 945 }
118
#!/bin/bash set -o errexit set -o pipefail set -o nounset export TF_LOG="" terraform init -input=false -backend=true -reconfigure \ -backend-config="resource_group_name=${TF_VAR_mgmt_resource_group_name?}" \ -backend-config="storage_account_name=${TF_VAR_mgmt_storage_account_name?}" \ -backend-config="con...
AzureTRE/templates/workspace_services/azureml/user_resources/aml_compute/terraform/deploy.sh/0
{ "file_path": "AzureTRE/templates/workspace_services/azureml/user_resources/aml_compute/terraform/deploy.sh", "repo_id": "AzureTRE", "token_count": 199 }
119
resource "azurerm_databricks_workspace" "databricks" { name = local.databricks_workspace_name resource_group_name = data.azurerm_resource_group.ws.name location = data.azurerm_resource_group.ws.location sku ...
AzureTRE/templates/workspace_services/databricks/terraform/main.tf/0
{ "file_path": "AzureTRE/templates/workspace_services/databricks/terraform/main.tf", "repo_id": "AzureTRE", "token_count": 754 }
120
data "azurerm_resource_group" "ws" { name = "rg-${var.tre_id}-ws-${local.short_workspace_id}" } data "azurerm_virtual_network" "ws" { name = "vnet-${var.tre_id}-ws-${local.short_workspace_id}" resource_group_name = "rg-${var.tre_id}-ws-${local.short_workspace_id}" } data "azurerm_subnet" "web_app...
AzureTRE/templates/workspace_services/gitea/terraform/data.tf/0
{ "file_path": "AzureTRE/templates/workspace_services/gitea/terraform/data.tf", "repo_id": "AzureTRE", "token_count": 1090 }
121
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
AzureTRE/templates/workspace_services/guacamole/guacamole-server/guacamole-auth-azure/src/main/java/org/apache/guacamole/auth/azuretre/AuthenticationProviderService.java/0
{ "file_path": "AzureTRE/templates/workspace_services/guacamole/guacamole-server/guacamole-auth-azure/src/main/java/org/apache/guacamole/auth/azuretre/AuthenticationProviderService.java", "repo_id": "AzureTRE", "token_count": 1454 }
122
/** * */ package org.apache.guacamole.auth.azuretre;
AzureTRE/templates/workspace_services/guacamole/guacamole-server/guacamole-auth-azure/src/test/java/org/apache/guacamole/auth/azuretre/package-info.java/0
{ "file_path": "AzureTRE/templates/workspace_services/guacamole/guacamole-server/guacamole-auth-azure/src/test/java/org/apache/guacamole/auth/azuretre/package-info.java", "repo_id": "AzureTRE", "token_count": 23 }
123
resource "azurerm_network_interface" "internal" { name = "internal-nic-${local.service_resource_name_suffix}" location = data.azurerm_resource_group.ws.location resource_group_name = data.azurerm_resource_group.ws.name tags = local.tre_user_resources_tags ip_configura...
AzureTRE/templates/workspace_services/guacamole/user_resources/guacamole-azure-export-reviewvm/terraform/windowsvm.tf/0
{ "file_path": "AzureTRE/templates/workspace_services/guacamole/user_resources/guacamole-azure-export-reviewvm/terraform/windowsvm.tf", "repo_id": "AzureTRE", "token_count": 3077 }
124
resource "azurerm_network_interface" "internal" { name = "internal-nic-${local.service_resource_name_suffix}" location = data.azurerm_resource_group.ws.location resource_group_name = data.azurerm_resource_group.ws.name tags = local.tre_user_resources_tags ip_configurat...
AzureTRE/templates/workspace_services/guacamole/user_resources/guacamole-azure-linuxvm/terraform/linuxvm.tf/0
{ "file_path": "AzureTRE/templates/workspace_services/guacamole/user_resources/guacamole-azure-linuxvm/terraform/linuxvm.tf", "repo_id": "AzureTRE", "token_count": 2096 }
125
data "azurerm_resource_group" "ws" { name = "rg-${var.tre_id}-ws-${local.short_workspace_id}" } data "azurerm_resource_group" "core" { name = "rg-${var.tre_id}" } data "azurerm_virtual_network" "ws" { name = "vnet-${var.tre_id}-ws-${local.short_workspace_id}" resource_group_name = data.azurerm_...
AzureTRE/templates/workspace_services/guacamole/user_resources/guacamole-azure-windowsvm/terraform/data.tf/0
{ "file_path": "AzureTRE/templates/workspace_services/guacamole/user_resources/guacamole-azure-windowsvm/terraform/data.tf", "repo_id": "AzureTRE", "token_count": 651 }
126
locals { short_service_id = substr(var.tre_resource_id, -4, -1) short_workspace_id = substr(var.workspace_id, -4, -1) aad_tenant_id = data.azurerm_key_vault_secret.aad_tenant_id.value workspace_resource_name_suffix = "${var.tre_id}-ws-${local.short_workspace_id}" key...
AzureTRE/templates/workspace_services/health-services/terraform/locals.tf/0
{ "file_path": "AzureTRE/templates/workspace_services/health-services/terraform/locals.tf", "repo_id": "AzureTRE", "token_count": 412 }
127
data "local_file" "deploypl_compute_cluster" { filename = "${path.module}/nopipcompute/deploypl_compute_cluster.json" } # need to add existing VNET resource "azurerm_resource_group_template_deployment" "deploy_compute_cluster" { name = "dpl-${local.service_resource_name_suffix}_deploy_compute_cluste...
AzureTRE/templates/workspace_services/innereye/terraform/compute.tf/0
{ "file_path": "AzureTRE/templates/workspace_services/innereye/terraform/compute.tf", "repo_id": "AzureTRE", "token_count": 801 }
128
# This file will be auto populated by Terraform during deployment
AzureTRE/templates/workspace_services/mlflow/mlflow-vm-config/linux/config.sh/0
{ "file_path": "AzureTRE/templates/workspace_services/mlflow/mlflow-vm-config/linux/config.sh", "repo_id": "AzureTRE", "token_count": 13 }
129
# OHDSI Workspace Service ## IMPORTANT - This workspace service does not work "out of the box". It requires additional networking configuration to work properly. - Currently the only CDM data source supported by the workspace service is Azure Synapse. Further details are provided in the [documentation](https://micros...
AzureTRE/templates/workspace_services/ohdsi/README.md/0
{ "file_path": "AzureTRE/templates/workspace_services/ohdsi/README.md", "repo_id": "AzureTRE", "token_count": 98 }
130
resource "random_password" "postgres_admin_password" { length = 32 special = false } resource "random_password" "postgres_webapi_admin_password" { length = 32 special = false } resource "random_password" "postgres_webapi_app_password" { length = 32 special = false } resource "azurerm_key_vault_secret"...
AzureTRE/templates/workspace_services/ohdsi/terraform/atlas_database.tf/0
{ "file_path": "AzureTRE/templates/workspace_services/ohdsi/terraform/atlas_database.tf", "repo_id": "AzureTRE", "token_count": 3631 }
131
# syntax=docker/dockerfile-upstream:1.4.0 FROM --platform=linux/amd64 debian:bullseye-slim # PORTER_INIT RUN rm -f /etc/apt/apt.conf.d/docker-clean; echo 'Binary::apt::APT::Keep-Downloaded-Packages "true";' > /etc/apt/apt.conf.d/keep-cache # Git is required for terraform_azurerm_environment_configuration RUN --mount...
AzureTRE/templates/workspaces/airlock-import-review/Dockerfile.tmpl/0
{ "file_path": "AzureTRE/templates/workspaces/airlock-import-review/Dockerfile.tmpl", "repo_id": "AzureTRE", "token_count": 514 }
132
variable "key_vault_id" { type = string } variable "workspace_resource_name_suffix" { type = string } variable "workspace_owner_object_id" { type = string } variable "tre_workspace_tags" { type = map(string) } variable "aad_redirect_uris_b64" { type = string # list of objects like [{"name": "my uri 1", "value...
AzureTRE/templates/workspaces/base/terraform/aad/variables.tf/0
{ "file_path": "AzureTRE/templates/workspaces/base/terraform/aad/variables.tf", "repo_id": "AzureTRE", "token_count": 146 }
133
data "azurerm_client_config" "current" {} resource "azurerm_key_vault" "kv" { name = local.keyvault_name location = azurerm_resource_group.ws.location resource_group_name = azurerm_resource_group.ws.name sku_name = "standard" purge_protection_enabled =...
AzureTRE/templates/workspaces/base/terraform/keyvault.tf/0
{ "file_path": "AzureTRE/templates/workspaces/base/terraform/keyvault.tf", "repo_id": "AzureTRE", "token_count": 2191 }
134
#!/bin/bash set -o errexit set -o pipefail # Uncomment this line to see each command for debugging (careful: this will show secrets!) # set -o xtrace function usage() { cat <<USAGE Usage: $0 --workspace-api-client-id some_guid --aad-redirect-uris-b64 json_array_of_urls_in_base64 --register-aad-application fal...
AzureTRE/templates/workspaces/base/update_redirect_urls.sh/0
{ "file_path": "AzureTRE/templates/workspaces/base/update_redirect_urls.sh", "repo_id": "AzureTRE", "token_count": 982 }
135
{ "short_name": "React App", "name": "Create React App Sample", "icons": [ { "src": "favicon.ico", "sizes": "64x64 32x32 24x24 16x16", "type": "image/x-icon" } ], "start_url": ".", "display": "standalone", "theme_color": "#000000", "background_color": "#ffffff" }
AzureTRE/ui/app/public/manifest.json/0
{ "file_path": "AzureTRE/ui/app/public/manifest.json", "repo_id": "AzureTRE", "token_count": 141 }
136
import { MessageBar, MessageBarType, Link as FluentLink, Icon, } from '@fluentui/react'; import React, { useState } from 'react'; import { APIError } from '../../models/exceptions'; interface ExceptionLayoutProps { e: APIError } export const ExceptionLayout: React.FunctionComponent<ExceptionLayoutProps> = (props: E...
AzureTRE/ui/app/src/components/shared/ExceptionLayout.tsx/0
{ "file_path": "AzureTRE/ui/app/src/components/shared/ExceptionLayout.tsx", "repo_id": "AzureTRE", "token_count": 1288 }
137
import React, { useContext, useEffect, useState } from 'react'; import { WorkspaceContext } from '../../contexts/WorkspaceContext'; import { AppRolesContext } from '../../contexts/AppRolesContext'; import { MessageBar, MessageBarType } from '@fluentui/react'; import { ApiEndpoint } from '../../models/apiEndpoints'; imp...
AzureTRE/ui/app/src/components/shared/SecuredByRole.tsx/0
{ "file_path": "AzureTRE/ui/app/src/components/shared/SecuredByRole.tsx", "repo_id": "AzureTRE", "token_count": 911 }
138
import React from 'react'; import { useInterval } from './useInterval'; import { HttpMethod, useAuthApiCall } from '../../../hooks/useAuthApiCall'; import { ApiEndpoint } from '../../../models/apiEndpoints'; import { TRENotification } from '../../../models/treNotification'; import { Operation } from '../../../models/op...
AzureTRE/ui/app/src/components/shared/notifications/NotificationPoller.tsx/0
{ "file_path": "AzureTRE/ui/app/src/components/shared/notifications/NotificationPoller.tsx", "repo_id": "AzureTRE", "token_count": 514 }
139
import React from "react"; import { Workspace } from "../models/workspace"; import { CostResource } from "../models/costs"; export const WorkspaceContext = React.createContext({ roles: [] as Array<string>, costs: [] as Array<CostResource>, setCosts: (costs: Array<CostResource>) => { }, setRoles: (roles: Array<...
AzureTRE/ui/app/src/contexts/WorkspaceContext.ts/0
{ "file_path": "AzureTRE/ui/app/src/contexts/WorkspaceContext.ts", "repo_id": "AzureTRE", "token_count": 140 }
140
import { Operation } from "./operation"; import { Resource } from "./resource"; import { Workspace } from "./workspace"; export interface TRENotification { operation: Operation, resource: Resource, workspace?: Workspace }
AzureTRE/ui/app/src/models/treNotification.ts/0
{ "file_path": "AzureTRE/ui/app/src/models/treNotification.ts", "repo_id": "AzureTRE", "token_count": 71 }
141
t ;</w> 619192701 t i 564291067 t h 524051793 i n 469370490 a n 456368938 r e 438829057 t e 356837642 e n 324273336 l t;</w> 305179650 & lt;</w> 305179650 g t;</w> 302184132 & gt;</w> 302184132 th e</w> 288901877 o f</w> 274959925 r o 269192161 o n</w> 263366829 e r 252568360 o n 247449736 i n</w> 231407338 an d</w> 22...
BioGPT/data/biogpt_large_bpecodes/0
{ "file_path": "BioGPT/data/biogpt_large_bpecodes", "repo_id": "BioGPT", "token_count": 418071 }
142