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
Metodo para establecer un valor de IDt.
public static void setIDt(int IDt) { Componente.IDt = IDt; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected Object getId(Modulo t) {\n\t\treturn t.getId();\n\t}", "String getValueId();", "public Number getTallaId() {\n return (Number)getAttributeInternal(TALLAID);\n }", "IDType getID();", "public abstract java.lang.String getTica_id();", "public void setID(String idIn) {this.id = idIn;}", ...
[ "0.65876037", "0.641057", "0.6371306", "0.6256342", "0.6070359", "0.6060348", "0.60149276", "0.5990532", "0.5947585", "0.5925188", "0.5919379", "0.5912041", "0.5910302", "0.58979344", "0.5865302", "0.58606", "0.58416075", "0.58313215", "0.58173525", "0.58147746", "0.5810736",...
0.6538628
1
Encode String without padding
private String encode(String str) { verifyNotNull(str, ERROR_MESSAGE); byte[] bytes = str.getBytes(); return Base64.getEncoder() .withoutPadding() .encodeToString(bytes); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getEncoded();", "private static String encodeBase64(String stringToEncode){\r\n\t\treturn Base64.getEncoder().encodeToString(stringToEncode.getBytes());\t\r\n\t}", "public String base64Encode(String str) throws StoreFactoryException;", "public static String encode(String string){\n re...
[ "0.7062943", "0.66447383", "0.65815455", "0.6566165", "0.650839", "0.65050083", "0.6462702", "0.6420864", "0.63873774", "0.6374848", "0.6310446", "0.63097864", "0.6282176", "0.6270857", "0.62516344", "0.62456876", "0.62357205", "0.6196016", "0.617438", "0.6157841", "0.6148062...
0.7018091
1
All classes that either depend on other objects or could have dependent objects must implement Dependable, and contain a DependencyNode. The DependencyManager class handles the dependency graph structure, and uses the Dependable interface to link the graph structure with actual objects in the program. To make an object implement Dependable, the object should contain an instance of DependencyNode, and return it in the dependencyNode() method. To put this in a class, you can copy the code fragmet at the end of Dependable.java into the class.
public interface Dependable { /** * This method is called by the Dependency Manager when the * Dependable object should be updated. * This method is called when the actual definition or dependencies of * an object change. Expressions need to be rebuilt. * * @param updatingObjects a set of all the objects that have been * or will be updated */ public void dependencyUpdateDef(Set updatingObjects); /** * This method is called by the Dependency Manager when the * Dependable object should be updated. * This method is called when only a value changes, and the type * of the value does not change. An example of this kind of update * is when the value of a variable changes, but the definition of * it does not. Expressions do not have to be rebuilt. * * @param updatingObjects a set of all the objects that have been * or will be updated */ public void dependencyUpdateVal(Set updatingObjects); /** * @return the depdenency graph node for this class */ public DependencyNode dependencyNode(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Dependency createDependency();", "Dependency createDependency();", "public abstract DependencyGraph getDependencyGraph();", "protected final Dependency createDependency( Object obj, String name) \r\n {\r\n\treturn dependencyFactory.createDependency( obj, name );\r\n }", "public void connectDependencies...
[ "0.6550074", "0.6550074", "0.63520914", "0.59774417", "0.58898056", "0.5711006", "0.5687579", "0.5649769", "0.5593964", "0.5564458", "0.5521825", "0.55077326", "0.5457816", "0.5447459", "0.54307896", "0.54125696", "0.5402884", "0.53830606", "0.53828114", "0.5373583", "0.53462...
0.81503993
0
This method is called by the Dependency Manager when the Dependable object should be updated. This method is called when the actual definition or dependencies of an object change. Expressions need to be rebuilt.
public void dependencyUpdateDef(Set updatingObjects);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface Dependable {\n\n /**\n * This method is called by the Dependency Manager when the\n * Dependable object should be updated.\n * This method is called when the actual definition or dependencies of \n * an object change. Expressions need to be rebuilt.\n *\n * @param updati...
[ "0.7164805", "0.5970791", "0.59399825", "0.57646143", "0.5552456", "0.5549488", "0.55294466", "0.5515471", "0.5498911", "0.5498911", "0.5498911", "0.5470631", "0.54438895", "0.54417163", "0.5436226", "0.54344827", "0.5429583", "0.5400867", "0.53500974", "0.533108", "0.5329681...
0.6298586
1
This method is called by the Dependency Manager when the Dependable object should be updated. This method is called when only a value changes, and the type of the value does not change. An example of this kind of update is when the value of a variable changes, but the definition of it does not. Expressions do not have to be rebuilt.
public void dependencyUpdateVal(Set updatingObjects);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface Dependable {\n\n /**\n * This method is called by the Dependency Manager when the\n * Dependable object should be updated.\n * This method is called when the actual definition or dependencies of \n * an object change. Expressions need to be rebuilt.\n *\n * @param updati...
[ "0.69306296", "0.64610606", "0.6232627", "0.61896527", "0.61896527", "0.6001236", "0.59069794", "0.59000427", "0.58397526", "0.5833095", "0.5832212", "0.5831307", "0.5826202", "0.58246213", "0.5810435", "0.58096486", "0.58070344", "0.5802906", "0.5802057", "0.5779358", "0.577...
0.66394407
1
m_grabberHand = new DoubleSolenoid(RobotMap.pmc1CanID(), RobotMap.GrabberSolenoidForward(), RobotMap.GrabberSolenoidReverse()); m_grabberHand.set(DoubleSolenoid.Value.kOff);
@Override public void initDefaultCommand() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void initShoulder(){\r\n do{\r\n int currentShoulderPosition = motorShoulder.getCurrentPosition();\r\n posShoulder = currentShoulderPosition + DELTA_SHOULDER;\r\n motorShoulder.setTargetPosition(posShoulder);\r\n motorShoulder.setPower(POWER_SHOULDER_SLOW)...
[ "0.6316763", "0.6206535", "0.6204765", "0.6160981", "0.60501117", "0.60298175", "0.5970637", "0.5968425", "0.5964556", "0.5954554", "0.5903092", "0.58931434", "0.58699924", "0.5855027", "0.58143324", "0.57758904", "0.5762559", "0.57382077", "0.5736041", "0.5727749", "0.571257...
0.0
-1
TODO Autogenerated method stub
@Override public void checkOutRoom() { }
{ "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
onLoad is NOT a viable replacement for firstTick stuff, as it is called before the chunk is fully loaded, meaning that any world access will result in infiniteloading of the same chunk
@Override public void update() { if(firstTick) { sortingInventory.onFirstTick(); firstTick = false; } ticksSinceSync++; int x = pos.getX(); int y = pos.getY(); int z = pos.getZ(); if (!worldObj.isRemote && numPlayersUsing != 0 && (ticksSinceSync + x + y + z) % 200 == 0) { Iterator<EntityPlayer> it = chestPlayers.iterator(); while(it.hasNext()) { EntityPlayer entityPlayer = it.next(); if(entityPlayer.isDead || ((ContainerSortingChest) entityPlayer.openContainer).getTileEntity() != this) { it.remove(); } } numPlayersUsing = chestPlayers.size(); worldObj.addBlockEvent(pos, getBlockType(), 1, numPlayersUsing); } prevLidAngle = lidAngle; float lidAngleSpeed = 0.1f; if (numPlayersUsing > 0 && lidAngle == 0f) { worldObj.playSoundEffect(x + 0.5d, y + 0.5d, z + 0.5d, "random.chestopen", 0.5f, worldObj.rand.nextFloat() * 0.1f + 0.9f); } if (numPlayersUsing == 0 && lidAngle > 0.0F || numPlayersUsing > 0 && lidAngle < 1.0F) { float oldLidAngle = lidAngle; if (numPlayersUsing > 0) { lidAngle += lidAngleSpeed; } else { lidAngle -= lidAngleSpeed; } if (lidAngle > 1f) { lidAngle = 1f; } float closeSoundAngle = 0.5f; if (lidAngle < closeSoundAngle && oldLidAngle >= closeSoundAngle) { worldObj.playSoundEffect(x + 0.5d, y + 0.5d, z + 0.5d, "random.chestclosed", 0.5f, worldObj.rand.nextFloat() * 0.1f + 0.9f); } if (lidAngle < 0f) { lidAngle = 0f; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onChunkLoad(ChunkLoadEvent event) {\n Chunk chunk = event.getChunk();\n\n //\n Legends.info(\"Chunk loaded in world: \" + event.getWorld().getName());\n\n }", "void minecraftChunkLoaded() {\n\t\tthis.lastLoadingTime = System.currentTimeMillis();\n\t}", "public...
[ "0.70385545", "0.6636415", "0.62642217", "0.6258453", "0.6255058", "0.61173946", "0.611193", "0.59749174", "0.5927977", "0.5876771", "0.583723", "0.58276814", "0.58276343", "0.5787839", "0.5772977", "0.5761104", "0.5732423", "0.57020444", "0.56767356", "0.56740147", "0.567040...
0.0
-1
Java boolean lar icin getter olustururken "is" ile baslar. setter lara degisiklik yok
public boolean isZengin() { return zengin; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean getBoolean();", "boolean getBoolean();", "boolean getBoolean();", "boolean get();", "void set(boolean value);", "boolean getBoolValue();", "boolean getBoolValue();", "abstract public boolean getAsBoolean();", "public void set(boolean bol);", "boolean isSetValue();", "boolean isSe...
[ "0.73778325", "0.73542017", "0.73542017", "0.711452", "0.7102868", "0.70903903", "0.70903903", "0.70462346", "0.69554955", "0.694153", "0.694153", "0.6939304", "0.6923241", "0.6885468", "0.68707585", "0.67944795", "0.67735565", "0.6746924", "0.6721408", "0.6695703", "0.667143...
0.0
-1
TODO Autogenerated method stub
@Override public int insertBook(Book book) { return 0; }
{ "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 int getBookCount() { return 0; }
{ "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 int getBookCount(String kind) { return 0; }
{ "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 List<Book> getBooks(String kind) { return null; }
{ "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 List<Book> getBooks(String kind, int startRow, int endRow) { return null; }
{ "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 int updateBookInfo(Book book, int book_id) { return 0; }
{ "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 int deleteBook(int book_id) { return 0; }
{ "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 int managerCheck(String id, String password) { return 0; }
{ "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 Book getBookInfo(int book_id) { return null; }
{ "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
setup the listeners for the control point text fields and the control point selection buttons
private void setupListeners() { for (int i = 0; i < _controlPoints.length; i++) { addControlPointListener(_controlPoints[i][0], i); addControlPointListener(_controlPoints[i][1], i); } for (int i = 0; i < _selectionButtons.length; i++) { addPointSelectionButtonListener(i); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setControls() {\n calendarDisplayBox.addEventFilter(KEY_PRESSED, event -> {\n switch (event.getCode()) {\n case LEFT:\n logger.info(\"LEFT arrow Pressed.\");\n displayPreviousWeek();\n indicateCalendarDisplayTimeChanged();\n ...
[ "0.6799707", "0.6702952", "0.66153467", "0.65518874", "0.65046984", "0.649198", "0.6465898", "0.6451478", "0.6400791", "0.63681513", "0.63257027", "0.6313513", "0.63091385", "0.6301201", "0.6286437", "0.6257706", "0.6250813", "0.6247865", "0.623161", "0.62306046", "0.6218074"...
0.7739398
0
adds a action listener to the JButton that sets the active index to the field nr of the button.
private void addPointSelectionButtonListener(final int fieldNr) { _selectionButtons[fieldNr].addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { _activeIndex = fieldNr; for (int i = 0; i < _selectionButtons.length; i++) { _selectionButtons[i].setForeground(Color.gray); } _selectionButtons[fieldNr].setForeground(Color.green); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\tJButton btn = (JButton) e.getSource();\n\t lev_no = (int) btn.getClientProperty(\"column\") + 3 * ((int) btn.getClientProperty(\"row\"));\n\t\t\tselect.setVisible(false);\n\t\t\ttitle.setVisible(true);\n\t\t\tstart.setVisible(true);\n\t\t\te...
[ "0.667007", "0.6490194", "0.643425", "0.639029", "0.63652277", "0.6284824", "0.6280576", "0.62681854", "0.62074125", "0.6194111", "0.61776173", "0.61194557", "0.6065017", "0.60619605", "0.60570544", "0.6017279", "0.6005057", "0.5996277", "0.5977653", "0.5959391", "0.5937187",...
0.70125985
0
checks for all y controlPoint fields if they are in the interval 0..1 checks for all x controlPoint fields if they are in the interval 0..1 and if they form a increasing row. First controlPoints x has to be <= 2nds... If necessary tries to auto correct errors in the ordering.
private void testAndUpdateControlFields(int startFieldNr) { boolean consistent = true; //test and correct y for (int i = 0; i < _controlPoints.length; i++) { if (parseTextFieldValue(_controlPoints[i][1]) == -1.0f) { consistent = false; } } //test and correct x at startFieldNr and above for (int i = startFieldNr; i >= 0; i--) { float value1 = parseTextFieldValue(_controlPoints[i][0]); if (value1 == -1.0f) { //check field value consistent = false; } else { //field value ok check if it is greater than the field above if (i > 0) { float value2 = parseTextFieldValue(_controlPoints[i-1][0]); if (value2 > value1) { //value 2 has to be <= value1 change it _controlPoints[i-1][0].setText(String.valueOf(value1)); } } } } //test and correct x at startFieldNr and below for (int i = startFieldNr; i < _controlPoints.length; i++) { float value1 = parseTextFieldValue(_controlPoints[i][0]); if (value1 == -1.0f) { //check field value consistent = false; } else { //field value ok check if it is smaller than the field below if (i < (_controlPoints.length-1)) { float value2 = parseTextFieldValue(_controlPoints[i+1][0]); if (value2 < value1) { //value 2 has to be >= value1 change it _controlPoints[i+1][0].setText(String.valueOf(value1)); } } } } _isConsistent = consistent; _changeListener.pointsChanged(consistent); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void doAlgorithmA1() {\n int xP = 0;\n int yP = 0;\n\n\n //Taking the variable out of the list that are in the bounds\n //Testing that the bound has variables\n if (csp.getSimpleConstraints().get(cIndex).getSimpleBounds().get(bIndex).getX() != null) {\n ...
[ "0.5620912", "0.5417902", "0.53995097", "0.5384295", "0.5382468", "0.53710014", "0.5317418", "0.5315966", "0.5291393", "0.52699834", "0.5264456", "0.5243765", "0.5231732", "0.52297544", "0.5221148", "0.5211031", "0.5169379", "0.5144097", "0.51315385", "0.5120747", "0.51160085...
0.676416
0
Complete the code, handle possible exception
public static void main(String[] args) { int a=10, b=0; int result; try{ result = a/b;} catch(ArithmeticException ae){//exception name System.out.println(ae.getMessage()); System.out.println(ae); ae.printStackTrace(); } System.out.println("The code continues"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void finishExecution() {\r\n\r\n\t}", "private void finish() {\n }", "@Override\n protected void complete()\n {\n // Log the result of the script execution(s)\n logScriptCompletionStatus(associations, isBad);\n\n // Enable ...
[ "0.6579844", "0.65796363", "0.657692", "0.655499", "0.6481409", "0.6444069", "0.632361", "0.6268207", "0.62357736", "0.6154499", "0.6154499", "0.61539185", "0.6146283", "0.6142701", "0.6140326", "0.6140326", "0.6114004", "0.6068717", "0.6068717", "0.6068717", "0.6068717", "...
0.0
-1
TODO Autogenerated method stub
public void setTable(DefaultTable table) { }
{ "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 onConfigurationChanged(Configuration newConfig) { notOrientationChange=false; super.onConfigurationChanged(newConfig); }
{ "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
Save the user's current game state
@Override public void onSaveInstanceState(Bundle savedInstanceState) { savedInstanceState.putBoolean(HAS_RUN, true); //savedInstanceState.putParcelable(MODEL_DATA, dS); Log.i("MAIN","Saved instances"); // Always call the superclass so it can save the view hierarchy state super.onSaveInstanceState(savedInstanceState); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void currentStateSaveToSharedPref() {\n sharedPreferences = getPreferences(Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putString(\"nameOfActiveChallenge\", nameOfCurrentChallenge);\n editor.putInt(\"key1OfActiveChallenge\", key1O...
[ "0.7804075", "0.7712752", "0.7602927", "0.75645405", "0.7396474", "0.7345214", "0.73291826", "0.7311352", "0.7284302", "0.72278345", "0.7219766", "0.71794105", "0.71143407", "0.709977", "0.708385", "0.70568585", "0.6988412", "0.69816697", "0.69075036", "0.6854349", "0.6847312...
0.0
-1
Do Here what ever you want do on back press;
@Override public void onBackPressed() { super.onBackPressed(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void backButton() {\n\t\t\r\n\t}", "@Override\n public void onBackPressed() {\n if(web.canGoBack()){\n web.goBack();\n } else {\n super.onBackPressed();\n }\n }", "@Override\n\tpublic void onBackPressed() {\n\t\t\n\t}", "void onGo...
[ "0.8369724", "0.835255", "0.8349505", "0.8347241", "0.8313743", "0.8313743", "0.83131164", "0.8283113", "0.8266392", "0.82591003", "0.824914", "0.8248022", "0.82347167", "0.8222484", "0.8222405", "0.82217807", "0.82140553", "0.8212019", "0.8211788", "0.82060015", "0.82060015"...
0.7973622
69
SitesProviderHelper.deleteSite(mApp,String.valueOf(Consts.BLANK_SITE_ID_NO_LOCATION)); find current location to parse forecast
private void getUserCurrentLocation() { NicerLocationManager locationMgr = new NicerLocationManager(this.getApplicationContext()); if (locationMgr.isAnyLocationServicesAvailble()) { Log.i("MAIN","retrieving current location..."); // get current location locationMgr.getBestGuessLocation(1000, new NicerLocationListener() { @Override public void locationLoaded(final Location location) { // parse the current site forecast for users current // location in the background //LocationForecastSetup currentForecast = new LocationForecastSetup(); //currentForecast.execute(location); // QLog.i("location loaded. finding nearest location..."); // // // find nearest weather location // Site nearestLocation = // Utils.findNearestSite(mApp, location); // // // insert the new current user location site // SitesProviderHelper.addSavedSite(mApp, // Long.valueOf(nearestLocation.getmSiteId()), true); // Log.i("MAIN","location found "+location.getLatitude()+" "+location.getLongitude()); dS.lat=(float) location.getLatitude(); dS.lon=(float) location.getLongitude(); //TextView versionText = (TextView) findViewById(R.id.info_area_string); //versionText.setText("lat " + location.getLatitude()+" lon "+location.getLongitude()); // // /* // * add blank site if user has no saved sites. a blank site // * forecast is also added in the WeatherService class // * (runWeatherService method) to display correctly in the // * view pager.this is later removed when a user adds a // site // * and added again when user removes last site. // */ // SitesProviderHelper.addBlankSavedSite(mApp); // // // re-order sites so current location is first // SitesProviderHelper.setSiteOrder(mApp, // nearestLocation.getmSiteId(), "0"); // SitesProviderHelper.setSiteOrder(mApp, // Consts.BLANK_SITE_ID, "1"); } @Override public void error() { // give option to change location settings or select a // location manually Log.e("MAIN","Error finding best guess location"); dS.lat=0; dS.lon=0; if(once) { //promptSetLocationService(MainActivity.this); } once=false; } @Override public void onFinished() { //runUpdateService(false, false); Log.i("MAIN","onFinished"); } }); } else { dS.lat=0; dS.lon=0; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t public void locationLoaded(final Location location)\n\t { parse the current site forecast for users current\n\t // location in the background\n\t //LocationForecastSetup currentForecast = new LocationForecastSetup();\n\t ...
[ "0.6579762", "0.606642", "0.58780134", "0.5764923", "0.575646", "0.5654419", "0.56062067", "0.55843335", "0.5501423", "0.54426426", "0.5426935", "0.54040766", "0.53484225", "0.53484225", "0.5315377", "0.52965635", "0.5293525", "0.5293207", "0.5292648", "0.52806246", "0.527998...
0.64845985
1
parse the current site forecast for users current location in the background LocationForecastSetup currentForecast = new LocationForecastSetup(); currentForecast.execute(location); QLog.i("location loaded. finding nearest location..."); // find nearest weather location Site nearestLocation = Utils.findNearestSite(mApp, location); // insert the new current user location site SitesProviderHelper.addSavedSite(mApp, Long.valueOf(nearestLocation.getmSiteId()), true);
@Override public void locationLoaded(final Location location) { parse the current site forecast for users current // location in the background //LocationForecastSetup currentForecast = new LocationForecastSetup(); //currentForecast.execute(location); // QLog.i("location loaded. finding nearest location..."); // // // find nearest weather location // Site nearestLocation = // Utils.findNearestSite(mApp, location); // // // insert the new current user location site // SitesProviderHelper.addSavedSite(mApp, // Long.valueOf(nearestLocation.getmSiteId()), true); // Log.i("MAIN","location found "+location.getLatitude()+" "+location.getLongitude()); dS.lat=(float) location.getLatitude(); dS.lon=(float) location.getLongitude(); //TextView versionText = (TextView) findViewById(R.id.info_area_string); //versionText.setText("lat " + location.getLatitude()+" lon "+location.getLongitude()); // // /* // * add blank site if user has no saved sites. a blank site // * forecast is also added in the WeatherService class // * (runWeatherService method) to display correctly in the // * view pager.this is later removed when a user adds a // site // * and added again when user removes last site. // */ // SitesProviderHelper.addBlankSavedSite(mApp); // // // re-order sites so current location is first // SitesProviderHelper.setSiteOrder(mApp, // nearestLocation.getmSiteId(), "0"); // SitesProviderHelper.setSiteOrder(mApp, // Consts.BLANK_SITE_ID, "1"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void getUserCurrentLocation()\n\t {\n\t NicerLocationManager locationMgr = new NicerLocationManager(this.getApplicationContext());\n\t if (locationMgr.isAnyLocationServicesAvailble())\n\t {\n\t Log.i(\"MAIN\",\"retrieving current location...\");\n\n\t // get cu...
[ "0.78250885", "0.6671968", "0.6236452", "0.617458", "0.6131493", "0.6023559", "0.60186607", "0.5975055", "0.59009576", "0.57774365", "0.57648987", "0.57520807", "0.5716909", "0.57083607", "0.56906146", "0.568748", "0.5671762", "0.5647495", "0.5646127", "0.56407785", "0.562470...
0.8358875
0
give option to change location settings or select a location manually
@Override public void error() { Log.e("MAIN","Error finding best guess location"); dS.lat=0; dS.lon=0; if(once) { //promptSetLocationService(MainActivity.this); } once=false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void onClickLocationSettings(View view) {\n startActivity(new Intent(android.provider.Settings.ACTION_LOCATION_SOURCE_SETTINGS));\n }", "private void pickLocation() {\n // By default the location picker will enable all the included buttons like\n // Satellite view and position me\n...
[ "0.71411115", "0.71144885", "0.7087753", "0.7074434", "0.6837234", "0.6775804", "0.6765546", "0.6756111", "0.6756111", "0.6756111", "0.6750957", "0.67253715", "0.6718873", "0.6685165", "0.665394", "0.6649267", "0.66282386", "0.661101", "0.65919524", "0.6587729", "0.65816283",...
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.toplevel, 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.72474515", "0.72030497", "0.7196155", "0.7178126", "0.7107996", "0.7041309", "0.70395386", "0.7012691", "0.7010885", "0.69815445", "0.69462097", "0.6940046", "0.69345695", "0.69183254", "0.69183254", "0.6892358", "0.6885014", "0.6876514", "0.6876359", "0.68626404", "0.6862...
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. Handle presses on the action bar items
@Override public boolean onOptionsItemSelected(MenuItem item) { switch (item.getItemId()) { case R.id.action_settings: Intent prefsIntentS = new Intent(this, PreferencesActivity.class); startActivity(prefsIntentS); return true; case R.id.action_about: Intent aboutIntent = new Intent(this, AboutActivity.class); startActivity(aboutIntent); overridePendingTransition(R.anim.fadein,R.anim.fader); return true; case R.id.action_help: Intent helpIntent = new Intent(this, HelpActivity.class); startActivity(helpIntent); overridePendingTransition(R.anim.fadein,R.anim.fader); return true; default: return super.onOptionsItemSelected(item); } }
{ "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.77937174", "0.76561034", "0.7616773", "0.7569597", "0.755328", "0.7500425", "0.747581", "0.7460495", "0.7408268", "0.7406156", "0.73618114", "0.7337574", "0.7306836", "0.73019415", "0.73004127", "0.73004127", "0.72956413", "0.72647184", "0.72637916", "0.7262261", "0.725710...
0.0
-1
TODO Autogenerated method stub
@Override public void onAnimationEnd(Animation animation) { findViewById(R.id.textView8).setVisibility(View.GONE); findViewById(R.id.textView81).setVisibility(View.GONE); findViewById(R.id.textView9).setVisibility(View.GONE); findViewById(R.id.textView10).setVisibility(View.GONE); findViewById(R.id.textView11).startAnimation(animb); }
{ "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 onAnimationRepeat(Animation animation) { }
{ "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 onAnimationStart(Animation animation) { }
{ "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
Definicion de los metodos nativos, estos estan implementados en el Lenguaje c, en el archivo Calculadora.c
private native double SumaC(double operador_1, double operador_2);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public cola_de_un_banco(){// se crea nuestro metodo costructor \r\n primero=null;//se crea el tipo de indicaciones con valor...
[ "0.57764703", "0.5774415", "0.5758239", "0.57533354", "0.57175946", "0.5666471", "0.5600488", "0.55881846", "0.5587407", "0.5585635", "0.5566601", "0.55628216", "0.5503012", "0.54799885", "0.5473147", "0.54526645", "0.54422194", "0.5440923", "0.54256", "0.5419093", "0.5414130...
0.0
-1
Metodo "Sumar" llama al metodo nativo "SumarC"
public double Sumar(double operador_1, double operador_2){ return SumaC(operador_1, operador_2); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void sumar(){\n recogidaDatos();\n System.out.println(\"El resultado de la suma es: \" + (numerando1 + numerando2));\n System.out.println(\"***********************************\");\n\n }", "private int sumaCen(){\n int kasa = 0;\n for(Restauracja r :zamowioneDania){\n ...
[ "0.6937479", "0.6794071", "0.6729296", "0.6685154", "0.6615303", "0.6508279", "0.6477747", "0.6386732", "0.6276026", "0.6243233", "0.62312394", "0.6160961", "0.6138986", "0.61295235", "0.6101033", "0.6064527", "0.59784174", "0.5966338", "0.59649116", "0.59614086", "0.59190786...
0.6161447
11
Metodo "Restar" llama al metodo nativo "RestarC"
public double Restar(double operador_1, double operador_2){ return RestaC(operador_1, operador_2); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void recreo() {\n\n\t}", "public void restarPunto ( ) {\n\t\tif ( vida > 0 )\n\t\t\tvida--;\n\t}", "public void reiniciar() {\n // TODO implement here\n }", "private static void cajas() {\n\t\t\n\t}", "@Override\r\n\tpublic void modifier_rec(long code_apoger) {\n\r\n fo...
[ "0.5870402", "0.57050014", "0.56329936", "0.55781025", "0.5575355", "0.551042", "0.54667443", "0.5464711", "0.5405251", "0.53825605", "0.5379425", "0.53739953", "0.5326713", "0.5315851", "0.5302126", "0.5295466", "0.52702415", "0.52601105", "0.5215741", "0.5206391", "0.518750...
0.5403372
9
Metodo "Multiplicar" llama al metodo nativo "MultiplicarC"
public double Multiplicar(double operador_1, double operador_2){ return MultiplicacionC(operador_1, operador_2); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void multiply() {\n\t\t\n\t}", "Multiply createMultiply();", "private void mul() {\n\n\t}", "private void multiplication()\n\t{\n\t\tFun = Function.MULTIPLY; //Function set to determine what action should be taken later.\n\t\t\n\t\t\tsetLeftValue();\n\t\t\tentry.grabFocus();\n\t\t\n\t}", "Multiplica...
[ "0.7506374", "0.7175932", "0.70310575", "0.6874879", "0.6748003", "0.6748003", "0.672602", "0.65796137", "0.6554585", "0.64401734", "0.64002776", "0.6373462", "0.6363856", "0.63091063", "0.6305955", "0.6295556", "0.62733334", "0.6257558", "0.62501544", "0.62424684", "0.624070...
0.69945544
3
Metodo "Dividir" llama al metodo nativo "DividirC"
public double Dividir(double operador_1, double operador_2){ return DivisionC(operador_1, operador_2); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void enfoncerDiv() {\n\t\ttry {\n\t\t\tthis.op = new Div();\n\t\t\tif (!raz) {\n\t\t\t\tthis.pile.push(valC);\n\t\t\t}\n\t\t\tint a = this.pile.pop(); int b = this.pile.pop();\n\t\t\tthis.valC = this.op.eval(b,a);\n\t\t\tthis.pile.push(this.valC);\n\t\t\tthis.raz = true;\n\t\t}\n\t\tcatch (ArithmeticExcepti...
[ "0.66542476", "0.62016225", "0.6197841", "0.60190463", "0.600413", "0.5991229", "0.59847724", "0.5911996", "0.5847352", "0.5844856", "0.5835425", "0.5773032", "0.57527053", "0.5730644", "0.57055396", "0.56878096", "0.5687666", "0.5678029", "0.56776905", "0.564644", "0.5645865...
0.61703175
3
Using binary search to effectively find the can of paint to buy
private static int findNeed(int currN) { int lo = 0, hi = shopList.length-1; while (lo < hi) { int mid = (lo + hi) / 2; if (shopList[mid] < currN) { lo = mid + 1; } else { hi = mid; } } return shopList[lo]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static int binSearch(int []arr,int key) {\n\t\tint start=0;\n\t\tint end=arr.length-1;\n\t\tdo {\n\t\t\tint pc=(start+end)/2;\n\t\t\tif(arr[pc]==key) {\n\t\t\t\treturn pc;\n\t\t\t}else if(arr[pc]<key) {\n\t\t\t\tstart=pc+1;\n\t\t\t}else\n\t\t\t\tend=pc-1;\n\t\t}while(start<=end);\n\t\t\n\t\treturn -1;\n\t}", "ab...
[ "0.6297529", "0.60606366", "0.6034683", "0.5910886", "0.5887328", "0.5841531", "0.5814943", "0.5775123", "0.5750768", "0.5699777", "0.5687641", "0.56703484", "0.5660193", "0.5636146", "0.5611309", "0.5595036", "0.55832607", "0.55767906", "0.5575091", "0.556061", "0.55371696",...
0.5767065
8
Code for merge sort
static void merge(int arr[], int l, int m, int r) { // Sizes of the two subarrays int size1 = m - l + 1; int size2 = r - m; // Temporary arrays int left[] = new int [size1]; int right[] = new int [size2]; // Copy over to temps for (int i=0; i<size1; ++i) left[i] = arr[l + i]; for (int j=0; j<size2; ++j) right[j] = arr[m + 1+ j]; // Initial indexes of first and second subarrays int i = 0, j = 0; // Initial index of merged subarry array int k = l; while (i < size1 && j < size2) { if (left[i] <= right[j]) { arr[k] = left[i]; i++; } else { arr[k] = right[j]; j++; } k++; } // Copy rest of arrays while (i < size1) { arr[k] = left[i]; i++; k++; } // For the other array while (j < size2) { arr[k] = right[j]; j++; k++; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private PerfectMergeSort() {}", "public void mergeSort(){\r\n mergeSort(mArray, new int[mArray.length], 0 , mArray.length - 1);\r\n }", "private void mergesort(int[] array) {\n\t\t\n\t}", "private void mergeSort(int low, int high) {\n\t\tif (low < high) {\n\t\t\tint middle = low + (high - low) / 2;...
[ "0.7720987", "0.76503146", "0.76023114", "0.7580012", "0.7509526", "0.7484415", "0.74171895", "0.74028426", "0.7357797", "0.7333467", "0.73257565", "0.73112327", "0.7296708", "0.7274217", "0.7204499", "0.7194972", "0.71694595", "0.71596795", "0.7148461", "0.71083975", "0.7101...
0.66668135
90
Sort function that uses merge
static void sort(int arr[], int l, int r) { if (l < r) { // Find middle int m = (l+r)/2; // Sort both halves sort(arr, l, m); sort(arr , m+1, r); // Merge both halves after they have been sorted merge(arr, l, m, r); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void mergesort()\n { sort(this.heap, 0, heap.size()-1);\n }", "public void mergeSort() {\n this.array = mergeSort(array);\n }", "public void sort() {\n if(c==null) {\n int middle;\n\n Comparable[] left, right;\n\n\n if (unsorted.length <= 1) {\n\n ...
[ "0.7126611", "0.7115414", "0.70251346", "0.69846964", "0.69373083", "0.69331104", "0.69331104", "0.6870737", "0.686465", "0.68597233", "0.67904997", "0.66399527", "0.66357774", "0.6628662", "0.66087556", "0.65830386", "0.6577973", "0.65218085", "0.6521673", "0.6503949", "0.64...
0.6025249
99
setter for transaction list
@JsonProperty("transaction") public void setTransaction(Transaction transaction) { this.transactionList.add(transaction); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@JsonProperty(\"transaction\")\n public void setTransaction(List<Transaction> transaction) {\n this.transactionList = transaction;\n }", "@JsonProperty(\"transaction\")\n public List<Transaction> getTransactionList() {\n return this.transactionList;\n }", "public void setPolicyTransac...
[ "0.7725893", "0.68608433", "0.63739413", "0.632694", "0.63258624", "0.6231915", "0.6215434", "0.6152053", "0.6132816", "0.6118594", "0.6094639", "0.6060565", "0.6014153", "0.59842026", "0.59627444", "0.59527206", "0.5941265", "0.5849152", "0.583697", "0.5815889", "0.5804256",...
0.6715674
2
setter for transaction list
@JsonProperty("transaction") public void setTransaction(List<Transaction> transaction) { this.transactionList = transaction; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@JsonProperty(\"transaction\")\n public List<Transaction> getTransactionList() {\n return this.transactionList;\n }", "@JsonProperty(\"transaction\")\n public void setTransaction(Transaction transaction) {\n this.transactionList.add(transaction);\n }", "public void setPolicyTransactio...
[ "0.68608433", "0.6715674", "0.63739413", "0.632694", "0.63258624", "0.6231915", "0.6215434", "0.6152053", "0.6132816", "0.6118594", "0.6094639", "0.6060565", "0.6014153", "0.59842026", "0.59627444", "0.59527206", "0.5941265", "0.5849152", "0.583697", "0.5815889", "0.5804256",...
0.7725893
0
getter for transaction list
@JsonProperty("transaction") public List<Transaction> getTransactionList() { return this.transactionList; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Transaction[] getTransactionsList() throws Exception;", "public ArrayList<Purchase> getTransactionList()\r\n\t{\r\n\t\t\r\n\t\treturn transactionList;\r\n\t\t\r\n\t}", "java.util.List<com.google.protobuf.ByteString> getTransactionsList();", "@java.lang.Override\n public java.util.List<com.google....
[ "0.7617803", "0.75439423", "0.728009", "0.72771657", "0.7183541", "0.70751977", "0.6996001", "0.698039", "0.6928055", "0.6888672", "0.68205523", "0.67944294", "0.6763294", "0.6719483", "0.6706948", "0.66849023", "0.66797245", "0.6677271", "0.6595898", "0.6591482", "0.65639913...
0.7451967
2
Binding is a interface used to represent the runtime properties and methods associated with a variable: specifically, a method to get the value of the variable.
public interface Binding { /** * Get the declared type of the variable * @return the declared type */ public SequenceType getRequiredType(); /** * Evaluate the variable * @param context the XPath dynamic evaluation context * @return the result of evaluating the variable */ public ValueRepresentation evaluateVariable(XPathContext context) throws XPathException; /** * Indicate whether the binding is local or global. A global binding is one that has a fixed * value for the life of a query or transformation; any other binding is local. * @return true if the binding is global */ public boolean isGlobal(); /** * If this is a local variable held on the local stack frame, return the corresponding slot number. * In other cases, return -1. * @return the slot number on the local stack frame */ public int getLocalSlotNumber(); /** * Get the name of the variable * @return the name of the variable, as a structured QName */ public StructuredQName getVariableQName(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract int getBindingVariable();", "Binding getBinding();", "public Binding getBinding() {\n\t\treturn binding;\n\t}", "public Binding getBinding() {\n return binding;\n }", "public interface YCoolBindings {\n /**\n * The porpouse of this method is to store any bind, because depen...
[ "0.71681404", "0.7046602", "0.65462315", "0.65252405", "0.64560455", "0.63056654", "0.6282438", "0.6188445", "0.60663", "0.60495096", "0.6015784", "0.60149056", "0.59348255", "0.59270716", "0.59270716", "0.5883893", "0.58628625", "0.58447224", "0.58432436", "0.582718", "0.579...
0.7966216
0
Get the declared type of the variable
public SequenceType getRequiredType();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public VarTypeNative getFieldVarType();", "TypeRef getType();", "type getType();", "Type getType();", "Type getType();", "Type getType();", "Type getType();", "Type getType();", "Type getType();", "Type getType();", "Type getType();", "Type getType();", "Type getType();", "Type getType();...
[ "0.7295713", "0.686877", "0.6832922", "0.6716097", "0.6716097", "0.6716097", "0.6716097", "0.6716097", "0.6716097", "0.6716097", "0.6716097", "0.6716097", "0.6716097", "0.6716097", "0.6648523", "0.65955305", "0.65955305", "0.65955305", "0.65955305", "0.65955305", "0.65955305"...
0.0
-1
Indicate whether the binding is local or global. A global binding is one that has a fixed value for the life of a query or transformation; any other binding is local.
public boolean isGlobal();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isGlobal() {\n return true;\n }", "public boolean isGlobalScopeOnly() {\n return this.isGlobalScopeOnly;\n }", "public boolean isLocal() {\n return local;\n }", "public boolean isLocal() {\n\t\treturn _local;\n\t}", "public boolean isLocal()\n {\n re...
[ "0.68063986", "0.6642382", "0.66339254", "0.6526131", "0.6511175", "0.64047134", "0.6270221", "0.62645894", "0.6191824", "0.60546684", "0.6025515", "0.5934214", "0.5919706", "0.5876648", "0.58069", "0.5800291", "0.57821864", "0.5778584", "0.5640486", "0.5605833", "0.56029624"...
0.67222434
1
If this is a local variable held on the local stack frame, return the corresponding slot number. In other cases, return 1.
public int getLocalSlotNumber();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getLocalSlotNumber() {\n return 0; //To change body of implemented methods use File | Settings | File Templates.\n }", "private int findFreeSlot(){\n\t\tfor(int i = 0; i < INVENTORY_SLOTS; i++){\n\t\t\tif(inventoryItems[i] == null){\n\t\t\t\treturn i;\n\t\t\t}\n\t\t}\n\t\treturn 0;\n\t}", ...
[ "0.6921299", "0.61746407", "0.6134313", "0.6124463", "0.6103253", "0.60748273", "0.6037091", "0.6037091", "0.59612685", "0.59612685", "0.5923841", "0.58501244", "0.5845142", "0.5823851", "0.58001375", "0.57985574", "0.57787895", "0.57688355", "0.5736412", "0.5685913", "0.5669...
0.73595685
0
Get the name of the variable
public StructuredQName getVariableQName();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getVarName();", "String getVarName();", "String getVarName();", "String getVarName(String name);", "String getVariable();", "public String getVariable();", "public String variable()\n\t{\n\t\treturn _var;\n\t}", "public String getVariableName() {\n\t\treturn variableName;\n\t}", "public Stri...
[ "0.83274627", "0.83274627", "0.83274627", "0.81303656", "0.81021", "0.7803678", "0.7726254", "0.7631941", "0.7631941", "0.74622566", "0.74481386", "0.74296284", "0.73227125", "0.7242122", "0.7177164", "0.71471745", "0.7079293", "0.7067927", "0.69971603", "0.6976947", "0.69674...
0.67096376
26
Test of addAnalysis method, of class Writer.
@Test public void testAddAnalysis() { System.out.println("addAnalysis"); Analysis a = new Analysis(BigDecimal.ONE, BigDecimal.ONE, BigDecimal.ONE, null, 1, null, null, 1); assertEquals(0, w.analysies.size()); w.addAnalysis(a); assertEquals(1, w.analysies.size()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testWriteToFile() {\n\t\tArrayList<ArrayList<String>> risultatoAnalisi = \n\t\t\t\tnew ArrayList<ArrayList<String>>();\n\t\toutput.setAnalysisResult(risultatoAnalisi);\n\t\tString percorso = \"\";\n\t\toutput.setOutputFileFolder(percorso);\n\t\ttry {\n\t\t\toutput.writeToFile();\n\t\t} catch (...
[ "0.64537716", "0.60981345", "0.5784195", "0.56803554", "0.5666856", "0.56443", "0.5621723", "0.5621321", "0.55791336", "0.5500442", "0.5496254", "0.5456408", "0.5449346", "0.5443142", "0.54246634", "0.53983027", "0.53906053", "0.5356966", "0.5346102", "0.5336792", "0.53323907...
0.6996735
0
Created by j on 2016/11/16.
public interface GitHubService { // @GET("article/list/1/15/1") // Call<JinXuanBean> getQuamZiData(); @GET("article/list/{page}/15/{type}") Call<JinXuanBean> getQuamZiData(@Path("page") int page, @Path("type") int type); @GET("article/{articleId}") Call<ArticleBean> getArticle(@Path("articleId") int articleId); @GET("review/article/content/{page}/15/{articleId}") Call<Comment> getComment(@Path("page") int page, @Path("articleId") int articleId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "private stendhal() {\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.6003772", "0.5907084", "0.5885914", "0.5828333", "0.58109003", "0.58109003", "0.576941", "0.5764854", "0.573223", "0.5730639", "0.5723697", "0.5677595", "0.5664325", "0.56490415", "0.5648917", "0.56326264", "0.5622763", "0.56057656", "0.5604578", "0.5602415", "0.55998427",...
0.0
-1
Adds a nested property for the item, e.g. "manager.address.street". If any intermediate getters return null values then the property becomes null and readonly.
public boolean addNullableNestedProperty(String propertyPath) { return addItemProperty( propertyPath, new NullableNestedProperty(getBean(), propertyPath)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public DynamicReadOnlyProperties expand() {\r\n\t\tMap<String, String> map = this.asMap();\r\n\t\tmap = expand(map);\r\n\t\tthis.putAll(map);\r\n\t\treturn this;\r\n\t}", "private EntityHierarchyItemProperties innerProperties() {\n return this.innerProperties;\n }", "public void expandProperty( Strin...
[ "0.54006714", "0.5382261", "0.48967233", "0.4892528", "0.47555712", "0.47453463", "0.47243354", "0.4674598", "0.46709713", "0.46641845", "0.4640778", "0.4625441", "0.46181065", "0.46087474", "0.46033344", "0.45716083", "0.45138547", "0.4497503", "0.4497503", "0.4497503", "0.4...
0.5462049
0
Prints tokens from a Pika file.
public static void main(String[] args) throws FileNotFoundException { checkArguments(args, className()); Tokens.setPrintLevel(Tokens.Level.TYPE_AND_VALUE); scanFile(args[0], System.out); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void print(String filename) {\n // create a file writer\n UTF8FileUtility.createWriter(filename);\n // create a string buffer for storing the text\n StringBuilder sBuffer = new StringBuilder();\n int numTokens = 0;\n int freq = 0;\n for (String token :...
[ "0.6193194", "0.5898737", "0.57893825", "0.57107675", "0.5581219", "0.5558501", "0.5458648", "0.54240763", "0.54150814", "0.5281221", "0.5225078", "0.52100855", "0.51590633", "0.51584125", "0.5155994", "0.514077", "0.5131595", "0.5130483", "0.5121427", "0.5101443", "0.5085293...
0.4807936
38
prints the Pika tokens in the file specified by filename to the given PrintStream.
public static void scanFile(String filename, PrintStream out) throws FileNotFoundException { Scanner scanner = LexicalAnalyzer.make(filename); while (scanner.hasNext()) { printNextToken(out, scanner); } printNextToken(out, scanner); // prints NullToken }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void print(String filename) {\n // create a file writer\n UTF8FileUtility.createWriter(filename);\n // create a string buffer for storing the text\n StringBuilder sBuffer = new StringBuilder();\n int numTokens = 0;\n int freq = 0;\n for (String token :...
[ "0.64082086", "0.6067209", "0.59840024", "0.5690361", "0.563831", "0.55892015", "0.5472762", "0.5444171", "0.5438442", "0.5433061", "0.54289657", "0.5309941", "0.52570313", "0.52430487", "0.51972467", "0.51374495", "0.5074248", "0.504669", "0.5042355", "0.50096965", "0.497117...
0.6711866
0
Gets the instance of the toolkit interceptor composite, that holds all registered holders
public static synchronized IToolkitInterceptor getInstance() { return getCompositeHolder().getToolkitInterceptor(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ServletRequestInjector getRequestInjector();", "ContainerSuppliedInterceptorFactory(PicoContainer pico, Object interceptorComponentKey) {\n this.pico = pico;\n this.interceptorComponentKey = interceptorComponentKey;\n }", "public interface InjectorWrapper {\n\tApplicationInjector getInjector()...
[ "0.5398555", "0.53266543", "0.51928914", "0.51848924", "0.5015707", "0.49995506", "0.49906325", "0.49597237", "0.48900184", "0.48830384", "0.48773137", "0.48294407", "0.4792745", "0.4782768", "0.4782768", "0.47763175", "0.47695696", "0.475534", "0.47492602", "0.472012", "0.46...
0.73254275
0
String s = "aa"; String p = "a";
public static void main(String[] args) { String s = "adceb"; String p = "*a*b"; // String s = ""; // String p = "**"; Solution sln = new Solution(); System.out.println(sln.isMatch(s, p)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n String s = \"aaa\";\n String b = new String(\"aaa\");\n System.out.println(b==\"aaa\");\n\n }", "public static void main(String[] args) {\nString s1= \"adya\";\nString s2= \"adyass\"+\"a\";\nString s3= \"adyassa\";\nSystem.out.println(s3==s2);\n\...
[ "0.63430417", "0.62717974", "0.62056684", "0.6205092", "0.6188679", "0.6156657", "0.6119255", "0.60872954", "0.60844946", "0.607503", "0.6064267", "0.60494924", "0.60092366", "0.59976494", "0.59360874", "0.5928352", "0.5913343", "0.58704835", "0.5863793", "0.58599454", "0.585...
0.0
-1
Method to connect zookeeper ensemble.
public ZooKeeper connect() throws InterruptedException, IOException { zooKeeper = new ZooKeeper("127.0.0.1:2181", 5000, new Watcher() { public void process(WatchedEvent watchedEvent) { if (watchedEvent.getState() == Event.KeeperState.SyncConnected) { countDownLatch.countDown(); } } }); countDownLatch.await(); return zooKeeper; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void startZK(){\n int tryConnectionCount = 0;\n try {\n tryConnectionCount++;\n this.zk = new ZooKeeper(this.hostServer + \":\" + this.port, 15000, this);\n\n } catch (IOException e) {\n LOG.error(e);\n }\n }", "public ZooKeeper connect(Strin...
[ "0.65535915", "0.6385718", "0.63145643", "0.6281462", "0.5802881", "0.57679635", "0.57312566", "0.571811", "0.5712204", "0.5706924", "0.5640846", "0.5588646", "0.5510704", "0.55087674", "0.5497374", "0.53596395", "0.53274554", "0.53133625", "0.5289799", "0.5240368", "0.523785...
0.66845447
0
/ Calls minimax algorithm to search for a solution using depth or time
public Line miniMax(Board board) throws IOException { currBoard = board; if(tod == 0) { return MiniMax.timeMiniMax(currBoard, tod, prune, getColour(), otherColor); } return MiniMax.depthMiniMax(currBoard, tod, prune, getColour(), otherColor); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Leaf minimax(AI_Domain game,boolean turn,int depth, boolean flag,String path) {\r\n\t\t\t\r\n\t\t\t// if the depth is zero or the game is over,\r\n\t\t\t// return the heuristic value of this state\r\n\t\t\tif(depth == 0 || game.gameOver()){\r\n\t\t\t\tLeaf L = new Leaf(H.calculateScore(game));\r\n\t\t\t\tL...
[ "0.7082756", "0.677848", "0.65259224", "0.64711374", "0.64354116", "0.641115", "0.6357835", "0.6352923", "0.6284473", "0.62398225", "0.62252384", "0.6215247", "0.6156437", "0.6156279", "0.614207", "0.61067724", "0.61010313", "0.6081169", "0.60774", "0.60424554", "0.60412294",...
0.0
-1
Used for saving and loading
public void saveObject(ObjectOutputStream out) throws IOException { out.defaultWriteObject(); out.writeObject(otherColor); out.writeObject(mode); out.writeObject(tod); out.writeObject(prune); out.writeObject(currBoard); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void save() {\t\n\t\n\t\n\t}", "@Override\n public void Save() {\n\t \n }", "@Override\n public void save() {\n \n }", "@Override\n\tpublic void save() {\n\t\t\n\t}", "@Override\n\tpublic void save() {\n\t\t\n\t}", "private void saveData() {\n }", "@Override\n public ...
[ "0.77727675", "0.746925", "0.74326175", "0.7395478", "0.7395478", "0.7388317", "0.7386643", "0.7360873", "0.7360873", "0.7360873", "0.724551", "0.724551", "0.72089916", "0.70949274", "0.70949274", "0.70949274", "0.70949274", "0.70837975", "0.7068013", "0.7031073", "0.7016762"...
0.0
-1
calling the methods from the abstract class
public static void main(String[] args) { Test test = new Test(); test.addition(); test.subtraction(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void call();", "@Override\n\tvoid methodabstract() {\n\t\t\n\t}", "abstract void method();", "public abstract void afvuren();", "public void setupAbstract() {\n \r\n }", "@Override\r\n\tprotected void abstractMethod() {\n\t\tSystem.out.println(\"I'm from the abstract method\");\r\n...
[ "0.72921294", "0.7281188", "0.72805977", "0.71395487", "0.69251496", "0.69220114", "0.6884162", "0.6808107", "0.6771317", "0.6751023", "0.67442393", "0.6732579", "0.6725171", "0.66929764", "0.66595286", "0.6608917", "0.6604689", "0.6551204", "0.6540489", "0.6536004", "0.65132...
0.0
-1
hard code is when you do the operation yourself and not letting the computer handle it
public void addition() { x = 5; y = 11; z = 16; System.out.println("5 + 11 = "+z); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void operation();", "Operations operations();", "@Override\r\n\tpublic int operar() {\n\t\treturn 0;\r\n\t}", "@Override\r\n\tprotected void compute() {\n\t\t\r\n\t}", "boolean invokeOperation() {\n return false;\n }", "protected abstract void work();", "void work();",...
[ "0.6475295", "0.62704444", "0.6103344", "0.6084492", "0.60104704", "0.600719", "0.59963286", "0.5978683", "0.5978683", "0.5973983", "0.5959162", "0.5927948", "0.5927153", "0.5923805", "0.59109384", "0.588485", "0.5860296", "0.5838803", "0.58322656", "0.5828547", "0.5825938", ...
0.0
-1
soft code: i let the computer do it
public void division() { x=1; y=0; z=x/y; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void code() {\n\t\tus.code();\r\n\t\tSystem.out.println(\"我会java...\");\r\n\t}", "void mo57278c();", "void mo41086b();", "public void mo38117a() {\n }", "void mo67924c();", "void mo72114c();", "public void mo9848a() {\n }", "void mo21073d();", "void mo119582b();"...
[ "0.6508681", "0.64074385", "0.63984114", "0.63169724", "0.63004655", "0.6280639", "0.6274963", "0.62487715", "0.6233056", "0.6208781", "0.620031", "0.6193907", "0.6187764", "0.617415", "0.6168304", "0.6161281", "0.61586964", "0.6141058", "0.61310494", "0.61290014", "0.6123239...
0.0
-1
Creates a new SqlStatementBuilder.
public DB2SqlStatementBuilder(Delimiter defaultDelimiter) { super(defaultDelimiter); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Nonnull\n public static UBL23WriterBuilder <StatementType> statement ()\n {\n return UBL23WriterBuilder.create (StatementType.class);\n }", "Statement createStatement();", "Statement createStatement();", "Statement createStatement();", "public org.apache.calcite.avatica.proto.Common.StatementHandle....
[ "0.6421838", "0.63008946", "0.63008946", "0.63008946", "0.61875194", "0.6052047", "0.5763112", "0.5604799", "0.55950266", "0.55506414", "0.55282205", "0.5503613", "0.54414064", "0.53896075", "0.53728116", "0.5360877", "0.52928233", "0.5284434", "0.52541524", "0.52463615", "0....
0.0
-1
Generates EODPosition with Delta values
private Map<String, ArrayList<EODPosition>> generateOutput(Map<SODPosition, Integer> sodPositionsWithDelta) { Map<String, ArrayList<EODPosition>> output = new HashMap<>(); for (Map.Entry<SODPosition, Integer> entry : sodPositionsWithDelta.entrySet()) { SODPosition position = entry.getKey(); if (output.containsKey(position.getInstrument())) { output.get(position.getInstrument()).add(new EODPosition(position.getInstrument(), position.getAccount(), position.getAccountType(), position.getQuantity(), entry.getValue())); } else { output.put(position.getInstrument(), Lists.newArrayList(new EODPosition(position.getInstrument(), position.getAccount(), position.getAccountType(), position.getQuantity(), entry.getValue()))); } } return output; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getDelta();", "public double getDelta() {\n return delta;\n }", "public int getDelta() {\n return delta_;\n }", "public double getDelta() {\r\n return delta;\r\n }", "public int getDelta() {\n return delta_;\n }", "Position_ordonnee createPosition_ordonnee();", ...
[ "0.5645123", "0.55790704", "0.5527921", "0.552554", "0.5479147", "0.54715705", "0.54562294", "0.5440366", "0.54198134", "0.5372709", "0.53726894", "0.5348761", "0.53464246", "0.532147", "0.5289407", "0.5276985", "0.5272737", "0.52556556", "0.52206415", "0.5209263", "0.5196978...
0.5742459
0
Class which updates the SOD positions by adding transactions to generate EOD Position
private Map<SODPosition, Integer> updateSODPositions() { Map<SODPosition, Integer> sodPositionsWithDelta = new HashMap<>(); // This will hold all instruments that have associated transactions // this is neede at the end to carry forward SOD transaction on which // no transactions have come. Set<String> instrumentsProcessed = new HashSet<>(); for (Transaction transaction : transactions) { List<SODPosition> positions = sodPositions.get(transaction.getInstrument()); instrumentsProcessed.add(transaction.getInstrument()); if (TransactionType.B.equals(transaction.getTranscationType())) { for (SODPosition position : positions) { if (AccountType.E.equals(position.getAccountType())) { LOGGER.debug("Processing Transaction Buy for Account Type E with account ID = " + position.getAccount() + " and instrument = " + position.getInstrument()); position.setQuantity(position.getQuantity() + transaction.getQuantity()); sodPositionsWithDelta = populateDeltaMap(sodPositionsWithDelta, position, transaction.getQuantity()); } else { LOGGER.debug("Processing Transaction Buy for Account Type I with account ID = " + position.getAccount() + " and instrument = " + position.getInstrument()); position.setQuantity(position.getQuantity() - transaction.getQuantity()); sodPositionsWithDelta = populateDeltaMap(sodPositionsWithDelta, position, (transaction.getQuantity() * -1)); } } } else { for (SODPosition position : positions) { if (AccountType.E.equals(position.getAccountType())) { LOGGER.debug("Processing Transaction Sell for Account Type E with account ID = " + position.getAccount() + " and instrument = " + position.getInstrument()); position.setQuantity(position.getQuantity() - transaction.getQuantity()); sodPositionsWithDelta = populateDeltaMap(sodPositionsWithDelta, position, (transaction.getQuantity() * -1)); } else { LOGGER.debug("Processing Transaction Sell for Account Type I with account ID = " + position.getAccount() + " and instrument = " + position.getInstrument()); position.setQuantity(position.getQuantity() + transaction.getQuantity()); sodPositionsWithDelta = populateDeltaMap(sodPositionsWithDelta, position, transaction.getQuantity()); } } } } /* Populate sodPositions with the positions on which there were no transactions */ for (Map.Entry<String, ArrayList<SODPosition>> entry : sodPositions.entrySet()) { if (!instrumentsProcessed.contains(entry.getKey())) { for (SODPosition value : entry.getValue()) { sodPositionsWithDelta.put(value, 0); } } } return sodPositionsWithDelta; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void posModify() {\n\t\tgetEntityManager().refresh(instance);\n\t\tcambiarTipoCuenta(instance);\n\t\tgetEntityManager().flush();\n\t\tgetEntityManager().refresh(instance);\n\t\tresultList = null;\n\t\trootNode = null;\n\t}", "public static void positions(SessionFactory sessionFactory, ArrayLi...
[ "0.5779498", "0.5634024", "0.5617519", "0.55373245", "0.5489222", "0.5480442", "0.5480442", "0.5473795", "0.545729", "0.5451355", "0.544879", "0.54431593", "0.5430472", "0.5343518", "0.53407085", "0.5328409", "0.5325116", "0.5304784", "0.52730906", "0.5265924", "0.52554446", ...
0.6911735
0
number 234 > 4+3+2 = 9 Scanner scan=new Scanner(System.in);
public static void main(String[] args) { int num=456; int rem1 = 456%10; System.out.println(rem1); //123 -> 12 int num2 = num/10; // 123/10 -> 12.3 -> 12 System.out.println(num2); int rem2=num2%10; // 12%10 -> 2 //12 ->1 int num3 = num2/10; // 12/10 -> 1.2 -> 1 int rem3 = num3%10; // 1%10 -> 1 System.out.println("The sum of digits: "+(rem1+rem2+rem3)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main (String[] args){\n int a,no,sum=0;\nScanner s=new Scanner(System.in);\n//System.out.println(\"Enter any number: \");\nno=s.nextInt();\nwhile(no>0)\n{\na=no%10;\nno=no/10;\nsum=sum+a;\n}\nSystem.out.println(sum);\n}", "int main()\n{\n int num;\n int q,r,sum;\n cin>>num;\n q=num/10...
[ "0.6615837", "0.6550914", "0.6536964", "0.6505783", "0.64903754", "0.64712256", "0.640575", "0.6404393", "0.637293", "0.63086814", "0.63029146", "0.6277727", "0.6242653", "0.624132", "0.6237749", "0.62245774", "0.61820334", "0.6177538", "0.6172276", "0.6150135", "0.60956544",...
0.0
-1
Creates a new ShootBall.
public ShootBall() { addRequirements(Robot.shooterBall); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Ball create(int xpos, int ypos);", "private Ball createBall(Vektor v) {\n \t\tBall ball = new Ball(v, ballsize);\n \t\tball.color = Color.random();\n \t\tballs.add(ball);\n \t\treturn ball;\n \t}", "public Ball()\n {\n Random randomSpeed = new Random ();\n xSpeed = randomSpeed.nextInt(7);\n ...
[ "0.7573614", "0.672805", "0.6612634", "0.65753275", "0.6564399", "0.6527666", "0.6435138", "0.63497275", "0.63182765", "0.6283789", "0.62576544", "0.62386984", "0.6219011", "0.6159565", "0.6101164", "0.61001915", "0.6076165", "0.6039667", "0.59851664", "0.59850395", "0.596185...
0.77855015
0
Called when the command is initially scheduled.
@Override public void initialize() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void beginSchedule(){\n\t\tDivaApp.getInstance().submitScheduledTask(new RandomUpdater(this), RandomUpdater.DELAY, RandomUpdater.PERIOD);\n\t}", "@Override\n protected void initialize() {\n System.out.println(\"CargoWheelSuckOrSpitCommand init\");\n _timer.reset();\n _timer.start();\n }", "@...
[ "0.694831", "0.6869797", "0.6774711", "0.67235124", "0.66945976", "0.66753703", "0.6657486", "0.66475713", "0.6604096", "0.6577765", "0.6561175", "0.6482039", "0.64754146", "0.644672", "0.6402472", "0.6344543", "0.6339042", "0.6322262", "0.63140696", "0.62958276", "0.62720674...
0.0
-1
Called every time the scheduler runs while the command is scheduled.
@Override public void execute() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void periodic() {\n // This method will be called once per scheduler run\n }", "@Override\n public void autonomousPeriodic() {\n \n Scheduler.getInstance().run();\n \n }", "@Override\n public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }", "@...
[ "0.7797155", "0.75579756", "0.7485269", "0.7467775", "0.7382154", "0.73779386", "0.7344967", "0.73379356", "0.73203003", "0.73203003", "0.73203003", "0.73203003", "0.72729415", "0.72729415", "0.72729415", "0.72729415", "0.72729415", "0.72729415", "0.72440255", "0.72350013", "...
0.0
-1
Called once the command ends or is interrupted.
@Override public void end(boolean interrupted) {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void endCommand();", "@Override\n protected void end() {\n System.out.println(\"elevator down command ended\");\n }", "@Override\n public void end(boolean interrupted) {\n return;\n }", "@Override\n protected void interrupted() {\n end();\n }", "@Override\n protected void interrupted...
[ "0.7605449", "0.7176284", "0.7039006", "0.7019191", "0.7019191", "0.7019191", "0.7019191", "0.7019191", "0.7019191", "0.7019191", "0.7019191", "0.7019191", "0.7019191", "0.7019191", "0.7019191", "0.7019191", "0.7019191", "0.70119756", "0.6996919", "0.6995794", "0.6995794", ...
0.7074365
5
Returns true when the command should end.
@Override public boolean isFinished() { return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract boolean shouldEnd();", "private Boolean quitCommand() {\n output.println(\"QUIT COMMAND\");\n return false;\n }", "protected boolean isFinished() {\r\n\t \treturn (timeSinceInitialized() > .25) && (Math.abs(RobotMap.armarm_talon.getClosedLoopError()) < ARM_END_COMMAND_DIFFER...
[ "0.75273657", "0.73602504", "0.73465896", "0.71294767", "0.7033159", "0.7012778", "0.700753", "0.6994238", "0.6931957", "0.6927545", "0.6915831", "0.68845886", "0.68594575", "0.68594575", "0.68594575", "0.6853999", "0.68532574", "0.6851464", "0.6851464", "0.6837983", "0.68260...
0.0
-1
Constructor to create a new instance of this class
public JscriptWorkflowNode(String name, String title, String description, boolean isTaskNode, ArrayList<JscriptWorkflowTransition> transitions, Scriptable scope, ServiceRegistry serviceRegistry) { this.name = name; this.title = title; this.description = description; this.isTaskNode = isTaskNode; this.transitions = transitions; this.scope = scope; this.serviceRegistry = serviceRegistry; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Constructor() {\r\n\t\t \r\n\t }", "private Instantiation(){}", "public Constructor(){\n\t\t\n\t}", "public CyanSus() {\n\n }", "public PSRelation()\n {\n }", "Reproducible newInstance();", "public _355() {\n\n }", "public Trening() {\n }", "public Chick() {\n\t}", "public Instance() {...
[ "0.77971274", "0.76510614", "0.76498926", "0.70715857", "0.70629346", "0.6980835", "0.6962109", "0.69327337", "0.6925592", "0.68914145", "0.67711043", "0.6751771", "0.67508894", "0.6749375", "0.67429984", "0.67364454", "0.6734315", "0.6725938", "0.6724877", "0.6712362", "0.67...
0.0
-1
Constructor to create a new instance of this class from an existing instance of WorkflowNode from the CMR workflow object model
public JscriptWorkflowNode(WorkflowNode workflowNode, Scriptable scope, ServiceRegistry serviceRegistry) { this.name = workflowNode.name; this.title = workflowNode.title; this.description = workflowNode.description; this.isTaskNode = workflowNode.isTaskNode; this.transitions = new ArrayList<JscriptWorkflowTransition>(); WorkflowTransition[] cmrWorkflowTransitions = workflowNode.transitions; for (WorkflowTransition cmrWorkflowTransition : cmrWorkflowTransitions) { transitions.add(new JscriptWorkflowTransition(cmrWorkflowTransition)); } this.scope = scope; this.serviceRegistry = serviceRegistry; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Workflow() {\n\t\tsuper();\n\t}", "public WorkflowConfiguration() {\n\t\t\n\t}", "public FlowNodeInstance() {\n\t}", "public WorkflowResource() {\r\n\t}", "public JscriptWorkflowNode(String name, String title, String description,\n \tboolean isTaskNode, ArrayList<JscriptWorkflowTransition> transi...
[ "0.65248513", "0.6093612", "0.5975738", "0.5936241", "0.5722351", "0.55876005", "0.5391978", "0.5276545", "0.5236174", "0.5186371", "0.5175215", "0.5172617", "0.514809", "0.5126293", "0.50885427", "0.507774", "0.505223", "0.505223", "0.505223", "0.505223", "0.5038715", "0.5...
0.6712639
0
Gets the value of the name property
public String getName() { return name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getName() {\n return (String) getValue(NAME);\n }", "PropertyName getName();", "public String getName(){\n\n //returns the value of the name field\n return this.name;\n }", "public String getName() {\n\t\treturn (String) get_Value(\"Name\");\n\t}", "public String getName() {\...
[ "0.7922632", "0.7908402", "0.78744376", "0.78363454", "0.78363454", "0.78363454", "0.7829283", "0.78174627", "0.78057605", "0.7791134", "0.7791134", "0.7777322", "0.7761777", "0.7685398", "0.76415443", "0.7620194", "0.760026", "0.7559629", "0.75085604", "0.75006497", "0.74827...
0.0
-1
Gets the value of the title property
public String getTitle() { return title; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getTitle() {\r\n\t\treturn (String) getProperty(\"title\");\t\r\n\t}", "public String getTitle() {\n return getProperty(Property.TITLE);\n }", "public java.lang.Object getTitle() {\n return title;\n }", "public String get(String title) {\n\t\treturn prop.getProperty(title);\n\t}",...
[ "0.88091385", "0.8663215", "0.8641707", "0.85751545", "0.8547922", "0.85143226", "0.85143226", "0.85143226", "0.85081065", "0.84919906", "0.8459733", "0.8456798", "0.84458077", "0.84439266", "0.84439266", "0.8442832", "0.8442832", "0.8442832", "0.8442832", "0.8442832", "0.844...
0.0
-1
Gets the value of the description property
public String getDescription() { return description; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getDescription() {\n\t\treturn (String) get_Value(\"Description\");\n\t}", "public String getDescription() {\n\t\treturn (String) get_Value(\"Description\");\n\t}", "public String getDescription() {\n\t\treturn (String) get_Value(\"Description\");\n\t}", "public String getDescription() {\n\t\tr...
[ "0.85231507", "0.85231507", "0.85231507", "0.85231507", "0.8500969", "0.8471982", "0.83464086", "0.83217204", "0.83088493", "0.828395", "0.828395", "0.8254358", "0.8246433", "0.8246433", "0.8246433", "0.8246433", "0.8246433", "0.8239126", "0.8239126", "0.8235883", "0.8225111"...
0.0
-1
Gets the value of the isTaskNode property
public boolean isTaskNode() { return isTaskNode; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "TaskNode getNode(Task task);", "@Override\r\n\tpublic boolean hasChildren() {\n\t\tif (taskNodeList != null)\r\n\t\t\treturn true;\r\n\t\telse\r\n\t\t\treturn false;\r\n\t}", "public boolean hasTaskId() {\n return fieldSetFlags()[9];\n }", "public boolean isNode() {\n return (kids != null);\n ...
[ "0.68982625", "0.64285684", "0.6420674", "0.6416944", "0.63443327", "0.62286776", "0.61853987", "0.61853987", "0.61823577", "0.6138173", "0.6071749", "0.60600704", "0.6042756", "0.60195714", "0.6009996", "0.60070443", "0.5992387", "0.5979634", "0.5976709", "0.5976456", "0.597...
0.8842332
0
Gets the value of the transitions property
public Scriptable getTransitions() { Scriptable transitionsScriptable = (Scriptable)new ValueConverter().convertValueForScript( this.serviceRegistry, this.scope, null, this.transitions); return transitionsScriptable; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getTransition(){\n\t\treturn transition;\n\t}", "public int getNombreTransitions()\n {\n return nombreTransitions;\n }", "@Override\n public double getTransitionValue() {\n return value.doubleValue();\n }", "@Override\n\tpublic synchronized Collection<Transition> getTr...
[ "0.7721865", "0.7175959", "0.7100796", "0.6943869", "0.69011796", "0.6842781", "0.6528409", "0.6514374", "0.64033765", "0.63613105", "0.6347248", "0.6338081", "0.63311946", "0.63236886", "0.6299215", "0.6295501", "0.6240029", "0.6197193", "0.6193282", "0.6191869", "0.6183769"...
0.6544141
6
TODO Autogenerated method stub
@Override public double fiyatlandir() { return 7.95; }
{ "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
/ Converts a direction in degrees (0...360) to x and y coordinates. The length of this vector is the second parameter
public static Point2D directionToVector(double directionInDegrees, double length) { double directionInRadians = directionInDegrees / 180 * Math.PI; Point2D heading = new Point2D(length * Math.sin(directionInRadians), - length * Math.cos(directionInRadians)); return heading; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double direction(){\n return Math.atan2(this.y, this.x);\n }", "public void pointToXY(int x, int y) {\n PVector targetVector;\n targetVector = new PVector(x, y);\n direction = (p.degrees(p.atan2(pos.x - (targetVector.x), pos.y - (targetVector.y))))+90;\n if (direction < 0) direction ...
[ "0.6655147", "0.64097416", "0.6287844", "0.62279123", "0.6188382", "0.5980375", "0.5947708", "0.5909932", "0.58972806", "0.58952296", "0.5890471", "0.5791171", "0.5780265", "0.5752293", "0.5744832", "0.5739751", "0.5715899", "0.5708068", "0.5675446", "0.5590805", "0.5559294",...
0.6758707
0
Adds blinking animation to Text the node
public static void animateBlinkingTextNode(Text text, String content) { text.setText(content); text.setFont(Font.font ("Verdana", 20)); text.setFill(Color.WHITE); FadeTransition fadeTransition = new FadeTransition(Duration.seconds(1.1), text); fadeTransition.setFromValue(1.0); fadeTransition.setToValue(0.0); fadeTransition.setCycleCount(Animation.INDEFINITE); fadeTransition.play(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void blink() {\r\n\r\n\t\t_timer = new Timer(50, new TimerListener());\r\n\t\t_timer.start();\r\n\r\n\r\n\t}", "public void setBlinkTime(float blinkTime)\n\t{ this.BLINK_TIME = blinkTime; }", "public String blink() {\n if (this.styledValueElements instanceof BlinkOffText) {\n this.sty...
[ "0.674298", "0.6214041", "0.6101411", "0.6047159", "0.6017949", "0.5989827", "0.58265257", "0.58114636", "0.573465", "0.5662831", "0.5616491", "0.5595139", "0.55595416", "0.5521266", "0.5447695", "0.5445179", "0.54214853", "0.5414272", "0.5401287", "0.54010195", "0.53981245",...
0.81218314
0
Moves the platforms position by accesing its parent
@Override public void update() { update(Pong.STANDARD_FRAMETIME); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void moveplatform()\r\n\t{\r\n\t\tfor (Platforms platform : platforms)\r\n\t\t{\r\n\t\t\tif (platforms.indexOf(platform)==0 || platforms.indexOf(platform)==3 || platforms.indexOf(platform)==6 || platforms.indexOf(platform)==9)\r\n\t\t\t{\r\n\t\t\t\tif (platform.getXCord() == 6 )\r\n\t\t\t\t{\r\n\t\t\t\t\tch...
[ "0.7133848", "0.64479625", "0.61261094", "0.59907824", "0.5982865", "0.59753126", "0.59578013", "0.5946574", "0.5930666", "0.59257495", "0.589286", "0.58881396", "0.5879715", "0.58361083", "0.58337086", "0.58303076", "0.5826981", "0.5801316", "0.57979774", "0.5794723", "0.576...
0.0
-1
Create the Vantiq endpoint based on the URI provided. We have some special handling for the URI. If it's null (generally harder to do except from beanstyle configurations), we'll let that through. In such cases, our superclass will call our overridden method createEndpointUri(). This will construct the URI from the information in the containing connector's server.config file (if any). As noted, this is sometimes hard to do given programmatic route construction. So, the alternative is to allow for a URI of "vantiq://server.config". If we see a "host" name of "server.config", we will call the superclass constructor with a uri of null, and the processing described above will take over. This capability is primarily of use in the case of the Camel connector, allowing the user to avoid repeatedly having to specify the connection information.
public VantiqEndpoint(String uri, VantiqComponent component) throws Exception { // A bit of a strange construct, but necessary given the required interface and Java's requirement that the // super() call be the first functional line of a constructor. A "factory method" here might be a better // choice, but the constructor interface is fixed by Camel. super( (uri != null && new URI(uri).getHost().equalsIgnoreCase(SERVER_CONFIG_FILENAME)) ? null : uri, component); log.debug("Creating VantiqEndpoint for uri: {} with sourceName: {}, accessToken: {}", uri, sourceName, accessTokenForLog()); utils = new InstanceConfigUtils(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public String createEndpointUri() {\n \n Properties scProps = utils.obtainServerConfig();\n String baseUri = scProps.getProperty(TARGET_SERVER_PROPERTY_NAME);\n String accessToken = scProps.getProperty(AUTH_TOKEN_PROPERTY_NAME);\n String sourceName = scProps.getPro...
[ "0.7040298", "0.649976", "0.64721745", "0.6262303", "0.6001687", "0.5983515", "0.58701396", "0.5622667", "0.55689853", "0.55658436", "0.5554132", "0.554933", "0.55202895", "0.5494142", "0.54871994", "0.5471838", "0.54665697", "0.546543", "0.546543", "0.5390522", "0.5384391", ...
0.78318584
0
Constructs & returns an ExtensionWebSocketClient. This is here primarily to override for unit testing. In unit test cases, we override to return a client that doesn't send to the (nonexistent) Vantiq installation;
protected ExtensionWebSocketClient buildVantiqClient(String source, int msgQueueSize) { return new ExtensionWebSocketClient(sourceName, failedMessageQueueSize, utils); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract DefaultWOWebSocket create(Channel channel);", "public static RpcClient getInstance() {\n\t\tif (instance == null) {\n\t\t\tsynchronized (RpcClient.class) {\n\t\t\t\tif (instance == null) {\n\t\t\t\t\tinstance = new RpcClient(\"ye-cheng.duckdns.org\", 8980); // FIXME: ugly hard code\n\t\t\t\t}\n\t...
[ "0.60373616", "0.55269843", "0.54628164", "0.5413103", "0.5401731", "0.5389291", "0.5365168", "0.53365463", "0.53111404", "0.53001267", "0.52496874", "0.52227694", "0.51601547", "0.5159424", "0.51515156", "0.51177084", "0.5089461", "0.50309926", "0.49601853", "0.49473512", "0...
0.63653535
0
Does nothing in the real case. Overridden in FauxVantiqEndpoint.
protected void completeFuturesForFauxInstances() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ChannelFuture method_4126() {\n return null;\n }", "public ChannelFuture method_4120() {\n return null;\n }", "public ChannelFuture method_4097() {\n return null;\n }", "@Override\n public int getResponseQueueLength() {\n return 0;\n }", "public ChannelFuture method_4092() ...
[ "0.61069185", "0.604008", "0.59831816", "0.59560156", "0.59007096", "0.58817357", "0.58036894", "0.58036894", "0.5797905", "0.5795806", "0.5785952", "0.57843375", "0.5775668", "0.57754", "0.57754", "0.5737406", "0.57029235", "0.56965965", "0.56605405", "0.56447154", "0.558633...
0.0
-1
Create and endpoint URI for our VantiqEndpoint. This is used by the DefaultEndpoint code when no endpoint URI is specified. In the Vantiq case, we will interpret the lack of URI specification to mean that this VantiqEndpoint is to connect to the Vantiq described in the standard connector server.config file. We will provide the parameters as is appropriate from data gleaned from the server.config file.
@Override public String createEndpointUri() { Properties scProps = utils.obtainServerConfig(); String baseUri = scProps.getProperty(TARGET_SERVER_PROPERTY_NAME); String accessToken = scProps.getProperty(AUTH_TOKEN_PROPERTY_NAME); String sourceName = scProps.getProperty(SOURCES_PROPERTY_NAME); String sendPings = scProps.getProperty(SEND_PING_PROPERTY_NAME); if (StringUtils.isEmpty(baseUri) || StringUtils.isEmpty(accessToken)) { throw new IllegalArgumentException("source.config file is missing or does not contain sufficient " + "information from which to construct an endpoint URI."); } if (StringUtils.isEmpty(sourceName) || sourceName.contains(",")) { throw new IllegalArgumentException("Default vantiq: endpoints require a source.config file with a single" + " source name. Found: '" + sourceName + "'."); } try { URI vantiqURI = new URI(baseUri); this.setEndpointUri(baseUri); String origScheme = vantiqURI.getScheme(); StringBuilder epString = new StringBuilder(vantiqURI.toString()); epString.append("?sourceName=").append(sourceName); this.sourceName = sourceName; epString.append("&accessToken=").append(accessToken); this.accessToken = accessToken; if (sendPings != null) { epString.append("&sendPings=").append(sendPings); this.sendPings = Boolean.parseBoolean(sendPings); } if (origScheme.equals("http") || origScheme.equals("ws")) { epString.append("&noSsl=").append("true"); noSsl = true; } epString.replace(0, origScheme.length(), "vantiq"); URI endpointUri = URI.create(String.valueOf(epString)); return endpointUri.toString(); } catch (URISyntaxException mue) { throw new IllegalArgumentException(TARGET_SERVER_PROPERTY_NAME + " from server config file is invalid", mue); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public VantiqEndpoint(String uri, VantiqComponent component) throws Exception {\n // A bit of a strange construct, but necessary given the required interface and Java's requirement that the\n // super() call be the first functional line of a constructor. A \"factory method\" here might be a better\n ...
[ "0.70834357", "0.661958", "0.652771", "0.63322186", "0.6290597", "0.62129146", "0.60801333", "0.6054193", "0.596823", "0.5922479", "0.5912255", "0.5855527", "0.58389586", "0.5672686", "0.5657092", "0.5621561", "0.5604965", "0.55847484", "0.558382", "0.55740297", "0.55647945",...
0.8138989
0
Adjust Vantiq URL. If using a standard vantiq:// connection, set the adjusted URL to a more reasonable protocol. If the URL does not have a scheme of "vantiq", then leave it alone. No adjustment is necessary
public static String adjustVantiqTarget(String baseUrl, boolean noSsl) throws CamelException { String correctedUrl = null; String protocol = "https"; if (noSsl) { // This is used in development or edge servers. protocol = "http"; } try { URI vtqUri = new URI(baseUrl); if (vtqUri.getScheme().equalsIgnoreCase("vantiq")) { vtqUri = new URI(protocol, null, vtqUri.getHost(), vtqUri.getPort(), vtqUri.getPath(), null, null); correctedUrl = vtqUri.toASCIIString(); } else { correctedUrl = baseUrl; } log.trace("Adjusted Vantiq URL: {} (from {})", correctedUrl, baseUrl); } catch (URISyntaxException uriSE) { throw new CamelException("Unable to connect to provided URI: " + baseUrl + " (adjusted: " + correctedUrl + ")", uriSE); } return correctedUrl; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected static void setURL(PURL u, String protocol, String host, int port,\n\t\t String authority, String userInfo, String path,\n String query, String ref) {\n\n\t// ensure that no one can reset the protocol on a given URL.\n u.set(u.getProtocol(), host, port, auth...
[ "0.5495141", "0.54482615", "0.5360441", "0.5356293", "0.53462327", "0.52482754", "0.5202981", "0.519136", "0.51898754", "0.51505613", "0.514298", "0.51376015", "0.51181865", "0.5074385", "0.50692326", "0.5054834", "0.4975772", "0.49703315", "0.49599916", "0.49561635", "0.4927...
0.69139254
0
TODO: Pool min/max sizes should be configurable in URI or properties
public ExecutorService createExecutor() { return getCamelContext().getExecutorServiceManager().newThreadPool(this, endpointName, 1, 5); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "OMMPool getPool();", "int getPoolSize();", "public int getPoolSize() {\n return poolSize;\n }", "protected abstract void createPool();", "int getMinPoolSize();", "int getMaxPoolSize();", "private void initialisePools() {\r\n Integer[] bigPoolInts = {25, 50, 75, 100};\r\n Integer[] sma...
[ "0.68830585", "0.65997624", "0.6428758", "0.6415057", "0.6307157", "0.6278332", "0.6170646", "0.61505973", "0.6065459", "0.6041987", "0.6035231", "0.5984352", "0.5978211", "0.59502006", "0.5900191", "0.5896633", "0.5879137", "0.5850322", "0.58495796", "0.57670915", "0.5759806...
0.0
-1
Sanitize access token for logging
private String accessTokenForLog() { return StringUtils.isEmpty(accessToken) ? "null/empty" : "present"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getToken(final HttpServletRequest request) {\n final String param = ofNullable(request.getHeader(AUTHORIZATION))\n .orElse(request.getParameter(\"t\"));\n\n return ofNullable(param)\n .map(value -> removeStart(value, BEARER))\n .map(String::t...
[ "0.59972626", "0.5472017", "0.5412323", "0.53958964", "0.5348236", "0.5338922", "0.5338922", "0.52456194", "0.5153197", "0.5146844", "0.5113164", "0.5106873", "0.5106873", "0.5106873", "0.5106873", "0.5106873", "0.5106873", "0.50886834", "0.5082802", "0.5051137", "0.50484675"...
0.6005213
0
In private constr we check if instance already initialized and then if someone call this constructor then we throw exception Check in private constructor will block reflection, which made constructor public on runtime
private Singleton2A(){ if(instance != null){ throw new RuntimeException("One instance already created cant create other"); } System.out.println("I am private constructor"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private DPSingletonLazyLoading(){\r\n\t\tthrow new RuntimeException();//You can still access private constructor by reflection and calling setAccessible(true)\r\n\t}", "@Test( expected = IllegalStateException.class )\n\tpublic void constructorShouldNotBeInstantiable() {\n\t\tnew ReflectionUtil() {\n\t\t\t// cons...
[ "0.75005805", "0.7357375", "0.73190284", "0.72503966", "0.7117739", "0.70014304", "0.68349916", "0.6782089", "0.66364545", "0.6621322", "0.6572179", "0.6492476", "0.647039", "0.646954", "0.64529556", "0.6442742", "0.64349097", "0.64034015", "0.6400386", "0.6381032", "0.638082...
0.6959553
6
Singleton obj1 = new Singleton(); compiler error as constr is private and cannot be used from outside class
public static void main(String [] args) throws ClassNotFoundException, NoSuchMethodException, SecurityException, InstantiationException, IllegalAccessException, IllegalArgumentException, InvocationTargetException{ Singleton2A obj1 = Singleton2A.getInstance(); Singleton2A obj2 = Singleton2A.getInstance(); printme("obj1", obj1); // obj1, 2018699554 printme("obj2", obj2); // obj2, 2018699554 System.out.println(obj1.equals(obj2)); // true //Breaking singleton code using reflection: Class cls = Class.forName("advjava.Singleton2"); Constructor<Singleton2A> constr = cls.getDeclaredConstructor(); constr.setAccessible(true); // call constructor Singleton2A obj3 = constr.newInstance(); // new object created printme("obj3", obj3); // obj3, 1311053135 System.out.println(obj1.equals(obj3)); // false }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Singleton(){}", "private SingletonObject() {\n\n\t}", "private Singleton(){\n }", "private SingletonSample() {}", "private Singleton() { }", "private MySingleton() {\r\n\t\tSystem.out.println(\"Only 1 object will be created\");\r\n\t}", "private Singleton() {\n\t}", "private Singleton()\n\...
[ "0.75671196", "0.74382573", "0.7322226", "0.72984177", "0.7298084", "0.7268935", "0.72566724", "0.7240669", "0.72326374", "0.7137617", "0.7119361", "0.7117404", "0.7033886", "0.7024177", "0.6983242", "0.6786956", "0.67426693", "0.6737815", "0.6717743", "0.67039406", "0.670308...
0.6518402
26
Sets the value for this key to that which is less than all possible values for the key domain.
void setMinValue();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void lowerKey(){\n\t\tkey = clamp(key-INCREMENT, MINKEY, MAXKEY);\n\t}", "@Override\n\tprotected void setLowerBound() {\n\t\t\n\t}", "public void setLower(int value) {\n this.lower = value;\n }", "public void raiseKey(){\n\t\tkey = clamp(key+INCREMENT, MINKEY, MAXKEY);\n\t}", "public Query...
[ "0.6249063", "0.5717499", "0.55941963", "0.55887085", "0.552789", "0.5508811", "0.5435953", "0.54165095", "0.52463466", "0.52426964", "0.5217832", "0.5217602", "0.5210336", "0.5151636", "0.51360023", "0.51238924", "0.5091101", "0.50587493", "0.5055922", "0.50263906", "0.49889...
0.544525
6
Sets the value for this key to that which is greater than all possible values for the key domain.
void setMaxValue();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setMaxValue(int x) {\r\n\t\tmaxValue = x;\r\n\t}", "protected void mapValueToWithinBounds() {\n if (getAllele() != null) {\n \tFloat d_value = ( (Float) getAllele());\n if (d_value.isInfinite()) {\n // Here we have to break to avoid a stack overflow.\n // --------------------...
[ "0.535428", "0.53021044", "0.5262767", "0.5237858", "0.5198891", "0.51581746", "0.50987184", "0.5087891", "0.50375885", "0.5019532", "0.5005632", "0.49903324", "0.49725038", "0.4969487", "0.49645022", "0.49374336", "0.49367657", "0.49349645", "0.4932491", "0.4913041", "0.4899...
0.5729117
0
Gets the row identifier appended to this key, if there is one.
RID getRID();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Object _getRowKey()\n {\n Object data = getRowData();\n \n assert (_rowKeyProperty != null);\n return __resolveProperty(data, _rowKeyProperty);\n }", "public Object getRowKey()\n {\n if (isRowAvailable())\n {\n Object rowKey = _getRowKey();\n return rowKey;\n }\n else...
[ "0.7891971", "0.7637856", "0.75355524", "0.7193784", "0.69829595", "0.6959704", "0.6959704", "0.691728", "0.691728", "0.691728", "0.691728", "0.691728", "0.6865013", "0.68579423", "0.68579423", "0.68579423", "0.68579423", "0.68579423", "0.68576235", "0.6820404", "0.68075687",...
0.0
-1
Sets the row identifier for this key. If the row identifier is nonnull then it will be appended to the value of the key in order to establish the key's uniqueness. A reference to the RID object is kept in this key, so subsequent changes to the RID object will be reflected in the value of the key.
void setRID(RID rid);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setRowId(Integer rowId) {\n this.rowId = rowId;\n }", "public void setRowKey(Long value) {\n setAttributeInternal(ROWKEY, value);\n }", "public void setRowKeyProperty(String rowKeyProperty)\n {\n _rowKeyProperty = rowKeyProperty;\n }", "public void setRowKey(Object key)\n...
[ "0.6987444", "0.6615994", "0.6517639", "0.63442534", "0.6028835", "0.59812224", "0.59812224", "0.59812224", "0.59812224", "0.59812224", "0.5935996", "0.5935996", "0.5935996", "0.5887033", "0.5887033", "0.5887033", "0.5887033", "0.5887033", "0.5887033", "0.5887033", "0.5887033...
0.6382738
3
TODO Autogenerated method stub
@Override public void checkClientTrusted(X509Certificate[] chain, String authType) throws CertificateException { }
{ "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 checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException { }
{ "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 X509Certificate[] getAcceptedIssuers() { return null; }
{ "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
====================================== = Protected Methods = ======================================
private String getMessage(FacesContext facesContext, String msgKey, Object... args) { Locale locale = facesContext.getViewRoot().getLocale(); ClassLoader classLoader = Thread.currentThread().getContextClassLoader(); ResourceBundle bundle = ResourceBundle.getBundle("Messages", locale, classLoader); String msgValue = bundle.getString(msgKey); return MessageFormat.format(msgValue, args); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tprotected void interr() {\n\t}", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n...
[ "0.69798076", "0.6753445", "0.6727543", "0.6699109", "0.666481", "0.66411823", "0.66272616", "0.66272616", "0.66272616", "0.66272616", "0.66272616", "0.66272616", "0.6621906", "0.65120304", "0.6504848", "0.65000165", "0.6468775", "0.6441049", "0.6441049", "0.6332303", "0.6325...
0.0
-1