lang
stringclasses
10 values
seed
stringlengths
5
2.12k
java
/** Copyright © 2020 <NAME> (<EMAIL>) 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 License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
java
for(int i = 0; i < blocks.length; i++) { pq.add(blocks[i]); } while(pq.size() > 1) { int x = pq.poll(); int y = pq.poll(); pq.offer(y + split); } return pq.poll();
java
// */ // String actionName() default ""; // // /** // * action index // */ // int index() default 0;
java
final HashMap<String, InputStream> mockStreamMap = TestUtilities.createMockStreamMap(); final List<FileWithMetadata> mockListFileWithMetadata = TestUtilities.creatMockListFileWithMetadata(); @Test public void testCreateCustomResolverOptions() throws Throwable { LocationInput locationInputModel = new LocationInput.Builder() .subnetCrn("crn:v1:bluemix:public:is:us-south-1:a/01652b251c3ae2787110a995d8db0135::subnet:0716-b49ef064-0f89-4fb1-8212-135b12568f04")
java
static ImmutableJWTAuthority.Builder builder() { return ImmutableJWTAuthority.builder(); } }
java
@Bean(BeanIds.AUTHENTICATION_MANAGER) @Override public AuthenticationManager authenticationManagerBean() throws Exception { return super.authenticationManagerBean(); } @Override protected void configure(HttpSecurity http) throws Exception { http.cors().and().sessionManagement().sessionCreationPolicy(SessionCreationPolicy.STATELESS).and().csrf().disable() .formLogin().disable().httpBasic().disable().exceptionHandling()
java
title = json.optString("title", ""); author = json.optString("author", ""); contact = json.optString("contact", ""); homepage = json.optString("homepage", ""); description = json.optString("description", ""); JSONArray dependenciesJson = json.getJSONArray("dependencies"); for (int i = 0; i < dependenciesJson.length(); i++) { String depString = dependenciesJson.getString(i); String[] depSplit = depString.split("\\s");
java
String fieldTypes[] = new String[inputFieldTypes.length + 1]; for(int i=0;i<inputFieldNames.length;i++){ fieldNames[i]=inputFieldNames[i]; fieldTypes[i]=inputFieldTypes[i]; } fieldNames[inputFieldNames.length] = "_accumulator"; fieldTypes[inputFieldNames.length] = "Object"; expressionWrapper.getValidationAPI().init(fieldNames,fieldTypes);
java
private int count; /** * User history. */ @Expose @SerializedName("history") private List<UserHistory> history;
java
public double calcularMagnitud() { return Math.sqrt(Math.pow(real, 2.0) + Math.pow(imaginario, 2.0)); } public double calcularArgumento() { return Math.atan2(imaginario, real); } public Complejo conjugar() { return new Complejo(real, (-1) * imaginario); }
java
import android.os.Bundle; import android.view.View; public class MainActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); findViewById(R.id.buttonManaged).setOnClickListener(new View.OnClickListener() {
java
return plan.tested; } } class Doctor extends Profession { public int treat(Patient patient) {
java
*/ final class RunnableWorkflowImpl extends Workflow { private final Runnable runnable; public RunnableWorkflowImpl(Runnable runnable) { this.runnable = runnable; } public void run() { runnable.run();
java
public /* synthetic */ C2875X(WSWidget wSWidget) { this.f6129a = wSWidget; } public final Object call(Object obj) { WSWidget wSWidget = this.f6129a; WSWidgetsUtils.m7507b(wSWidget, (ListAppCoinsCampaigns) obj); return wSWidget; } }
java
@Transaction(TransactionIsolationLevel.SERIALIZABLE) default long nextValue(String tableName, String columnName) { long nextValue = selectNextValue(tableName, columnName); updateNextValue(tableName, columnName); return nextValue; } default int getAccountId() { return (int)nextValue("account", "account_id"); } default long getPostingId() { return nextValue("posting", "posting_id"); } default long getStatementId() { return nextValue("statement", "statement_id");
java
} } catch (Exception e) { } return th; }
java
} ); wViewData.addListener( SWT.Selection, new Listener() { public void handleEvent( Event e ) { viewData(); } } );
java
/** * shiro登录的realm * @author 管雷鸣 * */ public class CustomRealm extends AuthorizingRealm { @Resource private RoleService roleService; @Resource private SqlService sqlService;
java
public CodeableConcept getItemCodeableConcept() { return itemCodeableConcept; } public Reference<Resource> getItemReference() { return itemReference;
java
package com.jodb.util; import java.lang.reflect.Field; import java.lang.reflect.Modifier; import java.util.ArrayList; import java.util.List; /**
java
public class Test1 { public void foo() { new AACl<caret> } }
java
/** * 主要实现对back事件的监听。在评论的时候,点击返回键,需要同时隐藏软键盘并且让EditTextk控件消失。 */ public class CommentEditText extends EditText { private EditTextBackEventListener mListener;
java
public class Max { /** * @author <NAME> * @version 1.1 * @scince 26.11.2018 */ public int max(int first, int second) { return first >= second ? first : second;
java
} } } return result; } private static MessageEntity parseJavadocComment(JavadocComment javadocComment, GeneratorParams generatorParams) throws Exception { List<JavadocBlockTag> blockTags = javadocComment.parse().getBlockTags(); MessageEntity messageEntity = new MessageEntity(); for (JavadocBlockTag blockTag : blockTags) { //tagValue如果有换行将其合并为一行 String tagValue = blockTag.getContent().getElements().stream()
java
} public Vec2 notEqual(Vec2 b) { return Glm.notEqual((Vec2) this, b, (Vec2) this); } public Vec2 notEqual_(Vec2 b) { return Glm.notEqual((Vec2) this, b, new Vec2()); } public Vec2 notEqual(Vec2 b, Vec2 res) { return Glm.notEqual((Vec2) this, b, res); } }
java
} public Company getCompanyByContactId(int contractId) throws AcceloException {
java
boolean bookingPossible = false; outer:for(Coach coach: bookingRequest.getTrain().getCoachList()) { for(Cabin cabin: coach.getCabinList()) { for(Seat seat: cabin.getSeatList()) { if(!seat.isOccupied()) { answerSeats.add(seat); if(answerSeats.size() == bookingRequest.getNumberOfSeats()) { bookingPossible = true;
java
return new FailMessage(ErrorStatus.HERO_NOT_ENOUGH_HERO.getCode(), ErrorStatus.HERO_NOT_ENOUGH_HERO.getMsg()); Hero id1 = deleteHeroes.remove(0); Hero id2 = deleteHeroes.remove(0); heroes.remove(id1); heroes.remove(id2); heroMapper.deleteById(id1.getId()); heroMapper.deleteById(id2.getId()); mainHero.setStar(mainHero.getStar() + 1); HeroStarUpResponse heroStarUpResponse = new HeroStarUpResponse(); heroStarUpResponse.setHero(mainHero); log.debug("hero {} starup, {} and {} be delete", mainHero, id1, id2); return heroStarUpResponse;
java
import com.omerozer.knit.KnitResponse; /** * Created by omerozer on 2/4/18. */ public interface Generator0<K> extends ValueGenerator { KnitResponse<K> generate();
java
public enum RecipeCategory { PLAT_PRINCIPAL ("Plat principal"), DESSERT ("Dessert"), SAUCE ("sauce") ; private String label; RecipeCategory(String label) { this.label = label;
java
if (!PhysicalClusterMetadataManager.isTopicExist(physicalClusterId, topicName)) { return Result.buildFrom(ResultStatus.TOPIC_NOT_EXIST); } return new Result<>(TopicModelConverter.convert2TopicBrokerVO( physicalClusterId, topicService.getTopicBrokerList(physicalClusterId, topicName)) ); }
java
try(PrintStream ps = new PrintStream(outFileName)) { ps.println( comment.toString()); } catch (FileNotFoundException e) { log.error("Couldn't write comment file.", e); } } private String createDataFile(int id) {
java
return new Future<T> () { Thread t; T result; ExecutionException e; // constructor block { t = new Thread(new Runnable() { @Override public void run() { try { result = task.call();
java
* <p>S &rarr; method name | (S) | S &amp;&amp; S | S || S * * <p>That is, the permitted elements are method names, parentheses, and the strings "&amp;&amp;" * and "||". "&amp;&amp;" has higher precedence than "||", following standard Java operator * semantics. */ @Retention(RetentionPolicy.RUNTIME) @Target({ElementType.TYPE_USE, ElementType.TYPE_PARAMETER}) @SubtypeOf({CalledMethodsTop.class}) public @interface CalledMethodsPredicate { String value(); }
java
/** * */ public class InvokeIMessage implements IMessage { private final int call_id; private final int method_id; private final Object[] args; private final int object_id; private final String persistent_name;
java
@javax.xml.bind.annotation.XmlSchema( namespace = "http://psidev.info/psi/pi/mzQuantML/1.0.0", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED) package uk.ac.liv.pgb.jmzqml.model.mzqml;
java
package cn.mycookies.test08proxy.demo2; /** * 1. 定义接口,为了使代理被代理对象看起来一样。当然这一步完全可以省略 * * @author <NAME> * @date 2019-11-23 15:58 **/ public interface IOrderService { /** * 保存订单接口 * @param orderInfo 订单信息 */ void saveOrder(String orderInfo) throws InterruptedException;
java
/** * Stores data about the containing OSGi bundle (static bundle without activator). * * @author <NAME> */ public class VilBundleId { /** * Stores the bundle ID. */ public static final String ID = "de.uni_hildesheim.sse.vil.buildlang";
java
DynamicDataSourceHolder.setDataSourceType(dataSourceType); try { return joinPoint.proceed(); } catch (Exception e) { throw e; } finally { logger.info("切换为默认的主数据库!"); DynamicDataSourceHolder.setDataSourceType(DynamicDataSourceType.secondary.getValue());
java
Document doc = db.parse(new ByteArrayInputStream(DATA.getBytes("UTF8"))); NodeList dataToEncrypt = doc.getElementsByTagName("user"); XMLCipher dataCipher = XMLCipher.getInstance(XMLCipher.TRIPLEDES); dataCipher.init(XMLCipher.ENCRYPT_MODE, secretKey); for (int i = 0; i < dataToEncrypt.getLength(); i++) { dataCipher.doFinal(doc,(Element) dataToEncrypt.item(i), true); } // Check that user content has been removed Element user = (Element) dataToEncrypt.item(0); Node child = user.getFirstChild();
java
public static void main(String[] args) { } }
java
return em.createQuery(selectAll(Item.class)).getResultList(); } @Transactional public void persist(Item item) { em.persist(item); }
java
/* */ /* */ public static ProjectBaseSettingDTO convertPBS2PBSDTO(ProjectBaseSetting obj) { /* 693 */ ProjectBaseSettingDTO dto = new ProjectBaseSettingDTO(); /* 694 */ dto.setIntentionCheckProcess(obj.getIntentionCheckProcess()); /* 695 */ dto.setListingCheckProcess(obj.getListingCheckProcess()); /* 696 */ dto.setListingJsProportion(obj.getListingJsProportion()); /* 697 */ dto.setListingJyProportion(obj.getListingJyProportion());
java
) @ActionRegistration( displayName = "#CTL_CompareChanges", iconBase = R.IMAGE_COMPARE, popupText = "Compare Changes" ) @ActionReferences({ @ActionReference(path = "Menu/Run", position = 2), @ActionReference(path = "Toolbars/Run", position = 10, separatorAfter = 20),})
java
public LocalUaaRestTemplate(OAuth2ProtectedResourceDetails resource) { super(resource); } public LocalUaaRestTemplate(OAuth2ProtectedResourceDetails resource, OAuth2ClientContext context) { super(resource, context); }
java
.move( new Move( "d1", "h5" ) ) //realistic result of game -> xboard sends result .customWinboardResponse( "result 1-0 {White wins}" ) .play(); verify( builder.getOpponent(), never() ).opponentMoved( Move.RESIGN ); } @Test public void noCheckmateNoFalseInforming() { //implementing fool's mate final Player opponent = mock( Player.class );
java
import java.net.URL; import java.util.*; import java.util.concurrent.*; import java.util.concurrent.atomic.AtomicInteger; /** * @author dcollins * @version $Id: ESGController.java 13375 2010-05-05 23:43:39Z dcollins $ */ public class ESGController implements PropertyChangeListener {
java
* @since 10/14/16 */ public class TestMSON { public static void main ( String[] args ) throws JSONException
java
* fraction of requests, adding a custom {@code @Traced} annotation would apply to that subset. For * example, if you have a JAX-RS method, it is already qualified by method and likely path. A user * can add and inspect their own grouping annotation to override whatever the default rate is. * * <p>Under the scenes, a map of samplers by method is maintained. The size of this map should not * be a problem when it directly relates to declared methods. For example, this would be invalid if * annotations were created at runtime and didn't match. * * @param <M> The type that uniquely identifies this method, specifically for tracing. Most often a * trace annotation, but could also be a {@link java.lang.reflect.Method} or another declarative * reference such as {@code javax.ws.rs.container.ResourceInfo}. */ public final class DeclarativeSampler<M> { public static <M> DeclarativeSampler<M> create(RateForMethod<M> rateForMethod) { return new DeclarativeSampler<>(rateForMethod);
java
<gh_stars>0 import java.io.IOException; import org.apache.hadoop.io.IntWritable; import org.apache.hadoop.io.LongWritable; import org.apache.hadoop.io.NullWritable; import org.apache.hadoop.io.Text; import org.apache.hadoop.mapreduce.Mapper; public class SortMapper extends Mapper<LongWritable, Text, IntWritable, NullWritable> {
java
.commit(); } public static String getLanguage(Context context) { return context.getSharedPreferences(NAME, Context.MODE_PRIVATE) .getString(VALUE_LANG, "en"); } public static boolean setLanguage(Context context, String code) { return context.getSharedPreferences(NAME, Context.MODE_PRIVATE) .edit() .putString(VALUE_LANG, code) .commit(); }
java
throw new DataSinkDefinitionException( "Must use @Put with non-static methods only! Tried to use with " + element.getSimpleName() + ", which is static."); } final ExecutableType method = (ExecutableType)element.asType(); final Types types = processingEnv.getTypeUtils(); final Elements elements = processingEnv.getElementUtils();
java
<gh_stars>1-10 package de.lathspell.test.rest; @javax.ws.rs.ApplicationPath("/beta/rest/") public class RestConfigBeta extends RestConfig { }
java
params = { @JinjavaParam( value = "exp_test", type = "name of expression test", desc = "Specify which expression test to run for making the selection", required = true ) },
java
container, false); // get references to widgets taskListView = (ListView) view.findViewById (R.id.taskListView);
java
* The intended usage will be to wrap some channel implementation's state getter. * For example: * <pre> * SocketChannel chanel = ... * PacketLoopCondition condition = channel::isConnected; * </pre> * * @return {@code true} to continue reading packet data from a channel.
java
* if the method is given a parameter of something besides * crv of civic, it will return null */ public class HondaFactory { public Car makeCar(String whatCar, String color) { if("civic".equals(whatCar)) { return new Car(2020,"Honda", color); }else if("crv".equals(whatCar)) { return new Car(2020,"crv",color); } return null;
java
Deployment failDeployment = ModelsGenerator.createDeployment(testService, testEnvironment, testDeployableVersion); assertThatThrownBy(() -> apolloTestClient.addDeployment(failDeployment)).isInstanceOf(ApolloNotAuthorizedException.class); } @Test public void testDeploymentWithBroadDenyAndSpecificAllow() throws ApolloClientException, ScriptException, IOException, SQLException { ApolloTestClient apolloTestClient = Common.signupAndLogin();
java
throw new AccountNotFoundException(); } else { SessionDto dto = new SessionDto(); LOG.log(Level.INFO, "Session fetched for {0}", token); AccountEntity accountEntity = accountRepository.findOne(UUID.fromString(token));
java
*/ @Test public void testGetAsteroidId() { instance.setId(1); assertEquals(1, instance.getId());
java
public static final String TOPIC = "/topic/node/status"; @Override public String getTopic() { return TOPIC; } @Override public JavaType getValType() { return valType; }
java
*/ public Long getOfferNumber() { return this.offerNumber; } /** * @param offerNumber new value of {@link #getofferNumber}. */ public void setOfferNumber(Long offerNumber) { this.offerNumber = offerNumber; }
java
* Thrown if the platform does not support UTF-8 */ public HttpEntity getLoginEntity() throws UnsupportedEncodingException { List<NameValuePair> nvps = new ArrayList<>(); nvps.add(new BasicNameValuePair(this.loginUserField, this.username)); nvps.add(new BasicNameValuePair(this.loginPasswordField, new String(this.password))); return new UrlEncodedFormEntity(nvps, "UTF-8"); } /**
java
* In particular, they play if the temperature * is between 60 and 90 (inclusive). * Unless it is summer, then the upper limit is 100 * instead of 90. Given an int temperature * and a boolean isSummer, return true if the squirrels play * and false otherwise. *
java
import android.content.res.TypedArray; import android.graphics.Bitmap; import android.graphics.drawable.BitmapDrawable; import android.graphics.drawable.Drawable; import android.os.Build; import android.os.Handler; import android.os.Message; import androidx.viewpager.widget.PagerAdapter; import androidx.viewpager.widget.ViewPager; import android.util.AttributeSet; import android.util.Log; import android.view.LayoutInflater; import android.view.MotionEvent; import android.view.View;
java
/** * Utility for MD5 calculations. */ class Md5 { /** * Calculate 32 bytes length MD5 digest. * @param text input text * @return MD5 digest */ public static String getMd5(final String text) { try {
java
}; private Runnable refreshRunning = new Runnable() { public void run() { handler.sendEmptyMessage(HANDLER_MSG_LOADINGOPEN); File []children=chooseFile.listFiles(fileFilter); if(children==null){
java
.append(getPageNumber(), pageable.getPageNumber()) .append(getPageSize(), pageable.getPageSize()) .append(getSearchProperty(), pageable.getSearchProperty()) .append(getSearchValue(), pageable.getSearchValue()) .append(getOrderProperty(), pageable.getOrderProperty()) .append(getOrderDirection(), pageable.getOrderDirection()) .append(getFilters(), pageable.getFilters()) .append(getOrders(), pageable.getOrders()).isEquals(); } public int hashCode() {
java
import com.haxademic.core.draw.util.DrawUtil; import com.haxademic.core.file.FileUtil; import processing.core.PImage; public class TickerScrollerTest extends PAppletHax { public static void main(String args[]) { PAppletHax.main(Thread.currentThread().getStackTrace()[1].getClassName()); }
java
private static SMSettings smSettings = null; public synchronized SMSettings getSettings() { if ((smSettings == null) || (cacheAge < (System.currentTimeMillis() - (refreshInSeconds * 1000)))) { smSettings = splinterlandsClient.getSettings(); try { cacheAge = System.currentTimeMillis(); } catch (Exception e) { throw new RuntimeException(e); } }
java
import com.tinkerpop.blueprints.Vertex; /** * @author <NAME> (http://github.com/mikesname) * @author <NAME>
java
import android.support.v7.widget.AppCompatTextView; public class SuperText extends AppCompatTextView { private Paint backgroundColor; public SuperText(Context context) {
java
} /** * @param name the name to set */ public void setName(String name) { this.name = name; } public LocalDate getSubDate() { return subDate; } public void setSubDate(LocalDate subDate) {
java
return (Constant$Condition)Enum.valueOf(Constant$Condition.class, name); } private Constant$Condition(String var1, int var2, int... opcodes) { this(var1, var2, (Constant$Condition)null, opcodes); } private Constant$Condition(String var1, int var2, Constant$Condition equivalence) { this(var1, var2, equivalence, equivalence.opcodes); }
java
} @Test public void error() { throw new UnsupportedOperationException(); }
java
* which accompanies this distribution, and is available at * http://www.eclipse.org/org/documents/edl-v10.php. *******************************************************************************/ package org.eclipse.rdf4j.queryrender.sparql.experimental; import org.eclipse.rdf4j.query.algebra.Projection; class SerializableParsedBooleanQuery extends AbstractSerializableParsedQuery {
java
@RunWith(Parameterized.class) public class JUnit4ParameterizedTest { @Parameterized.Parameters(name = "{index}: foo({0})={1}") public static Collection<Object[]> data() { return Arrays.asList(new Object[][] {{0, 0}, {1, 1}, {2, 2}}); }
java
} @Override public Environment decrypt ( Environment environment ) { Environment environmentToDecrypt = environment; for ( EnvironmentEncryptor encryptor : environmentEncryptors ) { environmentToDecrypt = encryptor.decrypt ( environmentToDecrypt ); } return environmentToDecrypt;
java
public void run() { // first set the configured request stack RequestStack.setCurrent(requestStack); try { webClient.loadStaticContentFromUrl(url, referrerUrl, charset);
java
import java.security.KeyManagementException; import java.security.NoSuchAlgorithmException; import java.security.cert.X509Certificate; /** * Created by <NAME> on 15 Nov 2016. */ public class SslUtil { public static void sslTrustAll() throws NoSuchAlgorithmException, KeyManagementException { // Create a trust manager that does not validate certificate chains TrustManager[] trustAllCerts = new TrustManager[] { new X509TrustManager() { public X509Certificate[] getAcceptedIssuers() {
java
* */ public interface ImportTracker { public String getPrintClassName (String name); public void printImports (String pack, StringBuilder out); }
java
private static String[] QUERY_PARAM_BLACKLIST = { "execution", "session_code", "client_id", "tab_id", "nonce", "response_type", "response_mode", "scope", "redirect_uri", "state",
java
/** * No argument constructor for serialization. */ public UploadHelpVideoRequest() {
java
} public Integer getInvoiceStatusId() { return this.invoiceStatusId; } public void setInvoiceStatusId(Integer invoiceStatusId) { this.invoiceStatusId = invoiceStatusId;
java
/** * Creates a global mouse listener that works regardless of the GUI component * that the mouse clicks on */ private void initMouseListener() { long mouseEventMask = AWTEvent.MOUSE_EVENT_MASK; Toolkit.getDefaultToolkit().addAWTEventListener(new AWTEventListener() { @Override public void eventDispatched(AWTEvent e) { if(e.getID() == MouseEvent.MOUSE_PRESSED) { myRecordedData.add(new MousePressCommand()); } if(e.getID() == MouseEvent.MOUSE_RELEASED) {
java
public class View extends AbstractNavigationNode { /** * Construct a new view with the specified ID. * * @param id the ID of the view
java
{ m_accountMngr.signOut(); pushV(State_AccountStatusPending.class); } @Override public boolean isPerformable(StateArgs args) {
java
public static final String LEVEL_TICK = "tick"; public static final PriceLevel TICKET = new PriceLevel("tick", "tick", -1); public static final PriceLevel MIN1 = PriceLevel.valueOf(LEVEL_MIN+1); public static final PriceLevel MIN3 = PriceLevel.valueOf(LEVEL_MIN+3); public static final PriceLevel MIN5 = PriceLevel.valueOf(LEVEL_MIN+5); public static final PriceLevel MIN15 = PriceLevel.valueOf(LEVEL_MIN+15);
java
import main.Command; import main.utility.metautil.BotUtils; import sx.blah.discord.api.internal.json.objects.EmbedObject; import sx.blah.discord.handle.impl.events.guild.channel.message.MessageReceivedEvent; import sx.blah.discord.handle.obj.IEmoji; import sx.blah.discord.handle.obj.IGuild; import sx.blah.discord.util.EmbedBuilder; import java.io.IOException; import java.util.ArrayList; import java.util.HashSet; import java.util.List;
java
package com.tsmms.skoop.community; /** * Community roles a user can have. */ public enum CommunityRole { MEMBER, MANAGER }
java
import android.view.ViewGroup; import android.widget.LinearLayout; import android.widget.TextView; import com.airbnb.lottie.LottieAnimationView; import com.fesi.funda.R; import java.util.List;
java
import net.dv8tion.jda.api.entities.MessageEmbed; import org.bukkit.ChatColor; import org.bukkit.entity.Player; import org.bukkit.metadata.FixedMetadataValue; import java.awt.*; import static dev.rudrecciah.admincore.Main.plugin; public class Freeze { public static void handle(String[] contents, MessageChannel channel) { EmbedBuilder embed = new EmbedBuilder(); embed.setColor(Color.black); embed.setFooter("Admincore Freezer", "https://raw.githubusercontent.com/RudRecciah/Admin-Core/main/icons/logo.png");
java
private TransactionService txProcessor; public PreparedTx(TransactionRequestBuilder txReqBuilder, TransactionService txProcessor) { this.txReqBuilder = txReqBuilder; this.txProcessor = txProcessor; }
java
this.inventoryLabelY = this.imageHeight - 94; } @Override public void render(PoseStack poseStack, int mouseX, int mouseY, float partialTicks) { this.renderBackground(poseStack); super.render(poseStack, mouseX, mouseY, partialTicks); this.renderTooltip(poseStack, mouseX, mouseY); } @Override
java
if (retVal.length() > 0) { retVal += " "; } retVal += line.substring(startIdx, endIdx).trim(); }
java
package de.squareys.epicray.resource; public interface IResource<T> { /** * Load resource from a file * * @param filename
java
"where c1.id not in ( " + "select a1.sourceFk " + "from Assoc as a1 " + "where a1.type = 3 " + ")").list(); Cell orfanClass = (Cell) session.load(Cell.class, new Long(ORFANS_ID)); for(Iterator<Cell> itr2=results.iterator();itr2.hasNext();){ Cell obj = itr2.next(); if(obj.getId()==1) continue; listEl.addElement("li").addText(obj.getIdName(0)); makeAssoc(obj, PARENT_ASSOC, orfanClass, session); }
java
import edu.aabu.springjpa.model.Country; import org.springframework.data.repository.CrudRepository; /** * * @author heba */ public interface CountryRepository extends CrudRepository<Country,Integer>{
java
throw new EntityServiceNotFoundException("Entity Service not found for the class: " + entityClass); } } public static HashMap<Class, EntityService> getServices() {
java
results.put("attr1", "val1"); results.put("attr1", "val2"); results.put("attr1", "val3"); results.put("attr1", "val4"); break; } return results; }