text
stringlengths
232
16.3k
domain
stringclasses
1 value
difficulty
stringclasses
3 values
meta
dict
<|fim_suffix|> return new Object[10][0]; } @Test public void TestRepetirDiezVecesConexion() { Conexion.getConnection(); assertThat(co, isA(Conexion.class)); } @Test public void TestRepetirDiezVecesDesconexion(){ co.desconexion(); } }<|fim_pre...
code_fim
hard
{ "lang": "java", "repo": "sebastianrodriguezcorrea/Analysis-and-design-of-algorithms", "path": "/Period 3/Java Project Panaderia/ProjectPanaderiaV1.0/test/Tests/TestRepetido.java", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> public String getMoney() { return money; } public void setMoney(String money) { this.money = money; } public String getAdd_time() { return add_time; } public void setAdd_time(String add_time) { this.add_time = add_time; } }<|fim_prefix|>//...
code_fim
easy
{ "lang": "java", "repo": "yekai0115/MerchantsApplication2", "path": "/app/src/main/java/com/ddz/mearchant/models/GreatDetail.java", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: yekai0115/MerchantsApplication2 path: /app/src/main/java/com/ddz/mearchant/models/GreatDetail.java package com.ddz.mearchant.models; /** * Created by Administrator on 2017/6/26 0026. */ public class GreatDetail { private String money; <|fim_suffix|> public String getAdd_time() { ...
code_fim
medium
{ "lang": "java", "repo": "yekai0115/MerchantsApplication2", "path": "/app/src/main/java/com/ddz/mearchant/models/GreatDetail.java", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> private String add_time; public String getMoney() { return money; } public void setMoney(String money) { this.money = money; } public String getAdd_time() { return add_time; } public void setAdd_time(String add_time) { this.add_time = add...
code_fim
easy
{ "lang": "java", "repo": "yekai0115/MerchantsApplication2", "path": "/app/src/main/java/com/ddz/mearchant/models/GreatDetail.java", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> try { clazz = cll.loadClass(packageName + ".Micro4blogPluginTest"); IPlugin comm = (IPlugin) clazz.newInstance(); // Integer ret = comm.client(32, 45); // Log.i("thom", "Host 2 return value is " + ret); comm.addPlugin(); } ca...
code_fim
hard
{ "lang": "java", "repo": "Thomsen/micro4blog", "path": "/src/com/micro4blog/plugin/PluginImpl.java", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> String div = System.getProperty("path.separator"); String packageName = actInfo.packageName; String dexPath = actInfo.applicationInfo.sourceDir; String dexOutputDir = mContext.getApplicationInfo().dataDir; String libPath = ""; // android 2.3.3 // Stri...
code_fim
hard
{ "lang": "java", "repo": "Thomsen/micro4blog", "path": "/src/com/micro4blog/plugin/PluginImpl.java", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: Thomsen/micro4blog path: /src/com/micro4blog/plugin/PluginImpl.java package com.micro4blog.plugin; import java.lang.reflect.Method; import java.util.List; import android.content.Context; import android.content.Intent; import android.content.pm.ActivityInfo; import android.content.pm.PackageMan...
code_fim
hard
{ "lang": "java", "repo": "Thomsen/micro4blog", "path": "/src/com/micro4blog/plugin/PluginImpl.java", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> private List<Picture> pictureList = new ArrayList<Picture>(); public static final String URL_FILE = "content://media/external/images/media/"; private PictureProvider() { } public static PictureProvider getInstance(Context context) { mContext = context; init(); return pictureProvider; } /...
code_fim
hard
{ "lang": "java", "repo": "China-jhl/F-Transfer", "path": "/src/com/rjb/dianfeng/fileexchange/entity/PictureProvider.java", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: China-jhl/F-Transfer path: /src/com/rjb/dianfeng/fileexchange/entity/PictureProvider.java package com.rjb.dianfeng.fileexchange.entity; import java.util.ArrayList; import java.util.List; import android.content.ContentResolver; import android.content.Context; import android.database.Cursor; imp...
code_fim
hard
{ "lang": "java", "repo": "China-jhl/F-Transfer", "path": "/src/com/rjb/dianfeng/fileexchange/entity/PictureProvider.java", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|>ger(); // Eeoc eeoc = new Eeoc(); // // hrMgr.addBenefitListener( benMgr ); // hrMgr.addTerminationListener( eeoc ); // // cons1.addPropertyChangeListener( benMgr ); // cons1.addVetoableChangeListener( comMgr ); // // cons2.addPropertyChangeL...
code_fim
hard
{ "lang": "java", "repo": "joettcrow/University_of_Washington", "path": "/Application_programming_in_java/Homeworks/CP125Assignment7/src/main/java/app/Assignment06.java", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|>ate() * 1.10) ); // // hrMgr.adjustSickLeaveHours( cons1, 20 ); // hrMgr.adjustVacationHours( cons1, 40 ); // // hrMgr.enrollDental( cons1 ); // hrMgr.enrollMedical( cons1 ); // // hrMgr.enrollDental( cons2 ); // hrMgr.enrollMedical( cons2 ); // // hrMgr.en...
code_fim
hard
{ "lang": "java", "repo": "joettcrow/University_of_Washington", "path": "/Application_programming_in_java/Homeworks/CP125Assignment7/src/main/java/app/Assignment06.java", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: joettcrow/University_of_Washington path: /Application_programming_in_java/Homeworks/CP125Assignment7/src/main/java/app/Assignment06.java //package app; // //import com.scg.beans.BenefitManager; //import com.scg.beans.CompensationManager; //import com.scg.beans.Eeoc; //import com.scg.beans.HumanR...
code_fim
hard
{ "lang": "java", "repo": "joettcrow/University_of_Washington", "path": "/Application_programming_in_java/Homeworks/CP125Assignment7/src/main/java/app/Assignment06.java", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> return null; } public String outofbound(int a[],int s) { return null; } }<|fim_prefix|>// repo: abhishekkumar95/javape2 path: /eclipse-workspace/pe3/src/pe_3/src/main/java/com/stackroute/demo/pe_3/ConsException.java package com.stackroute.demo.pe_3; public class ConsException { <...
code_fim
medium
{ "lang": "java", "repo": "abhishekkumar95/javape2", "path": "/eclipse-workspace/pe3/src/pe_3/src/main/java/com/stackroute/demo/pe_3/ConsException.java", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: abhishekkumar95/javape2 path: /eclipse-workspace/pe3/src/pe_3/src/main/java/com/stackroute/demo/pe_3/ConsException.java package com.stackroute.demo.pe_3; public class ConsException { <|fim_suffix|> } public String outofbound(int a[],int s) { return null; } }<|fim_middle|> publ...
code_fim
medium
{ "lang": "java", "repo": "abhishekkumar95/javape2", "path": "/eclipse-workspace/pe3/src/pe_3/src/main/java/com/stackroute/demo/pe_3/ConsException.java", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: Tareafengye/PhotoLibrary path: /photolibrary/src/main/java/com/liu/photolibrary/util/ImageProvider.java package com.liu.photolibrary.util; import java.util.ArrayList; /** * Created by Administrator on 2018/1/27 0027. */ public class ImageProvider { public static ArrayList<String> getIma...
code_fim
medium
{ "lang": "java", "repo": "Tareafengye/PhotoLibrary", "path": "/photolibrary/src/main/java/com/liu/photolibrary/util/ImageProvider.java", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> /** * 小图,这里随便找两张小图的 * @return */ public static ArrayList<String> getLowImgUrls(){ ArrayList<String> list = new ArrayList<>(); list.add("http://img.qq745.com/uploads/hzbimg/0907/hzb33617.png"); list.add("http://img.qq745.com/uploads/hzbimg/0907/hzb33616.png");...
code_fim
hard
{ "lang": "java", "repo": "Tareafengye/PhotoLibrary", "path": "/photolibrary/src/main/java/com/liu/photolibrary/util/ImageProvider.java", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> ArrayList<String> list = new ArrayList<>(); list.add("http://pic18.nipic.com/20120103/8783405_180811375100_2.jpg"); list.add("http://pic25.nipic.com/20121201/10258080_144012468179_2.jpg"); return list; } /** * 小图,这里随便找两张小图的 * @return */ public st...
code_fim
medium
{ "lang": "java", "repo": "Tareafengye/PhotoLibrary", "path": "/photolibrary/src/main/java/com/liu/photolibrary/util/ImageProvider.java", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> @WebMethod(operationName = "recibirPersonasASinc", action = "recibirPersonasASinc", exclude = false) @WebResult(name = "resultRecPersonasASinc") public ResultRecPersonasASinc recibirPersonasASinc(@WebParam(name = "paramRecPersonasASinc") ParamRecPersonasASinc paramRecPersonasASinc) { logger.info("<<<...
code_fim
hard
{ "lang": "java", "repo": "fedeolivera1/ProyFinal2017Web", "path": "/WsGestPed/src/gpw/webservice/WsGestPed.java", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: fedeolivera1/ProyFinal2017Web path: /WsGestPed/src/gpw/webservice/WsGestPed.java package gpw.webservice; import javax.annotation.Resource; import javax.jws.WebMethod; import javax.jws.WebParam; import javax.jws.WebResult; import javax.jws.WebService; import javax.xml.ws.WebServiceContext; impor...
code_fim
hard
{ "lang": "java", "repo": "fedeolivera1/ProyFinal2017Web", "path": "/WsGestPed/src/gpw/webservice/WsGestPed.java", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> return matchRecords.stream().filter(record -> record.hasBatted() || record.hasBowled()).count(); } public static Long calculateTotalNumberOfRunsGiven(List<PlayerStatPerMatch> matchRecords) { Long runsGiven = 0L; runsGiven = matchRecords.stream().filter(record -> record.hasBowled() && record.getRu...
code_fim
hard
{ "lang": "java", "repo": "ayushiRaj/probable-engine", "path": "/src/main/java/com/scc/util/StatsUtil.java", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> public static Long calculateTotalNumberOfRunsScored(List<PlayerStatPerMatch> matchRecords) { Long runsScored = 0L; runsScored = matchRecords.stream().filter(record -> record.hasBatted() && record.getRunsScored() > 0) .mapToLong(PlayerStatPerMatch::getRunsScored).sum(); return runsScored; } p...
code_fim
hard
{ "lang": "java", "repo": "ayushiRaj/probable-engine", "path": "/src/main/java/com/scc/util/StatsUtil.java", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: ayushiRaj/probable-engine path: /src/main/java/com/scc/util/StatsUtil.java package com.scc.util; import java.util.List; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import com.scc.model.Player; import com.scc.model.PlayerStatPerMatch; public class StatsUtil { private final stat...
code_fim
hard
{ "lang": "java", "repo": "ayushiRaj/probable-engine", "path": "/src/main/java/com/scc/util/StatsUtil.java", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> return allValues; } /** * Return a collection of vertices adjacent to a given vertex v. * i.e., the set of all vertices w where edges v -> w exist in the graph. * Return an empty collection if there are no adjacent vertices. * @param v one of the vertices in the grap...
code_fim
hard
{ "lang": "java", "repo": "agrigore425/cse373", "path": "/CSE 373 HW 4/MyGraph.java", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: agrigore425/cse373 path: /CSE 373 HW 4/MyGraph.java import java.util.*; /** * A representation of a graph. * Assumes that we do not have negative cost edges in the graph. */ public class MyGraph implements Graph { // you will need some private fields to represent the graph // you are...
code_fim
hard
{ "lang": "java", "repo": "agrigore425/cse373", "path": "/CSE 373 HW 4/MyGraph.java", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> public ModbusDevice findByAddress(String address); }<|fim_prefix|>// repo: adrianpillinger/energy-monitor path: /src/main/java/com/energy/monitor/repository/ModbusDeviceRepository.java /** * */ package com.energy.monitor.repository; import org.springframework.data.mongodb.repository.MongoRepository;...
code_fim
medium
{ "lang": "java", "repo": "adrianpillinger/energy-monitor", "path": "/src/main/java/com/energy/monitor/repository/ModbusDeviceRepository.java", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|>/** * @author adrian * */ public interface ModbusDeviceRepository extends MongoRepository<ModbusDevice, String> { public ModbusDevice findByAddress(String address); }<|fim_prefix|>// repo: adrianpillinger/energy-monitor path: /src/main/java/com/energy/monitor/repository/ModbusDeviceRepository.java /*...
code_fim
easy
{ "lang": "java", "repo": "adrianpillinger/energy-monitor", "path": "/src/main/java/com/energy/monitor/repository/ModbusDeviceRepository.java", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: adrianpillinger/energy-monitor path: /src/main/java/com/energy/monitor/repository/ModbusDeviceRepository.java /** * */ package com.energy.monitor.repository; <|fim_suffix|> public ModbusDevice findByAddress(String address); }<|fim_middle|>import org.springframework.data.mongodb.repository.Mo...
code_fim
hard
{ "lang": "java", "repo": "adrianpillinger/energy-monitor", "path": "/src/main/java/com/energy/monitor/repository/ModbusDeviceRepository.java", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> public List<ProductDTO> productList(HttpServletRequest request) { ProductDAO pdao = new ProductDAO(); pdao.dbconnection(); String search = request.getParameter("psearch"); List<ProductDTO> plist = pdao.ProductList(search); pdao.dbClose(); return plist; } }<|fim_prefix|>// repo: cho...
code_fim
easy
{ "lang": "java", "repo": "chooyoungje/Myproject", "path": "/MyProject0914/src/service/ProductSearchS.java", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: chooyoungje/Myproject path: /MyProject0914/src/service/ProductSearchS.java package service; import java.util.List; import javax.servlet.http.HttpServletRequest; <|fim_suffix|> public List<ProductDTO> productList(HttpServletRequest request) { ProductDAO pdao = new ProductDAO(); p...
code_fim
medium
{ "lang": "java", "repo": "chooyoungje/Myproject", "path": "/MyProject0914/src/service/ProductSearchS.java", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: wuli2496/ThinkingInJava path: /src/net/test/chapter14_classinfo/example/Pet.java package net.test.chapter14_classinfo.example; <|fim_suffix|> public Pet() {super();} }<|fim_middle|>/** * Created by John on 2017/6/25. */ public class Pet extends Individual { public Pet(String name) {sup...
code_fim
medium
{ "lang": "java", "repo": "wuli2496/ThinkingInJava", "path": "/src/net/test/chapter14_classinfo/example/Pet.java", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> public Pet() {super();} }<|fim_prefix|>// repo: wuli2496/ThinkingInJava path: /src/net/test/chapter14_classinfo/example/Pet.java package net.test.chapter14_classinfo.example; <|fim_middle|>/** * Created by John on 2017/6/25. */ public class Pet extends Individual { public Pet(String name) {sup...
code_fim
medium
{ "lang": "java", "repo": "wuli2496/ThinkingInJava", "path": "/src/net/test/chapter14_classinfo/example/Pet.java", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> /** * Getter for the longest repeated substring * You should use the substringStartNode you already found in createLongestRepeatedSubstring function. * @return the longest repeated substring */ public abstract String getLongestRepeatedSubstring(); /** * Gett...
code_fim
hard
{ "lang": "java", "repo": "elorberb/Data-Structure-Java-1", "path": "/longestRepeatedSuffixTree.java", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> /** * Getter for the longest repeated substring * You should use the substringStartNode you already found in createLongestRepeatedSubstring function. * @return the longest repeated substring */ public abstract String getLongestRepeatedSubstring(); /** * Getter...
code_fim
hard
{ "lang": "java", "repo": "elorberb/Data-Structure-Java-1", "path": "/longestRepeatedSuffixTree.java", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: elorberb/Data-Structure-Java-1 path: /longestRepeatedSuffixTree.java public abstract class longestRepeatedSuffixTree extends CompressedTrie { protected int maxLength; protected SuffixTreeNode substringStartNode; /** * Constructs a suffix tree containing all suffices of a...
code_fim
hard
{ "lang": "java", "repo": "elorberb/Data-Structure-Java-1", "path": "/longestRepeatedSuffixTree.java", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> return new ImmutableList(this.numbers); } }<|fim_prefix|>// repo: aangelovangelov/Homeworks path: /Java OOP Basics 20 Jun 2016/Hm02Methods/src/pr07_ImmutableList/ImmutableList.java package pr07_ImmutableList; import java.util.ArrayList; import java.util.List; public class ImmutableList { <...
code_fim
hard
{ "lang": "java", "repo": "aangelovangelov/Homeworks", "path": "/Java OOP Basics 20 Jun 2016/Hm02Methods/src/pr07_ImmutableList/ImmutableList.java", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> private List<Integer> numbers; public ImmutableList(List<Integer> numbers) { this.numbers = new ArrayList<>(); this.numbers = numbers; } public ImmutableList getNumbers() { return new ImmutableList(this.numbers); } }<|fim_prefix|>// repo: aangelovangelov/Home...
code_fim
easy
{ "lang": "java", "repo": "aangelovangelov/Homeworks", "path": "/Java OOP Basics 20 Jun 2016/Hm02Methods/src/pr07_ImmutableList/ImmutableList.java", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: aangelovangelov/Homeworks path: /Java OOP Basics 20 Jun 2016/Hm02Methods/src/pr07_ImmutableList/ImmutableList.java package pr07_ImmutableList; import java.util.ArrayList; import java.util.List; public class ImmutableList { <|fim_suffix|> return new ImmutableList(this.numbers); } }<|...
code_fim
hard
{ "lang": "java", "repo": "aangelovangelov/Homeworks", "path": "/Java OOP Basics 20 Jun 2016/Hm02Methods/src/pr07_ImmutableList/ImmutableList.java", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> public static void main(String[] args) { try { Registry registry = LocateRegistry.getRegistry(1099); IRemote remoteService = (IRemote) registry.lookup("calc"); int addRet = remoteService.add(5,8); System.out.println("接口服务返回"+addRet); int subRet = remoteService.sub(15,8); System.ou...
code_fim
medium
{ "lang": "java", "repo": "Sailor-wu/integration", "path": "/src/main/java/com/dce/rmi/RMIClient.java", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> } catch (RemoteException e) { e.printStackTrace(); } catch (NotBoundException e) { e.printStackTrace(); } } }<|fim_prefix|>// repo: Sailor-wu/integration path: /src/main/java/com/dce/rmi/RMIClient.java package com.dce.rmi; import java.rmi.NotBoundException; import java.rmi.RemoteExcepti...
code_fim
medium
{ "lang": "java", "repo": "Sailor-wu/integration", "path": "/src/main/java/com/dce/rmi/RMIClient.java", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: Sailor-wu/integration path: /src/main/java/com/dce/rmi/RMIClient.java package com.dce.rmi; import java.rmi.NotBoundException; import java.rmi.RemoteException; import java.rmi.registry.LocateRegistry; import java.rmi.registry.Registry; <|fim_suffix|> System.out.println("接口服务返回"+subRet); ...
code_fim
hard
{ "lang": "java", "repo": "Sailor-wu/integration", "path": "/src/main/java/com/dce/rmi/RMIClient.java", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> @RequestMapping("/advice") public String getSomething( @ModelAttribute("msg") String msg, DemoObj obj){ throw new IllegalArgumentException("非常抱歉,参数有误/ " + " @ModelAttribute: "+msg); } }<|fim_prefix|>// repo: xc145214/spring-boot-in-action path: /spring-...
code_fim
medium
{ "lang": "java", "repo": "xc145214/spring-boot-in-action", "path": "/spring-mvc-start/src/main/java/com/xc/springMvc/controller/AdviceController.java", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: xc145214/spring-boot-in-action path: /spring-mvc-start/src/main/java/com/xc/springMvc/controller/AdviceController.java package com.xc.springMvc.controller; import com.xc.springMvc.demain.DemoObj; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.Mo...
code_fim
medium
{ "lang": "java", "repo": "xc145214/spring-boot-in-action", "path": "/spring-mvc-start/src/main/java/com/xc/springMvc/controller/AdviceController.java", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: alcowell/twitter-clone-springboot-react path: /src/main/java/com/example/demo/payload/UserSummary.java package com.example.demo.payload; /** * @author yosuk * */ public class UserSummary { private Long id; private String username; private String userId; /** * Constru...
code_fim
medium
{ "lang": "java", "repo": "alcowell/twitter-clone-springboot-react", "path": "/src/main/java/com/example/demo/payload/UserSummary.java", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> /** * Sets the userId * @param userId */ public void setUserId(String userId) { this.userId = userId; } }<|fim_prefix|>// repo: alcowell/twitter-clone-springboot-react path: /src/main/java/com/example/demo/payload/UserSummary.java package com.example.demo.payload; /** * @author...
code_fim
hard
{ "lang": "java", "repo": "alcowell/twitter-clone-springboot-react", "path": "/src/main/java/com/example/demo/payload/UserSummary.java", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> this.username = username; } /** * Gets the userId * @return userId */ public String getUserId() { return userId; } /** * Sets the userId * @param userId */ public void setUserId(String userId) { this.userId = userId; } }<|fim_prefix|>// repo: alcowell/twitt...
code_fim
hard
{ "lang": "java", "repo": "alcowell/twitter-clone-springboot-react", "path": "/src/main/java/com/example/demo/payload/UserSummary.java", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> answer = new String[1]; question = new String[1]; submission = new ArrayList<String>(); response = new String("That random clock you took sure came in HANDY, didn't it? HA! ...I'm sorry..."); question[0] = "It seems clear that you have to press a key. Which key are you going to pre...
code_fim
easy
{ "lang": "java", "repo": "budjmt/mystuff", "path": "/Haunt/ClockPuzzle.java", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: budjmt/mystuff path: /Haunt/ClockPuzzle.java import java.io.*; import java.util.*; public class ClockPuzzle extends Puzzle { <|fim_suffix|> answer = new String[1]; question = new String[1]; submission = new ArrayList<String>(); response = new String("That random clock you ...
code_fim
easy
{ "lang": "java", "repo": "budjmt/mystuff", "path": "/Haunt/ClockPuzzle.java", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: BorisMartinMedJorDSII/fiestas path: /app/src/main/java/com/example/fiestas/agosto.java package com.example.fiestas; import androidx.appcompat.app.AppCompatActivity; import android.os.Bundle; <|fim_suffix|>import ahmed.easyslider.EasySlider; import ahmed.easyslider.SliderItem; public class ag...
code_fim
medium
{ "lang": "java", "repo": "BorisMartinMedJorDSII/fiestas", "path": "/app/src/main/java/com/example/fiestas/agosto.java", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> EasySlider easySlider; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_agosto); easySlider = findViewById(R.id.sliderId); List<SliderItem> easySliders=new ArrayList<>(); ...
code_fim
medium
{ "lang": "java", "repo": "BorisMartinMedJorDSII/fiestas", "path": "/app/src/main/java/com/example/fiestas/agosto.java", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: SukumarYuvaraj/orderTrackingSystem path: /src/main/java/com/order/management/repository/ProductInfoRepository.java package com.order.management.repository; import java.util.List; import java.util.Optional; import org.springframework.data.repository.CrudRepository; import com.order.management....
code_fim
medium
{ "lang": "java", "repo": "SukumarYuvaraj/orderTrackingSystem", "path": "/src/main/java/com/order/management/repository/ProductInfoRepository.java", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> Optional<Product> findByName(String name); List<Product> findByProductStatus(ProductStatus productStatus); }<|fim_prefix|>// repo: SukumarYuvaraj/orderTrackingSystem path: /src/main/java/com/order/management/repository/ProductInfoRepository.java package com.order.management.repository; import java.uti...
code_fim
hard
{ "lang": "java", "repo": "SukumarYuvaraj/orderTrackingSystem", "path": "/src/main/java/com/order/management/repository/ProductInfoRepository.java", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: ishansahu/DailyCode path: /43DecodeWay.java {\rtf1\ansi\ansicpg1252\cocoartf1671\cocoasubrtf600 {\fonttbl\f0\fswiss\fcharset0 Helvetica;} {\colortbl;\red255\green255\blue255;} {\*\expandedcolortbl;;} \margl1440\margr1440\vieww28600\viewh17500\viewkind0 \pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4...
code_fim
medium
{ "lang": "java", "repo": "ishansahu/DailyCode", "path": "/43DecodeWay.java", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> \ if(cur==arr.length)\ total++;\ else\{\ if(arr[cur]==0)\ return;\ if(cur!=arr.length-1 && (arr[cur]*10+arr[cur+1]<=26))\ solve(arr, cur+2);\ solve(arr,cur+1);\ \}\ \}\ \}}<|fim_prefix|>// r...
code_fim
hard
{ "lang": "java", "repo": "ishansahu/DailyCode", "path": "/43DecodeWay.java", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> int[][] map = new int[N][N]; //int cR = 0,cC=0; //단 하나 존재하는 치킨집 위치 기억 Point chicken=null; List<Point> houses = new ArrayList<>(); for(int i=0;i<N;i++) { for(int j=0;j<N;j++) { map[i][j] = sc.nextInt(); if(map[i][j]==2) { // cR=i; // cC=j; chicken = new Point(i,j); ...
code_fim
hard
{ "lang": "java", "repo": "Youn-Young-Sun/code", "path": "/0813/src/치킨배달/chicken2.java", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: Youn-Young-Sun/code path: /0813/src/치킨배달/chicken2.java package 치킨배달; import java.util.ArrayList; import java.util.List; import java.util.Scanner; public class chicken2 { <|fim_suffix|> Scanner sc = new Scanner(System.in); int N=sc.nextInt(); int M=sc.nextInt(); int[][] map = new int[N]...
code_fim
medium
{ "lang": "java", "repo": "Youn-Young-Sun/code", "path": "/0813/src/치킨배달/chicken2.java", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> for (int i = 0; i < houses.size(); i++) { Point house = houses.get(i); sum += (Math.abs(house.r-chicken.r)+Math.abs(house.c-chicken.c)); } } }<|fim_prefix|>// repo: Youn-Young-Sun/code path: /0813/src/치킨배달/chicken2.java package 치킨배달; import java.util.ArrayList; import java.util.List; imp...
code_fim
hard
{ "lang": "java", "repo": "Youn-Young-Sun/code", "path": "/0813/src/치킨배달/chicken2.java", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: profes/play-example path: /app/infrastructure/redis/RedisProvider.java package infrastructure.redis; import com.google.inject.Provider; import com.lambdaworks.redis.RedisClient; import com.lambdaworks.redis.RedisConnection; import javax.inject.Inject; import javax.inject.Named; import javax.in...
code_fim
medium
{ "lang": "java", "repo": "profes/play-example", "path": "/app/infrastructure/redis/RedisProvider.java", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> if (connection == null) { RedisClient client = new RedisClient(host); connection = client.connect(); } return connection; } }<|fim_prefix|>// repo: profes/play-example path: /app/infrastructure/redis/RedisProvider.java package infrastructure.redis; imp...
code_fim
hard
{ "lang": "java", "repo": "profes/play-example", "path": "/app/infrastructure/redis/RedisProvider.java", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> private final String host; private RedisConnection<String, String> connection; @Inject public RedisProvider(@Named("redis.host") String host) { this.host = host; } @Override public RedisConnection<String, String> get() { if (connection == null) { ...
code_fim
medium
{ "lang": "java", "repo": "profes/play-example", "path": "/app/infrastructure/redis/RedisProvider.java", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: Wukong0723/written_Examination path: /Exams/src/main/java/Others/Test/ListPrintTest.java package Others.Test; import java.util.ArrayList; import java.util.concurrent.Semaphore; public class ListPrintTest { public static void main(String[] args) throws Exception{ <|fim_suffix|> @O...
code_fim
hard
{ "lang": "java", "repo": "Wukong0723/written_Examination", "path": "/Exams/src/main/java/Others/Test/ListPrintTest.java", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> Object pre = new Object(); String cur = new String(); Object next = new Object(); private PrintByOrder(String cur,Object pre,Object next){ this.cur = cur; this.pre = pre; this.next = next; } @Override public voi...
code_fim
hard
{ "lang": "java", "repo": "Wukong0723/written_Examination", "path": "/Exams/src/main/java/Others/Test/ListPrintTest.java", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> while (n>0){ synchronized (pre){ synchronized (next){ System.out.println(cur); n--; next.notifyAll(); } try { pre.wait(); ...
code_fim
hard
{ "lang": "java", "repo": "Wukong0723/written_Examination", "path": "/Exams/src/main/java/Others/Test/ListPrintTest.java", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> // ------------------------------------------------------------------------- // HIOA Model Variables // ------------------------------------------------------------------------- /** Temperature of the fridge in °C */ @ExportedVariable(type = Double.class) protected final Value<Double> temperature ...
code_fim
hard
{ "lang": "java", "repo": "LaurieRakotoarisoa/alasca", "path": "/simulationUpdate/Fridge/models/FridgeTemperature.java", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: LaurieRakotoarisoa/alasca path: /simulationUpdate/Fridge/models/FridgeTemperature.java package simulation.Fridge.models; import java.util.Map; import java.util.Vector; import java.util.concurrent.TimeUnit; import fr.sorbonne_u.devs_simulation.hioa.annotations.ExportedVariable; import fr.sorbon...
code_fim
hard
{ "lang": "java", "repo": "LaurieRakotoarisoa/alasca", "path": "/simulationUpdate/Fridge/models/FridgeTemperature.java", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> String vname = this.getURI() + ":" + FRIDGE_TEMP_PLOTTING_PARAM_NAME; PlotterDescription pd = (PlotterDescription) simParams.get(vname) ; this.tempPlotter = new XYPlotter(pd); this.tempPlotter.createSeries(SERIES1) ; } @Override public void initialiseState(Time initialTime) { thi...
code_fim
hard
{ "lang": "java", "repo": "LaurieRakotoarisoa/alasca", "path": "/simulationUpdate/Fridge/models/FridgeTemperature.java", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: alehyen/hackernews path: /src/test/java/com/hackernews/HackerNewsApplicationTests.java package com.hackernews; import static org.junit.Assert.assertEquals; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.boot.test.context.SpringBootTest; import org.springfram...
code_fim
medium
{ "lang": "java", "repo": "alehyen/hackernews", "path": "/src/test/java/com/hackernews/HackerNewsApplicationTests.java", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|>import com.hackernews.post.PostController; @RunWith(SpringRunner.class) @SpringBootTest public class HackerNewsApplicationTests { @Test public void contextLoads() { PostController postcontroller = new PostController(); String res = postcontroller.home(); assertEquals("Hello World! this is OAuth2...
code_fim
medium
{ "lang": "java", "repo": "alehyen/hackernews", "path": "/src/test/java/com/hackernews/HackerNewsApplicationTests.java", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> FeatureLinearHolder.PlaylistMiniAdapter target = this.target; if (target == null) throw new IllegalStateException("Bindings already cleared."); this.target = null; target.mHeaderPanel = null; target.mTitle = null; target.mRecyclerView = null; target.mCount = null; view7f0...
code_fim
hard
{ "lang": "java", "repo": "idarshhhh20/Rhythm-music", "path": "/app/build/generated/ap_generated_sources/debug/out/com/ldt/musicr/ui/page/featurepage/FeatureLinearHolder$PlaylistMiniAdapter_ViewBinding.java", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: idarshhhh20/Rhythm-music path: /app/build/generated/ap_generated_sources/debug/out/com/ldt/musicr/ui/page/featurepage/FeatureLinearHolder$PlaylistMiniAdapter_ViewBinding.java // Generated code from Butter Knife. Do not modify! package com.ldt.musicr.ui.page.featurepage; import android.view.View...
code_fim
hard
{ "lang": "java", "repo": "idarshhhh20/Rhythm-music", "path": "/app/build/generated/ap_generated_sources/debug/out/com/ldt/musicr/ui/page/featurepage/FeatureLinearHolder$PlaylistMiniAdapter_ViewBinding.java", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> target.goToPlaylistChildTab(); } }); target.mTitle = Utils.findRequiredViewAsType(source, R.id.title, "field 'mTitle'", TextView.class); target.mRecyclerView = Utils.findRequiredViewAsType(source, R.id.recycler_view, "field 'mRecyclerView'", RecyclerView.class); target.mCount...
code_fim
hard
{ "lang": "java", "repo": "idarshhhh20/Rhythm-music", "path": "/app/build/generated/ap_generated_sources/debug/out/com/ldt/musicr/ui/page/featurepage/FeatureLinearHolder$PlaylistMiniAdapter_ViewBinding.java", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: arvindkgs/path_finder path: /src/main/java/com/akgs/algo/pathfinder/service/Constraint.java package com.akgs.algo.pathfinder.service; <|fim_suffix|> boolean isValid(Cell cell, Grid grid); }<|fim_middle|>import com.akgs.algo.pathfinder.data.Cell; import com.akgs.algo.pathfinder.data.Grid; pu...
code_fim
medium
{ "lang": "java", "repo": "arvindkgs/path_finder", "path": "/src/main/java/com/akgs/algo/pathfinder/service/Constraint.java", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> boolean isValid(Cell cell, Grid grid); }<|fim_prefix|>// repo: arvindkgs/path_finder path: /src/main/java/com/akgs/algo/pathfinder/service/Constraint.java package com.akgs.algo.pathfinder.service; import com.akgs.algo.pathfinder.data.Cell; import com.akgs.algo.pathfinder.data.Grid; <|fim_middle|>pu...
code_fim
easy
{ "lang": "java", "repo": "arvindkgs/path_finder", "path": "/src/main/java/com/akgs/algo/pathfinder/service/Constraint.java", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: KossaiSbai/Airbnb_Project path: /GUI.java import javax.swing.*; import java.awt.*; /* This class creates the main window holding all the other windows the app and each instance of this class runs the app. */ public class GUI { public static WelcomeWindow ww ; // The welcome window displayed...
code_fim
medium
{ "lang": "java", "repo": "KossaiSbai/Airbnb_Project", "path": "/GUI.java", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> // Creates the main window and adds the initial window , account window , into it. private void makeGUI() { mainFrame = new JFrame(); mainFrame.setPreferredSize(new Dimension(750,400)); aw = new AccountWindow(); mainFrame.add(aw); mainFrame.setVisible(tr...
code_fim
hard
{ "lang": "java", "repo": "KossaiSbai/Airbnb_Project", "path": "/GUI.java", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> public static JFrame mainFrame; // The main window holding all the others windows. public static MapWindow mw; // The map window displayed all along the running of the app. public static StatisticsWindow sw; // The statistics window displayed all along the running of the app. public static...
code_fim
medium
{ "lang": "java", "repo": "KossaiSbai/Airbnb_Project", "path": "/GUI.java", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: zerobim7/algoQuiz path: /src/algo/JumpCase.java package algo; import java.util.stream.IntStream; public class JumpCase { public int jumpCase(int num) { int answer = 0; /* int fir = 1; int sec = 2; switch (num) { case 1: answer = 1; b...
code_fim
medium
{ "lang": "java", "repo": "zerobim7/algoQuiz", "path": "/src/algo/JumpCase.java", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> default: for(int i = 3; i <= num; i++){ answer = fir + sec; fir = sec; sec = answer; } break; } */ if(num <= 2) return num; answer = jumpCase(num-1) + jumpCase(num-2); return answer; } pub...
code_fim
medium
{ "lang": "java", "repo": "zerobim7/algoQuiz", "path": "/src/algo/JumpCase.java", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> m_drive = drive; } /* This command is called at the beginning of the autonomous commands and sets up stuff */ @Override public void initialize() { m_drive.resetGyro();// first call m_drive.resetEncoders(); m_drive.lockMotors(); } @Override public void end(bo...
code_fim
medium
{ "lang": "java", "repo": "jaredschultz214/5542_2020", "path": "/java/frc/robot/commands/AutoSetup.java", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> private final DriveSubsystem m_drive; public AutoSetup(DriveSubsystem drive) { m_drive = drive; } /* This command is called at the beginning of the autonomous commands and sets up stuff */ @Override public void initialize() { m_drive.resetGyro();// first call m_dr...
code_fim
medium
{ "lang": "java", "repo": "jaredschultz214/5542_2020", "path": "/java/frc/robot/commands/AutoSetup.java", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: jaredschultz214/5542_2020 path: /java/frc/robot/commands/AutoSetup.java /*----------------------------------------------------------------------------*/ /* Copyright (c) 2018-2019 FIRST. All Rights Reserved. */ /* Open Source Software - may be modified and shared by FRC te...
code_fim
hard
{ "lang": "java", "repo": "jaredschultz214/5542_2020", "path": "/java/frc/robot/commands/AutoSetup.java", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|>public interface CategoryService { CategoryDto getById(Integer id); List<CategoryDto> getAll(); CategoryDto create(CategoryRequest categoryRequest); CategoryDto update(Integer id,CategoryRequest categoryRequest); Boolean delete(Integer id); }<|fim_prefix|>// repo: BinGeek139/shop-shoe ...
code_fim
easy
{ "lang": "java", "repo": "BinGeek139/shop-shoe", "path": "/src/main/java/com/ptit/shopshoe/service/CategoryService.java", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: BinGeek139/shop-shoe path: /src/main/java/com/ptit/shopshoe/service/CategoryService.java package com.ptit.shopshoe.service; import com.ptit.shopshoe.controller.request.CategoryRequest; import com.ptit.shopshoe.dto.CategoryDto; <|fim_suffix|>public interface CategoryService { CategoryDto ge...
code_fim
easy
{ "lang": "java", "repo": "BinGeek139/shop-shoe", "path": "/src/main/java/com/ptit/shopshoe/service/CategoryService.java", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> CategoryDto getById(Integer id); List<CategoryDto> getAll(); CategoryDto create(CategoryRequest categoryRequest); CategoryDto update(Integer id,CategoryRequest categoryRequest); Boolean delete(Integer id); }<|fim_prefix|>// repo: BinGeek139/shop-shoe path: /src/main/java/com/ptit/shop...
code_fim
easy
{ "lang": "java", "repo": "BinGeek139/shop-shoe", "path": "/src/main/java/com/ptit/shopshoe/service/CategoryService.java", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: gegong-cloud/Rebirth_full_ppb path: /app/src/main/java/com/google/android/mvp/ui/activity/CardPayActivity.java package com.google.android.mvp.ui.activity; import android.app.AlertDialog; import android.content.DialogInterface; import android.content.Intent; import android.graphics.Color; import...
code_fim
hard
{ "lang": "java", "repo": "gegong-cloud/Rebirth_full_ppb", "path": "/app/src/main/java/com/google/android/mvp/ui/activity/CardPayActivity.java", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> void initDialog(){ new AlertDialog.Builder(this) .setTitle("粘贴提示") .setCancelable(false) .setMessage("是否粘贴卡密到输入框?") .setPositiveButton("粘贴", new DialogInterface.OnClickListener() { @Override ...
code_fim
hard
{ "lang": "java", "repo": "gegong-cloud/Rebirth_full_ppb", "path": "/app/src/main/java/com/google/android/mvp/ui/activity/CardPayActivity.java", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> super.onResume(); initDialog(); } @OnClick({R.id.toolbar_back, R.id.reg_paste, R.id.reg_reg}) public void onViewClicked(View view) { switch (view.getId()) { case R.id.toolbar_back: killMyself(); break; case R.id.r...
code_fim
hard
{ "lang": "java", "repo": "gegong-cloud/Rebirth_full_ppb", "path": "/app/src/main/java/com/google/android/mvp/ui/activity/CardPayActivity.java", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> try { CheckoutService checkoutService = new CheckoutService(new ProductDao()); checkoutService.scan("TICKET"); checkoutService.scan("TICKET"); checkoutService.scan("TICKET"); checkoutService.scan("TICKET"); checkoutService.sca...
code_fim
medium
{ "lang": "java", "repo": "bernardoms/triggerisebe", "path": "/src/main/java/be/com/Application.java", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: bernardoms/triggerisebe path: /src/main/java/be/com/Application.java package be.com; import be.com.config.CassandraConfig; import be.com.dao.ProductDao; import be.com.service.CheckoutService; <|fim_suffix|> try { CheckoutService checkoutService = new CheckoutService(new Prod...
code_fim
medium
{ "lang": "java", "repo": "bernardoms/triggerisebe", "path": "/src/main/java/be/com/Application.java", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> String res; if (value == null) { res = "-"; } else if (value){ res = "X"; } else { res = "0"; } return res; } }<|fim_prefix|>// repo: Semyon97/Unit4TaskX0 path: /src/head/util/GamerSymbolUtil.java package head.util;...
code_fim
easy
{ "lang": "java", "repo": "Semyon97/Unit4TaskX0", "path": "/src/head/util/GamerSymbolUtil.java", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: Semyon97/Unit4TaskX0 path: /src/head/util/GamerSymbolUtil.java package head.util; public class GamerSymbolUtil{ <|fim_suffix|> if (value == null) { res = "-"; } else if (value){ res = "X"; } else { res = "0"; } return ...
code_fim
medium
{ "lang": "java", "repo": "Semyon97/Unit4TaskX0", "path": "/src/head/util/GamerSymbolUtil.java", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> @Test public void testSetAndGetInstructionsUsed(){ List<Instruction> instructionsUsed = new ArrayList<>(); instructionsUsed.add(new Forward()); instructionsUsed.add(new Noise()); instructionsUsed.add(new TurnLeft()); attempt.setInstructionsUsed(instructionsU...
code_fim
hard
{ "lang": "java", "repo": "abraralmjally/TICA-work-in-progress", "path": "/app/src/test/java/com/wilki/tica/TaskAttemptUnitTest.java", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: abraralmjally/TICA-work-in-progress path: /app/src/test/java/com/wilki/tica/TaskAttemptUnitTest.java package com.wilki.tica; import com.wilki.tica.logicLayer.TaskAttempt; import org.junit.Before; import org.junit.Test; import java.util.ArrayList; import java.util.List; import com.wilki.tica....
code_fim
hard
{ "lang": "java", "repo": "abraralmjally/TICA-work-in-progress", "path": "/app/src/test/java/com/wilki/tica/TaskAttemptUnitTest.java", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> @Test public void testGetInstructionsUsedAsString(){ assertEquals(attemptString, attempt.getInstructionsUsedAsString()); } @Test public void testSetAndGetEmptyInstructionList(){ List<Instruction> emptyList = new ArrayList<>(); attempt.setInstructionsUsed(emptyL...
code_fim
hard
{ "lang": "java", "repo": "abraralmjally/TICA-work-in-progress", "path": "/app/src/test/java/com/wilki/tica/TaskAttemptUnitTest.java", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: Emtenan-eng/Seleinum-Framework path: /src/main/java/pages/GooglePage.java package pages; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.support.FindBy; public class GooglePage extends PageObjectsBases{ <|fim_suffix|> super(driver); } ...
code_fim
easy
{ "lang": "java", "repo": "Emtenan-eng/Seleinum-Framework", "path": "/src/main/java/pages/GooglePage.java", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> public GooglePage(WebDriver driver) { super(driver); } @FindBy(name = "q") WebElement SeachBar; @FindBy(xpath = ("//div[@id=\"rso\"]/div[4]/div")) public WebElement ThirdResult; public void SendText(String Text) { SeachBar.sendKeys(Text); SeachBar.submit(); } }<|fim_prefix|>// repo: Em...
code_fim
easy
{ "lang": "java", "repo": "Emtenan-eng/Seleinum-Framework", "path": "/src/main/java/pages/GooglePage.java", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: vlad-iordanescu/Training path: /eclipse_workspace_fmp/CompanyPersistance/src/com/crispica/model/Company.java package com.crispica.model; import java.util.Set; import javax.persistence.*; @Entity @Table(name = "Company") public class Company { @Id @GeneratedValue(strategy = GenerationType...
code_fim
medium
{ "lang": "java", "repo": "vlad-iordanescu/Training", "path": "/eclipse_workspace_fmp/CompanyPersistance/src/com/crispica/model/Company.java", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> return clients; } public void setClientList(Set<Client> clientList) { this.clients = clientList; } public String getCui() { return cui; } public void setCui(String cui) { this.cui = cui; } public Integer getId() { return id; } public void setId(Integer id) { this.id = id; } }<...
code_fim
medium
{ "lang": "java", "repo": "vlad-iordanescu/Training", "path": "/eclipse_workspace_fmp/CompanyPersistance/src/com/crispica/model/Company.java", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: usgs/pubs-services path: /src/test/java/gov/usgs/cida/pubs/domain/PublicationSeriesHelper.java package gov.usgs.cida.pubs.domain; public final class PublicationSeriesHelper { private PublicationSeriesHelper() { } public static final PublicationSeries THREE_ZERO_NINE = new PublicationSeries(...
code_fim
hard
{ "lang": "java", "repo": "usgs/pubs-services", "path": "/src/test/java/gov/usgs/cida/pubs/domain/PublicationSeriesHelper.java", "mode": "psm", "license": "LicenseRef-scancode-public-domain", "source": "the-stack-v2" }
<|fim_suffix|> static { FOUR_FIFTY_TWO.setId(452); FOUR_FIFTY_TWO.setPublicationSubtype(PublicationSubtypeHelper.THIRTEEN); FOUR_FIFTY_TWO.setText("Unclassified"); } public static final PublicationSeries SEVEN_NINETEEN = new PublicationSeries(); static { SEVEN_NINETEEN.setId(719); SEVEN_NINETEEN.setPublic...
code_fim
hard
{ "lang": "java", "repo": "usgs/pubs-services", "path": "/src/test/java/gov/usgs/cida/pubs/domain/PublicationSeriesHelper.java", "mode": "spm", "license": "LicenseRef-scancode-public-domain", "source": "the-stack-v2" }
<|fim_suffix|> public static final PublicationSeries FOUR_FIFTY_TWO = new PublicationSeries(); static { FOUR_FIFTY_TWO.setId(452); FOUR_FIFTY_TWO.setPublicationSubtype(PublicationSubtypeHelper.THIRTEEN); FOUR_FIFTY_TWO.setText("Unclassified"); } public static final PublicationSeries SEVEN_NINETEEN = new Publi...
code_fim
hard
{ "lang": "java", "repo": "usgs/pubs-services", "path": "/src/test/java/gov/usgs/cida/pubs/domain/PublicationSeriesHelper.java", "mode": "spm", "license": "LicenseRef-scancode-public-domain", "source": "the-stack-v2" }