text stringlengths 5 22M | id stringlengths 12 177 | metadata dict | __index_level_0__ int64 0 1.37k |
|---|---|---|---|
__include__: 'darts.yaml' # just use darts defaults
common:
experiment_name: 'MyResnet'
nas:
eval:
loader:
train_batch: 128
test_batch: 4096
cutout: 0
val_ratio: 0.1
# dataset:
# max_batches: 2
trainer:
epochs: 200
logger_freq: 10
drop_path_prob: 0.0... | archai/confs/algos/resnet.yaml/0 | {
"file_path": "archai/confs/algos/resnet.yaml",
"repo_id": "archai",
"token_count": 186
} | 334 |
!!python/object:archai.nas.model_desc.ModelDesc
_cell_descs:
- !!python/object:archai.nas.model_desc.CellDesc
_nodes:
- !!python/object:archai.nas.model_desc.NodeDesc
edges:
- !!python/object:archai.nas.model_desc.EdgeDesc
input_ids:
- 1
op_desc: !!python/object:archai.nas.model_desc.OpDes... | archai/confs/darts_models/darts_genotype.yaml/0 | {
"file_path": "archai/confs/darts_models/darts_genotype.yaml",
"repo_id": "archai",
"token_count": 19474
} | 335 |
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
import os
import json
from typing import List, Optional, Union
from overrides import overrides
from archai.api.dataset_provider import DatasetProvider
from archai.discrete_search.api.archai_model import ArchaiModel
from archai.discrete_search.api... | archai/docs/advanced_guide/cloud/azure/notebooks/multi_node_search/scripts/aml_training_evaluator.py/0 | {
"file_path": "archai/docs/advanced_guide/cloud/azure/notebooks/multi_node_search/scripts/aml_training_evaluator.py",
"repo_id": "archai",
"token_count": 1735
} | 336 |
import argparse
import json
from transformers import (
AutoTokenizer,
DataCollatorForLanguageModeling,
GPT2Config,
GPT2LMHeadModel,
TrainingArguments,
)
from archai.common.file_utils import check_available_checkpoint
from archai.datasets.nlp.hf_dataset_provider import HfHubDatasetProvider
from arc... | archai/docs/advanced_guide/cloud/azure/notebooks/text_generation/src/train.py/0 | {
"file_path": "archai/docs/advanced_guide/cloud/azure/notebooks/text_generation/src/train.py",
"repo_id": "archai",
"token_count": 1126
} | 337 |
Unit Tests
==========
The Archai project welcomes contributions through the implementation of unit tests using Pytest. If you are interested in contributing to the project in this way, please follow these steps:
#. Ensure that Pytest is installed. You can install it using ``pip install archai[tests]``.
#. Check out ... | archai/docs/contributing/unit_tests.rst/0 | {
"file_path": "archai/docs/contributing/unit_tests.rst",
"repo_id": "archai",
"token_count": 564
} | 338 |
<jupyter_start><jupyter_text>Evaluators<jupyter_code>from overrides import overrides
from typing import List, Optional
from archai.discrete_search.api import ArchaiModel<jupyter_output><empty_output><jupyter_text>We will use SegmentationDag search space for this example<jupyter_code>from archai.discrete_search.search_s... | archai/docs/getting_started/notebooks/discrete_search/evaluators.ipynb/0 | {
"file_path": "archai/docs/getting_started/notebooks/discrete_search/evaluators.ipynb",
"repo_id": "archai",
"token_count": 2252
} | 339 |
Quick Start
===========
In this quickstart example, we will apply Archai in Natural Language Processing to find the optimal Pareto-frontier Transformers' configurations according to a set of objectives.
Creating the Search Space
-------------------------
We start by importing the `TransformerFlexSearchSpace` class w... | archai/docs/getting_started/quick_start.rst/0 | {
"file_path": "archai/docs/getting_started/quick_start.rst",
"repo_id": "archai",
"token_count": 868
} | 340 |
Evaluators
==========
.. toctree::
:maxdepth: 2
archai.discrete_search.evaluators.benchmark
archai.discrete_search.evaluators.nlp
archai.discrete_search.evaluators.pt_profiler_utils
Functional
----------
.. automodule:: archai.discrete_search.evaluators.functional
:members:
:undoc-members:
ONNX M... | archai/docs/reference/api/archai.discrete_search.evaluators.rst/0 | {
"file_path": "archai/docs/reference/api/archai.discrete_search.evaluators.rst",
"repo_id": "archai",
"token_count": 348
} | 341 |
Quantization
============
.. toctree::
:maxdepth: 2
archai.quantization.nlp
Modules
-------
.. automodule:: archai.quantization.modules
:members:
:undoc-members:
Observers
---------
.. automodule:: archai.quantization.observers
:members:
:undoc-members:
Quantizers
----------
.. automodule:: ar... | archai/docs/reference/api/archai.quantization.rst/0 | {
"file_path": "archai/docs/reference/api/archai.quantization.rst",
"repo_id": "archai",
"token_count": 312
} | 342 |
Supergraph
==========
.. toctree::
:maxdepth: 2
archai.supergraph.algos
archai.supergraph.datasets
archai.supergraph.models
archai.supergraph.nas
archai.supergraph.utils
| archai/docs/reference/api/archai.supergraph.rst/0 | {
"file_path": "archai/docs/reference/api/archai.supergraph.rst",
"repo_id": "archai",
"token_count": 74
} | 343 |
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
import random
from hashlib import sha1
from typing import List, Optional
import numpy as np
from lm_eval.base import CachingLM
from lm_eval.evaluator import evaluate
from lm_eval.tasks import get_task_dict
from lm_eval.utils import run_task_test... | archai/research/lm_eval_harness/lm_eval_harness/lm_eval_evaluator.py/0 | {
"file_path": "archai/research/lm_eval_harness/lm_eval_harness/lm_eval_evaluator.py",
"repo_id": "archai",
"token_count": 670
} | 344 |
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
import argparse
import json
import os
from transformers import GPT2LMHeadModel
from archai.common.file_utils import calculate_onnx_model_size
from archai.onnx.export import export_to_onnx
from archai.onnx.optimization import optimize_onnx
from ... | archai/scripts/onnx/export_gpt2.py/0 | {
"file_path": "archai/scripts/onnx/export_gpt2.py",
"repo_id": "archai",
"token_count": 964
} | 345 |
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
import dataset_utils
import torchvision
from torchvision import transforms
if __name__ == "__main__":
dataroot = dataset_utils.get_dataroot()
torchvision.datasets.STL10(
root=dataroot,
split="train",
# train=True... | archai/scripts/supergraph/download_datasets/torchvision_ds.py/0 | {
"file_path": "archai/scripts/supergraph/download_datasets/torchvision_ds.py",
"repo_id": "archai",
"token_count": 249
} | 346 |
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
import torch
from torch_testbed import cifar10_models
from torch_testbed.dataloader_dali import cifar10_dataloaders
from torch_testbed.timing import MeasureTime, clear_timings, print_all_timings
from archai.common import utils
utils.setup_cuda(4... | archai/scripts/supergraph/performance/model_dl_test.py/0 | {
"file_path": "archai/scripts/supergraph/performance/model_dl_test.py",
"repo_id": "archai",
"token_count": 793
} | 347 |
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
import argparse
from transformers import GPT2Config, GPT2LMHeadModel
from archai.trainers.nlp.nvidia_trainer import NvidiaTrainer
from archai.trainers.nlp.nvidia_training_args import NvidiaTrainingArguments
def parse_args() -> argparse.Namesp... | archai/scripts/trainers/nvidia/train_gpt2.py/0 | {
"file_path": "archai/scripts/trainers/nvidia/train_gpt2.py",
"repo_id": "archai",
"token_count": 1108
} | 348 |
#!/bin/bash
# If the python app runs out of memory due to various leaks in python libraries
# the process terminates with 'killed', this loop will restart the runner.
script_dir="$(dirname ${BASH_SOURCE})"
source ~/anaconda3/etc/profile.d/conda.sh
conda activate snap37
while true
do
python ${script_dir}/runner.py... | archai/tasks/face_segmentation/aml/azure/loop.sh/0 | {
"file_path": "archai/tasks/face_segmentation/aml/azure/loop.sh",
"repo_id": "archai",
"token_count": 148
} | 349 |
# Setup
This script contains the session setup used on the machine that is connected
to the Qualcomm boards for running N screen sessions that run the loop.sh
script for each Qualcomm board.
If you want to also cleanup stale kubernetes pods, you can add `--cleanup_stale_pods`
once you have configured `az login` and `... | archai/tasks/face_segmentation/aml/setup/readme.md/0 | {
"file_path": "archai/tasks/face_segmentation/aml/setup/readme.md",
"repo_id": "archai",
"token_count": 124
} | 350 |
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
import os
import sys
from glob import glob
from shutil import copyfile
from archai.common.config import Config
from archai.common.store import ArchaiStore
from azure.ai.ml.entities._credentials import AccountKeyConfiguration
from azure.ai.ml.enti... | archai/tasks/face_segmentation/aml/util/setup.py/0 | {
"file_path": "archai/tasks/face_segmentation/aml/util/setup.py",
"repo_id": "archai",
"token_count": 1366
} | 351 |
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
from functools import partial
from typing import Tuple, Optional, List
import torch
from torch import nn
from archai.discrete_search.search_spaces.config import (
ArchConfig, ArchParamTree, DiscreteChoice, ConfigSearchSpace, repeat_config
)
... | archai/tasks/face_segmentation/search_space/hgnet.py/0 | {
"file_path": "archai/tasks/face_segmentation/search_space/hgnet.py",
"repo_id": "archai",
"token_count": 4282
} | 352 |
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
from typing import Any, Optional
from torch import nn, Tensor, flatten
import torch
from torch.ao.quantization import DeQuantStub, QuantStub
from model import CustomInvertedResidual, CustomMobileNetV2
from torchvision.ops import Conv2dNormActi... | archai/tasks/facial_landmark_detection/quantizable_model.py/0 | {
"file_path": "archai/tasks/facial_landmark_detection/quantizable_model.py",
"repo_id": "archai",
"token_count": 1376
} | 353 |
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
import torch
from archai.datasets.cv.transforms.custom_cutout import CustomCutout
def test_custom_cutout():
# Assert that it works with length argument
c = CustomCutout(length=10)
img = torch.ones((3, 20, 20))
result = c(img)
... | archai/tests/datasets/cv/transforms/test_custom_cutout.py/0 | {
"file_path": "archai/tests/datasets/cv/transforms/test_custom_cutout.py",
"repo_id": "archai",
"token_count": 269
} | 354 |
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
from archai.discrete_search.search_spaces.nlp.transformer_flex.models.configuration_gpt2_flex import (
GPT2FlexConfig,
)
def test_gpt2_flex_config():
# Assert that the config has the correct values
config = GPT2FlexConfig(n_layer=3,... | archai/tests/discrete_search/search_spaces/nlp/transformer_flex/models/test_configuration_gpt2_flex.py/0 | {
"file_path": "archai/tests/discrete_search/search_spaces/nlp/transformer_flex/models/test_configuration_gpt2_flex.py",
"repo_id": "archai",
"token_count": 245
} | 355 |
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
import pytest
import torch
import transformers
from archai.quantization.nlp.modules import FakeDynamicQuant, FakeDynamicQuantHFConv1D
@pytest.fixture
def fake_dynamic_quant_hf_conv1d():
return FakeDynamicQuantHFConv1D(nf=3, nx=2)
def tes... | archai/tests/quantization/nlp/test_nlp_modules.py/0 | {
"file_path": "archai/tests/quantization/nlp/test_nlp_modules.py",
"repo_id": "archai",
"token_count": 937
} | 356 |
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
import os
import tempfile
import torch
from transformers import TrainerState, TrainingArguments
from archai.trainers.nlp.hf_trainer import HfTrainer
def test_hf_trainer_rotate_checkpoints():
model = torch.nn.Linear(10, 5)
args = Train... | archai/tests/trainers/nlp/test_hf_trainer.py/0 | {
"file_path": "archai/tests/trainers/nlp/test_hf_trainer.py",
"repo_id": "archai",
"token_count": 855
} | 357 |
# --------------------------------------------------------------------------------------------
# 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/connection.py/0 | {
"file_path": "azure-devops-python-api/azure-devops/azure/devops/connection.py",
"repo_id": "azure-devops-python-api",
"token_count": 2838
} | 358 |
# --------------------------------------------------------------------------------------------
# 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/accounts/models.py/0 | {
"file_path": "azure-devops-python-api/azure-devops/azure/devops/v7_1/accounts/models.py",
"repo_id": "azure-devops-python-api",
"token_count": 2267
} | 359 |
# --------------------------------------------------------------------------------------------
# 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/contributions/models.py/0 | {
"file_path": "azure-devops-python-api/azure-devops/azure/devops/v7_1/contributions/models.py",
"repo_id": "azure-devops-python-api",
"token_count": 13201
} | 360 |
# coding=utf-8
from msrest.universal_http import ClientRequest
from .git_client_base import GitClientBase
class GitClient(GitClientBase):
"""Git
:param str base_url: Service URL
:param Authentication creds: Authenticated credentials.
"""
def __init__(self, base_url=None, creds=None):
sup... | azure-devops-python-api/azure-devops/azure/devops/v7_1/git/git_client.py/0 | {
"file_path": "azure-devops-python-api/azure-devops/azure/devops/v7_1/git/git_client.py",
"repo_id": "azure-devops-python-api",
"token_count": 715
} | 361 |
# --------------------------------------------------------------------------------------------
# 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/member_entitlement_management/member_entitlement_management_client.py/0 | {
"file_path": "azure-devops-python-api/azure-devops/azure/devops/v7_1/member_entitlement_management/member_entitlement_management_client.py",
"repo_id": "azure-devops-python-api",
"token_count": 10707
} | 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/v7_1/pipeline_permissions/pipeline_permissions_client.py/0 | {
"file_path": "azure-devops-python-api/azure-devops/azure/devops/v7_1/pipeline_permissions/pipeline_permissions_client.py",
"repo_id": "azure-devops-python-api",
"token_count": 1998
} | 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/v7_1/search/models.py/0 | {
"file_path": "azure-devops-python-api/azure-devops/azure/devops/v7_1/search/models.py",
"repo_id": "azure-devops-python-api",
"token_count": 18801
} | 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/v7_1/tfvc/models.py/0 | {
"file_path": "azure-devops-python-api/azure-devops/azure/devops/v7_1/tfvc/models.py",
"repo_id": "azure-devops-python-api",
"token_count": 22812
} | 365 |
@REM init section. Set _echo=1 to echo everything
@IF NOT DEFINED _echo ECHO OFF
pip install wheel --upgrade --no-cache-dir
python.exe %~dp0\..\create_wheels.py
IF ERRORLEVEL 1 GOTO FAIL
GOTO :EOF
:FAIL
ECHO Failed to create wheels.
EXIT /B 1
| azure-devops-python-api/scripts/windows/create_wheels.cmd/0 | {
"file_path": "azure-devops-python-api/scripts/windows/create_wheels.cmd",
"repo_id": "azure-devops-python-api",
"token_count": 95
} | 366 |
# --------------------------------------------------------------------------
# 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 cause incorrect... | azure-quantum-python/azure-quantum/azure/quantum/_client/_vendor.py/0 | {
"file_path": "azure-quantum-python/azure-quantum/azure/quantum/_client/_vendor.py",
"repo_id": "azure-quantum-python",
"token_count": 283
} | 367 |
##
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
##
try:
import cirq
except ImportError:
raise ImportError(
"Missing optional 'cirq' dependencies. \
To install run: pip install azure-quantum[cirq]"
)
from azure.quantum import Workspace
from azure.quantum.job.base_job import DEFAU... | azure-quantum-python/azure-quantum/azure/quantum/cirq/service.py/0 | {
"file_path": "azure-quantum-python/azure-quantum/azure/quantum/cirq/service.py",
"repo_id": "azure-quantum-python",
"token_count": 3717
} | 368 |
##
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
##
from typing import TYPE_CHECKING, Dict, List, Union
from azure.quantum import __version__
from azure.quantum.qiskit.job import AzureQuantumJob
from azure.quantum.target.ionq import IonQ
from abc import abstractmethod
from qiskit import Quan... | azure-quantum-python/azure-quantum/azure/quantum/qiskit/backends/ionq.py/0 | {
"file_path": "azure-quantum-python/azure-quantum/azure/quantum/qiskit/backends/ionq.py",
"repo_id": "azure-quantum-python",
"token_count": 8665
} | 369 |
import warnings
from azure.quantum.job.base_job import ContentType
from azure.quantum.job.job import Job
from azure.quantum.target.target import Target
from azure.quantum.workspace import Workspace
from azure.quantum.target.params import InputParams
from typing import Any, Dict, Type, Union
from .job import MicrosoftE... | azure-quantum-python/azure-quantum/azure/quantum/target/microsoft/elements/dft/target.py/0 | {
"file_path": "azure-quantum-python/azure-quantum/azure/quantum/target/microsoft/elements/dft/target.py",
"repo_id": "azure-quantum-python",
"token_count": 1112
} | 370 |
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | azure-quantum-python/azure-quantum/eng/Generate-DataPlane-Client.ps1/0 | {
"file_path": "azure-quantum-python/azure-quantum/eng/Generate-DataPlane-Client.ps1",
"repo_id": "azure-quantum-python",
"token_count": 1209
} | 371 |
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_pasqal_default_input_params.yaml/0 | {
"file_path": "azure-quantum-python/azure-quantum/tests/unit/recordings/test_job_submit_pasqal_default_input_params.yaml",
"repo_id": "azure-quantum-python",
"token_count": 20223
} | 372 |
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_workspace_job_quotas.yaml/0 | {
"file_path": "azure-quantum-python/azure-quantum/tests/unit/recordings/test_workspace_job_quotas.yaml",
"repo_id": "azure-quantum-python",
"token_count": 1376
} | 373 |
##
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
##
import os
from unittest import mock
import pytest
from common import (
QuantumTestBase,
SUBSCRIPTION_ID,
RESOURCE_GROUP,
WORKSPACE,
LOCATION,
STORAGE,
API_KEY,
)
from azure.quantum import Work... | azure-quantum-python/azure-quantum/tests/unit/test_workspace.py/0 | {
"file_path": "azure-quantum-python/azure-quantum/tests/unit/test_workspace.py",
"repo_id": "azure-quantum-python",
"token_count": 8308
} | 374 |
---
page_type: sample
author: msoeken
description: Azure Quantum Resource Estimation
ms.author: masoeken@microsoft.com
ms.date:
languages:
- python
- qsharp
products:
- azure-quantum
---
# Azure Quantum Resource Estimation
This folder contains various sample notebooks to interact with the Azure Quantum Resource Estim... | azure-quantum-python/samples/resource-estimator/README.md/0 | {
"file_path": "azure-quantum-python/samples/resource-estimator/README.md",
"repo_id": "azure-quantum-python",
"token_count": 280
} | 375 |
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`Line chart tests Verify Line Chart: LineChart 1`] = `
<div>
<div
style={
{
"alignItems": "center",
"justifyContent": "center",
}
}
>
<svg
height={1000}
id="linechart"
width={1000}
/>
</div>
</div>
`;... | azure-quantum-python/visualization/react-lib/src/components/d3-visualization-components/__tests__/__snapshots__/LineChart.test.tsx.snap/0 | {
"file_path": "azure-quantum-python/visualization/react-lib/src/components/d3-visualization-components/__tests__/__snapshots__/LineChart.test.tsx.snap",
"repo_id": "azure-quantum-python",
"token_count": 161
} | 376 |
{
"compilerOptions": {
"esModuleInterop": true,
"jsx": "react",
"module": "esnext",
"moduleResolution": "node",
"lib": [
"dom",
"es2016"
],
"strict": true,
"sourceMap": true,
"target": "es5",
},
"exclude": [
"node_modules"
]
} | azure-quantum-python/visualization/react-lib/tsconfig.json/0 | {
"file_path": "azure-quantum-python/visualization/react-lib/tsconfig.json",
"repo_id": "azure-quantum-python",
"token_count": 142
} | 377 |
all:
+$(MAKE) -C python
+$(MAKE) -C js
+$(MAKE) -C docs html
deps:
+$(MAKE) -C python deps
+$(MAKE) -C js deps
+$(MAKE) -C docs deps
check:
+$(MAKE) -C python check
+$(MAKE) -C js check
+$(MAKE) -C docs doctest
clean:
+$(MAKE) -C python clean
+$(MAKE) -C js clean
+$(MAKE) -C docs clean
.PHONY: all deps ... | bistring/Makefile/0 | {
"file_path": "bistring/Makefile",
"repo_id": "bistring",
"token_count": 173
} | 378 |
BistrBuilder
============
.. testsetup:: *
from bistring import BistrBuilder
.. autoclass:: bistring.BistrBuilder
| bistring/docs/Python/BistrBuilder.rst/0 | {
"file_path": "bistring/docs/Python/BistrBuilder.rst",
"repo_id": "bistring",
"token_count": 42
} | 379 |
import babel from "@rollup/plugin-babel";
import commonjs from "@rollup/plugin-commonjs";
import typescript from "@rollup/plugin-typescript";
import fs from "fs";
import pkg from "./package.json" assert { type: "json" };
export default [
{
input: "src/index.ts",
output: [
{
... | bistring/js/rollup.config.mjs/0 | {
"file_path": "bistring/js/rollup.config.mjs",
"repo_id": "bistring",
"token_count": 1712
} | 380 |
all:
pipenv run mypy -p bistring --html-report=build/mypy
deps:
pipenv sync --dev
check: all
pipenv run pytest
clean:
pipenv run python setup.py clean --all
.PHONY: all deps check clean
| bistring/python/Makefile/0 | {
"file_path": "bistring/python/Makefile",
"repo_id": "bistring",
"token_count": 79
} | 381 |
#!/usr/bin/env python3
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT license.
from pathlib import Path
from setuptools import setup
def readme():
with open(Path(__file__).parent/'README.rst') as f:
return f.read()
setup(
name='bistring',
version='0.5.0',
... | bistring/python/setup.py/0 | {
"file_path": "bistring/python/setup.py",
"repo_id": "bistring",
"token_count": 651
} | 382 |
# 
This repository contains code for the Python version of the [Microsoft Bot Framework SDK](https://github.com/Microsoft/botframework-sdk), which is part of the Microsoft Bot Framework - a comprehensive framework for building enterprise-grade conversation... | botbuilder-python/README.md/0 | {
"file_path": "botbuilder-python/README.md",
"repo_id": "botbuilder-python",
"token_count": 2406
} | 383 |
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
from .booking_dialog import BookingDialog
from .cancel_and_help_dialog import CancelAndHelpDialog
from .date_resolver_dialog import DateResolverDialog
from .main_dialog import MainDialog
__all__ = ["BookingDialog", "CancelAn... | botbuilder-python/generators/app/templates/core/{{cookiecutter.bot_name}}/dialogs/__init__.py/0 | {
"file_path": "botbuilder-python/generators/app/templates/core/{{cookiecutter.bot_name}}/dialogs/__init__.py",
"repo_id": "botbuilder-python",
"token_count": 104
} | 384 |
#!/usr/bin/env python3
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
import os
class DefaultConfig:
""" Bot Configuration """
PORT = 3978
APP_ID = os.environ.get("MicrosoftAppId", "")
APP_PASSWORD = os.environ.get("MicrosoftAppPassword", "")
APP_TYP... | botbuilder-python/generators/app/templates/echo/{{cookiecutter.bot_name}}/config.py/0 | {
"file_path": "botbuilder-python/generators/app/templates/echo/{{cookiecutter.bot_name}}/config.py",
"repo_id": "botbuilder-python",
"token_count": 152
} | 385 |
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
from .about import __title__, __version__
__all__ = ["__title__", "__version__"]
| botbuilder-python/libraries/botbuilder-ai/botbuilder/ai/__init__.py/0 | {
"file_path": "botbuilder-python/libraries/botbuilder-ai/botbuilder/ai/__init__.py",
"repo_id": "botbuilder-python",
"token_count": 50
} | 386 |
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
# ---------------------------------------------------------------------... | botbuilder-python/libraries/botbuilder-ai/botbuilder/ai/qna/dialogs/__init__.py/0 | {
"file_path": "botbuilder-python/libraries/botbuilder-ai/botbuilder/ai/qna/dialogs/__init__.py",
"repo_id": "botbuilder-python",
"token_count": 116
} | 387 |
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
from msrest.serialization import Model
class TrainRequestBody(Model):
"""Class the models the request body that is sent as feedback to the Train API."""
_attribute_map = {
"feedback_records": {"key": "feedb... | botbuilder-python/libraries/botbuilder-ai/botbuilder/ai/qna/models/train_request_body.py/0 | {
"file_path": "botbuilder-python/libraries/botbuilder-ai/botbuilder/ai/qna/models/train_request_body.py",
"repo_id": "botbuilder-python",
"token_count": 173
} | 388 |
{
"entities": {
"$instance": {
"Part": [
{
"endIndex": 5,
"modelType": "Regex Entity Extractor",
"recognitionSources": [
"externalEntities"
],
"startIndex": 0,
"text": "42ski",
"type": "Part"
... | botbuilder-python/libraries/botbuilder-ai/tests/luis/test_data/ExternalEntitiesAndRegex_v3.json/0 | {
"file_path": "botbuilder-python/libraries/botbuilder-ai/tests/luis/test_data/ExternalEntitiesAndRegex_v3.json",
"repo_id": "botbuilder-python",
"token_count": 2542
} | 389 |
{
"query": "my name is Emad",
"topScoringIntent": {
"intent": "SpecifyName",
"score": 0.8785189
},
"intents": [
{
"intent": "SpecifyName",
"score": 0.8785189
}
],
"entities": [
{
"entity": "emad",
"type": "Na... | botbuilder-python/libraries/botbuilder-ai/tests/luis/test_data/SingleIntent_SimplyEntity.json/0 | {
"file_path": "botbuilder-python/libraries/botbuilder-ai/tests/luis/test_data/SingleIntent_SimplyEntity.json",
"repo_id": "botbuilder-python",
"token_count": 263
} | 390 |
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
"""Common utilities for Django middleware."""
import collections
from applicationinsights import TelemetryClient
from applicationinsights.channel import (
AsynchronousQueue,
AsynchronousSender,
NullSender,
Syn... | botbuilder-python/libraries/botbuilder-applicationinsights/botbuilder/applicationinsights/django/common.py/0 | {
"file_path": "botbuilder-python/libraries/botbuilder-applicationinsights/botbuilder/applicationinsights/django/common.py",
"repo_id": "botbuilder-python",
"token_count": 1563
} | 391 |
# 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-azure/botbuilder/azure/__init__.py/0 | {
"file_path": "botbuilder-python/libraries/botbuilder-azure/botbuilder/azure/__init__.py",
"repo_id": "botbuilder-python",
"token_count": 253
} | 392 |
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
from http import HTTPStatus
from typing import List, Union
from botbuilder.schema import (
Activity,
ActivityTypes,
AdaptiveCardInvokeResponse,
AdaptiveCardInvokeValue,
ChannelAccount,
InvokeResponse,
... | botbuilder-python/libraries/botbuilder-core/botbuilder/core/activity_handler.py/0 | {
"file_path": "botbuilder-python/libraries/botbuilder-core/botbuilder/core/activity_handler.py",
"repo_id": "botbuilder-python",
"token_count": 9306
} | 393 |
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
from typing import Dict, Iterable, Type
class ComponentRegistration:
@staticmethod
def get_components() -> Iterable["ComponentRegistration"]:
return _components.values()
@staticmethod
def add(compon... | botbuilder-python/libraries/botbuilder-core/botbuilder/core/component_registration.py/0 | {
"file_path": "botbuilder-python/libraries/botbuilder-core/botbuilder/core/component_registration.py",
"repo_id": "botbuilder-python",
"token_count": 145
} | 394 |
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
"""The memory transcript store stores transcripts in volatile memory."""
import datetime
from typing import List, Dict
from botbuilder.schema import Activity
from .transcript_logger import PagedResult, TranscriptInfo, Transcri... | botbuilder-python/libraries/botbuilder-core/botbuilder/core/memory_transcript_store.py/0 | {
"file_path": "botbuilder-python/libraries/botbuilder-core/botbuilder/core/memory_transcript_store.py",
"repo_id": "botbuilder-python",
"token_count": 3151
} | 395 |
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
import asyncio
from typing import Awaitable, Callable
from botbuilder.schema import Activity, ActivityTypes
from botframework.connector.auth import ClaimsIdentity, SkillValidation
from .bot_adapter import BotAdapter
from .mi... | botbuilder-python/libraries/botbuilder-core/botbuilder/core/show_typing_middleware.py/0 | {
"file_path": "botbuilder-python/libraries/botbuilder-core/botbuilder/core/show_typing_middleware.py",
"repo_id": "botbuilder-python",
"token_count": 1451
} | 396 |
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
from abc import ABC
from typing import Awaitable, Callable
from botbuilder.core import TurnContext, InvokeResponse
from botbuilder.schema import Activity
class StreamingActivityProcessor(ABC):
"""
Process streaming... | botbuilder-python/libraries/botbuilder-core/botbuilder/core/streaming/streaming_activity_processor.py/0 | {
"file_path": "botbuilder-python/libraries/botbuilder-core/botbuilder/core/streaming/streaming_activity_processor.py",
"repo_id": "botbuilder-python",
"token_count": 173
} | 397 |
import aiounittest
from botbuilder.core import AutoSaveStateMiddleware, BotState, TurnContext
from botbuilder.core.adapters import TestAdapter
from botbuilder.schema import Activity
async def aux_func():
return
class BotStateMock(BotState):
def __init__(self, state): # pylint: disable=super-init-not-called... | botbuilder-python/libraries/botbuilder-core/tests/test_auto_save_middleware.py/0 | {
"file_path": "botbuilder-python/libraries/botbuilder-core/tests/test_auto_save_middleware.py",
"repo_id": "botbuilder-python",
"token_count": 1983
} | 398 |
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
import aiounittest
from botframework.connector.auth import MicrosoftAppCredentials
from botbuilder.core import TurnContext
from botbuilder.core.adapters import TestAdapter
from botbuilder.schema import Activity, Conversation... | botbuilder-python/libraries/botbuilder-core/tests/test_test_adapter.py/0 | {
"file_path": "botbuilder-python/libraries/botbuilder-core/tests/test_test_adapter.py",
"repo_id": "botbuilder-python",
"token_count": 4281
} | 399 |
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
from .find_values_options import FindValuesOptions
class FindChoicesOptions(FindValuesOptions):
"""Contains options to control how input is matched against a list of choices"""
def __init__(
self,
n... | botbuilder-python/libraries/botbuilder-dialogs/botbuilder/dialogs/choices/find_choices_options.py/0 | {
"file_path": "botbuilder-python/libraries/botbuilder-dialogs/botbuilder/dialogs/choices/find_choices_options.py",
"repo_id": "botbuilder-python",
"token_count": 474
} | 400 |
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
from typing import Dict
class DialogInstance:
"""
Tracking information for a dialog on the stack.
"""
def __init__(
self, id: str = None, state: Dict[str, object] = None
): # pylint: disable=in... | botbuilder-python/libraries/botbuilder-dialogs/botbuilder/dialogs/dialog_instance.py/0 | {
"file_path": "botbuilder-python/libraries/botbuilder-dialogs/botbuilder/dialogs/dialog_instance.py",
"repo_id": "botbuilder-python",
"token_count": 466
} | 401 |
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
from .alias_path_resolver import AliasPathResolver
from .at_at_path_resolver import AtAtPathResolver
from .at_path_resolver import AtPathResolver
from .dollar_path_resolver import DollarPathResolver
from .hash_path_resolver ... | botbuilder-python/libraries/botbuilder-dialogs/botbuilder/dialogs/memory/path_resolvers/__init__.py/0 | {
"file_path": "botbuilder-python/libraries/botbuilder-dialogs/botbuilder/dialogs/memory/path_resolvers/__init__.py",
"repo_id": "botbuilder-python",
"token_count": 181
} | 402 |
# 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 SettingsMemoryScope(MemoryScope):
def __init__(self):
super().__init__(scope_path.SETTINGS)
self._empty_setti... | botbuilder-python/libraries/botbuilder-dialogs/botbuilder/dialogs/memory/scopes/settings_memory_scope.py/0 | {
"file_path": "botbuilder-python/libraries/botbuilder-dialogs/botbuilder/dialogs/memory/scopes/settings_memory_scope.py",
"repo_id": "botbuilder-python",
"token_count": 358
} | 403 |
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
from botframework.connector.auth import AppCredentials
class OAuthPromptSettings:
def __init__(
self,
connection_name: str,
title: str,
text: str = None,
timeout: int = None,
... | botbuilder-python/libraries/botbuilder-dialogs/botbuilder/dialogs/prompts/oauth_prompt_settings.py/0 | {
"file_path": "botbuilder-python/libraries/botbuilder-dialogs/botbuilder/dialogs/prompts/oauth_prompt_settings.py",
"repo_id": "botbuilder-python",
"token_count": 696
} | 404 |
[bdist_wheel]
universal=0 | botbuilder-python/libraries/botbuilder-dialogs/setup.cfg/0 | {
"file_path": "botbuilder-python/libraries/botbuilder-dialogs/setup.cfg",
"repo_id": "botbuilder-python",
"token_count": 10
} | 405 |
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
import aiounittest
from botbuilder.dialogs import DialogSet, ComponentDialog, WaterfallDialog
from botbuilder.core import ConversationState, MemoryStorage, NullTelemetryClient
class MyBotTelemetryClient(NullTelemetryClient)... | botbuilder-python/libraries/botbuilder-dialogs/tests/test_dialog_set.py/0 | {
"file_path": "botbuilder-python/libraries/botbuilder-dialogs/tests/test_dialog_set.py",
"repo_id": "botbuilder-python",
"token_count": 1597
} | 406 |
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
from typing import Awaitable, Callable, Optional
from aiohttp.web import (
Request,
Response,
json_response,
WebSocketResponse,
HTTPBadRequest,
HTTPMethodNotAllowed,
HTTPUnauthorized,
HTTPUnsu... | botbuilder-python/libraries/botbuilder-integration-aiohttp/botbuilder/integration/aiohttp/cloud_adapter.py/0 | {
"file_path": "botbuilder-python/libraries/botbuilder-integration-aiohttp/botbuilder/integration/aiohttp/cloud_adapter.py",
"repo_id": "botbuilder-python",
"token_count": 2925
} | 407 |
from threading import current_thread
from aiohttp.web import middleware
# Map of thread id => POST body text
_REQUEST_BODIES = {}
def retrieve_aiohttp_body():
"""
Retrieve the POST body text from temporary cache.
The POST body corresponds with the thread id and should resides in
cache just for lifet... | botbuilder-python/libraries/botbuilder-integration-applicationinsights-aiohttp/botbuilder/integration/applicationinsights/aiohttp/aiohttp_telemetry_middleware.py/0 | {
"file_path": "botbuilder-python/libraries/botbuilder-integration-applicationinsights-aiohttp/botbuilder/integration/applicationinsights/aiohttp/aiohttp_telemetry_middleware.py",
"repo_id": "botbuilder-python",
"token_count": 271
} | 408 |
"""
"wheel" copyright (c) 2012-2017 Daniel Holth <dholth@fastmail.fm> and
contributors.
The MIT License
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limi... | botbuilder-python/libraries/botframework-connector/azure_bdist_wheel.py/0 | {
"file_path": "botbuilder-python/libraries/botframework-connector/azure_bdist_wheel.py",
"repo_id": "botbuilder-python",
"token_count": 9342
} | 409 |
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
from logging import Logger
from botframework.connector.aio import ConnectorClient
from ..about import __version__
from ..bot_framework_sdk_client_async import BotFrameworkConnectorConfiguration
from .connector_factory impor... | botbuilder-python/libraries/botframework-connector/botframework/connector/auth/_connector_factory_impl.py/0 | {
"file_path": "botbuilder-python/libraries/botframework-connector/botframework/connector/auth/_connector_factory_impl.py",
"repo_id": "botbuilder-python",
"token_count": 857
} | 410 |
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
class CredentialProvider:
"""CredentialProvider.
This class allows Bots to provide their own implementation
of what is, and what is not, a valid appId and password.
This is useful in the case of multi-tenant ... | botbuilder-python/libraries/botframework-connector/botframework/connector/auth/credential_provider.py/0 | {
"file_path": "botbuilder-python/libraries/botframework-connector/botframework/connector/auth/credential_provider.py",
"repo_id": "botbuilder-python",
"token_count": 944
} | 411 |
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
from typing import Optional, Type
from msrest.async_client import SDKClientAsync
from msrest.universal_http.async_abc import AsyncHTTPSender as AsyncHttpDriver
from msrest.pipeline import AsyncPipeline
from msrest.pipeline.a... | botbuilder-python/libraries/botframework-connector/botframework/connector/bot_framework_sdk_client_async.py/0 | {
"file_path": "botbuilder-python/libraries/botframework-connector/botframework/connector/bot_framework_sdk_client_async.py",
"repo_id": "botbuilder-python",
"token_count": 447
} | 412 |
# 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/teams/operations/teams_operations.py/0 | {
"file_path": "botbuilder-python/libraries/botframework-connector/botframework/connector/teams/operations/teams_operations.py",
"repo_id": "botbuilder-python",
"token_count": 3773
} | 413 |
interactions:
- request:
body: '{"bot": {"id": "B21UTEF8S:T03CWQ0QB"}, "members": [{"id": "B21UTEF8S:T03CWQ0QB"}],
"activity": {"type": "message", "channelId": "slack", "from": {"id": "B21UTEF8S:T03CWQ0QB"},
"recipient": {"id": "B21UTEF8S:T03CWQ0QB"}, "textFormat": "markdown", "attachmentLayout":
... | botbuilder-python/libraries/botframework-connector/tests/recordings/test_conversations_create_conversation_with_bot_as_only_member_fails.yaml/0 | {
"file_path": "botbuilder-python/libraries/botframework-connector/tests/recordings/test_conversations_create_conversation_with_bot_as_only_member_fails.yaml",
"repo_id": "botbuilder-python",
"token_count": 651
} | 414 |
interactions:
- request:
body: '{"type": "message", "channelId": "slack", "from": {"id": "B21UTEF8S:T03CWQ0QB"},
"recipient": {"id": "U19KH8EHJ:T03CWQ0QB"}, "textFormat": "markdown", "attachmentLayout":
"list", "text": "Updating activity..."}'
headers:
Accept: [application/json]
Accept-E... | botbuilder-python/libraries/botframework-connector/tests/recordings/test_conversations_update_activity_invalid_conversation_id_fails.yaml/0 | {
"file_path": "botbuilder-python/libraries/botframework-connector/tests/recordings/test_conversations_update_activity_invalid_conversation_id_fails.yaml",
"repo_id": "botbuilder-python",
"token_count": 1213
} | 415 |
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
from asyncio import Lock, Semaphore
from typing import List
from botframework.streaming.payloads.assemblers import PayloadStreamAssembler
class PayloadStream:
def __init__(self, assembler: PayloadStreamAssembler):
... | botbuilder-python/libraries/botframework-streaming/botframework/streaming/payload_stream.py/0 | {
"file_path": "botbuilder-python/libraries/botframework-streaming/botframework/streaming/payload_stream.py",
"repo_id": "botbuilder-python",
"token_count": 972
} | 416 |
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
from uuid import UUID
from typing import List
from botframework.streaming.payload_transport import PayloadSender
from botframework.streaming.payloads.models import PayloadTypes, RequestPayload
from .payload_disassembler imp... | botbuilder-python/libraries/botframework-streaming/botframework/streaming/payloads/disassemblers/request_disassembler.py/0 | {
"file_path": "botbuilder-python/libraries/botframework-streaming/botframework/streaming/payloads/disassemblers/request_disassembler.py",
"repo_id": "botbuilder-python",
"token_count": 478
} | 417 |
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
import asyncio
from uuid import UUID, uuid4
from botframework.streaming.payloads import (
PayloadAssemblerManager,
RequestManager,
SendOperations,
StreamManager,
)
from botframework.streaming.payloads.assemble... | botbuilder-python/libraries/botframework-streaming/botframework/streaming/protocol_adapter.py/0 | {
"file_path": "botbuilder-python/libraries/botframework-streaming/botframework/streaming/protocol_adapter.py",
"repo_id": "botbuilder-python",
"token_count": 1186
} | 418 |
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
from enum import IntEnum
class WebSocketMessageType(IntEnum):
# websocket spec types
CONTINUATION = 0
TEXT = 1
BINARY = 2
PING = 9
PONG = 10
CLOSE = 8
| botbuilder-python/libraries/botframework-streaming/botframework/streaming/transport/web_socket/web_socket_message_type.py/0 | {
"file_path": "botbuilder-python/libraries/botframework-streaming/botframework/streaming/transport/web_socket/web_socket_message_type.py",
"repo_id": "botbuilder-python",
"token_count": 99
} | 419 |
from unittest import TestCase
from uuid import UUID, uuid4
from botframework.streaming.payloads import StreamManager
from botframework.streaming.payloads.assemblers import PayloadStreamAssembler
from botframework.streaming.payloads.models import Header
class TestStreamManager(TestCase):
def test_ctor_null_cancel... | botbuilder-python/libraries/botframework-streaming/tests/test_stream_manager.py/0 | {
"file_path": "botbuilder-python/libraries/botframework-streaming/tests/test_stream_manager.py",
"repo_id": "botbuilder-python",
"token_count": 1465
} | 420 |
from .child_bot import ChildBot
__all__ = ["ChildBot"]
| botbuilder-python/tests/experimental/sso/child/bots/__init__.py/0 | {
"file_path": "botbuilder-python/tests/experimental/sso/child/bots/__init__.py",
"repo_id": "botbuilder-python",
"token_count": 19
} | 421 |
from botbuilder.core import BotFrameworkHttpClient, InvokeResponse, TurnContext
from botbuilder.core.skills import BotFrameworkSkill, ConversationIdFactoryBase
from botbuilder.schema import Activity
class SkillHttpClient(BotFrameworkHttpClient):
def __init__(self, credential_provider, conversation_id_factory, cha... | botbuilder-python/tests/experimental/sso/parent/skill_client.py/0 | {
"file_path": "botbuilder-python/tests/experimental/sso/parent/skill_client.py",
"repo_id": "botbuilder-python",
"token_count": 444
} | 422 |
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
from botbuilder.dialogs import (
WaterfallDialog,
WaterfallStepContext,
DialogTurnResult,
)
from botbuilder.dialogs.prompts import ConfirmPrompt, PromptOptions, OAuthPrompt, OAuthPromptSettings
from botbuilder.cor... | botbuilder-python/tests/skills/skills-prototypes/dialog-to-dialog/authentication-bot/dialogs/main_dialog.py/0 | {
"file_path": "botbuilder-python/tests/skills/skills-prototypes/dialog-to-dialog/authentication-bot/dialogs/main_dialog.py",
"repo_id": "botbuilder-python",
"token_count": 1139
} | 423 |
<?xml version='1.0' encoding='UTF-8'?>
<glyph name="acute" format="2">
<advance width="1200"/>
<unicode hex="00B4"/>
<outline>
<component base="acutecomb"/>
</outline>
<lib>
<dict>
<key>com.schriftgestaltung.Glyphs.ComponentInfo</key>
<array>
<dict>
<key>alignment</key>
... | cascadia-code/sources/CascadiaCode-Bold.ufo/glyphs/acute.glif/0 | {
"file_path": "cascadia-code/sources/CascadiaCode-Bold.ufo/glyphs/acute.glif",
"repo_id": "cascadia-code",
"token_count": 277
} | 424 |
<?xml version='1.0' encoding='UTF-8'?>
<glyph name="ainTwodotsverticalabove-ar" format="2">
<advance width="1200"/>
<unicode hex="075F"/>
<outline>
<component base="ain-ar"/>
<component base="twodotsverticalabove-ar" xOffset="-93" yOffset="436"/>
</outline>
<lib>
<dict>
<key>public.markColor... | cascadia-code/sources/CascadiaCode-Bold.ufo/glyphs/ainT_wodotsverticalabove-ar.glif/0 | {
"file_path": "cascadia-code/sources/CascadiaCode-Bold.ufo/glyphs/ainT_wodotsverticalabove-ar.glif",
"repo_id": "cascadia-code",
"token_count": 177
} | 425 |
<?xml version='1.0' encoding='UTF-8'?>
<glyph name="chedescender-cy" format="2">
<advance width="1200"/>
<unicode hex="04B7"/>
<anchor x="560" y="-270" name="bottom"/>
<outline>
<contour>
<point x="914" y="-270" type="line"/>
<point x="1183" y="-270" type="line"/>
<point x="1183" y="252" t... | cascadia-code/sources/CascadiaCode-Bold.ufo/glyphs/chedescender-cy.glif/0 | {
"file_path": "cascadia-code/sources/CascadiaCode-Bold.ufo/glyphs/chedescender-cy.glif",
"repo_id": "cascadia-code",
"token_count": 398
} | 426 |
<?xml version='1.0' encoding='UTF-8'?>
<glyph name="dad-ar" format="2">
<advance width="1200"/>
<unicode hex="0636"/>
<outline>
<component base="sad-ar"/>
<component base="dotabove-ar" xOffset="280" yOffset="373"/>
</outline>
<lib>
<dict>
<key>public.markColor</key>
<string>0.98,0.36,0... | cascadia-code/sources/CascadiaCode-Bold.ufo/glyphs/dad-ar.glif/0 | {
"file_path": "cascadia-code/sources/CascadiaCode-Bold.ufo/glyphs/dad-ar.glif",
"repo_id": "cascadia-code",
"token_count": 167
} | 427 |
<?xml version='1.0' encoding='UTF-8'?>
<glyph name="dalDotbelow-ar.fina" format="2">
<advance width="1200"/>
<outline>
<component base="dal-ar.fina"/>
<component base="dotbelow-ar" xOffset="-40" yOffset="-24"/>
</outline>
<lib>
<dict>
<key>public.markColor</key>
<string>0.98,0.36,0.67,1<... | cascadia-code/sources/CascadiaCode-Bold.ufo/glyphs/dalD_otbelow-ar.fina.glif/0 | {
"file_path": "cascadia-code/sources/CascadiaCode-Bold.ufo/glyphs/dalD_otbelow-ar.fina.glif",
"repo_id": "cascadia-code",
"token_count": 167
} | 428 |
<?xml version='1.0' encoding='UTF-8'?>
<glyph name="dalVinvertedbelow-ar.fina" format="2">
<advance width="1200"/>
<outline>
<component base="dal-ar.fina"/>
<component base="_vinvertedbelow-ar" xOffset="-40" yOffset="-24"/>
</outline>
<lib>
<dict>
<key>public.markColor</key>
<string>0.98... | cascadia-code/sources/CascadiaCode-Bold.ufo/glyphs/dalV_invertedbelow-ar.fina.glif/0 | {
"file_path": "cascadia-code/sources/CascadiaCode-Bold.ufo/glyphs/dalV_invertedbelow-ar.fina.glif",
"repo_id": "cascadia-code",
"token_count": 170
} | 429 |
<?xml version='1.0' encoding='UTF-8'?>
<glyph name="firsttonechinese" format="2">
<advance width="1200"/>
<unicode hex="02C9"/>
<outline>
<component base="macron"/>
</outline>
<lib>
<dict>
<key>com.schriftgestaltung.Glyphs.ComponentInfo</key>
<array>
<dict>
<key>alignment... | cascadia-code/sources/CascadiaCode-Bold.ufo/glyphs/firsttonechinese.glif/0 | {
"file_path": "cascadia-code/sources/CascadiaCode-Bold.ufo/glyphs/firsttonechinese.glif",
"repo_id": "cascadia-code",
"token_count": 275
} | 430 |
<?xml version='1.0' encoding='UTF-8'?>
<glyph name="gershayim-hb" format="2">
<advance width="1200"/>
<unicode hex="05F4"/>
<outline>
<component base="geresh-hb" xOffset="218"/>
<component base="geresh-hb" xOffset="-222"/>
</outline>
<lib>
<dict>
<key>public.markColor</key>
<string>0.9... | cascadia-code/sources/CascadiaCode-Bold.ufo/glyphs/gershayim-hb.glif/0 | {
"file_path": "cascadia-code/sources/CascadiaCode-Bold.ufo/glyphs/gershayim-hb.glif",
"repo_id": "cascadia-code",
"token_count": 171
} | 431 |
<?xml version='1.0' encoding='UTF-8'?>
<glyph name="jeemTwodotsabove-ar.fina" format="2">
<advance width="1200"/>
<outline>
<component base="jeem-ar.fina"/>
<component base="twodotshorizontalabove-ar" xOffset="-34" yOffset="392"/>
</outline>
<lib>
<dict>
<key>public.markColor</key>
<stri... | cascadia-code/sources/CascadiaCode-Bold.ufo/glyphs/jeemT_wodotsabove-ar.fina.glif/0 | {
"file_path": "cascadia-code/sources/CascadiaCode-Bold.ufo/glyphs/jeemT_wodotsabove-ar.fina.glif",
"repo_id": "cascadia-code",
"token_count": 174
} | 432 |
<?xml version='1.0' encoding='UTF-8'?>
<glyph name="kehehThreedotsupbelow-ar" format="2">
<advance width="1200"/>
<unicode hex="0764"/>
<outline>
<component base="keheh-ar"/>
<component base="threedotsupbelow-ar" xOffset="-47" yOffset="-24"/>
</outline>
<lib>
<dict>
<key>public.markColor</ke... | cascadia-code/sources/CascadiaCode-Bold.ufo/glyphs/kehehT_hreedotsupbelow-ar.glif/0 | {
"file_path": "cascadia-code/sources/CascadiaCode-Bold.ufo/glyphs/kehehT_hreedotsupbelow-ar.glif",
"repo_id": "cascadia-code",
"token_count": 180
} | 433 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.