content
stringlengths
2
6.21k
label
stringclasses
16 values
struct" href="struct.RecvError.html" title="struct std::sync::mpsc::RecvError">RecvError</a>) -&gt; <a class="primitive" href="../../primitive.bool.html">bool</a></h4><a href="#method.eq" class="anchor"></a><a class="srclink" href="../../../src/std/sync/mpsc/mod.rs.html#582" title="goto source code">[src]</a></div></su...
HTML
)).isEqualTo(listOf("")) assertThat(url.queryParameterValues("bar")).isEqualTo(listOf("")) assertThat(url.queryParameterValues("baz")).isEqualTo(listOf("")) } @Test fun queryParametersWithRepeatedName() { val url = parse("http://host/?foo[]=1&foo[]=2&foo[]=3") assertThat(url.querySize).isEqualTo(...
Kotlin
Value == null) { keysWithNullValue.Add(entry.Key); } } for (int i = 0; i < keysWithNullValue.Count; i++) { var key = keysWithNullValue[i]; original.Remove(key); ...
C#
tDate: start date of the search period (ISO 8601 format, with time in UTC, `YYYY-MM-DDTHH:MM:SSZ`). The date is inclusive. StartDate *time.Time `json:"-"` // EndDate: end date of the search period (ISO 8601 format, with time in UTC, `YYYY-MM-DDTHH:MM:SSZ`). The date is inclusive. Defaults to today's date. EndDate *...
Go
. // Add components to the arena, such as a MeshRenderer and MeshFilter MeshRenderer renderer = arena.AddComponent<MeshRenderer>(); MeshFilter filter = arena.AddComponent<MeshFilter>(); // Set the mesh of the filter filter.mesh = CreateMesh(); // Set the material of the r...
C#
>Esc</strong>.</p> <p>Якщо поточний фокус знаходиться на верхньому рівні певного розділу інтерфейсу користувача, натискання клавіші <strong>Esc</strong> також виконує вихід з навігації за допомогою клавіатури повністю.</p> <h1>Виконання елементу меню або кнопки панелі інструментів</h1> <p>Коли потрібний елемент ме...
HTML
zoneID] = zoneIDs.GRIZZLY_HILLS, }, [26635] = { [npcKeys.spawns] = {[zoneIDs.DRAKTHARON_KEEP_LOWER_LEVEL]={{-1,-1}},[zoneIDs.DRAKTHARON_KEEP_UPPER_LEVEL]={{-1,-1}},[4196]={{-1,-1}}}, }, [26636] = { [npcKeys.spawns] = {[zoneIDs.DRAKTHARON_KEEP_LOWER_LEVEL]={{-1,-1}...
Lua
bd", // 𫂽 0x2b0be: "w\x06\U0002b0be", // 𫂾 0x2b0bf: "w\x06\U0002b0bf", // 𫂿 0x2b0c0: "w\x06\U0002b0c0", // 𫃀 0x2b0c1: "w\a\U0002b0c1", // 𫃁 0x2b0c2: "w\b\U0002b0c2", // 𫃂 0x2b0c3: "w\b\U0002b0c3", // 𫃃 0x2b0c4: "w\b\U0002b0c4", // 𫃄 0x2b0c5: "w\b\U0002b0c5", // 𫃅 0x2b0c6: "w\t\U0002b0c6", // 𫃆 0x2b0...
Go
qnQjFp61Z4CyeuowgbMG9nQfdXw4i/FBt3e/OAQAOQuJfmBCpYxTrcn+wu5NidEhpM2n7eSsk/gfbO112jNG/yZH9ydyalz3xp+Lvb8773aY3L51L/ADAsSTxL0JIjcMz4+YYJ7/S8/Xnbf8aUo4cR+H9/mmilsT/FBOR+AGApSTxL8rDnY2Y9vY2CgGunNKG3xP6S5r0mdqHgB6iZNezy6bNgKFz09jn8pluzYBdy85+ib/PneGkK7VYc/i1oRkt1LadgnK8pG1sKhlGCGL/2NiXMV2cfsC5NYd6up6zqbqJ2ntpqObuYZDhXuHa8dz...
HTML
ype</a> = <a class="enum" href="../../openssl_sys/openssl/handwritten/asn1/enum.stack_st_ASN1_OBJECT.html" title="enum openssl_sys::openssl::handwritten::asn1::stack_st_ASN1_OBJECT">stack_st_ASN1_OBJECT</a></h4></section></summary><div class='docblock'>The C stack type for this element. <a href="../stack/trait.Stackabl...
HTML
""" Classifies: CHEBI:35692 dicarboxylic acid """ from rdkit import Chem def is_dicarboxylic_acid(smiles: str): """ Determines if a molecule is a dicarboxylic acid based on its SMILES string. A dicarboxylic acid contains exactly two carboxylic acid (COOH) groups. Args: smiles (str): SMILES str...
Python
using System.Collections.Generic; using System.Threading.Tasks; using GoNorth.Data.Exporting; namespace GoNorth.Services.Export.Placeholder.LegacyRenderingEngine { /// <summary> /// Interface for Export Template Topic Placeholder Resolver /// </summary> public interface IExportTemplateTopicPlaceholderR...
C#
">this post </a> to read Tom Schaller's thoughtful coverage of John Edwards.<br /><br />With Edwards' nomination, expect the national hysteria over "tort reform" to reach a fever pitch. <a href="http://slacktivist.typepad.com/slacktivist/2004/07/atticus_finch.html">Slacktivist explains</a> why the Republican strategy o...
HTML
0400"}, "name": "current", "visible": true, "x": ["Normal_Weight", "Overweight_Level_I", "Overweight_Level_II", "Obesity_Type_I", "Insufficient_Weight", "Obesity_Type_II", "Obesity_Type_III"], "y": [158, 43, 41, 31, 18, 8, 1], "type": "bar", "xaxis": "x", "yaxis": "y"}, {"marker": {"color": "#ed0400"}, "name": "current...
HTML
napshot && m_axisDef.MaxFontSize != null) { m_maxFontSize = new ReportSizeProperty(m_axisDef.MaxFontSize); } return m_maxFontSize; } } public ReportBoolProperty OffsetLabels { get { if (m_offsetLabels == null && !m_chart.IsOldSnapshot && m_axisDef.OffsetLabels != null) { m_...
C#
out_tmp) iv = out_tmp } } else { for i := 0; i < len(inData)/16; i++ { in_tmp := inData[i*16 : i*16+16] out_tmp := make([]byte, 16) c.Decrypt(out_tmp, in_tmp) out_tmp = xor(out_tmp, iv) copy(out[i*16:i*16+16], out_tmp) iv = in_tmp } out, _ = pkcs7UnPadding(out) } return out, nil } /* *...
Go
tion(evt) { progContainer.editableList('addItem', {}); evt.preventDefault(); }); btnClean.click(function(evt) { cleanTable(); evt.preventDefault(); }); btnExport.click(exportCSV); btnImport.click(function(evt) { $('#node-config-ethip-endpoint-var-import').click(); }); $('#node-c...
HTML
equation void ProjectorAM1Order::susceptibility( ElectroMagn *EMfields, Particles &particles, double species_mass, SmileiMPI *smpi, int istart, int iend, int ithread, int /*icell*/, int /*ipart_ref*/ ) { // ------------------------------------- // Variable declaration & initialization // ----------------...
C++
/* Windows 98 Display Driver Interface */ #define VIDEOPARAMETERS 3077 typedef struct _TVGUID { unsigned long Data1; unsigned short Data2; unsigned short Data3; unsigned char Data4[8]; }; typedef struct _VIDEOPARAMETERS { struct _TVGUID Guid; DWORD dwOffset; DWORD dwCommand; DWORD dwFlags; ...
C
accompanied this code. * * 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 * version 2 for more details (a copy is included in the LICENSE file th...
Java
rl, dir)?; if let Some(commit_hash) = commit_hash { let commit_hash = commit_hash.as_str(); let oid = git2::Oid::from_str(commit_hash)?; let commit = repo.find_commit(oid)?; repo.branch(commit_hash, &commit, false)?; let obj = repo.revparse_single(&("refs/heads/".to_owned()...
Rust
project[0], output[output.length - 2] ]) }); }) return [ processObservable, { title: project[0], task: () => processObservable.pipe(first()).toPromise() } ] }); let updates = new Observable(); const listrTasks = processes.map(p => { con...
Typescript
;&nbsp;&nbsp;b: <a class="struct" href="struct.Reduced.html" title="struct halo2_ecc::fields::fp::Reduced">Reduced</a>&lt;Pt, Fp&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;sel: <a class="struct" href="../../../halo2_base/struct.AssignedValue.html" title="struct halo2_base::AssignedValue">AssignedValue</a>&lt;F&gt;<br>) -&gt; <a c...
HTML
, IBM Corp", "(c) GE Intelligent Platforms Embedded Systems, Inc", "Copyright 1991, 1992 Free Software Foundation, Inc", "Copyright (c) 1994-2016 Free Software Foundation, Inc", "Copyright (c) 2006 Free Software Foundation, Inc", "(c) 2006 Michael Ellerman, IBM Corp", "Copyright IBM Corp. 2003, 2008", "Copyright IBM Co...
HTML
l2*xl1)+z1; //刀补进行,画一条线 Line* newElem1=new Line; newElem1->setStart(dynamic_cast<Shape*>(compensationElemVector.back())->End()); //起点是上条线的终点,compensationElemVector.back()指上一条线 newElem1->setEnd(QPointF(xs1,zs1)); compensationElemVector.push_back(newElem1); } //缩短型_线线_刀补建立 void Compensation::Short_...
C++
_base(instr) + nir_src_as_uint(*offset_nir_src) + component_from_intrinsic(instr); unsigned urb_global_offset = offset_in_dwords / 4; adjust_handle_and_offset(bld, urb_handle, urb_global_offset); const unsigned comp_offset = offset_in_...
C++
ctions-for-C_002b_002b" rel="prev" title="Functions for C++"> <style type="text/css"> <!-- a.summary-letter {text-decoration: none} blockquote.smallquotation {font-size: smaller} div.display {margin-left: 3.2em} div.example {margin-left: 3.2em} div.indentedblock {margin-left: 3.2em} div.lisp {margin-left: 3.2em} div.sm...
HTML
CK-NEXT: 1 2 0.50 zip2 p0.b, p0.b, p0.b # CHECK-NEXT: 1 2 0.50 zip2 p0.d, p0.d, p0.d # CHECK-NEXT: 1 2 0.50 zip2 p0.h, p0.h, p0.h # CHECK-NEXT: 1 2 0.50 zip2 p0.s, p0.s, p0.s # CHECK-NEXT:...
Assembly
/////////////////////////////////////////////////////////////////////////////// // Name: wx/sstream.h // Purpose: string-based streams // Author: Vadim Zeitlin // Modified by: // Created: 2004-09-19 // Copyright: (c) 2004 Vadim Zeitlin <vadim@wxwidgets.org> // Licence: wxWindows licence //////...
C
:specification:ubl:schema:xsd:CoreComponentParameters-1.0" xmlns="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-1.0" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-1.0" xmlns:chc="urn:oasis:names:specification:ubl:schema:xsd:ChipCode-1.0" xmlns:chn="urn:oasis:name...
Java
selectblock_y(11) selectblock_y(12) selectblock_y(13) selectblock_y(14) selectblock_y(15) selectblock_y(16) // Store it to "tabent" with the y coordinate optionally negated. // This is done carefully to give coordinates < p_384 even in // the degenerate case y = 0 (when z = 0 ...
Assembly
E_SIZE, IMAGE_SIZE), Image.LANCZOS) image = np.array(image) if is_cl_tagger: image = image.transpose(2, 0, 1) # HWC -> CHW image = image.astype(np.float32) / 255.0 # Apply normalization with mean=0.5, std=0.5 mean = np.array([0.5, 0.5, 0.5], dtype=np.float32).reshape(3,...
Python
type="text" class="topcoat-text-input" placeholder="text" value="fail" pattern="not-fail"> tags: - desktop - mobile - text - input */ .topcoat-text-input, .topcoat-text-input--large { line-height: 1.313rem; font-size: 12px; letter-spacing: 0; padding: 0 0.563rem; border: 1px solid #9daca9;...
CSS
prepare_f t0 getRegS_f t1, REG_INSTR, t0 uxth t2, REG_INSTR eors t1, t2 setRegT_f t2, REG_INSTR, t1, t0 endCyNoBra REG_INSTR instr_001111_lui: lsls t1, REG_INSTR, #16 setRegT t2, REG_INSTR, t1 endCyNoBra REG_INSTR condbr_likely_not_taken_3: endCySkpNxt REG_INSTR instr_010100_beql: prepare_f t0 getRegS...
Assembly
:algorithms::compose::matchers::{MatchType, Matcher}; use crate::semirings::{DivideType, Semiring, WeaklyDivisibleSemiring, WeightQuantize}; use crate::{Arc, KDELTA}; #[derive(Debug, Clone)] pub struct PushWeightsComposeFilter<W: Semiring, CF: LookAheadComposeFilterTrait<W>, SMT> where CF::M1: LookaheadMatcher<W>,...
Rust
.Size = new System.Drawing.Size(24, 24); this.chkStunCM22.TabIndex = 47; this.chkStunCM22.Tag = "22"; this.chkStunCM22.Text = " "; this.chkStunCM22.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this.chkStunCM22.UseVisualStyleBackColor = true; ...
C#
list of packages",details:"\n This command will add the selectors matching the specified patterns to the list of packages that must be unplugged when installed.\n\n A package being unplugged means that instead of being referenced directly through its archive, it will be unpacked at install time in the direct...
JavaScript
= "" for (processedLine in lines) { when { processedLine.startsWith("#EXTM3U") -> { headers.putAll(parseAttributes(processedLine.substring(7).trim())) } processedLine.startsWith("#EXTINF:") -> { val (duration, rest) = processedLine.substri...
Kotlin
wxyz", "start_at": "2014-06-16T19:21:13Z", "end_at": null, "public_syllabus": false, "storage_quota_mb": 500, "term": { "end_at": null, "id": 3142, "name": "Default Term", "start_at": null, "workflow_state": "a...
Kotlin
import discord from discord.ext import commands import settings logger = settings.logging.getLogger(__name__) class WelcomeBot(commands.Cog): new_member_role_name = "New Member" rules_message_id = 1038736170680594443 def __init__(self, bot): self.bot = bot @commands.Cog.listener() ...
Python
Concerning the first, <i>I Corinthians</i> 11 [11:7] <i>A man</i>, that is, the mind, <i>should not cover his head: because it is the glory and image of God.</i> Concerning the second, <i>2 Corinthians</i> 1 [1:12] <i>Our honor is this, the testimony of our conscience</i>. For the devil drags down the honor of man into...
HTML
asterXPrv( "kprv5y2qurMHCsXYrNfU3GCihuwG3vMqFji7PZXajMEqyBkNh9UZUJgoHYBLTKu1eM4MvUtomcXPQ3Sw9HZ5ebbM4byoUciHo1zrPJBQfqpLorQ", false, 0n ); console.log("xpub", xpub) // Generates the first 10 Receive Public keys and their addresses let compressedPublicKeys = await xpub.receivePu...
JavaScript
: 0.6em; padding-bottom: 0.8em; padding-left: 0.6em; } .md\:prose-2xl tbody td:first-child { padding-left: 0; } .md\:prose-2xl tbody td:last-child { padding-right: 0; } .md\:prose-2xl > :first-child { margin-top: 0; } .md\:prose-2xl > :last-child { margin-bottom: 0; } .m...
CSS
E+PHASE_BATTLE) e1:SetCountLimit(1) e1:SetTarget(c51254277.rmtg) e1:SetOperation(c51254277.rmop) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_BATTLE) e:GetHandler():RegisterEffect(e1) end function c51254277.rmtg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end Duel.SetOperationInfo(0,CATEGO...
Lua
te" role="note"><span class="marker">Note:</span> Authors should also be aware that synthesized approaches may not be suitable for scripts like Cyrillic, where italic forms are very different in shape. It is always better to use an actual italic font rather than rely on a synthetic version.</p> <p>Many scripts lack...
HTML
<p><strong>Respect the Hustle</strong>: He shows respect for anyone who works hard, regardless of their field or method, as long as it&rsquo;s ethical within his context.</p> </li> <li> <p><strong>Protect Your Brand</strong>: Dolph discusses the significance of guarding your reputation or brand, which in his case incl...
HTML
# Python import datetime as dt from flask_wtf import FlaskForm from wtforms import ( StringField, SelectField, TimeField, SubmitField ) from wtforms.validators import DataRequired from models import DogOwner WEEKDAYS = [(i, day) for i, day in enumerate( ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"] )...
Python
px}}.change-form .vForeignKeyRawIdAdminField+label,.change-form .vManyToManyRawIdAdminField+label{width:calc(100% - 110px)}.change-form .input-group{display:table}.change-form .input-group>div,.change-form .input-group input,.change-form .suffix{display:table-cell}.change-form .suffix{padding-left:10px;width:1%}.change...
CSS
------------------------------------ * OPTM_WMAX - {default=+1./80} upper limit on dual * mesh weights relative to cell radius. -------------------------------------------------------- */ real_t _optm_wmax ; /* ------------------------------------------------------...
C
ort.zw).r;\n#endif\n@end\n\n\n\n\n@export ecgl.common.diffuseLayer.header\n\n#if (LAYER_DIFFUSEMAP_COUNT > 0)\nuniform float layerDiffuseIntensity[LAYER_DIFFUSEMAP_COUNT];\nuniform sampler2D layerDiffuseMap[LAYER_DIFFUSEMAP_COUNT];\n#endif\n\n@end\n\n@export ecgl.common.emissiveLayer.header\n\n#if (LAYER_EMISSIVEMAP_CO...
JavaScript
*/ finalize(): void /** * [on description] * * @return this.engine */ on(): engine; /** * [pipe description] * * @param {String} destination * @param {Object} options * @return this.engine ...
Typescript
with the Ids field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SecretSvcRemoveSecretsRequest) GetIdsOk() ([]string, bool) { if o == nil || IsNil(o.Ids) { return nil, false } return o.Ids, true } // HasIds returns a boolean if a field has been set. func (o *SecretSvcRe...
Go
let be of Pr)if(!Tt.circle[be]){Tt.circle[be]=!0;let Re=3*be,Be=this.circleKeys[be];if(this._circleAndRectCollide(ve[Re],ve[Re+1],ve[Re+2],w,B,Q,ee)&&(!ot||ot(Be))&&(!Kt||!Rr(Jt,Be.overlapMode))){let tt=ve[Re],We=ve[Re+1],it=ve[Re+2];if(qe.push({key:Be,x1:tt-it,y1:We-it,x2:tt+it,y2:We+it}),Kt)return!0}}}return!1}_query...
HTML
.DT_MIPS_FLAGS))}, "DT_MIPS_GOTSYM": {reflect.TypeOf(q.DT_MIPS_GOTSYM), constant.MakeInt64(int64(q.DT_MIPS_GOTSYM))}, "DT_MIPS_GP_VALUE": {reflect.TypeOf(q.DT_MIPS_GP_VALUE), constant.MakeInt64(int64(q.DT_MIPS_GP_VALUE))}, "DT_MIPS_HIDDEN_GOTIDX": {reflect.Typ...
Go
3,.69) infinite paused,feature-shimmer 2.1s linear infinite paused;clip-path:path("M29.6119 3.50376C27.9701 2.75188 25.1343 2 22 2C18.8657 2 16.0713 2.85149 14.3881 3.50376C12.4478 4.25564 9.76119 5.90977 7.97015 7.71429C6.1791 9.5188 4.38806 12.0752 3.49254 14.4812C2.73084 16.5277 2 19.7444 2 22.1504C2 24.1053 2.44776...
CSS
36.7-43.1 32-87.6-27.3-21.4-43.6-48.7-43.6-78.5 0-68.4 86.2-123.9 192.5-123.9S420.8 188 420.8 256.4c0 68.3-86.2 123.8-192.5 123.8zm25.6-123.9c0 14.2-11.5 25.8-25.6 25.8-14.1 0-25.6-11.5-25.6-25.8 0-14.2 11.5-25.8 25.6-25.8 14.1 0 25.6 11.6 25.6 25.8zm88.9 0c0 14.2-11.4 25.8-25.6 25.8-14.1 0-25.6-11.5-25.6-25.8 0-14.2 ...
JavaScript
html.js is part of Aloha Editor project http://aloha-editor.org * * Aloha Editor is a WYSIWYG HTML5 inline editing library and editor. * Copyright (c) 2010-2013 Gentics Software GmbH, Vienna, Austria. * Contributors http://aloha-editor.org/contribution.php * * Aloha Editor is free software; you can redistribute ...
JavaScript
"Invalid id", "status": false}); } return } if (name && typeof name === 'string') { try { const alpha = await Alpha.findOne({name}); res.status(200).json({data: alpha, "status": true}); } catch (e) { console.log(e); res.status(400...
Typescript
/* must have multiple .vas */ if (read_u32le(0x00,sf) + 0x800 >= file_size) goto fail; total_subsongs = 0; if (target_subsong == 0) target_subsong = 1; while (offset < file_size) { uint32_t size = read_u32le(offset,sf) + 0x800; /* some file...
C
Error { NewSession, NoActivity, } pub trait Device { fn read(&mut self, buf: &mut [u8]) -> Result<State, Error>; fn send(&mut self,buf: &[u8]) -> Result<(), Error>; fn frame_size(&self) -> usize; // { 128 } } }<filename>examples/connect_sample.rs<gh_stars...
Rust
9c6b, U+9c6d-9c6e, U+9c70, U+9c72, U+9c75-9c78, U+9c7a-9c7c, U+9ce6-9ce7, U+9ceb-9cec, U+9cf0, U+9cf2, U+9cf6-9cf7, U+9cf9, U+9d02-9d03, U+9d06-9d09, U+9d0b, U+9d0e, U+9d11-9d12, U+9d15, U+9d17-9d18, U+9d1b-9d1f, U+9d23, U+9d26, U+9d2a-9d2c, U+9d2f-9d30, U+9d32-9d34, U+9d3a, U+9d3c-9d3f, U+9d41-9d48, U+9d4a, U+9d50-9d5...
HTML
// Tencent is pleased to support the open source community by making ncnn available. // // Copyright (C) 2020 THL A29 Limited, a Tencent company. All rights reserved. // // Licensed under the BSD 3-Clause License (the "License"); you may not use this file except // in compliance with the License. You may obtain a copy ...
C
out.EndArray(); } if(ai.mNumScalingKeys) { out.Key("scalingkeys"); out.StartArray(); for(unsigned int n = 0; n < ai.mNumScalingKeys; ++n) { const aiVectorKey& scl = ai.mScalingKeys[n]; out.StartArray(true); out.Element(scl.mTime); Write(out,scl.mValue); out.EndArray(); } out.EndArray(); ...
C++
�理国家、公社和社员个人三者之间的关系呢?毛主席在“关于正确处理人民内部矛盾的问题”中指示我们:“在分配问题上,我们必须兼顾国家利益,集体利益和个人利益。对于国家的税收、合作社的积累、农民的个人收入这三方面的关系,必须处理适当,经常注意调节其中的矛盾。”这就是说:在处理人民公社积累与消费的比例时,必须是在生产发展的基础上,既要保证不断增加积累,不断扩大社会主义再生产,又要保证公社社员消费基金逐年有所增加,社员的生活水平逐年有所改善。毛主席又说:“在苦战三年当中,积累不可过多,必须使农民越干越有味道,越干越有劲。”(王任重:“毛主席在湖北”)否则,扩大积累就将失去意义。 </p> <p> 表三、东风公社三年来积累和消费的...
HTML
=None, hl=None, hq=None, imgColorType=None, imgDominantColor=None, imgSize=None, imgType=None, linkSite=None, lowRange=None, lr=None, num=None, orTerms=None, q=None, relatedSite=None, rights=None, safe=None, searchType=None, siteSearch=None, siteSearchFilter=None, snippetLength=None, sort=None, start=None, x__xgafv=Non...
HTML
http://www.gnu.org/licenses/. // ///////////////////////////////////////////////////////////////////////////// package org.projectforge.framework.persistence.history import org.junit.jupiter.api.Test import org.projectforge.business.fibu.RechnungDO import org.projectforge.business.fibu.RechnungDao import org.project...
Kotlin
Paint.setShadowLayer(5.5f,6.0f,6.0f,0x80000000); if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) { setLayerType(LAYER_TYPE_SOFTWARE, mPaint); } // 生成圆形Bitmap过程. int radius = Math.min(mWidth, mHeight) / 2; // 先绘制圆形 mTargetCanvas.drawCircle(mWidth / ...
Java
# Generate a jsonl where each line is a sample combination of a battle between two subjects import json import os import string # Use os.path.join to form the path CURRENT_DIR = os.path.dirname(__file__) REGISTRY_PATH = os.path.join(CURRENT_DIR, "../evals/registry") DATA_DIR = os.path.join(REGISTRY_PATH, "data/test_m...
Python
44],[]]},"天問一號":{"Tian1 wen4 Yi1 hao4":[[28545],[]]},"天國":{"tian1 guo2":[[28546],[]]},"天地":{"tian1 di4":[[28547],[]]},"天地懸隔":{"tian1 di4 xuan2 ge2":[[28548],[]]},"天地會":{"Tian1 di4 hui4":[[28549],[]]},"天地玄黃":{"tian1 di4 xuan2 huang2":[[28550],[]]},"天地良心":{"tian1 di4 liang2 xin1":[[28551],[]]},"天坑":{"tian1 keng1":[[28552...
JavaScript
// Filter the 2D kernel Dual2<float> w_i_t_s_f; float a_i_t_s_f; Vec2 omega_i_t_s_f; Dual2<float> phi_i_t_s_f; filter_gabor_kernel_2d(gp.filter, w_i_t_s, gp.a, omega_i_t_s, phi_i_t_s, w...
C++
var bytesRead: Int var totalBytesRead = 0L var lastProgress = 0 while (inputStream.read(buffer).also { bytesRead = it } != -1) { outputStream.write(buffer, 0, bytesRead) totalBytesRead += byt...
Kotlin
) { documentablesTransformationStage = { module -> val functions = module.packages.flatMap { it.classlikes }.flatMap { it.functions } assertEquals(1, functions.size) assertEquals("sample", functions[0].name) } } } @Test fun `...
Kotlin
/** * GsApp.h * * Created on: 01.05.2009 * Author: gerstrong */ #ifndef GSAPP_H_ #define GSAPP_H_ #include <base/GsEvent.h> #include <base/GsEngine.h> #include <base/Singleton.h> #include <memory> #define gApp GsApp::get() // Forward declaration class GsApp; // App State has an event sink that is regi...
C
07Bashans\x09Ba’unah\x04Abib\x05Misra\x04Nas" + "i\x0bMäskäräm\x06Teqemt\x05Hedar\x06Tahsas\x06T’er\x08Yäkatit\x08Mägabit" + "\x07Miyazya\x06Genbot\x05Säne\x05Hamle\x07Nähase\x08Pagumän\x0aJannewari" + "s\x0aFebrewaris\x05Maart\x05April\x05Maaie\x04Juny\x04July\x08Augustus" + "\x09Septimber\x07Oktober\x08Novimber\x...
Go
sult, 1, Opcode.INVOKEVIRTUAL, Opcode.IFEQ, Opcode.ICONST_1, Opcode.ISTORE, Opcode.GOTO, Opcode.ILOAD); checkSequence(result, 1, Opcode.IFEQ, Opcode.ICONST_1, Opcode.ISTORE, Opcode.GOTO, Opcode.ILOAD, Opcode.TABLESWITCH); checkSequence(result, 1, Opcode.ICONST_1, Opcode.ISTORE, Opcode.GOTO, Opcode.ILOAD, Opcode.TAB...
Java
/* * Copyright (C) 2011 Google Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditio...
C
date. Must be between 1 and 9999, or 0 for no year. */ val year: Int? = null, /** 1-based index for month. Must be from 1 to 12, or 0 to specify a year without a month. */ val month: Int? = null, /** * Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify ...
Kotlin
ContainerInfo struct { Name string `json:"name"` Image string `json:"image"` } type EventInfo struct { Name string `json:"name"` Type string `json:"type"` Reason string `json:"reason"` Message string `json:"message"` InvolvedObj string `json:"involvedObj"` } // rootCmd is the base comm...
Go
ind::Symlink { target } => { make_symlink(&path, target); } } return proj; #[cfg(unix)] fn make_executable(p: &Path) { use std::os::unix::prelude::*; let mut perms = fs::metadata(p).unwrap().permissions(); let mode = perms.mode(); perms.set_mode(mode...
Rust
return obj.records[y][x].innerHTML; } /** * Get labelfrom coords * * @param object cell * @return string value */ obj.getLabelFromCoords = function(x, y) { return obj.records[y][x].innerHTML; } /** * Get the value from a cell * * @param object cell * @return string value */ ...
JavaScript
.Add(time.Second*68)) So(insights[1].Content(), ShouldResemble, &Content{ ScanInterval: timeutil.TimeInterval{From: baseTime.Add(time.Second * 48), To: baseTime.Add(time.Second * 68)}, Address: net.ParseIP("11.22.33.44"), RBLs: []localrbl.ContentElement{{RBL: "some.rbl.checker.co...
Go
2094", "IdConcepto": "ar_pros_EvolutionOfTheAssetsOfTheTrust", "IdContextoPlantilla": "cxt", "Hechos": [], "IdUnidadPlantilla": null, "ValorNumerador": null, "ValorDenominador": null, "Precision": null, "Decimales": null, "Valor": "#valorDefaultNoNumerico" }, "ar_pros_Performance...
Typescript
es/waterlily.less"; // @import "themes/emerald.less"; // @import "themes/blackberry.less"; /* Font Icons (minified) */ @import "plugins/font_awesome.less"; @import "plugins/glyphicons.less"; /* Plugins */ @import "plugins/full_calendar.less"; @import "plugins/dropzone.less"; @import "plugins/chosen.less"; @import "pl...
CSS
on-tag-dot-color: var(--message-reaction-tag-dot-color); } .night .chat { --message-time-color: var(--secondary-text-color); --message-checkbox-color: var(--primary-color); --message-checkbox-border-color: #fff; --message-status-color: var(--secondary-color); --message-secondary-color: var(--secondary-color)...
CSS
* The out-of-domain query ignored case. * * Google skips the summary if there are no high-relevance search results. * For example, the data store contains facts about company A but the * user query is asking questions about company B. * </pre> * * <code>OUT_OF_DO...
Java
Float()); } public override void Init() { On = false; } public override void Remove(byte playerId) { ParaUsedButtonCount.Remove(playerId); } public override void ApplyGameOptions(IGameOptions opt, byte playerId) { if (UsePets.GetBool()) return; AUR...
C#
local combat = Combat() combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_EARTHDAMAGE) combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_STONES) combat:setArea(createCombatArea(AREA_CIRCLE6X6)) function spellCallback(param) local tile = Tile(Position(param.pos)) if tile then if tile:getTopCreature() then tile:getTo...
Lua
it-tag-actions { margin-top: 20px; } /* Comments */ .comment-php .wp-editor-area { height: 200px; } .comment-ays th, .comment-ays td { padding: 10px 15px; } .comment-ays .comment-content ul { list-style: initial; margin-left: 2em; } .comment-ays .comment-content a[href]:after { content: "(" attr( href ) ")";...
CSS
constructor.collection; Model.registerMethods(constructor, [ function save(model) { defaultSave.call(this, collection, model); }, function remove(model) { defaultRemove.call(this, collection, model); } ]); } public static registerMethods(constructor: any, methodArr...
Typescript
t be closest to calling Point. */ double lx = (double)(line.b(0) - line.a(0)); double ly = (double)(line.b(1) - line.a(1)); double theta = ( (double)(line.b(0) - (*this)(0))*lx + (double)(line.b(1)- (*this)(1))*ly ) / ( sqr<double>(lx) + sqr<double>(ly) ); if (0.0 <= theta && theta <...
C++
可以自动更换代理服务器 - 再也不用担心服务器抽风了。winXray 也提供一键安装 XRay(V2Ray、Shadowsocks、Trojan) 服务器工具。 之前我用过很多代理客户端,经常用一会就挂掉了,有些测试很久才找到下一个可用的服务器,有时怎么切换都不行,一定要把整个软件退出重启才能恢复。而且在WIN10上都有相同的BUG:PAC代理用一段时间就会卡死( winXray已经通过自行实现PAC服务器解决了这个问题 ),其实这些软件里提供的很多功能我并不需要,我只想愉快地用下 google 找点技术资料提升工作效率。但是在网上找了很久都没找到适合的软件,于是决定自己动手写一个,还好用 aardio 写软件的速度很快 -...
Markdown
ernal":true,"refSections":[{"refs":[{"id":"ref-for-concept-request-body"},{"id":"ref-for-concept-request-body\u2460"},{"id":"ref-for-concept-request-body\u2461"},{"id":"ref-for-concept-request-body\u2462"}],"title":"3.5.6. The send() method"}],"url":"https://fetch.spec.whatwg.org/#concept-request-body"}, "902380f7": {"...
HTML
-smoothing: grayscale; } .fa-icon-rotate(@degrees, @rotation) { -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=@{rotation})"; -webkit-transform: rotate(@degrees); -ms-transform: rotate(@degrees); transform: rotate(@degrees); } .fa-icon-flip(@horiz, @vert, @rotation) { -ms-fi...
CSS
; white-space: pre-wrap;">log</span></a><span style="background-color: white; color: #666666; font-family: &quot;arial&quot;; vertical-align: baseline; white-space: pre-wrap;">. Interested in </span><a href="http://www.chromium.org/getting-involved/dev-channel" style="text-decoration: none;"><span style="background-col...
HTML
scopeId","data-v-b9d7cee3"]]);export{Rr as G,_o as L,Ra as N,Ca as T,xr as _,zr as a,Ur as b,Mr as c,Dr as d,Pr as e,Lr as f,Or as g,Fr as h,Nr as i,jr as j,Br as k,ee as l,Ir as m,qr as n,$r as o,Hr as p,Y as q,_t as r,fi as s,Ge as t,di as u,ci as v,ui as w,wn as x}; import{conf as t,language as e}from"./typescript-g...
JavaScript
err := d.Remove("1"); err != nil { t.Fatal(err) } paths := []string{ "mnt", "diff", "layers", } for _, p := range paths { if _, err := os.Stat(path.Join(tmp, p, "1")); err == nil { t.Fatalf("Error should not be nil because dirs with id 1 should be deleted: %s", p) } if _, err := os.Stat(path.Joi...
Go
r LastLessThan(ReadOnlySpan<byte> key) { // #define FDB_KEYSEL_LAST_LESS_THAN(k, l) k, l, 0, 0 return new(key, false, 0); } /// <summary>Creates a key selector that will select the last key that is less than or equal to <paramref name="key"/></summary> [Pure, MethodImpl(MethodImplOptions.AggressiveInlini...
C#
from rest_framework import viewsets, permissions from .models import MyCollection from .serializer import MyCollectionSerializer class MyCollectionViewSet(viewsets.ModelViewSet): queryset = MyCollection.objects.all() serializer_class = MyCollectionSerializer permission_classes = [permissions.IsAuthenticate...
Python
JKoZIhvcNAQELBQADggEBAGBnKJRvDkhj6zHd6mcY 1Yl9PMWLSn/pvtsrF9+wX3N3KjITOYFnQoQj8kVnNeyIv/iPsGEMNKSuIEyExtv4 NeF22d+mQrvHRAiGfzZ0JFrabA0UWTW98kndth/Jsw1HKj2ZL7tcu7XUIOGZX1NG Fdtom/DzMNU+MeKNhJ7jitralj41E6Vf8PlwUHBHQRFXGU7Aj64GxJUTFy8bJZ91 8rGOmaFvE7FBcf6IKshPECBV1/MUReXgRPTqh5Uykw7+U0b6LJ3/iyK5S9kJRaTe pLiaWN0bfVKfjllDiI...
Go
', INT32_TAG = '[object Int32Array]', UINT8_TAG = '[object Uint8Array]', UINT8CLAMPED_TAG = '[object Uint8ClampedArray]', UINT16_TAG = '[object Uint16Array]', UINT32_TAG = '[object Uint32Array]'; export const empty = (is.empty = function(value: Array<any> | string | Object | any) { const type = getTag(valu...
Typescript