content
stringlengths
2
6.21k
label
stringclasses
16 values
= $convert.base64Decode( 'Ch1QdWd2U2Vhc29uUHVibGlzaGVyU2t1Q29udGVudBIUCgV0aXRsZRgBIAEoCVIFdGl0bGUSVg' 'oFaXRlbXMYAiADKAsyQC5iaWxpYmlsaS5hcHAudmlld3VuaXRlLmNvbW1vbi5QdWd2U2Vhc29u' 'UHVibGlzaGVyU2t1Q29udGVudEl0ZW1SBWl0ZW1z'); @$core.Deprecated('Use pugvSeasonPublisherSkuContentItemDescriptor ...
Dart
using System; using Server; using Server.Items; using Server.Mobiles; namespace Server.Engines.Quests.Samurai { public class FindHaochiObjective : QuestObjective { public override object Message { get { // Speak to Daimyo Haochi. return 1063026; } } public FindHaochiObjective() { } p...
C#
nfigBasic = ` resource "ibm_compute_vm_instance" "subnetvm1" { hostname = "subnetvm1" domain = "example.com" os_reference_code = "DEBIAN_9_64" datacenter = "wdc04" network_speed = 100 hourly_billing = true private_network_only = false cores = 1 memory = 1024 disks = [25] loca...
Go
ar data []map[string]any var count int64 s, err := GetSqlite() if err != nil { return data, 0, err } defer s.Close() var limits []int64 if p >= 0 && limit >= 0 { limits = []int64{0, limit} if p > 1 { limits[0] = (p - 1) * limit limits[1] = limit } } if search != "" { count, err = s.Where("name...
Go
637-6.458-1.734zM22.531 27.222c-3.534-2.354-5.711-6.145-5.976-10.359 2.035 1.013 4.237 1.523 6.442 1.523 2.025 0 4.045-0.455 5.949-1.314-0.357 4.334-2.845 8.064-6.415 10.15z' fill='red'%3E%3C/path%3E%3C/svg%3E%0A"); } a.internal-link[href$="#Actions"][title="Duration or Frequency"] { background-image: url("data:imag...
CSS
Other database error console.error(`❌ DATABASE ERROR: ${context} - ${error.message}`); return { isDuplicate: false, message: error.message, shouldContinue: false, }; } return { isDuplicate: false, message: 'Success', shouldContinue: true, }; } /** * Safe achievement u...
JavaScript
rn leaf_node end end end local node_idle = children[8] new_running_child_nodes[node_identifier] = node_idle return node_idle end BtRenegadeSniperSelectorNode.run = function (self, unit, breed, blackboard, scratchpad, action_data, dt, t, node_data, running_child_nodes) local node_identifier = self.identifi...
Lua
t; // Assert diacriticsMapper.Should().BeSameAs(diacriticsMapperMock.Object); } [Fact] public void ShouldReturnDefaultDiacriticsMapperWhenCallCurrent() { // Act var diacriticsMapper = DiacriticsMapper.Current; // Assert ...
C#
--inline .bx--list-box__field{max-width:30rem}.bx--dropdown--inline .bx--list-box__menu{min-width:18rem;max-width:30rem}.bx--list-box__field{display:inline-block;padding:0;background:none;border:0;cursor:pointer;appearance:none;width:100%;position:relative;display:inline-flex;align-items:center;height:calc(100% + 1px);...
HTML
// SPDX-License-Identifier: GPL-2.0-only // Copyright 2014 Cisco Systems, Inc. All rights reserved. #include <linux/kernel.h> #include <linux/errno.h> #include <linux/types.h> #include <linux/pci.h> #include <linux/delay.h> #include "vnic_dev.h" #include "vnic_intr.h" void svnic_intr_free(struct vnic_intr *intr) { ...
C
rn new InstanceData(this.rootActivity); } public Activity RootActivity { [TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")] get { return this.rootActivity; } [Tar...
C#
Shape = '◦' -- Alternative: '◉' vim.g.undotree_SetFocusWhenToggle = 1 end, }, { 'willothy/flatten.nvim', lazy = false, priority = 1001, config = { window = { open = 'alternate' }, hooks = { block_end = function() require('toggleterm').toggle() end,...
Lua
m_plater->clone_selection(); }, "", nullptr, [this](){return can_clone(); }, this); editMenu->AppendSeparator(); append_menu_item(editMenu, wxID_ANY, _L("Duplicate Current Plate"), _L("Duplicate the current plate"),[this, handle_key_event](wxCommandEvent&) { ...
C++
no-referrer"> <title>Tracker Radar Wiki - vz-def53894-27a.b-cdn.net</title> <link rel="stylesheet" href="../assets/css/style.min.css"> <link rel="icon" href="../favicon.ico" type="image/x-icon" /> <script src='../assets/js/vendor/lunr.js' defer></script> <script src='../assets/js/search.js' d...
HTML
ntical, except only mandatory replacements could be specified, and field 5 was absent.</p></div> </div> <h2 id="_bugs">BUGS</h2> <div class="sectionbody"> <div class="paragraph"><p>This is a documentation "bug": it&#8217;s not currently clear what should be done in the case of ligatures (such as <em>fi</em>) which may ...
HTML
уванням QGC встановить останню стабільну версію PX4, але ви можете вибрати бета-версію або власні версії, якщо потрібно. Відповідні теми: - [Loading Firmware](../config/firmware.md) ## Вибір та налаштування каркасу Цей розділ пояснює, як налаштувати тип транспортного засобу (багатокоптер), конкретну геометрію двигу...
Markdown
4 || response.body.isEmpty) { return null; } try { return jsonDecode(response.body); } catch (e) { return null; } } else if (response.statusCode == 401) { throw SpotifyAuthException('授权已过期或无效', code: '401'); } else { throw Spotify...
Dart
h3> <p> 坚持文斗,反对武斗。 </p> <p> 夺得权,仅仅是万里长征的第一步,无产阶级革命派万万不可松懈革命的斗志,必须及时识破走资本主义道路当权派和“保”字派的一切新阴谋,继续彻底批判资产阶级反动路线及其流毒,必须将革命进行到底。 </p> <p> 凡贵阳地区无产阶级革命派已经夺了权的部门、单位,迅速按系统、行业建立各级革命委员会,组成临时权力机构。各级的革命委员会须报经上级革命委员会审查批准。凡发生右派和“保”字派夺权的单位,一律无效。 </p> <p> 各专区(州)和县的夺权斗争,正处于严重的决战阶段,各阶级各派政治势力都在争夺。省革命委员会将派出观察员,坚决支持和...
HTML
data-v-7209b463]{color:#bbbfc8}.le-radio-group[data-v-7209b463]{margin-bottom:17px}.le-coupon-num[data-v-7209b463]{width:336px;height:92px;background:#f3f5f7;border-radius:4px;padding:0 16px}.coupon[data-v-6204a098]{overflow:hidden}.le-coupon-box[data-v-6204a098]{width:375px;padding:10px 10px 5px 10px;background:#fff}....
CSS
digits: CharArray, dp: HashMap<String, Int>, ): Int { if (i == digits.size) { return if (sum > 0 && prod % sum == 0) { 1 } else { 0 } } val str = "$i - $tight - $sum - $prod" if (dp.containsKey(str)) { ...
Kotlin
getStructStorageBuffer](Material.md#getstructstoragebuffer) #### Defined in [src/materials/Material.ts:239](https://github.com/Orillusion/orillusion/blob/main/src/materials/Material.ts#L239) ___ ### getUniformBuffer ▸ **getUniformBuffer**(`str`): `GPUBufferBase` #### Parameters | Name | Type | | :------ | :-----...
Markdown
cs{color:#999;font-weight:bold;font-style:italic}.highlight .gd{color:#000;background-color:#fdd}.highlight .gd .x{color:#000;background-color:#faa}.highlight .ge{font-style:italic}.highlight .gr{color:#a00}.highlight .gh{color:#999}.highlight .gi{color:#000;background-color:#dfd}.highlight .gi .x{color:#000;background...
CSS
6); char_array_4[3] = char_array_3[2] & 0x3f; for (i = 0; (i < 4); i++) ret += base64_chars[char_array_4[i]]; i = 0; } } if (i) { for (j = i; j < 3; j++) char_array_3[j] = '\0'; char_array_4[0] = (char_array_3[0] & 0xfc) >> 2; char_array_4[1] = ((char_array_3[0] & 0x03)...
C
time_generated", "false", 0, FLB_TRUE, offsetof(struct flb_azure, time_generated), "If enabled, the HTTP request header 'time-generated-field' will be included " "so Azure can override the timestamp with the key specified by 'time_key' " "option." }, /* EOF */ {0} }; struct flb_output_...
C
0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1h5.5z'/%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){.mapboxgl-ctrl button.mapboxgl-ctrl-fullscreen .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M24...
CSS
t %d Erfahrung. (-%d Schlachtzugsmalus)"; COMBATLOG_XPGAIN_QUEST = "Ihr bekommt %d Erfahrung. (%s EP-Bonus durch %s)"; COMBATLOG_XPLOSS_FIRSTPERSON_UNNAMED = "Ihr verliert %d Erfahrung."; COMBATTEXT_SUBTEXT = "Diese Einstellungen ermöglichen Euch, den schwebenden Kampftext anzupassen, der in der Mitte des Bildschirms a...
Lua
.nameShow, // this.id, // this.type, // this.portrait, // this.levelId, // this.isLike, // this.iconinfo, // this.tshowIcon, // this.newTshowIcon, // this.isBawu, // this.bawuType, // this.gender, // this.hasConcerned, // this.fansNickname, /...
Dart
execute_with_policy(usecase, &policy, &ctx) .await .map(|event| HttpResponse::Ok().json(APIResponse::new(event))) .map_err(|e| match e { UseCaseErrorContainer::Unauthorized(e) => NettuError::Unauthorized(e), UseCaseErrorContainer::UseCase(e) => handle_error(e), })...
Rust
INT32 nCyclesDone[3] = { 0, 0, 0 }; ZetOpen(0); for (INT32 i = 0; i < nInterleave; i++) { CPU_RUN(0, Zet); if (i == (nInterleave - 1) && *nmi_mask) ZetNmi(); M6502Open(0); CPU_RUN(1, M6502); if (i == (nInterleave - 1)) M6502SetIRQLine(M6502_INPUT_LINE_NMI, CPU_IRQSTATUS_AUTO); M6502Close(); M6502Op...
C++
feredImage<float> centre_quality(binned_image_size.x, binned_image_size.y); centre_quality.fill(0.f); BufferedImage<float> blob_radius(binned_image_size.x, binned_image_size.y); blob_radius.fill(0.f); BufferedImage<float> micrograph; micrograph.read(image_directory + image_name + ".mrc"); micrograph =...
C++
permission of using the device. * - CONSTRAINT_NOT_SATISFIED: The settings are illegal (on browsers in early versions). * - PluginNotInstalledProperly: A screen-sharing request is made with no plugin installed or with a wrong [[extensionId]] on the Chrome browser. * - UNDEFINED: Undefined error. * ...
Typescript
}, "0ebf1791-52c9-42e8-9428-ff415274b2a4": {"id": "0ebf1791-52c9-42e8-9428-ff415274b2a4", "message": {"id": "0ebf1791-52c9-42e8-9428-ff415274b2a4", "author": {"role": "assistant", "name": null, "metadata": {}}, "create_time": 1720813978.069281, "update_time": null, "content": {"content_type": "text", "parts": [""]}, "s...
HTML
/ mflr r0 /* 804FDC60 004F91A0 38 A0 00 06 */ li r5, 6 /* 804FDC64 004F91A4 90 01 00 34 */ stw r0, 0x34(r1) /* 804FDC68 004F91A8 38 81 00 08 */ addi r4, r1, 8 /* 804FDC6C 004F91AC 93 E1 00 2C */ stw r31, 0x2c(r1) /* 804FDC70 004F91B0 93 C1 00 28 */ stw r30, 0x28(r1) /* 804FDC74 004F91B4 88 03 00 02 */ lbz r0, 2(r...
Assembly
2, nil, nil, }, &TreeNode{ 3, nil, nil, }, } q := &TreeNode{ 1, &TreeNode{ 2, nil, nil, }, &TreeNode{ 3, nil, nil,...
Go
F, 0x57, 0x5F # 8058d898 .byte 0x53, 0x57, 0x49, 0x54 # 8058d89c .byte 0x43, 0x48, 0x5F, 0x4F # 8058d8a0 .byte 0x4E, 0x00, 0x53, 0x45 # 8058d8a4 .byte 0x5F, 0x4F, 0x4A, 0x5F # 8058d8a8 .byte 0x4C, 0x56, 0x5F, 0x41 # 8058d8ac .byte 0x52, 0x52, 0x4F, 0x57 # 8058d8b0 .byte 0x5F, 0x53, 0x57, 0x49 # 8058d8b4 .byte 0x54, 0x4...
Assembly
.space 32*4 /* XXX Should be linked to number of interrupts */ _C_LABEL(sintrcnt): .space 32*4 /* XXX Should be linked to number of soft ints */ _C_LABEL(eintrcnt): #else /* IRQSTATS */ /* Dummy entries to keep vmstat happy */ .text .globl _C_LABEL(intrnames), _C_LABEL(eintrnames), _C_LABEL(intrcnt), _C...
Assembly
; Generated with ikazuchi 1.0 by riidefi ; Object File: SimpleTimerObj ; Segments: ; .text: 0x80227b6c -> 0x80227de8 ; .data: 0x8059fca8 -> 0x8059fe00 (8059fd48 -> 8059fe00 (size 0184/0x00b8) is greedily claimed anonymous data) ; .sbss: 0x806b5830 -> 0x806b5838 (806b5834 -> 806b5838 (size ...
Assembly
技术大牛一起,综合学习,共同进步。 4. 大前端团队,跨端跨技术栈的能力要求,π 型成长空间。 </details> --- 以下岗位信息每天在公众号【developDaily】同步更新,欢迎关注! <p><img alt="developDaily" src="./developDaily.png"></p> [腾讯](#腾讯) | [蚂蚁集团](#蚂蚁集团) | [阿里云](#阿里云) | [淘天集团](#淘天集团) | [字节跳动](#字节跳动) | [滴滴](#滴滴) | [百度](#百度) | [网易](#网易) | [京东](#京东) | [小红书](#小红书) | [SHEIN](#SHEIN) | [美团]...
Markdown
40270</td> </tr> <tr> <td>1943</td> <td><a href="//en.wikipedia.org/wiki/Bidin%27_My_Time" title="Bidin' My Time">Bidin' My Time</a> / <a href="//en.wikipedia.org/wiki/I_Got_Rhythm" title="I Got Rhythm">I've Got Rhythm</a></td> <td>Decca 23310</td> <td>1956/1955</td> <td>Maybe I'll Come Back / Over the Rainbow</td> <t...
HTML
path282 = path226.shift(const Offset(32, 0)); gFillType = path226.fillType; path342 = path226.shift(const Offset(32, 0)); gFillType = path226.fillType; path603 = path226.shift(const Offset(32, 0)); allPaths.add(path226); } void pathOps227() { gBounds = path227.getBounds(); allPaths.add(path227); } vo...
Dart
query":"mutation { podLog(request:` + mutation + ` )}"}`) return payload, nil } package events import ( "context" "encoding/base64" "encoding/json" "errors" "fmt" "regexp" "strconv" "strings" "subscriber/pkg/types" "github.com/argoproj/argo-workflows/v3/pkg/apis/workflow/v1alpha1" v1alpha13 "github.com/a...
Go
ummary> /// <param name="incomingHandlerBuilder">An <see cref="IWampServerProxyIncomingMessageHandlerBuilder{TMessage,TRawClient}"/> /// used in order to build incoming handler for callbacks.</param> public WampServerProxyOutgoingMessageHandlerBuilder(IWampServerProxyIncomingMessageHandlerBuilde...
C#
list.getRange(-3)).to.eql([1, 4, 5]); expect(list.length).to.equal(7); }); it('#insert()', () => { let list = new ObservableList(null, { sorted: true }); expect(() => { list.insert(0, 1); }).to.throw(TypeError); }); it('#insert() (2)', () => { let list = new ObservableList([1, 2, 3, 2, 1]); expec...
Typescript
> </div> </div> <div id="header"> <div id="header-inner"> <a href="/" title="Home" rel="home" id="logo"> <img src="https://spdx.org/sites/cpstandard/files/logo_spdx_250.png" alt="Home" /> </a> <div id="name-and-slogan"> <div id="site-name"> <h1><a href="/" title...
HTML
with .Get "class" }}class="{{.}}"{{ end }}> {{ with .Get "link"}}<a href="{{.}}">{{ end }} <img src="{{ .Get "src" }}" {{ if or (.Get "alt") (.Get "caption") }}alt="{{ with .Get "alt"}}{{.}}{{else}}{{ .Get "caption" }}{{ end }}"{{ end }} /> {{ if .Get "link"}}</a>{{ end }} {{ if or (...
Markdown
}), cmp.AllowUnexported( NumInfo{}, ), cmpopts.IgnoreUnexported( token.Pos{}, ), cmpopts.EquateEmpty(), } func TestNumErrors(t *testing.T) { testCases := []string{ `0x`, `0o`, `0b`, `0_`, "0128", "e+100", ".p", ``, `"`, `"a`, `23.34e`, `23.34e33pp`, } for _, tc := range testCases {...
Go
(&mut self) -> Result<()> { try!(self.pong()); Ok(()) } fn process_pong(&mut self) -> Result<()> { // TODO Ok(()) } fn process_message(&mut self, args: &MessageArg, message: Vec<u8>) -> Result<()> { if let Some((Some(max), delivered)) = self.dispatch_message(arg...
Rust
Name</label> <input type="text" class="form-control" id="lastname" name="lastname" value="{{student.last_name}}"> </div> <div class="form-group"> <label for="phone">Phone Number</label> <input type="number" class="form-control" id="phone" name="phone" value="{{stude...
HTML
item(0); } catch (JAXBException e) { try{ db = dbf.newDocumentBuilder(); _xmlNodePresentation = db.newDocument(); } catch(Exception ignored){} } } return _xmlNodePresentation; } public void set_xmlNodePresentation(Node _xmlNodePresentation) { this._xmlNodePresentation = _x...
Java
ai, Zhaoyang (2020). CAS CAS-ESM2.0 model output prepared for CMIP6 CMIP. Earth System Grid Federation. doi:https://doi.org/10.22033/ESGF/CMIP6.1944</td> <td>CC BY 4.0</td> <td><a href="https://doi.org/10.22033/ESGF/CMIP6.1944">https://doi.org/10.22033/ESGF/CMIP6.1944</a></td> </tr> <tr> <td>CAS-ESM2-0</td> <td>CAS</td...
HTML
ger.warn(specialKey + " location starts from -1 (will be ignored): " + loc); continue; } long size = withMinLength(loc.size()); drawPixels(getSpecialsColor(specialKey), start, size, additionalGap); } } } Optional<Long> ep = getEntryPoint(); if (ep.isPresent()) { ...
Java
[4.4 处理器子系统调优](chap4/处理器子系统调优.md) - [4.5 虚拟内存子系统调优](chap4/虚拟内存子系统调优.md) - [4.6 硬盘子系统调优](chap4/硬盘子系统调优.md) - [4.7 网络子系统调优](chap4/网络子系统调优.md) ``` 然后,运行`gitbook init`,创建如下的目录结构: ``` ▾ chap1/ indice.md io子系统.md Linux内存结构.md Linux文件系统.md Linux进程管理.md network.md README.md ▾ chap2/ ▾ bt...
Markdown
HAT, FN, SIG, OPCLASS, OPNUM_PAIR, OPNUM_PAIR_B, ...) // WHAT(FN, SIG, OPCLASS, OPNUM_PAIR, OPNUM_PAIR_B) EVAL(FX_48(WHAT, FN, SIG, OPCLASS, OPNUM_PAIR, __VA_ARGS__)) // #define FX_50(WHAT, FN, SIG, OPCLASS, OPNUM_PAIR, OPNUM_PAIR_B, ...) // WHAT(FN, SIG, OPCLASS, OPNUM_PAIR, OPNUM_PAIR_B) EVAL(FX_49(WHAT, FN, SIG,...
Java
.426,1.877,0.426c0.767,0,1.384-0.14,1.857-0.426 c0.471-0.285,0.833-0.663,1.088-1.14c0.255-0.479,0.426-1.023,0.516-1.641c0.086-0.614,0.131-1.249,0.131-1.899 c0-0.653-0.045-1.273-0.131-1.866c-0.09-0.592-0.261-1.115-0.516-1.57c-0.255-0.451-0.618-0.812-1.088-1.08 C213.734,12.982,213.117,12.849,212.35,12.849"/> <path fil...
HTML
a_g++ </PRE> <P>it will simply wait, expecting commands from the keyboard. Typically you should put commands in an input script and use I/O redirection, e.g. </P> <PRE>spa_g++ < in.file </PRE> <P>For parallel environments this should also work. If it does not, use the '-in' command-line switch, e.g. </P> <PRE>spa_g...
HTML
| | 情感分析 | 如何识别一篇文章或评论中的情感? | | 文本生成 | 如何使用GPT-3.5生成一篇关于旅游景点的文章? | | 语言翻译 ...
Markdown
:5px}.wprm-recipe-tag-term.wprm-recipe-tag-image-align-top{flex-direction:column}.wprm-recipe-tag-term.wprm-recipe-tag-image-align-top .wprm-recipe-tag-term-image{margin-bottom:5px}.wprm-recipe-tag-term.wprm-recipe-tag-image-align-bottom{flex-direction:column-reverse}.wprm-recipe-tag-term.wprm-recipe-tag-image-align-bo...
HTML
y contains following keys. - scores (Tensor): Classification scores, has a shape (num_instance, ) - labels (Tensor): Labels of bboxes, has a shape (num_instances, ). - bboxes (Tensor): Has a shape (num_instances, 4), the last dimension...
Python
:0050789"],"Edge":["GO:0008150","GO:0065007"],"Name":["regulation of biological process"],"Sig":["white"],"Link":[""],"gNum":[""],"FDR":[""]},{"gID":["GO:0050896"],"Edge":["GO:0008150"],"Name":["response to stimulus"],"Sig":["white"],"Link":[""],"gNum":[""],"FDR":[""]},{"gID":["GO:0009987"],"Edge":["GO:0008150"],"Name"...
HTML
. /// Returned task completes once state Ready was seen. If the deadline is reached, /// or channel enters the Shutdown state, the task is cancelled. /// There is no need to call this explicitly unless your use case requires that. /// Starting an RPC on a new channel will request connect...
C#
{ inset-inline-start: 12rem; } .md\:start-5 { inset-inline-start: 1.25rem; } .md\:start-52 { inset-inline-start: 13rem; } .md\:start-56 { inset-inline-start: 14rem; } .md\:start-6 { inset-inline-start: 1.5rem; } .md\:start-60 { inset-inline-start: 15rem; } .md\:start-64 ...
CSS
hName, commitMessage, pullRequestBody string if isEKSDistroUpgrade(projectName) { headBranchName = fmt.Sprintf("update-eks-distro-latest-releases-%s", branchName) baseBranchName = branchName commitMessage = "Bump EKS Distro releases to latest" pullRequestBody = constants.EKSDistroUpgradePullRequestBody // C...
Go
using UnityEngine; using System.Collections; namespace PeMap { public class MapRunner : MonoBehaviour { static bool updateTile = false; Pathea.PeTrans mTrans = null; public static bool HasMaskTile { get { return updateTile; }...
C#
lel, so the fsync may complete before the write is issued to the storage. The same is also true for previously issued writes that have not completed prior to the fsync. #[derive(Debug)] pub struct Fsync { fd: types::Target, ;; /// The `flags` bit mask may contain either 0, for a normal f...
Rust
0) **(Also a new direction to optimize NN,DeePhi Tech Startup)** :star::star::star::star: ## 2.3 Unsupervised Learning / Deep Generative Model **[27]** Le, Quoc V. "**Building high-level features using large scale unsupervised learning**." 2013 IEEE international conference on acoustics, speech and signal processing....
Markdown
= "chktex", to_stdin = true, from_stderr = true, args = { -- Only current file "-I", -- Disable printing version information to stderr "-q", -- Format output "-f%l:%c:%d:%k:%n:%m\n", }, format = "line", ...
Lua
teDb (); var r = db.ExecuteScalar<int> ("SELECT SUM(Two) FROM TestTable"); Assert.AreEqual (Count * 2, r); } [Test] public void SelectSingleRowValue () { var db = CreateDb (); var r = db.ExecuteScalar<int> ("SELECT Two FROM TestTable WHERE Id = 1 LIMIT 1"); Assert.AreEqual (2, r); } ...
C#
/* * Copyright (c) 2008-2020 Stefan Krah. 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, this list of co...
C
3][3], m[3][3], 1e-9); EXPECT_NEAR(m_out[3][4], m[3][4], 1e-9); EXPECT_NEAR(m_out[3][5], m[3][5], 1e-9); EXPECT_NEAR(m_out[4][0], m[4][0], 1e-9); EXPECT_NEAR(m_out[4][1], m[4][1], 1e-9); EXPECT_NEAR(m_out[4][2], m[4][2], 1e-9); EXPECT_NEAR(m_out[4][3], m[4][3], 1e-9); EXPECT_NEAR(m_out[4][4], m[4][4], 1e-...
C++
--> C[经济性分析] C --> D[安全校验] ``` • 实现混合整数规划模型(PuLP库) • 集成遗传算法优化调度方案 • 参考网页1的模块化设计原则,每个算法独立封装 #### 4. API服务模块 采用FastAPI构建RESTful接口,参考网页2的现代API设计: ```python @app.post("/api/v1/schedule") async def create_schedule(schedule: ScheduleSchema): """电力调度接口""" # 集成JWT认证 # 支持异步任务处理 return {"task_id": task_id} ...
Markdown
// ASR (register) T1 case ARM::tBIC: // BIC (register) T1 case ARM::tEOR: // EOR (register) T1 case ARM::tLSLri: // LSL (immediate) T1 case ARM::tLSLrr: // LSL (register) T1 case ARM::tLSRri: // LSR (immediate) T1 case ARM::tLSRrr: // LSR (register) T1 case ARM::tMUL: // MUL T1 case ARM::tMVN: ...
C++
import javax.validation.constraints.Size import javax.validation.Valid import io.swagger.v3.oas.annotations.media.Schema /** * * @param bepa * @param cepa * @param depa * @param epa * @param fepa * @param gepa */ data class Apa( @Schema(example = "null", required = true, description = "") @get:...
Kotlin
""; if (msg.getTag() == BmobConfig.TAG_ADD_CONTACT) {// 添加好友 // msgTag = BmobConfig.TAG_ADD_CONTACT; alert = msg.getBelongUsername()+ "请求添加你好友!"; } else if (msg.getTag() == BmobConfig.TAG_ADD_AGREE) {// 自己同意添加好友 // msgTag = BmobConfig.TAG_ADD_AGREE; json.put(BmobConstant.PUSH_KEY_TAG, BmobConfig.TAG...
Java
ement("INSERT INTO accounts_info (accId, worldId, gamePointspd) VALUES (?, ?, ?)")) { psu.setInt(1, getClient().getAccID()); psu.setInt(2, getWorld()); psu.setInt(3, 0); psu.executeUpdate(); ...
Java
/****************************************************************************** * * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved. * * This program is free software; you can redistribute it and/or modify it * under the terms of version 2 of the GNU General Public License as * published by the ...
C
I = Q; Object.defineProperty(A, I, { enumerable: !0, get: function() { return B[Q] } }) } : function(A, B, Q, I) { if (I === void 0) I = Q; A[I] = B[Q] }), Yb9 = K1 && K1.__exportStar || function(A, B) { for (var Q in A) if (Q !== "def...
JavaScript
using AcidicGUI.Layout; using AcidicGUI.Widgets; using Microsoft.Xna.Framework; using SociallyDistant.Core.Core.Scripting; using SociallyDistant.Core.Programs; using SociallyDistant.Core.Shell.Windowing; using SociallyDistant.Core.UI.Terminal; using SociallyDistant.UI.Windowing; namespace SociallyDistant.UI.Tools.Term...
C#
rator &it, iterator end); /// parse an STRING bool parseSTRING(iterator &it, iterator end); /// parse an FLOAT bool parseFLOAT(iterator &it, iterator end); /// Parse a long int (64 bits) bool parseLONG_INT(iterator &it, iterator end); /// Parse a naked hexa (ie. without the '0x' prefix) bool parseNAKED_HEXA(ite...
C
log.log(SEVERE, "Index for vertex normal=" + vertexIndex + " is out of the current range of vertex normal values 1 to " + verticesN.size() + ", ignoring"); } } if (fv.v == null) { log.log(SEVERE, "Can't add vertex to face with missing vertex!...
Java
x/libs/jquery/3.2.1/jquery.min.js"></script> <script src="static-assets/typeahead.bundle.min.js"></script> <script src="static-assets/highlight.pack.js"></script> <script src="static-assets/URI.js"></script> <script src="static-assets/script.js"></script> </body> </html> <!DOCTYPE html> <html lang="en"> <head> <me...
HTML
/* $NetBSD: deflate.c,v 1.22 2015/03/26 17:40:16 prlw1 Exp $ */ /* $FreeBSD: src/sys/opencrypto/deflate.c,v 1.1.2.1 2002/11/21 23:34:23 sam Exp $ */ /* $OpenBSD: deflate.c,v 1.3 2001/08/20 02:45:22 hugh Exp $ */ /* * Copyright (c) 2001 Jean-Jacques Bernard-Gundol (jj@wabbitt.org) * * Redistribution and use in sourc...
C
Listener<T>, scope?: any): ITypeSignal<T>; public removeAll(): ITypeSignal<T>; public fire(arg: T): ITypeSignal<T>; private hasSlot(listener, scope); } } declare module Trasys.Signals { class Signal implements ISignal { private wrapped; public add(listener: IListener, sco...
Typescript
0, 64.0, -18.0); let entity = w .create_entity() .with(PositionComponent { current: old_pos, previous: old_pos, }) .build(); // Trigger flagged storage event. w.write_component::<PositionComponent>() .g...
Rust
Context menu: * [#9712](http://dev.ckeditor.com/ticket/9712): Context menu open destroys editor focus. * [#9366](http://dev.ckeditor.com/ticket/9366): Context menu should be displayed over floating toolbar. * [#9706](http://dev.ckeditor.com/ticket/9706): Context menu generates JS error in inline mode when ...
Markdown
; Ootw Checkpoint2 -- Despite all my Rage... ootw_cage: ;=========================== ; Enable graphics bit LORES bit SET_GR bit FULLGR ;=========================== ; Setup pages (is this necessary?) lda #0 sta DRAW_PAGE lda #1 sta DISP_PAGE ;============================= ; Load background to $c00 ld...
Assembly
TestSuite( AARCH64_BE_O0_EmulatorTest.class); } } /* ### * IP: GHIDRA * * 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 * * Unle...
Java
命造反总部》中一小撮坏蛋的滔天罪行。这个颠倒黑白,混淆是非的黑材料指出:“正当无产阶级文化大革命进入到开展全国全面阶级斗争的新阶段,……在阶级斗争十分尖锐激烈的情况下,四川省公安厅内的一小撮败类,迫不及待的跳了出来,打着‘造反’的旗号,以极‘左’的面貌出现,内外勾结,反对毛主席的革命路线,把斗争矛头指向革命群众,指向人民解放军,破坏十六条,妄图篡夺全省无产阶级专政大权,犯下了滔天罪行。”接着列举了所谓八条罪状: </p> <p> 一、结党营私,招降纳叛,阴谋篡夺全省政法大权。 </p> <p> 二、非法抢劫、盗用公安厅印章。 </p> <p> 三、冲击军事管制单位,强行到实行军事管制的省厅看...
HTML
tore` trait](trait.RStore.html), so that all types stored in an [`RData`](struct.RData.html) must implement `GStore`. This trait is automatically implemented for most types. The main counterexample is [`Root`](struct.Root.html) (and any type which transitively contains a `Root`, like [`Val`](enum.Val.html)), bec...
Rust
using NUnit.Framework; using QuickConnectPlugin.ArgumentsFormatters; namespace QuickConnectPlugin.Tests.ArgumentsFormatters { [TestFixture] public class WinScpArgumentsFormatterTests { [Test] public void Format() { InMemoryHostPwEntry pwEntry = new InMemoryHostPwEntry()...
C#
mm30, ymm29, ymm28 // CHECK: encoding: [0x62,0x06,0x16,0x20,0xd6,0xf4] vfmulcph ymm30, ymm29, ymm28 // CHECK: vfmulcph xmm30, xmm29, xmm28 // CHECK: encoding: [0x62,0x06,0x16,0x00,0xd6,0xf4] vfmulcph xmm30, xmm29, xmm28 // CHECK: vfmulcph ymm30 {k7}, ymm29, ymmword ptr [rbp + 8*r14 + 268435456] //...
Assembly
0: u32 = 0; pub const RTE_IPV4_MAX_PKT_LEN: u32 = 65535; pub const RTE_IPV4_HDR_IHL_MASK: u32 = 15; pub const RTE_IPV4_IHL_MULTIPLIER: u32 = 4; pub const RTE_IPV4_HDR_DSCP_MASK: u32 = 252; pub const RTE_IPV4_HDR_ECN_MASK: u32 = 3; pub const RTE_IPV4_HDR_ECN_CE: u32 = 3; pub const RTE_IPV4_HDR_DF_SHIFT: u32 = 14; pub co...
Rust
- 3 inside Widget B"); // Check this page object set as parent and non-existing page object returned. const widgetA3OutsideB = widgetB.getWidgetA(["cid", "4"]); await t.expect(widgetA3OutsideB.selector.count).eql(0); }); import { Body, Controller, Get, Post, Res, NotFoundException, HttpStatus, Param, Delete, Put...
Typescript
suario("NomeUsuarioTeste"); registroDTO.setFotoPerfil("Foto Teste"); registroDTO.setCell("(11) 91111-1111"); registroDTO.setCpf(new CpfVO("104.521.970-31")); descricaoVO = new DescricaoVO(); descricaoVO.setGeral("Descrição Teste"); descricaoVO.setHistoricoSaude("Historic...
Java
**kwargs): if ignore_label is None: ignore_label = -100 super().__init__( lossf = nn.CrossEntropyLoss(ignore_index=ignore_label), resize_x = resize_x, align_corners = align_corners) self.boundary_f = boundary_2d(ignore_label=ignore...
Python
psravd (%rcx), %ymm25, %ymm22 // CHECK: vpsravd 291(%rax,%r14,8), %ymm25, %ymm22 // CHECK: encoding: [0x62,0xa2,0x35,0x20,0x46,0xb4,0xf0,0x23,0x01,0x00,0x00] vpsravd 291(%rax,%r14,8), %ymm25, %ymm22 // CHECK: vpsravd (%rcx){1to8}, %ymm25, %ymm22 // CHECK: encoding: [0x62,0xe2,0x35,0x30,0x46,0x31] ...
Assembly
ring(bts) return ent def parse_entries(self, fl: BytesIO) -> Generator[Entry, None, None]: """Parse a stream of Kythe entries from a file.""" while True: bts = self.next_entry(fl) if bts == b"": break yield self.parse_entry(bts) def t...
Python
ungeonIndex('Sea Spirit\'s Den')))); RoamingPokemonList.add(GameConstants.Region.kalos, 0, new RoamingPokemon('Moltres', new ClearDungeonRequirement(1, GameConstants.getDungeonIndex('Sea Spirit\'s Den')))); RoamingPokemonList.add(GameConstants.Region.kalos, 0, new RoamingPokemon('Articuno', new ClearDungeonRequirement(...
Typescript
valid SCID block num do_handling_query_channel_range( &net_graph_msg_handler, &node_id_2, QueryChannelRange { chain_hash: chain_hash.clone(), first_blocknum: 0xffffff, number_of_blocks: 1, }, true, vec![ ReplyChannelRange { chain_hash: chain_hash.clone(), first_blocknum: 0...
Rust
Ja, an den Wochenenden schneidet Netflix in unserem Ranking wohl besser ab.</p> <p>Roku.com dürfte nach diesen beiden Traffic-Giganten die nächste Videostreaming-Plattform sein, die in unserem Ranking im Laufe von 2021 auf Platz 80 landet. Ende 2020 nahm Hulu.com den nächsten Platz ein, aber HBOMax.com überholte Hulu ...
HTML
n*=255,i*=255,a*=255),16777216*(r=255&FC(r,0,255))+((n=255&FC(n,0,255))<<16)+((i=255&FC(i,0,255))<<8)+(a=255&FC(a,0,255))}(oU=sU).to=sU,oU.from=function(t,e){var r=(t=+t)>>>24,n=(16711680&t)>>>16,i=(65280&t)>>>8,a=255&t;return!1===e?[r,n,i,a]:[r/255,n/255,i/255,a/255]};var lU="undefined"!=typeof navigator&&(/MSIE/.test...
HTML