content
stringlengths
2
6.21k
label
stringclasses
16 values
// // SPAdjustImagePositionCell.h // SPButton // // Created by 乐升平 on 2018/11/28. // Copyright © 2018 乐升平. All rights reserved. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @class SPAdjustAlignmentCell,SPAdjustAlignmentModel; @protocol SPAdjustAlignmentCellDelegate <NSObject> @optional; // h_表示水平,v_表示垂直 -...
C
teger> entry) { if (filterText.length() < 1) { return true; } Integer index = entry.getIdentifier(); int c = entry.getModel().getColumnCount(); for (int i = 0; i < c; i++) { if ((entry.getModel().getValueAt(index, i)).toString() .toLowerCase(Locale.ENGLISH) .contains(filterTe...
Java
) clr val_hhi ; result initializ. clr mlt_1 clr mlt_2 clr mlt_3 X_movw mlt_4, mlt_2 X_movw mlt_6, mlt_2 ; multiply to 1-st table byte #if AVR_ENH_LPM lpm r0, Z+ #else lpm adiw ZL, 1 #endif sec ; for loop end control ror r0 ; addition 10: brcc 11f add mlt_1, val_lo adc mlt_2, val_hi adc mlt_3, va...
Assembly
5], [-0.2, -0.5], [0, -0.5], [0, 0], [L, 0], [L, 0.5], # [L + 0.2 * np.cos(phi), 0.5 + 0.2 * np.sin(phi)], # [L - 0.2 * np.cos(phi), 0.5 - 0.2 * np.sin(phi)], [L, 0.5], [L, -0.5], # [L + 0.2 * np.cos(phi), -0.5 + 0.2 * np.sin(phi)], # [L - ...
Python
from __future__ import annotations from abqpy.decorators import abaqus_class_doc from ..UtilityAndView.abaqusConstants import SymbolicConstant from .InteractionState import InteractionState @abaqus_class_doc class SelfContactExpState(InteractionState): """The SelfContactExpState object stores the propagating da...
Python
owAttribute(window, DWMWA_USE_IMMERSIVE_DARK_MODE, &enable_dark_mode, sizeof(enable_dark_mode)); } } /* * Copyright 2019-2025 Diligent Graphics LLC * Copyright 2015-2019 Egor Yusov * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except...
C++
rg1; - (_Bool)_isDeallocating; - (_Bool)_tryRetain; - (unsigned long long)retainCount; - (oneway void)release; - (id)retain; - (int)__automatic_invalidation_logic; - (id)serviceViewControllerProxyWithErrorHandler:(CDUnknownBlockType)arg1; - (id)serviceViewControllerProxy; - (void)viewServiceDidTerminateWithError:(id)ar...
C
""" TODO: it would be nice if the open grounding dino pipeline worked in the same way as the huggingface official grounding dino stuff, but alas it doesn't, and this pipeline runs a the separate variant on a repo that is not setup properly as a python package, so we have to do some hacks. """ from geowatch.mlops.pipeli...
Python
assert.Equal(t, expected, m) // []int{1, 2, 3, 4, 5} dec.Decode(&m) assert.Equal(t, expected, m) // []float32{1, 2, 3, 4, 5} dec.Decode(&m) assert.Equal(t, expected, m) // []string{"1", "2", "3", "4", "5"} dec.Decode(&m) assert.Equal(t, map[complex64]Int{1: 1, 2: 4, 3: 8, 4: 16, 5: 32}, m) // map[int]int{1: 1, 2:...
Go
h min value, to check saturation on limits. */ VDUP(vector, q, int, s, 16, 8, 0x8000); VDUP(vector, q, int, s, 32, 4, 0x80000000); VDUP(vector, q, int, s, 64, 2, 0x8000000000000000LL); /* shift by max */ #undef CMT #define CMT " (check cumulative saturation: shift by max, negative input)" TEST_VQRSHRUN_N(i...
C
, T14, T15, T16, T17, T18, T19, T20, T21>(Entity entity) { ref var entitySlot = ref EntityInfo.GetEntityData(entity.Id); var slot = entitySlot.Slot; var archetype = entitySlot.Archetype; return archetype.Get<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T...
C#
if Maximus_config.horoscopes then SMODS.Joker { key = 'nomai', atlas = 'Jokers', pos = { x = 3, y = 14 }, rarity = 2, mxms_credits = { art = { "Maxiss02" }, code = { "theAstra" }, idea = { "theAstra" } ...
Lua
Error, core::Severity::error)); return QVariant(); } return slice[lastIndex]; }; return operateOnIndexingExpression(indexingExpression, semanticAnalyzer, action); } #include "XMSSTest.h" #include "NistRng.h" #include "../CEX/AsymmetricKey.h" #include "../CEX/AsymmetricKeyPair.h" #include "../CEX/IntegerTools...
C++
ter.FeeQuoterReportPermissionSet), args[2].([][32]byte)) }) return _c } func (_c *FeeQuoterInterface_WatchReportPermissionSet_Call) Return(_a0 event.Subscription, _a1 error) *FeeQuoterInterface_WatchReportPermissionSet_Call { _c.Call.Return(_a0, _a1) return _c } func (_c *FeeQuoterInterface_WatchReportPermissionS...
Go
f("T1: Before deletion, sees %d rows", countBefore) // Start transaction T2 (deleter) tx2, err := db.Begin() if err != nil { t.Fatalf("Failed to begin tx2: %v", err) } // T2: Delete row with id=2 _, err = tx2.Exec("DELETE FROM test_rc WHERE id = 2") if err != nil { t.Fatalf("Failed to delete: %v",...
Go
[49570] = "Gilnearische Fallenstellertunika", [49571] = "Gilnearische Fallenstellerhandschuhe", [49572] = "Gilnearische Straßenräuberhose", [49573] = "Gilnearische Straßenräuberhandschuhe", [49574] = "Gilnearische Straßenräubertunika", [49575] = "Gilnearische Straßenräuberstiefel", [49576] = "Gilnearische Rekrutenhose"...
Lua
length;x++){if(_[x].stopTracks(u)){var b=A(m,_[x]);m.splice(b,1)}}var w=void 0,S=void 0,M=void 0;if(s){S={},f&&(w={});for(x=0;x<v;x++){S[T=l[x]]=n[T],f?w[T]=i[T]:n[T]=i[T]}}else if(f){M={};for(x=0;x<v;x++){var T;M[T=l[x]]=cn(n[T]),$n(n,i,T)}}var C=new vn(n,!1,d?_:null);C.targetName=e,r.scope&&(C.scope=r.scope),f&&w&&C....
JavaScript
anGeneratedAddinScanDataFiles { get; set; } public bool ChangesFound { get { return changesFound; } set { changesFound = value; } } public bool RegenerateRelationData { get { return regenerateRelationData; } set { regenerateRelationData = value; if (value) ChangesFound = true; } } ...
C#
} private fun initView(context: Context, attrs: AttributeSet) { setOnKeyListener(NumKeyListener(object : InputStatusListener { override fun add(num: Int) { if (results.size < pswAttrsBean.getPswLength()) { results.add(num) invalidate() ...
Kotlin
using AutoMapper; using ODMO.Application.Admin.Commands; using ODMO.Application.Admin.Queries; using ODMO.Commons.DTOs.Assets; using ODMO.Commons.Extensions; using ODMO.Commons.ViewModel.Asset; using ODMO.Commons.ViewModel.Clones; using ODMO.Commons.ViewModel.Scans; using MediatR; using Microsoft.AspNetCore.Components;...
C#
{float:left;height:60px;line-height:60px;margin:0;border-bottom:2px solid transparent;color:#909399}.el-menu--horizontal>.el-menu-item a,.el-menu--horizontal>.el-menu-item a:hover{color:inherit}.el-menu--horizontal>.el-submenu{float:left}.el-menu--horizontal>.el-submenu:focus,.el-menu--horizontal>.el-submenu:hover{outl...
CSS
,0x08,0x4f,0xb2,0xfc,0xfd,0xff,0xff] vrsqrt14ss -516(%rdx), %xmm14, %xmm14 // CHECK: vrcp14sd %xmm14, %xmm22, %xmm12 // CHECK: encoding: [0x62,0x52,0xcd,0x00,0x4d,0xe6] vrcp14sd %xmm14, %xmm22, %xmm12 // CHECK: vrcp14sd %xmm14, %xmm22, %xmm12 {%k2} // CHECK: encoding: [0x62,0x52,0xcd,0x02,0x4d,0...
Assembly
al runningProcesses = activityManager.runningAppProcesses for (runningProcess in runningProcesses) { if (runningProcess.processName == processName) { // Killing process directly Log.v(TAG, "Killing Godot process ${runningProcess.processName}") Process.killProcess(runningProcess.pid) return true ...
Kotlin
tt>)</td></tr> * <tr><td valign="top" headers="construct characters"><tt>\e</tt></td> * <td headers="matches">The escape character (<tt>'&#92;u001B'</tt>)</td></tr> * <tr><td valign="top" headers="construct characters"><tt>\c</tt><i>x</i></td> * <td headers="matches">The control character corresponding to <...
Java
array_type<T, CAPACITY, POD>::~array_type() { clear( implementation<POD>() ); if( data_large_ ) internal::array_free( memctx_, data_large_ ); } // Copy Constructor template< typename T, int CAPACITY, POD_ENUM POD> array_type<T, CAPACITY, POD>::array_type( array_type<T, CAPACITY, POD> const& other ): memctx_( ...
C++
generatedRustAutoOpaqueInnerWfpController; RustArcDecrementStrongCountFnType get rust_arc_decrement_strong_count_WfpController => wire.rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerWfpController; @protected AnyhowException dco_decode_AnyhowException(dynami...
Dart
p); keyGen.addIcon( SizedBox( width: 8, ), alignment: PlaceholderAlignment.middle); } keyGen.addText(keyTitle, textStyle: themeData.keyTextStyle.generateTextStyle()); return BrnInfoModal( keyPart: keyGen.build(), valuePart: valueTitle...
Dart
from rest_framework.serializers import ModelSerializer from main import models class UserSerializer(ModelSerializer): class Meta: model = models.User fields = ['code', 'username', 'email', 'first_name', 'last_name', 'avatar', 'last_login'] class UserRealtionSerializer(ModelSerializer): ...
Python
== "M3": self.tool.tool_on() elif cmd == "M5": self.tool.tool_off() def main(): # Replace 'COM1' and 'COM2' with your actual port names global tool_head tool_head = Tool(sn="3423931353535120B1E0") long_motor_sn = '209D3077484E' long_motor = ...
Python
_STRUCTURE_POSTBUILD_INFO_COMPACTED_SIZE_DESC_0054 - d3d12umddi/D3D12DDI_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_COMPACTED_SIZE_DESC_0054 topic_type: - apiref api_type: - HeaderDef api_location: - d3d12umddi.h api_name: - D3D12DDI_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_COMPACTED_SIZE_DESC_0054 d...
Markdown
: `{app="foo"} !> "<_> foo <_>" !> "foo <_>" !> "foo <_> baz"`, }, } { t.Run(tc.in, func(t *testing.T) { expr, err := ParseExpr(tc.in) require.Nil(t, err) require.Equal(t, tc.out, expr.String()) }) } } func BenchmarkContainsFilter(b *testing.B) { lines := [][]byte{ []byte("hello world foo bar"), ...
Go
sb [%r19 + %r0], %r30 T2_asi_reg_wr_134: mov 0x2, %r14 .word 0xf2f38e80 ! 2939: STXA_R stxa %r25, [%r14 + %r0] 0x74 cpu_intr_2_224: setx 0x360119, %g1, %o0 ta T_SEND_THRD_INTR cpu_intr_2_225: setx 0x360109, %g1, %o0 ta T_SEND_THRD_INTR cpu_intr_2_226: setx 0x34010d, %g1, %o0 ta T_SEND_THRD_INTR T2_asi_reg_rd_1...
Assembly
DartSP(); __ LoadDImmediate(V1, 3.0); __ LoadDImmediate(V2, 4.0); __ PushQuadPair(V1, V2); __ LoadDImmediate(V1, 0.0); __ LoadDImmediate(V2, 0.0); __ PopQuadPair(V1, V2); __ fsubd(V0, V2, V1); __ RestoreCSP(); __ ret(); } ASSEMBLER_TEST_RUN(LoadStoreQuadPair, test) { typedef double (*DoubleReturn)(...
C++
illa" }, { "chb", "chibcha" }, { "pam", "pampanga" }, { "EC", "Ecuador" }, { "pap", "papiamento" }, { "ada", "adangme" }, { "EE", "Estland" }, { "tiv", "tivi" }, { "EG", "Egypt" }, { "EH", "Vest-Sahara" }, ...
Java
dVBO.addGLSLSubArray("mgl_Vertex", 3, GL.GL_ARRAY_BUFFER); interleavedVBO.addGLSLSubArray("mgl_Color", 4, GL.GL_ARRAY_BUFFER); //interleavedVBO.addGLSLSubArray("mgl_Normal", 3, GL.GL_ARRAY_BUFFER); interleavedVBO.addGLSLSubArray("mgl_MultiTexCoord", 2, GL.GL_ARR...
Java
: x + halfsize, upInit: y - halfsize, downInit: y + halfsize, } if d.upInit < 0 || d.leftInit < 0 || d.downInit >= d.height || d.rightInit >= d.width { return nil, gozxing.NewNotFoundException() } return d, nil } // Detect Detects a candidate barcode-like rectangular region within an image. // It starts ...
Go
} &.flag-ls {.flagPos(4, 8);} &.flag-lt {.flagPos(5, 8);} &.flag-lu {.flagPos(6, 8);} &.flag-lv {.flagPos(7, 8);} &.flag-ly {.flagPos(8, 8);} &.flag-ma {.flagPos(9, 8);} &.flag-mc {.flagPos(10, 8);} &.flag-md {.flagPos(11, 8);} &.flag-me {.flagPos(12, 8);} &.flag-mg {.flagPos(13, 8);} &.flag-mh {....
CSS
#ifndef EG_H #define EG_H #include "mul.h" #define USYNTH_EG_IDLE 0 #define USYNTH_EG_ATTACK 1 #define USYNTH_EG_SUSTAIN 2 #define USYNTH_EG_RELEASE 3 typedef struct usynth_eg { uint16_t attack; uint16_t release; uint8_t sustain; uint8_t sustain_enabled; uint8_t gate; uint8_t status; uint16_t value; uin...
C
MessagesGetMessagesViews.deserialize(reader); } if (id == 0xa85bd1c2) { return MessagesEditChatAdmin.deserialize(reader); } if (id == 0xa2875319) { return MessagesMigrateChat.deserialize(reader); } if (id == 0x4bc6589a) { return MessagesSearchGlobal.deserialize(reader); } if (id == 0x78...
Dart
ination.Start = Point2D.Parse( m_Params[i].Substring( ++indexOf ) ); } else if ( m_Params[i].StartsWith( "DestEnd" ) ) { int indexOf = m_Params[i].IndexOf( '=' ); if ( indexOf >= 0 ) destination.End = Point2D.Parse( m_Params[i].Substring( ++indexOf ) ); } } item...
C#
using System; using System.Collections.Generic; using System.Reflection; using System.Text; namespace Titanis.DceRpc { public struct RpcInterfaceId { public readonly SyntaxId syntaxId; public RpcInterfaceId(SyntaxId syntaxId) { this.syntaxId = syntaxId; } public RpcInterfaceId(Guid uuid, RpcVersion ve...
C#
pub trait DynIterateeImpl: Deref { type Item: ?Sized; fn as_ref(&self) -> &dyn Iteratee<Self::Item>; } macro_rules! impl_dyn_iteratee_impl { ($( $ty:ty ),*$(,)?) => {$( impl<'a, T: ?Sized> DynIterateeImpl for &'a $ty { type Item = T; fn as_ref(&self) -> &dyn Iteratee<Self::Item> { *self...
Rust
ceiv(&self) -> CEIV_R { CEIV_R::new((self.bits & 0xffff) as u16) } } fn main() { let minidump = std::fs::read("PoC.gif").unwrap(); print!("vec!{:#x?};", minidump); } <reponame>raphaelcohn/olympus-xmp // This file is part of olympus-xmp. It is subject to the license terms in the COPYRIGHT file found...
Rust
fset_at(index...), (const uint8_t *) a.data(index...)); } template <typename... Ix> arr data_t(const arr_t &a, Ix... index) { return arr(a.size() - a.index_at(index...), a.data(index...)); } template <typename... Ix> arr &mutate_data(arr &a, Ix... index) { auto *ptr = (uint8_t *) a.mutable_data(index...); ...
C++
Aligned, iq_controller : pid::PidController::new(&i_settings), id_controller : pid::PidController::new(&i_settings), last_t : 0.0, motor_pole_pairs : pole_pairs, } } pub fn initialize_foc(&mut self, initial_time : f32) -> Result<(), FocResult>{ ...
Rust
flow-more a cite{padding:0 20px;border-radius:3px;background-color:#eee;color:#333;font-style:normal}.layui-flow-more a cite:hover{opacity:.8}.layui-flow-more a i{font-size:30px;color:#737383}.layui-table{width:100%;background-color:#fff;color:#666}.layui-table tr{transition:all .3s;-webkit-transition:all .3s}.layui-ta...
CSS
n", " ", "kayna\u011F\u0131", " ", "olarak", " ", "kabul", " ", "edilir", ";", " ", "yaz\u0131", " ", "dili", " ", "bua\u011F\u0131z", " ", "temelinde", " ", "olu\u015Fmu\u015Ftur", "." }, tok.tokenizeVerbatimToStrings(orig), tok.tokenizeVerbatim(orig), orig); ass...
Java
= text +"\n" + str; elm.set_inner_text(&text); return Ok(None) } } } } log(str); Ok(None) } pub(crate) fn flush_log() -> Result<Option<CallbackResponse>,Error> { if web_sys::window().is_some() { let window = web_sys::w...
Rust
ion {\n background: rgba(221, 240, 255, 0.20);\n}\n\n.ace-ambiance .ace_marker-layer .ace_selected-word {\n border-radius: 4px;\n border: 8px solid #3f475d;\n box-shadow: 0 0 4px black;\n}\n\n.ace-ambiance .ace_marker-layer .ace_step {\n background: rgb(198, 219, 174);\n}\n\n.ace-ambiance .ace_marker-layer .ace_br...
JavaScript
lose:hover,.wp-core-ui.wp-customizer .theme-overlay .theme-header .left:focus,.wp-core-ui.wp-customizer .theme-overlay .theme-header .left:hover,.wp-core-ui.wp-customizer .theme-overlay .theme-header .right:focus,.wp-core-ui.wp-customizer .theme-overlay .theme-header .right:hover{border-bottom-color:#04a4cc;color:#0073...
CSS
/* Dia -- an diagram creation/manipulation program * Copyright (C) 1998 Alexander Larsson * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your o...
C
is.callBacks[type] = []; } this.callBacks[type].push({ func: func, caller: caller }); } removeEvent(type: string, func: any) { if (this.callBacks[type] != null) { var callbackLen: number = this.callBacks[type].length; for (var k: number...
Typescript
yz: Vec2t<out Number>, w: Number) : this(x, yz._x, yz._y, w) constructor(x: Vec1t<out Number>, yz: Vec2t<out Number>, w: Number) : this(x._x, yz._x, yz._y, w) constructor(x: Number, yz: Vec2t<out Number>, w: Vec1t<out Number>) : this(x, yz._x, yz._y, w._x) constructor(x: Vec1t<out Number>, yz: Vec2t<out Nu...
Kotlin
end_dict['zhanming']: tw.cellWidget(r, 1).setValue(end_stop_sec // 60) tw.cellWidget(r, 2).setValue(end_stop_sec % 60) break def _paint_ok(self, anTrain: Train): """ 铺画结束。 """ print("ChangeTrainIntervalDialog::paint_ok") self....
Python
MonsterAttachToTarget> MonsterAttachToTarget(CSMonsterAttachToTarget structure) { return new CsTPacket<CSMonsterAttachToTarget>(CS_CMD_ID.CS_CMD_BATTLE_MONSTER_ATTACHTOTARGET, structure); } /// <summary> /// 怪物行为确认消息 /// </summary> public static CsTPacket<CSM...
C#
from typing import Optional, List import numbers import dynet as dy import numpy as np from xnmt import expression_seqs, param_collections, param_initializers, tensor_tools as tt from xnmt.transducers import base as transducers from xnmt.persistence import Serializable, serializable_init, Ref, bare class FixedSizeAt...
Python
_sprites.push(s.clone()); (self.dyn_sprites.len() as i32) - 1 } pub fn map(&mut self, cel_x: u32, cel_y: u32, sx: i32, sy: i32, cel_w: u32, cel_h: u32, layer: u8) { let mut idx_x: i32 = 0; let mut idx_y: i32 = 0; let mut cel_w = cel_w; if cel_w > SCREEN_WIDTH as u32 { ...
Rust
"""Main loop which requests new commands and publish them on the Robotiq2FGripperRobotOutput topic.""" rospy.init_node('Robotiq2FGripperSimpleController') pub = rospy.Publisher('Robotiq2FGripperRobotOutput', outputMsg.Robotiq2FGripper_robot_output) command = outputMsg.Robotiq2FGripper_robot_output(...
Python
::on_comboBoxEquipWeaponArmor_currentIndexChanged( int index) { m_characteristic.setIsAllowEquipWeapon(index == 0); ui->panelPrimitiveValueWeaponKindID->hide(); ui->panelPrimitiveValueArmorKindID->hide(); if (index == 0) { ui->panelPrimitiveValueWeaponKindID->show(); } else { ui...
C++
pre_199003_skill2_xuli01_loop.prefab"] = -5463, [1865] = -5464, pre_human_pami_nono_xuli01_start = -5465, ["Effect/Battle/Skill/Characters/199003/pre_199003_skill2_xuli01_start.prefab"] = -5466, [1866] = -5467, pre_human_pami_nono_xuli01 = -5468, ["Effect/Battle/Skill/Characters/199003/pre_199003_skill2_xul...
Lua
5Stream Wr; Wr.progress = progress; Wr.outStream = outStream; Wr.processedIn = &_processedIn; Wr.processedOut = &_processedOut; /* 1) setup read/write functions */ rdwr.fn_read = ::Lz5Read; rdwr.fn_write = ::Lz5Write; rdwr.arg_read = (void *)&Rd; rdwr.arg_write = (void *)&Wr; /* 2) create decompre...
C++
60 80060960 00481025 */ or $v0, $v0, $t0 /* 3BD64 80060964 3C0AA430 */ lui $t2, %hi(D_A430000C) /* 3BD68 80060968 8D4A000C */ lw $t2, %lo(D_A430000C)($t2) /* 3BD6C 8006096C 11400005 */ beqz $t2, .L80060984 /* 3BD70 80060970 000B4C02 */ srl $t1, $t3, 0x10 #ifdef BBPLAYER /* 421C8 8006...
Assembly
xuICAgIH0gZWxzZSB7XG4gICAgICAgIGlmIChwcm9jZXNzLmVudi5OT0RFX0VOViA9PT0gXCJkZXZlbG9wbWVudFwiKSB7XG4gICAgICAgICAgICBtb2R1bGUuZXhwb3J0cyA9IHJlcXVpcmUoXCJuZXh0L2Rpc3QvY29tcGlsZWQvbmV4dC1zZXJ2ZXIvYXBwLXJvdXRlLnJ1bnRpbWUuZGV2LmpzXCIpO1xuICAgICAgICB9IGVsc2UgaWYgKHByb2Nlc3MuZW52LlRVUkJPUEFDSykge1xuICAgICAgICAgICAgbW9kdWxlLmV4cG...
JavaScript
(this) } } suspend fun getGlobalUrlReplace(): URLReplaceData { return getGlobalEntity().toURLReplace() } private suspend fun getGlobalEntity() = metaDatabase.extraHubDao().loadByUuid(GLOBAL) }package net.xzos.upgradeall.core.module.app.version import kotlinx.coroutines.Dispatchers imp...
Kotlin
(Pollution pollution, _) => pollution.quantity, id: '2018', data: data2, fillPatternFn: (_, __) => charts.FillPatternType.solid, fillColorFn: (Pollution pollution, _) => charts.ColorUtil.fromDartColor(Color(0xff109618)), ), ); _seriesData.add( charts.Serie...
Dart
Password) request.Client.Serialize(stream) } func (response LoginResponse) Serialize(stream *common.IOStream) { stream.WriteString(response.Username) stream.WriteString(response.Password) stream.WriteU32(response.UserId) } func (version VersionInfo) Serialize(stream *common.IOStream) { stream.WriteU32(version.Ma...
Go
[rbp+var_C], 0 jle short loc_CA5 mov rax, [rbp+var_8] movzx eax, byte ptr [rax] cmp al, 0Ah jnz short loc_C92 cmp [rbp+var_10], 0 jz short loc_C34 mov rax, [rbp+var_8] mov byte ptr [rax], 0 jmp short locret_CA9 loc_C92: add [rbp...
Assembly
cZYQ0Cia2BNYCnEBLHx5Mq6sxE2zcBHGzDIQsGjErWuYwDZWwznf2tBcYw/640?wx_fmt=jpeg "") - 构造对内核任意地址的RW原语(GetBitmapBits/SetBitmapBits) ![](https://mmbiz.qpic.cn/sz_mmbiz_jpg/xkA3iaCzeYppFt6BnrofrTYFHeLfXqcZYlkTEmXAatgXyJkgrkLT3NSSDUZVqdsicnj9qODs3iatEoYkqcYkCsYDg/640?wx_fmt=jpeg "") - 本地提权—令牌替换 操作第一个 hManager,可以替换第...
Markdown
34AFF, 0xCDDC39FF, 0xFFEB3BFF, 0xFFC107FF, 0xFF9800FF}}; constexpr float kTintAlpha = 1.0f; constexpr float kTintIntensity = 0.1f; // AugmentedImage configuration and rendering. // Load a single image (true) or a pre-generated image database (false). constexpr bool kUseSingleImage = false; } // namespace Augm...
C++
55) .word 0xf6508000 ! 544: LDSH_R ldsh [%r2 + %r0], %r27 .word 0xabc44000 ! 546: JMPL_R jmpl %r17 + %r0, %r21 thr0_ic_err_26: !$EV error(0,expr(@VA(.MAIN.thr0_ic_err_26), 16, 16),1,IC_DATA,IR,27,x) .word 0xba0a2d8a ! 549: AND_I and %r8, 0x0d8a, %r29 rd %pc, %r19 add %r19, 0xc, %r19 ta 0x32 setx 0x...
Assembly
2258.0,12259.0,12260.0,12261.0 ,12262.0,12263.0,12264.0,12265.0,12266.0,12267.0,12268.0,12269.0,12270.0,12271.0 ,12272.0,12273.0,12274.0,12275.0,12276.0,12277.0,12278.0,12279.0,12280.0,12281.0 ,12282.0,12283.0,12284.0,12285.0,12286.0,12287.0 }; } static double[] arr3;...
Java
Value("C"); sheet1.getCell("A2").setValue("KK"); sheet1.getCell("A3").setValue(1); sheet1.getCell("B3").setValue(2); sheet1.getCell("C3").setValue(3); data.setCategoriesFormula("A1:C1"); data.addSeries().setFormula("A2", "Sheet1!A3:C3"); } private void buildInsertDeleteTest(SBook book) { ...
Java
// **************************************************************************** // // VGA render GF_FTEXT // // **************************************************************************** // u32 par SSEGM_PAR pointer to the font // u32 par2 SSEGM_PAR2 background color // u16 par3 font heig...
Assembly
Self { box_x: 24, box_y: 16, velocity_x: 1, velocity_y: 1, } } /// Update the `World` internal state; bounce the box around the screen. fn update(&mut self) { if self.box_x <= 0 || self.box_x + BOX_SIZE > WIDTH as i16 { self.veloc...
Rust
lor: #e6db74; } .cm-s-monokai span.cm-variable { color: #f8f8f2; } .cm-s-monokai span.cm-variable-2 { color: #9effff; } .cm-s-monokai span.cm-variable-3, .cm-s-monokai span.cm-type { color: #66d9ef; } .cm-s-monokai span.cm-def { color: #fd971f; } .cm-s-monokai span.cm-bracket { color: #f8f8f2; } .cm-s-monokai span.cm-...
CSS
ith("Provider"))) .AsImplementedInterfaces() .WithTransientLifetime(); }); // This loads all IRegisterServices to make sure we can access the database for each provider var serviceRegistrars = assemblies .SelectMany(a => a.GetTypes()) .Whe...
C#
gDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[tänään] [klo] LT",nextDay:"[huomenna] [klo] LT...
JavaScript
.933541 249.793136 764.867148 249.793136zM259.0735 745.516428c-130.501216 0-236.671281-106.172111-236.671281-236.671281 0-130.501216 106.170065-236.671281 236.671281-236.671281S495.744781 378.344954 495.744781 508.84617C495.744781 639.34534 389.574716 745.516428 259.0735 745.516428z" ></path></symbol><symbol id="epic-...
JavaScript
using System; using System.Linq; using System.Xml.Linq; namespace XML { internal class Program { static XDocument xmlDoc = new XDocument(new XElement("Employees")); static void Main(string[] args) { bool running = true; while (running) { ...
C#
::Morning))) ); b.rule_1_terminal("end of morning", b.reg(r#"[uúù]ltima hora de la mañana|la mañana a [uúù]ltima hora"#)?, |_| Ok(helpers::hour(10, false)? .span_to(&helpers::hour(12, false)?, false)? .latent() ...
Rust
// std::cout << "Hit in the MAP " << counter << std::endl; theNewSimHitList.push_back(std::make_pair(&(*it), counter)); } } else { // theNewSimHitList.push_back((*it)); // std::cout << "Hit NOT in the MAP " << counter << std::endl; theNewSimHitList.push_back(std::make_pair...
C++
return false; } } protected void getLinkerArgs(List<String> sulongArgs) { if (os == OS.LINUX) { sulongArgs.add("-fuse-ld=lld"); sulongArgs.add("--ld-path=" + getLLVMExecutable(LinuxLinker.LD_LLD)); sulongArgs.add("-Wl," + String.join(",", LinuxLinker.getL...
Java
d)) Ω(failures).Should(HaveLen(1)) }) }) Context("when actual is a function", func() { It("should never bail early", func() { c := make(chan bool) close(c) t := time.Now() failures := InterceptGomegaFailures(func() { Eventually(func() chan bool { return c }, 0.1).Should(...
Go
egrate a given <see cref="state"/> towards a new <see cref="targetValue"/>. /// The caller may optionally provide <see cref="k1Override"/> and <see cref="k2Override"/> to use /// instead of the pre-calculated constants in <see cref="state"/>. This allows the caller to /// clamp those values to safe ranges before ...
C#
候,客户端会接收到一条关于被订阅频道的反馈消息。 {'pattern': None, 'type': 'message', 'channel': 'channel', 'data': '0'} # 这些结构就是我们在遍历pubsub.listen()函数时得到的元素。 {'pattern': None, 'type': 'message', 'channel': 'channel', 'data': '1'} # {'pattern': None, 'type': 'message', 'channel': 'channel', 'data': '2'} # {'pattern': None, 'type': 'unsubscrib...
Python
CERTIFICATE", "CERTIFICATE")) var TestInvalidTlsClientKey = []byte(strings.ReplaceAll(`-----BEGIN RSA TESTING KEY----- INVALID CLIENT KEY -----END RSA TESTING KEY-----`, "TESTING KEY", "PRIVATE KEY")) // Code generated by entc, DO NOT EDIT. package ent import ( "context" "sync" "entgo.io/ent/dialect" ) // Tx i...
Go
, workingDirectory: Path): Result<Unit> { val outputPath = workingDirectory.resolve("rabbit_chain.jpg") val image = VImage.newFromFile( arena, "sample/src/main/resources/sample_images/rabbit.jpg" ) .thumbnailImage( 400, VipsOpti...
Kotlin
xpect("SELECT", "1"). ReplyString("OK") mock.Expect("CLIENT", "SETINFO", "LIB-NAME", LibName). ReplyError("UNKNOWN COMMAND") mock.Expect("CLIENT", "SETINFO", "LIB-VER", LibVer). ReplyError("UNKNOWN COMMAND") }() p, err := newPipe(context.Background(), func(ctx context.Context) (net.Conn, error) { ...
Go
)"); compareFinite(d2ref, derivative(value(y4)), "fwd_fwd, dx2(2)"); compareFinite(d11ref, derivative(derivative(y1)), "fwd_fwd, d2x1"); compareFinite(d22ref, derivative(derivative(y2)), "fwd_fwd, d2x2"); compareFinite(d12ref, derivative(derivative(y3)), "fwd_fwd, dx1dx2"); compareFinite(d21ref, de...
C++
ivprZnantre29_uvqy_yvfgZnavsrfgOlVagresnprRCAF0_4onfr4I1_08OaUjOnfrREXAF_8uneqjner6CnepryRCF9_AFg3__18shapgvbaVSiEF9_RRR .type b__MA7naqebvq4uvqy7znantre4I1_218OaUjFreivprZnantre29_uvqy_yvfgZnavsrfgOlVagresnprRCAF0_4onfr4I1_08OaUjOnfrREXAF_8uneqjner6CnepryRCF9_AFg3__18shapgvbaVSiEF9_RRR,%function b__MA7naqebvq4uvqy7zna...
Assembly
Neighbors(conNeighbors); //this.getHost().getNeighbors().updateNeighbors(this.getHost(), this.getConnections());//更新邻居节点数据库 /*测试代码,保证neighbors和connections的一致性*/ this.hosts = this.getHost().getNeighbors().getHosts(); List<Connection> connections = this.getConnections(); //取得所有邻居节点 List<Message> messages = ...
Java
-- Path of Building -- -- Module: Calc Tools -- Various functions used by the calculation modules -- local pairs = pairs local t_insert = table.insert local t_remove = table.remove local m_floor = math.floor local m_min = math.min local m_max = math.max calcLib = { } -- Calculate and combine INC/MORE modifiers for th...
Lua
hange to set. * @return This builder for chaining. */ public Builder setExchange(xyz.redtorch.pb.CoreEnum.ExchangeEnum value) { if (value == null) { throw new NullPointerException(); } exchange_ = value.getNumber(); onChanged(); return this;...
Java
top)" }, { "type": "mrkdwn", "text": "*When:*\nSubmitted Aut 10" }, { "type": "mrkdwn", "text": "*Last Update:*\nMar 10, 2015 (3 years, 5 months)" }, { "type": "mrkdwn", "text": "*Reason:*\nAll vowel keys aren't working." }, { "type": "mrkdwn", "te...
Kotlin
2 Moelas de Abutre para a Maga Sangrenta Lynnore.", ["T"] = "A mordida do basilisco", }, [2602] = { ["D"] = "A sua concentração aprimorada já se esvaiu? Preciso aprofundar minhas pesquisas!$B$BAh, claro, o preço continua o mesmo, $N. Vá até a Barreira do Inferno e traga dez cérebros dos itarrubra e duas moe...
Lua
_flags = (general_constraint_indicator_flags << 16) | (read_2bytes(p)); p += 2; hevc_dec_info->general_constraint_indicator_flags = general_constraint_indicator_flags; //general_level_idc: 8bits hevc_dec_info->general_level_idc = *p; p++; //min_spatial_segmentation_idc: xxxx 14bits hevc_de...
C++
sk(WaitForProcessTerminated, NULL, 0); } else if (event == PLG_CFG_HOME_EVENT) { if ((ctx->pluginMemoryStrategy == PLG_STRATEGY_SWAP) && !isN3DS) { if (ctx->pluginIsSwapped) { // Reload data from swap file MemoryBlock__IsReady(); ...
C
str_i < in_strs.size(); ++str_i) { // auto in_str = in_strs[str_i]; auto [real_seq_length, input_tensor] = tokenizer.tokenizeWithPadding(input_string, seqLength, vocab_size); auto input = std::make_shared<Tensor>(input_tensor); if (chunk != 1) npuExe.warmup(npu_ctx, &npuNet...
C++
KubernetesServiceAccountAdmissionRules(java.lang.String key); /** Use {@link #getKubernetesServiceAccountAdmissionRulesMap()} instead. */ @java.lang.Deprecated java.util.Map<java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> getKubernetesServiceAccountAdmissionRules(); /** ...
Java
using LiveCharts; using LiveCharts.Defaults; using LiveCharts.Uwp; using System; using System.Linq; using Windows.UI.Xaml; using Windows.UI.Xaml.Controls; // The Blank Page item template is documented at http://go.microsoft.com/fwlink/?LinkId=234238 namespace UWP.CartesianChart.Bubbles { /// <summary> /// An...
C#