content
stringlengths
2
6.21k
label
stringclasses
16 values
.com */ foo() """, spec -> spec.path("Jenkinsfile") ) ); } } /* * Copyright 2021 the original author or authors. * <p> * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. *...
Java
-- speed optimizations (mostly so update functions are faster) local _G = getfenv(0); local date = _G.date; local abs = _G.abs; local min = _G.min; local max = _G.max; local floor = _G.floor; local mod = _G.mod; local tonumber = _G.tonumber; local gsub = _G.gsub; local GetCVar = _G.GetCVar; local SetCVar = _G.SetCVar; ...
Lua
disabled, * or P-SEAMLDR is busy with another SEAMCALL. %rax is not * changed in this case. * * Set %rax to TDX_SEAMCALL_VMFAILINVALID for VMfailInvalid. * This value will never be used as actual SEAMCALL error code as * it is from the Reserved status code class. */ jc .Lseamcall_vmfailinvalid\@ .else ...
Assembly
he parameter is from icmp6, decode it. */ if (d != NULL) { ip6cp = (struct ip6ctlparam *)d; m = ip6cp->ip6c_m; ip6 = ip6cp->ip6c_ip6; off = ip6cp->ip6c_off; } else { m = NULL; ip6 = NULL; off = 0; /* calm gcc */ } if (ip6 != NULL) { struct ip6ctlparam ip6cp1; /* * Notify the error to all pos...
C
7gL339A42UXJHzV2csZjTG2R62DRpVDBJBQ/640?wx_fmt=png) 比如我们选择 `i` 来获得一个交互式的 shell,执行在里面执行系统命令即可: ![](https://mmbiz.qpic.cn/mmbiz_png/iar31WKQlTToUzc4c3vtMd0LhibL7HricgcBMXae296M4ZUDI5nU2nXISOyyoYQpw9JZVf0h7cMhSP5UcRqZJjzEQ/640?wx_fmt=png) 也可以选择 `r` 来获得一个反弹 shell: ![](https://mmbiz.qpic.cn/mmbiz_png/iar31WKQlTToUzc4c3v...
Markdown
ored_room}B{digit_1}0{digit_2}") return f"room_{digit_1}_{digit_2}" elif colored_room == "训练室": logger.debug("训练室B305") return "train" elif colored_room == "加工站": logger.debug("加工站B105") return "factory" white_room = ["central", "dormit...
Python
onfiguration errors: %d issues found', #all_errors), notify.categories.ERROR ) end else -- Also skip success logging for test validations or in test mode if not is_test_validation and not _G.HIMALAYA_TEST_MODE then logger.info('Configuration validation passed') end end retur...
Lua
if (FnSymbol* fn = toFnSymbol(node->sym)) { fprintf(mFP, "<UL CLASS =\"mktree\">\n<LI>"); adjacent_passes(fn); fprintf(mFP, "<CHPLTAG=\"FN%d\">\n", fn->id); fprintf(mFP, "<B>function "); writeFnSymbol(fn); fprintf(mFP, "</B><UL>\n"); } else if (isTypeSymbol(node->sym)) { if (isAggre...
C++
16,-40)-(4*8)(r28) lfd f11,MODE_CHOICE(-16,-40)-(3*8)(r28) lfd f12,MODE_CHOICE(-16,-40)-(2*8)(r28) nop lfd f13,MODE_CHOICE(-16,-40)-(1*8)(r28) #else #error undefined architecture #endif L2: mr r12,r29 // Put the target address in r12 as specified. mtctr r12 // Get the address to call into CTR. nop nop ...
Assembly
u64, /// Trader euro balance pub balance_eur: u64, /// ? pub display: bool, /// Trader discount pub discount: i64, /// Trader discount expiry pub discount_end: i64, /// ? pub buyer_up: bool, /// Trader currency pub currency: Currency, /// Resupply time pub supply...
Rust
require('..') local dataset_path, model_params, dir_params, data_params = unpack(require('opts/context_captioning/caption_opts_piano.lua')) -- Tests that batch captioner works train_dataset, val_dataset, test_dataset = datasets.read_caption_data(dataset_path, model_params.use_gpu_mode, model_params.char_level,...
Lua
Flip_V (const Matrix_3x3 & m) { real8 tmp[9]; M33_COPY(tmp,m.mtx); M33_FLIP_V(mtx,tmp); } void Euler (const real8 a , const real8 b , const real8 c ) { M33_EULER(mtx,a,b,c); } void Quat (const real8 qx , ...
C
me = yield rep = outcome.get_result() if rep.when == "call": full_name, test_file, test_name = get_current_test() #print("adding to all_test_result list:" + test_file) test_name_msg = f"{test_name}_msg" for key, value in all_test_results.items(): #filename = key + "...
Python
append("<tr>"). append("<td valign='top'>"). append("PHOTO BUKTI PELAYANANAN"). append("<table width='100%' border='0' align='center' cellpadding='3px' cellspacing='0px...
Java
94.0", "" + sf_IN + f_f); test("null12.0", "" + sf_IN + sf_d); test("null-99.0", "" + sf_IN + f_dM); test("null17.0", "" + sf_IN + sf_f); test("null-84.0", "" + sf_IN + sf_dM); test("null58000000", "" + sf_IN + f_i); test("null-55000000", "" + sf_IN + f_iM); test(...
Java
PageAlign := physPageAlignedStacks && typ == spanAllocStack && pageSize < physPageSize // If the allocation is small enough, try the page cache! // The page cache does not support aligned allocations, so we cannot use // it if we need to provide a physical page aligned stack allocation. pp := gp.m.p.ptr() if !nee...
Go
testLibrary>::@function::f::@formalParameter::x staticType: int? operator: ?? rightOperand: SimpleIdentifier token: y correspondingParameter: <null> element: <testLibrary>::@function::f::@formalParameter::y staticType: int element: <null> staticInvokeType: null staticType: int '''); } ...
Dart
вропейском регионе проявлять крайнюю осторожность, когда общение с новыми торговыми партнерами, например, запрос фотографии, на которой у них есть удостоверение личности, и лист бумаги с торговой информацией (такой как идентификатор сделки, сумма, имя пользователя и дата). Имейте в виду, что мошенники могут получить ут...
Dart
* * Log an info into terminal or to file * @param opts Log info that need to print out * @param alert Should alert this in different color? */ Print (opts: { icon: DebugStatus; name: string; mess: string; data?: any }, alert: boolean = false) { this.collectAnalytic(opts.name, opts.mess, ...
Typescript
associated with an application. A combination of hostname and ports as endpoint matcher is used to match the application. Match conditions for OR logic. An array of match conditions to allow for multiple matching criteria. The rule is considered a match if one the conditions are met. The conditions can be ...
Markdown
# Generated by Django 2.1.1 on 2020-08-25 03:11 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('user', '0006_profile_skipped_data_at'), ] operations = [ migrations.AlterField( model_name='institution', name='type...
Python
add x29, sp, 0 stp x19, x20, [sp, 16] stp x21, x22, [sp, 32] stp x23, x24, [sp, 48] stp x25, x26, [sp, 64] stp x27, x28, [sp, 80] add x20, x0, 266240 mov x22, x0 mov w24, w2 mov x0, x30 mov w19, w1 mov w23, w3 bl _mcount ldr w26, [x20, 4628] ldr w25, [x20, 4636] cbz w24, .L1954 ldr x1, .LC144 sbfiz x0,...
Assembly
359 22C393 45.8 430.8 63.5 470.8 74.4l23 6.3c1.8 .5 3.6 1.1 5.2 2c3.2 1.7 5.9 4 8.1 6.8c3.8 4.9 5.6 11.3 4.7 17.8c-.4 2.8-1.2 5.4-2.5 7.8c-1.7 3.2-4 5.9-6.8 8.1c-4.3 3.2-9.6 5.1-15.1 4.9H480v56.1l6.4 5.1 5.2 4.1c21.1 16.7 45 29.6 70.5 38.1l28.9 9.6c1.6 .5 3.2 1.2 4.6 2c3.1 1.7 5.8 4.1 7.8 6.9s3.5 6.1 4.1 9.6c.5 2.7 .6 ...
CSS
; } #[tokio::test] async fn test_echo() { let (tx0, rx0) = channel!(Message, 1024); let (tx1, mut rx1) = channel!(Message, 1024); let channels = pipe_channels!(rx0, [tx1]); let config = config!(EchoConfig); let pipe = mapper!("echo"); let f1 = populate_messag...
Rust
display: none; } .smallipop-theme-blue.smallipop-bottom:after { top: -34px; border-color: transparent transparent rgba(0, 100, 180, 0.9) transparent; } .smallipop-theme-blue.smallipop-left { right: -26px; } .smallipop-theme-blue.smallipop-left:after { border-color: transparent transparent transparent rgba(0, 10...
CSS
:blue}", "messages": [ { "type": "UNSAFE_CSS_PSEUDO_SELECTOR", "level": "ERROR", "args": ["Pseudo"] // TODO(felix8a): confusing error message } ] }, { "cssText": "a:visited { color:blue }", "golden": ".namespace__ a:vis...
JavaScript
#import <Foundation/Foundation.h> typedef enum { TGApplicationFeaturePeerPrivate, TGApplicationFeaturePeerGroup, TGApplicationFeaturePeerLargeGroup } TGApplicationFeaturePeerType; @interface TGApplicationFeatures : NSObject + (bool)isGroupLarge:(NSUInteger)memberCount; + (void)setLargeGroupMemberCountLim...
C
ox cleanup and verification to every test. As the mox unit testing class is being constructed (MoxTestBase or a subclass), this metaclass will modify all test functions to call the CleanUpMox method of the test class after they finish. This means that unstubbing and verifying will happen for every test with no...
Python
dds r6, r7, #0 adds r6, #0x3c movs r3, #0 adds r5, r7, #0 adds r5, #0x40 adds r4, r7, #0 adds r4, #0x14 _080612A6: lsls r1, r2, #3 adds r0, r6, r1 str r3, [r0] adds r1, r5, r1 str r3, [r1] lsls r0, r2, #1 adds r0, r4, r0 strh r3, [r0] adds r0, r2, #1 lsls r0, r0, #0x18 lsrs r2, r0, #0x18 cmp r2, #3 b...
Assembly
the output format, which makes it easier to know when an entire contest has been sent ## [2.20.0](https://github.com/jmerle/competitive-companion/releases/tag/2.20.0) (2021-03-08) - Added a configurable option for the timeout of the requests sent to ports on which tools might be listening - Fixed the memory limit par...
Markdown
, pub(crate) unmanaged: Stack, pub(crate) tag: String, pub screen: usize, pub visible: bool, pub(crate) layout: Box<dyn Layout>, } impl Default for Workspace { fn default() -> Self { Self { managed: Stack::default(), unmanaged: Stack::default(), tag: ...
Rust
ient); mutex_lock(&bt541->input_dev->mutex); if (input_device_enabled(bt541->input_dev)) zinitix_stop(bt541); mutex_unlock(&bt541->input_dev->mutex); return 0; } static int __maybe_unused zinitix_resume(struct device *dev) { struct i2c_client *client = to_i2c_client(dev); struct bt541_ts_data *bt541 = i2c_...
C
25, 83125 } }, [37126] = { base = 37120, id = 37126, torpedo_ammo = 0, property_rate = {}, ammo_info = { { 6, 50026 }, { 6, 50526 }, { 5, 52126 } }, weapon_id = { 37126, 83126 } }, [37140] = { name = "제로센 21형", type = 7, speciality = "항공", ...
Lua
figuration.GetConnectionString("CSET_DB")); this.context = new CSETContext(configuration); } [TestMethod()] public void IsEntryCFTest() { var db = this.context; if (db == null) { throw new Exception("Database context is ...
C#
rustCrateName}) async { await runCommand('wasm-pack', [ 'build', '-t', 'no-modules', '-d', args.outputWasm, '--no-typescript', '--out-name', rustCrateName, if (!args.release) '--dev', args.rustCrateDir, '--', // cargo build args '-Z', 'build-std=std,panic_abort...
Dart
.7-16c0-10.9 1-21.6 2.9-32H199.7c-11.5 0-21.4-8.2-23.6-19.5L170.7 288H339.2c9.2-18 21.4-34.2 36-48H161.6L131.1 80H520.7L490.5 192.1c1.8-.1 3.7-.1 5.5-.1c14.8 0 29.1 1.8 42.8 5.2L569.7 82.4C576.6 57 557.4 32 531.1 32h-411C111 12.8 91.6 0 69.5 0H24zM176 512a48 48 0 1 0 0-96 48 48 0 1 0 0 96zm320 0a144 144 0 1 0 0-288 144...
JavaScript
configurations that could be tweaked. * @namespace modifiers */ var modifiers = { /** * Modifier used to shift the popper on the start or end of its reference * element.<br /> * It will read the variation of the `placement` property.<br /> * It can be one either `-end` or `-start`. * @memberof modif...
JavaScript
</i>. /// Possible <i>key</i>/<i>value</i> pairs in your application might be /// <code>Devops-Guru-production-application/RDS</code> or /// <code>Devops-Guru-production-application/containers</code>. /// </important> final List<TagCollectionFilter>? tags; ResourceCollectionFilter({ this.cloudFormation...
Dart
R.styleable.SuperView_color_start) { defaultStore.backgroundStartColor = typedArray.getColor(attr, VALUE_NULL) } //背景结束颜色 if (attr == R.styleable.SuperView_color_end) { defaultStore.backgroundEndColor = typedArray.getColor(attr, VALUE_NULL) ...
Kotlin
const __nv_fp8x2_storage_t rlo = __nv_cvt_float2_to_fp8x2(flo, __NV_SATFINITE, __NV_E4M3); const __nv_fp8x2_storage_t rhi = __nv_cvt_float2_to_fp8x2(fhi, __NV_SATFINITE, __NV_E4M3); __x = __internal_pack_u16x2_to_u32(rlo, rhi); } /** * \ingroup CUDA_MATH_FP8...
C++
GENERIC_REG_LIST(id)\ } static const struct generic_registers generic_regs[] = { generic_regs(A), generic_regs(B), }; static const struct generic_sh_mask generic_shift[] = { GENERIC_MASK_SH_LIST(__SHIFT, A), GENERIC_MASK_SH_LIST(__SHIFT, B), }; static const struct generic_sh_mask generic_mask[] = { GENERIC_MASK...
C
mport org.bukkit.command.CommandSender import org.bukkit.util.StringUtil class CommandGiveEgg(plugin: EcoPlugin) : Subcommand(plugin, "giveegg", "ecopets.command.giveegg", false) { override fun onExecute(sender: CommandSender, args: List<String>) { if (args.isEmpty()) { sender.sendMessage(plugi...
Kotlin
// Expandable button { Set( "ExpandableButton.Background", new BOX_BRUSH( "Common/Button", 8.0f/32.0f ) ); // Extra padding on the right and bottom to account for image shadow Set( "ExpandableButton.Padding", FMargin(3.f, 3.f, 6.f, 6.f) ); Set( "ExpandableButton.Collapsed", new IMAGE_BRUSH( "Old/ExpansionButt...
C++
{ return !space_to_write(max_space_mb_headroom * LOG_MEGABYTE); }; void increment_space_used(int bytes) { m_space_used += bytes; m_partition_space_left -= bytes; } void update_space_used(); void read_configuration_variables(); // CVR This is the mgmt callback function, hence ...
C
img, "webp", new File(fileName)); } public String getText() { return new String(_chars); } public BufferedImage getImage() { return _img; } public int[][] getImageArray2D() { int ret[][] = new int[_height][_width]; for (int x = 0; x < _width; x++) { for (int y = 0; y < _height; y++) { int p = _i...
Java
import copy import matplotlib.pyplot as plt import numpy as np from .core import get_features_from_model from spacetorch.datasets import floc from spacetorch.maps.it_map import ITMap from spacetorch.models.positions import LayerPositions from spacetorch.paths import CACHE_DIR from spacetorch.types import RN18Layer fr...
Python
sTag=PROPN" xml:id="ParlaMint-ES_2017-01-31-CD170131.u2.3.36">Empleo</w> </name> <w lemma="y" msd="UPosTag=CCONJ" xml:id="ParlaMint-ES_2017-01-31-CD170131.u2.3.37">y</w> <name type="MISC"> <w lemma="Seguridad" msd="UPosTag=PROPN" xml:id="ParlaMint-ES_2017-01-31-CD170131.u2.3.38">Seguridad</w...
Markdown
undary === 0) { boundary = t + epochWidth; } else if (t >= boundary) { while (t >= boundary) { nextOp.reset(new Map([[ keyOut, { type: 'Int', value: eid } ]])); boundary += epochWidth; eid++; } } nextOp.next(withEid(tup, keyOut, eid)); }, r...
Markdown
from django.contrib import admin from .models import Job @admin.register(Job) class JobAdmin(admin.ModelAdmin): list_display = ('title', 'company', 'location', 'job_type', 'experience_level', 'posted_by', 'is_active', 'created_at') list_filter = ('is_active', 'job_type', 'experience_level', 'created_at') s...
Python
.params.iter().map(|p| p.render()).collect::<String>(); if !params.is_empty() { format!("\\{}{{{}}}", self.m.clone(), params) } else { format!("\\{}", self.m.clone()) } } } pub struct Text<S: AsRef<str>>(S); impl<S: AsRef<str>> Element for Text<S> { fn render(&s...
Rust
[derive(SystemParam)] pub struct StageContext<'a> { pub surfaces: Query<'a, (Entity, &'static Surface)>, pub respawn_points: Query<'a, &'static mut RespawnPoint>, } impl<'a> StageContext<'a> { pub fn surface(&self, entity: Entity) -> &Surface { self.surfaces.get(entity).expect("Missing surface.").1...
Rust
register("jvmBench") register("wasmJsBench") register("linuxArm64Bench") register("linuxX64Bench") register("macosArm64Bench") register("macosX64Bench") register("mingwX64Bench") } configurations { getByName("main") { warmups = 1 ...
Kotlin
the hostname if none of the addresses match the client's IP address. You should set this option if you use hostname based instructions. The -p option implies the -h option. * ignored by busyboxed version -b n backlog. Allow a backlog of approximately n TCP SYNs. On some systems n is silently lim...
C
// edit_track.h // // Edit a Rivendell Voice Track Log Entry // // (C) Copyright 2002-2022 Fred Gleason <fredg@paravelsystems.com> // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License version 2 as // published by the Free Software Fou...
C
<div></div> </div> ``` > 设置一个div内有 一个子div 和一个 p 标签: ``` div>p+div + tab ``` ```html <div> <p></p> <div></div> </div> ``` > 给div 设置一个类名: ``` .wrap +tab ``` ```html <div class="wrap"></div> ``` > 给 p 设置一个类名 : ``` p.p1 +tab ``` ```html <p class="p1"></p> ``` > 给一个div 内设置俩个子div 并分别 加上 类名: ``` .fa...
Markdown
dding: 5px 10px 0; letter-spacing: 1.5px; line-height: 15px; height: 15px; font-weight: 600; } .content .highlight.jsx .code::after { position: absolute; top: 0; right: 0; color: #ccc; text-align: right; font-size: 0.75em; padding: 5px 10px 0; letter-spacing: 1.5px; line-height: 15px; heigh...
CSS
renbaoxiang", special_enemy = 0, infection_value = 0, compass_index = 2, discover_type = 2, scan_desc = "海域の安全を確保できた!早く戦利品を回収しよう", expedition_icon = 0, is_guide = 0, id = 11590301, object_icon = { "cell_yellow", 1, 100, 0 }, event_op = { 101, 115900301, 115900302, 107 }, ...
Lua
, 3179), height = 50, endHeight = 0, flightTime = 100) delay(5) cutscene.end() questComplete() } fun Context<Player>.questComplete() { player["restless_ghost_coffin"] = "skull" player["the_restless_ghost"] = "completed" player.jingle("quest_complete_1") p...
Kotlin
ed, this.onLongPress, this.hideBottom = false, this.limitComment = true}); ///issue 底部状态 _renderBottomContainer() { Color issueStateColor = issueItemViewModel.state == "open" ? Colors.green : Colors.red; return (hideBottom) ? Container() : Row( children...
Dart
/* Copyright (c) 2007, Toshiba Corporation All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions...
Assembly
from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker from config import DB_URL from database.models import Base engine = create_engine(DB_URL) SessionLocal = sessionmaker(bind=engine) def init_db(): Base.metadata.create_all(bind=engine)
Python
", replacement: "-b-", }, { value : "baz", generated : "c", replacement: "-c-", }, ], end: [ { value : "end", generated : "d", replacement: "-d", }, { value : "baz...
Typescript
ham algorithm is used. Thick lines are drawn with rounding endings. Antialiased * lines are drawn using Gaussian filtering. * * @param img Image. * @param pt1 First point of the line segment. * @param pt2 Second point of the line segment. * @param color Line color. */ public stati...
Java
82140, 520.99585f, 270.23776f, 66.25f, (byte) 0); spawn(282140, 506.8137f, 238.60612f, 66.57414f, (byte) 0); spawn(282140, 495.94504f, 218.84671f, 67.58238f, (byte) 0); spawn(282140, 502.39307f, 196.61835f, 67.5513f, (byte) 0); spawn(282140, 510.88928f, 178.31491f, 66.869156f, (byte) 0); spawn(282140, 530.830...
Java
using System; using System.Collections.Generic; using System.Linq; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using ReLogic.Content; using Terraria; using Terraria.ID; using Terraria.ModLoader; using Terraria.ModLoader.Core; namespace CalamityMod.Waters { // TODO -- This can be made in...
C#
ding.* // ktlint-disable no-wildcard-imports /** * Data object corresponding to a "input-scan-regions-supported" collection as defined in: * [PWG5100.15](https://ftp.pwg.org/pub/pwg/candidates/cs-ippfaxout10-20131115-5100.15.pdf). */ @Suppress("RedundantCompanionReference", "unused") data class InputScanRegionsSupp...
Kotlin
(arr, 3, 4)); } } // This code is contributed by // shs.. ``` ## 蟒蛇 3 ``` # Python3 implementation of the approach # Function to return the sum of those columns # of a given matrix that start with an odd element def sumColumns(arr, r, c):     # Initialize sum to 0     sum = 0     # Traverse through all the elemen...
Markdown
f.read()).strip() self.assertMultiLineEqual(printed, self.true_nodenames_nopropflags, msg = "Couldn't read and parse tree from string properly when node names and non-propagating flags provided.") def test_newick_read_tree_labeledroot(self): ''' Test parsing a tree w/ a labele...
Python
import secrets import random import string from django.contrib.auth.hashers import make_password from django.core.mail import send_mail from django.shortcuts import get_object_or_404, redirect, render from django.urls import reverse_lazy, reverse from django.views.generic import CreateView, UpdateView from users.for...
Python
TablesRectsType >= TRT.ColumnsRect.ordinal) { for (columnN in 0 until table.columnsCount) { val r = Funcs.getTableRect(table, TRT.values()[cfg.showTablesRectsType], columnN) val col = if (table.hoveredColumnBody == columnN) COL32(255, 255, 128, 255) el...
Kotlin
/*============================================================================= Library: CTK Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the ...
C
s-deputy[data-v-2f9da21c] .el-submenu__icon-arrow{display:none}.apply-body .apply-header__logout[data-v-2f9da21c]{width:132px;height:136px;background:#fff;box-shadow:0 0 6px 0 rgba(0,0,0,.1);border-radius:8px}.footer-item[data-v-2f9da21c]{height:40px;line-height:40px;text-align:center;cursor:pointer;font-size:14px;font...
CSS
P'$ 是 $P$ 的子程序,则 $P'$ 也是安全的。 **证明:** 设 $P$ 是安全的,则 $\forall \pi \in L(P), \phi(\pi) = true$ 由于 $L(P') \subseteq L(P)$,因此 $\forall \pi \in L(P'), \phi(\pi) = true$ 因此 $P'$ 也是安全的。 #### 5.2 访问控制的形式化证明 **定义 5.3 (访问控制策略)** 访问控制策略是一个函数 $AC: Subject \times Object \times Action \rightarrow \{allow, deny\}$ **定义 5.4 (访问控制的安全...
Markdown
arrayS[j + 1]; g = sn * arrayE[j + 1]; arrayE[j + 1] = cs * arrayE[j + 1]; for (var i = 0; i < matrix.rowCount; i++) { t = cs * matrixU[i][j] + sn * matrixU[i][j + 1]; matrixU[i][j + 1] = -sn * matrixU[i][j] + cs * matrixU[i][j + 1]; matrixU[...
Dart
id = true Trigger.RemoveFootprintTrigger(id) Media.DisplayMessage(UserInterface.GetFluentMessage("were-warned-will-pay"), UserInterface.GetFluentMessage("smuggler-leader")) Utils.Do(Smuggler.GetGroundAttackers(), function(unit) unit.AttackMove(SmugglerWaypoint2.Location) end) Trigger.AfterDelay(Date...
Lua
--[[ * px5g - Embedded x509 key and certificate generator based on PolarSSL * * Copyright (C) 2009 Steven Barth <steven@midlink.org> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License, version 2.1 as published by the Free ...
Lua
CHECK-64-NEXT: call void @llvm.experimental.noalias.scope.decl(metadata [[META34:![0-9]+]]) // CHECK-64-NEXT: store i32 [[TMP2]], i32* [[DOTGLOBAL_TID__ADDR_I]], align 4, !noalias !36 // CHECK-64-NEXT: store i32* [[TMP5]], i32** [[DOTPART_ID__ADDR_I]], align 8, !noalias !36 // CHECK-64-NEXT: store i8* [[TM...
C++
constructor: function(){ this._super('attributes'); }, // namespace prefix for this plugin // Pseudo-namespace prefix ns : 'aloha-attributes', uid : 'attributes', // namespaced classnames nsClasses : {}, supplant : function(str, obj) { return str.replace(/\{([a-z0-9\-\_]+)\}/ig, fu...
JavaScript
_1_1_g_c_o_n_f__t.html#aa9cec746caf08b6e1b10cb4ac466d6a1", null ], [ "index_step", "struct_t_m_c2208__n_1_1_g_c_o_n_f__t.html#a2bf96887a6bd9976a9bb467b09a2dce9", null ], [ "internal_rsense", "struct_t_m_c2208__n_1_1_g_c_o_n_f__t.html#afd632dd101410ed8bf5f9a5948cd67cd", null ], [ "mstep_reg_select", "struct_...
JavaScript
class Solution: def minPathSum(self, grid: List[List[int]]) -> int: # Dijkstra's Algorithm version m, n = len(grid), len(grid[0]) heap = [(grid[0][0], 0, 0)] min_sum = [[float("inf")] * n for _ in range(m)] # print(min_sum) while heap: cur_sum, cur_r, cur...
Python
State(const char* p_stateName); LegoState* CreateState(const char* p_stateName); void GetFileSavePath(MxString* p_outPath, MxS16 p_slotn); void StopArea(Area p_area); void SwitchArea(Area p_area); void Init(); // FUNCTION: BETA10 0x10083ff5 MxU8 GetActorId() { return m_actorId; } // FUNCTION: BETA10 0x1004a2...
C
ПАЦЕ и ЕНТЕР да би активирали тастер алатки."},{name:"Уређивач дијалога", legend:"У прозору дијалог притисните ТАБ да би дошли до следећег поља дијалога, притисните ЕНТЕР за прихватање дијалога, притисните ЕСЦ за одбијање дијалога. Када дијалог има више картица, до њих можете доћи притиском на АЛТ+Ф10 или ТАБ. Затим са...
JavaScript
68-151.168-304.064-194.88-456.96-95.744zM786.88 504.704l-62.208 40.32c-8.32 5.888-10.88 16.768-4.992 25.216L760 632.32c5.888 8.448 16.768 11.008 25.152 5.12l31.104-20.16a55.36 55.36 0 0 0 16-76.48l-20.224-31.04a19.52 19.52 0 0 0-25.152-5.12z"})]))}});var Q3=K3;var j3=o(e()),K2=o(e()),J3=(0,j3.defineComponent)({name:"El...
JavaScript
{ xmin -= 1; xmax += 1; } if ( mag_round ) { ymin = magrounddn( ymin ); ymax = magroundup( ymax ); } if ( ymin == ymax ) { ymin -= 1; ymax += 1; } double oversize = 1.1; m_canvas->current_x()->minimum( oversize * xmin ); m_canvas->...
C++
} private createScreen3BadItems ( buttonId:string ) : createjs.Container { var screen3:createjs.Container = new createjs.Container(); var help3:createjs.Bitmap = new createjs.Bitmap(deep.Bridge.GameAssets.getAsset("lang/help3")); sdk.utils.CreateJSUtils.centerRegX...
Typescript
if (b) return a+b else return a; } let result1 = getSum(10,20); console.log(result1) let result2 = getSum(100); console.log(result2) /** This error indicates it was expected and already handled */ export class HandledError extends Error { cons...
Typescript
five_jmptab .byte _init_systemfive_openbsd-_init_systemfive_jmptab .byte _init_systemfive_freebsd-_init_systemfive_jmptab .byte _init_systemfive_netbsd-_init_systemfive_jmptab .endobj _init_systemfive_jmptab _init_systemfive_linux: #if SupportsLinux() pushb systemfive_linux-.Lanchorpoint mov $syscon_linux,%esi j...
Assembly
mber; // [propName: string]: any // } // function createSquare(config: SquareConfig): { color: string; area: number } { // return { color: '1', area: 1 } // } // let mySquare = createSquare({ colour: "red", width: 100 } as SquareConfig); // let mySquare = createSquare({ colour: "red", width: 100 }); // interfa...
Typescript
result[std::move(key)] = parse_ubjson_internal(); get_ignore_noop(); } } return result; } /*! @brief throw if end of input is not reached @throw parse_error.110 if input not ended */ void expect_eof() const { if (JSON_UNLIKELY(...
C++
/* * Copyright (c) 2012 Justin Ruggles <justin.ruggles@gmail.com> * * This file is part of FFmpeg. * * FFmpeg is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License,...
C
"黑暗冥想肩衛", [105199] = "墮落議會之握", [105200] = "絕望迴蕩之視", [105201] = "諾努衫的短刃", [105202] = "現實撕裂者之戒", [105203] = "黑色看守者長袍", [105204] = "金色守衛者手套", [105205] = "無懼之怒護腿", [105206] = "隔離肩衛", [105207] = "盲目之恨護腕", [105208] = "盲目之怒巨盔", [105209] = "絕望之淵披氅", [105210] = "融合之火核心", [105211] = "曦風,泰坦守護者長刃", [105212] = "斷卻因果護腕", [105213] = ...
Lua
type = j->type; link.qIndex = j->qIndex; } else { if(j && j->mimic) LOG(0) <<"Featherstone cannot handle mimic joint ('" <<f->name <<"') properly - assuming rigid"; link.type = rai::JT_rigid; } // if(j) CHECK_EQ(j->dim, link.dof(), ""); } if(f->inerti...
C++
icationImportance, // 显示通知重要程度 QuickInstallPermission, // 安装未知应用权限免翻应用列表 NoThroughTheList, // 显示在上层授权免翻应用列表 // AodAvailable, // 解锁 AOD // AppMode, // 解锁应用布局设置 HpLocation, // 解锁高精度位置服务 ImeBottom, // 解锁全面屏优化 MechKeyboard, // 解锁机械键盘 ...
Kotlin
VEQ #0,D6 ; y=0 MOVEQ #0,D7 ; x2=0 MOVEQ #0,D0 ; y2=0 MOVEQ #50,D3 iterate_lp SUB.L D0,D7 ; x=x2-y2 ASL.L #4,D7 ; ... SWAP D7 ; ... ADD.W A2,D7 ; x=x2-y2+u MULS D5,D6 ; y=(y*x) ASL.L #5,D6 ; y=(2*x*y) SWAP D6 ; ... ADD.W A3,D6 ; y=(2*x*y)+v MOVE D7,D5 MULS D7,D7 ; x2=(x*x) MOV...
Assembly
""" Semantic Chat Interface with Vector Search and Retrieval This module provides a chat interface enhanced with semantic search, vector databases, and intelligent information retrieval. Features: - Semantic search capabilities - Vector database integration - Context-aware retrieval - Knowledge base q...
Python
t64(int value, [Endian? endian]) { _init(8); _data.setInt64(_offset, value, endian ?? this.endian); _offset += 8; } void writeInt(int byteLength, int value, [Endian? endian]) { switch (byteLength) { case 1: writeInt8(value); break; case 2: writeInt16(value, endia...
Dart
format!( "{} {}", "EXAMPLES:".yellow(), pairs .iter() .map(|(a, b)| format!("{}\n {}", format!("# {}", a).dimmed(), b)) .collect::<Vec<String>>() .join("\n\n "), ) } pub fn split_pair(pair: &str, sep: char) -> Option<(&str, &str...
Rust
// ڿƼȨ 2008-2022 // // ļTabPanel.h // ܣTabؼ塣 // // ߣMPF // ʱ 䣺2011-07-02 // // ============================================================================ #ifndef _UITABPANEL_H_ #define _UITABPANEL_H_ #include <Extend/suiwgxconfig.h> #include <Framework/Controls/Panel.h> namespace suic { enum TabArrangeMod...
C
5px;text-align:right;float:left}#luckysheet-ifFormulaGenerator-dialog .ifAttr .attrBox .inpBox{width:150px;height:100%;padding:0 10px;border:1px solid #d4d4d4;box-sizing:border-box;float:left}#luckysheet-ifFormulaGenerator-dialog .ifAttr .attrBox .inpBox input{width:100px;height:100%;padding:0;border:none;outline-styl...
CSS
html.fluxx-modeless { } /* 'bookarks' app */ html.fluxx-mode-bookmarks { } /* 'calendar' app */ html.fluxx-mode-calendar { } /* 'contacts' app */ html.fluxx-mode-contacts { } html.fluxx-mode-contacts #groupsheader,html.fluxx-mode-contacts #groupsheader *, html.fluxx-mode-contacts #content #contactsheader,html.fluxx-...
CSS