content
stringlengths
2
6.21k
label
stringclasses
16 values
* enable desired mmu mode (R0) */ MCR CpMMU, 0, R0, C(1), C(0) MOVW R0, R0 MOVW R0, R0 MOVW R0, R0 MOVW R0, R0 RET /* start running in remapped area */ TEXT setr13(SB), $-4 MOVW 4(FP), R1 MOVW CPSR, R2 BIC $PsrMask, R2, R3 ORR R0, R3 MOVW R3, CPSR MOVW R13, R0 MOVW R1, R13 MOVW R2, CPSR RE...
Assembly
大家还记得正态分布吗?正态分布不仅有一元正态分布,还有多元正态分布。实际上,任何一组样本其实都可以看做是若干个正态分布的叠加。高斯混合聚类就是基于这种思想,GMM也可以看作是K-means的推广,因为GMM不仅是考虑到了数据分布的均值,也考虑到了协方差。和K-means一样,我们需要提前确定簇的个数。GMM的基本假设为数据是由几个不同的高斯分布的随机变量组合而成,而聚类的任务就是确定数据的叠加方法。 假设要将样本分为K个簇,每个簇有对应的均值与协方差矩阵,为了确定样本属于每个簇的概率大小,将这个概率写作矩阵W并构造最大似然函数: $$ L(W) = \prod\limits_{i = 1}^n {\left( {\sum\li...
Markdown
messsageAsStream(TWO_DIMENSIONAL_STRING_ARRAY); } } package se.kodapan.osm.city; import weka.classifiers.bayes.NaiveBayes; import weka.classifiers.functions.SMO; import javax.imageio.ImageIO; import java.awt.image.BufferedImage; import java.io.File; import java.net.URL; import java.text.DecimalFormat; import j...
Java
Prepare(HashMap<ArtifactId, Vec<PendingExecutionRequest>>); impl AwaitingPrepare { fn add(&mut self, artifact_id: ArtifactId, params: Vec<u8>, result_tx: ResultSender) { self.0 .entry(artifact_id) .or_default() .push(PendingExecutionRequest { params, result_tx }); } fn take(&mut self, artifact_id: &Arti...
Rust
0 0 512 512'%3E%3Cpath d='M480 256c0 123.4-100.5 223.9-223.9 223.9-48.84 0-95.17-15.58-134.2-44.86-14.12-10.59-16.97-30.66-6.375-44.81 10.59-14.12 30.62-16.94 44.81-6.375 27.84 20.91 61 31.94 95.88 31.94C344.3 415.8 416 344.1 416 256S344.31 96.2 256.2 96.2c-37.46 0-73.09 13.49-101.3 36.64l45.12 45.14c17.01 17.02 4.955 ...
CSS
impl<'a> Parseable<'a> for Program { fn parse(stream: &mut TokenStream<'a>) -> Result<Self, String> { let res = parse_stmt_vec!(stream)?; Ok(Self(res)) } } impl Evaluatable for Program { fn evaluate<L: LoggerTrait>(self, env: &mut Rc<RefCell<Enviroment>>, logger: &mut L) -> Value { for stmt in self...
Rust
r3,r5 li r3,1 bne 1f cmplw r4,r6 beqlr 1: li r3,0 bltlr li r3,2 blr _GLOBAL(abs) srawi r4,r3,31 xor r3,r3,r4 sub r3,r3,r4 blr /* * Create a kernel thread * kernel_thread(fn, arg, flags) */ _GLOBAL(kernel_thread) stwu r1,-16(r1) stw r30,8(r1) stw r31,12(r1) mr r30,r3 /* function */ mr r31,r4 /* ...
Assembly
e != null) { m_chartAlignType.SetNewContext(); } if (m_chartElementPosition != null) { m_chartElementPosition.SetNewContext(); } if (m_chartInnerPlotPosition != null) { m_chartInnerPlotPosition.SetNewContext(); } } } }
C#
адному генералу Альянса рядом со входом на поля боя."}}, [8410] = {"Покорение стихий", nil, {"Соберите образцы воздуха, огня, земли и воды по поручению Бат'ры Стража Ветра."}}, [8412] = {"Тотем духов", nil, {"Принесите части тотема Духа Бат'ре Стражу Ветра."}}, [8413] = {"Вуду", nil, {"Принесите вудуистские перья Бат'р...
Lua
x25, x26, [sp, 64] mov x20, x0 mov x0, x30 add x19, x20, 20480 mov x21, x1 bl _mcount ldr w0, [x19, 2132] cbz w0, .L1122 ldr w0, [x21, 16] cmp w0, wzr ble .L1122 ldr w0, [x21, 12] cbz w0, .L1122 ldr x0, [x21] cbz x0, .L1122 ldr x1, .LC208 mov w0, 2 add x22, x20, 12288 add x23, x22, 3456 bl dprint_vfm...
Assembly
A handle to a table. ## -prototype ```cpp //Declaration PFND3D12DDI_SETCOMMANDLISTDDITABLE_CB Pfnd3d12ddiSetcommandlistdditableCb; // Definition VOID Pfnd3d12ddiSetcommandlistdditableCb ( D3D12DDI_HRTCOMMANDLIST D3D12DDI_HRTTABLE ) {...} PFND3D12DDI_SETCOMMANDLISTDDITABLE_CB ``` --- description: Use this...
Markdown
(ctx, tm.ID, "") require.NoError(t, err) assert.Equal(t, 10, mergedCount) // add 5 team policies for i := 0; i < 5; i++ { _, err := ds.NewTeamPolicy(ctx, tm.ID, nil, fleet.PolicyPayload{Name: fmt.Sprintf("team policy %d", i)}) require.NoError(t, err) } teamCount, err = ds.CountPolicies(ctx, &tm.ID, "") req...
Go
----------------------- MAXON_METHOD Result<BaseArray<Runtime>> GetAllAvailableVirtualMachineLibraries() const; // A few helper functions }; #include "vm1.hxx" // Virtual Machine Classes MAXON_REGISTRY(Class<VirtualMachineRef>, VirtualMachines, "net.maxon.python.registry.virtualmachines"); namespace VirtualMachine...
C
d */ checkWindowSize?: number } /** * Options required for compilation */ export interface ICompileOptions { /** * Get table function */ getTable: (database: string, table: string) => MemoryTable /** * Subquery with name */ $as?: string /** * Default axios instance */ axiosInstan...
Typescript
#pragma omp teams distribute parallel for simd safelen (S1) // expected-error {{'S1' does not refer to a value}} for (int i = 4; i < 12; i++) argv[0][i] = argv[0][i] - argv[0][i-4]; #if __cplusplus <= 199711L // expected-error@+5 {{integral constant expression}} expected-note@+5 0+{{constant expression}} #els...
C++
awesome显示按钮的内容 */ contentFA?: string; /** 按钮title */ aria?: string; /** 移除按钮的内容 */ removeButtonContent?: string; /** 移除按钮的title */ removeButtonTitle?: string; }; import * as path from 'path'; import * as url from 'url'; import * as fs from 'fs'; import { GCSFixtureDownloader } from './GCSFixtureDownloader'; exp...
Typescript
predicted_chars = list(predicted_answer) true_chars = list(true_answer) # 计算交集字符数 common = set(predicted_chars) & set(true_chars) num_common = sum(min(predicted_chars.count(c), true_chars.count(c)) for c in common) # 计算精确率和召回率 precision = num_common / len(predicted_chars) if len(predicted_cha...
Python
on = session.BeginTransaction()) { session.Delete("from System.Object"); transction.Commit(); } } [Test] public void ThenFetchCanExecute() { using (var session = OpenSession()) { var query = session.Query<Person>() .Where(p => p.Address.City.Name == "London") .Fetch(r => r.A...
C#
10.2 39.6 4.1 10.2 14.2 10.2 20.3 6.1 32.5-22.3 96.5-47.7 152.3-47.7 57.9 0 58.9 28.4 58.9 73.1v38.5C203 227.7 78.2 251 46.7 264.2 11.2 280.5 16.3 357.7 16.3 376s15.2 104 124.9 104c47.8 0 113.7-20.7 153.3-42.1v25.4c0 3 2.1 8.2 6.1 9.1 3.1 1 50.7 2 59.9 2s62.5.3 66.5-.7c4.1-1 5.1-6.1 5.1-9.1V168c-.1-80.3-57.9-136-192-13...
JavaScript
ED: return { authenticated: false, loggedInUser: { value: undefined, loading: true, error: undefined, }, }; case authActionTypes.LOGIN_USER_SUCCESS: return { authenticated: true, loggedInUser: { value: action.payload, ...
Typescript
// experiencing file name collisions. // Once each AWS bucket is created inside the Starlark script (under the user own AWS account), we can remove // this and let the user own and manage their bucket if lowercaseEnvVarName == "aws_bucket_user_folder" { envVarValueStr, ok := envVarValue.(starlark.String) i...
Go
aging directory FileOperations.DeleteDirectory(new DirectoryInfo(Config.PCStagingRootDir)); // we will zip files in the pre-staged payload dir string ZipSourceDir = Config.RepackageStagingDirectory; // Save the zip Program.Log("Saving IPA ..."); FilesBeingModifiedToPrintOut.Clear(); Zip.SaveProg...
C#
* avatar 头像 * signature 个性签名 * nickname 昵称 * email 邮件 * phone 手机 * sex 性别 * bubble 气泡 * projectTheme 项目主题 * wallpaper 聊天壁纸 * signUpTime 注册时间 * lastLoginTime 最后一次登录时间 * chatColor 聊天文字颜色 * bgOpa 聊天窗口透明度 * province 省 * city 市 * town 县 * conversationsList 会话列表 * name 会话名称 * photo 会话头像 * id 会话id ...
Markdown
from duckiematrix_engine.template import MatrixEntityBehavior import copy import numpy as np class RunInCircleScript(MatrixEntityBehavior): def __init__(self, *args, radius: float = 0.2, speed: float = 0.5): super(RunInCircleScript, self).__init__(*args) self._initial_pose = copy.deepcopy(self.p...
Python
nt, tt.d.Transpose()) }) } } func Test_dict_GetTypes(t *testing.T) { t.Parallel() tests := []struct { name string kind bool d jsonDict want interface{} }{ {"Empty", false, nil, jsonDict{}}, {"Fixture Types", false, dictFixture, jsonDict{ "float": "float64", "int": "int", "list": ...
Go
if (signalDOMEvent(cm, e) || eventInWidget(cm.display, e)) return; e.dataTransfer.setData("Text", cm.getSelection()); // Use dummy image instead of default browsers image. // Recent Safari (~6.0.2) have a tendency to segfault when this happens, so we don't do it there. if (e.dataTransfer.setDragImage ...
JavaScript
size_t prevNumWaves = 0; size_t nextNumWaves = 0; // get the value for 0 VGPRs to be used in the first iteration below cuDevice->SetCUParam(CU_PARAMS_VECTOR_GPRS_USED, 0); cuDevice->ComputeNumActiveWaves(params.m_nWorkgroupSize, nextNumWaves); // We have a minimum of 2 wavefronts required on ...
C++
rtThunk,INSERT_CHAT, CHATS_RESET_STATE } from '../enums/chatsEnums'; export type IChats = IChat[]; export type ChatsDispatch = (arg0: ChatsAction) => void export interface ChatsState { loading: boolean, error: null | Error, result: IChat[] } interface IUpdateChatsAction { type: typeof UPDATE_CHAT...
Typescript
DataList); if(baseForm) { if(extraDataList) { BSExtraData * extraData = extraDataList->GetByType(ExtraDataType::kExtraData_TextDisplayData); if(extraData) { ExtraTextDisplayData * displayText = DYNAMIC_CAST(extraData, BSExtraData, ExtraTextDisplayData); if(displayText) { retu...
C++
e.get_bet()))) sume = 0.0 total_bet = 0.0 for value in moneys: sume += value for value in bets: total_bet += value print "\n%d hands overall, %0.2f hands per game on average" % (nb_hands, float(nb_hands) / GAMES) print "%0.2f total bet" % total_bet print("Overall winnings: ...
Python
ays(GL_POINTS, 0, buf->size); tp = buf->next; buf->size = 0; buf->next = 0; buf->prev = 0; } page_tex = 0; head = 0; for (int u = 0; u < 5; u++) gl3BindTextureUnit2D(u,0); glBindVertexArray(0); glUseProgram(0); render_time = a3dGetTime() - render_time; } GLint tm_loc; // uniform GL...
C++
all-text-input-types; } @each $type in $types { @if $type == textarea { @if $selector == input { $return: append($return, unquote('#{$type}'), comma); } @else { $return: append($return, unquote('#{$type}#{$selector}'), comma); } } @else { $return: append($return, unq...
CSS
full items-center justify-center rounded-md bg-[#4454b4] px-6 font-medium tracking-wide text-white shadow-md transition hover:bg-blue-800 focus:outline-none md:mr-4 md:mb-0 md:w-auto" > Start whiteboarding <MoveRight /> </Link> </div> ...
JavaScript
appmsg "") 这里输入验证码抓包,将手机号换成自己的![](https://mmbiz.qpic.cn/sz_mmbiz_png/veA9QmcJk5lfIaVt71ohdl0pnIjQS72jWb5b7pf0FkYmIf8kZyiaw4bZJ457XyzpZpBjvnn6p74q0943kIXMCVg/640?wx_fmt=png&from=appmsg "") 输入手机验证码抓包![](https://mmbiz.qpic.cn/sz_mmbiz_png/veA9QmcJk5lfIaVt71ohdl0pnIjQS72juZGHjIR9sVVFoAtYRI1kdAM4HKAAiaXeluS7xTKMeF...
Markdown
List[state.foodList.getIndex(food)] .quantity .toString(), style: Theme.of(context).textTheme.displayLarge, ), ...
Dart
to_sleep_date(dataframe['end_time']) sleep_series = pd.Series(dataframe['sleep_time'].values, index=sleep_index) # get the sum of time slept during days (so this includes naps) # the result is timedeltas though, so convert below sleep_aggregate = sleep_series.resample('D').sum() ...
Python
LValue lvalue, bool capturedByInit) { Qualifiers::ObjCLifetime lifetime = lvalue.getObjCLifetime(); if (!lifetime) { llvm::Value *value = EmitScalarExpr(init); if (capturedByInit) drillIntoBlockVariable(*this, lvalue, cast<VarDecl>(D)); EmitNullabilityCheck(lvalue, ...
C++
from django.urls import path, include from rest_framework.routers import DefaultRouter from .views import ProductViewSet, CustomerViewSet, OrderViewSet from rest_framework_simplejwt.views import TokenObtainPairView, TokenRefreshView router = DefaultRouter() router.register(r"products", ProductViewSet, basename="produ...
Python
"total_speed_improvement"] / max(1, self.stats["optimizations"]) } # Helper functions for simpler usage def optimize_whisper_model( model_size: str = "tiny", language: Optional[str] = None, optimization_level: OptimizationLevel = OptimizationLevel.MEDIUM, target_device: DeviceTarget = DeviceT...
Python
remoteCellId; } X2CellInfo::~X2CellInfo (void) { m_localCellId = 0; m_remoteCellId = 0; } X2CellInfo& X2CellInfo::operator= (const X2CellInfo& value) { NS_LOG_FUNCTION (this); m_localCellId = value.m_localCellId; m_remoteCellId = value.m_remoteCellId; return *this; } ///////////////////////////////////...
C++
, null, true); } assertEquals(0*GB, a.getUsedResources().getMemorySize()); assertEquals(0*GB, app_0.getCurrentConsumption().getMemorySize()); assertEquals(0*GB, app_1.getCurrentConsumption().getMemorySize()); assertEquals(0*GB, app_2.getCurrentConsumption().getMemorySize()); assertEquals(0*GB, a...
Java
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using Silk.NET.Core.Attributes; #pragma warning disable 1591 namespace Silk.NET.SDL { [NativeName("AnonymousName", "__AnonymousEnum_SDL_pixels_L79_C9")] [Nat...
C#
/* * Copyright (c) 2024 Serialcomms (GitHub). * * SPDX-License-Identifier: BSD-3-Clause */ #include <stdio.h> #include "pico/stdlib.h" #include "include/USB_buffer_control.h" #include "include/USB_build_endpoints.h" #include "include/USB_endpoint_struct.h" #include "include/USB_endpoints_host.h" #include "includ...
C
final config = await findPackageConfig(dir); if (config == null) { throw FileSystemException('package config not found', dir.toString()); } for (final package in config.packages) { if (flutterPackages.contains(package.name)) { // This is a package we're interested in - add all the public libraries t...
Dart
文件夹。 3. 删除文件夹。 4. 值班排班、请假审批。 5. 修改本学期信息。 6. 修改、删除、情况网盘文件夹模板 - 汇总负责人(部门内部职务,负责每日评分统计汇总分管当值部员) - 实习汇总负责人(部门内部职务,在其他汇总负责人或部长、副部长帮助下展开工作,在合适时间转正或停止成为汇总负责人) 以上角色在文档的功能列表中以“中级-”开头 1. 可查看学期文件夹。 2. 创建月份文件夹。 3. 推送文件夹到私人微信传输助手。 4. 增加网盘文件夹模板 - 普通部员(无部门内部职务,仅为校团委学生会登记在册的在任部员) - 实习部员(经校团委学生会纳新,在实习期内的部员) - 其...
Markdown
nverseSubBytes() { state.forEachIndexed { indexRow, row -> row.forEachIndexed { indexColumn, element -> state[indexRow][indexColumn] = getInverseSBoxValue(element) } } } fun getInverseSBoxValue(element: UByte): UByte { val firstDigit = (element / ...
Kotlin
# Copyright (C) 2016 Kevin Ross # # 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 program is distributed in the...
Python
dMenuItem4Ctx('矩形', function(ctx:IRenderingContext2D){ // 进行颜色填充 ctx.fillStyle='#FF0000'; // 颜色填充还有以下几种方式 //ctx.fillStyle = 'red'; //ctx.fillStyle = 'rgb(255,0,0)'; //ctx.fillStyle = 'rgba(255,0,0,0.5)'; // 填充矩形 ctx.fillRect(25,25,100,100); // 擦除矩形...
Typescript
this._data, this._length); Pointer<T> get data => _data; int get length => _length; Pointer<T> _data; int _length; } import 'src/build_tool.dart' as build_tool; Future<void> runMain(List<String> args) async { return build_tool.runMain(args); } import 'package:build_tool/src/builder.dart'; import 'package:...
Dart
} // pub fn get_pin(pin: u8) -> bool { // unsafe { // let ptr = k210_pac::GPIOHS::ptr(); // get_bit((*ptr).input_val.read().bits(), pin) // } // } use errors::{parse_ok, Error, ErrorKind, ParseResult}; use Buffer; use std::io::Write; use whitespaces::{skip_cfws, replace_cfws}; use quoted_string...
Rust
&& result.data.city && result.data.regionName && result.data.country) { var place = result.data.city + ', ' + result.data.regionName + ', ' + result.data.country; return {'name': place ,'latitude': result.data.lat ,'longitude': result.data.lon ,'icon':DEFAULT_ICO...
JavaScript
'encodeAlpha', instance.encodeAlpha); return val; } const _$EncodingPreferenceEnumMap = { EncodingPreference.preferAuto: -1, EncodingPreference.preferSoftware: 0, EncodingPreference.preferHardware: 1, }; const _$CompressionPreferenceEnumMap = { CompressionPreference.preferCompressionAuto: -1, CompressionP...
Dart
wtable((address)Interpreter::_wentry_point); __ jump(ArrayAddress(wtable, Address(noreg, rbx, Address::times_ptr))); // Note: the rsi increment step is part of the individual wide bytecode implementations } //---------------------------------------------------------------------------------------------------- // ...
C++
least 2 Nodes") } node1Name, node2Name := nodes.Items[0].Name, nodes.Items[1].Name clientPodConfig := *podConfig( "client-pod", ) serverPodConfig := *podConfig( "server-pod", withCommand(func() []string { return httpServerContainerCmd(podClusterNetPort) }), ) By("creating seco...
Go
NV = "\${WORKSPACE}" val branchesToAdd = projectVcsDataProvider.ciRelevantBranches() val toAdd = branchesToAdd.joinToString(separator = "\n", postfix = "\n }") { " branch '$it'" } val baselineText = getSarifBaseline(project)?.let { " --baseline=$it" } ?: "" @Language("GROOVY") ...
Kotlin
ION_SET_DEFAULT_COLLECTIBLE_DESCRIPTION_FORMAT, "Définit le << c:1 >> de votre compagnon sur son << c:1 >> d'origine (varie en fonction du compagnon).", 0) SAS(SI_COMPANION_SKILL_LINE_ADDED, "Ligne de compétence de compagnon obtenue : <<1>> <<2>>", 0) SAS(SI_COMPASSACTIVEQUESTSCHOICE0, "Désactivé", 0) SAS(SI_COMPASSACT...
Lua
#[async_trait::async_trait] impl InherentDataProvider for MockValidationDataInherentDataProvider { fn provide_inherent_data( &self, inherent_data: &mut InherentData, ) -> Result<(), sp_inherents::Error> { // Calculate the mocked relay block based on the current para block let relay_parent_number = self.rel...
Rust
D052426424FBD58F78E973AAAC52A67B5AFE Enumerator_get_Current_mFD2F777D1876CD434F4490451643F7587BC39E7B_AdjustorThunk (RuntimeObject * __this, const RuntimeMethod* method) { int32_t _offset = 1; Enumerator_t9ACA79DAE23778953BC12EFC8750E8A6B556103A * _thisAdjusted = reinterpret_cast<Enumerator_t9ACA79DAE23778953BC12EFC...
C++
= 1, // batch tile size bool DEBUG=false> void batched_gemv_kernel_perf_test(cutlass::gemm::BatchedGemmCoord problem_size, ElementCD_ alpha = ElementCD_(1), ElementCD_ beta = ElementCD_(0), int iter = 50) {...
C
forcing the funciton to return a result too. println!("{}", next_match); } 2 => { let team_info = get_team_info().unwrap(); println!("{}", team_info); } 3 => { let rankings = get_all_rankings().unwrap(); ...
Rust
S_COLUMN, details, -1); g_free (details); } while (poppler_fonts_iter_next (fonts_iter)); poppler_fonts_iter_free (fonts_iter); } pgd_fonts_update_progress (demo, n_pages, scanned); g_object_unref (font_info); g_object_unref (model); return FALSE; } static void pgd_fonts_scan_button_clicke...
C
et " f"is {y_type}." ) if y_prob.max() > 1: raise ValueError("y_prob contains values greater than 1.") if y_prob.min() < 0: raise ValueError("y_prob contains values less than 0.") try: pos_label = _check_pos_label_consistency(pos_label, y_true) except ValueE...
Python
simple('a +')], ); } test_simpleIdentifier_typedef_functionType() async { await _assertConst(r''' typedef A = void Function(); var x = A; ''', () => _xInitializer()); } test_simpleIdentifier_typedef_interfaceType() async { await _assertConst(r''' typedef A = List<int>; var x = A; ''', () => _xInit...
Dart
&& data.item.encoded === false) {##= text ## } else { ##: text ## } #")),e.templates={content:B("#var contentHtml = "+n("content")+"(item);#<div #= contentCssAttributes(item.toJSON ? item.toJSON() : item) # tabindex='-1'>#= contentHtml || '' #</div>"),group:B("<ul class='#= groupCssClass(group) #'#= groupAttributes(gr...
JavaScript
{ alt((map(token, Cow::Borrowed), map(quoted_string, Cow::Owned)))(input) } pub fn values_list(input: &[u8]) -> IResult<&[u8], Vec<Cow<[u8]>>> { terminated(separated_list1(tuple((tag(b","), space0)), value), space0)(input) } pub fn pair(input: &[u8]) -> IResult<&[u8], (&[u8], Cow<[u8]>)> { separated_pair...
Rust
ED, MAC, HOSTNAME); dhcp.set_broadcast_addr(SocketAddrV4::new(Ipv4Addr::LOCALHOST, 2050)); dhcp.set_src_port(2051); dhcp.set_timeout_secs(11); dhcp.setup_socket(&mut w5500).unwrap(); const DHCP_SN: Sn = Sn::Sn0; let mut server: Server = Server::default(); let mut mono: MockMonotonic = Moc...
Rust
invoked a single time per socket per event /// loop tick. fn ready(&mut self, event_loop: &mut EventLoop<Self>, token: Token, events: Ready) { } /// Invoked when a message has been received via the event loop's channel. fn notify(&mut self, event_loop: &mut EventLoop<Self>, msg: Self::Message) { ...
Rust
[ln]>999?ln:-1,p(t)._overflowDayOfYear&&(e<nn||e>rn)&&(e=rn),p(t)._overflowWeeks&&-1===e&&(e=un),p(t)._overflowWeekday&&-1===e&&(e=cn),p(t).overflow=e),t}function ne(t){var e,i,o,n,s,r,a=t._i,h=Nn.exec(a)||An.exec(a);if(h){for(p(t).iso=!0,e=0,i=zn.length;e<i;e++)if(zn[e][1].exec(h[1])){n=zn[e][0],o=!1!==zn[e][2];break}...
JavaScript
} var y2 = x2 - k2; while (x2 < text1_length && y2 < text2_length && text1.charAt(text1_length - x2 - 1) == text2.charAt(text2_length - y2 - 1)) { x2++; y2++; } v2[k2_offset] = x2; if (x2 > text1_length) { // Ran off the left of the ...
JavaScript
r.x<e.x?r.x+f-l:r.x-f+l,m=r.y<e.y?r.y+d:r.y-d;return Y.debug(`sides calc abc89, Q ${h}, q ${d}, R ${f}, r ${l}`,{_x:p,_y:m}),l===0&&(p=e.x,m=e.y),f===0&&(p=e.x),h===0&&(m=e.y),{x:p,y:m}}},"intersection"),JZ=o((t,e)=>{Y.warn("abc88 cutPathAtIntersect",t,e);let r=[],n=t[0],i=!1;return t.forEach(a=>{if(Y.info("abc88 check...
JavaScript
public override void FinishAttack() { base.FinishAttack(); } public override void LogicUpdate() { base.LogicUpdate(); if (isAnimationFinished) { if (isPlayerInMinAgroRange) { stateMachine.ChangeState(enemy.playerDetectedState); ...
C#
createInstructionCombiningPass()); } //===- LowerExpectIntrinsic.cpp - Lower expect intrinsic ------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exceptio...
C++
MandatoryStmt(MandatoryStmt { arg }) } } /// /// The "presence" Statement. /// #[derive(Debug, Clone, PartialEq, Getters)] pub struct PresenceStmt { /// String. arg: String, } impl Stmt for PresenceStmt { /// Arg type. type Arg = String; /// Sub Statements. type SubStmts = (); /// Re...
Rust
<p>Tips: please double click left pdf file node ,or choose local pdf file. then click extract button to do the task.</p><p>操作提示:双击左侧的pdf节点,或者从本地选择pdf文件,然后点击extract按钮</p></body></html>")) self.btnChooseFile.setText(_translate("PdfExtractExcel", " Local File")) self.groupBox_7.setTitle(_translate("PdfExtr...
Python
&& fRight) ::swap(fLeft, fRight); } protected: Sizeable* fLeft; Sizeable* fRight; unsigned fOffset; }; /* * A grid of rows. * The second column is aligned. */ class Table : public Sizeable { public: Table() { } ~Table() { } Table& operator+=(Row* row) { if (row) fRo...
C
// Add opcode and sp contents const startHist=regData.length; const histData=new Uint16Array(startHist+3); // Copy registers histData.set(regData); // Store opcode (4 bytes) const z80=this.z80; const pc=z80.pc; const opcodes=this.memory.getMemory32(pc); histData[startHist]=opcodes&0xFFFF; histDat...
Typescript
ator().withClass(embeddingClass).run(); if (result.hasErrors()) { throw new RuntimeException("failed to create schema because: \n" + result.getError() .getMessages() .stream() .map(WeaviateErrorMessage::getMessage) .collect(Collectors.joining(System.lineSeparator()))); } } private Field[] buil...
Java
�究与前沿技术](表格型深入研究与前沿技术/README.md) ## 参与贡献 持续更新中,欢迎贡献便于理解的优秀代码示例,推荐使用Python代码和Jupyter Notebook提交,并附上说明。请将习题解答或者代码案例提交pull request至contributions文件夹下面,每个习题或者案例单独文件(.md,.py 或者 .ipynb) 进行提交,提交后的代码我们将会尽快review并更新至相应的章节: + 如果贡献习题解答,命名方式为 ex(chapter)-(execise).md, 例如:第二章第一题ex02-01.md + 如果贡献案例代码,命名方式为 case(chapter)-(casenam...
Markdown
from rest_framework.decorators import api_view from rest_framework.response import Response from user_app.api.serializers import RegistrationSerializer from rest_framework.authtoken.models import Token # from user_app import models from rest_framework import status from rest_framework_simplejwt.tokens import RefreshTok...
Python
70\uEEE9\u9D6B\uEEEA\uFA2D\uEEEB\u9E19" + "\uEEEC\u9ED1\uEEEF\u2170\uEEF0\u2171\uEEF1\u2172" + "\uEEF2\u2173\uEEF3\u2174\uEEF4\u2175\uEEF5\u2176" + "\uEEF6\u2177\uEEF7\u2178\uEEF8\u2179\uEEF9\uFFE2" + "\uEEFA\uFFE4\uEEFB\uFF...
Kotlin
验 | 在幼儿教育方面,你认为家长应该如何引导孩子?| |旅游|你能给我推荐一些适合家庭旅游的景点吗?| |科技|什么是区块链技术?它有什么应用场景?| |环保|怎样才能更好地节能减排,保护环境?| |电影|你觉得今年最佳影片奖应该颁给哪部电影?为什么?| |饮食|寿司是如何制作的?你能教我制作一个美味的寿司卷吗?| |文学|《红楼梦》中贾宝玉和林黛玉的关系如何演变的?| |政治|假如你成为了市长,你会采取哪些措施来提高城市治理水平?| |音乐|你认为钢琴演奏与吉他演奏有什么不同之处?| |体育|如何训练出一支优秀的篮球队伍?| |历史|清朝时期有哪些重要的政治事件发生?对中国历史产生了什么影响?| |电脑游戏|如何在Steam上购...
Markdown
ersion": "1.0.2", "lorawan_phy_version": "1.0.2-b", "mac_settings": { "rx1_delay": null }, "supports_join": false, "session": { "dev_addr": "01010101" } }` abpDeviceWithoutSession = `{ "ids": { "device_id": "abp-device-error", "application_ids": { "application_id": "test-app" }, "...
Go
ontents to physical medium without closing */ virtual void Flush(); /** closes current file, after this file becomes unreachable */ virtual void Close() = 0; /** deletes current file, after this file becomes unreachable */ virtual void Delete() = 0; virtual void SeekToEnd() = 0; virtual ...
C
description = "The table containing all the info about this item.", type = "table" } }, returns = { } } DarkRP.hookStub{ name = "onEntityGroupRemoved", description = "Called when an entity group was removed.", parameters = { { name = "name", ...
Lua
e_id': case 'discogs_master_release_id': case 'discogs_artist_id': case 'discogs_votes': tag.value = typeof tag.value === 'string' ? parseInt(tag.value, 10) : tag.value; break; case 'replaygain_track_gain': case 'replaygain_track_peak': case 'replaygain_album_gain': ...
Typescript
typescript-eslint/no-useless-constructor constructor(fs?: IReadWriteFS) { super(fs); } /** * 文件是否存在 * @param path 文件路径 */ async exists(path: string) { const exists = await this.fs.exists(path); return exists; } /** * 读取文件夹中文件列表 * @param...
Typescript
.Name = "_currentCommand"; this._currentCommand.Size = new System.Drawing.Size(248, 23); this._currentCommand.TabIndex = 7; this._currentCommand.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // _hotKey // this._hotKey.Deb...
C#
local t = require('luatest') local cluster = require('luatest.replica_set') local server = require('luatest.server') local g = t.group('gh_6123', {{engine = 'memtx'}, {engine = 'vinyl'}}) g.before_each(function(cg) cg.cluster = cluster:new({}) local box_cfg = { replication = { ser...
Lua
AllocatedDirty(); // oldparent->data->paintable_region_dirty = true; } if (newparent) { // newparent->d_func()->setChildrenAllocatedDirty(); // newparent->data->paintable_region_dirty = true; //@@@@@@@ } } Qt::FocusPolicy fp = q->focusPolicy()...
C++
e; SendTurnInPlace(DEG_TO_RAD(_turnAngle_deg)); SendMoveHeadToAngle(DEG_TO_RAD(_headAngle_deg), DEG_TO_RAD(360), DEG_TO_RAD(1000)); _testState = _nextState; } break; } case TestState::LocalizeToObjectB: { // ...
C++
COPPER = ItemRegistry["minecraft:waxed_weathered_chiseled_copper"] val WAXED_OXIDIZED_CHISELED_COPPER = ItemRegistry["minecraft:waxed_oxidized_chiseled_copper"] val WAXED_CUT_COPPER = ItemRegistry["minecraft:waxed_cut_copper"] val WAXED_EXPOSED_CUT_COPPER = ItemRegistry["minecraft:waxed_exposed_cut_copper"]...
Kotlin
000000, 0x0fffff, MAP_ROM); SekMapMemory(Taito68KRam1 , 0x100000, 0x10ffff, MAP_RAM); SekMapMemory(TaitoPaletteRam , 0x200000, 0x201fff, MAP_RAM); SekMapMemory(TC0100SCNRam[0] , 0x800000, 0x80ffff, MAP_READ); SekMapMemory(TaitoSpriteRam , 0x900000, 0x90ffff, MAP_RAM); SekSet...
C++
from __future__ import annotations import pytest from qcarchivetesting.testing_classes import QCATestingSnowflake from qcportal import PortalRequestError from qcportal.managers import ManagerName, ManagerStatusEnum from qcportal.utils import now_at_utc def test_manager_client_get(snowflake: QCATestingSnowflake): ...
Python
/* * Copyright (c) 2015-2020, ARM Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ #include <arch.h> #include <asm_macros.S> #include <assert_macros.S> #include <console_macros.S> #include <drivers/ti/uart/uart_16550.h> /* * "core" functions are low-level implementati...
Assembly
ASSERT(this->bounds().contains(subset)); SkASSERT(SkIsAlign2(subset.fLeft) && SkIsAlign2(subset.fTop)); SkASSERT(this->getValidSubset(&subset) && subset == *options.fSubset); if (!SkIRect::Intersects(subset, frameRect)) { return kSuccess; } int minXOffset = SkTMin(d...
C++
t('Update role without name', async () => { let roles = await roleBusiness.getAll(); if (roles.length) { let roleUpdate = roles[0]; roleUpdate.name = ''; await roleBusiness.update(roleUpdate.id, roleUpdate).catch(error => { expect(error.httpCode).to.e...
Typescript
ownedTilesThreshold); if (pLoopPlot->area()->getCitiesPerPlayer(BARBARIAN_PLAYER) < iTargetCities) { iValue = GET_PLAYER(BARBARIAN_PLAYER).AI_foundValue(pLoopPlot->getX_INLINE(), pLoopPlot->getY_INLINE(), GC.getDefineINT("MIN_BARBARIAN_CITY_STARTING_DISTANCE")); if (iTargetCitiesMultiplier > 100) ...
C++
{ break; } // 地址跟上次的不一致则跳过 if (kChannel.RealAddress != realAddress) { Log.Error($"kchannel syn address diff: {kChannel.Id} {kChan...
C#
egration-hub .card-image {padding-top: 20px;position: relative;} section.resources.integration-hub .card-image .new {position: absolute;top: -22px;right: -30px;line-height: 16px;font-family: "ProximaNova Medium","Helvetica Neue",Helvetica,Arial,sans-serif;background-color: #60aa69;border-radius: 0;padding: 36px 20px 2p...
CSS
C_SYMBOL_NAME(__longjmp) .align 4 C_SYMBOL_NAME(__longjmp): /* load registers from memory to r5 (arg0) */ lwi r1, r5, 0 lwi r15, r5, 4 lwi r2, r5, 8 lwi r13, r5, 12 lwi r18, r5, 16 lwi r19, r5, 20 lwi r20, r5, 24 lwi r21, r5, 28 lwi r22, r5, 32 lwi r23, r5, 36 lwi r24, r5, 40 lwi r25, r5, 44 lwi r26, r5...
Assembly