text stringlengths 5 22M | id stringlengths 12 177 | metadata dict | __index_level_0__ int64 0 1.37k |
|---|---|---|---|
__include__: 'darts.yaml' # defaults are loaded from this file
nas:
eval:
checkpoint: null
resume: False
trainer:
apex: True
epochs: 10
drop_path_prob: 0.0
aux_weight: 0.0
optimizer:
type: "sgd"
lr: 0.016 # init learning rate
decay: 0.0
moment... | archai/confs/dawnbench.yaml/0 | {
"file_path": "archai/confs/dawnbench.yaml",
"repo_id": "archai",
"token_count": 288
} | 339 |
from archai.discrete_search.search_spaces.nlp.transformer_flex.search_space import TransformerFlexSearchSpace
from archai.discrete_search.api.search_objectives import SearchObjectives
from archai.discrete_search.evaluators.nlp.parameters import NonEmbeddingParamsProxy
from archai.discrete_search.evaluators.nlp.transfor... | archai/docs/advanced_guide/cloud/azure/notebooks/quickstart/main.py/0 | {
"file_path": "archai/docs/advanced_guide/cloud/azure/notebooks/quickstart/main.py",
"repo_id": "archai",
"token_count": 690
} | 340 |
<jupyter_start><jupyter_text>Creating CV-based DataIn this notebook, we will create CV-based data using PyTorch's `torchvision` library, which provides access to popular CV datasets, such as CIFAR10, MNIST, and ImageNet, among others. Loading the DataThe first step is to create an instance of the `MnistDatasetProvider... | archai/docs/getting_started/notebooks/cv/cv_dataset_provider.ipynb/0 | {
"file_path": "archai/docs/getting_started/notebooks/cv/cv_dataset_provider.ipynb",
"repo_id": "archai",
"token_count": 656
} | 341 |
<jupyter_start><jupyter_text>Creating NLP-based DataIn this notebook, we will use a dataset provider-based abstraction that interfaces with `NVIDIA/DeepLearningExamples` to load and encode pre-defined/custom data. Loading and Encoding the DataThe first step is to create an instance of the `NvidiaDatasetProvider`, whic... | archai/docs/getting_started/notebooks/nlp/nvidia_dataset_provider.ipynb/0 | {
"file_path": "archai/docs/getting_started/notebooks/nlp/nvidia_dataset_provider.ipynb",
"repo_id": "archai",
"token_count": 986
} | 342 |
Tokenization Utilities
======================
Tokenizer (Base Class)
----------------------
.. automodule:: archai.datasets.nlp.tokenizer_utils.tokenizer_base
:members:
:undoc-members:
Token Configuration
-------------------
.. automodule:: archai.datasets.nlp.tokenizer_utils.token_config
:members:
:und... | archai/docs/reference/api/archai.datasets.nlp.tokenizer_utils.rst/0 | {
"file_path": "archai/docs/reference/api/archai.datasets.nlp.tokenizer_utils.rst",
"repo_id": "archai",
"token_count": 259
} | 343 |
Transformer-Flex
================
Search Space
------------
.. automodule:: archai.discrete_search.search_spaces.nlp.transformer_flex.search_space
:members:
:undoc-members:
GPT-2 Flex
----------
.. automodule:: archai.discrete_search.search_spaces.nlp.transformer_flex.models.configuration_gpt2_flex
:member... | archai/docs/reference/api/archai.discrete_search.search_spaces.nlp.transformer_flex.rst/0 | {
"file_path": "archai/docs/reference/api/archai.discrete_search.search_spaces.nlp.transformer_flex.rst",
"repo_id": "archai",
"token_count": 288
} | 344 |
Algorithms
==========
.. toctree::
:maxdepth: 2
archai.supergraph.algos.darts
archai.supergraph.algos.didarts
archai.supergraph.algos.divnas
archai.supergraph.algos.gumbelsoftmax
archai.supergraph.algos.manual
archai.supergraph.algos.nasbench101
archai.supergraph.algos.petridish
archai.supe... | archai/docs/reference/api/archai.supergraph.algos.rst/0 | {
"file_path": "archai/docs/reference/api/archai.supergraph.algos.rst",
"repo_id": "archai",
"token_count": 152
} | 345 |
Frequently Asked Questions (FAQ)
================================
**Q:** What is Neural Architecture Search (NAS)?
**A:** NAS is a machine learning technique that aims to automatically discover effective neural network architectures for a given task, without the need for human intervention or trial-and-error experime... | archai/docs/support/faq.rst/0 | {
"file_path": "archai/docs/support/faq.rst",
"repo_id": "archai",
"token_count": 549
} | 346 |
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
from setuptools import find_packages, setup
install_requires = [r.rstrip() for r in open("requirements.txt", "r").readlines()]
setup(
name="lm_eval_harness",
version="0.0.1",
author="Microsoft",
url="https://github.com/microsoft... | archai/research/lm_eval_harness/setup.py/0 | {
"file_path": "archai/research/lm_eval_harness/setup.py",
"repo_id": "archai",
"token_count": 167
} | 347 |
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
from torchvision import transforms
from archai.common.config import Config
from archai.common.ml_utils import channel_norm
from archai.supergraph.datasets import data
if __name__ == "__main__":
conf = Config(config_filepath="confs/datasets/... | archai/scripts/supergraph/download_datasets/find_mean_std.py/0 | {
"file_path": "archai/scripts/supergraph/download_datasets/find_mean_std.py",
"repo_id": "archai",
"token_count": 263
} | 348 |
import base64
import pickle
from collections import OrderedDict
from typing import Dict
import numpy as np
from archai.common import utils
from archai.supergraph.algos.nasbench101 import model_metrics_pb2
def eval_to_dict(e) -> dict:
return {
"training_time": e.training_time,
"train_accuracy": e... | archai/scripts/supergraph/nasbench101/pkl1_pkl2.py/0 | {
"file_path": "archai/scripts/supergraph/nasbench101/pkl1_pkl2.py",
"repo_id": "archai",
"token_count": 1027
} | 349 |
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
import argparse
import pathlib
from archai.common import utils
from archai.supergraph.nas.model_desc import ModelDesc
from archai.supergraph.nas.vis_model_desc import draw_model_desc
def main():
parser = argparse.ArgumentParser(description... | archai/scripts/supergraph/visualize_desc.py/0 | {
"file_path": "archai/scripts/supergraph/visualize_desc.py",
"repo_id": "archai",
"token_count": 284
} | 350 |
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
import os
import json
import sys
from archai.common.store import ArchaiStore
CONNECTION_NAME = 'MODEL_STORAGE_CONNECTION_STRING'
def change_schema(store: ArchaiStore):
""" Handy script for making batch changes to the azure table """
f... | archai/tasks/face_segmentation/aml/azure/change_schema.py/0 | {
"file_path": "archai/tasks/face_segmentation/aml/azure/change_schema.py",
"repo_id": "archai",
"token_count": 421
} | 351 |
FROM ubuntu:18.04
SHELL ["/bin/bash", "-c"]
ARG SNPE_SDK_ZIP
ARG SNPE_SDK_ROOT
ARG ANDROID_NDK_ZIP
ARG ANDROID_NDK_ROOT
RUN apt-get update && apt-get install -y build-essential libtool autoconf cmake unzip wget git unzip curl python3 python3-dev python3-distutils python3-pip ffmpeg libsm6 libxext6 wget locales libjpe... | archai/tasks/face_segmentation/aml/docker/quantizer/Dockerfile/0 | {
"file_path": "archai/tasks/face_segmentation/aml/docker/quantizer/Dockerfile",
"repo_id": "archai",
"token_count": 1513
} | 352 |
ο»Ώ<?xml version="1.0" encoding="utf-8"?>
<DirectedGraph GraphDirection="TopToBottom" Layout="Sugiyama" Offset="-820.8108333333334,-384.5347442626953" ZoomLevel="1" xmlns="http://schemas.microsoft.com/vs/2009/dgml">
<Nodes>
<Node Id="AmlTraining" Category="aml" Bounds="178.281669209798,-42.1863471113841,158.8533333... | archai/tasks/face_segmentation/aml/images/system.dgml/0 | {
"file_path": "archai/tasks/face_segmentation/aml/images/system.dgml",
"repo_id": "archai",
"token_count": 1830
} | 353 |
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
import argparse
from datetime import datetime
from pathlib import Path
import csv
import os
import sys
import time
import tqdm
import json
import numpy as np
SCRIPT_DIR = os.path.dirname(__file__)
sys.path += [os.path.join(SCRIPT_DIR, '..', 'util... | archai/tasks/face_segmentation/aml/snpe/test_snpe.py/0 | {
"file_path": "archai/tasks/face_segmentation/aml/snpe/test_snpe.py",
"repo_id": "archai",
"token_count": 10078
} | 354 |
search:
search_space:
name: hgnet
params:
num_classes: 18
img_size: [256, 256] # (w, h)
in_channels: 3
op_subset: ['conv3x3', 'conv5x5', 'conv7x7']
stem_strides: [2]
# Number of downsampling blocks (without counting stem conv)
num_blocks: 5
# Maximum number o... | archai/tasks/face_segmentation/confs/aml_search.yaml/0 | {
"file_path": "archai/tasks/face_segmentation/confs/aml_search.yaml",
"repo_id": "archai",
"token_count": 1068
} | 355 |
from pathlib import Path
from typing import Tuple
import torch
from torch import nn
import pytorch_lightning as pl
from .metrics import get_confusion_matrix, get_iou, get_f1_scores
class SegmentationTrainingLoop(pl.LightningModule):
def __init__(self, model: nn.Module, lr: float = 2e-4, ignore_mask_value: int =... | archai/tasks/face_segmentation/training/pl_trainer.py/0 | {
"file_path": "archai/tasks/face_segmentation/training/pl_trainer.py",
"repo_id": "archai",
"token_count": 1038
} | 356 |
"""This is from torchvision source code: https://github.com/pytorch/vision/blob/main/references/classification/utils.py"""
import copy
import datetime
import errno
import hashlib
import os
import time
from collections import defaultdict, deque, OrderedDict
import torch
import torch.distributed as dist
class Smoothed... | archai/tasks/facial_landmark_detection/utils.py/0 | {
"file_path": "archai/tasks/facial_landmark_detection/utils.py",
"repo_id": "archai",
"token_count": 6512
} | 357 |
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
import os
import shutil
import tempfile
import torch
from archai.common.file_utils import (
calculate_onnx_model_size,
calculate_torch_model_size,
check_available_checkpoint,
copy_file,
create_empty_file,
create_file_name... | archai/tests/common/test_file_utils.py/0 | {
"file_path": "archai/tests/common/test_file_utils.py",
"repo_id": "archai",
"token_count": 1489
} | 358 |
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
import json
from random import Random
from typing import List
import numpy as np
import pytest
from overrides import overrides
from archai.discrete_search.api.archai_model import ArchaiModel
from archai.discrete_search.api.search_space import (... | archai/tests/discrete_search/algos/fixtures/search_space.py/0 | {
"file_path": "archai/tests/discrete_search/algos/fixtures/search_space.py",
"repo_id": "archai",
"token_count": 688
} | 359 |
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
import pytest
from archai.discrete_search.evaluators.nlp.transformer_flex_latency import (
TransformerFlexOnnxLatency,
)
from archai.discrete_search.search_spaces.nlp.transformer_flex.search_space import (
TransformerFlexSearchSpace,
)
... | archai/tests/discrete_search/evaluators/nlp/test_transformer_flex_latency.py/0 | {
"file_path": "archai/tests/discrete_search/evaluators/nlp/test_transformer_flex_latency.py",
"repo_id": "archai",
"token_count": 226
} | 360 |
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
from archai.onnx.optimization_utils.fusion_options import (
AttentionMaskFormat,
FusionOptions,
)
def test_attention_mask_format():
# Assert that the values of the enum are as expected
assert AttentionMaskFormat.MaskIndexEnd == ... | archai/tests/onnx/optimization_utils/test_fusion_options.py/0 | {
"file_path": "archai/tests/onnx/optimization_utils/test_fusion_options.py",
"repo_id": "archai",
"token_count": 755
} | 361 |
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
import time
import ray
import torch
from archai.common import common
from archai.supergraph import models
from archai.supergraph.datasets import data
from archai.supergraph.utils.metrics import Metrics
from archai.supergraph.utils.trainer impor... | archai/tests/supergraph/test_ray.py/0 | {
"file_path": "archai/tests/supergraph/test_ray.py",
"repo_id": "archai",
"token_count": 743
} | 362 |
ο»Ώ# --------------------------------------------------------------------------------------------
# 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/profile/profile_client.py/0 | {
"file_path": "azure-devops-python-api/azure-devops/azure/devops/released/profile/profile_client.py",
"repo_id": "azure-devops-python-api",
"token_count": 1211
} | 363 |
ο»Ώ# --------------------------------------------------------------------------------------------
# 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/task/task_client.py/0 | {
"file_path": "azure-devops-python-api/azure-devops/azure/devops/released/task/task_client.py",
"repo_id": "azure-devops-python-api",
"token_count": 12512
} | 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/work/work_client.py/0 | {
"file_path": "azure-devops-python-api/azure-devops/azure/devops/released/work/work_client.py",
"repo_id": "azure-devops-python-api",
"token_count": 36693
} | 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/v7_0/work_item_tracking_process/work_item_tracking_process_client.py/0 | {
"file_path": "azure-devops-python-api/azure-devops/azure/devops/v7_0/work_item_tracking_process/work_item_tracking_process_client.py",
"repo_id": "azure-devops-python-api",
"token_count": 31294
} | 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_1/cix/models.py/0 | {
"file_path": "azure-devops-python-api/azure-devops/azure/devops/v7_1/cix/models.py",
"repo_id": "azure-devops-python-api",
"token_count": 6158
} | 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/dashboard/models.py/0 | {
"file_path": "azure-devops-python-api/azure-devops/azure/devops/v7_1/dashboard/models.py",
"repo_id": "azure-devops-python-api",
"token_count": 15597
} | 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/policy/policy_client.py/0 | {
"file_path": "azure-devops-python-api/azure-devops/azure/devops/v7_1/policy/policy_client.py",
"repo_id": "azure-devops-python-api",
"token_count": 6479
} | 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/release/__init__.py/0 | {
"file_path": "azure-devops-python-api/azure-devops/azure/devops/v7_1/release/__init__.py",
"repo_id": "azure-devops-python-api",
"token_count": 1068
} | 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/service_hooks/models.py/0 | {
"file_path": "azure-devops-python-api/azure-devops/azure/devops/v7_1/service_hooks/models.py",
"repo_id": "azure-devops-python-api",
"token_count": 22758
} | 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/test_plan/__init__.py/0 | {
"file_path": "azure-devops-python-api/azure-devops/azure/devops/v7_1/test_plan/__init__.py",
"repo_id": "azure-devops-python-api",
"token_count": 767
} | 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/upack_packaging/models.py/0 | {
"file_path": "azure-devops-python-api/azure-devops/azure/devops/v7_1/upack_packaging/models.py",
"repo_id": "azure-devops-python-api",
"token_count": 1703
} | 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/work_item_tracking_process_template/work_item_tracking_process_template_client.py/0 | {
"file_path": "azure-devops-python-api/azure-devops/azure/devops/v7_1/work_item_tracking_process_template/work_item_tracking_process_template_client.py",
"repo_id": "azure-devops-python-api",
"token_count": 2796
} | 374 |
trigger: none
pr: none
parameters:
- name: Release_Type
displayName: Release Type (major.minor.patch)
type: string
values:
- major
- minor
- patch
default: 'patch'
- name: Build_Type
displayName: Build Type (major.minor.patch[.rc|.dev])
type: string
values:
- dev
- rc
- stable
... | azure-quantum-python/.ado/publish.yml/0 | {
"file_path": "azure-quantum-python/.ado/publish.yml",
"repo_id": "azure-quantum-python",
"token_count": 2145
} | 375 |
# ------------------------------------
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
# ------------------------------------
import logging
import re
from typing import Optional
import urllib3
from azure.core.credentials import AccessToken
from azure.identity import (
AzurePowerShellCreden... | azure-quantum-python/azure-quantum/azure/quantum/_authentication/_default.py/0 | {
"file_path": "azure-quantum-python/azure-quantum/azure/quantum/_authentication/_default.py",
"repo_id": "azure-quantum-python",
"token_count": 2675
} | 376 |
##
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
##
from enum import Enum
from azure.identity._constants import EnvironmentVariables as SdkEnvironmentVariables
from azure.identity import _internal as AzureIdentityInternals
class EnvironmentVariables:
USER_AGENT_APP... | azure-quantum-python/azure-quantum/azure/quantum/_constants.py/0 | {
"file_path": "azure-quantum-python/azure-quantum/azure/quantum/_constants.py",
"repo_id": "azure-quantum-python",
"token_count": 1412
} | 377 |
import json
from typing import Any, Dict, Union
class JobFailedWithResultsError(RuntimeError):
"""Error produced when Job completes with status "Failed" and the Job
supports producing failure results.
The failure results can be accessed with get_failure_results() method.
"""
def __init__(self, me... | azure-quantum-python/azure-quantum/azure/quantum/job/job_failed_with_results_error.py/0 | {
"file_path": "azure-quantum-python/azure-quantum/azure/quantum/job/job_failed_with_results_error.py",
"repo_id": "azure-quantum-python",
"token_count": 591
} | 378 |
##
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
##
import logging
from typing import Any, Dict
from azure.core import exceptions
from azure.storage.blob import (
BlobServiceClient,
ContainerClient,
BlobClient,
BlobSasPermissions,
ContentSettings,
... | azure-quantum-python/azure-quantum/azure/quantum/storage.py/0 | {
"file_path": "azure-quantum-python/azure-quantum/azure/quantum/storage.py",
"repo_id": "azure-quantum-python",
"token_count": 4876
} | 379 |
"""Defines targets and helper functions for the Rigetti provider"""
##
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
##
__all__ = [
"InputParams",
"Readout",
"Result",
"Rigetti",
"RigettiTarget",
]
from .result import Readout, Result
from .target im... | azure-quantum-python/azure-quantum/azure/quantum/target/rigetti/__init__.py/0 | {
"file_path": "azure-quantum-python/azure-quantum/azure/quantum/target/rigetti/__init__.py",
"repo_id": "azure-quantum-python",
"token_count": 117
} | 380 |
// QASM file for RQFTMultiplier with 8 bit
// (see https://github.com/microsoft/Quantum/blob/main/samples/azure-quantum/resource-estimation/estimation-qiskit.ipynb)
OPENQASM 2.0;
include "qelib1.inc";
qreg a[8];
qreg b[8];
qreg out[16];
rz(32*pi) b[0];
rz(64*pi) b[1];
rz(128*pi) b[2];
rz(256*pi) b[3];
rz(512*pi) b[4];
... | azure-quantum-python/azure-quantum/examples/resource_estimation/cli_test_files/rqft_multiplier.qasm/0 | {
"file_path": "azure-quantum-python/azure-quantum/examples/resource_estimation/cli_test_files/rqft_multiplier.qasm",
"repo_id": "azure-quantum-python",
"token_count": 214747
} | 381 |
interactions:
- request:
body: client_id=PLACEHOLDER&grant_type=client_credentials&client_assertion=PLACEHOLDER&client_info=1&client_assertion_type=PLACEHOLDER&scope=https%3A%2F%2Fquantum.microsoft.com%2F.default
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
... | azure-quantum-python/azure-quantum/tests/unit/recordings/test_job_submit_ionq.yaml/0 | {
"file_path": "azure-quantum-python/azure-quantum/tests/unit/recordings/test_job_submit_ionq.yaml",
"repo_id": "azure-quantum-python",
"token_count": 14089
} | 382 |
#!/bin/env python
# -*- coding: utf-8 -*-
##
# test_params.py: Tests for input parameters
##
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
##
from re import escape
from common import QuantumTestBase
from pytest import raises
from azure.quantum.argument_types import EmptyArray, Pauli, Range, R... | azure-quantum-python/azure-quantum/tests/unit/test_params.py/0 | {
"file_path": "azure-quantum-python/azure-quantum/tests/unit/test_params.py",
"repo_id": "azure-quantum-python",
"token_count": 2886
} | 383 |
<jupyter_start><jupyter_text>ππ Hello, world: Submit a Qiskit job to RigettiIn this notebook, we'll review the basics of Azure Quantum by submitting a simple *job*, or quantum program, to [Rigetti](https://www.rigetti.com/). We will use [Qiskit](https://qiskit.org/) to express the quantum job. Submit a simple job to... | azure-quantum-python/samples/hello-world/HW-rigetti-qiskit.ipynb/0 | {
"file_path": "azure-quantum-python/samples/hello-world/HW-rigetti-qiskit.ipynb",
"repo_id": "azure-quantum-python",
"token_count": 1353
} | 384 |
# Tests for "set_version.py" module.
# !! Don't forget to run this test in case you change "set_version.py" to make sure the asserts still pass !!
from set_version import _get_build_version
def test_set_version():
assert "1.0.0" == _get_build_version("major", "stable", [])
assert "2.0.0" == _get_build_version... | azure-quantum-python/test_set_version.py/0 | {
"file_path": "azure-quantum-python/test_set_version.py",
"repo_id": "azure-quantum-python",
"token_count": 1135
} | 385 |
{
"name": "quantum-visualization",
"version": "1.0.0",
"description": "This is a visualization library to display Azure Quantum job result.",
"license": "MIT",
"main": "dist/main.js",
"types": "src/index.ts",
"scripts": {
"build": "webpack --mode development",
"build:prod": "webpack --mode product... | azure-quantum-python/visualization/react-lib/package.json/0 | {
"file_path": "azure-quantum-python/visualization/react-lib/package.json",
"repo_id": "azure-quantum-python",
"token_count": 1260
} | 386 |
Tokenization
============
.. js:autoclass:: Token
:members:
.. js:autoclass:: Tokenization
:members:
| bistring/docs/JavaScript/Tokenization.rst/0 | {
"file_path": "bistring/docs/JavaScript/Tokenization.rst",
"repo_id": "bistring",
"token_count": 40
} | 387 |
{
"dependencies": {
"typedoc": "^0.22.11",
"typescript": "^4.7.0"
}
}
| bistring/docs/package.json/0 | {
"file_path": "bistring/docs/package.json",
"repo_id": "bistring",
"token_count": 60
} | 388 |
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT license.
from __future__ import annotations
from dataclasses import dataclass
from typing import List, Optional
import unicodedata
from ._alignment import Alignment
from ._bistr import bistr
from ._token import CharacterTokenizer
... | bistring/python/bistring/_infer.py/0 | {
"file_path": "bistring/python/bistring/_infer.py",
"repo_id": "bistring",
"token_count": 1403
} | 389 |
[MASTER]
# A comma-separated list of package or module names from where C extensions may
# be loaded. Extensions are loading into the active Python interpreter and may
# run arbitrary code.
extension-pkg-whitelist=
# Add files or directories to the blacklist. They should be base names, not
# paths.
ignore=
# Add fil... | botbuilder-python/generators/app/templates/core/{{cookiecutter.bot_name}}/.pylintrc/0 | {
"file_path": "botbuilder-python/generators/app/templates/core/{{cookiecutter.bot_name}}/.pylintrc",
"repo_id": "botbuilder-python",
"token_count": 4447
} | 390 |
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"groupName": {
"type": "string",
"metadata": {
"description": "Specifies the name of the Resource Group."
}... | botbuilder-python/generators/app/templates/echo/{{cookiecutter.bot_name}}/deploymentTemplates/deployWithNewResourceGroup/template-AzureBot-new-rg.json/0 | {
"file_path": "botbuilder-python/generators/app/templates/echo/{{cookiecutter.bot_name}}/deploymentTemplates/deployWithNewResourceGroup/template-AzureBot-new-rg.json",
"repo_id": "botbuilder-python",
"token_count": 2289
} | 391 |
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
import json
from typing import List
from botbuilder.adapters.slack.slack_message import SlackMessage
class SlackPayload:
def __init__(self, **kwargs):
payload = json.loads(kwargs.get("payload"))
self.typ... | botbuilder-python/libraries/botbuilder-adapters-slack/botbuilder/adapters/slack/slack_payload.py/0 | {
"file_path": "botbuilder-python/libraries/botbuilder-adapters-slack/botbuilder/adapters/slack/slack_payload.py",
"repo_id": "botbuilder-python",
"token_count": 504
} | 392 |
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
from botbuilder.core import BotTelemetryClient, NullTelemetryClient
from .luis_recognizer_options import LuisRecognizerOptions
class LuisRecognizerOptionsV2(LuisRecognizerOptions):
def __init__(
self,
bi... | botbuilder-python/libraries/botbuilder-ai/botbuilder/ai/luis/luis_recognizer_options_v2.py/0 | {
"file_path": "botbuilder-python/libraries/botbuilder-ai/botbuilder/ai/luis/luis_recognizer_options_v2.py",
"repo_id": "botbuilder-python",
"token_count": 495
} | 393 |
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
from msrest.serialization import Model
class Prompt(Model):
"""Prompt Object."""
_attribute_map = {
"display_order": {"key": "displayOrder", "type": "int"},
"qna_id": {"key": "qnaId", "type": "int"}... | botbuilder-python/libraries/botbuilder-ai/botbuilder/ai/qna/models/prompt.py/0 | {
"file_path": "botbuilder-python/libraries/botbuilder-ai/botbuilder/ai/qna/models/prompt.py",
"repo_id": "botbuilder-python",
"token_count": 304
} | 394 |
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
import json
import platform
from typing import Any
import requests
from aiohttp import ClientResponse, ClientSession, ClientTimeout
from ... import __title__, __version__
from ..qnamaker_endpoint import QnAMakerEndpoint
... | botbuilder-python/libraries/botbuilder-ai/botbuilder/ai/qna/utils/http_request_utils.py/0 | {
"file_path": "botbuilder-python/libraries/botbuilder-ai/botbuilder/ai/qna/utils/http_request_utils.py",
"repo_id": "botbuilder-python",
"token_count": 1929
} | 395 |
{
"text": "http://foo.com is where you can fly from seattle to dallas via denver",
"intents": {
"EntityTests": {
"score": 0.915071368
},
"Weather_GetForecast": {
"score": 0.103456922
},
"Travel": {
"score": 0.0230268724
},
"search": {
"score": 0.0197850317
},
... | botbuilder-python/libraries/botbuilder-ai/tests/luis/test_data/Composite2.json/0 | {
"file_path": "botbuilder-python/libraries/botbuilder-ai/tests/luis/test_data/Composite2.json",
"repo_id": "botbuilder-python",
"token_count": 2787
} | 396 |
{
"query": "Please deliver February 2nd 2001 in room 201",
"topScoringIntent": {
"intent": "Delivery",
"score": 0.8785189
},
"intents": [
{
"intent": "Delivery",
"score": 0.8785189
},
{
"intent": "SpecifyName",
"scor... | botbuilder-python/libraries/botbuilder-ai/tests/luis/test_data/MultipleIntents_PrebuiltEntitiesWithMultiValues.json/0 | {
"file_path": "botbuilder-python/libraries/botbuilder-ai/tests/luis/test_data/MultipleIntents_PrebuiltEntitiesWithMultiValues.json",
"repo_id": "botbuilder-python",
"token_count": 785
} | 397 |
{
"answers": [
{
"questions": [
"how do I clean the stove?"
],
"answer": "BaseCamp: You can use a damp rag to clean around the Power Pack",
"score": 100,
"id": 5,
"source": "Editorial",
"metadata": [],
"context": {... | botbuilder-python/libraries/botbuilder-ai/tests/qna/test_data/AnswerWithPrompts.json/0 | {
"file_path": "botbuilder-python/libraries/botbuilder-ai/tests/qna/test_data/AnswerWithPrompts.json",
"repo_id": "botbuilder-python",
"token_count": 373
} | 398 |
=============================================
BotBuilder-ApplicationInsights SDK for Python
=============================================
.. image:: https://dev.azure.com/FuseLabs/SDK_v4/_apis/build/status/Python/Python-CI-PR-yaml?branchName=master
:target: https://dev.azure.com/FuseLabs/SDK_v4/_apis/build/status... | botbuilder-python/libraries/botbuilder-applicationinsights/README.rst/0 | {
"file_path": "botbuilder-python/libraries/botbuilder-applicationinsights/README.rst",
"repo_id": "botbuilder-python",
"token_count": 926
} | 399 |
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
import azure.cosmos.errors as cosmos_errors
from azure.cosmos import documents
import pytest
from botbuilder.azure import CosmosDbPartitionedStorage, CosmosDbPartitionedConfig
from botbuilder.testing import StorageBaseTests
... | botbuilder-python/libraries/botbuilder-azure/tests/test_cosmos_partitioned_storage.py/0 | {
"file_path": "botbuilder-python/libraries/botbuilder-azure/tests/test_cosmos_partitioned_storage.py",
"repo_id": "botbuilder-python",
"token_count": 2780
} | 400 |
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
from abc import abstractmethod
from copy import deepcopy
from typing import Callable, Dict, Union
from jsonpickle.pickler import Pickler
from botbuilder.core.state_property_accessor import StatePropertyAccessor
from .bot_asse... | botbuilder-python/libraries/botbuilder-core/botbuilder/core/bot_state.py/0 | {
"file_path": "botbuilder-python/libraries/botbuilder-core/botbuilder/core/bot_state.py",
"repo_id": "botbuilder-python",
"token_count": 4456
} | 401 |
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
from datetime import datetime
from typing import Dict, Union
from botbuilder.core import BotState
from botbuilder.schema import Activity, ActivityTypes, ConversationReference
def make_command_activity(command: str) -> Acti... | botbuilder-python/libraries/botbuilder-core/botbuilder/core/inspection/trace_activity.py/0 | {
"file_path": "botbuilder-python/libraries/botbuilder-core/botbuilder/core/inspection/trace_activity.py",
"repo_id": "botbuilder-python",
"token_count": 719
} | 402 |
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
from botbuilder.core.state_property_accessor import StatePropertyAccessor
class PropertyManager:
def create_property(self, name: str) -> StatePropertyAccessor:
raise NotImplementedError()
| botbuilder-python/libraries/botbuilder-core/botbuilder/core/property_manager.py/0 | {
"file_path": "botbuilder-python/libraries/botbuilder-core/botbuilder/core/property_manager.py",
"repo_id": "botbuilder-python",
"token_count": 81
} | 403 |
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
from botbuilder.schema import ConversationReference
class SkillConversationReference:
"""
ConversationReference implementation for Skills ConversationIdFactory.
"""
def __init__(self, conversation_reference:... | botbuilder-python/libraries/botbuilder-core/botbuilder/core/skills/skill_conversation_reference.py/0 | {
"file_path": "botbuilder-python/libraries/botbuilder-core/botbuilder/core/skills/skill_conversation_reference.py",
"repo_id": "botbuilder-python",
"token_count": 126
} | 404 |
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
import traceback
from http import HTTPStatus
from typing import Awaitable, Callable
from botframework.connector.channels import Channels
from botframework.connector.token_api.models import (
TokenResponse,
TokenExch... | botbuilder-python/libraries/botbuilder-core/botbuilder/core/teams/teams_sso_token_exchange_middleware.py/0 | {
"file_path": "botbuilder-python/libraries/botbuilder-core/botbuilder/core/teams/teams_sso_token_exchange_middleware.py",
"repo_id": "botbuilder-python",
"token_count": 2916
} | 405 |
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
import unittest
from typing import List, Tuple, Awaitable, Callable
from botbuilder.core import BotAdapter, TurnContext
from botbuilder.schema import (
Activity,
ConversationReference,
ResourceResponse,
Conver... | botbuilder-python/libraries/botbuilder-core/tests/teams/simple_adapter_with_create_conversation.py/0 | {
"file_path": "botbuilder-python/libraries/botbuilder-core/tests/teams/simple_adapter_with_create_conversation.py",
"repo_id": "botbuilder-python",
"token_count": 1125
} | 406 |
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
# pylint: disable=missing-docstring, unused-import
import sys
import copy
import uuid
import datetime
from typing import Awaitable, Callable, Dict, List
from unittest.mock import patch, Mock
import aiounittest
from botbuilder... | botbuilder-python/libraries/botbuilder-core/tests/test_memory_transcript_store.py/0 | {
"file_path": "botbuilder-python/libraries/botbuilder-core/tests/test_memory_transcript_store.py",
"repo_id": "botbuilder-python",
"token_count": 2141
} | 407 |
# 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-dialogs/botbuilder/dialogs/choices/__init__.py/0 | {
"file_path": "botbuilder-python/libraries/botbuilder-dialogs/botbuilder/dialogs/choices/__init__.py",
"repo_id": "botbuilder-python",
"token_count": 307
} | 408 |
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
from botbuilder.core import TurnContext
from .dialog import Dialog
from .dialog_context import DialogContext
from .dialog_turn_result import DialogTurnResult
from .dialog_state import DialogState
from .dialog_turn_status imp... | botbuilder-python/libraries/botbuilder-dialogs/botbuilder/dialogs/component_dialog.py/0 | {
"file_path": "botbuilder-python/libraries/botbuilder-dialogs/botbuilder/dialogs/component_dialog.py",
"repo_id": "botbuilder-python",
"token_count": 4365
} | 409 |
# 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-dialogs/botbuilder/dialogs/memory/__init__.py/0 | {
"file_path": "botbuilder-python/libraries/botbuilder-dialogs/botbuilder/dialogs/memory/__init__.py",
"repo_id": "botbuilder-python",
"token_count": 229
} | 410 |
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
from typing import Type
from botbuilder.core import BotState
from .memory_scope import MemoryScope
class BotStateMemoryScope(MemoryScope):
def __init__(self, bot_state_type: Type[BotState], name: str):
super()... | botbuilder-python/libraries/botbuilder-dialogs/botbuilder/dialogs/memory/scopes/bot_state_memory_scope.py/0 | {
"file_path": "botbuilder-python/libraries/botbuilder-dialogs/botbuilder/dialogs/memory/scopes/bot_state_memory_scope.py",
"repo_id": "botbuilder-python",
"token_count": 596
} | 411 |
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
from typing import Callable, Dict
from botbuilder.schema import ActivityTypes
from botbuilder.core import TurnContext
from .prompt import Prompt, PromptValidatorContext
from .prompt_options import PromptOptions
from .prompt... | botbuilder-python/libraries/botbuilder-dialogs/botbuilder/dialogs/prompts/attachment_prompt.py/0 | {
"file_path": "botbuilder-python/libraries/botbuilder-dialogs/botbuilder/dialogs/prompts/attachment_prompt.py",
"repo_id": "botbuilder-python",
"token_count": 790
} | 412 |
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
from botbuilder.schema import Activity
class BeginSkillDialogOptions:
def __init__(self, activity: Activity):
self.activity = activity
@staticmethod
def from_object(obj: object) -> "BeginSkillDialogOpti... | botbuilder-python/libraries/botbuilder-dialogs/botbuilder/dialogs/skills/begin_skill_dialog_options.py/0 | {
"file_path": "botbuilder-python/libraries/botbuilder-dialogs/botbuilder/dialogs/skills/begin_skill_dialog_options.py",
"repo_id": "botbuilder-python",
"token_count": 190
} | 413 |
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
import os
class DefaultConfig:
"""Bot Configuration"""
STRING = os.environ.get("STRING", "test")
INT = os.environ.get("INT", 3)
LIST = os.environ.get("LIST", ["zero", "one", "two", "three"])
NOT_TO_BE_O... | botbuilder-python/libraries/botbuilder-dialogs/tests/memory/scopes/test_settings.py/0 | {
"file_path": "botbuilder-python/libraries/botbuilder-dialogs/tests/memory/scopes/test_settings.py",
"repo_id": "botbuilder-python",
"token_count": 172
} | 414 |
# 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-integration-aiohttp/botbuilder/integration/aiohttp/__init__.py/0 | {
"file_path": "botbuilder-python/libraries/botbuilder-integration-aiohttp/botbuilder/integration/aiohttp/__init__.py",
"repo_id": "botbuilder-python",
"token_count": 295
} | 415 |
[bdist_wheel]
universal=0 | botbuilder-python/libraries/botbuilder-integration-aiohttp/setup.cfg/0 | {
"file_path": "botbuilder-python/libraries/botbuilder-integration-aiohttp/setup.cfg",
"repo_id": "botbuilder-python",
"token_count": 10
} | 416 |
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
from typing import List
from botbuilder.schema._connector_client_enums import ActivityTypes
from datetime import datetime
from enum import Enum
from msrest.serialization import Model
from msrest.exceptions import HttpOperati... | botbuilder-python/libraries/botbuilder-schema/botbuilder/schema/_models_py3.py/0 | {
"file_path": "botbuilder-python/libraries/botbuilder-schema/botbuilder/schema/_models_py3.py",
"repo_id": "botbuilder-python",
"token_count": 35278
} | 417 |
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
import json
import logging
import time
import uuid
from datetime import datetime
from typing import Awaitable, Callable, List
from botbuilder.core import Middleware, TurnContext
from botbuilder.schema import Activity, Activi... | botbuilder-python/libraries/botbuilder-testing/botbuilder/testing/dialog_test_logger.py/0 | {
"file_path": "botbuilder-python/libraries/botbuilder-testing/botbuilder/testing/dialog_test_logger.py",
"repo_id": "botbuilder-python",
"token_count": 1543
} | 418 |
# 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/aio/operations_async/_conversations_operations_async.py/0 | {
"file_path": "botbuilder-python/libraries/botframework-connector/botframework/connector/aio/operations_async/_conversations_operations_async.py",
"repo_id": "botbuilder-python",
"token_count": 17286
} | 419 |
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
from abc import ABC, abstractmethod
from botbuilder.schema import Activity, CallerIdConstants
from botframework.connector.skills import BotFrameworkClient
from .authenticate_request_result import AuthenticateRequestResult
... | botbuilder-python/libraries/botframework-connector/botframework/connector/auth/bot_framework_authentication.py/0 | {
"file_path": "botbuilder-python/libraries/botframework-connector/botframework/connector/auth/bot_framework_authentication.py",
"repo_id": "botbuilder-python",
"token_count": 1522
} | 420 |
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
from .microsoft_app_credentials import MicrosoftAppCredentials
from .government_constants import GovernmentConstants
class MicrosoftGovernmentAppCredentials(MicrosoftAppCredentials):
"""
MicrosoftGovernmentAppCreden... | botbuilder-python/libraries/botframework-connector/botframework/connector/auth/microsoft_government_app_credentials.py/0 | {
"file_path": "botbuilder-python/libraries/botframework-connector/botframework/connector/auth/microsoft_government_app_credentials.py",
"repo_id": "botbuilder-python",
"token_count": 455
} | 421 |
# 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/aio/operations_async/_bot_sign_in_operations_async.py/0 | {
"file_path": "botbuilder-python/libraries/botframework-connector/botframework/connector/token_api/aio/operations_async/_bot_sign_in_operations_async.py",
"repo_id": "botbuilder-python",
"token_count": 2772
} | 422 |
interactions:
- request:
body: '{"recipient": {"id": "U19KH8EHJ:T03CWQ0QB"}, "from": {"id": "B21UTEF8S:T03CWQ0QB"},
"type": "message", "text": "Thread activity", "channelId": "slack"}'
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
C... | botbuilder-python/libraries/botframework-connector/tests/recordings/test_conversations_reply_to_activity.yaml/0 | {
"file_path": "botbuilder-python/libraries/botframework-connector/tests/recordings/test_conversations_reply_to_activity.yaml",
"repo_id": "botbuilder-python",
"token_count": 1186
} | 423 |
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
from uuid import UUID
from typing import List
import botframework.streaming as streaming
import botframework.streaming.payloads as payloads
from botframework.streaming.payloads.models import Header
from .assembler import As... | botbuilder-python/libraries/botframework-streaming/botframework/streaming/payloads/assemblers/payload_stream_assembler.py/0 | {
"file_path": "botbuilder-python/libraries/botframework-streaming/botframework/streaming/payloads/assemblers/payload_stream_assembler.py",
"repo_id": "botbuilder-python",
"token_count": 548
} | 424 |
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
from abc import ABC
# TODO: debate if this class is pertinent or should use msrest infrastructure
class Serializable(ABC):
def to_json(self) -> str:
raise NotImplementedError()
def from_json(self, json_str... | botbuilder-python/libraries/botframework-streaming/botframework/streaming/payloads/models/serializable.py/0 | {
"file_path": "botbuilder-python/libraries/botframework-streaming/botframework/streaming/payloads/models/serializable.py",
"repo_id": "botbuilder-python",
"token_count": 114
} | 425 |
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
class TransportBase:
def __init__(self):
self.is_connected: bool = None
def close(self):
return
| botbuilder-python/libraries/botframework-streaming/botframework/streaming/transport/transport_base.py/0 | {
"file_path": "botbuilder-python/libraries/botframework-streaming/botframework/streaming/transport/transport_base.py",
"repo_id": "botbuilder-python",
"token_count": 73
} | 426 |
from typing import List
from uuid import UUID, uuid4
import aiounittest
from botframework.streaming import ReceiveRequest
from botframework.streaming.payloads import StreamManager
from botframework.streaming.payloads.assemblers import (
ReceiveRequestAssembler,
PayloadStreamAssembler,
)
from botframework.strea... | botbuilder-python/libraries/botframework-streaming/tests/test_payload_processor.py/0 | {
"file_path": "botbuilder-python/libraries/botframework-streaming/tests/test_payload_processor.py",
"repo_id": "botbuilder-python",
"token_count": 745
} | 427 |
{
"swagger": "2.0",
"info": {
"version": "token",
"title": "Microsoft Bot Token API - V3.1",
"termsOfService": "https://www.microsoft.com/en-us/legal/intellectualproperty/copyright/default.aspx",
"contact": {
"name": "Bot Framework",
"url": "https://botframework.com",
"email": "bot... | botbuilder-python/swagger/TokenAPI.json/0 | {
"file_path": "botbuilder-python/swagger/TokenAPI.json",
"repo_id": "botbuilder-python",
"token_count": 7835
} | 428 |
from .parent_bot import ParentBot
__all__ = ["ParentBot"]
| botbuilder-python/tests/experimental/sso/parent/bots/__init__.py/0 | {
"file_path": "botbuilder-python/tests/experimental/sso/parent/bots/__init__.py",
"repo_id": "botbuilder-python",
"token_count": 19
} | 429 |
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
"""Bot app with Flask routing."""
from flask import Response
from .bot_app import BotApp
APP = BotApp()
@APP.flask.route("/api/messages", methods=["POST"])
def messages() -> Response:
return APP.messages()
@APP.fl... | botbuilder-python/tests/functional-tests/functionaltestbot/flask_bot_app/app.py/0 | {
"file_path": "botbuilder-python/tests/functional-tests/functionaltestbot/flask_bot_app/app.py",
"repo_id": "botbuilder-python",
"token_count": 130
} | 430 |
curl -X POST --header 'Accept: application/json' -d '{"text": "Hi!"}' http://localhost:3979
| botbuilder-python/tests/functional-tests/functionaltestbot/test.sh/0 | {
"file_path": "botbuilder-python/tests/functional-tests/functionaltestbot/test.sh",
"repo_id": "botbuilder-python",
"token_count": 32
} | 431 |
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
import sys
import traceback
from datetime import datetime
from aiohttp import web
from aiohttp.web import Request, Response
from botbuilder.core import (
BotFrameworkAdapterSettings,
ConversationState,
MemoryStor... | botbuilder-python/tests/skills/skills-prototypes/dialog-to-dialog/authentication-bot/app.py/0 | {
"file_path": "botbuilder-python/tests/skills/skills-prototypes/dialog-to-dialog/authentication-bot/app.py",
"repo_id": "botbuilder-python",
"token_count": 1042
} | 432 |
<?xml version='1.0' encoding='UTF-8'?>
<glyph name="Aacute" format="2">
<advance width="1200"/>
<unicode hex="00C1"/>
<outline>
<component base="A"/>
<component base="acutecomb.case" xOffset="79"/>
</outline>
</glyph>
| cascadia-code/sources/CascadiaCode-Bold.ufo/glyphs/A_acute.glif/0 | {
"file_path": "cascadia-code/sources/CascadiaCode-Bold.ufo/glyphs/A_acute.glif",
"repo_id": "cascadia-code",
"token_count": 97
} | 433 |
<?xml version='1.0' encoding='UTF-8'?>
<glyph name="Agrave" format="2">
<advance width="1200"/>
<unicode hex="00C0"/>
<outline>
<component base="A"/>
<component base="gravecomb.case" xOffset="-80"/>
</outline>
</glyph>
| cascadia-code/sources/CascadiaCode-Bold.ufo/glyphs/A_grave.glif/0 | {
"file_path": "cascadia-code/sources/CascadiaCode-Bold.ufo/glyphs/A_grave.glif",
"repo_id": "cascadia-code",
"token_count": 95
} | 434 |
<?xml version='1.0' encoding='UTF-8'?>
<glyph name="Dcaron" format="2">
<advance width="1200"/>
<unicode hex="010E"/>
<outline>
<component base="D"/>
<component base="caroncomb.case" xOffset="-70"/>
</outline>
</glyph>
| cascadia-code/sources/CascadiaCode-Bold.ufo/glyphs/D_caron.glif/0 | {
"file_path": "cascadia-code/sources/CascadiaCode-Bold.ufo/glyphs/D_caron.glif",
"repo_id": "cascadia-code",
"token_count": 96
} | 435 |
<?xml version='1.0' encoding='UTF-8'?>
<glyph name="Ecircumflexdotbelow" format="2">
<advance width="1200"/>
<unicode hex="1EC6"/>
<outline>
<component base="E"/>
<component base="dotbelowcomb" xOffset="30"/>
<component base="circumflexcomb.case" xOffset="30"/>
</outline>
</glyph>
| cascadia-code/sources/CascadiaCode-Bold.ufo/glyphs/E_circumflexdotbelow.glif/0 | {
"file_path": "cascadia-code/sources/CascadiaCode-Bold.ufo/glyphs/E_circumflexdotbelow.glif",
"repo_id": "cascadia-code",
"token_count": 117
} | 436 |
<?xml version='1.0' encoding='UTF-8'?>
<glyph name="Gje-cy" format="2">
<advance width="1200"/>
<unicode hex="0403"/>
<outline>
<component base="Ge-cy"/>
<component base="acutecomb.case" xOffset="99"/>
</outline>
</glyph>
| cascadia-code/sources/CascadiaCode-Bold.ufo/glyphs/G_je-cy.glif/0 | {
"file_path": "cascadia-code/sources/CascadiaCode-Bold.ufo/glyphs/G_je-cy.glif",
"repo_id": "cascadia-code",
"token_count": 99
} | 437 |
<?xml version='1.0' encoding='UTF-8'?>
<glyph name="IJ_acute" format="2">
<advance width="1200"/>
<outline>
<component base="IJ"/>
<component base="acutecomb.case" xOffset="-195"/>
<component base="acutecomb.case" xOffset="359"/>
</outline>
<lib>
<dict>
<key>com.schriftgestaltung.Glyphs.Co... | cascadia-code/sources/CascadiaCode-Bold.ufo/glyphs/I_J__acute.glif/0 | {
"file_path": "cascadia-code/sources/CascadiaCode-Bold.ufo/glyphs/I_J__acute.glif",
"repo_id": "cascadia-code",
"token_count": 439
} | 438 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.