content stringlengths 2 6.21k | label stringclasses 16
values |
|---|---|
nil
}
var res goja.Value
res, err = vm.vm.RunString(condition)
if err != nil {
return false, err
}
truthy, ok := res.Export().(bool)
if !ok {
err = errors.New("condition does not evaluate to bool")
return false, err
}
return truthy, err
}
// SetInVM sets the object name and value in the VM.
func (vm *V... | Go |
{
if maxi <= mini {
return seats[mini] + 1;
} else {
let mid = (mini + maxi) / 2;
match seats[mid].cmp(&(mid + 48)) {
Ordering::Greater => maxi = mid - 1,
_ => mini = mid,
};
}
}
}
pub fn solve(lines: &[String... | Rust |
private val tasks = List(THREADS) { iClass ->
Runnable {
runCatching {
testMethods[iClass % CLASSES]()
}.onFailure { it.printStackTrace(System.err); exitProcess(1) }
barrier.await()
}
}
private val barrier = CyclicBarrier(THREADS + 1)
fun main() {
testMethods
val po... | Kotlin |
'name': name,
'type': type,
'defaultValue': defaultValueCode,
'isNamed': isNamed,
'dependencyType': dependencyType.toString(),
};
}
}
class FramyObjectConstructor {
final String name;
final List<FramyObjectDependency> dependencies;
final bool isBuiltValue;
FramyObjectConstruc... | Dart |
s, minutes] = time.split(':');
if (hours === '12') {
hours = '00';
}
if (modifier === 'PM') {
hours = parseInt(hours, 10) + 12;
}
return `${hours}:${minutes}:00`;
}
// Daily Occurce At Date
function DailyOccuresAtDate(selectedTime){
//Selected time will be sent from us... | Typescript |
0 ;d0 = total bytes/line
moveq #43,d1
mulu d0,d1 ;d1 = 43 * bytes/line
move.l d1,test_downstep
;
clr.l d1
move sc_Xrez+SCD(pc),d1 ;d1 = visible pix/line
move sc_rez+SCD(pc),d2 ;d2 = physical rez
move.b .log2_t(pc,d2),d2 ;d2 = log2(pix/byte) of active rez
lsr d2,d1 ;d1 = visible bytes/line for used rez (hard... | Assembly |
(PError::IfElse, Span::from(i)));
}
}
}
/// Eat error Node
fn error(i: Cursor) -> PResult<Node> {
do_parse!(i, ws >> args: args_list >> end_expr >> (Node::Error(args)))
}
/// Eat raw Node
fn raw(i: Cursor, a_lws: bool) -> PResult<Node> {
let (i, a_rws) = end_expr(i)?;
let mut at = 0;
let ... | Rust |
pache.org/flink/flink-docs-master/docs/deployment/resource-providers/native_kubernetes/#accessing-flinks-web-ui)来暴露Flink Web UI和REST端口。
请确保您提交作业的节点可以访问REST端口。
{{< /hint >}}
然后,将以下两个配置添加到flink-conf.yaml中:
```yaml
rest.bind-port: {{REST_PORT}}
rest.address: {{NODE_IP}}
```
{{REST_PORT}}和{{NODE_IP}}替换为JobManager W... | Markdown |
.globl exp, _exp
/
ldfps = 170100^tst
stfps = 170200^tst
ldexp = 176400^movif
stexp = 175000^movfi
/
/ exp accepts its argument and returns its result
/ in fr0. The carry bit is set if the result overflows.
/ The coefficients are #1067 from Hart & Cheney.
/
/ movf arg,fr0
/ jsr pc,exp
/ movf fr0,result
/
_exp:
mov r5... | Assembly |
> &mut ::std::string::String {
if self.unlock_token.is_none() {
self.unlock_token.set_default();
}
self.unlock_token.as_mut().unwrap()
}
// Take field
pub fn take_unlock_token(&mut self) -> ::std::string::String {
self.unlock_token.take().unwrap_or_else(|| ::std:... | Rust |
ен из стаи Ночной Погибели",
[14844] = "Силанния",
[932] = "Стражник Эшлок",
[936] = "Стражница Адамс",
[940] = "Целитель Курцена",
[944] = "Маррик Нуррибит",
[15164] = "Инициатор Мулгора",
[952] = "Брат Нилз",
[956] = "Дорин Поющий Клинок",
[960] = "Гундер Боярышникс",
[976] = "Боевой тигр Курцена"... | Lua |
86_3_ * f7;
this.backRightShin.rotateAngleX = -0.08726646F * f6 + (f10 * 0.5F * p_78086_3_ - Math.max(0.0F, -f10 * 0.5F * p_78086_3_)) * f7;
this.backRightHoof.rotateAngleX = this.backRightShin.rotateAngleX;
this.frontLeftLeg.rotateAngleX = f14;
this.frontLeftShin.rotateAngleX = (this.fr... | Java |
local align_help = "Texture spans over a space of 8×8 nodes"
local align_help_n = "Tiles looks the same for every node"
core.register_node("tiled:tiled", {
description = "Tiled Node (world-aligned)".."\n"..align_help,
tiles = {{
name = "tiled_tiled.png",
align_style = "world",
scale = 8,
}},
groups = {cracky... | Lua |
3px 20px;height:100%;font-weight:700}.multiselect-container>li.multiselect-group-clickable label{cursor:pointer}.multiselect-container>li>a{padding:0}.multiselect-container>li>a>label{margin:0;height:100%;cursor:pointer;font-weight:400;padding:3px 20px 3px 40px}.multiselect-container>li>a>label.radio,.multiselect-cont... | CSS |
'''
PRÁCTICA 0 Estructura de Datos y Algoritmos IM. Curso 24/25
- AUTOR: David Sanz Fuertes
- EJERCICIO: 2
- EXPLICACIONES:
- La función frase_vocales() solicita al usuario que escriba una frase y cuenta el número de vocales presentes en ella. Utiliza un bucle para recorrer cada carácter y verifica si es una v... | Python |
id* self) {
return QSettings_SenderSignalIndex((QSettings*)self);
}
int32_t q_settings_qbase_sender_signal_index(void* self) {
return QSettings_QBaseSenderSignalIndex((QSettings*)self);
}
void q_settings_on_sender_signal_index(void* self, int32_t (*callback)()) {
QSettings_OnSenderSignalIndex((QSettings*)... | C |
gain (due to idle timeout = 0)
server.setSSLHandshakeTimeout(std::nullopt);
serverConfig = server.getServerSocketConfig();
EXPECT_EQ(
serverConfig->sslHandshakeTimeout, std::chrono::milliseconds::zero());
}
TEST(ThriftServer, MultiPort) {
class MultiPortThriftServer : public ThriftServer {
public:
... | C++ |
he database.
* @param oldVersion The old database version.
* @param newVersion The new database version.
*/
public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) {
throw new SQLiteException("Can't downgrade database from version " +
oldVersion + " to " + n... | Java |
createP2wpkhVault(
{TestWalletType testWalletType = TestWalletType.forNormal,
String passphrase = ''}) {
SingleSignatureVault? vault;
if (testWalletType == TestWalletType.forNormal) {
vault = SingleSignatureVault.fromMnemonic(
utf8.encode(
'machine crack daughter fish ... | Dart |
false,
},
{
"Error when setting up a default group when a default already exists",
[]*storage.Group{defaultGroup},
defaultGroup.CloneVT(),
true,
},
}
for _, c := range cases {
s.T().Run(c.name, func(t *testing.T) {
c.groupToAdd.GetProps().Id = "" // clear it out so that the data store doesn't... | Go |
eneral Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* versi... | Java |
{
if x >= 0 {
out = &gfP{uint64(x)}
} else {
out = &gfP{uint64(-x)}
gfpNeg(out, out)
}
montEncode(out, out)
return out
}
func (e *gfP) String() string {
return fmt.Sprintf("%16.16x%16.16x%16.16x%16.16x", e[3], e[2], e[1], e[0])
}
func (e *gfP) Set(f *gfP) {
e[0] = f[0]
e[1] = f[1]
e[2] = f[2]
e[3] =... | Go |
HUMB_DISTAL_EXT".."4",
"HAND_JOINT_THUMB_TIP_EXT".."5",
"HAND_JOINT_INDEX_METACARPAL_EXT".."6",
"HAND_JOINT_INDEX_PROXIMAL_EXT".."7",
"HAND_JOINT_INDEX_INTERMEDIATE_EXT".."8",
"HAND_JOINT_INDEX_DISTAL_EXT".."9",
"HAND_JOINT_INDEX_TIP_EXT".."10",
"HAND_JOINT_MIDDLE... | Kotlin |
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from password_generator import PasswordGenerator
import names
from random import randint, randrange
# Replace with your a... | Python |
*testing.T) {
var u NullUUID
data := []byte(`"6ba7b810-9dad-11d1-80b4-00c04fd430c8"`)
if err := json.Unmarshal(data, &u); err != nil {
t.Fatalf("json.Unmarshal err = %v, want <nil>", err)
}
if !u.Valid {
t.Fatalf("u.Valid = false, want true")
}
if u.UUID != codecTestUUID {
t.Fatalf("u.UUID = %v, want ... | Go |
e unsigned short *)PIXC_BVEND)
#define pPIXC_BTRANSP ((volatile unsigned short *)PIXC_BTRANSP)
#define pPIXC_INTRSTAT ((volatile unsigned short *)PIXC_INTRSTAT)
#define pPIXC_RYCON ((volatile unsigned long *)PIXC_RYCON)
#define pPIXC_GUC... | C |
eceived a copy of the GNU Lesser General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
using JetBrains.Annotations;
using Remora.Rest.Core;
namespace Remora.Discord.API.Abstractions.Objects;
/// <summary>
/// Represents a sticker in a message.
/// </summary>
[PublicAPI]
... | C# |
, ONONAME, OPACK:
x = p.nod(n, OPAREN, x, nil)
x.SetImplicit(true)
}
return x
}
func (p *noder) nod(orig syntax.Node, op Op, left, right *Node) *Node {
return nodl(p.pos(orig), op, left, right)
}
func (p *noder) nodSym(orig syntax.Node, op Op, left *Node, sym *types.Sym) *Node {
n := nodSym(op, left, sym)
n.... | Go |
ailsInformation.assetId
local isFavorited = GetIsFavorite(state)
return {
visible = state.visible,
assetInfo = state.assets[assetId] or {},
assetBundles = state.assetBundles,
detailsInformation = state.detailsInformation,
bundleInfo = state.bundles,
locale = state.locale,
gamepadEnabled = state.gamepa... | Lua |
var vec1 = new Vector(100, 50);
// * var vec2 = new Vector(2, 2);
// * vec1.multiplyY(vec2).toString();
// * // => x:100, y:100
// *
// * vec1.multiplyY(4).toString(); // notice vec1 is immutable
// * // => x:100, y:200
// */
// multiplyY(vec: VectorOperand<T>): Vector<T>... | Typescript |
disk_unit[disk_point]].request_queue.size() > 0) {
auto& object = objects[disk_unit[disk_point]];
object.read(disk.id, disk_point, current_timestamp);
active_object.push_back(object.id);
}
valid_token -= disk_last_token;
} else {
... | C++ |
EF(0xFFAB28CC,aErrorStggetd_0)
DEF(0xFFAB290C,aErrorStggetc_1)
DEF(0xFFAB2954,aErrorFpgetcr_5)
DEF(0xFFAB2988,aErrorFpgetcr_6)
DEF(0xFFAB29CC,aErrorFpgetcr_7)
DEF(0xFFAB2A14,aCrsreadepilo_1)
DEF(0xFFAB2A38,_ERROR__stgGetCR2HeaderSize_crsReadEpilo_3)
DEF(0xFFAB2B38,aErrorStggettif)
DEF(0xFFAB2B74,aErrorStggett_0)
DEF(0x... | Assembly |
s/icones/chat.png");
background-image: url("/images/icones/chat.svg"), none;
}
&.submit_news {
background: no-repeat 2px 2px $C_CLAIR;
background-size: 16px;
background-image: url("/images/icones/check_alt.png");
background-image: url("/images/icones/check_alt.svg"), none;
margin: 0 15px 15p... | CSS |
supported_band_list_eutra_v1250_l supported_band_list_eutra_v1250;
for (uint32_t k = 0; k < args.nof_supported_bands; k++) {
supported_band_eutra_v1250_s supported_band_eutra_v1250;
// According to 3GPP 36.306 v12 Table 4.1A-1, 256QAM is supported for ue_category_dl 11-16
supported_band_eutra... | C++ |
*/
protected judgeYaku(combMentsu: CombMentsu): Array<Yaku> {
let yakuList = new Array<Yaku>();
let haiCodeMap = new Map<string, Set<string>>();
combMentsu.getMentsuList().forEach(mentsu => {
if (mentsu instanceof Kotsu || mentsu instanceof Shuntsu) {
let haiCodeStr = mentsu.getHaiList().... | Typescript |
AvailableEvent>,
mut ev_creature_activity_changed: EventWriter<CreatureActivityChangedEvent>,
) {
commands.spawn().insert(Ambience { is_forest: true });
let (world_columns, world_rows) = sim_params
.hexagon_builder
.get_world_columns_rows(sim_params.world_rect.size.x, sim_params.world_rect.... | Rust |
).unwrap());
let sync = ClockSynchronizer::new(cmd, channels.clone(), mock.clone());
let results = sync.sync_clocks().await;
assert_eq!(results.len(), 1);
assert_matches!(&results[0], (_, Some(v)) => {
let triple = (1, 2, 3).into();
assert_eq!(v.len(), 1);
... | Rust |
rseFloat( curCSS( elem, "padding" + cssExpand[ i ] ) ) || 0;
}
// at this point, extra isn't border nor margin, so remove border
if ( extra !== "margin" ) {
val -= parseFloat( curCSS( elem, "border" + cssExpand[ i ] + "Width" ) ) || 0;
}
} else {
// at this point, extra isn't content, so add paddi... | JavaScript |
select,
};
use tokio_util::codec::Framed;
use super::config;
/// This lets multiple users talk to the same device simultaneously, which depending on the
/// user could be problematic.
async fn forward<T>(tcp: T, device: Transport) -> Result<()>
where
T: AsyncRead + AsyncWrite + 'static,
{
// Truncate each... | Rust |
r)
override val descriptor: SerialDescriptor =
SerialDescriptor("ArrayHashSet", setSerializer.descriptor)
override fun serialize(encoder: Encoder, value: ArrayHashSet<E>) {
encoder.encodeSerializableValue(setSerializer, value)
}
override fun deserialize(decoder: Decoder): ArrayHashSe... | Kotlin |
mipmap/ic_icon_black';
/// Access to a provider without context
/// https://github.com/rrousselGit/riverpod/issues/295
final container = ProviderContainer();
void main() async {
WidgetsFlutterBinding.ensureInitialized();
// https://www.reddit.com/r/flutterhelp/comments/ydernb/certificate_verify_failed_certificate... | Dart |
:both}@media all and (min-width: 480px){#main{padding-top:3em;position:relative}#navigation{position:absolute;top:0;height:3em;width:100%}}@media all and (min-width: 480px) and (max-width: 959px){.sidebar-first #content{float:left;width:66.66667%;margin-left:33.33333%;margin-right:-100%}.sidebar-first .region-sidebar-f... | CSS |
c')
@ffi.Native<ffi.Void Function(ffi.Pointer<ffi.Opaque>, ffi.Pointer<ffi.Opaque>)>(isLeaf: true, symbol: 'OpaqueThin_c')
// ignore: non_constant_identifier_names
external void _OpaqueThin_c(ffi.Pointer<ffi.Opaque> self, ffi.Pointer<ffi.Opaque> write);
// dart format on
// generated by diplomat-tool
// dart format of... | Dart |
def f(a):
for x in range(1, 1000):
for y in range(1, 1000):
f = (x+y<=24) or (y <= x-2) or (y >= a)
if not f:
return 0
return 1
for a in range(1, 1000):
if f(a):
print(a)
| Python |
.sb - 1); band++)
for (line = sl; line <= nl + sl - 1; line++)
{
status = zvread(in_unit,buf,"SAMP",ss,"LINE",line,
"BAND",band, "NSAMPS",ns, NULL);
status = zvwrit(out_unit,buf, NULL);
}
else if ( strncmp( org, "BIL",3 ) == 0 )
for (line = sl; line <= nl + sl - 1; line++)
... | C |
--[[===============================================================================================
Message
===============================================================================================]]--
--[[--
The Message class is a container for messages, closely related to the ControlMap
See also:
@{Duplex.Co... | Lua |
the number of distinct segment IDs.
//
// Returns Has same shape as data, except for dimension 0 which has size
// `num_segments`.
func SparseSegmentMeanWithNumSegments(scope *Scope, data tf.Output, indices tf.Output, segment_ids tf.Output, num_segments tf.Output) (output tf.Output) {
if scope.Err() != nil {
return... | Go |
1024, 1 / 512 ) }
},
vertexShader: [
"uniform vec2 resolution;",
"varying vec2 vUv;",
"varying vec4 vOffset[ 2 ];",
"void SMAANeighborhoodBlendingVS( vec2 texcoord ) {",
" vOffset[ 0 ] = texcoord.xyxy + resolution.xyxy * vec4( -1.0, 0.0, 0.0, 1.0 );", // WebGL port note: Changed sign in W component
... | JavaScript |
*= 1.2
Endif
If mygrid.Rows.h <> ((rowheight) + rowpadding) Then mygrid.Rows.h = ((rowheight) + rowpadding)
End
Public Sub Gridviews_Data(MyGrid As GridView, MyLibrary As Playlistclass, Row As Integer, Column As Integer)
Dim fullpath As String
Dim artist, album As String
Dim rowheight As Integer
Dim row... | Java |
>, [X<caddr>]
// mov X<count>, #1
// str X<count>, [sp, #STACK_OFFSET_COUNT] // @slothy:writes=STACK_OFFSET_COUNT
// chi_step_ror sAga, X<sBga>, X<sBgi>, X<sBge>, 47, 39
// chi_step_ror sAge, X<sBge>, X<sBgo>, X<sBgi>, 42, 25
// chi_step_ror sAgi, X<sBgi>, X<sBgu>, X<sBgo>, 16, 58
// chi_step_r... | Assembly |
panic(fmt.Sprintf("invalid authority address: %s", authority))
}
sb := collections.NewSchemaBuilder(storeService)
k := Keeper{
cdc: cdc,
storeService: storeService,
authority: authority,
logger: logger,
BankKeeper: bank,
BankView: ban... | Go |
编译的库来编译 Scala 程序时,会带来问题。为此,我们需要的信息比类文件中通常可用的信息更多。
此讨论仅涵盖类型擦除的主题。对于 JVM 没有意识到的所有其他 Scala 结构,也存在类似的问题,包括 unions, intersections, 带有参数的 traits 以及更多 Scala 3 特性。
### TASTy to the Rescue
因此,TASTy 格式不是像 _.class_ 文件那样没有原始类型的信息,或者只有公共 API(如Scala 2.13 “Pickle” 格式),而是在类型检查后存储完整的抽象语法树(AST)。存储整个 AST 有很多优点:它支持单独编译,针对不同的 JVM 版本重新编译... | Markdown |
rt com.google.protobuf.util.JsonFormat
import net.corda.core.identity.CordaX500Name
import net.corda.core.identity.Party
import org.hyperledger.cacti.weaver.sdk.corda.MembershipManager
import org.hyperledger.cacti.weaver.protos.common.membership.MembershipOuterClass
/**
* TODO: Documentation
*/
class CreateMembersh... | Kotlin |
ast",
"revanced_set_transcript_cookies_all",
"revanced_shorts_custom_actions_speed_dialog_type",
"revanced_shorts_double_tap_to_like_animation",
"revanced_shorts_navigation_bar_height_percentage",
"revanced_spoof_device_dimensions",
"revanced_swipe_brightness_distance",
"revanced_swipe_overl... | Kotlin |
end?: number | undefined;
highWaterMark?: number | undefined;
}
interface CreateWriteStreamOptions {
encoding?: BufferEncoding | null | undefined;
autoClose?: boolean | undefined;
emitClose?: boolean | undefined;
start?: number | undefined;
}
// TODO: Add `Ev... | Typescript |
BOs;
boolean useStride = mUseStride;
if (mToggleVbos) {
useVbos = !useVbos;
}
if (mToggleStride) {
useStride = !useStride;
}
if (useStride) {
if (useVbos) {
mCubes = new CubesWithVboWithStride(cubePositionData, cubeNorma... | Java |
MuMDkuNDkgMCAuNjEtLjIybDItMy40NmMuMTItLjIyLjA3LS40OS0uMTItLjY0bC0yLjExLTEuNjV6TTEyIDE1LjVjLTEuOTMgMC0zLjUtMS41Ny0zLjUtMy41czEuNTctMy41IDMuNS0zLjUgMy41IDEuNTcgMy41IDMuNS0xLjU3IDMuNS0zLjUgMy41eiIgZmlsbD0iI0ZGRiIvPjwvc3ZnPg==)
background-size: $icon_size_tiny
fill: $color-white
height: $icon_size_l... | CSS |
ct, format objects before that which
* were completed are skipped on the subsequent calls
*/
lwsl_user("%s: test19\n", __func__);
lws_lec_setbuf(&ctx, buf, sizeof(buf));
if (lws_lec_printf(&ctx, "123(%.*b)", (int)sizeof(test106), test106) !=
LWS_LECPCTX_RET_AGAIN ||
ctx.used != sizeof(w19) || me... | C |
if (m_fCrouchWeight >= 0.5) {
m_csCurrentPosition = STRING_CROUCH;
} else {
m_csCurrentPosition = STRING_STAND;
}
UpdateAimMotion();
UpdateAnim();
newOrigin[2] = origin[2] + 18.0;
end[0] = newOrigin[0];
end[1] = newOrigin[1];
end[2] = origin[2] - 94.0;
trace = G_T... | C++ |
'scm',
'retch',
'degas',
'beware',
'debris',
'mno',
'urbane',
'tz',
'tx',
'ty',
'tv',
'tw',
'tt',
'tu',
'tr',
'ts',
'tp',
'tq',
'tn',
'to',
'nora',
'tm',
'tj',
'tk',
'th',
'ti',
'tf',
'smile',
'td',
'te',
'tb',
'tc',
'norm',
'ra',
'ghana',
'khmer'... | JavaScript |
#!/usr/bin/env python3
"""
🚀 GHST Launcher - AI Coding Engine
===================================
Simple launcher for the GHST AI coding engine with expert AI agents
for coding, debugging, and problem solving.
Created by: The GHST Expert Collective
Version: 0.1.0-alpha - AI Coding Engine Edition
"""
import sys
impo... | Python |
group("Mock fetch weather", () {
test("Fetch weather returns valid data with 200 status", () async {
dioAdapter.onGet(
"https://api.openweathermap.org/data/2.5/weather?lat=0.0&lon=0.0&apiKey=${ApplicationConfig.apiKey}&units=metric",
(request) {
return request.reply(200, jsonDe... | Dart |
filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=30);
opacity: 0.3;
}
/* line 639, ../../../ext-theme-neutral/sass/src/tab/Tab.scss */
.x-tab-default-disabled .x-tab-icon-el {
filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=50);
opacity: 0.5;
}
/* line 644, ../../../ext-theme-neutral/sass/src/tab/... | CSS |
y to find the file, has to be PRG
@lp_find:
jsr fs_cbm_nextdirentry
+bcs dos_EXIT
; Only accept files of type 'PRG', properly closed XXX deduplicate with fs_vfs
lda PAR_FTYPE
and #%10111111
cmp #$82
bne @lp_find
; Check if file name matches the filter XXX deduplicate with fs_vfs
jsr util_dir_fil... | Assembly |
ing vec2 v_normal;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacit... | JavaScript |
/**
* Taiga
* Copyright (C) 2010-2024, Eren Okka
*
* This program 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 Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This pro... | C |
.rgb * LINEAR_DISPLAY_P3_TO_LINEAR_SRGB, value.a );\n}\nvec4 LinearTransferOETF( in vec4 value ) {\n\treturn value;\n}\nvec4 sRGBTransferOETF( in vec4 value ) {\n\treturn vec4( mix( pow( value.rgb, vec3( 0.41666 ) ) * 1.055 - vec3( 0.055 ), value.rgb * 12.92, vec3( lessThanEqual( value.rgb, vec3( 0.0031308 ) ) ) ), val... | JavaScript |
f("%T write struct begin error: ", p), err)
WriteFieldError:
return thrift.PrependError(fmt.Sprintf("%T write field %d error: ", p, fieldId), err)
WriteFieldStopError:
return thrift.PrependError(fmt.Sprintf("%T write field stop error: ", p), err)
WriteStructEndError:
return thrift.PrependError(fmt.Sprintf("%T write ... | Go |
length:bytes.len()];
}
}
fn set_bytes(&mut self, bytes: &[u8]) {
let len = self.len();
self.replace_range(0..len, bytes);
}
}
object_struct!(NSMutableData);
impl INSData for NSMutableData { }
impl INSMutableData for NSMutableDa... | Rust |
AddressBookExample"
} // disabled - cannot run on solo action
.filter {
it != "SolidityPrecompileExample"
} // disabled - cannot run on solo action
.filter { it != "ZeroTokenOperationsExample" && it != "ScheduleExample" }
... | Kotlin |
_word_char_exceptions:
* @terminal: a #VteTerminal
* @exceptions: a string of ASCII punctuation characters, or %NULL
*
* With this function you can provide a set of characters which will
* be considered parts of a word when doing word-wise selection, in
* addition to the default which only considers alphanumeric ... | C++ |
ion requested for shaping, as passed in (either ltr or rtl).
* If `null`, the default direction of the script is used.
* @type {string}
*/
this.direction = direction$$ || direction(script);
/**
* The features requested during shaping. This is a combination of user
* specified features ... | JavaScript |
* last used EAP Identifier */
u8 *identity;
size_t identity_len;
u8 eap_type_authsrv; /* EAP type of the last EAP packet from
* Authentication server */
u8 eap_type_supp; /* EAP type of the last EAP packet from Supplicant */
struct radius_class_data radius_class;
struct wpabuf *radius_cui; /* Chargeable-... | C |
is.unscheduleAllCallbacks();
if(!JZMJMahjongAlgorithm.IsSame(cardAry,this._handCard))
{
let lengthsame:boolean = cardAry.length==this._handCard.length;
this._handCard.splice(0,this._handCard.length);
for(let i:number=0; i<cardAry.length; i++){
... | Typescript |
/*********************************************************************
MLDemos: A User-Friendly visualization toolkit for machine learning
Copyright (C) 2010 Basilio Noris
Contact: mldemos@b4silio.com
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Pub... | C |
apeMap();
var labelNodes = List.of("label", "x", "y");
BiFunction<String, Node, String> labelNodeValue = (label, v) -> switch (label) {
case "label" ->
nodeShapeMap.get(v).getLabel() != null ? nodeShapeMap.get(v).getLabel().getRawText() : null;
case "x" -> StringUtils.removeTrailingZerosAfterDo... | Java |
Small Icon types skipped via math below
ASSERT_RECORD_TABLE_SIZE invoke_table, IconType::COUNT - IconType::SMALL_COUNT, 4
;;; --------------------------------------------------
;;; Check `src_path_buf`'s ancestors to see if the desired interpreter
;;; (BASIC.SYSTEM or BASIS.SYSTEM) is present.
;;; Input: `src_... | Assembly |
{ float:left; }
.sp-methods .centinel-logos a { margin-right:3px; }
.sp-methods .centinel-logos img { vertical-align:middle; }
.sp-methods .release-amounts { margin:0.5em 0 1em; }
.sp-methods .release-amounts button { float:left; margin:5px 10px 0 0; }
.please-wait { float:right; margin-right:5px; }
.please-wait im... | CSS |
(s *MultiCookieDomainScenario) TestShouldStayLoggedInOnNextDomainWhenLoggedOffOnFirstDomain() {
ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
defer func() {
cancel()
s.collectScreenshot(ctx.Err(), s.Page)
}()
firstDomainTargetURL := fmt.Sprintf("%s/secret.html", SingleFactorBaseURL... | Go |
7 * SIZE], a4
add AO, 4 * SIZE, AO
bg,pt %icc, .LL226
LDF [BO + 0 * SIZE], b1
.LL229:
#ifndef TRMMKERNEL
FADD c01, t1, c01
add I, -1, I
FADD c02, t2, c02
cmp I, 0
FADD c03, t3, c03
FADD c04, t4, c04
FMUL c01, ALPHA, c01
FMUL c02, ALPHA, c02
FMUL c03, ALPHA, c03
FMUL c04, ALPHA, c04
LDF [C1 + 0 * SIZE]... | Assembly |
d/linshare-ui-admin.conf` with the following content:
```xml
<VirtualHost *:80>
...
ServerName linshare-admin.local
DocumentRoot /var/www/linshare-ui-admin
<Location /linshare>
ProxyPass http://127.0.0.1:8080/linshare
ProxyPassReverse http://127.0.0.1:8080/linshare
ProxyPassReverseCookiePath /linshare /
... | Markdown |
ont {
get {
return defaultFont;
}
set {
// 1440 twips is one inch
int pixelSize = (int)(value.SizeInPoints * 20 / TwipsPerPixelY);
/*defaultFont = value;
regularfont = new Font(value.FontFamily, pixelSize * TwipsPerPixelY / 20f, FontStyle.Regular);
boldfont = new Font(regul... | C# |
G_SS_MASK);
r |= L2C_CFG_L2M | L2C_CFG_SS_256;
mtdcr(DCRN_L2C0_CFG, r);
mtdcr(DCRN_L2C0_ADDR, 0);
/* Hardware Clear Command */
mtdcr(DCRN_L2C0_CMD, L2C_CMD_HCC);
while (!(mfdcr(DCRN_L2C0_SR) & L2C_SR_CC)) ;
/* Clear Cache Parity and Tag Errors */
mtdcr(DCRN_L2C0_CMD, L2C_CMD_CCP | L2C_CMD_CTE);
/* Enable 6... | C |
end
-- Grow the previous highlight group if possible
if last_hl and last_hl.attr == attr and last_hl.final == byte then
last_hl.final = byte + #char
else
hls[#hls + 1] = {attr=attr, start=byte, final=byte + #char}
end
overstrike = false
prev_char = ''
byte ... | Lua |
Shader->m_wsCommandLine, pShader->m_wsObjectFile );
for (int iMacro = 0; iMacro < (int)pShader->m_uNumMacros; ++iMacro)
{
wchar_t wsValue[64];
wcscat_s( pShader->m_wsCommandLine, m_uCOMMAND_LINE_MAX_LENGTH, L" /D " );
wcscat_s( pShader->m_wsCommandLine, m_uCOMMAND_LINE_MAX_LENGTH, pShade... | C++ |
paddle.to_tensor(conf, dtype='float32').unsqueeze(1),
predicted_bb), axis=1)
out.append(pred_info)
return paddle.stack(out)
```
现在让我们[**将上述算法应用到一个带有四个锚框的具体示例中**]。
为简单起见,我们假设预测的偏移量都是零,这意味着预测的边界框即是锚框。
对于背景、狗和猫其中的每个类,我们还定义了它的预测概率。
```{.python .inp... | Markdown |
Views_short{top:auto}.Views__header{height:48px;text-align:center;-webkit-box-shadow:0 2px 4px 0 rgba(0,0,0,.08), 0 0 2px 0 rgba(0,0,0,.06);-moz-box-shadow:0 2px 4px 0 rgba(0,0,0,.08), 0 0 2px 0 rgba(0,0,0,.06);box-shadow:0 2px 4px 0 rgba(0,0,0,.08), 0 0 2px 0 rgba(0,0,0,.06);font-weight:600;-webkit-font-smoothing:subp... | CSS |
0);zoom:1}.mce-menu-item:hover .mce-text,.mce-menu-item.mce-selected .mce-text{color:#fff}.mce-menu-item:hover .mce-ico,.mce-menu-item.mce-selected .mce-ico,.mce-menu-item:focus .mce-ico{color:white}.mce-menu-item.mce-disabled:hover{background:#CCC}.mce-menu-shortcut{display:inline-block;color:#999}.mce-menu-shortcut{d... | CSS |
jvmTarget.set(JvmTarget.fromTarget(libs.versions.jvmTarget.get()))
}
}
}
tasks.withType(JavaCompile::class.java).configureEach {
this.targetCompatibility = libs.versions.jvmTarget.get()
this.sourceCompatibility = libs.versions.jvmTarget.get()
}
dependencies {
implementation(libs.androidx.appcompat)
... | Kotlin |
538 0.36905,0.305 0.0391,1.5281 1.11085,0.0889 0.0232,0.177 -0.44215,4.041 -0.86826,0.296 -0.53664,0.177 -2.59586,-0.128 -0.12837,-0.02 -0.78089,-0.307 -0.81121,-0.537 -0.0874,-0.06 -0.041,-0.06 -0.10519,-0.161 -0.12836,-0.449 -0.0161,-0.04 -0.007,-0.105 -0.007,-0.161 0,-0.04 0.0553,-0.649 -0.40293,-6.776 3.96154,-0.30... | JavaScript |
-
# before_tests = "clefincode_chat.install.before_tests"
# Overriding Methods
# ------------------------------
override_whitelisted_methods = {
"frappe.desk.form.load.getdoc": "clefincode_chat.desk.custom_load.getdoc",
"frappe.desk.form.load.get_docinfo": "clefincode_chat.desk.custom_load.get_docinfo... | Python |
bp)
LCFI18:
movq %r12, -8(%rbp)
LCFI19:
subq $16, %rsp
LCFI20:
movq $0, %rbx
movq $0, %r12
call _uwind_to_main
movq (%rsp), %rbx
movq 8(%rsp), %r12
leave
ret
LFE8:
.globl _unwind_test_rbx_r14
_unwind_test_rbx_r14:
LFB8a:
pushq %rbp
LCFI16a:
movq %rsp, %rbp
LCFI17a:
movq %rbx, -16(%rbp)
LCFI18a:
movq %r14, -8(%rbp)
LC... | Assembly |
SLATEBROWSEPATHSTONODEIDSREQUEST
UAPP_TYPEREGISTRY_NATIVE(UA_TranslateBrowsePathsToNodeIdsRequest, UA_TYPES_TRANSLATEBROWSEPATHSTONODEIDSREQUEST)
#endif
#ifdef UA_TYPES_TRANSLATEBROWSEPATHSTONODEIDSRESPONSE
UAPP_TYPEREGISTRY_NATIVE(UA_TranslateBrowsePathsToNodeIdsResponse, UA_TYPES_TRANSLATEBROWSEPATHSTONODEIDSRESPONSE... | C++ |
gment_stream.interpolations, 0u8),
CurveInterpolation::CubicBezier(bezier) => {
write(&mut segment_stream.interpolations, 1u8);
write(&mut segment_stream.interpolations, bezier.c1());
write(&mut segment_stream.interpolations, bezier.c2());
}
... | Rust |
teError(result, err++, EXPECT_UNSIGNED_16 + FOUND_INT, 56, 25);
BAssertUtil.validateError(result, err++, EXPECT_UNSIGNED_8 + FOUND_INT, 57, 24);
BAssertUtil.validateError(result, err++, EXPECT_BYTE + FOUND_INT, 58, 14);
// testTypeAlias
BAssertUtil.validateError(result, err++, "incompati... | Java |
dtors))
KEEP (*(SORT(.dtors.*)))
KEEP (*(.dtors))
}
.jcr : { KEEP (*(.jcr)) }
.got : { *(.got.plt) *(.got) }
_edata = .;
PROVIDE (edata = .);
.bss : {
__bss_start = .;
*(.dynbss)
*(.bss .bss.* .gnu.linkonce.b.*)
*(COMMON)
/* Align here to ens | Assembly |
input_x = left * (inpWidth - 1) + x * widthScale;
int x0 = static_cast<int>(input_x);
int x1 = std::min(x0 + 1, inpWidth - 1);
float* outData = outDataBox + y * outWidth + x;
const float* inpData_row0_c = inpData_row0;
... | C++ |
/**
*
* Histogram.h
* An Tao
*
* Copyright 2018, An Tao. All rights reserved.
* https://github.com/an-tao/drogon
* Use of this source code is governed by a MIT license
* that can be found in the License file.
*
* Drogon
*
*/
#pragma once
#include <drogon/exports.h>
#include <drogon/utils/monitoring... | C |
FlagNeeded() check is needed here though it doesn't break anything
if (pUnmanagedThread->IsSSFlagNeeded() && pUnmanagedThread->IsSSFlagHidden() && (dwExCode == STATUS_SINGLE_STEP))
{
LOG((LF_CORDB, LL_INFO10000, "CP::TE1stCAI: ignoring hidden single step\n"));
return REACTION(cIgnore);
}
... | C++ |
x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use RuntimeEvent.ProtoReflect.Descriptor instead.
func (*RuntimeEvent) Descriptor() ([]byte, []int) {
return file_google_cloud_n... | Go |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.