content stringlengths 2 6.21k | label stringclasses 16
values |
|---|---|
r);
let rest = split1.next().unwrap();
if rest != "no other bags." {
let contents = rest.split(", ");
for part in contents {
let part_color = part
.split(" bag")
.next()
.unwrap()
.spl... | Rust |
old</strong></em></font><em> </em><a
href="#count"><em>count</em></a>)<em>
one_more</em>: (<font color="#000080"><em><strong>not old</strong></em></font><em> </em><a
href="#has"><em>has</em></a><em> </em>(<em>k</em>))<em> </em><font
color="#000080"><em><strong>implies</strong></em></font><em> </em>(<a
href="#co... | HTML |
ck encoding at the type-level if at all possible. It's trivial, though I'd assert
// a bad idea, to discard this additional information if it's giving you type-errors you don't care
// about:
//
// ```typescript
// let this_has_a_simple_type = toFakeUTF8String(some_input) as string
// ```
//
// [higher-plane characters... | Typescript |
s.parent.isCurrent(fd);
}
}
isGlobal(id?:Identifier) {
if (!id) {
return !this.parent;
}
if (!this.parent) {
return true;
}
if (this.hasInCurrentBlock(id)) {
return false;
} else {
return this.parent.isGlob... | Typescript |
/li>
<li><a href="api/static.lua/" onclick="location.href='api/static.lua/' + xlist;return false;">Static HTML lists</a></li>
</ul>
</li>
<li class="dropdown navbar-right" id="listchoice">
<!-- user prefs -->
<a href="#" class="dropdown-t... | HTML |
строчная лигатура oe","cent":"символ цента","ni":"содержит в качестве элемента","dagger":"крест","permil":"знак промилле","Omicron":"греческая прописная буква омикрон","sigma":"греческая строчная буква сигма","euro":"символ евро","Yacute":"латинская прописная буква Y с акутом","thorn":"латинская строчная буква thorn",... | JavaScript |
class="rustdoc struct"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">☰</div><a href='../../../epic_core/index.html'><div class='logo-container rust-logo'><img src='..... | HTML |
} else {
//! // ..........
//! Err(eg!("error occur"))
//! }
//! }
//!
//! fn branch_is_found(&self, branch: &str) -> bool {
//! let br = BranchName(branch.as_bytes());
//! self.branch_exists(br)
//! }
//!
//! fn new_branch(&mut self, branch: &str... | Rust |
HEMA DATABASE_TO_XML DATABASE_TO_XMLSCHEMA DATABASE_TO_XML_AND_XMLSCHEMA XMLATTRIBUTES TO_JSON TO_JSONB ARRAY_TO_JSON ROW_TO_JSON JSON_BUILD_ARRAY JSONB_BUILD_ARRAY JSON_BUILD_OBJECT JSONB_BUILD_OBJECT JSON_OBJECT JSONB_OBJECT JSON_ARRAY_LENGTH JSONB_ARRAY_LENGTH JSON_EACH JSONB_EACH JSON_EACH_TEXT JSONB_EACH_TEXT JSON... | HTML |
a<br/>los veintinueve días del mes de octubre de dos mil cuatro.- Vicente Fox Quesada.- Rúbrica.- El<br/>Secretario de Gobernación, Santiago Creel Miranda.- Rúbrica.<br/><br/>TRANSITORIO<br/>(Decreto por el que se adicionan un párrafo cuarto y un párrafo quinto al<br/>artículo 2o., y un párrafo tercero al artículo 103... | HTML |
let tagName = tagMatch[1];
let code = htmlCode.replace(tagReg, "");
let autoIndex = code.indexOf("/>");
let closeIndex = code.indexOf(">");
let attrCode = autoIndex> 0 && autoIndex<closeIndex ? code.substr(0, autoIndex) : code.substr(0, clos... | Typescript |
}
.entrega-a-domicilio__titulo
{
grid-area: entrega-a-domicilio-titulo;
}
.entrega-a-domicilio__ul
{
grid-area: entrega-a-domicilio-listado;
}
.retiro-en-sucursal__titulo
{
grid-area: retiro-en-sucursal-titulo;
}
.retiro-en-sucursal__ul
{
grid-area: retiro-en-sucursal-listado;
}
.consultas-modificaciones-entre... | CSS |
onViewCreated(view: View, savedInstanceState: Bundle?) {
super.onViewCreated(view, savedInstanceState)
_binding = FragmentColorPlayerBinding.bind(view)
setUpSubFragments()
setUpPlayerToolbar()
val playerAlbumCoverFragment: PlayerAlbumCoverFragment =
whichFragment(R.i... | Kotlin |
Assert.assertEquals(2, graph.commonAncestor(graph.getNodeByIndex(42), graph.getNodeByIndex(40)));
// too far for this method
Assert.assertEquals(-1, graph.commonAncestor(graph.getNodeByIndex(10), graph.getNodeByIndex(42)));
// Assert.assertEquals(null, common);
Assert.assertEquals(0, graph.commonAnce... | Java |
/* -*- c++ -*- */
/*
* Copyright 2015 Felix Wunsch, Communications Engineering Lab (CEL) / Karlsruhe Institute
* of Technology (KIT) <wunsch.felix@googlemail.com>.
*
* This 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 Sof... | C |
nColor, attenuationDistance )[ i ];\n\t\t\t}\n\t\t\ttransmittedLight.a /= 3.0;\n\t\t\n\t\t#else\n\t\t\n\t\t\tvec3 transmissionRay = getVolumeTransmissionRay( n, v, thickness, ior, modelMatrix );\n\t\t\tvec3 refractedRayExit = position + transmissionRay;\n\t\t\tvec4 ndcPos = projMatrix * viewMatrix * vec4( refractedRayE... | JavaScript |
type CommonActions = SetLang | SetMenu;
import { handler } from "~/index";
import {
GET_SLIDER,
CREATE_SLIDER,
DELETE_SLIDER,
LIST_SLIDERS,
UPDATE_SLIDER
} from "./graphql/sliders";
/**
* An example of an integration test. You can use these to test your GraphQL resolvers, for example,
* ensure t... | Typescript |
100000 // Nuyen that must be paid by the founding player in order to make a group official.
#define PGROUP_INVITATION_LIFETIME_IN_DAYS 7 // Number of IRL days an invitation will be valid for.
#define DEFAULT_PGROUP_LOG_LOOKUP_LENGTH 7 // Number of IRL days to look back when PGROUP LOGS is passed no argum... | C++ |
m_LastDamageType = info.GetDamageType();
if ( m_LastDamageType & DMG_FALL )
{
if ( ( m_lastDamageAmount > m_iLeftGroundHealth ) && ( m_lastDamageAmount < GetHealth() ) )
{
// we gained health in the air, and it saved us from death.
// if any medics are healing us, they get an achievement
int iNumHeale... | C++ |
if (str == null) str = "";
string newStr = "";
str = str.Trim(' ', '\"');
bool isescaped = false;
foreach (var v in str)
{
if (!isescaped && v == '\\') isescaped = true;
else if (v == '\\') { newStr += '\\'; isescape... | C# |
f6f7f8 url(https://fbstatic-a.akamaihd.net/rsrc.php/v2/yb/r/GsNJNwuI-UM.gif) no-repeat 50% 50%}div.typeaheadViewPersistentSeeMore.typeaheadViewLoading li.calltoaction span.text{visibility:visible}div.typeaheadViewPersistentSeeMore.typeaheadViewLoading li.calltoaction{background-position:90% 50%}div.typeaheadViewLoading... | HTML |
MATAx) {
this.ctrlMagMomentMATAx = ctrlMagMomentMATAx;
}
public float getCtrlMagMomentMATAy() {
return ctrlMagMomentMATAy;
}
public void setCtrlMagMomentMATAy(float ctrlMagMomentMATAy) {
this.ctrlMagMomentMATAy = ctrlMagMomentMATAy;
}
public float getCtrlMagMomentMATAz() {
return ctrlMagMomentMATAz;
}... | Java |
ABOVE, COMBINING COMMA ABOVE RIGHT, COMBINING GRAVE ACCENT, HEBREW ACCENT ZINOR, LATIN SMALL LETTER B
0061 0315 0300 05AE 030A 0062;00E0 05AE 030A 0315 0062;0061 05AE 0300 030A 0315 0062;00E0 05AE 030A 0315 0062;0061 05AE 0300 030A 0315 0062; # (a◌̕◌̀◌֮◌̊b; à◌֮◌̊◌̕b; a◌֮◌̀◌̊◌̕b; à◌֮◌̊◌̕b; a◌֮◌̀◌̊◌̕b; ) LATIN SMALL LET... | Kotlin |
fset).toBe(0);
assertTraceField(cd, 't.bargroupwidth', [0.8, 0.8, 0.8, 0.8]);
var traceNodes = getAllTraceNodes(gd);
var trace0Bar3 = getAllBarNodes(traceNodes[0])[3];
var path03 = trace0Bar3.querySelector('path');
var text03 = trace0Bar3.querySelector('text'... | JavaScript |
</thead>
<tbody>
<tr><td>3 of 14</td><th scope="row">Significant Strikes</th><td>20 of 23</td><tr><tr><td>21%</td><th scope="row">Significant Strikes %</th><td>86%</td><tr><tr><td>1 of 10</td><th scope="row">Head</th><td>6 of 8</td><tr><tr><td>2 of 4</td><th scope="row">Body</th><td>9 of 10</td><tr><t... | HTML |
<ComponentName, Int?>()
private val iconEntryList = Collections.synchronizedList(mutableListOf<IconResolver>())
private val contentResolver = AndroidAppHelper.currentApplication().contentResolver
private val resourcesMap = mutableMapOf<String, ResourceOwner>()
init {
if (
waitingForBootCompleted && ... | Kotlin |
sis: 3em;
margin: 0px;
}
div.dtsb-searchBuilder div.dtsb-group div.dtsb-logicContainer button.dtsb-clearGroup {
border: none;
border-radius: 0px;
width: 2em;
margin: 0px;
}
div.dtsb-searchBuilder div.dtsb-group div.dtsb-criteria select.dtsb-dropDown, div.dtsb-searchBuilder div.dtsb-group div.dtsb-criteria inp... | CSS |
创建,看起来跟kubectl create效果一样。
再修改nginx.yaml里定义的镜像:
```yaml
...
spec:
containers:
- name: nginx
image: nginx:1.7.9
```
修改完这YAML后,不用kubectl replace更新,而是继续执行kubectl apply:
```bash
$ kubectl apply -f nginx.yaml
```
k8s会立即触发这Deployment的“滚动更新”。
### kubectl apply V.S kubectl replace
- kubectl repla... | Markdown |
ferShapeContext *ctx) const override {
ctx->ShareDim(framework::GradVarName("Out"), framework::GradVarName("X"));
ctx->ShareLoD(framework::GradVarName("Out"), framework::GradVarName("X"));
}
};
template <typename T>
class MpcSquareGradOpMaker : public framework::SingleGradOpMaker<T> {
public:
u... | C++ |
h, rectangleHeight);
frame.layoutMode = "HORIZONTAL";
frame.primaryAxisAlignItems = "CENTER";
frame.counterAxisAlignItems = "CENTER";
return frame;
}
export { textToSkeleton };
import { useCallback, useRef, useState } from "react";
import { KeyboardCode } from "./keyboard-code";
// command 的 execute 执行完之后,需要... | Typescript |
MethodHandlers<
com.google.cloud.videointelligence.v1beta2.AnnotateVideoRequest,
com.google.longrunning.Operation>(service, METHODID_ANNOTATE_VIDEO)))
.build();
}
private abstract static class VideoIntelligenceServiceBaseDescriptorSupplier
implements io.grpc.p... | Java |
l.Property;
prefix += "." + prop.Name;
var otherModel = ActiveRecordModel.GetModel(hasAndBelongsModel.HasManyAtt.MapType);
var keyModel = ObtainPKProperty(otherModel);
if (otherModel == null || keyModel == null)
{
return "Model not found or PK not found";
}
var source = CommonOperationU... | C# |
: "User",
short_id: "b575f47",
age: 15,
workflow: "new"
});
const appliedFilters = fromJS({
sex: ["female"]
});
const recordIds = [record.get("id")];
it("should be a function", () => {
expect(buildAppliedFilters).toBeInstanceOf(Function);
});
it("should return filters with short_id, ... | JavaScript |
precated({ removalVersion: '1.0.0' })
@LoggingDecorators.time
timeMethod(): number {
var x: number;
let time = Date.now();
while (Date.now() - time < 1000) {
x = 4;
}
return x;
}
infoMethod() {
this.logger.info('foo');
}
@LoggingDecorators.profile
profileMethod() {
fo... | Typescript |
b(34 34 34);font-size: 10px;font-weight: bold;font-family: sans-serif;margin: 4px;text-align: left;padding: 2px;position: absolute;box-sizing: content-box;pointer-events: none;line-height: 1;display: inline;z-index:1;}#SbIYDiy {text-align: center;margin-top: 10px;position: relative;}#SbIYDiy img {cursor: pointer;max-wi... | HTML |
it.move(row_nr);
p= reinterpret_cast<SQL_NUMERIC_STRUCT*>(it.value());
p->scale= scale;
p->precision= precision;
bind->buffer_length= static_cast<unsigned long>(MADB_ConvertNumericToChar(p, buf, &errorCode));
if (errorCode) {
MADB_Stmt *Stmt= reinterpret_cast<MADB_Stmt*>(data);
MADB_Set... | C++ |
// Platinum.setEnchantmentForTools(Enchantment.smite, 5);
// Lead.setEnchantmentForTools(Enchantment.baneOfArthropods, 2);
// Nickel.setEnchantmentForTools(Enchantment.baneOfArthropods, 2);
// Invar.setEnchantmentForTools(Enchantment.baneOfArthropods, 3);
// Antimony.setEnchantm... | Java |
.mullvadvpn.test.common.extension.dismissChangelogDialogIfShown
import net.mullvad.mullvadvpn.test.common.extension.findObjectWithTimeout
import net.mullvad.mullvadvpn.test.mockapi.constant.DEFAULT_DEVICE_LIST
import net.mullvad.mullvadvpn.test.mockapi.constant.DUMMY_DEVICE_NAME_2
import net.mullvad.mullvadvpn.test.moc... | Kotlin |
);
}
}
if (event is ImportQuestionsEvent) {
yield GetDoneQuestion(
listQuestion: listQuestion,
isOver: isOverQuestion,
);
bool isImportSuccess = await _importQuestions(
examId: event.examId,
questions: event.questions,
);
yield GetDon... | Dart |
----------------------------------------------------------
@ CHECK: Section {
@ CHECK: Name: .ARM.exidx
@ CHECK: Type: SHT_ARM_EXIDX (0x70000001)
@ CHECK: Flags [ (0x82)
@ CHECK: SHF_ALLOC (0x2)
@ CHECK: SHF_LINK_ORDER (0x80)
@ CHECK: ]
@---------------------------------------------------... | Assembly |
的系统设置,在**外观**的**全局主题** 中,选择刚刚安装好的主题,如 `Qogir Dark`。然后分别在**图标**和**光标**中选择你安装的主题,如 `Tela-dark` 和 `Qogir-white-cursors`。
!!! note
- 由于个人认为 Kvantum Manager 默认配置的样式效果已经很完善了,所以不作过多的修改。如果希望进行更为精细的配置,可自行搜索相关的文章和教程。
- 安装脚本已经自动安装好 Kvantum 主题了,如果你选用了其他的 Kvantum 主题,你需要先解压文件,然后再用 Kvantum Manager 安装此 Kvantum 主题。
在**应用程... | Markdown |
一个很好的主意,但是对那些目前没有谋到一份好工作的人来说,这个主意会更好。”
这一逻辑对我而言颇有道理,他说服我在最终作出决定之前再考虑48小时。那样想来,这个决定确实很艰难,但是最终,我决定拼一次。我认为自己不会为尝试过后的失败而遗憾,倒是有所决定但完全不付诸行动会一直煎熬着我。在深思熟虑之后,我选择了那条不安全的道路,去追随我内心的热情。我为那个决定感到骄傲。
Tomorrow, in a very real sense, your life -- the life you author from scratch on your own --begins.
How will you use your gifts... | Markdown |
|| 0,
icon: "buff_icon/Crate_(buff).png",
},
"Warmth": {
name: "Warmth",
cn_name: "保暖",
variable_name: "Warmth_Potion_countdown",
des: "体温低于37摄氏度时,尝试将你的体温调整为37度",
type: "positive",
activated: V.Warmth_Potion_countdown || 0,
icon: "buff_icon/Warmth_(buff).png",
},
"Drunk... | JavaScript |
്ച്ചയായും അല്ലാഹുവിന്റെ ദൃഷ്ടാന്തങ്ങള് നിഷേധിച്ചവരാരോ അവര്ക്ക് കഠിനമായ ശിക്ഷയാണുള്ളത്. അല്ലാഹു പ്രതാപിയും ശിക്ഷാനടപടി സ്വീകരിക്കുന്നവനുമാകുന്നു."
},
{
"surah_number": 3,
"verse_number": 5,
"content":
"ഭൂമിയിലോ ആകാശത്തോ ഉള്ള യാതൊരു കാര്യവും അല്ലാഹുവിന്ന് അവ്യക്തമായിപ്പോകുകയില്ല; തീര്ച്ച."
... | Dart |
u3.proto.Extension
1, // 9: google.fhir.stu3.proto.DateTime.precision:type_name -> google.fhir.stu3.proto.DateTime.Precision
26, // 10: google.fhir.stu3.proto.DateTime.id:type_name -> google.fhir.stu3.proto.String
55, // 11: google.fhir.stu3.proto.DateTime.extension:type_name -> google.fhir.stu3.proto.Extension
... | Go |
ronym {
border-bottom: dotted 1px;
cursor: help;
}
/* -- code displays --------------------------------------------------------- */
pre {
overflow: auto;
overflow-y: hidden; /* fixes display issues on Chrome browsers */
}
td.linenos pre {
padding: 5px 0px;
border: 0;
background-color: tr... | CSS |
@media print {.AWMSTCBG3{display:none}}.AWMST4 {box-sizing:content-box;max-width:none;position:absolute;border-radius:0px / 0px;width:100%;visibility:inherit;text-align:left; font:bold 12px Century Gothic,Arial,san-serif !important; color:#000000;background-color:transparent;border-style:none; border-width:0px; border... | HTML |
from .common import InfoExtractor
from ..utils import (
float_or_none,
int_or_none,
smuggle_url,
strip_or_none,
)
class TVAIE(InfoExtractor):
_VALID_URL = r'https?://videos?\.tva\.ca/details/_(?P<id>\d+)'
_TESTS = [{
'url': 'https://videos.tva.ca/details/_5596811470001',
'info_... | Python |
Commit()
newErr := errors.New("commit fail")
errSlice := strings.Split(err.Error(), "; ")
wantErrSlice := []string{
newMockCommitErr("order_detail_db_0", newErr).Error(),
newMockCommitErr("order_detail_db_1", newErr).Error()}
assert.ElementsMatch(t, wantErrSlice, errSlice)
s.mockMaster.Ma... | Go |
{r4-r10,lr}
sub sp, sp, #0x8
mov r8, r0
str r2, [sp, #0x0]
ldr r4, [r8, #0x4]
add r0, sp, #0x0
mov r7, r1
mov r6, r3
mov r5, #0x0
blx r4
movs r1, r0
beq _020B5C58
ldr sb, _020B5C84 ; =0x0000FFFF
add r10, sp, #0x0
_020B5C00:
cmp r1, #0xa
beq _020B5C58
mov r0, r8
bl NNS_G2dFontFindGlyphIndex
mov r1, r0... | Assembly |
es[250, 250, :, :] * bbox_scale,
['s=0.75, r=1', 's=0.5, r=1', 's=0.25, r=1', 's=0.75, r=2',
's=0.75, r=0.5'])
```
## [**交并比(IoU)**]
我们刚刚提到某个锚框“较好地”覆盖了图像中的狗。
如果已知目标的真实边界框,那么这里的“好”该如何如何量化呢?
直观地说,可以衡量锚框和真实边界框之间的相似性。
*杰卡德系数*(Jaccard)可以衡量两组之间的相似性。
给定集合$\mathcal{A}$和$\mathcal{B}$,他们的杰卡德系数是他们交集的大小除... | Markdown |
后执行Kong的数据迁移:
```
$ kong migrations bootstrap [-c /path/to/kong.conf]
```
对于Kong 小于0.15的注意事项:如果Kong版本低于0.15(最高0.14),请使用up子命令而不是bootstrap。另请注意,如果Kong 小于0.15,则不应同时进行迁移;只有一个Kong节点应该一次执行迁移。对于0.15,1.0及以上的Kong,此限制被取消。
**不使用数据库**
如果要在[无DB模式](https://docs.konghq.com/1.3.x/db-less-an... | Markdown |
y' },
{ match: '(to|until|upto) #Date', tag: 'Date', reason: 'between x and y2' },
{ match: 'between #Date+ and #Date+', tag: 'Date', reason: 'between x and y3' },
{ match: '#Month and #Month #Year', tag: 'Date', reason: 'x and y4' },
//day after next
{ match: 'the? #Date after next one?', tag: 'Da... | JavaScript |
t_8['m_point'] = round(m_point_8,3)
print("\n Point atm", point_atm)
print("\nPoint 1", point_1)
print("\nPoint_2", point_2)
print("\nPoint 13", point_13)
print("\nPoint 16", point_16)
print("\nPoint 18", point_18)
print("\nPoint_21", point_21)
print("\nPoint_24", point_24)
print("\nPoint_25", point_25)
print("\nPoin... | Python |
начаются папки, можно установить при помощи <b>Правил обработки электронной почты</b>, к которым можно перейти из панели навигации <b>Настройки почты</b>.</p>
<h3>Ввод папки</h3>
<p style="MARGIN-LEFT: 0px">Помимо предопределенных папок электронной почты можно создавать собственные папки. Собственные папки можно создат... | HTML |
TEMPLATE": "Текст шаблона",
"CUSTOM_SNIPPETS_HEADER_DESCRIPTION": "Опис",
"CUSTOM_SNIPPETS_HEADER_FILE_EXTENSION": "Екстензија датотеке",
"PROMO_UPGRADE_TITLE": "Унапредили сте на {0}",
"PROMO_UPGRADE_MESSAGE": "Уживајте у пуном приступу свим премијум функцијама у наредних {0} дана:",
"PROMO_CARD_1": "Превлач... | JavaScript |
з. Эти два камня станут маяком, пронзающим тьму!"}, {"Принесите азеротский алмаз и безупречный черный алмаз лорду Грейсону Тенелому в Храмовый квартал Штормграда."}},
[7647] = {"Суд и расплата", {"Возьми эту суму – в ней собраны предметы, которые понадобятся тебе для выполнения задания.","Используй магический кристалл ... | Lua |
Y_0.16b, Y_0.16b, TWEAKV1.16b
eor TMP1.16b, X_1.16b, TWEAKV2.16b
eor Y_1.16b, Y_1.16b, TWEAKV3.16b
eor TMP2.16b, X_2.16b, TWEAKV4.16b
eor Y_2.16b, Y_2.16b, TWEAKV5.16b
eor TMP3.16b, X_3.16b, TWEAKV6.16b
eor Y_3.16b, Y_3.16b, TWEAKV7.16b
/*
* De-interleave the 'x' and 'y' elements of each block, i.e.... | Assembly |
0xf1, 0x49, 0x84, 0xc7, 0xda, 0x79, 0x12, 0x48, 0xe3, 0x2b, 0xb5, 0x92, 0x25, 0x83, 0xda},
{0x19, 0x38, 0xf2, 0xcf, 0x72, 0xd5, 0x4e, 0xe9, 0x7e, 0x94, 0x16, 0x6f, 0xa9, 0x1d, 0x2a, 0x36},
{0x74, 0x48, 0x1e, 0x96, 0x46, 0xed, 0x49, 0xfe, 0x0f, 0x62, 0x24, 0x30, 0x16, 0x04, 0x69, 0x8e},
{0x57, 0xfc, 0xa5, 0xde, 0x98... | Go |
/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limit... | Go |
blank)
composeTestRule.onNode(hasScrollAction())
.performScrollToNode(hasText(buttonText))
// blank 요소 생성 버튼이 비활성화 되어있는지 확인
composeTestRule.onNodeWithText(buttonText).assertIsNotEnabled()
}
@Test
fun 낱말_맞추기_문제_생성_시_텍스트_요소는_최대_5개까지만_추가할_수_있다() {
val blankQuestionI... | Kotlin |
Matrix(double[] params) {
return new Matrix(
new double[][] {
{ params[0] * params[6] + params[3] * params[7], params[1] * params[6] + params[4]
* params[7], params[2] * params[6] + params[5] * params[7] },
{ params[0], params[1], params[2] },
{ params[3], params[4], params[5... | Java |
/*
This file is part of Telegram Desktop,
the official desktop application for the Telegram messaging service.
For license and copyright information please follow this link:
https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
*/
#pragma once
#include "base/object_ptr.h"
#include "ui/rp_widget.h"
namespace ... | C |
format.
/// </summary>
UpcE,
/// <summary>
/// UPC-A 1D format.
/// </summary>
UpcA,
/// <summary>
/// EAN-8 1D format.
/// </summary>
Ean8,
/// <summary>
/// EAN-13 1D format.
/// </summary>
Ean13,
... | C# |
,0x02,0x05,0xa4,0x73,0x72,0x71,0x3f]
s_cvt_pk_rtz_f16_f32 s5, s1, s105
// GFX1150: encoding: [0x01,0x69,0x05,0xa4]
s_add_f16 s5, s1, s2
// GFX1150: encoding: [0x01,0x02,0x85,0xa4]
s_add_f16 s105, s1, s2
// GFX1150: encoding: [0x01,0x02,0xe9,0xa4]
s_add_f16 s5, s105, s2
// GFX1150: encoding: [0x69,0x02,0x85,0xa4]
s... | Assembly |
see OF-2872).
encoder.decode(nioBuffer, charBuffer, false);
final char[] buf = new char[charBuffer.position()];
charBuffer.flip();
charBuffer.get(buf);
// Netty won't update the reader-index of the original buffer when its nio-buffer representation is read from. Adjust the posit... | Java |
(&self.post_routes),
Method::PUT => Some(&self.put_routes),
Method::PATCH => Some(&self.patch_routes),
Method::DELETE => Some(&self.delete_routes),
Method::HEAD => Some(&self.head_routes),
Method::OPTIONS => Some(&self.options_routes),
Method::CONN... | Rust |
HUDAssaultCorner = HUDAssaultCorner or class()
function HUDAssaultCorner:init(hud, full_hud, tweak_hud)
self._hud_panel = hud.panel
self._full_hud_panel = full_hud.panel
if self._hud_panel:child("assault_panel") then
self._hud_panel:remove(self._hud_panel:child("assault_panel"))
end
local size = 200
if _G.I... | Lua |
& cc] ^ a9[cs++],
cC = ae[c9 >>> 0x18] ^ a3[cb >>> 0x10 & 0xff] ^ a5[cc >>> 0x8 & 0xff] ^ af[0xff & bx] ^ a9[cs++],
cD = ae[cb >>> 0x18] ^ a3[cc >>> 0x10 & 0xff] ^ a5[bx >>> 0x8 & 0xff] ^ af[0xff & c9] ^ a9[cs++],
cI = ae[cc >>> 0x18] ^ a3[bx >>> 0x10 & 0xff] ^ a5[c9 >>>... | JavaScript |
x52, 0x06, 0x73,
0x74, 0x61, 0x74, 0x75, 0x73, 0x2a, 0x2d, 0x0a, 0x08, 0x49, 0x4f, 0x53, 0x74, 0x72, 0x65, 0x61,
0x6d, 0x12, 0x09, 0x0a, 0x05, 0x53, 0x54, 0x44, 0x49, 0x4e, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06,
0x53, 0x54, 0x44, 0x4f, 0x55, 0x54, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x54, 0x44, 0x45,
0x52, 0x52,... | Go |
"""
Author: Chenhongyi Yang
"""
import torch
import torch.nn as nn
from mmcv.cnn import build_norm_layer
from mmcls.gpvit_dev.models.utils.attentions import LightAttModule
from mmcls.models.builder import NECKS
@NECKS.register_module()
class GroupNeck(nn.Module):
def __init__(self,
embed_dims,
... | Python |
newRoles = getMatchingRoles(content);
if (!newRoles.length) return;
// TODO: print the "heatmap" view of the message for easy debugging
const memberFmt = chalk.hex(member.displayHexColor)(member.displayName);
const roleFmt = newRoles.map((role) => chalk.hex(role.hexColor)(role.name)).join(', ');
console.log... | Typescript |
algolia_search.enable %}
<a href="javascript:;" class="popup-trigger">
{% endif %}
{% if site.menu_icons.enable %}
<i class="menu-item-icon fa fa-search fa-fw"></i> <br />
{% endif %}
{{ __.menu.search }}
</a>
</li>
{% endif... | HTML |
I stw %r23, [%r4 + 0x0bf0]
.word 0xd4290005 ! 1938: STB_R stb %r10, [%r4 + %r5]
.word 0xf8710005 ! 1938: STX_R stx %r28, [%r4 + %r5]
.word 0xd6290005 ! 1938: STB_R stb %r11, [%r4 + %r5]
.word 0xe0312106 ! 1938: STH_I sth %r16, [%r4 + 0x0106]
.word 0xde310005 ! 1938: STH_R sth %r15, [%r4 + %r5]
.word 0x148000... | Assembly |
eight: 600;
}
.cart-checkout .shopping-cart-box .des .shopping-cart-price {
padding-top: 7px;
}
.cart-checkout .shopping-cart-box .total{
color: #088178;
font-size: 12px;
font-weight: 700;
padding-top: 7px;
flex: 1;
}
.cart-checkout .shopping-cart-box .shopping-cart-quantity {
padding: 2px 0... | CSS |
id="module-Make"><a href="#module-Make" class="anchor"></a><code><span><span class="keyword">module</span> <a href="Make/index.html">Make</a></span><span> (<a href="Make/argument-1-E/index.html">E</a> : <a href="module-type-ELEMENT/index.html">ELEMENT</a>) : <span class="keyword">sig</span> ... <span class="keyword">e... | HTML |
lientObjMaintSystem::Handle_Qualities__UpdateInt(ClientObjMaintSystem *this, char wts, unsigned int sender, unsigned int stype, int val) .text:00558D60 ?Handle_Qualities__UpdateInt@ClientObjMaintSystem@@QAEKEKKJ@Z
// ClientObjMaintSystem.Handle_Qualities__UpdatePosition:
public UInt32 Handle_Qualities_... | C# |
发送这个单独对象产生的内容
streamCollector.emit(content)
}
}
}
}
... | Kotlin |
/1_defending_against_web_application_i/38.png)
**Step 31:** Click on *Create a Resource*.

**Step 32:** Search for the *web applicaiton firewall (waf)*.

**Step 33:** Click on *Create*.
;
Assert.That(tuple.IsNumber(0), Is.False);
}
{
var packed = TuPack.EncodeKey("hello world", 123);
Dump("Packed", packed);
var tuple = SlicedTuple.Unpack(packed);
Assert.That(tuple, Is.Not.Null);
Dump("Unpacked", tuple);
Assert.That(tuple.Count, Is.EqualTo(2));
Assert.Th... | C# |
adaptiveWidth: true,
slidesToScroll: 1
}
},
{
breakpoint: 380,
settings: {
slidesToShow: 1,
slidesToScroll: 1,
adaptiveWidth: true,
}
},
{
breakpoint: 360,
settings: {
... | HTML |
LOC,TESTART
MOVE.L TEMPADR,A0
JMP TEUPDATE
TECUT2 MOVE.L TEMPADR,A0
JMP TEDNOCAR
*-------------------TECOPY--------------------
* Call TECOPY to copy the selected range into the SCRAP buffer.
* Unlike TECUT the selected text is not deleted.
TECOPY MOVE.L A0,TEMPADR
JSR CLRSCRAP
MOVE.L TEMPADR,A0
MOVE SELSTART(... | Assembly |
BERT: Distilling BERT for natural language understanding
Patientknowl- edge distillation for BERT model compression.
Well-read students learn better: The impact of student initialization on knowledge distillation.
MobileBERT: Task-agnostic com- pression of BERT by progressive knowledge transfer.
MiniLM: Deep self-a... | Markdown |
"Account": {
"friends": {},
"name": "FLauncher_Player"
},
"Servers": {}
}
if not config_path.exists():
with open(config_path, 'w', encoding='utf-8') as config_file:
json.dump(co... | Python |
*>("urn:oma:xml:prs:pidf:oma-pres"));
err = model->parsePidfXmlPresenceServices(xmlContext);
if (err == 0) {
err = model->parsePidfXmlPresencePersons(xmlContext);
}
if (err == 0) {
err = model->parsePidfXmlPresenceNotes(xmlContext);
}
if (err < 0) model = nullptr;
return model;
}
time_t PresenceModel::par... | C++ |
CView.text("\n\nYou snag a single gem and " + XP + " XP as you walk away from your victory.");
else if (gems > 1) CView.text("\n\nYou grab " + gems + " gems and " + XP + " XP from your victory.");
else if (gems === 0) CView.text("\n\nYou gain " + XP + " XP from the battle.");
}
character.invent... | Typescript |
.macro SETUP_SAVE_REFS_AND_ARGS_FRAME rTemp
SETUP_SAVE_REFS_AND_ARGS_FRAME_REGISTERS_ONLY
RUNTIME_CURRENT3 \rTemp @ Load Runtime::Current into rTemp.
@ Load kSaveRefsAndArgs Method* into rTemp.
ldr \rTemp, [\rTemp, #RUNTIME_SAVE_REFS_AND_ARGS_METHOD_OFFSET]
str \rTemp, [sp, #0]... | Assembly |
list.add(delete)
} else {
// If we don't have all items, just return the default that we have
list = toolbarMenuItems
}
}
return list
}
val freeTextDialogCallback = object : (Boolean, Boolean, String) -> Unit {
ov... | Kotlin |
1.42L10 18l-6.36-6.36 1.4-1.42z'/%3E%3C/svg%3E")}.fr-toggle input[type=checkbox]:disabled{box-shadow:inset 0 0 0 1px #e5e5e5}.fr-toggle input[type=checkbox]:disabled:checked{background-color:#e5e5e5}.fr-toggle input[type=checkbox]:disabled:checked~.fr-toggle__label:after{background-image:url("data:image/svg+xml;charse... | CSS |
ata-transition-speed="default">
<h3>ggplot() 設定重要元素</h3>
<div class="mediaInline slideContent" >
<ul>
<li><strong>Aesthetic attributes</strong>
<ul>
<li>aes(x = Species, y = Sepal.Length)</li>
</ul></li>
<li><strong>Geometric objects</strong>
<ul>
<li>geom_point()</li>
</ul></li>
</ul>
<pre><code class="r">ggplot(ir... | HTML |
_val.match(reg)[0])[0])
});
console.log(hosts)
console.log(name)
console.log(description)
if(name!=" "&&description!=" "){
if(hosts.length>0){
for(var i=0;i<hosts.length;i++){
$.post("/spider/deploy/"+hosts[i]+"/"+name+"/"+path+'/',... | HTML |
source code
} else if (id === indexPath) {
let script = ''
let match
// 收集index.html外部的js
while ((match = scriptRE.exec(indexContent))) {
// TODO handle <script type="module" src="..."/>
// just add it as an import
script += match[1]
... | Markdown |
en": self.token,
# "firmId": "testUser",
# "userId": "11111111101"
# }
#
# with self.client.post(
# "/NCTSTraderApi/trader/getUnReadMessagesList", # Update the endpoint if needed
# json=body, # Set the request body
# ... | Python |
ومه مهيدان كه ماشين بگرم بـو ههوليِ، كاكه محمهمهه مهولوود پِهيدا بوو: - ثهوه ليّره ج دهكهى؟ - دهمهوهىّ بجمهوه شؤرش. هانووم ماشيَن بگرم. - كاكـه هـيج قـسهى لــئ مهكـه! مـن دهگـمل مـهحمووداغاى خطبقهسـهمهه و حـاجى محمهمهى شتخ رِهشهى لوّلان هاتووم؛ سبهى دهرؤينهوه ههوليِ. خؤ هيجيان ناتناسن؟ - نهخيّر نهمديون. - وهره دهليّم ث... | Markdown |
#ifndef MIDIFILELOADNODE_H
#define MIDIFILELOADNODE_H
#include <QObject>
#include <QBuffer>
#include <fugio/node_interface.h>
#include <fugio/node_control_interface.h>
#include <fugio/pin_interface.h>
#include <fugio/pin_control_interface.h>
#include <fugio/core/variant_interface.h>
#include <fugio/midi/midi_interfa... | C |
ceRequest) {
request = &UpgradeInstanceRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("es", APIVersion, "UpgradeInstance")
return
}
func NewUpgradeInstanceResponse() (response *UpgradeInstanceResponse) {
response = &UpgradeInstanceResponse{
... | Go |
rComponent(m => m.Add(p => p.Theme, Theme.Success)).Should().HaveClass("t-link--theme-success");
RenderComponent(m => m.Add(p => p.Theme, Theme.Danger)).Should().HaveClass("t-link--theme-danger");
RenderComponent(m => m.Add(p => p.Theme, Theme.Warning)).Should().HaveClass("t-link--theme-warning");
}... | C# |
Tape() as tape:
y_pred = self(x, training=True)
loss = self.compiled_loss(y, y_pred, regularization_losses=self.losses)
trainable_vars = self.trainable_variables
gradients = tape.gradient(loss, trainable_vars)
norm = tf.linalg.global_norm(gradients)
... | Markdown |
ack).
* In: r0 - UART register base address
* r1 - UART clock in Hz
* r2 - Baud rate
* r3 - pointer to empty console_t struct
* Out: return 1 on success, 0 on error
* Clobber list : r0, r1, r2
* -------------------------------------------------------
*/
func console_pl011_register
push {r4,... | Assembly |
// Tencent is pleased to support the open source community by making ncnn available.
//
// Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved.
//
// Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
// in compliance with the License. You may obtain a copy ... | C |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.