content
stringlengths
2
6.21k
label
stringclasses
16 values
/* Copyright (c) 2019 Festo SE & Co. KG <https://www.festo.com/net/de_de/Forms/web/contact_international> Author: Michael Hoffmeister This source code is licensed under the Apache License 2.0 (see LICENSE.txt). This source code may use other Open Source software components (see LICENSE.txt). */ using AasxPluginHelp...
C#
mem, ) .unwrap(); let resp = zhttppacket::OwnedResponse::parse(msg, 0, scratch).unwrap(); let resp = arena::Rc::new(resp, &resp_mem).unwrap(); assert_eq!(s_to_conn.try_send((resp, 0)).is_ok(), true); assert_eq!(check_poll(executor.step()), None); let data = so...
Rust
ameters. return true; else return false; } } else return false; } else if (!IsASpaceOrTab(ch)) return false; } return false; } static bool IsInnerLevelFold(Sci_Position line, LexAccessor &styler) { Sci_Position pos = styler.LineStart(line); Sci_Position eol_pos = styler.LineSt...
C++
ine RSA_F_RSA_PADDING_CHECK_SSLV23 114 #define RSA_F_RSA_PADDING_CHECK_X931 128 #define RSA_F_RSA_PRINT 115 #define RSA_F_RSA_PRINT_FP 116 #define RSA_F_RSA_PRIVATE_ENCRYPT 137 #define RSA_F_RSA_PUBLIC_DECRYPT 138 #define RSA_F_RSA_SETUP_BLINDING 136 #define RSA_F_RSA_SET_DEFAULT_METHOD 139 #...
C
HQ9IjIzIiByeD0iMTEuNSI+PC9yZWN0PgogICAgICAgICAgICAgICAgPC9nPgogICAgICAgICAgICAgICAgPGcgaWQ9ImljX2V4cGFuZCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMTIuMDAwMDAwLCAxMi4wMDAwMDApIHJvdGF0ZSg5MC4wMDAwMDApIHRyYW5zbGF0ZSgtMTIuMDAwMDAwLCAtMTIuMDAwMDAwKSAiPgogICAgICAgICAgICAgICAgICAgIDxwb2x5Z29uIGlkPSJTaGFwZSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoM...
CSS
mo.common.core.util.DateUtils; import com.momo.common.core.util.LevelUtil; import com.momo.common.core.util.snowFlake.SnowFlake; import com.momo.mapper.dataobject.AclDO; import com.momo.mapper.dataobject.DataDictDO; import com.momo.mapper.enums.DisabledFlagEnum; import com.momo.mapper.mapper.manual.DataDictMapper; impo...
Java
.mozilla.org/en-US/docs/Web/API/FocusEvent/FocusEvent">FocusEvent</a></li> * <li> <a href="https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/KeyboardEvent">KeyboardEvent</a></li> * <li> <a href="https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/MouseEvent">MouseEvent</a></li> * <li> <a h...
Java
/* SPDX-License-Identifier: GPL-2.0-or-later */ #include <device/device.h> #include <device/pnp.h> #include <pc80/keyboard.h> #include <superio/conf_mode.h> #include "nct6776.h" /* Both NCT6776D and NCT6776F package variants are supported. */ static void nct6776_init(struct device *dev) { if (!dev->enabled) retu...
C
#include "globalconfig.h" #define OFFS__KIP_CLOCK 0x20 #define OFFS__KIP_FN_READ_US 0x900 #define OFFS__KIP_FN_READ_NS 0x980 .section ".initcall.text", "ax" .set noreorder #define KIP_VAL(v) KIP_OFFS(v)($t9) #ifdef CONFIG_BIG_ENDI...
Assembly
ign_Engineer01", [176687] = "의자", [23572] = "화톳불", [170544] = "긴 의자", [179759] = "의자", [29771] = "나무 의자", [19545] = "신탁의 숲", [139852] = "설리 발루의 기념비", [133466] = "긴 의자", [176688] = "의자", [22220] = "드워프 화로", [61074] = "나무 의자", [5620] = "혼란의 마법석", [180784] = "AQWar - Resource, Bars, Alliance, Tie...
Lua
(), GlobalOptionsFragment::class.java, null, Configuration.ORIENTATION_UNDEFINED ) return true } R.id.mi_cellular_usage -> { show( requireActivity(), CellularStatsFragment::class.java, null, ...
Kotlin
SearchData(1049, 451598, 'Fragment', 'fragment|earthenware; glazed|ceramics'), SearchData(1199, 451570, 'Fragment', 'fragment|stonepaste; slip painted and glazed|ceramics'), SearchData(50, 324245, 'Fragment of painted ware', 'sherd|ceramic|'), SearchData(50, 325903, 'Lamp', 'lamp|ceramic|'), SearchData(849, 4...
Dart
then return end self.m_strConVarYValue = numValue self:SetSlideY( self.m_strConVarYValue ) end -- Deprecated AccessorFunc( PANEL, "NumSlider", "NumSlider" ) AccessorFunc( PANEL, "m_iNotches", "Notches" ) function PANEL:SetImage( strImage ) -- RETIRED end function PANEL:SetImageColor( color ) -- RETIRED end f...
Lua
) { hurryUpSprite.scaleTo(0.8 + (Math.sin(new Date().valueOf() * 0.01) / (Math.PI * 2) * 0.2)); hurryUpSprite.draw(); } if (findEmAllSprite) { findEmAllSprite.scaleTo(0.8 + (Math.sin(new Date().valueOf() * 0.01) / (Math.PI * 2) * 0.2)); ...
JavaScript
ns"> <button type="submit" class="btn btn-primary js-ajax-submit">{:L('SAVE')}</button> </div> </form> </div> <script src="__PUBLIC__/js/common.js"></script> </body> </html> <admintpl file="header" /> </head> <body> <div class="wrap js-check-wrap"> <ul class="nav nav-tabs"> <li class="active"><a href="...
HTML
mt) => visitor.visit_raise_stmt(raise_stmt), Stmt::LetDecl(let_decl_stmt) => visitor.visit_let_decl_stmt(let_decl_stmt), Stmt::FnDecl(fn_decl_stmt) => visitor.visit_fn_decl_stmt(fn_decl_stmt), Stmt::Assign(assign_stmt) => visitor.visit_assign_stmt(assign_stmt), Stmt::Retu...
Rust
{ this.attashContext(ctx) fn() this.unattashContext() } private static g = new GlobalContaintContext() static selectCurrentContext() { return this.g.selectCurrentContext() } static selectContext<T, T2 extends A<T> | undefined>(key: T, defaultAttach?: T2) { return this.g.selectContext(k...
Typescript
get('NotImplementedError'), "window outer size not supported"); }, TMP_6.$$arity = 0); }; Opal.defn(self, '$width=', TMP_7 = function(value) { var self = this; return self.$set($hash2(["width"], {"width": value})); }, TMP_7.$$arity = 1); return (Opal.defn...
JavaScript
$s5, 0x16($s2) /* 1489F74 800849AC 40180300 */ sll $v1, $v1, 1 /* 1489F78 800849B0 21104300 */ addu $v0, $v0, $v1 /* 1489F7C 800849B4 0E0042A6 */ sh $v0, 0xE($s2) .Llevel_14_800849B8: /* 1489F80 800849B8 8800A88F */ lw $t0, 0x88($sp) /* 1489F84 800849BC 00000000 */ nop /* 1489F88 800...
Assembly
2"> DETAIL:&nbsp;FIELD&nbsp;|&nbsp;METHOD</FONT></TD> </TR> </TABLE> <!-- ========= END OF TOP NAVBAR ========= --> <HR> <!-- ======== START OF CLASS DATA ======== --> <H2> <FONT SIZE="-1"> org.gradle.api.publish.ivy</FONT> <BR> <span CLASS="ClassTitleFont">[Java] Interface IvyConfigurationContainer</span></H2> <pr...
HTML
bplot <- function(x, formula, lfun=lattice::levelplot, xlab, ylab, zlab, adj.subtitle=!info$ref.zero, cex.adj=.75, cex.lab=1, perim, showperim=FALSE, zlim=range(yhat, na.rm=TRUE), scales=list(arrows=FALSE), xlabrot, ylabrot, zlabrot=90, ...) { if(! requireNamespace('latti...
Assembly
C_BOOK3S_64 /* can't use RESTORE_SPECIAL(MSR) */ ld r0, SL_MSR(r11) mtmsrd r0, 0 BEGIN_FW_FTR_SECTION RESTORE_SPECIAL(SDR1) END_FW_FTR_SECTION_IFCLR(FW_FEATURE_LPAR) #else /* Restore SPRG1, be used to save paca */ ld r0, SL_SPRG1(r11) mtsprg 1, r0 RESTORE_SPECIAL(MSR) /* Restore TCR and clear any pending bit...
Assembly
/*---------------------------------------------------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | \\ / A nd | Copyright (C) 2013 OpenFOAM Foundation \\/ M anipulation | -------------...
C
dress as usize; match address { VRAM_BEGIN ... VRAM_END => { self.gpu.read_vram(address - VRAM_BEGIN) } _ => panic!(\"TODO: support other areas of memory\") } } fn write_byte(&self, address: u16, value: u8) { let address = address as usize; match address { VRAM_BEGIN ... VRAM_END => { self.gpu.write_vram(address - VRAM...
JavaScript
while (true) { final last = lastChild.nextElementSibling; if (last == null) { break; } last.remove(); } } } @override Element operator [](int index) { var node = _element.firstChild; while (node != null) { if (node is Element) { if (...
Dart
}}{{effects=This rather syrupy potion must be stored in a metallic container. The imbiber can become any hue or combination of hues desired at will. Any color or combination of colors is possible, if the user simply holds the thought in his mind long enough for the hue to be effected. If the potion is quaffed sparingly...
JavaScript
DayOfWeekMapper( mapOf( Pair(DayOfWeek.SUNDAY, "sunday"), Pair(DayOfWeek.MONDAY, "monday"), Pair(DayOfWeek.TUESDAY, "tuesday"), Pair(DayOfWeek.WEDNESDAY, "wednesday"), Pair(D...
Kotlin
//模糊遮罩效果,flutter中只有这个 // ..filterQuality = FilterQuality.high //颜色渲染模式的质量 // ..strokeWidth = 15.0 ;//画笔的宽度 painter = new Paint() ..color = Colors.blueAccent ..strokeCap = StrokeCap.round ..isAntiAlias = true ..strokeWidth = 5.0 ..filterQuality = FilterQuality.high ...
Dart
a3d1] - Updated dependencies [fae0f943] - @pothos/core@3.23.1 - @pothos/plugin-prisma@3.37.0 ## 2.4.12 ### Patch Changes - Updated dependencies [26774fa0] - @pothos/plugin-prisma@3.37.0 ## 2.4.11 ### Patch Changes - Updated dependencies [8841e861] - Updated dependencies [cd1c0502] - Updated dependencies [99...
Markdown
ref="#" onclick="VMail.App.color_method(false, true);" class="selectedlink">People</a> </div> <div id="snapshot_holder"> <div class="heading2">Take a snapshot</div> - <a href="#" id="email_net_link"> with labels</a></br> - <a href="#" id="email_net_notext_link"> without labels</a> </di...
HTML
NTER BGCOLOR='#99CCFF'><TD ALIGN=CENTER COLSPAN='6'><B>Detailed Reports</B></TD><TD ALIGN=RIGHT WIDTH='10%'COLSPAN=1> <A HREF_DISABLED="?&ExpandedTable=DetailedReports"><B>[-]</B></a></TD></TR> <TR BGCOLOR='#FFFF99'><TD><B>Report Name</B></TD><TD><B>Status</B></TD><TD><B>Generated</B></TD> <TD ALIGN=LEFT><B>Errors</B><...
HTML
SummaryItem) .reduce(this.reduceSummaryItems, [] as ICartSummaryItem[]); } addItem(item: ICartItem): void { this._items.push(item); this._observableItems.next(this._items); } removeItem(item: ICartItem): void { const index = this._items.findIndex(i => i.id === item....
Typescript
riority: priority, cancelToken: cancelToken ); } } import 'dart:ui' as ui; import 'package:chan/services/imageboard.dart'; import 'package:chan/services/settings.dart'; import 'package:chan/services/theme.dart'; import 'package:chan/sites/imageboard_site.dart'; import 'package:chan/util.dart'; import 'package:ch...
Dart
rom a 32 bit ULONG at specified bit position. // Parameter bits needs to be 4 bytes long. // Ex. ul32 = 0xFEDCBA98 // ulVal = NV_BIT_GETVALUE(ul32, 3, 0) : Gets value from Bit position 3 to 0 // Result : ulVal = 8 #define NV_BIT_GETVALUE(ulOrigValue, bitposHi, bitposLow) (((ulOrigValue) >> (bitposLow)) & (~(0xFFFFFFF...
C
DE, 0xF1, 0xF8, 0xEB, 0xE6 @ #-------------X------------------# .byte 0xE9, 0xF1, 0xF8, 0x00, 0x0A, 0x16, 0x1A, 0x1D @ #----------------X---------------# .byte 0x1E, 0x23, 0x30, 0x34, 0x2B, 0x1A, 0x0C, 0x03 @ #-------------------X------------# .byte 0x02, 0x0C, 0x1E, 0x23, 0x14, 0xFA, 0xEC, 0xF9 @ #-------------...
Assembly
border-top-color: rgba(0, 0, 0, 0.09); border-radius: 0; background-color: transparent; background-image: none; box-shadow: none; } * { -GtkTreeView-horizontal-separator: 4; -GtkTreeView-grid-line-width: 0; -GtkTreeView-grid-line-pattern: ""; -GtkTreeView-tree-line-width: 1; -GtkTreeView-tree-line-p...
CSS
prefix}-times-rectangle-o:before { content: fa-content($fa-var-window-close); } .#{$fa-css-prefix}.#{$fa-css-prefix}-bandcamp { font-family: 'Font Awesome 5 Brands'; font-weight: 400; } .#{$fa-css-prefix}.#{$fa-css-prefix}-grav { font-family: 'Font Awesome 5 Brands'; font-weight: 400; } .#{$fa-css-prefix}.#{...
CSS
--[[ Informant An addon for World of Warcraft that shows pertinent information about an item in a tooltip when you hover over the item in the game. 3.8.0 (Kangaroo) $Id: InfData.lua 632 2005-12-18 14:36:34Z norganna $ Informant ItemData License: This program is free software; you can redistribute it and/or ...
Lua
: AllowedCardAuthMethodsType[] } transaction: { totalPrice: string totalPriceStatus: string currencyCode: string countryCode: string } merchantName: string } export interface AddressType { name?: string; postalCode?: string; countryCode?: string; phoneNumber?: string; address1?: strin...
Typescript
structs to correct version gpuUsages[0] = makeStructVersion(NVAPI_MAX_USAGES_PER_GPU * 4, 1) memoryInfo[0] = makeStructVersion(8 * 4, 3) NVAPI_EnumPhysicalGPUs.invokeInt(arrayOf(gpuHandles, gpuCount)) utilisations["GPU"] = 0f utilisations["Framebuffer"] = 0f utilisatio...
Kotlin
//////////////////////////////// // // Copyright 2025 Battelle Energy Alliance, LLC // // //////////////////////////////// using CSETWebCore.DataLayer.Model; using CSETWebCore.Helpers; using CSETWebCore.Interfaces.Document; using CSETWebCore.Interfaces.FileRepository; using CSETWebCore.Interfaces.Helpers; usi...
C#
tions')" > <ion-label> <h2>Instructions</h2> <p>Click to view instructions</p> </ion-label> <ion-icon slot="end" name="chevron-forward"></ion-icon> </ion-item> </ion-item-group> </ion-col> <ion-col responsiveCol sizeXs="12" sizeMd="6"> ...
HTML
ic int? Priority { get; set; } [JsonProperty("parentFlow")] public string ParentFlow { get; set; } [JsonProperty("optional")] public bool? Optional { get; set; } [JsonProperty("enabled")] public bool? Enabled { get; set; } [JsonProperty("required")] public...
C#
w $t5, 0x4($at) /* 1BB40 8002B340 0400EC8C */ lw $t4, (0x1F800004 & 0xFFFF)($a3) /* 1BB44 8002B344 0800ED8C */ lw $t5, (0x1F800008 & 0xFFFF)($a3) /* 1BB48 8002B348 0000EB8C */ lw $t3, (0x1F800000 & 0xFFFF)($a3) /* 1BB4C 8002B34C 22608D01 */ sub $t4, $t4, $t5 /* handwritten ins...
Assembly
.5f ) ); // Scaled offsets for the UVs (as texels) float flUOffset = ( m_StunTexture->GetActualWidth() - 1 ) * flScalePerc * 0.5f; float flVOffset = ( m_StunTexture->GetActualHeight() - 1 ) * flScalePerc * 0.5f; // New UVs with scaling offsets float flU1 = flUOffset; float flU2 = ( m_StunTexture->GetActualWid...
C++
**openId** | **string**| 蚂蚁统一会员ID | [optional] **userId** | **string**| 支付宝用户ID | [optional] **employeeId** | **string**| 员工id | [optional] **mobile** | **string**| 员工手机号码 | [optional] **alipayLogonId** | **string**| 支付宝登录号(手机号或邮箱) | [optional] **employeeCertType** | **string**| 员工证件类型 | [optional] **employeeCer...
Markdown
el[1] = level[1] self._data.level[2] = level[2] self:emit_signal("widget::redraw_needed") end end -- Fit ------------------------------------------------------------ function widg:fit(_, width, height) return width, height end -- Draw ------------------------------------------------------------ func...
Lua
ffset`). Для передачи этой константы лучше всего подойдут незадействованные биты инструкции `[12:5]`. Обратим внимание на то, что `PC` 32-битный и должен быть всегда кратен четырем (`PC` не может указывать кроме как в начало инструкции, а каждая инструкция длиной в 32 бита). Кратные четырем двоичные числа всегда будут...
Markdown
__all__ = ['PositionalEncoding', 'SinCosPosEncoding', 'positional_encoding'] # Cell import torch from torch import nn import math # Cell def PositionalEncoding(q_len, d_model, normalize=True): pe = torch.zeros(q_len, d_model) position = torch.arange(0, q_len).unsqueeze(1) div_term = torch.exp(torch.arang...
Python
0-3 1.3-3 3 0 1 .5 2 1.3 2.5-.8.5-1.3 1.5-1.3 2.5 0 1.7 1.3 3 3 3 .8 0 1.5-.3 2-.8v2.8c0 1.7 1.3 3 3 3 1 0 2-.5 2.5-1.3.5.8 1.5 1.3 2.5 1.3 1.7 0 3-1.3 3-3 0-.8-.3-1.5-.8-2h2.8c1.7 0 3-1.3 3-3 0-1-.5-2-1.3-2.5zm-3.7-2.5c0-1.1.9-2 2-2s2 .9 2 2-.9 2-2 2h-2v-2zm-5-5c0-1.1.9-2 2-2s2 .9 2 2v5c0 1.1-.9 2-2 2s-2-.9-2-2v-5zm-...
Dart
ted for jobs that are /// running on EC2 resources. If your container attempts to exceed the memory specified, the container is terminated. /// This parameter maps to <code>Memory</code> in the <a href="https://docs.docker.com/engine/api/v1.23/#create-a-container">Create a container</a> section of the /// <...
Rust
plex érvelés | Kutatás, fejlett elemzés | | **Phi-4-reasoning** | 14B | 32K/64K | Többlépéses érvelés | Tudományos számítások | | **Phi-4-reasoning-plus** | 14B | 32K | Maximális pontosságú érvelés | Kritikus döntéshozatal | | **Phi-4-multimodal** | 5.6B | Változó | Beszéd, látás, szöveg | Multimédiás alkalmazások | #...
Markdown
er4f: /opt/ti/xdctools_3_50_08_24_core/packages/xdc/runtime/Types.h</div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160;obj_xwr16xx/dfptest_config_010.oer4f: /opt/ti/xdctools_3_50_08_24_core/packages/xdc/runtime/IInstance.h</div><div class="line"><a name="l00045"></a><span class="lineno">...
HTML
_state_t** ) &mi::visible_state ); __builtin_store_dynamic( "@.pmemdesc", *mm::physical_memory_block ); // Initialize the VA types. // auto& visible_state = get_visible_state(); for ( size_t n = 0; n != 256; n++ ) { system_va_types[ n ] = ( uint8_t ) mi::system_va_type_t::unused; pxi_flags[ n ] = va_us...
C++
", "Simeon", "Jason", "Onias", "Johannan", "Joiada", "Eliashib", "Joiakim", "Ezra", "Joshua" ]; setState(() { CLIENT.Connection.connect_state = CLIENT.Connection.CS_GET_NAME; // stop rendering while show dialog ...
Dart
www.reddit.com/user/bob/comments/123/keyspub", }) require.NoError(t, err) } func TestUserAddEcho(t *testing.T) { env := newTestEnv(t) service, closeFn := newTestService(t, env) defer closeFn() testAuthSetup(t, service) testImportKey(t, service, bob) signResp, err := service.UserSign(context.TODO(), &UserSign...
Go
Name} ${lastName} ${grade} ${found}`); import { Client, Message, MessageEmbed } from 'discord.js'; import { Services } from '../services'; import { baseCommand, command, commandParametres } from '../types/command'; export default class help extends baseCommand implements command { constructor( protected reado...
Typescript
button id="addWlist" class="w-btn" style="display: none;"><i class="fa fa-plus-circle" aria-hidden="true"></i>&nbsp Add to whitelist</button> <button id="removeWlist" class="w-btn" style="display: none;"><i class="fa fa-minus-circle" aria-hidden="true"></i>&nbsp Remove from whitelist</button> <button id="setti...
HTML
this.data = data; } public static<T> Resp<T> ok(T data){ Resp<T> resp = new Resp<T>(data); resp.setCode(0);//操作成功 resp.setMsg("success"); return resp; } public static<T> Resp<T> fail(String msg){ Resp<T> resp = new Resp<T>(); resp.setCode(1);//操作...
Java
|= COLOR_CHANGED; colorChanged = 0xffff; for (i=0, j= offset;i < num; i++, j+= this.stride) { this.vertexData[j] = colors[i].x; this.vertexData[j+1] = colors[i].y; this.vertexData[j+2] = colors[i].z; this.vertexData[j+3] = lastAlpha[0]; } if(isLive) { geomLock.unLock(); ...
Java
tor</strong> 引脚连出引线,添加一个 <strong>To String (Object)</strong> 节点并将其连接到 <strong>Print String</strong> 节点。 </p><div class="lightbox"> <p><span class="non-localized"><a id="content_link" href="../../../../../Images/InteractiveExperiences/Tracing/HowTo/SingleLineTraceByChannel/GHT2B_10.png" ><span><picture> <source data...
HTML
result = 31 * result + (assistKeys?.contentHashCode() ?: 0) result = 31 * result + (type?.hashCode() ?: 0) return result } override fun toString(): String { return "KeyMatcher(key=$key, assistKeys=${assistKeys?.contentToString()}, type=$type)" } } /** * Ctrl, Alt, Shift, M...
Kotlin
* Of course, this has to be the first action on successive file reads. * @throws IOException * @throws ClassFormatException */ private final void readID() throws IOException, ClassFormatException { int magic = 0xCAFEBABE; if(file.readInt() != magic) throw new ClassFormatException(file_na...
Java
vironment override os.environ["TEST_PROVIDER_RPS"] = "5.5" try: rps = get_provider_rate_limit("test_provider") assert rps == 5.5 finally: # Clean up del os.environ["TEST_PROVIDER_RPS"] def test_invalid_environment_override(self): ...
Python
y-Dashboard-Item-action:focus{box-shadow:0 0 0 2px rgba(170,225,255,.85)}[data-uppy-theme=dark] .uppy-Dashboard-Item-action:hover{color:#eaeaea}.uppy-Dashboard-Item-action--remove{color:#1f1f1f;opacity:.95}.uppy-Dashboard-Item-action--remove:hover{opacity:1;color:#000}[data-uppy-theme=dark] .uppy-Dashboard-Item-action-...
CSS
al: 10, }, }) if err != nil { t.Fatalf("failed to load BPF program: %v", err) } defer done() out, err := vm.Run([]byte{ 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 10, 20, 30, 1, }) if err != nil { t.Fatalf("unexpected error while running program: %v", err) } if want, got := 2, out; want != go...
Go
加载框 } .subscribeOn(AndroidSchedulers.mainThread()) .doFinally { mRootView.hideLoading()//隐藏加载框 } .observeOn(AndroidSchedulers.mainThread()) .compose(RxLifecycleUtils.bindToLifecycle(mRootView))//使用 Rxlife...
Kotlin
. Simanek (2008) Note: Adapted from GRAMPS original Modern Style stylesheet with colors from the original 'Business' stylesheet ******************************************************************************* This website was created with GRAMPS <http://www.gramps-project.org/> ------------------------------------...
CSS
: number): Promise<boolean> { throw new Error('Oh no!'); } } const throwsSpecification = new ThrowsSpecification(); let error: Error; try { await isFortyTwo.and(throwsSpecification).isSatisfiedBy(42); } catch (e) { error = e; } expect(error.message).to.equal('Oh ...
Typescript
"Oh no! Chickens are invading Lumbridge!", Point.location(120, 648), 3, npcAmount, 10, itemAmount, npcLifeTime)); player.message(messagePrefix + "Chicken event started. Type ::stopnpcevent to halt."); } private void stopNpcEvent(Player player) { List<GameTickEvent> events = player.getWorld().getServer().getGame...
Java
/build/manifest.json"), } MEDIA_URL = '/media/' MEDIA_ROOT = str(BASE_DIR / 'media') # Default primary key field type # https://docs.djangoproject.com/en/4.1/ref/settings/#default-auto-field DEFAULT_AUTO_FIELD = 'django.db.models.AutoField' WAGTAIL_SITE_NAME = 'My Project' WAGTAILADMIN_BASE_URL = os.environ.get("W...
Python
} } } return map; } // maps a json object with a list of DownloadResponseDto-objects as value to a dart map static Map<String, List<DownloadResponseDto>> mapListFromJson(dynamic json, {bool growable = false,}) { final map = <String, List<DownloadResponseDto>>{}; if (json is Map && json.isNo...
Dart
ffix array result will be // written at the left end of sa, and the middle of sa is available for use as // temporary frequency and bucket storage. internal static void recurse_32(slice<int32> sa, slice<int32> oldTmp, nint numLMS, nint maxID) { var dst = sa[..(int)(numLMS)]; var saTmp = sa[(int)(numLMS)..(int)(...
C#
Map = { } Map.__index = Map local function setBlipProperties(blip, blipSprite, customName, color) SetBlipHighDetail(blip, true) if blipSprite then SetBlipSprite(blip, blipSprite) end if customName then Map.SetBlipText(blip, customName) end if color then SetBlipColour(blip, color) end SetBlipRouteColo...
Lua
: public FrameEntry { public: // Each FDE has a CIE it's "linked to". Our FDE contains is constructed with // an offset to the CIE (provided by parsing the FDE header). The CIE itself // is obtained lazily once it's actually required. FDE(uint64_t Offset, uint64_t Length, int64_t LinkedCIEOffset, uint64_...
C++
); salsa20_8(X); /* 4: Y_i <-- X */ /* 6: B' <-- (Y_0, Y_2 ... Y_{2r-2}, Y_1, Y_3 ... Y_{2r-1}) */ blkcpy(&Bout[i * 4], X, 64); /* 3: X <-- H(X \xor B_i) */ blkxor(X, &Bin[i * 8 + 4], 64); salsa20_8(X); /* 4: Y_i <-- X */ /* 6: B' <-- (Y_0, Y_2 ... Y_{2r-2}, Y_1, Y_3 ... Y_{2r-1}) */ blkcpy(&Bout...
C
d->lastFifoValue = fifo; if( progressMatch.lastCapturedIndex() > 4 ) emit deviceBuffer( progressMatch.capturedView(5).toInt() ); // // cdrskin's output sucks a bit. // we get track sizes that differ from the sizes in the progress // i...
C++
: false, }, } for _, tt := range tests { s.T().Run(tt.name, func(t *testing.T) { s := &secretService{ store: tt.fields.store, } got, err := s.Get(tt.args.ctx, tt.args.username, tt.args.name, tt.args.opts) if (err != nil) != tt.wantErr { t.Errorf("secretService.Get() error = %v, wantErr %v", er...
Go
__vt__Q216NrvDinoPackunVs225DinoPackunVs2NrvBattleLv2 .global __vt__Q216NrvDinoPackunVs225DinoPackunVs2NrvAngryDemo .global __vt__Q216NrvDinoPackunVs225DinoPackunVs2NrvBattleLv1 .global __vt__Q216NrvDinoPackunVs223DinoPackunVs2NrvCryDemo .global __vt__Q216NrvDinoPackunVs225DinoPackunVs2NrvBattleEgg .global __vt__Q216N...
Assembly
K: vfenezfs %v5, %v22, %v7 # encoding: [0xe7,0x56,0x70,0x30,0x24,0x81] vfenef %v0, %v0, %v0 vfenef %v0, %v0, %v15 vfenef %v0, %v0, %v31 vfenef %v0, %v15, %v0 vfenef %v0, %v31, %v0 vfenef %v15, %v0, %v0 vfenef %v31, %v0, %v0 vfenef %v18, %v3, %v20 vfenefs %v5, %v22, %v7 vfenezf %v18,...
Assembly
i32, #[serde(skip_serializing_if = "Option::is_none")] pub main_span: Option<crate::opentracing::Span>, } #[cfg(feature = "python")] impl ToPyObject for TestResult { type ObjectType = PyDict; fn to_py_object(&self, py: Python) -> Self::ObjectType { let object = PyDict::new(py); object ...
Rust
colsSum - 1; x >= 0; x--) { if (this.pieceMap[x][y].n === 0) { continue; } for (let x0 = x - 1; x0 >= 0; x0--) { if (this.pieceMap[x0][y].n === 0) { continue; } else if (this.pieceMap[x][y...
Typescript
7-.186.39-.412.513-.672.123-.264.186-.557.186-.871 0-.218-.031-.425-.091-.62l.352-.049c.274-.058.438-.238.438-.482v-.375a.254.254 0 00-.252-.252zm-3.696 5.555a2.5 2.5 0 00.556.061h.602c.185 0 .362.011.529.033.163.021.304.053.421.096a.514.514 0 01.222.137c.036.04.054.103.054.187a.522.522 0 01-.083.291.782.782 0 01-.263....
Dart
.to.equal(55.5); }); it('should parse value with "+-"', () => { expect(parseNumber('+55.5')).to.equal(55.5); expect(parseNumber('-55')).to.equal(-55); expect(parseNumber('−55')).to.equal(-55); }); it('should return null on error', () => { expect(parseNumber('')).to.null; expect(parseNumber...
Typescript
/* -*-Asm-*- */ /* * GRUB -- GRand Unified Bootloader * Copyright (C) 1999,2000,2001,2002,2005,2006,2007,2008,2009 Free Software Foundation, Inc. * * GRUB 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 Foun...
Assembly
"w", ["杇"] = "w", ["於"] = "y", ["屋"] = "w", ["洿"] = "w", ["诬"] = "w", ["钨"] = "w", ["烏"] = "w", ["剭"] = "w", ["窏"] = "w", ["鄔"] = "w", ["嗚"] = "w", ["誈"] = "w", ["誣"] = "w", ["歍"] = "w", ["箼"] = "w", ["螐"] = "w", ["鴮"] = "w", ["鎢"] = "w", ["鰞"] = "w", ["毋"] = "w", ["芜"] = "w", ["吾"] = "w", ["吴"] = "w", ["吳"] = "w", ["呉...
Lua
uence : buff[0] = DISPLAY_STATE_ON, DISPLAY_STATE_DOZE, DISPLAY_STATE_DOZE_SUSPEND */ if (buff[0] == DISPLAY_STATE_DOZE || buff[0] == DISPLAY_STATE_DOZE_SUSPEND) buff[0] = DISPLAY_STATE_ON; switch (buff[0]) { case DISPLAY_STATE_SERVICE_SHUTDOWN: ilits->tp_shutdown = true; case DISPLAY_STATE_LPM_OFF: ilits->t...
C
: inputData); // We need to make _upgradeRealToComplex public for testing, or add a public wrapper // For now, let's test it indirectly through fft with isRealInput: true var fftResult = await tensor.fft(isRealInput: true); var resultData = await fftResult.getData() as Float32List; print...
Dart
import os import sys # Configuration file for the Sphinx documentation builder. # # For the full list of built-in configuration values, see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Project information ----------------------------------------------------- # https://www.sph...
Python
a+11|0];b=(d|0)<0;d=b?O[a+4>>2]:d;if(!d){break a}g=O[a>>2];O[c+12>>2]=d;O[c+8>>2]=b?g:a;a=O[c+12>>2];O[c>>2]=O[c+8>>2];O[c+4>>2]=a;eb(e,c)}ka=c+16|0;return f|0}function og(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;c=ka-16|0;ka=c;e=b+36|0;a=$b(O[a+4>>2],e);a:{if(!a){f=1;break a}if(O[b+56>>2]==1){break a}d=M[a+11|0];b=(d|...
JavaScript
herBillRService; @Override public String getExceptionRedirectURL() { // TODO Auto-generated method stub return null; } /** * * @description 查询数据列表 * @date 2020-07-31 12:50:25 * @author * @param pages * @param finVoucherBillRCO * @param ...
Java
l bound = bounds[i] local length = length_of_ray_until_intersect(hrad, bound) if length >= 0 then min = math.min(min, length) end end return min end hsluv.dot_product = function(a, b) local sum = 0 for i = 1, 3 do sum = sum + a[i] * b[i] end return sum end hsluv.from_linear = functio...
Lua
!(i64, &sample, &exp, write_i64); } #[test] fn test_float_data_writer_f32() { let mut writer = VecWriter::new(); let w: &mut dyn Writer = &mut writer; let exp: [u8; 8] = [0x40, 0x49, 0x0f, 0xdb, 0x40, 0x49, 0x0f, 0xdb]; match write_f32(3.14159274101257324 as f32, w) { Ok(_) => (), Err...
Rust
lobTable", Region: "us-east-2", }, log) So(cacheDriver, ShouldBeNil) So(err, ShouldNotBeNil) cacheDriver, err = storage.Create("dynamodb", cache.DynamoDBDriverParameters{ Endpoint: os.Getenv("DYNAMODBMOCK_ENDPOINT"), TableName: "BlobTable", Region: "us-east-2", }, log) So(cacheDriver, Sh...
Go
using System; using System.Windows.Threading; namespace AcManager.Controls.Helpers { public class DelayedPropertyWrapper<T> { public readonly TimeSpan Interval; private T _value, _unappliedValue; private bool _hasUnappliedValue; private readonly Action<T> _changed; publi...
C#
.049-.127-.135-.078-.436.261-.359.408-.37.457-.427 1.301-.272 4.088-3.224 7.534-7.33 8.563-1 .252-3.311.225-4.33-.047-4.03-1.107-6.856-4.477-7.118-8.516-.058-.825-.078-.893-.398-1.262-.194-.213-.377-.408-.426-.418Z"/></svg>'; static const String topcoder = '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="h...
Dart
(filtered)) for _, bwnv := range filtered { sortedUsefulBlocks = append(sortedUsefulBlocks, bwnv.Hash) } // Make sure we don't reorganize the chain needlessly if the top block has // the same amount of votes as the current leader after the sort. After this // point, all blocks listed in sortedUsefulBlocks defin...
Go
in="round"/><circle cx="33.75" cy="33.75" r="6.882" fill="currentColor" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/><path fill="currentColor" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M6.794 24.573h14.912l-4.588 4.015v4.588h1.147v2.295h-1.147v3.44h1.147v2.295h-2.8...
Dart
"task deque end was overwritten" ); } #if __TBB_ARENA_PER_MASTER if ( !in_arena() ) enter_arena(); my_arena->advertise_new_work</*Spawned=*/true>(); #else /* !__TBB_ARENA_PER_MASTER */ if ( !in_arena() ) { if ( is_worker() ) enter_arena(); else try_enter_...
C++
09/01 LORE v1,0/28](https://lore.kernel.org/all/20220901173516.702122-1-surenb@google.com) | | 2023/01/09 | Suren Baghdasaryan <surenb@google.com> | [Per-VMA locks](https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/log/?id=c7f8f31c00d187a2c71a241c7f2bd6aa102a4e6f) | 开启了 x86,ARM64,POWER 架构. | v1 ☐☑ 6.4-...
Markdown