file_text
stringlengths
1
2.1M
language
stringclasses
416 values
file_name
stringlengths
1
185
name: game_cooperative_skill display_name: Games Statistics Skill component_type: Script-based w/o NNs model_type: Dictionary/Pattern-based is_customizable: false author: publisher@deeppavlov.ai description: 'provides user with a conversation about computer games: the charts of the best games for the past year, past ...
YAML
zR8WrA2O9QEzhdMnsVMPg.yml
name: response_selector display_name: Response Selector component_type: null model_type: Dictionary/Pattern-based is_customizable: false author: publisher@deeppavlov.ai description: Algorithm that selects a final responses among the given list of candidate responses ram_usage: 100M gpu_usage: null group: response_sel...
YAML
zTK24mc7QujCiFRxGdi2Lg.yml
name: dff_fairytale_prompted_skill display_name: Fairytale Skill component_type: Generative model_type: NN-based is_customizable: true author: publisher@deeppavlov.ai description: This skill is part of the Fairytale Assistant pipeline. It generates short fairytales using a language model based on the dialog context a...
YAML
zTwDs7eGPcDvcrxtzgi4ag.yml
{ 'version': 0, 'case-sensitive': 'false', 'use-external-names' : 'false', 'roots': [ { 'type': 'directory', 'name': "TEST_DIR/Z.framework/Headers", 'contents': [ { 'type': 'file', 'name': "Z.h", 'external-contents': "TEST_DIR/flat-header-path/Z.h" ...
YAML
z_1.yaml
--- - name: Zabbix hosts: zabbix become: yes gather_facts: yes vars: password_zabbix: 12345 name_role: zabbix name_DB: zabbix tasks: - name: install the Zabbix repository get_url: url: https://repo.zabbix.com/zabbix/6.0/debian/pool/main/z/zabbix-release/zabbix-release_6.0-5+...
YAML
zabbix.yaml
--- - name: Zabbix_agent hosts: [web, elk, bastion] become: yes gather_facts: yes tasks: - name: install the Zabbix repository get_url: url: https://repo.zabbix.com/zabbix/7.0/debian/pool/main/z/zabbix-release/zabbix-release_7.0-1+debian11_all.deb dest: /tmp/ mode: '0777' ...
YAML
zabbix_agent.yaml
# RUN: llc -run-pass=none -o /dev/null %s # REQUIRES: asserts # REQUIRES: default_triple # Makes sure that having a probability of 0x00000000 to branch to a successor # doesn't hit an APInt assert in the MIParser. --- name: main body: | bb.0: successors: %bb.1(0x00000000) bb.1: ...
YAML
zero-probability.mir
defaults: - _self_ - aml_config - aoai_config zeroshot_config: pipeline: base_experiment_name: zeroshot tags: default_compute_target: isolatedcompute mmlu_dataset: all_mmlu_datasets mmlu_split: test guidance_programs: - zero_or_few_shot.py - zero_or_few_shot_fortran.py - zero_or_f...
YAML
zeroshot_config.yaml
defaults: - _self_ - aml_config - aoai_config zeroshot_config: pipeline: base_experiment_name: zeroshot_cot tags: default_compute_target: isolatedcompute mmlu_dataset: all_mmlu_datasets mmlu_split: test guidance_programs: - zero_shot_cot.py aoai_config: ${ default_aoai_config }
YAML
zeroshot_cot_config.yaml
--- - hosts: "nodes" remote_user: root gather_facts: yes connection: ssh vars_prompt: - name: "zerotier_network_id" prompt: "Enter zerotier network id" private: no tasks: - name: install zerotier shell: | set -o pipefail curl -s https://install.zerotier.com ...
YAML
zerotier.yaml
# RUN: llc -mtriple=aarch64-arm-none-eabi -o - %s \ # RUN: -run-pass simple-register-coalescing | FileCheck %s # In this test case, the 32-bit copy implements a 32 to 64 bit zero extension # and relies on the upper 32 bits being zeroed. # Coalescing to the result of the 64-bit load meant overwriting # the upper 32 bit...
YAML
zext-reg-coalesce.mir
# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py # RUN: llc -O0 -mtriple=mipsel-linux-gnu -run-pass=regbankselect -verify-machineinstrs %s -o - | FileCheck %s -check-prefixes=MIPS32 --- | define void @load1_s8_to_zextLoad1_s32(i8* %px) {entry: ret void} define void @load2_s16_to_zextLo...
YAML
zextLoad_and_sextLoad.mir
# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py # RUN: llc -O0 -mtriple=mipsel-linux-gnu -run-pass=legalizer -verify-machineinstrs %s -o - | FileCheck %s -check-prefixes=MIPS32 --- | define void @load1_s8_to_zextLoad1_s32(i8* %px) {entry: ret void} define void @load2_s16_to_zextLoad2_...
YAML
zextLoad_and_sextLoad_1.mir
# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py # RUN: llc -O0 -mtriple=mipsel-linux-gnu -run-pass=instruction-select -verify-machineinstrs %s -o - | FileCheck %s -check-prefixes=MIPS32 --- | define void @load1_s8_to_zextLoad1_s32(i8* %px) {entry: ret void} define void @load2_s16_to_z...
YAML
zextLoad_and_sextLoad_2.mir
# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py # RUN: llc -O0 -mtriple=mipsel-linux-gnu -run-pass=mips-prelegalizer-combiner -verify-machineinstrs %s -o - | FileCheck %s -check-prefixes=MIPS32 --- | define void @load1_s8_to_zextLoad1_s32(i8* %px) {entry: ret void} define void @load2_...
YAML
zextLoad_and_sextLoad_3.mir
# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py # RUN: llc -O0 -mtriple=mipsel-linux-gnu -run-pass=regbankselect -verify-machineinstrs %s -o - | FileCheck %s -check-prefixes=MIPS32 --- | define void @zext() {entry: ret void} define void @sext() {entry: ret void} ... --- name: ...
YAML
zext_and_sext.mir
# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py # RUN: llc -O0 -mtriple=mipsel-linux-gnu -run-pass=legalizer -verify-machineinstrs %s -o - | FileCheck %s -check-prefixes=MIPS32 --- | define void @zext() {entry: ret void} define void @sext() {entry: ret void} ... --- name: ...
YAML
zext_and_sext_1.mir
--- ## Be aware: #Due to the way this is imported, JavaScript reserved words, including "delete", "private", #"void", etc are stripped out. See #https://github.com/rollup/plugins/blob/8748b8cd3bbab3c5ac6190556930219f19060e63/packages/pluginutils/src/makeLegalIdentifier.ts#L4 #and #https://github.com/rollup/plugins/blob...
YAML
zh-CN.yaml
--- identifier: 識別 avatar: 頭像 application: 應用程式 default_provider: 預設 method: 方法 published: 已發佈 draft: 草稿 archived: 已封存 modules: 模組 module_bar: 模組列 logs: 日誌 reset_width: 重設寬度 tile_size: 圖磚尺寸 edit_field: 編輯欄位 conditions: 條件 location: 位置 condition_rules: 條件規則 input: 輸入 maps: 地圖 switch_user: 切換使用者 item_creation: 建立資料項目 ite...
YAML
zh-TW.yaml
--- edit_page: 编辑页面 nav_navigation: 导航 nav_tags: 标签 nav_more: 更多 nav_top: 回到顶部 form_placeholder_search: 搜索 error_page_title: 迷路了? 不用担心 error_message_title: 迷路了? error_message_code: 错误 404 error_message_text: > 好像找不到你要找的东西。 别担心,我们可以 带您回到<a class="gdoc-error__link" href="{{ . }}">主页</a>。 button_toggle_dark: 切换暗/亮...
YAML
zh-cn.yaml
zh_cn: # Name of language listed in locales menu language: 简体中文 (zh_cn) # A text to make known that the article is a translation not an original. # Empty for English, original. translation: (简体中文)
YAML
zh_cn.yml
name: Zig CI on: pull_request: push: branches: - master concurrency: group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }} cancel-in-progress: true jobs: build: strategy: fail-fast: false matrix: runs-on: [ubuntu-latest, macos-latest, windows-...
YAML
zig-build.yml
name: Zig CI on: pull_request: push: branches: - master jobs: build: strategy: fail-fast: false matrix: runs-on: [ubuntu-latest, macos-latest, windows-latest] runs-on: ${{ matrix.runs-on }} steps: - uses: actions/checkout@v3 with: submodules: rec...
YAML
zig-build_1.yml
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) %YAML 1.2 --- $id: http://devicetree.org/schemas/input/touchscreen/zinitix,bt400.yaml# $schema: http://devicetree.org/meta-schemas/core.yaml# title: Zinitix BT4xx and BT5xx series touchscreen controller description: The Zinitix BT4xx and BT5xx series of touchs...
YAML
zinitix,bt400.yaml
# Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use ...
YAML
zipkin-cases.yaml
resources: - name: tracing:zipkin resource: '@type': type.googleapis.com/envoy.config.cluster.v3.Cluster altStatName: tracing_zipkin connectTimeout: 5s dnsLookupFamily: V4_ONLY loadAssignment: clusterName: tracing:zipkin endpoints: - lbEndpoints: - endpoint: a...
YAML
zipkin.envoy-config-https.golden.yaml
resources: - name: tracing:zipkin resource: '@type': type.googleapis.com/envoy.config.cluster.v3.Cluster altStatName: tracing_zipkin connectTimeout: 5s dnsLookupFamily: V4_ONLY loadAssignment: clusterName: tracing:zipkin endpoints: - lbEndpoints: - endpoint: a...
YAML
zipkin.envoy-config.golden.yaml
# REQUIRES: x86 # RUN: rm -rf %t; mkdir %t # RUN: yaml2obj %s > %t/test.dylib # RUN: echo "" | llvm-mc -filetype=obj -triple=x86_64-apple-macos10.15 -o %t/test_macos.o # RUN: echo "" | llvm-mc -filetype=obj -triple=x86_64-apple-ios13.15.0-macabi -o %t/test_maccatalyst.o # RUN: echo "" | llvm-mc -filetype=obj -triple=x8...
YAML
zippered.yaml
apiVersion: v1 kind: Service metadata: name: zk-svc labels: app: zk-svc spec: ports: - port: 2888 name: server - port: 3888 name: leader-election clusterIP: None selector: app: zk --- apiVersion: v1 kind: ConfigMap metadata: name: zk-cm data: jvm.heap: "500m" tick: "2000" init: "1...
YAML
zk.yaml
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) %YAML 1.2 --- $id: http://devicetree.org/schemas/sound/zl38060.yaml# $schema: http://devicetree.org/meta-schemas/core.yaml# title: ZL38060 Connected Home Audio Processor from Microsemi. description: | The ZL38060 is a "Connected Home Audio Processor" from Microse...
YAML
zl38060.yaml
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) %YAML 1.2 --- $id: http://devicetree.org/schemas/sound/zl38060.yaml# $schema: http://devicetree.org/meta-schemas/core.yaml# title: ZL38060 Connected Home Audio Processor from Microsemi. description: | The ZL38060 is a "Connected Home Audio Processor" from Microse...
YAML
zl38060_1.yaml
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) %YAML 1.2 --- $id: http://devicetree.org/schemas/sound/zl38060.yaml# $schema: http://devicetree.org/meta-schemas/core.yaml# title: ZL38060 Connected Home Audio Processor from Microsemi. description: | The ZL38060 is a "Connected Home Audio Processor" from Microse...
YAML
zl38060_2.yaml
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) %YAML 1.2 --- $id: http://devicetree.org/schemas/sound/zl38060.yaml# $schema: http://devicetree.org/meta-schemas/core.yaml# title: ZL38060 Connected Home Audio Processor from Microsemi. description: | The ZL38060 is a "Connected Home Audio Processor" from Microse...
YAML
zl38060_3.yaml
--- apiVersion: cert-manager.io/v1 kind: Certificate metadata: name: kafka-zoo-certificate namespace: kafka spec: secretName: zoo-tls duration: 9125h # 1y renewBefore: 360h # 15d subject: organizations: - arturs k8s isCA: false privateKey: algorithm: RSA encoding: PKCS8 size: 4096 ...
YAML
zoo-ssl.yaml
zookeeper: node: host: localhost port: 9181 "@index": 1
YAML
zookeeper.yaml
zookeeper: node: host: localhost port: 9181 "@index": 1
YAML
zookeeper_1.yaml
# SPDX-License-Identifier: GPL-2.0 %YAML 1.2 --- $id: http://devicetree.org/schemas/arm/zte.yaml# $schema: http://devicetree.org/meta-schemas/core.yaml# title: ZTE platforms device tree bindings maintainers: - Jun Nie <jun.nie@linaro.org> properties: $nodename: const: '/' compatible: oneOf: - ite...
YAML
zte.yaml
# SPDX-License-Identifier: GPL-2.0 %YAML 1.2 --- $id: http://devicetree.org/schemas/arm/zte.yaml# $schema: http://devicetree.org/meta-schemas/core.yaml# title: ZTE platforms device tree bindings maintainers: - Jun Nie <jun.nie@linaro.org> properties: $nodename: const: '/' compatible: oneOf: - ite...
YAML
zte_1.yaml
# SPDX-License-Identifier: GPL-2.0 %YAML 1.2 --- $id: http://devicetree.org/schemas/arm/zte.yaml# $schema: http://devicetree.org/meta-schemas/core.yaml# title: ZTE platforms device tree bindings maintainers: - Jun Nie <jun.nie@linaro.org> properties: $nodename: const: '/' compatible: oneOf: - ite...
YAML
zte_2.yaml
# permissions for end users to edit zvirtclusters. apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: app.kubernetes.io/name: clusterrole app.kubernetes.io/instance: zvirtcluster-editor-role app.kubernetes.io/component: rbac app.kubernetes.io/created-by: src app.kubernete...
YAML
zvirtcluster_editor_role.yaml
# permissions for end users to view zvirtclusters. apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: app.kubernetes.io/name: clusterrole app.kubernetes.io/instance: zvirtcluster-viewer-role app.kubernetes.io/component: rbac app.kubernetes.io/created-by: src app.kubernete...
YAML
zvirtcluster_viewer_role.yaml
--- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: labels: heritage: deckhouse module: cloud-provider-zvirt cluster.x-k8s.io/provider: zvirt cluster.x-k8s.io/v1beta1: v1 annotations: controller-gen.kubebuilder.io/version: v0.14.0 name: zvirtclusters.infrastructure...
YAML
zvirtclusters.yaml
# permissions for end users to edit zvirtmachines. apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: app.kubernetes.io/name: clusterrole app.kubernetes.io/instance: zvirtmachine-editor-role app.kubernetes.io/component: rbac app.kubernetes.io/created-by: src app.kubernete...
YAML
zvirtmachine_editor_role.yaml
# permissions for end users to view zvirtmachines. apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: app.kubernetes.io/name: clusterrole app.kubernetes.io/instance: zvirtmachine-viewer-role app.kubernetes.io/component: rbac app.kubernetes.io/created-by: src app.kubernete...
YAML
zvirtmachine_viewer_role.yaml
--- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: labels: heritage: deckhouse module: cloud-provider-zvirt cluster.x-k8s.io/provider: zvirt cluster.x-k8s.io/v1beta1: v1 annotations: controller-gen.kubebuilder.io/version: v0.14.0 name: zvirtmachines.infrastructure...
YAML
zvirtmachines.yaml
# permissions for end users to edit zvirtmachinetemplates. apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: app.kubernetes.io/name: clusterrole app.kubernetes.io/instance: zvirtmachinetemplate-editor-role app.kubernetes.io/component: rbac app.kubernetes.io/created-by: src ...
YAML
zvirtmachinetemplate_editor_role.yaml
# permissions for end users to view zvirtmachinetemplates. apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: app.kubernetes.io/name: clusterrole app.kubernetes.io/instance: zvirtmachinetemplate-viewer-role app.kubernetes.io/component: rbac app.kubernetes.io/created-by: src ...
YAML
zvirtmachinetemplate_viewer_role.yaml
--- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: labels: heritage: deckhouse module: cloud-provider-zvirt cluster.x-k8s.io/provider: zvirt cluster.x-k8s.io/v1beta1: v1 annotations: controller-gen.kubebuilder.io/version: v0.14.0 name: zvirtmachinetemplates.infras...
YAML
zvirtmachinetemplates.yaml
# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py # RUN: llc -mtriple riscv64 -mattr=+experimental-v -verify-machineinstrs -run-pass=postrapseudos %s -o - | FileCheck %s ... --- name: copy_zvlsseg_N2 body: | bb.0: ; CHECK-LABEL: name: copy_zvlsseg_N2 ; CHECK: $v2 = Pse...
YAML
zvlsseg-copy.mir
# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py # RUN: llc -march=riscv64 -mattr=+experimental-v -stop-after=prologepilog %s -o - 2>&1 | FileCheck %s --- | target datalayout = "e-m:e-p:64:64-i64:64-i128:128-n64-S128" target triple = "riscv64" define void @zvlsseg_spill(i64 *%base, ...
YAML
zvlsseg-spill.mir
module acl_lab { namespace "http://com/example/acl_lab"; prefix acl_lab; import ietf-inet-types { prefix inet; } import tailf-ncs { prefix ncs; } augment /ncs:services { list acl_lab { key "ACL_Name ACL_Direction"; leaf ACL_Name { type string; } leaf ACL_Direction { ...
YANG
acl_lab.yang
module bgl-test { namespace "http://com/example/bgltest"; prefix bgl-test; container my_tab_around_this{ leaf a_yang_input { type string; } } }
YANG
bgl-test.yang
module radius_service { namespace "http://com/example/radius_service"; prefix radius_service; import ietf-inet-types { prefix inet; } import tailf-ncs { prefix ncs; } augment /ncs:services { list radius_service { key Region; leaf Region { type enumeration { enum "AMER"; ...
YANG
radius_service.yang
module simple_radius { namespace "http://com/example/simple_radius"; prefix simple_radius; import ietf-inet-types { prefix inet; } import tailf-ncs { prefix ncs; } augment /ncs:services { list simple_radius { key radius_server_ip; uses ncs:service-data; ncs:servicepoint "simple_ra...
YANG
simple_radius.yang
module switches { namespace "http://example.com/switches"; prefix "switches"; organization "Cisco Systems"; contact "branblac@cisco.com"; description "Module to Model switches. Lab for Cisco System IT NSO Training."; revision 2017-10-01 { description "Initial revision."; reference "RFC ...
YANG
switches.yang
const std = @import("std"); const assert = std.debug.assert; const mem = std.mem; const Allocator = std.mem.Allocator; /// This allocator takes an existing allocator, wraps it, and provides an interface /// where you can allocate without freeing, and then free it all together. pub const ArenaAllocator = struct { c...
Zig
ArenaAllocator.zig
//! This struct is used by bun.exe to encode `.bunx` files, to be consumed //! by the shim 'bun_shim_impl.exe'. The latter exe does not include this code. //! //! The format is as follows: //! //! [WSTR:bin_path][u16'"'][u16:0](shebang?)[flags:u16] //! //! if shebang: //! [WSTR:program][u16:0][WSTR:args][u32:bin_path_b...
Zig
BinLinkingShim.zig
const bun = @import("root").bun; const logger = bun.logger; const std = @import("std"); const Fs = bun.fs; const string = bun.string; const Resolver = @import("../resolver//resolver.zig").Resolver; const JSC = bun.JSC; const JSGlobalObject = JSC.JSGlobalObject; const strings = bun.strings; const default_allocator = bun...
Zig
BuildMessage.zig
/// How to add a new function or property to the Bun global /// /// - Add a callback or property to the below struct /// - @export it in the appropriate place /// - Update "@begin bunObjectTable" in BunObject.cpp /// - Getters use a generated wrapper function `BunObject_getter_wrap_<name>` /// - Update "BunObject+e...
Zig
BunObject.zig
const bun = @import("root").bun; const std = @import("std"); const LineOffsetTable = bun.sourcemap.LineOffsetTable; const SourceMap = bun.sourcemap; const Bitset = bun.bit_set.DynamicBitSetUnmanaged; const Output = bun.Output; const prettyFmt = Output.prettyFmt; /// Our code coverage currently only deals with lines of...
Zig
CodeCoverage.zig
const std = @import("std"); const bun = @import("root").bun; const JSC = bun.JSC; const Output = bun.Output; const ConsoleObject = @This(); const Shimmer = @import("./bindings/shimmer.zig").Shimmer; const String = bun.String; const JSGlobalObject = JSC.JSGlobalObject; const JSValue = JSC.JSValue; const strings = bun.st...
Zig
ConsoleObject.zig
const bun = @import("root").bun; const JSC = bun.JSC; pub const Debugger = struct { pub const AsyncCallType = enum(u8) { DOMTimer = 1, EventListener = 2, PostMessage = 3, RequestAnimationFrame = 4, Microtask = 5, }; extern fn Debugger__didScheduleAsyncCall(*JSC.JSGlo...
Zig
Debugger.zig
// MIT License // Copyright (c) 2023 diffz authors // 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 limitation the rights // to use, copy, modify, m...
Zig
DiffMatchPatch.zig
// This is zig translate-c run on ffi.h // it turns out: FFI.h is faster than our implementation that calls into C++ bindings // so we just use this in some cases pub const @"bool" = bool; pub const JSCell = ?*anyopaque; const struct_unnamed_1 = extern struct { payload: i32, tag: i32, }; pub const union_Encode...
Zig
FFI.zig
const std = @import("std"); const Api = @import("../../api/schema.zig").Api; const JavaScript = @import("../javascript.zig"); const QueryStringMap = @import("../../url.zig").QueryStringMap; const CombinedScanner = @import("../../url.zig").CombinedScanner; const bun = @import("root").bun; const string = bun.string; cons...
Zig
JSBundler.zig
const std = @import("std"); const Api = @import("../../api/schema.zig").Api; const JavaScript = @import("../javascript.zig"); const QueryStringMap = @import("../../url.zig").QueryStringMap; const CombinedScanner = @import("../../url.zig").CombinedScanner; const bun = @import("root").bun; const string = bun.string; cons...
Zig
JSTranspiler.zig
const Node = @import("Node.zig"); const std = @import("std"); const Allocator = @import("std").mem.Allocator; const SegmentedList = @import("std").SegmentedList; const utils = @import("utils.zig"); const main = @import("../main.zig"); const tree = @import("tree.zig"); const EngineError = @import("error.zig").EngineE...
Zig
Node.zig
const std = @import("std"); const Allocator = @import("std").mem.Allocator; const main = @import("../main.zig"); const Node = @import("Node.zig"); const TypeNode = @import("TypeNode.zig"); const constants = @import("constants.zig"); const utils = @import("utils.zig"); pub fn byId(self: *Node) Allocator.Error![]const ...
Zig
Node_printing.zig
const bun = @import("root").bun; const std = @import("std"); /// Read a blocking pipe without blocking the current thread. pub fn PipeReader( comptime This: type, // Originally this was the comptime vtable struct like the below // But that caused a Zig compiler segfault as of 0.12.0-dev.1604+caae40c21 ...
Zig
PipeReader.zig
const bun = @import("root").bun; const JSC = bun.JSC; const std = @import("std"); const Blob = JSC.WebCore.Blob; const invalid_fd = bun.invalid_fd; const SystemError = JSC.SystemError; const SizeType = Blob.SizeType; const io = bun.io; const FileOpenerMixin = Blob.Store.FileOpenerMixin; const FileCloserMixin = Blob.St...
Zig
ReadFile.zig
const bun = @import("root").bun; pub const RegularExpression = opaque { pub const Flags = enum(u16) { none = 0, hasIndices = 1 << 0, global = 1 << 1, ignoreCase = 1 << 2, multiline = 1 << 3, dotAll = 1 << 4, unicode = 1 << 5, unicodeSets = 1 << 6, ...
Zig
RegularExpression.zig
const bun = @import("root").bun; const logger = bun.logger; const std = @import("std"); const Fs = bun.fs; const string = bun.string; const Resolver = @import("../resolver//resolver.zig"); const JSC = bun.JSC; const JSGlobalObject = JSC.JSGlobalObject; const strings = bun.strings; const default_allocator = bun.default_...
Zig
ResolveMessage.zig
// ** Update the version number when any breaking changes are made to the cache format or to the JS parser ** const expected_version = 2; const bun = @import("root").bun; const std = @import("std"); const Output = bun.Output; const JSC = bun.JSC; const debug = Output.scoped(.cache, false); const MINIMUM_CACHE_SIZE = ...
Zig
RuntimeTranspilerCache.zig
//! Originally, we tried using LIEF to inject the module graph into a MachO segment //! But this incurred a fixed 350ms overhead on every build, which is unacceptable //! so we give up on codesigning support on macOS for now until we can find a better solution const bun = @import("root").bun; const std = @import("std")...
Zig
StandaloneModuleGraph.zig
// https://github.com/lithdew/rheia/blob/162293d0f0e8d6572a8954c0add83f13f76b3cc6/hash_map.zig // Apache License 2.0 const std = @import("std"); const mem = std.mem; const math = std.math; const testing = std.testing; const assert = std.debug.assert; pub fn AutoHashMap(comptime K: type, comptime V: type, comptime ma...
Zig
StaticHashMap.zig
const bun = @import("root").bun; const JSC = bun.JSC; const StrongImpl = opaque { pub fn init(globalThis: *JSC.JSGlobalObject, value: JSC.JSValue) *StrongImpl { JSC.markBinding(@src()); return Bun__StrongRef__new(globalThis, value); } pub fn get(this: *StrongImpl) JSC.JSValue { JSC...
Zig
Strong.zig
const TypeNode = @import("TypeNode.zig"); const std = @import("std"); const Allocator = @import("std").mem.Allocator; const SegmentedList = @import("std").SegmentedList; const utils = @import("utils.zig"); const main = @import("../main.zig"); const EngineError = @import("error.zig").EngineError; const Declaration = ...
Zig
TypeNode.zig
const TypeNode = @import("TypeNode.zig"); const std = @import("std"); const Allocator = @import("std").mem.Allocator; const main = @import("../main.zig"); const utils = @import("utils.zig"); pub fn name(self: *TypeNode) Allocator.Error![]const u8 { return switch (self.kind) { .universal => "U", ....
Zig
TypeNode_printing.zig
const std = @import("std"); pub const Variance = enum { invariant, covariant, contravariant, bivariant, pub fn format( this: Variance, comptime _: []const u8, _: std.fmt.FormatOptions, writer: anytype, ) !void { try switch (this) { .invariant...
Zig
Variance.zig
const bun = @import("root").bun; const JSC = bun.JSC; const std = @import("std"); const Blob = JSC.WebCore.Blob; const invalid_fd = bun.invalid_fd; const SystemError = JSC.SystemError; const SizeType = Blob.SizeType; const io = bun.io; const FileOpenerMixin = Blob.Store.FileOpenerMixin; const FileCloserMixin = Blob.St...
Zig
WriteFile.zig
const std = @import("std"); const Environment = @import("./env.zig"); const Output = @import("output.zig"); const use_mimalloc = @import("root").bun.use_mimalloc; const StringTypes = @import("./string_types.zig"); const Mimalloc = @import("root").bun.Mimalloc; const bun = @import("root").bun; const version_string = E...
Zig
__global.zig
pub export fn add(a: i32, b: i32) i32 { return a + b; } // to compile: // zig build-lib -OReleaseFast ./add.zig -dynamic --name add
Zig
add.zig
const Command = @import("../cli.zig").Command; const PackageManager = @import("../install/install.zig").PackageManager; pub const AddCommand = struct { pub fn exec(ctx: Command.Context) !void { try PackageManager.add(ctx); } };
Zig
add_command.zig
pub const add_completions: []const u8 = @embedFile("add_completions.txt"); const std = @import("std"); const Environment = @import("../env.zig"); pub const FirstLetter = enum(u8) { a = 'a', b = 'b', c = 'c', d = 'd', e = 'e', f = 'f', g = 'g', h = 'h', i = 'i', j = 'j', k = ...
Zig
add_completions.zig
const std = @import("std"); const FeatureFlags = @import("./feature_flags.zig"); const Environment = @import("./env.zig"); const FixedBufferAllocator = std.heap.FixedBufferAllocator; const bun = @import("root").bun; /// Checks if a slice's pointer is contained within another slice. pub inline fn isSliceInBuffer(compt...
Zig
allocators.zig
pub usingnamespace @import("./analytics/analytics_thread.zig");
Zig
analytics.zig
const std = @import("std"); pub const Reader = struct { const Self = @This(); pub const ReadError = error{EOF}; buf: []u8, remain: []u8, allocator: std.mem.Allocator, pub fn init(buf: []u8, allocator: std.mem.Allocator) Reader { return Reader{ .buf = buf, .rema...
Zig
analytics_schema.zig
const bun = @import("root").bun; const string = bun.string; const Output = bun.Output; const Global = bun.Global; const Environment = bun.Environment; const strings = bun.strings; const MutableString = bun.MutableString; const stringZ = bun.stringZ; const default_allocator = bun.default_allocator; const FeatureFlags = ...
Zig
analytics_thread.zig
const std = @import("std"); const builtin = @import("builtin"); const debug = std.debug; const heap = std.heap; const mem = std.mem; const process = std.process; const testing = std.testing; /// An example of what methods should be implemented on an arg iterator. pub const ExampleArgIterator = struct { const Erro...
Zig
args.zig
const std = @import("std"); const Environment = @import("./env.zig"); const strings = @import("./string_immutable.zig"); const bun = @import("root").bun; /// This is like ArrayList except it stores the length and capacity as u32 /// In practice, it is very unusual to have lengths above 4 GB pub fn BabyList(comptime Ty...
Zig
baby_list.zig
const std = @import("std"); const bun = @import("root").bun; const unicode = std.unicode; pub const JavascriptString = []u16; pub fn newJavascriptString(comptime text: []const u8) JavascriptString { return unicode.utf8ToUtf16LeStringLiteral(text); } pub const NodeIndex = u32; pub const NodeIndexNone = 4294967293;...
Zig
base.zig
const std = @import("std"); const bun = @import("root").bun; pub const DecodeResult = struct { written: usize, fail: bool = false, }; pub const LibBase64 = struct { pub const State = extern struct { eof: c_int, bytes: c_int, flags: c_int, carry: u8, }; pub extern fn...
Zig
base64.zig
const ExternalStringList = @import("./install.zig").ExternalStringList; const Semver = @import("./semver.zig"); const ExternalString = Semver.ExternalString; const String = Semver.String; const Output = bun.Output; const Global = bun.Global; const std = @import("std"); const strings = @import("root").bun.strings; const...
Zig
bin.zig
pub const bindgen = true; pub const main = @import("./bun.js/bindings/bindings-generator.zig").main; pub export fn PLCrashReportHandler(_: ?*anyopaque) void {} pub export fn mkdirp(_: ?*anyopaque) void {} pub const build_options = @import("build_options"); pub const bun = @import("./BunObject.zig"); pub const JavaScri...
Zig
bindgen.zig
const Bindings = @import("bindings.zig"); const Exports = @import("exports.zig"); const HeaderGen = @import("./header-gen.zig").HeaderGen; const std = @import("std"); const builtin = @import("builtin"); const io = std.io; const fs = std.fs; const process = std.process; const ChildProcess = std.ChildProcess; const Progr...
Zig
bindings-generator.zig
const std = @import("std"); const bun = @import("root").bun; const string = bun.string; const Output = bun.Output; const C_API = @import("root").bun.JSC.C; const StringPointer = @import("../../api/schema.zig").Api.StringPointer; const Exports = @import("./exports.zig"); const strings = bun.strings; const ErrorableZigSt...
Zig
bindings.zig
//! This file defines several variants of bit sets. A bit set //! is a densely stored set of integers with a known maximum, //! in which each integer gets a single bit. Bit sets have very //! fast presence checks, update operations, and union and intersection //! operations. However, if the number of possible items ...
Zig
bit_set.zig
const std = @import("std"); const Api = @import("../../api/schema.zig").Api; const bun = @import("root").bun; const MimeType = http.MimeType; const ZigURL = @import("../../url.zig").URL; const http = @import("root").bun.http; const JSC = @import("root").bun.JSC; const js = JSC.C; const io = bun.io; const Method = @impo...
Zig
blob.zig
const std = @import("std"); const Api = @import("../../api/schema.zig").Api; const bun = @import("root").bun; const MimeType = bun.http.MimeType; const ZigURL = @import("../../url.zig").URL; const HTTPClient = @import("root").bun.http; const JSC = @import("root").bun.JSC; const js = JSC.C; const Method = @import("../....
Zig
body.zig
const std = @import("std"); const C = @import("std").zig.c_builtins; const pthread_rwlock_t = if (@import("root").bun.Environment.isPosix) @import("../sync.zig").RwLock.pthread_rwlock_t else *anyopaque; const time_t = C.time_t; const va_list = C.va_list; const struct_timeval = C.struct_timeval; const __attribute__ = C....
Zig
boringssl.translated.zig