content
stringlengths
2
6.21k
label
stringclasses
16 values
{"GL_IMAGE_CLASS_1_X_16", 0x82BE}, {"GL_IMAGE_CLASS_4_X_8", 0x82BF}, {"GL_IMAGE_CLASS_2_X_8", 0x82C0}, {"GL_IMAGE_CLASS_1_X_8", 0x82C1}, {"GL_IMAGE_CLASS_11_11_10", 0x82C2}, {"GL_IMAGE_CLASS_10_10_10_2", 0x82C3}, {"GL_VIEW_CLASS_128_BITS", 0x82C4}, {"GL_VIEW_CLASS_96_BITS", 0x82C5}, ...
C++
import requests from typing import Optional, Dict def get_location_by_ip(ip: str = 'auto', toolbench_rapidapi_key: str = '088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff') -> Dict: """ Endpoint Description: Get geolocation information based on a given IP address. Parameters: - ip [Optional]: string ...
Python
Type.class); this.PESO_LORDO = new Field("PesoLordo",java.math.BigDecimal.class,"DatiTrasportoType",DatiTrasportoType.class); this.PESO_NETTO = new Field("PesoNetto",java.math.BigDecimal.class,"DatiTrasportoType",DatiTrasportoType.class); this.DATA_ORA_RITIRO = new Field("DataOraRitiro",java.util.Date.class,"Dati...
Java
r-shrimp-232029.json) * [Jamaican Jerk Burgers With Orange Chipotle Mayonnaise 107083](../../index/j/jamaican-jerk-burgers-with-orange-chipotle-mayonnaise-107083.json) * [Jamaican Jerk Chicken 108095](../../index/j/jamaican-jerk-chicken-108095.json) * [Jamaican Jerk Chicken 11115](../../index/j/jamaican-jerk-chicken...
Markdown
", first_variable); { let second_variable: i32 = 200; println!("inside, second_variable = {}", second_variable); let first_variable: i32 = 300; println!("inside, first_variable = {}", first_variable); } // println!("outside, second_variable = {}", second_variable); }use su...
Rust
@classmethod def raw_code(cls): return cls.code()
Python
table> function spellContainerClass:GetRawSpellTable() return self._ActorTable end ---return the value of the spellTable[key] for the passed spellId ---@param spellId number ---@param key string ---@return any function spellContainerClass:GetAmount(spellId, key) local spell = self._ActorTable[spellId] if ...
Lua
tau=true \ --co_prior_var_scale=0.1 \ --csv_log=fitlog \ --feedback_factors_or_rates=factors \ --do_train_prior_ar_nvar=true \ --max_grad_norm=200.0 \ --device=gpu:0 \ --num_steps_for_gen_ic=100000000 \ --ps_nexamples_to_process=100000000 \ --checkpoint_name=lfads_vae \ --temporal_spike_jitter_width=0 \ --checkpoint_pb...
Markdown
.MMK3, 79 }, { #CONST_DEVICES.KKMK2, 55 }, { #CONST_DEVICES.MSTUDIO, 88 }, }, { "KNOB2", "BUTTON", { #CONST_DEVICES.MMK3, 78 }, { #CONST_DEVICES.KKMK2, 54 }, { #CONST_DEVICES.MSTUDIO, 89 }, }, { "KNOB3", "BUTTON", { #CONST_DEVICES.MMK3, 77 }, { #CO...
Lua
ptr(gst_rtp_sys::GST_RTP_PAYLOAD_DVI4_16000_STRING) .to_str() .unwrap() }); pub static RTP_PAYLOAD_DVI4_22050_STRING: once_cell::sync::Lazy<&'static str> = once_cell::sync::Lazy::new(|| unsafe { CStr::from_ptr(gst_rtp_sys::GST_RTP_PAYLOAD_DVI4_22050_STRING) .to_str() ...
Rust
45-1.233 1.484-.167 3.042-.733 3.042-3.292a2.58 2.58 0 0 0-.683-1.791c.066-.167.3-.85-.067-1.767 0 0-.558-.183-1.833.683a6.2 6.2 0 0 0-1.667-.225c-.567 0-1.134.075-1.667.225-1.275-.858-1.833-.683-1.833-.683-.367.917-.133 1.6-.067 1.767a2.6 2.6 0 0 0-.683 1.791c0 2.55 1.55 3.125 3.033 3.292-.191.166-.366.458-.425.891-.3...
JavaScript
C 7D 1B 78 */ mr r29, r3 /* 802FE670 002FB5B0 7C 9E 23 78 */ mr r30, r4 /* 802FE674 002FB5B4 41 82 00 C4 */ beq .L_802FE738 /* 802FE678 002FB5B8 80 7D 01 84 */ lwz r3, 0x184(r29) /* 802FE67C 002FB5BC 38 80 00 00 */ li r4, 0 /* 802FE680 002FB5C0 81 83 00 00 */ lwz r12, 0(r3) /* 802FE684 002FB5C4 81 8C 00 14 */ lwz...
Assembly
增了对错误的处理( `componentDidCatch`) ## setState是同步的还是异步的? - **生命周期和合成事件中** 在 `React`的生命周期和合成事件中, `React`仍然处于他的更新机制中,这时无论调用多少次 `setState`,都会不会立即执行更新,而是将要更新的·存入 `_pendingStateQueue`,将要更新的组件存入 `dirtyComponent`。 当上一次更新机制执行完毕,以生命周期为例,所有组件,即最顶层组件 `didmount`后会将批处理标志设置为 `false`。这时将取出 `dirtyComponent`中的组件以及 `_pendingStateQueue...
Markdown
{ return ExportProvider; } DateTime startTime = DateTime.Now; var assemblies = new HashSet<Assembly>(_assemblies) { Assembly.GetEntryAssembly()!, // .exe typeof(IMefProvider).Assembly, // DevToys.API typeof...
C#
0 16px 0; pointer-events: none; right: 0; width: auto; } .aLF-aPX-bhP .aLF-aPX-aPU-J6 { height: 48px; left: 0; padding-top: 8px; pointer-events: auto; position: absolute; right: 0; width: auto; } .aLF-aPX-bhP .aLF-aPX-aPU.aLF-aPX-aPU-aPs { background: #323232; -webkit-box-shadow: 0 2px 2px rg...
CSS
em;font-weight:300;margin-bottom:.3em}.result h3{margin-top:0;padding:.6em;color:#3c3c3c;font-family:"robotolight","roboto","Segoe UI Light",Helvetica,Arial,sans-serif;font-weight:300}#details-options{display:inline;background-color:rgba(0,0,0,.06);border-radius:.2em}#details-options .option-item{display:inline;padding...
CSS
import requests from bs4 import BeautifulSoup def fetch_douban_chart(): url = "https://movie.douban.com/chart" headers = { "User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36" } response = requests.get(url, heade...
Python
00: hsl(142, 60%, 99%); --green200: hsl(142, 60%, 97%); --green300: hsl(142, 40%, 72%); --green400: hsl(142, 34%, 64%); --green500: hsl(142, 68%, 42%); --green600: hsl(142, 62%, 40%); --green700: hsl(142, 60%, 38%); --green800: hsl(142, 60%, 12%); --green900: hsl(142, 60%, 10%); --amber100: hsl(40, 1...
CSS
evable using the formula for <code>S<sub>+</sub></code>. If invalid, return `0`. 3. Use a DP approach to find the count of subsets in `nums` whose sum equals <code>S<sub>+</sub></code>. Let's implement this solution in PHP: **[494. Target Sum](https://github.com/mah-shamim/leet-code-in-php/tree/main/algorithms/000494-...
Markdown
ectMapper import io.airbyte.commons.converters.AlwaysAllowedHosts import io.airbyte.commons.converters.AlwaysAllowedHosts.hosts import io.airbyte.commons.converters.ConfigReplacer import io.airbyte.config.AllowedHosts import org.assertj.core.api.Assertions import org.junit.jupiter.api.Test import java.io.IOException i...
Kotlin
.join(UserSavedPhoto.user) .where( Users.uuid == user_id, UserSavedPhoto.photo_uuid == photo_id ) ) userPhoto: UserSavedPhoto | None = (await session.execute(query)).scalar() if userPhoto is None: raise HTTPExceptio...
Python
object Int32Array]",u8e="[object Uint8Array]",g8e="[object Uint8ClampedArray]",f8e="[object Uint16Array]",h8e="[object Uint32Array]",dr={};dr[Goe]=dr[JWe]=dr[n8e]=dr[s8e]=dr[WWe]=dr[zWe]=dr[o8e]=dr[a8e]=dr[A8e]=dr[l8e]=dr[c8e]=dr[XWe]=dr[ZWe]=dr[qoe]=dr[$We]=dr[e8e]=dr[t8e]=dr[r8e]=dr[u8e]=dr[g8e]=dr[f8e]=dr[h8e]=!0;dr...
JavaScript
space:normal}.tooltip.medium{inline-size:12rem;white-space:normal}.tooltip.large{inline-size:16rem;white-space:normal}:hover>.tooltip{visibility:visible;opacity:1;transform:translate(-50%,-100%) scale(1)}:hover>.tooltip.left{transform:translate(-100%,-50%) scale(1)}:hover>.tooltip.right{transform:translate(100%,-50%) s...
CSS
handleContext = new HandleContext(); // 取出 while 下的步骤集合 JSONObject conditionStep = stepJSON.getJSONObject("step"); List<JSONObject> steps = conditionStep.getJSONArray("childSteps").toJavaList(JSONObject.class); // 设置了判断条件步骤,则先运行判断条件的步骤 thread.getLogTool().sendStepLog(StepType.PA...
Java
"Air\u00edonna na C\u00e1ip\u00e9ise", "Title": "Teideal", "Keywords": "Lorgfhocail", "Description": "Cur S\u00edos", "Robots": "R\u00f3bait", "Author": "\u00dadar", "Encoding": "Ionch\u00f3d\u00fa", "Fullscreen": "L\u00e1nsc\u00e1ile\u00e1n", "Action": "Gn\u00edomh", "Shortcut": "Aicearra", "Help": "Cabhair", "Addres...
JavaScript
// Copyright 2009 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. #include "textflag.h" TEXT _rt0_386_windows(SB),NOSPLIT,$0 JMP _rt0_386(SB) // When building with -buildmode=(c-shared or c-archive), this // symbol is calle...
Assembly
cool.scx.live_room_watcher.impl.tiktok_hack.proto_entity.webcast.im.Common other = (cool.scx.live_room_watcher.impl.tiktok_hack.proto_entity.webcast.im.Common) obj; if (!getMethod() .equals(other.getMethod())) return false; if (getMsgId() != other.getMsgId()) return false; if (getRoomId() ...
Java
; } .xet-through-cut-cell, .xet-through-cut:hover { color: red; cursor: pointer; font-weight: bold; } /* 用户活动热度图样式 - GitHub风格 */ .user-activity-heatmap { padding: 16px 20px; background: transparent; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.1); } /* 统计信息 */ .heatmap-stats { margin-b...
CSS
/* Simple DirectMedia Layer Copyright (C) 1997-2025 Sam Lantinga <slouken@libsdl.org> This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this ...
C
try: from .emotion_recognition import get_emotion_recognition_ai emotion_ai = get_emotion_recognition_ai() debug_info = { "face_model_loaded": emotion_ai.face_model is not None, "emotion_model_loaded": emotion_ai.emotion_model is not None, "f...
Python
data['colorTab'] = this.colorTab; if (this.rightNavigationIconList != null) { data['rightNavigationIconList'] = this.rightNavigationIconList!.map((v) => v.toJson()).toList(); } if (this.menus != null) { data['menus'] = this.menus!.map((v) => v.toJson()).toList(); } if (this.float...
Dart
q236, q237, q238, q239, q240, q241, q242, q243, ) } } @Test fun testMax() { assertReflectEquals(DstMax.creator(), defaultMapper.readValue<DstMax>("{}")) } } p...
Kotlin
using System; using System.Collections.Generic; using System.Linq; using UnityEditor; using UnityEngine; namespace skner.DualGrid.Editor.Extensions { public static class DualGridRuleTileExtensions { /// <summary> /// Applies the provided <paramref name="texture"/> to the <paramref name="dualG...
C#
data_ordering = Mdvx::ORDER_XYZ; master_hdr.vlevel_type = Mdvx::VERT_TYPE_Z; master_hdr.vlevel_included = 1; sprintf(master_hdr.data_set_info,"%s","NetCDF Wrf Model Field"); sprintf(master_hdr.data_set_name,"%s","NetCDF Wrf VIL"); sprintf(master_hdr.data_set_source,"%s", filename.c_str()); mdv_file.setMa...
C++
reator.CreateInstanceOfInt16(rndGen); case 4: return PrimitiveCreator.CreateInstanceOfUInt16(rndGen); case 5: return PrimitiveCreator.CreateInstanceOfInt32(rndGen); case 6: return PrimitiveCreator.CreateInstanceO...
C#
�;两种方式选择其一, ![30](./media/30.png) #### 3、若无域名那就按照脚本提示去做【ssh转发】;有域名则可选择更加安全的【申请安装证书】方式, #### 4、Windows电脑首先通过快捷键【Win + R】调出运行窗口,在里面输入【cmd】打开本地终端服务, ![36](./media/36.png) ![31](./media/31.png) ![32](./media/32.png) ![33](./media/33.png) #### 5、若在搭建之前没有翻墙加密,则【http明文模式】登录面板有很大的信息泄露安全风险,那建议你第一次搭建成功之后,去修改用户/密码,和访问路径,后期则通过搭建好的...
Markdown
, r6 str r2, [sp, #8] lsl r2, r6, #0x18 lsr r2, r2, #0x18 mov lr, r2 ldr r2, [sp, #8] mov r0, #0 lsl r2, r2, #0x18 lsr r2, r2, #0x18 add r5, r0, #0 mov ip, r2 _02249916: add r7, r6, r5 lsr r3, r7, #0x1f lsl r4, r7, #0x1f sub r4, r4, r3 mov r2, #0x1f ror r4, r2 add r2, r3, r4 lsl r4, r2, #2 mov r2, #0...
Assembly
est-section-rewards-box-logo>img{bottom:0;margin:auto;position:absolute;right:0;width:50px}.contest-section-rewards-box-head{bottom:0;color:#000;font-size:24px;margin:auto 0 auto 10px;text-align:left;top:0;width:calc(100% - 100px)}.contest-section-rewards-box-text{color:#141414;font-family:Roboto;font-size:16px;line-he...
CSS
perm 13, 18, 18, 7 xxsldwi 50, 63, 63, 1 vperm 16, 14, 30, 16 vperm 7, 19, 19, 7 xxlandc 63, 61, 34 vadduwm 18, 31, 18 vperm 29, 16, 13, 9 xxlxor 47, 50, 47 vperm 6, 16, 19, 6 vrlw 15, 15, 4 vperm 7, 8, 7, 9 vadduwm 17, 17, 29 xxmrgld 41, 61, 44 vadduwm 17, 15, 17 vperm 9, 28, 9, 10 xxlxor 63, 49, 63 xx...
Assembly
0x186: 0x2dfa, 0x187: 0x1972, 0x188: 0x1975, 0x189: 0x1a08, 0x18a: 0x1987, 0x18b: 0x198a, 0x18c: 0x1a3e, 0x18d: 0x2f88, 0x18e: 0x3294, 0x18f: 0x3096, 0x190: 0x33a2, 0x191: 0x3140, 0x192: 0x3451, 0x193: 0x31d6, 0x194: 0x34ec, 0x195: 0x39cf, 0x196: 0x3b5e, 0x197: 0x39c8, 0x198: 0x3b57, 0x199: 0x39d6, 0x19a: 0x3b65, 0x...
Go
Vérifier si l'app est initialisée if(!isInitialized) return; // Créer et afficher la notification try { await flutterLocalNotificationsPlugin.show( 0, title, body, payload: payload, NotificationDetails(android: channels[channelKey]) ); } catch (e) { debugPrint('Imposs...
Dart
dif #ifdef CONFIG_ARCH_DAVINCI_DM355 { .name = "dm355-pll1", .driver_data = (kernel_ulong_t)dm355_pll1_init }, { .name = "dm355-pll2", .driver_data = (kernel_ulong_t)dm355_pll2_init }, #endif #ifdef CONFIG_ARCH_DAVINCI_DM365 { .name = "dm365-pll1", .driver_data = (kernel_ulong_t)dm365_pll1_init }, { .name = "...
C
!(Err(ParseError::BadLength(0)), "".parse::<Cell>()); assert_eq!(Err(ParseError::BadLength(2)), "..".parse::<Cell>()); } #[test] fn test_display_cell() { assert_eq!(".", Cell::Floor.to_string()); assert_eq!("L", Cell::EmptySeat.to_string()); assert_eq!("#", Cell::OccupiedSea...
Rust
; bool get _alsoCleanNinja => boolArg('ninja'); bool get _alsoCleanFlutterRepo => boolArg('flutter'); @override String get description => 'Deletes build caches and artifacts.'; @override FutureOr<bool> run() async { // This is the old path that tests used to be built into. Clean this path too. f...
Dart
cast = 0, cooldown = 20, gcd = "spell", startsCombat = true, texture = 1344654, pvptalent = "tormentor", handler = function () applyDebuff( "target", "focused_assault" ) end, }, -- Talent: Remove all snares and vault away. Nearby enemies ta...
Lua
testTypePromotionHints, testFunctionCall, testCascade, testAwait, testAsyncReturn]; asyncTest(() => Future.forEach(tests, (test) => setup(test))); } testSimpleTypes(MockCompiler compiler) { checkType(DartType type, String code) { E...
Dart
ebook.litho.Component import com.facebook.litho.ComponentContext /** Simple Fresco Vito example that loads a Drawable image via DrawableImageSourc. */ object FrescoVitoLithoDrawableImageSourceExample : LithoSample { private val IMAGE_OPTIONS = ImageOptions.create() .placeholderColor(Color.RED) ...
Kotlin
}, // ); parent.spawn_bundle(TextBundle { style: Style { position_type: PositionType::Absolute, position: Rect { bottom: Val::Px(0.0), ..Default::default() }, ...
Rust
return getRuleContext(If_not_existsContext.class,0); } public TerminalNode LR_BRACKET() { return getToken(SnowflakeParser.LR_BRACKET, 0); } public Column_list_with_commentContext column_list_with_comment() { return getRuleContext(Column_list_with_commentContext.class,0); } public TerminalNode RR_BRACKET(...
Java
(t *testing.T) { cb, err := newCB() require.NoError(t, err) // Track failures explicitly var failureCount int var successCount int // Execute a mix of successful and failed requests for i := 0; i < 3; i++ { execErr := cb.Execute(func() error { if i%2 == 0 { return errors.New("failure") }...
Go
equal Color instance values', function() { expect(Color.from([0, 1, 2]).equals(Color.from([0, 1, 2, 0]))).to.be.false; expect(Color.from([1, 1, 1, 1]).equals(Color.from([1, 1, 2, 1]))).to.be.false; expect(Color.from([1, 1, 1, 1]).equals(Color.from([1, 0, 1, 1]))).to.be.false; expect(Color.from([...
JavaScript
ragmentation: Incomplete frame must be followed by ' 'continuation frame.', ); } } else if (_pushPromiseFrame != null) { if (frame is ContinuationFrame) { if (_pushPromiseFrame!.header.streamId != frame.header.streamId) { throw ProtocolException( 'Defragme...
Dart
2, 0xe, 0x1d /* 801B5420 001B1080 7F E3 FB 78 */ mr r3, r31 /* 801B5424 001B1084 7C 9D 00 2E */ lwzx r4, r29, r0 /* 801B5428 001B1088 38 A0 00 6D */ li r5, 0x6d /* 801B542C 001B108C 4B FC B1 ED */ bl func_80180618 /* 801B5430 001B1090 28 03 00 01 */ cmplwi r3, 1 /* 801B5434 001B1094 40 82 00 18 */ bne lbl_801B544...
Assembly
. 0x000d APB_DATA_WIDTH .................... 32 IC_SDA_STUCK_TIMEOUT_DEFAULT ...... 0xffffffff IC_SLV_DATA_NACK_ONLY ............. 0x1 IC_10BITADDR_SLAVE ................ 0x0 IC_CLK_TYPE ....................... 0x0 IC_SMBUS_UDID_MSB ................. 0x0 IC_SMBUS_SUSPEND_ALERT ............ 0x0 I...
Rust
/************************************************************************* * * * Copyright (c) 2014 Torben Bruchhaus * * http://ffqueue.bruchhaus.dk/ * * File: FFQConst.h ...
C
e * /test/lib * @run driver jdk.test.lib.FileInstaller . . * @run main/othervm -Xlog:gc=debug:gc.log gc.ArrayJuggle.Juggle01.Juggle01 -gp doubleArr -ms medium */ /* * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. *...
Java
ype.CHAR, PType.VARCHAR, PType.STRING, PType.CLOB -> CastType.COERCION else -> CastType.UNSAFE } PType.VARCHAR -> when (to.code()) { PType.VARCHAR, PType.STRING, PType.CLOB -> CastType.COERCION else -> CastType.UNSAFE } PType.ROW -> when (to.code()) { ...
Kotlin
Fence fence) { VkEncoder* enc = (VkEncoder*)context; #if defined(VK_USE_PLATFORM_ANDROID_KHR) || DETECT_OS_LINUX { std::unique_lock<std::recursive_mutex> lock(mLock); auto fenceInfoIt = info_VkFence.find(fence); if (fenceInfoIt == info_VkFence.end()) { mesa_loge("Failed to ...
C++
tNodeInfo", "GraphOutputNodeInfo", "Destination", }); org.tensorflow.proto.TypesProtos.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) } // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/protobuf/control_flow.proto package org.tensorflow.proto; public in...
Java
=> post.generalTags.join(' ')), TokenHandler('meta', (post, config) => post.metaTags.join(' ')), TokenHandler( 'species', (post, config) => post.speciesTags.join(' '), ), MPixelsTokenHandler(), ], ); }); const kE621PostSamples = [ { ...
Dart
11.2015 'ntfzipdl' : 'Tworzenie pliku do pobrania', // from v2.1.7 added 23.1.2016 'ntfparents' : 'Uzyskiwanie informacji o ścieżce', // from v2.1.17 added 2.11.2016 'ntfchunkmerge': 'Przetwarzanie przesłanego pliku', // from v2.1.17 added 2.11.2016 'ntftrash' : 'Wykonuje wrzucanie do kosza', // from...
JavaScript
; csConf.setCapacityByLabel(B, "x", 50); csConf.setMaximumCapacityByLabel(B, "x", 50); csConf.setUserLimit(B, 200); // set node -> label mgr.addToCluserNodeLabels(ImmutableSet.of( NodeLabel.newInstance("x", false))); mgr.addLabelsToNode(ImmutableMap.of(NodeId.newInstance("h1", 0), toSet...
Java
Through, fingerprint: chunkRef.Fingerprint, checksum: chunkRef.Checksum, kb: sizeInKB, entries: logEntriesCount, }) i.indexedChunks[lblsString] = indexedChunks return true, nil } func (i *indexUpdatesRecorder) RemoveChunk(_, _ model.Time, _ []byte, lbls labels.Labels, chunkID string) (bool,...
Go
�� 이나경 수업조교 △명동거리 활성화팀에 이희원 선문대교수와 김두겸 수업조교 △원성1동 활성화팀에 김영환 청주대교수와 조성철 수업조교 △ 문성동 대문화 활성화팀에 전원식 여주대교수와 (주)어반터치라온 고정우주임 등이 지도교수와 수업조교로 선임되었으며, 총괄책임교수로는 박종광 (사)대한국토·도시계획학회 기획조정단 연구위원과 운영조교로는 김민형 청주대 석사과정이 선임되었다 도시재생대학은 지역주민들이 스스로 지역의 문제점을 찾아내고 자력으로 해결하는 주민 주도형 도시재생 시스템이 안착 될 수 있도록 하는 전문가 양성 프로그램과 차별화된 도시재생사업 발굴로 앞으로 추진방향...
Markdown
annotation.Value import org.springframework.stereotype.Component import org.springframework.transaction.annotation.Transactional import java.time.LocalDateTime import java.time.ZoneId @Component class ReadProgressDao( dslRW: DSLContext, @Qualifier("dslContextRO") dslRO: DSLContext, @param:Value("#{@komgaProperti...
Kotlin
derGenericSetting vertexDistance; private ListOptionGenericSetting positionMode; private BoolGenericSetting optimizeWidth; private FloatSliderGenericSetting widthPerHeight; private BoolGenericSetting minimizeEdgeLength; private ListOptionGenericSetting edgeRouting; private FloatSliderGenericSett...
C#
=========== std::pair<int, SphericalHarmonicsFilter*> check_sphharm_filter(int32_t index) { // Make sure this is a valid index to an allocated filter. int err = verify_filter(index); if (err) { return {err, nullptr}; } // Get a pointer to the filter and downcast. const auto& filt_base = model::tally_f...
C++
ZUuNVMg23auBF7UIl2yBbJt70JAoKV6/WwLk6R9mgKSJlJ1kLTxFmkJyCla8UZd15GJQKvyumyJ8gy8DAEvfZoINPqD41EtUjmUgoaJwAaAnjrKebVI34OSq85NBNqlCAWgE0CV5GEWwI3vQlmCbcSinYFCwPEIFDPgeIC1P1/MgHaIHDf4Aydx2TF7wnKeAAAAAElFTkSuQmCC")}.jessibuca-container .jessibuca-loading{display:none;flex-direction:column;justify-content:center;align-items:...
JavaScript
autoplace_controls = { ['coal'] = { frequency = 0, size = 0, richness = 0 }, ['stone'] = { frequency = 0, size = 0, richness = 0 }, ['copper-ore'] = { frequency = 0, size = 0, richness = 0 }, ['iron-ore'] = { frequency = 0, size = 0, richness = 0 }, ['uranium-ore'] = { frequency = 0, size = 0, richness =...
Lua
*gcam, MRI *mri) { int x, y, z, xn, yn, zn, width, depth, height, label; GCA_MORPH_NODE *gcamn; // error check if (!mri) ErrorExit(ERROR_BADPARM, "GCAbuildLabelVolume called with null MRI.\n"); if (mri->width != gcam->atlas.width || mri->height != gcam->atlas.height || mri->depth != gcam->atlas.depth) E...
C++
d %xmm4,nb234_iyM(%esp) movapd %xmm5,nb234_izM(%esp) ## clear vctot and i forces xorpd %xmm4,%xmm4 movapd %xmm4,nb234_vctot(%esp) movapd %xmm4,nb234_Vvdwtot(%esp) movapd %xmm4,nb234_fixO(%esp) movapd %xmm4,nb234_fiyO(%esp) movapd %xmm4,nb234_fizO(%esp) ...
Assembly
should be equal for both executions. The result should be %x but was %x", origOrderFullExec.OrderID, resExec.OrderID) return } if resExec.NewAmountHave != 0 { t.Errorf("A filled order should have no 'NewAmountHave' left. It has %d instead", resExec.NewAmountHave) return } execMap := createInclusionMap(setExe...
Go
{ "aaaa", "bbb", "cccc" }; System.out.println(IceUtil.first(strs)); strs = new String[] {}; System.out.println(IceUtil.first(strs)); strs = null; System.out.println(IceUtil.first(strs)); System.out.println("___________"); List<String> list = new ArrayList<String>(...
Java
MinusAlpha = 1.0 - alpha; float oneMinusAlphaSquared = oneMinusAlpha * oneMinusAlpha; float a = velvetParamsInterpolate(0, oneMinusAlphaSquared); float b = velvetParamsInterpolate(1, oneMinusAlphaSquared); float c = velvetParamsInterpolate(2, oneMinusAlphaSquared); float d = velvetParamsInterpolate...
JavaScript
-getSignedOffset(values[1]), addrFactory, monitor); } } break; case PcodeOp.INT_CARRY: // TRUE if adding two operands has overflow (carry) return eillimnateCarryOp(pcodeOp, values, addrFactory, monitor); case PcodeOp.INT_SCARRY: // TRUE if carry in signed addition of 2 ops // TODO:...
Java
// bp = nbp; UNSUPPORTED("6t98dcecgbvbvtpycwiq2ynnj"); // } UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // } UNSUPPORTED("4w0qgfnt6kpuhb381pmra3ln4"); // if (!intrsx[3] && !intrsx[0]) { /* some room down? */ UNSUPPORTED("6st33ex0udr4mk4sa9vd119uz"); // /* slide down left edge */ UNSUPPORTED("ajgw2jggmwmo...
Java
f); Trinity::UnitListSearcher<Trinity::AnyUnfriendlyUnitInObjectRangeCheck> searcher(me, targets, u_check); me->VisitNearbyObject(5.0f, searcher); for (std::list<Unit*>::const_iterator iter = targets.begin(); iter != targets.end(); ++iter) CheckIfMoveInRing(*iter); ...
C++
t *testing.T) { input := []byte(strings.Repeat("Hello world, this is quite something", 10)) output := make([]byte, CompressBound(input)) outSize, err := CompressHC(input, output) if err != nil { t.Fatalf("Compression failed: %v", err) } if outSize == 0 { t.Fatal("Output buffer is empty.") } output = output[...
Go
.launch.py example:='pick_and_place' ``` <img src = https://rt-net.github.io/images/crane-x7/bringup_rviz.gif width = 500px /> **実機を使う場合** CRANE-X7から20cm離れた位置にピッキング対象を設置します。 <img src = https://rt-net.github.io/images/crane-x7/bringup.jpg width = 500px /> サンプルで使用しているこのオレンジ色のソフトボールはRT ROBOT SHOPの[こちらのページ](https://www...
Markdown
,[2,6],[8,10],[15,18]] * 输出:[[1,6],[8,10],[15,18]] * 解释:区间 [1,3] 和 [2,6] 重叠, 将它们合并为 [1,6]. * 示例 2: * <p> * 输入:intervals = [[1,4],[4,5]] * 输出:[[1,5]] * 解释:区间 [1,4] 和 [4,5] 可被视为重叠区间。 * <p> * <p> * 提示: * <p> * 1 <= intervals.length <= 104 * intervals[i].length == 2 * 0 <= starti <= endi <= 104 * <p> * http...
Java
using RimWorld; using System; using Verse.Sound; namespace Verse { public class Stance_Warmup : Stance_Busy { private Sustainer sustainer; private bool targetStartedDowned; public Stance_Warmup() { } public Stance_Warmup(int ticks, LocalTargetInfo focusTarg, Verb verb) : base(ticks, focusTarg, verb) ...
C#
/*<FILE_LICENSE> * Azos (A to Z Application Operating System) Framework * The A to Z Foundation (a.k.a. Azist) licenses this file to you under the MIT license. * See the LICENSE file in the project root for more information. </FILE_LICENSE>*/ using System; using System.Collections.Generic; using System.Linq; using...
C#
2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z' data-evernote-id='1493' class='js...
Markdown
/** * @file * @brief @ref point containers @ref PointSet and @ref PointMap */ /************************************************************************* * Copyright (c) 2011 AT&T Intellectual Property * All rights reserved. This program and the accompanying materials * are made available under the terms of the ...
C
// Copyright (c) 2020 Sergio Aquilini // This code is licensed under MIT license (see LICENSE file for details) namespace Silverback.Messaging.Sequences { /// <summary> /// The possible reasons for a sequence to be aborted. /// </summary> public enum SequenceAbortReason { /// <summary>...
C#
DeepHalfEquals<A, B, keyof A> extends true ? 1 : never : 1 : never : never : never : never : unknown ) extends never ? 0 : never : unknown ) extends never ? true : false type _DeepHalfEquals<A, B extends A, K extends keyof A> = ( K extends unknown ? (Equals<A[K], B[K]> exte...
Typescript
WindowManager::add(window); if !style.contains(WindowStyle::SUSPENDED) { handle.make_active(); } handle } fn build_inner<'a>(mut self, title: &str) -> Box<RawWindow<'a>> { let window_options = self.window_options; if (window_options & megosabi::windo...
Rust
l filesToCopy = <FileSystemEntity>[]; try { await for (final entity in currentDir.list( recursive: true, followLinks: false, // 不跟随符号链接,避免访问系统文件夹 )) { try { if (entity is File) { // 排除 Windows 特殊文件夹(My Music, My Videos 等) final ...
Dart
from rest_framework import serializers from .models import HealthMetrics class HealthMetricsSerializer(serializers.ModelSerializer): class Meta: model = HealthMetrics fields = [ 'id', 'date', 'weight', 'body_fat_percentage', 'blood_pressu...
Python
x!="a"){t[x]=2Y.oH(t[x])}});C t.7Q()};z.ho=B(ht,M){A m=ht.1M().1f(/^hs?\\(([\\s\\.,0-9]+)\\)/);C m&&z.7P(m[1].1A(/\\s*,\\s*/),M)};z.hn=B(4j,M){A d=z,t=M||S d.1J(),7R=(4j.G==4)?4:8,hr=(1<<7R)-1;4j=2V("oG"+4j.3b(1));if(2L(4j)){C L}d.1n(["b","g","r"],B(x){A c=4j&hr;4j>>=7R;t[x]=7R==4?17*c:c});t.a=1;C t};z.7P=B(a,M){A t=M|...
JavaScript
], PSTR(" sd:")); if (zero_std_dev < 1) sprintf_P(&mess[15], PSTR("0.%03i"), (int)LROUND(zero_std_dev * 1000.0f)); else sprintf_P(&mess[15], PSTR("%03i.x"), (int)LROUND(zero_std_dev)); ui.set_status(mess); } ac_home(); } while (((zero_std_dev < test_precision && iterations ...
C++
import datetime import sys import signal import time import os from core.utils import isInteger, isFloat from core.logger import Logger from helper.tinkerforge.ip_connection import IPConnection from helper.tinkerforge.bricklet_gps_v3 import BrickletGPSV3 HOST = os.environ.get("HOST", "localhost") PORT = os.environ.ge...
Python
ude: @article-footer.snippet.md --> --- title: Java 16 新特性概览 category: Java tag: - Java新特性 --- Java 16 在 2021 年 3 月 16 日正式发布,非长期支持(LTS)版本。 相关阅读:[OpenJDK Java 16 文档](https://openjdk.java.net/projects/jdk/16/) 。 ## JEP 338:向量 API(第一次孵化) 向量(Vector) API 最初由 [JEP 338](https://openjdk.java.net/jeps/338) 提出,并作为[孵化 API](...
Markdown
oneMatcherContext ctx) { // TODO issue error if matcherStack.size() != 2 PhoneMatcher p2Matcher = matcherStack.pop(); PhoneMatcher p1Matcher = matcherStack.pop(); popMatcherStack(); CompoundPhoneMatcher matcher = new CompoundPhoneMatcher(p1Matcher, p2Matcher); matcherStack.push(matcher); } @Override p...
Java
import ijson def load_and_print_last_tweet(json_file): with open(json_file, 'rb') as file: # open the file in binary mode # Directly parse items under the root array tweets = ijson.items(file, 'item') last_tweet = None for tweet in tweets: last_tweet = tweet # Continue...
Python
used instead. Note that when clients like Relay need to fetch the "cursor" field on the edge to enable efficient pagination, this shortcut cannot be used, and the full "{ edges { node } }" version should be used instead. """ starships: [Starship] } """An edge in a c...
Typescript
qmfaBands = sbrFreq->kStart; for(l = 0; l < 32; l++) { gbMask = QMFAnalysis(inbuf + l * 32, m_PSInfoSBR->delayQMFA[chBase + ch], m_PSInfoSBR->XBuf[l + HF_GEN][0], m_AACDecInfo->rawSampleFBits, &(m_PSInfoSBR->delayIdxQMFA[chBase + ch]), qmfaBands); gbIdx = ((...
C++
@Test fun `can set multiple values on a form`() { val stringField = FormField.required("hello") val intField = FormField.int().required("another") val populated = WebForm() .with(stringField of "world", intField of 123) assertThat(stringField(populated),...
Kotlin
\f\xa4\x18D\x84\xf6z\x0f\x1ar\xfcm?~\xefՐ´\x93\x87w\xe2 \x87\x94֤7⍀\x12\xf0\xa3\x05\nV=\xad7\xa2\x8e\x0e4\xd0\x1b\x01\x05\xab\x9e\x16ވ\x88\xdc\xda\xdd1\xf3U\xbdˈ\x81PH@\\\xc2>j$\x06\x06\x19!\xfaLa\x18\b\xe4\x0f\x02\x8a1\x87L \x9a 8\x0f\x8e\xbay3\xa6\x90)\x043w\xff\x11\x11\xa9\x89\b\x861\x83\xcc!\xfa&\x90\x18\x13H\f\x02...
Go
oto_2, parse_goto, "goto 17"); ast_panic_test!(parse_goto_3, parse_goto, "got 17"); ast_test!(parse_retstat_1, parse_retstat, "return false,true ;", astb!(RetStat, Some(ast!(ExpList, vec![ ast!(Bool, false), ast!(Bool, true) ])))); ast_test!(pars...
Rust