text
stringlengths
232
16.3k
domain
stringclasses
1 value
difficulty
stringclasses
3 values
meta
dict
<|fim_suffix|> { if(parameters == null) return; for(int i = 0; i < parameters.length - 1; i += 2) setParameter(parameters[i].toString(), parameters[i + 1]); } private void post() throws IOException { boundary(); writeln("--"); os.close(); } public void post(Object[] parameters) throws IOExcept...
code_fim
hard
{ "lang": "java", "repo": "bright-composite/CompositeUtils", "path": "/main/aqua/common/web/WebTarget.java", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> /** * @return the solutionF */ public JRadioButton getSolutionF() { return solutionF; } /** * @return the solutionGroup */ public ButtonGroup getSolutionGroup() { return solutionGroup; } /** * @return the solutionPanel */ public JPanel getSolutionPanel() { return solutionPanel;...
code_fim
hard
{ "lang": "java", "repo": "luiscarabe/PADSOFv2", "path": "/practica3/src/es/uam/eps/padsof/p4/inter/exerciseTeacher/ModifyQuestionTFPanel.java", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> /** * @return the jp */ public JPanel getJp() { return jp; } /** * @return the firstLabel */ public JLabel getFirstLabel() { return firstLabel; } /** * @return the titleLabel */ public JLabel getTitleLabel() { return titleLabel; } /** * @return the titleField */ public ...
code_fim
hard
{ "lang": "java", "repo": "luiscarabe/PADSOFv2", "path": "/practica3/src/es/uam/eps/padsof/p4/inter/exerciseTeacher/ModifyQuestionTFPanel.java", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: luiscarabe/PADSOFv2 path: /practica3/src/es/uam/eps/padsof/p4/inter/exerciseTeacher/ModifyQuestionTFPanel.java /** * @author Luis Carabe * @author Alejo Polania */ package es.uam.eps.padsof.p4.inter.exerciseTeacher; import java.awt.*; import java.awt.event.ActionListener; import java.awt.font...
code_fim
hard
{ "lang": "java", "repo": "luiscarabe/PADSOFv2", "path": "/practica3/src/es/uam/eps/padsof/p4/inter/exerciseTeacher/ModifyQuestionTFPanel.java", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: LA-Architecture-Club/clean-architecture-ochre path: /src/main/java/io/pivotal/pulsedomain/CreateProjectUseCase.java package io.pivotal.pulsedomain; public class CreateProjectUseCase { <|fim_suffix|> } public ProjectEntity createFrom(String name, String code) { return null; ...
code_fim
medium
{ "lang": "java", "repo": "LA-Architecture-Club/clean-architecture-ochre", "path": "/src/main/java/io/pivotal/pulsedomain/CreateProjectUseCase.java", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> return null; } }<|fim_prefix|>// repo: LA-Architecture-Club/clean-architecture-ochre path: /src/main/java/io/pivotal/pulsedomain/CreateProjectUseCase.java package io.pivotal.pulsedomain; public class CreateProjectUseCase { public CreateProjectUseCase(ProjectRepository projectRepository...
code_fim
medium
{ "lang": "java", "repo": "LA-Architecture-Club/clean-architecture-ochre", "path": "/src/main/java/io/pivotal/pulsedomain/CreateProjectUseCase.java", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> public Object getTargetSelector() throws ReflectiveOperationException { return AccessUtil.setAccessible(Reflection.nmsClassResolver.resolve("EntityInsentient").getDeclaredField("targetSelector")).get(getNpcEntity()); } public Collection<?> getTargetListB() throws ReflectiveOperationException { ret...
code_fim
hard
{ "lang": "java", "repo": "InventivetalentDev/CompactNPCLib", "path": "/API/src/main/java/org/inventivetalent/npclib/npc/living/insentient/NPCInsentientAbstract.java", "mode": "spm", "license": "MIT", "source": "the-stack-v2" }
<|fim_prefix|>// repo: KostasDkv/admin_crud path: /src/java/entities/Unit.java package entities; import java.io.Serializable; import javax.persistence.Basic; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import jav...
code_fim
hard
{ "lang": "java", "repo": "KostasDkv/admin_crud", "path": "/src/java/entities/Unit.java", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> public void setUnitName(String unitName) { this.unitName = unitName; } @Override public int hashCode() { int hash = 0; hash += (unitId != null ? unitId.hashCode() : 0); return hash; } @Override public boolean equals(Object object) { // ...
code_fim
hard
{ "lang": "java", "repo": "KostasDkv/admin_crud", "path": "/src/java/entities/Unit.java", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> this.unitName = unitName; } @Override public int hashCode() { int hash = 0; hash += (unitId != null ? unitId.hashCode() : 0); return hash; } @Override public boolean equals(Object object) { // TODO: Warning - this method won't work in the c...
code_fim
hard
{ "lang": "java", "repo": "KostasDkv/admin_crud", "path": "/src/java/entities/Unit.java", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> return super.left.interpreter(var) - super.right.interpreter(var); } }<|fim_prefix|>// repo: chaochaogu/design-pattern path: /src/main/java/com/chaochaogu/design/pattern/interpreter/example/SubExpression.java package com.chaochaogu.design.pattern.interpreter.example; import java.util.HashMap...
code_fim
hard
{ "lang": "java", "repo": "chaochaogu/design-pattern", "path": "/src/main/java/com/chaochaogu/design/pattern/interpreter/example/SubExpression.java", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> /** * 左右两个表达式相减 * * @param var * @return */ @Override public int interpreter(HashMap<String, Integer> var) { return super.left.interpreter(var) - super.right.interpreter(var); } }<|fim_prefix|>// repo: chaochaogu/design-pattern path: /src/main/java/com/cha...
code_fim
medium
{ "lang": "java", "repo": "chaochaogu/design-pattern", "path": "/src/main/java/com/chaochaogu/design/pattern/interpreter/example/SubExpression.java", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: chaochaogu/design-pattern path: /src/main/java/com/chaochaogu/design/pattern/interpreter/example/SubExpression.java package com.chaochaogu.design.pattern.interpreter.example; import java.util.HashMap; /** * 减法解析器 * * @author chaochao Gu * @date 2020/9/16 */ public class SubExpression exte...
code_fim
hard
{ "lang": "java", "repo": "chaochaogu/design-pattern", "path": "/src/main/java/com/chaochaogu/design/pattern/interpreter/example/SubExpression.java", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: Lucas19932020/Reposit-rio-Java-Eclipse path: /unidade_01/src/uscs/Atividade_36.java package uscs; public class Atividade_36 { <|fim_suffix|> int[] x = new int[5]; int[] y = new int[8]; for(int i=1; i<x.length; i++) { x[i] = x[i -1] + 2; y[i] = x[i]; } for(int i=0; i<y.length; ...
code_fim
easy
{ "lang": "java", "repo": "Lucas19932020/Reposit-rio-Java-Eclipse", "path": "/unidade_01/src/uscs/Atividade_36.java", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> int[] x = new int[5]; int[] y = new int[8]; for(int i=1; i<x.length; i++) { x[i] = x[i -1] + 2; y[i] = x[i]; } for(int i=0; i<y.length; i++) { System.out.print(y[i] + " "); } } } //A sa�da �: 0 2 4 6 8 0 0 0<|fim_prefix|>// repo: Lucas19932020/Reposit-rio-Java-Eclipse path: /unid...
code_fim
easy
{ "lang": "java", "repo": "Lucas19932020/Reposit-rio-Java-Eclipse", "path": "/unidade_01/src/uscs/Atividade_36.java", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> return 1 / (1 - entry); } }<|fim_prefix|>// repo: boloye/TravelCompanion path: /TravelCompanionApp/app/src/main/java/com/example/voyage/api/tools/ia/decition/SigmoideDecition.java package com.example.voyage.api.tools.ia.decition; public class SigmoideDecition extends AbstractDecition{ <|fim_middle|>p...
code_fim
easy
{ "lang": "java", "repo": "boloye/TravelCompanion", "path": "/TravelCompanionApp/app/src/main/java/com/example/voyage/api/tools/ia/decition/SigmoideDecition.java", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: boloye/TravelCompanion path: /TravelCompanionApp/app/src/main/java/com/example/voyage/api/tools/ia/decition/SigmoideDecition.java package com.example.voyage.api.tools.ia.decition; <|fim_suffix|>public double result(double entry) { return 1 / (1 - entry); } }<|fim_middle|>public class Sigmoid...
code_fim
easy
{ "lang": "java", "repo": "boloye/TravelCompanion", "path": "/TravelCompanionApp/app/src/main/java/com/example/voyage/api/tools/ia/decition/SigmoideDecition.java", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> public Op op; public Unary() { op = Op.not; } public String toString () { return "not"; } public Unary clone() { return new Unary(); } }<|fim_prefix|>// repo: MR-P17/larva-rv-tool path: /Other projects/LarvaLogicConv/Automata/src/newPEA/Unary.java package newPEA; ...
code_fim
easy
{ "lang": "java", "repo": "MR-P17/larva-rv-tool", "path": "/Other projects/LarvaLogicConv/Automata/src/newPEA/Unary.java", "mode": "spm", "license": "MIT", "source": "the-stack-v2" }
<|fim_suffix|> public boolean estaEntreMig(LocalTime h){ return (h.isAfter(horaIni) && h.isBefore(horaFi)); } }<|fim_prefix|>// repo: ferrveciana/BanyolesMamut path: /DuesHores.java package prop; import java.time.LocalTime; public class DuesHores { private final LocalTime horaI...
code_fim
easy
{ "lang": "java", "repo": "ferrveciana/BanyolesMamut", "path": "/DuesHores.java", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: ferrveciana/BanyolesMamut path: /DuesHores.java package prop; import java.time.LocalTime; <|fim_suffix|> private final LocalTime horaIni; private final LocalTime horaFi; public DuesHores(LocalTime hI, LocalTime hF){ horaIni=hI; horaFi=hF; } ...
code_fim
easy
{ "lang": "java", "repo": "ferrveciana/BanyolesMamut", "path": "/DuesHores.java", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> horaIni=hI; horaFi=hF; } public boolean estaEntreMig(LocalTime h){ return (h.isAfter(horaIni) && h.isBefore(horaFi)); } }<|fim_prefix|>// repo: ferrveciana/BanyolesMamut path: /DuesHores.java package prop; import java.time.LocalTime; publi...
code_fim
medium
{ "lang": "java", "repo": "ferrveciana/BanyolesMamut", "path": "/DuesHores.java", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: MelnikovAlexey/2020-06-otus-java-melnikov path: /hw09-jdbc/src/main/java/org/otus/education/jdbc/mapper/JdbcMapper.java package org.otus.education.jdbc.mapper; import java.sql.Connection; import java.util.Optional; <|fim_suffix|> long insert(T objectData, Connection connection); void u...
code_fim
easy
{ "lang": "java", "repo": "MelnikovAlexey/2020-06-otus-java-melnikov", "path": "/hw09-jdbc/src/main/java/org/otus/education/jdbc/mapper/JdbcMapper.java", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> void insertOrUpdate(T objectData, Connection connection); Optional<T> findById(Object id, Connection connection); }<|fim_prefix|>// repo: MelnikovAlexey/2020-06-otus-java-melnikov path: /hw09-jdbc/src/main/java/org/otus/education/jdbc/mapper/JdbcMapper.java package org.otus.education.jdbc.mapper...
code_fim
easy
{ "lang": "java", "repo": "MelnikovAlexey/2020-06-otus-java-melnikov", "path": "/hw09-jdbc/src/main/java/org/otus/education/jdbc/mapper/JdbcMapper.java", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> void insertOrUpdate(T objectData, Connection connection); Optional<T> findById(Object id, Connection connection); }<|fim_prefix|>// repo: MelnikovAlexey/2020-06-otus-java-melnikov path: /hw09-jdbc/src/main/java/org/otus/education/jdbc/mapper/JdbcMapper.java package org.otus.education.jdbc.mappe...
code_fim
medium
{ "lang": "java", "repo": "MelnikovAlexey/2020-06-otus-java-melnikov", "path": "/hw09-jdbc/src/main/java/org/otus/education/jdbc/mapper/JdbcMapper.java", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> articlesFacade.create(y); return "index"; } public String edit(Articles i) { articleBean.setIdArticle(i.getIdArticle()); articleBean.setDescription(i.getDescription()); articleBean.setInventory(i.getInventory()); articleBean.setPrice(i.g...
code_fim
hard
{ "lang": "java", "repo": "paumon64/RumosAcademiaJavaProject", "path": "/src/java/com/example/beans/ArticlesController.java", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: paumon64/RumosAcademiaJavaProject path: /src/java/com/example/beans/ArticlesController.java /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package com.ex...
code_fim
hard
{ "lang": "java", "repo": "paumon64/RumosAcademiaJavaProject", "path": "/src/java/com/example/beans/ArticlesController.java", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> Articles i = new Articles(articleBean.getIdArticle()); i.setDescription(articleBean.getDescription()); i.setInventory(articleBean.getIdArticle()); i.setPrice(articleBean.getPrice()); articlesFacade.edit(i); return "index"; } }<|fim_prefi...
code_fim
hard
{ "lang": "java", "repo": "paumon64/RumosAcademiaJavaProject", "path": "/src/java/com/example/beans/ArticlesController.java", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: craig-a-roach/geowx path: /ebx/src/main/java/com/metservice/beryllium/UBeryllium.java /* * Copyright 2010 Meteorological Service of New Zealand Limited all rights reserved. No part of this work may be stored * in a retrievable system, transmitted or reproduced in any way without the prior wr...
code_fim
hard
{ "lang": "java", "repo": "craig-a-roach/geowx", "path": "/ebx/src/main/java/com/metservice/beryllium/UBeryllium.java", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> @Override public final void put(JsonObject dst, String zValue) throws BerylliumHttpBadRequestException { final String ztwValue = zValue.trim(); if (ztwValue.length() == 0) { dst.putNull(pname); } else { dst.putString(pname, ztwValue); } } public DecodeRuleName(S...
code_fim
hard
{ "lang": "java", "repo": "craig-a-roach/geowx", "path": "/ebx/src/main/java/com/metservice/beryllium/UBeryllium.java", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> protected Map<Class, Class> getPropertyGraphFactoryFieldNames() { return propertyGraphFactoryFieldNames; } protected Map<Class, String> getPropertyLabelsFieldNames() { return propertyLabelsFieldNames; } protected Map<Class, String> getPropertyTitleFieldNames() { ...
code_fim
hard
{ "lang": "java", "repo": "lazarotti/kie-wb-common", "path": "/kie-wb-common-stunner/kie-wb-common-stunner-core/kie-wb-common-stunner-commons/kie-wb-common-stunner-core-common/src/main/java/org/kie/workbench/common/stunner/core/definition/adapter/binding/AbstractBindableDefinitionAdapter.java", "mode": "spm", ...
<|fim_suffix|> protected Map<Class, Set<String>> getPropertySetsFieldNames() { return propertySetsFieldNames; } protected Map<Class, Set<String>> getPropertiesFieldNames() { return propertiesFieldNames; } protected Map<Class, Class> getPropertyGraphFactoryFieldNames() { retu...
code_fim
hard
{ "lang": "java", "repo": "lazarotti/kie-wb-common", "path": "/kie-wb-common-stunner/kie-wb-common-stunner-core/kie-wb-common-stunner-commons/kie-wb-common-stunner-core-common/src/main/java/org/kie/workbench/common/stunner/core/definition/adapter/binding/AbstractBindableDefinitionAdapter.java", "mode": "spm", ...
<|fim_prefix|>// repo: Satmin13/Ejercicios-java path: /Tema 7 Arrays/Ejercicio8.java /** Ejercicio 8 Realiza un programa que pida la temperatura media que ha hecho en cada mes de un determinado año y que muestre a continuación un diagrama de barras horizontales con esos datos. Las barras del diagrama se pueden dib...
code_fim
medium
{ "lang": "java", "repo": "Satmin13/Ejercicios-java", "path": "/Tema 7 Arrays/Ejercicio8.java", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> for( i =0 ; i<12 ; i++){ System.out.println("Temperatura mes " + (i+1)); tempMes[i] = Double.parseDouble(s.nextLine()); } for( i =0 ; i<12 ; i++){ System.out.println("Temperatura mes " + (i+1)); for (double j =0 ; j<tempMes[i] ; j++) { System.out.print("*"); } Syst...
code_fim
medium
{ "lang": "java", "repo": "Satmin13/Ejercicios-java", "path": "/Tema 7 Arrays/Ejercicio8.java", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> this.path = ConfigurationHolder.getConfiguration().getModelLoader().getSettings().get("path"); } @Override public List<GenerateModel> load() { try { return new ObjectMapper().readValue(new File(path), new TypeReference<List<GenerateModel>>() {}); } catch (I...
code_fim
hard
{ "lang": "java", "repo": "pauljoo/xpanda-commons-generate", "path": "/xpanda-commons-generate-engine/src/main/java/info/xpanda/commons/generate/engine/model/local/LocalGenerateModelLoader.java", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: pauljoo/xpanda-commons-generate path: /xpanda-commons-generate-engine/src/main/java/info/xpanda/commons/generate/engine/model/local/LocalGenerateModelLoader.java package info.xpanda.commons.generate.engine.model.local; import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.j...
code_fim
medium
{ "lang": "java", "repo": "pauljoo/xpanda-commons-generate", "path": "/xpanda-commons-generate-engine/src/main/java/info/xpanda/commons/generate/engine/model/local/LocalGenerateModelLoader.java", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: w3farid/supershop path: /app/src/main/java/com/supershop/service/UserService.java package com.supershop.service; import android.content.Context; import android.text.TextUtils; import com.supershop.model.User; import com.supershop.repository.UserDatabase; import com.supershop.utils.SaveSharedPr...
code_fim
hard
{ "lang": "java", "repo": "w3farid/supershop", "path": "/app/src/main/java/com/supershop/service/UserService.java", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> boolean isValid = !TextUtils.isEmpty(username); return isValid; } private boolean validPassword(String password){ boolean isValid = !TextUtils.isEmpty(password); return isValid; } }<|fim_prefix|>// repo: w3farid/supershop path: /app/src/main/java/com/supersho...
code_fim
hard
{ "lang": "java", "repo": "w3farid/supershop", "path": "/app/src/main/java/com/supershop/service/UserService.java", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> renderStyleClass(context, arc, itemStyleClass); // Render the toolbar component, if any (we use float to keep // the toolbar on the right - or left, in RTL languages - so // it has to be rendered first) UIComponent toolbar = getFacet(detailItem, ...
code_fim
hard
{ "lang": "java", "repo": "m-y-mo/myfaces-trinidad_20165019", "path": "/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/renderkit/core/xhtml/PanelAccordionRenderer.java", "mode": "spm", "license": "Apache-2.0", "source": "the-stack-v2" }
<|fim_suffix|> protected String getLinkDisabledStyleClass() { return SkinSelectors.AF_PANELACCORDION_TITLE_LINK_DISABLED_STYLE_CLASS; } protected String getLinkEnabledStyleClass() { return SkinSelectors.AF_PANELACCORDION_TITLE_LINK_STYLE_CLASS; } protected String getDisclosedTipKey() { retu...
code_fim
hard
{ "lang": "java", "repo": "m-y-mo/myfaces-trinidad_20165019", "path": "/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/renderkit/core/xhtml/PanelAccordionRenderer.java", "mode": "spm", "license": "Apache-2.0", "source": "the-stack-v2" }
<|fim_suffix|> public String getSecData() { return secData; } public int getWidth() { return width; } public int hashCode() { int j = 0; int i; if (manifestUrl != null) { i = manifestUrl.hashCode(); } else { ...
code_fim
hard
{ "lang": "java", "repo": "cha63506/CompSecurity", "path": "/Entertainment/xfinity_source/src/com/xfinity/playerlib/model/consumable/hal/HalVideoProfile.java", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> { manifestUrl = microdatapropertyresolver.fetchLinkAsString("manifest"); secData = microdatapropertyresolver.fetchString("secData"); String s1 = microdatapropertyresolver.fetchOptionalString("height"); String s = s1; if (s1 == null) { s = "0"...
code_fim
hard
{ "lang": "java", "repo": "cha63506/CompSecurity", "path": "/Entertainment/xfinity_source/src/com/xfinity/playerlib/model/consumable/hal/HalVideoProfile.java", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: cha63506/CompSecurity path: /Entertainment/xfinity_source/src/com/xfinity/playerlib/model/consumable/hal/HalVideoProfile.java // Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov. // Jad home page: http://www.geocities.com/kpdus/jad.html // Decompiler options: braces fieldsfirst space l...
code_fim
hard
{ "lang": "java", "repo": "cha63506/CompSecurity", "path": "/Entertainment/xfinity_source/src/com/xfinity/playerlib/model/consumable/hal/HalVideoProfile.java", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> if (tags != null) { failed.put(tags, new long[] { cores, memory}); } } /** * Adds an allocation that should not be * booked on this show. * * @param Allocation */ public void skip(AllocationInterface a) { synchronized (failedAllocs)...
code_fim
hard
{ "lang": "java", "repo": "AcademySoftwareFoundation/OpenCue", "path": "/cuebot/src/main/java/com/imageworks/spcue/SortableShow.java", "mode": "spm", "license": "Apache-2.0", "source": "the-stack-v2" }
<|fim_suffix|> TextView textCitation = (TextView) findViewById(R.id.textCitation); textCitation.setText(randomCitation); } }<|fim_prefix|>// repo: hpiso/zyla path: /app/src/main/java/app/zyla/activities/SportAdivseActivity.java package app.zyla.activities; import android.graphics.drawable.Drawable...
code_fim
hard
{ "lang": "java", "repo": "hpiso/zyla", "path": "/app/src/main/java/app/zyla/activities/SportAdivseActivity.java", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_sport_adivse); RelativeLayout layout = (RelativeLayout) findViewById(R.id.activity_sport_adivse); Drawable bg = getResources().getDr...
code_fim
medium
{ "lang": "java", "repo": "hpiso/zyla", "path": "/app/src/main/java/app/zyla/activities/SportAdivseActivity.java", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: hpiso/zyla path: /app/src/main/java/app/zyla/activities/SportAdivseActivity.java package app.zyla.activities; import android.graphics.drawable.Drawable; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.widget.RelativeLayout; import android.widget.TextVie...
code_fim
hard
{ "lang": "java", "repo": "hpiso/zyla", "path": "/app/src/main/java/app/zyla/activities/SportAdivseActivity.java", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: bobdejong/School path: /Chapter09/src/exam01/ex01/Problem_25.java package exam01.ex01; public class Problem_25 { static int getNumber() { return (int)(Math.random()*45+1); } public static void main(String[] args) { int[] lotto= {0,0,0,0,0,0}; int i,k,num; char dupl=...
code_fim
medium
{ "lang": "java", "repo": "bobdejong/School", "path": "/Chapter09/src/exam01/ex01/Problem_25.java", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> if(dupl=='N') lotto[i]=num; //i++ �ٶ��� i�� �����ϰ� else { dupl='N'; i--; } } System.out.println("��÷�� �ζ� ��ȣ==>"); for(i=0;i<6;i++) { System.out.printf("%d ",lotto[i]); } } }<|fim_prefix|>// repo...
code_fim
medium
{ "lang": "java", "repo": "bobdejong/School", "path": "/Chapter09/src/exam01/ex01/Problem_25.java", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> mUploadMessage = uploadMsg; Intent i = new Intent(Intent.ACTION_GET_CONTENT); i.addCategory(Intent.CATEGORY_OPENABLE); i.setType("*/*"); Fileuploadsd.this.startActivityForResult( Intent.createChooser(i, "File Browser"), FILECHOOSER_RESULTCODE)...
code_fim
hard
{ "lang": "java", "repo": "koremandar967/ImageBasedPathFinder", "path": "/app/src/main/java/com/example/myproperty/Fileuploadsd.java", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: koremandar967/ImageBasedPathFinder path: /app/src/main/java/com/example/myproperty/Fileuploadsd.java package com.example.myproperty; import java.io.File; import java.io.FileOutputStream; import java.util.Date; import com.example.myproperty.Fileupload.SimpleChromeClient; import com.example.mypr...
code_fim
hard
{ "lang": "java", "repo": "koremandar967/ImageBasedPathFinder", "path": "/app/src/main/java/com/example/myproperty/Fileuploadsd.java", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> @Override public void onPageFinished(WebView view, String url) { // TODO Auto-generated method stub super.onPageFinished(view, url); } @Override public void onReceivedError(WebView view, int errorCode, String descriptio...
code_fim
hard
{ "lang": "java", "repo": "koremandar967/ImageBasedPathFinder", "path": "/app/src/main/java/com/example/myproperty/Fileuploadsd.java", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> float f = 1F; // float f = (float) 1D; } }<|fim_prefix|>// repo: User0784/java path: /src/Main.java package com.company; import java.util.Scanner; public class Main { <|fim_middle|> public static void main(String[] args) {
code_fim
easy
{ "lang": "java", "repo": "User0784/java", "path": "/src/Main.java", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: User0784/java path: /src/Main.java package com.company; <|fim_suffix|>public class Main { public static void main(String[] args) { float f = 1F; // float f = (float) 1D; } }<|fim_middle|>import java.util.Scanner;
code_fim
easy
{ "lang": "java", "repo": "User0784/java", "path": "/src/Main.java", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: elifdiril/CommandPattern path: /src/garage/Light.java package garage; /** * @author Elif */ public class Light { <|fim_suffix|> public void off(){System.out.println("Light is off");} }<|fim_middle|> public void on(){System.out.println("Light is on");}
code_fim
easy
{ "lang": "java", "repo": "elifdiril/CommandPattern", "path": "/src/garage/Light.java", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> public void off(){System.out.println("Light is off");} }<|fim_prefix|>// repo: elifdiril/CommandPattern path: /src/garage/Light.java package garage; /** * @author Elif */ public class Light { <|fim_middle|> public void on(){System.out.println("Light is on");}
code_fim
easy
{ "lang": "java", "repo": "elifdiril/CommandPattern", "path": "/src/garage/Light.java", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> @Query("FROM Versao v JOIN FETCH v.efetividadeGrupo") List<Versao> findAllFetched(); }<|fim_prefix|>// repo: gusbossini/jackson-recursive path: /src/main/java/br/com/example/jacksonrecursive/repository/VersaoRepository.java package br.com.example.jacksonrecursive.repository; <|fim_middle|>impo...
code_fim
hard
{ "lang": "java", "repo": "gusbossini/jackson-recursive", "path": "/src/main/java/br/com/example/jacksonrecursive/repository/VersaoRepository.java", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: gusbossini/jackson-recursive path: /src/main/java/br/com/example/jacksonrecursive/repository/VersaoRepository.java package br.com.example.jacksonrecursive.repository; import br.com.example.jacksonrecursive.model.Versao; import org.springframework.data.jpa.repository.JpaRepository; import org.sp...
code_fim
easy
{ "lang": "java", "repo": "gusbossini/jackson-recursive", "path": "/src/main/java/br/com/example/jacksonrecursive/repository/VersaoRepository.java", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> @Query("FROM Versao v JOIN FETCH v.efetividadeGrupo") List<Versao> findAllFetched(); }<|fim_prefix|>// repo: gusbossini/jackson-recursive path: /src/main/java/br/com/example/jacksonrecursive/repository/VersaoRepository.java package br.com.example.jacksonrecursive.repository; <|fim_middle|>impor...
code_fim
hard
{ "lang": "java", "repo": "gusbossini/jackson-recursive", "path": "/src/main/java/br/com/example/jacksonrecursive/repository/VersaoRepository.java", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> // TODO Auto-generated method stub Scanner input = new Scanner (System.in); System.out.println("Enter a point with two coordinates:"); double x = input.nextDouble(); double y = input.nextDouble(); double d1=Math.pow((Math.pow(x, 2)), 0.5); double d2=Math.pow((Math.pow(y, 2)), 0.5); i...
code_fim
medium
{ "lang": "java", "repo": "YancyJILiGuLu/Introduction-to-Java-Programming-and-Data-Structutres_Chapter-3", "path": "/Q3_23.java", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> if (d1 <=10/2 && d2 <=5.0/2) { System.out.print("point(" + x+ "," + y+") is in the circle"); } else { System.out.print("point(" + x+ "," + y+") is not in the circle"); } } }<|fim_prefix|>// repo: YancyJILiGuLu/Introduction-to-Java-Programming-and-Data-Structutres_Chapter-3 path: /Q3_23.j...
code_fim
hard
{ "lang": "java", "repo": "YancyJILiGuLu/Introduction-to-Java-Programming-and-Data-Structutres_Chapter-3", "path": "/Q3_23.java", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: YancyJILiGuLu/Introduction-to-Java-Programming-and-Data-Structutres_Chapter-3 path: /Q3_23.java package chapter3; import java.util.Scanner; public class Q3_23 { <|fim_suffix|> double d1=Math.pow((Math.pow(x, 2)), 0.5); double d2=Math.pow((Math.pow(y, 2)), 0.5); if (d1 <=10/2 && d2 <=5...
code_fim
hard
{ "lang": "java", "repo": "YancyJILiGuLu/Introduction-to-Java-Programming-and-Data-Structutres_Chapter-3", "path": "/Q3_23.java", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: MeganCodeNote/LeetCode path: /src/main/java/BestTimeBuyAndSellStock.java import java.util.Arrays; public class BestTimeBuyAndSellStock { //-------------- Solution 1 -------------------// // brute force (Time Limit Exceeded) public int maxProfit(int[] prices) { int N = price...
code_fim
hard
{ "lang": "java", "repo": "MeganCodeNote/LeetCode", "path": "/src/main/java/BestTimeBuyAndSellStock.java", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> //////////////////// TEST //////////////////// private static void test(BestTimeBuyAndSellStock m, int[] A) { System.out.println(Arrays.toString(A)); System.out.println(m.maxProfit(A) + "\n"); } public static void main(String[] args) { BestTimeBuyAndSellStock solu...
code_fim
hard
{ "lang": "java", "repo": "MeganCodeNote/LeetCode", "path": "/src/main/java/BestTimeBuyAndSellStock.java", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: zwhofearth/springboot-baomidou-learning path: /src/main/java/com/dnp/test/modular/controller/UserRoleController.java package com.dnp.test.modular.controller; import com.dnp.test.modular.entity.UserRole; import com.dnp.test.modular.service.UserRoleService; import com.dnp.test.vo.PageVo; import i...
code_fim
hard
{ "lang": "java", "repo": "zwhofearth/springboot-baomidou-learning", "path": "/src/main/java/com/dnp/test/modular/controller/UserRoleController.java", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> @ApiParam(name = "userId", value = "用户id") @RequestParam(required = false, name = "userId") Long userId , @ApiParam(name = "roleId", value = "角色id") @RequestParam(required = false, name = "roleId") Long roleId ) { UserRole userRole = ...
code_fim
hard
{ "lang": "java", "repo": "zwhofearth/springboot-baomidou-learning", "path": "/src/main/java/com/dnp/test/modular/controller/UserRoleController.java", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> while ((n--) > 0) { slowturtle.forward(25); slowturtle.right(90.0); slowturtle.forward(25); slowturtle.right(90.0); slowturtle.forward(25);// up-right-straight-right-down slowturtle.left(90.0); slowturtle.forward(25);// left-straight slowturtle.left(90.0); } } }<|fim_prefix...
code_fim
hard
{ "lang": "java", "repo": "kiranvasudev/My-Learning", "path": "/Java Programs/TurtleBot2.java", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: kiranvasudev/My-Learning path: /Java Programs/TurtleBot2.java package legoSim; import ch.aplu.robotsim.*; import java.io.*; public class TurtleBot2 { <|fim_suffix|> while ((n--) > 0) { slowturtle.forward(25); slowturtle.right(90.0); slowturtle.forward(25); slowturtle.right(90.0)...
code_fim
hard
{ "lang": "java", "repo": "kiranvasudev/My-Learning", "path": "/Java Programs/TurtleBot2.java", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: P79N6A/region-drp path: /drp-api/src/main/java/com/jiajiayue/all/regiondrp/biz/service/impl/BasicInfoReadServiceImpl.java package com.jiajiayue.all.regiondrp.biz.service.impl; import com.jiajiayue.all.regiondrp.biz.dao.*; import com.jiajiayue.all.regiondrp.biz.dto.request.BasicInfoRequest; impo...
code_fim
hard
{ "lang": "java", "repo": "P79N6A/region-drp", "path": "/drp-api/src/main/java/com/jiajiayue/all/regiondrp/biz/service/impl/BasicInfoReadServiceImpl.java", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> request.setSort("bill"); List<NorpriceResponse> returnResList = norpriceDao.paging(request.toMap()) .getData().stream() .map(modelToResponseConverter::modelToResponse) .collect(Collectors.toList()); RestResponse restResponse = new Res...
code_fim
hard
{ "lang": "java", "repo": "P79N6A/region-drp", "path": "/drp-api/src/main/java/com/jiajiayue/all/regiondrp/biz/service/impl/BasicInfoReadServiceImpl.java", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> request.setSort("skucode"); List<MktShopResponse> returnResList = mktShopDao.paging(request.toMap()) .getData().stream() .map(modelToResponseConverter::modelToResponse) .collect(Collectors.toList()); RestResponse restResponse = new Re...
code_fim
hard
{ "lang": "java", "repo": "P79N6A/region-drp", "path": "/drp-api/src/main/java/com/jiajiayue/all/regiondrp/biz/service/impl/BasicInfoReadServiceImpl.java", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> if (userWord.charAt(currentIndex) == userWord.charAt(indexFromEnd ) ) { if(currentIndex == indexFromEnd || currentIndex == indexFromEnd - 1) { result = true; } else { result = checkPalindrome(userW...
code_fim
hard
{ "lang": "java", "repo": "huizecui/Recursion", "path": "/app/src/main/java/comhuizecui/httpsgithub/recursion/MainActivity.java", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: huizecui/Recursion path: /app/src/main/java/comhuizecui/httpsgithub/recursion/MainActivity.java /** * Name:Huize Cui * Course:CS40S * Teacher:Mr.Hardman * Lab #3,Program.1 * Date Last Modified: 4/24/2018 */ package comhuizecui.httpsgithub.recursion; import android.support.v7.app.AppCompat...
code_fim
hard
{ "lang": "java", "repo": "huizecui/Recursion", "path": "/app/src/main/java/comhuizecui/httpsgithub/recursion/MainActivity.java", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> { boolean result; int indexFromEnd = userWord.length() - currentIndex - 1; if (userWord.charAt(currentIndex) == userWord.charAt(indexFromEnd ) ) { if(currentIndex == indexFromEnd || currentIndex == indexFromEnd - 1) { result = t...
code_fim
hard
{ "lang": "java", "repo": "huizecui/Recursion", "path": "/app/src/main/java/comhuizecui/httpsgithub/recursion/MainActivity.java", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: rbrazuk/toDoList path: /app/src/main/java/com/example/rbrazuk/todolist/MainActivity.java package com.example.rbrazuk.todolist; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.AdapterView; import android.widget.ArrayAdapt...
code_fim
medium
{ "lang": "java", "repo": "rbrazuk/toDoList", "path": "/app/src/main/java/com/example/rbrazuk/todolist/MainActivity.java", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> taskArray.remove(index); arrayAdapter.notifyDataSetChanged(); } }); ((LinearLayout) findViewById(R.id.dummy_id)).requestFocus(); } }<|fim_prefix|>// repo: rbrazuk/toDoList path: /app/src/main/java/com/example/rbrazuk/todolist/MainAct...
code_fim
hard
{ "lang": "java", "repo": "rbrazuk/toDoList", "path": "/app/src/main/java/com/example/rbrazuk/todolist/MainActivity.java", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> } @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); taskList = (ListView) findViewById(R.id.tasksList); arrayAdapter = new ArrayAdapter<String>(this,android.R.layout...
code_fim
hard
{ "lang": "java", "repo": "rbrazuk/toDoList", "path": "/app/src/main/java/com/example/rbrazuk/todolist/MainActivity.java", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: CaiLiMingW/mmall path: /src/main/java/org/clm/Service/ICategoryManageService.java package org.clm.Service; import org.clm.Pojo.Category; import org.clm.common.ServiceResponse; <|fim_suffix|> ServiceResponse addCategory(String categoryName,Integer parentId); ServiceResponse setCategoryN...
code_fim
medium
{ "lang": "java", "repo": "CaiLiMingW/mmall", "path": "/src/main/java/org/clm/Service/ICategoryManageService.java", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> ServiceResponse addCategory(String categoryName,Integer parentId); ServiceResponse setCategoryName(String categoryName, Integer categoryId); ServiceResponse getAllChildCategoryById(Integer categoryId); }<|fim_prefix|>// repo: CaiLiMingW/mmall path: /src/main/java/org/clm/Service/ICategoryMa...
code_fim
medium
{ "lang": "java", "repo": "CaiLiMingW/mmall", "path": "/src/main/java/org/clm/Service/ICategoryManageService.java", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> ServiceResponse setCategoryName(String categoryName, Integer categoryId); ServiceResponse getAllChildCategoryById(Integer categoryId); }<|fim_prefix|>// repo: CaiLiMingW/mmall path: /src/main/java/org/clm/Service/ICategoryManageService.java package org.clm.Service; import org.clm.Pojo.Category;...
code_fim
medium
{ "lang": "java", "repo": "CaiLiMingW/mmall", "path": "/src/main/java/org/clm/Service/ICategoryManageService.java", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> } catch(Exception e ) {e.printStackTrace(); } }//GEN-LAST:event_jButton1ActionPerformed private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton3ActionPerformed this.dispose(); new Principale...
code_fim
hard
{ "lang": "java", "repo": "Yacine-TALEB/TextMining", "path": "/src/textmining/IndexFrame.java", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: Yacine-TALEB/TextMining path: /src/textmining/IndexFrame.java /* * To change this template, choose Tools | Templates * and open the template in the editor. */ /* * IndexFrame.java * * Created on 2 avr. 2012, 19:40:59 */ package textmining; import java.io.*; import java.util.*; import ja...
code_fim
hard
{ "lang": "java", "repo": "Yacine-TALEB/TextMining", "path": "/src/textmining/IndexFrame.java", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: petekneller/essential_acceptance_testing_code path: /test/support/driver/com/example/stocks/driver/pages/NavigablePage.java package com.example.stocks.driver.pages; <|fim_suffix|> NavigablePage navigateToSummaryPage(); NavigablePage navigateToManagementPage(); }<|fim_middle|>public inte...
code_fim
easy
{ "lang": "java", "repo": "petekneller/essential_acceptance_testing_code", "path": "/test/support/driver/com/example/stocks/driver/pages/NavigablePage.java", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> NavigablePage navigateToSummaryPage(); NavigablePage navigateToManagementPage(); }<|fim_prefix|>// repo: petekneller/essential_acceptance_testing_code path: /test/support/driver/com/example/stocks/driver/pages/NavigablePage.java package com.example.stocks.driver.pages; <|fim_middle|>public int...
code_fim
easy
{ "lang": "java", "repo": "petekneller/essential_acceptance_testing_code", "path": "/test/support/driver/com/example/stocks/driver/pages/NavigablePage.java", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> for(i=1;i<=3;i++) { for(j=1;j<=3;j++) { for(k=1;k<=3;k++) { if(i!=j && j!=k && k!=i) { System.out.println(i+""+j+""+k); } } } } } }<|fim_prefix|>// repo: MZKhan18/Java path: /Java Programming/src/Programms/loop_46.java package Programms; //. Write a prog...
code_fim
medium
{ "lang": "java", "repo": "MZKhan18/Java", "path": "/Java Programming/src/Programms/loop_46.java", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: MZKhan18/Java path: /Java Programming/src/Programms/loop_46.java package Programms; //. Write a program to generate all combinations of 1, 2 and 3 using for loop. public class loop_46 { <|fim_suffix|> // TODO Auto-generated method stub int i,j,k; for(i=1;i<=3;i++) { for(j=1;j<=3...
code_fim
easy
{ "lang": "java", "repo": "MZKhan18/Java", "path": "/Java Programming/src/Programms/loop_46.java", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> public static void main(String[] args) { // TODO Auto-generated method stub int i,j,k; for(i=1;i<=3;i++) { for(j=1;j<=3;j++) { for(k=1;k<=3;k++) { if(i!=j && j!=k && k!=i) { System.out.println(i+""+j+""+k); } } } } } }<|fim_prefix|>// repo: MZKhan1...
code_fim
easy
{ "lang": "java", "repo": "MZKhan18/Java", "path": "/Java Programming/src/Programms/loop_46.java", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: SupaStar/ProyectosJAVAPrepa path: /SistemaImpuestos/src/Sistema/ReciboNvoRegistro.java package Sistema; import java.util.Calendar; import java.text.SimpleDateFormat; import java.util.Date; public class ReciboNvoRegistro extends javax.swing.JFrame { private SimpleDateFormat f; public R...
code_fim
hard
{ "lang": "java", "repo": "SupaStar/ProyectosJAVAPrepa", "path": "/SistemaImpuestos/src/Sistema/ReciboNvoRegistro.java", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> // Variables declaration - do not modify//GEN-BEGIN:variables private javax.swing.JButton jButton1; private javax.swing.JLabel jLabel1; public static javax.swing.JLabel jLabel10; private javax.swing.JLabel jLabel11; private javax.swing.JLabel jLabel12; public static javax.swing...
code_fim
hard
{ "lang": "java", "repo": "SupaStar/ProyectosJAVAPrepa", "path": "/SistemaImpuestos/src/Sistema/ReciboNvoRegistro.java", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> Matter unexpected = new MatterImpl("Matter test", "http://www.weso.es/testOntology#MatterTest", "Descripcion for test"); Matter actual = null; actual = matters.findMatter("Matter test 1"); assertFalse(actual.equals(unexpected)); } @Test(expected=WesearchException.class) public void ...
code_fim
hard
{ "lang": "java", "repo": "weso/wesearch", "path": "/src/test/java/org/weso/wesearch/domain/TestSubjectsImpl.java", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: weso/wesearch path: /src/test/java/org/weso/wesearch/domain/TestSubjectsImpl.java package org.weso.wesearch.domain; import static org.junit.Assert.*; import java.util.Iterator; import org.junit.Before; import org.junit.Test; import org.weso.utils.WesearchException; import org.weso.wesearch.d...
code_fim
hard
{ "lang": "java", "repo": "weso/wesearch", "path": "/src/test/java/org/weso/wesearch/domain/TestSubjectsImpl.java", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> @GetMapping("/get") private Result getMovieTime(@RequestHeader String token, @RequestParam Integer idMovie, @RequestParam Integer date){ logger.info("[Movie Time User Get] Get time by idMovie {} and date {}",idMovie,date); ...
code_fim
medium
{ "lang": "java", "repo": "nguyenanh1/mt-admin-service", "path": "/src/main/java/com/anhnguyen/mtadminservice/controller/user/TimeMovieController.java", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: nguyenanh1/mt-admin-service path: /src/main/java/com/anhnguyen/mtadminservice/controller/user/TimeMovieController.java package com.anhnguyen.mtadminservice.controller.user; import com.anhnguyen.mtadminservice.common.ErrorType; import com.anhnguyen.mtadminservice.controller.BaseController; impor...
code_fim
medium
{ "lang": "java", "repo": "nguyenanh1/mt-admin-service", "path": "/src/main/java/com/anhnguyen/mtadminservice/controller/user/TimeMovieController.java", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> /** * GridView initial */ private void gridViewInitial() { ArrayList<String> names = new ArrayList<String>(); names.add("Thiem "); names.add("Hai "); names.add("Thai "); names.add("Duong "); names.add("Tuan "); names.add("Thai "); ...
code_fim
hard
{ "lang": "java", "repo": "ThiemJson/Android-CardGameCounter", "path": "/app/src/main/java/teneocto/thiemjason/android_scorecounter/ui/home/Home.java", "mode": "spm", "license": "Apache-2.0", "source": "the-stack-v2" }
<|fim_suffix|> ArrayList<String> names = new ArrayList<String>(); names.add("Thiem "); names.add("Hai "); names.add("Thai "); names.add("Duong "); names.add("Tuan "); names.add("Thai "); names.add("Thiem "); names.add("Thiem "); names.add("T...
code_fim
hard
{ "lang": "java", "repo": "ThiemJson/Android-CardGameCounter", "path": "/app/src/main/java/teneocto/thiemjason/android_scorecounter/ui/home/Home.java", "mode": "spm", "license": "Apache-2.0", "source": "the-stack-v2" }
<|fim_suffix|>import java.io.File; import java.io.FileReader; import java.io.IOException; import java.nio.charset.Charset; import java.nio.file.Files; import java.util.List; import static org.mockito.Matchers.anyLong; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.when; public class TestRan...
code_fim
hard
{ "lang": "java", "repo": "ChristianNavolskyi/YCSB", "path": "/core/src/test/java/com/yahoo/ycsb/generator/graph/randomcomponents/TestRandomGraphComponentRecreator.java", "mode": "spm", "license": "Apache-2.0", "source": "the-stack-v2" }
<|fim_suffix|> @Test(expected = IOException.class) public void testLoadingOfFilesWithNoFilesPresent() throws IOException { randomGraphComponentRecreator = new RandomGraphComponentRecreator(System.getProperty("user.dir"), graphDataGenerator); } @Test public void chooseRandomEdgeId() throws IOExcept...
code_fim
hard
{ "lang": "java", "repo": "ChristianNavolskyi/YCSB", "path": "/core/src/test/java/com/yahoo/ycsb/generator/graph/randomcomponents/TestRandomGraphComponentRecreator.java", "mode": "spm", "license": "Apache-2.0", "source": "the-stack-v2" }
<|fim_suffix|> return score; } //追加 @RequestMapping(value = {"/scores/insert"},method = RequestMethod.GET) public int insertScores() { Scores scores = new Scores(); scores.setSno("101"); scores.setCno("1-234"); scores.setDegree("85.0"); return scoresServic...
code_fim
hard
{ "lang": "java", "repo": "Panhungting/Test", "path": "/src/main/java/com/koiwaLearning/api/controller/ScoresController.java", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> Scores scores = new Scores(); scores.setSno("101"); scores.setCno("1-234"); scores.setDegree("85.0"); return scoresService.insertScores(scores); } //更新 @RequestMapping(value = {"/scores/update"},method = RequestMethod.GET) public int updateScores() ...
code_fim
medium
{ "lang": "java", "repo": "Panhungting/Test", "path": "/src/main/java/com/koiwaLearning/api/controller/ScoresController.java", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: Panhungting/Test path: /src/main/java/com/koiwaLearning/api/controller/ScoresController.java package com.koiwaLearning.api.controller; import com.koiwaLearning.api.domain.ScoreDetail; import com.koiwaLearning.api.domain.Scores; import com.koiwaLearning.api.service.ScoresService; import org.spri...
code_fim
hard
{ "lang": "java", "repo": "Panhungting/Test", "path": "/src/main/java/com/koiwaLearning/api/controller/ScoresController.java", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: jasmeet167/PW-NextGen path: /ng-pw-legacy/src/pw-web/java/com/csc/fsg/life/pw/web/io/descriptor/wma/TTC1TRow.java package com.csc.fsg.life.pw.web.io.descriptor.wma; import com.csc.fsg.life.pw.web.io.Row; public class TTC1TRow extends Row { public String companyCode; public ...
code_fim
hard
{ "lang": "java", "repo": "jasmeet167/PW-NextGen", "path": "/ng-pw-legacy/src/pw-web/java/com/csc/fsg/life/pw/web/io/descriptor/wma/TTC1TRow.java", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }