content stringlengths 2 6.21k | label stringclasses 16
values |
|---|---|
/*
i2cslave.h - I2C Slave Communication instead of UART
19.01.2017 - Diggen85 (Benny_Stark@live.de)
- Add Communication as I2C Slave
19.02.2018 - Defined a Macro for TWCR_INIT, TWCR_OFF to reuse in rf_send.c
- Fixed sending from rf_send.c - Disable/Enable Interrupt
Thanks to Markus
*/
/*
T... | C |
table-row>.cbi-value-field [data-dynlist]>input,.cbi-section-table-row>.cbi-value-field input.cbi-input-password {
width: calc(100% - 1.5rem)
}
.cbi-tabcontainer>.cbi-value:nth-of-type(4n+2),.cbi-map>.cbi-section .cbi-value:nth-of-type(4n+2),fieldset>table>tbody>tr:nth-of-type(4n+2),table>tbody>tr:nth-of-type(4n+2),... | CSS |
y;
}
tileid = ppu_rd_mem(nidx, pos + BASE_VRAM);
//汉字显示 Chinese character display
if (tileid < MAX_GROUP) {
bktileid = tileid;
if (bktileid < 5) {
offset = 0;
count = 0;
} else {
offset += 8;
}
} else if (((tileid < MAX_INDEX_R) && (F_SPECIAL == 0)) || ((F_SPECIAL == 1) &&... | C |
end
end
--schedule a task to be executed when the player leaves combat
function detailsFramework.Schedules.AfterCombat(callback, id, ...)
local bInCombatLockdown = UnitAffectingCombat("player") or InCombatLockdown()
if (not bInCombatLockdown) then
xpcall(callback, geterrorhandler(), ...)
retur... | Lua |
default();
let sent_report = Arc::new(Mutex::new(false));
let sent_report_clone = sent_report.clone();
test_harness(
|job| job.seconded_candidate = Some(collator_id.clone()),
|mut to_job, mut from_job| async move {
to_job
.send(CandidateSelectionMessage::Invalid(relay_parent, candidate_receipt))
... | Rust |
a); err != nil {
if errors.IsNotFoundError(err) {
return nil, nil
}
return nil, errors.Wrap(ctx, err, op, errors.WithMsg(fmt.Sprintf("failed for %s", withPublicId)))
}
return a, nil
}
// listAccounts returns a slice of accounts in the auth method.
// Supported options:
// - WithLimit which overrides the ... | Go |
out-header>.callout-icon-container>.no-icon{display:none}div.callout.callout{border-left-color:#6c757d}div.callout.callout-style-default>.callout-header{background-color:#6c757d}div.callout-note.callout{border-left-color:#033c73}div.callout-note.callout-style-default>.callout-header{background-color:#e6ecf1}div.callout... | CSS |
ServerVersion,
}) =>
TokenOriginData(
source: source ?? this.source,
data: data ?? this.data,
appName: appName ?? this.appName,
createdAt: createdAt ?? this.createdAt,
isPrivacyIdeaToken: isPrivacyIdeaToken != null ? isPrivacyIdeaToken() : this.isPrivacyIdeaToken,
... | Dart |
2em;box-shadow:0 0 0 1px transparent}.ui.category.search>.results .category .result:hover,.ui.search>.results .result:hover{background:#F9FAFB}.ui.search .action:hover{background:#E0E0E0}.ui.category.search>.results .category.active{background:#F3F4F5}.ui.category.search>.results .category.active>.name{color:rgba(0,0,0... | CSS |
.36},{30.11,62.51},{33.88,61.92},{31.33,61.38},{35.21,63.73},{35.77,66.11},{35.85,70.31},{36.62,74.37},{32.24,68.15},{29.06,68.86},{31.34,72.38},{33.66,70.85},{33.66,67.02},{33.7,72.95},{29.62,71.34},{31.9,64.24},{35.89,70.0},{29.13,63.74},{30.2,67.61},{30.45,73.78},{27.82,64.7},{30.5,70.79},{30.81,66.56},{34.48,69.09}... | Lua |
.3 6.3Z"/></svg>',addtag:'<svg width="24" height="24"><path fill-rule="evenodd" clip-rule="evenodd" d="M15 5a2 2 0 0 1 1.6.8L21 12l-4.4 6.2a2 2 0 0 1-1.6.8h-3v-2h3l3.5-5L15 7H5v3H3V7c0-1.1.9-2 2-2h10Z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M6 12a1 1 0 0 0-1 1v2H3a1 1 0 1 0 0 2h2v2a1 1 0 1 0 2 0v-2h2a1 1 0 1... | JavaScript |
]
)
cb = fig.colorbar(c1, cax=cax)
# cb.ax.set_ylabel("Temperature", rotation=0, fontdict=fontdict)
cb.ax.tick_params(labelsize=11, direction="out")
# plt.suptitle(title)
# plt.tight_layout()
plt.savefig(save_path, bbox_inches="tight", dpi=600, pad_inches=0.05)
print(f"Save figure to {... | Python |
0].(error)
return ret0
}
// ChainSyncHandleNewTipSet indicates an expected call of ChainSyncHandleNewTipSet.
func (mr *MockFullNodeMockRecorder) ChainSyncHandleNewTipSet(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ChainSyncHandleNewTipSet", r... | Go |
Post(post, context).then(
// (value) {
// if (value) {
// SnackBar snackBar = SnackBar(
// content: Text(
// 'Post supprimé !',
// ... | Dart |
SD-style license that can be found in the LICENSE file.
// @dart=2.19
int topLevelMethod() => 1;
int topLevelMethod() => 2;
int get topLevelGetter => 1;
int get topLevelGetter => 2;
void set topLevelSetter(value) {}
void set topLevelSetter(value) {}
int topLevelField = 1;
int topLevelField = 2;
int topLevelField... | Dart |
nums.add(i)
}
Collections.shuffle(nums)
val result: MutableList<Int> = ArrayList()
for (i in 0 until k) {
result.add(nums[i])
}
Collections.sort(result)
return result
}
}
} // class upstream
internal cla... | Kotlin |
/** \file
* \brief iuptabs control.
*
* See Copyright Notice in iup.h
*/
#ifndef __IUPTABS_H
#define __IUPTABS_H
#ifdef __cplusplus
extern "C" {
#endif
/* callbacks */
/* Atributos */
#ifndef ICTL_TOP
#define ICTL_TOP "TOP"
#endif
#ifndef ICTL_BOTTOM
#define ICTL_BOTTOM "BOTTOM"
#endif
#ifndef ICTL_LEFT
#de... | C |
/*
* QEMU Freescale eTSEC Emulator
*
* Copyright (c) 2011-2013 AdaCore
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
*... | C |
NonStaticImplementsStatic' does not have an `@staticInterop` annotation, but has supertype 'Static', which does.
@JS()
class EmptyNonStatic {}
@JS()
@staticInterop
class StaticImplementsNonStatic implements EmptyNonStatic {}
// ^
// [web] JS interop class 'StaticImplementsNonStatic' has an `@staticInterop` annotat... | Dart |
if (verifyFlags.contains(VerifyFlag.DISCOURAGE_UPGRADABLE_NOPS)) {
throw new ScriptException(ScriptError.SCRIPT_ERR_DISCOURAGE_UPGRADABLE_NOPS,"Script used a reserved opcode ${opcode}");
}
break;
}
executeCheckSequenceVerify(txContainingThis!, in... | Dart |
&work[ibal], n, &vs[vs_offset], ldvs,
&ierr);
}
if (scalea) {
/* Undo scaling for the Schur form of A */
dlascl_("H", &c__0, &c__0, &cscale, &anrm, n, n, &a[a_offset], lda, &
ierr);
i__1 = *lda + 1;
dcopy_(n, &a[a_offset], &i__1, &wr[1], &c__1);
if ((wantsv || wantsb) && *info == 0) {
... | C |
remier jour du mois (0=dimanche, 1=lundi...)
let firstDay = new Date(year, month, 1);
let startDay = (firstDay.getDay() + 6) % 7; // Lundi=0
let daysInMonth = new Date(year, month + 1, 0).getDate();
let daysInPrevMonth = new Date(year, month, 0).getDate();
let html = '';
// Jours du mois précédent (gris)
... | JavaScript |
#ifndef CartesianLorentzForce_H
#define CartesianLorentzForce_H
#include "FWCore/Utilities/interface/Visibility.h"
#include "RKDerivative.h"
#include "RKLocalFieldProvider.h"
/// Derivative calculation for the 6D cartesian case.
class dso_internal CartesianLorentzForce final : public RKDerivative<double, 6> {
public... | C |
, gist_id, comment_id);
let req = GitHubRequest {
uri: request_uri,
body: None,
method: "DELETE",
headers: vec![]
};
let request = GitHubRequestBuilder::build(req, self.auth)?;
// --
let github_response = crate::adapters::fetch... | Rust |
: Kurtosis update & CI clanup [32/N] ([#326](https://github.com/ethpandaops/optimism-package/issues/326)) ([147d515](https://github.com/ethpandaops/optimism-package/commit/147d51542bdc0c3fbfe841b0a80d8ced3f179fb0))
* Support multiple sequencers: Make sure network ID label is a string [15/N] ([#299](https://github.com/e... | Markdown |
if (other.recipeType !== recipeType || other.ownerBlock !== ownerBlock) return false
if (other.materials.size != materials.size || other.productions.size != productions.size) return false
return other.materials == materials && other.productions == productions
}
override fun hashCode(): Int {
if (!co... | Kotlin |
= ((localMantissa shr 8 and 0x0F) + ((localExponent and 0x0F) shl 4)).toByte()
result[1] = (localMantissa and 0xFF).toByte()
}
} else if (length == 4u) {
val localMantissa = intToSignedBits(mantissa, 24)
val localExponent = intToSignedBits(exponent, 8)
var index = 0
... | Kotlin |
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 limitations under
* the License.
*/
package io.cdap.plugin.batch.aggregator.function;
import io.cdap.c... | Java |
file, packed};
///
pub mod mutable;
///
pub mod name;
///
pub mod transaction;
/// A validated and potentially partial reference name - it can safely be used for common operations.
#[derive(PartialEq, Eq, Debug, Hash, Ord, PartialOrd, Clone, Copy)]
pub struct FullName<'a>(&'a BStr);
/// A validated complete and fully ... | Rust |
t.AssetInfo.AsVMInfo()
if err != nil {
return utils.FatalError{Err: err}
}
logger := log.GetLoggerFromContextOrDefault(ctx).WithFields(logrus.Fields{
"ScannerLocation": s.ScannerRegion,
"Provider": string(s.Kind),
})
ec2Tags := types.EC2TagsFromScanMetadata(t.ScanMetadata)
ec2Filters := utils.EC2F... | Go |
"state_id": "1114"
},
{
"id": "16384",
"name": "Pahkla",
"state_id": "1114"
},
{
"id": "16385",
"name": "Parsama",
"state_id": "1114"
},
{
"id": "16386",
"name": "Pihtla",
"state_id": "1114"
},
{
"id": "16387",
"name": "Sakla",
"state_id": "1114"
},
{
"id": "16388",
"name": "Salme... | Dart |
nedByte();
d.x6 = riff.readUnsignedByte();
d.x7 = riff.readUnsignedByte();
d.x8 = riff.readUnsignedByte();
return d;
}
public int hashCode() {
return (int)i1;
}
public boolean equals(Object obj) {
i... | Java |
the global policy in light of who the
* principal is and returns an appropriate Permissions object.
*
* @deprecated As of JDK 1.4, replaced by
* {@link sun.security.provider.PolicyParser}.
* This class is entirely deprecated.
*
* @author Roland Schemers
*
* @since 1.2
*/
@Depreca... | Java |
q6zequb-gYTdF2_ZEUtr8ywTXzLYtknzWU4nV8uVoo=".to_string(),
);
let rpc = Client::new(RPCBASE.to_string(), auth.clone()).unwrap();
let offer_rpc = get_new_wallet_rpc(&rpc, LOCALPARTY, auth.clone());
let accept_rpc = get_new_wallet_rpc(&rpc, REMOTEPARTY, auth.clone());
let sink_rpc = get_new_wallet_rpc... | Rust |
ecode::Lt,
Opcodes::GT => Bytecode::Gt,
Opcodes::LE => Bytecode::Le,
Opcodes::GE => Bytecode::Ge,
Opcodes::ABORT => Bytecode::Abort,
Opcodes::NOP => Bytecode::Nop,
Opcodes::EXISTS => Bytecode::Exists(load_struct_def_index(cursor)?),
Opc... | Rust |
import torch
def native_safe_softmax(x):
x_max, _ = x.max(axis=1)
x = x - x_max[:, None]
x = x.exp()
den = x.sum(axis=1)
return x / den[:, None]
if __name__ == "__main__":
# x = torch.randn(3, 4)
x = torch.tensor([range(64)]).reshape(1, 64)
out = native_safe_softmax(x)
print(x, o... | Python |
import json
import os
import time
import gradio as gr
from pydantic import ValidationError
from blueprints.architect import generate_blueprint, process_blueprint
from blueprints.schema import OpenAIResponse
NOTION_PAGE_ID = os.environ["NOTION_PAGE_ID"]
MODEL_NAME = os.environ["NOTION_GPT_MODEL_NAME"]
def gradio_bl... | Python |
Skill.SKILL_LUCKY)) removeSkill(L2Skill.SKILL_LUCKY, false)
removeInvalidSkills()
}
private fun removeInvalidSkills() {
if (skills.isEmpty()) return
val availableSkills = template.skills.stream().filter { s: GeneralSkillNode -> s.minLvl <= level + if (s.id == L2Skill.SKILL_EXPERTIS... | Kotlin |
.next=head;
// head=newnode;
//insert in last
Node tem=head;
while(tem.next!=null){
tem=tem.next;
}
tem.next=newnode;
}
}
}
public class LinkedList1 {
public static void main(Stri... | Java |
/* ----------------------------------------------------------------------
SPARTA - Stochastic PArallel Rarefied-gas Time-accurate Analyzer
http://sparta.github.io
Steve Plimpton, sjplimp@gmail.com, Michael Gallis, magalli@sandia.gov
Sandia National Laboratories
Copyright (2014) Sandia Corporation. Unde... | C |
tstrap();
// bootstrap.group(bossGroup, workerGroup);
// bootstrap.channel(NioServerSocketChannel.class);
// //netty初始化相关的handler
// bootstrap.childHandler(new ChannelInitializer<>() {
// @Override
// protected void initChannel(Channel channel) throws Exception {
// ... | Java |
ing the input buffer.
* At least avpkt->data and avpkt->size should be set. Some
* decoders might also require additional fields to be set.
* @return A negative error code is returned if an error occurred during
* decoding, otherwise the number of bytes consumed from the ... | Go |
/**
* @file lv_draw_sw.c
*
*/
/*********************
* INCLUDES
*********************/
#include "../lv_draw.h"
#include "lv_draw_sw.h"
/*********************
* DEFINES
*********************/
/**********************
* TYPEDEFS
**********************/
/**********************
* STATIC PROTOTY... | C |
ntiguous(
&self,
input: RawSlice<Complex<f32>>,
output: RawSliceMut<Complex<f32>>,
) {
let values = read_partial1_complex_to_array!(input, {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16});
let out = self.perform_parallel_fft_direct(values);
write_partial_... | Rust |
/* This file is part of the Neper software package. */
/* Copyright (C) 2003-2024, Romain Quey. */
/* See the COPYING file in the top-level directory. */
#ifdef __cplusplus
extern "C"
{
#endif
/// \file neut_poly.h
/// \brief
/// \author Romain Quey
/// \bug No known bugs
#ifndef NEUT_POLY_TOPO_H
#define NEUT_POLY_T... | C |
-- Handle: /itemwatch list merge <name>
if (#args >= 4 and args[2]:any('list', 'lists') and args[3]:ieq('merge')) then
editor.lstMgr.refresh_saved_lists();
-- Find the index of the list..
local lst = editor.lstMgr.saved_lists;
for x = 1, #lst do
if (lst[x]:ieq(args:c... | Lua |
self.config.gap_open_penalty,
self.config.gap_extend_penalty,
calc_bandwidth(query, target, bandwidth),
ptr::null_mut(),
ptr::null_mut(),
ptr::null_mut(),
)
}
}
pub fn extension_align(&self, query: &[u8... | Rust |
import jakarta.xml.bind.annotation.XmlEnum;
import jakarta.xml.bind.annotation.XmlEnumValue;
import jakarta.xml.bind.annotation.XmlType;
/**
*
*
* <p>Java class for HostLowLevelProvisioningManagerFileType</p>.
*
* <p>The following schema fragment specifies the expected content contained within this class.</p... | Java |
SpeakerVoiceConfig getMultiSpeakerVoiceConfig();
/**
*
*
* <pre>
* Optional. The configuration for a Gemini multi-speaker text-to-speech
* setup. Enables the use of two distinct voices in a single synthesis
* request.
* </pre>
*
* <code>
* .google.cloud.texttospeech.v1.MultiSpeakerVoice... | Java |
been completed.";
BLIZZARD_STORE_CONFIRMATION_OTHER_EUR = "Your purchase will be ready when processing has been completed. |HurlIndex:21|h|cff006995Change your payment method|r|h";
BLIZZARD_STORE_CONFIRMATION_SERVICES = "Services purchased will be accessible at the character select screen when processing has been compl... | Lua |
for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
var x = _step6.value;
__accu0__.append((0, _srcReact_utils.e)(_srcUi.ui.List.Item, (0, _srcReact_utils.h)('span', (0, _srcReact_utils.h)('a', x, (0, _orgTranscrypt__runtime__.__kwargtrans__)({
href: x,
target: '_... | JavaScript |
/*-
* Copyright (c) 2006 nCircle Network Security, Inc.
* Copyright (c) 2009 Robert N. M. Watson
* All rights reserved.
*
* This software was developed by Robert N. M. Watson for the TrustedBSD
* Project under contract to nCircle Network Security, Inc.
*
* This software was developed at the University of Cambri... | C |
}
}
protected void processpacket_up(SimEvent ev) {
// packet coming from down level router.
// has to send up
// check which switch to forward to
// add packet in the switch list
//
// int src=ev.getSource();
NetworkPacket hspkt = (NetworkPacket) ev.getData();
int recvVMid = hspkt.pkt.reciever;
Cl... | Java |
x, unordered_map<string, ftrl_model_unit*>& theta)
{
double result = 0;
for(unordered_map<string, double>::iterator iter = x.begin(); iter != x.end(); ++iter)
{
const string& index = iter->first;
result += get_wi(theta, index) * iter->second;
}
double sum, sum_sqr, d;
for(int f =... | C |
not take into account the winding
// rule and therefore holes
for (int k = 0; k < points.size() - 1; k++) {
final float xk = points.get(k).getX();
final float yk = points.get(k).getY();
final float xk1 = points.get(k + 1).getX();
final float yk1 = points.get(k + 1).getY();
final float shared = xk *... | Java |
ungee", "!net.md_5.bungee117"],
// repository = "https://repo2s.ptms.ink/repository/releases"
)
object Components {
/** 使用adventure作为底层 */
var useAdventure = false
/** 创建空白块 */
fun empty(): ComponentText {
return if (useAdventure) {
AdventureComponent()
} else {
... | Kotlin |
EventOnMultipleFenceCompletion method","ID3D12Device1.SetEventOnMultipleFenceCompletion","ID3D12Device1::SetEventOnMultipleFenceCompletion","SetEventOnMultipleFenceCompletion","SetEventOnMultipleFenceCompletion method","SetEventOnMultipleFenceCompletion method","ID3D12Device1 interface","d3d12/ID3D12Device1::SetEventOn... | Markdown |
决数据繁琐疑难症
如果你正在用Excel处理数据,可能会遇到一些让人头疼的问题。不过别担心你遇到了我,今天推荐一些Excel
AI工具和软件,让你可以帮你轻松解决这些痛点。下面是一些具体的应用场景和解决方案:
### Excel 图像识别预处理
在Excel中进行图像识别和预处理并不是Excel本身的功能,但可以通过一些方法和工具来实现。以下是一些步骤和建议,帮助你在Excel中处理图像数据:
图像导入:
### AI实现可视化图表
用AI工具来实现数据可视化一直都存在痛点,不仅要考虑前期的数据收集,数据整理,也需要考虑中期的数据分析后后期的数据展示,这里有个简单的指南,带你一步步了解整个过程。
一、数据可视化的流程<... | Markdown |
/**
* GLFW on mouse moved
* @param window window
* @param x x
* @param y y
*/
static void glfwOnMouseMoved(GLFWwindow* window, double x, double y);
/**
* GLFW on key
* @param window window
* @param button button
* @param action action
* @param mods modifier keys
*/
static void glfwOnMouseBu... | C |
table))
}
}
impl<'lua> FromLua<'lua> for ModuleBuilder<'lua> {
fn from_lua(lua_value: LuaValue<'lua>, lua: &'lua Lua) -> LuaResult<Self> {
let table = LuaTable::from_lua(lua_value, lua)?;
Ok(Self { lua, table })
}
}
impl<'lua> ModuleBuilder<'lua> {
pub fn new(lua: &'lua Lua) -> Result<... | Rust |
. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package syscall_test
import (
"internal/testenv"
"os"
"runtime"
"syscall"
"testing"
)
func testSetGetenv(t *testing.T, key, value string) {
err := syscall.Setenv(key, value)
if err !=... | Go |
:a.color},k=t[h]&&t[h].length>0,O={backgroundColor:"transparent"},C=["xm-option",g?" disabled":"",v?" selected":"",y?"show-icon":"hide-icon"].join(" "),j=k&&"hidden"===e.iconfont.parent?"xm-option-icon-hidden":["xm-option-icon",(_?e.iconfont.half?e.iconfont.half+" xm-custom-icon":0:k&&e.iconfont.parent?e.iconfont.paren... | JavaScript |
e backup was successful.
Successful = 5,
/// The backup was skipped (without problems) for a given backup
/// window. Example: Instance was idle.
Skipped = 6,
/// The backup is about to be deleted.
DeletionPending = 7,
/// The backup deletion failed.
DeletionFailed = 8,
/// The backu... | Rust |
.9版本。 | [1]https://patchstack.com/database/wordpress/plugin/idonate-pro/vulnerability/wordpress-idonatepro-plugin-2-1-9-broken-access-control-vulnerability?_s_id=cve |
| 43 | CVE-2025-30998 | 8.5 | HIGH | 在Rico Macchi WP Links Page中存在SQL命令中的特殊元素处理不当(`SQL注入`)漏洞,这允许进行SQL注入。此问题影响WP Links Page:从n/a到4.9.6版本。 | [1]https://p... | Markdown |
oad.normal.last" to resourceLoadPainter,
"load.normal.first.last" to resourceLoadPainter,
"load.overload" to resourceLoadPainter,
"load.overload.first" to resourceLoadPainter,
"load.overload.last" to resourceLoadPainter,
"load.overload.first.last" to resourceLoadPainter,
"load.underl... | Kotlin |
#include "f2c.h"
#include "fio.h"
#ifdef __cplusplus
extern "C" {
#endif
uiolen f__reclen;
int
#ifdef KR_headers
do_us(number,ptr,len) ftnint *number; char *ptr; ftnlen len;
#else
do_us(ftnint *number, char *ptr, ftnlen len)
#endif
{
if(f__reading)
{
f__recpos += (int)(*number * len);
if(f__recpos>f__reclen)
... | C |
/* SPDX-License-Identifier: GPL-2.0-only */
/* Altera TSE SGDMA and MSGDMA Linux driver
* Copyright (C) 2014 Altera Corporation. All rights reserved
*/
#ifndef __ALTERA_SGDMA_H__
#define __ALTERA_SGDMA_H__
void sgdma_reset(struct altera_tse_private *);
void sgdma_enable_txirq(struct altera_tse_private *);
void sgdm... | C |
| | ├──05任务五:模块作业
| | ├──SSM项目直播.zip 2.86M
| | ├──第六阶段模块四课件.zip 70.49M
| | └──第六阶段模块四直播.mp4 863.41M
| └──05 模块五:SSM单体架构项目(下)
| | ├──01任务一:课程和广告模块前端开发
| | ├──02任务二:权限管理模块前端开发
| | ├──03任务三:项目打包发布
| | ├──【作业】第六阶段模块五作业.docx 12.53kb
| | └──第六阶段模块五作业.zip 0.04kb
├──第07阶段 分布式技术核心
| ├──01模块一:Dubbo&Zoo... | Markdown |
ine ImpElfGetImageSize ImpElf32GetImageSize
#define ImpElfLoadImage ImpElf32LoadImage
#define ImpElfAddImage ImpElf32AddImage
#define ImpElfUnloadImage ImpElf32UnloadImage
#define ImpElfGetHeader ImpElf32GetHeader
#define ImpElfGetSection ImpElf32GetSection
#define ImpElfLoadAllImports ImpElf32LoadAllImports
#define Im... | C |
load test song
public TestRepeatController() throws IOException {
this.song = new TestFileFormat20().readSong("altRepeatLoop_20.tg", true).getSong();
}
@Test
public void testNominalSequence() {
checkSequence(new MidiRepeatController(this.song, -1, -1),
new int[] {1,2,3, 1, 4,5, 1, 4,5, 1, 6,7, 8,9, 8,9, ... | Java |
parametrize("poly", ["triangle", "dodecagon",
"tetrahedron", "cube", "octahedron",
"dodecahedron", "icosahedron"])
def test_equal_area_reconstitution(self, poly):
points = _generate_polytope(poly)
n, dim = points.shape
... | Python |
建 {} 个提醒和任务
{}
注:时间格式为 HH:MM 或 HHMM,如 8:05 或 0805
指令任务自定义标识说明:
- 使用 ---- 分隔符可以自定义指令任务的标识文字
- 格式:指令----位置--自定义文字
- 位置可选:before(开头)、after(末尾)、start(开头)、end(末尾)
- 示例:/rmd--ls----before--每日提醒 或 /rmd--ls----after--执行完成
- 如果不使用 ---- 分隔符,默认显示 [指令任务]
法定节假日数据来源:http://timor.tech/api/holiday""".format(
self.sta... | Python |
rn extendedKey.encodeBase58String(alphabet)
}
override fun data() = raw
override fun address(): Address? {
when (network) {
Network.BITCOIN, Network.LITECOIN -> {
if (raw.size != PUBLIC_KEY_COMPRESSED_SIZE) {
return null
}
... | Kotlin |
{
case apiconsts.PodAnnotationQoSLevelReclaimedCores:
if oomPriorityScore < DefaultReclaimedCoresOOMPriorityScore {
oomPriorityScore = DefaultReclaimedCoresOOMPriorityScore
} else if oomPriorityScore >= DefaultSharedCoresOOMPriorityScore {
oomPriorityScore = DefaultSharedCoresOOMPriorityScore - 1
}
... | Go |
}
group = "com.hibiscusmc"
version = "2.8.2${getGitCommitHash()}"
allprojects {
apply(plugin = "java")
apply(plugin = "java-library")
repositories {
mavenCentral()
mavenLocal()
// Paper Repo
maven("https://repo.papermc.io/repository/maven-public/")
maven("https:/... | Kotlin |
EpochStartMeta data.HeaderHandler
}
func createLegacyTriggerRegistryFromTrigger(t *trigger) *legacyTriggerRegistry {
metaBlock, _ := t.epochStartMeta.(*block.MetaBlock)
return &legacyTriggerRegistry{
Epoch: t.epoch,
CurrentRound: t.currentRound,
EpochFinality... | Go |
Event.VK_8
"pov" -> {
when (value) {
0.25f -> KeyEvent.VK_NUMPAD8
0.5f -> KeyEvent.VK_NUMPAD6
0.75f -> KeyEvent.VK_NUMPAD2
1.0f -> KeyEvent.VK_NUMPAD4
else -> null
}
... | Kotlin |
ments.last == 'null') return null;
return span;
}
}
LazyMapping? _mapping;
List<String> roots = rootDirectories.map((s) => '$s').toList();
String mapper(String rawStackTrace) {
var mapping = _mapping;
if (mapping == null) {
// This should not happen if the user has waited for the ReadyCallback
// t... | Dart |
pred}, \frac{pred}{gt})< 1.25^t}\}| \times 100\\%$
- Depth Estimation Score (DES):
- $\text{DES}_1 = \text{Abs Rel} - \delta_1 + 1$
- $\text{DES}_2 = \frac{\text{Abs Rel} - \delta_1 + 1}{2}$
- $\text{DES}_3 = \frac{\text{Abs Rel}}{\delta_1}$
### SimIPU (R50, ImageNet)
### Clean
| $\text{Abs Rel}$ | $\text{Sq R... | Markdown |
l,
liquid_tips=test_tips_liquid[:NUM_TRIALS],
probing_tips=test_tips_probe[:NUM_TRIALS],
src_well=reservoir["A1"],
wells=test_wells[:NUM_TRIALS],
dispense_from_bottom=dispense_from_bottom,
probe_yes_or_no=probe_yes_or_no,
... | Python |
lag": 130,
"lin": 131,
"lka": 132,
"o i": 133,
"san": 134,
"u s": 135,
"una": 136,
"uun": 137,
" ga": 138,
" xa": 139,
" xu": 140,
"aab": 141,
"abt": 142,
"aq ": 143,
"aqa": 144,
"ara": 145,
"arl": 146,
"caa": 147,
"cir": 148,
"eeg": 149,
"eel": 150,
"isa": 151,
"kal": 152,
... | Go |
)}}):{name:t.name,value:n.replace(Dt,"\r\n")}}).get()}});var qt=/%20/g,Lt=/#.*$/,Ht=/([?&])_=[^&]*/,Ot=/^(.*?):[ \t]*([^\r\n]*)$/gm,Pt=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Mt=/^(?:GET|HEAD)$/,Rt=/^\/\//,It={},Wt={},$t="*/".concat("*"),Bt=r.createElement("a");Bt.href=Ct.href;function Ft(e){return ... | JavaScript |
trafficpolicy
import (
"fmt"
"reflect"
"sort"
mapset "github.com/deckarep/golang-set"
hashstructure "github.com/mitchellh/hashstructure/v2"
policyv1alpha1 "github.com/openservicemesh/osm/pkg/apis/policy/v1alpha1"
"github.com/openservicemesh/osm/pkg/constants"
"github.com/openservicemesh/osm/pkg/service"
)
... | Go |
"""author: J Morris (UKAEA)
This module contains the PROCESS CCFE HCPB blanket model
based on CCFE HCPB model from the PROCESS engineering paper
PROCESS Engineering paper (M. Kovari et al.)
### References
- Kovari et al., Fusion Engineering and Design 104 (2016) 9-20
"""
# Smeared densities of build sections
armour_d... | Python |
err = serialize.Deserialize(buf, &gReq); err != nil {
return nil, err
}
if response.Data, err = serialize.SerializeToBytes(gRep); err != nil {
return nil, err
}
return response, nil
}
func (s *SlaveServerSideOp) GetMinorBlockHeaderListWithSkip(ctx context.Context, req *rpc.Request) (*rpc.Response, error) {
... | Go |
/*
* Copyright (C) 2006 Komal Shah <komal_shah802003@yahoo.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#ifndef __KEYPAD_OMAP_H
#define __KEYPAD_OMAP_H
#ifndef CON... | C |
供,附加条款亦可能应用。
引用类型与其他类型作品版权归原作者所有,如有作者授权则遵照授权协议使用。
详细请查阅 [THBWiki:免责声明](https://thbwiki.cc/THBWiki:%E5%85%8D%E8%B4%A3%E5%A3%B0%E6%98%8E)。
# 歌词:Now_and_in_the_future
<!-- source html: G:\repos\THBWiki-Markdown-Builder\THBWikiMarkdown\Temp\main\b\bd\ns512%3ANow_and_in_the_future.html -->
DiGiTAL_WiNG | 使用了翻译表的页面 | 日文... | Markdown |
<li>the {@code propertyFlags} members of <b>X</b> and <b>Y</b> are equal, and <b>X</b> belongs to a memory heap with greater performance (as determined in an implementation-specific manner) ; or</li>
* <li>or the {@code propertyFlags} members of <b>X</b> includes {@link AMDDeviceCoherentMemory#VK_MEMORY_PROPERTY_DEVI... | Kotlin |
ta2c charData = gameState_800babc8.charData_32c[charId];
final CharacterStatsEvent statsEvent = EVENTS.postEvent(new CharacterStatsEvent(charId));
stats.xp_00 = statsEvent.xp;
stats.hp_04 = statsEvent.hp;
stats.mp_06 = statsEvent.mp;
stats.sp_08 = statsEvent.sp;
stats.dxp_0a = stat... | Java |
let _lc6 = gpioa.pa8.into_push_pull_output();
unsafe {
let dma1 = &*stm32::DMA1::ptr();
let gpioa_odr = (*stm32::GPIOA::ptr()).odr.as_ptr();
let gpiob_idr = (*stm32::GPIOB::ptr()).idr.as_ptr();
let gpiob_odr = (*stm32::GPIOB::ptr()).odr.as_ptr();
... | Rust |
reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
#[repr(u8)]
pub enum TX_MAC_TIMER_TX_MAC_TIMER_A {
#[doc = "0: `0`"]
TX_MAC_TIMER_TX_MAC_TIMER_DEFAULT = 0,
}
impl From<TX_MAC_TIMER_TX_MAC_TIMER_A> for u8 {
#[inline(always)]
fn from(variant: TX_MAC_TIMER_TX_MAC_TIMER_A) -> Self {
variant as ... | Rust |
def print_board(board):
for row in board:
print(" | ".join(row))
print("-" * 9)
def check_winner(board, player):
for i in range(3):
# Check rows and columns
if all(board[i][j] == player for j in range(3)) or all(board[j][i] == player for j in range(3)):
return True
... | Python |
p = self.w_p(x_p)
g_d = self.pool(g_d, d_mask)
p_scores = torch.bmm(g_p, g_d.transpose(1, 2)) / math.sqrt(self.dim_model)
p_scores = p_scores.masked_fill(p_mask.unsqueeze(-1), -1e9)
attention_p = F.softmax(p_scores, dim=1)
g_p = g_p * attention_p
c = g_p.sum(dim=1)
... | Python |
--ラインモンスター Kホース
function c41493640.initial_effect(c)
--destroy
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(41493640,0))
e1:SetCategory(CATEGORY_DESTROY)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetCode(EVENT_SUMMON_SUCCESS)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetTarget(c... | Lua |
hm.Type == autoscalingv1alpha1.ExternalJobPortraitAlgorithmType {
if err := r.reconcileExternalAlgorithmJob(ctx, hp); err != nil {
l.Error(err, "failed to reconcile external algorithm job")
r.errorOut(ctx, hp, hpStatusOriginal, autoscalingv1alpha1.PortraitGenerated, metav1.ConditionFalse,
"FailedReconcileEx... | Go |
//----------------------------------------------------------------------------
// EDGE2 Resolution Handling
//----------------------------------------------------------------------------
//
// Copyright (c) 1999-2009 The EDGE2 Team.
//
// This program is free software; you can redistribute it and/or
// modify it... | C |
t.WithTimeout(ctx, timeout)
defer cancel()
}
bmsgs := bundle.([]*bundledMessage)
if t.enableTracing {
for _, m := range bmsgs {
m.batcherSpan.End()
m.createSpan.AddEvent(eventPublishStart, trace.WithAttributes(semconv.MessagingBatchMessageCount(len(bmsgs))))
}
}
t.publishMessageBundle(ctx, bm... | Go |
filepath.Join(configPath, "credentials")
f, err := os.Open(credentialsPath)
if err != nil {
return nil, fmt.Errorf("oauth2/google: failed to load SDK credentials: %v", err)
}
defer f.Close()
var c sdkCredentials
if err := json.NewDecoder(f).Decode(&c); err != nil {
return nil, fmt.Errorf("oauth2/google: fai... | Go |
Successfully built 97feabe5d2ed
You've specified our `docker build` command and used the `-t` flag to identify
our new image as belonging to the user `ouruser`, the repository name `sinatra`
and given it the tag `v2`.
You've also specified the location of our `Dockerfile` using the `.` to
indicate a `Dockerfile` in t... | Markdown |
u32 bufferlen, u32 *buffer_actual_len,
u64 *requestid)
{
return __vmbus_recvpacket(channel, buffer, bufferlen,
buffer_actual_len, requestid, true);
}
EXPORT_SYMBOL_GPL(vmbus_recvpacket_raw);
/*
* vmbus_next_request_id - Returns a new request id. It is also
* the index at which the guest memory addr... | C |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.