content
stringlengths
2
6.21k
label
stringclasses
16 values
*uiAddr) log.Println("master api urls are", *masterApiUrls) log.Println("daemons public url is", *daemonPublicUrl) log.Println("etcd ips are", *etcdIps) log.Println("etcdCertPath is", *etcdCertPath) // Start hub rcp server hub := server.NewHub(*hubAddr, *masterApiUrls, *daemonPublicUrl, *etcdIps, *etcdCertPath)...
Go
/* * || ____ _ __ * +------+ / __ )(_) /_______________ _____ ___ * | 0xBC | / __ / / __/ ___/ ___/ __ `/_ / / _ \ * +------+ / /_/ / / /_/ /__/ / / /_/ / / /_/ __/ * || || /_____/_/\__/\___/_/ \__,_/ /___/\___/ * * Crazyflie control firmware * * Copyright (C) 2015 Bitcraze...
C
TotalProg), totalProgression: 0.4, position: 4)), await service.locateProgression(0.4)); expect( Locator( href: "chap4", type: "text/html", locations: Locations( progression: (0.55 - chap4FirstTotalProg) / ...
Dart
册流程(http.HandleFunc) 这一步比较简单,最简单的想法就是搞一个`map[string]hander`,然后接收请求的时候和请求的path进行比较,如果存在就执对应的方法,不存在就404。确实默认http处理就是这么做的: ```go // 路由的结构如下 type ServeMux struct { mu sync.RWMutex m map[string]muxEntry // ... } var DefaultServeMux = &defaultServeMux var defaultServeMux ServeMux func HandleFunc(pattern strin...
Markdown
.com/lists/oss-security/2025/03/10/5 https://lists.apache.org/thread/j5fkjv2k477os90nczf2v9l61fb0kkgq https://github.com/apache/tomcat/commit/f6c01d6577cf9a1e06792be47e623d36acc3b5dc # 【漏洞挖掘案例】不是哥们,北大被"RCE"了? 原创 X1ly?S The One安全 2025-03-24 21:11 ![](https://mmbiz.qpic.cn/mmbiz_png/gxdFmXz8afm...
Markdown
move $a1, $s3 /* B59B7C 800E29DC 51400004 */ beql $t2, $zero, .L800E29F0 /* B59B80 800E29E0 26240010 */ addiu $a0, $s1, 0x10 /* B59B84 800E29E4 0C039016 */ jal func_800E4058 /* B59B88 800E29E8 02803025 */ move $a2, $s4 /* B59B8C 800E29EC 26240010 */ addiu $a0, $s1, 0x10 .L800E29F0: /* B59B90 800E29F0 026028...
Assembly
yper.echo("No parsed pages found", err=True) return if number_of_pages < 1: raise ValueError("Number of pages must be greater than 0") if start_page_num <= 0 or start_page_num > len(book_pages): raise ValueError(f"Invalid start page number {start_page_num}") if len(book_pages) < s...
Python
n: handler, runOnce: false, uuid: &id}) channel.removeEventHandler(999) assert.Len(t, channel.eventHandlers, 1) } func TestChannel_AddRemoveBrokerSubscription(t *testing.T) { channel := NewChannel(testChannelName) id := uuid.New() sub := &MockBridgeSubscription{Id: &id} c := &MockBridgeConnection{Id: &id} chan...
Go
/ Author: Vadim Zeitlin // Created: 2011-10-18 // Copyright: (c) 2011 Vadim Zeitlin <vadim@wxwidgets.org> // Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// // ============================================================================ // decla...
C++
as an explicit dependency. pub fn parse(text: &str) -> impl Iterator<Item = Event<'_>> + '_ { Parser::new(text) } <reponame>sonald/lxxtcode-rs pub struct Solution; impl Solution { pub fn count_primes(n: i32) -> i32 { Self::by_direct(n) } // naive sieve pub fn by_sieve(n: i32) -> i32 { ...
Rust
)*x)*(a+b*x+c*x^2)^p,x] /; FreeQ[{a,b,c,d,e,f,g},x] && NeQ[e*f-d*g] && NeQ[b^2-4*a*c] && NeQ[c*d^2-b*d*e+a*e^2] && Not[IntegerQ[n]] && Not[IntegerQ[p]] && RationalQ[n,p] && p<-1 && n>0 Int[(f_.+g_.*x_)^n_*(a_+c_.*x_^2)^p_/(d_.+e_.*x_),x_Symbol] := e*(e*f-d*g)/(c*d^2+a*e^2)*Int[(f+g*x)^(n-1)*(a+c*x^2)^(p+1)/(d+e*...
Go
, #1 bge 4b @ } @ Start Master Send @ if (gMultiSioArea.type == SIO_MULTI_PARENT) ldrb r0, [r11,#OFS_MS_TYPE] cmp r0, #0 beq 11f @ *(vu16 *)REG_ADDR_MULTI_SIO_TIMER_H = 0; Stop Timer ldr r7, =REG_MULTI_SIO_TIMER_H @ r7: REG_MULTI_SIO_TIMER_H mov r0, #0 ...
Assembly
"tí,shì", 0x8907: "fù,fú", 0x8908: "chóng,chōng,zhòng", 0x8909: "xiè", 0x890A: "biǎn,pián", 0x890B: "dié", 0x890C: "kūn", 0x890D: "duān,tuān", 0x890E: "xiù,yòu", 0x890F: "xiù", 0x8910: "hè", 0x8911: "yuàn,yuán", 0x8912: "bāo", 0x8913: "bǎo", 0x8914: "fù", 0x8915: "yú,tóu", 0x8916: "tuàn", 0x8917: "yǎn...
Go
+ 1)); memcpy((void*)_str.data, _b.data(), _str.len); ((char*)_str.data)[_str.len] = '\0'; return _str; } void KDualAction_SetActiveGuiItem(KDualAction* self, const KGuiItem* activeGuiItem) { self->setActiveGuiItem(*activeGuiItem); } KGuiItem* KDualAction_ActiveGuiItem(const KDualAction* self) { ...
C++
#endif /* __BORLANDC__ */ # if defined (ACE_LACKS_TIMEDWAIT_PROTOTYPES) ssize_t read_timedwait (ACE_HANDLE handle, char *buf, size_t n, struct timespec *timeout); ssize_t write_timedwait (ACE_HANDLE handle, ...
C
/*============================================================================== Program: 3D Slicer Copyright (c) Kitware Inc. See COPYRIGHT.txt or http://www.slicer.org/copyright/copyright.txt for details. Unless required by applicable law or agreed to in writing, software distributed under the License...
C
amework.GuiTestUtil.shortcut import com.intellij.testGuiFramework.framework.GuiTestUtil.typeText import com.intellij.testGuiFramework.impl.jList import com.intellij.testGuiFramework.util.Key import training.lang.RubyLangSupport import training.learn.interfaces.Module import training.learn.lesson.kimpl.KLesson import tr...
Kotlin
= $convert.base64Decode( 'CgxGdW5jdGlvblNwZWMSPQoLZnVsbGFyZ3NwZWMYASABKAsyGy50ZW5zb3JmbG93LlN0cnVjdHVyZWRWYWx1ZVILZnVsbGFyZ3NwZWMSGwoJaXNfbWV0aG9kGAIgASgIUghpc01ldGhvZBJECg9pbnB1dF9zaWduYXR1cmUYBSABKAsyGy50ZW5zb3JmbG93LlN0cnVjdHVyZWRWYWx1ZVIOaW5wdXRTaWduYXR1cmUSRAoLaml0X2NvbXBpbGUYBiABKA4yIy50ZW5zb3JmbG93LkZ1bmN0aW...
Dart
ter inflater?.inflate(R.layout.layout_expandable_textview, this) textView = findViewById(R.id.tv_expand_text_view_animation) //textView.setTextColor(textContentColor); //textView.getPaint().setTextSize(textContentSize); textView?.maxLines = expandLines } fun setExpand...
Kotlin
Berlin . Luca Toni opened the scoring after eleven minutes, but Mladen Petric drew Dortmund level in stoppage time, forcing thirty additional minutes. The Italian completed his double in extra time, thus lifting Bayern to cup glory. ______________________________________________________________________ ### European R...
Markdown
edOfHostShareable) { auto* arr = create<type::Array>(create<type::I32>(), create<type::RuntimeArrayCount>(), 4u, 4u, 4u, 4u); EXPECT_TRUE(r()->IsHostShareable(arr)); } // Note: Structure tests covered in host_shareable_validation_test.cc } // namespace } // namespace tint::resolver // Copyright 2022...
C++
map['gamePlayer'] != null ? Player.fromMap(map['gamePlayer']) : null, value: map['value'], isVisible: map['isVisible'], ); } Map<String, dynamic> toMap() { return <String, dynamic>{ 'description': description, 'eventId': eventId, 'localeValue': localeValue, 'thumbnai...
Dart
"), peg$decode("%2~\"\"6~7\x7F/\x92#$%;v/:#;Y/1$;v/($8#:\x92#!!)(#'#(\"'#&'#0D*%;v/:#;Y/1$;v/($8#:\x92#!!)(#'#(\"'#&'#&/@$;v/7$2\x81\"\"6\x817\x82/($8$:\x93$!\")($'#(#'#(\"'#&'#"), peg$decode("%;v/\xD5#;3.\" &\"/\xC7$;v/\xBE$2\xD5\"\"6\xD57\xD6/\xAF$;v/\xA6$2\xA6\"\"6\xA67\xA7/\x97$;(/\x8E$;v/\x85$;Z/|$;v/s$2\x...
Typescript
/* PR tree-optimization/79472 */ /* { dg-options "-O2 -fdump-tree-switchconv" } */ /* { dg-do compile { target nonpic } } */ void foo (unsigned int v) { const char *s; switch (v) { case 0: s = "foo"; break; case 1: s = "bar"; break; case 2: s = "spam"; break; ...
C
ntor_vlan_strip_queue_set, .mac_addr_set = ixgbe_vf_representor_mac_addr_set, }; uint16_t ixgbe_vf_representor_rx_burst(__rte_unused void *rx_queue, __rte_unused struct rte_mbuf **rx_pkts, __rte_unused uint16_t nb_pkts) { return 0; } uint16_t ixgbe_vf_representor_tx_burst(__rte_unused void *tx_queue, __rte_unus...
C
.154.201 3.127 3.127 0 01-1.514-.944l-1.444.848a4.162 4.162 0 010 2.879l1.444.846c.413-.47.939-.789 1.514-.944a3.041 3.041 0 012.371.319l.048.023v.002a3.17 3.17 0 011.408 1.906 3.215 3.215 0 01-.313 2.405l-.026.053-.003-.005a3.147 3.147 0 01-1.867 1.436 3.096 3.096 0 01-2.371-.318v-.006a3.156 3.156 0 01-1.456-1.927 3.1...
Dart
// RUN: %clang_cc1 -fsyntax-only -verify %s // RUN: %clang_cc1 -fsyntax-only -verify %s -triple x86_64-apple-darwin9 void f1(int a) { __builtin_va_list ap; __builtin_va_start(ap, a, a); // expected-error {{too many arguments to function}} __builtin_va_start(ap, a); // expected-error {{'va_start' used ...
C
Status; constructor(build: Build) { Object.assign(this, build); } get owner() { return this.repository.owner.name; } get appTitle() { return this.repository.title; } } export enum BuildStatus { IN_PROGRESS = 0, SUCCESS = 1, FAILED = 2, ABORTED_WITH_FAILURE = 3, ABORTED_WITH_SUCCESS...
Typescript
ed in this module (required for API purposes.) -- @param dest_dir string or nil: If set, will extract to the given directory. -- @return (string, string) or (nil, string): The absolute pathname of -- the fetched source tarball and the temporary directory created to -- store it; or nil and an error message. function hg_...
Lua
.hal_reo_cmd_ring_base_lsb = 0x000000e4, .hal_reo_cmd_ring_hp = 0x00003010, /* REO status address */ .hal_reo_status_ring_base_lsb = 0x00000504, .hal_reo_status_hp = 0x00003070, /* WCSS relative address */ .hal_seq_wcss_umac_ce0_src_reg = 0x08400000 - HAL_IPQ5018_CE_WFSS_REG_BASE, .hal_seq_wcss_umac_ce0_dst...
C
//tracker.opentrackr.org:1337/announce&tr=udp://9.rarbg.com:2810/announce&tr=udp://exodus.desync.com:6969/announce&tr=udp://www.torrent.eu.org:451/announce&tr=udp://tracker.torrent.eu.org:451/announce&tr=udp://tracker.tiny-vps.com:6969/announce&tr=udp://tracker.pomf.se:80/announce&tr=udp://tracker.openbittorrent.com:69...
Markdown
-- ROBLOX NOTE: no upstream local snapshots = {} snapshots["Lua tests nil argument calls lastCalledWith works with trailing nil argument 1"] = [=[ <d>expect(</><r>jest.fn()</><d>).</>lastCalledWith<d>(</><g>...expected</><d>)</> Expected: <g>"a"</>, <g>"b"</> Received: <d>"a"</>, <d>"b"</>, <r>nil</> Number of cal...
Lua
(TRACE_NORMAL, CTRANHANDLESESSION_DCTRANHANDLESESSION, "CTranHandleSession::~CTranHandleSession"); } void CTranHandleSession::ServiceL(const RMessage2& aMessage) { OstTrace0(TRACE_NORMAL, CTRANHANDLESESSION_SERVICEL, "CTranHandleSession::ServiceL"); TInt r; switch ( aMessage.Function() ) { ca...
C++
beq jump_1672 /*0x166e*/ movs r0, #0 /*0x1670*/ bx lr jump_1672: /*0x1672*/ movs r0, #1 /*0x1674*/ bx lr .thumb_func call_1676: /*0x1676*/ push {r4, lr} /*0x1678*/ add.w r4, r0, #0x30 /*0x167c*/ ldrb r0, [r4, #4] /*0x167e*/ ubfx r1, r0, #0, ...
Assembly
pe1/3tXKiVKlChR4v8I4BZgFtCnB/q+AnjQYuiqo2bgby6htbAIs/e/KvRtMTxWr5PpwHn+w3uFR1o7hg+kf4vlnrwOrgHaxckp4Npuizgex3Wh7wS/AWOyftwH2C8f/wFM6Pao4/FMDDEk+BboneXDBXTGbMe/CvwKbOqGoFcCx4Hlzv64i2l+LUdXAmflg22Of9E5bCowif7O92LHfyLcGWBYNWerXePhwt0JXBT+G6BXUYmEPvaKf+trmnAj3CCvjDkZ5Bq2CDcwTHmCX4DRRSYR+hkNnJR+jgEDhH/FDfTANCdPukaDhXtNuL+AK...
CSS
en. * Docs: http://www.openjs.com/scripts/others/dump_function_php_print_r.php */ function dump(arr,level) { var dumped_text = ""; if(!level) level = 0; //The padding given at the beginning of the line. var level_padding = ""; for(var j=0;j<level+1;j++) level_padding += " "; if(typeof(arr) == 'object') { //A...
JavaScript
elay(UINT32 usecs); /** * @ingroup los_tick * @brief spinning-delay in millisecond (ms). * * @par Description: * This API is used to delay in millisecond. * * @attention None. * * @param #UINT32 millisecond needs to delay. * * @retval None. * * @par Dependency: * <ul><li>los_tick.h: the header file th...
C
.timer { font-size: 15vw; } } .breakTime { /* color: #99CCFF; */ color: var(--breakTimerColor); } .athleteTimer { color: var(--athleteTimerColor); } .attemptBoard .down { grid-area: down-start/down-start/down-end/down-end; align-self: stretch; justify-self: stretch; color: purple; display: none; overflo...
CSS
or Prefix } else if len > 0 { alias == pattern || alias.starts_with(&format!("{}_", pattern)) } else { false } } /* fn load_transcript(mut flac_path: PathBuf) -> Option<String> { flac_path.set_extension("txt"); if let Ok(mut file) = File::open(flac_path) { let mut text...
Rust
nil { return templ_7745c5c3_Err } if !templ_7745c5c3_IsBuffer { _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteTo(templ_7745c5c3_W) } return templ_7745c5c3_Err }) } package domain import ( "context" "database/sql/driver" "encoding/json" "fmt" "github.com/jsiebens/ionscale/internal/util" "gorm...
Go
Connect24/RiiConnect24-Patcher/releases) #### Instrucciones ##### Section I - Using RiiConnect24 Patcher If you can't run RiiConnect24 Patcher, please join [the RiiConnect24 Discord server](https://discord.gg/rc24) (recommended) or [e-mail us at support@riiconnect24.net](mailto:support@riiconnect24.net) for further ...
Markdown
1 */ addiu $t4, $t1, 0x0001 ## $t4 = 00000001 /* 10380 80949050 A3AC018F */ sb $t4, 0x018F($sp) /* 10384 80949054 0C25214A */ jal func_80948528 /* 10388 80949058 2406263A */ addiu $a2, $zero, 0x263A ## $a2 = 0000263A .L8094905C: /* 1038C 8094905C 8EB10044 */ ...
Assembly
path::Path; use game::*; pub fn from_file<P: AsRef<Path>>(path: P) -> Option<ControlMap> { let spec: Option<StringControlSpec> = game_file::read_toml(path).ok(); spec.as_ref().map(ControlMap::from) } pub fn to_file<P: AsRef<Path>>(path: P, map: &ControlMap) { game_file::write_toml(path, &StringControlSpe...
Rust
more placement possibilities STAR( 5, listOf( DrawFunction { image: NativeImage, x: Int, y: Int, color: Int -> image.setPixelRGBA(x + 1, y, color) image.setPixelRGBA(x, y + 1, color) image.setPixelRGBA(x - 1, y,...
Kotlin
nce-accessdate">. Retrieved <span class="nowrap">August 5,</span> 2020</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=article&amp;rft.jtitle=USA+Today&amp;rft.atitle=Did+you+use+Google%2B%3F+You+may+be+owed+some+money+from+class-action+privacy+settlem...
Dart
using Android.Content; using Microsoft.Maui.Controls.Internals; using Microsoft.Maui.Controls.Platform; namespace Microsoft.Maui.Controls.Compatibility.Platform.Android { // We don't currently have a replacement for this #pragma warning disable CS0618 // Type or member is obsolete public class NativeViewWrapperRende...
C#
Type(DraggableScrollableSheet); // Verify that DraggableScrollableSheet is initially present expect(sheetFinder, findsOneWidget); // Verify that DraggableScrollableSheet is shown initially at 50% height final DraggableScrollableSheet draggableSheet = tester.widget(sheetFinder); expect(draggableShe...
Dart
/* * Copyright (C) 2010 Teluu Inc. (http://www.teluu.com) * * 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. * *...
C
5.007 0 0 1 7.076 0z'/%3E %3C/g%3E%3C/svg%3E");mask-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E %3Cg fill='none' fill-rule='evenodd'%3E %3Cpath d='M0 0h24v24H0z'/%3E %3Cpath fill='%23FA5151' d='M11.292 5.464c.183.183.42.41.7...
CSS
)布雷希特\\n布莱希特", "Brechtian":"a. (德国戏剧家和诗人)布莱希特的, 布莱希特风格的, 关于布莱希特的, 布莱希特戏剧(或戏剧技巧)的", "breck":"n. (Breck)人名;(英、法、挪)布雷克", "Breckenridge":"布雷肯里奇(在美国, 西经 98º56' 北纬 32º45')\\n布雷肯里奇(姓氏)", "breckinridge":" [人名] 布雷肯里奇; [地名] [美国] 布雷金里奇", "Brecknock":"=Brecon", "Brecknockshire":"布雷克诺克郡[英国威尔士原郡名]", "brecks":"(breck 的复数) n. (Breck)人...
Typescript
y; PWND pWnd = NULL; PTHREADINFO pHotKeyThread; BOOL bRet = FALSE; TRACE("Enter NtUserRegisterHotKey\n"); if (fsModifiers & ~(MOD_ALT|MOD_CONTROL|MOD_SHIFT|MOD_WIN)) // FIXME: Does Win2k3 support MOD_NOREPEAT? { WARN("Invalid modifiers: %x\n", fsModifiers); EngSetLastError(ERRO...
C
示例:" + i) } var adapter = ArrayAdapter(this, android.R.layout.simple_list_item_1, android.R.id.text1, data) listView.adapter = adapter } override fun onOptionsItemSelected(item: MenuItem): Boolean { if (android.R.id.home == item.itemId) { finish() return ...
Kotlin
Pointshop2.ItemFromCategoryFactory = class( "Pointshop2.ItemFromCategoryFactory", Pointshop2.ItemFactory ) local ItemFromCategoryFactory = Pointshop2.ItemFromCategoryFactory ItemFromCategoryFactory.Name = "Random Item from Category" ItemFromCategoryFactory.Icon = "pointshop2/favourite2.png" ItemFromCategoryFactory.Des...
Lua
presigned_request_with_reqwest(&presigned_request, body.clone()).await; send_presigned_request_with_hyper(presigned_request, hyper::Body::from(body.clone())).await; Ok(()) } /// This function demonstrates how you can convert a presigned request into a cURL command /// that you can run from your terminal of ch...
Rust
bytes/route") b.ReportMetric(0, "ns/op") }) } } func BenchmarkRandomPfx4Size(b *testing.B) { var startMem, endMem runtime.MemStats for _, k := range []int{1_000, 10_000, 100_000, 200_000, 500_000, 1_000_000} { tree := new(bart.Lite) runtime.GC() runtime.ReadMemStats(&startMem) b.Run(common.IntMap[k]...
Go
CLUDING * WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, * FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. * * See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. */ package com.microsoft.thrifty import com.micr...
Kotlin
i).getId()).getNeighbor().size()); if(isContains(G.getVertexMap().get(VertexSet.get(i).getId()).getNeighbor(),VertexSet.get(j).getId()))//如果在原始图G中i的邻居里有j { VertexSet.get(i).getNeighbor().add(VertexSet.get(j)); VertexSet.get(j).getNeighbor().add(VertexSet.get(i)); VertexSet.get(i).getNeighbor...
Java
#include <stdio.h> #include <string.h> long long bi[64][64], bi_rsum[64][64], bi_csum[64][64]; long long solve(long long n) { long long r; int i, k; for (k = 0; bi_rsum[31][k] <= n; k++); if (k > 0) n -= bi_rsum[31][k - 1]; for (r = 0; k > 0; k--) { for (i = k - 1; i < 30 && n >= bi_csum[i][k - 1]; i++); ...
C
<cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://www.google.com/about/jobs/locations/">"Locations&nbsp;— Google Jobs"</a>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20130930200600/http://www.google.com/about/jobs/locations/">Archived...
Dart
lution()); if (index > -1) { Automaton temp = AutomatonExtra.makeAnyStringFixed().concatenate(Automaton.makeString(character)).concatenate(AutomatonExtra.makeAnyStringFixed()); Automaton intersection = AutomatonExtra.intersection(a1, temp); if (intersection.isEmpty()) { debug_unsat_reason = "[handleEdgeL...
Java
MarkerId})` : 'none', 'marker-end': endMarkerId ? `url(#${endMarkerId})` : 'none', 'd': svgPath, } if (svgBezierCurve instanceof SvgElem) { // update... svgBezierCurve.setAttr(attr) } else { // init... this.svgBezierCurve = new SvgElem({ parentDom: parentDom, tag: 'path', style: styleCurv...
Typescript
lpers if GW.settings.BAG_ITEM_SIZE > 40 then GW.settings.BAG_ITEM_SIZE = 40 end -- create bank frame, restore its saved size, and init its many pieces local f = CreateFrame("Frame", "GwBankFrame", UIParent, "GwBankFrameTemplate") tinsert(UISpecialFrames, "GwBankFrame") f:ClearAllPoints...
Lua
ents; import org.apache.http.message.BasicNameValuePair; import org.apache.http.util.EntityUtils; import java.io.IOException; import java.net.URI; import java.net.URISyntaxException; import java.util.ArrayList; import java.util.List; class HttpRequestsDemo{ // 1. 创建HttpClient实例 public static CloseableHttpClie...
Java
using System; using System.Collections.Generic; using Microsoft.EntityFrameworkCore.ChangeTracking; using Microsoft.EntityFrameworkCore.Infrastructure; using gip.core.datamodel; namespace gip.mes.datamodel; public partial class VBUserACProject : VBEntityObject, IInsertInfo, IUpdateInfo { public VBUserACProject(...
C#
// SPDX-License-Identifier: GPL-3.0-or-later /** * Copyright (C) 2024-2025 LinChenjun */ #include <kernel/global.h> #include <log.h> #include <device/cpu.h> // apic_id #include <intr.h> // intr functions #include <io.h> // get_cr3 get_rsp #include <kernel/syscall.h> // sys_send_recv #incl...
C
0; __inf("3D_multi_present byte(%2.2x,%2.2x)\n",pbuf[index],pbuf[index+1]); return 0; } __s32 ParseEDID(void) { //collect the EDID ucdata of segment 0 __u8 BlockCount ; __u32 i,offset ; __inf("ParseEDID\n"); memset(Device_Support_VIC,0,sizeof(Device_Support_VIC)); memset(EDID_Buf,0,sizeof(EDID_Buf)); isH...
C
s];for(let o=1;o<t;o++){if(e[o][s]!==i){return n}}n+=i}return n}e.commonSubset=t;function n(e){return e.button!==0||e.altKey||e.ctrlKey||e.shiftKey||e.metaKey}e.nonstandardClick=n;function i(e,t){if(e.isConnected){console.warn("Measuring connected elements with `measureSize` has side-effects")}e.style.visibility="hidde...
JavaScript
_opcode == 0x38) { ret.opcode_len = 3; ret.primary_opcode = inst_bytes[++op_idx]; // get the next byte ret.modrm = inst_bytes[op_idx + 1]; } else if (ret.primary_opcode == 0x3A) { ret.opcode_len = 3; ret.primary_opcode = inst_bytes[++op_idx]; ret.modrm = inst_bytes[op_idx + 1]; ...
C++
hma4{position:relative;top:1.3vh;font-family:Arial,Helvetica,sans-serif;font-size:1.4vh;letter-spacing:.7px;text-decoration:none;font-style:normal;font-variant:small-caps;text-transform:none;font-weight:800;text-shadow:0 0 1px rgba(0,0,0,.6),0 0 1px rgba(0,0,0,.6),0 0 1px rgba(0,0,0,.6),0 0 1px rgba(0,0,0,.6)}.street1....
CSS
probe("kprobe/free_uts_ns", 8) if err != nil { return nil, err } // kprobe on cap_capable err = sb.mainProg.EnableKprobe("kprobe/cap_capable", 8) if err != nil { return nil, err } // guess err = guess(sb.mainProg) if err != nil { return nil, err } } log.Info("BPF Tracer ready") if wit...
Go
/** * @file printf.c * @author Joe Bayer (joexbayer) * @brief printf implementation userspace mirror of terminal.c * @version 0.1 * @date 2022-08-21 * * @copyright Copyright (c) 2022 * */ #ifdef __cplusplus extern "C" { #endif #include <args.h> #include <lib/syscall.h> #include <libc.h> /** * Writes the g...
C
there is an error in a TreeScheduler. // its useful for injecting logging or special error handling. func WithOnErrorFn(fn ErrorFunc) treeSchedulerOptFunc { return func(t *TreeScheduler) error { t.onErr = fn return nil } } // WithMaxConcurrentWorkers is an option that sets the max number of concurrent workers t...
Go
4InTransportFastEmpty] // Ldr = [netio.sys] // => Windows 10 v1607, Windows 10 v2004, Windows 11, Windows 10 v20H2 // netio.sys .text:0x45bc0, 0x4652 bytes // netio.sys .text:0x50ff0, 0x4dd3 bytes // netio.sys .text:0x52820, 0x4e8c bytes // netio.sys .text:0x50fb0, 0x4dd3 bytes // _t95(s...
C++
private const val FLAG_RESET: Int = 0x1 private const val FLAG_REMODEL: Int = 0x2 private const val FLAG_RECOLOUR: Int = 0x4 private const val FLAG_RETEXTURE: Int = 0x8 private const val FLAG_MIRROR_LOCAL_PLAYER: Int = 0x10 } } package net.rsprot.protocol.game.incoming.codec...
Kotlin
_number": 42, "verse_number": 14, "content": "Они распались только после того, как к ним явилось знание, по причине зависти и несправедливого отношения друг к другу. И если бы не было прежде Слова от твоего Господа об отсрочке до назначенного срока, то их спор был бы решен. Воистину, те, которые унаслед...
Dart
/** * PY32F07x USB2TTL * PA02(TX) --> RX * PA03(RX) --> TX * GND --> GND * * CAN * PB8 --> CAN_RX * PB9 --> CAN_TX * GND --> GND * */ #include "main.h" #include "py32f07x_bsp_printf.h" #include "py32f07x_bsp_clock.h" /** * Exch...
C
O1" || link_assignment == "SIAO2" ) { matrices_["Cocc0A"] = scfA->matrices()["Cocc"]; matrices_["Cvir0A"] = scfA->matrices()["Cvir"]; matrices_["J0A"] = scfA->matrices()["J"]; matrices_["K0A"] = scfA->matrices()["K"]; vectors_["eps_occ0A"] = scfA->vectors()["eps_occ"]; ve...
C++
bulky:not(:hover) { background-color: rgba(249, 249, 249, 0.15); } .il-maincontrols-slate.engaged[data-depth-level="4"] .btn-bulky:not(:hover), .il-maincontrols-slate.engaged[data-depth-level="4"] .link-bulky:not(:hover) { background-color: rgba(249, 249, 249, 0.1); } .il-maincontrols-slate-content > ul { margin...
CSS
nil { return 0, err } iNdEx = start + next if iNdEx < 0 { return 0, ErrInvalidLengthErrorpb } } return iNdEx, nil case 4: return iNdEx, nil case 5: iNdEx += 4 return iNdEx, nil default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } } panic("unreach...
Go
period**: ROC period (default: **10**) ### Normalized Average True Range (NATR) ```python ta.natr(high, low, close, period=14) ``` - **high**: High prices - **low**: Low prices - **close**: Close prices - **period**: Number of periods (default: **14**) ### Relative Volatility Index (RVI) ```python ta.rvol(data, stdev...
Markdown
repository](https://github.com/microsoft/DNS-Challenge). 3. Design the deep learning network using Deep Learning Toolbox. There are many network architectures to choose from. The two most common ones are convolutional neural networks, or CNN, ([[5]](#choi), [[6]](#isik)), and recurrent neural networks, or RNN ([[2]...
Markdown
from social.backends.oauth import BaseOAuth2 from django.conf import settings from ide.models.user import UserGithub from ide.models.project import Project import ide.utils.mailinglist as mailinglist class PebbleOAuth2(BaseOAuth2): name = 'pebble' AUTHORIZATION_URL = '{0}/oauth/authorize'.format(settings.SOCIA...
Python
"sceVshBridge",0xFD304180,sceVshBridge_FD304180 #endif #ifdef F_sceVshBridge_0135 IMPORT_FUNC "sceVshBridge",0xFDDE5CA3,sceVshBridge_FDDE5CA3 #endif
Assembly
文件中,rewriteArgument函数主要用于处理命令行参数,以便让命令行程序能够正常运行。函数会根据参数的类型和内容,对其进行修改,如添加引号、转义特殊字符等等。这样可以保证传递给命令行程序的参数符合其所需的格式和规范,从而确保程序能够正常运行。 ### wrapExpr wrapExpr函数的作用是将一个表达式包装成一个函数调用表达式。 具体而言,wrapExpr函数接收一个ast.Expr类型的参数,这个参数表示一个表达式,可能是一个变量名、常量、函数调用等等。wrapExpr函数会将这个表达式包装成一个函数调用表达式,并返回一个新的ast.Expr类型的节点表示这个函数调用。 函数调用表达式通常的形式是fun...
Markdown
if (!colorPattern.test(color)) { throw new Error(`Color ${color} does not match ^#[0-9a-f]{6}$`); } } public toJSON() { return { type: this.type, attrs: { color: this.color } }; } } import { Operator } from '../index'; import interval from '../sources/interval'; i...
Typescript
CommandBuffer command = CommandBufferPool.Get(mc_profilerTag); using (new ProfilingScope(command, m_profilingSampler)) { command.Blit(null, m_colorRenderTargetIdentifier, m_targetShowLightGridMaterial, 0); } cont...
C#
WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE // POSSIBILITY OF SUCH DAMAGE. // // Authors: sameeragarwal@google.com (Sameer Agarwal) #include "Eigen/Dense" #include "benchmark/benchmark.h" #include "ceres/invert_psd_matrix.h" namespace ceres { namespace internal { template <int kSize> void BenchmarkF...
C++
Equal(1, rows[0].Column2); Assert.Equal("Github", rows[1].Column1); Assert.Equal(2, rows[1].Column2); } ``` #### 4. Query-ondersteuning LINQ-extensie First/Take/Skip ...enz. Query First ```csharp var row = MiniExcel.Query(path).First(); Assert.Equal("HelloWorld", row.A); // or using (var stream = File.OpenR...
Markdown
xml"&&Oe[e.namespaceURI]):!1},b=function(e){$(n.removed,{element:e});try{ee(e).removeChild(e)}catch{Nt(e)}},z=function(e,t){try{$(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch{$(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),e==="is")if(k||ne)try{b(t)}catch{}else try{t.setAttribute(e,"")}catch{}...
JavaScript
s d %s f %s", "A", "C", "E", "G")) .toBe("A b C d E f G")) it("string with array of args", () => expect(sprintf("Hi:%s", [])).toBe("Hi:")) }) class TestClass { testMethod(): string { var x = "x"; var y = "y"; var z = "z"; z += "Z"; z += x; var a = "abcdef"...
Typescript
); if ( header.TextureCoordinateChannels != null && header.TextureCoordinateChannels.Length > 0 ) { var tex1 = header.TextureCoordinateChannels[ 0 ][ triangle.A ]; var tex2 = header.TextureCoordinateChannels[ 0 ][ t...
C#
} } // // Range enumrate all entries. // func (m *PortMap) Range(f func(e *PortEntry)) { m.mutex.RLock() defer m.mutex.RUnlock() for _, e := range m.entries { f(e) } } // // PortMapDPKey is dp key table // type PortMapDPKey struct { mutex sync.Mutex entries map[string]*PortKey } // // NewPortMapDPKey re...
Go
add_to_frac: //proc mov (%ebp,%esi),%eax xorw %ax,%ax add_to_frac_2: add %eax,(%ebp,%edi) mov frac64(%ebp,%esi),%eax adc %eax,frac64(%ebp,%edi) mov frac32(%ebp,%esi),%eax adc %eax,frac32(%ebp,%edi) simple_return: ret ALIGN //add_to_frac endp // ******************************************************************...
Assembly
pt.bystander = "Masum" pt.murderer = "Katil" pt.spectator = "İzleyici" pt.knife = "Bıçak" pt.magnum = "Magnum" pt.gun = "Silah" pt.hands = "Eller" pt.teamSpectators = "İzleyiciler" pt.teamPlayers = "Oyuncular" pt.teamAss = "Pasta" pt.killedTeamKill = "{player} bir masumu öldürdü." pt.killedMurderer = "{player} kati...
Lua
z, Money cost); void ShowFeederIncomeAnimation(int x, int y, int z, Money transfer, Money income); #endif /* TEXTEFF_HPP */ /* * This file is part of OpenTTD. * OpenTTD 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 Foun...
C++
} _ => unreachable!(), }; abi.emit_stack_pre_adjust(ctx); assert!(inputs.len() == abi.num_args()); for (i, input) in inputs.iter().enumerate() { let arg_reg = put_input_in_reg(ctx, *input, NarrowValueMode::None); abi.e...
Rust
TEMPORARY_SOURCES).unwrap(), ); // Create the `log` directory if it doesn't exist, but don't remove it if it does exist! fs::create_dir(env::var(constants::RADULA_ENVIRONMENT_DIRECTORY_LOGS).unwrap()); // Remove cross log file if it exists fs::remove_file(env::var(constants::RADULA_ENVIRONMENT_FIL...
Rust
50 vbroadcasti32x2 (%rax), %xmm19 {%k1} # CHECK-NEXT: - - - - - 1.00 - - vbroadcasti32x2 %xmm16, %xmm19 {%k1} {z} # CHECK-NEXT: - - - 0.50 - 0.50 0.50 0.50 vbroadcasti32x2 (%rax), %xmm19 {%k1} {z} # CHECK-NEXT: - - - - - 1.00 ...
Assembly
NoDestRead ? 0 : *dest; u32 const invta = 0x100 - ta; u32 const r = ((palbase[(pix >> 16) & 0xff] >> SrcShiftR) * ta + dest_r(dpix) * invta) >> 8; u32 const g = ((palbase[(pix >> 8) & 0xff] >> SrcShiftG) * ta + dest_g(dpix) * invta) >> 8; u32 const b = ((palbase[(pix >> 0) & 0xff] >> SrcShif...
C++
33ccd: 0x6cf13620, 0x33cce: 0x6cf13820, 0x33ccf: 0x6cf13a20, 0x33cd0: 0x6cf13c20, 0x33cd1: 0x6cf13e20, 0x33cd2: 0x6cf14020, 0x33cd3: 0x6cf14220, 0x33cd4: 0x6cf14420, 0x33cd5: 0x6cf14620, 0x33cd6: 0x6cf14820, 0x33cd7: 0x6cf14a20, 0x33cd8: 0x6cf14c20, 0x33cd9: 0x6cf14e20, 0x33cda: 0x6cf15020, 0x33cdb: 0x6cf15220, 0x3...
Go