text stringlengths 5 22M | id stringlengths 12 177 | metadata dict | __index_level_0__ int64 0 1.37k |
|---|---|---|---|
..
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/docs/source/model_doc/blenderbot_small.rst/0 | {
"file_path": "AdaMix/docs/source/model_doc/blenderbot_small.rst",
"repo_id": "AdaMix",
"token_count": 1018
} | 33 |
..
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/docs/source/model_doc/gpt2.rst/0 | {
"file_path": "AdaMix/docs/source/model_doc/gpt2.rst",
"repo_id": "AdaMix",
"token_count": 1411
} | 34 |
..
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/docs/source/model_doc/rag.rst/0 | {
"file_path": "AdaMix/docs/source/model_doc/rag.rst",
"repo_id": "AdaMix",
"token_count": 1215
} | 35 |
..
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/docs/source/model_summary.rst/0 | {
"file_path": "AdaMix/docs/source/model_summary.rst",
"repo_id": "AdaMix",
"token_count": 12293
} | 36 |
import argparse
import logging
import os
from pathlib import Path
from typing import Any, Dict
import pytorch_lightning as pl
from pytorch_lightning.utilities import rank_zero_info
from transformers import (
AdamW,
AutoConfig,
AutoModel,
AutoModelForPreTraining,
AutoModelForQuestionAnswering,
... | AdaMix/examples/legacy/pytorch-lightning/lightning_base.py/0 | {
"file_path": "AdaMix/examples/legacy/pytorch-lightning/lightning_base.py",
"repo_id": "AdaMix",
"token_count": 6580
} | 37 |
import os
import sys
sys.path.insert(1, os.path.dirname(os.path.realpath(__file__)))
| AdaMix/examples/legacy/seq2seq/__init__.py/0 | {
"file_path": "AdaMix/examples/legacy/seq2seq/__init__.py",
"repo_id": "AdaMix",
"token_count": 34
} | 38 |
# 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/legacy/seq2seq/rouge_cli.py/0 | {
"file_path": "AdaMix/examples/legacy/seq2seq/rouge_cli.py",
"repo_id": "AdaMix",
"token_count": 385
} | 39 |
import logging
import os
from typing import List, TextIO, Union
from conllu import parse_incr
from utils_ner import InputExample, Split, TokenClassificationTask
logger = logging.getLogger(__name__)
class NER(TokenClassificationTask):
def __init__(self, label_idx=-1):
# in NER datasets, the last column... | AdaMix/examples/legacy/token-classification/tasks.py/0 | {
"file_path": "AdaMix/examples/legacy/token-classification/tasks.py",
"repo_id": "AdaMix",
"token_count": 3164
} | 40 |
#! /usr/bin/python3
import argparse
import logging
import os
import sys
from collections import namedtuple
import torch
from torch.utils.data import DataLoader, SequentialSampler
from tqdm import tqdm
from modeling_bertabs import BertAbs, build_predictor
from transformers import BertTokenizer
from .utils_summarizati... | AdaMix/examples/research_projects/bertabs/run_summarization.py/0 | {
"file_path": "AdaMix/examples/research_projects/bertabs/run_summarization.py",
"repo_id": "AdaMix",
"token_count": 4301
} | 41 |
# Distil*
Author: @VictorSanh
This folder contains the original code used to train Distil* as well as examples showcasing how to use DistilBERT, DistilRoBERTa and DistilGPT2.
**January 20, 2020 - Bug fixing** We have recently discovered and fixed [a bug](https://github.com/huggingface/transformers/commit/48cbf267c98... | AdaMix/examples/research_projects/distillation/README.md/0 | {
"file_path": "AdaMix/examples/research_projects/distillation/README.md",
"repo_id": "AdaMix",
"token_count": 5071
} | 42 |
# coding=utf-8
# Copyright 2019-present, the HuggingFace Inc. team and Facebook, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Un... | AdaMix/examples/research_projects/distillation/utils.py/0 | {
"file_path": "AdaMix/examples/research_projects/distillation/utils.py",
"repo_id": "AdaMix",
"token_count": 1772
} | 43 |
# 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 require... | AdaMix/examples/research_projects/mlm_wwm/run_mlm_wwm.py/0 | {
"file_path": "AdaMix/examples/research_projects/mlm_wwm/run_mlm_wwm.py",
"repo_id": "AdaMix",
"token_count": 6686
} | 44 |
import json
import logging
import os
import sys
from pathlib import Path
import finetune_rag
from transformers.file_utils import is_apex_available
from transformers.testing_utils import (
TestCasePlus,
execute_subprocess_async,
require_ray,
require_torch_gpu,
require_torch_multi_gpu,
)
logging.ba... | AdaMix/examples/research_projects/rag/_test_finetune_rag.py/0 | {
"file_path": "AdaMix/examples/research_projects/rag/_test_finetune_rag.py",
"repo_id": "AdaMix",
"token_count": 2005
} | 45 |
## Sequence to Sequence Training and Evaluation
This directory contains examples for finetuning and evaluating transformers on summarization and translation tasks.
Author: Sam Shleifer (https://github.com/sshleifer)
### Supported Architectures
- `BartForConditionalGeneration` (and anything that inherits from it)
- ... | AdaMix/examples/research_projects/seq2seq-distillation/README.md/0 | {
"file_path": "AdaMix/examples/research_projects/seq2seq-distillation/README.md",
"repo_id": "AdaMix",
"token_count": 6492
} | 46 |
import logging
import os
import sys
from dataclasses import dataclass, field
from typing import List, Optional
import torch
from datasets import Dataset
from torch import nn
from tqdm.auto import tqdm
from transformers import (
AutoModelForSequenceClassification,
AutoTokenizer,
HfArgumentParser,
Train... | AdaMix/examples/research_projects/zero-shot-distillation/distill_classifier.py/0 | {
"file_path": "AdaMix/examples/research_projects/zero-shot-distillation/distill_classifier.py",
"repo_id": "AdaMix",
"token_count": 4822
} | 47 |
# 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/examples/text-classification/run_glue_no_trainer.py/0 | {
"file_path": "AdaMix/examples/text-classification/run_glue_no_trainer.py",
"repo_id": "AdaMix",
"token_count": 7402
} | 48 |
from collections import Counter
import datasets
import transformers
from transformers.convert_slow_tokenizer import SLOW_TO_FAST_CONVERTERS
from transformers.utils import logging
logging.set_verbosity_info()
TOKENIZER_CLASSES = {
name: (getattr(transformers, name), getattr(transformers, name + "Fast")) for name ... | AdaMix/scripts/check_tokenizers.py/0 | {
"file_path": "AdaMix/scripts/check_tokenizers.py",
"repo_id": "AdaMix",
"token_count": 2570
} | 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 applicable law or ... | AdaMix/scripts/tatoeba/README.md/0 | {
"file_path": "AdaMix/scripts/tatoeba/README.md",
"repo_id": "AdaMix",
"token_count": 756
} | 50 |
# Copyright 2020 The HuggingFace Team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicabl... | AdaMix/src/transformers/commands/download.py/0 | {
"file_path": "AdaMix/src/transformers/commands/download.py",
"repo_id": "AdaMix",
"token_count": 611
} | 51 |
# Copyright 2020 The HuggingFace Team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicabl... | AdaMix/src/transformers/data/processors/squad.py/0 | {
"file_path": "AdaMix/src/transformers/data/processors/squad.py",
"repo_id": "AdaMix",
"token_count": 15633
} | 52 |
# 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/integrations.py/0 | {
"file_path": "AdaMix/src/transformers/integrations.py",
"repo_id": "AdaMix",
"token_count": 14373
} | 53 |
# coding=utf-8
# Copyright 2018 The Google Flax Team Authors and The HuggingFace Inc. team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
... | AdaMix/src/transformers/models/auto/modeling_flax_auto.py/0 | {
"file_path": "AdaMix/src/transformers/models/auto/modeling_flax_auto.py",
"repo_id": "AdaMix",
"token_count": 3141
} | 54 |
# coding=utf-8
# Copyright 2018 The Google Flax Team Authors and The HuggingFace Inc. team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
... | AdaMix/src/transformers/models/bert/modeling_flax_bert.py/0 | {
"file_path": "AdaMix/src/transformers/models/bert/modeling_flax_bert.py",
"repo_id": "AdaMix",
"token_count": 12405
} | 55 |
# coding=utf-8
# Copyright 2019 Inria, Facebook AI Research 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 copy of the... | AdaMix/src/transformers/models/camembert/modeling_camembert.py/0 | {
"file_path": "AdaMix/src/transformers/models/camembert/modeling_camembert.py",
"repo_id": "AdaMix",
"token_count": 1812
} | 56 |
# 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 required... | AdaMix/src/transformers/models/deberta/tokenization_deberta.py/0 | {
"file_path": "AdaMix/src/transformers/models/deberta/tokenization_deberta.py",
"repo_id": "AdaMix",
"token_count": 11243
} | 57 |
# coding=utf-8
# Copyright 2018 DPR 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 by a... | AdaMix/src/transformers/models/dpr/modeling_tf_dpr.py/0 | {
"file_path": "AdaMix/src/transformers/models/dpr/modeling_tf_dpr.py",
"repo_id": "AdaMix",
"token_count": 15865
} | 58 |
# coding=utf-8
# Copyright 2020-present Google Brain and Carnegie Mellon University 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.a... | AdaMix/src/transformers/models/funnel/modeling_funnel.py/0 | {
"file_path": "AdaMix/src/transformers/models/funnel/modeling_funnel.py",
"repo_id": "AdaMix",
"token_count": 29379
} | 59 |
# 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/herbert/__init__.py/0 | {
"file_path": "AdaMix/src/transformers/models/herbert/__init__.py",
"repo_id": "AdaMix",
"token_count": 563
} | 60 |
# coding=utf-8
# Copyright 2021 Iz Beltagy, Matthew E. Peters, Arman Cohan 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://w... | AdaMix/src/transformers/models/led/modeling_tf_led.py/0 | {
"file_path": "AdaMix/src/transformers/models/led/modeling_tf_led.py",
"repo_id": "AdaMix",
"token_count": 53995
} | 61 |
# 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/m2m_100/configuration_m2m_100.py/0 | {
"file_path": "AdaMix/src/transformers/models/m2m_100/configuration_m2m_100.py",
"repo_id": "AdaMix",
"token_count": 3118
} | 62 |
# coding=utf-8
# Copyright 2020 Mesh TensorFlow authors, T5 Authors and HuggingFace Inc. team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2... | AdaMix/src/transformers/models/mt5/modeling_tf_mt5.py/0 | {
"file_path": "AdaMix/src/transformers/models/mt5/modeling_tf_mt5.py",
"repo_id": "AdaMix",
"token_count": 1282
} | 63 |
# 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/tokenization_rag.py/0 | {
"file_path": "AdaMix/src/transformers/models/rag/tokenization_rag.py",
"repo_id": "AdaMix",
"token_count": 1986
} | 64 |
# 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/modeling_tf_roberta.py/0 | {
"file_path": "AdaMix/src/transformers/models/roberta/modeling_tf_roberta.py",
"repo_id": "AdaMix",
"token_count": 25539
} | 65 |
# coding=utf-8
# Copyright 2018 Mesh TensorFlow authors, T5 Authors and HuggingFace Inc. team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2... | AdaMix/src/transformers/models/t5/modeling_t5.py/0 | {
"file_path": "AdaMix/src/transformers/models/t5/modeling_t5.py",
"repo_id": "AdaMix",
"token_count": 34550
} | 66 |
# coding=utf-8
# Copyright 2021 The HuggingFace Inc. team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable... | AdaMix/src/transformers/models/wav2vec2/convert_wav2vec2_original_pytorch_checkpoint_to_pytorch.py/0 | {
"file_path": "AdaMix/src/transformers/models/wav2vec2/convert_wav2vec2_original_pytorch_checkpoint_to_pytorch.py",
"repo_id": "AdaMix",
"token_count": 3655
} | 67 |
# 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.
# coding=utf-8
# Copyright 2018 The HuggingFace Inc. team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this... | AdaMix/src/transformers/pipelines/__init__.py/0 | {
"file_path": "AdaMix/src/transformers/pipelines/__init__.py",
"repo_id": "AdaMix",
"token_count": 7857
} | 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/src/transformers/tokenization_utils.py/0 | {
"file_path": "AdaMix/src/transformers/tokenization_utils.py",
"repo_id": "AdaMix",
"token_count": 14321
} | 69 |
<!---
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 applicable law or ... | AdaMix/templates/adding_a_new_example_script/README.md/0 | {
"file_path": "AdaMix/templates/adding_a_new_example_script/README.md",
"repo_id": "AdaMix",
"token_count": 442
} | 70 |
{
"modelname": "BrandNewBERT",
"uppercase_modelname": "BRAND_NEW_BERT",
"lowercase_modelname": "brand_new_bert",
"camelcase_modelname": "BrandNewBert",
"authors": "The HuggingFace Team",
"checkpoint_identifier": "brand-new-bert-base-cased",
"tokenizer_type": ["Based on BERT", "Based on BART", "Standalone"... | AdaMix/templates/adding_a_new_model/cookiecutter.json/0 | {
"file_path": "AdaMix/templates/adding_a_new_model/cookiecutter.json",
"repo_id": "AdaMix",
"token_count": 178
} | 71 |
# coding=utf-8
# Copyright 2020 The HuggingFace Team Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a clone of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable... | AdaMix/tests/test_generation_beam_search.py/0 | {
"file_path": "AdaMix/tests/test_generation_beam_search.py",
"repo_id": "AdaMix",
"token_count": 4604
} | 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_modeling_bort.py/0 | {
"file_path": "AdaMix/tests/test_modeling_bort.py",
"repo_id": "AdaMix",
"token_count": 725
} | 73 |
# 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_funnel.py/0 | {
"file_path": "AdaMix/tests/test_modeling_funnel.py",
"repo_id": "AdaMix",
"token_count": 8193
} | 74 |
# 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/tests/test_modeling_rag.py/0 | {
"file_path": "AdaMix/tests/test_modeling_rag.py",
"repo_id": "AdaMix",
"token_count": 20360
} | 75 |
# 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_convbert.py/0 | {
"file_path": "AdaMix/tests/test_modeling_tf_convbert.py",
"repo_id": "AdaMix",
"token_count": 7768
} | 76 |
# 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_openai.py/0 | {
"file_path": "AdaMix/tests/test_modeling_tf_openai.py",
"repo_id": "AdaMix",
"token_count": 5029
} | 77 |
# 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_offline.py/0 | {
"file_path": "AdaMix/tests/test_offline.py",
"repo_id": "AdaMix",
"token_count": 930
} | 78 |
# coding=utf-8
# Copyright 2019 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_tokenization_common.py/0 | {
"file_path": "AdaMix/tests/test_tokenization_common.py",
"repo_id": "AdaMix",
"token_count": 73036
} | 79 |
# coding=utf-8
# Copyright 2020 The HuggingFace Inc. team, Microsoft Corporation.
#
# 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/tests/test_tokenization_mpnet.py/0 | {
"file_path": "AdaMix/tests/test_tokenization_mpnet.py",
"repo_id": "AdaMix",
"token_count": 1198
} | 80 |
# 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_xlm.py/0 | {
"file_path": "AdaMix/tests/test_tokenization_xlm.py",
"repo_id": "AdaMix",
"token_count": 1506
} | 81 |
# 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_tf_ops.py/0 | {
"file_path": "AdaMix/utils/check_tf_ops.py",
"repo_id": "AdaMix",
"token_count": 1302
} | 82 |
import airsimdroneracinglab as airsim
import json
import numpy as np
import os
def to_airsim_vector(np_arr):
assert np.size(np_arr) == 3
return airsim.Vector3r(
np.float(np_arr[0]), np.float(np_arr[1]), np.float(np_arr[2])
)
def to_airsim_vectors(np_arr):
return [to_airsim_vector(np_arr[i, :... | AirSim-Drone-Racing-Lab/baselines/utils.py/0 | {
"file_path": "AirSim-Drone-Racing-Lab/baselines/utils.py",
"repo_id": "AirSim-Drone-Racing-Lab",
"token_count": 1979
} | 83 |
import os
import csv
import argparse
import sys
import pandas as pd
from scipy.spatial.transform import Rotation as R
from scipy.spatial.transform import Slerp
import numpy as np
TIME_COLUMN = 'TimeStamp'
INTERPOLABLE_VEL_COLUMNS = ['vx', 'vy', 'vz', 'vyaw']
INTERPOLABLE_QUAT_COLUMNS = ['odom.quaternion.x', 'odom.quat... | AirSim-Drone-Racing-VAE-Imitation/datagen/action_generator/data_processor.py/0 | {
"file_path": "AirSim-Drone-Racing-VAE-Imitation/datagen/action_generator/data_processor.py",
"repo_id": "AirSim-Drone-Racing-VAE-Imitation",
"token_count": 3146
} | 84 |
import tensorflow as tf
from tensorflow.keras import Model
from tensorflow.keras.activations import softplus, relu
from tensorflow.keras.backend import random_normal
from tensorflow.keras.layers import Dense, Flatten, Conv2D, BatchNormalization, Lambda, Concatenate, Conv2DTranspose, Reshape
import dronet
import decoder... | AirSim-Drone-Racing-VAE-Imitation/racing_models/cmvae.py/0 | {
"file_path": "AirSim-Drone-Racing-VAE-Imitation/racing_models/cmvae.py",
"repo_id": "AirSim-Drone-Racing-VAE-Imitation",
"token_count": 3131
} | 85 |
from argparse import ArgumentParser
import subprocess
class DockerImageBuilder():
def __init__(self, args):
self.args = args
def build_docker_image(self):
# if a base image is not specified, we use the Ubuntu 18, CUDA 10 image from NVIDIA
docker_build_command = ['docker', 'buil... | AirSim-NeurIPS2019-Drone-Racing/docker/build_docker_image.py/0 | {
"file_path": "AirSim-NeurIPS2019-Drone-Racing/docker/build_docker_image.py",
"repo_id": "AirSim-NeurIPS2019-Drone-Racing",
"token_count": 642
} | 86 |
# Application Insights for Python
This repository holds components that enable telemetry scenarios for your Python applications to send to [Azure Application Insights][azure_application_insights].
Below is the list of components that are within this repository:
[Azure Monitor Events Extension][azure-monitor-events-e... | ApplicationInsights-Python/README.md/0 | {
"file_path": "ApplicationInsights-Python/README.md",
"repo_id": "ApplicationInsights-Python",
"token_count": 261
} | 87 |
root = true
[*]
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true
[*.{tf,tfvars}]
indent_size = 2
indent_style = space
[*.txt]
indent_style = tab
indent_size = 4
[*.{diff,md}]
trim_trailing_whitespace = false
[{*.yaml,*.yml}]
indent_si... | AzureTRE/.editorconfig/0 | {
"file_path": "AzureTRE/.editorconfig",
"repo_id": "AzureTRE",
"token_count": 271
} | 88 |
.venv | AzureTRE/airlock_processor/.funcignore/0 | {
"file_path": "AzureTRE/airlock_processor/.funcignore",
"repo_id": "AzureTRE",
"token_count": 3
} | 89 |
from fastapi import Depends, HTTPException, Path, status
from pydantic import UUID4
from api.helpers import get_repository
from db.errors import EntityDoesNotExist
from resources import strings
from models.domain.shared_service import SharedService
from models.domain.operation import Operation
from db.repositories.sha... | AzureTRE/api_app/api/dependencies/shared_services.py/0 | {
"file_path": "AzureTRE/api_app/api/dependencies/shared_services.py",
"repo_id": "AzureTRE",
"token_count": 465
} | 90 |
from fastapi import APIRouter
from resources import strings
router = APIRouter()
@router.get("/ping", name=strings.API_GET_PING)
@router.get("/", name=strings.API_GET_PING)
def ping() -> str:
# The ping endpoint is a simple endpoint that can be called by the Application Gateway
# to test if it is able to rea... | AzureTRE/api_app/api/routes/ping.py/0 | {
"file_path": "AzureTRE/api_app/api/routes/ping.py",
"repo_id": "AzureTRE",
"token_count": 115
} | 91 |
import semantic_version
from db.repositories.shared_services import SharedServiceRepository
from db.repositories.resources import IS_ACTIVE_RESOURCE
from services.logging import logger
class SharedServiceMigration(SharedServiceRepository):
@classmethod
async def create(cls):
cls = SharedServiceMigrat... | AzureTRE/api_app/db/migrations/shared_services.py/0 | {
"file_path": "AzureTRE/api_app/db/migrations/shared_services.py",
"repo_id": "AzureTRE",
"token_count": 952
} | 92 |
from azure.eventgrid import EventGridEvent
from azure.eventgrid.aio import EventGridPublisherClient
from core import credentials
async def publish_event(event: EventGridEvent, topic_endpoint: str):
async with credentials.get_credential_async_context() as credential:
client = EventGridPublisherClient(topic... | AzureTRE/api_app/event_grid/helpers.py/0 | {
"file_path": "AzureTRE/api_app/event_grid/helpers.py",
"repo_id": "AzureTRE",
"token_count": 128
} | 93 |
from pydantic import Field
from models.domain.resource import Resource, ResourceType
class UserResource(Resource):
"""
User resource
"""
workspaceId: str = Field("", title="Workspace ID", description="Service target Workspace id")
ownerId: str = Field("", title="Owner of the user resource")
p... | AzureTRE/api_app/models/domain/user_resource.py/0 | {
"file_path": "AzureTRE/api_app/models/domain/user_resource.py",
"repo_id": "AzureTRE",
"token_count": 164
} | 94 |
from enum import Enum
from typing import List
from pydantic import BaseModel
from resources import strings
class StatusEnum(str, Enum):
ok = strings.OK
not_ok = strings.NOT_OK
class ServiceStatus(BaseModel):
service: str = ""
status: StatusEnum = StatusEnum.ok
message: str = ""
class HealthC... | AzureTRE/api_app/models/schemas/status.py/0 | {
"file_path": "AzureTRE/api_app/models/schemas/status.py",
"repo_id": "AzureTRE",
"token_count": 122
} | 95 |
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "https://github.com/microsoft/AzureTRE/schema/user_resource.json",
"type": "object",
"title": "User Resource Default Parameters",
"description": "These parameters are required for all user resources",
"required": [
"display_name",
"descri... | AzureTRE/api_app/schemas/user_resource.json/0 | {
"file_path": "AzureTRE/api_app/schemas/user_resource.json",
"repo_id": "AzureTRE",
"token_count": 341
} | 96 |
from datetime import datetime, date, timedelta
from enum import Enum
from functools import lru_cache
from typing import Dict, Optional, Union
import pandas as pd
from azure.mgmt.costmanagement import CostManagementClient
from azure.mgmt.costmanagement.models import QueryGrouping, QueryAggregation, QueryDataset, QueryD... | AzureTRE/api_app/services/cost_service.py/0 | {
"file_path": "AzureTRE/api_app/services/cost_service.py",
"repo_id": "AzureTRE",
"token_count": 8950
} | 97 |
import pytest
from mock import patch
from fastapi import status
from models.domain.user_resource import UserResource
from models.domain.workspace import Workspace
from models.domain.workspace_service import WorkspaceService
from resources import strings
pytestmark = pytest.mark.asyncio
WORKSPACE_ID = '933ad738-7... | AzureTRE/api_app/tests_ma/test_api/test_routes/test_api_access.py/0 | {
"file_path": "AzureTRE/api_app/tests_ma/test_api/test_routes/test_api_access.py",
"repo_id": "AzureTRE",
"token_count": 5199
} | 98 |
from unittest.mock import AsyncMock, MagicMock
from fastapi import HTTPException
from mock import patch
import pytest
import pytest_asyncio
from tests_ma.test_api.conftest import create_test_user
from models.schemas.airlock_request import AirlockRequestInCreate
from models.domain.airlock_request import AirlockRequest, ... | AzureTRE/api_app/tests_ma/test_db/test_repositories/test_airlock_request_repository.py/0 | {
"file_path": "AzureTRE/api_app/tests_ma/test_db/test_repositories/test_airlock_request_repository.py",
"repo_id": "AzureTRE",
"token_count": 2577
} | 99 |
import copy
import json
from unittest.mock import MagicMock, ANY
from pydantic import parse_obj_as
import pytest
import uuid
from mock import AsyncMock, patch
from tests_ma.test_api.test_routes.test_resource_helpers import FAKE_CREATE_TIMESTAMP, FAKE_UPDATE_TIMESTAMP
from models.domain.request_action import RequestAct... | AzureTRE/api_app/tests_ma/test_service_bus/test_deployment_status_update.py/0 | {
"file_path": "AzureTRE/api_app/tests_ma/test_service_bus/test_deployment_status_update.py",
"repo_id": "AzureTRE",
"token_count": 6631
} | 100 |
# ----- ADMIN REGISTERS REQUIRED TEMPLATES -----
### Register workspace template (admin)
POST {{baseUrl}}/workspace-templates
Accept: {{contentType}}
Authorization: Bearer {{token}}
Content-Type: {{contentType}}
{
"name": "my-tre-workspace",
"version": "0.0.3",
"current": "true",
"json_schema": {
"$schem... | AzureTRE/api_http_requests/API User Journey.http/0 | {
"file_path": "AzureTRE/api_http_requests/API User Journey.http",
"repo_id": "AzureTRE",
"token_count": 1707
} | 101 |
import json
import click
import logging
import jwt
from tre.api_client import ApiClient
from tre.commands.workspaces.workspace import workspace_id_completion
from tre.output import output_result, output_option, query_option
@click.command(name="get-token", help="Get an access token")
@click.option('--scope',
... | AzureTRE/cli/tre/commands/get_token.py/0 | {
"file_path": "AzureTRE/cli/tre/commands/get_token.py",
"repo_id": "AzureTRE",
"token_count": 745
} | 102 |
import click
class WorkspaceServiceTemplateContext(object):
def __init__(self, template_name: str):
self.template_name = template_name
pass_workspace_service_template_context = click.make_pass_decorator(WorkspaceServiceTemplateContext)
| AzureTRE/cli/tre/commands/workspace_service_templates/contexts.py/0 | {
"file_path": "AzureTRE/cli/tre/commands/workspace_service_templates/contexts.py",
"repo_id": "AzureTRE",
"token_count": 77
} | 103 |
import click
class WorkspaceContext(object):
def __init__(self, workspace_id: str):
self.workspace_id = workspace_id
pass_workspace_context = click.make_pass_decorator(WorkspaceContext)
class WorkspaceOperationContext(object):
def __init__(self, workspace_id: str, operation_id: str):
self.... | AzureTRE/cli/tre/commands/workspaces/contexts.py/0 | {
"file_path": "AzureTRE/cli/tre/commands/workspaces/contexts.py",
"repo_id": "AzureTRE",
"token_count": 258
} | 104 |
import click
import json
import logging
from tre.api_client import ApiClient
from tre.commands.operation import default_operation_table_query_single, operation_show
from tre.output import output, output_option, query_option
@click.group(help="List/add workspaces")
def workspaces() -> None:
pass
@click.command(... | AzureTRE/cli/tre/commands/workspaces/workspaces.py/0 | {
"file_path": "AzureTRE/cli/tre/commands/workspaces/workspaces.py",
"repo_id": "AzureTRE",
"token_count": 770
} | 105 |
data "local_file" "api_app_version" {
filename = "${path.root}/../../api_app/_version.py"
}
locals {
version = replace(replace(replace(data.local_file.api_app_version.content, "__version__ = \"", ""), "\"", ""), "\n", "")
}
resource "azurerm_service_plan" "core" {
name = "plan-${var.tre_id}"
re... | AzureTRE/core/terraform/api-webapp.tf/0 | {
"file_path": "AzureTRE/core/terraform/api-webapp.tf",
"repo_id": "AzureTRE",
"token_count": 3532
} | 106 |
#!/bin/bash
set -e
# if no arguments are provided, return usage function
if [[ $# -ne 2 || -z $1 || -z $2 ]]; then
echo "Usage: $0 <left_plan_file> <right_plan_file>"
exit 1
fi
left_tfplan=$1
right_tfplan=$2
echo "Comparing ${left_tfplan} to ${right_tfplan}..."
function plan_change() {
terraform show -js... | AzureTRE/core/terraform/compare_plans.sh/0 | {
"file_path": "AzureTRE/core/terraform/compare_plans.sh",
"repo_id": "AzureTRE",
"token_count": 243
} | 107 |
resource "azurerm_virtual_network" "core" {
name = "vnet-${var.tre_id}"
location = var.location
resource_group_name = var.resource_group_name
address_space = [var.core_address_space]
tags = local.tre_core_tags
lifecycle { ignore_changes = [tags] }
}
resource "... | AzureTRE/core/terraform/network/network.tf/0 | {
"file_path": "AzureTRE/core/terraform/network/network.tf",
"repo_id": "AzureTRE",
"token_count": 3316
} | 108 |
resource "azurerm_storage_account" "stg" {
name = lower(replace("stg-${var.tre_id}", "-", ""))
resource_group_name = azurerm_resource_group.core.name
location = azurerm_resource_group.core.location
account_tier = "Standard"
accou... | AzureTRE/core/terraform/storage.tf/0 | {
"file_path": "AzureTRE/core/terraform/storage.tf",
"repo_id": "AzureTRE",
"token_count": 1148
} | 109 |
#!/bin/bash
set -o errexit
set -o pipefail
set -o nounset
# Get the directory that this script is in
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
pushd "$DIR/../../ui/app"
ui_version=$(jq -r '.version' package.json)
activeDirectoryUri="$(az cloud show --query endpoints.activeDirectory --o... | AzureTRE/devops/scripts/build_deploy_ui.sh/0 | {
"file_path": "AzureTRE/devops/scripts/build_deploy_ui.sh",
"repo_id": "AzureTRE",
"token_count": 382
} | 110 |
#!/bin/bash
set -o errexit
set -o pipefail
set -o nounset
# set -o xtrace
#
# Usage:
# load_and_validate_env.sh
#
# shellcheck disable=SC1091
source "${DIR}"/construct_tre_url.sh
# shellcheck disable=SC1091
source "${DIR}"/convert_azure_env_to_arm_env.sh
if [ ! -f "config.yaml" ]; then
if [ -z "${USE_ENV_VARS_NO... | AzureTRE/devops/scripts/load_and_validate_env.sh/0 | {
"file_path": "AzureTRE/devops/scripts/load_and_validate_env.sh",
"repo_id": "AzureTRE",
"token_count": 1352
} | 111 |
terraform destroy -auto-approve | AzureTRE/devops/terraform/destroy.sh/0 | {
"file_path": "AzureTRE/devops/terraform/destroy.sh",
"repo_id": "AzureTRE",
"token_count": 9
} | 112 |
# Azure TRE Overview
## What is Azure TRE?
Across the health industry, be it a pharmaceutical company interrogating clinical trial results, or a public health provider analyzing electronic health records, there is the need to enable researchers, analysts, and developers to work with sensitive data sets.
Trusted Re... | AzureTRE/docs/index.md/0 | {
"file_path": "AzureTRE/docs/index.md",
"repo_id": "AzureTRE",
"token_count": 436
} | 113 |
# Pipelines
The [AzureTRE deployment repository](https://github.com/microsoft/AzureTRE-Deployment) contains the following github workflows:
1. Build Validation - validates the code by running linter and terraform validation.
1. Clean Validation Environments - a periodical workflow to clean unused AzureTRE environment... | AzureTRE/docs/tre-admins/setup-instructions/cicd-deployment.md/0 | {
"file_path": "AzureTRE/docs/tre-admins/setup-instructions/cicd-deployment.md",
"repo_id": "AzureTRE",
"token_count": 808
} | 114 |
# Tear-down
To remove the Azure TRE and its resources from your Azure subscription run:
```cmd
make tre-destroy
```
Alternatively, you can delete the resource groups in Azure Portal or using the CLI:
```cmd
az group delete --name <resource group name>
```
Finally, delete the app registrations in Azure Portal or us... | AzureTRE/docs/tre-admins/tear-down.md/0 | {
"file_path": "AzureTRE/docs/tre-admins/tear-down.md",
"repo_id": "AzureTRE",
"token_count": 108
} | 115 |
# Azure CycleCloud Shared Service
Azure CycleCloud is an enterprise-friendly tool for orchestrating and managing High Performance Computing (HPC) environments on Azure. This shared service deploys a single CycleCloud server, which can be used to by a TRE Administrator to create and manage multiple HPC clusters.

## MLflow Workspace VM Configuration
Each MLflow server deployment creates a PowerShell (for Windows) and a shell script (for Linux) with the ... | AzureTRE/docs/tre-templates/workspace-services/mlflow.md/0 | {
"file_path": "AzureTRE/docs/tre-templates/workspace-services/mlflow.md",
"repo_id": "AzureTRE",
"token_count": 705
} | 117 |
# Checking the Virtual Machine Scale Set (VMSS) instance running resource processor
If you see messages hanging in the service bus queue then the resource processor is not up and running.
Verify that the VMSS instance is up and healthy.

The processor runs in a VNET, and y... | AzureTRE/docs/troubleshooting-faq/troubleshooting-rp.md/0 | {
"file_path": "AzureTRE/docs/troubleshooting-faq/troubleshooting-rp.md",
"repo_id": "AzureTRE",
"token_count": 785
} | 118 |
from starlette.config import Config
try:
config = Config('.env')
# Workaround needed until FastAPI uses Starlette >= 3.7.1
except FileNotFoundError:
config = Config()
# Resource Info
RESOURCE_LOCATION: str = config("RESOURCE_LOCATION", default="")
TRE_ID: str = config("TRE_ID", default="")
TRE_URL: str = con... | AzureTRE/e2e_tests/config.py/0 | {
"file_path": "AzureTRE/e2e_tests/config.py",
"repo_id": "AzureTRE",
"token_count": 598
} | 119 |
import pytest
import logging
from e2e_tests.conftest import disable_and_delete_tre_resource
from datetime import date
from resources.resource import post_resource
from helpers import get_shared_service_by_name
from resources import strings
from helpers import get_admin_token
LOGGER = logging.getLogger(__name__)
@py... | AzureTRE/e2e_tests/test_shared_services.py/0 | {
"file_path": "AzureTRE/e2e_tests/test_shared_services.py",
"repo_id": "AzureTRE",
"token_count": 3575
} | 120 |
# Resource Status
RESOURCE_STATUS_AWAITING_DEPLOYMENT = "awaiting_deployment"
RESOURCE_STATUS_DEPLOYING = "deploying"
RESOURCE_STATUS_DEPLOYED = "deployed"
RESOURCE_STATUS_DEPLOYMENT_FAILED = "deployment_failed"
RESOURCE_STATUS_AWAITING_DELETION = "awaiting_deletion"
RESOURCE_STATUS_DELETING = "deleting"
RESOURCE_STAT... | AzureTRE/resource_processor/resources/strings.py/0 | {
"file_path": "AzureTRE/resource_processor/resources/strings.py",
"repo_id": "AzureTRE",
"token_count": 468
} | 121 |
{
"schemaType": "CredentialSet",
"schemaVersion": "1.0.1",
"namespace": "",
"name": "aad_auth",
"credentials": [
{
"name": "auth_tenant_id",
"source": {
"env": "AAD_TENANT_ID"
}
},
{
"name": "auth_client_id",
"source": {
"env": "APPLICATION_ADMIN_CLIEN... | AzureTRE/resource_processor/vmss_porter/aad_auth_local_debugging.json/0 | {
"file_path": "AzureTRE/resource_processor/vmss_porter/aad_auth_local_debugging.json",
"repo_id": "AzureTRE",
"token_count": 261
} | 122 |
# Azure Provider source and version being used
terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "=3.23.0"
}
random = {
source = "hashicorp/random"
version = "=3.4.3"
}
}
backend "azurerm" {}
}
provider "azurerm" {
features {
key_... | AzureTRE/templates/shared_services/admin-vm/terraform/main.tf/0 | {
"file_path": "AzureTRE/templates/shared_services/admin-vm/terraform/main.tf",
"repo_id": "AzureTRE",
"token_count": 404
} | 123 |
#!/bin/bash
set -e
# This script is used to uninstall the bundle directly without having to interact with Porter
# This script assumes you have created an .env from the sample and the variables
# will come from there.
# shellcheck disable=SC2154
terraform init -reconfigure -input=false -backend=true \
-backend-co... | AzureTRE/templates/shared_services/airlock_notifier/terraform/destroy.sh/0 | {
"file_path": "AzureTRE/templates/shared_services/airlock_notifier/terraform/destroy.sh",
"repo_id": "AzureTRE",
"token_count": 220
} | 124 |
locals {
core_resource_group_name = "rg-${var.tre_id}"
core_vnet = "vnet-${var.tre_id}"
short_service_id = substr(var.tre_resource_id, -4, -1)
vm_name = "cyclecloud-${local.short_service_id}"
storage_name = lower(replace("stgcc${var.tre_id}${local.short_serv... | AzureTRE/templates/shared_services/cyclecloud/terraform/locals.tf/0 | {
"file_path": "AzureTRE/templates/shared_services/cyclecloud/terraform/locals.tf",
"repo_id": "AzureTRE",
"token_count": 234
} | 125 |
resource "azurerm_virtual_network" "ws" {
name = local.virtual_network_name
location = azurerm_resource_group.rg.location
resource_group_name = local.resource_group_name
address_space = local.address_space
tags = local.tre_shared_service_tags
lifecycle { ignor... | AzureTRE/templates/shared_services/databricks-auth/terraform/network.tf/0 | {
"file_path": "AzureTRE/templates/shared_services/databricks-auth/terraform/network.tf",
"repo_id": "AzureTRE",
"token_count": 2959
} | 126 |
#!/bin/bash
# This script works together with the import_state.sh script to manually remove the firewall state from the core deployment
# and import it into the firewall deployment. It's used for migration purposes only and will be removed when clients are all
# using the shared services model
echo "REMOVING STATE FOR ... | AzureTRE/templates/shared_services/firewall/terraform/remove_state.sh/0 | {
"file_path": "AzureTRE/templates/shared_services/firewall/terraform/remove_state.sh",
"repo_id": "AzureTRE",
"token_count": 679
} | 127 |
resource "random_password" "gitea_passwd" {
length = 20
min_upper = 2
min_lower = 2
min_numeric = 2
min_special = 2
}
# we have to use user-assigned to break a cycle in the dependencies: app identity, kv-policy, secrets in app settings
resource "azurerm_user_assigned_identity" "gitea_id" {
resourc... | AzureTRE/templates/shared_services/gitea/terraform/gitea-webapp.tf/0 | {
"file_path": "AzureTRE/templates/shared_services/gitea/terraform/gitea-webapp.tf",
"repo_id": "AzureTRE",
"token_count": 2930
} | 128 |
{
"name": "conda-mirror",
"online": true,
"storage": {
"blobStoreName": "default",
"strictContentTypeValidation": true,
"write_policy": "ALLOW"
},
"proxy": {
"remoteUrl": "https://conda.anaconda.org/",
"contentMaxAge": 1440,
"metadataMaxAge": 1440
},
"negativeCache": {
"enabled... | AzureTRE/templates/shared_services/sonatype-nexus-vm/scripts/nexus_repos_config/conda_mirror_proxy_conf.json/0 | {
"file_path": "AzureTRE/templates/shared_services/sonatype-nexus-vm/scripts/nexus_repos_config/conda_mirror_proxy_conf.json",
"repo_id": "AzureTRE",
"token_count": 295
} | 129 |
---
#cloud-config
package_upgrade: true
package_update: 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:
sou... | AzureTRE/templates/shared_services/sonatype-nexus-vm/terraform/cloud-config.yaml/0 | {
"file_path": "AzureTRE/templates/shared_services/sonatype-nexus-vm/terraform/cloud-config.yaml",
"repo_id": "AzureTRE",
"token_count": 563
} | 130 |
resource "azurerm_container_registry" "acr" {
name = local.acr_name
location = data.azurerm_resource_group.ws.location
resource_group_name = data.azurerm_resource_group.ws.name
sku = "Premium"
admin_enabled = f... | AzureTRE/templates/workspace_services/azureml/terraform/acr.tf/0 | {
"file_path": "AzureTRE/templates/workspace_services/azureml/terraform/acr.tf",
"repo_id": "AzureTRE",
"token_count": 721
} | 131 |
{
"schemaType": "ParameterSet",
"schemaVersion": "1.0.1",
"namespace": "",
"name": "tre-user-resource-aml-compute-instance",
"parameters": [
{
"name": "id",
"source": {
"env": "ID"
}
},
{
"name": "parent_service_id",
"source": {
"env": "PARENT_SERVICE_... | AzureTRE/templates/workspace_services/azureml/user_resources/aml_compute/parameters.json/0 | {
"file_path": "AzureTRE/templates/workspace_services/azureml/user_resources/aml_compute/parameters.json",
"repo_id": "AzureTRE",
"token_count": 686
} | 132 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.