content stringlengths 2 6.21k | label stringclasses 16
values |
|---|---|
(24842, "mercury[11235]", "venus", "[12480]", "[]",
"jupiter[]", "saturn[1, 2-Hundred and 34.zero5]", "neptune[four]");
String[] expectedHostPorts = { "mercury[11235]", "venus[24842]", "localhost[12480]", "localhost[24842]",
"jupiter[24842]", "saturn[12345]", "neptune[24842]" };
assertThat(list).isNotNull(... | Java |
= (TextView) findViewById(R.id.txt_right);
txt_right.setText("设置金额");
img_back = (ImageView) findViewById(R.id.img_back);
img_back.setVisibility(View.VISIBLE);
}
@Override
protected void initView() {
img_back.setOnClickListener(this);
}
@Override
protected void initData() {
String id = Utils.getValue(... | Java |
}
.has-warning {
@include form-control-validation($brand-warning);
.form-control-warning {
background-image: $form-icon-warning;
}
}
.has-danger {
@include form-control-validation($brand-danger);
.form-control-danger {
background-image: $form-icon-danger;
}
}
// Inline forms
//
// Make forms a... | CSS |
font-style: italic;
}
[theme=sunburst] .hljs-keyword, [theme=sunburst] .hljs-selector-tag, [theme=sunburst] .hljs-type {
color: #e28964;
}
[theme=sunburst] .hljs-string {
color: #65b042;
}
[theme=sunburst] .hljs-subst {
color: #daefa3;
}
[theme=sunburst] .hljs-link, [theme=sunburst] .hljs-regexp {
color: #e9c06... | CSS |
6.29583357c1.02916749 1.05416751 2.05416831 2.10416835 3.06250245 3.17916921l.67916721 1.10833422.16250013 1.06250085-.24583353 1.05416751-.6666672.92083407-.96250077.5833338c-.44166702.07083339-.72916725.11250009-1.0000008.11250009"/></svg>');
}
&[data-value="2"] {
background-image: url('data:image... | CSS |
(45, canvas.width / canvas.height, 0.1, 100.0, pMatrix);
mat4.identity(mvMatrix);
mat4.translate(mvMatrix, [0.0, 0.0, -7.0]);
mat4.rotateY(mvMatrix, angle);
angle += 0.01;
gl.bindBuffer(gl.ARRAY_BUFFER, triangleVertexPositionBuffer);
gl.vertexAttribPointer(vertexPositionAttribute, 3, gl.FLOAT... | JavaScript |
(const chroutine_t &) = delete;
chroutine_t& operator=(const chroutine_t &) = delete;
chroutine_t& operator=(chroutine_t &&) = delete;
private:
ucontext_t * ctx = nullptr;
func_t func = nullptr;
void * arg = nullptr;
chroutine_state_t state = chroutine_state_s... | C++ |
rompt], return_tensors="pt").to(device)
>>> model.to(device)
>>> generated_ids = model.generate(**model_inputs, max_new_tokens=30, do_sample=False)
>>> tokenizer.batch_decode(generated_ids)[0]
'def hello_world():\n print("hello world")\n\nif __name__ == "__main__":\n print("hello world")\n'
```
### Expected spe... | Markdown |
igFile: '.eslintrc',
failOnError: true,
failOnWarning: false,
fix: true,
formatter: eslintFriendlyFormatter,
},
test: /\.js$/,
},
{
include: [path.resolve(ROOT, 'src')],
loader: 'babel-loader',
test: /\.js$/,
},
],
}... | JavaScript |
; ++j) {
s[i + 1][j + 1] = s[i + 1][j] ^ s[i][j + 1] ^ s[i][j] ^ matrix[i][j];
ans.add(s[i + 1][j + 1]);
}
}
Collections.sort(ans);
return ans.get(ans.size() - k);
}
}
```
#### C++
```cpp
class Solution {
public:
int kthLargestValue(vector<ve... | Markdown |
r1:runAction(
cc.RepeatForever:create(
cc.Sequence:create(cc.TintTo:create(6, 255, 0, 255),
cc.TintTo:create(6, 255, 255, 255),
cc.DelayTime:create(1)
)))
sister1:runAction(
cc.RepeatForever:create(
cc.Sequence:create(cc.TintTo:create(2... | Lua |
const int bboxEndBinX = GetRasterizerBinIndexEnd(bboxEndX, binPixelWidth, rasterizerInputCache.binCountX);
const int bboxStartBinY = GetRasterizerBinIndexStart(bboxStartY, binPixelHeight);
const int bboxEndBinY = GetRasterizerBinIndexEnd(bboxEndY, binPixelHeight, rasterizerInputCache.binCountY);
for (int bin... | C++ |
}
count = 0;
break;
default:
SkDEBUGFAIL("bad verb");
}
if (!count) {
continue;
}
SkRect bounds;
bounds.set(pts[0].fX, pts[0].fY, pts[0].fX, pts[0].fY);
for (int i = 1; i <= count; ++i) {
... | C++ |
0+12+40*12 ;150
.byt <$9C40+14+40*4 ;160
.byt <$9C40+17+40*2 ;170
.byt <$9C40+18 ;180(00)
.byt <$9C40+21+40*2 ;190(10)
.byt <$9C40+24+40*4 ;200(20)
.byt <$9C40+26+40*12 ;210(30)
.byt <$9C40+27+40*20 ;220(40)
.byt <$A028+29+40*3 ;230(50)
.byt <$A028+31+40*15 ;240(60)
.byt <$A028+32+40*27 ;250(70)
.byt <$A02... | Assembly |
Params = mutableMapOf(
"content" to notifyTitle
),
bodyParams = mutableMapOf(
"buildNum" to buildNum,
"projectName" to projectName,
"pipelineName" to pipelineName,
"dataTime" to DateTimeUt... | Kotlin |
"where "
+ COLUMN_NAME_DATA_POINT_ID+"=? and "+COLUMN_NAME_ID+"<= " +
"(select " + COLUMN_NAME_ID + " from " +
"(select " + COLUMN_NAME_ID +
" from pointValues " +
"where " + COLUMN_NAME_DATA_POINT_ID + " =? " +
"order by " + COLUMN_NAME_ID + " desc " +
"limit 1 offset ?) lastId)";
private stati... | Java |
arget in targets)
try {
Firmament.logger.debug("Loading ${target} to force instantiate ${cls}")
Class.forName(target, true, javaClass.classLoader)
} catch (ex: Throwable) {
Firmament.logger.error("Could not load class ${target} that has been mixind by $cls", ex)
}
}
}
Firmament.l... | Kotlin |
var path = Path();
path.lineTo(0, size.height - 50);
var firstControlPoint = Offset(size.width / 4, size.height);
var firstEndPoint = Offset(size.width / 2, size.height - 50);
var secondControlPoint = Offset(3 * size.width / 4, size.height - 100);
var secondEndPoint = Offset(size.width, size.heigh... | Dart |
config(theme: &Rc<geng::ui::Theme>, value: Self) -> Self::Config {
Self::Config {
theme: theme.clone(),
#(#field_names: <#field_tys as geng::ui::Configurable>::config(theme, value.#field_names_copy),)*
}
... | Rust |
comparator)
// decreasing sequence number
// decreasing type (though sequence# should be enough to disambiguate)
int r = user_comparator_->Compare(ExtractUserKey(akey), ExtractUserKey(bkey));
if (r == 0) {
const uint64_t anum = DecodeFixed64(akey.data() + akey.size() - 8);
const uint64_t bnum = De... | C++ |
Queue = Queue[1:]
fmt.Println(cur.value)
for _, next := range cur.nexts {
// 直接邻居,没有进入过Set的进入Set和队列
// 用set限制队列的元素,防止有环队列一直会加入元素
if _, ok := Set[next]; !ok { // Set中不存在, 则加入队列
Set[next] = ""
Queue = append(Queue, next)
}
}
}
}
```
#### 1.2.3.2 深度优先遍历
1、利用栈实现
2、从源节点开始把节点按照深度放入栈,然后弹出
3、每弹... | Markdown |
ld");
var arr = orig.CopyAndConcat(tail);
Assert.That(arr, IsJson.ReadOnly.And.EqualTo([ "hello", "world" ]));
Assert.That(arr, Is.Not.SameAs(orig));
}
{ // HEAD + Empty
var orig = JsonArray.Create("hello", "world");
var tail = JsonArray.ReadOnly.Empty;
var arr = orig.CopyAndConcat(tail);
... | C# |
caso, totales)
}
if (casosOrdenados.length < (10 - casosFijos.length)) {
casosOrdenados.push([caso, valor])
minimoYPosicion = getMinimoYPosicion(casosOrdenados)
} else {
if (valor > minimoYPosicion[0]) {
casosOrdenados[minimoYPosicion[1]] = [caso, valor]
min... | Typescript |
100%}.cke_rtl input.cke_dialog_ui_input_text,.cke_rtl input.cke_dialog_ui_input_password{padding-right:2px}.cke_rtl div.cke_dialog_ui_input_text,.cke_rtl div.cke_dialog_ui_input_password{padding-left:2px}.cke_rtl div.cke_dialog_ui_input_text{padding-right:1px}.cke_rtl .cke_dialog_ui_vbox_child,.cke_rtl .cke_dialog_ui_h... | CSS |
: 100000,
updatedAt: 100005,
collaborators: collaborators.map((c) => c.uid),
createdBy: user.uid,
},
{
type: NoteType.list,
id: "2",
title: "2",
collaborators: [],
content: [
{
id: "2-1",
content: "dog",
checked: false,
},
{
id: "2-2"... | Typescript |
*/\n this.setValueOidString = function (oidString) {\n if (!oidString.match(/^[0-9.]+$/)) {\n throw \"malformed oid string: \" + oidString;\n }\n var h = '';\n var a = oidString.split('.');\n var i0 = parseInt(a[0]) * 40 + parseInt(a[1]);\n h += itox(i0);\n ... | JavaScript |
local t = Def.ActorFrame {}
-- tracking the right frame - the box containing song info and the general tabs
-- this is not the right frame which pops up from off screen, that is the PlayerInfoFrame
local rightFrameVisible = true
local visibleX = 0
local hiddenX = SCREEN_WIDTH
local widthRatio = 780 / 1920
local widthA... | Lua |
)
/* 80439508 00436448 98 9F 00 CC */ stb r4, 0xcc(r31)
/* 8043950C 0043644C 98 9F 00 CD */ stb r4, 0xcd(r31)
/* 80439510 00436450 98 9F 00 CE */ stb r4, 0xce(r31)
/* 80439514 00436454 98 9F 00 CF */ stb r4, 0xcf(r31)
/* 80439518 00436458 98 1F 00 D0 */ stb r0, 0xd0(r31)
/* 8043951C 0043645C 98 1F 00 D1 */ stb r0... | Assembly |
halte</a
>,
<a href="/de/docs/Web/HTML/Guides/Content_categories#embedded_content"
>eingebettete Inhalte</a
>, greifbare Inhalte.
</td>
</tr>
<tr>
<th scope="row">Zulässige Inhalte</th>
<td>
Transparent, jedoch keine
<a
href="/de/docs... | Markdown |
val branchId = BranchId(it.getString(0))
val parentId = NoteId(it.getString(1))
val expanded = it.getInt(2) == 1
val notePosition = it.getInt(3)
val prefix = it.getStringOrNull(4)
if (branches.containsKey(branchId)) {
l.add(branches[branchId]!!)
} else {
val branch =
Br... | Kotlin |
_shifted();
byte_emitter.emit_scaled_index_byte(scale, index, bbb)
}
// Displacement.
Self::emit_displacement_0_8bit_or_32bit(byte_emitter, mod_, displacement)
}
else if base_register_is_relative_instruction_pointer_plus_displacement_32bit(bbb)
{
// ModR/M byte.
byte_emitter.emit_mod_r_m_by... | Rust |
, 7, "DB=20*LOG(sqrt((Rl-Rr)/Rr)+sqrt(Rl/Rr))", U("DB","Rl","Rr"))
addCat(6, "RL and RC Circuits", "Compute the natural and transient properties of simple RL\nand RC circuits")
addCatVar(6, "C", "Capacitor", "F")
addCatVar(6, "Cs", "Series capacitance", "F")
addCatVar(6, "Cp", "Parallel capacitance", "F")
addCatVar... | Lua |
thod("get")
}
@Test
fun setInvalidRequestMethodConnect() {
assertValidRequestMethod("CONNECT")
}
private fun assertValidRequestMethod(requestMethod: String) {
server.enqueue(MockResponse())
val response =
getResponse(
Request
.Builder()
.url(server.url("/"))
... | Kotlin |
ap #13 ;BIOS
addq.l #4,A7
btst #2,D0 ;Control?
beq.s term ;Nein -> Ende
clr.l -(A7) ;Dasselbe Environment
pea null(PC) ;Keine Kommandozeile
pea prgname(PC) ... | Assembly |
grpc/grpc-java/issues/1901")
public static final io.grpc.MethodDescriptor<com.role.grpc.RoleRequest,
com.role.grpc.RoleResponse> METHOD_REMOVE_ROLE =
io.grpc.MethodDescriptor.<com.role.grpc.RoleRequest, com.role.grpc.RoleResponse>newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
... | Java |
service.
// The certificates used by the group enrollment tests are signed by this intermediate certificate.
// Chain: Root->Intermediate1->Intermediate2
// Certificate: Intermediate2->deviceCert
public static string GetGroupEnrollmentIntermediatePfxCertificateBase64()
... | C# |
.08 0.48316,-0.997"},"45067":{"name":"Marion, SC","path":"m 832.84795,372.2802 0.47219,-0.22304 0.70103,-0.92002 0.99127,-0.444 0.57765,-0.113 3.15352,0.39491 0.74205,-0.77991 0.98236,0.619 0.21029,0.73401 -0.89313,1.44799 -0.68283,2.182 -0.54021,0.956 -0.79516,1.116 -0.0642,0.145 0.0802,0.693 1.76067,1.48823 0.24328,1... | JavaScript |
rlay( base.g, blend.g ), blendOverlay( base.b, blend.b ) );
}
void main() {
#include <logdepthbuf_fragment>
vec4 base = texture2DProj( tDiffuse, vUv );
gl_FragColor = vec4( blendOverlay( base.rgb, color ), 1.0 );
#include <encodings_fragment>
}`
};
export { Reflector };
import {
MathUtils,
Me... | JavaScript |
T5_1 = 1, FLAT5_2 = 1, FLAT8 = 1,
FLOOR0_1 = 1, FLOOR0_2 = 1, FLOOR0_3 = 1,
FLOOR0_5 = 1, FLOOR4_6 = 1,
}]]
tex_BRICK12 =
{
BRICK12 = 1, BIGBRIK1 = 1, BRICK1 = 1,
BRICK10 = 1, BRICK11 = 1, BRICK2 = 1,
BRICK3 = 1, BRICK4 = 1, BRICK7 = 1,
STUCCO = 2, STUCCO1 = 2,
STONE2 = 1,
}
}
PREFA... | Lua |
ady has target " + s.addr3.String(),
expPayment: s.newTestPayment(s.longAddr2, "51strawberry", s.addr3, "", "aBc"),
},
{
name: "empty to nil",
setup: func() {
s.requireSetPaymentsInStore(s.newTestPayment(s.longAddr1, "73strawberry", nil, "1tomato", "badtrade"))
},
source: s.longAddr1,
exte... | Go |
f[n >> 2] | 0)) >> 2
f[g >> 2] = b + 1
f[e >> 2] = f[g >> 2]
Ob(a, 1, e)
D = ((f[q >> 2] | 0) - (f[p >> 2] | 0)) >> 2
E = D >>> 0 > C >>> 0
f[g >> 2] = b + 2
f[e >> 2] = f[g >> 2]
Ob(a, 2, e)
b =
(((f[s >> 2] | 0) - (f... | JavaScript |
d the macro definition of the given macro application.
\pre lean_expr_get_kind(e) == LEAN_EXPR_MACRO
\remark exceptions: LEAN_OTHER_EXCEPTION */
lean_bool lean_expr_get_macro_def(lean_expr e, lean_macro_def * d, lean_exception * ex);
/** \brief Store in \c as the arguments of the given macro application.
\... | C |
sa from
being negative (see Oliver TA 2008) */
const cs_real_t cst2 = 0.7;
const cs_real_t cst3 = 0.9;
/* If source terms are extrapolated, rho is rho^n
visct is visct^n (visct not used here) */
const cs_real_t cv13 = cs_math_pow3(cs_turb_csav1);
for (cs_lnum_t i = 0; i < n_cells; i++) {
con... | C++ |
c/containers/storage.conf` 文件定义的位置。
1. **查看当前存储配置**
首先,我们可以使用下面的命令来查看当前的镜像存储配置:
```
sealos images --debug
```
这个命令会打印出包含当前存储配置的文件,例如:
```
2023-06-07T16:27:02 debug using file /etc/containers/storage.conf as container storage config
REPOSITORY TAG IMAGE ID CREATED SIZE
```
2. *... | Markdown |
provider.type,
Check_Output_CSV_AWS_Well_Architected,
)
file_descriptors.update({output_mode: file_descriptor})
elif output_mode == "iso27001_2013_aws":
... | Python |
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL RED HAT INCORPORATED BE LIABLE FOR ANY
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUS... | Assembly |
pareResult: 'Ganhou', message: `Papel embrulha Pedra` };
if (opponentHand === 'Papel' && playerHand === 'Pedra')
return { compareResult: 'Perdeu', message: `Papel embrulha Pedra` };
if (playerHand === 'Papel' && opponentHand === 'Spock')
return { compareResult: 'Ganhou', message: `Papel rejeita Sp... | Typescript |
/**
* @brief This function presents the user with 4 points to touch and saves
that data to a claibration file.
*
* @param none
*
* @return none
*
* @note If USECAPTOUCH is defined we do not need to calibrate touch
*/
#if !defined(USECAPTOUCH)
void touch_calibrate()
{
uint16_t calData[5];
uint8_t calDataOK... | C |
return row;
}
*/
/**
* This function scales the row
*
* @param scale How much you want the image to be scaled, must be greater than or equal to 1.
* @return the scaled row
*/
byte[] getScaledRow(int scale) {
byte[] output = new byte[row.length * scale];
for (int i = 0; i < output.leng... | Java |
em.Type + "+" + item.Id];
amountText.text = Item.Amount.ToString();
}
}
public void SetSingle(ItemDefinition item)
{
Item = item;
if (Item.Type == "journal_page")
{
rarityFrame.enabled = false;
itemFrame.sprite = DarkestDungeonManager.Data... | C# |
�閱讀,我們可以換行來輸出:
```bash
kubectl get pods -A -o jsonpath="{range .items[*]}{.metadata.name}{'\n'}{end}"
```
### 輸出所有 pod 的名稱,並自訂輸出欄位為 `POD_NAME`:
* 為了更方便閱讀,我們可以自訂輸出欄位:
```bash
kubectl get pods -A -o custom-columns="POD-NAME:.metadata.name"
```
> **注意**: 使用自訂欄位時,.items需要省略
### 輸出所有 pod 的名稱與 image,並且自訂欄位 `POD_NAME` 與... | Markdown |
value of '%f' but got '%f'", tt.eOut, out)
}
}
}
package decode
import (
"bytes"
"encoding/hex"
)
const b16Alphabet = "0123456789abcdefABCDEF"
const b16name = "b16"
// Base16 takes a decoder and an input string
type Base16 struct {
dec *decoder
input string
}
// NewB16CodecC state machine to smartly deco... | Go |
3y,'
// #2327: 4 fonts: HK 29₅₆, JP 15₁₅₁, KR 70₃₃₀, TC 20₅₀₅.
'2e3q6w6s,'
// #2328: 4 fonts: HK 29₅₆, JP 15₁₅₁, SC 18₄₀₂, TC 20₅₀₅.
'2e3q9q3y,'
// #2329: 5 fonts: HK 29₅₆, JP 16₁₅₂, KR 70₃₃₀, SC 18₄₀₂, TC 21₅₀₆.
'2e3r6v2t3z,'
// #2330: 4 fonts: HK 29₅₆, JP 16₁₅₂, KR 70₃₃₀, TC 21₅₀₆.
'2e... | Dart |
rement/100;
const factorScore = requirementParse*this._scoreMax
while (stepScore <= this._scoreMax){
if (stepScore < factorScore) {
currentGrade = (this._gradeApprove - this._gradeMin) * (stepScore/factorScore) + this._gradeMin;
}else{
currentGrade... | Typescript |
DDR
global SDRANGEL_API_PORT
global TRACKER_FREQUENCY
global XVTR_DEVICE
global REFCORR_LIMIT
addr, port, SDRANGEL_API_ADDR, SDRANGEL_API_PORT, TRACKER_FREQUENCY, XVTR_DEVICE, refcorr_limit = getInputOptions()
if refcorr_limit is not None:
REFCORR_LIMIT = refcorr_limit
print(f'main: ... | Python |
// Form fields need to be populated from recent config
const keys = Object.keys(dropdownJson);
for (let i = 0; i < keys.length; i += 1) {
const element = document.getElementById(`element_${keys[i]}`);
if (element) {
const newValue = dropdownJson[keys[i]];
if (element.type === "checkbox") {
... | JavaScript |
CX
ADD s1, s1, t3
LD a7, 0 * SIZE(X)
FABS t3, a3
daddu X, X, INCX
ADD s2, s2, t4
LD a8, 0 * SIZE(X)
FABS t4, a4
daddiu I, I, -1
bgtz I, .L23
daddu X, X, INCX
.align 3
.L24:
ADD s1, s1, t1
FABS t1, a5
ADD s2, s2, t2
FABS t2, a6
ADD s1, s1, t3
FABS t3, a7
ADD s2, s2, t4
FABS t4, a8
ADD s1,... | Assembly |
ternal code.
* @internal
*/
getResult: () => void;
/**
* Wait for property to be defined on the object and then execute the callable.
* In case of multiple objects defined, wait for all of them.
*/
waitFor: <T extends Context = Context>(
obj: string[] | string,
cb: (... | Typescript |
#!/usr/bin/env python
import logging
log = logging.getLogger("Thug")
class DOMTokenList:
def __init__(self, supported, tokens=None):
self.tokens = [] if tokens is None else tokens
self.__init_supported(supported)
def __init_supported(self, supported):
self.supported = []
fo... | Python |
-- $Id: NanoParticles.lua 3171 2008-11-06 09:06:29Z det $
-----------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------------
local NanoParticles = {}
NanoPart... | Lua |
alpha.themes.dashboard").section.footer.val = require("alpha.fortune")() -- Quotes
-- Everforest theme
require("everforest").setup({
background = "medium",
transparent_background_level = 0,
})
-- Lualine status bar
require("lualine").setup({
options = {
component_separators = " ",
section_... | Lua |
ability Solution
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the ... | Go |
Width = $(this._element).hasClass(Dimension.WIDTH);
return hasWidth ? Dimension.WIDTH : Dimension.HEIGHT;
};
Collapse.prototype._getParent = function _getParent() {
var _this8 = this;
var parent = $(this._config.parent)[0];
var selector = '[data-toggle="collapse"][data-parent="' + this... | JavaScript |
game.load.spritesheet("bullet", "assets/sprites/rgblaser.png", 4, 4)
}
lateinit var sprite:Sprite
lateinit var weapon:Weapon
lateinit var cursors:CursorKeys
override fun create() {
// Creates 30 bullets, using the "bullet" graphic
weapon = game.add.weapon(40, "bullet")
// The "rgblas... | Kotlin |
c = "imx132_1080p_30fps",
.regs = imx132_1080p_30fps,
.width = 1936,
.height = 1096,
.fps_options = {
{
.fps = 30,
.pixels_per_line = 0x08F2,
.lines_per_frame = 0x045C,
},
{
}
},
.bin_factor_x = 0,
.bin_factor_y = 0,
.used = 0,
.skip_frames = 2,
.mipi_freq = 384000,
},
};
s... | C |
,
expectedPrivKey: "6842fb8f5fa574d0482818b8a825a15c4d68f542693197f2c2497e3562f335f6",
keyPath: filepath.Join(homePath, OperatorKeystoreSubFolder, "/test.ecdsa.key.json"),
},
{
name: "valid ecdsa key import with mnemonic",
args: []string{
"--key-type",
"ecdsa",
"test",
"kidney va... | Go |
## 意外
咱们不惹事,可也不怕事!” c:14
### 牵与连
我觉得自己命真好!真是有福气!这么多人对我这样好!” c:21
### 心意
李老夫人微微闭了闭眼睛,沉默着没再说话,只端起杯子慢慢喝着茶。 c:25
### 刚正与古板
“你不能只跟我说:圣人就是对的,圣人怎么会错呢?光这两句话不行!你得讲道理跟我听啊,你得要说服我,为什么圣人的话就一定是对的?为什么夫子说的就是对的?我可是跟你讲道理的!” c:13
### 惨烈教训
可这人做错过事,只能在错处爬起来,不能装看不见绕过去,绕是绕不过去的。 c:94
### 静心
女儿家把持不住,坏了规矩,哪个不是最后害了自己的 c:28
### 送... | Markdown |
t) {
env.queueXmiIDForAdd(eo, v, index, frame);
} else {
if (((XMIResource) resource).getID(eo) != null) {
throw new IllegalArgumentException(String.format(
"Cannot add %s to field %s::%s: maximum multiplicity of 1 reached", v, EMFTVMUtil.toPrettyString(eo, env),
propname));
}
... | Java |
b, Rr15w, Rr15d, Rr15},
[Rrax] = {Rnone, Ral, Rax, Reax, Rrax},
[Rrcx] = {Rnone, Rcl, Rcx, Recx, Rrcx},
[Rrdx] = {Rnone, Rdl, Rdx, Redx, Rrdx},
[Rrbx] = {Rnone, Rbl, Rbx, Rebx, Rrbx},
[Rrsi] = {Rnone, Rsil, Rsi, Resi, Rrsi},
[Rrdi] = {Rnone, Rdil, Rdi, Redi, Rrdi},
[Rr8] = {Rnone, Rr8b, Rr... | C |
| IClearSelectedPasswords | IDeleteSelectedPasswordimport { Pipe, PipeTransform } from '@angular/core';
@Pipe({
name: 'filter',
pure: false
})
export class FilterPipe implements PipeTransform {
transform(cocktails: any[], filters: any){
return cocktails.filter(cocktail => cocktail.flavors[0]+ cocktail.flavo... | Typescript |
on we used to run our test
if blob, err := json.Marshal(cfg); err == nil {
logrus.Trace("Recording the marshalled Sonobuoy config")
if err = os.WriteFile(filepath.Join(metapath, "config.json"), blob, 0644); err != nil {
errlog.LogError(errors.Wrap(err, "could not write config.json file"))
return errCount + 1... | Go |
vc3QxIDAeBgNVBAMTF0hvbmdr
b25nIFBvc3QgUm9vdCBDQSAxMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKC
AQEArP84tulmAknjorThkPlAj3n54r15/gK97iSSHSL22oVyaf7XPwnU3ZG1ApzQ
jVrhVcNQhrkpJsLj2aDxaQMoIIBFIi1WpztUlVYiWR8o3x8gPW2iNr4joLFutbEn
PzlTCeqrauh0ssJlXI6/fMN4hM2eFvz1Lk8gKgifd/PFHsSaUmYeSF7jEAaPIpjh
ZY4bXSNmO7ilMlHIhqqhqZ5/dpTCpmy3Qf... | Go |
TAGE_MAX);
}
static struct mlx5_interface mlx5_ib_interface = {
.add = mlx5_ib_add,
.remove = mlx5_ib_remove,
.event = mlx5_ib_event,
#ifdef CONFIG_INFINIBAND_ON_DEMAND_PAGING
.pfault = mlx5_ib_pfault,
#endif
.protocol = MLX5_INTERFACE_PROTOCOL_IB,
};
unsigned long mlx5_ib_get_xlt_em... | C |
/* { dg-do run } */
/* { dg-options "-fdump-tree-crc -fdisable-tree-phiopt2 -fdisable-tree-phiopt3" } */
/* { dg-skip-if "" { *-*-* } { "-O0" "-O1" "-Os" "-flto" } } */
/* { dg-require-effective-target int32plus } */
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#define CRC16 0x8005
__attribute__ ((noin... | C |
(byte) 0); // NORTH
PacketSendUtility.broadcastToMap(getOwner(), 1402001);
break;
case 164:
flag = (Npc) spawn(802035, getOwner().getX(), getOwner().getY(), getOwner().getZ(), (byte) 0); // GUARD
PacketSendUtility.broadcastToMap(getOwner(), 1402000);
break;
case 158:
flag = (Npc) spawn(80... | Java |
放生成 | 请你写一首简短的诗歌,与爱情有关。|
| 编辑 | 请检查并修复这篇文章中的逻辑错误。|
| 情感分析 | 这篇文章内容是正面、负面还是中性的? |
| 文本生成 | 给我写一段关于夏天的散文。 |
| 实体识别 | 在这篇文章中,提到了哪些人名和地名? |
| 翻译 | 将这句话从英语翻译成中文。 |
| 文本摘要 | 对这篇长篇文章进行摘要,不超过三百字。 |
| 句子改写 | 把这个句子改写成更加通俗易懂的表达方式。 |
| 问题回答 | 什么是区块链技术? |
| 关键词提取 | 从这篇文章中提取出关键词。 |
| 文本分类 | 这封邮件属于哪一类?垃圾邮件、工作相关或者私人邮件? |
| 自然语言推理 | 根据... | Markdown |
0;
right: 0
}
.crt::before {
content: " ";
display: block;
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(
90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, ... | CSS |
a6e846652ad00f',1,'glfw3.h']]],
['glfwvulkansupported',['glfwVulkanSupported',['../group__vulkan.html#ga2e7f30931e02464b5bc8d0d4b6f9fe2b',1,'glfw3.h']]],
['glfwwaitevents',['glfwWaitEvents',['../group__window.html#ga554e37d781f0a997656c26b2c56c835e',1,'glfw3.h']]],
['glfwwaiteventstimeout',['glfwWaitEventsTimeout... | JavaScript |
一个 GET 请求,请求 https://httpbin.air32.cn/bytes/2048 地址,使用 STA 适配器,超时时间为 5000 毫秒
local code, headers, body = http.request("GET", "https://httpbin.air32.cn/bytes/2048", nil, nil, {adapter = socket.LWIP_STA,timeout = 5000,debug = false}).wait()
-- 打印 HTTP 请求执行结果,包含状态码、响应头和响应体长度
... | Lua |
Path));
final response = await request.send();
await _handleUploadResponse(response);
} catch (e) {
logger.e('Error during upload: $e');
Fluttertoast.showToast(
msg: 'Error during upload: $e',
toastLength: Toast.LENGTH_LONG,
gravity: ToastGravity.BOTTOM,
);
... | Dart |
= 1;
const int _BITS_PTHREADTYPES_ARCH_H = 1;
const int __SIZEOF_PTHREAD_MUTEX_T = 40;
const int __SIZEOF_PTHREAD_ATTR_T = 56;
const int __SIZEOF_PTHREAD_RWLOCK_T = 56;
const int __SIZEOF_PTHREAD_BARRIER_T = 32;
const int __SIZEOF_PTHREAD_MUTEXATTR_T = 4;
const int __SIZEOF_PTHREAD_COND_T = 48;
const int __SIZ... | Dart |
Query;
onTick = new plus.Emitter();
init()
{
var thethis = this;
$.post('timer.html', function (data)
{
thethis.dom = $(data);
thethis.timeDiv = thethis.dom.find('.id_time');
thethis.onReady.emit({});
})['fail'](function (error)
{
console.error(error);
thethis.dom.css('back... | Typescript |
ollection<IExplosiveItem> Explosives => Memory.Explosives;
/// <summary>
/// Contains all 'Exfils' in Local Game World, and their status/position(s).
/// </summary>
private static IReadOnlyCollection<IExitPoint> Exits => Memory.Exits;
/// <summary>
/// Contains all filt... | C# |
r-label {
color: #b47109;
}
.polkit-dialog-user-layout {
text-align: center;
spacing: 8px;
margin-bottom: 6px;
}
.polkit-dialog-user-layout .polkit-dialog-user-root-label {
color: #b47109;
}
.audio-device-selection-dialog {
min-width: 24em;
}
.audio-device-selection-dialog .audio-selection-box {
spaci... | CSS |
16 16 0 1 0 0-32 16 16 0 1 0 0 32z" }, "child": [] }] })(props);
}
function FaPersonDressBurst(props) {
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 640 512" }, "child": [{ "tag": "path", "attr": { "d": "M528 48a48 48 0 1 0 -96 0 48 48 0 1 0 96 0zM390.2 384H408v96c0 17.7 14.3 32 32 32s32-14.3 32-32V384h16... | JavaScript |
hers::elliptic_curve_key_exchange::Point ptr = {
uint256_t("188281465057972534892223778713752"),
uint256_t("3419875491033170827167861896082688")};
// Shared key generation.
// For alice
std::cout << "For alice:\n";
// Alice's private key (can be generated randomly)
uint256_t alice_p... | C++ |
urce = @"
class C {
var x: int
ghost var g: int
method M()
modifies this
{
g := x;
}
lemma MyLemma()
}".TrimStart();
await SetUp(options => {
options.Set(ServerCommand.GhostIndicators, true);
});
var documentItem = CreateTestDocument(source);
await client.OpenDocume... | C# |
会根据xml中定义的控件id自动为控件生成驼峰命名
tvTotalNum.text = "接口返回数据---->${data}"
}
}
}package com.jzh.mvvm.utils
import android.content.Context
import android.view.View
import android.view.ViewGroup
import android.view.inputmethod.InputMethodManager
import androidx.core.view.children
import androidx.recyclervi... | Kotlin |
)
local netup_icon = wibox.widget.imagebox(theme.net_up)
local net = lain.widget.net({
settings = function()
widget:set_markup(markup.font("Roboto 1", " ") .. markup.font(theme.font, net_now.received .. " - "
.. net_now.sent) .. markup.font("Roboto 2", " "))
end
})
local netbg ... | Lua |
-hidden="true" class="h-5 w-5 fill-white dark:fill-black group-active:fill-white/80 dark:group-active:fill-black/80 md:h-7 md:w-7">
<path d="M8.5 4C7.67157 4 7 4.67157 7 5.5V30.5C7 31.3284 7.67157 32 8.5 32H11.5C12.3284 32 13 31.3284 13 30.5V5.5C13 4.67157 12.3284 4 11.5 4H8.5ZM24.5 4C23.6716 4 23 4.67157... | JavaScript |
/**
*Copyright (c) 2000-2001, Jim Crafton
*All rights reserved.
*Redistribution and use in source and binary forms, with or without
*modification, are permitted provided that the following conditions
*are met:
* Redistributions of source code must retain the above copyright
* notice, this list of conditions and the fol... | C |
-width: 576px){.card-dashboard-five .card-chart{margin-bottom:0;margin-right:10px}}.card-table-one{padding:20px 20px 10px;border-color:#cdd4e0}.card-table-one .card-title{font-size:14px;font-weight:700;margin-bottom:5px}.card-table-one .table-responsive{width:calc(100vw - 80px)}@media (min-width: 576px){.card-table-one... | CSS |
}
}
},
[28542] = {
["Quest"] = "Warchief's Command: Felwood!|2|45|44|27997|0|0",
["Start"] = "207323|7|32|39.05|29.81",
["End"] = "10923|77|32|51.1|80.4"
},
[28543] = {
["Quest"] = "Hero's Call: Felwood!|1|45|44|27997|0|0",
["Start"] = "207322|97|32|28.28|42.32",
["End"] = "10923|77|32|51.1|80.4"
},
... | Lua |
verBodyInfo *rhs,
dag::ConstSpan<gamephys::CollisionContactData> contacts, Tab<gamephys::SeqImpulseInfo> &collisions)
{
double linearImpulse =
max(lhs ? safeinv(lhs->invMass) * length(lhs->vel) : 0.0, rhs ? safeinv(rhs->invMass) * length(rhs->vel) : 0.0);
double secondMult = lhs && rhs ? -1.0 : 1.0; // have b... | C++ |
i"]],
"阿尔巴尼亚": [["ā"], ["ěr"], ["bā"], ["ní"], ["yà"]],
"阿尔法射线": [["ā"], ["ěr"], ["fǎ"], ["shè"], ["xiàn"]],
"阿尔及利亚": [["ā"], ["ěr"], ["jí"], ["lì"], ["yà"]],
"阿尔及尔": [["ā"], ["ěr"], ["jí"], ["ěr"]],
"阿房宫": [["ē"], ["páng"], ["gōng"]],
"阿富汗": [["ā"], ["fù"], ["hàn"]],
"阿根廷": [["ā"], ["gēn"], ["tíng"]],
"阿狗阿猫": [["ā"], ... | Typescript |
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include "sys.h"
#include "crisutils.h"
static always_inline int cris_addc(int a, const int b)
{
asm ("addc\t%1, %0\n" : "+r" (a) : "r" (b));
return a;
}
#define verify_addc(a, b, res, n, z, v, c) \
{ \
int r; ... | C |
{meal['matched_item'].get('calories', 'N/A')} cal)\n"
return {
'query_type': 'search',
'search_term': query,
'result': response.strip(),
'matching_meals': matching_meals
}
def _extract_food_name_from_query(self, query: str) -> str:
... | Python |
error("No note with ID $id")
}
override suspend fun getLastCreatedNote() = notes.values.maxByOrNull { it.addedDate }
override suspend fun getNewNoteRank() = newNoteRank
override fun getNotesWithReminder() = changeFlow.map {
notes.values.asSequence()
.filter { it.reminder?... | Kotlin |
link="http://www.w3.org/1999/xlink" width="16" height="16" preserveAspectRatio="xMidYMid meet" viewBox="0 0 16 16"><g fill="currentColor"><path d="M9.5 0a.5.5 0 01.5.5.5.5 0 00.5.5.5.5 0 01.5.5V2a.5.5 0 01-.5.5h-5A.5.5 0 015 2v-.5a.5.5 0 01.5-.5.5.5 0 00.5-.5.5.5 0 01.5-.5h3Z"/><path d="M3.5 1h.585A1.498 1.498 0 004 1.... | Dart |
(subsystem, "webhook_authorized_total", "Number of authorizing webhooks called", webhookLabels...),
webhookEnriched: newCounterVec(subsystem, "webhook_enriched_total", "Number of enriching webhooks called", webhookLabels...),
}
}
type kms struct {
signed prometheus.Counter
errors prometheus.Counter
}
func newC... | Go |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.