text stringlengths 5 22M | id stringlengths 12 177 | metadata dict | __index_level_0__ int64 0 1.37k |
|---|---|---|---|
## The relevant files are currently on a shared Google
## drive at https://drive.google.com/drive/folders/1kC0I2UGl2ltrluI9NqDjaQJGw5iliw_J
## Monitor for changes and eventually migrate to nlp dataset
curl -L 'https://drive.google.com/uc?export=download&id=1Jjhbal535VVz2ap4v4r_rN1UEHTdLK5P' \
| grep -v "^#" | cut -f 2,... | AdaMix/examples/legacy/token-classification/run.sh/0 | {
"file_path": "AdaMix/examples/legacy/token-classification/run.sh",
"repo_id": "AdaMix",
"token_count": 643
} | 34 |
# Text Summarization with Pretrained Encoders
This folder contains part of the code necessary to reproduce the results on abstractive summarization from the article [Text Summarization with Pretrained Encoders](https://arxiv.org/pdf/1908.08345.pdf) by [Yang Liu](https://nlp-yang.github.io/) and [Mirella Lapata](https:... | AdaMix/examples/research_projects/bertabs/README.md/0 | {
"file_path": "AdaMix/examples/research_projects/bertabs/README.md",
"repo_id": "AdaMix",
"token_count": 908
} | 35 |
from __future__ import absolute_import, division, print_function
import argparse
import glob
import logging
import os
import random
import time
import numpy as np
import torch
from torch.utils.data import DataLoader, RandomSampler, SequentialSampler, TensorDataset
from torch.utils.data.distributed import DistributedS... | AdaMix/examples/research_projects/deebert/run_glue_deebert.py/0 | {
"file_path": "AdaMix/examples/research_projects/deebert/run_glue_deebert.py",
"repo_id": "AdaMix",
"token_count": 13849
} | 36 |
# coding=utf-8
# Copyright 2019-present, the HuggingFace Inc. team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by a... | AdaMix/examples/research_projects/distillation/train.py/0 | {
"file_path": "AdaMix/examples/research_projects/distillation/train.py",
"repo_id": "AdaMix",
"token_count": 5123
} | 37 |
# 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/examples/research_projects/movement-pruning/emmental/modeling_bert_masked.py/0 | {
"file_path": "AdaMix/examples/research_projects/movement-pruning/emmental/modeling_bert_masked.py",
"repo_id": "AdaMix",
"token_count": 20030
} | 38 |
import torch
class ClassificationHead(torch.nn.Module):
"""Classification Head for transformer encoders"""
def __init__(self, class_size, embed_size):
super().__init__()
self.class_size = class_size
self.embed_size = embed_size
# self.mlp1 = torch.nn.Linear(embed_size, embed_... | AdaMix/examples/research_projects/pplm/pplm_classification_head.py/0 | {
"file_path": "AdaMix/examples/research_projects/pplm/pplm_classification_head.py",
"repo_id": "AdaMix",
"token_count": 283
} | 39 |
"""
This script reads DPR retriever training data and parses each datapoint. We save a line per datapoint.
Each line consists of the query followed by a tab-separated list of Wikipedia page titles constituting
positive contexts for a given query.
"""
import argparse
import json
from tqdm import tqdm
def main():
... | AdaMix/examples/research_projects/rag/parse_dpr_relevance_data.py/0 | {
"file_path": "AdaMix/examples/research_projects/rag/parse_dpr_relevance_data.py",
"repo_id": "AdaMix",
"token_count": 559
} | 40 |
#!/usr/bin/env bash
export PYTHONPATH="../":"${PYTHONPATH}"
export WANDB_PROJECT=dmar
export MAX_LEN=128
export m=sshleifer/student_marian_en_ro_6_1
python finetune.py \
--learning_rate=3e-4 \
--do_train \
--fp16 \
--data_dir wmt_en_ro \
--max_source_length $MAX_LEN --max_target_length $MAX_LEN --val_max_targ... | AdaMix/examples/research_projects/seq2seq-distillation/dynamic_bs_example.sh/0 | {
"file_path": "AdaMix/examples/research_projects/seq2seq-distillation/dynamic_bs_example.sh",
"repo_id": "AdaMix",
"token_count": 267
} | 41 |
## Fine-tuning Wav2Vec2
The `run_training.py` script allows one to finetune pretrained Wav2Vec2 models that can be found [here](https://huggingface.co/models?search=facebook/wav2vec2).
This finetuning script can also be run as a google colab [TODO: here]( ).
The script is actively maintained by [Patrick von Platen](... | AdaMix/examples/research_projects/wav2vec2/README.md/0 | {
"file_path": "AdaMix/examples/research_projects/wav2vec2/README.md",
"repo_id": "AdaMix",
"token_count": 184
} | 42 |
{
"fp16": {
"enabled": true,
"loss_scale": 0,
"loss_scale_window": 1000,
"initial_scale_power": 32,
"hysteresis": 2,
"min_loss_scale": 1
},
"zero_optimization": {
"stage": 2,
"allgather_partitions": true,
"allgather_bucket_size": 2e8,
... | AdaMix/examples/tests/deepspeed/ds_config.json/0 | {
"file_path": "AdaMix/examples/tests/deepspeed/ds_config.json",
"repo_id": "AdaMix",
"token_count": 551
} | 43 |
#!/usr/bin/env python
# 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-... | AdaMix/examples/token-classification/run_ner.py/0 | {
"file_path": "AdaMix/examples/token-classification/run_ner.py",
"repo_id": "AdaMix",
"token_count": 8373
} | 44 |
<jupyter_start><jupyter_text>How can I leverage State-of-the-Art Natural Language Models with only one line of code ? Newly introduced in transformers v2.3.0, **pipelines** provides a high-level, easy to use,API for doing inference over a variety of downstream-tasks, including: - ***Sentence Classification _(Sentiment ... | AdaMix/notebooks/03-pipelines.ipynb/0 | {
"file_path": "AdaMix/notebooks/03-pipelines.ipynb",
"repo_id": "AdaMix",
"token_count": 2442
} | 45 |
#!/usr/bin/env python
# Copyright 2020 The HuggingFace Team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless... | AdaMix/scripts/fsmt/gen-card-allenai-wmt19.py/0 | {
"file_path": "AdaMix/scripts/fsmt/gen-card-allenai-wmt19.py",
"repo_id": "AdaMix",
"token_count": 1729
} | 46 |
# 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/__init__.py/0 | {
"file_path": "AdaMix/src/transformers/__init__.py",
"repo_id": "AdaMix",
"token_count": 43837
} | 47 |
# coding=utf-8
# Copyright 2018 The HuggingFace Inc. team.
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.a... | AdaMix/src/transformers/benchmark/benchmark_args_utils.py/0 | {
"file_path": "AdaMix/src/transformers/benchmark/benchmark_args_utils.py",
"repo_id": "AdaMix",
"token_count": 2073
} | 48 |
# 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_pytorch_checkpoint_to_tf2.py/0 | {
"file_path": "AdaMix/src/transformers/convert_pytorch_checkpoint_to_tf2.py",
"repo_id": "AdaMix",
"token_count": 7574
} | 49 |
# 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/generation_logits_process.py/0 | {
"file_path": "AdaMix/src/transformers/generation_logits_process.py",
"repo_id": "AdaMix",
"token_count": 10570
} | 50 |
# coding=utf-8
# Copyright 2020 The HuggingFace Inc. team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable... | AdaMix/src/transformers/models/bart/convert_bart_original_pytorch_checkpoint_to_pytorch.py/0 | {
"file_path": "AdaMix/src/transformers/models/bart/convert_bart_original_pytorch_checkpoint_to_pytorch.py",
"repo_id": "AdaMix",
"token_count": 2187
} | 51 |
# coding=utf-8
# Copyright 2020 The Google AI Language Team Authors and The HuggingFace Inc. team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICEN... | AdaMix/src/transformers/models/bert_generation/modeling_bert_generation.py/0 | {
"file_path": "AdaMix/src/transformers/models/bert_generation/modeling_bert_generation.py",
"repo_id": "AdaMix",
"token_count": 11445
} | 52 |
# coding=utf-8
# Copyright 2020 The HuggingFace Inc. team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable... | AdaMix/src/transformers/models/blenderbot/convert_blenderbot_original_pytorch_checkpoint_to_pytorch.py/0 | {
"file_path": "AdaMix/src/transformers/models/blenderbot/convert_blenderbot_original_pytorch_checkpoint_to_pytorch.py",
"repo_id": "AdaMix",
"token_count": 1496
} | 53 |
# coding=utf-8
# Copyright 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/src/transformers/models/convbert/configuration_convbert.py/0 | {
"file_path": "AdaMix/src/transformers/models/convbert/configuration_convbert.py",
"repo_id": "AdaMix",
"token_count": 2640
} | 54 |
# coding=utf-8
# Copyright 2018 The HuggingFace Inc. team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable... | AdaMix/src/transformers/models/electra/convert_electra_original_tf_checkpoint_to_pytorch.py/0 | {
"file_path": "AdaMix/src/transformers/models/electra/convert_electra_original_tf_checkpoint_to_pytorch.py",
"repo_id": "AdaMix",
"token_count": 1005
} | 55 |
# 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/configuration_gpt2.py/0 | {
"file_path": "AdaMix/src/transformers/models/gpt2/configuration_gpt2.py",
"repo_id": "AdaMix",
"token_count": 3605
} | 56 |
# coding=utf-8
# Copyright 2018 The HuggingFace Inc. team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable... | AdaMix/src/transformers/models/longformer/convert_longformer_original_pytorch_lightning_to_pytorch.py/0 | {
"file_path": "AdaMix/src/transformers/models/longformer/convert_longformer_original_pytorch_lightning_to_pytorch.py",
"repo_id": "AdaMix",
"token_count": 1066
} | 57 |
# coding=utf-8
# Copyright 2020 The Google AI Team, Stanford University 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/L... | AdaMix/src/transformers/models/lxmert/tokenization_lxmert_fast.py/0 | {
"file_path": "AdaMix/src/transformers/models/lxmert/tokenization_lxmert_fast.py",
"repo_id": "AdaMix",
"token_count": 773
} | 58 |
# 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/marian/convert_marian_tatoeba_to_pytorch.py/0 | {
"file_path": "AdaMix/src/transformers/models/marian/convert_marian_tatoeba_to_pytorch.py",
"repo_id": "AdaMix",
"token_count": 21552
} | 59 |
# 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/mbart/modeling_tf_mbart.py/0 | {
"file_path": "AdaMix/src/transformers/models/mbart/modeling_tf_mbart.py",
"repo_id": "AdaMix",
"token_count": 30914
} | 60 |
# 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/openai/modeling_tf_openai.py/0 | {
"file_path": "AdaMix/src/transformers/models/openai/modeling_tf_openai.py",
"repo_id": "AdaMix",
"token_count": 18349
} | 61 |
# coding=utf-8
# Copyright 2020 The Trax 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/reformer/tokenization_reformer.py/0 | {
"file_path": "AdaMix/src/transformers/models/reformer/tokenization_reformer.py",
"repo_id": "AdaMix",
"token_count": 2205
} | 62 |
# coding=utf-8
# Copyright 2020 The HuggingFace Inc. team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable... | AdaMix/src/transformers/models/tapas/convert_tapas_original_tf_checkpoint_to_pytorch.py/0 | {
"file_path": "AdaMix/src/transformers/models/tapas/convert_tapas_original_tf_checkpoint_to_pytorch.py",
"repo_id": "AdaMix",
"token_count": 1942
} | 63 |
# 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/configuration_xlm.py/0 | {
"file_path": "AdaMix/src/transformers/models/xlm/configuration_xlm.py",
"repo_id": "AdaMix",
"token_count": 4782
} | 64 |
# coding=utf-8
# Copyright 2018 Google AI, Google Brain and Carnegie Mellon University Authors and the HuggingFace Inc. team.
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the Lice... | AdaMix/src/transformers/models/xlnet/modeling_tf_xlnet.py/0 | {
"file_path": "AdaMix/src/transformers/models/xlnet/modeling_tf_xlnet.py",
"repo_id": "AdaMix",
"token_count": 36908
} | 65 |
from typing import TYPE_CHECKING, List, Optional, Union
import numpy as np
from ..file_utils import add_end_docstrings, is_tf_available, is_torch_available
from ..modelcard import ModelCard
from ..models.bert.tokenization_bert import BasicTokenizer
from ..tokenization_utils import PreTrainedTokenizer
from .base impor... | AdaMix/src/transformers/pipelines/token_classification.py/0 | {
"file_path": "AdaMix/src/transformers/pipelines/token_classification.py",
"repo_id": "AdaMix",
"token_count": 5725
} | 66 |
# Copyright 2020 The HuggingFace Team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicabl... | AdaMix/src/transformers/training_args_seq2seq.py/0 | {
"file_path": "AdaMix/src/transformers/training_args_seq2seq.py",
"repo_id": "AdaMix",
"token_count": 533
} | 67 |
# coding=utf-8
# Copyright 2020 Optuna, Hugging Face
#
# 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 o... | AdaMix/src/transformers/utils/logging.py/0 | {
"file_path": "AdaMix/src/transformers/utils/logging.py",
"repo_id": "AdaMix",
"token_count": 2705
} | 68 |
# coding=utf-8
# Copyright 2021 The HuggingFace Inc. team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless r... | AdaMix/templates/adding_a_new_model/cookiecutter-template-{{cookiecutter.modelname}}/test_modeling_tf_{{cookiecutter.lowercase_modelname}}.py/0 | {
"file_path": "AdaMix/templates/adding_a_new_model/cookiecutter-template-{{cookiecutter.modelname}}/test_modeling_tf_{{cookiecutter.lowercase_modelname}}.py",
"repo_id": "AdaMix",
"token_count": 12792
} | 69 |
# coding=utf-8
# Copyright 2019-present, the HuggingFace Inc. team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by a... | AdaMix/tests/test_doc_samples.py/0 | {
"file_path": "AdaMix/tests/test_doc_samples.py",
"repo_id": "AdaMix",
"token_count": 1766
} | 70 |
# coding=utf-8
# Copyright 2020 The HuggingFace Team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | AdaMix/tests/test_modeling_auto.py/0 | {
"file_path": "AdaMix/tests/test_modeling_auto.py",
"repo_id": "AdaMix",
"token_count": 4729
} | 71 |
# 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_mobilebert.py/0 | {
"file_path": "AdaMix/tests/test_modeling_mobilebert.py",
"repo_id": "AdaMix",
"token_count": 6717
} | 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_tf_bert.py/0 | {
"file_path": "AdaMix/tests/test_modeling_tf_bert.py",
"repo_id": "AdaMix",
"token_count": 7044
} | 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_tf_lxmert.py/0 | {
"file_path": "AdaMix/tests/test_modeling_tf_lxmert.py",
"repo_id": "AdaMix",
"token_count": 15687
} | 74 |
# 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_transfo_xl.py/0 | {
"file_path": "AdaMix/tests/test_modeling_transfo_xl.py",
"repo_id": "AdaMix",
"token_count": 13999
} | 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.py/0 | {
"file_path": "AdaMix/tests/test_tokenization_bert.py",
"repo_id": "AdaMix",
"token_count": 5611
} | 76 |
# coding=utf-8
# Copyright 2018 The Microsoft Research Asia LayoutLM Team Authors, The Hugging Face Team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/license... | AdaMix/tests/test_tokenization_layoutlm.py/0 | {
"file_path": "AdaMix/tests/test_tokenization_layoutlm.py",
"repo_id": "AdaMix",
"token_count": 1057
} | 77 |
# coding=utf-8
# Copyright 2020 The SqueezeBert authors and The HuggingFace Inc. team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# U... | AdaMix/tests/test_tokenization_squeezebert.py/0 | {
"file_path": "AdaMix/tests/test_tokenization_squeezebert.py",
"repo_id": "AdaMix",
"token_count": 642
} | 78 |
# 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_utils_check_copies.py/0 | {
"file_path": "AdaMix/tests/test_utils_check_copies.py",
"repo_id": "AdaMix",
"token_count": 1989
} | 79 |
{
"opsets": {
"1": [
"Abs",
"Add",
"AddV2",
"ArgMax",
"ArgMin",
"AvgPool",
"AvgPool3D",
"BatchMatMul",
"BatchMatMulV2",
"BatchToSpaceND",
"BiasAdd",
"BiasAddV1",
... | AdaMix/utils/tf_ops/onnx.json/0 | {
"file_path": "AdaMix/utils/tf_ops/onnx.json",
"repo_id": "AdaMix",
"token_count": 4081
} | 80 |
#!/bin/bash
wget -c https://github.com/microsoft/AirSim-Drone-Racing-Lab/releases/download/v1.0-linux/ADRL.zip
unzip ADRL.zip;
rm ADRL.zip;
mkdir -p /home/$USER/Documents/AirSim;
wget --directory-prefix=/home/$USER/Documents/AirSim -c https://github.com/microsoft/AirSim-Drone-Racing-Lab/releases/download/v1.0-linux/se... | AirSim-Drone-Racing-Lab/download_linux_binaries.sh/0 | {
"file_path": "AirSim-Drone-Racing-Lab/download_linux_binaries.sh",
"repo_id": "AirSim-Drone-Racing-Lab",
"token_count": 129
} | 81 |
from __future__ import division
import time
import numpy as np
import vel_regressor
import cv2
import math
import tensorflow as tf
import os, sys
import airsimdroneracingvae
import airsimdroneracingvae.types
import airsimdroneracingvae.utils
# import utils
curr_dir = os.path.dirname(os.path.abspath(__file__))
import_... | AirSim-Drone-Racing-VAE-Imitation/imitation_learning/bc_navigation.py/0 | {
"file_path": "AirSim-Drone-Racing-VAE-Imitation/imitation_learning/bc_navigation.py",
"repo_id": "AirSim-Drone-Racing-VAE-Imitation",
"token_count": 3194
} | 82 |
from argparse import ArgumentParser
import airsimneurips as airsim
import time
import utils
import threading
import numpy as np
import cv2
from baseline_racer import BaselineRacer
class BaselineRacerImageBenchmarker(BaselineRacer):
def __init__(self,
img_benchmark_type = 'simGetImage',
dr... | AirSim-NeurIPS2019-Drone-Racing/baselines/baseline_racer_image_benchmarker.py/0 | {
"file_path": "AirSim-NeurIPS2019-Drone-Racing/baselines/baseline_racer_image_benchmarker.py",
"repo_id": "AirSim-NeurIPS2019-Drone-Racing",
"token_count": 2341
} | 83 |
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
from logging import INFO, LogRecord, getLogger
from typing import Dict, Optional
from opentelemetry.sdk._logs import LoggingHandler
from opentelemetry.util.types import Attributes
_APPLICATION_INSIGHTS_EVENT_MARKER_ATTRIBUTE... | ApplicationInsights-Python/azure-monitor-events-extension/azure/monitor/events/extension/_events.py/0 | {
"file_path": "ApplicationInsights-Python/azure-monitor-events-extension/azure/monitor/events/extension/_events.py",
"repo_id": "ApplicationInsights-Python",
"token_count": 438
} | 84 |
#!/bin/bash
set -e
if [ -z "$DOCKER_GROUP_ID" ]; then
groupadd docker
else
groupadd -g "$DOCKER_GROUP_ID" docker
fi
usermod -aG docker "$1" && newgrp docker
getent group docker
| AzureTRE/.devcontainer/scripts/docker-client.sh/0 | {
"file_path": "AzureTRE/.devcontainer/scripts/docker-client.sh",
"repo_id": "AzureTRE",
"token_count": 77
} | 85 |
{
"scriptFile": "__init__.py",
"bindings": [
{
"name": "msg",
"type": "serviceBusTrigger",
"direction": "in",
"queueName": "%AIRLOCK_STATUS_CHANGED_QUEUE_NAME%",
"connection": "SB_CONNECTION_STRING"
},
{
"type": "eventGrid",
"name": "stepResultEvent",
"top... | AzureTRE/airlock_processor/StatusChangedQueueTrigger/function.json/0 | {
"file_path": "AzureTRE/airlock_processor/StatusChangedQueueTrigger/function.json",
"repo_id": "AzureTRE",
"token_count": 352
} | 86 |
FROM python:3.8-slim-bullseye as base
COPY requirements.txt /.
RUN pip3 install --no-cache-dir -r requirements.txt
FROM base as test
COPY requirements-dev.txt /.
RUN pip3 install --no-cache-dir -r requirements-dev.txt
COPY . /api
WORKDIR /api
RUN ./run_tests_and_exit_succesfully.sh
FROM scratch as test-results
COPY ... | AzureTRE/api_app/Dockerfile/0 | {
"file_path": "AzureTRE/api_app/Dockerfile",
"repo_id": "AzureTRE",
"token_count": 240
} | 87 |
from collections import defaultdict
from typing import Any, DefaultDict, Dict, Optional
from fastapi import APIRouter, Request, Depends, HTTPException, status
from fastapi.openapi.docs import get_swagger_ui_html, get_swagger_ui_oauth2_redirect_html
from fastapi.openapi.utils import get_openapi
from api.helpers import... | AzureTRE/api_app/api/routes/api.py/0 | {
"file_path": "AzureTRE/api_app/api/routes/api.py",
"repo_id": "AzureTRE",
"token_count": 3153
} | 88 |
from contextlib import asynccontextmanager
from core.config import MANAGED_IDENTITY_CLIENT_ID, AAD_AUTHORITY_URL
from azure.core.credentials import TokenCredential
from urllib.parse import urlparse
from azure.identity import (
DefaultAzureCredential,
ManagedIdentityCredential,
ChainedTokenCredential,
)
fro... | AzureTRE/api_app/core/credentials.py/0 | {
"file_path": "AzureTRE/api_app/core/credentials.py",
"repo_id": "AzureTRE",
"token_count": 1152
} | 89 |
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 db.errors import EntityDoesNotExist
from db.repositories.... | AzureTRE/api_app/db/repositories/user_resources.py/0 | {
"file_path": "AzureTRE/api_app/db/repositories/user_resources.py",
"repo_id": "AzureTRE",
"token_count": 1493
} | 90 |
from enum import Enum
from typing import List, Optional
from pydantic import Field
from pydantic.types import UUID4
from models.domain.azuretremodel import AzureTREModel
from models.domain.resource import Output, ResourceType
from resources import strings
class Status(str, Enum):
"""
Operation status
""... | AzureTRE/api_app/models/domain/operation.py/0 | {
"file_path": "AzureTRE/api_app/models/domain/operation.py",
"repo_id": "AzureTRE",
"token_count": 1691
} | 91 |
from typing import List
from pydantic import BaseModel
class Migration(BaseModel):
"""
Migration
"""
issueNumber: str
status: str
class MigrationOutList(BaseModel):
migrations: List[Migration]
| AzureTRE/api_app/models/schemas/migrations.py/0 | {
"file_path": "AzureTRE/api_app/models/schemas/migrations.py",
"repo_id": "AzureTRE",
"token_count": 74
} | 92 |
import base64
from collections import defaultdict
from enum import Enum
from typing import List, Optional
import jwt
import requests
from fastapi import Request, HTTPException, status
from msal import ConfidentialClientApplication
from services.access_service import AccessService, AuthConfigValidationError
from core ... | AzureTRE/api_app/services/aad_authentication.py/0 | {
"file_path": "AzureTRE/api_app/services/aad_authentication.py",
"repo_id": "AzureTRE",
"token_count": 10003
} | 93 |
import copy
from unittest.mock import AsyncMock
import pytest
import pytest_asyncio
from mock import patch, MagicMock
import uuid
from db.errors import EntityDoesNotExist, InvalidInput, ResourceIsNotDeployed
from db.repositories.operations import OperationRepository
from db.repositories.workspaces import WorkspaceRepo... | AzureTRE/api_app/tests_ma/test_db/test_repositories/test_workpaces_repository.py/0 | {
"file_path": "AzureTRE/api_app/tests_ma/test_db/test_repositories/test_workpaces_repository.py",
"repo_id": "AzureTRE",
"token_count": 4823
} | 94 |
import pytest
from mock import patch, call
import services.schema_service
@patch('services.schema_service.read_schema')
@patch('services.schema_service.enrich_template')
def test_enrich_workspace_template_enriches_with_workspace_defaults_and_aad(enrich_template_mock, read_schema_mock, basic_resource_template):
w... | AzureTRE/api_app/tests_ma/test_services/test_schema_service.py/0 | {
"file_path": "AzureTRE/api_app/tests_ma/test_services/test_schema_service.py",
"repo_id": "AzureTRE",
"token_count": 2135
} | 95 |
import click
class SharedServiceContext(object):
def __init__(self, shared_service_id: str):
self.shared_service_id = shared_service_id
pass_shared_service_context = click.make_pass_decorator(SharedServiceContext)
class SharedServiceOperationContext(object):
def __init__(self, shared_service_id: s... | AzureTRE/cli/tre/commands/shared_services/contexts.py/0 | {
"file_path": "AzureTRE/cli/tre/commands/shared_services/contexts.py",
"repo_id": "AzureTRE",
"token_count": 278
} | 96 |
import json
import logging
import click
from tre.api_client import ApiClient
from tre.output import output, output_option, query_option
@click.group(name="workspace-templates", help="List workspace-templates ")
def workspace_templates():
pass
@click.command(name="list", help="List workspace-templates")
@output... | AzureTRE/cli/tre/commands/workspace_templates/workspace_templates.py/0 | {
"file_path": "AzureTRE/cli/tre/commands/workspace_templates/workspace_templates.py",
"repo_id": "AzureTRE",
"token_count": 623
} | 97 |
import logging
import click
from tre.commands.operation import get_operation_id_completion, operation_show
from tre.output import output_option, query_option
from tre.api_client import ApiClient
from .contexts import pass_user_resource_operation_context, UserResourceOperationContext
def operation_id_completion(ctx: ... | AzureTRE/cli/tre/commands/workspaces/workspace_services/user_resources/operation.py/0 | {
"file_path": "AzureTRE/cli/tre/commands/workspaces/workspace_services/user_resources/operation.py",
"repo_id": "AzureTRE",
"token_count": 1018
} | 98 |
# Azure Provider source and version being used
terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "=3.74.0"
}
random = {
source = "hashicorp/random"
version = "~> 3.4.0"
}
local = {
source = "hashicorp/local"
version = "~> 2.4... | AzureTRE/core/terraform/main.tf/0 | {
"file_path": "AzureTRE/core/terraform/main.tf",
"repo_id": "AzureTRE",
"token_count": 4102
} | 99 |
variable "tre_id" {
type = string
}
variable "location" {
type = string
}
variable "acr_id" {
type = string
}
variable "resource_group_name" {
type = string
}
variable "resource_processor_subnet_id" {
type = string
}
variable "resource_processor_vmss_porter_image_repository" {
type = string
}
variable "dock... | AzureTRE/core/terraform/resource_processor/vmss_porter/variables.tf/0 | {
"file_path": "AzureTRE/core/terraform/resource_processor/vmss_porter/variables.tf",
"repo_id": "AzureTRE",
"token_count": 578
} | 100 |
#!/bin/bash
# This script is designed to be `source`d to create reusable helper functions
# Magic string for MSGraph
msGraphAppId="00000003-0000-0000-c000-000000000000"
function get_msgraph_scope() {
oauthScope=$(az ad sp show --id ${msGraphAppId} --query "oauth2PermissionScopes[?value=='$1'].id | [0]" --output ... | AzureTRE/devops/scripts/aad/get_msgraph_access.sh/0 | {
"file_path": "AzureTRE/devops/scripts/aad/get_msgraph_access.sh",
"repo_id": "AzureTRE",
"token_count": 297
} | 101 |
#!/bin/bash
# This script deletes a specific deployment of TRE including resource
# groups of the managment (ops) part, core as well as all workspace ones.
# It's doing this by finding all resource groups that start with the same
# name as the core one!
# If possible it will purge the keyvault making it possible to re... | AzureTRE/devops/scripts/destroy_env_no_terraform.sh/0 | {
"file_path": "AzureTRE/devops/scripts/destroy_env_no_terraform.sh",
"repo_id": "AzureTRE",
"token_count": 2059
} | 102 |
#!/bin/bash
set -e
function usage() {
cat <<USAGE
Usage: $0 [-g | --mgmt-resource-group-name ] [-s | --mgmt-storage-account-name] [-n | --state-container-name] [-k | --key] [-c | --cmd] [-l | --logfile]
Options:
-g, --mgmt-resource-group-name Management resource group name
-s, --mg... | AzureTRE/devops/scripts/terraform_wrapper.sh/0 | {
"file_path": "AzureTRE/devops/scripts/terraform_wrapper.sh",
"repo_id": "AzureTRE",
"token_count": 1468
} | 103 |
# Cost Reporting
The exact running costs will depend on the number of workspaces you have deployed, the workspace services you have enabled within them and the Azure Data center region. TRE users can use the Azure TRE cost API to get a report of the running costs of TRE resources according to their role.
TRE provides... | AzureTRE/docs/azure-tre-overview/cost-reporting.md/0 | {
"file_path": "AzureTRE/docs/azure-tre-overview/cost-reporting.md",
"repo_id": "AzureTRE",
"token_count": 4830
} | 104 |
# Manually creating Microsoft Entra ID identities
This guide is here if you wanted to create these Application Registrations manually.
These should be created in order (if applicable) as some applications are then granted permission to other applications.
## Manual Creation Guides
| Application | Comments |
| ------... | AzureTRE/docs/tre-admins/identities/auth-manual.md/0 | {
"file_path": "AzureTRE/docs/tre-admins/identities/auth-manual.md",
"repo_id": "AzureTRE",
"token_count": 178
} | 105 |
# Setup Auth configuration
Next, you will set the configuration variables for the specific Azure TRE instance:
1. Open the `/config.sample.yaml` file and then save it without the .sample extension. You should now have a file called `config.yaml` located in the root folder. The file contains configuration variables. I... | AzureTRE/docs/tre-admins/setup-instructions/setup-auth-entities.md/0 | {
"file_path": "AzureTRE/docs/tre-admins/setup-instructions/setup-auth-entities.md",
"repo_id": "AzureTRE",
"token_count": 853
} | 106 |
# Resource Processor (VMSS)
Resource Processor is the Azure TRE component automating [Porter](https://porter.sh) bundle deployments. It hosts Porter and its dependencies.
This page is a guide for a developer looking to make a change to the Resource Processor and debug it.
## Overview
The logic in Resource Processor... | AzureTRE/docs/tre-developers/resource-processor.md/0 | {
"file_path": "AzureTRE/docs/tre-developers/resource-processor.md",
"repo_id": "AzureTRE",
"token_count": 1785
} | 107 |
# Guacamole Service bundle
See: [https://guacamole.apache.org/](https://guacamole.apache.org/)
## Firewall Rules
Please be aware that the following Firewall rules are opened for the workspace when this service is deployed:
Service Tags:
- AzureActiveDirectory
## Prerequisites
- [A base workspace bundle installed... | AzureTRE/docs/tre-templates/workspace-services/guacamole.md/0 | {
"file_path": "AzureTRE/docs/tre-templates/workspace-services/guacamole.md",
"repo_id": "AzureTRE",
"token_count": 345
} | 108 |
# Checking the logs in App Insights
Every component of TRE should send their trace logs to App Insights logging backend, and you should be able to see the process flow by using a suitable query.
!!! note
AppTraces can take time to appear so be patient.
To find logs in Application Insights, go to your resource gr... | AzureTRE/docs/troubleshooting-faq/app-insights-logs.md/0 | {
"file_path": "AzureTRE/docs/troubleshooting-faq/app-insights-logs.md",
"repo_id": "AzureTRE",
"token_count": 490
} | 109 |
# API parameters
# --------------
# These keys should be copied into /workspaces/AzureTRE/e2e_tests/.env for you
# TRE_ID=cse-msr-dev
# AAD_TENANT_ID=<auth tenant id>
# API_CLIENT_ID=<Client id of the API app. This is defined here - /workspaces/AzureTRE/config.yaml>
# TEST_ACCOUNT_CLIENT_ID=<test user>
# TEST_ACCOUNT_C... | AzureTRE/e2e_tests/.env.sample/0 | {
"file_path": "AzureTRE/e2e_tests/.env.sample",
"repo_id": "AzureTRE",
"token_count": 378
} | 110 |
# Retrieve Bearer token
# @name auth
POST https://login.microsoftonline.com/<CHANGE_ME_TENANT_ID>/oauth2/token HTTP/1.1
Content-type: application/x-www-form-urlencoded
grant_type=password
&resource=__CHANGE_ME_
&username=__CHANGE_ME_
&password=__CHANGE_ME_
&scope=__CHANGE_ME_
&client_id=__CHANGE_ME_
#################... | AzureTRE/e2e_tests/test.http/0 | {
"file_path": "AzureTRE/e2e_tests/test.http",
"repo_id": "AzureTRE",
"token_count": 849
} | 111 |
__version__ = "0.8.4"
| AzureTRE/resource_processor/_version.py/0 | {
"file_path": "AzureTRE/resource_processor/_version.py",
"repo_id": "AzureTRE",
"token_count": 12
} | 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.23.0"
constraints = "3.23.0"
hashes = [
"h1:gL/GB7M9xFNr8SxyalWCkTUaYach2k1/0voy6hAqA0A=",
"zh:5856ee393eea2c5807d71794020ec1649... | AzureTRE/templates/shared_services/admin-vm/terraform/.terraform.lock.hcl/0 | {
"file_path": "AzureTRE/templates/shared_services/admin-vm/terraform/.terraform.lock.hcl",
"repo_id": "AzureTRE",
"token_count": 1362
} | 113 |
---
schemaVersion: 1.0.0
name: tre-shared-service-airlock-notifier
version: 0.9.0
description: "A shared service notifying on Airlock Operations"
registry: azuretre
dockerfile: Dockerfile.tmpl
credentials:
- name: azure_tenant_id
env: ARM_TENANT_ID
- name: azure_subscription_id
env: ARM_SUBSCRIPTION_ID
-... | AzureTRE/templates/shared_services/airlock_notifier/porter.yaml/0 | {
"file_path": "AzureTRE/templates/shared_services/airlock_notifier/porter.yaml",
"repo_id": "AzureTRE",
"token_count": 2237
} | 114 |
---
schemaVersion: 1.0.0
name: tre-shared-service-certs
version: 0.5.1
description: "An Azure TRE shared service to generate certificates for a specified internal domain using Letsencrypt"
registry: azuretre
dockerfile: Dockerfile.tmpl
credentials:
- name: azure_tenant_id
env: ARM_TENANT_ID
- name: azure_subsc... | AzureTRE/templates/shared_services/certs/porter.yaml/0 | {
"file_path": "AzureTRE/templates/shared_services/certs/porter.yaml",
"repo_id": "AzureTRE",
"token_count": 2574
} | 115 |
{
"schemaType": "ParameterSet",
"schemaVersion": "1.0.1",
"namespace": "",
"name": "tre-shared-service-cyclecloud",
"parameters": [
{
"name": "tre_id",
"source": {
"env": "TRE_ID"
}
},
{
"name": "tfstate_container_name",
"source": {
"env": "TERRAFORM_S... | AzureTRE/templates/shared_services/cyclecloud/parameters.json/0 | {
"file_path": "AzureTRE/templates/shared_services/cyclecloud/parameters.json",
"repo_id": "AzureTRE",
"token_count": 503
} | 116 |
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "https://github.com/microsoft/AzureTRE/templates/shared_services/databricks-auth/template_schema.json",
"type": "object",
"title": "Azure Databricks Private Authentication Shared Service",
"description": "Azure Databricks Private Authentication Sha... | AzureTRE/templates/shared_services/databricks-auth/template_schema.json/0 | {
"file_path": "AzureTRE/templates/shared_services/databricks-auth/template_schema.json",
"repo_id": "AzureTRE",
"token_count": 455
} | 117 |
# This file is maintained automatically by "terraform init".
# Manual edits may be lost in future updates.
provider "registry.terraform.io/hashicorp/azurerm" {
version = "3.53.0"
constraints = "3.53.0"
hashes = [
"h1:bK70LV1NldhodSm58cUpawKwdUL1A5AKKglAV2wZ/QY=",
"zh:078ece8318ad7d6c1cd2e5f2044188e74... | AzureTRE/templates/shared_services/firewall/terraform/.terraform.lock.hcl/0 | {
"file_path": "AzureTRE/templates/shared_services/firewall/terraform/.terraform.lock.hcl",
"repo_id": "AzureTRE",
"token_count": 697
} | 118 |
---
schemaVersion: 1.0.0
name: tre-shared-service-gitea
version: 1.0.1
description: "A Gitea shared service"
dockerfile: Dockerfile.tmpl
registry: azuretre
custom:
runtime_image:
name: gitea
build:
version_file: docker/version.txt
docker_file: docker/Dockerfile
docker_context: docker
crede... | AzureTRE/templates/shared_services/gitea/porter.yaml/0 | {
"file_path": "AzureTRE/templates/shared_services/gitea/porter.yaml",
"repo_id": "AzureTRE",
"token_count": 1832
} | 119 |
---
schemaVersion: 1.0.0
name: tre-shared-service-sonatype-nexus
version: 2.8.13
description: "A Sonatype Nexus shared service"
dockerfile: Dockerfile.tmpl
registry: azuretre
credentials:
- name: azure_tenant_id
env: ARM_TENANT_ID
- name: azure_subscription_id
env: ARM_SUBSCRIPTION_ID
- name: azure_clien... | AzureTRE/templates/shared_services/sonatype-nexus-vm/porter.yaml/0 | {
"file_path": "AzureTRE/templates/shared_services/sonatype-nexus-vm/porter.yaml",
"repo_id": "AzureTRE",
"token_count": 1646
} | 120 |
# GUID to identify the workspace service
ID=__CHANGE_ME__
# GUID to identify the workspace bundle
WORKSPACE_ID="__CHANGE_ME__"
# AML ML Workspace settings
DISPLAY_NAME="__CHANGE_ME__"
DESCRIPTION="__CHANGE_ME__"
IS_EXPOSED_EXTERNALLY="false"
ADDRESS_SAPCE="__CHANGE_ME__"
| AzureTRE/templates/workspace_services/azureml/.env.sample/0 | {
"file_path": "AzureTRE/templates/workspace_services/azureml/.env.sample",
"repo_id": "AzureTRE",
"token_count": 105
} | 121 |
data "azurerm_key_vault_secret" "workspace_client_id" {
name = "workspace-client-id"
key_vault_id = data.azurerm_key_vault.ws.id
}
data "external" "app_role_members" {
program = ["bash", "${path.module}/get_app_role_members.sh"]
query = {
auth_client_id = var.auth_client_id
auth_client_s... | AzureTRE/templates/workspace_services/azureml/terraform/roles.tf/0 | {
"file_path": "AzureTRE/templates/workspace_services/azureml/terraform/roles.tf",
"repo_id": "AzureTRE",
"token_count": 438
} | 122 |
variable "tre_id" {
type = string
description = "Unique TRE ID"
}
variable "tre_resource_id" {
type = string
description = "Unique TRE Resource ID"
}
variable "workspace_id" {
type = string
description = "Unique TRE WORKSPACE ID"
}
variable "address_space" {
type = string
... | AzureTRE/templates/workspace_services/databricks/terraform/variables.tf/0 | {
"file_path": "AzureTRE/templates/workspace_services/databricks/terraform/variables.tf",
"repo_id": "AzureTRE",
"token_count": 204
} | 123 |
locals {
short_service_id = substr(var.id, -4, -1)
short_workspace_id = substr(var.workspace_id, -4, -1)
workspace_resource_name_suffix = "${var.tre_id}-ws-${local.short_workspace_id}"
service_resource_name_suffix = "${var.tre_id}-ws-${local.short_workspace_id}-svc-${local.short_serv... | AzureTRE/templates/workspace_services/gitea/terraform/locals.tf/0 | {
"file_path": "AzureTRE/templates/workspace_services/gitea/terraform/locals.tf",
"repo_id": "AzureTRE",
"token_count": 731
} | 124 |
#!/usr/bin/with-contenv sh
echo >&2 "starting guacd"
exec /opt/guacamole/sbin/guacd -f -b 0.0.0.0 -L $GUACD_LOG_LEVEL -l 4822
| AzureTRE/templates/workspace_services/guacamole/guacamole-server/docker/services/guacd/run/0 | {
"file_path": "AzureTRE/templates/workspace_services/guacamole/guacamole-server/docker/services/guacd/run",
"repo_id": "AzureTRE",
"token_count": 67
} | 125 |
/**
*
*/
package org.apache.guacamole.auth.azuretre.connection;
| AzureTRE/templates/workspace_services/guacamole/guacamole-server/guacamole-auth-azure/src/main/java/org/apache/guacamole/auth/azuretre/connection/package-info.java/0 | {
"file_path": "AzureTRE/templates/workspace_services/guacamole/guacamole-server/guacamole-auth-azure/src/main/java/org/apache/guacamole/auth/azuretre/connection/package-info.java",
"repo_id": "AzureTRE",
"token_count": 25
} | 126 |
---
schemaVersion: 1.0.0
name: tre-service-guacamole
version: 0.10.6
description: "An Azure TRE service for Guacamole"
dockerfile: Dockerfile.tmpl
registry: azuretre
custom:
runtime_image:
name: guac-server
build:
version_file: guacamole-server/docker/version.txt
docker_file: guacamole-server/doc... | AzureTRE/templates/workspace_services/guacamole/porter.yaml/0 | {
"file_path": "AzureTRE/templates/workspace_services/guacamole/porter.yaml",
"repo_id": "AzureTRE",
"token_count": 3226
} | 127 |
#!/bin/bash
sudo tee /etc/pip.conf > dev/null <<'EOF'
[global]
index = ${nexus_proxy_url}/repository/pypi/pypi
index-url = ${nexus_proxy_url}/repository/pypi/simple
trusted-host = ${nexus_proxy_url}
EOF
| AzureTRE/templates/workspace_services/guacamole/user_resources/guacamole-azure-linuxvm/terraform/pypi_sources_config.sh/0 | {
"file_path": "AzureTRE/templates/workspace_services/guacamole/user_resources/guacamole-azure-linuxvm/terraform/pypi_sources_config.sh",
"repo_id": "AzureTRE",
"token_count": 89
} | 128 |
data "azurerm_key_vault_secret" "workspace_client_id" {
name = "workspace-client-id"
key_vault_id = data.azurerm_key_vault.ws.id
}
data "external" "app_role_members" {
program = ["bash", "${path.module}/get_app_role_members.sh"]
query = {
auth_client_id = var.auth_client_id
auth_client_s... | AzureTRE/templates/workspace_services/health-services/terraform/roles.tf/0 | {
"file_path": "AzureTRE/templates/workspace_services/health-services/terraform/roles.tf",
"repo_id": "AzureTRE",
"token_count": 662
} | 129 |
# Random unique id
locals {
short_service_id = substr(var.tre_resource_id, -4, -1)
short_workspace_id = substr(var.workspace_id, -4, -1)
core_resource_group_name = "rg-${var.tre_id}"
workspace_resource_name_suffix = "${var.tre_id}-ws-${local.short_workspace_id}"
service_resour... | AzureTRE/templates/workspace_services/innereye/terraform/locals.tf/0 | {
"file_path": "AzureTRE/templates/workspace_services/innereye/terraform/locals.tf",
"repo_id": "AzureTRE",
"token_count": 478
} | 130 |
{
"schemaType": "ParameterSet",
"schemaVersion": "1.0.1",
"namespace": "",
"name": "tre-service-mlflow",
"parameters": [
{
"name": "workspace_id",
"source": {
"env": "WORKSPACE_ID"
}
},
{
"name": "tre_id",
"source": {
"env": "TRE_ID"
}
},
... | AzureTRE/templates/workspace_services/mlflow/parameters.json/0 | {
"file_path": "AzureTRE/templates/workspace_services/mlflow/parameters.json",
"repo_id": "AzureTRE",
"token_count": 629
} | 131 |
{
"schemaType": "ParameterSet",
"schemaVersion": "1.0.1",
"namespace": "",
"name": "tre-workspace-service-mysql",
"parameters": [
{
"name": "tre_id",
"source": {
"env": "TRE_ID"
}
},
{
"name": "id",
"source": {
"env": "ID"
}
},
{
"n... | AzureTRE/templates/workspace_services/mysql/parameters.json/0 | {
"file_path": "AzureTRE/templates/workspace_services/mysql/parameters.json",
"repo_id": "AzureTRE",
"token_count": 676
} | 132 |
#!/bin/bash
set -o errexit
set -o pipefail
set -o nounset
admin_user_password="${OHDSI_ADMIN_PASSWORD}${OHDSI_ADMIN_USERNAME}"
app_user_password="${OHDSI_APP_PASSWORD}${OHDSI_APP_USERNAME}"
admin_md5=("md5$(echo -n "$admin_user_password" | md5sum | awk '{ print $1 }')")
export admin_md5
app_md5=("md5$(echo -n "$app_us... | AzureTRE/templates/workspace_services/ohdsi/scripts/atlas_db_init.sh/0 | {
"file_path": "AzureTRE/templates/workspace_services/ohdsi/scripts/atlas_db_init.sh",
"repo_id": "AzureTRE",
"token_count": 303
} | 133 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.