content
stringlengths
2
6.21k
label
stringclasses
16 values
alue) { ___m_Tracker_28 = value; } inline static int32_t get_offset_of_m_PointerDownRepeat_29() { return static_cast<int32_t>(offsetof(Scrollbar_tECAC7FD315210FC856A3EC60AE1847A66AAF6C28, ___m_PointerDownRepeat_29)); } inline Coroutine_t899D5232EF542CB8BA70AF9ECEECA494FAA9CCB7 * get_m_PointerDownRepeat_29() cons...
C++
" p.currentPaths.Range(func(key, value interface{}) bool { // We are a bit paranoid, but better miss an entry than crash. name, ok := key.(string) if !ok { return true } obj, ok := value.(*currentPathTracker) if !ok { return true } strptr := (*string)(atomic.LoadPointer(obj.name)) if strptr != ...
Go
printf(&b, ", region: %v, nodes_per_region: %v", bc.Region, bc.NodesPerRegion) } b.WriteString("]") return b.String() } // Generate returns a new simulator state, where the cluster is created with all // nodes having the same locality and with the specified number of stores/nodes // created. The cluster is created ...
Go
QueryMatcherOption(sqlmock.QueryMatcherEqual)) Expect(err).ToNot(HaveOccurred()) // This row will generate only two strings in the array rows := sqlmock.NewRows([]string{"synchronous_standby_names"}).AddRow("ANY q (xx)") mock.ExpectQuery(fmt.Sprintf("SHOW %s", postgresconf.SynchronousStandbyNames)).WillRet...
Go
cupation: "Human Resource ", }, { id: "5e913d9392bd6d835b8083e8", employeeNo: 96, isEnrolled: true, age: 40, name: "Laverne Justice", gender: "female", birthplace: "Japan", phone: "+1 (959) 571-3418", enrollmentPeriod: 15, occupation: "Engineer", }, { id: "5e913d93272...
Typescript
LAYER_PLAYERID_WEEK ON " + TABLENAME + " (playerid, week)" }; } PlayerInfo getPlayerInfo(int playerId, int week, int season) { var ret = loadOne(PlayerInfo.class, playerId, PlayerDataManager.calcWeekNumber(season, week)); if ( ret == null ) ret = new PlayerInfo(); return ret; } private final String loa...
Java
.ac.starlink.ttools.plot2.data.DataStore; import uk.ac.starlink.ttools.plot2.data.FloatingCoord; import uk.ac.starlink.ttools.plot2.data.TupleSequence; import uk.ac.starlink.ttools.plot2.geom.Rotation; import uk.ac.starlink.ttools.plot2.geom.SkyDataGeom; import uk.ac.starlink.ttools.plot2.geom.SkySurface; import uk.ac....
Java
distribution 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, this // list of conditions and the following disclaimer. // // 2. Redistributions in binary f...
C++
0 0 @pivot-selection-background; } @{e-js}.e-pivotschemadesigner .e-sorting:before { content: "\e672"; float: right; margin-right: 4px; } @{e-js}.e-pivotschemadesigner .e-sorting.descending:before { content: "\e673"; float: right; } @{e-js}.e-pivotschemadesigner .filter:before { content: "\e669"; margin...
CSS
Pointer<Uint8>, int len); typedef _AttachWeakPersistentHandle = Handle Function( Handle, IntPtr, Handle, Int64); typedef AttachWeakPersistentHandle = Object? Function( Object, int, Object?, int); typedef _VecAllocate<T extends NativeType> = Pointer<T> Function(IntPtr size); typedef VecAllocate<T extends Nati...
Dart
, ), Emoji( '🗝️', 'clue | key | lock | old ', ), Emoji( '🔨', 'hammer | home | improvement | repairs | tool', ), Emoji( '⛏️', 'hammer | mining | pick | tool ', ), Emoji( '⚒️', 'hammer | pick | tool ', ), Emoji( '🛠️', '...
Dart
ZngpureR,%object b__MGVA6vph_6423HPunefQvpgvbanelZngpureR: .space __SIZEOF_POINTER__ .text .globl b_hcei_vfCbfvgvirVasvavgl_64 .type b_hcei_vfCbfvgvirVasvavgl_64,%function b_hcei_vfCbfvgvirVasvavgl_64: nop .text .globl b_h_grezvangrJPunef_64 .type b_h_grezvangrJPunef_64,%function b_h_grezvangrJPunef_64: nop .text .glob...
Assembly
ributed(1024, t) } // ----------------------------------------------------------------------------- func benchmarkRRSeq_SingleClient(bufSize int, b *testing.B) { name := fmt.Sprintf( "benchmarkRRSeq_SingleClient(bufsz:%d)(gomaxprocs:%d)", bufSize, runtime.GOMAXPROCS(0), ) s, err := NewRRSeq(name, bufSize, testin...
Go
, r0 mov r8, r1 ldr r0, [sp, #0x60] ldr r1, [sp, #0x64] ldr r2, [sp, #0x58] ldr r3, [sp, #0x5c] bl Function_20e0234 mov r2, r0 mov r3, r1 mov r0, r7 mov r1, r8 str r2, [sp, #0x68] str r3, [sp, #0x6c] bl _dadd mov r9, r1 ldr r2, [pc, #-0x66c] @...
Assembly
.001dpcm) { .selector {} } /* Safari */ .selector:not(*:root) {} @supports (-webkit-appearance:none) {} .selector { (;property: value;); } .selector { [;property: value;]; } @media screen and (min-width:0\0) {} @media screen { @media (min-width: 0px) {} } html:first-child .selector {} html[xmlns*=""] body:last...
CSS
n(alias_var); } fmi3_xml_display_unit_t* fmi3_xml_get_variable_display_unit_by_name(fmi3_xml_model_description_t* md, const char* name) { fmi3_xml_variable_t* v = fmi3_xml_get_variable_by_name(md, name); if (v == NULL) { return NULL; } if (strcmp(name, fmi3_xml_get_variable_name(v)) == 0) { /* ...
C
from extensions import db class DeliveryAssignment(db.Model): id = db.Column(db.Integer, primary_key=True) purchase_id = db.Column(db.Integer, db.ForeignKey('purchase.id')) provider_id = db.Column(db.Integer, db.ForeignKey('delivery_provider.id'))
Python
pping-bag" => Some(outline::Shape::ShoppingBag), "shopping-cart" => Some(outline::Shape::ShoppingCart), "sort-ascending" => Some(outline::Shape::SortAscending), "sort-descending" => Some(outline::Shape::SortDescending), "sparkles" => Some(outline::Shape::Sparkles), "speakerphone"...
Rust
.primary-btn.white { border: 1px solid #fff; color: #fff; } .primary-btn.white span { color: #fff; } .primary-btn.white:hover { background: #fff; color: #f6214b; } .primary-btn.white:hover span { color: #f6214b; } .primary-btn.squire { border-radius: 0px !important; border: 1px solid...
CSS
= args.button, focus_args = {type = 'none'}, hover = true}, nodes={ {n=G.UIT.R, config={align = args.type == 'sell' and 'cl' or 'cr', minw = 1 + (args.type == 'select' and 0.1 or 0), minh = args.type == 'sell' and 1.5 or 1, padding = 0.08, focus_args = {button = args.type == ...
Lua
}) ) } /** * 根据参数列表获取一个类的构造函数 * @return 返回这个类的参数 */ fun getConstructorByType(normalParams: List<MCFPPType>): DataTemplateConstructor? { for (f in constructors) { if(f.isSelf(this, normalParams)){ return f } } return nul...
Kotlin
Url: 'https://images.pexels.com/photos/4009599/pexels-photo-4009599.jpeg?auto=compress&cs=tinysrgb&w=200', location: "Miami, USA", ), User( name: "Arthur Adams", age: 31, videoUrl: "https://videos.pexels.com/video-files/7914927/7914927-sd_540_960_30fps.mp4", imageUrl: 'ht...
Dart
doc.body.appendChild(el); el.value = text; if (!text) { const exc = new Error("Clipboard copy given empty text"); exc.noPopup = true; catcher.unhandled(exc); } el.select(); if (doc.activeElement !== el) { const unhandledTa...
JavaScript
].alpha * 0.5 * PowaSet[i].speed; maxScale.a = PowaSet[i].alpha; if (Powa_Frames[i].statut == 0) then curScale.a = Powa_Frames[i]:GetAlpha() - (elapsed / 2); Powa_Frames[i]:SetAlpha( curScale.a ) if (Powa_Frames[i]:GetAlpha() < minScale.a) then Powa_Frames[i]:SetAlpha(minScale.a); Powa_Fram...
Lua
6789abcdef" return (1..length) .map { chars[Random.nextInt(chars.length)] } .joinToString("") } fun String.verifyYouTubePlaylistId(): String = if (startsWith("VL")) this else "VL$this" fun String.isTwoLetterCode(): Boolean { val regex = "^[A-Za-z]{2}$".toRegex() return regex.matches(this) ...
Kotlin
ge overlay import ( "bytes" "context" "fmt" "io" "os" "path/filepath" "strings" "sync" "syscall" "github.com/containerd/containerd/v2/core/mount" "github.com/containerd/containerd/v2/pkg/archive" "github.com/containerd/continuity/devices" "github.com/containerd/continuity/fs" "github.com/containerd/cont...
Go
s>] ``` ## DESCRIPTION The **Unregister-IscsiSession** cmdlet removes a registered iSCSI session to prevent it from automatically reconnection on restart. ## EXAMPLES ### Example 1: Remove a session ``` The first command gets information about all iSCSI sessions across all iSCSI connections by using the **Get-IscsiS...
Markdown
} if diff := cmp.Diff(wantSyncResult, *syncResult); diff != "" { t.Fatalf("mismatch (-want, +got):\n%s", diff) } got, err := db.ListDynamicTranslations() if err != nil { t.Fatal(err) } want := []*DynamicTranslation{ { RealmID: realm.ID, MessageID: "greeting", Locale: "en", M...
Go
arrives alongside 0x15. example payloads: `0x020614002E` (door actually closed) `0x0010000010` (door was already closed) `0x0B` turn dispenser wheel, payload is duration_8b, distance_8b, direction_8b, motorCurrent_8b `0x0C` probably indicates "dispense complete!" typical payload `0x01010300AC`,`01010300A4`,`0x010103...
Markdown
-holder .new-invoice-table-holder.main-invoice table td.editInvoice table tbody tr.elementsAction a i { font-size: 13px; color: #b5b5b5; } @media only screen and (max-width: 767px) { .new-invoice-holder .new-invoice-table-holder.main-invoice table td.editInvoice table tbody tr.elementsAction { position: stati...
CSS
integerValue / maxIntegerValueF; c = (normalizedValue * delta) + minimum; Quaternion value = Quaternion.identity; float d = Mathf.Sqrt(1f - a * a - b * b - c * c); value[largest] = d; value[(largest + 1) % 4] = a; value[(largest + 2) % 4] = b; value[(largest + 3) % 4] = c; ...
C#
, one for byte received ok stbx r29, r14,r12 # store byte into buffer addi r14, r14, 1 # increase buffer by 1 bdnz bufferloop mtlr r10 # retore link register blr # return to command check #****************************************************************** # exisendbuffer: # r3 b...
Assembly
match_pids: ["system.process.ppid"] # target: system.process.parent # # The following example decodes fields containing JSON strings # and replaces the strings with valid JSON objects. # #processors: # - decode_json_fields: # fields: ["field1", "field2", ...] # process_array: false # max_depth: 1...
Markdown
394-.803 1.531.879c.273.167.863-.848.576-1l-.954-.546.893-.515c.439-.257-.485-1.848-.924-1.591l-.894.515V4.811c0-.318-1.167-.318-1.167 0v1.772l-1.394.803V5.507c0-.439-1.575-.439-1.575 0v2.788L13.3 9.401l-1.727-.97V6.189l2.408-1.393c.379-.213-.409-1.591-.788-1.364l-1.619.937V2.764l1.53-.882c.273-.167-.303-1.167-.576-1l-...
Dart
b3Quat ornB = rigidBodies[bodyIndexB].m_quat; float4 posB = rigidBodies[bodyIndexB].m_pos; float4 childPosB = gpuChildShapes[childShapeIndexB].m_childPosition; b3Quat childOrnB = gpuChildShapes[childShapeIndexB].m_childOrientation; float4 newPosB = transform(&childPosB, &posB, &ornB);...
C++
ll; I64(5) Null ); test!(Ok(expected), sql); let sql = " SELECT Item.* FROM Player p LEFT JOIN Item ON p.id = player_id "; let expected = select_with_null!( id | quantity | player_id; I64(101) I64(1) I64(1); I64(102) I64(4) I64(2); I64(103) I64(9)...
Rust
m); gDxObj.Ocr(x1,y1,x2,y2,color_format,sim); //TSRuntime::add_log( "TSRuntime::pData->RetString:%s",TSRuntime::pData->RetString); CComBSTR newbstr; if(gDxObj.pData) //*retstr=_bstr_t(); newbstr.Append(gDxObj.pData->RetString); else //*retstr=_bstr_t(); newbstr.Append(gDxObj.m_Retstr); newbstr.CopyTo(r...
C++
) 65%,rgba(0,46,114,0.5));box-shadow:0 -3px 14px rgba(135,231,255,0.4),0 6px 8px rgba(1,165,242,0.6)}.bnet-container{position:absolute;top:0;right:0;padding-top:0}.bnet-container .bnet-links{padding:0;margin:0}.bnet-container li{padding-top:0}.bnet-container .service-cell{display:block;font-size:11px}.bnet-container .s...
CSS
audio)) if max_amp > 1.0: mixed_audio = mixed_audio / max_amp * 0.95 # Leave a little headroom # Create a new processor with the mixed audio mixed_processor = AudioProcessor(audio_data=mixed_audio, sample_rate=processor.sample_rate) mixed_processor.save("output_mixed_processed.wav") cr...
Python
;continue _;}h=c+1|0;$p=19;continue _;case 11:Bh4(a,b,j,d,e,k,f,h);if(C()){break _;}m=c-1|0;k=300;$p=12;case 12:Bh4(a,b,m,d,e,k,f,h);if(C()){break _;}k=250;$p=13;case 13:Bh4(a,b,c,g,e,k,f,h);if(C()){break _;}i=d+1|0;k=250;$p=14;case 14:Bh4(a,b,c,i,e,k,f,h);if(C()){break _;}n=e-1|0;k=300;$p=15;case 15:Bh4(a, b,c,d,n,k,f...
JavaScript
reate("foo/sherlock", SHERLOCK); dir.create("foo/watson", SHERLOCK); let expected = "\ foo/watson:For the Doctor Watsons of this world, as opposed to the Sherlock foo/watson:be, to a very large extent, the result of luck. <NAME> "; assert_eq!(expected, cmd.arg("Sherlock").stdout()); }); // See: https://gi...
Rust
].toLowerCase(); if (leftTitle === rightTitle) return 0; return leftTitle > rightTitle ? -1 : 1; // inverted is intentional } return leftScore > rightScore ? 1 : -1; }); // remove duplicate search results // note the reversing of results, so that in the case of duplicates, the h...
JavaScript
for (int i = 0; i < numOutputs; i++) { TransactionOutput output = TransactionOutput.parse(Codec.encodeHex(txBytes.sublist(offset))); outputs.add(output); int size = output.serialize().length ~/ 2; offset += size; // print("numOutputs:" + numOutputs.toString()); // prin...
Dart
end -- self.time.LoadPatternInfo = GetTime() - timer + self.time.LoadPatternInfo -- timer if not self.patternTable[patternName] then self:Print(patternName .. " cannot be found in the pattern table.", 1, 0, 0) return end -- timer = GetTime() -- timer info = compost:Recycle(info) -- ctimer.recycle ...
Lua
[75243, 0, 'o'], [75244, 0, 'n'], [75245, 0, '*'], [75246, 0, '{'], [75247, 0, 'A'], [75248, 0, 'c'], [75249, 0, 'k'], [75250, 0, 'n'], [75251, 0, 'o'], [75252, 0, 'w'], [75253, 0, 'l'], [75254, 0, 'e'], [75255, 0, 'd'], [75256, 0, 'g'], [75257, 0, 'e'], [75258, 0, 'm'], [75259, 0, 'e'],...
JavaScript
styles\n.panel-heading-styles(@color) {\n #gradient > .vertical(@start-color: @color; @end-color: darken(@color, 5%));\n}\n\n// Apply the mixin to the panel headings only\n.panel-default > .panel-heading { .panel-heading-styles(@panel-default-heading-bg); }\n.panel-primary > .panel-heading { .panel-heading-styles...
JavaScript
char *path) { Serial.printf("Removing Dir: %s\n", path); if (SD.rmdir(path)) Serial.println("Dir removed"); else Serial.println("rmdir failed"); } // ------------------------------------------------------------ void CYD28_SD::readFile(const char *path) { Serial.printf("Reading file: %s\n", path); File file =...
C++
ream类型的接口提供下载调试.")]),e._v(" "),t("p",[e._v("启用UI增强时,获取不到"),t("code",[e._v("WebApplicationContext")]),e._v("对象造成空指针异常")]),e._v(" "),t("p",[e._v("修复list套list的返回值会不显示"),t("a",{attrs:{href:"https://github.com/xiaoymin/Swagger-Bootstrap-UI/issues/55",target:"_blank",rel:"noopener noreferrer"}},[e._v("issue #55 @GitHub"),t("...
JavaScript
item in e.Models) { if (!item.AllowDrag) { e.AllowedEffects = DragDropEffects.None; } } } public override bool OnExecuteCommand(EditorCommand command) { switch (command) { case CopyToClipboardCommand: ExplorerC...
C#
= (*chainsData)[config.Chain][row] m.PlaybackChainRow = row break } } } if m.PlaybackPhrase == -1 { // This chain has no phrases, find a different chain m.PlaybackChain = FindFirstNonEmptyChain(m) log.Printf("Chain playback fallback: switching to chain %d", m.PlaybackChain) m.Playback...
Go
o white for the first data set and blue to white for the second, they are then overprinted to produce * varying hues. These type of maps show the magnitude of the values in relation to each other. * * This realisation of single hue progression based on progression of lightness (intensity) of HSL (HSI) model. * * @...
JavaScript
OCATION_EXTRA) Duel.BreakEffect() if #rg1>0 then Duel.ShuffleDeck(tp) end if #rg2>0 then Duel.ShuffleDeck(1-tp) end local sum1=rg1:GetSum(Card.GetLevel) local sum2=rg2:GetSum(Card.GetLevel) Duel.Draw(tp,sum1,REASON_EFFECT) local d1=Duel.GetOperatedGroup() Duel.Draw(1-tp,sum2,REASON_EFFECT) local d2=Duel....
Lua
(auto dims : std::vector<std::vector<int64_t>>{{1, 2, 3, 4}, {5, 6, 7, 8}}) { for (auto out_channels : {1, 3}) { std::unique_ptr<arena::TestCase> tester( new ConvComputeTester(place, "def", DDim(dims), ...
C++
aliasLabel(association)}`, `declare ${name}?: NonAttribute<${targetName}>`, `declare get${singularMethodPostfix}: HasOneGetAssociationMixin<${targetName}>`, `declare set${singularMethodPostfix}: HasOneSetAssociationMixin<${targetName}, ${targetPkType}>`, `declare create${singularMethodPo...
Typescript
* 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 distributed in the hope that it will be useful,...
Java
security.com/vulns/aleph-2017023)已经提交到主线内核上。 > 原文链接: https://www.anquanke.com//post/id/151425 # 隐蔽后门——Image File Execution Options新玩法 阅读量    **406660** | ...
Markdown
red int discordServerId, required _i2.GroupType type, }) : super._( id: id, name: name, icon: icon, groupId: groupId, discordServerId: discordServerId, type: type, ); /// Returns a shallow copy of this [DiscordChannel] /// with some or all f...
Dart
{ level: 30 }); expect(test4).to.equal(true); }); }); import {Actor} from '../shared/actor.model'; export class Movie { public name: string; public description: string; public imagePath: string; public actors: Actor[]; constructor(name: string, desc: string, imagePath: string, actors: Actor[]){ th...
Typescript
son::array{book1, book2, book3}; for (const auto& book: booklist.array_range()) { std::cout << book["title"].as<std::string>() << std::endl; } } void make_1_dimensional_array_1() { std::cout << "1 dimensional array 1" <<std::endl; json a = json::make_array<1>(10); a[1] = 1; a[...
C++
erationName: "create-cluster", OperationTarget: "cluster", } var batchOperationDefinitionSamples = []*model.OperationDefinitionModel{ { OperationName: "delete-cluster", OperationTarget: "cluster", }, { OperationName: "scale-component", OperationTarget: "component", }, } type OperationDefinitionDbAc...
Go
the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ .chat-agent-hover { line-height: unset; padding: 6px 0px; } .chat-agent-hover-header { display: flex; gap: 8px; margin-bottom: 4px; } .c...
CSS
uring quantization. :param advanced_parameters: Advanced quantization parameters for fine-tuning the quantization algorithm. :return: NNCFConfig for the quantization algorithm. """ compression_config = _get_default_quantization_config(preset, subset_size) if ignored_scope is not None: ...
Python
self.0 ^= self.0 << 13; self.0 ^= self.0 >> 17; self.0 ^= self.0 << 5; self.0 } } <filename>rs/tests/src/driver/test_env_api.rs //! # The Test Environment API //! //! The goal of this module is to provide the user with an extensible, //! consistent and ergonomic API to access the Test E...
Rust
/* * MIT License * * Copyright (C) 2024, DragonDreams GmbH (info@dragondreams.ch) * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation th...
C
�会执行。然而,这个指令在有些情况下并不是最高效的。因此,Go语言编译器会尝试将MOVBEQ指令替换成更高效的指令。 rewriteValueAMD64_OpAMD64MOVBEQstore函数的具体作用如下: 1. 遍历输入IR语法树(Instruction Representations),对所有MOVBEQ指令进行替换。 2. 尝试将MOVBEQ指令替换成LOAD-TST-BR-COND-STORE序列,这个序列可以在Z标志位未被设置时避免执行存储操作。 3. 如果不能进行上述替换,则会尝试将MOVBEQ指令替换成CMP-SET-COND-SETCC-COND-MOVCC序列,这个序列可以减少存储操作的数量。 4. 如果仍...
Markdown
icode-range: U+0030-0039; font-family: "Numeral LF Serif"; src: local(Palatino), local("Palatino Linotype"), local("Times New Roman"); } @font-face { unicode-range: U+0030-0039; font-family: "Numeral LF Italic Serif"; src: local("Palatino Italic"), local("Palatino Italic Linotype"), local("Times New Roman Ita...
CSS
delete::*; pub use delete_metadata_all_versions::*; pub use delete_versions::*; pub use destroy_versions::*; pub use get::*; pub use undelete_versions::*; pub use update_set::*; // TODO: Add List, Read Metadata, Update Metadata <reponame>Guiguiprim/cargo-guppy<gh_stars>10-100 // Copyright (c) The cargo-guppy Contribu...
Rust
rmatter}; #[derive(Debug)] pub(crate) struct CanonicalStrand<C: Context> { pub(super) canonical_ex_clause: C::CanonicalExClause, /// Index into `ex_clause.subgoals`. pub(crate) selected_subgoal: Option<SelectedSubgoal<C>>, } pub(crate) struct Strand<'table, C: Context + 'table, I: Context + 'table> { ...
Rust
} return valueHandle; } public void release(HGPersistentHandle handle) { byte [] data = graph.getStore().getData(handle); HGAtomRef.Mode mode = HGAtomRef.Mode.get(data[MODE_OFFSET]); int count = BAUtils.readInt(data, REFCOUNT_OFFSET) - 1; if (count == 0) { boolean makeManaged = false; boolean...
Java
won't happen -- when the input data size is less than 64K. if not is_last_block then local j if dictionary and block_start == 1 then j = 0 while (string_table[j]) do string_table[j] = nil j = j - 1 end end dictionary = nil j = 1 for i = block_end-32767, block_end do stri...
Lua
ain : Grain<object>, IGuidKeyGrain { public Task<Guid> GetKey() => Task.FromResult(this.GetPrimaryKey()); } public sealed class StatefulIntegerKeyGrain : Grain<object>, IIntegerKeyGrain { public Task<long> GetKey() => Task.FromResult(this.GetPrimaryKeyLong()); } public sealed class StatefulStringKeyGrain : Gr...
C#
class Solution public int[] nextGreaterElements(int[] nums) { int n = nums.length; int[] res = new int[n]; Stack<Integer> st = new Stack<>(); for (int i = (2 * n) - 1; i >= 0; i--) { int idx = i % n; while (!st.isEmpty() && nums[idx] >= ...
Python
e, "has_img_google" : true, "has_img_twitter" : true, "has_img_emojione": true, "name" : "STEAM LOCOMOTIVE", "short_name" : "steam_locomotive", "short_names" : [ "steam_locomotive" ], "sort_order" : 31 }, { "has_img_apple" ...
JavaScript
setRawAngle(-10); //后续复位 disChassis = 0; } else if (Q == 1 && rQ == 0) { disChassis = 1; if (isJUE == 0)Serial1.print(getMoveString(0, -0.1, 0)); // uservo0.setSpeed(360); //设置0舵机速度 //...
C++
16; data->last_updated = jiffies; data->valid = 1; } mutex_unlock(&data->update_lock); return data; } static int __init w83627hf_device_add(unsigned short address, const struct w83627hf_sio_data *sio_data) { struct resource res = { .start = address + WINB_REGION_OFFSET, .end = address + WINB_RE...
C
表 getSearchList(type){ return new Promise<Object>(resolve => { if(type=='01'){ this.kv.get(this.KEY_SEARCH_HISTORY_DOCTOR).then(data => { resolve(data); }) } if(type=='02'){ this.kv.get(this.KEY_SEARCH_HISTORY_NURSE).then(data => { resolve(data); ...
Typescript
1))) { continue; } if (dungeon[row][col] & MONSTER) { monster = object_at(&level_monsters, row, col); monster->m_flags |= ASLEEP; monster->m_flags &= (~WAKENS); mcount++; } } } if (mcount == 0) { message("you feel a strange sense of loss", 0); } else if (mcount == 1) { message("the...
C
548.409.866 1.093.75 1.834A119.747 119.747 0 0118.176 27H12v2h5.705a122.579 122.579 0 01-2.958 10.209 1.828 1.828 0 01-3.494 0A116.1 116.1 0 019.917 35H12v-2H9.341c-.946-3.391-1.65-6.47-2.161-9H11v-2H6.793c-.2-1.085-.357-2.02-.477-2.78a1.902 1.902 0 01.749-1.832Zm7.134-5.211.682 1.8 1.825-.614c.503-.169 1.184-.27 2.154...
Dart
Manager.error(ErrorManager.MSG_ILLEGAL_OPTION_VALUE, "assoc", assoc); } } } if ( altAssociativity.get(alt)!=null && altAssociativity.get(alt)!=assoc ) { ErrorManager.error(ErrorManager.MSG_ALL_OPS_NEED_SAME_ASSOC, alt); } altAssociativity.put(alt, assoc); //System.out.println("op " + alt + ": " + ...
Java
xmm18 // CHECK: vpminud %ymm19, %ymm22, %ymm19 // CHECK: encoding: [0x62,0xa2,0x4d,0x20,0x3b,0xdb] vpminud %ymm19, %ymm22, %ymm19 // CHECK: vpminud %ymm19, %ymm22, %ymm19 {%k3} // CHECK: encoding: [0x62,0xa2,0x4d,0x23,0x3b,0xdb] vpminud %ymm19, %ymm22, %ymm19 {%k3} // CHECK: vpminud %ymm19, %ym...
Assembly
import com.merxury.blocker.core.model.preference.AppSorting import com.merxury.blocker.core.model.preference.SortingOrder import com.merxury.blocker.feature.applist.AppSortInfoUiState.Loading import com.merxury.blocker.feature.applist.AppSortInfoUiState.Success import dagger.hilt.android.lifecycle.HiltViewModel import...
Kotlin
(element).toBeVisible(); }); ``` Now run the following command in your terminal to see the test results (make sure to replace `my-component` with the name of your example, or omit it to run all the tests): > **Note**: The [development server](#starting-the-development-server) must be running in another terminal insta...
Markdown
n_current * self.adaptation_decay + self.spike_increase * s_float self.synaptic_efficiency = ( self.synaptic_efficiency * (1 - self.depression_rate * s_float) + self.recovery_rate * (1 - self.synaptic_efficiency) ) if self.use_adaptive_threshold: if i...
Python
e ActionTypes.Add: return { ...state, cart: [...state.cart, action.payload] }; case ActionTypes.Remove: return { ...state, cart: [...state.cart.filter(item => item.name !== action.payload.name)] }; case ActionTypes.ApplyCoupon: ...
Typescript
物的箱子', '', 'baoxiang_hit', '', ''}, {'1108010', '', 'baoxiang', '', '', '1', '', '', '', '', '5', '[30003]', 'organ_chest', '宝箱', '埋藏着宝物的箱子', '', 'baoxiang_hit', '', ''}, {'1108020', '', 'buff', '', '', '', '', '', '', '', '2', '[0.15]', 'organ_buff', 'HP恢复', '恢复队伍一定HP', 'Chapter_hp_up', 'get_eff_green', '', ''}, {'110...
Lua
igquery.connection.v1beta1.CloudSqlProperties) CloudSqlPropertiesOrBuilder { private static final long serialVersionUID = 0L; // Use CloudSqlProperties.newBuilder() to construct. private CloudSqlProperties(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } p...
Java
FrequencyAtIndex(i), b0, b1, b2, a1, a2, true); lineSeg.Point = new Point(i * 3, 50.0 - mag * 150.0 / 72.0); } #endif } // get current mode from gui states public int CurrentMode() { int mode = 0; // mode buttons and checkboxes foreach (object o in ControlItemMap.Keys) { ModeButton mb ...
C#
Forbidden Keyword", ui_type = "text_box", value = "default", }, affected_side_name = { ui_name = "Side", ui_type = "combo_box", value = "heroes", options_keys = { "Heroes", "Villains", "Both", }, options_values = { "heroes", "villains", "bo
Lua
add r1, sp, #0 strb r0, [r1, #3] ldr r0, _022408F4 ; =0x022513A0 ldr r0, [r0, #4] add r2, r0, r4 ldr r0, _022408F8 ; =0x00000B3C ldrb r0, [r2, r0] strb r0, [r1] strb r4, [r1, #1] mov r0, #1 strb r0, [r1, #2] mov r0, #0x2a add r1, sp, #0 bl sub_02030C4C _022408E4: ldr r0, _022408F4 ; =0x022513A0 mov r2, #...
Assembly
91|Z|120; Storm Peaks|N|From Bouldercrag the Rockshaper.|M|31.4,38.0| C Attack Specs|QID|12993|QO|1|Z|120; Storm Peaks|N|Loot the Colossus Attack Specs.|M|28.9,44.1| C A Colossal Threat - Defense Specs|QID|12993|QO|2|Z|120; Storm Peaks|N|Loot the Colossus Defense Specs.|M|29.9,45.8| T A Colossal Threat|QID|12993|Z|120;...
Lua
e to work, the calling function must have ** previously invoked sqlite3ResolveExprNames() on the expression. See ** the header comment on that routine for additional information. ** The sqlite3ResolveExprNames() routines looks for column names and ** sets their opcodes to TK_COLUMN and their Expr.iTabl...
C#
别行政区成立前已依法确认的私有土地外,属于国家所有,由澳门特别行政区政府负责管理、使用、开发、出租或批给个人、法人使用或开发,其收入全部归澳门特别行政区政府支配。 第八条 澳门原有的法律、法令、行政法规和其他规范性文件,除同本法相抵触或经澳门特别行政区的立法机关或其他有关机关依照法定程序作出修改者外,予以保留。 第九条 澳门特别行政区的行政机关、立法机关和司法机关,除使用中文外,还可使用葡文,葡文也是正式语文。 第十条 澳门特别行政区除悬挂和使用中华人民共和国国旗和国徽外,还可悬挂和使用澳门特别行政区区旗和区徽。 澳门特别行政区的区旗是绘有五星、莲花、大桥、海水图案的绿色旗帜。 澳门特别行政区的区徽,中间是五星、莲花、大桥...
Markdown
IMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTW...
C#
-- Title: ImproveDressingRoom v1.2 -- Author: TotalPackage -- Date: 05/21/2006 function ImproveAHDressingRoomModel_Load() if( not AuctionDressUpModel ) then this:RegisterEvent("ADDON_LOADED"); else ImproveAHDressingRoomFrame:SetParent("AuctionDressUpFrame"); ImproveAHDressingRoomFrame:SetFrameLevel(AuctionDre...
Lua
%E3%82%AF&amp;action=edit&amp;redlink=1" class="new" title="谷高マーク(页面不存在)">谷高マーク</a><span class="thcsearchlinks"><a rel="nofollow" class="external text" href="https://cd.thwiki.cc?lyric=谷高マーク&amp;fromwiki=ネコマチプリンセス"><span></span></a></span></td></tr><tr><td class="left"></td><td class="label">初发布</td><td class="text" co...
Markdown
scene.add( new THREE.Mesh( groundGeometry, groundMaterial ) ); } } else if ( /geometry/.exec( data.string ) ) { if ( data.nodeType === 'Box' ) { var s = data.size; parent.geometry = new THREE.BoxBufferGeometry( s.x, s.y, s.z ); } else if ( data.nodeType === 'Cylinder' ) { p...
JavaScript
# -*- coding: utf-8 -*- # # Copyright 2023 Google Inc. All Rights Reserved. # # 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/licenses/LICENSE-2.0 # # Unless requir...
Python
经网络,实现对动物的图像识别?| | 自然语言处理 | 请问目前最常用的自然语言处理算法是什么? | | 文本分类 | 如何对一篇英文新闻文章进行主题分类? | | 数据清洗 | 有哪些常见的数据清洗方法可以去除异常值和离群点? | | 图像识别 | 在图像识别中,如何评估模型的准确率? | | 推荐系统 | 如何在电商网站上为用户推荐商品? | | 监督学习 | 如何在监督学习中解决样本不平衡问题? | | 强化学习 | 在强化学习中,如何选择最优的奖励函数? | | 数据可视化 | 如何使用Python绘制出一个直观的数据分布图形? | | 聚类分析 | 如何使用k-means算法对大量数据进行聚类分析? | | 神经网络 | ...
Markdown
/* -*- Mode: C++; tab-width: 20; indent-tabs-mode: nil; c-basic-offset: 2 -*- * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #ifndef GFX_ImageLayerComposite_H #d...
C
container .wup_img .placeholder {padding:0;} .ui-jqgrid .editable .wup_container .wup_img .placeholder .webuploader-pick {margin: 3px 0 0 0;} .ui-jqgrid .editable .wup_container .wup_input {top:10px;left:2%;} .ui-jqgrid .editgrid tr.ui-state-hover.ui-row-ltr td {background-color:#fafafa;} .ui-jqgrid .editgrid tr.ui-sta...
CSS