text
stringlengths
5
22M
id
stringlengths
12
177
metadata
dict
__index_level_0__
int64
0
1.37k
# model settings input_size = 300 model = dict( type='SingleStageDetector', pretrained='open-mmlab://vgg16_caffe', backbone=dict( type='SSDVGG', input_size=input_size, depth=16, with_last_pool=False, ceil_mode=True, out_indices=(3, 4), out_feature_indi...
Cream/EfficientViT/downstream/configs/_base_/models/ssd300.py/0
{ "file_path": "Cream/EfficientViT/downstream/configs/_base_/models/ssd300.py", "repo_id": "Cream", "token_count": 866 }
294
import random import warnings import numpy as np import torch from mmcv.parallel import MMDataParallel, MMDistributedDataParallel from mmcv.runner import (HOOKS, DistSamplerSeedHook, EpochBasedRunner, Fp16OptimizerHook, OptimizerHook, build_optimizer, build_runner) fro...
Cream/EfficientViT/downstream/mmdet_custom/apis/train.py/0
{ "file_path": "Cream/EfficientViT/downstream/mmdet_custom/apis/train.py", "repo_id": "Cream", "token_count": 3309 }
295
# only for evaluation MODEL: TYPE: swin NAME: swin_large_patch4_window7_224 SWIN: EMBED_DIM: 192 DEPTHS: [ 2, 2, 18, 2 ] NUM_HEADS: [ 6, 12, 24, 48 ] WINDOW_SIZE: 7
Cream/MiniViT/Mini-Swin/configs/swin_large_patch4_window7_224.yaml/0
{ "file_path": "Cream/MiniViT/Mini-Swin/configs/swin_large_patch4_window7_224.yaml", "repo_id": "Cream", "token_count": 94 }
296
# TinyCLIP-ViT Inference ## Download checkpoints Download a checkpoint from [Model Zoo](../README.md#model-zoo). ## Zero-shot inference on ImageNet-1k Please change the paths to `imagenet-val` and `resume`. ### For manual weight inference checkpoint: <details> <summary>Evaluate TinyCLIP ViT-39M/16 + Text-19M (YFC...
Cream/TinyCLIP/docs/EVALUATION.md/0
{ "file_path": "Cream/TinyCLIP/docs/EVALUATION.md", "repo_id": "Cream", "token_count": 1806 }
297
from .constants import OPENAI_DATASET_MEAN, OPENAI_DATASET_STD from .factory import list_models, create_model, create_model_and_transforms, get_tokenizer, add_model_config, \ load_model, load_exp from .loss import ClipLoss from .model import CLIP, CLIPTextCfg, CLIPVisionCfg, convert_weights_to_fp16, trace_model fro...
Cream/TinyCLIP/src/open_clip/__init__.py/0
{ "file_path": "Cream/TinyCLIP/src/open_clip/__init__.py", "repo_id": "Cream", "token_count": 229 }
298
import torch import numpy as np def ampscaler_get_grad_norm(parameters, norm_type: float = 2.0) -> torch.Tensor: if isinstance(parameters, torch.Tensor): parameters = [parameters] parameters = [p for p in parameters if p.grad is not None] norm_type = float(norm_type) if len(parameters) == 0: ...
Cream/TinyCLIP/src/training/loss_scaler.py/0
{ "file_path": "Cream/TinyCLIP/src/training/loss_scaler.py", "repo_id": "Cream", "token_count": 846 }
299
# TinyViT: Fast Pretraining Distillation for Small Vision Transformers [![Tweet](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/intent/tweet?text=Tiny%20vision%20transformer%20models,%20SOTA%20performance!!&url=https://github.com/microsoft/Cream/tree/main/TinyViT&via=houwen_pe...
Cream/TinyViT/README.md/0
{ "file_path": "Cream/TinyViT/README.md", "repo_id": "Cream", "token_count": 3919 }
300
from .auto_augment import RandAugment, AutoAugment, rand_augment_ops, auto_augment_policy,\ rand_augment_transform, auto_augment_transform from .config import resolve_data_config from .constants import * from .dataset import ImageDataset, IterableImageDataset, AugMixDataset from .dataset_factory import create_datas...
Cream/TinyViT/data/augmentation/__init__.py/0
{ "file_path": "Cream/TinyViT/data/augmentation/__init__.py", "repo_id": "Cream", "token_count": 168 }
301
from abc import abstractmethod class Parser: def __init__(self): pass @abstractmethod def _filename(self, index, basename=False, absolute=False): pass def filename(self, index, basename=False, absolute=False): return self._filename(index, basename=basename, absolute=absolute)...
Cream/TinyViT/data/augmentation/parsers/parser.py/0
{ "file_path": "Cream/TinyViT/data/augmentation/parsers/parser.py", "repo_id": "Cream", "token_count": 172 }
302
# Preparation ### Install the requirements Run the following command to install the dependences: ```bash pip install -r requirements.txt ``` ### Data Preparation We need to prepare ImageNet-1k and ImageNet-22k datasets from [`http://www.image-net.org/`](http://www.image-net.org/). - ImageNet-1k ImageNet-1k conta...
Cream/TinyViT/docs/PREPARATION.md/0
{ "file_path": "Cream/TinyViT/docs/PREPARATION.md", "repo_id": "Cream", "token_count": 581 }
303
# -------------------------------------------------------- # TinyViT Save Teacher Logits # Copyright (c) 2022 Microsoft # Based on the code: Swin Transformer # (https://github.com/microsoft/swin-transformer) # Save teacher logits # -------------------------------------------------------- import os import time import...
Cream/TinyViT/save_logits.py/0
{ "file_path": "Cream/TinyViT/save_logits.py", "repo_id": "Cream", "token_count": 5300 }
304
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved """ Backbone modules. """ from collections import OrderedDict import torch import torch.nn.functional as F import torchvision from torch import nn from torchvision.models._utils import IntermediateLayerGetter from typing import Dict, List from uti...
Cream/iRPE/DETR-with-iRPE/models/backbone.py/0
{ "file_path": "Cream/iRPE/DETR-with-iRPE/models/backbone.py", "repo_id": "Cream", "token_count": 1904 }
305
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved """ A script to run multinode training with submitit. """ import argparse import os import uuid from pathlib import Path import main as detection import submitit def parse_args(): detection_parser = detection.get_args_parser() parser = ar...
Cream/iRPE/DETR-with-iRPE/run_with_submitit.py/0
{ "file_path": "Cream/iRPE/DETR-with-iRPE/run_with_submitit.py", "repo_id": "Cream", "token_count": 1391 }
306
"""The implementation of models with image RPE""" import torch from timm.models.registry import register_model from irpe import get_rpe_config from models import deit_tiny_patch16_224,\ deit_small_patch16_224,\ deit_base_patch16_224 _checkpoint_url_prefix = \ 'https://github.com/wkcn/iRPE-model-zoo/releas...
Cream/iRPE/DeiT-with-iRPE/rpe_models.py/0
{ "file_path": "Cream/iRPE/DeiT-with-iRPE/rpe_models.py", "repo_id": "Cream", "token_count": 3203 }
307
from .registry import model_entrypoints from .registry import is_model def build_model(config, **kwargs): model_name = config.MODEL.NAME if not is_model(model_name): raise ValueError(f'Unkown model: {model_name}') return model_entrypoints(model_name)(config, **kwargs)
CvT/lib/models/build.py/0
{ "file_path": "CvT/lib/models/build.py", "repo_id": "CvT", "token_count": 105 }
308
$schema: http://azureml/sdk-2-0/CommandComponent.json name: microsoft.com.office.spectral.residual.anomaly.detection version: 1.1.1 display_name: Spectral Residual Anomaly Detection is_deterministic: True type: CommandComponent description: This module implements the spectral residual anomaly detection algorithm for ti...
anomalydetector/aml_component/ad_component.yaml/0
{ "file_path": "anomalydetector/aml_component/ad_component.yaml", "repo_id": "anomalydetector", "token_count": 1075 }
309
""" Copyright (C) Microsoft Corporation. All rights reserved.​ ​ Microsoft Corporation (β€œMicrosoft”) grants you a nonexclusive, perpetual, royalty-free right to use, copy, and modify the software code provided by us ("Software Code"). You may not sublicense the Software Code or any use of it (except to your affiliates...
anomalydetector/msanomalydetector/util.py/0
{ "file_path": "anomalydetector/msanomalydetector/util.py", "repo_id": "anomalydetector", "token_count": 1431 }
310
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. import gc import math from collections import Counter from typing import List, Optional, Tuple import numpy as np import statopt import torch from torch import Tensor, nn from torch.nn.modules.loss import _Loss from torch.optim import SGD, Adam,...
archai/archai/common/ml_utils.py/0
{ "file_path": "archai/archai/common/ml_utils.py", "repo_id": "archai", "token_count": 4003 }
311
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. from typing import Callable, Optional from overrides import overrides from torch.utils.data import Dataset from torchvision.datasets import Cityscapes from torchvision.transforms import ToTensor from archai.api.dataset_provider import DatasetPr...
archai/archai/datasets/cv/cityscapes_dataset_provider.py/0
{ "file_path": "archai/archai/datasets/cv/cityscapes_dataset_provider.py", "repo_id": "archai", "token_count": 935 }
312
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. from archai.discrete_search.algos.bananas import MoBananasSearch from archai.discrete_search.algos.evolution_pareto import EvolutionParetoSearch from archai.discrete_search.algos.local_search import LocalSearch from archai.discrete_search.algos.r...
archai/archai/discrete_search/algos/__init__.py/0
{ "file_path": "archai/archai/discrete_search/algos/__init__.py", "repo_id": "archai", "token_count": 125 }
313
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. import copy import sys from random import Random from typing import Any, Dict, List, Optional, Tuple import numpy as np import tensorwatch as tw import torch from overrides.overrides import overrides from archai.common.ordered_dict_logger impor...
archai/archai/discrete_search/search_spaces/cv/segmentation_dag/search_space.py/0
{ "file_path": "archai/archai/discrete_search/search_spaces/cv/segmentation_dag/search_space.py", "repo_id": "archai", "token_count": 9784 }
314
# Downloaded from https://github.com/HazyResearch/state-spaces/blob/06dbbdfd0876501a7f12bf3262121badbc7658af/src/models/functional/krylov.py """ Compute a Krylov function efficiently. (S4 renames the Krylov function to a "state space kernel") A : (N, N) b : (N,) c : (N,) Return: [c^T A^i b for i in [L]] """ import tor...
archai/archai/discrete_search/search_spaces/nlp/tfpp/ops/ssm_utils/ssm_ops/krylov.py/0
{ "file_path": "archai/archai/discrete_search/search_spaces/nlp/tfpp/ops/ssm_utils/ssm_ops/krylov.py", "repo_id": "archai", "token_count": 2690 }
315
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. # # Copyright (c) 2018, NVIDIA CORPORATION. # Licensed under the Apache License, Version 2.0. from typing import Optional import torch import torch.nn as nn import torch.nn.functional as F from archai.discrete_search.search_spaces.nlp.transform...
archai/archai/discrete_search/search_spaces/nlp/transformer_flex/models/mem_transformer_utils/rel_partial_learnable_decoder.py/0
{ "file_path": "archai/archai/discrete_search/search_spaces/nlp/transformer_flex/models/mem_transformer_utils/rel_partial_learnable_decoder.py", "repo_id": "archai", "token_count": 4836 }
316
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. from typing import Optional from overrides import overrides from torch import Tensor from archai.common import ml_utils from archai.common.config import Config from archai.supergraph.algos.darts.bilevel_optimizer import BilevelOptimizer from ar...
archai/archai/supergraph/algos/darts/bilevel_arch_trainer.py/0
{ "file_path": "archai/archai/supergraph/algos/darts/bilevel_arch_trainer.py", "repo_id": "archai", "token_count": 1359 }
317
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. import math from typing import Iterator, List, Optional, Tuple import numpy as np import torch import torch.nn.functional as F from overrides import overrides from torch import nn from archai.common.common import get_conf from archai.common.uti...
archai/archai/supergraph/algos/divnas/divop.py/0
{ "file_path": "archai/archai/supergraph/algos/divnas/divop.py", "repo_id": "archai", "token_count": 2547 }
318
from __future__ import absolute_import, division, print_function import torch.nn as nn class ConvBnRelu(nn.Module): def __init__(self, in_channels, out_channels, kernel_size=1, stride=1, padding=0): super(ConvBnRelu, self).__init__() self.conv_bn_relu = nn.Sequential( nn.Conv2d(in_ch...
archai/archai/supergraph/algos/nasbench101/base_ops.py/0
{ "file_path": "archai/archai/supergraph/algos/nasbench101/base_ops.py", "repo_id": "archai", "token_count": 805 }
319
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. import heapq from copy import deepcopy from typing import Iterator, List, Optional, Tuple import torch from overrides import overrides from torch import Tensor, nn from archai.common.utils import zip_eq from archai.supergraph.nas.arch_params im...
archai/archai/supergraph/algos/petridish/petridish_op.py/0
{ "file_path": "archai/archai/supergraph/algos/petridish/petridish_op.py", "repo_id": "archai", "token_count": 3659 }
320
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. import math from typing import Iterable, Optional, Tuple import numpy as np import torch import torch.distributed as dist from sklearn.model_selection import StratifiedKFold, StratifiedShuffleSplit from torch.utils.data import Sampler from torch...
archai/archai/supergraph/datasets/distributed_stratified_sampler.py/0
{ "file_path": "archai/archai/supergraph/datasets/distributed_stratified_sampler.py", "repo_id": "archai", "token_count": 3200 }
321
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. import os import torchvision from overrides import overrides from torchvision.transforms import transforms from archai.common import utils from archai.common.config import Config from archai.supergraph.datasets.dataset_provider import ( Dat...
archai/archai/supergraph/datasets/providers/stanfordcars_provider.py/0
{ "file_path": "archai/archai/supergraph/datasets/providers/stanfordcars_provider.py", "repo_id": "archai", "token_count": 1134 }
322
# -*- coding: utf-8 -*- import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable class ShakeShake(torch.autograd.Function): @staticmethod def forward(ctx, x1, x2, training=True): if training: alpha = torch.cuda.FloatTensor(x1.size(0)).uniform...
archai/archai/supergraph/models/shakeshake/shakeshake.py/0
{ "file_path": "archai/archai/supergraph/models/shakeshake/shakeshake.py", "repo_id": "archai", "token_count": 700 }
323
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. import copy import math from abc import ABC from argparse import ArgumentError from typing import ( Callable, Dict, Iterable, Iterator, List, Mapping, Optional, Tuple, Union, ) import torch from overrides impo...
archai/archai/supergraph/nas/operations.py/0
{ "file_path": "archai/archai/supergraph/nas/operations.py", "repo_id": "archai", "token_count": 10862 }
324
__include__: "darts.yaml" # just use darts defaults nas: search: trainer: epochs: 200 alpha_optimizer: type: 'sgd' lr: 0.025 # init learning rate decay: 3.0e-4 momentum: 0.9 # pytorch default is 0 nesterov: False decay_bn: .NaN # if NaN then same as dec...
archai/confs/algos/didarts.yaml/0
{ "file_path": "archai/confs/algos/didarts.yaml", "repo_id": "archai", "token_count": 268 }
325
__include__: './dataroot.yaml' # default dataset settings are for cifar dataset: name: 'person_coco_cut_paste' n_classes: 2 channels: 3 # number of channels in image max_batches: -1 # if >= 0 then only these many batches are generated (useful for debugging) storage_name: 'train_cut_paste_256' # name of folde...
archai/confs/datasets/person_coco_cut_paste.yaml/0
{ "file_path": "archai/confs/datasets/person_coco_cut_paste.yaml", "repo_id": "archai", "token_count": 139 }
326
Azure ===== The notebooks in this section show how to use Azure to run some different neural architecture searches. The Quickstart runs a simple cpu only search in an Azure VM using .. toctree:: :maxdepth: 2 Quickstart <notebooks/quickstart/quickstart.ipynb> Text Generation <notebooks/text_generation/text_...
archai/docs/advanced_guide/cloud/azure/notebooks.rst/0
{ "file_path": "archai/docs/advanced_guide/cloud/azure/notebooks.rst", "repo_id": "archai", "token_count": 122 }
327
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. from torch import nn import torch import pytorch_lightning as pl from torchmetrics import Accuracy from archai.discrete_search.search_spaces.config import ArchConfig class MyModel(pl.LightningModule): """ This is a simple CNN model that can ...
archai/docs/advanced_guide/cloud/azure/notebooks/multi_node_search/scripts/model.py/0
{ "file_path": "archai/docs/advanced_guide/cloud/azure/notebooks/multi_node_search/scripts/model.py", "repo_id": "archai", "token_count": 1295 }
328
:root { --primary: #623eb2; --secondary: #8776ae; } li > a { color: #5a5a5a !important; } a, a.current, p.prev-next-title { color: var(--primary) !important; } a:hover { color: var(--secondary) !important; } a.nav-link.active { border-left: 2px solid var(--primary) !important; } a.navbar-bran...
archai/docs/assets/css/custom.css/0
{ "file_path": "archai/docs/assets/css/custom.css", "repo_id": "archai", "token_count": 287 }
329
API === .. toctree:: :maxdepth: 2 Dataset Provider <api/dataset_provider.ipynb> Trainer (Base) <api/trainer_base.ipynb>
archai/docs/getting_started/notebooks/api.rst/0
{ "file_path": "archai/docs/getting_started/notebooks/api.rst", "repo_id": "archai", "token_count": 59 }
330
API === The API reference for Archai provides detailed information about the software's application programming interface (API), including a complete list of available functions and methods, their arguments and return values, and examples of how to use them. This section of the documentation is intended for developer...
archai/docs/reference/api.rst/0
{ "file_path": "archai/docs/reference/api.rst", "repo_id": "archai", "token_count": 188 }
331
Benchmark ========= NATS-Bench ---------- .. automodule:: archai.discrete_search.search_spaces.benchmark.natsbench_tss :members: :undoc-members:
archai/docs/reference/api/archai.discrete_search.search_spaces.benchmark.rst/0
{ "file_path": "archai/docs/reference/api/archai.discrete_search.search_spaces.benchmark.rst", "repo_id": "archai", "token_count": 58 }
332
DivNAS ====== Activations Analyser -------------------- .. automodule:: archai.supergraph.algos.divnas.analyse_activations :members: :undoc-members: Cell ---- .. automodule:: archai.supergraph.algos.divnas.divnas_cell :members: :undoc-members: Experiment Runner ----------------- .. automodule:: archai...
archai/docs/reference/api/archai.supergraph.algos.divnas.rst/0
{ "file_path": "archai/docs/reference/api/archai.supergraph.algos.divnas.rst", "repo_id": "archai", "token_count": 423 }
333
Natural Language Processing =========================== DeepSpeed --------- Trainer ^^^^^^^ .. automodule:: archai.trainers.nlp.ds_trainer :members: :undoc-members: Training Arguments ^^^^^^^^^^^^^^^^^^ .. automodule:: archai.trainers.nlp.ds_training_args :members: :undoc-members: Hugging Face -------...
archai/docs/reference/api/archai.trainers.nlp.rst/0
{ "file_path": "archai/docs/reference/api/archai.trainers.nlp.rst", "repo_id": "archai", "token_count": 344 }
334
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. import os from typing import Any, Dict, List, Optional from datasets.arrow_dataset import Dataset from datasets.download import DownloadMode from evaluate import load from lm_eval.base import Task from lm_eval.metrics import mean from lm_eval_ha...
archai/research/lm_eval_harness/lm_eval_harness/tasks/human_eval.py/0
{ "file_path": "archai/research/lm_eval_harness/lm_eval_harness/tasks/human_eval.py", "repo_id": "archai", "token_count": 1346 }
335
# Policy found on CIFAR-10 and CIFAR-100 from __future__ import absolute_import, division, print_function from collections import defaultdict from archai.supergraph.datasets.augmentation import augment_list, get_augment def arsaug_policy(): exp0_0 = [ [("Solarize", 0.66, 0.34), ("Equalize", 0.56, 0.61)]...
archai/scripts/supergraph/archive.py/0
{ "file_path": "archai/scripts/supergraph/archive.py", "repo_id": "archai", "token_count": 105447 }
336
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. import torch from archai.common.common import common_init from archai.common.config import Config from archai.supergraph import models from archai.supergraph.datasets import data from archai.supergraph.utils.trainer import Trainer def train_te...
archai/scripts/supergraph/models/train_archai.py/0
{ "file_path": "archai/scripts/supergraph/models/train_archai.py", "repo_id": "archai", "token_count": 289 }
337
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. import torch from torch_testbed import cifar10_models from torch_testbed.timing import MeasureTime, print_all_timings from archai.common import utils utils.setup_cuda(42, local_rank=0) batch_size = 512 half = True model = cifar10_models.resnet1...
archai/scripts/supergraph/performance/model_test.py/0
{ "file_path": "archai/scripts/supergraph/performance/model_test.py", "repo_id": "archai", "token_count": 527 }
338
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. import argparse import os import sys from archai.common.store import ArchaiStore CONNECTION_NAME = 'MODEL_STORAGE_CONNECTION_STRING' def reset(con_str, experiment_name): parser = argparse.ArgumentParser( description='Reset the named...
archai/tasks/face_segmentation/aml/azure/reset.py/0
{ "file_path": "archai/tasks/face_segmentation/aml/azure/reset.py", "repo_id": "archai", "token_count": 586 }
339
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. import argparse import cv2 import numpy as np import glob import os import sys import tqdm from shutil import rmtree DEVICE_WORKING_DIR = "/data/local/tmp" TASK = os.path.basename(os.getcwd()) class DataGenerator(): def __init__(self, root...
archai/tasks/face_segmentation/aml/snpe/create_data.py/0
{ "file_path": "archai/tasks/face_segmentation/aml/snpe/create_data.py", "repo_id": "archai", "token_count": 1831 }
340
## Readme 1. **Visualize Mask R-CNN outputs** and verify if the model outputs are correct. Inside your experiment folder, run `collect_metrics.py --help` to see the command line args. The `--show` option visualizes the results, for example: ``` python collect_metrics.py --input d:\datasets\FaceSynthetics --out...
archai/tasks/face_segmentation/aml/vision/readme.md/0
{ "file_path": "archai/tasks/face_segmentation/aml/vision/readme.md", "repo_id": "archai", "token_count": 189 }
341
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. import argparse import cv2 # pip install opencv-contrib-python import numpy as np import os import glob import onnxruntime as rt class ImageStream: def __init__(self): self.new_frame = False self.frame = None def lo...
archai/tasks/face_segmentation/test.py/0
{ "file_path": "archai/tasks/face_segmentation/test.py", "repo_id": "archai", "token_count": 2528 }
342
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. import shutil from archai.datasets.nlp.hf_dataset_provider import ( HfDiskDatasetProvider, HfHubDatasetProvider, ) def test_hf_hub_dataset_provider(): dataset_provider = HfHubDatasetProvider("glue", dataset_config_name="sst2") ...
archai/tests/datasets/nlp/test_hf_dataset_provider.py/0
{ "file_path": "archai/tests/datasets/nlp/test_hf_dataset_provider.py", "repo_id": "archai", "token_count": 649 }
343
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. from unittest.mock import MagicMock import numpy as np from overrides import overrides from archai.discrete_search.api.predictor import MeanVar, Predictor class MyPredictor(Predictor): def __init__(self) -> None: super().__init__(...
archai/tests/discrete_search/api/test_predictor.py/0
{ "file_path": "archai/tests/discrete_search/api/test_predictor.py", "repo_id": "archai", "token_count": 358 }
344
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. import pytest import torch from archai.discrete_search.search_spaces.nlp.transformer_flex.models.configuration_mem_transformer import ( MemTransformerConfig, ) from archai.discrete_search.search_spaces.nlp.transformer_flex.models.mem_transfo...
archai/tests/discrete_search/search_spaces/nlp/transformer_flex/models/test_modeling_mem_transformer.py/0
{ "file_path": "archai/tests/discrete_search/search_spaces/nlp/transformer_flex/models/test_modeling_mem_transformer.py", "repo_id": "archai", "token_count": 507 }
345
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. import pytest import torch from archai.quantization.observers import OnnxDynamicObserver @pytest.fixture def onnx_dynamic_observer(): return OnnxDynamicObserver(dtype=torch.qint8) def test_onnx_dynamic_observer_init(onnx_dynamic_observer...
archai/tests/quantization/test_observers.py/0
{ "file_path": "archai/tests/quantization/test_observers.py", "repo_id": "archai", "token_count": 474 }
346
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. import os from archai.trainers.nlp.nvidia_training_args import NvidiaTrainingArguments def test_nvidia_training_arguments(): # Assert that the default values are correct args = NvidiaTrainingArguments("tmp", no_cuda=True) assert ar...
archai/tests/trainers/nlp/test_nvidia_training_args.py/0
{ "file_path": "archai/tests/trainers/nlp/test_nvidia_training_args.py", "repo_id": "archai", "token_count": 738 }
347
param ( [switch] $KeepPsReadLine = $false ) $tempFile = [IO.Path]::GetTempFileName() cmd.exe /C "$PSScriptRoot\init.cmd && set>$tempFile" $lines = [System.IO.File]::ReadAllLines("$tempFile") $curLoc = get-location $lines|ForEach-Object -Begin { set-location env: } -End { set-location $curLoc } -Process { $var ...
azure-devops-python-api/scripts/windows/init.ps1/0
{ "file_path": "azure-devops-python-api/scripts/windows/init.ps1", "repo_id": "azure-devops-python-api", "token_count": 478 }
348
# coding=utf-8 # pylint: disable=too-many-lines # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRe...
azure-quantum-python/azure-quantum/azure/quantum/_client/models/_models.py/0
{ "file_path": "azure-quantum-python/azure-quantum/azure/quantum/_client/models/_models.py", "repo_id": "azure-quantum-python", "token_count": 15839 }
349
## # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. ## import numpy as np from typing import TYPE_CHECKING, Any, Dict, Sequence from azure.quantum.cirq.targets.target import Target as CirqTarget from azure.quantum.cirq.job import Job as CirqJob from azure.quantum.target.quantinuum import Quant...
azure-quantum-python/azure-quantum/azure/quantum/cirq/targets/quantinuum.py/0
{ "file_path": "azure-quantum-python/azure-quantum/azure/quantum/cirq/targets/quantinuum.py", "repo_id": "azure-quantum-python", "token_count": 1942 }
350
## # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. ## from typing import Dict, List, Union from azure.quantum.qiskit.job import AzureQuantumJob from azure.quantum.version import __version__ import warnings from .backend import AzureBackend, AzureQirBackend from abc import abstractmethod from ...
azure-quantum-python/azure-quantum/azure/quantum/qiskit/backends/quantinuum.py/0
{ "file_path": "azure-quantum-python/azure-quantum/azure/quantum/qiskit/backends/quantinuum.py", "repo_id": "azure-quantum-python", "token_count": 6378 }
351
## # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. ## import re import warnings from dataclasses import dataclass, field from typing import Any, Dict, Optional, Type, Union, List from ...job import Job from ...job.base_job import ContentType from ...workspace import Worksp...
azure-quantum-python/azure-quantum/azure/quantum/target/microsoft/target.py/0
{ "file_path": "azure-quantum-python/azure-quantum/azure/quantum/target/microsoft/target.py", "repo_id": "azure-quantum-python", "token_count": 7448 }
352
name: azurequantum channels: - quantum-engineering - conda-forge dependencies: - python=3.9 - pip>=22.3.1 - pytest>=7.1.2 - pip: - -e .[all]
azure-quantum-python/azure-quantum/environment.yml/0
{ "file_path": "azure-quantum-python/azure-quantum/environment.yml", "repo_id": "azure-quantum-python", "token_count": 75 }
353
#!/bin/env python # -*- coding: utf-8 -*- ## # setup.py: Installs Python host functionality for azure-quantum. ## # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. ## # IMPORTS # import setuptools import os import glob import re # VERSION INFORMATION # # Our build process ...
azure-quantum-python/azure-quantum/setup.py/0
{ "file_path": "azure-quantum-python/azure-quantum/setup.py", "repo_id": "azure-quantum-python", "token_count": 1176 }
354
## # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. ## import unittest from azure.quantum.workspace import Workspace import pytest import numpy as np from cirq import ParamResolver from azure.quantum.job.job import Job from azure.quantum.cirq import AzureQuantumService fr...
azure-quantum-python/azure-quantum/tests/unit/test_cirq.py/0
{ "file_path": "azure-quantum-python/azure-quantum/tests/unit/test_cirq.py", "repo_id": "azure-quantum-python", "token_count": 5015 }
355
<jupyter_start><jupyter_text>πŸ‘‹πŸŒ Hello, world: Submit a Cirq job to IonQIn this notebook, we'll review the basics of Azure Quantum by submitting a simple *job*, or quantum program, to [IonQ](https://ionq.com/). We will use [Cirq](https://quantumai.google/cirq) to express the quantum job. Submit a simple job to IonQ u...
azure-quantum-python/samples/hello-world/HW-ionq-cirq.ipynb/0
{ "file_path": "azure-quantum-python/samples/hello-world/HW-ionq-cirq.ipynb", "repo_id": "azure-quantum-python", "token_count": 1528 }
356
<jupyter_start><jupyter_text>Getting Started with Azure Quantum Resource Estimation using QiskitπŸ‘‹ Welcome to the Azure Quantum Resource Estimator. In this notebook we willguide you how to estimate and analyze the physical resource estimates of aquantum program targeted for execution based on the architecture design of...
azure-quantum-python/samples/resource-estimator/estimation-qiskit.ipynb/0
{ "file_path": "azure-quantum-python/samples/resource-estimator/estimation-qiskit.ipynb", "repo_id": "azure-quantum-python", "token_count": 7242 }
357
{ "name": "quantum-visualization-js", "version": "1.0.0", "description": "", "license": "MIT", "author": "", "main": "dist/index.js", "module": "dist/index.js", "files": [ "dist" ], "scripts": { "build": "webpack --mode development", "build:prod": "webpack --mode production", "sortpa...
azure-quantum-python/visualization/js-lib/package.json/0
{ "file_path": "azure-quantum-python/visualization/js-lib/package.json", "repo_id": "azure-quantum-python", "token_count": 405 }
358
/*------------------------------------ Copyright (c) Microsoft Corporation. Licensed under the MIT License. All rights reserved. ------------------------------------ */ import React from "react"; import { IColumn, IGroup, ThemeProvider } from "@fluentui/react"; import { JobResults } from "../../models/JobResults...
azure-quantum-python/visualization/react-lib/src/components/resource-estimator/SpaceDiagram.tsx/0
{ "file_path": "azure-quantum-python/visualization/react-lib/src/components/resource-estimator/SpaceDiagram.tsx", "repo_id": "azure-quantum-python", "token_count": 2022 }
359
bistr ===== .. testsetup:: * from bistring import bistr, Alignment .. autoclass:: bistring.bistr
bistring/docs/Python/bistr.rst/0
{ "file_path": "bistring/docs/Python/bistr.rst", "repo_id": "bistring", "token_count": 43 }
360
/*! * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT license. */ import Alignment, { Bounds } from "./alignment"; import BiStringBuilder from "./builder"; import heuristicInfer from "./infer"; import { Replacer, normalizeReplacer, cloneRegExp } from "./regex"; import * as unicode...
bistring/js/src/bistring.ts/0
{ "file_path": "bistring/js/src/bistring.ts", "repo_id": "bistring", "token_count": 8427 }
361
bistring ======== |PyPI version| The bistring library provides non-destructive versions of common string processing operations like normalization, case folding, and find/replace. Each bistring remembers the original string, and how its substrings map to substrings of the modified version. For example: .. code-block...
bistring/python/README.rst/0
{ "file_path": "bistring/python/README.rst", "repo_id": "bistring", "token_count": 552 }
362
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT license. from bistring import Alignment import pytest def test_empty(): pytest.raises(ValueError, Alignment, []) alignment = Alignment.identity(0) assert list(alignment) == [(0, 0)] assert alignment.original_bounds...
bistring/python/tests/test_alignment.py/0
{ "file_path": "bistring/python/tests/test_alignment.py", "repo_id": "bistring", "token_count": 1938 }
363
{ "$schema": "http://adaptivecards.io/schemas/adaptive-card.json", "type": "AdaptiveCard", "version": "1.0", "body": [ { "type": "Image", "url": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQtB3AwMUeNoq4gUBGe6Ocj8kyh3bXa9ZbV7u1fVKQoyKFHdkqU", "size": "stretch" }, { ...
botbuilder-python/generators/app/templates/core/{{cookiecutter.bot_name}}/cards/welcomeCard.json/0
{ "file_path": "botbuilder-python/generators/app/templates/core/{{cookiecutter.bot_name}}/cards/welcomeCard.json", "repo_id": "botbuilder-python", "token_count": 618 }
364
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. from botbuilder.core import MessageFactory from botbuilder.dialogs import WaterfallDialog, DialogTurnResult, WaterfallStepContext from botbuilder.dialogs.prompts import ( DateTimePrompt, PromptValidatorContext, Pr...
botbuilder-python/generators/app/templates/core/{{cookiecutter.bot_name}}/dialogs/date_resolver_dialog.py/0
{ "file_path": "botbuilder-python/generators/app/templates/core/{{cookiecutter.bot_name}}/dialogs/date_resolver_dialog.py", "repo_id": "botbuilder-python", "token_count": 1212 }
365
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. class SlackAdapterOptions: """ Class for defining implementation of the SlackAdapter Options. """ def __init__(self): self.verify_incoming_requests = True
botbuilder-python/libraries/botbuilder-adapters-slack/botbuilder/adapters/slack/slack_adatper_options.py/0
{ "file_path": "botbuilder-python/libraries/botbuilder-adapters-slack/botbuilder/adapters/slack/slack_adatper_options.py", "repo_id": "botbuilder-python", "token_count": 83 }
366
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. from datetime import datetime from botbuilder.schema import ( Activity, ActivityTypes, ChannelAccount, ConversationAccount, ) class ActivityUtil: @staticmethod def create_trace( turn_activit...
botbuilder-python/libraries/botbuilder-ai/botbuilder/ai/luis/activity_util.py/0
{ "file_path": "botbuilder-python/libraries/botbuilder-ai/botbuilder/ai/luis/activity_util.py", "repo_id": "botbuilder-python", "token_count": 1071 }
367
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # ---------------------------------------------------------------------...
botbuilder-python/libraries/botbuilder-ai/botbuilder/ai/qna/models/__init__.py/0
{ "file_path": "botbuilder-python/libraries/botbuilder-ai/botbuilder/ai/qna/models/__init__.py", "repo_id": "botbuilder-python", "token_count": 320 }
368
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. class QnAMakerEndpoint: def __init__(self, knowledge_base_id: str, endpoint_key: str, host: str): if not knowledge_base_id: raise TypeError("QnAMakerEndpoint.knowledge_base_id cannot be empty.") ...
botbuilder-python/libraries/botbuilder-ai/botbuilder/ai/qna/qnamaker_endpoint.py/0
{ "file_path": "botbuilder-python/libraries/botbuilder-ai/botbuilder/ai/qna/qnamaker_endpoint.py", "repo_id": "botbuilder-python", "token_count": 245 }
369
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. # pylint: disable=no-value-for-parameter import json from os import path from typing import Dict, Tuple, Union import re from unittest import mock from unittest.mock import MagicMock from aioresponses import aioresponses fr...
botbuilder-python/libraries/botbuilder-ai/tests/luis/luis_recognizer_v3_test.py/0
{ "file_path": "botbuilder-python/libraries/botbuilder-ai/tests/luis/luis_recognizer_v3_test.py", "repo_id": "botbuilder-python", "token_count": 4065 }
370
{ "entities": { "$instance": { "child": [ { "endIndex": 99, "modelType": "Prebuilt Entity Extractor", "recognitionSources": [ "model" ], "startIndex": 87, "text": "lisa simpson", "type": "builti...
botbuilder-python/libraries/botbuilder-ai/tests/luis/test_data/GeoPeopleOrdinal_v3.json/0
{ "file_path": "botbuilder-python/libraries/botbuilder-ai/tests/luis/test_data/GeoPeopleOrdinal_v3.json", "repo_id": "botbuilder-python", "token_count": 5435 }
371
{ "answers": [ { "questions": [ "Where can you find Squirtle" ], "answer": "Did you not see him in the first three balls?", "score": 80.22, "id": 28, "source": "Editorial", "metadata": [ { ...
botbuilder-python/libraries/botbuilder-ai/tests/qna/test_data/RetrunsAnswer_WithStrictFilter_Or_Operator.json/0
{ "file_path": "botbuilder-python/libraries/botbuilder-ai/tests/qna/test_data/RetrunsAnswer_WithStrictFilter_Or_Operator.json", "repo_id": "botbuilder-python", "token_count": 1357 }
372
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. import datetime import inspect import sys import time import uuid from applicationinsights.channel import TelemetryContext, contracts from django.http import Http404 from . import common try: basestring # Python 2 exc...
botbuilder-python/libraries/botbuilder-applicationinsights/botbuilder/applicationinsights/django/middleware.py/0
{ "file_path": "botbuilder-python/libraries/botbuilder-applicationinsights/botbuilder/applicationinsights/django/middleware.py", "repo_id": "botbuilder-python", "token_count": 4479 }
373
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. import json from typing import Dict, List from jsonpickle import encode from jsonpickle.unpickler import Unpickler from azure.core import MatchConditions from azure.core.exceptions import ( HttpResponseError, Resourc...
botbuilder-python/libraries/botbuilder-azure/botbuilder/azure/blob_storage.py/0
{ "file_path": "botbuilder-python/libraries/botbuilder-azure/botbuilder/azure/blob_storage.py", "repo_id": "botbuilder-python", "token_count": 2804 }
374
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. # TODO: enable this in the future # With python 3.7 the line below will allow to do Postponed Evaluation of Annotations. See PEP 563 # from __future__ import annotations import asyncio import inspect import uuid from datetim...
botbuilder-python/libraries/botbuilder-core/botbuilder/core/adapters/test_adapter.py/0
{ "file_path": "botbuilder-python/libraries/botbuilder-core/botbuilder/core/adapters/test_adapter.py", "repo_id": "botbuilder-python", "token_count": 11031 }
375
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. from abc import ABC from botbuilder.schema import Activity from botbuilder.core import InvokeResponse class BotFrameworkClient(ABC): def post_activity( self, from_bot_id: str, to_bot_id: str, ...
botbuilder-python/libraries/botbuilder-core/botbuilder/core/skills/bot_framework_client.py/0
{ "file_path": "botbuilder-python/libraries/botbuilder-core/botbuilder/core/skills/bot_framework_client.py", "repo_id": "botbuilder-python", "token_count": 188 }
376
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. import json from botframework.streaming.payloads.models import Serializable class VersionInfo(Serializable): def __init__(self, *, user_agent: str = None): self.user_agent = user_agent def to_json(self) ->...
botbuilder-python/libraries/botbuilder-core/botbuilder/core/streaming/version_info.py/0
{ "file_path": "botbuilder-python/libraries/botbuilder-core/botbuilder/core/streaming/version_info.py", "repo_id": "botbuilder-python", "token_count": 210 }
377
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. from typing import Awaitable, Callable from botbuilder.core import Middleware, TurnContext class CallCountingMiddleware(Middleware): def __init__(self): self.counter = 0 def on_turn( # pylint: disable=unus...
botbuilder-python/libraries/botbuilder-core/tests/call_counting_middleware.py/0
{ "file_path": "botbuilder-python/libraries/botbuilder-core/tests/call_counting_middleware.py", "repo_id": "botbuilder-python", "token_count": 156 }
378
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. from unittest.mock import MagicMock import aiounittest from botbuilder.core import ( BotState, ConversationState, MemoryStorage, Storage, StoreItem, TurnContext, UserState, ) from botbuilder.core....
botbuilder-python/libraries/botbuilder-core/tests/test_bot_state.py/0
{ "file_path": "botbuilder-python/libraries/botbuilder-core/tests/test_bot_state.py", "repo_id": "botbuilder-python", "token_count": 7278 }
379
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. import aiounittest from botbuilder.core import TurnContext, MemoryStorage, UserState from botbuilder.core.adapters import TestAdapter from botbuilder.schema import Activity, ChannelAccount RECEIVED_MESSAGE = Activity( t...
botbuilder-python/libraries/botbuilder-core/tests/test_user_state.py/0
{ "file_path": "botbuilder-python/libraries/botbuilder-core/tests/test_user_state.py", "repo_id": "botbuilder-python", "token_count": 964 }
380
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. class FoundValue: """Represents a result from matching user input against a list of choices""" def __init__(self, value: str, index: int, score: float): """ Parameters: ---------- va...
botbuilder-python/libraries/botbuilder-dialogs/botbuilder/dialogs/choices/found_value.py/0
{ "file_path": "botbuilder-python/libraries/botbuilder-dialogs/botbuilder/dialogs/choices/found_value.py", "repo_id": "botbuilder-python", "token_count": 227 }
381
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. from enum import Enum class DialogReason(Enum): """ Indicates in which a dialog-related method is being called. :var BeginCalled: A dialog is being started through a call to :meth:`DialogContext.begin()`. :v...
botbuilder-python/libraries/botbuilder-dialogs/botbuilder/dialogs/dialog_reason.py/0
{ "file_path": "botbuilder-python/libraries/botbuilder-dialogs/botbuilder/dialogs/dialog_reason.py", "repo_id": "botbuilder-python", "token_count": 394 }
382
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. from .alias_path_resolver import AliasPathResolver class AtPathResolver(AliasPathResolver): _DELIMITERS = [".", "["] def __init__(self): super().__init__(alias="@", prefix="") self._PREFIX = "turn....
botbuilder-python/libraries/botbuilder-dialogs/botbuilder/dialogs/memory/path_resolvers/at_path_resolver.py/0
{ "file_path": "botbuilder-python/libraries/botbuilder-dialogs/botbuilder/dialogs/memory/path_resolvers/at_path_resolver.py", "repo_id": "botbuilder-python", "token_count": 560 }
383
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. from botbuilder.core import UserState from botbuilder.dialogs.memory import scope_path from .bot_state_memory_scope import BotStateMemoryScope class UserMemoryScope(BotStateMemoryScope): def __init__(self): sup...
botbuilder-python/libraries/botbuilder-dialogs/botbuilder/dialogs/memory/scopes/user_memory_scope.py/0
{ "file_path": "botbuilder-python/libraries/botbuilder-dialogs/botbuilder/dialogs/memory/scopes/user_memory_scope.py", "repo_id": "botbuilder-python", "token_count": 106 }
384
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. from typing import List from botbuilder.schema import Activity from botbuilder.dialogs.choices import Choice, ListStyle class PromptOptions: """ Contains settings to pass to a :class:`Prompt` object when the prompt...
botbuilder-python/libraries/botbuilder-dialogs/botbuilder/dialogs/prompts/prompt_options.py/0
{ "file_path": "botbuilder-python/libraries/botbuilder-dialogs/botbuilder/dialogs/prompts/prompt_options.py", "repo_id": "botbuilder-python", "token_count": 626 }
385
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. import unittest from typing import List from botbuilder.dialogs.choices import Choice from botbuilder.schema import CardAction class ChoiceTest(unittest.TestCase): def test_value_round_trips(self) -> None: choi...
botbuilder-python/libraries/botbuilder-dialogs/tests/choices/test_choice.py/0
{ "file_path": "botbuilder-python/libraries/botbuilder-dialogs/tests/choices/test_choice.py", "repo_id": "botbuilder-python", "token_count": 302 }
386
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. import aiounittest from botbuilder.dialogs.prompts import OAuthPromptSettings from botbuilder.schema import ( Activity, ActivityTypes, ChannelAccount, ConversationAccount, InputHints, SignInConstants, ...
botbuilder-python/libraries/botbuilder-dialogs/tests/test_oauth_prompt.py/0
{ "file_path": "botbuilder-python/libraries/botbuilder-dialogs/tests/test_oauth_prompt.py", "repo_id": "botbuilder-python", "token_count": 6864 }
387
from .aio_http_client_factory import AioHttpClientFactory from .skill_http_client import SkillHttpClient __all__ = ["AioHttpClientFactory", "SkillHttpClient"]
botbuilder-python/libraries/botbuilder-integration-aiohttp/botbuilder/integration/aiohttp/skills/__init__.py/0
{ "file_path": "botbuilder-python/libraries/botbuilder-integration-aiohttp/botbuilder/integration/aiohttp/skills/__init__.py", "repo_id": "botbuilder-python", "token_count": 48 }
388
from unittest.mock import Mock from aiounittest import AsyncTestCase import aiohttp # pylint: disable=unused-import from botbuilder.integration.applicationinsights.aiohttp import ( aiohttp_telemetry_middleware, AiohttpTelemetryProcessor, ) class TestAiohttpTelemetryProcessor(AsyncTestCase): # pylint: d...
botbuilder-python/libraries/botbuilder-integration-applicationinsights-aiohttp/tests/test_aiohttp_processor.py/0
{ "file_path": "botbuilder-python/libraries/botbuilder-integration-applicationinsights-aiohttp/tests/test_aiohttp_processor.py", "repo_id": "botbuilder-python", "token_count": 363 }
389
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. import aiounittest from botframework.connector.models import ( MessageActionsPayloadFrom, MessageActionsPayloadBody, MessageActionsPayloadAttachment, MessageActionsPayloadMention, MessageActionsPayloadReac...
botbuilder-python/libraries/botbuilder-schema/tests/teams/test_message_actions_payload.py/0
{ "file_path": "botbuilder-python/libraries/botbuilder-schema/tests/teams/test_message_actions_payload.py", "repo_id": "botbuilder-python", "token_count": 2051 }
390
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. from .http_client_base import HttpClientBase from .http_request import HttpRequest from .http_response_base import HttpResponseBase class _NotImplementedHttpClient(HttpClientBase): async def post( self, *, reque...
botbuilder-python/libraries/botframework-connector/botframework/connector/_not_implemented_http_client.py/0
{ "file_path": "botbuilder-python/libraries/botframework-connector/botframework/connector/_not_implemented_http_client.py", "repo_id": "botbuilder-python", "token_count": 168 }
391
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. from logging import Logger from botbuilder.schema import CallerIdConstants from ..bot_framework_sdk_client_async import BotFrameworkConnectorConfiguration from ..http_client_factory import HttpClientFactory from .service_c...
botbuilder-python/libraries/botframework-connector/botframework/connector/auth/_public_cloud_bot_framework_authentication.py/0
{ "file_path": "botbuilder-python/libraries/botframework-connector/botframework/connector/auth/_public_cloud_bot_framework_authentication.py", "repo_id": "botbuilder-python", "token_count": 534 }
392
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. from abc import ABC from typing import Union from .authentication_configuration import AuthenticationConfiguration from .authentication_constants import AuthenticationConstants from .channel_validation import ChannelValidati...
botbuilder-python/libraries/botframework-connector/botframework/connector/auth/enterprise_channel_validation.py/0
{ "file_path": "botbuilder-python/libraries/botframework-connector/botframework/connector/auth/enterprise_channel_validation.py", "repo_id": "botbuilder-python", "token_count": 1919 }
393