content
stringlengths
2
6.21k
label
stringclasses
16 values
n) { if (arr[i] > max) max = arr[i] } return max } private fun countSort(arr: IntArray, n: Int, exp: Int): IntArray { val output = IntArray(n) val count = IntArray(10) var i: Int // store count of occurrences in count[] i = 0 while ...
Kotlin
68, but rather /// is inspired by the OpenSSL PEM decoder. /// /// Returns a slice which starts at the beginning of the encapsulated text. /// /// From RFC7468: /// > Data before the encapsulation boundaries are permitted, and /// > parsers MUST NOT malfunction when processing such data. pub(crate) fn strip_preamble(mu...
Rust
", etc.) **Returns**: A `TextStyle` object with the color and font weight set according to the language element type. If the token type is unknown, returns a default text style with a light gray color (`#E0E0E0`). **Example**: ```kotlin val classStyle = RubyDarkTheme().getLanguageSpecificStyle("ruby_class") ``` ## A...
Markdown
# coding: utf-8 from requests.utils import quote class Downloader(object): header = { "User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) " "AppleWebKit 537.36 (KHTML, like Gecko) Chrome", "Accept-Language": "zh-CN,zh;q=0.8", "Accept": "text/html,application/xhtml+xml,a...
Python
View(appearanceSettingsBinding.root) ViewCompat.setOnApplyWindowInsetsListener(findViewById(R.id.toolbar_container)) { v, insets -> val systemBars = insets.getInsets(WindowInsetsCompat.Type.systemBars()) v.setPadding(systemBars.left, systemBars.top, systemBars.right, 0) ...
Kotlin
地设市之前的原县级聊城市,即现东昌府区。 第九条 编制专项规划,应当采取论证会、座谈会、听证会等形式,广泛听取人大代表、政协委员、各有关部门、广告业行业协会、专家和相关不同利益群体的意见,并向社会公众公开征求意见。征求意见的时间不少于三十日。 第十条 市、县(市、区)城市管理(综合行政执法)部门应当根据专项规划分别编制户外广告设施和招牌的区域性设置详细方案(以下简称设置方案)。 设置方案应当明确户外广告设施和招牌设置的点位数量、载体部位、详细尺寸、结构形式等,并对公益广告设施所占比例、点位等作出具体规定。 设置方案应当突出水城特色,彰显本市深厚文化底蕴、商业优秀传承和城乡发展活力。鼓励原创性、新颖性、个性化设计,提升户外广告...
Markdown
042 }, { config_id = 211, monster_id = 21030201, pos = { x = 2031.9, y = 205.0, z = -858.0 }, rot = { x = 0.0, y = 296.3, z = 0.0 }, level = 7, drop_id = 303042 } } -- NPC npcs = { } -- 装置 gadgets = { } -- 区域 regions = { } -- 触发器 triggers = { } -- 变量 variables = { } --============================================...
Lua
/* $NetBSD: stpcide.c,v 1.27 2013/10/07 19:51:55 jakllsch Exp $ */ /*- * Copyright (c) 2003 The NetBSD Foundation, Inc. * All rights reserved. * * This code is derived from software contributed to The NetBSD Foundation * by Tohru Nishimura. * * Redistribution and use in source and binary forms, with or without ...
C
redReplicants` - A JSON Object where the keys are the tier names and values are the number of replicas for that tier. ### Interval Load Rule Interval load rules are of the form: ```json { "type" : "loadByInterval", "interval": "2012-01-01/2013-01-01", "tieredReplicants": { "hot": 1, "_default_tier" : ...
Markdown
d_mouse = false; XMapWindow(ps->dpy, mw->window); XRaiseWindow(ps->dpy, mw->window); // Might because of WM reparent, XSetInputFocus() doesn't work here // Focus is already on mini window? XSetInputFocus(ps->dpy, mw->window, RevertToParent, CurrentTime); /* { int ret = XGrabKeyboard(ps->dpy, mw->window, True, ...
C
ard values are equal", function () { let one = new Card(CardValue.Two, CardSuit.Spades); let two = new Card(CardValue.Two, CardSuit.Clubs); expect(Battle.play(one, two)).to.equal(two); }); it("should treat diamonds as better than clubs, if the card values are equal", function () { ...
Typescript
action_get_user_info = "user.get_user_info" action_freeze_balance = "user.freeze_balance" action_unfreeze_balance = "user.unfreeze_balance" action_freeze_stock = "product.freeze_stock" action_unfreeze_stock = "product.unfreeze_stock" action_fetch_product_details = "product.fetch_product_details" action_purchase_product...
Python
RuntimePlatform == Device.UWP || Device.RuntimePlatform == Device.WPF) { secondaryAxisLabelStyle.LabelFormat = "$0"; if (Device.RuntimePlatform == Device.WPF) { Chart.ChartPadding = new Thickness(0, 0, 0, 10); } ...
C#
local this = class("cellSatietyBagItem", G_UIModuleBase) function this.bind() return { cellItem = L_Const.ModuleInfo.CellIconBag, satiety = "", itemNumText = "", satietyBgActive = true } end function this.methods() return {} end function this:refresh() if not self.isBind then return end...
Lua
多个工作表合并成一个? | | 分类 | 给定一组用户评论数据,请利用机器学习算法对其进行情感分类。 | | 新闻分类 | 给定一条新闻报道,请问它属于哪个类别? | | 情感分析 | 对于一段文本,请问其中的情感是积极还是消极? | | 文本纠错 | 给定一段包含拼写错误或语法错误的文本,请将其纠正。 | | 关键词提取 | 给定一篇文章,请问其中最重要的关键词是什么? | | 摘要生成 | 给定一篇长文章,请为其生成一个简短的摘要。 | | 句子补全 | 给定一个句子的前半部分,请继续补全这个句子。 | | ...
Markdown
able!!), equalTo(android.R.drawable.ic_btn_speak_now) ) } } package org.odk.collect.settings.importing import org.hamcrest.MatcherAssert.assertThat import org.hamcrest.Matchers.`is` import org.junit.Test import org.odk.collect.projects.Project import org.odk.collect.settings.keys.ProjectKeys c...
Kotlin
left:-1.25rem}.form-check-input:disabled~.form-check-label{color:#6c757d}.form-check-label{margin-bottom:0}.form-check-inline{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;padding-left:0;margin-right:.75rem}.form-check-inline .form-check-input{position:static;margin-top:0;margi...
CSS
nonsynonymous/synonymous ratio double kappa, // transition/transversion ratio, usually >1 vector<vector<double> > *aaPostProb){ // posterior probabilities of aa substitutions gsl_matrix* Q = gsl_matrix_calloc (64, 64); // initialize Q as the zero-matrix Seq2Int s2i(3); // store and prin...
C++
rebid":{"floors":{"enforcement":{"enforcepbs":false}}}}`), }, } bw.RebuildRequest() return &bw }(), seatBids: map[openrtb_ext.BidderName]*entities.PbsOrtbSeatBid{ "pubmatic": { Bids: []*entities.PbsOrtbBid{ {Bid: &openrtb2.Bid{ID: "some-bid-1", Price: 1.2, ImpID: "some-imp...
Go
pixel]/255.0); //if(r < 0) r = 0; //node_data[line][pixel].rc = (unsigned char)r; } else if(pixel < ncols - 1) { if(Hedge_data[line - 1][pixel] > edge_th) node_data[line][pixel].rc = i_min(node_data[line][pixel].rc, 10); //int r = node_data[line][pixel].rc - Hedge_data[line - 1][pixel] * 255/1...
C++
\ l %r1,errno@GOT(%r1); \ lcr %r2,%r2; \ st %r2,0(%r1); \ lhi %r2,-1; \ br %r14; \ 2: .long _GLOBAL_OFFSET_TABLE_-1b # endif /* _LIBC_REENTRANT */ #endif /* PIC */ /* Linux takes system call arguments in registers: sysc...
C
unction enablestart() { var startbutton = document.getElementById('startbutton'); startbutton.value = "start"; startbutton.disabled = null; } var insertAltVideo = function(video) { // insert alternate video if getUserMedia not available if (supports_video()) { if (supports_webm_v...
HTML
using System; namespace Server.Items { public abstract class BaseCloak : BaseClothing { public BaseCloak( int itemID ) : this( itemID, 0 ) { } public BaseCloak( int itemID, int hue ) : base( itemID, Layer.Cloak, hue ) { } public BaseCloak( Serial serial ) : base( serial ) { } public override v...
C#
containment.</param> /// <returns>True, if <paramref name="position"/> is contained, false otherwise.</returns> public bool Contains(SyntaxPosition position) => this.Start <= position && position < this.End; /// <summary> /// Checks if this range contains the given range. /// </summary> /// <p...
C#
re> <source data-srcset="./../../../../../Images/ProgrammingAndScripting/ProgrammingWithCPP/CPPTutorials/UMG/CompileFromEditor.jpg"> <img class=" lazyload" alt="CompileFromEditor.png" data-src="../../../../../Images/ProgrammingAndScripting/ProgrammingWithCPP/CPPTutorials/UMG/CompileFromEditor.jpg" /> </picture> </...
HTML
import sys import sympy assert sys.version_info >= (3, 5) def dot(left, right): assert(isinstance(left, sympy.Matrix)) assert(isinstance(right, sympy.Matrix)) sum = 0 for c in range(0, left.cols): for r in range(0, left.rows): sum += left[r, c] * right[r, c] return sum def...
Python
uot;sbd_interest_rate&quot;: 1000, &quot;account_subsidy_limit&quot;: 0 } Example curl curl -s --data &#39;{&quot;jsonrpc&quot;:&quot;2.0&quot;, &quot;method&quot;:&quot;condenser_api.get_chain_properties&quot;, &quot;params&quot;:[], &quot;id&quot;:1}&#39; https://api.steemit.com Since: HF17 Working on mainnet Working...
HTML
let mut decomp: Vec<u8> = Vec::new(); lzma_rs::xz_decompress(&mut f, &mut decomp)?; decomp.shrink_to_fit(); Ok(String::from_utf8(decomp)?) } /// Get the network graph as a string. pub fn load_network_graph(graph_options: &GraphOptions) -> Result<String, Box<dyn Error>> { Ok(match graph_options { ...
Rust
e The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static LabelType valueOf(int value) { return forNumber(value); } ...
Java
; double averageUserRating; num userRatingCount; AppContent(this.isGameCenterEnabled, this.screenshotUrls, this.ipadScreenshotUrls, this.appletvScreenshotUrls, this.artworkUrl60, this.artworkUrl512, this.artworkUrl100, this.artistViewUrl, this.supportedDevices, this.kind, this.features, this.a...
Dart
String cabinetNo) { //1 创建AvailableProwerBankVo对象 AvailableProwerBankVo availableProwerBankVo = new AvailableProwerBankVo(); //2 根据cabinetNo柜机编号查询柜机信息 Cabinet cabinet = cabinetService.getBtCabinetNo(cabinetNo); //3 判断柜机可用充电宝数量是否大于0 Integer availableNum = cabinet.getAvai...
Java
binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') GetPeersRequest copyWith(void Function(GetPeersRequest) updates) => super.copyWith((message) => updates(message as GetPeersRequest)) as GetPeersRequest; // ignore: deprecated_mem...
Dart
, #(8*16) stp q6, q7, [sp, #(6*16)] stp q4, q5, [sp, #(4*16)] stp q2, q3, [sp, #(2*16)] stp q0, q1, [sp, #(0*16)] // save {x1-x30} sub sp, sp, #(30*8) // stp fp, lr, [sp, #(28*8)] stp x29, x30, [sp, #(28*8)] stp x27, x28, [sp, #(26*8)] stp x25, x26, [sp, #(24*8)] stp x23, x24, [sp, #(22*8)] stp x21, x22, [...
Assembly
def count_upper(s): """ Given a string s, count the number of uppercase vowels in even indices. For example: count_upper('aBCdEf') returns 1 count_upper('abcdefg') returns 0 count_upper('dBBE') returns 0 """ count = 0 for i in range(0, len(s), 2): if s[i].isupper(): ...
Python
" cellpadding="3" summary=""> <tr valign="baseline"> <td width="31.999679999999998"> <div> <nobr> <font color="#000000"><img src="images/b_bullet.gif" alt="ParagraphBullet" border="0"></font> </nobr> </div> <...
HTML
artstCHANNEL_1, 0x00 ); uxCurrentOutput5Bit = 0; XGpio_mSetDataReg( XPAR_LEDS_POSITIONS_BASEADDR, partstCHANNEL_1, 0x00 ); } /*-----------------------------------------------------------*/ void vParTestSetLED( unsigned portBASE_TYPE uxLED, signed portBASE_TYPE xValue ) { unsigned portBASE_TYPE uxBaseAddress, *puxCur...
C
tr><td>大麦</td><td>积分</td><td><a href="#" target="_blank">领取地址</a></td></tr></tbody></table><p style="text-align: left"><span style="text-align: left">也可在这里插入图片、并对图片加上超级链接,方便用户点击。</span></p></div></div><!--end富文本--></div>'),a.put("widget-richtext-editor.html",'<div ng-controller="richTextCtrl"><!--富文本--><div class="app-...
JavaScript
present, use -- its value minus the value of the Date response header field, (expires and expires - date) or -- Otherwise, no explicit expiration time is present in the response. -- A heuristic freshness lifetime might be applicable; see Section 4.2.2. 0 -- TODO: implement Heuristic Freshne...
Lua
path 37.95,67.63 38.52,68.50 33.94,66.02 34.59,61.64 33.70,56.77 path 33.45,53.94 33.65,50.19 35.00,47.28 32.96,46.68 31.68,45.41 path 32.34,42.64 31.42,41.24 25.23,43.10 20.94,39.12 20.02,35.80 path 19.12,33.36 22.43,31.28 23.48,24.90 26.93,20.65 28.65,14.18 path 28.96,16.96 31.62,18.63 30.96,20.36 33.19,21.23 36.35,2...
Lua
getElementsByTagName('script'),e=t.length;e--;)if(t[e].getAttribute('data-cfhash'))return t[e]}();if(t&&(c=t.previousSibling)){p=t.parentNode;if(a=c.getAttribute('data-cfemail')){for(e='',r='0x'+a.substr(0,2)|0,n=2;a.length-n;n+=2)e+='%'+('0'+('0x'+a.substr(n,2)^r).toString(16)).slice(-2);p.replaceChild(document.create...
HTML
number_rewrite+0x180> // b.any 42f8e4: 17ffffcf b 42f820 <_i18n_number_rewrite+0xd0> 42f8e8: a94573bb ldp x27, x28, [x29, #80] 42f8ec: f94023b9 ldr x25, [x29, #64] 42f8f0: 17ffffe1 b 42f874 <_i18n_number_rewrite+0x124> 42f8f4: d503201f nop 42f8f8: 121e7801 and w1, w0, #0xfffffffd 42f8fc: 7100b03f ...
Assembly
Names = "sysConfig") public class WooSysConfigServiceImpl extends BaseServiceImpl<WooSysConfigMapper, WooSysConfig> implements WooSysConfigService { private final IGenerator generator; private final RedisUtils redisUtils; // private final RedisUache redisUache; // private final WooSysConfigService sysCon...
Java
namespace MassTransit.Util { using System; using System.Collections.Generic; using System.Linq; using Scanning; /// <summary> /// Access to a set of exported .Net Type's as defined in a scanning operation /// </summary> public class TypeSet { readonly IEnumerable<AssemblyS...
C#
取的,我们无法预料哪一个线程将会被选择,所以编程时要特别小心,避免因这种不确定性而产生问题。 第二:除了 notify(),还有一个方法 notifyAll() 也可起到类似作用,唯一的区别在于,调用 notifyAll() 方法将把因调用该对象的 wait() 方法而阻塞的所有线程一次性全部解除阻塞。当然,只有获得锁的那一个线程才能进入可执行状态。 谈到阻塞,就不能不谈一谈死锁,略一分析就能发现,suspend() 方法和不指定超时期限的 wait() 方法的调用都可能产生死锁。遗憾的是,Java 并不在语言级别上支持死锁的避免,我们在编程中必须小心地避免死锁。 以上我们对 Java 中实现线程阻塞的各种方法作了一番分析,我...
Markdown
sVar *jspGetVarNamedField(JsVar *object, JsVar *nameVar, bool returnName); /** Call the function named on the given object. For example you might call: * * JsVar *str = jspCallNamedFunction(var, "toString", 0, 0); */ JsVar *jspCallNamedFunction(JsVar *object, char* name, int argCount, JsVar **argPtr); // These a...
C
harris@gmail.com", isFavorite = false), Contact(name = "Ava Walker", email = "avawalker@gmail.com", isFavorite = true), Contact(name = "Elijah King", email = "elijahking@gmail.com", isFavorite = false), Contact(name = "Mia Green", email = "miagreen@gmail.com", isFavorite = true), Contact(name = "James J...
Kotlin
// // Created by serizba on 31/7/20. // #ifndef CPPFLOW2_OPS_H #define CPPFLOW2_OPS_H #include "tensor.h" #include "raw_ops.h" namespace cppflow { /** * @name Operators */ //@{ /** * @returns x + y elementwise */ tensor operator+(const tensor& x, const tensor& y); /** ...
C
if !predicate(&value) { Some(value) } else { None } } }) .collect(); for i in garbage { (self as &dyn KeyValueStoreBackend<S>).delete(&i)?; } Ok(()) ...
Rust
gyro_sensor_html_ac66dec74179abe4513db54dddd872ce4"><div class="ttname"><a href="class_p_l_e_n2_1_1_acceleration_gyro_sensor.html#ac66dec74179abe4513db54dddd872ce4">PLEN2::AccelerationGyroSensor::getGyroPitch</a></div><div class="ttdeci">const int16_t &amp; getGyroPitch()</div><div class="ttdoc">Get angular velocity of...
HTML
 using System.IO; namespace ProtoBuf { /// <summary> /// Provides addition capability for supporting unexpected fields during /// protocol-buffer serialization/deserialization. This allows for loss-less /// round-trip/merge, even when the data is not fully understood. /// </summary> public inte...
C#
" ")) } else { path = "." } f, err := os.Open(path) if err != nil { return nil } defer f.Close() files, err := f.Readdir(-1) if err != nil { return nil } names := make([][]rune, 0, len(files)) for _, f := range files { filename := filepath.Join(path, f.Name()) if f.IsDir() { filename += "/...
Go
expZ = expA + expB - 0x3FFE; softfloat_mul64To128M( sigA, sigB, sigProd ); if ( sigProd[indexWordLo( 4 )] ) sigProd[indexWord( 4, 1 )] |= 1; extSigZPtr = &sigProd[indexMultiwordHi( 4, 3 )]; if ( sigProd[indexWordHi( 4 )] < 0x80000000 ) { --expZ; softfloat_add96M( extSigZPtr, extSigZPtr, ...
C
D3DX12_PIPELINE_STATE_STREAM_BLEND_DESC { [FieldOffset(0)] internal readonly AlignedSubObjectType<D3D12_BLEND_DESC> _type; [FieldOffset(0)] internal readonly nint _pad; public CD3DX12_PIPELINE_STATE_STREAM_BLEND_DESC(D3D12_BLEND_DESC desc) { _pad = default; _type.Type = D3D12_P...
C#
pee":"[法] 越狱逃跑犯", "prison factory":"[法] 犯人劳动场所, 监狱工厂, 囚犯工厂", "prison farm":"[网络] 劳改场", "prison fever":"[医] 监狱热, 斑疹伤寒", "prison for women":"[法] 女监", "prison garb":"[法] 囚衣, 犯人衣服", "prison guard":"[法] 监狱看守, 狱卒", "prison house":"牢房\\n[法] 牢房, 监狱", "prison labour":"[法] 劳役", "prison law":"[法] 监狱法", "prison of conscience":"政治犯...
Typescript
'>"); sb.append(name); sb.append("</div>"); sb.append("<div style='margin:0; padding:0; width:20%; text-align:left; float:left;'>"); if(type.droppedOnFloor) { sb.append("([style.italics(Dropped on floor)])"); } sb.append("</div>"); return sb.toString(); } private static String applyRowWra...
Java
0.0, 20.0, 31.0, 40.0, 15.0, 25.0, 36.0, 45.0], ); expect( box.copyWith(minM: 41.0, maxM: 46.0).values, [10.0, 20.0, 41.0, 15.0, 25.0, 46.0], ); expect(box.toText(), '10,20,40,15,25,45'); expect( box.toText(delimiter: ' '), '10 20 40 15 25 45', ); ...
Dart
using System.ComponentModel; using System.Diagnostics; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.InteropServices.WindowsRuntime; using System.Runtime.InteropServices.WindowsRuntime; using AppoMobi.Specials; using DrawnUi.Views; using Microsoft.Maui.ApplicationMode...
C#
%" <main class="container"> <div class="row mb-3"> <div class="col-12"> <div class="card border-dark bg-squad-card text-white"> <div class="card-body text-center p-3"> <div class="mx-auto d-flex justify-content-center" v-cloak> <span>...
HTML
) if info.LeadingComments().Len() > 0 { f.writeInlineComments(info.LeadingComments()) if info.LeadingWhitespace() != "" { f.Space() } } f.writeNode(openBrace) if info.TrailingComments().Len() > 0 { f.writeTrailingEndComments(info.TrailingComments()) } else { f.P("") } } // writeOpenBracePrefixForArr...
Go
тандартныеПодсистемы.НапоминанияПользователя">приложениями</a>). </li> <li> <p style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto">С помощью переключателя можно установить, откуда брать правила регистрации объектов:</p> </li> <li> <div style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto"><strong>Исп...
HTML
#define _LINUX_SOURCE #include <unistd.h> #include <threads.h> #include <sys/mman.h> #include <fcntl.h> #define _GNU_SOURCE #include <sched.h> #include "dietfeatures.h" #include <sys/tls.h> #include <stdio.h> #include <sys/random.h> extern thrd_t _thrd_root; extern size_t _thrd_stacksize; #ifdef WANT_TLS extern size_...
C
", char = "" }, { name = "fa-header", code = "f1dc", char = "" }, { name = "fa-heading", code = "f1dc", char = "" }, { name = "fa-headphones", code = "f025", char = "" }, { name = "fa-headphones_simple", code = "ee58", char = "" }, { name = "fa-headset", code = "ee59", char = "" }, { name ...
Lua
2 0x6 ANIM_TARGET 0x0 0x10 0xfff0 0xfff6 0x18 @ 16, -38, -10, 24 launchtemplate gDirtPlumeSpriteTemplate 0x2 0x6 ANIM_TARGET 0x1 0xe 0xffcc 0xffee 0x18 @ 14, -20, -18, 24 launchtemplate gDirtPlumeSpriteTemplate 0x2 0x6 ANIM_TARGET 0x1 0xc 0xffe0 0xfff0 0x18 @ 12, -36, -16, 24 delay 0x5 launchtask AnimTask_BlendBa...
Assembly
throw msg.language.tget('COMMAND_MANAGECOMMANDCHANNEL_TEXTCHANNEL'); }).createCustomResolver('command', async (arg, possible, msg, [type]) => { if (type === 'show' || type === 'reset') return undefined; if (arg) { const command = await this.client.arguments.get('command')!.run(arg, possible, msg); if (!...
Typescript
t(res: Resources): Int = res.getDimensionPixelSize(resId) } /* * Copyright 2020 Mike Penz * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENS...
Kotlin
raise ValueError('Cant run multiples sets ' 'if source is a generator') return (_frequencies_from_records(source, ids=get_indices(s), size_mb=size_mb) ...
Python
) } @Test fun testMagneticTargetHasScreenOffset_flingTowardsTarget() { timeStep = 10 magneticTarget.screenVerticalOffset = 500 val adjustedTargetCenter = targetCenterY + 500 // Forcefully fling the object towards the target (but never touch the magnetic field). dis...
Kotlin
testRunner = { tests = {}, total = 0, passed = 0, failed = 0, failedDetails = {} } local box = playout.box.new local text = playout.text.new local image = playout.image.new function testRunner:test(label, fn) table.insert(self.tests, { label, fn }) end function testRunner:run() local group function ...
Lua
namespace BlazorBootstrap.Demo.RCL; public class Snippet : ComponentBase { #region Members private string? snippet; #endregion #region Methods protected override void BuildRenderTree(RenderTreeBuilder builder) { builder.OpenElement(300, "div"); builder.AddAttribute(301, "cl...
C#
s above each other */ .uk-slider > * { /* 1 */ position: absolute; top: 0; left: 0; } /* * Clip child elements */ .uk-slider-container { overflow: hidden; } /* * Dragged */ .uk-slider:not(.uk-drag) { -webkit-transition: -webkit-transform 200ms linear; transition: transform 200ms linear; } /* * 1. Ma...
CSS
<see cref="NativeShapeWrapper"/> struct with the specified <see cref="OpenVINO.Shape"/> instance. /// </summary> /// <param name="shape">The <see cref="OpenVINO.Shape"/> instance to wrap.</param> public unsafe NativeShapeWrapper(Shape shape) { _arrayGCHandle = GCHandle.Alloc(shape.Dimensions, GC...
C#
'state': 'WA' }, { '_id': '99156', 'city': 'NEWPORT', 'loc': [-117.150784, 48.169465], 'pop': 5881, 'state': 'WA' }, { '_id': '99157', 'city': 'NORTHPORT', 'loc': [-117.793052, 48.924663], 'pop': 462, 'state': 'WA' }, { '_id': '99158', 'city': 'OAKESDALE',...
Dart
rd indices */ LogP prob, bow; /* * Parse a line of the form * <prob> <w1> <w2> ... <wN> <c> [<hx_bg_location>] [<bow>] * * I.e., We can have zero or one <bow>s, We do not * have a hex bg location only when state == 0. Note, * that unlike the ARPA format, here the <bow> here is * associated wi...
C++
��曦者", [1939] = "腐皮蠻卒", [1942] = "腐皮蠻族", [1943] = "盛怒的腐皮豺狼人", [1946] = "Lillith Nefara", [1950] = "Rane Yorick", [1951] = "Quinn Yorick", [1952] = "高階執行官哈德瑞克", [1955] = "湖岸蠕行者", [1956] = "老邁的湖岸蠕行者", [1972] = "蒼白的格瑞姆森", [1988] = "Grell", [1992] = "Tarindrella", [2002] = "惡賴劣魔", [2005] = "兇惡劣魔...
Lua
ed/versions.dart' show runtimeVersion; import 'package:pub_dev/task/clock_control.dart'; import 'package:pub_dev/task/cloudcompute/cloudcompute.dart'; import 'package:pub_dev/task/global_lock.dart'; import 'package:pub_dev/task/models.dart'; import 'package:pub_semver/pub_semver.dart'; final _log = Logger('pub.task.sc...
Dart
less WebSocket в терминал * --shadowsocks-qr - Выводит QR-код Shadowsocks в терминал ## Как использовать? ### Выполните эти строки до запуска скриптов! ```bash apt-get update apt-get -y install curl ``` ### Используйте удаленный скрипт #### Строка для установки ```bash bash <(curl -s https://raw.githubusercontent.co...
Markdown
any, payload:any) { for (let [index, element] of payload.view.nodes.entries()) { if (element.name === payload.name) { element.x = payload.xPos; element.y = payload.yPos; } } }, undoView(state:any, payload:any) { var found = false; if (payload.view.his...
Typescript
ue, currentDocument.sticky_selection) AssertEquals(1, currentDocument.mp) AssertEquals(1, currentDocument.mw) AssertEquals(4, currentDocument.mo) -- This should *not* remove the selection. Cmd.MoveWhileSelected() AssertEquals(1, currentDocument.mp) -- Ensure that setting a mark at the beginning of a word works. Res...
Lua
/* asynchronous serial output for AVR MCUs * supports runtime baud rate setting * (c) Ralph Doncaster 2021 - MIT Licence */ /* needed for <avr/io.h> to give io constant addresses */ #define __SFR_OFFSET 0 #include <avr/io.h> #include "config.h" #define UART_DDR (UART_Port-1) .lcomm CyclesPerBit, 2 .global Cyc...
Assembly
quest.setActName("1"); request.setRemark("1"); EntPayRedpackResult redpackResult = null; try { redpackResult = this.payService.getEntPayService().sendEnterpriseRedpack(request); } catch (WxPayException e) { } log.info(redpackResult.toString()); } /** * 查询企业红包 * * @throws Exc...
Java
puSvt: (json['puSvt'] as List<dynamic>?)?.map((e) => (e as num).toInt()).toList() ?? const [], puCE: (json['puCE'] as List<dynamic>?)?.map((e) => (e as num).toInt()).toList() ?? const [], subSummons: (json['subSummons'] as List<dynamic>?) ?.map((e) => SubSummon.fromJson(Map<String, dynamic>.from(e a...
Dart
/* Broadcom NetXtreme-C/E network driver. * * Copyright (c) 2021 Broadcom Inc. * * 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. */ #ifndef BNXT_PTP_H #define BNXT_PTP_H #define BNXT_PT...
C
QueryName(IQueryable<TypeThing> core) => FilterOnName && !string.IsNullOrWhiteSpace(NameFilterSafe) ? core.Where(t => EF.Functions.Like(t.Name, $"%{NameFilterSafe}%")) : core; /// <summary> /// Created portion. /// </summary> /// <remarks> /// This uses t...
C#
spacing:0}.footer-middle{border-top:none}.footer-middle .container{position:relative;display:block}.footer-middle .container::before{content:'';position:absolute;top:-6.7rem;left:1rem;right:1rem;height:.1rem;background-color:#333}.footer-middle .row>div:not(:first-child){padding-left:6rem}.footer-bottom .container::bef...
CSS
-------------------------------*/ #include "Ap4IproAtom.h" #include "Ap4AtomFactory.h" #include "Ap4Utils.h" #include "Ap4SampleEntry.h" #include "Ap4SampleTable.h" #include "Ap4SampleDescription.h" /*---------------------------------------------------------------------- | AP4_IproAtom::Create +---------------------...
C++
(c._yTopPrime-e)*(c.height/(c._yTopPrime-c._yBottomPrime))}},elems:{FO:"m 322.53,80.19 0.9,0.8 0,0.3 -1,-0.7 z",UM:"m 26.03,206.59 0,0 -0.1,0 0.1,0 z",US:"m 100.93,117.39 0.2,0.1 -0.6,-0.2 0,-0.3 z m 0.2,-0.6 0.2,0.1 -0.3,0.2 -0.3,-0.1 z m -19,-15.8 0.2,0 0,0.4 -0.3,-0.4 z m -0.1,-0.7 0.3,0.3 -0.2,0.2 -0.2,-0.1 z m -0....
JavaScript
sWith(KEY_HEX_PCM)) { logger.debug("PCM"); dispatchKeyValue(KEY_DSP_MODE, RotelDsp.CAT4_NONE.getFeedback()); } else if (searchDsp && valueLowerCase.startsWith(KEY_HEX_MPEG)) { logger.debug("MPEG"); dispatchKeyValue(KEY_DSP_MODE, RotelDsp.CAT4_NONE.getFeedback()); ...
Java
0); Assert.Equal((float)2767295, val.F0.F1); Assert.Equal((nint)unchecked((nint)6016563774923595868), val.F1); Assert.Equal((int)1648562735, val.F2); Assert.Equal((ushort)378, val.F3); Assert.Equal((short)-20536, val.F4); Console.WriteLine("OK"); } [StructLayout(...
C#
(16384, 16384, 16384, 32, 32): (1, 4, 32, 32, 1, 1), (16384, 16384, 16384, 64, 64): (1, 2, 64, 32, 1, 2), (16384, 16384, 16384, 128, 128): (3, 1, 32, 64, 1, 4), (16384, 16384, 32768, 16, 16): (1, 4, 16, 64, 3, 1), (16384, 16384, 32768, 32, 32): (1, 2, 32, 32, 1, 1), (1638...
Python
esp),%xmm5 movaps %xmm5,nb312_vctot(%esp) xorps %xmm1,%xmm1 mulps nb312_tsc(%esp),%xmm3 mulps %xmm0,%xmm3 subps %xmm3,%xmm1 movaps %xmm1,%xmm0 movaps %xmm1,%xmm2 mulps nb312_dxH2O(%esp),%xmm0 mulps nb312_dyH2O(%esp),%xmm1 mulps nb312_dzH2O(%esp),...
Assembly
ERROR: type should be string, got " https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport java.io.FileOutputStream\n\nplugins {\n\t`cpp-library`\n\t`flatlaf-cpp-library`\n\t`flatlaf-jni-headers`\n}\n\nflatlafJniHeaders {\n\theaders = listOf(\n\t\t\"com_formdev_flatlaf_ui_FlatNativeLibrary.h\",\n\t\t\"com_formdev_flatlaf_ui_FlatNativeLinuxLibrary.h\"\n\t)\n}\n\nlibrary {\n\ttargetMachines = listOf(\n\t\tmachines.linux.x86_64,\n\t\tmachines.linux.architecture( \"aarch64\" ),\n\t)\n}\n\nvar javaHome = System.getProperty( \"java.home\" )\nif( javaHome.endsWith( \"jre\" ) && !file( \"${javaHome}/include\" ).exists() )\n\tjavaHome += \"/..\"\n\ntasks {\n\tregister( \"build-natives\" ) {\n\t\tgroup = \"build\"\n\t\tdescription = \"Builds natives\"\n\n\t\tif( org.gradle.internal.os.OperatingSystem.current().isLinux ) {\n\t\t\tval osArch = System.getProperty( \"os.arch\" )\n\t\t\tif( osArch == \"amd64\" ) {\n\t\t\t\tdependsOn( \"linkReleaseX86-64\" )\n\t\t\t\tif( file( \"/usr/bin/aarch64-linux-gnu-gcc\" ).exists() )\n\t\t\t\t\tdependsOn( \"linkCrossAarch64\" )\n\t\t\t}\n\t\t\tif( osArch == \"aarch64\" )\n\t\t\t\tdependsOn( \"linkReleaseAarch64\" )\n\t\t}\n\t}\n\n\twithType<CppCompile>().configureEach {\n\t\tonlyIf { name.contains( \"Release\" ) }\n\n\t\t// generate and copy needed JNI headers\n\t\tdependsOn( \"jni-headers\" )\n\n\t\tincludes.from(\n\t\t\t\"${javaHome}/include\",\n\t\t\t\"${javaHome}/include/linux\"\n\t\t)\n\n\t\tcompilerArgs.addAll( toolChain.map {\n\t\t\twhen( it ) {\n\t\t\t\tis Gcc, is Clang -> listOf()\n\t\t\t\telse -> emptyList()\n\t\t\t}\n\t\t} )\n\t}\n\n\twithType<LinkSharedLibrary>().configureEach {\n\t\tonlyIf { name.contains( \"Release\" ) }\n\n\t\tval nativesDir = project( \":flatlaf-core\" ).projectDir.resolve( \"src/main/resources/com/formdev/flatlaf/natives\" )\n\t\tval libraryName = if( name.contains( \"X86-64\" ) ) \"libflatlaf-linux-x86_64.so\" else \"libflatlaf-linux-arm64.so\"\n\t\tval jawt = \"jawt\"\n\t\tvar jawtPath = \"${javaHome}/lib\"\n\t\tif( JavaVersion.current() == JavaVersion.VERSION_1_8 )\n\t\t\tjawtPath += \"/amd64\"\n\n\t\tlinkerArgs.addAll( toolChain.map {\n\t\t\twhen( it ) {\n\t\t\t\tis Gcc, is Clang -> listOf( \"-L${jawtPath}\", \"-l${jawt}\" )\n\t\t\t\telse -> emptyList()\n\t\t\t}\n\t\t} )\n\n\t\tdoLast {\n\t\t\t// copy shared library to flatlaf-core resources\n\t\t\tcopy {\n\t\t\t\tfrom( linkedFile )\n\t\t\t\tinto( nativesDir )\n\t\t\t\trename( linkedFile.get().asFile.name, libraryName )\n\t\t\t}\n\n//\t\t\tdump( linkedFile.asFile.get(), true )\n\t\t}\n\t}\n\n\tif( org.gradle.internal.os.OperatingSystem.current().isLinux &&\n\t\tSystem.getProperty( \"os.arch\" ) == \"amd64\" &&\n\t\tfile( \"/usr/bin/aarch64-linux-gnu-gcc\" ).exists() )\n\t{\n\t\tregister<Exec>( \"compileCrossAarch64Cpp\" ) {\n\t\t\tval include = layout.projectDirectory.dir( \"src/main/headers\" )\n\t\t\tval src = layout.projectDirectory.dir( \"src/main/cpp\" )\n\t\t\tworkingDir = file( layout.buildDirectory.dir( \"obj/main/release/aarch64-cross\" ) )\n\n\t\t\tdoFirst {\n\t\t\t\tworkingDir.mkdirs()\n\t\t\t}\n\n\t\t\tcommandLine = listOf(\n\t\t\t\t\"aarch64-linux-gnu-gcc\",\n\t\t\t\t\"-c\",\n\t\t\t\t\"-fPIC\",\n\t\t\t\t\"-fvisibility=hidden\",\n\t\t\t\t\"-O3\",\n\t\t\t\t\"-I\", \"${javaHome}/include\",\n\t\t\t\t\"-I\", \"${javaHome}/include/linux\",\n\t\t\t\t\"-I\", \"$include\",\n\n\t\t\t\t\"$src/ApiVersion.cpp\",\n\t\t\t\t\"$src/X11WmUtils.cpp\",\n\t\t\t)\n\t\t}\n\n\t\tregister<Exec>( \"linkCrossAarch64\" ) {\n\t\t\tdependsOn("
Kotlin
using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Net.Http; using System.Threading; using System.Xml; using System.Xml.Linq; using System.Xml.Schema; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Hosting.Server.Features; using Mic...
C#
0have%20headers%20for%20each%20cell%20properly%20defined%20with%20'header'%20or%20'scope'%22%2C%22msgArgs%22%3A%5B%22%7B0%7D%22%2C%22%7B1%7D%22%2C%22%7B3%7D%22%2C%22%7B4%7D%22%5D%2C%22value%22%3A%5B%22VIOLATION%22%2C%22FAIL%22%5D%2C%22reasonId%22%3A%22Fail_1%22%7D">Complex table does not have headers for each cell prop...
HTML
case WatchOS: return true; } llvm_unreachable("bad kind"); } /// Does this runtime supports direct dispatch bool allowsDirectDispatch() const { switch (getKind()) { case FragileMacOSX: return false; case MacOSX: return true; case iOS: return true; case WatchOS: return true; ...
C
. 3347 -> 3346) // for (offset in -searchRange..searchRange) // { // if (target + offset < 0) continue // // val primes = (target - offset).getPrimeFactors() // // // New least "prime" number found! // if (primes.size > originalPrimes.size) // { // originalPrimes = pr...
Kotlin
Test Gear Cloth - Warlock 2", [17854] = "Level 65 Test Gear Leather - Druid 2", [17855] = "Level 65 Test Gear Leather - Rogue 2", [17856] = "Level 65 Test Gear Leather - Rogue 3", [17857] = "Level 65 Test Gear Mail - Hunter 2", [17858] = "Level 65 Test Gear Mail - Hunter 3", [17859] = "Level 65 Test Gear Mail - Shaman...
Lua
SKS_IMMEDIATELY(PLAYER.PLAYER_PED_ID()) TASK.TASK_START_SCENARIO_IN_PLACE(PLAYER.PLAYER_PED_ID(), data.scenario, -1, true) is_playing_scenario = true end) else script.run_in_fiber(function() TASK.CLEAR_PED_TASKS_IMME...
Lua
zi söylemek istemez.</p> </blockquote> <p>Ancak, grubun birkaç üyesinin çalışmalarını gördüğümüzde, hedefin yukarıdaki açıklamaya oldukça aykırı olduğunu açıkça görebiliyoruz. Bu üyeler PHP-FIG’in, grubun asıl adı olan <strong>kabul edilen bir “PHP standart grubu”</strong> olması için yorulmadan çalışırlar. Bunu PHP-FI...
HTML
urals.ageMonth, it.months, it.months) else -> resources.getQuantityString(R.plurals.ageDay, it.days, it.days) } } } /** The new ui just shows shortened id with just last 3 characters. */ private fun getTruncatedId(patientItem: PatientListViewModel.PatientItem): String { return patientItem.r...
Kotlin
o { duplicate.write(bytes, offset, length) } override fun read(bytes: ByteArray) = source.read(bytes).also { duplicate.write(bytes) } override fun reset() { source.reset() } override fun skip(length: Long) = source.skip(length) } // © Copyright 2017 - 2021 HP Devel...
Kotlin