content
stringlengths
2
6.21k
label
stringclasses
16 values
_PAD src0_sel:DWORD src1_sel:DWORD // CHECK: [0xf9,0x04,0x0a,0x62,0x01,0x06,0x0e,0x06] v_min_u16_sdwa v5, v1, v2 dst_sel:DWORD dst_unused:UNUSED_PAD src0_sel:DWORD // CHECK: [0xf9,0x04,0x0a,0x62,0x01,0x06,0x06,0x06] v_min_u16_sdwa v5, v1, v2 dst_sel:DWORD dst_unused:UNUSED_PAD src0_sel:DWORD src1_sel:BYTE_0 // CHECK:...
Assembly
System.Collections.Generic; using System.Text; using System.IO; using Behaviac.Design; using Behaviac.Design.Nodes; using Behaviac.Design.Attachments; using PluginBehaviac.DataExporters; using PluginBehaviac.Events; namespace PluginBehaviac.NodeExporters { public class AlwaysTransitionCppExporter : AttachmentCppE...
C#
Err> { match s { #[cfg(feature = "audio_cras")] "cras" => Ok(Ac97Backend::CRAS), "vios" => Ok(Ac97Backend::VIOS), "null" => Ok(Ac97Backend::NULL), _ => Err(Ac97Error::InvalidBackend), } } } /// Holds the parameters for a AC97 device #[deri...
Rust
=bmd-label]{color:#00bcd4}.has-info .form-control,.is-focused .has-info .form-control{background-image:linear-gradient(to top,#00bcd4 2px,rgba(0,188,212,0) 2px),linear-gradient(to top,#d2d2d2 1px,rgba(210,210,210,0) 1px)}.has-info .form-control:invalid{background-image:linear-gradient(to top,#f44336 2px,rgba(244,67,54,...
CSS
templateUrl: './app.component.html', styleUrls: ['./app.component.css'] }) export class AppComponent implements OnInit { title = 'Welcome'; constructor(private http: HttpClient) { } ngOnInit() { /* This next line is just to demo we can change the req/resp type from JSON to XML, Even though we will...
Typescript
// Type aliases: {In: likeString("foo"), Out: "foo"}, {In: int8(5), Out: int64(5)}, {In: int16(5), Out: int64(5)}, {In: int32(5), Out: int64(5)}, {In: likeInt(5), Out: int64(5)}, {In: float32(5), Out: float64(5)}, {In: likeFloat(5), Out: float64(5)}, // Interfaces without tags: {In: ifaceValuer{}, Ou...
Go
| | 代码生成 | 如果我想要使用Python实现一个可以用来计算两个日期之间时间差的函数,你能给出相关的Python代码吗? | | 情感分析 | 带有正面情感的句子一般具备哪些特征?反之呢? | | 对话生成 | 请提供一个场景:A问“你今天去哪儿了?”B回答“我去逛了商场。”请使用OpenAI GPT-...
Markdown
ed, 5, KIRK.PSP_KIRK_CMD_DECRYPT); // XOR the first 16-bytes of data with the saved key to generate a new hash. dataBuf = xorKey(dataBuf, 0, keyBuf1, 0, 0x10); // Copy back the last hash from the list to the first keyBuf. System.arraycopy(hashBuf, 0, keyBuf1, 0, 0x10); // Fina...
Java
ke_reference_annotation(21, 200, RZ_CODE_ANNOTATION_TYPE_CONSTANT_VARIABLE, 12342314, NULL); // Test rz_annotation_is_variable() char *error_message = "rz_annotation_is_variable() result doesn't match with the expected output"; mu_assert_true(rz_annotation_is_variable(&local_variable), error_message); mu_assert_tru...
C
from openwisp_network_topology.tests.test_admin import TestAdmin as BaseTestAdmin from openwisp_network_topology.tests.test_admin import ( TestMultitenantAdmin as BaseTestMultitenantAdmin, ) from openwisp_network_topology.tests.test_api import TestApi as BaseTestApi from openwisp_network_topology.tests.test_link im...
Python
ke(chan map[string]int), &sync.Mutex{}} go c.worker() go c.fastCountWorker() return c } func (this *ClientList) Count() int { this.cntMutex.Lock() defer this.cntMutex.Unlock() this.cntView <- 0 return <-this.cntView } func (this *ClientList) Distribution() map[string]int { this.cntMutex.Lock() defer this.cn...
Go
gType.IN]); expect(mod.findEntries()).toStrictEqual([]); }); test('findEntries: linked mod is an entry', () => { const mod1 = new TestMod(); mod1.configure([PlugType.OUT, PlugType.NULL, PlugType.IN]); const mod2 = new TestMod(); mod2.configure([PlugType.OUT]); mod2.link(PlugPosition.NORTH, mod1); expe...
Typescript
d=""></div> <div class="key button_d" style='background: url("image/d.png") no-repeat left top;' id=""></div> </div> </div> <div class="control_D flex"> <div class="piano"> <div class="key button_1" style='background: url("image/1.png") no-repeat left top;'></div> ...
HTML
</span></p><p style="text-indent: 2em;"><span style="font-family: 微软雅黑,Microsoft YaHei; font-size: 14px; color: rgb(38, 38, 38);">This talk will enumerate a number of different ways to turn a &#39;check&#39; for jtag access into the &#39;checkmate&#39; of root shell access. Each example will demonstrate a unique method...
HTML
.Deployment.Preview use crate::prelude::*; RT_CLASS!{static class ClassicAppManager} impl RtActivatable<IClassicAppManagerStatics> for ClassicAppManager {} impl ClassicAppManager { #[inline] pub fn find_installed_app(appUninstallKey: &HStringArg) -> Result<Option<InstalledClassicAppInfo>> { <Self as RtActiv...
Rust
) tags.WriteRune('"') if col.IsPrimary { tags.WriteString(` gorm:"is_primary"`) } meta.Info.Cols[i].Tags = mergeTags(tags.String(), colToAnn[col.PgName]) } return nil } func (tr *tableResolver) setTimestampFlags(meta *TableMeta) { if len(meta.Config.CreatedAtField) > 0 { for _, cm := range meta.Info....
Go
', fields: [{ name: 'playbookId', label: 'Playbook', type: FIELD_TYPES.PLAYBOOK }] }, [TaskTypesKeys.TypescriptTransformationOnFile]: { key: TaskTypesKeys.TypescriptTransformationOnFile, label: 'Typescript ts-morph transformation on file', fields: [ { name: 'filePath', label: 'File to edit', t...
Typescript
} else { return num2; } } const isBigger2 = (num1, num2) => { if (num1 > num2) return num1; return num2; } // 3 - Write a function that returns whether a given number is even or odd. const evenOrOdd = (num) => { if (num % 2 === 0) { return 'even'; } else { return 'odd'; } } const evenOrOdd...
JavaScript
fier_imba_faceless_void_time_walk_slow:IsDebuff() return true end function modifier_imba_faceless_void_time_walk_slow:GetEffectName() return "particles/units/heroes/hero_faceless_void/faceless_void_time_walk_debuff.vpcf" end function modifier_imba_faceless_void_time_walk_slow:GetEffectAttachType() return PATTACH_AB...
Lua
t.c) we add class only for BG mfp.bgOverlay.addClass(READY_CLASS); } // Trap the focus in popup _document.on('focusin' + EVENT_NS, mfp._onFocusIn); }, 16); mfp.isOpen = true; mfp.updateSize(windowHeight); _mfpTrigger(OPEN_EVENT); return data; }, ...
JavaScript
from raypier.tracer import RayTraceModel from raypier.bezier2d import BezierSinglePatch, BSplineSinglePatch from raypier.sources import ParallelRaySource from raypier.gausslet_sources import CollimatedGaussletSource ctrl_pts = [[[-9,-9,0], [-3,-9,0], [3,-9,0], [9, -9, 0]], [[-9,-3,0], [-3,-3,9], [3,...
Python
fix_list_ids = [aws_ec2_managed_prefix_list.test.id] source_security_group_id = aws_security_group.test[1].id security_group_id = aws_security_group.test[0].id } `, rName) } func testAccVPCSecurityGroupRuleConfig_protocolChange(rName, protocol string) string { return fmt.Sprintf(` resource "aws_vpc" "test" { ...
Go
�, 이는 안전한 Rust에서는 발생하지 않는다고 보장하는 데이터 레이스(data race)가 일어날 수 있기 때문입니다. `const`와 `static` 값의 중요한 차이는 `static`에서는 참조를 얻을 수 있지만 `const`는 지정된 메모리 위치를 가지지 않기 때문에 불가능하다는 점입니다. `const`와 `static`에 대해 더 자세한 정보에 대해서는 [《Rust 프로그래밍 언어》를 읽으세요](https://doc.rust-lang.org/book/const-and-static.html). <h3><a href="#how-can-i-set-compile...
Markdown
ii linux-image-unsigned-4.16.7-041607-generic 4.16.7-041607.201805021131 amd64 Linux kernel image for version 4.16.7 on 64 bit x86 SMP ``` 下次你可以调用 `do-kernel-upgrade` 实用程序来安装新的内核。如果有任何新内核可用,那么它将安装。如果没有,它将报告当前没有可用的内核更新。 ``` $ do-kernel-upgrade Kernel up to date. Finishing ``` 再次运行 `do-kernel-purge` 命令以确认。如果发现超过三个内核,...
Markdown
js * let client = new TestClient(server, '10') * client.userId //=> '10' * ``` */ userId: string /** * @param server Test server. * @param userId User ID. * @param opts Other options. */ constructor(server: TestServer, userId: string, opts?: TestClientOptions) /** * Collect actions ...
Typescript
.pendiente = false // evento.rechazarInvitacion(usuario, this) } // aceptar(usuario: Usuario, cantidadAcompañantes: number) throws Exception{ // try { // verificaAcompañantesDeclarados(cantidadAcompañantes, cantidadAcompañantesInvitacion) // pendiente = false // ...
Typescript
_id; self } pub fn png_sticker<T: AsRef<InputFile>>(&mut self, png_sticker: T) -> &mut Self { self.inner.png_sticker = png_sticker.as_ref().clone(); self } } impl AsRef<UploadStickerFile> for UploadStickerFile { fn as_ref(&self) -> &UploadStickerFile { self } } imp...
Rust
require.NotNil(t, err) require.True(t, strings.Contains(err.Error(), "disk info miss match")) } func TestRpcService_InitDisks_DiskIDAllocatedNotRegister(t *testing.T) { tp := newBaseTp(t) s, clear, err := newMockService(t, mockServiceCfg{ tp: tp, }) tp.EXPECT().AllocDiskID(A).Return(proto.DiskID(99), nil) req...
Go
ticalOptions. // BackgroundColor = Colors.Black, // TextColor = Colors.White, // VerticalOptions = LayoutOptions.EndAndExpand }; button.Clicked += AnimateButton_Clicked; _boxView = new BoxView { AutomationId = BoxToScale, BackgroundColor = Colors.Blue, WidthRequest = 200, H...
C#
as usize] & pa as u8) as usize]; unsafe { asm!("PDEP $2, $1, $0" : "=r"(mh) : "r"(fh as u64) , "r"(masks[0])); asm!("PDEP $2, $1, $0" : "=r"(mv) : "r"(fv as u64) , "r"(masks[1])); asm!("PDEP $2, $1, $0" : "=r"(md) : "r"(fd as u64) , "r"(masks[2])); asm!("PDEP $2, $1, $0" : "=r"(ma)...
Rust
@ForAll @BigRange(min = "0", max = "18446744073709551615") annotation class AllInt64 private val INT256_MIN_SIGNED = BigInteger.TWO.pow(255).negate() private val INT256_MAX_SIGNED = BigInteger.TWO.pow(255) - BigInteger.ONE private val MASK64 = BigInteger.TWO.pow(64) - BigInteger.ONE priva...
Kotlin
pply a transform that simulates the scaling defined by the viewBox, width, height and // preserveAspectRatio // // We have to do this on every direct child of <svg> and cannot do this on the <svg> directly, because // Firefox returns an identity matrix for getCTM() on the <svg> element. // https://bugzil...
Typescript
Y), new(uvTiles.Z, uvTiles.Y), new(uvLight.Z, uvLight.Y)); vertices[2] = new(new(pos.Z, pos.W, 0f), new(uvDecal.Z, uvDecal.W), new(uvTiles.Z, uvTiles.W), new(uvLight.Z, uvLight.W)); vertices[3] = new(new(pos.X, pos.W, 0f), new(uvDecal.X, uvDecal.W), new(uvTiles.X, uvTiles.W), new(uvLight.X, uvLight.W)); gr...
C#
ck_post_response.status_code = 200 mock_post_response.json.return_value = mock_server_responses["apply_stage"] mock_post.return_value = mock_post_response mock_get_response = Mock() mock_get_response.status_code = 200 mock_get_response.json.return_value = mock_server_responses["...
Python
oduct_summary.dissect(buffer, offset, packet, parent) end -- Dissect Quote Request if template_id == 13503 then return eurex_derivatives_eobi_t7_v7_0.quote_request.dissect(buffer, offset, packet, parent) end -- Dissect Snapshot Order if template_id == 13602 then return eurex_derivatives_eobi_t7_v7_0...
Lua
from setuptools.command.setopt import edit_config, option_base class saveopts(option_base): """Save command-line options to a file""" description = "save supplied options to setup.cfg or other config file" def run(self) -> None: dist = self.distribution settings: dict[str, dict[str, str]...
Python
s, it * stores the indices of sorted elements in the output array. For example: * <code> * Mat A = Mat::eye(3,3,CV_32F), B; * sortIdx(A, B, SORT_EVERY_ROW + SORT_ASCENDING); * // B will probably contain * // (because of equal elements in A some permutations are possible): ...
Java
32; Table[RTLIB::EXP_F64] = f64_func_f64; Table[RTLIB::EXP_F128] = func_iPTR_i64_i64; Table[RTLIB::EXP2_F32] = f32_func_f32; Table[RTLIB::EXP2_F64] = f64_func_f64; Table[RTLIB::EXP2_F128] = func_iPTR_i64_i64; Table[RTLIB::SIN_F32] = f32_func_f32; Table[RTLIB::SIN_F64] = f64_func_f64; Tab...
C++
ndless Seeker">FIRE FLOWER</a></b> &#91;04:22&#93;<dl><dd><a href="./Endless_Seeker.md" title="Endless Seeker">Endless Seeker</a> (2010-08-14)<br>社团:<a href="./SOUND_HOLIC.md" title="SOUND HOLIC">SOUND HOLIC</a><br>编曲:<a href="./709sec..md" title="709sec.">709sec.</a><br>演唱:<a href="./709sec..md" title="709sec.">709sec...
Markdown
|Kaiwen Ning et.al.|[2408.01354](http://arxiv.org/abs/2408.01354)|**[link](https://github.com/KevinHeiwa/MCGTM)**| |**2024-08-02**|**Prompt Refinement or Fine-tuning? Best Practices for using LLMs in Computational Social Science Tasks**|Anders Giovanni Møller et.al.|[2408.01346](http://arxiv.org/abs/2408.01346)|null| |...
Markdown
rver import androidx.lifecycle.Lifecycle import androidx.lifecycle.LifecycleObserver import androidx.lifecycle.LifecycleOwner import androidx.lifecycle.OnLifecycleEvent import com.wp.exposure.model.InExposureData import java.lang.ClassCastException /** * 为了减少收集异常,使用此库需注意以下几点 * 1.需配合实现了IProvideExposureData接口的LayoutVi...
Kotlin
us(); equal( theArticle.children[ 3 ].innerHTML.split( " " ).length - 1, 1000, "redirected article successfully retrieved 1000 words" ); plus(); }); popped.cue( 3, function() { equal( theArticle.childElementCount, 2, "first wikipedia article was cleared properly" ); plus(); }); popped.cue( 4, ...
JavaScript
terrasse", nil, {"Examinez la zone centrale à l’arrière de la Porte des Maîtres."}}, [27007] = {"Rendez-vous au marécage Argenté", nil, {"Rendez-vous au Marécage Argenté Supérieur, dans le Tréfonds."}}, [27008] = {"Survoler la terrasse", nil, {"Examinez la zone centrale à l’arrière de la Porte des Maîtres."}}, [27009]...
Lua
boost_1_1locale_1_1comparator.html#af40ee48c6c93b6e5d91492a3e0cb96a8">00225</a> <a class="code" href="structboost_1_1locale_1_1comparator.html#af40ee48c6c93b6e5d91492a3e0cb96a8">comparator</a>(std::locale <span class="keyword">const</span> &amp;l=std::locale(),<a class="code" href="classboost_1_1locale_1_1colla...
HTML
provider.Settings import android.support.annotation.RequiresApi import android.view.Window internal class MeizuNotchScreenSupport : INotchScreenSupport { @RequiresApi(api = Build.VERSION_CODES.O) override fun hasNotchInScreen(window: Window): Boolean { // 判断刘海设备 var fringeDevice = false ...
Kotlin
******************************************************************** // FreezedGenerator // ************************************************************************** T _$identity<T>(T value) => value; final _privateConstructorUsedError = UnsupportedError( 'It seems like you constructed your class using `MyClass....
Dart
_returning_unnameable_type(). method_of_unnameable_type5(); let res6 = function_returning_unnameable_type().trait_method_returning_unnameable_type(). method_of_unnameable_type6(); let res7 = STATIC.field_of_u...
Rust
=&quot; (Left, Right : Boolean) <B><B>return</B></B> Boolean; -- <B>function</B> &quot;/=&quot; (Left, Right : Boolean) <B>return</B> Boolean; -- <B>function</B> &quot;&lt;&quot; (Left, Right : Boolean) <B>return</B> Boolean; -- <B>function</B> &quot;&lt;=&quot; (Left, Right : Boolean) <B>return</B> B...
HTML
32], %[tnoise], %[outLShift32] \n\t" "srav %[tmp32], %[tmp32], %[minTrackShift] \n\t" "subu %[tnoise], %[tnoise], %[tmp32] \n\t" : [tmp32] "=&r"(tmp32), [tnoise] "+r"(tnoise) : [outLShift32] "r"(outLShift...
C++
// // OpStack.c // sh // // Created by Dietmar Planitzer on 7/15/24. // Copyright © 2024 Dietmar Planitzer. All rights reserved. // #include "OpStack.h" #include <string.h> #define INITIAL_STACK_SIZE 16 OpStack* _Nonnull OpStack_Create() { OpStack* self = calloc(1, sizeof(OpStack)); self->values = mall...
C
e_shared<AccelerationForm>(var2sim, *(states[args["state"]]), args); } else if (type == "kinetic") { obj = std::make_shared<AccelerationForm>(var2sim, *(states[args["state"]]), args); } else if (type == "target") { std::shared_ptr<TargetForm> tmp = std::make_shared<TargetForm>(var2sim, *(state...
C++
ect(x, y, 0.55*emojiSize, 0.4*emojiSize, 0.1*emojiSize); */ } function drawContagiousPerson() { if (particles.length > 70) { p.image(emojis.cough, emojiSize/2, p.height/2, emojiSize, emojiSize); } else if (particles.length > 60) { p.image(emojis.flinch, e...
JavaScript
xample, you can send tap and scroll // gestures. You can also use WidgetTester to find child widgets in the widget // tree, read text, and verify that the values of widget properties are correct. import 'package:flutter/material.dart'; import 'package:flutter_test/flutter_test.dart'; import '../../flutter_counter_blo...
Dart
kto • Metasploit • Aircrack-ng • SQLMap • Lynis • Chkrootkit • IoTScanner • John the Ripper • Masscan • Netcat ``` #### ⚡ 价值评估 <details> <summary>展开查看详细评估</summary> 该仓库与安全工具关键词高度相关,特别是parrot-security-tool-v1,提供了一个集成多种安全扫描工具的框架。它集成了多种安全扫描工具,并具备报告生成和CVE数据获取功能,因此具有实用价值和研究价值。其interactive_system_tester.py 脚本提供了交互式安全测试能力,...
Markdown
urrent, { width: 1280, height: 720, onFrame: async () => { try { if (videoRef.current && handsRef.current) { await handsRef.current.send({ image: videoRef.current }); } } catch (error) { console.error('Error in hands.send:', error); } ...
JavaScript
if (ec) ec->clear(); #if defined(BOOST_POSIX_API) int err = ::link(to.c_str(), from.c_str()); if (BOOST_UNLIKELY(err < 0)) { err = errno; emit_error(err, to, from, ec, "boost::filesystem::create_hard_link"); } #else // see if actually supported by Windows runtime dll ...
C++
el:add(nn.ReLU()) model:add(ccn2.SpatialConvolution(384, 384, 3, 1, 1, 2)) model:add(nn.ReLU()) model:add(ccn2.SpatialConvolution(384, 256, 3, 1, 1, 2)) model:add(nn.ReLU()) model:add(ccn2.SpatialMaxPooling(3, 2)) model:add(nn.Transpose({4,1},{4,2},{4,3})) model:add(nn.View(9216)) model:add(nn.Linear(9216, 4096)) model...
Lua
array(Reference), /** Technical endpoint */ endpoint: t.array(Reference), /** Additional content defined by implementations */ extension: t.array(Extension), /** Logical id of this artifact */ id: primitives.R4.id, /** Business Identifier for Product */ id...
Typescript
https://go.xlviiirdr.com"], :root .trc_rbox_div .syndicatedItem, :root a[href^="https://bs.serving-sys.com"], :root [href^="http://residenceseeingstanding.com/"], :root div[data-adunit], :root app-large-ad, :root [href^="https://turtlebids.irauctions.com/"] img, :root [data-ad-module], :root a[href^="https://go.cmtaffi...
HTML
# Copyright 2024 mbodi ai # # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, so...
Python
orq %zmm31,%zmm3,%zmm3 vextracti64x4 $1,%zmm0,%ymm30 vpxorq %ymm30,%ymm0,%ymm0 vextracti32x4 $1,%ymm0,%xmm30 vpxorq %xmm30,%xmm0,%xmm0 vextracti64x4 $1,%zmm3,%ymm31 vpxorq %ymm31,%ymm3,%ymm3 vextracti32x4 $1,%ymm3,%xmm31 vpxorq %xmm31,%xmm3,%xmm3 vmovdqa64 POLY2(%rip),%xmm1 .byte 98,243,117,8,68,227,1 vpsll...
Assembly
0x10 ClearFlag 0x198 SetVar 0x4077, 0x4 SetVar 0x4076, 0x2 SetVar 0x4079, 0x3 RemovePeople 0x18 RemovePeople 0x19 RemovePeople 0x1b ChangeOwPosition 0x1e, 0xae, 0x2ee ChangeOwMovement 0x1e, 0xe ClearFlag 0x18b AddPeople 0x1e Lock 0x1e ApplyMovement 0x1e, Movement_dc0 WaitMovement Message 0x4e Call Funct...
Assembly
# This file is a part of GreedyBear https://github.com/honeynet/GreedyBear # See the file 'LICENSE' for copying permission. from api.views import StatisticsViewSet, command_sequence_view, enrichment_view, feeds, feeds_advanced, feeds_pagination, general_honeypot_list from django.urls import include, path from rest_fram...
Python
alue of the HTML `type` attribute: 'text', 'password' * 'email', 'url' or 'number'. Subclasses might support other types. * @param {string} [config.placeholder] Placeholder text * @param {boolean} [config.autofocus=false] Use an HTML `autofocus` attribute to * instruct the browser to focus this widget. * @param ...
JavaScript
empty")); return; } switch (comboType_->currentIndex()) { case 0: // SocketCAN #ifdef WITH_SOCKETCAN LT()->links().add(std::make_unique<lt::SocketCanLink>( name, settings_->port().toStdString())); LT()->saveLinks(); close(); #endif break; ...
C++
F\u5358\u4E00\u306E\u8981\u7D20\u3067\u69CB\u6210\u3057\u3066\u304F\u3060\u3055\u3044", MathMLRootElement: "MathML \u306F %1 \u3067\u306F\u306A\u304F \u003Cmath\u003E \u8981\u7D20\u3067\u69CB\u6210\u3057\u3066\u304F\u3060\u3055\u3044" } }); MathJax.Ajax.loadComplete("[MathJax]/localization/ja/MathML....
JavaScript
</td> </tr> <tr style='mso-yfti-irow:18'> <td valign=top style='padding:0cm 5.4pt 0cm 5.4pt'> <p class=10 align=center style='text-align:center;line-height:11.0pt; mso-line-height-rule:exactly;mso-pagination:none'><span lang=EN-US style='mso-fareast-font-family:"STHeiti light";mso-font-kerning:0pt'>18<o:p>...
HTML
cent","widthPx":"pixels","widthUnit":"width unit"},"undo":{"redo":"Redo","undo":"Undo"},"wsc":{"btnIgnore":"Ignore","btnIgnoreAll":"Ignore All","btnReplace":"Replace","btnReplaceAll":"Replace All","btnUndo":"Undo","changeTo":"Change to","errorLoading":"Error loading application service host: %s.","ieSpellDownload":"Spe...
JavaScript
-- -- ███╗ ██╗███████╗ ██████╗ ██╗ ██╗██╗███╗ ███╗ -- ████╗ ██║██╔════╝██╔═══██╗██║ ██║██║████╗ ████║ -- ██╔██╗ ██║█████╗ ██║ ██║██║ ██║██║██╔████╔██║ -- ██║╚██╗██║██╔══╝ ██║ ██║╚██╗ ██╔╝██║██║╚██╔╝██║ -- ██║ ╚████║███████╗╚██████╔╝ ╚████╔╝ ██║██║ ╚═╝ ██║ -- ╚═╝ ╚═══╝╚══════╝ ╚═════╝ ╚═══╝ ╚═╝╚═╝ ...
Lua
#region 文件描述 /****************************************************************************** * 创建: Daoting * 摘要: * 日志: 2019-10-11 创建 ******************************************************************************/ #endregion #region 引用命名 using System; using System.Net; #endregion namespace Dt.Core { /// <summary...
C#
other.includeBefore == includeBefore; } } class Cache { final Map<CacheKey, List<DateTime>> _results = {}; @visibleForTesting Map<CacheKey, List<DateTime>> get results => _results; void add(CacheKey key, List<DateTime> data) { _results[key] = data; } List<DateTime>? get(CacheKey key) { ret...
Dart
ay2: pierce('a', { a: 1 }) }); // @dts-jest:fail:snap Pierce array wrong value type deepMerge(obj, { array2: pierce(1, { b: null }) }); // @dts-jest:fail:snap Pierce map wrong key type deepMerge(obj, { map2: pierce(1, { subObj: { b: 1 } }) }); // @dts-jest:fail:snap Pierce map wrong value type deepMerge(obj, { map2:...
Typescript
f,0x90,0x44] // CHECK-ERROR: instruction requires: sve2 or sme // CHECK-UNKNOWN: 44909fdd <unknown> shadd z31.d, p7/m, z31.d, z30.d // CHECK-INST: shadd z31.d, p7/m, z31.d, z30.d // CHECK-ENCODING: [0xdf,0x9f,0xd0,0x44] // CHECK-ERROR: instruction requires: sve2 or sme // CHECK-UNKNOWN: 44d09fdf <unknown> // --------...
Assembly
ection connection; ObjectoryConsole(String uri, Function registerClassesCallback) : super(uri, registerClassesCallback); Future open() async { if (connection != null) { await connection.close(); } connection = await connect(uri); } /// Insert the data and returns id of newly inserted ro...
Dart
switch info.mode { case "run": if err := r.pub.Publish(ctx, event.ETAutomationRunQueuePop, &info.runID); err != nil { log.Debug(err) } case "apply": if err := r.pub.Publish(ctx, event.ETAutomationApplyQueuePop, &info.runID); err != nil { log.Debug(err) } } }() return info, nil } func (r ...
Go
ldCounterListMinorVersionsResponse++; if (buildCounterListMinorVersionsResponse < 3) { o.minorVersions = buildUnnamed49(); o.nextPageToken = 'foo'; } buildCounterListMinorVersionsResponse--; return o; } void checkListMinorVersionsResponse(api.ListMinorVersionsResponse o) { buildCounterListMinorVersio...
Dart
return { { -- WINDOW PICKER "s1n7ax/nvim-window-picker", version = "v1.*", config = function() local picker = require("window-picker") picker.setup({ fg_color = "#000000" }) vim.keymap.set("n", "<leader><leader>w", function() local picked_window_id = picker.pick_window() or vim.api.nvim_get...
Lua
</tr> <tr> <td i18n="2fa_code">2FA code:&nbsp;</td> <td> <input id="code-input" type="text" placeholder="if enabled" autocomplete="off" i18n="if_enabled"> </td> </tr> <tr> <td colspan="2"> ...
HTML
i]!==e[i]))&&(t.layers=t.layers.map((t=>t.clone(e))));else{const i=this.renderSubLayers({...this.props,...this.getSubLayerProps({id:t.id,updateTriggers:this.props.updateTriggers}),data:t.content,_offset:0,tile:t});t.layers=it(i,Boolean).map((i=>i.clone({tile:t,...e})))}return t.layers}))}filterSubLayer({layer:t,cullRec...
JavaScript
to convert the class into a view function. ✅ **Existing ********`post_detail`******** URL pattern remains unchanged**: - The `post_detail` URL pattern is still used to display individual blog posts. --- ## Updating the `post/list.html` Template 📝 Since we are now using `ListView`, Django automatically provides a ...
Markdown
be loaded.</P> <H2 class"SeeAlso">See also</H2> <UL class="SeeAlso"> <LI><A HREF="loadfromdocument_method.htm">LoadFromDocument Method</A> <LI><A HREF="loadfromfile_method.htm">LoadFromFile Method</A> <LI><A HREF="loadfromstream_method.htm">LoadFromStream Method</A> <LI><A HREF="loadfromstring_method.htm">LoadFromStr...
HTML
), XfdashboardToggleButtonProperties[PROP_AUTO_TOGGLE]); } } /** * xfdashboard_toggle_button_toggle: * @self: A #XfdashboardToggleButton * * Toggles the state of @self. That means that the toggle button will change its * state to pressed ("on" state) if it is currently raised ("off" state) or vice * versa. */ ...
C
let vote = Self::votes((challenge_id, sender.clone())); // Ensure vote reward is not already claimed. ensure!(vote.claimed == false, "Vote reward has already been claimed."); // If winning party, calculate reward and transfer. if poll.passed == vote.value { let reward_ratio = chall...
Rust
""" scripts/create_admin_user.py script para insertar un usuario admin en la base de datos. """ import sys import os import re # Añadir el directorio raíz del proyecto al sys.path sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '../'))) from app import create_app from app.repositories.user_rep...
Python
max-height: 150px; width: 6.5em; background: #fff; border: 1px solid #ddd; -webkit-box-shadow:0 5px 10px rgba(0,0,0,0.2); -moz-box-shadow:0 5px 10px rgba(0,0,0,0.2); box-shadow:0 5px 10px rgba(0,0,0,0.2); outline: none; z-index: 10001; margin: 0; } .ui-timepicker-wrapper.ui-timepicker-with-duration { width: ...
CSS
// -*- c-basic-offset: 4 -*- /** @file ImageCache.h * * @author Pablo d'Angelo <pablo.dangelo@web.de> * * $Id$ * * This 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 ...
C
uniform_with(rng, g), Model::LT => LT::new_uniform_with(rng, g), } } } /// The core method of the paper. As much as possible, variables and methods are named to match /// those of the paper to ease verification of the code. fn tiptop(g: Graph<(), f32>, costs: Option<CostVec>, ...
Rust
: video.snippet.channelTitle, }; } return null; } getChannelId(); export async function getChannel(): Promise<IChannel | null> { const id = await getChannelId(); if (id) { return id; } else { const videoOwner = document.querySelector( "#meta-contents #upload-info #channel-name .yt-simple...
Typescript
66 0 012.618-.498c.96 0 1.892.188 2.768.558.696.296 1.354.721 2.068 1.341a.243.243 0 00.165.068c.138 0 .271-.137.386-.266.191-.214.321-.392.135-.569a7.674 7.674 0 00-2.354-1.52 8.088 8.088 0 00-3.168-.638m5.668 12.986c-.127-.126-.235-.199-.33-.228a.24.24 0 00-.247.059l-.063.062a7.07 7.07 0 01-5.018 2.081 7.09 7.09 0 01...
Dart
children end out of order  16  const { subtest: zro } = tb.test(...
JavaScript
( child: Text( item.title, style: const TextStyle( color: Colors.white, fontSize: 12, ), ) ...
Dart
number): string[][] => { for (let c = 0; c < count; c++) { for (const column of map) { column.unshift('.'); column.push('.'); } map.unshift(''.padEnd(map[0].length, '.').split('')); map.push(''.padEnd(map[0].length, '.').split('')); } return map; } const getMapValue = (y: number, x:...
Typescript
(trace == null) { DbException.traceThrowable(e); } else { int errorCode = e.getErrorCode(); if (errorCode >= 23000 && errorCode < 24000) { trace.info(e, "exception"); } else { trace.error(e, "exception")...
Java
input, button { padding: 10px 20px; font-size: 1em; } } @tailwind base; @tailwind components; @tailwind utilities; * { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; } @layer base { body { @apply font-inter; } } @layer utilities { .btn { @apply...
CSS
相等 * */ data class Key( var rollingHash: Int, var md5: ByteArray? = null ) { override fun hashCode(): Int { return rollingHash.hashCode() } override fun equals(other: Any?): Boolean { if (other is Key) { if (other.md5 == null ...
Kotlin
.direction[0] = 0 if symbol == key.A or symbol == key.D: cam.direction[1] = 0 @controller.event def on_mouse_motion(x, y, dx, dy): cam.yaw += dx * .001 cam.pitch += dy * .001 cam.pitch = math.clamp(cam.pitch, -(np.pi/2 - 0.01), np.pi/2 - 0.01) @controller.event...
Python
mitAnywayButton(value: Boolean) = apply { args.add(EXTRA_SHOW_SUBMIT_ANYWAY_BUTTON to value) } @VisibleForTesting fun buildArgs() = bundleOf(*args.toTypedArray()) /** @return A [QuestionnaireFragment] with provided [Bundle] arguments. */ fun build(): QuestionnaireFragment { return Question...
Kotlin
:5px;margin-right:5px;background-color:rgba(0,0,0,0);z-index:3}.code-copy-button:focus{outline:none}.code-copy-button-tooltip{font-size:.75em}pre.sourceCode:hover>.code-copy-button>.bi::before{display:inline-block;height:1rem;width:1rem;content:"";vertical-align:-0.125em;background-image:url('data:image/svg+xml,<svg xm...
CSS
if (instance == null) { instance = CrashHandler() } return instance!! } fun init(application: Application) { this.mApplicationContext = application.applicationContext defaultHandler = Thread.getDefaultUncaughtExceptionHandler(...
Kotlin
02D0@ha /* 804C0A4C 004BBF8C 38 63 45 69 */ addi r3, r3, 0x01234569@l /* 804C0A50 004BBF90 38 84 02 D0 */ addi r4, r4, lbl_804C02D0@l /* 804C0A54 004BBF94 48 00 4A 51 */ bl func_804C54A4 /* 804C0A58 004BBF98 48 00 01 38 */ b lbl_804C0B90 lbl_804C0A5C: /* 804C0A5C 004BBF9C 57 C0 07 FF */ clrlwi. r0, r30, 0x1f /* 80...
Assembly