content
stringlengths
2
6.21k
label
stringclasses
16 values
ss("unused") val isObject: Boolean get() = isType(JSONSchema.Type.OBJECT) || types.isEmpty() && properties.isNotEmpty() // ? val isArray: Boolean get() = isType(JSONSchema.Type.ARRAY) || types.isEmpty() && arrayItems != null // ??? val isString: Boolean get() = isType(JSONSchema.Ty...
Kotlin
"SY": "Syria", "ZA": "Sør-Afrika", "GS": "Sør-Georgia og Sør-Sandwichøyene", "KR": "Sør-Korea", "SS": "Sør-Sudan", "TJ": "Tadsjikistan", "TW": "Taiwan", "TZ": "Tanzania", "TH": "Thailand", "TG": "Togo", "TK": "Tokelau", "TO": "Tonga", "TT": "Trinidad og Tobago", "TA": "Tristan da Cunha", "TD...
Dart
val mapper: XmlMapper val excludeEmptyMapper: XmlMapper init { val JDateTimeModule = SimpleModule("CustomTypeModule") JDateTimeModule.addSerializer(JDateTime::class.java, JDateTimeJsonSerializer()) JDateTimeModule.addDeserializer(JDateTime::class.java, JDateTimeJsonDeserializer()) ...
Kotlin
ay. * @hide */ val BluetoothDevice.METADATA_UNTETHERED_RIGHT_CHARGING: Int get() = 14 /** * Whether the headset charging case is charging * Data type should be {@String} as [Byte] array. * @hide */ val BluetoothDevice.METADATA_UNTETHERED_CASE_CHARGING: Int get(...
Kotlin
ssert_eq!(p1(s), "99332"); assert_eq!(p2(s), "DD483"); } #[test] fn ex1() { let s = include_str!("input/d02_ex1.txt"); assert_eq!(p1(s), "1985"); assert_eq!(p2(s), "5DB3"); } // Copyright 2019 The Fuchsia Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be //...
Rust
nction getLocalStorage(boardId: number = null) { if (!isBrowser()) { return {}; } const storage = JSON.parse( window.localStorage.getItem(LOCAL_STORAGE_KEY) || "{}" ); return boardId ? storage[boardId] : storage; } export function clearBoardFromLocalStorage(boardId: string = null) { if (!boardId) ...
Typescript
// Copyright (c) 2008, Jacob Burnim (jburnim@cs.berkeley.edu) // // This file is part of CREST, which is distributed under the revised // BSD license. A copy of this license can be found in the file LICENSE. // // This program is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even...
C
671.BThack.managers.managers.Setting.Settings.ColorSetting; import com.ferra13671.BThack.managers.managers.Setting.Settings.NumberSetting; import com.ferra13671.BThack.api.Module.Module; import com.ferra13671.BThack.api.Utils.BlockUtils; import com.ferra13671.MegaEvents.Base.EventSubscriber; import net.minecraft.block....
Java
Solvers /////////////////////////////////////////////////////////////////// _aim_bone( chain, pose, wt, out ){ /* The idea is to Aim the root bone in the direction of the target. Originally used a lookAt rotation then correcting it to take in account the bone's points up, not forward. Instead, Build a...
JavaScript
2] ldr r0, [r5, #0x1c] rsb r2, r4, #0x40 strh lr, [r0, #8] ldr r1, [r5, #0x1c] mov r0, #0 strh lr, [r1, #0xa] ldr r1, [r5, #0x1c] strb ip, [r1, #0x2f] ldr r1, [r5, #0x1c] strb r3, [r1, #0x3e] ldr r1, [r5, #0x1c] strh r2, [r1, #0x2a] add sp, sp, #0x10 ldmia sp!, {r3, r4, r5, pc} .align 2, 0 _02315984: .wo...
Assembly
0x0) @JvmName("mockByteArray") fun <T0, T1, T2> ((T0, T1, T2) -> ByteArray).mock() = mockWithDefaultValue(byteArrayOf()) @JvmName("mockChar") fun <T0, T1, T2> ((T0, T1, T2) -> Char).mock() = mockWithDefaultValue(0.toChar()) @JvmName("mockCharArray") fun <T0, T1, T2> ((T0, T1, T2) -> CharArray).mock() = mockWithDefau...
Kotlin
(gemm) li a1, 4 #APP .insn r 11, 1, 0, zero, a1, a0 #NO_APP call gemm li a0, 0 lw ra, 12(sp) # 4-byte Folded Reload addi sp, sp, 16 ret .Lfunc_end1: .size main, .Lfunc_end1-main # -- End function .type A,@object # @A .section...
Assembly
inline bool isBigEndian(Arch arch) noexcept { return uint32_t(arch) >= uint32_t(Arch::kBigEndian); } //! Tests whether the given architecture is Thumb or Thumb_BE. static inline bool isArchThumb(Arch arch) noexcept { return arch == Arch::kThumb || arch == Arch::kThumb_BE; } //! Tests whether the gi...
C
+= FontFaceSource(href = href, preload = preload) } /** * Set the font style of the font face. */ public fun setFontStyle(fontStyle: FontStyle) { this.fontStyle = fontStyle } /** * Set the font weight of the font face. */ public fun setFontWeight(fontWeight: FontWe...
Kotlin
5526.050048] perf_event_mmap+0xae/0x280 [ 5526.050048] mmap_region+0x445/0x610 [ 5526.050048] do_mmap_pgoff+0x344/0x400 [ 5526.050048] vm_mmap_pgoff+0x88/0xe0 [ 5526.050048] SyS_mmap_pgoff+0x26b/0x2b0 [ 5526.050048] SyS_mmap+0x22/0x30 [ 5526.050048] tracesys+0xe1/0xe6 [ 5526.050048] INFO: Freed in perf_event_mm...
HTML
UNEQUAL); if(uneqList != null) { for(Predicate p : uneqList) { if(closure.containsPredicate(predicateProvider.getPredicate(Operator.LESS_EQUAL, p.getOperand1(), p.getOperand2()))) additions.add(predicateProvider.getPredicate(Operator.LESS, p.getOperand1(), p.getOperand2())); if(closure.containsPredica...
Java
s = "start", verticaloptions = "end" } :with(loveli.Label:new{ text = "100", font = font, textcolor = mustardcolor, width = 75, height = "auto" } ) :with(loveli.Label:new{ text = "0", font = font, textcolor = mustardcolor, width = 75, height = "auto" } ) ) :with(loveli.Label:new{ text = "1:45", font = fon...
Lua
_3c "MakeIndex" -> MakeIndex "MirOS" -> MirOS "MIT-0" -> Mit_0 "MIT-advertising" -> Mit_Advertising "MIT-CMU" -> Mit_Cmu "MIT-enna" -> Mit_Enna "MIT-feh" -> Mit_Feh "MIT" -> Mit "MITNFA" -> Mitnfa "Motosoto" -> Motosoto ...
Kotlin
if ((i+1)%4 == 0) { !!# if (i==15 ) IJ_printf ("diag.j", 455, sjm_4, "\n"); else !!# IJ_printf ("diag.j", 456, sjm_4, "+\n"); !!# } !!# } !!# if (sjm_rd0 == 7) sjm_rd0 = 0; else sjm_rd0+...
Assembly
-- Remaps core neovim keys for colemak-dh -- -- Notes: -- -- not rebinding these cause I would never use them anyway: -- Insert mode: -- `C-g C-j` or `C-g j` line down, to column where inserting started -- `C-g C-k` or `C-g k` line up, to column where inserting started -- `:h map-table` for reference: -- Mode...
Lua
icon: json['icon'] == null ? null : Uri.parse(json['icon'] as String), siteLink: json['siteLink'] == null ? null : Uri.parse(json['siteLink'] as String), ); Map<String, dynamic> _$FeedArticleToJson(FeedArticle instance) => <String, dynamic>{ 'id': instance.id, 'feedId': instance.feedId...
Dart
> </div> <div class="field"> <div class="control has-text-right"> <button class="button is-success has-text-white" id="generateBtn">Generate ZIP</button> </div> </div> <p class="has-text-success" id="status"></p> </div> </div> </section> <sc...
HTML
介:本研究探讨了大语言模型(LLMs),特别是GPT-4,在二进制逆向工程(RE)领域的应用能力。通过结构化的实验方法,研究者分析了LLMs在解释人类编写的和反编译的代码方面的性能。研究包括两个阶段:第一个阶段关注基本代码解释,第二个阶段则涉及更复杂的恶意软件分析。关键发现表明,LLMs在一般代码理解方面表现出色,但在详细的技术和安全分析方面效果各异。 研究强调了LLMs在逆向工程中的潜力和当前的局限性,为未来应用和改进提供了关键的见解。此外,研究者还检查了实验方法,如评估方法和数据限制,为研究者未来在此领域的研究活动提供了技术视野。 链接: *https://arxiv.org/abs/2406.06637* ...
Markdown
n_1e-20.hkl') # hkl.dump(y_train, DATA_PATH+'y_train_1e-20.hkl') # hkl.dump(x_test, DATA_PATH+'x_test_1e-20.hkl') print(sy[sy<=MIN_STD_Y].shape) DATA_PATH = 'C:/kaggle/CD 1/' for i1 in tqdm(range(1,9)): if i1 == 1: lower = 2 else: lower = 1 for j1 in range(lower,13): df_i_j = pd....
Python
EF("STOPPED", REPEATER_STOPPED, JS_PROP_ENUMERABLE), JS_PROP_INT32_DEF("REJECTED", REPEATER_REJECTED, JS_PROP_ENUMERABLE), JS_PROP_INT32_DEF("DONE", REPEATER_DONE, JS_PROP_ENUMERABLE), JS_CFUNC_MAGIC_DEF("race", 1, js_repeater_funcs, STATIC_RACE), JS_CFUNC_MAGIC_DEF("merge", 1, js_repeater_funcs, STATIC...
C
> { elf.playSequence!(elf.states.walkUp); elf.vy = -1; elf.vx = 0; }; upArrow.release = () => { if (!downArrow.isDown && elf.vx === 0) { elf.vy = 0; elf.show!(elf.states.up); } }; rightArrow.press = () => { elf.playSequence!(elf.states.walkRight); elf.vx = 1; elf.v...
Typescript
= (nl<=MAXLOOP)?bulge37[nl]: (bulge37[30]+(int)(lxc37*log(nl/30.))); if (nl==1) energy += stack37[type][type_2]; else { if (type>2) energy += TerminalAU37; if (type_2>2) energy += TerminalAU37; } return energy; } else { /* interior loop */ if (ns==1)...
C
local Widget = require "widgets/widget" local Image = require "widgets/image" local NutrientsOver = Class(Widget, function(self, owner) self.owner = owner Widget._ctor(self, "NutrientsOver") self:SetClickable(false) self.bg = self:AddChild(Image("images/fx4.xml", "nutrients_over.tex")) self.bg:S...
Lua
#include <time.h> #include <stdio.h> #include <stdlib.h> #define __ "Y\n : ! ,.?>" #define D(f) ; } int f(int i) { return #define E(a,b,c,d,e) b##d,c,e,a #define e(a,b,c,d) a##b##c##d #define B *p++ - ' ' || !p++ #define _(k) o(*#k - 64) #define G(g,l,k,o,e,d,n,c,i,b,a,f,j,m,p) \ a#b#c#d#e#f#g#a#i#j#k#l#m#n#o e,i l##c...
C
current_time = get_current_time() if current_time > market_close_time: log_message( "Market is closed. Waiting for next market open...", "DEBUG" ) break trades_data = await fetch_trades(sess...
Python
RoomBinAttrInternal_to_SceNpMatching2RoomBinAttrInternal(event_data& edata, const BinAttrInternal* fb_attr, SceNpMatching2RoomBinAttrInternal* binattr_info) { binattr_info->updateDate.tick = fb_attr->updateDate(); binattr_info->updateMemberId = fb_attr->updateMemberId(); BinAttr_to_SceNpMatching2BinAttr(edata,...
C++
ed for linking to a tag. You can use <tt>:helptags <var>dir</var></tt> for generating a taglist for all <tt>*.txt</tt> files in the given directory which are marked up in this way.</p> <p>However you generate it, the tag list is a static file, so it must be regenerated when your files change significantly. In programm...
HTML
or(b, err) stateStore := sm.NewStore(stateDB, sm.StoreOptions{ DiscardABCIResponses: false, }) state, err := stateStore.LoadFromDBOrGenesisFile(config.GenesisFile()) if err != nil { b.Fatal(err) } state.Validators = genValSet(valSetSize) state.NextValidators = state.Validators.CopyIncrementProposerPriority(...
Go
lendar .dijitButtonText {padding: 0;}.nihilo .dijitCalendar .dijitDropDownButton .dijitButtonNode {background-color: transparent; background-image: none; padding: 0;}.nihilo .dijitCalendarMonthMenu .dijitCalendarMonthLabelHover {background-color: #ffe284; color: #243C5F;}.nihilo .dijitTimePickerTick,.nihilo .dijitTimeP...
CSS
{ get { return mTimeScope; } set { mTimeScope = value; } } public IScore localUserScore { get { return mLocalUserScore; } ...
C#
* from cache. */ TFW_HTTP_B_JS_NOT_SUPPORTED, /* * Rewrite method from HEAD to GET. Applicable only to request that can * be employed from cache. */ TFW_HTTP_B_REQ_HEAD_TO_GET, /* Request contains `Expect: 100-continue`. */ TFW_HTTP_B_EXPECT_CONTINUE, /* 100-continue response has been queu...
C
,不要喧宾夺主让人看不清字本身 //BEGIN: line background colors private val color_fileHeader_dark = Color(0x4B4D4414) private val color_fileHeader = Color(0x4BC7BB81) private val color_add_dark = Color(0x4D1B5E20) private val color_add = Color(0x5981C784) private val color_del_dark = Color(0x4B6B3E3E) priva...
Kotlin
/* * (C) 1999-2003 Lars Knoll (knoll@kde.org) * Copyright (C) 2004, 2005, 2006, 2008 Apple Inc. All rights reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * ver...
C
() .map(|(id, (v, i))| (id.clone(), (fun(v), i.clone()))) .collect(); #[cfg(feature = "dot")] { graph.labels = self.labels.clone(); } graph } /// Returns true if the graph has cycles. /// /// ```rust /// use graphlib::Graph; ...
Rust
from .__meta__ import * try: from tracer.packageManagers.ipackageManager import IPackageManager from tracer.packageManagers.dnf import Dnf except ImportError: pass @unittest.skipIf((DISTRO != 'fedora') and (DISTRO != 'mageia'), "Skipping tests because they are distro-specific") class TestDnf(unittest.TestCase): def...
Python
class_name = "wAmmunition", display_name_short = "CBU-99", fm = { I = 101.2986, L = 2.34, Ma = 0.197848, Mw = 1.987409, caliber = 0.335, cx_coeff = { 1, 0.39, 0.6, 0.168, 1.31 }, mass = 222, release_rnd = 0.3, release_rnd_x = 1, wind_sigma = 100, wind_time = 1000 }, hMax = 5000,...
Lua
v5.common.error.IDJIError import dji.v5.common.recorder.PCMTools import dji.v5.manager.aircraft.megaphone.FileInfo import dji.v5.manager.aircraft.megaphone.UploadType import dji.v5.utils.common.ContextUtil import dji.v5.utils.common.DJIExecutor import dji.v5.utils.common.DeviceInfoUtil.getPackageName import dji.v5.util...
Kotlin
ge不在同一主机请填写Lagrange的IP地址 ### 3. 本地路由主机配置 **配置项**: `local_route_host` - **类型**: 字符串 (string) - **默认值**: `"localhost"` - **说明**: 配置本地路由发送时使用的主机IP地址,设置文件服务的主机地址,支持局域网IP以便Docker等环境访问 **使用场景**: - 当AstrBot和Lagrange部署在不同服务器时 - 需要跨网络访问Lagrange服务时 - 支持远程Lagrange实例 ## 文件发送优先级 插件现在支持四种文件发送方式,按以下优先级尝试发送,如果前一种方式失败会自动尝试下一种: 1....
Markdown
waitForScriptCompletion(listener, 20000); // test that memory blocks created MemoryBlock[] blocks = program.getMemory().getBlocks(); assertEquals(3,blocks.length); MemoryBlock block = blocks[0]; assertEquals(28, block.getSize()); assertEquals(block.getStart().getOffset(), 0x00000L); Address addr =...
Java
5">Âm thanh mặt đất bị tác động vang lên như vừa xảy ra một vụ nổ.</span></p><p style="margin-top:0pt; margin-bottom:0pt; page-break-before:always; line-height:normal"><span style="-aw-import:ignore">&#xa0;</span></p><p style="margin-top:0pt; margin-bottom:0pt; line-height:normal; font-size:28pt"><span style="font-fami...
HTML
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using Microsoft.Fx.Portability.ObjectModel; using System; using System.Collections.Generic; using System.Linq; namespace Microsoft.Fx.Portability.Reporting.ObjectMode...
C#
td width="24"><img src="images/trans.gif" border="0" height="1" width="24"></td><td width="776"> <span class="heading">Note For Borland C++ / C++ Builder Users</span> <p>&nbsp;</p> <h2>Known problems</h2> <h4>Compiling</h4> <ul> <li>This release is known to have proble...
HTML
istribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWA...
Kotlin
0 0-5.7-2.3c-2 0-4.1.8-5.7 2.3L206.8 534.2c-68.9 68.9-77 175.7-24.3 253.5l-76.1 76.1a8.03 8.03 0 0 0 0 11.3l42.4 42.4c1.6 1.6 3.6 2.3 5.7 2.3s4.1-.8 5.7-2.3l76.1-76.1c33.7 22.9 72.9 34.3 112.1 34.3 51.2 0 102.4-19.5 141.5-58.6l101.9-101.9c3.1-3.1 3.1-8.2 0-11.3l-43-43 66.7-66.7c3.1-3.1 3.1-8.2 0-11.3l-36.6-36.2z")),t....
HTML
R_324: !$EV trig_pc_d(3,expr(@VA(.MAIN.IDLE_INTR_324), 16, 16)) -> intp(1, 2, 1) !$EV trig_pc_d(3,expr(@VA(.MAIN.IDLE_INTR_324)+12, 16, 16)) -> intp(1, 3, 1) .word 0x84a22a58 ! 536: SUBcc_I subcc %r8, 0x0a58, %r2 .word 0x823a0009 ! 536: XNOR_R xnor %r8, %r9, %r1 .word 0x85323001 ! 536: SRLX_I srlx %r8, 0x0001, ...
Assembly
final long toValue(long kmer, long rkmer){ if(verbose){outstream.println("toValue("+AminoAcid.kmerToString(kmer, k)+", "+AminoAcid.kmerToString(rkmer, k)+")");} final long value=(rcomp ? Tools.max(kmer, rkmer) : kmer); if(verbose){outstream.println("value="+AminoAcid.kmerToString(value, k)+" = "+value);} return...
Java
-- } -- [補足情報] -- files には配列(テーブル)で複数のファイルを指定できますが、 -- 1つのファイルによりタイムライン上に複数のアイテムが追加される場合、 -- そのファイル以降は正しくない位置にドロップされることがあります。 -- (例えば *.exo や動画をドロップした場合に発生します) -- -- state には以下のようなテーブルを渡します。 -- state = { -- -- ファイルをドロップするマウスカーソル位置 -- x=120, -- ...
Lua
med %q. Check the name. See %s" $.Name $filename $.Position -}} {{- end -}} {{- else -}} {{- errorf "The %q shortcode was unable to find the embedded_template_urls data file in the site's data directory. See %s" $.Name $.Position -}} {{- end -}} {{- else -}} {{- errorf "The %q shortcodes requires a named o...
HTML
idity: event AllNodesHaveAccepted(bool outcome) func (_ContractExtender *ContractExtenderFilterer) ParseAllNodesHaveAccepted(log types.Log) (*ContractExtenderAllNodesHaveAccepted, error) { event := new(ContractExtenderAllNodesHaveAccepted) if err := _ContractExtender.contract.UnpackLog(event, "AllNodesHaveAccepted", ...
Go
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the LICENSE * file in the root directory of this source tree. * */ /* * THIS FILE IS AUTOGENERATED. DO NOT MODIFY IT; ALL CHANGES WILL BE LOST IN * VAIN. * * @generated */ #pragma on...
C
convertRupee(data = {"sum":0.00}) { this.totalBalance = {"sum": this.abbreviateNumber(data.sum)}; } /** * Formats lowest account balance * @param data : list of lowest account balances */ convertLowestBalance(data = []) { this.lowestBalance = this.convertAccountBalance(data);...
Typescript
tom-accordion-style-1 > .card .card-header a:not(.collapsed) { background-color: var(--primary); color: var(--primary-inverse) !important; } .custom-accordion-style-1 > .card:hover .card-header a.collapsed { color: var(--primary) !important; } /* General */ :root { --border-radius: 4px; --border-radius2x: 8px;...
CSS
6 POLYGON_COLOR: MACRO DRAW_POLYGON\1A: LEA POLYGON_IMG(PC),A1 LEA POLYGON_IMG+400(PC),A2 LEA LEFT_MASKS(PC),A3 LEA RIGHT_MASKS(PC),A4 MOVEQ #15,D3 MOVEQ #32,D6 SUBQ.W #1,D4 .POLYFILL_LOOP: MOVE.W (A1)+,D0 MOVE.W (A2)+,D1 MOVE.W D0,D2 *GET LEFT X TWICE SUB.W D0,D1 *GET RIGHT X AND.W D3,D0 SUB.W D...
Assembly
ak; case Instructions.QUIT: Task.Run(() => TerminationRequested?.Invoke()); break; } } private bool TryFinishHandshake(out string message, string appSignatureKeySalt = default) { var appSignatureKey = default(string); if (appSignatureKeySalt != default) { logger.Info("App signature...
C#
20 | * * ------------------------------------------------- * * | cr saved | lr saved | compiler | linker | * * ------------------------------------------------- * * ------------------------------------------------- * * | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | * * -----------------------...
Assembly
start) { // as long as nascent starts before exon start (I know it ends after) //fprintf(stderr,"...consider nascent %d-%d\n",p->start,p->end); int j=0; while(p->exons[j].start!=pred[n]->exons[i].start && p->exons[j].end!=pred[n]->exons[i].end) j++; nextintv=add_nascent_to_interval(p->exons[j].start,p->exon...
C++
error("XML Error - Unmatched Tag ["..s..":"..tag.name.."]\n") end table.remove(self._stack) end ---Parses a tag content. -- @param text text to process function dom:text(text) local node = { _type = "TEXT", _text = text } table.insert(self.current._children, node) ...
Lua
s, to make sure our test doesn't leak memory let _ignore: Ref<String> = unsafe { mem::transmute((pointer, cell)) }; } #[test] fn test_as_aref() { fn get_str(x: &impl AsARef<String>) -> ARef<str> { ARef::map(x.as_aref(), |x| x.as_str()) } let a = RefCell::new("he...
Rust
.75 0 0 0 0 1.5h.11c-.53.5-.86 1.21-.86 2v4.75a1.5 1.5 0 1 0 3 0V20h8v.5a1.5 1.5 0 1 0 3 0v-4.75c0-.79-.33-1.5-.86-2ZM5.99 10.5h6.09c.34 0 .64.23.73.57l.45 1.81-.01.12H4.9l.36-1.89a.75.75 0 0 1 .73-.61Zm8.51 8h-11v-2.75c0-.69.56-1.25 1.25-1.25h8.5c.69 0 1.25.56 1.25 1.25v2.75Z\"/>") { } } public class VehicleCarPar...
C#
con_pic0 ul li .con:hover .bg,.floor8 .floor_new,.floor8 .floor_pic0 ul li .con:hover .bg,.floor8 .floor_tit_bg{background:#e93052}.floor8 .floor_icon{background:url(../images/theme-3/8.png) no-repeat}.floor8 .floor_more a:hover,.floor8 .floor_pic_text dd .zhe{color:#e93052}.floor9 .floor_con_pic0 ul li .con:hover .bg,...
CSS
layout_path; let path: &Path = match general.layout { Layout::Contents(ref contents) => { tempfile = NamedTempFile::new()?; tempfile.write_all(contents.as_bytes())?; tempfile.flush()?; tempfile.path() } Layout::M...
Rust
} } return finalResults } // extractDetailURLFromContent 从Content中提取详情页URL func (p *JavdbPlugin) extractDetailURLFromContent(content string) string { lines := strings.Split(content, "\n") for _, line := range lines { if strings.HasPrefix(line, "详情页URL: ") { return strings.TrimPrefix(line, "详情页URL: ") ...
Go
quired field" * ] * } */ screamsRouter.post('/', authorization, validateScream, async (req, res, next) => { try { const newScream = req.scream; // ADD NEW SCREAM TO COLLECTION const screamDoc = await db.collection(screamCollection).add(newScream); // SEND BACK SCREAM INFO PLUS SCREAM ID res.status(20...
Typescript
terface Test extends Node { value: number } const root: Test = { value: 1, children: [ { value: 2, children: [ { value: 3 } ] }, { value: 4 }, { value: 5, children: [ { value: 6, children: [ ...
Typescript
pub items: Option<Vec<Item>>, #[serde(default)] pub folders: Option<Vec<Folder>>, #[serde(default)] pub share_index: Option<ShareIndex>, #[serde(default)] pub sub_shares: Option<HashMap<String, Share>>, } impl Share { pub fn to_secret_item(&self, path: &str) -> Result<SecretItem, APIError> ...
Rust
-1", nil } func createModifiedVersion(ctx context.Context, c *compute.InstanceTemplatesClient, old *computepb.InstanceTemplate, newTemplateName string) (*computepb.InstanceTemplate, error) { new := proto.Clone(old).(*computepb.InstanceTemplate) if new.GetProperties().GetAdvancedMachineFeatures() == nil { new.GetPr...
Go
h-3c-.12 0-.22.05-.31.12-.11.1-.19.25-.19.38 0 .28.22.5.5.5h3c.28 0 .5-.22.5-.5zM8.5 15h3c.28 0 .5-.22.5-.5s-.22-.5-.5-.5h-3c-.28 0-.5.22-.5.5s.22.5.5.5zm1 2h1c.28 0 .5-.22.5-.5s-.22-.5-.5-.5h-1c-.28 0-.5.22-.5.5s.22.5.5.5z";break;case"buddicons-topics":e="M10.44 1.66c-.59-.58-1.54-.58-2.12 0L2.66 7.32c-.58.58-.58 1.53...
JavaScript
/** ****************************************************************************** * @file Project/STM32F10x_StdPeriph_Template/stm32f10x_conf.h * @author MCD Application Team * @version V3.4.0 * @date 10/15/2010 * @brief Library configuration file. **********************************************...
C
return errf.New(errf.InvalidParameter, "lbl_list is required") } if len(opt.ManagementDetailIDs) != len(opt.LblList) { return errf.Newf(errf.InvalidParameter, "management_detail_ids and lbl list num not match, %d != %d", len(opt.ManagementDetailIDs), len(opt.LblList)) } return validator.Validate.Struct(opt)...
Go
动生产率。一般的劳动效率比初级社时(下同)提高百分之四十至五十;劳动利用率和出勤率都提高百分之三十左右。太行、太岳和吕梁山区中新建不久的高级社已经联合举办了许多兴修梯田、滩地、小型水库和河渠等水土保持工程。这些新修的基本建设可使农业生产迅速增长的事实,鼓舞了社员们的增产信心和热情,也加快了全省全社会主义农业合作化的速度。 </p> <p> 来源:新华通讯社编《内部参考》1956年2月7日。 </p> <p> <a href="index.htm"> [返回索引页面] </a> </p> <hr/> <p> <img src="../../../../GFDL-logo-sm...
HTML
const ( TagHeaderSize = 11 ) // Tag FLV Tag type Tag struct { Reserved byte // 2 bits; 用于 FMS 的保留字段值为 0 Filter byte // 1 bits; 未加密文件中此值为 0,加密文件中此值为 1 TagType byte // 5 bits DataSize uint32 // 24 bits; Tag 中 Data 长度 Timestamp uint32 // 24 bits(Timestamp) + 8 bits(TimestampExtended); 单位是毫秒的时间戳,FLV 文件中...
Go
altitude 20000km M = 6.42 * 10**23 #Mass of Mars R = 3400 * 10**3 #Radius of Mars h = 20000 * 10**3 #Altitude G = 6.67 * 10**(-11) #Gravitational Constant v0 = np.sqrt(G*M/(R+h)) #Velocity for circular Orbit ve = np.sqrt(2) * v0 time_max = 2000000 #Max time for simulation considered dt = 1000 #Step size such that 200...
Python
(lowband, lowband_ptr, lowband_scratch, lowband_scratch_ptr, N); lowband = lowband_scratch; lowband_ptr = lowband_scratch_ptr; } for (k = 0; k < recombine; k++) { if (encode != 0) { haar1(X, X_ptr, N >> k, 1 << k); } if (lowban...
Java
/* Copyright (c) 2023 Intel Corporation Copyright 2015 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 ...
C
= GoogleOne.Vehicle; // ^^^^^^^^^^^^^^^^^ // [analyzer] COMPILE_TIME_ERROR.REDIRECT_TO_INVALID_RETURN_TYPE // [cfe] The constructor function type 'GoogleOne Function()' isn't a subtype of 'Vehicle Function()'. } class Bike implements Vehicle, GoogleOne { Bike.redOne() {} } abstract class Spa...
Dart
self:GetAbility():GetSpecialValueFor( "move_slow" ) -- special value end function modifier_earth_spirit_rolling_boulder_lua_slow:OnRefresh( kv ) -- references self.slow = self:GetAbility():GetSpecialValueFor( "move_slow" ) -- special value end function modifier_earth_spirit_rolling_boulder_lua_slow:OnDestroy( kv ...
Lua
\text{Nachzahlung/Gutschrift} = \text{Gesamt} - \text{Gezahlt} $$ * Positiv → Nachzahlung * Negativ → Gutschrift 5. **Neuer Abschlag (€/Monat)**: Wird automatisch berechnet als $$ (\text{Gesamt} / 12) \times 1{,}05 $$ → 5 % Puffer. Kann bei Bedarf auch manuell ü...
Markdown
h class="cls-49" d="m80.06 59.79-8.76 6.54-.43-.58 9.19-6.86v.9z"/><path class="cls-50" d="m80.06 60.69-8.33 6.22-.43-.58 8.76-6.54v.9z"/><path class="cls-51" d="m80.06 61.59-7.9 5.89-.43-.57 8.33-6.22v.9z"/><path class="cls-52" d="m80.06 62.48-7.31 5.47h-.24l-.35-.47 7.9-5.89v.89z"/><path class="cls-53" d="m80.06 63.3...
HTML
ArrayOf( (clamped.toInt() and 0xFF).toByte(), ((clamped.toInt() shr 8) and 0xFF).toByte() ) ) totalSampleCount++ } } } ...
Kotlin
leStates(TR::CompilationInfo::TR_SamplerStates expectedState, TR::CompilationInfo *compInfo, const char* reason); extern "C" IDATA launchGPU(J9VMThread *vmThread, jobject invokeObject, J9Method *method, int deviceId, I_32 gridDimX, I_32 gridDimY, I_32 gridDimZ, I_32 blockDimX, I_32 block...
C++
end end --avisynth for ffmpeg to generate mov if (res.vtype==".mov(+alpha)" and res.GPUs=="ffmpeg(mov with alpha)") or res.GPUs=="ffmpeg(double mp4)" then --only use avs for encoding transparent mov or double mp4 if res.audio then t_error("Audio will not be processed in this mod.",false) end if res.ffmpegpath...
Lua
.add(this.onDragUpdate, this); soundSlider.bringToTop(); // child 0 is the foreground, child 1 is background // child 2 is the slider let soundBar = new Phaser.Group(this.game); soundBar.addAt(soundText, 0); soundBar.addAt(soundBarBg, 1); soundBar.addAt(this.soun...
Typescript
) string { if x != nil && x.FileName != nil { return *x.FileName } return "" } func (x *CMsgClientUFSGetFileListForAppResponse_File) GetShaFile() []byte { if x != nil { return x.ShaFile } return nil } func (x *CMsgClientUFSGetFileListForAppResponse_File) GetTimeStamp() uint64 { if x != nil && x.TimeStamp !...
Go
0 [45056/60000 (73%)] Loss: 1.024507 Train Epoch: 0 [49152/60000 (80%)] Loss: 0.944104 Train Epoch: 0 [53248/60000 (87%)] Loss: 0.862664 Train Epoch: 0 [57344/60000 (93%)] Loss: 0.817179 Test set: Average loss: 0.4785, Accuracy: 8615/10000 (86%) cuDNN version: 8902 Peak memory allocated: fused: ...
Markdown
} @media (min-width: 1400px) { .main-container.container-fluid .categoryGrid .col-xl-4 { -ms-flex: 0 0 25%; flex: 0 0 25%; max-width: 25%; } } @media (max-width: 1199px) { .container, .container-lg, .container-md, .container-sm { max-width: 100%; } } @media (max-width: 99...
CSS
nfoOuterClass.BuildingInfo getBuildingList(int index) { return buildingList_.get(index); } /** * <code>repeated .BuildingInfo building_list = 7;</code> */ @java.lang.Override public emu.grasscutter.net.proto.BuildingInfoOuterClass.BuildingInfoOrBuilder getBuildingListOrBuilder( i...
Java
; asprintf(&anonName, "LC%u", _s_anonNameIndex++); symbolName = anonName; } } else if ( atom->contentType() == ld::Atom::typeCFI ) { if ( _options.removeEHLabels() ) return false; // synthesize .eh name if ( strcmp(atom->name(), "CIE") == 0 ) symbolName = "EH_Frame1"; else symbolN...
C++
value="'+a.LineStudyPlotStyle.AreaWithBreaks+'">'+$.t("Area With Breaks")+"</option>").appendTo(e),$('<option value="'+a.LineStudyPlotStyle.Columns+'">'+$.t("Columns")+"</option>").appendTo(e),$('<option value="'+a.LineStudyPlotStyle.Circles+'">'+$.t("Circles")+"</option>").appendTo(e),e}var n,a;i.r(t),i.d(t,"createPl...
JavaScript
= 1.7; line[start.add(Duration(minutes: 15))] = 1.7; line[start.add(Duration(minutes: 20))] = 1.7; line[start.add(Duration(minutes: 25))] = 1.7; line[start.add(Duration(minutes: 30))] = 1.7; series.add(line); LineChart lineChart = LineChart.fromDateTimeMaps(series, [Colors.amber], ['W'...
Dart
", err) // Continue on with execution. } for _, version := range parsedVersions { annotation := "" if version.versionString() == defaultVersion { annotation = "\t(default version)" } fmt.Printf("\t%s%s\n", version.versionString(), annotation) } return subcommands.ExitSuccess } // Copyright 2017 The T...
Go
in game. /// /// This system should be run after all other systems that affect kinematics have run. #[derive(Debug, Default, new)] pub struct ObjectKinematicsUpdateSystem; /// `ObjectKinematicsUpdateSystemData`. #[derive(Derivative, SystemData)] #[derivative(Debug)] pub struct ObjectKinematicsUpdateSystemData<'s> { ...
Rust
MediaSourceConfig.Companion.serializeArgumentsToString( serializationStrategy: SerializationStrategy<T>, value: T, json: Json = parametersJson, ): String = json.encodeToString(serializationStrategy, value) /* * Ani * Copyright (C) 2022-2024 Him188 * * This program is free software: you can redistribut...
Kotlin
using PluginPile.Common; namespace PluginPile.FashionEditor; internal static class Constants { internal static class SwSh { public static readonly Block Fashion = 0xD224F9AC; public const int RegionSize = 0x80; // Offsets public const int GlassesOffset = 0x300; // 0x300 pu...
C#
while True: try: n = int(input()) if n == 0: print('vai ter copa!') else: print('vai ter duas!') except EOFError: break
Python
32V(ctx->work_ctx.x7<<16)); *(u32*)(buffer+12) = U32TO32_LITTLE(ctx->work_ctx.x6 ^ (ctx->work_ctx.x3>>16) ^ U32V(ctx->work_ctx.x1<<16)); /* Copy remaining data */ for (i=0; i<length; i++) keystream[i] = buffer[i]; } } /* --------------------------------------------------...
C