content stringlengths 2 6.21k | label stringclasses 16
values |
|---|---|
[8]})`;
}
export function frob(a: ACN) {
return Math.sqrt(Math.pow(a[0], 2) + Math.pow(a[1], 2) + Math.pow(a[2], 2) + Math.pow(a[3], 2) +
Math.pow(a[4], 2) + Math.pow(a[5], 2) + Math.pow(a[6], 2) + Math.pow(a[7], 2) + Math.pow(a[8], 2));
}
export function add(out: number[], a: ACN, b: ACN): number[];
export funct... | Typescript |
/****************************************************************************
*
* Open Watcom Project
*
* Copyright (c) 2002-2021 The Open Watcom Contributors. All Rights Reserved.
* Portions Copyright (c) 1983-2002 Sybase, Inc. All Rights Reserved.
*
* ===================================... | C |
"[Upgrade name 416]Your lucky cookie": "Ton cookie chanceux",
"[Upgrade name 417]\"All Bets Are Off\" magic coin": "Pièce magique « Les paris sont ouverts »",
"[Upgrade name 418]Winning lottery ticket": "Ticket de loterie gagnant",
"[Upgrade name 419]Four-leaf clover field": "Champ de trèfles à quatre feuilles",
"... | JavaScript |
if (key === "") {
continue;
}
if (cl.hasOwnProperty(key)) {
if (typeof (cl[key]) === "string") {
cl[key] = String(obj[key]);
} else if (typeof (cl[key]) === "number") {
cl[key] = Number(obj[key]);
... | Typescript |
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file app_threadx.c
* @author MCD Application Team
* @brief ThreadX applicative file
******************************************************************************
* @attention
*
* Cop... | C |
ybe we do that differently in the end
PX_FORCE_INLINE PxU32 getNbUpdatedBoxes() const { return mNbUpdated; }
PX_FORCE_INLINE PxU32 getNbNonUpdatedBoxes() const { return mNbSleeping; }
PX_FORCE_INLINE const DynamicBoxes& getUpdatedBoxes() const { return mUpdatedBoxes; }
PX_FORCE_INLINE const DynamicBo... | C++ |
"""Top-level package for Chess Tuning Tools."""
try:
from importlib.metadata import version
except ImportError:
from importlib_metadata import version
__author__ = """Karlson Pfannschmidt"""
__email__ = "kiudee@mail.upb.de"
__version__ = version("chess-tuning-tools")
from tune.io import InitStrings, load_tuni... | Python |
C.Property>
<C.Property @name="...attributes">
This component supports use of [`...attributes`](https://guides.emberjs.com/release/in-depth-topics/patterns-for-components/#toc_attribute-ordering).
</C.Property>
</Doc::ComponentApi>
---
title: Text Input
description: 'A form element that provides users with a wa... | Markdown |
) BlockSize() int { return d.rate }
// Size returns the output size of the hash function in bytes.
func (d *state) Size() int { return d.outputLen }
// Reset clears the internal state by zeroing the sponge state and
// the byte buffer, and setting Sponge.state to absorbing.
func (d *state) Reset() {
// Zero the perm... | Go |
; Acknowledge the interrupt
BL read_irq_ack
MOV r4, r0
;
; This example only uses (and enables) one. At this point
; you would normally check the ID, and clear the source.
;
;
; Additonal code to handler private timer interrupt on CPU0
;
CMP r0, #29 ; If not Private T... | Assembly |
*/
@JvmInline
public value class CoordGrid(
public val packed: Int,
) {
/**
* @param level the height level of the avatar.
* @param x the absolute x coordinate of the avatar.
* @param z the absolute z coordinate of the avatar.
*/
@Suppress("ConvertTwoComparisonsToRangeCheck")
publi... | Kotlin |
ppears to be some ass-backwards React “app” that
* keeps state based on click events instead of, y’know, looking
* at the actual state of an actual checkbox. */
tryToClick(`#cookie-manager-popup label[for="${check.id}"]`, 'Pon Bike Group');
check.checked = false;
});
/* Variety 2. */
... | JavaScript |
//////////////////////////////////
// Enum field
map = new HashMap<>();
map.put("enumField", AnEnumType.VALUE1.toString());
Object response = this.graphqlServerUtils.mapArgumentToRelevantPojoOrScalar(map, AnInputType.class, 0, ELEMENT,
ARGUMENT);
assertTrue(response instanceof AnInputType, response.getCla... | Java |
iceConfigRequest)
::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:google.api.servicemanagement.v1.CreateServiceConfigRequest)
MergeFrom(*source);
}
}
void CreateServiceConfigRequest::MergeFrom(const CreateServic... | C++ |
:= randSeq(32)
for maxLength := 0; maxLength < len(base)+2; maxLength++ {
for suffixLen := 0; suffixLen <= maxLength+1; suffixLen++ {
suffix := randSeq(suffixLen)
got := GetName(base, suffix, maxLength)
if len(got) > maxLength {
t.Fatalf("len(GetName(%[1]q, %[2]q, %[3]d)) = len(%[4]q) = %[5]d; want %[3... | Go |
const result = parseCommentBlock(lines, i, { debug });
annotation = result.annotation;
i = result.i;
} else if (RE_INI_KEY_VAL.test(line)) {
const matchKeyVal = line.match(RE_INI_KEY_VAL);
if (matchKeyVal) {
debug && log(`tmpl.parse: Found KEY=VAL`);
output[matchKeyVal[1... | Typescript |
getPrivacy - error: %v", err)
return nil, err
}
ruleList, _ := c.svcCtx.Dao.UserClient.UserGetPrivacy(c.ctx, &userpb.TLUserGetPrivacy{
UserId: c.MD.UserId,
KeyType: int32(key),
})
if len(ruleList.GetDatas()) == 0 {
if key == mtproto.PHONE_NUMBER {
rVal = mtproto.MakeTLAccountPrivacyRules(&mtproto.Acco... | Go |
N;
}
self.x.$f()
}
};
}
impl DecInterval {
impl_dec!(inf);
impl_dec!(mag);
impl_dec!(mid);
impl_dec!(mig);
impl_dec!(rad);
impl_dec!(sup);
impl_dec!(wid);
}
#[cfg(test)]
mod tests {
use crate::*;
#[test]
fn inf() {
assert!(const_int... | Rust |
data: data,
queryParameters: queryParameters,
options: options,
cancelToken: cancelToken ?? _cancelToken,
);
return response;
}
/// Request 操作
Future<T> request<T>(
String path, {
required HttpMethod method,
data,
Map<String, dynamic>? queryParameters,
Options... | Dart |
OriginalSQL
}
// Always replace $adhoc with fallback if present and not already handled
if ctx.HasAdhocMacro && strings.Contains(processedSQL, "$adhoc") {
processedSQL = strings.ReplaceAll(processedSQL, "$adhoc", "1")
backend.Logger.Warn("Universal error handler replaced $adhoc with '1' as fallback",
"handle... | Go |
/*=========================================================================
*
* Copyright NumFOCUS
*
* 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/licens... | C |
user", "module": "oto", "key": "otoUser"},
{"role": "user", "module": "cams", "key": "camsUser"},
{"role": "user", "module": "printer", "key": "printerUser"},
{"role": "admin", "module": "dev", "key": "devAdmin"},
{"role": "admin", "module": "oto", "key": "otoAdmin"},
];
}
import { AsyncIterableX } f... | Typescript |
491eff;--fallback-pc:#d4dbff;--fallback-s:#ff41c7;--fallback-sc:#fff9fc;--fallback-a:#00cfbd;--fallback-ac:#00100d;--fallback-n:#2b3440;--fallback-nc:#d7dde4;--fallback-b1:#fff;--fallback-b2:#e5e6e6;--fallback-b3:#e5e6e6;--fallback-bc:#1f2937;--fallback-in:#00b3f0;--fallback-inc:#000;--fallback-su:#00ca92;--fallback-su... | CSS |
aws_instance.web
provider["registry.terraform.io/hashicorp/aws"]
foo_instance.web
provider["registry.terraform.io/hashicorp/foo"]
provider["registry.terraform.io/hashicorp/aws"]
provider["registry.terraform.io/hashicorp/aws"] (close)
aws_instance.web
provider["registry.terraform.io/hashicorp/aws"]
provider["reg... | Go |
ad32(ACSREG_S_TRIM, &val);
DEBUG_PRINT("EEPROM write: %X", (unsigned int)val);
// Write trim reg to EEPROM
asc37800Write32(ACSREG_E_TRIM, val);
vTaskDelay(M2T(10));
// Disable access
asc37800Write32(ACSREG_ACCESS_CODE, 0);
}
// DEBUG_PRINT("V: %.3f I: %.3f P: %.3f\n", vBat, i... | C |
< n; i++) {
mainmb.put(new Msg(id, i));
if (i % 10 == 0) {
Task.yield();
}
}
}
}
/**
* A Task that only makes nonpausing calls.
* @author s
*/
class TaskMB_NoPause extends Task {
Mailbox<Msg> mainmb;
int numMsgs;
TaskMB_NoPause(Mailb... | Java |
NE ERREUR5
MOVE 2(A0),D7
ADDQ #1,D7
ADDQ #6,A0
BRA.S COUNT
FINCNT:
MOVE.L A0,D0
SUB.L A5,D0
CMP.L NBBYTES,D0
BNE ERREUR6
SUBQ #1,D7
CMP $2A(A5),D7
BNE ERREUR7
; MOVEQ #0,D1
; ILLEGAL
LOOP: TST.B (A6)+
BNE.S LOOP
BRA LOADER
ERREUR1:
; ILLEGAL
PRINT MESS1(PC)
BRA LOOP
ERREUR2:
; ILLEGAL
PRINT MESS2(PC... | Assembly |
3021, 187, "Stick", "OPERATOR Stick Fire Weapons")
Mi_24P:definePushButton("OP_STICK_ENGAGE", 30, 3011, 865, "Stick", "OPERATOR Engage Stick")
Mi_24P:defineToggleSwitch("OP_STICK_DISENGAGE_CV", 30, 3013, 857, "Stick", "OPERATOR Disengage Stick Cover")
Mi_24P:definePushButton("OP_STICK_DISENGAGE", 30, 3012, 859, "Stick"... | Lua |
skPrompt("PLEASE TYPE IN A QUESTION THAT WOULD DISTINGUISH A "..
tostring(newAnimal).." FROM A "..tostring(guessedAnimal))
newAnswer = askYesOrNo("FOR A "..tostring(newAnimal).." THE ANSWER WOULD BE?")
-- add the new animal to the master list at the end, and
-- save off its index in the list
ta... | Lua |
.py`
4. Add configuration options
## 📚 Key Research Papers & Concepts
### Riemannian Geometry in ML
- **Riemannian VAEs**: Geometry-aware latent spaces
- **Geodesic Sampling**: Sampling along geodesics
- **Metric Learning**: Learning data-dependent metrics
### Normalizing Flows
- **Inverse Autoregressive Flows (IAF... | Markdown |
265558:
.byte 0x36, 0x80, 0x00, 0x00 # 806b8758
?266169:
.byte 0x3F, 0x00, 0x00, 0x00 # 806b875c
?266177:
.byte 0x40, 0x40, 0x00, 0x00 # 806b8760
?266280:
.byte 0x40, 0x49, 0x0F, 0xDB # 806b8764
?266310:
.byte 0x40, 0x00, 0x00, 0x00 # 806b8768
?266460__55804:
.byte 0x3E, 0x4C, 0xCC, 0xCD # 806b876c
?266607:
.byte 0xC1,... | Assembly |
;
int test[MAXN];
time_t begin, end;
begin = clock();
for (int i = 1; i <= TIMES; i++)
for (int i = 0; i < MAXN; i++)
test[i] = 0;
end = clock();
cout << "for: average time cost is " << (end - begin) / TIMES << " ms." << endl;
begin = clock();
for (int i = 1; ... | C++ |
"""Monitor CPU RAM and GPU VRAM usage to prevent out of memory errors."""
import logging
from typing import Optional
import psutil
import torch
logger = logging.getLogger(__name__)
class OutOfMemoryError(Exception):
"""Custom exception for GPU or RAM out of memory."""
def __init__(self, message: str, devi... | Python |
{
nyzhechongxing = 1; linkLabel11.LinkColor = Color.White; linkLabel11.BackColor = Color.Black; linkLabel11.Text += "辰刑辰-自刑-"; 地支相刑真假 = 1;
}
if (ydz == chen && rdz == chen || rdz == chen && ydz == chen)
... | C# |
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
function onCreatureAppear(cid)
npcHandler:onCreatureAppear(cid)
end
function onCreatureDisappear(cid)
npcHandler:onCreatureDisappear(cid)
end
function onCreatureSay(cid, type, msg)
npc... | Lua |
KEDITOR.NODE_ELEMENT &&
next.getName() in listNodeNames &&
next.equals( last )
) {
isAtEnd = 1;
// Move to the first item in sub list.
next = walker.next();
}
// Right at the end of list item.
else if ( range.checkBoundaryOfElement( block, CKEDITOR.EN... | JavaScript |
w15,w15,#2
add w5,w5,w9
eor w13,w13,w3
eor v17.16b,v17.16b,v7.16b
add w8,w8,w12
add w9,w9,w15
and w12,w6,w5
add v0.4s,v0.4s,v17.4s
bic w15,w7,w5
eor w11,w5,w5,ror#5
add w9,w9,w13
ushr v18.4s,v0.4s,#17
orr w12,w12,w15
ushr v19.4s,v0.4s,#10
eor w11,w11,w5,ror#19
eor w15,w9,w9,ror#11
sli v18.4s,v0.4s,#15
... | Assembly |
/ charShape.shadowSpacing; // 그림자 간격, -100%~100%
// charShape.shadowColor; // 그림자 색
if (charShape.shadow!=Shadow.NONE && charShape.shadowColor!=0) {
ShadowFormat sf = new ShadowFormat();
sf.Location = ShadowLocation.BOTTOM_RIGHT;
... | Java |
>= Build.VERSION_CODES.R) {
val m = windowManager.maximumWindowMetrics
w = m.bounds.width()
h = m.bounds.height()
} else {
val dm = DisplayMetrics()
windowManager.defaultDisplay.getRealMetrics(dm)
w = dm.widthPixels
h = dm.heightPixels
}
return Pair(w... | Kotlin |
const esp_console_cmd_t ndp_cmd = {
.command = "ndp",
.help = "NDP command",
.hint = NULL,
.func = &wifi_cmd_ndp,
.argtable = &ndp_args
};
ESP_ERROR_CHECK( esp_console_cmd_register(&ndp_cmd) );
ping_args.host = arg_str1(NULL, NULL, "<host>", "Host address");
p... | C |
113 },{8,KNIFEATTACK2 + 1,44,111},{8,KNIFEATTACK2 + 2,119,137},
{ 8,KNIFEATTACK2 + 3,187,159},{16,0,136,100},{8,KNIFEATTACK2 + 3,187,159},
{ 8,KNIFEATTACK2 + 2,119,137},{8,KNIFEATTACK2 + 1,44,111},{8,KNIFEATTACK2,0,113},
{ 1,0,80,41 },{1,0,107,52},{1,0,147,76}
},
// GOBLINATTACK
{ {10,GOBS... | C++ |
.region,
tableName: node.ref,
title: node.logicalId,
})
);
this.dashboard.dashboardBody = JSON.stringify({ widgets: this.widgets });
}
}
}
import { Component, OnInit } from '@angular/core'
@Component({
selector: 'kit-antd-table-reset-filter',
templateUrl: '.... | Typescript |
을 통해 글로벌 고객사를 확대하고 있다. 투자의견은 Buy이며, 목표가는 25,000이다. 2분기에는 영업손익이 부진했지만, 전지박 매출이 긍정적으로 성장하였다. 향후 2025년부터는 흑자전환이 예상된다.
## 솔루스첨단소재
- 2분기 실적은 시장 기대에 못 미치지만 전 사업부문에서 성장세를 보였다. 전지박 부문은 매출액이 상승했지만 영업이익은 하락하였고, 동박 부문은 견조한 매출 성장세를 보여 수익성도 개선되고 있다. 전자소재 부문은 안정적인 실적을 보여주고 있다. 투자의견은 Hold이며 목표가는 18,000원이다. 전지박 부문의 흑자전환 시점이 지연될 수 있는 가... | Markdown |
d Reports" component={Authorization(CSavedReportsListing, [UI_CONSTANTS.PAIG_LENS, UI_CONSTANTS.SAVED_REPORTS])} /> */}
{/* <Route path="/reports/:reportType/:configId" name="Saved Reports" component={Authorization(CReporting, [UI_CONSTANTS.PAIG_LENS, UI_CONSTANTS.BUILT_IN_REPORTS])} /> */}
{/* <Route p... | JavaScript |
e;
var truncatedLine = changelogLineRegex.Replace(line, string.Empty);
logBuilder.AppendLine(truncatedLine);
}
if (logBuilder.Length == 0) Log.Warning("There is no version entry in the changelog: {Version}", version);
return logBuilder.ToString();
}
static void ... | C# |
ables_sum_per_sec\x18\x17 \x01(\x02R\x13mTmpTablesSumPerSec\x12>\n" +
"\x1dm_tmp_disk_tables_sum_per_sec\x18\x18 \x01(\x02R\x17mTmpDiskTablesSumPerSec\x12>\n" +
"\x1dm_tmp_table_sizes_sum_per_sec\x18\x19 \x01(\x02R\x17mTmpTableSizesSumPerSec\x12-\n" +
"\x14m_qc_hit_sum_per_sec\x18\x1e \x01(\x02R\x0fmQcHitSumPerSec\x... | Go |
.filter((file) => file.endsWith('.js'))
.map((file) => path.basename(file, '.js'));
if (compareVersions(this.baseVersion, this.version) === 0) {
return this.locators;
}
if (compareVersions(this.baseVersion, this.version) < 0) {
versions = versio... | Typescript |
newly queued nodes to set
* the "next" fields of their predecessors. This is solved
* when necessary by checking backwards from the atomically
* updated "tail" when a node's successor appears to be null.
* (Or, said differently, the next-links are an optimization
* so that we don't usually nee... | Java |
;
-ms-flex-align: center;
align-items: center;
}
.quickview-content .quickview-ratting-review .quickview-ratting-wrap {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
}
.quickview-content .quickview-ratting-review .quickview-ratting-wrap .quickview-ratting i ... | CSS |
void => {
if(!props)
throw new TypeError(`TextSection.StrictValidateProps requires a valid parameter to check, none was given.`);
if(props.title && typeof props.title !== 'string')
throw new TypeError(`TextSection "title" property must be a string, instead found "${typeof props.... | Typescript |
g_default;
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
priv->iobase = devm_ioremap_resource(&pdev->dev, res);
if (IS_ERR(priv->iobase))
return PTR_ERR(priv->iobase);
irq = platform_get_irq(pdev, 0);
if (irq > 0 && (priv->cfg->flags & XLR_I2C_FLAG_IRQ)) {
priv->irq = irq;
xlr_i2c_wreg(priv->ioba... | C |
и заходів.
#### Q37. Яка команда mysql використовується для перевірки, які облікові записи мають певні привілеї?
- [x] show grants (відображає привілеї та ролі, призначені обліковому запису користувача або ролі MySQL)
- [ ] show privileges (показує список системних привілеїв, які підтримує сервер MySQL)
- [ ] show ac... | Markdown |
IF_SETPOSITION = 117
const val SEND_PING = 118
const val IF_RESYNC_V1 = 119
const val MIDI_SONG_WITHSECONDARY = 120
const val CAM_RESET = 121
const val UPDATE_FRIENDLIST = 122
const val MAP_PROJANIM_V1 = 123
const val IF_SETANGLE = 124
const val CAM_ROTATEBY = 125
const val CAM_TARG... | Kotlin |
ce reprocessedIssueService;
@BeforeEach
void setUp() {
reprocessedIssueService = new ReprocessedIssueService(reprocessedIssueRepository,
reprocessedIssueParagraphRepository,
issue... | Java |
+ f"{data.get('truckPlacement', {}).get('coordinateY'):.0f}"
)
text += (
", "
+ f"{data.get('truckPlacement', {}).get('coordinateZ'):.0f}"
)
Text(
text,
... | Python |
gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.15));
/* Add a drop shadow */
-webkit-box-shadow: 0 2px 3px 0 rgba(0, 0, 0, 0.5);
-moz-box-shadow: 0 2px 3px 0 rgba(0, 0, 0, 0.5);
box-shadow: 0 2px 3px 0 rgba(0, 0, 0, 0.5);
/* Set the font */
font: 700 13px "Helvetica Neue", Helvetica, Arial, sans-se... | CSS |
0 27,6.0441559 27,13.5 Z"),d.appendChild(v);var g=r.createNS("http://www.w3.org/2000/svg","g");g.setAttributeNS(null,"opacity","0.25"),g.setAttributeNS(null,"fill","#000000");var y=r.createNS("http://www.w3.org/2000/svg","path");y.setAttributeNS(null,"d","M13.5,0 C6.0441559,0 0,6.0441559 0,13.5 C0,19.222562 6.7499993,2... | JavaScript |
.apptentive.android.sdk.encryption.EncryptionException;
import com.apptentive.android.sdk.debug.ErrorMetrics;
import com.apptentive.android.sdk.encryption.EncryptionHelper;
import com.apptentive.android.sdk.model.ApptentiveMessage;
import com.apptentive.android.sdk.module.messagecenter.model.MessageFactory;
import com... | Java |
width:6px;height:8px;background-size:100%;background-image:url(/images/mobile/icons/play_small.png);background-repeat:no-repeat;margin-right:6px}.vk_2x.r .cp_attached_post .medias_thumbs a[href^="/video"].thumb_map_m .mt_dur:before,.vk_2x.r .cp_attached_post .medias_thumbs a[href^="/video"].thumb_map_s .mt_dur:before,.... | CSS |
Scrobbler[]> {
for (const scrobbler of registeredScrobblers) {
try {
await scrobbler.getSession();
this.bindScrobbler(scrobbler);
} catch (e) {
debugLog(`Unable to bind ${scrobbler.getLabel()}`, 'warn');
}
}
return this.boundScrobblers;
}
/**
* Bind given scrobbler.
* @param scrobbler... | Typescript |
e: 'KN', definition: 'Đặc khu Quảng Ninh', type: 'Quân khu' },
{ license: 'KP', definition: 'Quân khu 7', type: 'Quân khu' },
{ license: 'KT', definition: 'Quân khu Thủ đô', type: 'Quân khu' },
{ license: 'KV', definition: 'Quân khu 5', type: 'Quân khu' },
{
license: 'ND',
definition: 'Tổng công ty Đầu ... | Typescript |
.am-direction-nav a:before{display:inline-block;font-family:FontAwesome,sans-serif;font-weight:400;font-style:normal;vertical-align:baseline;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;content:"\f053";font-size:24px}.am-slider-c4 .am-direction-nav a.am-prev{left:0;padding-right:5... | CSS |
TorznabCaps.Categories.GetTorznabCategoryTree().Count);
}
[Test]
public void TestMapTorznabCapsToTrackers()
{
var indexer = new TestWebIndexer(_logger);
indexer.AddTestCategories();
// you can find more complex tests in TorznabCapabilitiesCategoriesT... | C# |
Overlay;
public static final JavaSEBlendComposite getNormal() {
if (instanceNormal == null) {
instanceNormal = new JavaSEBlendComposite(new Blender() {
@Override
protected int blend(int srcA, int srcR, int srcG, int srcB, int dstA, int dstR, int dstG, int dstB,
float alpha, int blendA, int blendR,... | Java |
故说明存在存储型 XSS。
7. 其他的一些尝试
7.1 使用 url 编码空格为 %20,无效。
7.2 使用;代替空格,无效。这个姿势不知道行不行,记不清书上怎么讲的了。
8. 发现一个技巧
不一定每次都要提交自己的代码,让服务器解析,来看载荷的效果。也可以现在本地测试一下,优化一下自己的载荷后,再提交。即使用 F12 调出调试工具,编辑 html,在被服务器解析的源码基础上测试可能的方案,调优后在提交到服务器测试。这样做的好处是,减少了测试的时间,比如这一道题目是存储型的 XSS,当提交了数据后后跳转到另一界面,看结果看需要跳转回来。如果每次都能提交... | Markdown |
{course['course_number']} (min grade: {course['minimum_grade']})")
if logic == "AND":
return " AND ".join(course_summaries)
elif logic == "OR":
return " OR ".join(course_summaries)
else:
return f"Complex requirements: {', '.join(course_summaries)}"
if __name__ == "__main__":
... | Python |
++;
}
else
data += (image_width + pixelsPerByte - 1) / pixelsPerByte;
}
}
void CANVAS::AddRectangle(uint16_t x, uint16_t y, uint16_t rectangleWidth, uint16_t rectangleHeight, uint16_t color) {
if (endLine < y || startLine > y + rectangleHeight) return;
for (uint16_t i = 0; i < rectangleHeight; i++... | C++ |
uper::GlusterError> {
let op_ret = data.read_i32::<BigEndian>()?;
let op_errno = data.read_i32::<BigEndian>()?;
let size = data.read_u32::<BigEndian>()?;
let mut s = unpack_dict_bytes(data, size)?;
let mut cursor = Cursor::new(&mut s[..]);
let friends = deserialize_dict(... | Rust |
End: true,
serverId: self.serverId
});
zongji.ctrlConnection.on('connect', function(err) {
cb && cb(err);
});
};
MySql.prototype.ping = function ping(cb) {
var start = new Date().getTime(),
host = this.zongji.ctrlConnection.config.host;
this.zongji.ctrlConnection.ping(func... | JavaScript |
* sample player for "Pixie" Dave
* by James Ingram, May 1994
click equ $484
;labels equ 1
max_samples equ 19
up_arrow equ $48
down_arrow equ $50
ifd labels
opt x+
endc
opt o+,ow-
;link equ 1
ifd link
OPT GST,CASE
XREF aes,print_line,to_lower,num_to_asc,conin_no_echo
XREF res_mem,rel_mem
XREF fil... | Assembly |
-- Trigger变量
local defs = {
gadget_id_1 = 10,
gadget_id_2 = 1018,
gadget_id_3 = 1017,
gadget_id_4 = 1016,
gadget_id_5 = 8,
gadget_id_6 = 9,
gadget_id_7 = 115,
gadget_id_8 = 3016,
gadget_id_9 = 3017,
gadget_id_10 = 3018,
gadget_id_11 = 116,
gadget_id_12 = 117,
gadget_id_13 = 231,
gadget_id_14 = 232,
gadge... | Lua |
catch (IgniteCheckedException e) {
fail(e.toString());
}
String coll = mxBeanCache.getTxKeyCollisions();
if (coll.contains("val=" + priKeys.get(2)) || coll.contains("val=" + priKeys.get(0)));
return true;
}
... | Java |
;$f.aj=aj;$f.ak=ak;$f.al=al;$f.am=am;$f.an=an;$f.ao=ao;$f.ap=ap;$f.aq=aq;$f.ar=ar;$f.$s=$s;$f.$r=$r;return $f;};Q=function(ag,ah,ai){var $ptr,ag,ah,ai,aj,ak,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;$ptr=$f.$ptr;ag=$f.ag;ah=$f.ah;ai=$f.ai;aj=$f.aj;ak=$f.ak;$s=$f.$s;$r=$f.$r;... | JavaScript |
, this.canvas, this.scene);
this.render();
}
public disablePointerLock () {
document.exitPointerLock();
this.engine.isPointerLock = false;
}
public render() {
this.startRenderLoop();
}
public startRenderLoop() {
this.engine.runRenderLoop(() => {
let divFps = document.getElementById("fps");
divF... | Typescript |
"step": 1}),
"downscale_mode": ("BOOLEAN", {"default": True, "label_on": "max", "label_off": "min"}),
"compress_level": ("INT", {"default": 0, "min": 0, "max": 9, "step": 1}),
},
"hidden": {"prompt": "PROMPT", "extra... | Python |
狀況|出狱 出獄|出猎 出獵|出现 出現|出现意外 出現意外|出现数 出現數|出球 出球|出生 出生|出生入死 出生入死|出生别 出生別|出生地 出生地|出生地点 出生地點|出生年 出生年|出生日 出生日|出生日期 出生日期|出生牙 出生牙|出生率 出生率|出生纸 出生紙|出生缺陷 出生缺陷|出生证 出生證|出界 出界|出疹子 出疹子|出的 出的|出监 出監|出盘 出盤|出示 出示|出示证件 出示證件|出社会 出社會|出神 出神|出神入化 出神入化|出票 出票|出科 出科|出租 出租|出租人 出租人|出租店 出租店|出租汽车 出租汽車|出租率 出租率|出租给 出租給|出租车 出租車|出稿 出稿|出窍 出竅|出窝老 出窩老|出站 出站... | JavaScript |
801EBCD4 AD200000 */ sw $zero, ($t1)
/* 1DCA48 801EBCD8 8C4B0000 */ lw $t3, ($v0)
/* 1DCA4C 801EBCDC 3C040001 */ lui $a0, (0x00010098 >> 16) # lui $a0, 1
/* 1DCA50 801EBCE0 34840098 */ ori $a0, (0x00010098 & 0xFFFF) # ori $a0, $a0, 0x98
/* 1DCA54 801EBCE4 000B6080 */ sll $t4, $t3, 2
/* 1DCA58 801EBCE8 ... | Assembly |
/*
* Copyright (c) 2010-2012 Matias Muhonen <mmu@iki.fi>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, ... | C |
tyChanged(e);
base.OnPropertyChanged(e);
}
}
void _Load() {
try {
static XElement _OpenDb() {
s_sqlite = new(folders.ThisAppBS + "cookbook.db", SLFlags.SQLITE_OPEN_READONLY);
s_sqliteGetText = s_sqlite.Statement("SELECT data FROM files WHERE name=?");
var xml = _GetFileTextFromDb("files.xml");... | C# |
this point, none of the children matched.
if(bRecursive) // If we allow checking child tests...
{
// None of the tests matched pTestName, so we check to see if any
// of our tests were test suites and if the given pName was referring
// to a child test of one of our tests.
const ... | C++ |
e.removeEventListener( 'load', onImageLoad, false );
image.removeEventListener( 'error', onImageError, false );
if ( onError ) { onError( event ); }
scope.manager.itemError( url );
scope.manager.itemEnd( url );
}
image.addEventListener( 'load', onImageLoad, false );
image.addEventListener( 'error'... | JavaScript |
\267\210\266\314\244\010\210n\353\204\352\260\221\357N_\042s\242\006\374\315a\013\276m\015\316\012H\257\307C|\215*\224c\235\341", 48, "\304\250-\345$'x\301i!= \226\320V\310\361z\213p^\225\033]", 3000, "\232\022\311\007\230\342#z\334\363\375\304\274\337\346\272i\321\333\304\301\320\341N\377\270u0!my\300\311\023\3241\255... | C |
','Helvetica Neue',sans-serif;line-height:1.4;margin:1rem}a{color:#4099ff}table{border-collapse:collapse}table:not([cellpadding]) td,table:not([cellpadding]) th{padding:.4rem}table[border]:not([border="0"]):not([style*=border-width]) td,table[border]:not([border="0"]):not([style*=border-width]) th{border-width:1px}tabl... | CSS |
)));
// Kind of arbitrary -- expand search radius before giving up
for (int i = 4; i <= 16; i <<= 1) {
try {
alignmentPattern = findAlignmentInRegion(moduleSize,
estAlignmentX,
estAlignmentY,
i);
break;
} catch (NotFoundException... | Java |
angle2D b)
{
GeneralPath right = new GeneralPath(GeneralPath.WIND_EVEN_ODD);
right.append(getCaretShape(TextHitInfo.afterOffset(length)), false);
if (isVertical())
{
float y = (float) b.getMaxY();
right.append(new Line2D.Float((float) b.getMinX(), y,
... | Java |
ait shopTaskList();
const { data } = $.shopTaskListRes;
let goodShopListARR = [],moreShopListARR = [], shopList = [];
const { goodShopList, moreShopList } = data;
if (goodShopList) {
for (let... | JavaScript |
-cvs] 20210330 svn commit: r1073139 [10/13] - in /websites/staging/httpd/trunk/content: ./ security/json/) / https://lists.apache.org/thread.html/r9f93cf6dde308d42a9c807784e8102600d0397f5f834890708bf6920%40%3Ccvs.httpd.apache.org%3E ([httpd-cvs] 20210330 svn commit: r1073149 [1/13] - in /websites/staging/httpd/trunk/co... | Markdown |
println(String.format("Found %d serializable classes", clazzes.size())); //$NON-NLS-1$
int count = 0;
for ( ClassInfo ci : clazzes ) {
count++;
if ( ( count % 100 ) == 0 ) {
Verbose.println("Checking class " + count + " of " + clazzes.size())... | Java |
ldr r0, [r0, #0x14]
mov r3, #0xa
str r0, [r5, #0x3c]
mov r0, r5
add r0, #0x40
strh r1, [r0, #0x0]
mov r0, r5
add r0, #0x42
strh r1, [r0, #0x0]
mov r0, #0x1
mov r1, #PlMsg_Narc
bl LoadFromNARC_9
ldr r1, [pc, #0x54] @ 0x21dba98, (=0x4bf8)
mov r2, r5
str... | Assembly |
members in the Ordered Set 'btu_scheduler:task_execution_times'
// are not just Task Schedule ID's. The Unix Time is a suffix. Removing members now requires some "starts_with" logic.
// First, list all the keys using 'zrange btu_scheduler:task_execution_times 0 -1'
let mut redis_conn = rq::get_redis_connection(a... | Rust |
([0; N])
}
}
impl AsMut<[u8]> for RandomSeed {
fn as_mut(&mut self) -> &mut [u8] {
&mut self.0
}
}
impl SeedableRng for Random {
type Seed = RandomSeed;
fn from_seed(seed: RandomSeed) -> Random {
Random {
seed: seed.clone(),
rng: SeedableRng::from_seed(seed... | Rust |
!__webpack_require__.o(exports, key)) {
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
/******/ }
/******/ }
/******/ };
/******/ }();
/******/
/******/ /* webpack/runtime/hasOwnProperty shorthand */
/******/ !function() {
/******/ __webpack_require__.o =... | JavaScript |
width="15" height="18" viewBox="0 0 15 18" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M9.24419 11.5472C9.24419 12.4845 8.46279 13.2453 7.5 13.2453C6.53721 13.2453 5.75581 12.4845 5.75581 11.5472C5.75581 10.6098 6.53721 9.84906 7.5 9.84906C8.46279 9.84906 9.24419 10.... | Dart |
// *** WARNING: this file was generated by pulumi-language-dotnet. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Threading.Tasks;
using Pulumi.Serialization;
namespace Pulumi.AzureN... | C# |
Listener openListener = new MockOpenListener();
waveView.open(openListener);
assertEquals(1, waveViewService.opens.size());
WaveViewService.OpenCallback openCallback = waveViewService.lastOpen().callback;
// Locally create a wavelet.
CcBasedWavelet createdWavelet = waveView.createWavelet();
a... | Java |
[]byte) error {
type NoMethod DetectedLanguage
var s1 struct {
Confidence gensupport.JSONFloat64 `json:"confidence"`
*NoMethod
}
s1.NoMethod = (*NoMethod)(s)
if err := json.Unmarshal(data, &s1); err != nil {
return err
}
s.Confidence = float64(s1.Confidence)
return nil
}
// DominantColorsAnnotation: Set... | Go |
Geom_BSplineSurface) &&
(aXmin < aUmin || aXmax > aUmax))
{
Standard_Real aTol2 = 100 * Precision::SquareConfusion();
isUPeriodic = Standard_True;
gp_Pnt P1, P2;
// 1. Verify that the surface is U-closed
if (!aS->IsUClosed())
{
Standard_Real aVStep = aVmax - aVmin;
... | C++ |
/*
* Copyright (c) 2017 Intel Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <zephyr/arch/x86/ia32/asm.h>
#include <zephyr/arch/cpu.h>
#include <offsets_short.h>
#include <zephyr/syscall.h>
#include <zephyr/kernel/mm.h>
#include <x86_mmu.h>
/* Exports */
GTEXT(z_x86_syscall_entry_stub)
GTEXT(z_x8... | Assembly |
Return
addu s0, t1, zero # Save pointer to current state
# in s0
/*
* We got the args now call the routine.
*/
lw s2, proc_RunningProcesses # s2 <= pointer to running
# processes array.
lw s1, machKcallTableOffset # s1 <= Offset of kcall table
# in proc table entry.
... | Assembly |
"image dimensions: {}, given upper-left: {})"
.format((im_width, im_height), (ul_x, ul_y)))
in_bounds = False
if not ((0 <= lr_x <= im_width) and (0 <= lr_y <= im_height)):
log.warning("Lower-right coordinate outside image bounds "
"([w, h] image dimensions... | Python |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.