content stringlengths 2 6.21k | label stringclasses 16
values |
|---|---|
'''
Almacenar los nombres de 5 productos y sus precios.
Utilizar una lista y cada elemento una tupla con el nombre y el precio.
Desarrollar las funciones:
1) Cargar por teclado.
2) Listar los productos y precios.
3) Imprimir los productos con precios comprendidos entre 10 y 15.
'''
#FUNCTIONS
de... | Python |
, -z)));
++nAffected;
}
// Bottom
if (sPart == "BSE" || sPart == "BS" || sPart == "E" || sPart == "B" || sPart == "F") {
blocks.place(nBlockID, positions.add(pCenter, world(x, -y, z)));
+... | Typescript |
",
[79043724] = "cs3_02_trail08",
[3319405720] = "ch1_06__r_hedge_dec_1",
[894049433] = "bh1_42_bld01_water",
[2486049950] = "h4_mph4_man_main_building_decals",
[157686945] = "ap1_01_a_grnlite_b_11",
[618011810] = "po1_06_grnddet04",
[24255651] = "ap1_04_unit081bgvens",
[1876827312] = "prop_fridge_03",
[276143... | Lua |
Length - end]) {
break;
}
}
var sliceTail = end > 1 ? 1 - end : undefined;
this._fallbackText = endValue.slice(start, sliceTail);
return this._fallbackText;
}
});
PooledClass.addPoolingTo(FallbackCompositionState);
module.exports = FallbackCompositionState;
},{"130":130,"169":169,"25"... | JavaScript |
( pfucbAE, speiLastOE.PgnoLast(), spp::AvailExtLegacyGeneralPool, &speiLastAfterAE ) );
BTUp( pfucbAE );
// Double-check that everything looks consistent after space operations.
if ( speiLastAfterOE.PgnoLast() >= speiLastOE.PgnoFirst() )
{
AssertTrack( fFalse, "ShrinkNewSpaceOwnedPostOeDeleteWh... | C++ |
从性质上是反党反社会主义反毛泽东思想的。”吹捧彭真反修“有功绩”,只是有“宗派主义情绪”,“毛泽东思想不太懂”,“搞个人突出”。说陆定一不过是“反教条主义,不反修正主义;反宗派主义,不反投降主义;反左不反右。”说大军阀罗瑞卿仅仅是“盛气凌人,锋芒毕露”的作风。而大特务杨尚昆只是“严重地违反党纪国法”而已。
</p>
<p>
②薄一波在轻工业学院工作队的一个报告会上批示:“应抓紧时机做工作,把牛鬼蛇神(包括“超左派”)揪出来,特别是注意揪其后台老板。”
</p>
<p>
陶鲁笳对李人林说:“地院“六·二○”是反革命事件,……先搞破坏分子,再搞院党委……。”指挥地院工作队继续“反干扰”。
</p>
<... | HTML |
core/utils/logger.dart';
import 'package:flutter/material.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart';
import 'package:get/get.dart';
import 'package:intl/intl.dart';
final logger = initLogger("TransactionsScreenController");
class TransactionsScreenController extends BaseController {
static Trans... | Dart |
- [🔄 启动命令](#-启动命令)
- [🔌 端口配置](#-端口配置)
- [🔧 部署模式](#-部署模式)
- [📂 插件管理](#-插件管理)
- [🚀 开机自启动](#-开机自启动)
- [💫 安装模式](#-安装模式)
- [🔄 部署模式](#-部署模式)
- [🛡️ 安全配置](#-安全配置)
- [🔍 系统检查](#-系统检查)
- [❓ 常见问题](#-常见问题)
- [💡 获取帮助](#-获取帮助)
- [📦 下一步](#-下一步)
- [🤝 贡献](#-贡献)
## 快速部署
### 0. 用户权限配置
#### 方式一:使用root用户安装
```bash
# 直接使用root... | Markdown |
table.s-VRVJ8wOwdSZH th.s-VRVJ8wOwdSZH{font-weight:400;text-align:left;white-space:nowrap}.demo-table.s-VRVJ8wOwdSZH td.s-VRVJ8wOwdSZH,.demo-table.s-VRVJ8wOwdSZH th.s-VRVJ8wOwdSZH{border-bottom:1px solid var(--border-level-1-color);color:var(--text-color-primary);max-width:250px;padding:15px}.demo-table-title.s-VRVJ8wO... | CSS |
v0.4s \n" /* vcgeq_f32 */ \
"fmul v5.4s, v27.4s, v1.4s \n" /* vmulq_f32 */ \
"fcmge v6.4s, v28.4s, v0.4s \n" /* vcgeq_f32 */ \
"fmul v7.4s, v28.4s, v1.4s \n" /* vmulq_f32 */ \
"bif v26.16b, v3.16b, v2.16b \n" /* choose*/ \
"bi... | C++ |
.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('../fonts/poppins/poppins-v5-latin-900italic.woff2') format('woff2'), /* Super Modern Browsers */
url('../fonts/poppins/poppins-v5-latin-900italic.woff') format('woff'), /* Modern Browsers */
url('../fonts/poppins/poppins-v5-latin-900ital... | CSS |
8-5.5-12.3-12.3-12.3L400 64c-44.2 0-80 35.8-80 80zm80-16a16 16 0 1 1 0 32 16 16 0 1 1 0-32z"],
"battery-empty": [576, 512, ["battery-0"], "f244", "M80 160c-8.8 0-16 7.2-16 16l0 160c0 8.8 7.2 16 16 16l384 0c8.8 0 16-7.2 16-16l0-160c0-8.8-7.2-16-16-16L80 160zM0 176c0-44.2 35.8-80 80-80l384 0c44.2 0 80 35.8 80 80l0 16... | JavaScript |
mirror, 'isOptional', () => mirror.isOptional);
visit(mirror, 'type', () => mirror.type);
}
visitSourceLocation(SourceLocation location) {
}
visitTypedefMirror(TypedefMirror mirror) {
super.visitTypedefMirror(mirror);
visit(mirror, 'referent', () => mirror.referent);
}
visitTypeMirror(TypeMi... | Dart |
asLimit){var i=s.shallowCopy(n);i.from=r,n.gasLimit=t.estimateGas(i)}return null==n.chainId&&(n.chainId=t.getNetwork().then(function(e){return e.chainId})),s.resolveProperties(n)}},{"../constants":3,"../errors":5,"../providers/abstract-provider":49,"./address":59,"./bignumber":61,"./bytes":62,"./keccak256":69,"./proper... | HTML |
NameLink"><a href="../../../play/db/jpa/PersistenceUnitInfoImpl.html#getValidationMode--">getValidationMode</a></span>()</code> </td>
</tr>
<tr id="i17" class="rowColor">
<td class="colFirst"><code><a href="../../../play/db/jpa/PersistenceUnitInfoImpl.html" title="class in play.db.jpa">PersistenceUnitInfoImpl</a><... | HTML |
0x01000000 @ fill with fixed source
bl swi_CpuSet @ clear buffer
ldmfd sp!, { r0 } @ pop zero value off the stack
ldr r1, [r4] @ SoundInfo->ident
sub r1, #1
str r1, [r4] @ decrement identifier again
.sound_vsync_off_return:
ldmfd sp!, { r4, lr... | Assembly |
jpg" alt="IMG_0362.jpg"></p>
<p><img src="https://img.alicdn.com/tps/TB1roZoKVXXXXcWXFXXXXXXXXXX-86-86.jpg" alt="IMG_0362.jpg"></p>
<script>
window.disqusProxy={
shortname: 'taobaofed',
username: 'taobaofed',
server: '184.170.213.204',
port: 8999,
adminAv... | HTML |
/* { dg-do run } */
/* { dg-options "-O" } */
/* { dg-require-effective-target int32plus } */
extern void abort (void);
typedef unsigned int u_int32;
typedef struct {
union {u_int32 Xl_ui;} Ul_i;
union {u_int32 Xl_uf;} Ul_f;
} l_fp;
void
dolfptoa (short ndec)
{
l_fp work, ftmp;
work.Ul_i.Xl_ui = 0;
work.U... | C |
(tid string) (*GetPubTemplateKeyWordsByIdResponse, error) {
api := baseURL + apiGetPubTemplateKeyWordsById
token, err := cli.AccessToken()
if err != nil {
return nil, err
}
return cli.getPubTemplateKeyWordsById(api, token, tid)
}
func (cli *Client) getPubTemplateKeyWordsById(api, token, tid string) (*GetPubTem... | Go |
: #D9C6BF;}
/* Parcelas */
.pergunta{
font-family: "Inter", sans-serif;
font-optical-sizing: auto;
font-weight: bold;
font-style: normal;
font-size: 20px;
}
.parcela{
font-family: "Inter", sans-serif;
fon... | HTML |
t = tokens[i];
if (t == "size")
{
// not supported
return std::string();
}
else if (t == "int")
{
// not supported
return std::string();
}
else if (t == "abs"
|| t == "acos"
|| t ==... | C++ |
Duration operator*(uint64_t multiplier, const Duration& duration)
{
return Duration(duration.getMilliseconds() * multiplier);
}
bool operator==(const Duration& a, const Duration& b)
{
return a.getMilliseconds() == b.getMilliseconds();
}
bool operator!=(const Duration& a, const Duration& b)
{
return a.ge... | C++ |
e);
Actor_UpdateBgCheckInfo(play, &this->actor, 0.0f, 0.0f, 0.0f, 4);
this->actionFunc(this, play);
talkDist = this->collider.dim.radius + 30.0f;
Npc_UpdateTalking(play, &this->actor, &this->npcInfo.talkState, talkDist, EnMu_GetFaceReaction,
EnMu_UpdateTalkState);
this->actor.... | C |
to write to the CLI.
UI cli.Ui
}
// NewCommand returns a new instance of a base.Command type.
func NewCommand(log hclog.Logger, ui cli.Ui) *Command {
ctx, cancel := context.WithCancel(context.Background())
ret := &Command{
Context: ctx,
Log: log,
ShutdownCh: MakeShutdownCh(),
UI: ui,
}
... | Go |
((Stat.st_dev == Device) && (Stat.st_ino == File)) {
Answer = TRUE;
goto TestForFileInPathTraversalEnd;
}
CurrentSeparator = NextSeparator;
}
//
// Check the path as a whole.
//
Result = SwStat(Path, TRUE, &Stat);
if (Result != 0) {
goto TestFor... | C |
xlink.GetLink(evt.ThreadId, req.timeOpen, in allTables.threadTable);
this.Add(req);
break;
case WINET.RequestCreatedB:
// This record is not very useful. Its data is mostly for DEBUG validation.
// But the pwzServerName can be used for additional Name<->Address mapping.
timeStamp = evt.Timest... | C# |
================================================
DEFINE_ACTION_FUNCTION(AActor, A_Burst)
{
PARAM_SELF_PROLOGUE(AActor);
PARAM_CLASS(chunk, AActor);
int i, numChunks;
AActor * mo;
if (chunk == NULL)
{
return 0;
}
self->Vel.Zero();
self->Height = self->GetDefault()->Height;
// [RH] In Hexen, this creates... | C++ |
char* kChannelErrorTraceKey = "channel_error_bt";
// GetRemoveTrackingFlag() exposes this so that
// WebPluginDelegateProxy::Initialize() can do scoped set/reset. When
// true, RemoveRoute() knows WBDP::Initialize() is on the stack, and
// records the backtrace.
bool remove_tracking = false;
} // namespace
#endif
... | C++ |
NCT\txxxx\tx\t0\t0\t<other>\n" +
"the\tthe\tt\tth\tthe\tthe\te\the\tthe\tthe\tNOCAPS\tNODIGIT\t0\tNOPUNCT\txxx\tx\t0\t0\t<other>\n" +
"whole\twhole\tw\twh\twho\twhol\te\tle\tole\thole\tNOCAPS\tNODIGIT\t0\tNOPUNCT\txxxx\tx\t0\t0\t<other>\n" +
"surface\tsurface\ts\tsu\tsur\... | Kotlin |
prototypeFor,
sourceDir = singleDeployedContract.sourceDir,
origSourceDir = singleDeployedContract.origSourceDir
)
}
val srcMappings by lazy { parseSrcMapping(srcmap) }
val varMappings by lazy { parseVariableMapping(varmap) }
val srcContext by lazy { SourceContext(srclis... | Kotlin |
!
@brief returns x * y
@note The result is rounded. (Only the upper q bits are returned.)
*/
static diyfp mul(const diyfp& x, const diyfp& y) noexcept
{
static_assert(kPrecision == 64, "internal error");
// Computes:
// f = round((x.f * y.f) / 2^q)
// e = x.e + y.e... | C++ |
'''mcibi_deeplabv3_resnet101os8_ade20k'''
import os
import copy
from .base_cfg import SEGMENTOR_CFG
from .._base_ import DATASET_CFG_ADE20k_512x512, DATALOADER_CFG_BS16
# deepcopy
SEGMENTOR_CFG = copy.deepcopy(SEGMENTOR_CFG)
# modify dataset config
SEGMENTOR_CFG['dataset'] = DATASET_CFG_ADE20k_512x512.copy()
# modify... | Python |
eneral Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
package model
import (
"encoding/json"
"fmt"
"io/fs"
"math"
"os"
"path"
"path/filepath"
"sort"
"strconv"
"strings"
... | Go |
В равной степени это также означает, что третьим сторонам не так просто добавить Monero в список поддерживаемых их кошельками валют, как, например, в случае с Exodus.</p>\n\n<p>И всё же медленно, но верно, кошельки всех видов открываются для Monero. За многие годы отсутствие GUI у Monero уже стало мемом, равно как и о... | Dart |
,
ImInvLength,
nb::arg("lhs"), nb::arg("fail_value"),
"(private API)");
m.def("im_trunc",
nb::overload_cast<float>(ImTrunc),
nb::arg("f"),
"(private API)");
m.def("im_trunc",
nb::overload_cast<const ImVec2 &>(ImTrunc),
nb::arg("v"),
"(pri... | C++ |
);
}
return 0;
}
static inline void compile_inputs()
{
memset (DrvInputs, 0xff, 5 * sizeof(INT16));
for (INT32 i = 0; i < 16; i++) {
DrvInputs[0] ^= (DrvJoy1[i] & 1) << i;
DrvInputs[1] ^= (DrvJoy2[i] & 1) << i;
DrvInputs[2] ^= (DrvJoy3[i] & 1) << i;
DrvInputs[3] ^= (DrvJoy4[i] & 1) << i;
DrvInputs[4] ^... | C++ |
teAmenityCommand request, CancellationToken cancellationToken)
{
var AmenityToDelete = await _amenityRepository.GetByIdAsync(request.Id);
if (AmenityToDelete != null)
{
var res = await _amenityRepository.DeleteAsync(request.Id);
var mappedAme... | C# |
;
process.once = noop;
process.off = noop;
process.removeListener = noop;
process.removeAllListeners = noop;
process.emit = noop;
process.prependListener = noop;
process.prependOnceListener = noop;
process.listeners = function (name) { return [] }
process.binding = function (name) {
throw new Error('process.bindi... | JavaScript |
createList.storeName = message
setCreateList(createList)
storeType = StoreType.MANUFACTURE
sitDown()
broadcastUserInfo()
broadcastPacket(RecipeShopMsg(this))
}
internal fun Player.getCombatBehavior() : CombatBehavior{
if(this is Autobot) {
return combatBehavior
}
return ... | Kotlin |
metricBucket) Delete(ctx context.Context, name string) error {
const op = OpDelete
b.metrics.ops.WithLabelValues(op).Inc()
start := time.Now()
if err := b.bkt.Delete(ctx, name); err != nil {
if !b.metrics.isOpFailureExpected(err) && ctx.Err() != context.Canceled {
b.metrics.opsFailures.WithLabelValues(op).Inc... | Go |
args"));
assert!(errs[6].contains("continue args mismatch: 'halt' expects 1 args"));
}
#[test]
fn test_undefined_capture() {
let errs = parse_check("(program halt
(letfun (f r (x) (a b) (cont r x))
(cont halt 0)))");
assert_eq!(errs.len(), 1);
assert!(errs[0].contains("undefined c... | Rust |
},week:{dow:1,doy:4}}),M.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".s... | JavaScript |
pPoints.resize(pCurrentKF->GetMapPointMatches().size(), static_cast<MapPoint*>(NULL));
int num_matches = matcher.SearchByProjection(pCurrentKF, mScw, vpMapPoints, vpMatchedMapPoints, 3, 1.5);
return num_matches;
}
void LoopClosing::CorrectLoop()
{
cout << "Loop detected!" << endl;
// Send a stop sign... | C++ |
#pragma once
#include <QtQml/QQmlEngine>
namespace qml_material
{
class WidthProvider : public QObject {
Q_OBJECT
QML_ELEMENT
Q_PROPERTY(double width READ width NOTIFY widthChanged FINAL)
Q_PROPERTY(qint32 column READ column NOTIFY columnChanged FINAL)
Q_PROPERTY(double minimum READ minimum WRITE... | C++ |
,.lp6
move.w #%1111110000011111,d0
moveq #32-1,d7
.lp7 move.w #256-1,d6
.inlp7 move.w d0,(a0)+
dbra d6,.inlp7
addi.w #%0000000000100000,d0
dbra d7,.lp7
moveq #$ffffffff,d0
move.w #(8192+16384)-1,d7
.lp8 move.w d0,(a0)+
dbra d7,.lp8
rts
* Routine that precalculates the plottable picture of a blob-element an... | Assembly |
0xb8ae5752;
segment1.Append("Some contents!");
segment2.address() = 0xd6b0ce83;
segment2.Append("Different stuff.");
segment3.address() = 0x7374fd2a;
segment3.Append("Further materials.");
SegmentLoadCommand cmd1, cmd2, cmd3;
cmd1.Header("first", segment1, 0xfadb6932, 0x175bf529, 0x0de790ad);
cmd2.He... | C++ |
::_1;
using std::placeholders::_2;
#endif // defined(ASIO_HAS_BOOST_BIND)
#if defined(ASIO_HAS_STD_ARRAY)
asio::io_service ios;
test_stream s(ios);
std::array<asio::const_buffer, 2> buffers = { {
asio::buffer(write_data, 32),
asio::buffer(write_data) + 32 } };
s.reset();
bool called = false;
asi... | C++ |
noneNum = RevisionMax - onNum; %\>"%>
<%="<% while(i < onNum) { %\>"%>
<div class="on"/>
<%="<% i=(i+1)|0; %\>"%>
<%="<% } %\>"%>
<%="<% i = 0; %\>"%>
<%="<% while(i < noneNum) { %\>"%>
<div class=""/>
<%="<% i=(i+1)|0; %\>"%>
<%="<% } %\>"%>
</div>
... | HTML |
) {
ARDUINOJSON_ASSERT(s.size() <= n);
::memcpy_P(p, s._str, n);
}
StringStoragePolicy::Copy storagePolicy() const {
return StringStoragePolicy::Copy();
}
private:
const char* _str;
size_t _size;
};
template <>
struct StringAdapter<const __FlashStringHelper*, void> {
typedef FlashString Adap... | C++ |
ar);
let dest = this.checkDestination(action, vector);
if (dest == null || critter.energy <= 2 * baby.energy || this.grid.get(dest) != null)
return false;
critter.energy -= 2 * baby.energy;
this.grid.set(dest, baby);
return true;
};
class Plant {
energy: number;
constructor(energy: ... | Typescript |
2,3.46 l2.19,2.13C4.47,11.23,4.44,11.61,4.44,12s0.03,0.77,0.09,1.14l-2.19,2.13l2,3.46l2.92-0.83c0.6,0.48,1.27,0.87,2,1.14L10,22h4 l0.74-2.96c0.73-0.27,1.4-0.66,2-1.14l2.92,0.83l2-3.46l-2.19-2.13c0.06-0.37,0.09-0.75,0.09-1.14s-0.03-0.77-0.09-1.14l2.19-2.13 l-2-3.46L16.74,6.1c-0.6-0.48-1.27-0.87-2-1.14L14,2L14,2z"] {
... | CSS |
color){
@include gradient-vertical-three-colors(lighten($color, 15%), $color, 50%, darken($color, 4%));
filter: none;
border: 1px solid darken($color, 10%);
}
// Navbar =====================================================================
.navbar {
@include btn-shadow($navbar-default-bg);
text-shadow: 0 1p... | CSS |
.94131,-3.34687 0.16989,-0.91229 0.21784,-1.84467 0.26147,-2.77162 0.0606,-1.28851 0.0692,-2.58174 0,-3.86982 -0.0611,-1.13797 -0.30496,-2.26119 -0.36606,-3.39916 -0.0579,-1.07921 0,-2.16152 0,-3.24228 0,-1.11562 0.005,-2.23126 0,-3.34687 -0.009,-1.86524 -0.0761,-3.73044 -0.0523,-5.59555 0.0191,-1.49991 0.088,-2.99891 ... | CSS |
bject, List<JSONObject>>(places.size());
poi2bndries = new HashMap<JSONObject, List<JSONObject>>(pois.size());
addr2PlaceVoronoy = new HashMap<>(addrPoints.size());
addr2NeighbourVoronoy = new HashMap<>(addrPoints.size());
street2Junctions = new HashMap<Long, Set<JSONObject>>(junctions.size() * 2);
... | Java |
id="getsecret" tabindex="-1">getSecret() <a class="header-anchor" href="#getsecret" aria-label="Permalink to "getSecret()""></a></h3><blockquote><p><strong>getSecret</strong><<code>SecretNames</code>>(...<code>secretNames</code>): <code>Promise</code><<a href="./../../core/type-aliases/ObjectWithKey... | HTML |
h, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED ... | Rust |
.rawTrixite, "Rohes Trixit")
addItem(NTechItems.u233Ingot, "Uran-233-Barren")
addItem(NTechItems.u235Ingot, "Uran-235-Barren")
addItem(NTechItems.u238Ingot, "Uran-238-Barren")
addItem(NTechItems.th232Ingot, "Thorium-232-Barren")
addItem(NTechItems.pu238Ingot, "Plutonium-238-Barr... | Kotlin |
FlowDirection.In)] ClipPlaneName plane, [Count(Count = 4), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan<float> equation)
{
// SpanOverloader
thisApi.ClipPlane(plane, in equation.GetPinnableReference());
}
public static unsafe void GetClipPlane(this OesSingle... | C# |
开" target="_blank">c5c9de651fc8fea0fb017bc3ba19bb1c.php</a></td><td width="40%">[2017-10-27 12:39:28|2017-9-14 11:53:45]</td><td width="10%">9.396</td><td width="8%">0666</td><td width="17%">[<a href="删除" title="删除" onClick="rusuredel('./c5c9de651fc8fea0fb017bc3ba19bb1c.php','?action=filedel&dir=.&delfile=');return fal... | HTML |
return ret;
}
static const struct dev_pm_ops pm_ops = {
SET_RUNTIME_PM_OPS(mhi_runtime_suspend,
mhi_runtime_resume,
mhi_runtime_idle)
SET_SYSTEM_SLEEP_PM_OPS(mhi_system_suspend, mhi_system_resume)
};
static struct pci_device_id mhi_pcie_device_id[] = {
{PCI_DEVICE(MHI_PCIE_VENDOR_ID, 0x0300)},
{PCI_... | C |
if (event.which === this._key)
return;
else
this._key = event.which;
}
if (name == 'key_release')
this._key = null;
var value = '';
if (event.ctrlKey && event.which != 17)
value += "ctrl+";
if (event.altKey && event.which != 18)
value += "alt+... | HTML |
};
/**
* Determines if the current date instance is within a LeapYear.
* @param {Number} The year.
* @return {Boolean} true if date is within a LeapYear, otherwise false.
*/
$D.isLeapYear = function (year) {
return ((year % 4 === 0 && year % 100 !== 0) || year % 400 === 0);
};
/*... | HTML |
O.Compression.GZipStream sw = new System.IO.Compression.GZipStream(ms, System.IO.Compression.CompressionMode.Compress);
//Compress
sw.Write(byteArray, 0, byteArray.Length);
//Close, DO NOT FLUSH cause bytes will go missing...
sw.Close();
//Transform byte[] zip data to string
byteArray = ms.ToA... | C# |
et("/TestObject")
.jsonPath().get("result[0].name");
// name must be null
assertNull(name);
}
/**
* Test the creation of a single entity with generated UUID and
* given name. This method also tests the contents of the JSON
* response and reasonable query and serialization time.
*/
@Test
public voi... | Java |
?? '');
}
mappedSegment.addSegment(newSegment);
}
return mappedSegment;
}
SegmentDisplayType baseSegmentType(SegmentDisplayType segmentType) {
if (Variants14Segment.contains(segmentType)) return SegmentDisplayType.FOURTEEN;
if (Variants16Segment.contains(segmentType)) return SegmentDisplayType.SIXTEEN... | Dart |
var move: GoMove? = actMove
while (move != null) {
if (condition(move)) return move
move = nextMove(move)
}
return null
}
fun findFirstMove(): GoMove {
return findPreviousMove { it.isFirstMove }!!
}
fun findLastMove(): GoMove {
re... | Kotlin |
oid acs_scan_retry(void *eloop_data, void *user_data)
{
struct hostapd_iface *iface = eloop_data;
if (acs_request_scan(iface)) {
wpa_printf(MSG_ERROR,
"ACS: Failed to request re-try of initial scan");
acs_fail(iface);
}
}
enum hostapd_chan_status acs_init(struct hostapd_iface *iface)
{
int err;
wpa_p... | C |
", "failed to SetBridgeBank due to:", err.Error())
return nil, nil, err
}
if isSim {
sim.Commit()
}
auth, err = PrepareAuth(client, para.DeployPrivateKey, para.Deployer)
if nil != err {
return nil, nil, err
}
_, err = x2EthContracts.Chain33Bridge.SetOracle(auth, deployInfo.Oracle.Address)
if nil != err {... | Go |
b580-1c97e6d7d42c": {
"a": {
"c": "dei:EntityCentralIndexKey",
"e": "e:0001445305",
"p": "2023-01-09/2023-01-10"
},
"v": "0001445305"
},
"id3VybDovL2RvY3MudjEvZG9jOjM4NzJkNmFjZjRjZDQwMjY4M2U0YTZkNTE2MDQxMGUyL3NlYzozODcyZDZhY2Y0Y2Q0MDI2ODNlNGE2ZDUxNjA0MTBlMl80L2ZyYWc6NjdkNDljMzZkNTRiNDIyMTg0ZTI1... | HTML |
Records"
},
"example" : {
"HistoryRecords" : [ {
"Details" : "Hello World"
} ]
}
}
},
"required" : true
}
</script>
</table>
</article>
</div>
<hr>
<div id="api-Accounting-createPurchaseOr... | HTML |
urn MessageAnchoringConfig(
disabled = disabled,
l1Endpoint = l1Endpoint ?: l1DefaultEndpoint ?: throw AssertionError("l1Endpoint must be set"),
l2Endpoint = l2Endpoint ?: l2DefaultEndpoint ?: throw AssertionError("l2Endpoint must be set"),
l1HighestBlockTag = l1HighestBlockTag,
l2HighestB... | Kotlin |
', 'Ṙ', '᧓', '𝢷', '🀩', '𑴭', 'ᇢ', '𝈾',
'洞', '𔔸', '☍', '\u{1fba7}', '𛰚', '⺐', '𘩲', '𘡚', '〹', '𔓞', '參',
'ꂭ', '𝐺', '𝡃', 'ゕ', '𓆶', '⦡', 'ᰉ', '⢁', 'ག', '𛰉', '𛰋', '𐠴',
'⒋', '﨨', '㎃', 'ꠞ', '𑂧', 'Ⲡ', '𔑇', 'ᄃ', '\u{11902}', '\u{1d181}',
'𐧠', '𒍍', '\u{1fb2d}', '𑈎', 'ᄻ', '𝙚', '┸', '𓃯', '\u{1ba... | Rust |
nd.16b v11, v17, v8
and.16b v8, v19, v8
ucvtf.2d v6, v6
mul x5, x6, x9
mov x13, #37864
movk x13, #1815, lsl 16
movk x13, #28960, lsl 32
umulh x6, x6, x9
movk x13, #17153, lsl 48
dup.2d v12, x13
mov.16b v13, v9
adds x4, x5, x4
cinc x5, x6, hs
fmla.2d v13, v6, v12
fsub.2d v14, v10, v13
adds ... | Assembly |
mon_anz dc.w 0
pl_scan_mon_ptr ds.w monsters_max*2
pl_small dc.w 0
;---
pl_left_nb dc.w -1 ; nummer der routine
pl_txt dc.l 0
;---
; reihenfolge beachten ...
plg_real_pos dc.w 0
plg_act_pos dc.w 0
plg_to_pos dc.w 0
;---
pl_mun_last dc.w 0
pl_mun0_last dc.w 0
pl_mun1_last dc.w 0
pl_mun2_last dc.w 0
pl_mun3_la... | Assembly |
.0;
gradientLine2.Opacity = 1.0;
gradientLine3.Opacity = 1.0;
gradientLine4.Opacity = 1.0;
gradientLine5.Opacity = 1.0;
gradientPath1.Opacity = 1.0;
gradientPath2.Opacity = 1.0;
gradientPath3.Opacity = 1.0;
... | C# |
GetProperty = 0x07,
ReceiveSbFile = 0x08,
Execute = 0x09,
Call = 0x0A,
Reset = 0x0B,
SetProperty = 0x0C,
EraseFlashAllUnlock = 0x0D,
FlashProgramOnce = 0x0E,
FlashReadOnce = 0x0F,
FlashReadResource = 0x10,
ConfigureMemory = 0x11,
ReliableUpdate = 0x12,
GenerateKeyBlo... | Rust |
perty.call(t,"dilations"),o=t.kernelShape.slice(),s=t.strides.slice(),u=a?t.dilations.slice():[],l=t.pads.slice();pn.adjustPoolAttributes(n,i,o,s,u,l);let d=pn.computePoolOutputShape(n,i,s,u,o,l,t.autoPad),p=Object.assign({},t);a?Object.assign(p,{kernelShape:o,strides:s,pads:l,dilations:u,cacheKey:t.cacheKey}):Object.a... | JavaScript |
Add(ShareFundsEvents.VesselAssembled);
}
protected override void OnDisabled()
{
base.OnDisabled();
//Always try to remove the event, as when we disconnect from a server the server settings will get the default values
GameEvents.OnFundsChanged.Remove(ShareFun... | C# |
Block {
1073762400 as *const _
}
}
impl Deref for PMU3 {
type Target = pmu0::RegisterBlock;
fn deref(&self) -> &pmu0::RegisterBlock {
unsafe { &*PMU3::ptr() }
}
}
#[doc = "Peripheral Management Unit"]
pub struct PMU4 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for PMU4 {}
i... | Rust |
folder = folder,
fullPath = fullPath,
expires = 0,
overwrite = false,
size = 1L,
sha256 = sha256,
md5 = "md5",
operator = UT_USER,
nodeMetadata = metadata
)
return nodeService.createNode(request)... | Kotlin |
rlwi. r0, r3, 0x18
/* 8041CD90 00419CD0 41 82 00 4C */ beq .L_8041CDDC
/* 8041CD94 00419CD4 C0 DF 00 18 */ lfs f6, 0x18(r31)
/* 8041CD98 00419CD8 38 60 00 01 */ li r3, 1
/* 8041CD9C 00419CDC C0 1F 00 20 */ lfs f0, 0x20(r31)
/* 8041CDA0 00419CE0 C0 5F 00 24 */ lfs f2, 0x24(r31)
/* 8041CDA4 00419CE4 EC 00 01 B2 */ ... | Assembly |
f("two", "tWo");
f("three", "tHree");
});
describe("Match->matchCase().matchInitial()", ({ assert, inspect }) => {
const p1 = Prompt.from("match test 1");
const m1 = new Match(p1, "one", "two", "three");
const q1 = m1.matchCase().matchInitial();
const [p, f] = makeTests(q1, assert, inspect);
p("one", "on... | Typescript |
import sys
import shutil
import os
from datasets.VisA import Visa_dataset
from datasets.MVTec import Mvtec_dataset
from datasets.BTAD import BTAD_dataset
from datasets.MPDD import MPDD_dataset
from datasets.MVTec3D import Mvtec3D_dataset
from datasets.RESC import RESC_dataset
from datasets.BrasTS import BrasTS_dataset
... | Python |
umerically("==", expectedNumOfReconciles))
By("deleting the KafkaCluster CR")
err = k8sClient.Delete(ctx, kafkaCluster)
Expect(err).ToNot(HaveOccurred())
Eventually(func() int {
reconciles := kafkaClusterReconciler.NumOfRequests()
log.Info("check reconciles on delete", "reconciles", reconciles)
... | Go |
Q(0, hist.getBucket(0).count(TS::ALLTIME));
EXPECT_EQ(0, hist.getBucket(hist.getNumBuckets() - 1).count(TS::MINUTE));
EXPECT_EQ(
0, hist.getBucket(hist.getNumBuckets() - 1).count(TS::TEN_MINUTE));
EXPECT_EQ(0, hist.getBucket(hist.getNumBuckets() - 1).count(TS::HOUR));
EXPECT_EQ(0, hist.getBucket... | C++ |
# Copyright (c) 2008 The Regents of The University of Michigan
# 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 ... | Python |
-shadow .15s ease-in-out}@media(prefers-reduced-motion: reduce){.form-control{transition:none}}.form-control[type=file]{overflow:hidden}.form-control[type=file]:not(:disabled):not([readonly]){cursor:pointer}.form-control:focus{color:#373a3c;color:var(--bs-body-color);background-color:#fff;background-color:var(--bs-body... | CSS |
hen viewable using [**!rcdrkd.rcdrlogdump**](../debuggercmds/-rcdrkd-rcdrlogdump.md) or [**!wdfkd.wdflogdump**](../debuggercmds/-wdfkd-wdflogdump.md).
**WppRecorder_PreciseTimeStamp: REG_DWORD** (available starting in WDK build 22557)
If you would like more precise timestamps, in addition to **WppRecorder_UseTimeStam... | Markdown |
"
e["overridden-chartA-B.SCAstring"] = "jabberwocky"
e["overridden-chartA-B.SCBbool"] = "false"
e["overridden-chartA-B.SCBfloat"] = "1.99"
e["overridden-chartA-B.SCBint"] = "77"
e["overridden-chartA-B.SCBstring"] = "jango"
e["overridden-chartA-B.SPextra6"] = "111"
e["overridden-chartA-B.SCAextra1"] = "23"
e["ov... | Go |
ó cho phép chúng ta tránh các giá trị rất lớn cho số mũ lớn $i$. Chúng tôi sẽ tổng hợp 100 mẫu mỗi mẫu cho bộ đào tạo và bộ kiểm tra.
```{.python .input}
#@tab all
max_degree = 20 # Maximum degree of the polynomial
n_train, n_test = 100, 100 # Training and test dataset sizes
true_w = np.zeros(max_degree) # Allocate... | Markdown |
Prints from '../deletePrints';
import printPage from '../printPage';
import printUrls from '../printUrls';
import sendMsgToSlack from '../sendMsgToSlack';
import urls from '../urls.json';
// TODO: integration test here
// TODO: type res on a separated file
const main = async ({ res }: { res: http.ServerResponse}) => ... | Typescript |
("Ledger should only contain well formed data");
entry
})
.collect()
}
fn get_cf_options() -> Options {
let mut options = Options::default();
options.set_max_write_buffer_number(32);
options.set_write_buffer_size(MAX_WRITE_BUFFER_SIZE);
op... | Rust |
><B>3.3 How do I handle endian issues in binary data?</B></A>
<DD> Traditional C/C++ programs encode binary data in different formats
on different platforms.
<menu>
<li> Big-endian - SPARCs and the network in general use this format.
<li> Little-endian - Intel x86 chips use this format.
</menu>
Problems can occur when ... | HTML |
ext>
<text font="KNBMFL+Arial" bbox="332.676,342.857,334.895,350.837" colourspace="DeviceGray" ncolour="0" size="7.980">t</text>
<text font="KNBMFL+Arial" bbox="334.894,342.857,338.884,350.837" colourspace="DeviceGray" ncolour="0" size="7.980">s</text>
<text font="KNBMFL+Arial" bbox="338.883,342.857,341.102,350.837" co... | HTML |
x
and edx,ebx
jne L_92082
mov ecx,ebx
dec ecx
and ecx,eax
jmp L_92083
L_92082:
cmp eax,ecx
jc L_92085
L_92084:
sub edx,edx
xor edx,edx
div ebx
mov eax,edx
L_92085:
mov... | Assembly |
#include "PWM_Compare.h"
void TIM4_IOInit(void)
{
GPIO_InitTypeDef GPIO_InitStructure;
//***עAPB2***
RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOB, ENABLE); //ʹ GPIOBʱ
GPIO_InitStructure.GPIO_Pin = GPIO_Pin_6|GPIO_Pin_7; //TIM4ͨ1-PB6 TIM4ͨ2-PB7
//***(PWMģʽ)***
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_AF_PP;
... | C |
for msg in messages:
## Replay in exact same order
result = engine.process(msg)
## Verify determinism
original_result = self.get_original_result(msg.sequence)
assert result == original_result, "Non-deterministic behavior detected"
return engine
... | Markdown |
BackgroundShadow = [
BoxShadow(
blurRadius: 15,
offset: Offset(4.5, 4.5),
color: kDarkBackgroundShadowColour,
)
];
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:show_time_for_flutter/ui/splash/downtime.dart';
import 'package:show_time_for_flutter/ui/home... | Dart |
tp://www.roblox.com/asset/?id=6282522798';
ZIndex = 7;
Parent = DropdownInner;
});
local ItemList = Library:CreateLabel({
Position = UDim2.new(0, 5, 0, 0);
Size = UDim2.new(1, -5, 1, 0);
TextSize = 14;
Text = '--';
Text... | Lua |
20, \i, \i, .4h
.endr
endfuncl
functionl inv_identity_8h_x16_lsx1
li.w t0, 1697
vreplgr2vr.w vr20, t0
.irp i, vr0, vr1, vr2, vr3, vr4, vr5, vr6, vr7, vr8, \
vr9, vr10, vr11, vr12, vr13, vr14, vr15
inv_identity16_lsx1 \i, \i, vr20, \i
.endr
endfuncl
const iadst16_coeffs_h, align=4
... | Assembly |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.