text stringlengths 5 22M | id stringlengths 12 177 | metadata dict | __index_level_0__ int64 0 1.37k |
|---|---|---|---|
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
import requests
from .auth import AppCredentials
class EmulatorApiClient:
@staticmethod
async def emulate_oauth_cards(
credentials: AppCredentials, emulator_url: str, emulate: bool
) -> bool:
tok... | botbuilder-python/libraries/botframework-connector/botframework/connector/emulator_api_client.py/0 | {
"file_path": "botbuilder-python/libraries/botframework-connector/botframework/connector/emulator_api_client.py",
"repo_id": "botbuilder-python",
"token_count": 335
} | 394 |
# 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/__init__.py/0 | {
"file_path": "botbuilder-python/libraries/botframework-connector/botframework/connector/token_api/__init__.py",
"repo_id": "botbuilder-python",
"token_count": 110
} | 395 |
interactions:
- request:
body: '{"from": {"id": "B21UTEF8S:T03CWQ0QB"}, "type": "message", "recipient":
{"id": "U19KH8EHJ:T03CWQ0QB"}, "text": "Activity to be deleted..", "channelId":
"slack"}'
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep... | botbuilder-python/libraries/botframework-connector/tests/recordings/test_conversations_delete_activity.yaml/0 | {
"file_path": "botbuilder-python/libraries/botframework-connector/tests/recordings/test_conversations_delete_activity.yaml",
"repo_id": "botbuilder-python",
"token_count": 1106
} | 396 |
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
from asyncio import Event, ensure_future, iscoroutinefunction, isfuture
from typing import Awaitable, Callable, List
from botframework.streaming.transport import (
DisconnectedEventArgs,
TransportSenderBase,
Tran... | botbuilder-python/libraries/botframework-streaming/botframework/streaming/payload_transport/payload_sender.py/0 | {
"file_path": "botbuilder-python/libraries/botframework-streaming/botframework/streaming/payload_transport/payload_sender.py",
"repo_id": "botbuilder-python",
"token_count": 2926
} | 397 |
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
from uuid import UUID
from typing import List
from botframework.streaming.transport import TransportConstants
from .models import Header
_CHAR_TO_BINARY_INT = {val.decode(): list(val)[0] for val in [b".", b"\n", b"1", b"0"... | botbuilder-python/libraries/botframework-streaming/botframework/streaming/payloads/header_serializer.py/0 | {
"file_path": "botbuilder-python/libraries/botframework-streaming/botframework/streaming/payloads/header_serializer.py",
"repo_id": "botbuilder-python",
"token_count": 2454
} | 398 |
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
from abc import ABC
from logging import Logger
from .receive_request import ReceiveRequest
from .streaming_response import StreamingResponse
class RequestHandler(ABC):
async def process_request(
self, request: ... | botbuilder-python/libraries/botframework-streaming/botframework/streaming/request_handler.py/0 | {
"file_path": "botbuilder-python/libraries/botframework-streaming/botframework/streaming/request_handler.py",
"repo_id": "botbuilder-python",
"token_count": 122
} | 399 |
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
import traceback
from typing import List
from botframework.streaming.transport import TransportReceiverBase, TransportSenderBase
from .web_socket import WebSocket
from .web_socket_message_type import WebSocketMessageType
fr... | botbuilder-python/libraries/botframework-streaming/botframework/streaming/transport/web_socket/web_socket_transport.py/0 | {
"file_path": "botbuilder-python/libraries/botframework-streaming/botframework/streaming/transport/web_socket/web_socket_transport.py",
"repo_id": "botbuilder-python",
"token_count": 1617
} | 400 |
variables:
# Container registry service connection established during pipeline creation
CI_PULL_REQUEST: $(System.PullRequest.PullRequestId)
COVERALLS_FLAG_NAME: Build \# $(Build.BuildNumber)
COVERALLS_GIT_BRANCH: $(Build.SourceBranchName)
COVERALLS_GIT_COMMIT: $(Build.SourceVersion)
COVERALLS_SERVICE_JOB_I... | botbuilder-python/pipelines/botbuilder-python-ci.yml/0 | {
"file_path": "botbuilder-python/pipelines/botbuilder-python-ci.yml",
"repo_id": "botbuilder-python",
"token_count": 1666
} | 401 |
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
from typing import List
from botbuilder.core import ChannelServiceHandler
from botbuilder.schema import (
Activity,
ChannelAccount,
ConversationParameters,
ConversationResourceResponse,
ConversationsResul... | botbuilder-python/tests/experimental/test-protocol/routing_handler.py/0 | {
"file_path": "botbuilder-python/tests/experimental/test-protocol/routing_handler.py",
"repo_id": "botbuilder-python",
"token_count": 1984
} | 402 |
#!/bin/bash
set -e
echo "Starting SSH ..."
service ssh start
# flask run --port 3978 --host 0.0.0.0
python /functionaltestbot/app.py --host 0.0.0.0 | botbuilder-python/tests/functional-tests/functionaltestbot/init.sh/0 | {
"file_path": "botbuilder-python/tests/functional-tests/functionaltestbot/init.sh",
"repo_id": "botbuilder-python",
"token_count": 58
} | 403 |
<?xml version='1.0' encoding='UTF-8'?>
<glyph name="ainThreedots-ar.fina" format="2">
<advance width="1200"/>
<outline>
<component base="ain-ar.fina"/>
<component base="threedotsupabove-ar" xOffset="10" yOffset="273"/>
</outline>
<lib>
<dict>
<key>public.markColor</key>
<string>0.98,0.36... | cascadia-code/sources/CascadiaCode-Bold.ufo/glyphs/ainT_hreedots-ar.fina.glif/0 | {
"file_path": "cascadia-code/sources/CascadiaCode-Bold.ufo/glyphs/ainT_hreedots-ar.fina.glif",
"repo_id": "cascadia-code",
"token_count": 168
} | 404 |
<?xml version='1.0' encoding='UTF-8'?>
<glyph name="cedilla" format="2">
<advance width="1200"/>
<unicode hex="00B8"/>
<outline>
<component base="cedillacomb"/>
</outline>
<lib>
<dict>
<key>com.schriftgestaltung.Glyphs.ComponentInfo</key>
<array>
<dict>
<key>alignment</ke... | cascadia-code/sources/CascadiaCode-Bold.ufo/glyphs/cedilla.glif/0 | {
"file_path": "cascadia-code/sources/CascadiaCode-Bold.ufo/glyphs/cedilla.glif",
"repo_id": "cascadia-code",
"token_count": 275
} | 405 |
<?xml version='1.0' encoding='UTF-8'?>
<glyph name="divisionslash" format="2">
<advance width="1200"/>
<unicode hex="2215"/>
<outline>
<component base="slash" xOffset="2"/>
</outline>
<lib>
<dict>
<key>com.schriftgestaltung.Glyphs.ComponentInfo</key>
<array>
<dict>
<key>a... | cascadia-code/sources/CascadiaCode-Bold.ufo/glyphs/divisionslash.glif/0 | {
"file_path": "cascadia-code/sources/CascadiaCode-Bold.ufo/glyphs/divisionslash.glif",
"repo_id": "cascadia-code",
"token_count": 278
} | 406 |
<?xml version='1.0' encoding='UTF-8'?>
<glyph name="hahTahTwodotshorizontalabove-ar.fina" format="2">
<advance width="1200"/>
<outline>
<component base="hah-ar.fina"/>
<component base="twodotstahcenter-ar" xScale="0.9" yScale="0.9" xOffset="73" yOffset="-330"/>
</outline>
<lib>
<dict>
<key>com... | cascadia-code/sources/CascadiaCode-Bold.ufo/glyphs/hahT_ahT_wodotshorizontalabove-ar.fina.glif/0 | {
"file_path": "cascadia-code/sources/CascadiaCode-Bold.ufo/glyphs/hahT_ahT_wodotshorizontalabove-ar.fina.glif",
"repo_id": "cascadia-code",
"token_count": 294
} | 407 |
<?xml version='1.0' encoding='UTF-8'?>
<glyph name="kehehTwodotshorizontalabove-ar.fina" format="2">
<advance width="1200"/>
<anchor x="625" y="1494" name="top"/>
<outline>
<component base="keheh-ar.fina"/>
<component base="twodotshorizontalabove-ar.v2" xScale="0.7" yScale="0.7" xOffset="206" yOffset="750... | cascadia-code/sources/CascadiaCode-Bold.ufo/glyphs/kehehT_wodotshorizontalabove-ar.fina.glif/0 | {
"file_path": "cascadia-code/sources/CascadiaCode-Bold.ufo/glyphs/kehehT_wodotshorizontalabove-ar.fina.glif",
"repo_id": "cascadia-code",
"token_count": 213
} | 408 |
<?xml version='1.0' encoding='UTF-8'?>
<glyph name="lamDotabove-ar.init" format="2">
<advance width="1200"/>
<guideline x="305" y="819" angle="0"/>
<outline>
<component base="lam-ar.init"/>
<component base="dotabove-ar" xOffset="234" yOffset="925"/>
</outline>
<lib>
<dict>
<key>public.markCo... | cascadia-code/sources/CascadiaCode-Bold.ufo/glyphs/lamD_otabove-ar.init.glif/0 | {
"file_path": "cascadia-code/sources/CascadiaCode-Bold.ufo/glyphs/lamD_otabove-ar.init.glif",
"repo_id": "cascadia-code",
"token_count": 182
} | 409 |
<?xml version='1.0' encoding='UTF-8'?>
<glyph name="meemDotabove-ar.fina" format="2">
<advance width="1200"/>
<guideline x="254" y="551" angle="0"/>
<outline>
<component base="meem-ar.fina"/>
<component base="dotabove-ar" xOffset="43" yOffset="262"/>
</outline>
<lib>
<dict>
<key>public.markC... | cascadia-code/sources/CascadiaCode-Bold.ufo/glyphs/meemD_otabove-ar.fina.glif/0 | {
"file_path": "cascadia-code/sources/CascadiaCode-Bold.ufo/glyphs/meemD_otabove-ar.fina.glif",
"repo_id": "cascadia-code",
"token_count": 185
} | 410 |
<?xml version='1.0' encoding='UTF-8'?>
<glyph name="oslash" format="2">
<advance width="1200"/>
<unicode hex="00F8"/>
<outline>
<contour>
<point x="301" y="-134" type="line"/>
<point x="1036" y="1116" type="line"/>
<point x="896" y="1198" type="line"/>
<point x="171" y="-42" type="line... | cascadia-code/sources/CascadiaCode-Bold.ufo/glyphs/oslash.glif/0 | {
"file_path": "cascadia-code/sources/CascadiaCode-Bold.ufo/glyphs/oslash.glif",
"repo_id": "cascadia-code",
"token_count": 372
} | 411 |
<?xml version='1.0' encoding='UTF-8'?>
<glyph name="period_period.liga" format="2">
<advance width="1200"/>
<outline>
<component base="period" xOffset="140"/>
<component base="period" xOffset="1060"/>
</outline>
<lib>
<dict>
<key>com.schriftgestaltung.Glyphs.ComponentInfo</key>
<array>
... | cascadia-code/sources/CascadiaCode-Bold.ufo/glyphs/period_period.liga.glif/0 | {
"file_path": "cascadia-code/sources/CascadiaCode-Bold.ufo/glyphs/period_period.liga.glif",
"repo_id": "cascadia-code",
"token_count": 410
} | 412 |
<?xml version='1.0' encoding='UTF-8'?>
<glyph name="questiongreek" format="2">
<advance width="1200"/>
<unicode hex="037E"/>
<outline>
<component base="semicolon"/>
</outline>
<lib>
<dict>
<key>com.schriftgestaltung.Glyphs.ComponentInfo</key>
<array>
<dict>
<key>alignment... | cascadia-code/sources/CascadiaCode-Bold.ufo/glyphs/questiongreek.glif/0 | {
"file_path": "cascadia-code/sources/CascadiaCode-Bold.ufo/glyphs/questiongreek.glif",
"repo_id": "cascadia-code",
"token_count": 276
} | 413 |
<?xml version='1.0' encoding='UTF-8'?>
<glyph name="threequarters" format="2">
<advance width="1200"/>
<unicode hex="00BE"/>
<outline>
<contour>
<point x="211" y="269" type="line"/>
<point x="1121" y="969" type="line"/>
<point x="989" y="1143" type="line"/>
<point x="79" y="449" type="... | cascadia-code/sources/CascadiaCode-Bold.ufo/glyphs/threequarters.glif/0 | {
"file_path": "cascadia-code/sources/CascadiaCode-Bold.ufo/glyphs/threequarters.glif",
"repo_id": "cascadia-code",
"token_count": 531
} | 414 |
<?xml version='1.0' encoding='UTF-8'?>
<glyph name="Endescender-cy" format="2">
<advance width="1200"/>
<unicode hex="04A2"/>
<outline>
<contour>
<point x="998" y="-319" type="line"/>
<point x="1044" y="-188"/>
<point x="1111" y="97"/>
<point x="1119" y="244" type="curve"/>
<poin... | cascadia-code/sources/CascadiaCode-BoldItalic.ufo/glyphs/E_ndescender-cy.glif/0 | {
"file_path": "cascadia-code/sources/CascadiaCode-BoldItalic.ufo/glyphs/E_ndescender-cy.glif",
"repo_id": "cascadia-code",
"token_count": 468
} | 415 |
<?xml version='1.0' encoding='UTF-8'?>
<glyph name="Ycircumflex" format="2">
<advance width="1200"/>
<unicode hex="0176"/>
<outline>
<component base="Y"/>
<component base="circumflexcomb.case" xOffset="-5"/>
</outline>
</glyph>
| cascadia-code/sources/CascadiaCode-ExtraLight.ufo/glyphs/Y_circumflex.glif/0 | {
"file_path": "cascadia-code/sources/CascadiaCode-ExtraLight.ufo/glyphs/Y_circumflex.glif",
"repo_id": "cascadia-code",
"token_count": 98
} | 416 |
<?xml version='1.0' encoding='UTF-8'?>
<glyph name="eight-persiansuperior" format="2">
<advance width="1200"/>
<outline>
<component base="eight-arsuperior" xOffset="6"/>
</outline>
<lib>
<dict>
<key>com.schriftgestaltung.Glyphs.ComponentInfo</key>
<array>
<dict>
<key>alignm... | cascadia-code/sources/CascadiaCode-ExtraLight.ufo/glyphs/eight-persiansuperior.glif/0 | {
"file_path": "cascadia-code/sources/CascadiaCode-ExtraLight.ufo/glyphs/eight-persiansuperior.glif",
"repo_id": "cascadia-code",
"token_count": 438
} | 417 |
<?xml version='1.0' encoding='UTF-8'?>
<glyph name="gershayim-hb" format="2">
<advance width="1200"/>
<unicode hex="05F4"/>
<guideline x="1042" y="834" angle="90"/>
<outline>
<component base="geresh-hb" xOffset="197"/>
<component base="geresh-hb" xOffset="-250"/>
</outline>
<lib>
<dict>
<k... | cascadia-code/sources/CascadiaCode-ExtraLight.ufo/glyphs/gershayim-hb.glif/0 | {
"file_path": "cascadia-code/sources/CascadiaCode-ExtraLight.ufo/glyphs/gershayim-hb.glif",
"repo_id": "cascadia-code",
"token_count": 191
} | 418 |
<?xml version='1.0' encoding='UTF-8'?>
<glyph name="hahHamzaabove-ar" format="2">
<advance width="1200"/>
<unicode hex="0681"/>
<outline>
<component base="hah-ar"/>
<component base="hamzaabove-ar" xOffset="-54" yOffset="-200"/>
</outline>
<lib>
<dict>
<key>public.markColor</key>
<strin... | cascadia-code/sources/CascadiaCode-ExtraLight.ufo/glyphs/hahH_amzaabove-ar.glif/0 | {
"file_path": "cascadia-code/sources/CascadiaCode-ExtraLight.ufo/glyphs/hahH_amzaabove-ar.glif",
"repo_id": "cascadia-code",
"token_count": 174
} | 419 |
<?xml version='1.0' encoding='UTF-8'?>
<glyph name="tchehDotabove-ar" format="2">
<advance width="1200"/>
<unicode hex="06BF"/>
<outline>
<component base="tcheh-ar"/>
<component base="dotabove-ar" xOffset="-34" yOffset="362"/>
</outline>
<lib>
<dict>
<key>com.schriftgestaltung.Glyphs.glyph.l... | cascadia-code/sources/CascadiaCode-ExtraLight.ufo/glyphs/tchehD_otabove-ar.glif/0 | {
"file_path": "cascadia-code/sources/CascadiaCode-ExtraLight.ufo/glyphs/tchehD_otabove-ar.glif",
"repo_id": "cascadia-code",
"token_count": 272
} | 420 |
<?xml version='1.0' encoding='UTF-8'?>
<glyph name="Ecircumflexgrave" format="2">
<advance width="1200"/>
<unicode hex="1EC0"/>
<outline>
<component base="E"/>
<component base="circumflexcomb.case" xOffset="40"/>
<component base="gravecomb.case" xOffset="427" yOffset="248"/>
</outline>
</glyph>
| cascadia-code/sources/CascadiaCode-Italic.ufo/glyphs/E_circumflexgrave.glif/0 | {
"file_path": "cascadia-code/sources/CascadiaCode-Italic.ufo/glyphs/E_circumflexgrave.glif",
"repo_id": "cascadia-code",
"token_count": 122
} | 421 |
<?xml version='1.0' encoding='UTF-8'?>
<glyph name="Ocircumflexgrave" format="2">
<advance width="1200"/>
<unicode hex="1ED2"/>
<outline>
<component base="O"/>
<component base="circumflexcomb.case"/>
<component base="gravecomb.case" xOffset="387" yOffset="248"/>
</outline>
</glyph>
| cascadia-code/sources/CascadiaCode-Italic.ufo/glyphs/O_circumflexgrave.glif/0 | {
"file_path": "cascadia-code/sources/CascadiaCode-Italic.ufo/glyphs/O_circumflexgrave.glif",
"repo_id": "cascadia-code",
"token_count": 117
} | 422 |
<?xml version='1.0' encoding='UTF-8'?>
<glyph name="Omacronacute" format="2">
<advance width="1200"/>
<unicode hex="1E52"/>
<outline>
<component base="O"/>
<component base="macroncomb.case" xOffset="2"/>
<component base="acutecomb.case" xOffset="56" yOffset="308"/>
</outline>
</glyph>
| cascadia-code/sources/CascadiaCode-Italic.ufo/glyphs/O_macronacute.glif/0 | {
"file_path": "cascadia-code/sources/CascadiaCode-Italic.ufo/glyphs/O_macronacute.glif",
"repo_id": "cascadia-code",
"token_count": 123
} | 423 |
<?xml version='1.0' encoding='UTF-8'?>
<glyph name="abrevehookabove" format="2">
<advance width="1200"/>
<unicode hex="1EB3"/>
<outline>
<component base="a"/>
<component base="brevecomb" xOffset="30"/>
<component base="hookabovecomb" xOffset="115" yOffset="480"/>
</outline>
</glyph>
| cascadia-code/sources/CascadiaCode-Italic.ufo/glyphs/abrevehookabove.glif/0 | {
"file_path": "cascadia-code/sources/CascadiaCode-Italic.ufo/glyphs/abrevehookabove.glif",
"repo_id": "cascadia-code",
"token_count": 117
} | 424 |
<?xml version='1.0' encoding='UTF-8'?>
<glyph name="ecircumflexhookabove" format="2">
<advance width="1200"/>
<unicode hex="1EC3"/>
<anchor x="506" y="0" name="bottom"/>
<outline>
<component base="e"/>
<component base="circumflexcomb" xOffset="15"/>
<component base="hookabovecomb" xOffset="373" yOff... | cascadia-code/sources/CascadiaCode-Italic.ufo/glyphs/ecircumflexhookabove.glif/0 | {
"file_path": "cascadia-code/sources/CascadiaCode-Italic.ufo/glyphs/ecircumflexhookabove.glif",
"repo_id": "cascadia-code",
"token_count": 137
} | 425 |
<?xml version='1.0' encoding='UTF-8'?>
<glyph name="gje-cy" format="2">
<advance width="1200"/>
<unicode hex="0453"/>
<outline>
<component base="iacute"/>
</outline>
</glyph>
| cascadia-code/sources/CascadiaCode-Italic.ufo/glyphs/gje-cy.glif/0 | {
"file_path": "cascadia-code/sources/CascadiaCode-Italic.ufo/glyphs/gje-cy.glif",
"repo_id": "cascadia-code",
"token_count": 78
} | 426 |
<?xml version='1.0' encoding='UTF-8'?>
<glyph name="less_bar_bar_bar.liga" format="2">
<advance width="1200"/>
<outline>
<component base="bar" xOffset="2270"/>
<component base="bar" xOffset="3239"/>
<component base="less_bar.liga" xOffset="141"/>
</outline>
</glyph>
| cascadia-code/sources/CascadiaCode-Italic.ufo/glyphs/less_bar_bar_bar.liga.glif/0 | {
"file_path": "cascadia-code/sources/CascadiaCode-Italic.ufo/glyphs/less_bar_bar_bar.liga.glif",
"repo_id": "cascadia-code",
"token_count": 113
} | 427 |
<?xml version='1.0' encoding='UTF-8'?>
<glyph name="oacute.loclPLK" format="2">
<advance width="1200"/>
<outline>
<component base="o"/>
<component base="acutecomb.loclPLK"/>
</outline>
</glyph>
| cascadia-code/sources/CascadiaCode-Italic.ufo/glyphs/oacute.loclP_L_K_.glif/0 | {
"file_path": "cascadia-code/sources/CascadiaCode-Italic.ufo/glyphs/oacute.loclP_L_K_.glif",
"repo_id": "cascadia-code",
"token_count": 89
} | 428 |
<?xml version='1.0' encoding='UTF-8'?>
<glyph name="seven.dnom" format="2">
<advance width="1200"/>
<outline>
<component base="sevensuperior" xOffset="-141" yOffset="-802"/>
</outline>
</glyph>
| cascadia-code/sources/CascadiaCode-Italic.ufo/glyphs/seven.dnom.glif/0 | {
"file_path": "cascadia-code/sources/CascadiaCode-Italic.ufo/glyphs/seven.dnom.glif",
"repo_id": "cascadia-code",
"token_count": 81
} | 429 |
<?xml version='1.0' encoding='UTF-8'?>
<glyph name="shha-cy.alt" format="2">
<advance width="1200"/>
<outline>
<component base="h.alt"/>
</outline>
<lib>
<dict>
<key>public.markColor</key>
<string>0.97,1,0,1</string>
</dict>
</lib>
</glyph>
| cascadia-code/sources/CascadiaCode-Italic.ufo/glyphs/shha-cy.alt.glif/0 | {
"file_path": "cascadia-code/sources/CascadiaCode-Italic.ufo/glyphs/shha-cy.alt.glif",
"repo_id": "cascadia-code",
"token_count": 132
} | 430 |
<?xml version='1.0' encoding='UTF-8'?>
<glyph name="threequarters" format="2">
<advance width="1200"/>
<unicode hex="00BE"/>
<outline>
<contour>
<point x="168" y="284" type="line"/>
<point x="1188" y="1012" type="line"/>
<point x="1124" y="1122" type="line"/>
<point x="103" y="400" typ... | cascadia-code/sources/CascadiaCode-Italic.ufo/glyphs/threequarters.glif/0 | {
"file_path": "cascadia-code/sources/CascadiaCode-Italic.ufo/glyphs/threequarters.glif",
"repo_id": "cascadia-code",
"token_count": 202
} | 431 |
<?xml version='1.0' encoding='UTF-8'?>
<glyph name="zero.dnom" format="2">
<advance width="1200"/>
<outline>
<component base="zerosuperior" xOffset="-143" yOffset="-812"/>
</outline>
</glyph>
| cascadia-code/sources/CascadiaCode-Italic.ufo/glyphs/zero.dnom.glif/0 | {
"file_path": "cascadia-code/sources/CascadiaCode-Italic.ufo/glyphs/zero.dnom.glif",
"repo_id": "cascadia-code",
"token_count": 83
} | 432 |
<?xml version='1.0' encoding='UTF-8'?>
<glyph name="ainTwodotshorizontalabove-ar" format="2">
<advance width="1200"/>
<unicode hex="075D"/>
<outline>
<component base="ain-ar"/>
<component base="twodotshorizontalabove-ar" xOffset="-93" yOffset="466"/>
</outline>
<lib>
<dict>
<key>com.schriftg... | cascadia-code/sources/CascadiaCode-Regular.ufo/glyphs/ainT_wodotshorizontalabove-ar.glif/0 | {
"file_path": "cascadia-code/sources/CascadiaCode-Regular.ufo/glyphs/ainT_wodotshorizontalabove-ar.glif",
"repo_id": "cascadia-code",
"token_count": 359
} | 433 |
<?xml version='1.0' encoding='UTF-8'?>
<glyph name="dahal-ar.fina" format="2">
<advance width="1200"/>
<outline>
<component base="dal-ar.fina"/>
<component base="twodotshorizontalabove-ar" xOffset="36" yOffset="492"/>
</outline>
<lib>
<dict>
<key>com.schriftgestaltung.Glyphs.ComponentInfo</key... | cascadia-code/sources/CascadiaCode-Regular.ufo/glyphs/dahal-ar.fina.glif/0 | {
"file_path": "cascadia-code/sources/CascadiaCode-Regular.ufo/glyphs/dahal-ar.fina.glif",
"repo_id": "cascadia-code",
"token_count": 349
} | 434 |
<?xml version='1.0' encoding='UTF-8'?>
<glyph name="gueh-ar.fina" format="2">
<advance width="1200"/>
<outline>
<component base="gaf-ar.fina"/>
<component base="twodotsverticalbelow-ar" xOffset="-47" yOffset="-24"/>
</outline>
<lib>
<dict>
<key>com.schriftgestaltung.Glyphs.ComponentInfo</key>
... | cascadia-code/sources/CascadiaCode-Regular.ufo/glyphs/gueh-ar.fina.glif/0 | {
"file_path": "cascadia-code/sources/CascadiaCode-Regular.ufo/glyphs/gueh-ar.fina.glif",
"repo_id": "cascadia-code",
"token_count": 349
} | 435 |
<?xml version='1.0' encoding='UTF-8'?>
<glyph name="kehehThreedotsbelow-ar" format="2">
<advance width="1200"/>
<unicode hex="063C"/>
<outline>
<component base="keheh-ar"/>
<component base="threedotsdownbelow-ar" xOffset="-45" yOffset="-18"/>
</outline>
<lib>
<dict>
<key>com.schriftgestaltun... | cascadia-code/sources/CascadiaCode-Regular.ufo/glyphs/kehehT_hreedotsbelow-ar.glif/0 | {
"file_path": "cascadia-code/sources/CascadiaCode-Regular.ufo/glyphs/kehehT_hreedotsbelow-ar.glif",
"repo_id": "cascadia-code",
"token_count": 358
} | 436 |
<?xml version='1.0' encoding='UTF-8'?>
<glyph name="noon-ar" format="2">
<advance width="1200"/>
<unicode hex="0646"/>
<outline>
<component base="noonghunna-ar"/>
<component base="dotabove-ar" xOffset="4" yOffset="11"/>
</outline>
<lib>
<dict>
<key>com.schriftgestaltung.Glyphs.ComponentInfo<... | cascadia-code/sources/CascadiaCode-Regular.ufo/glyphs/noon-ar.glif/0 | {
"file_path": "cascadia-code/sources/CascadiaCode-Regular.ufo/glyphs/noon-ar.glif",
"repo_id": "cascadia-code",
"token_count": 344
} | 437 |
<?xml version='1.0' encoding='UTF-8'?>
<glyph name="noonRing-ar.init.alt" format="2">
<advance width="1200"/>
<anchor x="0" y="0" name="overlap"/>
<outline>
<component base="yehKashmiri-ar.init.alt"/>
<component base="dotabove-ar" xOffset="275" yOffset="335"/>
</outline>
<lib>
<dict>
<key>co... | cascadia-code/sources/CascadiaCode-Regular.ufo/glyphs/noonR_ing-ar.init.alt.glif/0 | {
"file_path": "cascadia-code/sources/CascadiaCode-Regular.ufo/glyphs/noonR_ing-ar.init.alt.glif",
"repo_id": "cascadia-code",
"token_count": 398
} | 438 |
<?xml version='1.0' encoding='UTF-8'?>
<glyph name="qaf-ar" format="2">
<advance width="1200"/>
<unicode hex="0642"/>
<outline>
<component base="qafDotless-ar"/>
<component base="twodotshorizontalabove-ar" xOffset="213" yOffset="224"/>
</outline>
<lib>
<dict>
<key>com.schriftgestaltung.Glyph... | cascadia-code/sources/CascadiaCode-Regular.ufo/glyphs/qaf-ar.glif/0 | {
"file_path": "cascadia-code/sources/CascadiaCode-Regular.ufo/glyphs/qaf-ar.glif",
"repo_id": "cascadia-code",
"token_count": 356
} | 439 |
<?xml version='1.0' encoding='UTF-8'?>
<glyph name="qafDotbelow-ar.init" format="2">
<advance width="1200"/>
<outline>
<component base="qaf-ar.init"/>
<component base="dotbelow-ar" xOffset="113" yOffset="-24"/>
</outline>
<lib>
<dict>
<key>com.schriftgestaltung.Glyphs.ComponentInfo</key>
... | cascadia-code/sources/CascadiaCode-Regular.ufo/glyphs/qafD_otbelow-ar.init.glif/0 | {
"file_path": "cascadia-code/sources/CascadiaCode-Regular.ufo/glyphs/qafD_otbelow-ar.init.glif",
"repo_id": "cascadia-code",
"token_count": 341
} | 440 |
<?xml version='1.0' encoding='UTF-8'?>
<glyph name="sadThreedotsbelow-ar.medi" format="2">
<advance width="1200"/>
<outline>
<component base="sad-ar.medi"/>
<component base="threedotsdownbelow-ar" xOffset="52" yOffset="-18"/>
</outline>
<lib>
<dict>
<key>com.schriftgestaltung.Glyphs.ComponentI... | cascadia-code/sources/CascadiaCode-Regular.ufo/glyphs/sadT_hreedotsbelow-ar.medi.glif/0 | {
"file_path": "cascadia-code/sources/CascadiaCode-Regular.ufo/glyphs/sadT_hreedotsbelow-ar.medi.glif",
"repo_id": "cascadia-code",
"token_count": 348
} | 441 |
<?xml version='1.0' encoding='UTF-8'?>
<glyph name="tahThreedots-ar" format="2">
<advance width="1200"/>
<unicode hex="069F"/>
<outline>
<component base="tah-ar"/>
<component base="threedotsupabove-ar" xOffset="160" yOffset="343"/>
</outline>
<lib>
<dict>
<key>com.schriftgestaltung.Glyphs.Co... | cascadia-code/sources/CascadiaCode-Regular.ufo/glyphs/tahT_hreedots-ar.glif/0 | {
"file_path": "cascadia-code/sources/CascadiaCode-Regular.ufo/glyphs/tahT_hreedots-ar.glif",
"repo_id": "cascadia-code",
"token_count": 353
} | 442 |
<?xml version='1.0' encoding='UTF-8'?>
<glyph name="uni08B4.medi" format="2">
<advance width="1200"/>
<outline>
<component base="kaf-ar.medi"/>
<component base="dotbelow-ar" xOffset="47" yOffset="-24"/>
</outline>
<lib>
<dict>
<key>com.schriftgestaltung.Glyphs.ComponentInfo</key>
<array>... | cascadia-code/sources/CascadiaCode-Regular.ufo/glyphs/uni08B_4.medi.glif/0 | {
"file_path": "cascadia-code/sources/CascadiaCode-Regular.ufo/glyphs/uni08B_4.medi.glif",
"repo_id": "cascadia-code",
"token_count": 458
} | 443 |
<?xml version='1.0' encoding='UTF-8'?>
<glyph name="yu-ar.fina" format="2">
<advance width="1200"/>
<outline>
<component base="waw-ar.fina"/>
<component base="alefabove-ar" xOffset="50" yOffset="356"/>
</outline>
<lib>
<dict>
<key>com.schriftgestaltung.Glyphs.ComponentInfo</key>
<array>
... | cascadia-code/sources/CascadiaCode-Regular.ufo/glyphs/yu-ar.fina.glif/0 | {
"file_path": "cascadia-code/sources/CascadiaCode-Regular.ufo/glyphs/yu-ar.fina.glif",
"repo_id": "cascadia-code",
"token_count": 340
} | 444 |
feature case {
# automatic
sub dieresiscomb by dieresiscomb.case;
sub dotaccentcomb by dotaccentcomb.case;
sub gravecomb by gravecomb.case;
sub acutecomb by acutecomb.case;
sub hungarumlautcomb by hungarumlautcomb.case;
sub circumflexcomb by circumflexcomb.case;
sub caroncomb by caroncomb.case;
sub brevecomb by breveco... | cascadia-code/sources/features/case.fea/0 | {
"file_path": "cascadia-code/sources/features/case.fea",
"repo_id": "cascadia-code",
"token_count": 201
} | 445 |
feature salt {
sub f by f.salt;
sub florin by f;
sub l by l.salt;
sub lacute by lacute.salt;
sub lbar by lbar.salt;
sub lbelt by lbelt.salt;
sub lcaron by lcaron.salt;
sub lcommaaccent by lcommaaccent.salt;
sub ldot by ldot.salt;
sub ldotbelow by ldotbelow.salt;
sub llinebelow by llinebelow.salt;
sub lmiddletilde by lm... | cascadia-code/sources/features/salt.fea/0 | {
"file_path": "cascadia-code/sources/features/salt.fea",
"repo_id": "cascadia-code",
"token_count": 374
} | 446 |
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>uniE0A0</key>
<string>uniE_0A_0.glif</string>
<key>uniE0A0.stypo</key>
<string>uniE_0A_0.stypo.glif</string>
<key>uniE0A1<... | cascadia-code/sources/nerdfonts/NerdfontsPL-Regular.ufo/glyphs/contents.plist/0 | {
"file_path": "cascadia-code/sources/nerdfonts/NerdfontsPL-Regular.ufo/glyphs/contents.plist",
"repo_id": "cascadia-code",
"token_count": 2858
} | 447 |
<?xml version='1.0' encoding='UTF-8'?>
<glyph name="uniE0B4.stypo" format="2">
<advance width="1200"/>
<note>
uniE0B4
</note>
<outline>
<contour>
<point x="0" y="-480" type="line"/>
<point x="723" y="-480"/>
<point x="1200" y="-8"/>
<point x="1200" y="710" type="curve" smooth="yes"/>
... | cascadia-code/sources/nerdfonts/NerdfontsPL-Regular.ufo/glyphs/uniE_0B_4.stypo.glif/0 | {
"file_path": "cascadia-code/sources/nerdfonts/NerdfontsPL-Regular.ufo/glyphs/uniE_0B_4.stypo.glif",
"repo_id": "cascadia-code",
"token_count": 444
} | 448 |
<?xml version='1.0' encoding='UTF-8'?>
<glyph name="uniE0BC.stypo" format="2">
<advance width="1200"/>
<note>
uniE0BC
</note>
<outline>
<contour>
<point x="0" y="-480" type="line"/>
<point x="1200" y="1900" type="line"/>
<point x="0" y="1900" type="line"/>
</contour>
<contour>
... | cascadia-code/sources/nerdfonts/NerdfontsPL-Regular.ufo/glyphs/uniE_0B_C_.stypo.glif/0 | {
"file_path": "cascadia-code/sources/nerdfonts/NerdfontsPL-Regular.ufo/glyphs/uniE_0B_C_.stypo.glif",
"repo_id": "cascadia-code",
"token_count": 367
} | 449 |
<?xml version='1.0' encoding='UTF-8'?>
<glyph name="car-brake-hold" format="2">
<advance width="512"/>
<unicode hex="F0D5E"/>
<note>
car-brake-hold
</note>
<outline>
<contour>
<point x="308" y="384"/>
<point x="397" y="333"/>
<point x="448" y="244"/>
<point x="448" y="140"/>
<p... | cascadia-code/sources/nerdfonts/full/original/MaterialDesignIconsDesktop.ufo/glyphs/car-brake-hold.glif/0 | {
"file_path": "cascadia-code/sources/nerdfonts/full/original/MaterialDesignIconsDesktop.ufo/glyphs/car-brake-hold.glif",
"repo_id": "cascadia-code",
"token_count": 1268
} | 450 |
<?xml version='1.0' encoding='UTF-8'?>
<glyph name="language-lua" format="2">
<advance width="512"/>
<unicode hex="F08B1"/>
<note>
language-lua
</note>
<outline>
<contour>
<point x="260" y="341"/>
<point x="327" y="314"/>
<point x="378" y="263"/>
<point x="405" y="196"/>
<point... | cascadia-code/sources/nerdfonts/full/original/MaterialDesignIconsDesktop.ufo/glyphs/language-lua.glif/0 | {
"file_path": "cascadia-code/sources/nerdfonts/full/original/MaterialDesignIconsDesktop.ufo/glyphs/language-lua.glif",
"repo_id": "cascadia-code",
"token_count": 721
} | 451 |
<?xml version='1.0' encoding='UTF-8'?>
<glyph name="longitude" format="2">
<advance width="512"/>
<unicode hex="F0F5A"/>
<note>
longitude
</note>
<outline>
<contour>
<point x="314" y="405"/>
<point x="412" y="348"/>
<point x="469" y="250"/>
<point x="469" y="134"/>
<point x="41... | cascadia-code/sources/nerdfonts/full/original/MaterialDesignIconsDesktop.ufo/glyphs/longitude.glif/0 | {
"file_path": "cascadia-code/sources/nerdfonts/full/original/MaterialDesignIconsDesktop.ufo/glyphs/longitude.glif",
"repo_id": "cascadia-code",
"token_count": 816
} | 452 |
<?xml version='1.0' encoding='UTF-8'?>
<glyph name="pan-left" format="2">
<advance width="512"/>
<unicode hex="F0BB9"/>
<note>
pan-left
</note>
<outline>
<contour>
<point x="149" y="107" type="line"/>
<point x="53" y="192" type="line"/>
<point x="149" y="277" type="line"/>
</contour>
... | cascadia-code/sources/nerdfonts/full/original/MaterialDesignIconsDesktop.ufo/glyphs/pan-left.glif/0 | {
"file_path": "cascadia-code/sources/nerdfonts/full/original/MaterialDesignIconsDesktop.ufo/glyphs/pan-left.glif",
"repo_id": "cascadia-code",
"token_count": 327
} | 453 |
<?xml version='1.0' encoding='UTF-8'?>
<glyph name="smoke-detector-variant" format="2">
<advance width="512"/>
<unicode hex="F180B"/>
<note>
smoke-detector-variant
</note>
<outline>
<contour>
<point x="210" y="363"/>
<point x="131" y="317"/>
<point x="85" y="238"/>
<point x="85" y="1... | cascadia-code/sources/nerdfonts/full/original/MaterialDesignIconsDesktop.ufo/glyphs/smoke-detector-variant.glif/0 | {
"file_path": "cascadia-code/sources/nerdfonts/full/original/MaterialDesignIconsDesktop.ufo/glyphs/smoke-detector-variant.glif",
"repo_id": "cascadia-code",
"token_count": 2094
} | 454 |
<?xml version='1.0' encoding='UTF-8'?>
<glyph name="toggle-switch-outline" format="2">
<advance width="512"/>
<unicode hex="F0A1A"/>
<note>
toggle-switch-outline
</note>
<outline>
<contour>
<point x="397" y="320"/>
<point x="456" y="286"/>
<point x="491" y="227"/>
<point x="491" y="1... | cascadia-code/sources/nerdfonts/full/original/MaterialDesignIconsDesktop.ufo/glyphs/toggle-switch-outline.glif/0 | {
"file_path": "cascadia-code/sources/nerdfonts/full/original/MaterialDesignIconsDesktop.ufo/glyphs/toggle-switch-outline.glif",
"repo_id": "cascadia-code",
"token_count": 810
} | 455 |
<?xml version='1.0' encoding='UTF-8'?>
<glyph name="wiper-wash-alert" format="2">
<advance width="512"/>
<unicode hex="F18DF"/>
<note>
wiper-wash-alert
</note>
<outline>
<contour>
<point x="281" y="316"/>
<point x="321" y="299" type="qcurve" smooth="yes"/>
<point x="354" y="285"/>
<p... | cascadia-code/sources/nerdfonts/full/original/MaterialDesignIconsDesktop.ufo/glyphs/wiper-wash-alert.glif/0 | {
"file_path": "cascadia-code/sources/nerdfonts/full/original/MaterialDesignIconsDesktop.ufo/glyphs/wiper-wash-alert.glif",
"repo_id": "cascadia-code",
"token_count": 2412
} | 456 |
<?xml version='1.0' encoding='UTF-8'?>
<glyph name="color-mode" format="2">
<advance width="300"/>
<unicode hex="EAC6"/>
<note>
color-mode
</note>
<outline>
<contour>
<point x="186" y="281"/>
<point x="246" y="246"/>
<point x="281" y="186"/>
<point x="281" y="114"/>
<point x="2... | cascadia-code/sources/nerdfonts/full/original/codicon.ufo/glyphs/color-mode.glif/0 | {
"file_path": "cascadia-code/sources/nerdfonts/full/original/codicon.ufo/glyphs/color-mode.glif",
"repo_id": "cascadia-code",
"token_count": 468
} | 457 |
<?xml version='1.0' encoding='UTF-8'?>
<glyph name="device-camera" format="2">
<advance width="300"/>
<unicode hex="EADA"/>
<note>
device-camera
</note>
<outline>
<contour>
<point x="185" y="260" type="line"/>
<point x="178" y="263" type="line"/>
<point x="122" y="263" type="line"/>
... | cascadia-code/sources/nerdfonts/full/original/codicon.ufo/glyphs/device-camera.glif/0 | {
"file_path": "cascadia-code/sources/nerdfonts/full/original/codicon.ufo/glyphs/device-camera.glif",
"repo_id": "cascadia-code",
"token_count": 1101
} | 458 |
<?xml version='1.0' encoding='UTF-8'?>
<glyph name="circle-expand" format="2">
<advance width="1200"/>
<unicode hex="F0E96"/>
<note>
circle-expand
</note>
<outline>
<contour>
<point x="1180" y="1290" type="line"/>
<point x="888" y="1290" type="line"/>
<point x="1180" y="998" type="line"/>
... | cascadia-code/sources/nerdfonts/full/processed/MaterialDesignIconsDesktop.ufo/glyphs/circle-expand.glif/0 | {
"file_path": "cascadia-code/sources/nerdfonts/full/processed/MaterialDesignIconsDesktop.ufo/glyphs/circle-expand.glif",
"repo_id": "cascadia-code",
"token_count": 880
} | 459 |
<?xml version='1.0' encoding='UTF-8'?>
<glyph name="dolly" format="2">
<advance width="1200"/>
<unicode hex="F0E9E"/>
<note>
dolly
</note>
<outline>
<contour>
<point x="676" y="247"/>
<point x="627" y="229" type="qcurve" smooth="yes"/>
<point x="581" y="212"/>
<point x="490" y="255"/... | cascadia-code/sources/nerdfonts/full/processed/MaterialDesignIconsDesktop.ufo/glyphs/dolly.glif/0 | {
"file_path": "cascadia-code/sources/nerdfonts/full/processed/MaterialDesignIconsDesktop.ufo/glyphs/dolly.glif",
"repo_id": "cascadia-code",
"token_count": 970
} | 460 |
<?xml version='1.0' encoding='UTF-8'?>
<glyph name="google-cardboard" format="2">
<advance width="1200"/>
<unicode hex="F02AE"/>
<note>
google-cardboard
</note>
<outline>
<contour>
<point x="1139" y="1087"/>
<point x="1106" y="1087" type="qcurve" smooth="yes"/>
<point x="88" y="1087" type=... | cascadia-code/sources/nerdfonts/full/processed/MaterialDesignIconsDesktop.ufo/glyphs/google-cardboard.glif/0 | {
"file_path": "cascadia-code/sources/nerdfonts/full/processed/MaterialDesignIconsDesktop.ufo/glyphs/google-cardboard.glif",
"repo_id": "cascadia-code",
"token_count": 1071
} | 461 |
<?xml version='1.0' encoding='UTF-8'?>
<glyph name="parking" format="2">
<advance width="1200"/>
<unicode hex="F03E3"/>
<note>
parking
</note>
<outline>
<contour>
<point x="720" y="788"/>
<point x="657" y="788" type="qcurve" smooth="yes"/>
<point x="402" y="788" type="line"/>
<point ... | cascadia-code/sources/nerdfonts/full/processed/MaterialDesignIconsDesktop.ufo/glyphs/parking.glif/0 | {
"file_path": "cascadia-code/sources/nerdfonts/full/processed/MaterialDesignIconsDesktop.ufo/glyphs/parking.glif",
"repo_id": "cascadia-code",
"token_count": 510
} | 462 |
<?xml version='1.0' encoding='UTF-8'?>
<glyph name="eye" format="2">
<advance width="1200"/>
<unicode hex="EA70"/>
<note>
eye
</note>
<outline>
<contour>
<point x="104" y="546" type="line"/>
<point x="104" y="679"/>
<point x="237" y="909"/>
<point x="467" y="1042"/>
<point x="7... | cascadia-code/sources/nerdfonts/full/processed/codicon.ufo/glyphs/eye.glif/0 | {
"file_path": "cascadia-code/sources/nerdfonts/full/processed/codicon.ufo/glyphs/eye.glif",
"repo_id": "cascadia-code",
"token_count": 721
} | 463 |
from typing import Optional, Union
import numpy as np
import torch
import torchsde
from pytorch_lightning import LightningModule
from pytorch_lightning.trainer.states import TrainerFn
from pytorch_lightning.utilities.types import STEP_OUTPUT
from scotch.latent_learning.functional_relationship import SCOTCHFunctionalRe... | causica/research_experiments/scotch/src/scotch/latent_learning/scotch_module.py/0 | {
"file_path": "causica/research_experiments/scotch/src/scotch/latent_learning/scotch_module.py",
"repo_id": "causica",
"token_count": 9229
} | 464 |
import abc
from typing import Mapping
import torch
import torch.distributions as td
from causica.data_generation.samplers.sampler import Sampler
from causica.distributions import JointNoiseModule
from causica.distributions.noise import NoiseModule, UnivariateNormalNoiseModule
from causica.distributions.noise.bernoull... | causica/src/causica/data_generation/samplers/noise_dist_sampler.py/0 | {
"file_path": "causica/src/causica/data_generation/samplers/noise_dist_sampler.py",
"repo_id": "causica",
"token_count": 1534
} | 465 |
from causica.distributions.adjacency.adjacency_distributions import AdjacencyDistribution
from causica.distributions.adjacency.constrained_adjacency_distributions import (
ConstrainedAdjacency,
ConstrainedAdjacencyDistribution,
)
from causica.distributions.adjacency.directed_acyclic import ErdosRenyiDAGDistribu... | causica/src/causica/distributions/adjacency/__init__.py/0 | {
"file_path": "causica/src/causica/distributions/adjacency/__init__.py",
"repo_id": "causica",
"token_count": 222
} | 466 |
"""
Code containing the original rational quadratic splines implementation here:
https://github.com/bayesiains/nsf
at file path:
nde/transforms/splines/rational_quadratic.py
This is a copy-paste with tiny modifications to fit it all in one file
It has an MIT license
"""
import numpy as np
import torch
from torch.n... | causica/src/causica/distributions/noise/spline/bayesiains_nsf_rqs.py/0 | {
"file_path": "causica/src/causica/distributions/noise/spline/bayesiains_nsf_rqs.py",
"repo_id": "causica",
"token_count": 2836
} | 467 |
import time
from queue import Queue
import mlflow
class MLFlowBatch:
"""
A class for collecting MLFlow logs and submitting them as a batch to speed up logging.
It will automatically batch all logs, once the batch size is reached.
Accumulated metrics can be manually logged by calling flush.
"""
... | causica/src/causica/mlflow_helpers.py/0 | {
"file_path": "causica/src/causica/mlflow_helpers.py",
"repo_id": "causica",
"token_count": 496
} | 468 |
import numpy as np
import pytest
import torch
import torch.testing
from causica.datasets.loaded_expert_graph_container import LoadedExpertGraphContainer
@pytest.mark.parametrize("file_type", ["npy", "csv"])
def test_loaded_expert_graph_container(tmp_path, file_type: str):
"""Test the loaded expert graph."""
... | causica/test/datasets/test_loaded_expert_graph_container.py/0 | {
"file_path": "causica/test/datasets/test_loaded_expert_graph_container.py",
"repo_id": "causica",
"token_count": 514
} | 469 |
import math
import pytest
import torch
from causica.distributions.noise import CategoricalNoise
def test_init():
base_logits = torch.Tensor([0.3, 0.2, 0.1])
# no batch
x_hat = torch.Tensor([0.3, 0.2, 0.1])
noise_model = CategoricalNoise(x_hat, base_logits)
assert noise_model.logits.shape == to... | causica/test/distributions/noise/test_categorical.py/0 | {
"file_path": "causica/test/distributions/noise/test_categorical.py",
"repo_id": "causica",
"token_count": 803
} | 470 |
import os
import tempfile
import pytest
import torch
from causica.datasets.causica_dataset_format import CAUSICA_DATASETS_PATH, DataEnum, load_data, save_data, save_dataset
from causica.datasets.tensordict_utils import tensordict_shapes
def _load_and_test_dataset(root_path: str):
variables_metadata = load_data(... | causica/test/integration/test_save_load_csuite.py/0 | {
"file_path": "causica/test/integration/test_save_load_csuite.py",
"repo_id": "causica",
"token_count": 2024
} | 471 |
# Clifford Layers
[](https://microsoft.github.io/cliffordlayers)
For details about usage please see [documentation](https://microsoft.github.io/cliffordlayers).
If you have any questions or suggestions please open a [discussion](https://github.co... | cliffordlayers/README.md/0 | {
"file_path": "cliffordlayers/README.md",
"repo_id": "cliffordlayers",
"token_count": 697
} | 472 |
name: cliffordlayers
channels:
- pytorch
- anaconda
- defaults
dependencies:
- _libgcc_mutex=0.1=main
- _openmp_mutex=5.1=1_gnu
- asciitree=0.3.3=py_2
- blas=1.0=mkl
- bokeh=2.4.3=py38h06a4308_0
- bottleneck=1.3.5=py38h7deecbd_0
- brotlipy=0.7.0=py38h27cfd23_1003
- bzip2=1.0.8=h7b6447c_0
- ca-ce... | cliffordlayers/docker/environment.yml/0 | {
"file_path": "cliffordlayers/docker/environment.yml",
"repo_id": "cliffordlayers",
"token_count": 4197
} | 473 |
import torch
from cliffordlayers.nn.modules.gcan import (
CliffordG3ConvTranspose2d,
CliffordG3GroupNorm,
CliffordG3Conv2d,
CliffordG3LinearVSiLU,
CliffordG3MeanVSiLU,
CliffordG3SumVSiLU,
PGAConjugateLinear,
MultiVectorAct,
)
from cliffordlayers.cliffordalgebra import CliffordAlgebra
d... | cliffordlayers/tests/test_gcan_layers.py/0 | {
"file_path": "cliffordlayers/tests/test_gcan_layers.py",
"repo_id": "cliffordlayers",
"token_count": 1066
} | 474 |
{
"values": [
{
"recordId": "a1",
"data": {
"text": "But Google is starting from behind. The company made a late push into hardware, and Apple's Siri, available on iPhones, and Amazon's Alexa software, which runs on its Echo and Dot devices, have clear leads in consum... | cookiecutter-spacy-fastapi/{{cookiecutter.project_slug}}/app/data/example_request.json/0 | {
"file_path": "cookiecutter-spacy-fastapi/{{cookiecutter.project_slug}}/app/data/example_request.json",
"repo_id": "cookiecutter-spacy-fastapi",
"token_count": 172
} | 475 |
# Various settings to configure when deploying the framework.
# Service Storage
# We do not want to enable the data storage service because we do not want to manage that data storage.
# Default is enabled.
# Disable the data store for a simple production environment.
REACT_APP_ENABLE_SERVICE_DATA_STORE=false
# Online... | 0xDeCA10B/demo/client/.env/0 | {
"file_path": "0xDeCA10B/demo/client/.env",
"repo_id": "0xDeCA10B",
"token_count": 173
} | 0 |
import Container from '@material-ui/core/Container'
import Link from '@material-ui/core/Link'
import { withStyles } from '@material-ui/core/styles'
import Typography from '@material-ui/core/Typography'
import React from 'react'
import { version } from '../../package.json'
import { OnlineSafetyValidator } from '../safet... | 0xDeCA10B/demo/client/src/components/About.js/0 | {
"file_path": "0xDeCA10B/demo/client/src/components/About.js",
"repo_id": "0xDeCA10B",
"token_count": 1796
} | 1 |
pragma solidity ^0.6;
import {Ownable} from "../ownership/Ownable.sol";
/**
* Defines incentives for others to contribute "good" quality data.
*/
abstract contract IncentiveMechanism {
struct AddressStats {
uint128 numValid;
uint128 numSubmitted;
}
mapping(address => AddressStats) publi... | 0xDeCA10B/demo/client/src/contracts/incentive/IncentiveMechanism.sol/0 | {
"file_path": "0xDeCA10B/demo/client/src/contracts/incentive/IncentiveMechanism.sol",
"repo_id": "0xDeCA10B",
"token_count": 2108
} | 2 |
const assert = require('assert')
const tf = require('@tensorflow/tfjs-node')
const { normalize1d, normalize2d, normalizeArray } = require('../tensor-utils-node')
describe('tensor-utils-node', () => {
it('normalize1d', () => {
tf.tidy(() => {
let v = tf.tensor1d([1, 0, 0])
let normalized = normalize1d(v)
... | 0xDeCA10B/demo/client/src/ml-models/__tests__/tensor-utils-node.test.js/0 | {
"file_path": "0xDeCA10B/demo/client/src/ml-models/__tests__/tensor-utils-node.test.js",
"repo_id": "0xDeCA10B",
"token_count": 683
} | 3 |
import assert from 'assert'
import { OnlineSafetyValidator } from '../validator'
describe("OnlineSafetyValidator", () => {
it("should validate", async () => {
const validator = new OnlineSafetyValidator()
// This is the example in the config but it might also pass
// because online safety is disabled by an env... | 0xDeCA10B/demo/client/src/safety/__tests__/validator.test.ts/0 | {
"file_path": "0xDeCA10B/demo/client/src/safety/__tests__/validator.test.ts",
"repo_id": "0xDeCA10B",
"token_count": 158
} | 4 |
const NearestCentroidClassifier = artifacts.require("./classification/NearestCentroidClassifier")
const { convertData } = require('../../../src/float-utils-node')
contract('NearestCentroidClassifier', function (accounts) {
const toFloat = 1E9
let classifier
function normalize(data) {
data = convertData(data, we... | 0xDeCA10B/demo/client/test/contracts/classification/nearestcentroidclassifier.js/0 | {
"file_path": "0xDeCA10B/demo/client/test/contracts/classification/nearestcentroidclassifier.js",
"repo_id": "0xDeCA10B",
"token_count": 2205
} | 5 |
#!/bin/bash
set -ex
# Get some libraries from OpenZeppelin.
# Can't install these through npm since they use the 0.5 version of solidity.
commit="04a1b21874e02fd3027172bf208d9658b886b658"
safe_math_file="client/lib/SafeMath.sol"
mkdir --parents `dirname "${safe_math_file}"`
wget "https://raw.githubusercontent.com/O... | 0xDeCA10B/demo/setup_libs.sh/0 | {
"file_path": "0xDeCA10B/demo/setup_libs.sh",
"repo_id": "0xDeCA10B",
"token_count": 299
} | 6 |
from collections import Counter
from injector import inject
from sklearn.neighbors import NearestCentroid
# Purposely not a singleton so that it is easy to get a model that has not been initialized.
@inject
class NearestCentroidClassifier(NearestCentroid):
def fit(self, X, y):
self._num_samples_per_centr... | 0xDeCA10B/simulation/decai/simulation/contract/classification/ncc.py/0 | {
"file_path": "0xDeCA10B/simulation/decai/simulation/contract/classification/ncc.py",
"repo_id": "0xDeCA10B",
"token_count": 303
} | 7 |
# Objects for all smart contracts.
from dataclasses import dataclass, field
from typing import Optional
from injector import singleton
Address = str
""" An address that can receive funds and participate in training models. """
@dataclass
class Msg:
"""
A message sent to a smart contract.
:param sender:... | 0xDeCA10B/simulation/decai/simulation/contract/objects.py/0 | {
"file_path": "0xDeCA10B/simulation/decai/simulation/contract/objects.py",
"repo_id": "0xDeCA10B",
"token_count": 617
} | 8 |
import html
import itertools
import os
from collections import Counter
from dataclasses import dataclass, field
from logging import Logger
from pathlib import Path
from typing import Dict, Iterator, List, Tuple
import numpy as np
import pandas as pd
import requests
from injector import ClassAssistedBuilder, Module, in... | 0xDeCA10B/simulation/decai/simulation/data/offensive_data_loader.py/0 | {
"file_path": "0xDeCA10B/simulation/decai/simulation/data/offensive_data_loader.py",
"repo_id": "0xDeCA10B",
"token_count": 2591
} | 9 |
# Lab 4 - AllReduce的实现和优化
## 实验目的
1. 理解并行训练的原理和实现
2. 定制一个新的并行训练的通信压缩算法
## 实验环境
* Ubuntu 18.04
* PyTorch==1.5.0 (务必安装CPU版本)
* OpenMPI
* Horovod==0.19.4
## 实验原理
深度学习中,分布式训练算法和分布式训练系统的基本知识
## 实验内容
### 实验流程图

### 具体步骤
1. 安装依赖支持:OpenMPI, Horovod
2. 编写程序,使用Horovod库,增加数据并行训... | AI-System/Labs/BasicLabs/Lab4/README.md/0 | {
"file_path": "AI-System/Labs/BasicLabs/Lab4/README.md",
"repo_id": "AI-System",
"token_count": 2540
} | 10 |
# 常见问题
## 1. 构建部署PyTorch训练程序时出现 "BADSIG F60F4B3D7FA2AF80" 错误
### 运行的命令
`docker build -f Dockerfile.gpu -t train_dl .`
### 错误日志
```bash
W: GPG error: https://developer.download.nvidia.cn/compute/machine-learning/repos/ubuntu1804/x86_64 Release: The following signatures were invalid: BADSIG F60F4B3D7FA2AF80 cudatools <c... | AI-System/Labs/BasicLabs/Lab5/issue.md/0 | {
"file_path": "AI-System/Labs/BasicLabs/Lab5/issue.md",
"repo_id": "AI-System",
"token_count": 433
} | 11 |
<!--Copyright © Microsoft Corporation. All rights reserved.
适用于[License](https://github.com/microsoft/AI-System/blob/main/LICENSE)版权许可-->
# 10.2.2 (分布式)强化学习对框架的需求和挑战
- [10.2.2 (分布式)强化学习对框架的需求和挑战](#1022-分布式强化学习对框架的需求和挑战)
- [强化学习系统面临的挑战和机器学习系统相比,有什么不同?](#强化学习系统面临的挑战和机器学习系统相比有什么不同)
- [强化学习对于框架的**需求**有哪些呢?](#强化学习对于... | AI-System/Textbook/第10章-强化学习系统/10.2.2-分布式强化学习对框架的需求和挑战.md/0 | {
"file_path": "AI-System/Textbook/第10章-强化学习系统/10.2.2-分布式强化学习对框架的需求和挑战.md",
"repo_id": "AI-System",
"token_count": 6571
} | 12 |
<!--Copyright © Microsoft Corporation. All rights reserved.
适用于[License](https://github.com/microsoft/AI-System/blob/main/LICENSE)版权许可-->
# 11.3 模型压缩与硬件加速
模型压缩的一个潜在缺点是,部分经过压缩后的模型并不一定适用于传统的通用硬件,如CPU和GPU,往往需要定制化硬件的支持。
例如对于模型稀疏化后的网络模型来说,如果没有专用的稀疏计算库或者针对稀疏计算的加速器设计,则无法完全发挥稀疏所能带来的理论加速比。
对于经过数值量化之后的网络模型,很多硬件结构并不支持低比特运算,例如... | AI-System/Textbook/第11章-模型压缩与加速/11.3-模型压缩与硬件加速.md/0 | {
"file_path": "AI-System/Textbook/第11章-模型压缩与加速/11.3-模型压缩与硬件加速.md",
"repo_id": "AI-System",
"token_count": 8734
} | 13 |
<!--Copyright © Microsoft Corporation. All rights reserved.
适用于[License](https://github.com/microsoft/AI-System/blob/main/LICENSE)版权许可-->
# 13.2 学习增强系统的应用
我们介绍几个学习增强系统的代表性工作。本章包含以下内容:
- [13.2 学习增强系统的应用](#132-学习增强系统的应用)
- [13.2.1 流媒体系统](#1321-流媒体系统)
- [13.2.2 数据库索引](#1322-数据库索引)
- [13.2.3 系统性能和参数调优](#1323-系统性... | AI-System/Textbook/第13章-人工智能优化计算机系统/13.2-学习增强系统的应用.md/0 | {
"file_path": "AI-System/Textbook/第13章-人工智能优化计算机系统/13.2-学习增强系统的应用.md",
"repo_id": "AI-System",
"token_count": 23692
} | 14 |
<!--Copyright © Microsoft Corporation. All rights reserved.
适用于[License](https://github.com/microsoft/AI-System/blob/main/LICENSE)版权许可-->
# 深度学习框架基础(Introduction to deep learning frameworks)
# 简介
通过第二章对常见神经网络层的介绍,不难发现深度神经网络算法具有高度模块化的特点。算法研究者在为具体应用设计神经网络模型时,能够通过沿着宽度和深度方向堆叠组合基本处理层的方式,构建起任意复杂的神经网络模型。然而,扩大神经网络规模对算力需求也... | AI-System/Textbook/第3章-深度学习框架基础/3-前言.md/0 | {
"file_path": "AI-System/Textbook/第3章-深度学习框架基础/3-前言.md",
"repo_id": "AI-System",
"token_count": 1275
} | 15 |
<!--Copyright © Microsoft Corporation. All rights reserved.
适用于[License](https://github.com/microsoft/AI-System/blob/main/LICENSE)版权许可-->
# 9.2 自动机器学习系统与工具
- [9.2 自动机器学习系统与工具](#92-自动机器学习系统与工具)
- [9.2.1 自动机器学习系统与工具概述](#921-自动机器学习系统与工具概述)
- [9.2.2 探索式训练过程](#922-探索式训练过程)
- [9.2.3 自动机器学习编程范式](#923-自动机器学习编程范式)
-... | AI-System/Textbook/第9章-自动化机器学习系统/9.2-自动化机器学习系统与工具.md/0 | {
"file_path": "AI-System/Textbook/第9章-自动化机器学习系统/9.2-自动化机器学习系统与工具.md",
"repo_id": "AI-System",
"token_count": 21348
} | 16 |
# 人工智能系统(System for AI)课程目录
## Basic Lectures
- Lecture1-2: System for AI-1&2-Introduction and System Perspective [ [PDF](./SystemforAI-1-2-Introduction%20and%20System%20Perspective.pdf) ]
- Lecture3: System for AI-3-Computation frameworks for DNN [ [PDF](./SystemforAI-3-Framework.pdf) ]
- Lecture4: System for... | AI-System/docs/README.md/0 | {
"file_path": "AI-System/docs/README.md",
"repo_id": "AI-System",
"token_count": 586
} | 17 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.