content
stringlengths
2
6.21k
label
stringclasses
16 values
_biquad_casd_df1_inst_q31, numStages: u8, pCoeffs: *const q31_t, pState: *mut q31_t, postShift: i8, ); } extern "C" { #[doc = " @brief Processing function for the floating-point Biquad cascade filter."] #[doc = " @param[in] S points to an instance of the floating-po...
Rust
ONV.num.int end assert(s.x == 142 - 256) assert(s.y == 142) assert(y == 42 * 100 + 5050) assert(x == y - (100-(127-42))*256) end do local a = ffi.new("uint32_t[?]", 101) for i=1,100 do a[i] = 0x80000000+i end local x = 0 for i=1,100 do x = bit.bxor(x, a[i]) -- FOLD TOBIT + CONV.num.u32 end as...
Lua
(int i = 0; i < 3; i++) { Transformation rotation = Rotation.sideRotations[i * 2].at(Vector3.center); CCModel rotatedModel = originalModel.copy().apply(rotation); result[i] = rotatedModel; } return result; } public static CCModel[] generateRotatedVariants(CC...
Java
/* * Copyright (c) 2006-2011 Erin Catto http://www.box2d.org * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising from the use of this software. * Permission is granted to anyone to use this software for any purpose, * i...
C
, today_endTime); // //昨日支付订单数量 // int yesterdayCountPaid = orderFeignApi.selectCountCompleted(order, system_startTime, yesterday_endTime); // // //今日截止总共普通注册人数 // int todayCountGeneralRegister = memberFeignApi.selectCountGeneralRegister(system_startTime, today_endTime); // //昨日截止总共普通...
Java
设计理念。 # 总结 关于本系列的总结,也主要包括五个方面: - Trade-Off 是难免的:为了满足设计目标,有时不得不做Trade-Off 。由于 Salesforce 所需要承载的多租户应用的规模之大,定制化需求之高都是前所未见的,所以Salesforce并没有采用常见的ddl变更模型,而是从长计议,采用了更灵活但技术要求更高的 Metadata 方式。 还有为了避免在数据库中执行成本非常高并会 Locking 整个数据库的 DDL(数据库定义语句)操作,所以在 Force.com 运行的时候是无法创建和修改数据库表,而这样将会提升实现的难度。 - 优化很重要,虽然 Force.com 的多租户架构就像 Java 一...
Markdown
nored if ``method`` is not ``"qdwh"``. Returns: A ``(unitary, posdef)`` tuple, where ``unitary`` is the unitary factor (:math:`m \times n`), and ``posdef`` is the positive-semidefinite factor. ``posdef`` is either :math:`n \times n` or :math:`m \times m` depending on whether ``side`` is ``"right"`` o...
Python
A4F3" + "AA22AEB8857F961C4CD8E06F0AE6610B" + "1048A7F64E1074CD629E85AD7566048E" + "FC4FB500B486A3309A8F26724C0ED628" + "001A1099422468DE726F1061D99EB9E9" + "3604D5AA7467D4B1BD6484582A384317" + "D7F47D...
Kotlin
Service> init() async { await initDeviceInfo(); snowflake = Snowflake(device.guid.hashCode); await loadConfigs(); await initPath(); return this; } ///加载配置信息 Future<void> loadConfigs() async { var cfg = dbService.configDao; _port = (await cfg.getConfigByKey(ConfigKey.port, Constants.po...
Dart
// If we just generated an anonymous block box, keep using it. // Otherwise, create a new one match self.children.last() { Some(&LayoutBox { box_type: AnonymousBlock, ..}) => {} _ => self.children.push(LayoutBox::new(AnonymousBlock)) ...
Rust
CVE(responseContext, "repo1:1.1.0", cveInfo, &gql_generated.Filter{}, pageInput, metaDB, log) So(err, ShouldEqual, ctx.Err()) }) Convey("Paginated requests", func() { responseContext := graphql.WithResponseContext(ctx, graphql.DefaultErrorPresenter, graphql.DefaultRecover, ) pageInput := getGQ...
Go
) Expect(conf).To(Equal(&IPAMConfig{ Name: "mynet", Type: "host-local", Ranges: []RangeSet{ { { RangeStart: net.IP{10, 1, 2, 9}, RangeEnd: net.IP{10, 1, 2, 20}, Gateway: net.IP{10, 1, 2, 30}, Subnet: types.IPNet{ IP: net.IP{10, 1, 2, 0}, Mask: net.CIDRMa...
Go
ed. Use new THREE.Int32BufferAttribute() instead."),new Ee(e,t)},e.Uint32Attribute=function(e,t){return console.warn("THREE.Uint32Attribute has been removed. Use new THREE.Uint32BufferAttribute() instead."),new Te(e,t)},e.Float32Attribute=function(e,t){return console.warn("THREE.Float32Attribute has been removed. Use n...
JavaScript
With("(") && pieces[0].endsWith(")")) { // 第一个是一个tuple pieces[0] = trim_parenthes(pieces[0]) arr.push(pieces[0]) let child_ele = pieces[0].split(/,\s*/); arr.push(...child_ele); } else if (pieces[0].indexOf(",") > 0) { pieces[0] = pieces[0].trim() arr.push(pie...
Typescript
return timecode; } public static TimecodeType GetTimecodeType(TimecodeFormat format) { TimecodeType type = TimecodeType.String; switch(format) { case TimecodeFormat.Frames: case TimecodeFormat.Milliseconds: ...
C#
_sdwa v5, flat_scratch_lo, v2 dst_sel:DWORD dst_unused:UNUSED_PAD src0_sel:DWORD src1_sel:DWORD // CHECK: [0xf9,0x04,0x0a,0x10,0x66,0x06,0x86,0x06] v_mul_u32_u24_sdwa v5, flat_scratch_hi, v2 dst_sel:DWORD dst_unused:UNUSED_PAD src0_sel:DWORD src1_sel:DWORD // CHECK: [0xf9,0x04,0x0a,0x10,0x67,0x06,0x86,0x06] v_mul_u32...
Assembly
iou_track_candidates = unconfirmed_tracks + [ k for k in unmatched_tracks_a if self.tracks[k].time_since_update == 1] unmatched_tracks_a = [ k for k in unmatched_tracks_a if self.tracks[k].time_since_update != 1] matches_b, unmatched_tracks_b, unmatched_...
Python
using MaterialSkin; using MaterialSkin.Controls; using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace Beetle.DTManager { public partial class FrmI...
C#
r = false; var winner = Marker.Empty; var isTie = false; if (this.checkForColumnWinner(game.board, Marker.X) || this.checkForRowWinner(game.board, Marker.X) || this.checkForDiaginalWinner(game.board, Marker.X)) { hasWinner = true; winner = Marker.X; } if (this.checkForColumnWinner(game.board, Marker.O...
Typescript
rt[]; } type SpecificationExport = FeatureExport; } declare class FeatureParser { constructor(language: Language<Language.Library>); constructor(options?: FeatureParser.Options); parse(text: string, next: (specification: FeatureParser.SpecificationExport) => void): void; parse(text: string): F...
Typescript
ch.cuda.is_available(), "CUDA not available") def test_opt_COMPLEX_gpu(self): args.GLOBALARGS_device="cuda:0" args.GLOBALARGS_dtype="complex128" main() args.GLOBALARGS_dtype="float64" @unittest.skipIf(not torch.cuda.is_available(), "CUDA not available") def test_opt_SYMEIG_g...
Python
flex-negative: 0; flex-shrink: 0; } .el-aside { overflow: auto; box-sizing: border-box; -ms-flex-negative: 0; flex-shrink: 0; } .el-footer, .el-main { -webkit-box-sizing: border-box; } .el-main { display: block; -webkit-box-flex: 1; -ms-flex: 1; flex: 1; -ms-flex-preferred-size: auto; flex-basis...
CSS
raw as *mut _), index, file_id, line_start, column_start, line_end, column_end, ) } } } impl Drop for SmallVectorCounterMappingRegion<'a> { fn drop(&mut self) { unsafe { llvm:...
Rust
sum1 += (sizes[n] || 1); for (let n = 0; n < num; ++n) { sizes[n] = Math.round(100 * (sizes[n] || 1) / sum1); sum2 += sizes[n]; if (n === num - 1) sizes[n] += (100 - sum2); // make 100% } for (let cnt = 0; cnt < num; ++cnt) { const group = { id: cnt, ...
JavaScript
void = () => {}) { assertRight(await e(), onRight); } export async function assertResolvesLeft<L, A>(e: TaskEither.TaskEither<L, A>, onLeft: (a: L) => void = () => {}) { assertLeft(await e(), onLeft); } import 'reflect-metadata'; import { Client } from 'eris'; import { EventEmitter } from 'events'; import { Com...
Typescript
X2)*sin(pi_*X2)+0.1*((pi_*X3)*(pi_*X3)*(pi_*X3)*(pi_*X3))*sin(pi_*X1)"; SymbolicFunction modelIshigami(inputName, formulaIshigami); JointDistribution::DistributionCollection marginals(inputDimension); marginals[0] = Uniform(-1.0, 1.0); marginals[1] = Uniform(-1.0, 1.0); marginals[2] = Uniform(-1.0...
C++
.length < 2) { assert(allGroups.length == 1); usage("Found only 1 group. At least two are required."); } Map<String, double> combinedChange = {}; bool printedAnything = false; for (String part in data.keys) { Map<String, List<int>> partData = data[part]!; List<int>? prevRuntimes; String? p...
Dart
/* Simple DirectMedia Layer Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org> This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this ...
C
_channel", "rootUri": "file:///Users/felix/.pub-cache/hosted/pub.dev/web_socket_channel-3.0.3", "packageUri": "lib/", "languageVersion": "3.3" }, { "name": "webkit_inspection_protocol", "rootUri": "file:///Users/felix/.pub-cache/hosted/pub.dev/webkit_inspection_protocol-1.2.1", ...
Dart
ager.GetApplyMode(elementToStyle) == ImplicitStylesApplyMode.OneTime && (VisualTreeHelper.GetChildrenCount(elementToStyle) > 0 || styleApplied)) { ImplicitStyleManager.SetHasBeenStyled(elementToStyle, true); } } } } }
C#
} testRenderWeatherView(tc.cli, mockRenderer, mockCity, mockWeather, fakeConfig) mockRenderer.AssertExpectations(t) }) } } func TestCityDeterminationIntegration(t *testing.T) { testCases := []struct { name string cityFlag string args []string defaultCity string expectedCity ...
Go
} class CheckingPostAcknowledgement : Status("Checking if post was actually acknowledged by the server") { override fun toString(): String { return "CheckingPostAcknowledgement" } } data class Posted( val chanDescriptor: ChanDescriptor ) : Status("Posted in ${chanDescript...
Kotlin
m the `pennylane.interfaces.batch` module: ```python from pennylane.interfaces.batch import execute def cost_fn(x): with qml.tape.JacobianTape() as tape1: qml.RX(x[0], wires=[0]) qml.RY(x[1], wires=[1]) qml.CNOT(wires=[0, 1]) qml.var(qml.PauliZ(0) @ qml.PauliX(1)) ...
Markdown
ы қарсы алыңыз","UserManager.dateJoined":"Жұмыс кеңістігіне {dateAdded} күні қосылды","UserManager.email":"Электрондық пошта","UserManager.inviteMemberButton":"Мүшені шақыру","UserManager.missingName":"Аты жоқ","UserManager.name":"Аты","UserManager.noResults":"Нәтижелер жоқ","UserManager.removeMemberModalCancel":"Бас т...
JavaScript
Instruction.Mem(Deref(8, r2, 16), Value.Imm(2UL), false)) b2.add(SbfInstruction.Mem(Deref(8, r2, 24), Value.Imm(2UL), false)) b2.add(SbfInstruction.Jump.UnconditionalJump(l4)) b3.add(SbfInstruction.Bin(BinOp.MOV, r2, r10, true)) b3.add(SbfInstruction.Bin(BinOp.SUB, r2, Value.Imm(400UL),...
Kotlin
[Required] public string PrincipalCode { get; set; } [Required] public string PrincipalName { get; set; } public virtual ICollection<RoleAssignment> RoleAssignments { get; set; } public string PrincipalDesc { get; set; } } [Table("Scope")] public class Scope : B...
C#
r_co_ most people associate bones with deformations and characters - when they are invaluable inserting in object hierarchies and animating._lt_/p_gt__lt_p_gt_ _lt_/p_gt__lt_p_gt_So without a formal request (at least from me_co_) you made life a whole lot easier for everyone.  Thank you.  Now we all need is to provide ...
JavaScript
assert!(is_match(r"^foo?$", "fo")); } #[test] fn concatenation() { assert!(is_match(r"^a+b+$", "aaabbb")); assert!(!is_match(r"^a+b+$", "abab")); assert!(!is_match(r"^a+b+$", "aaaa")); } #[test] fn union() { assert!(is_match(r"^foo|bar$", "bar")); assert!(!is_match(r"^foo|bar$", "foobar")); } ...
Rust
age jnx_bonds_pts_itch_v1_2.order_replaced_message.fields = function(buffer, offset, packet, parent) local index = offset -- Timestamp Nanoseconds: 4 Byte Unsigned Fixed Width Integer index, timestamp_nanoseconds = jnx_bonds_pts_itch_v1_2.timestamp_nanoseconds.dissect(buffer, index, packet, parent) -- Origina...
Lua
this point we are just fighting the statically-typed nature of Kotlin (just like Java and Scala). In Kotlin, we are much better off creating a `class` and doing things the statically-typed way. While this may make dynamic-typing advocates moan, check this out. Kotlin has a concise, readable way of declaring a class qu...
Kotlin
USELESS_CAST", "EXTENSION_SHADOWED_BY_MEMBER", "UNUSED_PARAMETER" ) @Deprecated("@extension kinded projected functions are deprecated", ReplaceWith("orS(arg1)", "arrow.core.ifS")) fun <E, A> Kind<Kind<ForValidated, E>, Boolean>.orS( SE: Semigroup<E>, arg1: Kind<Kind<ForValidated, E>, Boolean> ): Validated<E, Bo...
Kotlin
["repgain"] = { [72] = 75; }; ["next"] = 200; ["deliver"] = { [1] = { ["id"] = 469; ["type"] = "npc"; }; }; ["faction"] = "Alliance"; ["name"] = "Jungle Secrets"; ["level"] = 33; ["source"] = { [1] = { ["id"] = 738; ["t...
Lua
RCHITECTURE_CEVA: std::cout << "CEVA" << std::endl; break; case COFFI_ARCHITECTURE_TI: std::cout << "Texas Instruments" << std::endl; break; } //! [ex_reader_archi] //! [ex_reader_sections] // Print the COFF file sections info auto sec_num = reader.get_sections()...
C++
mples.MachineLearning.KMeans.Contracts; using Org.Apache.REEF.Tang.Annotations; using Org.Apache.REEF.Wake.Remote; namespace Org.Apache.REEF.Examples.MachineLearning.KMeans.codecs { /// <summary> /// Used to serialize and deserialize Centroids objects. /// </summary> public class CentroidsCodec : ICode...
C#
frukt = fruits[i] if milliseconds > frukt.varighet: canvas.delete(frukt.id) deleteList.append(i) for j in range(len(deleteList)-1, -1, -1): print(f"j: {j}, {deleteList[j]}") fruits.pop(deleteList[j]) #print(f"len(fruits): {len(fruits)}") def kollisjon()...
Python
Range4i==255){ if(r<0) r=0; else if(r>255) r=255; if(g<0) g=0; else if(g>255) g=255; if(b<0) b=0; else if(b>255) b=255; if(a<0) a=0; else if(a>255) a=255; return new Color(r,g,b,a); } float fr,fg,fb,fa; fr = (float)r/colorRange1i; fg = (float)g/colorRange2i; fb = (float)b/colorRange3i; fa...
Java
int aa = a + occpiA[h]; GFock->add(h, i, aa, 2.0 * FockA->get(h, i, i) * ZmatA->get(h, aa, i)); } } } // F_ai += 2 f_aa * z_ai #pragma omp parallel for for (int h = 0; h < nirrep_; ++h) { for (int a = 0; a < virtpiA[h]; ++a) { ...
C++
SBPlatformShellCommand::SetShell(const char *shell_interpreter) { LLDB_INSTRUMENT_VA(this, shell_interpreter); if (shell_interpreter && shell_interpreter[0]) m_opaque_ptr->m_shell = shell_interpreter; else m_opaque_ptr->m_shell.clear(); } const char *SBPlatformShellCommand::GetCommand() { LLDB_INSTRU...
C++
ad); expect(cycleNode, equals(allNodes[randomIndex])); }); test(('test 2'), () { int randomIndex = random.nextInt(9); tail?.next = allNodes[randomIndex]; Node? cycleNode = findCyclicNode(linkedList.head); expect(cycleNode, equals(allNodes[randomIndex])); }); test(('test 3'), () { int ra...
Dart
; winHttpConnection->m_lock.lock(); HC_TRACE_INFORMATION(WEBSOCKET, "HCHttpCallPerform [ID %llu] [TID %ul] Websocket WINHTTP_CALLBACK_STATUS_HEADERS_AVAILABLE", TO_ULL(HCHttpCallGetId(winHttpConnection->m_call)), GetCurrentThreadId()); // Check HTTP status code returned by the server and behave accordingl...
C++
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _12._6_密码验证 { internal class Program { static void Main(string[] args) { string code = "1234"; // 密码 for (int i = 1; i < 4; i++) { ...
C#
-- s27664 W["드워프 맥주 상자와 아이언포지 징표 모음, 카드 더미를 모아 아이언포지 선물세트를 만듭니다"] = { [Stats.Stamina] = 30, } -- s27665 W["조각품 상자와 다르나서스 징표 모음, 카드 다발을 모아 다르나서스 선물세트를 만듭니다"] = { [Stats.Agility] = 30, } -- s27666 W["맛있는 파이 상자와 오그리마 징표 모음, 카드 꾸러미를 모아 오그리마 선물세트를 만듭니다"] = { [Stats.Agility] = 30, } -- s27669 W["꽃 바구니와 썬더 블러프 징표 모음, 카드 가방을 ...
Lua
.level+1] { s.MulScalarMontgomery(p1.Coeffs[i][:NHalf], MForm(scalar0[i], s.Modulus, s.BRedConstant), p2.Coeffs[i][:NHalf]) s.MulScalarMontgomery(p1.Coeffs[i][NHalf:], MForm(scalar1[i], s.Modulus, s.BRedConstant), p2.Coeffs[i][NHalf:]) } } // MulDoubleRNSScalarThenAdd evaluates p2 = p2 + p1[:N/2] * scalar0 || p1[...
Go
,h4 a,h5 a,h6 a{color:inherit;text-decoration:none}dfn,cite,em,i{font-style:italic}blockquote,q{quotes:'“' '”'}blockquote{padding-left:1em;border-left:4px solid var(--global-palette4)}.entry-content blockquote{margin:0 0 var(--global-md-spacing)}blockquote cite,blockquote .wp-block-pullquote__citation{color:var(--globa...
CSS
("IEex_DerivedStatsData", stats) local numStats = IEex_Helper_GetBridgeNumIntsNL("IEex_RegisteredLuaStats") for i = 1, numStats do local reloadFunc = _G[IEex_Helper_GetBridgeNL("IEex_RegisteredLuaStats", i, "reload")] if reloadFunc then reloadFunc(statsData) end end end) end function IEex_Extern_On...
Lua
Assert.IsFalse(condition.Matches(e)); } // using } [TestMethod] public void TestStringPropertyIsEqualBothEmptyFalse() { using (var e = new MockA11yElement()) { e.Name = ""; e.ClassName = ""; ...
C#
---@class CS.UnityEngine.ConfigurableJoint : CS.UnityEngine.Joint ---@field public secondaryAxis CS.UnityEngine.Vector3 ---@field public xMotion number ---@field public yMotion number ---@field public zMotion number ---@field public angularXMotion number ---@field public angularYMotion number ---@field public angularZM...
Lua
12M\n" + "\x05repos\x18\x01 \x03(\v27.bonanza.model.analysis.ModuleExtensionRepos.Value.RepoR\x05repos\x1a\xcc\x02\n" + "\x04Repo\x122\n" + "\x04leaf\x18\x01 \x01(\v2\x1c.bonanza.model.starlark.RepoH\x00R\x04leaf\x12X\n" + "\x06parent\x18\x02 \x01(\v2>.bonanza.model.analysis.ModuleExtensionRepos.Value.Repo.ParentH\...
Go
.postInfo span.postNum{float:left;}div.post div.postInfoM span.postNum a,div.postInfo span.postNum a{text-decoration:none;color:#800000!important;}div.post div.postInfoM span.postNum a:hover{color:red;}div.post div.postInfoM span.nameBlock,div.postInfo span.nameBlock{display:inline;float:left;clear:left;}div.post div.p...
CSS
}, { 90, 5, 3073 }, { 86, 5, 193 }, { 192, 5, 24577 } }; // =============================================================================== // =============================================================================== static void inflate_blocks_reset(z_stream *z, inflate_blocks_state_t *s) { if((s->mode == BTR...
C++
_NULL:NO DocId string `json:"doc" gorm:"index"` // updated_by_id uuid IS_NULL:YES UpdatedById *string `json:"updated_by_id,omitempty" extensions:"x-nullable"` // workspace_id uuid IS_NULL:NO WorkspaceId string `json:"workspace"` Workspace *Workspace `json:"-" gorm:"foreignKey:WorkspaceId" extensions:"x-nullable"...
Go
t', 'description', 'enum', 'example', 'examples', 'exclusiveMaximum', 'exclusiveMinimum', 'format', 'items', 'maximum', 'maxItems', 'maxLength', 'maxProperties', 'minimum', 'minItems', 'minLength', 'minProperties', 'multipleOf', 'not', 'nullable', 'oneOf', 'pattern', 'propert...
JavaScript
k") > (var_2 = 5289241662482067456L) ? (Tester_Class_1)obj : (Tester_Class_1)obj).var_5 -= (((Tester_Class_1)obj).var_3 = (((Tester_Class_1)obj).var_3 = (((Tester_Class_1)obj).var_3 = (byte)var_9))); return true; } public String toString() { String result = "[\n"; result += "Teste...
Java
000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5'%3E%3Cpath d='M8 13V4.5a1.5 1.5 0 0 1 3 0V12'/%3E%3Cpath d='M17 11.5a1.5 1.5 0 0 1 3 0V16a6 6 0 0 1-6 6h-2h.208a6 6 0 0 1-5.012-2.7L7 19q-.468-.718-3.286-5.728a1....
CSS
].toLowerCase(),getUID=e=>{do{e+=Math.floor(1e6*Math.random())}while(document.getElementById(e));return e},getSelector=e=>{let t=e.getAttribute("data-bs-target");if(!t||"#"===t){let n=e.getAttribute("href");if(!n||!n.includes("#")&&!n.startsWith("."))return null;n.includes("#")&&!n.startsWith("#")&&(n="#"+n.split("#")[...
JavaScript
yFactory pgFact = new PreparedGeometryFactory(); PreparedGeometry pg = pgFact.create(source.getInnerGeometry()); for (final Object shape : list.listValue(scope, Types.GEOMETRY, false)) { if (!(shape instanceof IShape)) { continue; } if (AbstractTopology.accept(pg, ((IShape) shape).getInnerGeometry(), relation...
Java
ublic License along with dnSpy. If not, see <http://www.gnu.org/licenses/>. */ using System; using dnSpy.Contracts.Hex.Editor; namespace dnSpy.Contracts.Hex.Tagging { /// <summary> /// Hex marker tag used by <see cref="PredefinedHexAdornmentLayers.TextMarker"/> /// </summary> public class HexMarkerTag : HexT...
C#
} @Override public DataView<EquipmentFacade> getDataView() { return this; } @Override public ListFacade<EquipmentFacade> getDataModel() { return equipmentList; } @Override public List<? extends DataViewColumn> getDataColumns() { return columns; } @Override public String getPr...
Java
; /** Accept jobs on a printer or printer class - since CUPS 1.0 */ public static final int CUPS_ACCEPT_JOBS = 0x4008; /** Reject jobs on a printer or printer class - since CUPS 1.0 */ public static final int CUPS_REJECT_JOBS = 0x4009; /** Set the default destination - since CUPS 1.0 */ public stat...
Java
target = #bucket else target = 1 end -- find next or previous target if #currentSel > 0 and not entireBucketMode then if prevMode then local firstSel = currentSel[1].id for ri=0,#bucket-1 do local bid = #bucket - ri if bucket[bid].id < firstSel then target = bid break end...
Lua
</tr> <tr> <td>2</td> <td>7</td> <td>8</td> <td>9</td> </tr> </tbody> </table> 上述代码中`firstRow` `secondRow` `thirdRow`它们都是数组类型的数据,我们通过形如`a[y]`的表达式得到了它们,也就是说`a[y]`的表达式的返回值是个数组类型的数据,因此我们可以再对`a[y]`的返回值使用成员操作符`[]`。那么我们就可以直接通过`a[y][x]`获取到具体的单元格的值,比如我们获取数组`a`中的`2` `4` `8`: ```javascript var a = [ [1,2,3]...
Markdown
e9 debug port */ #define DEBUG_E9 0 /* Enable debugging via BIOS INT 10 (works only when in flat real mode) */ #define DEBUG_INT10 0 #if ( DEBUG_E9 || DEBUG_INT10 ) .macro print_character, reg pushfl pushw %ax pushw %bx pushw %bp movb \reg, %al movw $0x0007, %bx movb $0x0e, %ah #if DEBUG_E9 outb %al, $0xe9 ...
Assembly
discs: Option<u32>, } impl FileInput { pub fn from_path(path: impl AsRef<Path>) -> Self { let path = path.as_ref(); let tag = match Id3V2Tag::read_from_path(path) { Ok(tag) => tag, Err(_) => { return Self::empty(path); } }; Self { ...
Rust
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* */ /* This file is part of the class library */ /* SoPlex --- the Sequential object-oriented simPlex. */ ...
C
EntBuf[0])) _, _, names := unix.ParseDirent(linuxEntBuf, -1, []string{}) // logrus.Debugf("SYS_GETDIRENTRIES: names=%v", names) var written int for i, name := range names { if int(bufPtr)+direntSize-1 > int(bufBeginPtr)+bufSize-1 { logrus.Debugf("SYS_GETDIRENTRIES: Linux returns too much names than FreeB...
Go
输入 | int | / | 无 | | capacity | 输入数据,表述专家能处理的最大输入个数 | 输入 | int | / | 无 | | hidden | 输入数据,表述单个token的向量长度 | 输入 | int | / | 无 ...
Markdown
) errors_sorted, perm = torch.sort(errors, dim=0, descending=True) perm = perm.data gt_sorted = labels[perm] grad = lovasz_grad(gt_sorted) loss = torch.dot(F.relu(errors_sorted), grad) return loss def lovasz_grad(gt_sorted): """ Computes gradient of the Lovasz extension w.r.t sorted err...
Python
lock (_list) _list.CopyTo(array, arrayIndex); } public bool Remove(T item) { lock (_list) return _list.Remove(item); } public int Count { get { lock (_list) return _list.Count; } } public bool Is...
C#
import unittest from podcast_downloader.rss import only_last_n_entities from commons import rss_entity_generator class TestOnlyNLastRSSEntity(unittest.TestCase): def test_get_only_last_n_rss_entities_happy_path(self): # Assign entity_1, entity_2, entity_3, entity_4, entity_5 = rss_entity_generato...
Python
ريبت: - `Array` مصفوفة لتخزين مجموعة البيانات المرتبة, - `Date` تاريخ لتخزين معلومات عن الوقت والتاريخ, - `Error` خطأ لتخزين معلومات عن خطأ ما. - ...وما إلى ذلك. لدى هذه الأنواع ميزاتها الخاصة التي سيتم دراستها لاحقًا. يقول بعض الأشخاص أحيانًا شيئًا مثل "نوع مصفوفة" أو "نوع تاريخ", لكن هذه الأنواع ليست أنواعًا مستقلة...
Markdown
5.5 0 0 0 .15-.35.5.5 0 0 0-.15-.35l-2-2a.5.5 0 0 0-.7.7L15.29 14H12.5a.5.5 0 0 0 0 1h2.8l-1.15 1.15a.5.5 0 0 0 .7.7l2-2Z\"/>") { } } public class NotebookSubsection : Icon { public NotebookSubsection() : base("NotebookSubsection", IconVariant.Regular, IconSize.Size20, "<path d=\"M4 5.5A3.5 3.5 0 0 1 7.5 2H10c.82 0...
C#
务于浏览器的 JavaScript 那个时候还是拨号上网年代,用户输入验证需要与服务器交互,而 每一次与服务器的交互都漫长得让人崩溃。于是走在浪潮之巅的网 景决定开发一种客户端语言,服务于大热的 Netscape Navigator 浏览器,能同时用在浏览器和服务器中,快速完成输入验证。这种 语言就是如今已经变得非常强大的 JavaScript(见 12 月 4 日)。 10-14 #include <iostream> using namespace std; int main(){ cout <<"Hello, World!"<< endl; return 0; } [ Coding ] 1985 年 10 月 14 ...
Typescript
ext) { // Assume you have no servant EdServantData current = EdServantData.NO_SERVANT; if (responseText.contains("Busy Servant")) { Matcher busyMatcher = EdServantData.BUSY_PATTERN.matcher(responseText); if (busyMatcher.find()) { current = EdServantData.registerEdServant(busyMatcher); ...
Java
d on string of digits from end of name. // If Id == 0 then it was not specified or didn't parse. // SVG object names are element names + numerical id func SplitNameIDDig(nm string) (string, int) { sz := len(nm) for i := sz - 1; i >= 0; i-- { c := rune(nm[i]) if !unicode.IsDigit(c) { if i == sz-1 { return ...
Go
ompressionLevel:a,extractBufferOpts:n}),new zi(o,{level:e.compressionLevel})}async function*nut(t){let e=new Vfe.default.Parse,r=new Kfe.PassThrough({objectMode:!0,autoDestroy:!0,emitClose:!0});e.on("entry",o=>{r.write(o)}),e.on("error",o=>{r.destroy(o)}),e.on("close",()=>{r.destroyed||r.end()}),e.end(t);for await(let ...
JavaScript
rectF, r, r, Path.Direction.CW); clipPath.close(); canvas.save(); canvas.clipPath(clipPath, Region.Op.DIFFERENCE); } r = (sideQuadSize * multiple) / 3.0f * radiusFactor; Arrays.fill(radii, r); rect.setColor(color); rect.setBounds((int) x, (int) y, (int) (x + sideQua...
Java
LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU s_atomic_cmpswap_x2 s[20:23], s[2:3], 0x64 // GFX11-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU s_atomic_dec_x2 s[10:11], s[2:3], s101 // GFX11-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU s...
Assembly
NULL, NULL, NULL); object_class_property_set_description(oc, "num-chips", "Specifies the number of processor chips", NULL); } static void powernv_machine_class_init(ObjectClass *oc, void *data) { MachineClass *mc = MACHINE_CLASS(oc...
C
return &BlsCircuitGenerator{members} } // gen a partial BLS circuit func (bcg BlsCircuitGenerator) Generate(msg cid.Cid) (PartialBlsCircuit, error) { circuit, err := newBlsCircuit(&msg, bcg.CircuitMap()) if err != nil { return nil, err } return &partialBlsCircuit{ circuit: circuit, members: bcg.members, },...
Go
abel[1] = guiCreateLabel(0.20, 0.11, 0.40, 0.12, "Federal Aviation Administration\nSan Andreas region", true, edit_registryitem.window[1]) guiSetFont(edit_registryitem.label[1], "default-bold-small") edit_registryitem.label[2] = guiCreateLabel(0.62, 0.11, 0.45, 0.19, "You have logged in as:\n"..fullname.." "..clearan...
Lua
18px 84px, 24px 84px, 30px 84px #c5090c, 36px 84px #c5090c, 42px 84px #c5090c, 48px 84px #c5090c, 54px 84px #c5090c, 60px 84px #c5090c, 66px 84px #c5090c, 72px 84px #c5090c, 78px 84px, 84px 84px, 90px 84px, 96px 84px, 6px 90px, 12px 90px, 18px 90px, 24px 90px, 30px 90px, 36px 90px, 42px 90px, 48px 90px,...
CSS
2459 ){ Titles.AwardKarma( from, -40, true ); } if ( from.Fame > -2459 ){ Titles.AwardFame( from, -40, true ); } } else if ( targ.Player && from != targ && targ.Combatant == from && targ.Warmode == true ) // BEG PLAYERS TO STOP ATTACKING YOU //////////////////////////////////////// { if ( tar...
C#
Behaviour.Ellipsis(maxLines = 1), ) } if (index < reaction.userList.size - 1) { MegaDivider( DividerType.FullSize, modifier = Modifier.padding(start = ...
Kotlin
/* $NetBSD: p_nec_j96a.c,v 1.5 2003/07/15 00:04:43 lukem Exp $ */ /*- * Copyright (C) 2002 Izumi Tsutsui. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source cod...
C
# Standard library import os from pathlib import Path # Third-party import pooch import yaml # First-party from neural_lam.datastore import DATASTORES, init_datastore from neural_lam.datastore.npyfilesmeps import ( compute_standardization_stats as compute_standardization_stats_meps, ) # Local from .dummy_datasto...
Python
/*============================================================================== ** Copyright (C) 2024-2027 WingSummer ** ** This program is free software: you can redistribute it and/or modify it under ** the terms of the GNU Affero General Public License as published by the Free ** Software Foundation, version 3. ** ...
C
ET_SCREEN_CONTENT_MODE, 1); } } else if (frame_params_.frame_type == libvpx::RcFrameType::kInterFrame) { // Disable golden frame update. frame_flags_ |= VP8_EFLAG_NO_UPD_GF; frame_flags_ |= VP8_EFLAG_NO_UPD_ARF; } } frame_params_.frame_type = video->frame() % key_inte...
C++
NAME = "cpio_portable_ascii" PATTERNS = [HexString("30 37 30 37 30 31 // 07 07 01 (newc)")] EXTRACTOR = PortableASCIIExtractor() DOC = HandlerDoc( name="CPIO (portable ASCII)", description="CPIO (Copy In, Copy Out) is an archive file format used for bundling files and directories along wi...
Python
- start_time remaining = max(0, total_stir_time - elapsed) progress = (elapsed / total_stir_time) * 100 if total_stir_time > 0 else 100 # 更新状态 self.data.update({ "remaining_time": remaining, "status": f"🌪️ 搅拌中: {stir_speed} R...
Python
= 108, MINUTE = 109, MONTH = 110, MONTH_NAME = 111, NOW = 112, QUARTER = 113, SECOND = 114, WEEK = 115, YEAR = 116, CURRENT_DATE = 117, CURRENT_TIME = 118, CURRENT_TIMESTAMP = 119, EXTRACT = 120, FORMATDATETIME = 121, PARSEDATETIME = 122, ISO_YEAR = 123, ISO_...
Java