content stringlengths 2 6.21k | label stringclasses 16
values |
|---|---|
results.forEach((result) => expect(result.message).toContain(
'OperationId should be of the form "Noun_Verb"',
));
});
});
test('OperationId should find operationId without standard verb', () => {
const oasDoc = {
swagger: '2.0',
paths: {
'/api/test2': {
get: {
operat... | Typescript |
e 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 permissions and
// limitations under the License.
package protection
import (
"context"
"testing"
"github.com/harness/gitness/types"
)
func Test... | Go |
ing->SetMinSize(wxSize(122, -1));
bSizer_video_monitoring_caption->Add(m_staticText_video_monitoring, 0, wxALIGN_CENTER_VERTICAL | wxALL, 0);
bSizer_video_monitoring_caption->AddStretchSpacer();
m_bitmap_arrow4 = new wxStaticBitmap(m_panel_video_tab, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxSize(-1, -1), 0);... | C++ |
int i = 0, j = 0;
long numOfRectangleOverlap = 0;
try {
while (i < rs.length && j < rs.length) {
S r;
S s;
if (rs[i].x1 < rs[j].x1) {
r = rs[i];
int jj = j;
while ((jj < rs.length)
&& ((s = rs[jj]).x1 <= r.x2)) {
numOf... | Java |
nst ToolFactory* sFactory,const ToolInputAssignment& inputAssignment)
:UtilityTool(sFactory,inputAssignment),
controlDialogPopup(0),lineWidthValue(0),colorBox(0),
newLineWidth(3.0f),newColor(255,0,0),
active(false),
currentCurve(0),
curvesSelectionHelper(factory->curveFileName.c_str(),".curves",openDirectory... | C++ |
= Color("\033[1;32m%s\033[0m")
Blue = Color("\033[1;34m%s\033[0m")
Cyan = Color("\033[1;36m%s\033[0m")
)
func Color(colorString string) func(...interface{}) string {
sprint := func(args ...interface{}) string {
return fmt.Sprintf(colorString,
fmt.Sprint(args...))
}
return sprint
}
func getBranchName(url... | Go |
from nodes.extractor import extract_query_elements, query_rewrite, query_reinforce
from nodes.merge_responder import merge_context, generate_answer
from nodes.search import wiki_tool, ddg_tool
from langgraph.graph import END, StateGraph
from langchain_core.runnables import RunnableLambda
from typing_extensions import T... | Python |
---@meta
------------------------------------------------------------------------------
--- Parsed version of an HTML container element.
---@class markview.parsed.html.container_elements
---
---@field class "html_container_element"
---
---@field opening_tag markview.parsed.html.container_elements.data Table containin... | Lua |
ate that this call has _not_
// been scheduled by the pacing controller. If this is the case, check if
// can execute immediately otherwise schedule a delay task that calls this
// method again with desired (finite) scheduled process time.
void MaybeProcessPackets(Timestamp scheduled_process_time);
void Upda... | C |
0x000057D8
ldr r1, [sp]
ldr r0, _021DE72C ; =0x00005980
ldrh r2, [r4, r2]
ldr r0, [r1, r0]
add r1, r5, #0
lsl r3, r3, #6
bl ov14_021E0BAC
_021DE70A:
mov r0, #0xa
lsl r0, r0, #6
add r6, r6, #1
add r4, r4, #2
add r5, r5, r0
cmp r6, #0x1e
blo _021DE6D0
add sp, #0xc
pop {r4, r5, r6, r7, pc}
.align 2, 0
_02... | Assembly |
;MB_VALUE = $91
;MB_FRAME = $94
;MB_PATTERN = $95
mah00 = $8000
mah01 = $8100
mah02 = $8200
mah03 = $8300
mah04 = $8400
mah05 = $8500
mah06 = $8600
mah07 = $8700
mal00 = $8800
mal01 = $8900
mal02 = $8A00
mal03 = $8B00
mal04 = $8C00
mal05 = $8D00
mal06 = $8E00
mal07 = $8F00
mbh00 = $9000
mbh01 = $9100
mbh02 = $9200
mb... | Assembly |
::TypeScriptPreProcessor::new();
let rt_builder = QuickJsRuntimeBuilder::new()
.js_script_module_loader(fsl)
.js_script_module_loader(wsl)
.js_script_pre_processor(ts_pp);
// todo greco should add a httpsecurity module to the builder
// or a httpclientfactory, used for modules an f... | Rust |
/*
* ***** BEGIN GPL LICENSE BLOCK *****
*
* This program 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 License, or (at your option) any later version.
*
* This program is d... | C |
m10, %ymm11, %ymm11
vpaddw 2784(%rsp), %ymm4, %ymm4
vpaddw %ymm11, %ymm4, %ymm4
vmovdqa %xmm2, 2784(%rsp)
vpand mask_mod8192(%rip), %ymm5, %ymm5
vmovdqu %xmm5, 680(%rdi)
vextracti128 $1, %ymm5, %xmm5
vmovq %xmm5, 696(%rdi)
vpand mask_mod8192(%rip), %ymm6, %ymm6
vmovdqu %xmm6, 1032(%rdi)
vextracti128 $1, %ymm6, %xmm6
vm... | Assembly |
er_.Append(",\"key\":");
prop->key()->Accept(this);
builder_.Append('}');
}
void Visit(const IdentifierAccess* prop) {
builder_.Append("{\"type\":\"property\",\"target\":");
prop->target()->Accept(this);
builder_.Append(",\"key\":");
Write(prop->key());
builder_.Append('}');
}
void... | C |
.6 3.97c.73-.02 1.66-.02 2.47.1l.34.05a6.75 6.75 0 0 1-1.88 13.35l-.34-.04a6.74 6.74 0 0 1-4.88-3.27l-.2-.34-.05-.12a1.25 1.25 0 0 1 2.22-1.13l.06.1.12.23a4.24 4.24 0 0 0 3.08 2.06l.21.02a4.25 4.25 0 0 0 1.19-8.4l-.22-.04a13.83 13.83 0 0 0-3.13-.02 18.99 18.99 0 0 0-.32.03h-.16A1.25 1.25 0 0 1 26 29.62l1-6.56.03-.11c.1... | C# |
컨대 자바스크립트에서는 어떤 함수의 인자가 숫자일 때, 문자열일 때, 아예 인자가 없는 `undefined` 타입일 때를 각각 분기 처리하는 것이 대개 좋은 습관이다. 앞서 살펴보았듯이 자바스크립트는 함수 오버로딩이라는 객체 지향 개념으로 이를 실천한다.
#### 인터페이스 분리 원칙
이 원칙은 C++, 자바 같은 인터페이스 기반 언어 환경에서 비롯되었다. 이들 언어에서 인터페이스란 클래스에서 어떤 기능을 **구현**하지 않고 **서술**만 한 코드 조각이다.
기능이 많은 인터페이스는 더 작게 응축시킨 조각으로 나누어야 한다는 발상이다. 인터페이스 사용부는 ... | Markdown |
vMlWFk05qiKLo/3hE8fPyOIQVFW2OIJ6f09WQRyWwLKSAjjKKiJx+dniymbMZV3wJa4slqUcCHJ+dK4McWDiODYXVjTbuVpjvaLUXBnidMRvVpxCa60SORL0i8PBsdbWBahK4gqa0/Jcud436UhTjqrIErFDA80eWstz2aGpRF2AZf1Syvoj8k1cQaycjLnUhQi+xJV1/f6ji8FpqVg/v91tt90klxNIrlu17PtN2wpLy7v37NmmuIgym18ONMmxpMp2QzM1wAIttRtuGFhArSkACBKRoxSwJRYfgpamoKWJ41ghsCVOaq70XQpAMHGs... | Markdown |
a = 0
local Foo = React.PureComponent:extend("Foo")
function Foo:render()
local msg = string.format("A: %s, B: %s", tostring(a), self.props.b)
Scheduler.unstable_yieldValue(msg)
return msg
end
local foo = React.createRef()
ReactNoop.render(React.createElement(Foo, {
ref = foo,
b = 0,
}))... | Lua |
ocal points = {
{ time = 1, value = 0.25 },
{ time = 3, value = 1.0 },
{ time = 6, value = 0.8 },
{ time = 12, value = 0.25 },
{ time = 24, value = 0.0 },
}
volume.enabled = true
volume.length = 240
volume:clear_points()
volume.points = points
volume.sustain_enabled = true
volume.su... | Lua |
the error event triggers if an error happens.
* - **close** {function() {}} the end event triggers when there is no more documents available.
*
* @class Represents a CursorStream.
* @param {Cursor} cursor a cursor object that the stream wraps.
* @return {Stream}
*/
function CursorStream(cursor, options) {
if(... | JavaScript |
loat ctime = BKE_scene_frame_get(scene);
/* Sanity Check */
if (adt == NULL) {
BKE_report(op->reports, RPT_ERROR, "Internal Error: Could not find Animation Data/NLA Stack to use");
return OPERATOR_CANCELLED;
}
/* Get active track */
act_track = BKE_nlatrack_find_tweaked(adt);
/* If there is no active tr... | C |
#ifndef _SHADER_TEST_H_
#define _SHADER_TEST_H_
#include "../testBasic.h"
#include "cocos-ext.h"
USING_NS_CC_EXT;
class ShaderTestDemo : public CCLayer
{
public:
ShaderTestDemo(void);
virtual std::string title();
virtual std::string subtitle();
virtual bool init();
void restartCallback(CCObject... | C |
USER"})
public void userAccessToGetListOfUserGroupEndpointSuccessTest() throws Exception {
IamAccount testAccount = accountRepo.findByUsername("test").orElseThrow();
mvc.perform(get("/iam/account/{id}/groups", testAccount.getUuid()))
.andDo(print())
.andExpect(status().isOk());
}
@Test
@Wit... | Java |
t
// *LeaderElectionOutput_Promote
// *LeaderElectionOutput_Demote
// *LeaderElectionOutput_Evict
// *LeaderElectionOutput_GetTerm
// *LeaderElectionOutput_Watch
Output isLeaderElectionOutput_Output `protobuf_oneof:"output"`
}
func (m *LeaderElectionOutput) Reset() { *m = LeaderElectionOutput{} }
func (m... | Go |
)) + Convert.ToDecimal((Convert.ToDecimal((Convert.ToDecimal(((*a0_0_4_2_2_5))) + Convert.ToDecimal((Convert.ToDecimal(((*a0_0_4_2_2_5))) - Convert.ToDecimal(((*a0_0_4_2_2_5))))))) + Convert.ToDecimal(-226724M))))));
return retval_0_4_2_2_5;
}
public static double Func_0_4_2_2_4()
{
double*... | C# |
::ShieldCursor, caret_blink_bitmap_caret_params
MGTK_CALL MGTK::PaintBits, caret_blink_bitmap_caret_params
MGTK_CALL MGTK::UnshieldCursor
done: rts
.endproc ; DoCaretBlink
;;; ============================================================
.proc HandleRGBClick
ldx #DeskTopSettings::rgb_co... | Assembly |
implements Ve\ConverterExceptionInterface
// It's possible to get them all in once
} catch(VE\MissingTimeException $e) {
// Missing required time
echo $e->getMessage();
} catch(VE\NoOutputGeneratedException $e) {
// Probably the time seek was out of range
// and no thumbnail was generated
ec... | Markdown |
ort HF_TOKEN=${your_hf_api_token}
export LLM_MODEL_ID=${your_hf_llm_model}
docker run -p 8008:80 -v ./data:/data --name llm-docsum-vllm --shm-size 1g opea/vllm-gaudi:latest --model-id ${LLM_MODEL_ID}
```
### 1.3 Verify the vLLM Service
```bash
curl http://${your_ip}:8008/v1/chat/completions \
-X POST \
-H "Co... | Markdown |
cpu_reset_handler_data
__tegra194_cpu_reset_handler_data:
.quad tegra_secure_entrypoint
.quad __BL31_END__ - BL31_BASE
.globl __tegra194_system_suspend_state
__tegra194_system_suspend_state:
.quad 0
.align 4
__tegra194_mc_context:
.rept TEGRA194_MC_CTX_SIZE
.quad 0
.endr
.size __tegra194_cpu_reset_handler_dat... | Assembly |
c, False, empty_cursor, CurrentTime);
/* start accepting motion events */
mask |= (PointerMotionMask | ButtonMotionMask);
XSelectInput(dpy, win->image, mask);
x_box = x - HMAGSIZE;
y_box = y - HMAGSIZE;
width = MAGSIZE;
height = MAGSI... | C |
.component.html',
styleUrls: ['./test.component.scss']
})
export class TestComponent implements OnInit {
@Input() name: string;
@Output() newItemEvent = new EventEmitter<string>();
constructor() {
// THIS WILL NOT WORK; VALUE FROM @Input is NOT available yet, use ngOnInit()
// console.log(`This ${this.... | Typescript |
_neighbors=n_neighbors, random_state=random_state, metric=metric
)[0]
ref_embedding = ref_simplicial_set_embedding(
X,
graph=ref_fss_graph,
n_components=n_components,
initial_alpha=initial_alpha,
a=a,
b=b,
gamma=gamma,
negative_sample_rate=negative... | Python |
ng("11"));
// if (StringUtils.isNotEmpty(missingFieldsString)) {
// BluefinAsserts
// .fail(String.format("Missing Field(s) in request fieldName - [%s] for MTI -
// [%s], Msg Stan - [%s]", missingFieldsString, outIsoMsg.getString(0),
// inIsoMsg.getString("11")));
// }
// }
//
// final String txnType = getTxnType(outIs... | Java |
*/ \
mtsrr1 junk1 ; /* Disables virtual addressing. */ \
rfi ;
#define ENTER_VIRTUAL(junk,msr,sym) \
GRAB_SYM(junk, sym) ; \
mtsrr0 junk ; /* Execute at a virtual address. */ \
mtsrr1 msr ; /* Enables virtual addressing. */ \
rfi ;
#define FLUSH_TLB(junk1,junk2) \
GRAB_SYM(junk2, POWERPC_TLBIE_MAX... | Assembly |
n (last, best):
if f.exists():
strip_optimizer(f)
if f is best:
LOGGER.info(f'\nValidating {f}...')
ckpt = torch.load(f, map_location=device)
model = ckpt['ema' if ckpt.get('ema') else 'model']
mo... | Python |
r_color", "N/A"))
# ###############
# print('-' * 13)
# # Use a for loop to iterate over the squirrels in Tompkins Square Park:
for squirrel in squirrels_by_park["Tompkins Square Park"]:
# Safely print the activities of each squirrel or 'None' (default 2nd arg is None)
print(squirrel.get("activities"))
# pr... | Python |
existingElements.toArray(new BPListElement[existingElements.size()]);
AddSourceFolderWizard wizard = new AddSourceFolderWizard(existing, element, false, newFolder, newFolder,
newFolder ? BPListElement.isProjectSourceFolder(existing, element.getScriptProject()) : false,
newFolder);
wizard.setDoFlushChange(f... | Java |
isBranchingNode2 = false;
var path2 = new LinkedList<Edge>();
while (!isBranchingNode2) {
if (root2.getOutDegree() == 0) {
if (root2.getTaxa().cardinality() == 0)
return false;
break;
}
Edge f2 = null;
for (Edge e2 = root2.getFirstOutEdge(); e2 != null && !isBranchingNode2; e2 = root2.get... | Java |
using System;
using NetOffice;
namespace NetOffice.MSProjectApi.Enums
{
/// <summary>
/// SupportByVersion MSProject 11, 14
/// </summary>
///<remarks> MSDN Online Documentation: http://msdn.microsoft.com/en-us/en-us/library/office/ff866116(v=office.14).aspx </remarks>
[SupportByVersionAttribute("MSProject", 1... | C# |
ident;) => {};
($lhs_type:ty, $lhs_f1:ident, $lhs_f2:ident, $lhs_f3:ident, $lhs_f4:ident;
$rhs_type:ty, $rhs_f1:ident, $rhs_f2:ident, $rhs_f3:ident, $rhs_f4:ident;
$op_trait:ident, $op_fn:ident, $op:tt;
$($op_trait_next:ident, $op_fn_next:ident, $op_next:tt;)*) => {
impl<T: Number, U: Basic>... | Rust |
( int i = 0; i < Maps.Count; ++i )
{
sbMaps.Append( DataByteDirective );
sbMaps.Append( ' ' );
sbMaps.AppendLine( "<" + LabelPrefix + "MAP_EXTRA_DATA_" + NormalizeAsLabel( Maps[i].Name.ToUpper() ) );
}
sbMaps.Append( LabelPrefix );
sbMaps.AppendLine( "MAP_E... | C# |
}
GUILayout.FlexibleSpace();
EditorGUILayout.EndHorizontal();
}
for (int i = 0; i < _UnusedAssetsPaths.Count; i++)
{
EditorGUILayout.BeginHorizontal("HelpBox");
GUILayout.Label(AssetDatabase.GetCachedIcon(_UnusedAssetsPaths[i]), new GUIL... | C# |
tmm5
tilezero %tmm7
.intel_syntax noprefix
ldtilecfg [rcx]
ldtilecfg [rbx]
sttilecfg [rcx]
sttilecfg [rbx]
tdpbf16ps tmm3, tmm4, tmm5
tdpbssd tmm1, tmm2, tmm3
tdpbsud tmm1, tmm2, tmm3
tdpbusd tmm1, tmm2, tmm3
tdpbuud tmm1, tmm2, tmm3
tileloadd tmm5, foo
tileloadd tmm5, [rcx]
tileloadd ... | Assembly |
get all users
@Query(() => [User])
users(){
return User.find();
}
//TODO: find one user
@Query(() => User)
user(
@Arg('id', () => Number) id : number,
){
return User.findOne(id);
}
//TODO : Insert the new user
@Mutation(() => Boolean)
async crea... | Typescript |
incorrectSizes: map[string]IncorrectNodeGroupSize{},
wantIncorrectSizes: map[string]IncorrectNodeGroupSize{
"ng2": {CurrentSize: 15, ExpectedSize: 20, FirstObserved: timeNow},
},
},
{
name: "node groups below the target size with long unregistered nodes",
acceptableRanges: map[string]AcceptableRang... | Go |
6
#CHECK: error: invalid operand
#CHECK: wftcixb %v0, %v0, -1
#CHECK: error: invalid operand
#CHECK: wftcixb %v0, %v0, 4096
wftcixb %v0, %v0, -1
wftcixb %v0, %v0, 4096 | Assembly |
fmt.Sprintf("ledger-%s", configuration.TestID),
Repository: "ghcr.io/formancehq/ledger",
Tag: configuration.Version,
Env: envVars(configuration),
NetworkID: networkID,
ExposedPorts: []string{"3068/tcp"},
}, options...)
if err != nil {
panic(err)
}
logger.Infof("Ledger contai... | Go |
type(cluster_credential["clientKey"]) == "string" and #(cluster_credential["clientKey"]) > 0 then
upstream["tls"] = {
client_cert = cluster_credential["clientCert"],
client_key = cluster_credential["clientKey"],
}
upstream["pass_host"] = "node... | Lua |
px_1px_rgba\(0\,0\,0\,0\.1\)\]{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-\[0_0_4px_1px_rgba\(0\,0\,0\,0\.1\)\]{--tw-shadow:0 0 4px 1px rgba(0,0,0,.1);--tw-shadow-colored:0 0 4px 1px var(--tw-shadow-color)}.shadow-\[4px_4px_0px_0px\]{--tw-shadow:4px 4px 0p... | CSS |
Service(Intent(context, AudioService::class.java).apply {
action = PLAYER_ACTION
putExtra(PLAYER_KEY, STOP.name)
})
YouTubeFragment().newInstance(arguments!!)
}
... | Kotlin |
ont-weight:400;}.flatpickr-time input:focus{outline:0;border:0;}.flatpickr-time .flatpickr-time-separator,.flatpickr-time .flatpickr-am-pm{height:inherit;float:left;line-height:inherit;color:#484848;font-weight:bold;width:2%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-al... | JavaScript |
# Copyright (c) 2024 pandas-gbq Authors All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
from google.cloud import bigquery
import pyarrow
import pytest
from pandas_gbq.schema import pyarrow_to_bigquery
@pytest.mark.parametrize(
(
... | Python |
.Ltext0
.value 0x1
.byte 0x5c
.quad .LVL33-.Ltext0
.quad .LFE63-.Ltext0
.value 0x1
.byte 0x5c
.quad 0
.quad 0
.LLST4:
.quad .LVL10-.Ltext0
.quad .LVL12-.Ltext0
.value 0x1
.byte 0x50
.quad 0
.quad 0
.LLST5:
.quad .LVL12-.Ltext0
.quad .LVL13-1-.Ltext0
.value 0x1
.byte 0x50
.quad .LVL13-1-.Ltext0
.quad... | Assembly |
addFieldError(context, filedCpuLimit, "请检查CPU`最大申请资源`,不能小于`申请资源`");
}
// cupLimit = cupLimit + cupLimitUnit;
String memoryRequest = form.getString(fieldMemoryRequest);
String memoryRequestUnit = form.getString(KEY_MEMORY_REQUEST_UNIT);
if (StringUtils.isEmpty(memoryRequest)) {
msg.addFieldE... | Java |
.w),
border: Border.all(
color: theme.dividerColor,
width: .5,
),
),
},
... | Dart |
e(webAuthRequest);
}
public DbxAuthFinish authorize(String code) throws IOException {
try {
// You must use the same DbxPKCEWebAuth to generate authorizationUrl and to handle code
// exchange.
return pkceWebAuth.finishFromCode(code);
} catch (DbxException ex) {
System.err.println("Error in DbxWebAuth... | Java |
/* tile 0: */
/* tile invalid, tile adress = $00000 (18bit) */
setACC(NVACC_NV10_TIL0AD, getACC(NVACC_NV10_FBTIL0AD));
/* set tile end adress (18bit) */
setACC(NVACC_NV10_TIL0ED, getACC(NVACC_NV10_FBTIL0ED));
/* set tile size pitch (8bit: b8-15) */
... | Java |
END;
const X_CYLINDER_VERTEX_ONE_PAST_END: shaders::Index = X_CYLINDER_VERTEX_START + math::geom::CYLINDER_POINT_COUNT as shaders::Index;
const VERTEX_LEN: usize = X_CYLINDER_VERTEX_ONE_PAST_END as usize;
struct IndexedMesh {
pub vertices: [basic::Vertex; VERTEX_LEN],
pub indices: [shaders::Index; INDEX_LEN],
}... | Rust |
Play()
{
m_pendingTasksHandler.TryExecuteAction(() =>
{
if (m_audioSource != null)
{
m_audioSource.Play();
}
}, HasStateAuthority);
}
public void Stop()
{
m_pendingTasksH... | C# |
{
if (WARRIOR_MINOR_GLYPH_OF_BATTLE != glyph && WARRIOR_MINOR_GLYPH_OF_BLOODRAGE != glyph && WARRIOR_MINOR_GLYPH_OF_CHARGE != glyph && WARRIOR_MINOR_GLYPH_OF_MOCKING_BLOW != glyph && WARRIOR_MINOR_GLYPH_OF_THUNDER_CLAP != glyph && WARRIOR_MINOR_GLYPH_OF_ENDURING_VICTORY != glyph && WARRIOR_MINOR_GLYPH_OF_COMMAN... | C++ |
leCharCategory, 'A', 'Z'+1, CharRuleCategory.ALPHA);
startRuleCharCategory['_'] = CharRuleCategory.ALPHA;
startRuleCharCategory['?'] = CharRuleCategory.QUESTION;
startRuleCharCategory[','] = CharRuleCategory.COMMA;
startRuleCharCategory[';'] = CharRuleCategory.SEMICOLON;
startRuleCharCategory[':'] = CharRu... | Java |
this.duration = duration;
this.resetType = resetType;
this.trackType = trackType;
}
public final String getName() {
return this.name;
}
public final int getCopies() {
if (this == LEFT_ZOOT_KICK) {
return FamiliarDatabase.zootomistTrackCopies(
Preferences.get... | Java |
()->clear();
var->GetMutable<phi::SparseCooTensor>()->mutable_indices()->clear();
} else if (var->IsType<phi::SparseCsrTensor>()) {
Add(var->GetMutable<phi::SparseCsrTensor>()
->mutable_values()
->MoveMemoryHolder(),
ctx);
Add(var->GetMutable<phi::SparseCsrTensor>()
... | C++ |
text Preprocessor 的缩写)
```
<?php
// PHP implementation of the approach
// Function to return the
// number of positive area triangles
Function countTriangles($a, $n)
{
// To store the count of
// total triangles
$cnt = 0;
// To store the count of pairs of sticks
// with equal lengths
$pairs ... | Markdown |
me.Tracking, 65.0, 88.0);
SetSkill(SkillName.Veterinary, 60.0, 83.0);
}
protected override List<SBInfo> SBInfos => m_SBInfos;
public override void InitSBInfo()
{
m_SBInfos.Add(new SBRanger());
}
public override void InitOutfit()
{
... | C# |
import os
import torch
import numpy as np
from src.crowd_count import CrowdCounter
from src import network
from src.data_loader import ImageDataLoader
from src import utils
import cv2
torch.backends.cudnn.enabled = True
torch.backends.cudnn.benchmark = False
vis = False
save_output = True
data_path = 'F:/SJTU_Vide... | Python |
z9A-Z]")
}
@Test
fun `test collection a to z, dash and Z`() {
/**
* This pattern looks like it should
* be illegal, but Vim allows it and
* matches the characters 'a' to 'z', a
* literal dash '-' and a 'Z'
*/
assertSuccess("[a-z-Z]")
}
@Test
fun `test collection with singl... | Kotlin |
LDR r3, [r1, #8] // Pickup thread's stack pointer
LDR r5, [r3] // Recover saved LR
ADDS r3, r3, #4 // Position past LR
MOV lr, r5 // Restore LR
LDM r3!, {r4-r7} ... | Assembly |
Hill3.WidescreenFix"
setpaths("Z:/WFP/Games/Silent Hill/Silent Hill 3/", "sh3.exe")
project "SilentHill4.WidescreenFix"
setpaths("Z:/WFP/Games/Silent Hill/Silent Hill 4 The Room/", "Silent Hill 4.exe")
group "Win32"
project "SniperElite.WidescreenFix"
setpaths("Z:/WFP/Games/Sniper Elite/", "SniperElite.exe")
... | Lua |
import logging
import random
from typing import List, Union
import pytest
from .helper import NetpalmTestHelper
from .test_getconfig_cisgo import CisgoHelper
log = logging.getLogger(__name__)
helper = NetpalmTestHelper()
CISGO_DEFAULT_HOSTNAME = "cisshgo1000v"
CISGO_NEW_HOSTNAME = CISGO_DEFAULT_HOSTNAME.upper() + s... | Python |
,
code,
expires: moment().add(durationSecs, 'seconds').toDate()
};
if (codeExists)
{
if (durationProvided)
await codes().replaceOne({account, createdBy: user, code}, codeDoc);
// If they didn't provide a duration, we'll just tell them when it expires
}
else
await codes().insertOne(c... | Typescript |
iction is >= 0.5,
# and the overlap between the prediction and the ground truth >= 0.5,
# the prediction is a match and considered a true positive.
# If multiple matches exist, the match with the highest pair of overlaps is taken.
joined['overlap1'] = joined['overlaps'].apply(lambda x: eval(str(x))[0])
... | Python |
d in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with thi... | CSS |
with open("this.txt") as f:
content1 = f.read()
with open("this_copy.txt") as f:
content2 = f.read()
if(content1==content2):
print("Yes these file are identical")
else:
print("N0 this file are not identical")
| Python |
ully created before loading
if icon_file_path.is_file() {
// Assign the icon to the main window
icon_file = Pixbuf::from_file(icon_file_path).unwrap();
gtk::Window::set_default_icon(&icon_file);
}
}
fn get_default_applications() -> DefaultApplications {
let mut result:Result<Output, Error>;
let mut... | Rust |
ScanLineDrawable
*/
public static final int QRCodeView_qrcv_customScanLineDrawable = 12;
/**
<p>This symbol is the offset where the {@link cn.bingoogolapple.qrcode.zbar.R.attr#qrcv_isAutoZoom}
attribute's value can be found in the {@link #QRCodeView} array.
<p>Mus... | Java |
VDIVUVV V1, V2, V3 // d7a12082
VDIVUVV V1, V2, V0, V3 // d7a12080
VDIVUVX X10, V2, V3 // d7612582
VDIVUVX X10, V2, V0, V3 // d7612580
VDIVVV V1, V2, V3 // d7a12086
VDIVVV V1, V2, V0, V3 // d7a12084
VDIVVX X10, V2, V3 // d7612586
VDIVVX X10, V2, V0, V3 // d7612584
VREMUVV V1, V2, V3 //... | Assembly |
spaceBetween = 8.dp,
)
HorizontalItemsWithMaximumSpaceTaken(
{ HedvigText(quote.displayNameLong) },
{
HedvigText(
text = stringResource(
R.string.OFFER_COST_AND_PREMIUM_PERIOD_ABBREVIATION,
quote.itemCost.monthlyNet,... | Kotlin |
illegal instruction>
.word 0xb5a448a0 ! 211: FSUBs fsubs %f17, %f0, %f26
.word 0x81976000 ! 212: WRPR_TPC_I wrpr %r29, 0x0000, %tpc
.word 0xbda70960 ! 213: FMULq dis not found
.word 0xa9508000 ! 214: RDPR_TSTATE <illegal instruction>
.word 0x8397a000 ! 215: WRPR_TNPC_I wrpr %r30, 0x0000, %tnpc
.word 0xa5a50... | Assembly |
"n");
expect(value["c"], "o");
}
void test_literal_null() {
var value = _getConstantValue("null");
expect(value, null);
}
void test_literal_number_double() {
var value = _getConstantValue("3.45");
expect(value, 3.45);
}
void test_literal_number_integer() {
var value = _getConstant... | Dart |
229 Mar 21 12:01 fuse
crw------- 1 root root 10, 228 Mar 21 12:01 hpet
crw------- 1 root root 10, 183 Mar 21 12:01 hwrng
crw-rw----+ 1 root kvm 10, 232 Mar 21 12:01 kvm
crw-rw---- 1 root disk 10, 237 Mar 21 12:01 loop-control
crw------- 1 root root 10, 227 Mar 21 12:01 mcelog
crw------- ... | Markdown |
lr, r0
ldr r0, [r1]
ldr ip, [r0, #0x338]
ldmia ip!, {r0, r1, r2, r3}
stmia lr!, {r0, r1, r2, r3}
ldmia ip, {r0, r1}
stmia lr, {r0, r1}
ldmia sp!, {r3, pc}
.align 2, 0
_0238C22C: .word OVERLAY20_UNKNOWN_POINTER__NA_238D128
arm_func_end ov20_0238C204
arm_func_start ov20_0238C230
ov20_0238C230: ; 0x0238C230
st... | Assembly |
unay_3d.h"
#include "lightmap_probe.h"
#include "scene/3d/mesh_instance_3d.h"
#include "scene/resources/camera_attributes.h"
#include "scene/resources/environment.h"
#include "scene/resources/image_texture.h"
#include "scene/resources/sky.h"
void LightmapGIData::add_user(const NodePath &p_path, const Rect2 &p_uv_scale... | C++ |
difiers.PRIVATE |
Modifiers.ABSTRACT |
Modifiers.SEALED |
Modifiers.STATIC |
Modifiers.UNSAFE;
public Class (TypeContainer parent, MemberName name, Modifiers mod, Attributes attrs)
: base (parent, name, attrs, MemberKind.Class)
{
var accmods = IsTopLevel ? Modifiers.INTERNAL : Modifiers.PRIVAT... | C# |
PLOT_ITEMS:" .. tostring(index) ..":SHEET", 0)
local slot = groupListSheet["item_" .. tostring(index)]
slot.but.pushed = false
slot.active=true
slot.t.uc_hardtext = i18n.get("uiR2EDCreateNewItem")
slot.t.global_color = false
slot.sheet.color = validItemColor
window:find("new_plot_item").frozen = fal... | Lua |
|Azshara|
A Beating the Market|QID|26337|PRE|26335|M|53.52,47.36|Z|Azshara|
C Beating the Market|QID|26337|M|58.12,52.42|Z|Azshara|N|Scattered throughout the harbor. Tag AWOL grunts as you look for him.|
C Smoot's Samophlange|QID|26361|M|54.73,48.78|Z|Azshara|N|Running Wildly through the harbor.|
C Ready the Ground Tro... | Lua |
desc_hl = "String",
-- key = "",
key_hl = "Number",
action = ":Neotree float",
},
{
icon = " ",
icon_hl = "Title",
desc = "New file",
desc_hl = "String",
-- key = "",
key_hl = "Number",
action = ":ene",
},
{
icon = "↯ ",
ic... | Lua |
ic const String corner_lower_right =
'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="16" height="16" preserveAspectRatio="xMidYMid meet" viewBox="0 0 16 16"><path fill="currentColor" d="M16 16H0L16 0z"/></svg>';
static const String corner_upper_left =
'<svg xmlns... | Dart |
x.fetch_sub(old_value - new_val, std::memory_order::seq_cst);
};
auto load = [](auto& x) { return x.load(); };
test_seq_cst<T, MaybeVolatile>(fetch_sub, load);
test_seq_cst<T, MaybeVolatile>(fetch_sub_with_order, load);
}
}
template <class T>
void test() {
test_impl<T>();
if constexpr (std::atomi... | C++ |
, var(--secondary-button-text));
}
.btn-secondary:hover:not(:disabled) {
color: var(--secondary-button);
background-color: var(--secondary-button-text);
}
.btn-secondary:hover:not(:disabled) svg path {
stroke: var(--secondary-button);
}
@media (hover: none) {
.btn-primary:hover:not(:disabled, .btn-disabled) ... | CSS |
// 5
DWRITE_PANOSE_STROKE_VARIATION_GRADUAL_HORIZONTAL = 0x6, // 6
DWRITE_PANOSE_STROKE_VARIATION_RAPID_VERTICAL = 0x7, // 7
DWRITE_PANOSE_STROKE_VARIATION_RAPID_HORIZONTAL = 0x8, // 8
DWRITE_PANOSE_STROKE_VARIATION_INSTANT_VERTICAL = 0x9, // 9
DWRITE_PANOSE_STROKE_VARIATION_INSTANT_HORIZONTAL = 0x... | Rust |
rootNodeBoundingVolume;
double minLonDeg = Math.toDegrees(boundingVolume.getRegion()[0]);
double minLatDeg = Math.toDegrees(boundingVolume.getRegion()[1]);
double maxLonDeg = Math.toDegrees(boundingVolume.getRegion()[2]);
double maxLatDeg = Math.toDegrees(boundingVolume.getRegion()[3]);... | Java |
(0, messages.size());
messages = schema.validate("2.0", InputFormat.JSON);
assertEquals(0, messages.size());
messages = schema.validate("2.000001", InputFormat.JSON);
assertEquals(1, messages.size());
}
/**
* Issue 864.
* <p>
* In draft-04, "integer" is listed as ... | Java |
ump -s 6 | FileCheck --check-prefix=FIRSTY %s
# RUN: cp tx.o dir1/filename-spec1.o
# RUN: cp ty.o dir2/filename-spec2.o
# RUN: llvm-ar rc dir1/lib1.a dir1/filename-spec1.o
# RUN: llvm-ar rc dir2/lib2.a dir2/filename-spec2.o
## Verify matching of archive library names.
# RUN: echo 'SECTIONS{.foo :{ *lib2*(.foo) *lib1*... | Assembly |
8226; <a href="./东方求闻史纪-莉格露·奈特巴格.md" title="东方求闻史纪/莉格露·奈特巴格">莉格露·奈特巴格</a> • <a href="./东方求闻史纪-米斯蒂娅·萝蕾拉.md" title="东方求闻史纪/米斯蒂娅·萝蕾拉">米斯蒂娅·萝蕾拉</a> • <a href="./东方求闻史纪-红美铃.md" title="东方求闻史纪/红美铃">红美铃</a> • <a href="./东方求闻史纪-梅蒂欣·梅兰可莉.md" title="东方求闻史纪/梅蒂欣·梅兰可莉">梅蒂欣·梅兰可莉</a> • <a href="./东方求闻史纪-风见幽香.md... | Markdown |
ImSyncFinishRequest request = ImSyncFinishProto.ImSyncFinishRequest
.parseFrom(command.getParams());
String deviceId = command.getDeviceId();
String siteUserId = command.getSiteUserId();
long u2Pointer = request.getU2Pointer();
Map<String, Long> groupPointer = request.getGroupsPointerMap();
LogUtils... | Java |
this.databaseMeta = databaseMeta;
this.schemaTable = schemaTable;
}
public TransMeta generateTransformation( LoggingObjectInterface parentLoggingInterface ) throws KettleException {
PluginRegistry registry = PluginRegistry.getInstance();
// Get the list of fields from the table...
//
tabl... | Java |
// 0x0258(0x0008)(Edit, ZeroConstructor, DisableEditOnInstance, IsPlainOldData, NoDestructor, UObjectWrapper, HasGetValueTypeHash, NativeAccessSpecifierPrivate)
class UHorizontalBox* HBox_InternalVisibilitySetter; // 0x0260(0x0008)(ExportObject, ZeroConstructor, Insta... | C++ |
tate_dict)
val_col = []
for i in range(test_rep):
val_col.append(
trainer.validate(model, datamodule=data_module, verbose=False)[0]
)
val_res = dict_res_summary(val_col)
for met in val_res:
val_mean = np.mean(val_res[met])
val_std = np.std(val_res[met])
... | Python |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.