content stringlengths 2 6.21k | label stringclasses 16
values |
|---|---|
에 공식적인 모듈 시스템이 없었습니다. Node.js는 `require`와 `module.exports`를 사용하는 반면, AMD는 `define` 함수와 콜백을 사용했습니다.
타입스크립트 역시 `module` 키워드와 '트리플 슬래시' 임포트를 사용했습니다. ECMAScript 2015가 공식적으로 모듈 시스템을 도입한 이후, 타입스크립트는 충돌을 피하기 위해 `module`과 같은 기능을 하는 `namespace` 키워드를 추가했습니다.
```ts
namespace foo {
function bar() {}
}
/// <reference path="o... | Markdown |
if (!Arrays.equals(this.context, that.context)) {
return false;
}
else if (!this.glyphChar.equals(that.glyphChar)) {
return false;
}
else {
return true;
}
}
else {
return false;
}
}
public int hashCode() {
int ctxHash = Arrays.hashCode(context);
int typeHash =... | Java |
.
*/
/**
* @author Alexander Y. Kleymenov
*/
package com.codename1.util;
/**
* This class implements Base64 encoding/decoding functionality
* as specified in RFC 2045 (http://www.ietf.org/rfc/rfc2045.txt).
*/
public class Base64 {
public static byte[] decode(byte[] in) {
return decode(in, in.len... | Java |
namespace VixenModules.App.ExportWizard
{
partial class BulkExportSourcesStage
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">... | C# |
llback, int priority);
void Remove(ICallbacks callback);
ICallbacks[] GetAll();
void Clear();
}
} | C# |
Op::Load {
dst: select_u16(instr, 11, 9),
offset: select_i16(instr, 8, 0),
}),
0b0011 => Some(Op::Store {
src: select_u16(instr, 11, 9),
offset: select_i16(instr, 8, 0),
}),
0b0100 => match select_bool(instr, 11) {
false => Some... | Rust |
atic void fuse(SceneBuilder scene, SceneBuildingUtil util) {
var electric = ElectricInstructions.of(scene);
scene.title("fuse", "Protecting your equipment");
scene.configureBasePlate(0, 0, 5);
var target = util.grid().at(2, 1, 2);
scene.showBasePlate();
scene.idle(10);
... | Java |
jo.msgFields.set(2,
// "4321432143214321"); outMsgPojo.msgFields.set(3, "103020");
// outMsgPojo.msgFields.set(4, "12345");
// */
// FDR8583MsgPojo inMsgPojo = null;
// try {
// inMsgPojo = FDR8583RegressionClient.exec(outMsgPojo, null, null);
// } catch (final IOException e) {
// ApplicationLogger.getLogger().log(Leve... | Java |
lices"
"sort"
)
// https://space.bilibili.com/206214
func maxRemoval(nums []int, queries [][]int) int {
slices.SortFunc(queries, func(a, b []int) int { return a[0] - b[0] })
h := hp{}
diff := make([]int, len(nums)+1)
sumD, j := 0, 0
for i, x := range nums {
sumD += diff[i]
for ; j < len(queries) && queries[j... | Go |
if os.path.exists(file_path):
logging.info(
f"Uploading output file {file_path} to gs://{target_gcs_bucket}/{target_gcs_path}"
)
storage_client = storage.Client()
bucket = storage_client.bucket(target_gcs_bucket)
blob = bucket.blob(target_gcs_path)
blob.uploa... | Python |
것을 [[일본인]]들의 재정적 권익만을 위하여 사용하였다. 그들은 강탈, 강도, 잔인한 흉계 등을 감행하였으며, 이로 인한 3년간의 실질적인 손해는 구체제하 정부의 가장 잔혹한 정치가 50년간 저지른 해독보다 더욱 심한 것이었다. (중략)
>
> 이토가 [[일본]]에서 1억원(500만불)을 차관해 온 것은 사실이다. 그러나 그 돈은 [[일본]]의 특수 이익을 위해 사용되었다. 재한 [[일본인]] 관리들은 본토 봉급의 3-4배를 받았고, 수도공사는 일인들의 거주지인 제물포와 서울의 [[일본인]] 거주지에만 설치되었다. 교육기관의 설치는 [[한국어]]를 근절시키고 [[일... | Markdown |
Nil(t, extChanges)
}
func TestCompareSecurityRequirement_NewReq_V2(t *testing.T) {
// Clear hash cache to ensure deterministic results in concurrent test environments
low.ClearHashCache()
left := `tip:
- tap
auth:
- pizza
- pie`
right := `auth:
- pie
- pizza
tip:
- tap
biscuit:
- digestive`
var lN... | Go |
2022-1903</span></p></td></tr><tr style="height:25px;"><td style="border-color: rgb(221, 221, 221);border-top-width: initial;border-top-style: none;padding: 0px 7px;" height="25" width="108"><p style="text-align:justify;vertical-align: inherit;line-height: 115%;text-indent: 0em;"><span style="font-size: 15px;font-famil... | Markdown |
,
.ui-noboxshadow .ui-btn:focus,
.ui-noboxshadow input:focus,
.ui-noboxshadow .ui-panel {
-webkit-box-shadow: none !important;
-moz-box-shadow: none !important;
box-shadow: none !important;
}
.ui-noboxshadow .ui-btn:focus,
.ui-noboxshadow .ui-focus {
outline-width: 1px;
outline-style: auto;
}
/* Clock in header
... | CSS |
0.0387,-8.71e-4 -0.0705,-0.01382 -0.0956,-0.03885 -0.025,-0.02502 -0.038,-0.05687 -0.0388,-0.09555 l 0,-0.671973 c 8.7e-4,-0.03867 0.0138,-0.07052 0.0388,-0.09555 0.025,-0.02502 0.0569,-0.03797 0.0956,-0.03885 l 0.80636,0 c 0.0387,8.8e-4 0.0705,0.01383 0.0956,0.03885 0.025,0.02503 0.038,0.05688 0.0388,0.09555 l 0,0.671... | CSS |
for neg, pos in neg_opt.items():
if pos == opt:
opt = neg
val = None
break
else:
raise AssertionError("Shouldn't be able to get here")
... | Python |
m_j = 0; m_j < len; ++m_j)
{
switch (jointype)
{
case jtMiter:
{
m_R = 1 + (normals[m_j].X*normals[m_k].X +
normals[m_j].Y*normals[m_k].Y);
if (m_R >= m_RMin) DoMiter(); else DoSquare(MiterLimit);
break;
... | C++ |
าให้มีประสิทธิภาพสูง, ปลอดภัย, และสามารถ **นำไปต่อยอดได้หลากหลาย** สำหรับแอปพลิเคชันจองห้องพักต่างๆ.
## ✨ คุณสมบัติหลัก (Features)
* **User Management:**
* ลงทะเบียนผู้ใช้ใหม่ (`POST /register`)
* เข้าสู่ระบบผู้ใช้ (`POST /login/user`)
* **Admin Management:**
* ลงทะเบียนผู้ดูแลระบบ (`POST /admin`)
* เ... | Markdown |
": "PASS"
},
"dkimVerdict": {
"status": "PASS"
},
"action": {
"type": "S3",
"topicArn": "arn:aws:sns:us-east-1:012345678912:example-topic",
"bucketName": "my-S3-bucket",
"objectKey": "\\email"
}
},
"mail": {
... | Go |
Theta1 = debugInitializeWeights(hidden_layer_size, input_layer_size)
Theta2 = debugInitializeWeights(num_labels, hidden_layer_size)
# Reusing debugInitializeWeights to generate X
X = debugInitializeWeights(m, input_layer_size - 1)
y = np.arange(1, 1+m) % num_labels
# print(y)
# Unroll param... | Python |
colors.
2D, 4D and ND varieties are also provided by `SimplexRange`.
Simplex Range* is not to be confused with *Simplex Noise*.

[source code](src/jvmDemo/kotlin/simpl... | Markdown |
,d)==-1){e=235;break b}HEAP[d]-=1;if(HEAP[d]!=0){e=226;break b}FUNCTION_TABLE[HEAP[HEAP[d+4]+24]](d);e=226;break b}else if(e==112){b=
_PyType_GenericNew(HEAP[_If_type],0,0);if(b==0){e=235;break b}d=_ast2obj_expr(HEAP[c+4]);if(d==0){e=238;break b}if(_PyObject_SetAttrString(b,__str163391,d)==-1){e=235;break b}HEAP[d]-=1;... | JavaScript |
199070
IGjDvGvDvA== 199071
RG9zZQ== 199072
dnVyYQ== 199073
IFRJbnQ= 199074
IEtocg== 199075
INCy0LDRgg== 199076
LmNyZWF0aW9u 199077
INmC2YTZitmE2Kk= 199078
IG1nYmFud2U= 199079
IGls4buN 199080
0LXQvdC30Lg= 199081
YmZk 199082
77yM5Lya 199083
IGRpdmVydGVk 199084
Y3Jpc3Rv 199085
INGB0YLQtdGA 199086
b3NwZWxz 199087
KF8oJw==... | Kotlin |
KkASIPl9cDgcnDkdtNwiMJCshACH5BAAKAAcALAAAAAAQABAAAAV3ICACAkkQZTmOAiosiyAoxCq+KPxCNVsSMRgBsiClWrLTSWFoIQZHl6pleBh6suxKMIhlvzbAwkBWfFWrBQTxNLq2RG2yhSUkDs2b63AYDAoJXAcFRwADeAkJDX0AQCsEfAQMDAIPBz0rCgcxky0JRWE1AmwpKyEAIfkEAAoACAAsAAAAABAAEAAABXkgIAICKZzkqJ4nQZxLqZKv4NqNLKK2/Q4Ek4lFXChsg5ypJjs1II3gEDUSRInEGYAw6B6zM4JhrDAtEos... | CSS |
ute: bool,
pub self_deaf: bool,
pub mute: bool,
pub deaf: bool,
}
impl VoiceState {
pub fn decode(value: Value) -> Result<VoiceState> {
let mut value = try!(into_map(value));
warn_json!(value, VoiceState {
user_id: try!(remove(&mut value, "user_id").and_then(UserId::decode))... | Rust |
h[1];if(h&&null==e)return n.push(t[0]+";");for(let i in e){let r=e[i];if(/&/.test(i))o(i.split(/,\s*/).map((e=>t.map((t=>e.replace(/&/,t))))).reduce(((t,e)=>t.concat(e))),r,n);else if(r&&"object"==typeof r){if(!h)throw new RangeError("The value of a property ("+i+") should be a primitive value.");o(s(i),r,l,a)}else nul... | JavaScript |
using System.IO;
namespace MyNes.Core
{
internal class VRC6Sawtooth
{
private byte AccumRate;
private int accumClock;
private byte accumulationRegister;
private int frequency;
private int freqTimer;
private int cycles;
private bool enabled;
internal int output;
... | C# |
:new(((self.bits >> 13) & 0x01) != 0)
}
#[doc = "Bit 14 - DMA Channel 14"]
#[inline(always)]
pub fn dmach14(&self) -> DMACH14_R {
DMACH14_R::new(((self.bits >> 14) & 0x01) != 0)
}
#[doc = "Bit 15 - DMA Channel 15"]
#[inline(always)]
pub fn dmach15(&self) -> DMACH15_R {
DM... | Rust |
largerBuffer = ByteArray(testData.size + 10)
val bytesRead = randomAccessPersistence.read(largerBuffer, 0, largerBuffer.size, false)
assertEquals(testData.size, bytesRead)
}
@Test
fun testPartialRead() {
val testData = "Test partial read".toByteArray()
randomAccessPersiste... | Kotlin |
luaFiles) {
// delete any prior scripts
await frame!.sendString(
'frame.file.remove("${file.split('/').last}");print(0)',
awaitResponse: true);
}
}
currentState = ApplicationState.connected;
if (mounted) setState(() {});
}
/// When given the full list of A... | Dart |
} else {
let diff = this.diff(task);
let days = diff / (1000 * 3600 * 24);
s = `${days.toFixed(1)} dia's`;
}
return s;
},
diff(task: Task): number {
return Number(task.deliveryTime) - new Date().getTime();
},
past(task: Task): boolean {
let today = new Date();
toda... | Typescript |
ut_size: u32,
pub activation: Activation,
pub memory: Vec<f32>,
pub hidden: Vec<f32>,
pub states: LSTMState,
pub g_gate: Arc<RwLock<Dense>>,
pub i_gate: Arc<RwLock<Dense>>,
pub f_gate: Arc<RwLock<Dense>>,
pub o_gate: Arc<RwLock<Dense>>,
pub v_gate: Arc<RwLock<Dense>>
}
impl LSTM {... | Rust |
Sync", "FaerlinaEnrage", 5)
self:TriggerEvent("BigWigs_ThrottleSync", "FaerlinaSilence", 5)
end
function BigWigsFaerlina:CHAT_MSG_MONSTER_YELL( msg )
if not started and msg == L["starttrigger1"] or msg == L["starttrigger2"] or msg == L["starttrigger3"] or msg == L["starttrigger4"] then
self:TriggerEvent("BigWigs_M... | Lua |
let expr2_0 = constructor_x64_load(ctx, expr0_0, &pattern1_0, &expr1_0)?;
let expr3_0 = RegMemImm::Reg { reg: expr2_0 };
let expr4_0 = constructor_ushr_i8x16_mask(ctx, &expr3_0)?;
return Some(expr4_0);
}
_ => {}
}
return None;
}
// Generated as int... | Rust |
notationType annotationType;
final List<CodeLocation> codeLocations;
final List<CodeSource> codeSources;
final String? stepInfo;
int? sourceMappingIndex;
CodeLineAnnotation(
{required this.annotationId,
required this.annotationType,
required this.codeLocations,
required this.codeSourc... | Dart |
(
globalApplication.packageName, 0
)
versioncode = if (Build.VERSION.SDK_INT < Build.VERSION_CODES.P) {
packageInfo.versionCode.toLong()
} else {
packageInfo.longVersionCode
}
} catch (e: PackageManager.NameNotFoundE... | Kotlin |
0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t 40473
5oOF 40474
IHdlZWQ= 40475
TkJD 40476
IHJhcGVk 40477
IEdhdGV3YXk= 40478
W00= 40479
IFRpbWVvdXQ= 40480
ZW5jaG1hcms= 40481
LlZpZXdNb2RlbA== 40482
IHBvcm5vcw== 40483
IFlh 40484
dGhyaXRpcw== 40485
IEZseW5u 40486
IG1lZ2E= 40487
YWNpbg== 40488
IHRyaWJhbA== 40489
LmFwcGxl 40490
IEJs... | Kotlin |
// nie bo to się przydaje potem przy statystykach, żeby trackować ile się przewinęło w ogóle przez program
//ale faktycznie do kodu w pętli lepiej używać size
protected int totalAnimalEnergy = 0;
protected int totalDeadAnimalAge = 0;
protected int deathCount = 0;
private final int energyToRepro... | Java |
rsion {
Version::HTTP_11 => Ok(stream.into()),
Version::HTTP_2 => {
#[cfg(feature = "http2")]
{
let connection = crate::h2::proto::handshake(stream).await?;
Ok(connection.into())
}
#[cfg(not... | Rust |
$a0, $a0, 3 // count * 8
addu $a0, $v0, $a0 // count = count * 10
addu $a0, $a2, $a0 // end_ptr = start_ptr + count * 10
beq $a2, $a0, finished_DKRB
vone.s S233 // w = 1.0f
next_vertex_DKRB:
# Load and transform this vertex position
xori $v0, $a2, 0x2 // = vtx_ptr ^ 2
lh $t4, 0($v0) ... | Assembly |
*****
void params_mod_kill_ens_( csParamDef* pdef ) {
pdef->setModule( "KILL_ENS", "Kill ensembles", "Kill ensembles that have the specified number of traces" );
pdef->addParam( "select", "Selection of number of traces", NUM_VALUES_VARIABLE );
pdef->addValue( "", VALTYPE_STRING, "Selection string. For example: <... | C++ |
ublic override async ValueTask VisitAsync(ASTNode? node, State context)
{
if (node != null)
{
for (int i = 0; i < _visitors.Count; ++i)
await _visitors[i].EnterAsync(node, context.Context).ConfigureAwait(false);
await base.VisitAsync(node, context).ConfigureA... | C# |
using System;
using System.Text;
using System.Text.Json;
namespace OpenGptChat.Utilities
{
public class SnakeCaseNamingPolicy : JsonNamingPolicy
{
static SnakeCaseNamingPolicy()
{
laziedInstance = new Lazy<SnakeCaseNamingPolicy>();
}
private SnakeCaseNamingPolicy()... | C# |
center;
}
.sb-timeline__segment__round--active
{
opacity:0.6;
}
.sb-timeline__segment__round--clinch
{
background-color: gray;
opacity:0.2;
}
.clinch-label
{
font-size: 12px;
text-align: center;
horizontal-align: center;
width: 100%;
color: gray;
}
.past-clinch
{
opacity: 0.1;
}
.sb-timeline__segment__ro... | CSS |
"characterTypes": ["lowerCase","upperCase","number","symbol"],
"minDistinctCharacterTypes": "2",
"innererror": {
"code": "PasswordReuseNotAllowed"
}
}
}
}
}
```
上面例子中,基本的错误码为 "BadArgument,",但是服务端在`innererror`中提供了更多详细的说明。"PasswordReuseNotAllowed" 错误码可能是在迭代过程中被添加进去以给... | Markdown |
cumentation
- [ ] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my feature works
- [ ] New and existing unit tests pass locally with my changes
- [ ] Any dependent changes have been merged and published in downstream modules
# Prepare SD Card
This doc is used to p... | Markdown |
-- copilot enabled explicitly for JS
-- vim.b.copilot_enabled = true
-- require "notify"(
-- "Copilot enabled for JavaScript. :copilot disable/enable. <C-j> to Accept().",
-- "info",
-- { title = "Copilot " }
-- )
-- typescript-language-server: 0.11.2
vim.opt_local.linebreak = true
vim.opt_local.colorcolumn = "... | Lua |
seCallback(String productId, PurchaseResultEnum result) {
if (!mounted) return;
setState(() {
isPurchasing = false;
});
}
@override
Widget build(BuildContext context) {
model = PropertyChangeProvider.of<SettingsViewModel, String>(
context,
properties: const [
"didPurcha... | Dart |
on defaults
function desktop.add_icons(args)
args = args or {}
args.screen = args.screen or mouse.screen
args.dir = args.dir or os.getenv("HOME") .. "/Desktop"
args.showlabels = args.showlabel or true
args.open_with = args.open_with or "xdg_open"
args.baseicons = args.ba... | Lua |
{
TcpConnection::reset();
}
bool start_connection (Context c, Ip4Addr addr, uint16_t port, typename ThePrinterMain::TheCommand *cmd)
{
if (!TcpConnection::isInit()) {
cmd->reportError(c, AMBRO_PSTR("ConnectionAlreadyActive"));
re... | C |
AIT2)
/// This alias is defined for backward compatibility.
#define BDEALG_DECLARE_NESTED_TRAITS3(T, TRAIT1, TRAIT2, TRAIT3) \
BSLALG_DECLARE_NESTED_TRAITS3(T, TRAIT1, TRAIT2, TRAIT3)
/// This alias is defined for backward compatibility.
#define BDEALG_DECLARE_NESTED_TRAITS4(T, TRAIT1, TRAIT2, TRAIT3... | C |
/*
* Copyright 2016-2019 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the OpenSSL license (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/lice... | C |
CT `COL1`\n" + "FROM `TBL`";
sql(sql).ok(expected);
}
@Test
void testDropView() {
final String sql = "DROP VIEW IF EXISTS view_name";
final String expected = "DROP VIEW IF EXISTS `VIEW_NAME`";
sql(sql).ok(expected);
}
@Test
void testDropTemporaryView() {
... | Java |
}
.h-68 {
height: 68rpx;
}
.h-76 {
height: 76rpx;
}
.h-710 {
height: 710rpx;
}
.h-72 {
height: 72rpx;
}
.h-748 {
height: 748rpx;
}
.h-750 {
height: 750rpx;
}
.h-78 {
height: 78rpx;
}
.h-80 {
height: 80rpx;
}
.h-86 {
height: 86rpx;
}
.h-88 {
height: 88rpx;
}
.h-90 {
height: 90rpx;
}
.h-96 {
heigh... | CSS |
########################################################################
# File name: __init__.py
# This file is part of: aioxmpp
#
# LICENSE
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundat... | Python |
3 varyingNormal;',
'varying vec2 varyingUV;',
'void main(void) {',
'vec3 albedo=texture2D(albedoMap,varyingUV).rgb;',
'vec3 normal=texture2D(normalMap,varyingUV).rgb*2.0-1.0;',
'float specularFactor=pow((albedo.r+albedo.g+albedo.b)*0.33,2.0);',
'float specularHardness=2.0... | JavaScript |
_PLAY_SSL_CERT_FILE'),
ssl_key_file = os.getenv('TT_CLI_PLAY_SSL_KEY_FILE'),
ssl_ca_file = os.getenv('TT_CLI_PLAY_SSL_CA_FILE'), | Lua |
rgs;
args._path = &_path;
args.write(oprot_);
oprot_->writeMessageEnd();
oprot_->getTransport()->writeEnd();
oprot_->getTransport()->flush();
sentry.commit();
return cseqid;
}
int32_t DataPageAccessConcurrentClient::recv_RpcUnlink(const int32_t seqid)
{
int32_t rseqid = 0;
std::string fname;
::a... | C++ |
License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing ... | Go |
ublic Int32 UsageMethod { get; set; }
public Int32 CredentialSource { get; set; }
public Boolean SeparateLogin { get; set; }
private string hostName;
public String HostName
{
get { return hostName; }
set { hostName = value; }
}
private Se... | C# |
ANK_CLK_EN
str r2, [r1]
ldr r1, =DEBUG_UART_TX_GPIO_BANK_ADDRESS
/* Set GPIO mode alternate */
ldr r2, [r1, #GPIO_MODE_OFFSET]
bic r2, r2, #(GPIO_MODE_MASK << GPIO_TX_SHIFT)
orr r2, r2, #(GPIO_MODE_ALTERNATE << GPIO_TX_SHIFT)
str r2, [r1, #GPIO_MODE_OFFSET]
/* Set GPIO speed low */
ldr r2, [r1, #GPIO_SPEED_OFF... | Assembly |
-----------------------------------
-- Rambling Around (Lv10)
-- Still Rambling (Lv12)
-----------------------------------
-- Copyright (c) 2025 LoxleyXI
--
-- https://github.com/LoxleyXI/LQS
-----------------------------------
-- This program is free software: you can redistribute it and/or modify
-- it under the ter... | Lua |
ult);
}
[Obsolete("Use the overloads with 'uri' parameter instead.")]
public static IEventFlowOptions UseEventStoreEventStore(
this IEventFlowOptions eventFlowOptions,
IPEndPoint ipEndPoint,
ConnectionSettings connectionSettings)
{
var eve... | C# |
LS0, LS1[]={LS0}, LS2[][]={LS1};
private Long LP0, LP1[]={LP0}, LP2[][]={LP1};
public Long LU0, LU1[]={LU0}, LU2[][]={LU1};
protected Long LR0, LR1[]={LR0}, LR2[][]={LR1};
transient Long LT0, LT1[]={LT0}, LT2[][]={LT1};
volatile Long LV0, LV1[]={LV0}, LV2[][]={LV1};
final Long LF0 = L... | Java |
tgresServices;
import io.stackgres.common.crd.sgdistributedlogs.StackGresDistributedLogsSpec;
import io.stackgres.testutil.fixture.Fixture;
public class DistributedLogsSpecFixture extends Fixture<StackGresDistributedLogsSpec> {
public DistributedLogsSpecFixture emptyPostgresServices() {
if (fixture.getPostgresS... | Java |
#pragma once
#include <QObject>
#include <QtQml/qqml.h>
#include "FluAccentColor.h"
#include "stdafx.h"
#include "singleton.h"
/**
* @brief The FluColors class
*/
class FluColors : public QObject {
Q_OBJECT
Q_PROPERTY_AUTO(QColor, Transparent)
Q_PROPERTY_AUTO(QColor, Black)
Q_PROPERTY_AUTO(QColor,... | C |
StringList registryKeyNames{
"JDK", "Java Development Kit",
"JRE", "Java Runtime Environment",
};
for (const auto ®istryKeyName : registryKeyNames) {
const QString registryKeyPath = QString("%1\\%2").arg("HKEY_LOCAL_MACHINE\\Software\\JavaSoft", registryKeyName);
const QSettin... | C++ |
umber(2)
set moduleCover(DynOurCityModuleCover value) => $_setField(2, value);
@$pb.TagNumber(2)
$core.bool hasModuleCover() => $_has(1);
@$pb.TagNumber(2)
void clearModuleCover() => $_clearField(2);
@$pb.TagNumber(2)
DynOurCityModuleCover ensureModuleCover() => $_ensure(1);
/// 参见 [`DynOurCityModuleDe... | Dart |
, at Hævelsen på det syge Sted på hans skaldede Isse eller Pande er rødlighvid, af samme Udseende som Spedalskhed på Huden,</verse>
<verse number="44">så er han spedalsk; han er uren, og Præsten skal erklære ham for uren; på sit Hoved er han angrebet.</verse>
<verse number="45">Den, der er spedalsk, den... | JavaScript |
mplaint be sure you understand what constitutes harassment
* <A HREF="http://uo.custhelp.com/cgi-bin/uo.cfg/php/enduser/std_adp.php?p_faqid=59"> what is physical harassment?</A>
* and that you have followed these steps:<BR>
* 1. You have asked the player to s... | C# |
stem.out.println("mean: " + nf.format(mean));
System.out.println("average_deviation: " + nf.format(average_deviation));
System.out.println("standard_deviation: " + nf.format(standard_deviation));
System.out.println("variance: " + nf.format(variance));
System.out.println("skew: ... | Java |
immediateMode._curveVertex[2],
this.immediateMode._curveVertex[5],
this.immediateMode._curveVertex[8],
this.immediateMode._curveVertex[11]
]);
for (i = 0; i < LUTLength; i++) {
_x =
w_x[0] * this._lookUpTableBezier[i][0] +
w_x[1] * this._lookUpTableBezier[... | JavaScript |
### **1. Problemas Críticos do RAG Tradicional**
❌ **Alucinações Persistem Mesmo com RAG**
- Recuperação correta não garante resposta precisa
- LLMs fabricam informações não presentes no contexto recuperado
- Exemplo: Sistema recupera "receita caiu 15%" mas responde "devido ao bloqueio do Canal de Suez" (informação n... | Markdown |
cU64::new(1);
ID.fetch_add(1, Ordering::Relaxed)
}
/// Create a new stream
#[macro_export]
macro_rules! stream {
{$($block:tt)*} => {
$crate::AsyncStream::new(|mut __y| async move{
macro_rules! yield_ {
($v:expr) => {
__y.yield_item($v).await
... | Rust |
(!_controller.value.isInitialized) {
try {
setState(() {
_isVideoLoading = false;
_videoErr = true;
_errFocusNode.requestFocus();
});
} catch (e) {
// debugPrint(e.toString());
}
}
});
}
//获取播放链接
void loadUrl() {... | Dart |
public static void main (String[] args)
{
int arr[] = {3, 8, 17, 5};
int n = arr.length;
int k = 2;
// Calling Function
printDistinctIntegers(k, arr, n);
}
}
```
## 蟒蛇 3
```
# Python3 program to print all distinct
# integers that can be formed by K numbers
# from a... | Markdown |
_include,
}
-- common source & header files
---------
filter {} -- reset the filter and remove all active keywords
files { -- added to all filters, later defines will be appended
common_files,
}
removefiles {
detours_files,
'dll/flat.cpp',
}
-- libs to... | Lua |
R.id.item_enableHyperlink -> textView.isHyperlinkEnabled = !item.isChecked
else -> return super.onOptionsItemSelected(item)
}
item.isChecked = !item.isChecked
return true
}
}
package me.blog.korn123.commons.utils
import android.text.SpannedString
import android.text... | Kotlin |
"Dcircumflexbelow": '\u1e12', // Ḓ
"Dcroat": '\u0110', // Đ
"Ddotaccent": '\u1e0a', // Ḋ
"Ddotbelow": '\u1e0c', // Ḍ
"Decyrillic": '\u0414', // Д
"Deicoptic": '\u03... | Go |
pub trait Trait: frame_system::Trait {
type Event: From<Event<Self>> + Into<<Self as frame_system::Trait>::Event>;
}
decl_storage! {
trait SpotExchangeStore for Module<T: Trait> as SpotExchangeModule {
Asset get(fn something): Option<u32>;
Pair get(fn something): Option<u32>;
OrderBook get(fn something): ... | Rust |
nc randomBytes(n int) []byte {
res := make([]byte, n)
crypto.GetPrivatePRNG().ReadBytes(res)
return res
}
func uintToBytes(n uint64) []byte {
b := make([]byte, binary.MaxVarintLen64)
binary.PutUvarint(b, n)
return b
}
func bytesToUint(buff []byte) (uint64, error) {
val, read := binary.Uvarint(buff)
if read ==... | Go |
. */
hr {
-moz-box-sizing: content-box;
box-sizing: content-box;
height: 0;
}
/** Address styling not present in IE 8/9. */
mark {
background: #ff0;
color: #000;
}
/** Correct font family set oddly in Safari 5 and Chrome. */
code, kbd, pre, samp {
font-family: monospace, serif;
font-size: ... | CSS |
spin_unlock_bh(&fastopenq->lock);
reqsk_put(req);
return;
}
/* Wait for 60secs before removing a req that has triggered RST.
* This is a simple defense against TFO spoofing attack - by
* counting the req against fastopen.max_qlen, and disabling
* TFO when the qlen exceeds max_qlen.
*
* For more detai... | C |
break;case"remove":for(var g=0,v=n.length;g<v;g++){var y=n[g];this._ids.has(y)&&(this._ids.delete(y),r.push(y),l.push(e.oldData[g]))}}this.length+=o.length-r.length,o.length&&this._trigger("add",{items:o},i),s.length&&this._trigger("update",{items:s,oldData:a,data:h},i),r.length&&this._trigger("remove",{items:r,oldData... | JavaScript |
ProgramPersistenceService>,
ProgramPersistenceService,
FutureOr<ProgramPersistenceService>
>
with
$FutureModifier<ProgramPersistenceService>,
$FutureProvider<ProgramPersistenceService> {
const ProgramPersistenceProvider._()
: super(
from: null,
argum... | Dart |
Jambières de silence apaisant",
[58128] = "Heaume de l'œil intérieur",
[58129] = "Mantelet hydroglycériné",
[58130] = "Gants glaneurs",
[58131] = "Tunique d'envie angoissante",
[58132] = "Jambières de la taupe fouisseuse",
[58133] = "Masque de lianes",
[58134] = "Etreinte de la nuit",
[58135] = "[Monster] - Mace, 1H Zu... | Lua |
ckend_mission_id)
if Managers.multiplayer_session:is_booting_session() then
_info("Wanted mission rejected, already in process of booting a multiplayer session")
else
local initiator_peer = Network.peer_id()
Managers.multiplayer_session:party_host_join_mission_server(backend_mission_id, initiator_peer)
end
en... | Lua |
Eval(node.Next, scope)
return evalNumberInfixExpression(infixExpr, n, r, scope)
}
return n
case "*":
n := &Number{Value: leftVal * rightVal}
if node.HasNext {
infixExpr := &ast.InfixExpression{Token: node.Token, Operator: node.NextOperator}
r := Eval(node.Next, scope)
return evalNumberInfixExpress... | Go |
response.nextPageToken))
that(response)
.describedAs("second page")
.isA<ListAggregatesResult>()
.and {
get { aggregates }.hasSize(2)
.and {
get { first().type }.isEqualTo("bar")
get { first(... | Kotlin |
.ActionEvent evt) {
jPasswordField1ActionPerformed(evt);
}
});
getContentPane().add(jPasswordField1, new org.netbeans.lib.awtextra.AbsoluteConstraints(370, 500, 200, 30));
jButton1.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
jButton1.setText("Cance... | Java |
]
// }
// }
//
// {
// "id" : 1698068111133,
// "method" : "private/create-order-list",
// "code" : 0,
// "result" : [ {
// "code" : 0,
// "index" ... | Go |
.$watch(function() { return $element[0].className; }, function(value) {
var isShown = value.indexOf('ng-hide') === -1;
var isSubfooter = value.indexOf('bar-subfooter') !== -1;
$scope.$hasFooter = isShown && !isSubfooter;
$scope.$hasSubfooter = isShown && isSubfoot... | JavaScript |
s.Address.eq(swapRecord!!.toAddress)).list()[0]
// var txid = Test1Contract.userUnlock(neow3j, swapRecord!!.rOrign, swapRecord!!.toAddress, wallet.wif, swapRecord!!.neoContractAddress)
// if ("".equals(txid)) {
// runOnUiThread {
// ... | Kotlin |
i r6, r13, lbl_805D9678@sda21
/* 802ECAD4 002E98D4 38 E0 00 00 */ li r7, 0
/* 802ECAD8 002E98D8 7C 00 41 D6 */ mullw r0, r0, r8
/* 802ECADC 002E98DC 7C 00 E8 50 */ subf r0, r0, r29
/* 802ECAE0 002E98E0 54 00 10 3A */ slwi r0, r0, 2
/* 802ECAE4 002E98E4 7C 63 00 2E */ lwzx r3, r3, r0
/* 802ECAE8 002E98E8 48 0C 0C ... | Assembly |
(test.at(0), JSON_TEXT("world"));
assertEquals(test.at(1), JSON_TEXT("mars"));
assertEquals(test.at(2), JSON_TEXT("france"));
assertEquals(test.at(0).name(), JSON_TEXT("hi"));
assertEquals(test.at(1).name(), JSON_TEXT("hello"));
assertEquals(test.at(2).name(), JSON_TEXT("salut"));
} catch (std::... | C++ |
StrncpyExit)
/* Case2 or Case3, Case3 */
.p2align 4
L(CopyVecSizeCase2OrCase3):
test %rdx, %rdx
jnz L(CopyVecSizeCase2)
L(CopyVecSizeCase3):
add $VEC_SIZE, %r8
add %rcx, %rdi
add %rcx, %rsi
jmp L(StrncpyExit)
.p2align 4
L(CopyTwoVecSizeCase2OrCase3):
test %rdx, %rdx
jnz L(CopyTwoVecSizeCase2)
add %rcx, %... | Assembly |
long t2 = System.currentTimeMillis();
buildCoreModes();
long t2b = System.currentTimeMillis();
rebuildContribModes();
long t2c = System.currentTimeMillis();
rebuildContribExamples();
long t3 = System.currentTimeMillis();
// Needs to happen after the sketchbook folder has been located.
/... | Java |
API
@LowPriorityInOverloadResolution
public suspend fun says(message: Supplier<Message>): MessageChain {
return says(message.get())
}
public suspend fun says(message: suspend MessageChainBuilder.() -> Unit): MessageChain {
return says(buildMessageChain { message(this) })
}
}/*
* Co... | Kotlin |
Left;
@BindView(R.id.right_drawer_list) RecyclerView tableDrawerRight;
@BindView(R.id.content_frame) FrameLayout contentFrame;
@BindView(R.id.action_back_button) ImageView tabBackButton;
@BindView(R.id.action_forward_button) ImageView tabForwardButton;
@BindView(R.id.action_back) View tabBackButtonContai... | Java |
// }
// catch (InvocationTargetException ex2) {
// logger.error("Original exception overridden by exception handling failure", ex);
// ReflectionUtils.rethrowException(ex2.getTargetException());
// }
// catch (Exception ex2) {
// logger.error("Failed to invoke exception handler method", ex2);
// }
//... | Java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.