text stringlengths 5 22M | id stringlengths 12 177 | metadata dict | __index_level_0__ int64 0 1.37k |
|---|---|---|---|
# Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml
stages:
- stage: dev
jobs:
- template: steps/deploy.yml
parameters:
deployment_name: DLAKSDeployAMLJob
template: DLAK... | AI/.ci/realtime-serving-dl-dev.yml/0 | {
"file_path": "AI/.ci/realtime-serving-dl-dev.yml",
"repo_id": "AI",
"token_count": 302
} | 18 |
parameters:
Agent: Hosted Ubuntu 1604
Demands: "python3"
stageName: 'defaultStageName'
jobDisplayName: 'defaultDisplayName'
jobTimeoutInMinutes: 30
DefaultWorkingDirectory: #
pypi_artifactFeeds: #
pypi_pythonDownloadServiceConnections: #
module: src
repo: #
release: #
dependsOn: []
environment... | AI/.ci/stage/python_release_stage.yml/0 | {
"file_path": "AI/.ci/stage/python_release_stage.yml",
"repo_id": "AI",
"token_count": 1656
} | 19 |
parameters:
azureSubscription: ''
azure_subscription: ''
location: practices/recommendations/
azureresourcegroup: dciborowreco
workspacename: dciborowrecows
azureregion: westus2
aksimagename: dciborowrecoaks
aks_name: dciborowrecoaks
aks_service_name: myimage
conda: nightly_reco_pyspark
doCleanup... | AI/.ci/steps/RecoPySparkRTS.yml/0 | {
"file_path": "AI/.ci/steps/RecoPySparkRTS.yml",
"repo_id": "AI",
"token_count": 451
} | 20 |
parameters:
deployment_name: ''
template: ''
azureSubscription: ''
azure_subscription: ''
azureresourcegroup: ''
workspacename: ''
azureregion: ''
aksimagename: ''
environment: 'tridant-ai'
doCleanup: True
alias: '-'
project: '-'
expires : "2019-08-01"
agent: 'AI-GPU'
ENVIRONMENT_PREFIX: "... | AI/.ci/steps/deploy.yml/0 | {
"file_path": "AI/.ci/steps/deploy.yml",
"repo_id": "AI",
"token_count": 561
} | 21 |
parameters:
root: /data/anaconda/bin
conda_env: # this param must be set
install_conda: true
steps:
- bash: |
echo "##vso[task.prependpath]${{parameters.root}}"
conda env list
displayName: 'Add Conda to PATH'
- script: |
conda env remove -n ${{parameters.conda_env}}
python ./scripts/generate_c... | AI/.ci/steps/reco_config_conda_linux.yml/0 | {
"file_path": "AI/.ci/steps/reco_config_conda_linux.yml",
"repo_id": "AI",
"token_count": 208
} | 22 |
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"azureMLName": {
"type": "string"
},
"location": {
"type": "string"
},
"uniqueKey": {
"type": "string"
}
},
"variables": {
... | AI/AzureDeployment/AzureML/azureML.json/0 | {
"file_path": "AI/AzureDeployment/AzureML/azureML.json",
"repo_id": "AI",
"token_count": 1625
} | 23 |
import sys
import os
import torch
sys.path += ['../']
import gzip
import pickle
from utils.util import pad_input_ids, multi_file_process, numbered_byte_file_generator, EmbeddingCache
import csv
from model.models import MSMarcoConfigDict, ALL_MODELS
from torch.utils.data import DataLoader, Dataset, TensorDataset, Iterab... | ANCE/data/msmarco_data.py/0 | {
"file_path": "ANCE/data/msmarco_data.py",
"repo_id": "ANCE",
"token_count": 6590
} | 24 |
# 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... | ANCE/model/SEED_Encoder/tokenization_seed_encoder.py/0 | {
"file_path": "ANCE/model/SEED_Encoder/tokenization_seed_encoder.py",
"repo_id": "ANCE",
"token_count": 8421
} | 25 |
"""
Code for self-training with weak supervision.
Author: Giannis Karamanolakis (gkaraman@cs.columbia.edu)
"""
import os
import re
import pandas as pd
import numpy as np
from sklearn.feature_extraction.text import CountVectorizer, TfidfVectorizer
import joblib
import multiprocessing as mp
from functools import partial... | ASTRA/astra/Tokenizer.py/0 | {
"file_path": "ASTRA/astra/Tokenizer.py",
"repo_id": "ASTRA",
"token_count": 3435
} | 26 |
# Adapting GPT-2 using LoRA, Adapters and Adamix
This folder contains the implementation of LoRA, Adamix Adapter and Adamix LoRA in GPT-2 using the modiifed Python package `lora` and steps to replicate the results in our recent paper
<p>
<img src="figures/Results.png" width="800" >
</p>
This repo reproduces our expe... | AdaMix/NLG/README.md/0 | {
"file_path": "AdaMix/NLG/README.md",
"repo_id": "AdaMix",
"token_count": 3011
} | 27 |
name = "lora"
from .layers import *
from .utils import * | AdaMix/NLG/loralib/__init__.py/0 | {
"file_path": "AdaMix/NLG/loralib/__init__.py",
"repo_id": "AdaMix",
"token_count": 20
} | 28 |
import setuptools
setuptools.setup(
name="loralib",
version="0.1.0",
author="",
author_email="",
description="PyTorch implementation of low-rank adaptation (LoRA) and Adamix, a parameter-efficient approach to adapt a large pre-trained deep learning model which obtains performance better than full f... | AdaMix/NLG/setup.py/0 | {
"file_path": "AdaMix/NLG/setup.py",
"repo_id": "AdaMix",
"token_count": 227
} | 29 |
{
"activation_function": "gelu_new",
"architectures": [
"GPT2LMHeadModel"
],
"attn_pdrop": 0.1,
"bos_token_id": 50256,
"embd_pdrop": 0.1,
"eos_token_id": 50256,
"initializer_range": 0.02,
"layer_norm_epsilon": 1e-05,
"model_type": "gpt2",
"n_ctx": 1024,
"n_embd": 1024,
"n_head": 16,
"n_l... | AdaMix/NLG/vocab/config.json/0 | {
"file_path": "AdaMix/NLG/vocab/config.json",
"repo_id": "AdaMix",
"token_count": 339
} | 30 |
local base = import 'templates/base.libsonnet';
local tpus = import 'templates/tpus.libsonnet';
local utils = import "templates/utils.libsonnet";
local volumes = import "templates/volumes.libsonnet";
local bertBaseCased = base.BaseTest {
frameworkPrefix: "hf",
modelName: "bert-base-cased",
mode: "example",
con... | AdaMix/docker/transformers-pytorch-tpu/bert-base-cased.jsonnet/0 | {
"file_path": "AdaMix/docker/transformers-pytorch-tpu/bert-base-cased.jsonnet",
"repo_id": "AdaMix",
"token_count": 367
} | 31 |
..
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/benchmarks.rst/0 | {
"file_path": "AdaMix/docs/source/benchmarks.rst",
"repo_id": "AdaMix",
"token_count": 7715
} | 32 |
..
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/main_classes/logging.rst/0 | {
"file_path": "AdaMix/docs/source/main_classes/logging.rst",
"repo_id": "AdaMix",
"token_count": 870
} | 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/blenderbot.rst/0 | {
"file_path": "AdaMix/docs/source/model_doc/blenderbot.rst",
"repo_id": "AdaMix",
"token_count": 1402
} | 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/gpt.rst/0 | {
"file_path": "AdaMix/docs/source/model_doc/gpt.rst",
"repo_id": "AdaMix",
"token_count": 1484
} | 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_sharing.rst/0 | {
"file_path": "AdaMix/docs/source/model_sharing.rst",
"repo_id": "AdaMix",
"token_count": 3572
} | 36 |
<!---
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/examples/legacy/seq2seq/README.md/0 | {
"file_path": "AdaMix/examples/legacy/seq2seq/README.md",
"repo_id": "AdaMix",
"token_count": 5097
} | 37 |
### Motivation
Without processing, english-> romanian mbart-large-en-ro gets BLEU score 26.8 on the WMT data.
With post processing, it can score 37..
Here is the postprocessing code, stolen from @mjpost in this [issue](https://github.com/pytorch/fairseq/issues/1758)
### Instructions
Note: You need to have your test_... | AdaMix/examples/legacy/seq2seq/romanian_postprocessing.md/0 | {
"file_path": "AdaMix/examples/legacy/seq2seq/romanian_postprocessing.md",
"repo_id": "AdaMix",
"token_count": 723
} | 38 |
import sys
from transformers import AutoTokenizer
dataset = sys.argv[1]
model_name_or_path = sys.argv[2]
max_len = int(sys.argv[3])
subword_len_counter = 0
tokenizer = AutoTokenizer.from_pretrained(model_name_or_path)
max_len -= tokenizer.num_special_tokens_to_add()
with open(dataset, "rt") as f_p:
for line i... | AdaMix/examples/legacy/token-classification/scripts/preprocess.py/0 | {
"file_path": "AdaMix/examples/legacy/token-classification/scripts/preprocess.py",
"repo_id": "AdaMix",
"token_count": 452
} | 39 |
## Adversarial evaluation of model performances
Here is an example on evaluating a model using adversarial evaluation of natural language inference with the Heuristic Analysis for NLI Systems (HANS) dataset [McCoy et al., 2019](https://arxiv.org/abs/1902.01007). The example was gracefully provided by [Nafise Sadat Moo... | AdaMix/examples/research_projects/adversarial/README.md/0 | {
"file_path": "AdaMix/examples/research_projects/adversarial/README.md",
"repo_id": "AdaMix",
"token_count": 518
} | 40 |
#!/bin/bash
export CUDA_VISIBLE_DEVICES=0
PATH_TO_DATA=/h/xinji/projects/GLUE
MODEL_TYPE=bert # bert or roberta
MODEL_SIZE=base # base or large
DATASET=MRPC # SST-2, MRPC, RTE, QNLI, QQP, or MNLI
MODEL_NAME=${MODEL_TYPE}-${MODEL_SIZE}
EPOCHS=10
if [ $MODEL_TYPE = 'bert' ]
then
EPOCHS=3
MODEL_NAME=${MODEL_NAME... | AdaMix/examples/research_projects/deebert/train_deebert.sh/0 | {
"file_path": "AdaMix/examples/research_projects/deebert/train_deebert.sh",
"repo_id": "AdaMix",
"token_count": 417
} | 41 |
{
"vocab_size": 50265,
"hidden_size": 768,
"num_hidden_layers": 6,
"num_attention_heads": 12,
"intermediate_size": 3072,
"hidden_act": "gelu",
"hidden_dropout_prob": 0.1,
"attention_probs_dropout_prob": 0.1,
"max_position_embeddings": 514,
"type_vocab_size": 1,
"initializer_r... | AdaMix/examples/research_projects/distillation/training_configs/distilroberta-base.json/0 | {
"file_path": "AdaMix/examples/research_projects/distillation/training_configs/distilroberta-base.json",
"repo_id": "AdaMix",
"token_count": 178
} | 42 |
# 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/masked_run_squad.py/0 | {
"file_path": "AdaMix/examples/research_projects/movement-pruning/masked_run_squad.py",
"repo_id": "AdaMix",
"token_count": 21415
} | 43 |
import itertools
import json
import linecache
import os
import pickle
import re
import socket
import string
from collections import Counter
from logging import getLogger
from pathlib import Path
from typing import Callable, Dict, Iterable, List
import git
import torch
from torch.utils.data import Dataset
from transfo... | AdaMix/examples/research_projects/rag/utils_rag.py/0 | {
"file_path": "AdaMix/examples/research_projects/rag/utils_rag.py",
"repo_id": "AdaMix",
"token_count": 3498
} | 44 |
# Add parent directory to python path to access lightning_base.py
export PYTHONPATH="../":"${PYTHONPATH}"
python finetune.py \
--data_dir=$CNN_DIR \
--learning_rate=3e-5 \
--train_batch_size=$BS \
--eval_batch_size=$BS \
--output_dir=$OUTPUT_DIR \
--max_source_length=512 \
--max_target_length=56 \
--val_check_interval... | AdaMix/examples/research_projects/seq2seq-distillation/finetune_t5.sh/0 | {
"file_path": "AdaMix/examples/research_projects/seq2seq-distillation/finetune_t5.sh",
"repo_id": "AdaMix",
"token_count": 148
} | 45 |
# Zero-shot classifier distillation
Author: @joeddav
This script provides a way to improve the speed and memory performance of a zero-shot classifier by training a more
efficient student model from the zero-shot teacher's predictions over an unlabeled dataset.
The zero-shot classification pipeline uses a model pre-... | AdaMix/examples/research_projects/zero-shot-distillation/README.md/0 | {
"file_path": "AdaMix/examples/research_projects/zero-shot-distillation/README.md",
"repo_id": "AdaMix",
"token_count": 2424
} | 46 |
#!/usr/bin/env python
# coding=utf-8
# Copyright 2020 The HuggingFace Inc. team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LI... | AdaMix/examples/text-classification/run_glue.py/0 | {
"file_path": "AdaMix/examples/text-classification/run_glue.py",
"repo_id": "AdaMix",
"token_count": 13552
} | 47 |
# Copyright 2021 The HuggingFace Team, the AllenNLP library authors. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
... | AdaMix/scripts/stale.py/0 | {
"file_path": "AdaMix/scripts/stale.py",
"repo_id": "AdaMix",
"token_count": 982
} | 48 |
# Copyright 2020 The HuggingFace Team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicabl... | AdaMix/src/transformers/commands/convert.py/0 | {
"file_path": "AdaMix/src/transformers/commands/convert.py",
"repo_id": "AdaMix",
"token_count": 3474
} | 49 |
# coding=utf-8
# Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team.
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a cop... | AdaMix/src/transformers/data/processors/glue.py/0 | {
"file_path": "AdaMix/src/transformers/data/processors/glue.py",
"repo_id": "AdaMix",
"token_count": 10262
} | 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/hf_argparser.py/0 | {
"file_path": "AdaMix/src/transformers/hf_argparser.py",
"repo_id": "AdaMix",
"token_count": 4657
} | 51 |
# 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/auto/modeling_auto.py/0 | {
"file_path": "AdaMix/src/transformers/models/auto/modeling_auto.py",
"repo_id": "AdaMix",
"token_count": 34401
} | 52 |
# coding=utf-8
# Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICEN... | AdaMix/src/transformers/models/bert_japanese/tokenization_bert_japanese.py/0 | {
"file_path": "AdaMix/src/transformers/models/bert_japanese/tokenization_bert_japanese.py",
"repo_id": "AdaMix",
"token_count": 6306
} | 53 |
# coding=utf-8
# Copyright 2020 Microsoft and the Hugging Face Inc. team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... | AdaMix/src/transformers/models/deberta/modeling_deberta.py/0 | {
"file_path": "AdaMix/src/transformers/models/deberta/modeling_deberta.py",
"repo_id": "AdaMix",
"token_count": 24507
} | 54 |
# 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_dpr.py/0 | {
"file_path": "AdaMix/src/transformers/models/dpr/modeling_dpr.py",
"repo_id": "AdaMix",
"token_count": 11503
} | 55 |
# 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/fsmt/__init__.py/0 | {
"file_path": "AdaMix/src/transformers/models/fsmt/__init__.py",
"repo_id": "AdaMix",
"token_count": 665
} | 56 |
# coding=utf-8
# Copyright 2020 The HuggingFace Inc. team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable... | AdaMix/src/transformers/models/funnel/convert_funnel_original_tf_checkpoint_to_pytorch.py/0 | {
"file_path": "AdaMix/src/transformers/models/funnel/convert_funnel_original_tf_checkpoint_to_pytorch.py",
"repo_id": "AdaMix",
"token_count": 809
} | 57 |
# coding=utf-8
# Copyright 2018 The Open AI Team Authors and The HuggingFace Inc. team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# ... | AdaMix/src/transformers/models/gpt2/tokenization_gpt2_fast.py/0 | {
"file_path": "AdaMix/src/transformers/models/gpt2/tokenization_gpt2_fast.py",
"repo_id": "AdaMix",
"token_count": 3323
} | 58 |
# 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_led.py/0 | {
"file_path": "AdaMix/src/transformers/models/led/modeling_led.py",
"repo_id": "AdaMix",
"token_count": 57195
} | 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/mbart/__init__.py/0 | {
"file_path": "AdaMix/src/transformers/models/mbart/__init__.py",
"repo_id": "AdaMix",
"token_count": 1231
} | 60 |
# 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_mt5.py/0 | {
"file_path": "AdaMix/src/transformers/models/mt5/modeling_mt5.py",
"repo_id": "AdaMix",
"token_count": 1598
} | 61 |
# 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/retrieval_rag.py/0 | {
"file_path": "AdaMix/src/transformers/models/rag/retrieval_rag.py",
"repo_id": "AdaMix",
"token_count": 11946
} | 62 |
# 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_roberta.py/0 | {
"file_path": "AdaMix/src/transformers/models/roberta/modeling_roberta.py",
"repo_id": "AdaMix",
"token_count": 30844
} | 63 |
# coding=utf-8
# Copyright 2018 The T5 authors and HuggingFace Inc. team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... | AdaMix/src/transformers/models/t5/convert_t5_original_tf_checkpoint_to_pytorch.py/0 | {
"file_path": "AdaMix/src/transformers/models/t5/convert_t5_original_tf_checkpoint_to_pytorch.py",
"repo_id": "AdaMix",
"token_count": 725
} | 64 |
# 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/wav2vec2/configuration_wav2vec2.py/0 | {
"file_path": "AdaMix/src/transformers/models/wav2vec2/configuration_wav2vec2.py",
"repo_id": "AdaMix",
"token_count": 5100
} | 65 |
# coding=utf-8
# Copyright 2019 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 Licens... | AdaMix/src/transformers/models/xlm_roberta/modeling_xlm_roberta.py/0 | {
"file_path": "AdaMix/src/transformers/models/xlm_roberta/modeling_xlm_roberta.py",
"repo_id": "AdaMix",
"token_count": 1950
} | 66 |
# Copyright 2019 The TensorFlow Authors, The Hugging Face 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
#
# Unl... | AdaMix/src/transformers/optimization_tf.py/0 | {
"file_path": "AdaMix/src/transformers/optimization_tf.py",
"repo_id": "AdaMix",
"token_count": 6626
} | 67 |
# Copyright 2020 The HuggingFace Team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicabl... | AdaMix/src/transformers/testing_utils.py/0 | {
"file_path": "AdaMix/src/transformers/testing_utils.py",
"repo_id": "AdaMix",
"token_count": 14786
} | 68 |
# 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/utils/versions.py/0 | {
"file_path": "AdaMix/src/transformers/utils/versions.py",
"repo_id": "AdaMix",
"token_count": 1339
} | 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 ... | AdaMix/templates/adding_a_new_model/cookiecutter-template-{{cookiecutter.modelname}}/{{cookiecutter.lowercase_modelname}}.rst/0 | {
"file_path": "AdaMix/templates/adding_a_new_model/cookiecutter-template-{{cookiecutter.modelname}}/{{cookiecutter.lowercase_modelname}}.rst",
"repo_id": "AdaMix",
"token_count": 1917
} | 70 |
# Copyright 2020 The HuggingFace Team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicabl... | AdaMix/tests/test_flax_auto.py/0 | {
"file_path": "AdaMix/tests/test_flax_auto.py",
"repo_id": "AdaMix",
"token_count": 1270
} | 71 |
# coding=utf-8
# Copyright 2020 Huggingface
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | AdaMix/tests/test_modeling_fsmt.py/0 | {
"file_path": "AdaMix/tests/test_modeling_fsmt.py",
"repo_id": "AdaMix",
"token_count": 9699
} | 72 |
# coding=utf-8
# Copyright 2020 The HuggingFace Inc. team, The Microsoft Research 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/tests/test_modeling_prophetnet.py/0 | {
"file_path": "AdaMix/tests/test_modeling_prophetnet.py",
"repo_id": "AdaMix",
"token_count": 25023
} | 73 |
# 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_modeling_tf_common.py/0 | {
"file_path": "AdaMix/tests/test_modeling_tf_common.py",
"repo_id": "AdaMix",
"token_count": 29648
} | 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_tf_mt5.py/0 | {
"file_path": "AdaMix/tests/test_modeling_tf_mt5.py",
"repo_id": "AdaMix",
"token_count": 811
} | 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_modeling_xlnet.py/0 | {
"file_path": "AdaMix/tests/test_modeling_xlnet.py",
"repo_id": "AdaMix",
"token_count": 18579
} | 76 |
# Copyright 2020 The HuggingFace Team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicabl... | AdaMix/tests/test_pipelines_translation.py/0 | {
"file_path": "AdaMix/tests/test_pipelines_translation.py",
"repo_id": "AdaMix",
"token_count": 908
} | 77 |
# coding=utf-8
# Copyright 2018 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_tokenization_camembert.py/0 | {
"file_path": "AdaMix/tests/test_tokenization_camembert.py",
"repo_id": "AdaMix",
"token_count": 1290
} | 78 |
# coding=utf-8
# Copyright 2021 The HuggingFace Team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | AdaMix/tests/test_tokenization_wav2vec2.py/0 | {
"file_path": "AdaMix/tests/test_tokenization_wav2vec2.py",
"repo_id": "AdaMix",
"token_count": 8712
} | 79 |
# 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_table.py/0 | {
"file_path": "AdaMix/utils/check_table.py",
"repo_id": "AdaMix",
"token_count": 3035
} | 80 |
import tensorflow as tf
from tensorflow.keras import Model
from tensorflow.keras.layers import Dense, Flatten, Conv2D, BatchNormalization, Lambda, Concatenate, Conv2DTranspose, Reshape, ReLU
class BcLatent(Model):
def __init__(self):
super(BcLatent, self).__init__()
self.create_model()
def cal... | AirSim-Drone-Racing-VAE-Imitation/racing_models/bc_latent.py/0 | {
"file_path": "AirSim-Drone-Racing-VAE-Imitation/racing_models/bc_latent.py",
"repo_id": "AirSim-Drone-Racing-VAE-Imitation",
"token_count": 470
} | 81 |
ARG BASE_IMAGE=nvidia/cudagl:10.0-devel-ubuntu18.04
FROM $BASE_IMAGE
RUN apt-get update
RUN apt-get install \
git \
libglu1-mesa-dev \
pulseaudio \
python3 \
python3-pip \
sudo \
sudo \
wget \
x11-xserver-utils \
xdg-user-dirs \
unzip \
-y --no-install-recommends
RUN pip3 install setuptools wheel
RUN pi... | AirSim-NeurIPS2019-Drone-Racing/docker/Dockerfile/0 | {
"file_path": "AirSim-NeurIPS2019-Drone-Racing/docker/Dockerfile",
"repo_id": "AirSim-NeurIPS2019-Drone-Racing",
"token_count": 401
} | 82 |
#!/usr/bin/env python
# -------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
# --------------------------------------------------------------... | ApplicationInsights-Python/azure-monitor-events-extension/setup.py/0 | {
"file_path": "ApplicationInsights-Python/azure-monitor-events-extension/setup.py",
"repo_id": "ApplicationInsights-Python",
"token_count": 854
} | 83 |
# See https://docs.docker.com/engine/reference/builder/#dockerignore-file
# Put files here that you need in the devcontainer's context
.gitignore
Dockerfile.tmpl
.bash_history
.mypy_cache
.pytest_cache
__pycache__
.env
*.env
docs
!docs/requirements.txt
cli/build
cli/dist
*.egg-info/
**/.terraform
tfplan*
*.log
te... | AzureTRE/.dockerignore/0 | {
"file_path": "AzureTRE/.dockerignore",
"repo_id": "AzureTRE",
"token_count": 174
} | 84 |
local.settings.json
| AzureTRE/airlock_processor/.dockerignore/0 | {
"file_path": "AzureTRE/airlock_processor/.dockerignore",
"repo_id": "AzureTRE",
"token_count": 6
} | 85 |
from azure.cosmos.aio import CosmosClient, DatabaseProxy, ContainerProxy
from azure.mgmt.cosmosdb.aio import CosmosDBManagementClient
from core.config import MANAGED_IDENTITY_CLIENT_ID, STATE_STORE_ENDPOINT, STATE_STORE_KEY, STATE_STORE_SSL_VERIFY, SUBSCRIPTION_ID, RESOURCE_MANAGER_ENDPOINT, CREDENTIAL_SCOPES, RESOURC... | AzureTRE/api_app/api/dependencies/database.py/0 | {
"file_path": "AzureTRE/api_app/api/dependencies/database.py",
"repo_id": "AzureTRE",
"token_count": 1546
} | 86 |
from fastapi import APIRouter, Depends
from api.helpers import get_repository
from db.repositories.operations import OperationRepository
from models.schemas.operation import OperationInList
from resources import strings
from services.authentication import get_current_tre_user_or_tre_admin
operations_router = APIRout... | AzureTRE/api_app/api/routes/operations.py/0 | {
"file_path": "AzureTRE/api_app/api/routes/operations.py",
"repo_id": "AzureTRE",
"token_count": 241
} | 87 |
import uuid
from db.repositories.operations import OperationRepository
from db.repositories.resources import ResourceRepository
from db.repositories.resources_history import ResourceHistoryRepository
class ResourceMigration(ResourceRepository):
@classmethod
async def create(cls):
cls = ResourceMigrati... | AzureTRE/api_app/db/migrations/resources.py/0 | {
"file_path": "AzureTRE/api_app/db/migrations/resources.py",
"repo_id": "AzureTRE",
"token_count": 1013
} | 88 |
import re
import json
from typing import Dict, Optional
from azure.eventgrid import EventGridEvent
from models.domain.events import AirlockNotificationRequestData, AirlockNotificationWorkspaceData, StatusChangedData, AirlockNotificationData
from event_grid.helpers import publish_event
from core import config
from mode... | AzureTRE/api_app/event_grid/event_sender.py/0 | {
"file_path": "AzureTRE/api_app/event_grid/event_sender.py",
"repo_id": "AzureTRE",
"token_count": 1235
} | 89 |
from models.domain.resource import Resource, ResourceType
class SharedService(Resource):
"""
Shared service request
"""
resourceType = ResourceType.SharedService
| AzureTRE/api_app/models/domain/shared_service.py/0 | {
"file_path": "AzureTRE/api_app/models/domain/shared_service.py",
"repo_id": "AzureTRE",
"token_count": 50
} | 90 |
from models.domain.resource import ResourceType
from models.domain.resource_template import ResourceTemplate, Property, CustomAction
from models.schemas.resource_template import ResourceTemplateInCreate, ResourceTemplateInResponse
def get_sample_shared_service_template_object(template_name: str = "tre-shared-service"... | AzureTRE/api_app/models/schemas/shared_service_template.py/0 | {
"file_path": "AzureTRE/api_app/models/schemas/shared_service_template.py",
"repo_id": "AzureTRE",
"token_count": 1155
} | 91 |
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "https://github.com/microsoft/AzureTRE/schema/shared_service.json",
"type": "object",
"title": "Shared Service Default Parameters",
"description": "These parameters are required for all shared services",
"required": [
"display_name",
"des... | AzureTRE/api_app/schemas/shared_service.json/0 | {
"file_path": "AzureTRE/api_app/schemas/shared_service.json",
"repo_id": "AzureTRE",
"token_count": 343
} | 92 |
from typing import List
from ipaddress import IPv4Network, NetmaskValueError, collapse_addresses
from core import config
def generate_new_cidr(allocated_subnets: List[str], required_cidr_block_type: int) -> str:
if required_cidr_block_type >= 32 or required_cidr_block_type < 8:
raise NetmaskValueError("I... | AzureTRE/api_app/services/cidr_service.py/0 | {
"file_path": "AzureTRE/api_app/services/cidr_service.py",
"repo_id": "AzureTRE",
"token_count": 825
} | 93 |
import time
import pytest
import pytest_asyncio
from mock import patch
from fastapi import status
from azure.core.exceptions import HttpResponseError
from azure.cosmos.exceptions import CosmosResourceNotFoundError
from tests_ma.test_api.conftest import create_test_user, get_required_roles
from api.routes.airlock impor... | AzureTRE/api_app/tests_ma/test_api/test_routes/test_airlock.py/0 | {
"file_path": "AzureTRE/api_app/tests_ma/test_api/test_routes/test_airlock.py",
"repo_id": "AzureTRE",
"token_count": 13082
} | 94 |
import json
from fastapi import HTTPException, status
import pytest
import time
from mock import AsyncMock, patch
from service_bus.airlock_request_status_update import AirlockStatusUpdater
from models.domain.events import AirlockNotificationUserData, AirlockFile
from models.domain.airlock_request import AirlockRequest... | AzureTRE/api_app/tests_ma/test_service_bus/test_airlock_request_status_update.py/0 | {
"file_path": "AzureTRE/api_app/tests_ma/test_service_bus/test_airlock_request_status_update.py",
"repo_id": "AzureTRE",
"token_count": 3572
} | 95 |
### 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": {
"$schema": "http://json-schema.org/draft-07/schema",
... | AzureTRE/api_http_requests/API Template Modifying Endpoints.http/0 | {
"file_path": "AzureTRE/api_http_requests/API Template Modifying Endpoints.http",
"repo_id": "AzureTRE",
"token_count": 980
} | 96 |
import click
import logging
from tre.api_client import ApiClient
from tre.commands.workspaces.workspace import workspace_id_completion
from tre.output import output, output_option, query_option
@click.group(help="Show costs")
def costs() -> None:
pass
@click.command(name="overall", help="Show overall costs")
@... | AzureTRE/cli/tre/commands/costs.py/0 | {
"file_path": "AzureTRE/cli/tre/commands/costs.py",
"repo_id": "AzureTRE",
"token_count": 1698
} | 97 |
import click
import logging
from tre.api_client import ApiClient
from tre.commands.workspaces.contexts import pass_workspace_context
from tre.output import output, output_option, query_option
_default_table_query_list = r"airlockRequests[].airlockRequest.{id:id,workspace_id:workspaceId,type:type,status:status,busines... | AzureTRE/cli/tre/commands/workspaces/airlock/requests.py/0 | {
"file_path": "AzureTRE/cli/tre/commands/workspaces/airlock/requests.py",
"repo_id": "AzureTRE",
"token_count": 952
} | 98 |
import json
import logging
import click
from tre.api_client import ApiClient
from tre.commands.operation import operation_show
from tre.commands.workspaces.contexts import WorkspaceContext, pass_workspace_context
from tre.output import output, output_option, query_option
@click.group(name="workspace-services", help=... | AzureTRE/cli/tre/commands/workspaces/workspace_services/workspace_services.py/0 | {
"file_path": "AzureTRE/cli/tre/commands/workspaces/workspace_services/workspace_services.py",
"repo_id": "AzureTRE",
"token_count": 1041
} | 99 |
resource "azurerm_user_assigned_identity" "id" {
resource_group_name = azurerm_resource_group.core.name
location = azurerm_resource_group.core.location
tags = local.tre_core_tags
name = "id-api-${var.tre_id}"
lifecycle { ignore_changes = [tags] }
}
# Needed to include untagged res... | AzureTRE/core/terraform/api-identity.tf/0 | {
"file_path": "AzureTRE/core/terraform/api-identity.tf",
"repo_id": "AzureTRE",
"token_count": 1046
} | 100 |
resource "azurerm_public_ip" "bastion" {
name = "pip-bas-${var.tre_id}"
resource_group_name = azurerm_resource_group.core.name
location = azurerm_resource_group.core.location
allocation_method = "Static"
sku = "Standard"
tags = local.tre_core_tags
... | AzureTRE/core/terraform/bastion.tf/0 | {
"file_path": "AzureTRE/core/terraform/bastion.tf",
"repo_id": "AzureTRE",
"token_count": 385
} | 101 |
resource "azurerm_cosmosdb_account" "tre_db_account" {
name = "cosmos-${var.tre_id}"
location = azurerm_resource_group.core.location
resource_group_name = azurerm_resource_group.core.name
offer_type = "Standard"
kind = "GlobalDocu... | AzureTRE/core/terraform/statestore.tf/0 | {
"file_path": "AzureTRE/core/terraform/statestore.tf",
"repo_id": "AzureTRE",
"token_count": 1474
} | 102 |
#!/bin/bash
# This script checks if the api server endpoint /api/health is available(response code 200) and then verifies that the response contains all OK
# Both verifications have a retry(4 retries, including call above makes total 5 calls).
set -e
# Get the directory that this script is in
DIR="$( cd "$( dirname "$... | AzureTRE/devops/scripts/api_healthcheck.sh/0 | {
"file_path": "AzureTRE/devops/scripts/api_healthcheck.sh",
"repo_id": "AzureTRE",
"token_count": 631
} | 103 |
#!/bin/bash
set -o errexit
set -o pipefail
set -o nounset
# set -o xtrace
function template_version () {
version=$(yq eval ".version" "$1")
name=$(yq eval ".name" "$1")
echo -e "| $name | $version |"
}
function component_version () {
version_line=$(cat "$2")
# doesn't work with quotes
# shellcheck disabl... | AzureTRE/devops/scripts/list_versions.sh/0 | {
"file_path": "AzureTRE/devops/scripts/list_versions.sh",
"repo_id": "AzureTRE",
"token_count": 354
} | 104 |
#!/bin/bash
set -o errexit
set -o pipefail
set -o nounset
# set -o xtrace
PLAN_FILE="devops.tfplan"
terraform init -input=false -backend=true -reconfigure
terraform plan -out ${PLAN_FILE}
terraform apply -auto-approve ${PLAN_FILE}
./update_tags.sh
| AzureTRE/devops/terraform/deploy.sh/0 | {
"file_path": "AzureTRE/devops/terraform/deploy.sh",
"repo_id": "AzureTRE",
"token_count": 103
} | 105 |
# How to contribute to Azure TRE
> To read about how to set up your development environment and contribute to Azure TRE components please visit [Local Development](../using-tre/local-development/local-development/).
## Did you find a bug?
* **Ensure the bug was not already reported** by searching on GitHub under [Iss... | AzureTRE/docs/contributing.md/0 | {
"file_path": "AzureTRE/docs/contributing.md",
"repo_id": "AzureTRE",
"token_count": 532
} | 106 |
# Microsoft Entra ID Tenant Choices
## Dedicated Tenant for TRE
We recommend that you have a dedicated Tenant for your TRE rather than using your corporate tenant. This is because TRE is able to automate some of the AD Tenant Admin tasks for you. In order to do this, there is an Admin User that has the ability to cre... | AzureTRE/docs/tre-admins/setup-instructions/ad-tenant-choices.md/0 | {
"file_path": "AzureTRE/docs/tre-admins/setup-instructions/ad-tenant-choices.md",
"repo_id": "AzureTRE",
"token_count": 327
} | 107 |
# Supported Clouds
AzureTRE can be installed on the following clouds:
1. Azure Public cloud
2. [Azure US Government Cloud](https://azure.microsoft.com/en-us/explore/global-infrastructure/government/)
## Supported Services
1. Azure Public cloud - All services are supported.
1. In Azure US Government Cloud the followi... | AzureTRE/docs/tre-admins/supported-clouds.md/0 | {
"file_path": "AzureTRE/docs/tre-admins/supported-clouds.md",
"repo_id": "AzureTRE",
"token_count": 220
} | 108 |
# InnerEye DeepLearning Service Bundle
- [Azure ML](../../../templates/workspace_services/azureml)
See: [https://github.com/microsoft/InnerEye-DeepLearning](https://github.com/microsoft/InnerEye-DeepLearning)
## Firewall Rules
Please be aware that the following Firewall rules are opened for the workspace when this ... | AzureTRE/docs/tre-templates/workspace-services/inner-eye.md/0 | {
"file_path": "AzureTRE/docs/tre-templates/workspace-services/inner-eye.md",
"repo_id": "AzureTRE",
"token_count": 2430
} | 109 |
# Manually editing resources in Cosmos DB
On occasion, resources in the TRE (i.e. a user resource, workspace service or workspace) can get into a corrupted state, usually when an operation performed by the API and Resource Processor has failed and has not been gracefully handled. This can leave the resource state stor... | AzureTRE/docs/troubleshooting-faq/manually-editing-resources.md/0 | {
"file_path": "AzureTRE/docs/troubleshooting-faq/manually-editing-resources.md",
"repo_id": "AzureTRE",
"token_count": 888
} | 110 |
from azure.cli.core import cloud
from urllib.parse import urlparse
def get_cloud() -> cloud.Cloud:
return cloud.get_active_cloud()
def get_aad_authority_fqdn() -> str:
return urlparse(get_cloud().endpoints.active_directory).netloc
| AzureTRE/e2e_tests/cloud.py/0 | {
"file_path": "AzureTRE/e2e_tests/cloud.py",
"repo_id": "AzureTRE",
"token_count": 84
} | 111 |
import pytest
from httpx import AsyncClient
from starlette import status
import config
from helpers import assert_status, get_auth_header, get_template
from resources import strings
from helpers import get_admin_token
shared_service_templates = [
strings.FIREWALL_SHARED_SERVICE,
strings.GITEA_SHARED_SERVICE,... | AzureTRE/e2e_tests/test_shared_service_templates.py/0 | {
"file_path": "AzureTRE/e2e_tests/test_shared_service_templates.py",
"repo_id": "AzureTRE",
"token_count": 534
} | 112 |
from collections import defaultdict
from resources import strings
# Specify pass and fail status strings so we can return the right statuses to the api depending on the action type (with a default of custom action)
failed_status_string_for = defaultdict(lambda: strings.RESOURCE_ACTION_STATUS_FAILED, {
"install": ... | AzureTRE/resource_processor/resources/statuses.py/0 | {
"file_path": "AzureTRE/resource_processor/resources/statuses.py",
"repo_id": "AzureTRE",
"token_count": 332
} | 113 |
{
"schemaType": "CredentialSet",
"schemaVersion": "1.0.1",
"namespace": "",
"name": "aad_auth",
"credentials": [
{
"name": "auth_tenant_id",
"source": {
"secret": "auth-tenant-id"
}
},
{
"name": "auth_client_id",
"source": {
"secret": "application-admi... | AzureTRE/resource_processor/vmss_porter/aad_auth.json/0 | {
"file_path": "AzureTRE/resource_processor/vmss_porter/aad_auth.json",
"repo_id": "AzureTRE",
"token_count": 250
} | 114 |
locals {
core_vnet = "vnet-${var.tre_id}"
core_resource_group_name = "rg-${var.tre_id}"
keyvault_name = "kv-${var.tre_id}"
tre_shared_service_tags = {
tre_id = var.tre_id
tre_shared_service_id = var.tre_resource_id
}
}
| AzureTRE/templates/shared_services/admin-vm/terraform/locals.tf/0 | {
"file_path": "AzureTRE/templates/shared_services/admin-vm/terraform/locals.tf",
"repo_id": "AzureTRE",
"token_count": 150
} | 115 |
resource "azurerm_public_ip" "appgwpip" {
name = "pip-cert-${var.domain_prefix}-${var.tre_id}"
resource_group_name = data.azurerm_resource_group.rg.name
location = data.azurerm_resource_group.rg.location
allocation_method = "Static"
sku = "Standard"
domain_name_la... | AzureTRE/templates/shared_services/certs/terraform/appgateway.tf/0 | {
"file_path": "AzureTRE/templates/shared_services/certs/terraform/appgateway.tf",
"repo_id": "AzureTRE",
"token_count": 2504
} | 116 |
#!/bin/bash
set -e
export TF_LOG=""
terraform init -input=false -backend=true -reconfigure \
-backend-config="resource_group_name=${TF_VAR_mgmt_resource_group_name:?}" \
-backend-config="storage_account_name=${TF_VAR_mgmt_storage_account_name:?}" \
-backend-config="container_name=${TF_VAR_terraform_state_... | AzureTRE/templates/shared_services/cyclecloud/terraform/deploy.sh/0 | {
"file_path": "AzureTRE/templates/shared_services/cyclecloud/terraform/deploy.sh",
"repo_id": "AzureTRE",
"token_count": 175
} | 117 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.