text
stringlengths
5
22M
id
stringlengths
12
177
metadata
dict
__index_level_0__
int64
0
1.37k
# coding=utf-8 # Copyright 2020-present, AllenAI Authors, University of Illinois Urbana-Champaign, # Intel Nervana Systems 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 ...
AdaMix/examples/research_projects/movement-pruning/emmental/modules/binarizer.py/0
{ "file_path": "AdaMix/examples/research_projects/movement-pruning/emmental/modules/binarizer.py", "repo_id": "AdaMix", "token_count": 2366 }
38
#! /usr/bin/env python3 # coding=utf-8 # Copyright (c) 2019 Uber Technologies, 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 ...
AdaMix/examples/research_projects/pplm/run_pplm.py/0
{ "file_path": "AdaMix/examples/research_projects/pplm/run_pplm.py", "repo_id": "AdaMix", "token_count": 13228 }
39
# the proper usage is documented in the README, you need to specify data_dir, output_dir and model_name_or_path # run ./finetune.sh --help to see all the possible options python finetune.py \ --learning_rate=3e-5 \ --fp16 \ --gpus 1 \ --do_train \ --do_predict \ --n_val 1000 \ --val_check_in...
AdaMix/examples/research_projects/seq2seq-distillation/finetune.sh/0
{ "file_path": "AdaMix/examples/research_projects/seq2seq-distillation/finetune.sh", "repo_id": "AdaMix", "token_count": 138 }
40
#!/usr/bin/env bash python run_asr.py \ --output_dir="./wav2vec2-large-lv60-100h" \ --num_train_epochs="30" \ --per_device_train_batch_size="16" \ --per_device_eval_batch_size="16" \ --evaluation_strategy="steps" \ --save_total_limit="3" \ --save_steps="500" \ --eval_steps="100" \ --logging_steps="50" \ --learning_rate...
AdaMix/examples/research_projects/wav2vec2/finetune_large_lv60_100.sh/0
{ "file_path": "AdaMix/examples/research_projects/wav2vec2/finetune_large_lv60_100.sh", "repo_id": "AdaMix", "token_count": 255 }
41
# 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/examples/tests/trainer/test_trainer_ext.py/0
{ "file_path": "AdaMix/examples/tests/trainer/test_trainer_ext.py", "repo_id": "AdaMix", "token_count": 3774 }
42
<jupyter_start><jupyter_text>**How to benchmark models with Transformers**With ever-larger language models, it is no longer enough to just compare models on their performance on a specific task. One should always be aware of the computational cost that is attached to a specific model. For a given computation environmen...
AdaMix/notebooks/05-benchmark.ipynb/0
{ "file_path": "AdaMix/notebooks/05-benchmark.ipynb", "repo_id": "AdaMix", "token_count": 11981 }
43
# this is the process of uploading the updated models to s3. As I can't upload them directly to the correct orgs, this script shows how this is done # 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 comp...
AdaMix/scripts/fsmt/s3-move.sh/0
{ "file_path": "AdaMix/scripts/fsmt/s3-move.sh", "repo_id": "AdaMix", "token_count": 2133 }
44
# This file is adapted from the AllenNLP library at https://github.com/allenai/allennlp # Copyright 2020 The HuggingFace Team and the AllenNLP authors. 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 o...
AdaMix/src/transformers/benchmark/benchmark_utils.py/0
{ "file_path": "AdaMix/src/transformers/benchmark/benchmark_utils.py", "repo_id": "AdaMix", "token_count": 16379 }
45
# 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/convert_slow_tokenizers_checkpoints_to_fast.py/0
{ "file_path": "AdaMix/src/transformers/convert_slow_tokenizers_checkpoints_to_fast.py", "repo_id": "AdaMix", "token_count": 2078 }
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/generation_tf_utils.py/0
{ "file_path": "AdaMix/src/transformers/generation_tf_utils.py", "repo_id": "AdaMix", "token_count": 26353 }
47
from torch import nn from transformers.activations import get_activation class Adapter(nn.Module): def __init__(self, dim, r, act): super().__init__() self.adapter_A = nn.Linear(dim, r) self.act = get_activation(act) self.adapter_B = nn.Linear(r, dim) def forward(self, x, resi...
AdaMix/src/transformers/models/adapter.py/0
{ "file_path": "AdaMix/src/transformers/models/adapter.py", "repo_id": "AdaMix", "token_count": 204 }
48
# coding=utf-8 # 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/...
AdaMix/src/transformers/models/bart/modeling_tf_bart.py/0
{ "file_path": "AdaMix/src/transformers/models/bart/modeling_tf_bart.py", "repo_id": "AdaMix", "token_count": 30206 }
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/models/bert/convert_bert_original_tf2_checkpoint_to_pytorch.py/0
{ "file_path": "AdaMix/src/transformers/models/bert/convert_bert_original_tf2_checkpoint_to_pytorch.py", "repo_id": "AdaMix", "token_count": 4716 }
50
# 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/src/transformers/models/convbert/modeling_convbert.py/0
{ "file_path": "AdaMix/src/transformers/models/convbert/modeling_convbert.py", "repo_id": "AdaMix", "token_count": 23815 }
51
# coding=utf-8 # Copyright 2019 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/electra/modeling_tf_electra.py/0
{ "file_path": "AdaMix/src/transformers/models/electra/modeling_tf_electra.py", "repo_id": "AdaMix", "token_count": 26929 }
52
# coding=utf-8 # Copyright 2019-present CNRS, Facebook Inc. 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/src/transformers/models/flaubert/modeling_flaubert.py/0
{ "file_path": "AdaMix/src/transformers/models/flaubert/modeling_flaubert.py", "repo_id": "AdaMix", "token_count": 7202 }
53
# 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/gpt2/modeling_gpt2.py/0
{ "file_path": "AdaMix/src/transformers/models/gpt2/modeling_gpt2.py", "repo_id": "AdaMix", "token_count": 24860 }
54
# coding=utf-8 # Copyright 2021 The I-BERT Authors (Sehoon Kim, Amir Gholami, Zhewei Yao, # Michael Mahoney, Kurt Keutzer - UC Berkeley) and The HuggingFace Inc. team. # Copyright (c) 20121, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use t...
AdaMix/src/transformers/models/ibert/modeling_ibert.py/0
{ "file_path": "AdaMix/src/transformers/models/ibert/modeling_ibert.py", "repo_id": "AdaMix", "token_count": 24187 }
55
# coding=utf-8 # Copyright 2020 The Allen Institute for AI team 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...
AdaMix/src/transformers/models/longformer/modeling_tf_longformer.py/0
{ "file_path": "AdaMix/src/transformers/models/longformer/modeling_tf_longformer.py", "repo_id": "AdaMix", "token_count": 54705 }
56
# coding=utf-8 # Copyright 2021 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/mbart/tokenization_mbart50.py/0
{ "file_path": "AdaMix/src/transformers/models/mbart/tokenization_mbart50.py", "repo_id": "AdaMix", "token_count": 6259 }
57
# 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/mobilebert/modeling_tf_mobilebert.py/0
{ "file_path": "AdaMix/src/transformers/models/mobilebert/modeling_tf_mobilebert.py", "repo_id": "AdaMix", "token_count": 32803 }
58
# coding=utf-8 # 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 the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # ...
AdaMix/src/transformers/models/openai/tokenization_openai_fast.py/0
{ "file_path": "AdaMix/src/transformers/models/openai/tokenization_openai_fast.py", "repo_id": "AdaMix", "token_count": 1111 }
59
# 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/phobert/tokenization_phobert.py/0
{ "file_path": "AdaMix/src/transformers/models/phobert/tokenization_phobert.py", "repo_id": "AdaMix", "token_count": 6318 }
60
# coding=utf-8 # Copyright 2020, The RAG 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 # # Unless r...
AdaMix/src/transformers/models/rag/configuration_rag.py/0
{ "file_path": "AdaMix/src/transformers/models/rag/configuration_rag.py", "repo_id": "AdaMix", "token_count": 3771 }
61
# 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/roberta/configuration_roberta.py/0
{ "file_path": "AdaMix/src/transformers/models/roberta/configuration_roberta.py", "repo_id": "AdaMix", "token_count": 953 }
62
# 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/speech_to_text/processing_speech_to_text.py/0
{ "file_path": "AdaMix/src/transformers/models/speech_to_text/processing_speech_to_text.py", "repo_id": "AdaMix", "token_count": 2597 }
63
# coding=utf-8 # Copyright 2020 Google Research 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 re...
AdaMix/src/transformers/models/tapas/tokenization_tapas.py/0
{ "file_path": "AdaMix/src/transformers/models/tapas/tokenization_tapas.py", "repo_id": "AdaMix", "token_count": 53002 }
64
# coding=utf-8 # Copyright 2019-present, Facebook, Inc 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 # # Un...
AdaMix/src/transformers/models/xlm/modeling_tf_xlm.py/0
{ "file_path": "AdaMix/src/transformers/models/xlm/modeling_tf_xlm.py", "repo_id": "AdaMix", "token_count": 26560 }
65
#!/usr/bin/env python # 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/LI...
AdaMix/src/transformers/utils/__init__.py/0
{ "file_path": "AdaMix/src/transformers/utils/__init__.py", "repo_id": "AdaMix", "token_count": 540 }
66
# THIS FILE HAS BEEN AUTOGENERATED. To update: # 1. modify: models/auto/modeling_auto.py # 2. run: python utils/class_mapping_update.py from collections import OrderedDict MODEL_FOR_QUESTION_ANSWERING_MAPPING_NAMES = OrderedDict( [ ("ConvBertConfig", "ConvBertForQuestionAnswering"), ("LEDConfig", ...
AdaMix/src/transformers/utils/modeling_auto_mapping.py/0
{ "file_path": "AdaMix/src/transformers/utils/modeling_auto_mapping.py", "repo_id": "AdaMix", "token_count": 659 }
67
## 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 ...
AdaMix/templates/adding_a_new_model/cookiecutter-template-{{cookiecutter.modelname}}/to_replace_{{cookiecutter.lowercase_modelname}}.py/0
{ "file_path": "AdaMix/templates/adding_a_new_model/cookiecutter-template-{{cookiecutter.modelname}}/to_replace_{{cookiecutter.lowercase_modelname}}.py", "repo_id": "AdaMix", "token_count": 6383 }
68
# coding=utf-8 # Copyright 2021 HuggingFace 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 ag...
AdaMix/tests/test_feature_extraction_speech_to_text.py/0
{ "file_path": "AdaMix/tests/test_feature_extraction_speech_to_text.py", "repo_id": "AdaMix", "token_count": 2436 }
69
# 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_bert.py/0
{ "file_path": "AdaMix/tests/test_modeling_bert.py", "repo_id": "AdaMix", "token_count": 10939 }
70
# 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_modeling_flax_bert.py/0
{ "file_path": "AdaMix/tests/test_modeling_flax_bert.py", "repo_id": "AdaMix", "token_count": 1942 }
71
# 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_modeling_mt5.py/0
{ "file_path": "AdaMix/tests/test_modeling_mt5.py", "repo_id": "AdaMix", "token_count": 817 }
72
# 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_tf_mbart.py/0
{ "file_path": "AdaMix/tests/test_modeling_tf_mbart.py", "repo_id": "AdaMix", "token_count": 6424 }
73
# 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_xlm.py/0
{ "file_path": "AdaMix/tests/test_modeling_xlm.py", "repo_id": "AdaMix", "token_count": 8258 }
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_pipelines_table_question_answering.py/0
{ "file_path": "AdaMix/tests/test_pipelines_table_question_answering.py", "repo_id": "AdaMix", "token_count": 5496 }
75
# 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_bert_japanese.py/0
{ "file_path": "AdaMix/tests/test_tokenization_bert_japanese.py", "repo_id": "AdaMix", "token_count": 5199 }
76
# 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-2.0 # # Unless required by applicabl...
AdaMix/tests/test_tokenization_m2m_100.py/0
{ "file_path": "AdaMix/tests/test_tokenization_m2m_100.py", "repo_id": "AdaMix", "token_count": 3428 }
77
# 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/utils/check_copies.py/0
{ "file_path": "AdaMix/utils/check_copies.py", "repo_id": "AdaMix", "token_count": 5181 }
78
from __future__ import absolute_import, division, print_function, unicode_literals import numpy as np import os import sys import airsimdroneracingvae # imports curr_dir = os.path.dirname(os.path.abspath(__file__)) import_path = os.path.join(curr_dir, '..') sys.path.insert(0, import_path) import racing_models import ...
AirSim-Drone-Racing-VAE-Imitation/imitation_learning/vel_regressor.py/0
{ "file_path": "AirSim-Drone-Racing-VAE-Imitation/imitation_learning/vel_regressor.py", "repo_id": "AirSim-Drone-Racing-VAE-Imitation", "token_count": 1119 }
79
from scipy.interpolate import CubicSpline, CubicHermiteSpline import airsimneurips as airsim import cvxpy as cp import numpy as np import time gate_dimensions = [1.6, 1.6] gate_facing_vector = airsim.Vector3r(x_val=0, y_val=1, z_val=0) def rotate_vector(q, v): v_quat = v.to_Quaternionr() v_rotated_ = q * v_qu...
AirSim-NeurIPS2019-Drone-Racing/baselines/gtp.py/0
{ "file_path": "AirSim-NeurIPS2019-Drone-Racing/baselines/gtp.py", "repo_id": "AirSim-NeurIPS2019-Drone-Racing", "token_count": 7424 }
80
[settings] include_trailing_comma=True force_grid_wrap=0 use_parentheses=True line_length=79 profile=black ; 3 stands for Vertical Hanging Indent, e.g. ; from third_party import ( ; lib1, ; lib2, ; lib3, ; ) ; docs: https://github.com/timothycrosley/isort#multi-line-output-modes multi_line_output=3 skip=ta...
ApplicationInsights-Python/.isort.cfg/0
{ "file_path": "ApplicationInsights-Python/.isort.cfg", "repo_id": "ApplicationInsights-Python", "token_count": 214 }
81
# Azure Trusted Research Environment **Azure TRE documentation site**: <https://microsoft.github.io/AzureTRE/> ## Background <img align="right" src="./docs/assets/azure-tre-logo.svg" width="33%" /> Across the health industry, be it a pharmaceutical company interrogating clinical trial results, or a public health pro...
AzureTRE/README.md/0
{ "file_path": "AzureTRE/README.md", "repo_id": "AzureTRE", "token_count": 1468 }
82
class NoFilesInRequestException(Exception): pass class TooManyFilesInRequestException(Exception): pass
AzureTRE/airlock_processor/exceptions/__init__.py/0
{ "file_path": "AzureTRE/airlock_processor/exceptions/__init__.py", "repo_id": "AzureTRE", "token_count": 32 }
83
import asyncio from fastapi import APIRouter, Request from core import credentials from models.schemas.status import HealthCheck, ServiceStatus, StatusEnum from resources import strings from services.health_checker import create_resource_processor_status, create_state_store_status, create_service_bus_status from servic...
AzureTRE/api_app/api/routes/health.py/0
{ "file_path": "AzureTRE/api_app/api/routes/health.py", "repo_id": "AzureTRE", "token_count": 622 }
84
class EntityDoesNotExist(Exception): """Raised when entity was not found in database.""" class DuplicateEntity(Exception): """Raised when we have an unexpected duplicate (ex. two currents)""" class EntityVersionExist(Exception): """Raised when entity was not found in database.""" class UnableToAccessD...
AzureTRE/api_app/db/errors.py/0
{ "file_path": "AzureTRE/api_app/db/errors.py", "repo_id": "AzureTRE", "token_count": 297 }
85
import uuid from typing import List, Tuple from pydantic import parse_obj_as from db.repositories.resources_history import ResourceHistoryRepository from models.domain.resource_template import ResourceTemplate from models.domain.authentication import User from core import config from db.errors import EntityDoesNotExi...
AzureTRE/api_app/db/repositories/workspaces.py/0
{ "file_path": "AzureTRE/api_app/db/repositories/workspaces.py", "repo_id": "AzureTRE", "token_count": 3198 }
86
from enum import Enum from typing import Optional, Union, List from pydantic import BaseModel, Field, validator from models.domain.azuretremodel import AzureTREModel from models.domain.request_action import RequestAction from resources import strings class ResourceType(str, Enum): """ Type of resource to depl...
AzureTRE/api_app/models/domain/resource.py/0
{ "file_path": "AzureTRE/api_app/models/domain/resource.py", "repo_id": "AzureTRE", "token_count": 1208 }
87
from typing import List, Optional from pydantic import BaseModel, Field, Extra from models.domain.resource import ResourceHistoryItem class ResourcePatch(BaseModel): isEnabled: Optional[bool] properties: Optional[dict] templateVersion: Optional[str] class Config: extra = Extra.forbid ...
AzureTRE/api_app/models/schemas/resource.py/0
{ "file_path": "AzureTRE/api_app/models/schemas/resource.py", "repo_id": "AzureTRE", "token_count": 796 }
88
PONG = "pong" # API Descriptions API_GET_HEALTH_STATUS = "Get health status" API_GET_PING = "Simple endpoint to test calling the API" API_GET_METADATA = "Get public API metadata (e.g. to support the UI and CLI)" API_MIGRATE_DATABASE = "Migrate documents in the database" API_GET_MY_OPERATIONS = "Get Operations that th...
AzureTRE/api_app/resources/strings.py/0
{ "file_path": "AzureTRE/api_app/resources/strings.py", "repo_id": "AzureTRE", "token_count": 4629 }
89
from datetime import datetime, timedelta from services.logging import logger from azure.storage.blob import generate_container_sas, ContainerSasPermissions, BlobServiceClient from fastapi import HTTPException, status from core import config, credentials from models.domain.airlock_request import AirlockRequest, Airlock...
AzureTRE/api_app/services/airlock.py/0
{ "file_path": "AzureTRE/api_app/services/airlock.py", "repo_id": "AzureTRE", "token_count": 10431 }
90
import pytest from httpx import AsyncClient from starlette.status import HTTP_404_NOT_FOUND pytestmark = pytest.mark.asyncio async def test_frw_validation_error_format(app): async with AsyncClient(base_url="http://testserver", app=app) as client: response = await client.get("/wrong_path/asd") asser...
AzureTRE/api_app/tests_ma/test_api/test_errors/test_error.py/0
{ "file_path": "AzureTRE/api_app/tests_ma/test_api/test_errors/test_error.py", "repo_id": "AzureTRE", "token_count": 142 }
91
### Get all workspaces (Workspace Owner or Researcher -- Get own Workspaces) GET {{baseUrl}}/workspaces Accept: {{contentType}} Authorization: Bearer {{token}} ### Get workspace (Workspace Owner or Researcher -- Get own Workspace) GET {{baseUrl}}/workspaces/{{workspaceId}} Accept: {{contentType}} Authorization: Bearer...
AzureTRE/api_http_requests/API Resource GET Endpoints.http/0
{ "file_path": "AzureTRE/api_http_requests/API Resource GET Endpoints.http", "repo_id": "AzureTRE", "token_count": 355 }
92
import asyncio from logging import Logger import msal from azure.identity.aio import ClientSecretCredential from azure.cli.core import cloud from urllib.parse import urlparse from msal.authority import AuthorityBuilder def get_auth_token_client_credentials( log: Logger, client_id: str, client_secret: str,...
AzureTRE/cli/tre/authentication.py/0
{ "file_path": "AzureTRE/cli/tre/authentication.py", "repo_id": "AzureTRE", "token_count": 570 }
93
import logging import click from tre.commands.operation import operations_list from tre.output import output_option, query_option from .contexts import SharedServiceContext, pass_shared_service_context @click.group(name="operations", help="List operations ") def shared_service_operations(): pass @click.command...
AzureTRE/cli/tre/commands/shared_services/operations.py/0
{ "file_path": "AzureTRE/cli/tre/commands/shared_services/operations.py", "repo_id": "AzureTRE", "token_count": 287 }
94
import json import logging import click 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 UserResourceContext, pass_user_resource_context from .operation import us...
AzureTRE/cli/tre/commands/workspaces/workspace_services/user_resources/user_resource.py/0
{ "file_path": "AzureTRE/cli/tre/commands/workspaces/workspace_services/user_resources/user_resource.py", "repo_id": "AzureTRE", "token_count": 4962 }
95
# Utilize the existing service bus - add new queue resource "azurerm_servicebus_queue" "step_result" { name = local.step_result_queue_name namespace_id = var.airlock_servicebus.id enable_partitioning = false } resource "azurerm_servicebus_queue" "status_changed" { name = local.status_changed_q...
AzureTRE/core/terraform/airlock/service_bus.tf/0
{ "file_path": "AzureTRE/core/terraform/airlock/service_bus.tf", "repo_id": "AzureTRE", "token_count": 447 }
96
output "app_insights_connection_string" { value = azurerm_application_insights.core.connection_string } output "log_analytics_workspace_id" { value = azurerm_log_analytics_workspace.core.id } output "log_analytics_workspace_name" { value = azurerm_log_analytics_workspace.core.name }
AzureTRE/core/terraform/azure-monitor/outputs.tf/0
{ "file_path": "AzureTRE/core/terraform/azure-monitor/outputs.tf", "repo_id": "AzureTRE", "token_count": 105 }
97
# admin jumpbox moved { from = module.jumpbox.azurerm_network_interface.jumpbox_nic to = azurerm_network_interface.jumpbox_nic } moved { from = module.jumpbox.random_string.username to = random_string.username } moved { from = module.jumpbox.random_password.password to = random_password.password } ...
AzureTRE/core/terraform/modules_move_definitions.tf/0
{ "file_path": "AzureTRE/core/terraform/modules_move_definitions.tf", "repo_id": "AzureTRE", "token_count": 3477 }
98
#!/bin/bash
AzureTRE/core/terraform/scripts/cleanup-hook.sh/0
{ "file_path": "AzureTRE/core/terraform/scripts/cleanup-hook.sh", "repo_id": "AzureTRE", "token_count": 6 }
99
#!/bin/bash # This script is designed to be `source`d to create reusable helper functions # Utility function that retrieves all of the 'requiredResourceAccess' from an application, # it then removes any access for a given `resourceAppId`, merges in a new element into the # array and then posts it back to AAD. functio...
AzureTRE/devops/scripts/aad/update_resource_access.sh/0
{ "file_path": "AzureTRE/devops/scripts/aad/update_resource_access.sh", "repo_id": "AzureTRE", "token_count": 483 }
100
#!/bin/bash set -o errexit set -o pipefail set -o nounset # set -o xtrace # # Usage: # env_to_yaml_config.sh <.env file> # cp config.sample.yaml config.yaml # Loop over the relevant lines in the file specified in $1 (passed in after the loop) # The loop source filters the lines in the source file to those that shou...
AzureTRE/devops/scripts/env_to_yaml_config.sh/0
{ "file_path": "AzureTRE/devops/scripts/env_to_yaml_config.sh", "repo_id": "AzureTRE", "token_count": 687 }
101
#!/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 if [[ -z ${STORAGE_ACCOUNT:-} ]]; then echo "STORAGE_ACCOUNT not set" exit 1 fi # The storage account is protected by network rules echo "Enabling pu...
AzureTRE/devops/scripts/upload_static_web.sh/0
{ "file_path": "AzureTRE/devops/scripts/upload_static_web.sh", "repo_id": "AzureTRE", "token_count": 286 }
102
# TRE Automation Admin Application ## Name The Automation Application is typically called `<TRE_ID> Automation Admin` within the Microsoft Entra ID Portal. ## Purpose This application is used to authorize end-to-end test scenarios. !!! note - This app registration is only needed and used for **testing** ## Ap...
AzureTRE/docs/tre-admins/identities/test-account.md/0
{ "file_path": "AzureTRE/docs/tre-admins/identities/test-account.md", "repo_id": "AzureTRE", "token_count": 1193 }
103
# 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/ui-install-ws-and-ur.md/0
{ "file_path": "AzureTRE/docs/tre-admins/setup-instructions/ui-install-ws-and-ur.md", "repo_id": "AzureTRE", "token_count": 710 }
104
# Troubleshooting cloud-init Cloud-init is used to configure a number of virtual machines within the Azure TRE project at first boot. This methood is used as we are unable to distribute pre built images with third part dependancies. In a production environment you may choose to create your own VM images to avoid the n...
AzureTRE/docs/troubleshooting-faq/cloud-init.md/0
{ "file_path": "AzureTRE/docs/troubleshooting-faq/cloud-init.md", "repo_id": "AzureTRE", "token_count": 254 }
105
import asyncio import json import base64 import logging from urllib.parse import urlparse from resources.helpers import get_installation_id from shared.logging import logger, shell_output_logger def azure_login_command(config): set_cloud_command = f"az cloud set --name {config['azure_environment']} >/dev/null " ...
AzureTRE/resource_processor/resources/commands.py/0
{ "file_path": "AzureTRE/resource_processor/resources/commands.py", "repo_id": "AzureTRE", "token_count": 2746 }
106
data "azurerm_subnet" "shared" { resource_group_name = local.core_resource_group_name virtual_network_name = local.core_vnet name = "SharedSubnet" } data "azurerm_key_vault" "keyvault" { name = local.keyvault_name resource_group_name = local.core_resource_group_name } data "az...
AzureTRE/templates/shared_services/admin-vm/terraform/data.tf/0
{ "file_path": "AzureTRE/templates/shared_services/admin-vm/terraform/data.tf", "repo_id": "AzureTRE", "token_count": 168 }
107
# This file is maintained automatically by "terraform init". # Manual edits may be lost in future updates. provider "registry.terraform.io/hashicorp/azurerm" { version = "3.57.0" constraints = "3.57.0" hashes = [ "h1:SOBKU/ioGnpuQpAx6dgaD0EzfAM2W+uS9e6p59viSxs=", "zh:028202b0ae01f1262dac076b383cb68b5...
AzureTRE/templates/shared_services/airlock_notifier/terraform/.terraform.lock.hcl/0
{ "file_path": "AzureTRE/templates/shared_services/airlock_notifier/terraform/.terraform.lock.hcl", "repo_id": "AzureTRE", "token_count": 1351 }
108
#!/bin/bash
AzureTRE/templates/shared_services/certs/scripts/cleanup-hook.sh/0
{ "file_path": "AzureTRE/templates/shared_services/certs/scripts/cleanup-hook.sh", "repo_id": "AzureTRE", "token_count": 6 }
109
{ "$schema": "http://json-schema.org/draft-07/schema", "$id": "https://github.com/microsoft/AzureTRE/templates/workspace_services/guacamole/user_resources/guacamole-azure-linuxvm/template_schema.json", "type": "object", "title": "Azure CycleCloud", "description": "Azure CycleCloud is an enterprise-friendly to...
AzureTRE/templates/shared_services/cyclecloud/template_schema.json/0
{ "file_path": "AzureTRE/templates/shared_services/cyclecloud/template_schema.json", "repo_id": "AzureTRE", "token_count": 150 }
110
data "azurerm_resource_group" "rg" { name = local.core_resource_group_name } data "azurerm_virtual_network" "core" { name = local.core_virtual_network_name resource_group_name = data.azurerm_resource_group.rg.name } data "azurerm_subnet" "services" { name = "SharedSubnet" virt...
AzureTRE/templates/shared_services/databricks-auth/terraform/data.tf/0
{ "file_path": "AzureTRE/templates/shared_services/databricks-auth/terraform/data.tf", "repo_id": "AzureTRE", "token_count": 276 }
111
resource "azurerm_public_ip" "fwtransit" { name = "pip-fw-${var.tre_id}" resource_group_name = local.core_resource_group_name location = data.azurerm_resource_group.rg.location allocation_method = "Static" sku = "Standard" tags = local.tre_shared_se...
AzureTRE/templates/shared_services/firewall/terraform/firewall.tf/0
{ "file_path": "AzureTRE/templates/shared_services/firewall/terraform/firewall.tf", "repo_id": "AzureTRE", "token_count": 1314 }
112
# This file is maintained automatically by "terraform init". # Manual edits may be lost in future updates. provider "registry.terraform.io/hashicorp/azurerm" { version = "3.33.0" constraints = "3.33.0" hashes = [ "h1:pXB6SKE4NKdf+LepsQjrLcBnVTL5ejeKvx/kyojai6c=", "zh:136d9c642746d8d84e62ecd8ab0c7dc01...
AzureTRE/templates/shared_services/gitea/terraform/.terraform.lock.hcl/0
{ "file_path": "AzureTRE/templates/shared_services/gitea/terraform/.terraform.lock.hcl", "repo_id": "AzureTRE", "token_count": 2045 }
113
#!/bin/bash # Configure Nexus to use certificate to serve proxies over https set -o errexit set -o pipefail set -o nounset # set -o xtrace echo "Setting up Nexus SSL..." # Import ssl cert to keystore within Nexus volume keystore_timeout=60 echo 'Checking for nexus-data/keystores directory...' while [ ! -d /etc/nexu...
AzureTRE/templates/shared_services/sonatype-nexus-vm/scripts/configure_nexus_ssl.sh/0
{ "file_path": "AzureTRE/templates/shared_services/sonatype-nexus-vm/scripts/configure_nexus_ssl.sh", "repo_id": "AzureTRE", "token_count": 1156 }
114
{ "schemaType": "ParameterSet", "schemaVersion": "1.0.1", "namespace": "", "name": "tre-service-azureml", "parameters": [ { "name": "workspace_id", "source": { "env": "WORKSPACE_ID" } }, { "name": "id", "source": { "env": "ID" } }, { ...
AzureTRE/templates/workspace_services/azureml/parameters.json/0
{ "file_path": "AzureTRE/templates/workspace_services/azureml/parameters.json", "repo_id": "AzureTRE", "token_count": 738 }
115
variable "workspace_id" { type = string } variable "tre_id" { type = string } variable "tre_resource_id" { type = string } variable "display_name" { type = string } variable "description" { type = string } variable "is_exposed_externally" { type = bool } variable "address_space" { type = string } variable...
AzureTRE/templates/workspace_services/azureml/terraform/variables.tf/0
{ "file_path": "AzureTRE/templates/workspace_services/azureml/terraform/variables.tf", "repo_id": "AzureTRE", "token_count": 304 }
116
# 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 # Install git - required for https://registry.terraform.io/modules/claranet/r...
AzureTRE/templates/workspace_services/databricks/Dockerfile.tmpl/0
{ "file_path": "AzureTRE/templates/workspace_services/databricks/Dockerfile.tmpl", "repo_id": "AzureTRE", "token_count": 233 }
117
ID="__CHANGE_ME__" WORKSPACE_ID="__CHANGE_ME__" MGMT_ACR_NAME="__CHANGE_ME__"
AzureTRE/templates/workspace_services/gitea/.env.sample/0
{ "file_path": "AzureTRE/templates/workspace_services/gitea/.env.sample", "repo_id": "AzureTRE", "token_count": 40 }
118
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-${local.service_resource_name_suffix}" resource_group_name = data.azurerm_resource_g...
AzureTRE/templates/workspace_services/gitea/terraform/mysql.tf/0
{ "file_path": "AzureTRE/templates/workspace_services/gitea/terraform/mysql.tf", "repo_id": "AzureTRE", "token_count": 1166 }
119
#!/usr/bin/with-contenv sh set -x echo >&2 "starting oauth2-proxy" cookiesecret=$(dd if=/dev/urandom bs=32 count=1 2>/dev/null | base64 | tr -d -- '\n' | tr -- '+/' '-_'; echo) "${OAUTH2_PROXY_HOME}"/oauth2-proxy \ --provider oidc \ --skip-provider-button \ --cookie-secret "${cookiesecret}" \ --oidc-issuer-url "${OAU...
AzureTRE/templates/workspace_services/guacamole/guacamole-server/docker/services/oauth/run/0
{ "file_path": "AzureTRE/templates/workspace_services/guacamole/guacamole-server/docker/services/oauth/run", "repo_id": "AzureTRE", "token_count": 405 }
120
/* * 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/user/AzureTREAuthenticatedUser.java/0
{ "file_path": "AzureTRE/templates/workspace_services/guacamole/guacamole-server/guacamole-auth-azure/src/main/java/org/apache/guacamole/auth/azuretre/user/AzureTREAuthenticatedUser.java", "repo_id": "AzureTRE", "token_count": 727 }
121
{ "$schema": "http://json-schema.org/draft-07/schema", "$id": "https://github.com/microsoft/AzureTRE/templates/workspace_services/guacamole/user_resources/guacamole-azure-export-reviewvm/template_schema.json", "type": "object", "title": "Export review Virtual Machine", "description": "Windows virtua...
AzureTRE/templates/workspace_services/guacamole/user_resources/guacamole-azure-export-reviewvm/template_schema.json/0
{ "file_path": "AzureTRE/templates/workspace_services/guacamole/user_resources/guacamole-azure-export-reviewvm/template_schema.json", "repo_id": "AzureTRE", "token_count": 568 }
122
#!/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 # Remove apt sources not included in sources.list file sudo rm -f /etc/apt/sources.list.d/* # Update apt packages from configured Nexus sources sudo a...
AzureTRE/templates/workspace_services/guacamole/user_resources/guacamole-azure-linuxvm/terraform/vm_config.sh/0
{ "file_path": "AzureTRE/templates/workspace_services/guacamole/user_resources/guacamole-azure-linuxvm/terraform/vm_config.sh", "repo_id": "AzureTRE", "token_count": 1262 }
123
Remove-Item -LiteralPath "C:\AzureData" -Force -Recurse $ErrorActionPreference = "Stop" if( ${SharedStorageAccess} -eq 1 ) { $Command = "net use z: \\${StorageAccountFileHost}\${FileShareName} /u:AZURE\${StorageAccountName} ${StorageAccountKey}" $Command | Out-File "C:\ProgramData\Start Menu\Programs\StartUp\atta...
AzureTRE/templates/workspace_services/guacamole/user_resources/guacamole-azure-windowsvm/terraform/vm_config.ps1/0
{ "file_path": "AzureTRE/templates/workspace_services/guacamole/user_resources/guacamole-azure-windowsvm/terraform/vm_config.ps1", "repo_id": "AzureTRE", "token_count": 877 }
124
{ "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", "contentVersion": "1.0.0.0", "parameters": { "vnet_name": { "type": "String" }, "location": { "type": "String", "metadata": { "descripti...
AzureTRE/templates/workspace_services/innereye/terraform/nopipcompute/deploypl_compute_cluster.json/0
{ "file_path": "AzureTRE/templates/workspace_services/innereye/terraform/nopipcompute/deploypl_compute_cluster.json", "repo_id": "AzureTRE", "token_count": 1562 }
125
{ "$schema": "http://json-schema.org/draft-07/schema", "$id": "https://github.com/microsoft/AzureTRE/templates/workspace_services/mlflow/template_schema.json", "type": "object", "title": "MLflow", "description": "MLflow server to manage machine learning lifecycle.", "required": [], "properties": { "di...
AzureTRE/templates/workspace_services/mlflow/template_schema.json/0
{ "file_path": "AzureTRE/templates/workspace_services/mlflow/template_schema.json", "repo_id": "AzureTRE", "token_count": 595 }
126
{ "$schema": "http://json-schema.org/draft-07/schema", "$id": "https://github.com/microsoft/AzureTRE/templates/workspace_services/sql/template_schema.json", "type": "object", "title": "MySQL Workspace Service", "description": "Provides MySQL within the workspace", "required": [], "properties": { "sql_...
AzureTRE/templates/workspace_services/mysql/template_schema.json/0
{ "file_path": "AzureTRE/templates/workspace_services/mysql/template_schema.json", "repo_id": "AzureTRE", "token_count": 465 }
127
#!/bin/bash set -o errexit set -o pipefail set -o nounset link_name="core" result=$(az network private-dns link vnet list --resource-group "${RESOURCE_GROUP}" -z "${DNS_ZONE_NAME}" --query "[?name=='${link_name}'] | length(@)") if [[ "${result}" == 0 ]]; then az network private-dns link vnet create \ --name $...
AzureTRE/templates/workspace_services/ohdsi/scripts/postgres_dns_link.sh/0
{ "file_path": "AzureTRE/templates/workspace_services/ohdsi/scripts/postgres_dns_link.sh", "repo_id": "AzureTRE", "token_count": 186 }
128
variable "location" { type = string } variable "tre_id" { type = string } variable "ws_resource_group_name" { type = string } variable "enable_local_debugging" { type = bool } variable "services_subnet_id" { type = string } variable "airlock_processor_subnet_id" { type = string } variable "short_workspace_i...
AzureTRE/templates/workspaces/base/terraform/airlock/variables.tf/0
{ "file_path": "AzureTRE/templates/workspaces/base/terraform/airlock/variables.tf", "repo_id": "AzureTRE", "token_count": 157 }
129
output "vnet_id" { value = azurerm_virtual_network.ws.id } output "services_subnet_id" { value = azurerm_subnet.services.id } output "vaultcore_zone_id" { value = data.azurerm_private_dns_zone.vaultcore.id } output "filecore_zone_id" { value = data.azurerm_private_dns_zone.filecore.id } output "blobcore_zon...
AzureTRE/templates/workspaces/base/terraform/network/outputs.tf/0
{ "file_path": "AzureTRE/templates/workspaces/base/terraform/network/outputs.tf", "repo_id": "AzureTRE", "token_count": 423 }
130
import React, { useContext } from 'react'; import { Nav, INavLinkGroup } from '@fluentui/react/lib/Nav'; import { useNavigate } from 'react-router-dom'; import { AppRolesContext } from '../../contexts/AppRolesContext'; import { RoleName } from '../../models/roleNames'; export const LeftNav: React.FunctionComponent = (...
AzureTRE/ui/app/src/components/root/LeftNav.tsx/0
{ "file_path": "AzureTRE/ui/app/src/components/root/LeftNav.tsx", "repo_id": "AzureTRE", "token_count": 461 }
131
import React, { } from 'react'; import { IStackStyles, IStackTokens, Stack, Text } from '@fluentui/react'; import { ResourceCard } from '../shared/ResourceCard'; import { Resource } from '../../models/resource'; interface ResourceCardListProps { resources: Array<Resource>, selectResource?: (resource: Resource) =...
AzureTRE/ui/app/src/components/shared/ResourceCardList.tsx/0
{ "file_path": "AzureTRE/ui/app/src/components/shared/ResourceCardList.tsx", "repo_id": "AzureTRE", "token_count": 855 }
132
import React, { useCallback, useContext, useEffect, useState } from 'react'; import { ColumnActionsMode, CommandBar, CommandBarButton, ContextualMenu, DirectionalHint, getTheme, IColumn, ICommandBarItemProps, Icon, IContextualMenuItem, IContextualMenuProps, Persona, PersonaSize, SelectionMode, ShimmeredDetailsList, Sta...
AzureTRE/ui/app/src/components/shared/airlock/Airlock.tsx/0
{ "file_path": "AzureTRE/ui/app/src/components/shared/airlock/Airlock.tsx", "repo_id": "AzureTRE", "token_count": 5547 }
133
import { getTheme, Icon, mergeStyles, Stack } from '@fluentui/react'; import React, { useContext } from 'react'; import { WorkspaceContext } from '../../contexts/WorkspaceContext'; export const WorkspaceHeader: React.FunctionComponent = () => { const workspaceCtx = useContext(WorkspaceContext); return ( <> ...
AzureTRE/ui/app/src/components/workspaces/WorkspaceHeader.tsx/0
{ "file_path": "AzureTRE/ui/app/src/components/workspaces/WorkspaceHeader.tsx", "repo_id": "AzureTRE", "token_count": 371 }
134
export enum ApiEndpoint { Workspaces = 'workspaces', WorkspaceServices = 'workspace-services', UserResources = 'user-resources', SharedServices = 'shared-services', AirlockRequests = 'requests', AirlockLink = 'link', AirlockSubmit = 'submit', AirlockCancel = 'cancel', AirlockReview =...
AzureTRE/ui/app/src/models/apiEndpoints.ts/0
{ "file_path": "AzureTRE/ui/app/src/models/apiEndpoints.ts", "repo_id": "AzureTRE", "token_count": 265 }
135
import { ReportHandler } from 'web-vitals'; const reportWebVitals = (onPerfEntry?: ReportHandler) => { if (onPerfEntry && onPerfEntry instanceof Function) { import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => { getCLS(onPerfEntry); getFID(onPerfEntry); getFCP(onPerfEntry)...
AzureTRE/ui/app/src/reportWebVitals.ts/0
{ "file_path": "AzureTRE/ui/app/src/reportWebVitals.ts", "repo_id": "AzureTRE", "token_count": 182 }
136
# Support Welcome to the BitBLAS support page! BitBLAS is a cutting-edge framework designed for generating high-performance CUDA/HIP code for BLAS operators. Whether you're working on projects like BitNet, GPTQ, or similar, BitBLAS is here to accelerate your development with its robust features. ## How to File Issues...
BitBLAS/SUPPORT.md/0
{ "file_path": "BitBLAS/SUPPORT.md", "repo_id": "BitBLAS", "token_count": 473 }
137