text
stringlengths
5
22M
id
stringlengths
12
177
metadata
dict
__index_level_0__
int64
0
1.37k
from typing import Optional import torch from torch import nn from transformers.pytorch_utils import Conv1D from transformers import PretrainedConfig from archai.discrete_search.search_spaces.config import ArchConfig from archai.discrete_search.search_spaces.nlp.tfpp.ops import OPS class MixedAttentionBlock(nn.Modu...
archai/archai/discrete_search/search_spaces/nlp/tfpp/mixed_attention.py/0
{ "file_path": "archai/archai/discrete_search/search_spaces/nlp/tfpp/mixed_attention.py", "repo_id": "archai", "token_count": 968 }
328
# Copied from https://github.com/HazyResearch/state-spaces/blob/06dbbdfd0876501a7f12bf3262121badbc7658af/src/models/sequence/ss/dplr.py """Initializations of structured state space models""" import math import torch import torch.nn as nn import torch.nn.functional as F from einops import rearrange, repeat from . impo...
archai/archai/discrete_search/search_spaces/nlp/tfpp/ops/ssm_utils/dplr.py/0
{ "file_path": "archai/archai/discrete_search/search_spaces/nlp/tfpp/ops/ssm_utils/dplr.py", "repo_id": "archai", "token_count": 1776 }
329
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. import copy from collections import OrderedDict from typing import Any, Mapping, Optional, Tuple import torch from overrides import overrides from overrides.enforce import EnforceOverrides from transformers.configuration_utils import PretrainedC...
archai/archai/onnx/config_utils/onnx_config_base.py/0
{ "file_path": "archai/archai/onnx/config_utils/onnx_config_base.py", "repo_id": "archai", "token_count": 3036 }
330
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. import copy from typing import Any, Dict, Optional import torch from archai.quantization.modules import ( FakeDynamicQuantConv1d, FakeDynamicQuantConv1dForOnnx, FakeDynamicQuantLinear, FakeDynamicQuantLinearForOnnx, FakeQuan...
archai/archai/quantization/qat.py/0
{ "file_path": "archai/archai/quantization/qat.py", "repo_id": "archai", "token_count": 1654 }
331
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. import math as ma import os from collections import defaultdict from copy import deepcopy from itertools import combinations from typing import Any, Callable, Dict, List, Set, Tuple import h5py import matplotlib.pyplot as plt import numpy as np ...
archai/archai/supergraph/algos/divnas/analyse_activations.py/0
{ "file_path": "archai/archai/supergraph/algos/divnas/analyse_activations.py", "repo_id": "archai", "token_count": 6820 }
332
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. import importlib import sys from overrides import overrides from torch import nn from archai.common import ml_utils from archai.common.config import Config from archai.common.ordered_dict_logger import get_global_logger from archai.supergraph.n...
archai/archai/supergraph/algos/manual/manual_evaluater.py/0
{ "file_path": "archai/archai/supergraph/algos/manual/manual_evaluater.py", "repo_id": "archai", "token_count": 764 }
333
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. import copy from typing import List, Tuple from overrides import overrides from archai.common.config import Config from archai.supergraph.algos.nasbench101 import model_matrix from archai.supergraph.algos.nasbench101.nasbench101_op import NasBe...
archai/archai/supergraph/algos/nasbench101/nasbench101_model_desc_builder.py/0
{ "file_path": "archai/archai/supergraph/algos/nasbench101/nasbench101_model_desc_builder.py", "repo_id": "archai", "token_count": 2124 }
334
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. import copy import math as ma import os from typing import Optional, Tuple import torch from overrides import overrides from torch import nn from archai.common.common import get_conf, get_expdir from archai.common.utils import zip_eq from archa...
archai/archai/supergraph/algos/xnas/xnas_op.py/0
{ "file_path": "archai/archai/supergraph/algos/xnas/xnas_op.py", "repo_id": "archai", "token_count": 2153 }
335
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. import os import shutil import torch import torchvision from torchvision.datasets.utils import check_integrity from archai.common.ordered_dict_logger import get_global_logger from archai.common.utils import download_and_extract_tar, extract_tar...
archai/archai/supergraph/datasets/providers/imagenet_folder.py/0
{ "file_path": "archai/archai/supergraph/datasets/providers/imagenet_folder.py", "repo_id": "archai", "token_count": 3929 }
336
import os import torch import torch.nn as nn import torch.nn.functional as F #Credit to https://github.com/akamaster/pytorch_resnet_cifar10 __all__ = ['resnet_orig'] class LambdaLayer(nn.Module): def __init__(self, lambd): super(LambdaLayer, self).__init__() self.lambd = lambd def forward(s...
archai/archai/supergraph/models/resnet_orig.py/0
{ "file_path": "archai/archai/supergraph/models/resnet_orig.py", "repo_id": "archai", "token_count": 1533 }
337
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. import os from abc import ABC, abstractmethod from typing import Optional, Tuple from overrides import EnforceOverrides from archai.common import common, utils from archai.common.config import Config from archai.supergraph.nas.arch_trainer impo...
archai/archai/supergraph/nas/exp_runner.py/0
{ "file_path": "archai/archai/supergraph/nas/exp_runner.py", "repo_id": "archai", "token_count": 1824 }
338
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. import copy import math import pathlib import statistics import time from collections import defaultdict from typing import List, Mapping, Optional, Tuple import yaml from torch import Tensor from archai.common import ml_utils, utils from archa...
archai/archai/supergraph/utils/metrics.py/0
{ "file_path": "archai/archai/supergraph/utils/metrics.py", "repo_id": "archai", "token_count": 7791 }
339
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. import shutil from typing import Dict, Optional, Tuple import torch import torch.nn as nn import torch.nn.functional as F from overrides import overrides from transformers.trainer import Trainer from archai.api.trainer_base import TrainerBase f...
archai/archai/trainers/nlp/hf_trainer.py/0
{ "file_path": "archai/archai/trainers/nlp/hf_trainer.py", "repo_id": "archai", "token_count": 1861 }
340
# in toy mode, load the config for algo and then override with common settings for toy mode # any additional algo specific toy mode settings will go in this file __include__: ['petridish.yaml', 'toy_common.yaml'] nas: search: petridish: sampling_max_try: 1 max_hull_points: 2
archai/confs/algos/petridish_toy.yaml/0
{ "file_path": "archai/confs/algos/petridish_toy.yaml", "repo_id": "archai", "token_count": 100 }
341
#!/bin/bash # Copyright (c) Microsoft Corporation. # Licensed under the MIT license. docker build . --file Dockerfile --tag nvidia22.10-archai:latest
archai/docker/build_image.sh/0
{ "file_path": "archai/docker/build_image.sh", "repo_id": "archai", "token_count": 44 }
342
display_name: Generates new tokens with a pre-trained model type: command compute: nas-gpu-cluster-NC6 inputs: pre_trained_model_path: type: uri_folder path: azureml://full/path/to/pretrained/model hub_tokenizer_path: gpt2 prompt: Machine Learning outputs: output_path: type: uri_file code: . environ...
archai/docs/advanced_guide/cloud/azure/notebooks/text_generation/src/generate_text.yaml/0
{ "file_path": "archai/docs/advanced_guide/cloud/azure/notebooks/text_generation/src/generate_text.yaml", "repo_id": "archai", "token_count": 204 }
343
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. import os import sys from datetime import date # Adds path to local extension sys.path.insert(0, os.path.abspath("..")) # Project information project = "Archai" author = "Microsoft" copyright = f"{date.today().year}" # General configuration ex...
archai/docs/conf.py/0
{ "file_path": "archai/docs/conf.py", "repo_id": "archai", "token_count": 757 }
344
<jupyter_start><jupyter_text>Search Algorithms<jupyter_code>import os from overrides import overrides from typing import List import torch from torch import nn import numpy as np import json from random import Random from archai.discrete_search.api import ArchaiModel, EvolutionarySearchSpace, BayesOptSearchSpace<jupyt...
archai/docs/getting_started/notebooks/discrete_search/algos.ipynb/0
{ "file_path": "archai/docs/getting_started/notebooks/discrete_search/algos.ipynb", "repo_id": "archai", "token_count": 5625 }
345
Benchmark ========= NATS-Bench ---------- .. automodule:: archai.discrete_search.evaluators.benchmark.natsbench_tss :members: :undoc-members:
archai/docs/reference/api/archai.discrete_search.evaluators.benchmark.rst/0
{ "file_path": "archai/docs/reference/api/archai.discrete_search.evaluators.benchmark.rst", "repo_id": "archai", "token_count": 57 }
346
Optimization Utilities ====================== Fusion Options -------------- .. automodule:: archai.onnx.optimization_utils.fusion_options :members: :undoc-members: Transfomer-XL ONNX Model ------------------------ .. automodule:: archai.onnx.optimization_utils.transfo_xl_onnx_model :members: :undoc-memb...
archai/docs/reference/api/archai.onnx.optimization_utils.rst/0
{ "file_path": "archai/docs/reference/api/archai.onnx.optimization_utils.rst", "repo_id": "archai", "token_count": 111 }
347
Models ====== .. toctree:: :maxdepth: 2 archai.supergraph.models.shakeshake AlexNet ------- .. automodule:: archai.supergraph.models.alexnet :members: :undoc-members: DenseNet -------- .. automodule:: archai.supergraph.models.densenet :members: :undoc-members: GoogleNet --------- .. automodule...
archai/docs/reference/api/archai.supergraph.models.rst/0
{ "file_path": "archai/docs/reference/api/archai.supergraph.models.rst", "repo_id": "archai", "token_count": 518 }
348
# LM-Eval-Harness ## Installation To install `lm_eval_harness`, run the following commands in your command line: ```shell conda create -n lm_eval_harness python=3.8 conda activate lm_eval_harness pip install -e . ``` ## Evaluating with `lm_eval_harness` To evaluate your model with `lm_eval_harness`, run the follo...
archai/research/lm_eval_harness/README.md/0
{ "file_path": "archai/research/lm_eval_harness/README.md", "repo_id": "archai", "token_count": 249 }
349
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. import argparse import json import os import re import natsort import torch from lm_eval.evaluator import evaluate from lm_eval_harness.lm_eval_hf_model import HFEvalModel from lm_eval_harness.tasks.human_eval import HumanEval from transformers ...
archai/scripts/eval/deepspeed/evaluate_human_eval.py/0
{ "file_path": "archai/scripts/eval/deepspeed/evaluate_human_eval.py", "repo_id": "archai", "token_count": 1751 }
350
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. """ Script to prepare mit67 dataset for pytorch dataloader. """ import argparse import os import tempfile from collections import defaultdict from typing import Dict, List from torchvision.datasets.utils import download_and_extract_archive, dow...
archai/scripts/supergraph/download_datasets/mit67_install.py/0
{ "file_path": "archai/scripts/supergraph/download_datasets/mit67_install.py", "repo_id": "archai", "token_count": 2513 }
351
import pickle from archai.common import utils def main(): in_dataset_file = utils.full_path("~/dataroot/nasbench_ds/nasbench_full.tfrecord.pkl") out_dataset_file = utils.full_path("~/dataroot/nasbench_ds/nasbench101_sample.tfrecord.pkl") with open(in_dataset_file, "rb") as f: records = pickle.lo...
archai/scripts/supergraph/nasbench101/sample_pkl.py/0
{ "file_path": "archai/scripts/supergraph/nasbench101/sample_pkl.py", "repo_id": "archai", "token_count": 336 }
352
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. import argparse import os import torch from transformers import AutoTokenizer from archai.datasets.nlp.fast_hf_dataset_provider import ( FastDataCollatorForLanguageModeling, FastHfDatasetProvider, ) from archai.discrete_search.search_sp...
archai/scripts/trainers/deepspeed/train_codegen.py/0
{ "file_path": "archai/scripts/trainers/deepspeed/train_codegen.py", "repo_id": "archai", "token_count": 1800 }
353
# 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 download(con_str, experiment_name): parser = argparse.ArgumentParser( description="Download ass...
archai/tasks/face_segmentation/aml/azure/download.py/0
{ "file_path": "archai/tasks/face_segmentation/aml/azure/download.py", "repo_id": "archai", "token_count": 534 }
354
# Readme See Demo Video: [![Demo Video](images/video.png)](https://youtu.be/a8MfuyYpRQA) This folder contains code that automates the search, partial training and inference latency testing in [Azure ML](https://azure.microsoft.com/en-us/products/machine-learning/). The inference testing of ONNX models can be perfor...
archai/tasks/face_segmentation/aml/readme.md/0
{ "file_path": "archai/tasks/face_segmentation/aml/readme.md", "repo_id": "archai", "token_count": 1973 }
355
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. import json import os from pathlib import Path from typing import List from archai.common.store import ArchaiStore from azure.ai.ml import MLClient from archai.discrete_search.api import ArchaiModel from archai.discrete_search.search_spaces.config...
archai/tasks/face_segmentation/aml/training/training_pipeline.py/0
{ "file_path": "archai/tasks/face_segmentation/aml/training/training_pipeline.py", "repo_id": "archai", "token_count": 2578 }
356
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. from pathlib import Path import torch import os from argparse import ArgumentParser from archai.discrete_search.search_spaces.config import ArchConfig from search_space.hgnet import StackedHourglass def export(checkpoint, model, onnx_file): ...
archai/tasks/face_segmentation/export.py/0
{ "file_path": "archai/tasks/face_segmentation/export.py", "repo_id": "archai", "token_count": 756 }
357
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. import glob import os import numpy as np import torch from PIL import Image from torch.utils.data import Dataset from archai.common.utils import download_and_extract_zip import transforms class FaceLandmarkDataset(Dataset): """Dataset cl...
archai/tasks/facial_landmark_detection/dataset.py/0
{ "file_path": "archai/tasks/facial_landmark_detection/dataset.py", "repo_id": "archai", "token_count": 1232 }
358
pytest_plugins = [ "discrete_search.algos.fixtures.objectives", "discrete_search.algos.fixtures.search_space", "discrete_search.algos.fixtures.surrogate_model", ]
archai/tests/conftest.py/0
{ "file_path": "archai/tests/conftest.py", "repo_id": "archai", "token_count": 70 }
359
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. import os import pytest from archai.discrete_search.algos.local_search import LocalSearch @pytest.fixture(scope="session") def output_dir(tmp_path_factory): return tmp_path_factory.mktemp("out") def test_local_search(output_dir, search_...
archai/tests/discrete_search/algos/test_local_search.py/0
{ "file_path": "archai/tests/discrete_search/algos/test_local_search.py", "repo_id": "archai", "token_count": 384 }
360
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. import numpy as np from archai.discrete_search.predictors.dnn_ensemble import PredictiveDNNEnsemble def test_dnn_ensemble(): X_train = np.random.rand(100, 5) y_train = np.random.rand(100, 2) X_test = np.random.rand(50, 5) pred...
archai/tests/discrete_search/predictors/test_dnn_ensemble.py/0
{ "file_path": "archai/tests/discrete_search/predictors/test_dnn_ensemble.py", "repo_id": "archai", "token_count": 202 }
361
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. import torch from transformers import GPT2Config, GPT2LMHeadModel from archai.onnx.onnx_forward import gpt2_onnx_forward def test_gpt2_onnx_forward(): # Assert that the forward method returns the expected keys model = GPT2LMHeadModel(c...
archai/tests/onnx/test_onnx_forward.py/0
{ "file_path": "archai/tests/onnx/test_onnx_forward.py", "repo_id": "archai", "token_count": 348 }
362
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. import os import pytest if os.name == "nt": pytest.skip(allow_module_level=True) from torch.utils.data import Dataset from archai.trainers.nlp.ds_trainer import StatefulDistributedSampler class DummyDataset(Dataset): def __init__(self,...
archai/tests/trainers/nlp/test_ds_trainer.py/0
{ "file_path": "archai/tests/trainers/nlp/test_ds_trainer.py", "repo_id": "archai", "token_count": 398 }
363
# coding=utf-8 # -------------------------------------------------------------------------- # Generated file, DO NOT EDIT # Changes may cause incorrect behavior and will be lost if the code is # regenerated. # -------------------------------------------------------------------------- from msrest.serialization import M...
azure-devops-python-api/azure-devops/azure/devops/_models.py/0
{ "file_path": "azure-devops-python-api/azure-devops/azure/devops/_models.py", "repo_id": "azure-devops-python-api", "token_count": 2588 }
364
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------...
azure-devops-python-api/azure-devops/azure/devops/released/core/__init__.py/0
{ "file_path": "azure-devops-python-api/azure-devops/azure/devops/released/core/__init__.py", "repo_id": "azure-devops-python-api", "token_count": 364 }
365
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------...
azure-devops-python-api/azure-devops/azure/devops/released/release/release_client.py/0
{ "file_path": "azure-devops-python-api/azure-devops/azure/devops/released/release/release_client.py", "repo_id": "azure-devops-python-api", "token_count": 22588 }
366
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------...
azure-devops-python-api/azure-devops/azure/devops/v7_0/service_hooks/service_hooks_client.py/0
{ "file_path": "azure-devops-python-api/azure-devops/azure/devops/v7_0/service_hooks/service_hooks_client.py", "repo_id": "azure-devops-python-api", "token_count": 9540 }
367
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------...
azure-devops-python-api/azure-devops/azure/devops/v7_1/client_trace/models.py/0
{ "file_path": "azure-devops-python-api/azure-devops/azure/devops/v7_1/client_trace/models.py", "repo_id": "azure-devops-python-api", "token_count": 664 }
368
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------...
azure-devops-python-api/azure-devops/azure/devops/v7_1/extension_management/__init__.py/0
{ "file_path": "azure-devops-python-api/azure-devops/azure/devops/v7_1/extension_management/__init__.py", "repo_id": "azure-devops-python-api", "token_count": 513 }
369
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------...
azure-devops-python-api/azure-devops/azure/devops/v7_1/gallery/gallery_client.py/0
{ "file_path": "azure-devops-python-api/azure-devops/azure/devops/v7_1/gallery/gallery_client.py", "repo_id": "azure-devops-python-api", "token_count": 47506 }
370
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------...
azure-devops-python-api/azure-devops/azure/devops/v7_1/maven/maven_client.py/0
{ "file_path": "azure-devops-python-api/azure-devops/azure/devops/v7_1/maven/maven_client.py", "repo_id": "azure-devops-python-api", "token_count": 7320 }
371
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------...
azure-devops-python-api/azure-devops/azure/devops/v7_1/operations/operations_client.py/0
{ "file_path": "azure-devops-python-api/azure-devops/azure/devops/v7_1/operations/operations_client.py", "repo_id": "azure-devops-python-api", "token_count": 794 }
372
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------...
azure-devops-python-api/azure-devops/azure/devops/v7_1/sbom/models.py/0
{ "file_path": "azure-devops-python-api/azure-devops/azure/devops/v7_1/sbom/models.py", "repo_id": "azure-devops-python-api", "token_count": 5801 }
373
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------...
azure-devops-python-api/azure-devops/azure/devops/v7_1/test_results/models.py/0
{ "file_path": "azure-devops-python-api/azure-devops/azure/devops/v7_1/test_results/models.py", "repo_id": "azure-devops-python-api", "token_count": 62253 }
374
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
azure-devops-python-api/scripts/create_wheels.py/0
{ "file_path": "azure-devops-python-api/scripts/create_wheels.py", "repo_id": "azure-devops-python-api", "token_count": 362 }
375
# 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. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
azure-quantum-python/azure-quantum/azure/quantum/_client/_configuration.py/0
{ "file_path": "azure-quantum-python/azure-quantum/azure/quantum/_client/_configuration.py", "repo_id": "azure-quantum-python", "token_count": 1534 }
376
## # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. ## from urllib.request import urlopen def df_chemistry() -> bytes: """ Returns bitcode of a QIR program for the double-factorized chemistry quantum algorithm. """ return urlopen("https://aka.ms/RE/df_c...
azure-quantum-python/azure-quantum/azure/quantum/chemistry/__init__.py/0
{ "file_path": "azure-quantum-python/azure-quantum/azure/quantum/chemistry/__init__.py", "repo_id": "azure-quantum-python", "token_count": 106 }
377
## # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. ## """Azure Quantum Qiskit Provider""" from .provider import AzureQuantumProvider, AzureQuantumJob from azure.quantum import __version__ __all__ = [ "AzureQuantumProvider", "AzureQuantumJob", "__version__" ]
azure-quantum-python/azure-quantum/azure/quantum/qiskit/__init__.py/0
{ "file_path": "azure-quantum-python/azure-quantum/azure/quantum/qiskit/__init__.py", "repo_id": "azure-quantum-python", "token_count": 99 }
378
"""Defines classes for interacting with Microsoft Elements services"""
azure-quantum-python/azure-quantum/azure/quantum/target/microsoft/elements/__init__.py/0
{ "file_path": "azure-quantum-python/azure-quantum/azure/quantum/target/microsoft/elements/__init__.py", "repo_id": "azure-quantum-python", "token_count": 11 }
379
## # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. ## import warnings from typing import Any, Dict, List, TYPE_CHECKING, Union, Type from azure.quantum.target import * if TYPE_CHECKING: from azure.quantum import Workspace from azure.quantum._client.models import Ta...
azure-quantum-python/azure-quantum/azure/quantum/target/target_factory.py/0
{ "file_path": "azure-quantum-python/azure-quantum/azure/quantum/target/target_factory.py", "repo_id": "azure-quantum-python", "token_count": 2276 }
380
interactions: - request: body: client_id=PLACEHOLDER&grant_type=client_credentials&client_info=1&client_secret=PLACEHOLDER&scope=https%3A%2F%2Fquantum.microsoft.com%2F.default headers: Accept: - application/json Accept-Encoding: - gzip, deflate Connection: - keep-alive ...
azure-quantum-python/azure-quantum/tests/unit/recordings/test_session_job_qiskit_circuit_echo_quantinuum.yaml/0
{ "file_path": "azure-quantum-python/azure-quantum/tests/unit/recordings/test_session_job_qiskit_circuit_echo_quantinuum.yaml", "repo_id": "azure-quantum-python", "token_count": 37456 }
381
## # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. ## import pytest from azure.quantum import JobStatus from azure.quantum.target import Quantinuum from common import QuantumTestBase, DEFAULT_TIMEOUT_SECS class TestQuantinuum(QuantumTestBase): def _teleport(self): return """OPE...
azure-quantum-python/azure-quantum/tests/unit/test_quantinuum.py/0
{ "file_path": "azure-quantum-python/azure-quantum/tests/unit/test_quantinuum.py", "repo_id": "azure-quantum-python", "token_count": 3183 }
382
<jupyter_start><jupyter_text>Quantum algorithms for fast convolutions and hidden shiftsWelcome, this notebook explores the execution of _hidden shift problems_ on a quantum computer.This notebook does assume some quantum knowledge. We invite you to have a look into our 👋🌎 _Hello world_ samples in the notebook galler...
azure-quantum-python/samples/hidden-shift/hidden-shift.ipynb/0
{ "file_path": "azure-quantum-python/samples/hidden-shift/hidden-shift.ipynb", "repo_id": "azure-quantum-python", "token_count": 7056 }
383
#!/bin/bash # Use flag buildJsLibOnly to only build js-lib if [ "$1" == "buildJsLibOnly" ]; then cd ../js-lib npm link react quantum-visualization if [ $? -eq 0 ]; then echo 'Successfully linked react and quantum-visualization' fi npm run lint npm run sortpackagejson || true npm run build if...
azure-quantum-python/visualization/build/build-all-local.sh/0
{ "file_path": "azure-quantum-python/visualization/build/build-all-local.sh", "repo_id": "azure-quantum-python", "token_count": 431 }
384
/*------------------------------------ Copyright (c) Microsoft Corporation. Licensed under the MIT License. All rights reserved. ------------------------------------ */ import React from "react"; import { create } from "react-test-renderer"; import { LegendData } from "../D3HelperFunctions"; import DonutChart, {...
azure-quantum-python/visualization/react-lib/src/components/d3-visualization-components/__tests__/DonutChart.test.tsx/0
{ "file_path": "azure-quantum-python/visualization/react-lib/src/components/d3-visualization-components/__tests__/DonutChart.test.tsx", "repo_id": "azure-quantum-python", "token_count": 377 }
385
module.exports = {};
azure-quantum-python/visualization/react-lib/test-config/mocks/styleMock.js/0
{ "file_path": "azure-quantum-python/visualization/react-lib/test-config/mocks/styleMock.js", "repo_id": "azure-quantum-python", "token_count": 8 }
386
[[source]] name = "pypi" url = "https://pypi.org/simple" verify_ssl = true [dev-packages] [packages] regex = "*" sphinx = "*" sphinx-autodoc-typehints = "*" sphinx-rtd-theme = "*" sphinx-js = {git = "https://github.com/pyodide/sphinx-js", ref = "28105a224ec6c4c3141d10e182b9feaae7f10183"} pydantic = "<2.0" bistring = ...
bistring/docs/Pipfile/0
{ "file_path": "bistring/docs/Pipfile", "repo_id": "bistring", "token_count": 172 }
387
bistring ======== [![npm version](https://badge.fury.io/js/bistring.svg)](https://www.npmjs.com/package/bistring) 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 s...
bistring/js/README.md/0
{ "file_path": "bistring/js/README.md", "repo_id": "bistring", "token_count": 539 }
388
/*! * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT license. */ import BiString, { Token, Tokenization, RegExpTokenizer, SplittingTokenizer } from ".."; test("Tokenization", () => { let text = new BiString(" The quick, brown fox jumps over the lazy dog "); text = text...
bistring/js/tests/token.test.ts/0
{ "file_path": "bistring/js/tests/token.test.ts", "repo_id": "bistring", "token_count": 1170 }
389
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. import sys import traceback from datetime import datetime from botbuilder.core import ( ConversationState, TurnContext, ) from botbuilder.integration.aiohttp import CloudAdapter, ConfigurationBotFrameworkAuthenticatio...
botbuilder-python/generators/app/templates/core/{{cookiecutter.bot_name}}/adapter_with_error_handler.py/0
{ "file_path": "botbuilder-python/generators/app/templates/core/{{cookiecutter.bot_name}}/adapter_with_error_handler.py", "repo_id": "botbuilder-python", "token_count": 898 }
390
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. import os from setuptools import setup REQUIRES = [ "botbuilder-schema==4.16.0", "botframework-connector==4.16.0", "botbuilder-core==4.16.0", "pyslack", "slackclient", ] TEST_REQUIRES = ["aiounittest==1....
botbuilder-python/libraries/botbuilder-adapters-slack/setup.py/0
{ "file_path": "botbuilder-python/libraries/botbuilder-adapters-slack/setup.py", "repo_id": "botbuilder-python", "token_count": 592 }
391
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. from enum import Enum class LuisTelemetryConstants(str, Enum): """ The IBotTelemetryClient event and property names that logged by default. """ luis_result = "LuisResult" """Event name""" applicatio...
botbuilder-python/libraries/botbuilder-ai/botbuilder/ai/luis/luis_telemetry_constants.py/0
{ "file_path": "botbuilder-python/libraries/botbuilder-ai/botbuilder/ai/luis/luis_telemetry_constants.py", "repo_id": "botbuilder-python", "token_count": 243 }
392
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. from msrest.serialization import Model class QueryResult(Model): """Represents an individual result from a knowledge base query.""" _attribute_map = { "questions": {"key": "questions", "type": "[str]"}, ...
botbuilder-python/libraries/botbuilder-ai/botbuilder/ai/qna/models/query_result.py/0
{ "file_path": "botbuilder-python/libraries/botbuilder-ai/botbuilder/ai/qna/models/query_result.py", "repo_id": "botbuilder-python", "token_count": 443 }
393
{ "text": "buy hul and 2 items", "intents": { "Cancel": { "score": 0.006906527 }, "Delivery": { "score": 0.00567273 }, "EntityTests": { "score": 0.128755629 }, "Greeting": { "score": 0.00450348156 }, "Help": { "score": 0.00583425 }, "None": {...
botbuilder-python/libraries/botbuilder-ai/tests/luis/test_data/ExternalEntitiesAndBuiltIn_v3.json/0
{ "file_path": "botbuilder-python/libraries/botbuilder-ai/tests/luis/test_data/ExternalEntitiesAndBuiltIn_v3.json", "repo_id": "botbuilder-python", "token_count": 2218 }
394
{ "entities": { "$instance": { "extra": [ { "endIndex": 76, "modelType": "Pattern.Any Entity Extractor", "recognitionSources": [ "model" ], "startIndex": 71, "text": "kb435", "type": "subject" ...
botbuilder-python/libraries/botbuilder-ai/tests/luis/test_data/Patterns_v3.json/0
{ "file_path": "botbuilder-python/libraries/botbuilder-ai/tests/luis/test_data/Patterns_v3.json", "repo_id": "botbuilder-python", "token_count": 4294 }
395
{ "answers": [ { "questions": [ "Bald Eagle" ], "answer": "Apparently these guys aren't actually bald!", "score": 100.0, "id": 38, "source": "Editorial", "isDocumentText": false, "metadata": [], ...
botbuilder-python/libraries/botbuilder-ai/tests/qna/test_data/QnAMakerDialog_MultiTurn_Answer2.json/0
{ "file_path": "botbuilder-python/libraries/botbuilder-ai/tests/qna/test_data/QnAMakerDialog_MultiTurn_Answer2.json", "repo_id": "botbuilder-python", "token_count": 286 }
396
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. """Application Insights Telemetry Processor for Bots.""" from typing import List from .django.django_telemetry_processor import DjangoTelemetryProcessor from .flask.flask_telemetry_processor import FlaskTelemetryProcessor fro...
botbuilder-python/libraries/botbuilder-applicationinsights/botbuilder/applicationinsights/bot_telemetry_processor.py/0
{ "file_path": "botbuilder-python/libraries/botbuilder-applicationinsights/botbuilder/applicationinsights/bot_telemetry_processor.py", "repo_id": "botbuilder-python", "token_count": 443 }
397
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. from unittest.mock import create_autospec, MagicMock from typing import Dict import aiounittest from botbuilder.core.adapters import TestAdapter, TestFlow from botbuilder.schema import Activity from botbuilder.core import ( ...
botbuilder-python/libraries/botbuilder-applicationinsights/tests/test_telemetry_waterfall.py/0
{ "file_path": "botbuilder-python/libraries/botbuilder-applicationinsights/tests/test_telemetry_waterfall.py", "repo_id": "botbuilder-python", "token_count": 3330 }
398
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. from typing import List from botbuilder.schema import ( Activity, AttachmentData, ChannelAccount, ConversationParameters, ConversationsResult, ConversationResourceResponse, PagedMembersResult, ...
botbuilder-python/libraries/botbuilder-core/botbuilder/core/channel_service_handler.py/0
{ "file_path": "botbuilder-python/libraries/botbuilder-core/botbuilder/core/channel_service_handler.py", "repo_id": "botbuilder-python", "token_count": 6733 }
399
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. from typing import Dict from msrest.serialization import Model class IntentScore(Model): _attribute_map = { "score": {"key": "score", "type": "float"}, "properties": {"key": "properties", "type": "{objec...
botbuilder-python/libraries/botbuilder-core/botbuilder/core/intent_score.py/0
{ "file_path": "botbuilder-python/libraries/botbuilder-core/botbuilder/core/intent_score.py", "repo_id": "botbuilder-python", "token_count": 204 }
400
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. from typing import Dict, NamedTuple from msrest.serialization import Model from botbuilder.core import IntentScore class TopIntent(NamedTuple): """The top scoring intent and its score.""" intent: str score: fl...
botbuilder-python/libraries/botbuilder-core/botbuilder/core/recognizer_result.py/0
{ "file_path": "botbuilder-python/libraries/botbuilder-core/botbuilder/core/recognizer_result.py", "repo_id": "botbuilder-python", "token_count": 855 }
401
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. from copy import copy from abc import ABC, abstractmethod from typing import List class Storage(ABC): @abstractmethod async def read(self, keys: List[str]): """ Loads store items from storage. ...
botbuilder-python/libraries/botbuilder-core/botbuilder/core/storage.py/0
{ "file_path": "botbuilder-python/libraries/botbuilder-core/botbuilder/core/storage.py", "repo_id": "botbuilder-python", "token_count": 711 }
402
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. """Logs incoming and outgoing activities to a TranscriptStore..""" import datetime import copy import random import string from queue import Queue from abc import ABC, abstractmethod from typing import Awaitable, Callable, Li...
botbuilder-python/libraries/botbuilder-core/botbuilder/core/transcript_logger.py/0
{ "file_path": "botbuilder-python/libraries/botbuilder-core/botbuilder/core/transcript_logger.py", "repo_id": "botbuilder-python", "token_count": 3351 }
403
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. import aiounittest from botbuilder.core.teams.teams_helper import deserializer_helper from botbuilder.schema import Activity, ChannelAccount, Mention from botbuilder.schema.teams import ( MessageActionsPayload, Messa...
botbuilder-python/libraries/botbuilder-core/tests/teams/test_teams_helper.py/0
{ "file_path": "botbuilder-python/libraries/botbuilder-core/tests/teams/test_teams_helper.py", "repo_id": "botbuilder-python", "token_count": 776 }
404
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. import aiounittest from botbuilder.core import MemoryStorage, TurnContext, PrivateConversationState from botbuilder.core.adapters import TestAdapter from botbuilder.schema import Activity, ChannelAccount, ConversationAccount...
botbuilder-python/libraries/botbuilder-core/tests/test_private_conversation_state.py/0
{ "file_path": "botbuilder-python/libraries/botbuilder-core/tests/test_private_conversation_state.py", "repo_id": "botbuilder-python", "token_count": 540 }
405
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. class ChoiceFactoryOptions: def __init__( self, inline_separator: str = None, inline_or: str = None, inline_or_more: str = None, include_numbers: bool = None, ) -> None: ...
botbuilder-python/libraries/botbuilder-dialogs/botbuilder/dialogs/choices/choice_factory_options.py/0
{ "file_path": "botbuilder-python/libraries/botbuilder-dialogs/botbuilder/dialogs/choices/choice_factory_options.py", "repo_id": "botbuilder-python", "token_count": 463 }
406
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. class DialogEvent: def __init__(self, bubble: bool = False, name: str = "", value: object = None): self.bubble = bubble self.name = name self.value: object = value
botbuilder-python/libraries/botbuilder-dialogs/botbuilder/dialogs/dialog_event.py/0
{ "file_path": "botbuilder-python/libraries/botbuilder-dialogs/botbuilder/dialogs/dialog_event.py", "repo_id": "botbuilder-python", "token_count": 99 }
407
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. import builtins from inspect import isawaitable from traceback import print_tb from typing import ( Callable, Dict, Iterable, Iterator, List, Tuple, Type, TypeVar, ) from botbuilder.core impor...
botbuilder-python/libraries/botbuilder-dialogs/botbuilder/dialogs/memory/dialog_state_manager.py/0
{ "file_path": "botbuilder-python/libraries/botbuilder-dialogs/botbuilder/dialogs/memory/dialog_state_manager.py", "repo_id": "botbuilder-python", "token_count": 10201 }
408
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. from botbuilder.dialogs.memory import scope_path from .memory_scope import MemoryScope class DialogContextMemoryScope(MemoryScope): def __init__(self): # pylint: disable=invalid-name super().__init__(s...
botbuilder-python/libraries/botbuilder-dialogs/botbuilder/dialogs/memory/scopes/dialog_context_memory_scope.py/0
{ "file_path": "botbuilder-python/libraries/botbuilder-dialogs/botbuilder/dialogs/memory/scopes/dialog_context_memory_scope.py", "repo_id": "botbuilder-python", "token_count": 916 }
409
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. class DateTimeResolution: def __init__( self, value: str = None, start: str = None, end: str = None, timex: str = None ): self.value = value self.start = start self.end = end s...
botbuilder-python/libraries/botbuilder-dialogs/botbuilder/dialogs/prompts/datetime_resolution.py/0
{ "file_path": "botbuilder-python/libraries/botbuilder-dialogs/botbuilder/dialogs/prompts/datetime_resolution.py", "repo_id": "botbuilder-python", "token_count": 131 }
410
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. # TODO: Remove this file once we get some tests to verify waterfall_step # unnecessary in Python.
botbuilder-python/libraries/botbuilder-dialogs/botbuilder/dialogs/waterfall_step.py/0
{ "file_path": "botbuilder-python/libraries/botbuilder-dialogs/botbuilder/dialogs/waterfall_step.py", "repo_id": "botbuilder-python", "token_count": 46 }
411
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. from typing import List import aiounittest from botbuilder.core import ( ConversationState, MemoryStorage, TurnContext, MessageFactory, ) from botbuilder.core.adapters import TestAdapter from botbuilder.dialog...
botbuilder-python/libraries/botbuilder-dialogs/tests/test_confirm_prompt.py/0
{ "file_path": "botbuilder-python/libraries/botbuilder-dialogs/tests/test_confirm_prompt.py", "repo_id": "botbuilder-python", "token_count": 9261 }
412
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. from typing import Optional from aiohttp import ClientSession from aiohttp.web import ( Request, Response, json_response, WebSocketResponse, HTTPBadRequest, HTTPUnauthorized, HTTPUnsupportedMediaT...
botbuilder-python/libraries/botbuilder-integration-aiohttp/botbuilder/integration/aiohttp/bot_framework_http_adapter.py/0
{ "file_path": "botbuilder-python/libraries/botbuilder-integration-aiohttp/botbuilder/integration/aiohttp/bot_framework_http_adapter.py", "repo_id": "botbuilder-python", "token_count": 3419 }
413
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. from ._models_py3 import AppBasedLinkQuery from ._models_py3 import ChannelInfo from ._models_py3 import ConversationList from ._models_py3 import FileConsentCard from ._models_py3 import FileConsentCardResponse from ._models...
botbuilder-python/libraries/botbuilder-schema/botbuilder/schema/teams/__init__.py/0
{ "file_path": "botbuilder-python/libraries/botbuilder-schema/botbuilder/schema/teams/__init__.py", "repo_id": "botbuilder-python", "token_count": 1800 }
414
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. import logging from aiounittest import AsyncTestCase from botbuilder.core import MessageFactory from botbuilder.dialogs import ( ComponentDialog, DialogContext, DialogTurnResult, DialogTurnStatus, PromptO...
botbuilder-python/libraries/botbuilder-testing/tests/test_dialog_test_client.py/0
{ "file_path": "botbuilder-python/libraries/botbuilder-testing/tests/test_dialog_test_client.py", "repo_id": "botbuilder-python", "token_count": 2268 }
415
# 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/botframework-connector/botframework/connector/auth/__init__.py/0
{ "file_path": "botbuilder-python/libraries/botframework-connector/botframework/connector/auth/__init__.py", "repo_id": "botbuilder-python", "token_count": 312 }
416
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. import asyncio from .authentication_configuration import AuthenticationConfiguration from .verify_options import VerifyOptions from .authentication_constants import AuthenticationConstants from .jwt_token_extractor import Jw...
botbuilder-python/libraries/botframework-connector/botframework/connector/auth/channel_validation.py/0
{ "file_path": "botbuilder-python/libraries/botframework-connector/botframework/connector/auth/channel_validation.py", "repo_id": "botbuilder-python", "token_count": 2152 }
417
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. from datetime import timedelta from typing import Dict, Union import jwt from .authentication_configuration import AuthenticationConfiguration from .authentication_constants import AuthenticationConstants from .claims_ident...
botbuilder-python/libraries/botframework-connector/botframework/connector/auth/skill_validation.py/0
{ "file_path": "botbuilder-python/libraries/botframework-connector/botframework/connector/auth/skill_validation.py", "repo_id": "botbuilder-python", "token_count": 3155 }
418
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. from abc import ABC, abstractmethod # TODO: add InvokeResponse to botbuilder-schema or rethink dependencies from botbuilder.schema import Activity class BotFrameworkClient(ABC): @abstractmethod async def post_activ...
botbuilder-python/libraries/botframework-connector/botframework/connector/skills/bot_framework_client.py/0
{ "file_path": "botbuilder-python/libraries/botframework-connector/botframework/connector/skills/bot_framework_client.py", "repo_id": "botbuilder-python", "token_count": 391 }
419
# 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/botframework-connector/botframework/connector/token_api/models/_models_py3.py/0
{ "file_path": "botbuilder-python/libraries/botframework-connector/botframework/connector/token_api/models/_models_py3.py", "repo_id": "botbuilder-python", "token_count": 2806 }
420
interactions: - request: body: '{"recipient": {"id": "U19KH8EHJ:T03CWQ0QB"}, "channelId": "slack", "attachments": [{"content": {"title": "A static image", "text": "JPEG image", "images": [{"url": "https://docs.microsoft.com/en-us/bot-framework/media/designing-bots/core/dialogs-screens.png"}]}, "co...
botbuilder-python/libraries/botframework-connector/tests/recordings/test_conversations_send_to_conversation_with_attachment.yaml/0
{ "file_path": "botbuilder-python/libraries/botframework-connector/tests/recordings/test_conversations_send_to_conversation_with_attachment.yaml", "repo_id": "botbuilder-python", "token_count": 768 }
421
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. from .cancel_disassembler import CancelDisassembler from .payload_disassembler import PayloadDisassembler from .request_disassembler import RequestDisassembler from .response_disassembler import ResponseDisassembler from .res...
botbuilder-python/libraries/botframework-streaming/botframework/streaming/payloads/disassemblers/__init__.py/0
{ "file_path": "botbuilder-python/libraries/botframework-streaming/botframework/streaming/payloads/disassemblers/__init__.py", "repo_id": "botbuilder-python", "token_count": 159 }
422
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. from uuid import uuid4, UUID class ResponseMessageStream: # pylint: disable=invalid-name def __init__(self, *, id: UUID = None, content: object = None): self.id = id or uuid4() self.content = content...
botbuilder-python/libraries/botframework-streaming/botframework/streaming/payloads/response_message_stream.py/0
{ "file_path": "botbuilder-python/libraries/botframework-streaming/botframework/streaming/payloads/response_message_stream.py", "repo_id": "botbuilder-python", "token_count": 112 }
423
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. from .web_socket import WebSocketMessage from .web_socket import WebSocket from .web_socket_close_status import WebSocketCloseStatus from .web_socket_server import WebSocketServer from .web_socket_message_type import WebSocke...
botbuilder-python/libraries/botframework-streaming/botframework/streaming/transport/web_socket/__init__.py/0
{ "file_path": "botbuilder-python/libraries/botframework-streaming/botframework/streaming/transport/web_socket/__init__.py", "repo_id": "botbuilder-python", "token_count": 183 }
424
import json import aiounittest from botbuilder.schema import Activity from botframework.streaming import ReceiveRequest, StreamingRequest from botframework.streaming.payloads import ResponseMessageStream class TestRequests(aiounittest.AsyncTestCase): async def test_receive_request_empty_streams(self): s...
botbuilder-python/libraries/botframework-streaming/tests/test_requests.py/0
{ "file_path": "botbuilder-python/libraries/botframework-streaming/tests/test_requests.py", "repo_id": "botbuilder-python", "token_count": 1838 }
425
# BotFramework Token > see https://aka.ms/autorest Configuration for generating BotFramework Token SDK. ``` yaml add-credentials: true openapi-type: data-plane ``` The current release for the BotFramework Token is v3.0. # Releases ## Token API 3.0 ``` yaml input-file: TokenAPI.json ``` ### Token API 3.0 - Python...
botbuilder-python/swagger/tokenAPI.md/0
{ "file_path": "botbuilder-python/swagger/tokenAPI.md", "repo_id": "botbuilder-python", "token_count": 278 }
426
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. from botbuilder.dialogs import ( ComponentDialog, DialogTurnResult, WaterfallDialog, WaterfallStepContext ) from botbuilder.dialogs.prompts import ( OAuthPrompt, OAuthPromptSettings ) from botbuilder.s...
botbuilder-python/tests/experimental/sso/parent/dialogs/main_dialog.py/0
{ "file_path": "botbuilder-python/tests/experimental/sso/parent/dialogs/main_dialog.py", "repo_id": "botbuilder-python", "token_count": 721 }
427