char_count
int64
200
971k
dataset
stringclasses
3 values
domain
stringclasses
1 value
id
stringlengths
32
32
text
stringlengths
200
971k
timestamp
stringdate
2026-04-06 23:49:37
2026-04-13 02:09:34
tokens_count
int64
30
549k
1,182
the_stack_java
code
57e99135a41c66ce86dd24f50fcb2e1c
/** * Copyright © 2019 同程艺龙 (zhihui.li@ly.com) * * 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/LICENSE-2.0 * * Unless required by applicable law or agreed t...
2026-04-12 20:34:11
302
1,114
the_stack_java
code
6022af6db5f2ea2f9fda8070351fa414
/** * Copyright (C) the original author or authors. * * 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/LICENSE-2.0 * * Unless required by applicable law or agr...
2026-04-12 20:34:22
277
721
the_stack_java
code
c61a7d53f8703ce874cf967f6d6b251a
package com.google.android.gms.internal; import android.os.Parcel; import android.os.Parcelable; import com.google.android.gms.common.internal.safeparcel.zza; import com.google.android.gms.common.internal.safeparcel.zzd; import com.google.android.gms.common.internal.zzbp; public final class zzctu extends zza { public s...
2026-04-12 20:32:16
282
4,723
the_stack_java
code
84a808b531e2277ae4e6908f2406cec1
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not ...
2026-04-12 20:31:46
1,237
3,257
the_stack_java
code
c08086f50964fada2933162caeaa13ba
package com.microsoft.bingads.v13.internal.bulk; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.util.concurrent.ExecutionException; import org.junit.Test; import co...
2026-04-12 20:31:00
772
8,426
the_stack_java
code
57f9521beac56f4d2db0b847617291fb
/* * Copyright 2002-2019 the original author or authors. * * 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law ...
2026-04-12 20:31:01
2,079
2,391
the_stack_c
code
a607601c967446c3c305dc98349b165f
#ifndef UTILITY_H #define UTILITY_H #include <stdlib.h> #include <string.h> //#include <stdbool.h> /* * assumes the memory manager is libmm.a * - allows malloc(0) or realloc(obj, 0) * - catches out of memory (and calls MMout_of_memory()) * - catch free(0) and realloc(0, size) in the macros */ #define NIL(type) ((type *...
2026-04-13 01:51:13
896
1,560
the_stack_java
code
be5d9384b20f1e36b0bfa158367a0e18
/* * Copyright 2002-2017 the original author or authors. * * 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law ...
2026-04-12 20:18:56
357
7,508
the_stack_java
code
608a4e7ab15800fdb3252159c932ee3e
/******************************************************************************* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file ...
2026-04-12 20:19:13
1,918
2,541
the_stack_java
code
751d2d81d521f07f068bb61c8ac858ac
package io.walkers.planes.pandora.jvm.classloader.classloader.namespace; import io.walkers.planes.pandora.jvm.classloader.classloader.MyClassLoader; import io.walkers.planes.pandora.jvm.classloader.classloader.MyObject; import com.sun.crypto.provider.AESKeyGenerator; import java.lang.reflect.Method; /** * 21. 类加载器实战剖析与...
2026-04-12 20:37:18
1,049
14,190
starcoderdata
code
47bb145794c41189262dac242927d3ae
/* ---------------------------------------------------------------------- * Project: CMSIS DSP Library * Title: arm_biquad_cascade_df1_q31.c * Description: Processing function for the Q31 Biquad cascade DirectFormI(DF1) filter * using Helium assembly kernels * This version allows boosting DF1 Q.31 Biquad performance wh...
2026-04-07 00:31:47
6,341
3,277
the_stack_java
code
19a197030a8a56b1aaafffe0cdbfc74b
package io.github.jeannyil.quarkus.camel.routes; import javax.ws.rs.core.Response; import org.apache.camel.Exchange; import org.apache.camel.ExchangePattern; import org.apache.camel.LoggingLevel; import org.apache.camel.TypeConversionException; import org.apache.camel.builder.RouteBuilder; import org.apache.camel.model...
2026-04-12 20:45:33
985
4,387
the_stack_java
code
f870c33483560f581ac66624da2c9c67
// Copyright 2018 The Bazel Authors. All rights reserved. // // 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/LICENSE-2.0 // // Unless required by applica...
2026-04-12 20:26:56
1,148
28,402
the_stack_c
code
56bdde8c4655a3bcd3ce8600b04350ae
#ifndef __PREY_GAME_PLAYER_H__ #define __PREY_GAME_PLAYER_H__ extern const idEventDef EV_PlayWeaponAnim; extern const idEventDef EV_Resurrect; extern const idEventDef EV_PrepareToResurrect; extern const idEventDef EV_SetOverlayMaterial; extern const idEventDef EV_SetOverlayTime; extern const idEventDef EV_SetOverlayCol...
2026-04-13 01:40:23
7,904
1,355
the_stack_c
code
50da16055ce1ac75231cc41932bee878
/* * This header is generated by classdump-dyld 1.0 * on Sunday, June 7, 2020 at 11:25:23 AM Mountain Standard Time * Operating System: Version 13.4.5 (Build 17L562) * Image Source: /System/Library/PrivateFrameworks/PhotosUICore.framework/PhotosUICore * classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by E...
2026-04-13 01:42:23
457
669
the_stack_java
code
94244f81bee2f7e9800bf3a450942be4
package sh.nuro.projectcontainer.proxy; import net.minecraftforge.fml.common.event.FMLPreInitializationEvent; import sh.nuro.projectcontainer.blocks.ContainerBlockBlue; import sh.nuro.projectcontainer.blocks.ContainerBlockGreen; import sh.nuro.projectcontainer.blocks.ContainerBlockRed; public class ClientProxy extends ...
2026-04-12 20:40:18
154
983
starcoderdata
code
2674236fae400eb947ab9f25e69418b1
<reponame>jeremybreytenbach/UCT_MIT_WebProgramming package events; import java.io.BufferedReader; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.IOException; public class EventData { public String csvToHtmlTable() { String csvFile = System.getProperty("user.home") + "\\events.txt"; Buff...
2026-04-07 00:14:35
288
592
the_stack_java
code
912d398a40419ba678dc39f448ab18d4
package yyl.example.design_pattern.structural.flyweight; import java.util.Map; import java.util.concurrent.ConcurrentHashMap; /** * 享元模式(FlyWeight):是为系统中存在多个相同的对象,那么只需要共享一个对象的拷贝。 */ public class FlyweightBean { private static Map<String, FlyweightBean> cache = new ConcurrentHashMap<>(); private String value; public Fly...
2026-04-12 20:34:01
194
2,767
the_stack_c
code
65c7811e993ab82076b4584fc19a2141
/** ****************************************************************************** * @file FMC/FMC_SRAM/Inc/main.h * @author MCD Application Team * @version V1.0.4 * @date 06-May-2016 * @brief Header for main.c module ****************************************************************************** * @attention * * <h2><c...
2026-04-13 01:52:08
715
1,260
the_stack_c
code
00b0aece69f9f99a0f052705a6f4ea1a
/****************************************************************************** * Copyright (C) 2015 by Ralf Kaestner * * ralf.kaestner@gmail.com * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the Lesser GNU General Public License as published by* * the Free Softw...
2026-04-13 02:07:01
316
555
the_stack_java
code
0995a51d1878a326b923b758ef05bd30
package io.github.jonhshepard.tifromtext.frames; import io.github.jonhshepard.tifromtext.frames.stages.MainStage; import javafx.application.Application; import javafx.stage.Stage; /** * @author JonhSHEPARD */ public class JavaMakerApp extends Application { private Stage currentStage = null; @Override public void start(...
2026-04-12 20:24:39
142
301
the_stack_java
code
e44d34bdb495efd5f07fd2122c495e58
package test.dynamic.plan; import org.testng.annotations.Test; public class TestPlan2{ @Test public void testPlan2Method1()throws Exception { System.out.println("testPlan2Method1- invoked"); } @Test public void testPlan2Method2()throws Exception { System.out.println("testPlan2Method2 - invoked"); } }
2026-04-12 20:45:05
81
907
starcoderdata
code
bfbdb7d2c5d890afab41c0ac1d1e4238
#pragma once #include "IDriftAuthProvider.h" class ISecureStorage; class FDriftUserPassAuthProvider : public IDriftAuthProvider { public: FDriftUserPassAuthProvider(int32 instanceIndex, TSharedPtr<ISecureStorage> secureStorage, const FString& Username, const FString& Password, bool bAllowAutomaticAccountCreation); FStr...
2026-04-07 00:31:15
213
403
the_stack_c
code
45b023ccf756c7e15b261ae00624d6d6
// // MultiSubredditSelectorViewController.h // AlienBlue // // Created by J M on 4/06/12. // Copyright (c) 2012 The Design Shed. All rights reserved. // #import "ABOutlineViewController.h" #import "SubredditFolder.h" @interface MultiSubredditSelectorViewController : ABOutlineViewController - (id)initWithSourceFolder:(...
2026-04-13 01:57:40
121
820
the_stack_java
code
a9d840f7be9cc9ae11a28d07638dd89d
package L.DynamicProgramming.I.Medium.ArrayHopperI; import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.*; class ArrayHopperITest { private static ArrayHopperI arrayHopp...
2026-04-12 20:34:42
270
349
the_stack_java
code
2828ccf5c37e296165780cbd89a62744
package com.rootser.bluerootser.repository; import java.util.List; import org.springframework.data.repository.CrudRepository; import com.rootser.bluerootser.model.User; import com.rootser.bluerootser.model.UserRoles; public interface UserRolesRepository extends CrudRepository<UserRoles, Integer> { List<UserRoles> findB...
2026-04-12 20:26:11
95
2,290
the_stack_java
code
079f3284dabdbb3566dd0b0865249e37
package com.redis.documents.controllers; import java.util.Optional; import java.util.Set; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.data.domain.Page; import org.springframework.data.domain.Pageable; import org.springframework.data.geo.Distance; import org.springframework....
2026-04-12 20:39:08
622
2,755
the_stack_c
code
003ad3150c48cb50ecf65b5ded0bb42c
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE464_Insertion_Of_Data_Structure_Sentinel__basic_17.c Label Definition File: CWE464_Insertion_Of_Data_Structure_Sentinel__basic.label.xml Template File: sources-sink-17.tmpl.c */ /* * @description * CWE: 464 Insertion of Data Structure Sentinel * BadSource: Read in data f...
2026-04-13 02:05:57
891
1,492
the_stack_java
code
6a8e803fd2e3f315ab31db2a7829b341
package com.linkedin.thirdeye.datalayer.entity; import com.linkedin.thirdeye.api.DimensionMap; public class MergedAnomalyResultIndex extends AbstractIndexEntity { long functionId; long anomalyFeedbackId; long metricId; long startTime; long endTime; String collection; String metric; DimensionMap dimensions; boolean noti...
2026-04-12 20:42:16
352
560
the_stack_c
code
3447b693b49ca74f55b66d4ce45f8fa2
// // Section.h // BYR_Client // // Created by Ying on 4/8/15. // Copyright (c) 2015 Ying. All rights reserved. // #import "Board.h" @protocol NSString @end @protocol Section @end @interface Section : JSONModel @property (nonatomic, strong) NSString *name; @property (nonatomic, strong) NSString *selfDescription; @prope...
2026-04-13 01:48:18
165
2,488
the_stack_java
code
aa4d3abbba4bc640148927479311b9c4
package cn.com.warlock.cache.local; import java.io.IOException; import java.util.Map; import java.util.concurrent.Callable; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.TimeUnit; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import com.google.common.cache.Cache; import com.googl...
2026-04-12 20:21:04
684
822
the_stack_c
code
88287fd5071c2f42f6d8f1ea870aea79
// This code contributed by Nadi Sarrar. #pragma once #include "analyzer/protocol/tcp/TCP.h" #include "bittorrent_pac.h" namespace analyzer { namespace bittorrent { class BitTorrent_Analyzer final : public tcp::TCP_ApplicationAnalyzer { public: explicit BitTorrent_Analyzer(Connection* conn); ~BitTorrent_Analyzer() over...
2026-04-13 01:53:33
223
3,661
the_stack_java
code
b52576488b6e86516d2902e8a071729e
/* 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/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the L...
2026-04-12 20:23:34
883
1,696
the_stack_java
code
7fa4925ebca79ce24a4caaef38aa63b5
//////////////////////////////////////////////////////////// // // Anime Warfare // Copyright (C) 2016 TiWinDeTea - contact@tiwindetea.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 softwar...
2026-04-12 20:30:47
432
1,050
the_stack_java
code
e08fc33531e414820a6decebf68021ee
package taskmanager; import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.*; class TeamTest { private final Team testTeam = new Team(); @BeforeEach void setUp() { SystemController.current_user = new AppUser(); ...
2026-04-12 20:36:40
321
816
the_stack_java
code
e19365cd7eb46649377a82033a28071a
package net.jibini.chalkboard.decorated; import net.jibini.chalkboard.render.StaticMesh; public class DecoratedStaticMesh implements StaticMesh<DecoratedStaticMesh> { private final StaticMesh<?> origin; public DecoratedStaticMesh(StaticMesh<?> origin) { this.origin = origin; } @Override public DecoratedStaticMesh gener...
2026-04-12 20:13:45
193
9,922
the_stack_java
code
9b23ce17f3d285d6934cad99dcdcbc10
/* * Copyright 2021 ThoughtWorks, Inc. * * 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/LICENSE-2.0 * * Unless required by applicable law or agreed to in wri...
2026-04-12 20:20:50
2,275
342
the_stack_java
code
5e2cdd032b9ef9d15664e0248fcf07dc
package com.xinjian.base; /** * Created by Administrator on 2017/6/7 0007. */ /** * 存放常量 */ public class Constant { public static final String weather = "weather"; public static final String bing_pic = "bing_pic"; public static final String weather_id = "weather_id"; public static final String collKEY = "fa4ba54c8a4949...
2026-04-12 20:43:42
113
2,014
the_stack_c
code
3109a836d3b48085b64dddec1b7c2770
/* Copyright 2008 Google Inc. 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/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distribute...
2026-04-13 01:58:57
500
666
the_stack_c
code
0f39718c8bdaecdab13814d9f2a4b974
#ifndef PROC_INFO_H #define PROC_INFO_H #include <stdint.h> #include <stdbool.h> #define PROC_INFO_CMD_MAX 256 #define PROC_MAX 128 enum { UNUSED = 0, CREATED, SLEEPING, WAIT, BLOCK, READY, RUNNING, ZOMBIE }; enum { PROC_TYPE_PROC = 0, PROC_TYPE_THREAD, PROC_TYPE_IPC, PROC_TYPE_VFORK }; enum { IPC_IDLE = 0, IPC_BUSY, I...
2026-04-13 02:08:46
284
4,895
the_stack_java
code
99e6453af6d4516e46b2b9e6936ff590
/* * Copyright 2014-2015 EUBrazilCC (EU‐Brazil Cloud Connect) * * 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/LICENSE-2.0 * * Unless required by applicable ...
2026-04-12 20:45:29
1,319
2,187
the_stack_c
code
e17ac0cbdf4b87f113149be539f37b83
/* * This header is generated by classdump-dyld 1.5 * on Tuesday, November 10, 2020 at 10:23:08 PM Mountain Standard Time * Operating System: Version 14.2 (Build 18K57) * Image Source: /System/Library/PrivateFrameworks/VoiceServices.framework/Support/libvoiced_tts.dylib * classdump-dyld is licensed under GPLv3, Copyrig...
2026-04-13 01:51:24
712
4,045
the_stack_java
code
5283f5f15581b48a7c24c35371075389
/** * Copyright (c) 2009-2013, rultor.com * 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 code must retain the above * copyright notice, this list of conditions and ...
2026-04-12 20:35:27
1,085
5,916
the_stack_java
code
49210395945a072d5ad96a9776f55078
/** * Copyright (C) 2015 Red Hat, Inc. * * 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/LICENSE-2.0 * * Unless required by applicable law or agreed to in wri...
2026-04-12 20:28:03
1,588
3,687
the_stack_java
code
e1d6ee64495c3dc2f92c30b0bc1c39ef
/** * Copyright ${license.git.copyrightYears} the original author or authors. * <p> * 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 * <p> * http://www.apache.org/licenses/LICENSE-2.0 * <p> * Un...
2026-04-12 20:38:30
935
147,366
the_stack_java
code
c5f9727a1cb222af0bcdef80f15ede9a
/* * 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/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the...
2026-04-12 20:40:26
37,079
4,563
the_stack_c
code
f0be2585a2fefa21ac53794264854186
/*====================================================================* - Copyright (C) 2001 Leptonica. All rights reserved. - This software is distributed in the hope that it will be - useful, but with NO WARRANTY OF ANY KIND. - No author or distributor accepts responsibility to anyone for the - consequences of using ...
2026-04-13 01:53:10
1,219
4,379
the_stack_java
code
73422443cae2ac0591a8afc111c0c735
/* Licensed to Diennea S.r.l. under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. Diennea S.r.l. licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in com...
2026-04-12 20:25:55
1,206
4,143
the_stack_c
code
402c7eb56ee7fa1efebd074932328d2a
// Copyright 2010 Todd Ditchendorf // // 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/LICENSE-2.0 // // Unless required by applicable law or agreed to in...
2026-04-13 02:02:07
981
1,801
the_stack_java
code
6614fca93b9168c44ab56cc0863683ab
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See License.txt in the project root. package com.microsoft.alm.helpers; import org.junit.Assert; import org.junit.Before; import org.junit.Test; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.I...
2026-04-12 20:22:16
456
2,161
the_stack_java
code
eb2a76531ca0116b3368432058eac624
package com.chenantao.playtogether.chat.utils; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.text.TextUtils; import com.avos.avoscloud.AVUser; import com.avos.avoscloud.im.v2.AVIMClient; import com.avos.avoscloud.im.v2.AVIMException; import com.a...
2026-04-12 20:39:09
759
553
starcoderdata
code
b230a034c60c79dffb85f4fe0eb0d45c
<reponame>kant/tdar<gh_stars>1-10 package org.tdar.web.service; import java.io.File; import java.io.IOException; import org.apache.commons.fileupload.FileUploadException; import org.tdar.core.bean.entity.TdarUser; import org.tdar.core.bean.resource.Resource; import org.tdar.core.bean.resource.file.InformationResourceFi...
2026-04-07 00:07:21
152
3,598
the_stack_java
code
663abc1848f69050b58ad9f214a9778f
/* * Jitsi, the OpenSource Java VoIP and Instant Messaging client. * * Copyright @ 2015 Atlassian Pty Ltd * * 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/LI...
2026-04-12 20:37:17
831
2,447
the_stack_java
code
3c249d22896094342892fc1420c4fbe4
package org.jboss.resteasy.plugins.providers; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.OutputStream; import java.io.Reader; import java.lang.annotation.Annotation; import java.lang.reflect.Type; import javax.ws.rs.Consumes; import javax.ws.rs.Produces; imp...
2026-04-12 20:38:08
690
905
the_stack_java
code
900a3d513b860a84e10e1822e4eb0435
package gaia3d.quartz.jobExecutor; /*@PersistJobDataAfterExecution @DisallowConcurrentExecution @Component public class SampleJobExecutor implements Job { private static final SimpleDateFormat TIMESTAMP_FMT = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss.SSSS"); public static final String EXECUTION_COUNT = "EXECUTION_COUNT...
2026-04-12 20:22:35
253
3,764
the_stack_java
code
6c1a953ea0a65e1a6aba2d9149d03518
/* * $Id: EndpointMessageProcessorsTestCase.java 22419 2011-07-15 03:41:06Z dirk.olmes $ * -------------------------------------------------------------------------------------- * Copyright (c) MuleSoft, Inc. All rights reserved. http://www.mulesoft.com * * The software in this package is published under the terms of t...
2026-04-12 20:18:30
1,013
3,225
the_stack_java
code
5c1b4eec86c228d57e0acbc36c1e5fbc
/* * Copyright 2019 DeNA Co., Ltd. * * 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/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing...
2026-04-12 20:37:21
857
5,310
the_stack_java
code
31843060c95108c1caf5439759441f4e
/* * MIT License * * Copyright (c) 2021 Yusuf Ismail * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, mer...
2026-04-12 20:39:56
1,478
1,018
the_stack_c
code
6831170e20e3a0d3c12a996c63708132
// // CLParticleSystem.h // Sakura GL Toy // // Created by Kyle Halladay on 2014-06-23. // Copyright (c) 2014 Kyle Halladay. All rights reserved. // #ifndef __Sakura_GL_Toy__CLParticleSystem__ #define __Sakura_GL_Toy__CLParticleSystem__ #include "ParticlePrototype.h" #include "kazmath.h" #ifdef __EMSCRIPTEN__ #include ...
2026-04-13 01:38:36
310
566
the_stack_java
code
189b8117066975daf7f4fca8e05f6170
// Copyright 2000-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.openapi.editor.actionSystem; import com.intellij.util.xmlb.annotations.Attribute; /** * @deprecated Please use com.intellij.codeInsight.editorActions.TypedHan...
2026-04-12 20:20:44
142
2,522
the_stack_java
code
c295b1621e5e9e10f71e39514f74d3d8
package snowblossom.lib; import com.google.protobuf.ByteString; import snowblossom.proto.TransactionInput; import snowblossom.proto.TransactionOutput; import snowblossom.lib.trie.HashUtils; import snowblossom.lib.trie.HashedTrie; import java.nio.ByteBuffer; import java.util.HashMap; public class UtxoUpdateBuffer { priv...
2026-04-12 20:30:09
744
740
the_stack_java
code
0b535eaaa91a43d626d450be10b058d6
package com.jukusoft.anman.worker.config; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Primary; import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder; import org.springframework.security.c...
2026-04-12 20:45:02
160
2,188
the_stack_java
code
9bcd1f51af9bb5ba6bc36cd5941f6650
/* * Copyright 2020 ThoughtWorks, Inc. * * 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/LICENSE-2.0 * * Unless required by applicable law or agreed to in wri...
2026-04-12 20:34:58
563
1,163
the_stack_java
code
39ee57ccc66dc26ee0d7c0d9095edd96
package com.newrelic.jfr; import static java.util.stream.Collectors.toList; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertTrue; import com.newrelic.jfr.tometric.CPUThreadLoadMapper; import com.newrelic.jfr.tometric.EventToMetric; import com.newrelic.jf...
2026-04-12 20:13:58
324
593
the_stack_java
code
af8c7779c165e0271805a7b03d282169
package au.com.codeka.warworlds.client.opengl; import android.content.Context; import android.util.DisplayMetrics; import android.util.TypedValue; /** * Helper class for converting between various dimension units. */ public class DimensionResolver { private final DisplayMetrics displayMetrics; public DimensionResolver(...
2026-04-12 20:30:31
141
793
the_stack_java
code
f6d21bf914eb689c070dc9d39fb137a1
package org.tools.csv.utils; import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.File; import java.io.FileInputStream; import java.io.FileWriter; import java.io.IOException; import java.io.InputStreamReader; import java.nio.file.Path; public class FileAppender { public void append(Path sourceFi...
2026-04-12 20:31:13
209
16,218
starcoderdata
code
ffef5eb31f05f2865fe4b82f099f04be
<filename>src/main/java/io/kamax/mxisd/storage/ormlite/OrmLiteSqlStorage.java /* * mxisd - Matrix Identity Server Daemon * Copyright (C) 2017 <NAME> * * https://www.kamax.io/ * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * publi...
2026-04-07 00:10:39
4,692
680
the_stack_java
code
ca4f0498a258241ffbfca76c75e38c9c
//package com.cpq.shiro2.cache; // //import org.apache.shiro.cache.Cache; //import org.apache.shiro.cache.CacheException; //import org.apache.shiro.cache.CacheManager; //import org.springframework.data.redis.cache.RedisCache; //import org.springframework.stereotype.Component; // //import javax.annotation.Resource; // /...
2026-04-12 20:15:17
214
16,714
the_stack_c
code
c69dcd9c39b10c4d28217207fac857db
//////////////////////////////////////////////////////////////////////////////// // // Package: RoadNarrows Robotics Laelaps Mobile Robot ROS Package // // Link: https://github.com/roadnarrows-robotics/laelaps // // ROS Node: laelaps_control // // File: laelaps_control.h // /*! \file * * \brief The ROS laelaps_control ...
2026-04-13 01:47:58
5,120
3,083
the_stack_c
code
5a0c6830d0b0544c8b1cbfed484c067c
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE457_Use_of_Uninitialized_Variable__int64_t_12.c Label Definition File: CWE457_Use_of_Uninitialized_Variable.c.label.xml Template File: sources-sinks-12.tmpl.c */ /* * @description * CWE: 457 Use of Uninitialized Variable * BadSource: no_init Don't initialize data * GoodS...
2026-04-13 01:57:46
925
794
the_stack_c
code
0377d45e000deae006a1e5adee82c396
#ifndef MSGLISTER_UTIL_H #define MSGLISTER_UTIL_H #pragma once extern "C" { NTSTATUS GetRunningProcesses(UCHAR** ppProcessBuffer); NTSTATUS ReportException(PEXCEPTION_POINTERS pExp); BOOLEAN CheckPtrPtrValidity(PVOID* ppAddress); BOOLEAN CheckEResourceValidity(); NTSTATUS GetObjectName(PVOID pObject, PUNICODE_STRING pu...
2026-04-13 01:46:05
218
925
the_stack_c
code
18dfee9b9d13fff776cec46abbf904d5
// // MHVDouble.h // MHVLib // // Copyright (c) 2017 Microsoft Corporation. All rights reserved. // // 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/LICEN...
2026-04-13 01:58:34
232
3,009
the_stack_c
code
d604f0a733a38dd236488ecbd1fd6fc2
#ifndef STRAIGHTLINE_SLP_H_ #define STRAIGHTLINE_SLP_H_ #include <algorithm> #include <cassert> #include <string> #include <list> namespace A { class Stm; class Exp; class ExpList; enum BinOp { PLUS = 0, MINUS, TIMES, DIV }; // some data structures used by interp class Table; class IntAndTable; class Stm { public: virt...
2026-04-13 01:43:26
942
1,057
the_stack_c
code
2ee971a3eb50307d311c2bd773eb0c0d
#pragma once namespace metternich { enum class government_type_group { monarchy, republic, theocracy, tribe }; inline government_type_group string_to_government_type_group(const std::string &str) { if (str == "monarchy") { return government_type_group::monarchy; } else if (str == "republic") { return government_type_gr...
2026-04-13 02:00:13
290
1,242
the_stack_java
code
bbbf72da669f9b0ec478e47c9a7ef63d
package io.github.robwin; import io.github.resilience4j.circuitbreaker.CircuitBreakerRegistry; import io.github.resilience4j.circuitbreaker.monitoring.health.CircuitBreakerHealthIndicator; import io.prometheus.client.spring.boot.EnablePrometheusEndpoint; import io.prometheus.client.spring.boot.EnableSpringBootMetricsCo...
2026-04-12 20:40:23
283
361
the_stack_java
code
6a521da7d27386e2cb6072a422ce3889
package ga.linkzz; import java.text.ParseException; /** * DateFormatter类是非线程安全的。使用构造函数创建一个线程安全的DateFormatter对象,并输出日期,如“01-Jan-1970”。 * */ public class Question2 { public static void main( String[] args ) throws ParseException { ThreadLocalDateFormatter formatter = new ThreadLocalDateFormatter(); String date = formatter...
2026-04-12 20:28:56
131
5,082
the_stack_c
code
a12c0c0aa43df18c15ebc5b1d78b009a
/* A simple event-driven programming library. Originally I wrote this code * for the Jim's event-loop (Jim is a Tcl interpreter) but later translated * it in form of a library for easy reuse. * * Copyright (c) 2006-2012, Salvatore Sanfilippo <antirez at gmail dot com> * All rights reserved. * * Redistribution and use i...
2026-04-13 01:54:59
1,391
1,471
the_stack_java
code
aa455901dc93a5a93aaaa1661b91c24f
/* * Copyright (c) 2014-2015 Spotify AB * * 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/LICENSE-2.0 * * Unless required by applicable law or agreed to in wr...
2026-04-12 20:22:01
395
1,279
the_stack_java
code
7f9461747bbb87a3c209b885fc02299b
/** * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not u...
2026-04-12 20:23:28
308
888
the_stack_java
code
da96571f4346ad449c2a3ba0dc621bcc
package com.yhy.simple.pigeon.starter; import com.yhy.http.pigeon.starter.annotation.EnablePigeon; import com.yhy.http.pigeon.starter.annotation.PigeonHeader; import com.yhy.http.pigeon.starter.annotation.PigeonInterceptor; import com.yhy.simple.pigeon.starter.remote.interceptor.GlobalInterceptor; import com.yhy.simple...
2026-04-12 20:43:06
246
1,653
the_stack_c
code
bc74b3db593b1e6d2c5938c7b0e0fa0a
/* Copyright (C) 2009-2010 ProFUSION embedded systems Copyright (C) 2009-2012 Samsung Electronics This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your o...
2026-04-13 01:42:09
493
4,041
the_stack_c
code
78b5585ca41350405a819504032fb9d4
/* ============================================================================== This file is part of the JUCE library. Copyright (c) 2017 - ROLI Ltd. JUCE is an open source library subject to commercial or open-source licensing. The code included in this file is provided under the terms of the ISC license http://www....
2026-04-13 01:49:50
1,091
14,420
the_stack_c
code
c67c82539b155c0f372dd9cafd6856ba
/* SPDX-License-Identifier: GPL-2.0 */ /****************************************************************************** * * Copyright(c) 2016 - 2017 Realtek Corporation. * * This program is free software; you can redistribute it and/or modify it * under the terms of version 2 of the GNU General Public License as * publi...
2026-04-13 01:57:15
6,286
696
the_stack_java
code
af77f622f0dd2c566cdf9fe092e234b8
package shoppingapp.boundary.internal.domain; public class PurchaseOrder extends ProductContainer { private ShippingInformation shippingInformation; private PaymentDetails paymentDetails; public PurchaseOrder() { super(); shippingInformation = new ShippingInformation(); paymentDetails = new PaymentDetails(); } public S...
2026-04-12 20:32:09
120
2,866
the_stack_c
code
ad14aa46cf4161df0608929132228b5d
// Copyright 2017 Emilie Gillet. // // Author: Emilie Gillet (emilie.o.gillet@gmail.com) // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitatio...
2026-04-13 01:53:52
813
3,212
the_stack_java
code
f41539ef9405711dfbde087d7727f9e5
package uk.mario.enemies; import city.cs.engine.BodyImage; import city.cs.engine.BoxShape; import city.cs.engine.StaticBody; import uk.mario.listeners.Enemy_collision_detector; import java.util.ArrayList; import uk.mario.levels.Level; import org.jbox2d.common.Vec2; /** * Static enemies for the game, there are different...
2026-04-12 20:24:24
970
256
the_stack_java
code
d4aebeec2e306004ab432dea58f32634
package space.bbkr.decker.game.gizmo; import space.bbkr.decker.game.Run; import net.minecraft.util.math.BlockPos; public abstract class TickingGizmo extends Gizmo { public int getTickRate() { return 20; } public abstract void tick(Run run, BlockPos pos); }
2026-04-12 20:33:59
74
703
the_stack_c
code
d4a7342541fe9a36943e4340ea3722a3
#ifndef C0P_PARAM_OBJECTS_SURFER__US_15O58__SURFTIMECONST_4O0__REORIENTATIONTIME_0O5_GROUP_HOMOGENEOUS_MEMBER_AGENT_ACTIVE_PASSIVE_SPHEROID_PARAMETERS_H #define C0P_PARAM_OBJECTS_SURFER__US_15O58__SURFTIMECONST_4O0__REORIENTATIONTIME_0O5_GROUP_HOMOGENEOUS_MEMBER_AGENT_ACTIVE_PASSIVE_SPHEROID_PARAMETERS_H #pragma once /...
2026-04-13 02:08:36
240
332
starcoderdata
code
b8e3cf53972ae7871e460aca71d37bdc
<filename>Xbox360 Controller Bus/Trace.h /*++ Module Name: Trace.h Abstract: Header file for the debug tracing related function defintions and macros. Environment: Kernel mode --*/ #ifndef _TRACE_H_ #define _TRACE_H_ #include <ntddk.h> #define NTSTRSAFE_LIB #include <ntstrsafe.h> VOID Trace( _In_ PCCHAR DebugMessage, ....
2026-04-07 00:35:27
99
4,601
the_stack_java
code
60e0ef4d994967db6ce4196efb180642
package com.suteng.shiro.business.service.impl; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; import com.suteng.shiro.business.entity.Resources; import com.suteng.shiro.business.entity.User; import com.suteng.shiro.business.service.ShiroService; import com.suteng.shiro.business.service.Sy...
2026-04-12 20:24:47
1,595
4,339
the_stack_c
code
a695b3cbd01997ddf95ccbd6ba28fce7
// SPDX-License-Identifier: GPL-2.0 /* Copyright (c) 2020 Facebook */ #include <linux/bpf.h> #include <stdint.h> #include <bpf/bpf_helpers.h> #include <bpf/bpf_core_read.h> char _license[] SEC("license") = "GPL"; /* fields of exactly the same size */ struct test_struct___samesize { void *ptr; unsigned long long val1; u...
2026-04-13 01:59:33
1,535
236
starcoderdata
code
d40041a6ea54fdef95566fcf3d0e2f62
package com.example.android_bpg_client; public class DecoderWrapper { public static native int fetchDecodedBufferSize(byte[] encBuffer, int encBufferSize); public static native byte[] decodeBuffer(byte[] encBuffer, int encBufferSize); }
2026-04-07 00:14:34
57
2,180
the_stack_java
code
f9bcb08f00c9e08c7a440ea0fa8b929b
// ------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. // ------------------------------------------------------------------------------ packag...
2026-04-12 20:14:36
494
3,263
the_stack_java
code
a48d79ee05a4f3e8d79afc3f76a6f463
/* * Jacob_'s Capture the Flag for Minecraft Classic and ClassiCube * Copyright (c) 2010-2014 Jacob Morgan * Based on OpenCraft v0.2 * * OpenCraft License * * Copyright (c) 2009 Graham Edgecombe, S�ren Enevoldsen and Brett Russell. * All rights reserved. * * Distribution and use in source and binary forms, with or with...
2026-04-12 20:18:16
799
2,722
the_stack_c
code
9a808fbde0fd7c361cf5eee27b8a4dfc
/* ################################################################### ** This component module is generated by Processor Expert. Do not modify it. ** Filename : dmaController1.c ** Project : ControlBoard_CORE ** Processor : S32K116_48 ** Component : edma ** Version : Component SDK_S32K116_00, Driver 01.00, CPU db: 3.0...
2026-04-13 01:40:36
846
6,687
the_stack_java
code
0473303756bbde07412cd3bcebff13af
package org.graalvm.vm.trcview.data; import java.util.Deque; import java.util.HashSet; import java.util.LinkedList; import java.util.Set; import org.graalvm.vm.trcview.analysis.ComputedSymbol; import org.graalvm.vm.trcview.analysis.memory.MemoryNotMappedException; import org.graalvm.vm.trcview.analysis.type.Architectur...
2026-04-12 20:38:23
1,977
3,547
the_stack_c
code
868d272c0bc1a2d222e3c9b0957158ab
/** @file * Copyright (c) 2019, Arm Limited or its affiliates. All rights reserved. * SPDX-License-Identifier : Apache-2.0 * * 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.apach...
2026-04-13 02:04:59
1,392
1,895
the_stack_java
code
146ee39533e4bd9a05530024ed10dce9
/** * Copyright (c) 2011-2013, kidzhou 周磊 (zhouleib1412@gmail.com) * * 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/LICENSE-2.0 * * Unless required by applic...
2026-04-12 20:38:01
505
2,391
the_stack_java
code
813724a5617146d82d113a5c74245e24
package com.qunar.im.ui.view.zxing.decode; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.text.TextUtils; import com.google.zxing.BinaryBitmap; import com.google.zxing.ChecksumException; import com.google.zxing.DecodeHintType; import com.google.zxing.FormatException; import com.go...
2026-04-12 20:29:12
713
930
starcoderdata
code
10d0d7d1cbdcb3352fed6193d5937f61
<reponame>zlavallee/appengine-spring-boot package zlavallee.appengine.tasks.core; import org.slf4j.Logger; import org.slf4j.LoggerFactory; public abstract class AbstractBaseTaskSubmissionService implements TaskSubmissionService { private static final Logger logger = LoggerFactory.getLogger(AbstractBaseTaskSubmissionSer...
2026-04-07 00:10:19
215