query
stringlengths
7
33.1k
document
stringlengths
7
335k
metadata
dict
negatives
listlengths
3
101
negative_scores
listlengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
TODO Autogenerated method stub
@Override protected void onDestroy() { super.onDestroy(); Cleanup(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
3letter ISO 4217 currency code.
public String getCurrency() { return this.currency; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "com.google.protobuf.StringValue getCurrencyCode();", "String toAlpha3(final String iso3166Alpha2);", "public static String getISO3Country(String localeID) {\n/* 477 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public Currency(String code) {\n _code = code;\n UnitFormatImpl....
[ "0.6875619", "0.6297776", "0.6183435", "0.61624473", "0.615428", "0.6134947", "0.60200137", "0.59896475", "0.5962506", "0.5926448", "0.59059674", "0.5896221", "0.5862918", "0.58560574", "0.5792272", "0.5760384", "0.5752653", "0.5732829", "0.5720863", "0.5687365", "0.56844795"...
0.54454476
36
The delivery details for the gift card.
public GiftCardDeliveryCreate getDelivery() { return this.delivery; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n \tpublic String toString(){\n\t\treturn \n\t\t\t\"pojos.DeliveryDetails{\" +\n\t\t\t\"phone = '\" + phone + '\\'' + \n\t\t\t\",name = '\" + name + '\\'' + \n\t\t\t\",deliverTo = '\" + deliverTo + '\\'' + \n\t\t\t\"}\";\n\t\t}", "@java.lang.Override\n public com.google.cloud.networkmanagement.v1beta1...
[ "0.7049873", "0.67482626", "0.67335993", "0.6662812", "0.6605756", "0.6594499", "0.6522957", "0.6515296", "0.64288515", "0.6413183", "0.6403641", "0.6399322", "0.6387462", "0.6283253", "0.6270646", "0.6255574", "0.62170947", "0.6182893", "0.613913", "0.60504615", "0.6043718",...
0.75478786
0
Block of account details for the gifter. This references an existing account_code.
public AccountPurchase getGifterAccount() { return this.gifterAccount; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getAccountCode() {\n return accountCode;\n }", "public String viewAccount() {\n ConversationContext<Account> ctx = AccountController.newEditContext(getPart().getAccount());\n ctx.setLabelWithKey(\"part_account\");\n getCurrentConversation().setNextContextSubReadOnly(c...
[ "0.6730649", "0.64425844", "0.6179408", "0.61508495", "0.61508495", "0.61508495", "0.61508495", "0.61508495", "0.61508495", "0.61508495", "0.61508495", "0.61508495", "0.61508495", "0.61058176", "0.60984915", "0.60834765", "0.6078798", "0.60764784", "0.6047322", "0.6044582", "...
0.0
-1
The product code or SKU of the gift card product.
public String getProductCode() { return this.productCode; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getProductCode();", "java.lang.String getProductNumberCode();", "public String getSkuCode() {\n return skuCode;\n }", "String sku();", "String sku();", "public String getProductCode() {\n return productCode;\n }", "public String sku() {\n return this.sku;\n ...
[ "0.7725098", "0.73588824", "0.7125679", "0.7095784", "0.7095784", "0.7001647", "0.69220465", "0.6877165", "0.6851362", "0.6835151", "0.6832876", "0.68184036", "0.6798225", "0.6773854", "0.674382", "0.6702387", "0.668322", "0.66728264", "0.6626036", "0.6539205", "0.6539205", ...
0.6876752
8
The amount of the gift card, which is the amount of the charge to the gifter account and the amount of credit that is applied to the recipient account upon successful redemption.
public BigDecimal getUnitAmount() { return this.unitAmount; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Long getGiftamount() {\n return giftamount;\n }", "public String getReceiverChargesAmount() {\r\n\t\treturn receiverChargesAmount;\r\n\t}", "public java.math.BigDecimal getCardMoney() {\r\n return localCardMoney;\r\n }", "public BigDecimal getGiftAccount() {\r\n retu...
[ "0.6853903", "0.66307795", "0.66256845", "0.65438086", "0.6521742", "0.63082594", "0.6273664", "0.6241563", "0.62277937", "0.6222703", "0.6192106", "0.6191532", "0.6181097", "0.6096209", "0.60929585", "0.60763454", "0.6071411", "0.6071411", "0.60698044", "0.60698044", "0.6067...
0.0
-1
throw new UnsupportedOperationException("Not yet implemented"); Log.d(TAG, "onReceive() called. "); Intent pollservice = PollService.newIntent(context); context.startService(pollservice); Toast.makeText(context, "Boot_Completed", Toast.LENGTH_SHORT).show();
@Override public void onReceive(Context context, Intent intent) { boolean isAlarmOn = Utils.isAlarmOn(); PollService.setServiceAlarm(MyApplication.getContext(), isAlarmOn); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onReceive(Context context, Intent intent) {\n Log.i(\"--All\", \"Boot Wakeful\");\n Toast.makeText(context, \"Boot Wakeful\", Toast.LENGTH_LONG).show();\n Intent startServiceIntent = new Intent(context, LaunchedService.class);\n startWakefulService(context, st...
[ "0.8106673", "0.75263023", "0.7515058", "0.74734575", "0.7406807", "0.7304035", "0.72885364", "0.7287806", "0.7256565", "0.71593165", "0.70832324", "0.7028295", "0.70147634", "0.7000265", "0.69959164", "0.6987856", "0.69729495", "0.6969834", "0.69508946", "0.69364023", "0.693...
0.7181726
9
Note: test for grid using chrome was successful
@BeforeMethod public void setUp() throws Exception{ DesiredCapabilities chromecap= DesiredCapabilities.chrome(); chromecap.setBrowserName("chrome"); chromecap.setPlatform(Platform.WINDOWS); driver= new RemoteWebDriver(new URL("http://localhost:4444/wd/hub"), chromecap); driver.manage().timeouts().implicitly...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(priority = 5, dependsOnMethods = { \"verifySubscriptionPageComponents\" }, groups = { \"Smoke\" })\n\tpublic static void verifyGridComponents() throws InterruptedException {\n\n\t\ttest = report.startTest(\"Verify Components of Grid\");\n\n//\t\t//Verify Columns of Grid\n//\t\tString columnsGrid = driver.fin...
[ "0.6946823", "0.65527284", "0.64433044", "0.6314723", "0.63039356", "0.62447655", "0.6238691", "0.61744165", "0.6033583", "0.6013725", "0.59956247", "0.5990239", "0.59846383", "0.5974014", "0.5889613", "0.5836693", "0.5834748", "0.5834297", "0.5803057", "0.5784526", "0.575173...
0.0
-1
Parse JSON data in the webSide and return a List of category
public static ArrayList<Category> ParseCategories(JSONObject jsonTotalObject) { ArrayList<Category> categoryArrayList = new ArrayList<>(); try { JSONArray categories = jsonTotalObject.getJSONArray("categories"); // The recent categories Category recent = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void getCategoryList() {\n jsonArray = dataBaseHelper.getCategoriesFromDB();\n if (jsonArray != null && jsonArray.length() > 0) {\n rvCategories.setVisibility(View.VISIBLE);\n setupCategoryListAdapter(jsonArray);\n }else {\n rvCategories.setVisibility(V...
[ "0.6615085", "0.66129524", "0.65100217", "0.64896363", "0.63783926", "0.6294979", "0.62928194", "0.62677556", "0.62069345", "0.6113347", "0.5954465", "0.59469086", "0.5927606", "0.59076124", "0.58859396", "0.5876719", "0.5872069", "0.58702654", "0.5821157", "0.5816346", "0.57...
0.69549614
0
Parse JSON data of Post
public static ArrayList<Post> ParsePosts(JSONObject jsonTotalObject) { ArrayList<Post> posts = new ArrayList<>(); try { JSONArray postArray = jsonTotalObject.getJSONArray("posts"); for(int i = 0 ;i<postArray.length();i++) { JSONObject objec...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private PostData getPostData(HttpResponse response) throws IOException {\n return this.gson.fromJson(\n getContent(response),\n PostData.class\n );\n }", "void shouldParseTheJsonPostData() {\n }", "public void parseJSONData(Object JSONdata){\n\n\t}", "public native Object parse( Object ...
[ "0.6698509", "0.6669033", "0.6235005", "0.6208604", "0.58285457", "0.5757885", "0.56238925", "0.54311305", "0.5430656", "0.54212517", "0.5352754", "0.53047645", "0.52487385", "0.52260077", "0.5183474", "0.5147448", "0.5139088", "0.51311576", "0.5122674", "0.5093402", "0.50859...
0.54877144
7
Save the settings to preferences file Attempt to connect to Mongo
@Override public void actionPerformed(ActionEvent e) { connectToMongo(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void saveSettings()\n {\n try\n {\n // If remember information is true then save the ip and port\n // properties to the projects config.properties file\n if ( rememberLoginIsSet_ )\n {\n properties_.setProperty( getString( R.string...
[ "0.6950081", "0.67162883", "0.65995264", "0.65465844", "0.65406483", "0.6517344", "0.6188121", "0.61850274", "0.61687964", "0.6095171", "0.60639787", "0.60368806", "0.6031595", "0.6030871", "0.602636", "0.60134757", "0.5976708", "0.5975487", "0.5959843", "0.59439766", "0.5942...
0.0
-1
TODO Autogenerated method stub
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
delete note: the responsibility of ensuring data integrity belongs to the database; because this is an unit test, then no exception is thrown
@Test public void givenResourceDoesNotExist_whenDeleteIsTriggered_thenNoExceptions() { final long randomId = IDUtil.randomPositiveLong(); givenEntityExists(randomId); // When getApi().delete(randomId); // Then }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n /**\n * Do not allow delete of record in parent table that will cause orphan records in child tables of the database.\n */\n void dataIntegrityViolationExceptionThrownWhenDelete() {\n }", "@Test\n void deleteSuccess() {\n dao.delete(dao.getById(3));\n assertNull(dao.getB...
[ "0.7604173", "0.74246573", "0.73878056", "0.7197309", "0.71762246", "0.7148135", "0.7131582", "0.7100395", "0.70720583", "0.7064757", "0.70592785", "0.704865", "0.7043549", "0.70374054", "0.7032223", "0.7026739", "0.70144135", "0.7008486", "0.69304305", "0.6920761", "0.690699...
0.0
-1
Creates and returns the instance of entity that is existing (ie ID is not null).
protected T createSimulatedExistingEntity() { final T entity = createNewEntity(); entity.setId(IDUtil.randomPositiveLong()); when(getDAO().findOne(entity.getId())).thenReturn(entity); return entity; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "E create(E entity);", "E create(E entity);", "Entity createEntity();", "ID create(T entity);", "default E create(E entity)\n throws TechnicalException, ConflictException {\n return create(entity, null);\n }", "@Override\n\t@Transactional\n\tpublic T create(T entity) {\n\t\tif (entity...
[ "0.74535507", "0.74535507", "0.7045669", "0.6989432", "0.6771014", "0.6723611", "0.6719015", "0.66251314", "0.6611582", "0.6496567", "0.64907944", "0.64871603", "0.64649427", "0.6450595", "0.6441691", "0.6377176", "0.6337222", "0.63361627", "0.6296892", "0.6265789", "0.619249...
0.7230372
2
Gets the application event publisher mock.
protected final ApplicationEventPublisher getEventPublisher() { return eventPublisher; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public void setApplicationEventPublisher(ApplicationEventPublisher applicationEventPublisher) {\r\n this.publisher = applicationEventPublisher;\r\n }", "public void setEventPublisher(ApplicationEventPublisher eventPublisher) {\n this.eventPublisher = eventPublisher;\n }", "public...
[ "0.6275361", "0.62688226", "0.62688226", "0.6143533", "0.6037624", "0.59537154", "0.5730499", "0.5658048", "0.5654504", "0.5645257", "0.5590175", "0.55785346", "0.5546829", "0.5450572", "0.54090405", "0.54046285", "0.53700197", "0.5359892", "0.52466965", "0.52286124", "0.5225...
0.7521957
0
Gets the service that is need to be tested.
protected abstract IRawService<T> getApi();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Service getService() {\n return service;\n }", "public Object getService() {\n return service;\n }", "public AbstractService getService() {\n return service;\n }", "public Service getService() {\n\t\treturn _service;\n\t}", "public String getService() {\n\t\treturn ser...
[ "0.7513106", "0.7397413", "0.72173417", "0.714994", "0.71355087", "0.70187396", "0.70187396", "0.70187396", "0.70179987", "0.70017", "0.68628716", "0.68606025", "0.68606025", "0.68606025", "0.6755573", "0.6751876", "0.66882885", "0.66565144", "0.6656379", "0.6637551", "0.6611...
0.0
-1
Gets the DAO mock.
protected abstract PagingAndSortingRepository<T, Long> getDAO();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static synchronized Dao getDao() {\r\n if (dao == null) {\r\n dao = new Dao();\r\n }\r\n return dao;\r\n }", "D getDao();", "public static IDAO DAO()\n {\n Log.d(TAG, \"DAO: Attempting get instance. Instance: \" + (DAO != null));\n if (DAO == null)\n ...
[ "0.7355213", "0.72510487", "0.72343415", "0.72298306", "0.7089849", "0.6927662", "0.6867179", "0.6834117", "0.6813391", "0.6799855", "0.6783293", "0.67625797", "0.67433167", "0.67251396", "0.66807556", "0.667493", "0.66327536", "0.66215193", "0.6619721", "0.6597695", "0.65888...
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { String str = "swati"; int i = 0; System.out.println(str.charAt(i)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
Number will terminate only if its prime factorization is 2^a 5^a
public static void main(String[] args) { int maxRepeats = 0, number = -1; for(int i = 1; i < 1000; i++) { if(!willTerminate(i)) { List<Integer> remainders = new ArrayList<Integer>(); int repeats = numberOfRepeats(i, remainders); if(repeats > maxRepeats) { maxRepeats = repeats; number = i; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void primeNumber(int a)\n { boolean result = false;\n int i;\n if(a!=1)\n {\n for( i=2;i<a;i++)\n {\n if(a%i==0)\n {\n break;\n }\n\n }\n if(a==i)\n {\n ...
[ "0.67298675", "0.65639716", "0.6548538", "0.6548124", "0.6543901", "0.6522608", "0.649809", "0.6452677", "0.6447146", "0.63295287", "0.63266593", "0.63228744", "0.6313099", "0.62889093", "0.62883806", "0.62806827", "0.6263786", "0.6218389", "0.6188821", "0.61821353", "0.61762...
0.0
-1
Created by ueliton on 02/04/16.
public interface AnimalRepository { void getAnimals(LoadAnimalsCallBack loadAnimalsCallBack); void getAnimal(Long animalId, LoadAnimalCallBack caploadAnimalCallBackture); void saveAnimal(Animal animal); void refreshData(); void findById(long animalId); interface LoadAnimalsCallBack { vo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n...
[ "0.59347093", "0.59285253", "0.58229834", "0.57158214", "0.57158214", "0.57013893", "0.5691452", "0.5665679", "0.5645516", "0.56356835", "0.5622017", "0.56210923", "0.5617534", "0.56131965", "0.56125385", "0.55956405", "0.5593219", "0.55753314", "0.55753314", "0.55753314", "0...
0.0
-1
TODO Autogenerated method stub
private void doProcess(HttpServletRequest request, HttpServletResponse response) throws Exception{ UserBean userbean = new UserBean(); RequestDispatcher dispatcher = null; HttpSession session = request.getSession(false); userbean.setName(request.getParameter("name")); userbean.setPassword(request.getParame...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
Find all quote locations
@Override public Object produceValue(Annotation np, Document doc) { SortedSet<Integer> quoteLocations = new TreeSet<Integer>(); Pattern p = Pattern.compile("\"|''|``|\u201C|\u201D"); String text = doc.getText(); Matcher m = p.matcher(text); boolean inQuote = false; while (m.find()) { int sta...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<String> locations();", "@Test\n\tpublic void listLocations(){\n\t\tList<Location> lists = locationService.queryLoctionsByLat(29.8679775, 121.5450105);\n\t\t//System.out.println(lists.size()) ;\n\t\tfor(Location loc : lists){\n\t\t\tSystem.out.println(loc.getAddress_cn());\n\t\t}\n\t}", "List<Place> findUn...
[ "0.550652", "0.5427283", "0.5413275", "0.5376726", "0.53716093", "0.5258895", "0.52273893", "0.51612604", "0.515179", "0.5126077", "0.5124048", "0.5115849", "0.5106771", "0.50766283", "0.5066736", "0.50527513", "0.5031199", "0.5023736", "0.49950564", "0.49896142", "0.4947197"...
0.5656328
0
includes buttons and appropriate text
private void initializeFeatures() { int buttonLength = 2*super.getXLength()/3; int buttonHeight = super.getYLength()/6; int startX = super.getXPos() + super.getXLength()/2 - buttonLength/2; int startY = super.getYPos() + super.getYLength()/2 - buttonHeight/2; int spacingBetweenButtons = 10; start = new St...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setupButtons()\n\t{\n\t\tequals.setText(\"=\");\n\t\tequals.setBackground(Color.RED);\n\t\tequals.setForeground(Color.WHITE);\n\t\tequals.setOpaque(true);\n\t\tequals.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 50));\n\t\tequals.setBorder(new CompoundBorder(new LineBorder(Color.LIGHT_GRAY, 5), new...
[ "0.7010331", "0.67740667", "0.67275673", "0.6699844", "0.66970253", "0.66607785", "0.6623739", "0.6605472", "0.6577003", "0.6563235", "0.6559339", "0.65225756", "0.6510105", "0.64923614", "0.6462934", "0.64521855", "0.6440667", "0.6424569", "0.6412758", "0.63961005", "0.63670...
0.0
-1
TODO Autogenerated method stub
@Override public void arrowInput(int keyCode) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void init(FilterConfig filterConfig) throws ServletException { System.out.print("过滤初始"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void destroy() { System.out.print("过滤销毁"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
Create a statistic record set
private Messages.StatisticSetRecord serializeMetricData( final PeriodicData periodicData, final String metricName, final Collection<AggregatedData> data) { final Messages.StatisticSetRecord.Builder builder = Messages.StatisticSetRecord.newBuilder() .setMetric(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public Class<StatsSetRecord> getRecordType() {\n return StatsSetRecord.class;\n }", "SummaryRecordType createSummaryRecordType();", "private void populateData() {\n\t\tList<TrafficRecord> l = TestHelper.getSampleData();\r\n\t\tfor(TrafficRecord tr: l){\r\n\t\t\tput(tr);\r\n\t\t}\r\n\t\...
[ "0.57644683", "0.5632082", "0.5507559", "0.53904694", "0.5310133", "0.53086394", "0.53055227", "0.5300003", "0.5291464", "0.52861166", "0.5281962", "0.52574974", "0.52516663", "0.52017796", "0.51922065", "0.51907676", "0.51770484", "0.51706755", "0.516127", "0.5160636", "0.51...
0.48824283
58
Using AntRunner leaked memory. It is either kotlinc itself or its ant adapter. Now we fork a new process via a shell script.
public void testTargetDoesRunOutOfMemoryWhenRepeated() throws Exception { if (true) { System.err .println("Not running the slow testTargetDoesNotLeakMemory" + " unless temporarily enabled."); return; } @SuppressWarnings("unused") Source src = Source.underWsroot("src"); int iterationCount = 1...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n new GoldenCopyCreationTool().invokeAndTerminate(args);\n }", "@Override\n\t\t\t\tpublic void run()\n\t\t\t\t{\n\t\t\t\t\ttry \n\t\t\t\t\t{\n\t\t\t\t\t\tThread.sleep(30000);\n\t\t\t\t\t\tif (buildProcess.isAlive())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tbuildProcess.destroy()...
[ "0.52748245", "0.5252539", "0.52348703", "0.5185256", "0.5181709", "0.5114291", "0.5070683", "0.50496864", "0.4979312", "0.49601468", "0.49441004", "0.4930639", "0.49263927", "0.49111375", "0.48909098", "0.48754218", "0.48261616", "0.4815093", "0.48106068", "0.47674495", "0.4...
0.43735573
96
TODO Autogenerated method stub
@Override public void onClick(View v) { DBCreate(); SubmitData2SQLiteDB(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void onClick(View v) { Intent intent = new Intent(MainActivity.this, EditDataActivity.class); startActivity(intent); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void onClick(View v) { Intent intent = new Intent(MainActivity.this, ListViewActivity.class); startActivity(intent); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
Created by kason_zhang on 11/16/2016.
public interface MainActivityView { void showLoading(); void hideLoading(); void toMainActivity(String data); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r...
[ "0.6198659", "0.60742897", "0.5981814", "0.5976576", "0.59021735", "0.59021735", "0.5885065", "0.5833068", "0.58102", "0.5807851", "0.57973456", "0.576051", "0.575708", "0.5749562", "0.57412785", "0.57360536", "0.57360536", "0.57360536", "0.57360536", "0.57360536", "0.5733698...
0.0
-1
Path: ^(([^:/?]+):)?(//([^/?]))?([^?])(\?([^]))?((.))? ________ Query: ^(([^:/?]+):)?(//([^/?]))?([^?])(\?([^]))?((.))? _______ Fragment: ^(([^:/?]+):)?(//([^/?]))?([^?])(\?([^]))?((.))? ______
public static void parseFullPath(char[] path, IUriListener listener) { UriParser parser = new UriParser(listener); parser.parseFullPath(path, 0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initializePath(String p_uriSpec, int p_nStartIndex)\n throws MalformedURIException {\n if (p_uriSpec == null) {\n throw new MalformedURIException(\n \"Cannot initialize path from null string!\");\n }\n \n int index = p_nStartIndex;\n int start = p...
[ "0.57589775", "0.5616885", "0.5541757", "0.5488055", "0.54692966", "0.5380574", "0.5301306", "0.5226579", "0.5215026", "0.51964533", "0.5174469", "0.5119337", "0.5118507", "0.51169664", "0.50928104", "0.508305", "0.50420606", "0.50396657", "0.5014143", "0.5003989", "0.500051"...
0.48473814
38
Path: ^(([^:/?]+):)?(//([^/?]))?([^?])(\?([^]))?((.))? ________ Query: ^(([^:/?]+):)?(//([^/?]))?([^?])(\?([^]))?((.))? _______ Fragment: ^(([^:/?]+):)?(//([^/?]))?([^?])(\?([^]))?((.))? ______
public static void parseFullPath(String path, IUriListener listener) { if (path == null) { path = ""; } char[] array = path.toCharArray(); parseFullPath(array, listener); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initializePath(String p_uriSpec, int p_nStartIndex)\n throws MalformedURIException {\n if (p_uriSpec == null) {\n throw new MalformedURIException(\n \"Cannot initialize path from null string!\");\n }\n \n int index = p_nStartIndex;\n int start = p...
[ "0.57589775", "0.5616885", "0.5541757", "0.5488055", "0.54692966", "0.5380574", "0.5301306", "0.5226579", "0.5215026", "0.51964533", "0.5174469", "0.5119337", "0.5118507", "0.51169664", "0.50928104", "0.508305", "0.50420606", "0.50396657", "0.5014143", "0.5003989", "0.500051"...
0.47608212
60
Scheme: ^(([^:/?]+):)?(//([^/?]))?([^?])(\?([^]))?((.))? __________ Authority: ^(([^:/?]+):)?(//([^/?]))?([^?])(\?([^]))?((.))? _____________
public static void parseSchemeAndAuthority( char[] schemeAndAuthority, IUriListener listener) { UriParser parser = new UriParser(listener); parser.parseSchemeAndAuthority(schemeAndAuthority, 0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean initializeAuthority(String p_uriSpec) {\n \n int index = 0;\n int start = 0;\n int end = p_uriSpec.length();\n \n char testChar = '\\0';\n String userinfo = null;\n \n // userinfo is everything up to @\n if (p_uriSpec.indexOf('@', start) != -1) {\n while (index...
[ "0.6237749", "0.6206694", "0.62058115", "0.5914358", "0.5786256", "0.567148", "0.5660682", "0.5647068", "0.5647068", "0.5647068", "0.5538054", "0.5535162", "0.552078", "0.55026215", "0.55014724", "0.5472717", "0.5460176", "0.53937954", "0.53903866", "0.53837144", "0.5379981",...
0.50643
29
Scheme: ^(([^:/?]+):)?(//([^/?]))?([^?])(\?([^]))?((.))? __________ Authority: ^(([^:/?]+):)?(//([^/?]))?([^?])(\?([^]))?((.))? _____________
public static void parseSchemeAndAuthority( String schemeAndAuthority, IUriListener listener) { if (schemeAndAuthority == null) { schemeAndAuthority = ""; } char[] array = schemeAndAuthority.toCharArray(); parseSchemeAndAuthority(array, listener); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean initializeAuthority(String p_uriSpec) {\n \n int index = 0;\n int start = 0;\n int end = p_uriSpec.length();\n \n char testChar = '\\0';\n String userinfo = null;\n \n // userinfo is everything up to @\n if (p_uriSpec.indexOf('@', start) != -1) {\n while (index...
[ "0.62384474", "0.62042797", "0.62033415", "0.59133434", "0.57844204", "0.5669879", "0.5659042", "0.564509", "0.564509", "0.564509", "0.5536734", "0.55333656", "0.5520068", "0.55012345", "0.5499655", "0.5471624", "0.5458677", "0.53922564", "0.53893363", "0.53836685", "0.537827...
0.50954753
28
Set up the base world.
@BeforeClass public static void setup() { baseWorld = new BaseWorld(1000 ,1500); GameManager.get().setWorld(new BaseWorld(1000, 1500)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract void initializeWorld();", "public OverWorld()\n { \n // Create a new world with 800x600 cells with a cell size of 1x1 pixels.\n super(1024, 600, 1, false);\n Setup();\n }", "public Main()\n { \n // Create a new world with 600x400 cells with a cell s...
[ "0.72868526", "0.6739066", "0.67386353", "0.6687387", "0.652481", "0.65082127", "0.6434996", "0.6385495", "0.63833463", "0.63551706", "0.6334548", "0.63295203", "0.6328409", "0.63211757", "0.6307975", "0.6252953", "0.61901426", "0.6187943", "0.6180147", "0.6179769", "0.617514...
0.7781552
0
Make new bomb items and commanders for each test.
@Before public void prepare() { bomb = new Special(SpecialType.NUKE); com = new Commander(0, 0, 0, 1); baseHP = com.getHealth(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void fillBombs()\r\n {\r\n for (int i = 0; i < gameBoard.BOMB_COUNT; i++)\r\n {\r\n Cell tempCell = new Cell(true);\r\n tempCell.makeBomb();\r\n initBombClick(tempCell);\r\n gameBoard.bombList.add(tempCell);\r\n }\r\n for (int j = ga...
[ "0.6350881", "0.61439943", "0.6006647", "0.5991045", "0.5805268", "0.5804196", "0.58009547", "0.5786688", "0.57234454", "0.5707926", "0.5704304", "0.570426", "0.56546277", "0.56345093", "0.56329286", "0.5621958", "0.5619991", "0.5590482", "0.5588162", "0.5558468", "0.55457383...
0.5694319
12
test the get method for determining the last use of the item for both when the item is up to it's last use and when it isn't
@Test public void getUse () { Assert.assertEquals(false, bomb.useItem()); Special aoeHeal = new Special(SpecialType.HEALTHSHOT); Assert.assertEquals(true, aoeHeal.useItem()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Item getLast();", "public String getLastItem();", "public Item getLast() {\n return items[size - 1];\n }", "public boolean offerLast(E item);", "void checkLastItem() {\n if (!mItems.isEmpty() && !mItems.get(mItems.size() - 1).equals(ADD_NEW_ENTRY)) {\n // add last item ag...
[ "0.7186948", "0.6706217", "0.6664841", "0.66495603", "0.66239643", "0.6603744", "0.65696156", "0.65234876", "0.6522305", "0.6455093", "0.6357199", "0.6336601", "0.6280581", "0.61730033", "0.60598916", "0.60093886", "0.59913754", "0.59568727", "0.59401226", "0.5917391", "0.590...
0.0
-1
test the get method for the Item type enumerate value of the item (not the one to make it).
@Test public void getItemType () { Assert.assertEquals("SPECIAL", bomb.getItemType().name()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Item get(int i);", "@Override\n public int getItemType() {\n return ITEM_TYPE;\n }", "public int getITEM() {\r\n return item;\r\n }", "public abstract Object getValue(Object itemInstance) throws\n InvocationTargetException, IllegalAccessException;", "default V get()...
[ "0.6448048", "0.6129159", "0.6122468", "0.60888934", "0.6042461", "0.6026661", "0.6017157", "0.59492624", "0.59138346", "0.587297", "0.5859362", "0.5851473", "0.5843201", "0.58372265", "0.5832532", "0.5827308", "0.57987165", "0.5777783", "0.57692844", "0.5763631", "0.5760122"...
0.6154513
1
test the get method for the description of the bomb
@Test public void getDescription () { String testString = "Nuke\n" + "Damage: 700\n"; Assert.assertEquals(testString, bomb.getDescription()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n public void testGetDescription() {\r\n System.out.println(\"getDescription\");\r\n \r\n String expResult = \"\";\r\n String result = instance.getDescription();\r\n assertEquals(expResult, result);\r\n \r\n \r\n }", "@Test\n public void testGetDe...
[ "0.66539913", "0.65471715", "0.64321566", "0.6411464", "0.63992673", "0.624645", "0.6235541", "0.6220218", "0.6220218", "0.6219781", "0.6216259", "0.61132777", "0.6110823", "0.6110823", "0.6109485", "0.6090124", "0.60465604", "0.60257715", "0.60222214", "0.5995462", "0.598092...
0.7211205
0
Tests whether HealthEffect can change the Commander's health when used. Also checks the typical damage case and the over heal (heal more than max HP) case.
@Test public void useEffect() { //should normally run useItem method, but for testing it is not needed here. HealthEffect bombEff = (HealthEffect) bomb.getEffect().get(0); bombEff.applyEffect(com); Assert.assertTrue(com.getHealth() == baseHP - 700); Special heal = new Special(SpecialType.HE...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testChangeHealth() {\n\t\tnpc.setLevel(1);\n\t\tnpc.setHealth(23);\n\t\tint tempHealth = npc.getHealth();\n\t\tnpc.changeHealth(10);\n\t\tassertTrue(npc.getHealth() == tempHealth + 10);\n\t\tnpc.changeHealth(100);\n\t\tassertTrue(npc.getHealth() == npc.getMaxHealth());\n\t\tnpc.changeHealth(-9...
[ "0.6445385", "0.64428484", "0.61715436", "0.61715436", "0.61715436", "0.61715436", "0.61715436", "0.6017997", "0.5926405", "0.5862035", "0.58595425", "0.58236265", "0.58129907", "0.5803556", "0.57771885", "0.57677454", "0.57364833", "0.57312053", "0.57234055", "0.5711078", "0...
0.5693733
21
Test some aspects of the SpecialType that is been left over by other test cases
@Test public void specialTypeTest() { // check radius and duration SpecialType special = SpecialType.NUKE; Assert.assertEquals(0, special.getRadius()); Assert.assertEquals(0, special.getDuration()); //check cost int[] cost = special.getCost(); Assert.assertTrue(cost[0]==200 ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testType() {\n assertTrue( ((OclAny)(Ocl.getOclRepresentationFor(6))).oclIsTypeOf(tInteger).isTrue() );\n assertTrue( ((OclAny)(Ocl.getOclRepresentationFor(6))).oclIsTypeOf(tReal).not().isTrue() ); //differs\n assertTrue( ((OclAny)(Ocl.getOclRepresentationFor(p1))).oclIsTypeOf(tPersonFQ).isTru...
[ "0.6192956", "0.6081988", "0.60334617", "0.59919035", "0.5951531", "0.5910116", "0.58766496", "0.5836601", "0.574167", "0.574167", "0.574167", "0.57410717", "0.5739497", "0.5711926", "0.5711926", "0.5668679", "0.56559736", "0.5655488", "0.56434935", "0.5629942", "0.56105125",...
0.7325777
0
Stack s2 = new Stack();
void enqueue(int value) { s1.push(value); size++; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public MinStack2() {\n stack1 = new Stack<>();\n stack2 = new Stack<>();\n }", "public MinStack1() {\r\n stack = new Stack<>();\r\n }", "public MyStack() {\n\n }", "public MinStack() {\r\n stk = new Stack<>();\r\n stk1 = new Stack<>();\r\n }", "public MinSta...
[ "0.778653", "0.77526724", "0.7601972", "0.7577269", "0.75679594", "0.74565184", "0.7345272", "0.7277355", "0.7244482", "0.718336", "0.71824276", "0.71822536", "0.7153798", "0.7132682", "0.71097404", "0.7109675", "0.7098451", "0.7086401", "0.70259255", "0.70230013", "0.7018671...
0.0
-1
Find by primary key.
public final E find(final K id) { return getJpaTemplate().find(getEntityClass(), id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "T findById(long pk);", "public String ejbFindByPrimaryKey(String primaryKey) \n throws FinderException {\n\n // Precondition\n if ( primaryKey == null ) {\n throw new FinderException( \"null primaryKey\" );\n }\n\n Connection conn = null;\n PreparedStatement stmt = null;\n ResultSet rs ...
[ "0.7731156", "0.74453217", "0.7396883", "0.73116523", "0.72844857", "0.72724295", "0.72485024", "0.7240206", "0.71692514", "0.71664584", "0.70926106", "0.7062917", "0.70583224", "0.7052086", "0.70340735", "0.6958666", "0.6917018", "0.6884657", "0.6881207", "0.68705624", "0.68...
0.0
-1
Check if the instance belongs to the current persistence context.
public final boolean contains(final E entity) { return getJpaTemplate().contains(entity); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean isPersistenceContext();", "public boolean isManaged(T instance) {\r\n\t\tif (instance != null) {\r\n\t\t\tif (instance.getId() > 0) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t} \r\n\t\treturn false;\r\n\t}", "public boolean isStreamCurrentContextThreadCurrentContext() {\n return contexts.get(cu...
[ "0.7830638", "0.6521113", "0.6488935", "0.63718975", "0.63718975", "0.636616", "0.6349441", "0.60631526", "0.59518653", "0.5942086", "0.58385265", "0.58215225", "0.58099747", "0.57713634", "0.57598794", "0.5744828", "0.57271117", "0.57271117", "0.57271117", "0.57271117", "0.5...
0.0
-1
Make an entity instance managed and persistent.
public final void persist(final E entity) { getJpaTemplate().persist(entity); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "T makePersistent(T entity);", "Entity createEntity();", "public T create(T entity) {\n\t \tgetEntityManager().getTransaction().begin();\n\t getEntityManager().persist(entity);\n\t getEntityManager().getTransaction().commit();\n\t getEntityManager().close();\n\t return entity;\n\t...
[ "0.789201", "0.75035375", "0.6925754", "0.690005", "0.690005", "0.68777305", "0.6798418", "0.67613685", "0.6696762", "0.667674", "0.66039085", "0.65937454", "0.65680057", "0.656142", "0.656142", "0.65604943", "0.64648026", "0.64399785", "0.64131135", "0.64071125", "0.63934636...
0.0
-1
Refresh the state of the instance from the database, overwriting changes made to the entity, if any.
public final void refresh(final E entity) { getJpaTemplate().refresh(entity); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void reload () {\n\t\tentity = uuidManager.get(uuid);\n\t\treloadAccessors();\n\t\tcheckAccessors();\n\t}", "@Override\n protected void forceRefresh() {\n if (getEntity() != null) {\n super.forceRefresh();\n }\n }", "@Override\n\tpublic void refresh(Object entity) {\n\t\t\...
[ "0.70595884", "0.69267017", "0.6909046", "0.6786049", "0.6622186", "0.6612364", "0.64432144", "0.6301075", "0.62957823", "0.62241316", "0.6206904", "0.6191928", "0.617765", "0.6101399", "0.60744387", "0.606067", "0.6055199", "0.6037372", "0.6029605", "0.6029605", "0.5998459",...
0.65288126
6
Remove the entity instance.
public final void remove(final E entity) { getJpaTemplate().remove(entity); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void remove(Object entity) {\n\t\t\n\t}", "@Override\r\n\tpublic void delete(T instance) {\r\n\t\tif (isManaged(instance)) {\r\n\t\t\tinstance = loadInstance(instance.getId());\r\n\t\t\tgetEntityManager().remove(getEntityManager().merge(instance));\r\n\t\t}\r\n\t}", "public void removeEntit...
[ "0.71894", "0.7170637", "0.70335084", "0.69903755", "0.69825506", "0.6966224", "0.69654053", "0.6927933", "0.68814", "0.6676353", "0.66739595", "0.6671698", "0.6663473", "0.66045403", "0.6593228", "0.65373874", "0.64947873", "0.64819187", "0.6429435", "0.6426916", "0.64080113...
0.71653515
2
O cartao premium numa compra acumula a parte inteira de 30% do total gasto, alem disso, o cartao soma mais 10 pontos a cada R$100,00.
public int addPontos(double gastos) { double pontos = gastos * BONUS_PREMIUM; int totalPontos = (int) pontos; if (gastos > 100) { double adicional = gastos / 100; totalPontos += (int) adicional * 10; } return totalPontos; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double calcular_costo() {\n\t\t return 1.3*peso+30 ;\n\t}", "public int getProteksi(){\n\t\treturn (getTotal() - getPromo()) * protectionCost / 100;\n\t}", "public BigDecimal getPercentageProfitPLimit();", "public int precioFinal(){\r\n int monto=super.PrecioFinal();\r\n\t \t \r\n\t ...
[ "0.6734216", "0.6647547", "0.6596072", "0.6425782", "0.64048797", "0.6360407", "0.63489693", "0.62348443", "0.623014", "0.6222435", "0.6194356", "0.61716586", "0.61624026", "0.61466306", "0.610277", "0.60980856", "0.6095878", "0.6077283", "0.60591555", "0.60583276", "0.605059...
0.0
-1
Created by user on 20160216.
public interface ContentRepository { List<Content> findContentList(int bbsId, int pageNum, int perPage, int searchMode, String searchContent); long findContentCount(int bbsId, int searchMode, String searchContent); void saveContent(Content content); Content findContentById(int contentId); void ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "public final void mo51373a() {\n }", "private stendhal() {\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Ov...
[ "0.5996911", "0.596167", "0.5879825", "0.5794506", "0.57663155", "0.5756412", "0.5756412", "0.57510024", "0.5749749", "0.573238", "0.57276464", "0.56827736", "0.56720126", "0.56348795", "0.56234384", "0.56112516", "0.5607861", "0.5603846", "0.5603846", "0.5603846", "0.5603846...
0.0
-1
Class Override An action that interrupts, cancels, or changes the current action or status.
public interface IOverride extends IMeasurement_descriptor{ public IRI iri(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void setAction() {\n\t}", "@Override\r\n\t\tpublic void action()\r\n\t\t{\r\n// throw new UnsupportedOperationException(\"Not supported yet.\");\r\n\t\t}", "public void undoAction(){}", "private void act() {\n\t\tmyAction.embodiment();\n\t}", "public synchronized void applyAc...
[ "0.6599565", "0.65471596", "0.6533579", "0.6445072", "0.63685495", "0.6352724", "0.6352724", "0.6352724", "0.6292451", "0.6280283", "0.62782854", "0.6221949", "0.6197299", "0.6195498", "0.61882097", "0.61550677", "0.61478776", "0.6135389", "0.6126778", "0.6090016", "0.6075735...
0.0
-1
constructor to ask firstname and lastname
public Email(String firstname,String lastname) { this.firstname=firstname; this.lastname=lastname; //System.out.println("EMAIL CREATED:"+this.firstname+this.lastname); //create a method asking for department this.department=setDepartment(); //System.out.println("Deaprtment:"+this.department); //c...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public NameInfo(String inFirst, String inLast)\n\t{\n\t\t//Set instance data.\n\t\tfirstName = inFirst;\n\t\tlastName = inLast;\n\n\t}", "public Person(String first, String last) {\n // Set instance var firstname to what is called from constructor\n this.firstName = first; \n // Set instanc...
[ "0.77380174", "0.7540777", "0.73858505", "0.73557425", "0.7294955", "0.72631824", "0.71913385", "0.7184382", "0.7108635", "0.70962226", "0.7069822", "0.7043991", "0.70338374", "0.703238", "0.70251864", "0.7010493", "0.69220686", "0.6877892", "0.67953867", "0.6754509", "0.6718...
0.0
-1
Created by Administrator on 2016/11/7.
public interface Waiter { void greetTo(String name); void serverTo(String name); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Ov...
[ "0.6211543", "0.61630076", "0.6075793", "0.6045084", "0.59776986", "0.5972942", "0.59028673", "0.5899255", "0.58770233", "0.5875514", "0.5875514", "0.5852147", "0.58392143", "0.58392143", "0.5833993", "0.5830946", "0.58201", "0.5817547", "0.5783824", "0.5760226", "0.57521766"...
0.0
-1
Adapting for BB viewing
public void addMessage( String buddyId, String buddyNick, String text, int type ) { text = "[p]".concat( text ).concat( "[/p]" ); /** Checking for type in settings **/ switch ( type ) { case TYPE_STATUS_CHANGE: { if ( !MidletMain.statusChange ) { return; } break; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void previewBb() {\n try {\n populateBillboard();\n billboard.previewBillboard();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@Override\n\tpublic void bbb() {\n\t\t\n\t}", "protected abstract MS_LineBuilder prepareContent(M...
[ "0.6526536", "0.5670378", "0.5572882", "0.5567596", "0.5564735", "0.55618364", "0.55000633", "0.54729575", "0.54190135", "0.5406607", "0.5396429", "0.5365877", "0.53524196", "0.5333702", "0.532778", "0.52877164", "0.5279487", "0.52712643", "0.5264509", "0.52568287", "0.523412...
0.0
-1
This method queries for specific users based on user entered search criteria, returning all if the criteria is empty
public List<User> getSpecificUsers(String searchQuery) { logger.info("Currently in method 'getSpecificUsers()'."); Database database = Database.getInstance(); Connection connection = null; List<User> specificUsers = new ArrayList<User>(); String sql = "SELECT * FROM users WHERE i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic ArrayList<User> searchUsers() {\n\t\treturn userDao.searchUsers();\n\t}", "public static void search() {\n int userSelected = selectFromList(crudParamOptions);\n switch (userSelected){\n case 1:\n searchFirstName();\n break;\n ...
[ "0.7062874", "0.7039598", "0.6974941", "0.69492215", "0.69188344", "0.67994195", "0.6754062", "0.6729259", "0.6669741", "0.66071177", "0.6600906", "0.65638655", "0.6561883", "0.65511703", "0.65028393", "0.65014285", "0.6489321", "0.6429506", "0.6413964", "0.63721037", "0.6333...
0.70777094
0
This method creates users from results sets
private User createUserFromResults(ResultSet results) throws SQLException { User user = new User(); user.setLastName(results.getString("last_name")); user.setFirstName(results.getString("first_name")); user.setUserid(results.getString("id")); user.setDateOfBirth(results.getDate("...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void createUsers() {\n\n\t\tList<User> UserList = Arrays.asList(new User(\"Kiran\", \"kumar\", \"kiran@gmail.com\", 20),\n\t\t\t\tnew User(\"Ram\", \"kumar\", \"ram@gmail.com\", 22), new User(\"RamKiran\", \"LaxmiKiran\", \"sita@gmail.com\", 30),\n\t\t\t\tnew User(\"Lakshamn\", \"Seth\", \"seth@gmail.com\"...
[ "0.69333434", "0.69264853", "0.67359906", "0.6586409", "0.6513758", "0.6511363", "0.6500566", "0.64192975", "0.6280297", "0.6241587", "0.62148094", "0.6213002", "0.61756444", "0.6172899", "0.61499786", "0.6102366", "0.6098259", "0.60943323", "0.60839725", "0.6055771", "0.6055...
0.6963085
0
TODO Autogenerated method stub
public static void main(String[] args) { make(); setWidth(); setHeight(); printAll(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
1 represents X 1 represents O 0 represents empty space (move yet to be made)
@Test public void testCheckVert() throws Exception { int[][] game = { {1, 1, -1}, {-1, 1, 0}, {0, 1, -1} }; this.currentGame = new TicTac(game, 0, 1); System.out.println("Game 1: X has won"); assertEquals("X has won", current...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean isSpaceFree(Move move) {\n int moveX = move.getMoveX(); \n int moveY = move.getMoveY(); \n if (boardState[moveX][moveY] == 'X' || boardState[moveX][moveY] == 'O') {\n return false; \n }\n return true; \n }", "public void undoMove(Move move) {\n b[move.from.row][move.fr...
[ "0.6260748", "0.60440123", "0.60022765", "0.58971226", "0.5818304", "0.57217133", "0.5709798", "0.5704585", "0.5657202", "0.56566745", "0.56444323", "0.56042445", "0.5589277", "0.5579552", "0.55786693", "0.5563575", "0.55487764", "0.553039", "0.5527383", "0.5519527", "0.55140...
0.0
-1
To use this class referencing, simple extend this class with your own and plugin your own values. NOTE: Class is mostly provided as a framework for this type of localized management.
protected LibReference() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void localizationChaneged();", "public interface LocalizationService {\n\n /**\n *\n * @param locale - the languge that we like to present\n * @return\n */\n Map<String, String> getAllLocalizationStrings(Locale locale);\n\n /**\n * @param prefix - show all strings which start with t...
[ "0.6880177", "0.6834008", "0.6673064", "0.6470955", "0.6445001", "0.63305986", "0.62912816", "0.627491", "0.62676084", "0.62613994", "0.6225523", "0.62032175", "0.6189833", "0.61897314", "0.6156861", "0.6138863", "0.6138863", "0.6138863", "0.61079156", "0.6048611", "0.6046876...
0.0
-1
bazov interface za vsichki "filtyr" elementi
public interface EditableFilterElement { public String getTextValue(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface Filtrado extends ItemFiltro {\n\t/**\n\t * A exemplo da interface Serializable, mas nao necessariamente pelo menos\n\t * motivo, esta interface nao define nenhum metodo.\n\t */\n\t\n\t/**\n\t* Deseja-se ter um elo entre Filtrado e registro,\n\t* visto que o que se deseja eh armazenadar os\n\t* fil...
[ "0.61972064", "0.60425186", "0.5609985", "0.55285925", "0.55202967", "0.5469125", "0.54391396", "0.53909177", "0.53561556", "0.53393894", "0.5318971", "0.5300625", "0.5210988", "0.51526845", "0.51507956", "0.51319385", "0.51008344", "0.5097736", "0.5090746", "0.5066917", "0.5...
0.47736937
54
TODO Autogenerated method stub
@Override public Org getOrgByType(String number) { Map<String,Object> param=new HashMap<String, Object>(); param.put("orgType", number); List<Org> olist=this.orgDao.getOrgByType(param); Org org=null; if(null != olist && olist.size()>0){ for(int i=0;i<olist.size();i++){ Org o=olist.get(i); if(i ==...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
Selecting One Way option and providing the departure location
@Test public void testThatResultsAppearForAOneWayJourney() { operation.clickOnObject(OR.oneWayRadioButton); operation.setText(OR.fromTextBox, "Bangalore"); // wait for the auto complete options to appear for the origin wait.until(ExpectedConditions .visibilityOfAllElements(driver.findElement(By.id("ui-id-...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getDepartureLocation();", "private void setDropOffLocation(){\n \t\t// Defines the AutoCompleteTextView with the dropoff address\n \t\tacDropoff = (AutoCompleteTextView)findViewById(R.id.dropoffText);\n \t\t//Controls if the user has entered an address\n \t\tif(!acDropoff.getText().toString().equals(\"\")...
[ "0.6377842", "0.6153841", "0.579063", "0.5762099", "0.5732456", "0.56932044", "0.5688835", "0.56668955", "0.5537937", "0.5519508", "0.55070895", "0.5506048", "0.5489198", "0.5486877", "0.5481312", "0.547823", "0.5462372", "0.5441668", "0.5432795", "0.5421901", "0.54133344", ...
0.55970424
8
Encode and print barcode
public void printBarcode(String code, int type, int h, int w, int font, int pos) throws IOException { // need to test for errors in length of code // also control for input type=0-6 // GS H = HRI position writer.write(0x1D); writer.write("H"); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void barcodeCaptured(String barcodeString);", "public static void encode() {\n char[] symbols = initializeSymbols();\n int position;\n while (!BinaryStdIn.isEmpty()) {\n char symbol = BinaryStdIn.readChar();\n position = 0;\n while (symbols[position] != symbo...
[ "0.69932884", "0.6638906", "0.6388641", "0.63772583", "0.62620974", "0.6239827", "0.62253386", "0.6170803", "0.61270416", "0.6095305", "0.60524315", "0.5908855", "0.59031016", "0.5869565", "0.58613807", "0.58575326", "0.58061147", "0.57799613", "0.5775112", "0.57287115", "0.5...
0.66867286
1
resets all writer settings to default
public void resetToDefault() throws IOException { setInverse(false); setBold(false); setFontDefault(); setUnderline(0); setJustification(0); writer.flush(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void resetWriter() {\n\t\tinit();\n\t}", "public void resetSettings()\n {\n PrintWriter writer;\n try\n {\n writer = new PrintWriter(new File(\"settings.txt\"));\n int[] r = {0,2,0,0};\n for(int x:r)\n writer.println(x);\n ...
[ "0.7912645", "0.7357175", "0.6831173", "0.66146845", "0.6584338", "0.6530086", "0.6529537", "0.6508569", "0.64571685", "0.6422394", "0.6328514", "0.62813306", "0.6251684", "0.62485385", "0.61995685", "0.6193393", "0.6176755", "0.6173689", "0.6159127", "0.6159127", "0.6159127"...
0.7327236
2
Sets white on black printing
public void setInverse(Boolean bool) throws IOException { writer.write(0x1D); writer.write("B"); writer.write((int) (bool ? 1 : 0)); writer.flush(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void makeWhite() {\n\t\t// make all the lines white\n\t\tfor (int i = 0; i < NUM_LINES; i++) {\n\t\t\toutLine[i].setColor(Color.white);\n\t\t}\n\t}", "public void setToWhite();", "public void setBlackAndWhite()\n {\n if (wall != null) // only if it's painted already...\n {\n ...
[ "0.7455112", "0.7397796", "0.70451933", "0.7024512", "0.7024512", "0.700275", "0.69810635", "0.6658634", "0.6624094", "0.660962", "0.64252234", "0.63407165", "0.63061565", "0.61893684", "0.6184303", "0.61690664", "0.61465794", "0.61263496", "0.61112744", "0.6064612", "0.60619...
0.0
-1
Sets underline and weight
public void setUnderline(int val) throws IOException { writer.write(0x1B); writer.write("-"); writer.write(val); writer.flush(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setUnderline(byte underline)\n {\n font.setUnderline(underline);\n }", "public void setUnderline(byte underline) {\n\t\tthis.underline = underline;\n\t}", "public final void setUnderline(final boolean underline) {\n this.underline = underline;\n }", "public void setUnderlin...
[ "0.694754", "0.6915034", "0.6675739", "0.6515121", "0.60951364", "0.58855927", "0.5884507", "0.56201375", "0.5536734", "0.5531295", "0.5518616", "0.5493363", "0.5453484", "0.5434299", "0.54156727", "0.5412575", "0.54122317", "0.54036236", "0.5400889", "0.5391626", "0.53867066...
0.6242905
4
Sets left, center, right justification
public void setJustification(int val) throws IOException { writer.write(0x1B); writer.write("a"); writer.write(val); writer.flush(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void justifyCenter() {\n\t\tleft.center();\n\t}", "public TextJustification getJustification();", "public void justifyLeft() {\n\t\tleft.left();\n\t}", "public void setAlignmentX(AlignX anAlignX) { }", "public boolean centerJustified(){\n return justification.equals(FormatAlignment.CENTER_JU...
[ "0.705537", "0.6518676", "0.6442288", "0.63067955", "0.62496597", "0.61043364", "0.6096076", "0.60584956", "0.5967884", "0.5958183", "0.5919162", "0.59038085", "0.58924687", "0.58537954", "0.56530344", "0.56161743", "0.55944836", "0.55940664", "0.5568063", "0.54835504", "0.54...
0.5865995
13
Encode and print QR code
public void printQR(String str, int errCorrect, int moduleSize) throws IOException { // save data function 80 alignQr(1, moduleSize); writer.write(0x1D);// init writer.write("(k");// adjust height of barcode writer.write(str.length() + 3); // pl writer.write(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Bitmap encodeToQrCode(String text) throws WriterException {\n BitMatrix bitMatrix;\n try {\n bitMatrix = new MultiFormatWriter().encode(\n text,\n BarcodeFormat.DATA_MATRIX.QR_CODE,\n QR_CODE_WIDTH, QR_CODE_WIDTH, null\n ...
[ "0.7267461", "0.71881336", "0.7121849", "0.6920267", "0.678589", "0.6530939", "0.64910614", "0.6461124", "0.62808853", "0.6154477", "0.6129246", "0.607644", "0.59615064", "0.5935195", "0.58983606", "0.58345544", "0.5831441", "0.5818518", "0.57898283", "0.57855463", "0.5722137...
0.64484954
8
To control the printer performing paper feed and cut paper finally
public void feedAndCut() throws IOException { feed(); cut(); writer.flush(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void print() {\n DocFlavor flavor = DocFlavor.BYTE_ARRAY.AUTOSENSE;\n \n //Aca obtenemos el servicio de impresion por default\n //Si no quieres ver el dialogo de seleccionar impresora usa esto\n //PrintService defaultService = PrintServiceLookup.lookupDefaultPrintService();\n \n \n /...
[ "0.6523627", "0.6472755", "0.64726204", "0.62683773", "0.62307", "0.61502326", "0.60991526", "0.6039564", "0.6020686", "0.5991731", "0.59781665", "0.5939299", "0.5931417", "0.5898148", "0.58554024", "0.5845106", "0.58353364", "0.58318186", "0.5820186", "0.58173186", "0.578190...
0.0
-1
To control the printer performing paper feed
public void feed() throws IOException { // 下面指令为打印完成后自动走纸 writer.write(27); writer.write(100); writer.write(4); writer.write(10); writer.flush(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void doPrint() {\n printBehavior.printReceipt();\n\n }", "public void actionPerformed(ActionEvent e){\n if (e.getSource() instanceof JButton) {\r\n PrinterJob printJob = PrinterJob.getPrinterJob();\r\n PageFormat pf = new PageFormat();\r\n ...
[ "0.69121903", "0.6874964", "0.6849255", "0.67652285", "0.6753752", "0.669814", "0.65664446", "0.6510326", "0.64931685", "0.6470227", "0.64463556", "0.63343436", "0.6311884", "0.622672", "0.6220452", "0.62095076", "0.61805147", "0.6126563", "0.60156786", "0.60055333", "0.59821...
0.0
-1
Cut paper, functionality whether work depends on printer hardware
public void cut() throws IOException { // cut writer.write(0x1D); writer.write("V"); writer.write(48); writer.write(0); writer.flush(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void canRefillPaper(){\n printer.print(10,2);\n printer.print(10,2);\n printer.refillPaper();\n assertEquals(250, printer.getSheets());\n }", "public void print() {\n DocFlavor flavor = DocFlavor.BYTE_ARRAY.AUTOSENSE;\n \n //Aca obtenemos el servicio de i...
[ "0.6069809", "0.57537246", "0.55847836", "0.5534149", "0.55203426", "0.53887445", "0.53701776", "0.5328333", "0.53125614", "0.53038716", "0.52654874", "0.52584183", "0.5209022", "0.52029324", "0.52017313", "0.5181307", "0.51407963", "0.5134763", "0.511072", "0.50970143", "0.5...
0.52035785
13
at the end, close writer and socketOut
public void closeConn() { try { if (writer != null) { writer.close(); } if (sockoutOs != null) { sockoutOs.close(); } if (null != socket || !socket.isClosed()) { socket.close(); } } ca...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void close()\r\n {\r\n try \r\n {\r\n if(out != null) out.close();\r\n }\r\n catch(Exception e) {\r\n \r\n }\r\n try \r\n {\r\n if(in != null) in.close();\r\n }\r\n\r\...
[ "0.74685514", "0.7221587", "0.71903354", "0.7079193", "0.7064592", "0.7058516", "0.70250016", "0.6974198", "0.6924602", "0.692389", "0.69076157", "0.68639934", "0.68511933", "0.6838696", "0.6799166", "0.67527", "0.67408943", "0.67380893", "0.6679048", "0.6668306", "0.6632215"...
0.73074734
1
Instantiates a new VendorLocationsDAOImpl
public VendorLocationsDAOImpl() { super(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public AddressDaoImpl()\n {\n \t//Initialise the related Object stores\n \n }", "public OnibusDAO() {}", "public ZyCorporationDAOImpl() {\r\n super();\r\n }", "public void setLocationDao(LocationDAO dao) { _locationData = dao; }", "public ProductosPuntoVentaDaoImpl() {\r\n }", ...
[ "0.64078844", "0.60521275", "0.605187", "0.60273975", "0.60165644", "0.5998226", "0.5972258", "0.58767194", "0.5874731", "0.586607", "0.58548623", "0.582762", "0.5799304", "0.57888985", "0.5786092", "0.57799613", "0.5708098", "0.5686239", "0.5678418", "0.5649768", "0.56443787...
0.8411873
0
Get the entity manager that manages persistence unit
public EntityManager getEntityManager() { return entityManager; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static EntityManager getEntityManager() {\n EntityManager em = tl.get();\n return em;\n }", "public EntityManager getEntityManager() {\n return getFactory().createEntityManager();\n }", "protected EntityManager getEntityManager() {\n return emf.createEntityManager();\n ...
[ "0.81244534", "0.8066936", "0.80646527", "0.79699105", "0.7882468", "0.7836241", "0.7816455", "0.7816455", "0.7816455", "0.7771495", "0.77314746", "0.76671195", "0.7658572", "0.7638356", "0.76285535", "0.76072854", "0.7577317", "0.7530995", "0.74679554", "0.74679554", "0.7466...
0.7806603
12
Returns the set of entity classes managed by this DAO.
public Set<Class<?>> getTypes() { return dataTypes; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Set<Class<? extends Entity>> getEntityBeans() {\r\n\t\tfinal Set<Class<? extends Entity>> entityClasses=new HashSet<>();\r\n\t\tfinal ClassLoader cl=Thread.currentThread().getContextClassLoader();\r\n\t\tfinal URL packageURL=cl.getResource(\r\n\t\t\t\tENTITY_BEANS_PACKAGE.replace(\".\", \"/\")+\"pack...
[ "0.75727713", "0.731534", "0.7015043", "0.70115775", "0.6999388", "0.6762259", "0.6751526", "0.66586655", "0.66073024", "0.656222", "0.6440437", "0.6410978", "0.6402292", "0.6392862", "0.6390568", "0.6299281", "0.62926966", "0.62782663", "0.62222093", "0.61969113", "0.6149837...
0.0
-1
Used to determine whether or not to merge the entity or persist the entity when calling Store
public boolean canBeMerged(VendorLocations entity) { return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings(\"unchecked\")\n @Override\n protected <T> T _persistOrMerge(T entity) {\n if (entity == null) {\n logger.debug(\"entity == null\");\n return null;\n }\n if (em().contains(entity)) {\n logger.debug(\"em().contains(entity), try to _merge\...
[ "0.72734135", "0.67285013", "0.6246261", "0.61787426", "0.6159952", "0.6111735", "0.6106706", "0.6054858", "0.60272455", "0.6026947", "0.6023875", "0.5925287", "0.59011143", "0.58779144", "0.58719575", "0.5839548", "0.5833217", "0.58090156", "0.57850313", "0.5783167", "0.5756...
0.572282
23
/ renamed from: a
public Callback mo16235a() { return (Callback) this.f8227a.get(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed fr...
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064...
0.0
-1
Busca os id das respostas relacionadas com palavras chaves
public ArrayList<Resposta> searchPchave_has_resp(ArrayList<PalavraChave> relatedKey){ System.out.println("aquii--------" + relatedKey.size()); ArrayList<PchaveHasResposta> keyHasResp = new ArrayList<PchaveHasResposta>(); //pegando dados da tabela palavra chave PchaveHasRespService service = new PchaveHasR...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void onGetAllIdentitet(Event<FintResource> responseEvent) {\n Identifikator batmanId = new Identifikator();\n batmanId.setIdentifikatorverdi(\"BATMAN\");\n Identitet batman = new Identitet();\n batman.setSystemId(batmanId);\n responseEvent.addData(FintResource\n ...
[ "0.5484237", "0.54693043", "0.5381854", "0.5381352", "0.5366147", "0.5349472", "0.53458357", "0.5310466", "0.52922523", "0.5273349", "0.52651155", "0.52496755", "0.5205732", "0.51789874", "0.5167011", "0.5164518", "0.51619035", "0.5158148", "0.5143025", "0.5125993", "0.511863...
0.5108086
21
Toast.makeText(context, idec + " " + idev, Toast.LENGTH_LONG).show();
public void escolherequipa () { if (idec != -1 && idev !=-1 && idec != idev) { ArrayList<String> equipaanotar = new ArrayList<String>(); equipaanotar.add(nomeequipas.get(idec)); equipaanotar.add(nomeequipas.get(idev)); ddes.setAdapter(new ArrayAd...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void display(int number){\n TextView quantTV = (TextView) findViewById(R.id.quant_tv);\n quantTV.setText(\"\"+ number);\n }", "public void showInfo(){\n DisplayMetrics displaymetrics = new DisplayMetrics();\n getWindowManager().getDefaultDisplay().getMetrics(displaymetrics)...
[ "0.6494404", "0.6402976", "0.6148805", "0.61433244", "0.6101366", "0.6100884", "0.606254", "0.59896666", "0.59841985", "0.5958939", "0.5822692", "0.58203876", "0.58146936", "0.5802804", "0.57971126", "0.5789945", "0.57782716", "0.5777611", "0.5765574", "0.57492286", "0.574755...
0.0
-1
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.menu_main, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {...
[ "0.7249559", "0.7204226", "0.71981144", "0.7180145", "0.7110589", "0.70431244", "0.7041351", "0.70150685", "0.70118093", "0.69832", "0.6947845", "0.69419056", "0.6937257", "0.6920975", "0.6920975", "0.68938893", "0.68867826", "0.6878929", "0.6877472", "0.68656766", "0.6865676...
0.0
-1
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml.
@Override public boolean onOptionsItemSelected(MenuItem item) { int id = item.getItemId(); //noinspection SimplifiableIfStatement if (id == R.id.action_settings) { return true; } //noinspection SimplifiableIfStatement if (id == R.id.criar_evento) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n ...
[ "0.79052806", "0.7806316", "0.7767438", "0.772778", "0.76324606", "0.7622031", "0.758556", "0.7531728", "0.7489057", "0.74576724", "0.74576724", "0.743964", "0.7422121", "0.74037784", "0.73926556", "0.7387903", "0.73803806", "0.73715395", "0.7362778", "0.7357048", "0.7346653"...
0.0
-1
Test init a queue configuration, children's capacity for a given label doesn't equals to 100%. This expect IllegalArgumentException thrown.
@Test(expected = IllegalArgumentException.class) public void testQueueParsingFailWhenSumOfChildrenNonLabeledCapacityNot100Percent() throws IOException { nodeLabelManager.addToCluserNodeLabelsWithDefaultExclusivity(ImmutableSet.of("red", "blue")); YarnConfiguration conf = new YarnConfiguration(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(expected = IllegalArgumentException.class)\n public void testQueueParsingFailWhenSumOfChildrenLabeledCapacityNot100Percent() throws IOException {\n nodeLabelManager.addToCluserNodeLabelsWithDefaultExclusivity(ImmutableSet.of(\"red\", \"blue\"));\n YarnConfiguration conf = new YarnConfigurati...
[ "0.7656539", "0.7522964", "0.6203029", "0.5998917", "0.58360815", "0.57339984", "0.56196845", "0.5598431", "0.5579483", "0.5554304", "0.5529724", "0.55280566", "0.5522661", "0.5511202", "0.5500058", "0.5487799", "0.54693586", "0.5444465", "0.5433737", "0.5413645", "0.54031855...
0.75236106
1
Test init a queue configuration, children's capacity for a given label doesn't equals to 100%. This expect IllegalArgumentException thrown.
@Test(expected = IllegalArgumentException.class) public void testQueueParsingFailWhenSumOfChildrenLabeledCapacityNot100Percent() throws IOException { nodeLabelManager.addToCluserNodeLabelsWithDefaultExclusivity(ImmutableSet.of("red", "blue")); YarnConfiguration conf = new YarnConfiguration(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(expected = IllegalArgumentException.class)\n public void testQueueParsingFailWhenSumOfChildrenNonLabeledCapacityNot100Percent() throws IOException {\n nodeLabelManager.addToCluserNodeLabelsWithDefaultExclusivity(ImmutableSet.of(\"red\", \"blue\"));\n YarnConfiguration conf = new YarnConfigur...
[ "0.7522257", "0.75212055", "0.62038654", "0.5999786", "0.58354354", "0.5734184", "0.5620401", "0.55971855", "0.5578381", "0.5554689", "0.5530785", "0.55291855", "0.55219555", "0.5510661", "0.55007535", "0.54874486", "0.5470552", "0.54455084", "0.5433648", "0.5414428", "0.5403...
0.7655009
0
Test init a queue configuration, children's capacity for a given label doesn't equals to 100%. This expect IllegalArgumentException thrown.
@Test(expected = IllegalArgumentException.class) public void testQueueParsingWithSumOfChildLabelCapacityNot100PercentWithWildCard() throws IOException { nodeLabelManager.addToCluserNodeLabelsWithDefaultExclusivity(ImmutableSet.of("red", "blue")); YarnConfiguration conf = new YarnConfiguration(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(expected = IllegalArgumentException.class)\n public void testQueueParsingFailWhenSumOfChildrenLabeledCapacityNot100Percent() throws IOException {\n nodeLabelManager.addToCluserNodeLabelsWithDefaultExclusivity(ImmutableSet.of(\"red\", \"blue\"));\n YarnConfiguration conf = new YarnConfigurati...
[ "0.76559657", "0.7523366", "0.6203779", "0.59995466", "0.5835834", "0.5735099", "0.5620258", "0.5599867", "0.55810297", "0.555474", "0.55307406", "0.552922", "0.5524151", "0.55127525", "0.5500562", "0.54887056", "0.5472277", "0.5445237", "0.5434765", "0.54129136", "0.5404555"...
0.752211
2
TODO Autogenerated method stub
@Override public TableRow<Document> call(TableView<Document> param) { TableRow<Document> row = new TableRow<Document>(); MenuItem openItem = new MenuItem("打开"); openItem.setOnAction(e->{ System.out.println("打开文件"); }); MenuItem deleteItem = new MenuItem("删除"); MenuItem renameItem = new M...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
forced login necessary for testing artist functions
@Test public void testStartEvent() { LoginController lc = new LoginController(); lc.artistLogin("meo", "password"); MapController mc = new MapController(); boolean emptyField= false; try { //meo is trying to submit an event without writing any title mc.submitEvent("", "Villa", "desc"); } catc...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void login() {\n\t\t\r\n\t}", "public void testLogin() {\n login(datum.junit);\n\t}", "public void testLogin() throws Exception {\n super.login();\n }", "@Test\n\t\tpublic void login() {\n\n\t\t\tlaunchApp(\"chrome\", \"http://demo1.opentaps.org/opentaps/control/main\");\n\...
[ "0.68990004", "0.68302995", "0.6611684", "0.6591196", "0.657438", "0.65681547", "0.64582753", "0.639651", "0.63892245", "0.63745385", "0.6355593", "0.6337877", "0.63337374", "0.6295353", "0.6259104", "0.6251729", "0.6232431", "0.6227686", "0.6216336", "0.6201369", "0.6194873"...
0.0
-1
Cambia la imagen seleccionada (ampliada en panel este)
public void cambiarImagenGrande(ImagenTemp it) { //TODO automatizar haciendo que el método directamente coloque la imagen escalada en el panel? Image imgtemp = VistaPrincipal.ponerImagenEscalada(it.getbImagen(), panelImagenGrande); labelImagenGrande.setIcon(new ImageIcon(imgtemp)); labelImagenGrande.setBound...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public SeleccionarRancho() {\n setExtendedState(JFrame.MAXIMIZED_BOTH);\n initComponents();\n Image i = null;\n i = Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"/resources/logo tru-test.png\"));\n setIconImage(i);\n // setLocationRelativeTo(null);\n ...
[ "0.7346808", "0.71275276", "0.7090085", "0.6854198", "0.6842203", "0.65968204", "0.65777797", "0.6554698", "0.6541349", "0.6490208", "0.648607", "0.6462752", "0.63823986", "0.6380165", "0.6378832", "0.6370132", "0.63042545", "0.6270208", "0.6261555", "0.6214825", "0.62146616"...
0.0
-1
Se quitan los datos de la imagen seleccionada
public void vaciarImagenGrande() { labelImagenGrande.setIcon(null); labelNombre.setText(""); labelFecha.setText(""); labelResolucion.setText(""); labelPeso.setText(""); panelImagenEtiquetas.removeAll(); resultadosEste.revalidate(); resultadosEste.repaint(); //TODO comprobar si es necesario quitar la r...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void cambiarEstadoImagen(){\n ImageIcon respuesta=new ImageIcon();\n if(oportunidades==0){\n respuesta=new ImageIcon(getClass().getResource(\"Ahorcado7.jpg\"));\n }\n if(oportunidades==1){\n respuesta=new ImageIcon(getClass().getResource(\"Ahorcado6....
[ "0.6841472", "0.66757727", "0.6289243", "0.62529516", "0.6214377", "0.6189373", "0.61793447", "0.60735935", "0.605882", "0.603995", "0.5975507", "0.596763", "0.59496444", "0.59163344", "0.5905652", "0.5898662", "0.5885543", "0.5798949", "0.579627", "0.5789179", "0.57844377", ...
0.54035646
86
TODO cambiar a controlador?
@Override public void mouseClicked(MouseEvent ev) { if(ev.getSource() instanceof PanelImagenRes) { cambiarImagenGrande(((PanelImagenRes)ev.getSource()).getImagenTemp()); imagenTempSeleccionada = ((PanelImagenRes)ev.getSource()).getImagenTemp(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void iniciar() {\n\t\t\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tpublic void conferenceroom() {\n\t\t\n\t}", "public contrustor(){\r\n\t}", "public ControladorCoche() {\n\t}", "protected void aktua...
[ "0.6519406", "0.6437212", "0.6357479", "0.6243095", "0.6185739", "0.6151751", "0.6057548", "0.6051332", "0.6034021", "0.59843194", "0.5964827", "0.59464437", "0.5923156", "0.5915548", "0.58616674", "0.5859995", "0.5859995", "0.5830067", "0.5811262", "0.5803135", "0.58022565",...
0.0
-1
Activa y desactiva componentes en base a los checkboxes que se pulsen
@Override public void stateChanged(ChangeEvent ev) { if(ev.getSource()==opFechaDespues) { if(opFechaDespues.isSelected()) { opDiaDespues.setEnabled(true); opMesDespues.setEnabled(true); opAnoDespues.setEnabled(true); }else { opDiaDespues.setEnabled(false); opMesDespues.setEnabled(false);...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@FXML\n protected void onCheckBoxSelect(){\n damping.setDisable(schwingungstyp.isSelected());\n dampingFunc.setDisable(schwingungstyp.isSelected());\n }", "private void habilitaCampos() {\n for(java.util.ArrayList<JCheckBox> hijosAux: hijos)\n for(JCheckBox hijo: hijosAux)\n...
[ "0.6774596", "0.6772656", "0.6696953", "0.66358984", "0.6554223", "0.645244", "0.6415466", "0.6378724", "0.6371889", "0.63418084", "0.6317631", "0.63165414", "0.62956077", "0.629318", "0.62133217", "0.6155518", "0.61426073", "0.61399025", "0.6137014", "0.61235726", "0.6123308...
0.0
-1
Creates a new Level Pack, having the given name and the first specified author. The transition script will simple be a default script, and the first World will be a default first World.
public LevelPack(String name, User author, World... worlds) { this.name = name; this.transitionScript = new UserScript("onTransition", "--This script will be run to return an LuaInt specifying the next world to proceed to, given the current world state.", SecurityLevel.AUTHOR); if (worlds.length == 0) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Level(String name) {\n\t\t\n\t\tthis.name = name;\n\t\t\n\t\ttry {\n\t\t\tlevelType = new LevelType(DEFAULT_LEVEL_TYPE, true);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(0);\n\t\t}\n//\t\tscreen = new Screen(300*3/SCREEN_SCALE, 168*3/SCREEN_SCALE, SCREEN_SCALE);\n\t\tscree...
[ "0.5198652", "0.5193741", "0.51804036", "0.50875556", "0.5052115", "0.49801686", "0.49767473", "0.48112413", "0.47652492", "0.47628146", "0.4717628", "0.47055915", "0.4699281", "0.46847102", "0.46794653", "0.46786302", "0.46753109", "0.46611768", "0.4656833", "0.46544927", "0...
0.75062346
0
Gets the Level Pack's name.
public String getName() { return this.name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getLevelName() {\n Object ref = levelName_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n levelName_ = s;\n ...
[ "0.7688045", "0.7688045", "0.7688045", "0.7673396", "0.7673396", "0.7673396", "0.75338906", "0.75338906", "0.75338906", "0.74130446", "0.74130446", "0.74130446", "0.73896486", "0.73331565", "0.72515106", "0.72515106", "0.72515106", "0.7245354", "0.7245354", "0.7245354", "0.71...
0.0
-1
Sets the Level Pack's name.
public void setName(String name) { this.name = name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setLevelName(String value) {\r\n setAttributeInternal(LEVELNAME, value);\r\n }", "public Builder setLevelName(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n levelName_ = value;\n onChanged();\n return this;\n ...
[ "0.7025662", "0.68794227", "0.68794227", "0.68794227", "0.68758285", "0.6768815", "0.65532255", "0.6397163", "0.6372928", "0.6318654", "0.6306125", "0.6303392", "0.6286595", "0.6243852", "0.62287617", "0.62215424", "0.6194907", "0.6184363", "0.6184363", "0.6184363", "0.617453...
0.0
-1
The transition script is the script by which one level leads to another.
public UserScript getTransitionScript() { return this.transitionScript; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setTransitionScript(UserScript script) {\n\t\tthis.transitionScript = script;\n\t}", "@Override\n\tpublic void processTransition() {\n\t\tinit();\n\t\tMusicPlayer.playLoop(\"level2\");\n\n\t\t// show level title\n\t\taddPopup(levelPopup);\n\t\tsetAlpha(10 * 60 * 3 + 100);\n\t\tsetFadeRate(10);\n\n\t\...
[ "0.5844882", "0.58264804", "0.5759491", "0.5399135", "0.53403395", "0.53296465", "0.5291044", "0.516396", "0.5150034", "0.51331496", "0.50969386", "0.50969344", "0.5066871", "0.5060199", "0.5056714", "0.50529194", "0.503906", "0.50344914", "0.50210744", "0.50210744", "0.50190...
0.6139879
0
The transition script is the script by which one level leads to another. It should return an integer value given a particular world state.
public void setTransitionScript(UserScript script) { this.transitionScript = script; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getStateValue2();", "int getStateValue();", "int getStateValue();", "int getStateValue();", "int getStateValue3();", "int getStateValue1();", "public UserScript getTransitionScript() {\n\t\treturn this.transitionScript;\n\t}", "int getExecutionStageStateValue();", "public int getStateOfMovement...
[ "0.5836413", "0.5825011", "0.5825011", "0.5825011", "0.57804114", "0.57224655", "0.55433655", "0.546735", "0.5360944", "0.5334804", "0.5257184", "0.5238542", "0.52252644", "0.52188003", "0.51997775", "0.51997775", "0.51997775", "0.51997775", "0.51997775", "0.51997775", "0.516...
0.0
-1
============================================================ ========= LevelPack PLAYER VIEW MANAGEMENT STUFF =========== ============================================================
public World getWorld(int i) { return levels.get(i); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void makeVisible(Player viewer) {\n \n }", "public void enterPlayerView(){\n\t\tplayerSeen=true;\r\n\t\tplayerMapped=true;\r\n\t}", "void setPlayerView(View v);", "private void showPlayerOptions() {\n playStartLinearLayout.setVisibility(View.INVISIBLE);\n timeInf...
[ "0.6663506", "0.66304886", "0.6564027", "0.64329374", "0.64255863", "0.6393962", "0.63800395", "0.63038343", "0.6241406", "0.6231799", "0.6207627", "0.6191837", "0.6188209", "0.6173826", "0.6165676", "0.61221373", "0.6121143", "0.6070308", "0.6039288", "0.60320646", "0.602715...
0.0
-1
Returns the current world.
public World getCurrentWorld() { assert levelIndex >= 0 && levelIndex < levels.size(); return levels.get(levelIndex); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static World getWorld() {\n\t\treturn world;\n\t}", "public World getWorld() {\n return location.getWorld();\n }", "public final World getWorld() {\n\t\treturn location.getWorld();\n\t}", "public World getWorld () {\n\t\treturn world;\n\t}", "public World getWorld() {\n\t\treturn world;\n\...
[ "0.8621828", "0.83927363", "0.8390855", "0.83692634", "0.835664", "0.8346145", "0.8346145", "0.831776", "0.8264259", "0.82457876", "0.8200971", "0.8123475", "0.81173944", "0.80552137", "0.80451137", "0.80451137", "0.8007668", "0.7987838", "0.79072875", "0.7881896", "0.780886"...
0.8148732
11
Returns the index of the current World.
public int getCurrentWorldIndex() { return levelIndex; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public World getCurrentWorld() {\n\t\tassert levelIndex >= 0 && levelIndex < levels.size();\n\t\treturn levels.get(levelIndex);\n\t}", "public long getWorldId() {\n return worldId_;\n }", "public long getWorldId() {\n return worldId_;\n }", "long getWorldId();", "public int getIndex() {\n re...
[ "0.6819154", "0.67100495", "0.66749537", "0.66400117", "0.66228014", "0.657099", "0.657099", "0.654648", "0.654648", "0.6512717", "0.6512717", "0.65073746", "0.6470073", "0.64067245", "0.64067245", "0.64067245", "0.64067245", "0.64067245", "0.64067245", "0.6401921", "0.640192...
0.8155959
0
Returns an array of all Worlds in this LevelPack.
public World[] getAllWorlds() { return levels.toArray(new World[levels.size()]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static List<World> getWorlds() {\n\t\treturn worlds;\n\t}", "public ArrayList<MBMWorld> getWorldList(){\n return worlds;\n }", "public Collection<String> getLoadableWorlds();", "public int numWorlds(){\n return worlds.size();\n }", "public int[][] getworld(){\n return world;\n ...
[ "0.7823441", "0.7306771", "0.67985183", "0.64502203", "0.62968147", "0.61194515", "0.60721534", "0.59929883", "0.59929883", "0.59790677", "0.5971409", "0.5927156", "0.59111005", "0.5868203", "0.5849005", "0.5834432", "0.57999426", "0.5759606", "0.57201284", "0.5696522", "0.56...
0.8635757
0