query stringlengths 8 1.54M | document stringlengths 9 312k | negatives listlengths 19 20 | metadata dict |
|---|---|---|---|
Sets value as the attribute value for CreationDate | public void setCreationDate(Date value) {
setAttributeInternal(CREATIONDATE, value);
} | [
"public void setCreated_On(Date Created_On);",
"public void setCreationDate(Date creationDate)\r\n {\r\n this.creationDate = creationDate;\r\n }",
"public void setCreationDate ( Date creationDate ) {\r\n this.creationDate = creationDate;\r\n }",
"public void setCreateDate(String createDate)\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ access modifiers changed from: private / access modifiers changed from: public | private void setPrivateFlags(int value) {
this.bitField0_ |= 8388608;
this.privateFlags_ = value;
} | [
"@Override\n }",
"protected void method_5557() {}",
"@Override\r\n public void publicando() {\n }",
"private Propriedades() {\r\n\t}",
"@Override\n public void extornar() {\n \n }",
"private InternalReflect() {\n\t\t\t// do nothing\n\t\t}",
"protected void method_2117() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Commands of length six include rudder, elevator, aileron commands | private void lengthSix(String[] command) throws ParseException {
if(!command[3].equalsIgnoreCase("rudder") && !command[3].equalsIgnoreCase("elevator") && !command[3].equalsIgnoreCase("ailerons")) {
throw new ParseException("Command doesn't deal with the rudder, elevators, or ailerons");
}
//sort ... | [
"private static void printUserCommands() {\r\n System.out.println();\r\n System.out.println(\"Possible commands: \");\r\n System.out.println(\":input a specific CS course number \");\r\n System.out.println(\":\" + userCommands[2] + \" (will show all possible commands) \");\r\n System.out.println(\":\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get a handle to the default NFC Adapter on this Android device. Most Android devices will only have one NFC Adapter (NFC Controller). | public static NfcAdapter getDefaultAdapter() {
synchronized (NfcAdapter.class) {
if (sIsInitialized) {
return sAdapter;
}
sIsInitialized = true;
/* is this device meant to have NFC */
if (!hasNfcFeature()) {
Log.v(TAG, ... | [
"public static BluetoothAdapter getAdapter() {\n return BluetoothAdapter.getDefaultAdapter();\n }",
"public static NfcAdapter getDefaultAdapter(Context context) {\n/* 68 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"private synchronized void initNfcAdapter() {\n /*\n r... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the emailAddress address of the site. | public void setEmailAddress(String emailAddress)
{
this.emailAddress = emailAddress;
} | [
"public final void setEmailAddress(String emailAddress) {\n this.emailAddress = emailAddress;\n }",
"public void setEmailAddress(String emailAddress) {\n\t\tthis.emailAddress=emailAddress;\n\t}",
"public void setEmailAddress(String emailAddress)\n\t{\n\t\tthis.emailAddress = emailAddress;\n\t}",
"pu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the default texture. | public TextureRegion getTexture() {
return idle[0];
} | [
"public Texture getTexture() {\n\t\t\tif(!this.preloaded) {\n\t\t\t\tSystem.err.println(\"Texture, \" + this.file_path + \", is being loaded despite not being preloaded.\");\n\t\t\t}//fi\n\t\t\t\n\t\t\tif(this.texture == null) {\n\t\t\t\tthis.texture = new Texture(file_path);\n\t\t\t}//fi\n\t\t\t\n\t\t\treturn this... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public String greetServer(String name) throws IllegalArgumentException {
return null;
} | [
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void wydaj() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test createDisplayString for displaying top ten scores of a user. | @Test
public void createDisplayStringTopTenScores() {
board.updateScore(score1);
board.updateScore(score2);
board.updateScore(score3);
String expectedTopTenScores = " 8 \n 5 \n 0 \n 0 \n 0 \n 0 \n 0 \n 0 \n 0 \n 0 \n";
String topTenScores = board.createDisplayString("game1",... | [
"public static void getTestScores() {\r\n\t\tJLabel nameLabel = new JLabel(\"Student name: \");\r\n\t\tformatLabel (nameLabel, nameCoord);\r\n\t\tJLabel oneLabel = new JLabel(\"First test score: \");\r\n\t\tformatLabel (oneLabel, oneCoord);\r\n\t JLabel twoLabel = new JLabel(\"Second test score: \");\r\n\t\tform... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test of deleteEcritureComptable method, of class ComptabiliteManagerImpl. | @Test
public void testRemoveEcritureComptable() throws Exception {
System.out.println("removeEcritureComptable");
ComptabiliteManagerImpl instance = new ComptabiliteManagerImpl();
LocalDate localDate = LocalDate.now();
EcritureComptable eb = getDaoProxy().getComptabiliteDao().getEc... | [
"@Test\r\n public void deleteCompradorTest() {\r\n CompradorEntity entity = data.get(0);\r\n compradorPersistence.delete(entity.getId());\r\n CompradorEntity deleted = em.find(CompradorEntity.class, entity.getId());\r\n Assert.assertNull(deleted);\r\n }",
"@Override\n\tpublic voi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Commit the changes made on this proxy object using the specified context. | public final void commit(com.mendix.systemwideinterfaces.core.IContext context) throws com.mendix.core.CoreException
{
com.mendix.core.Core.commit(context, getMendixObject());
} | [
"public Context save(Context context) {\n\n\tcontext = repository.save(context);\n\treturn(context);\n }",
"protected void preCommit(Context context) {}",
"protected void postOperationHook(final OperationChain opChain, final Context context) {\n }",
"@Override\r\n protected void doCommit(DefaultTrans... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
.submit_booking.Name holder_name = 8; | public schema.Name getHolderName() {
if (holderNameBuilder_ == null) {
return holderName_ == null ? schema.Name.getDefaultInstance() : holderName_;
} else {
return holderNameBuilder_.getMessage();
}
} | [
"public void setName(String aName) { _name = aName; }",
"public void setName(String name){\n customerName=name;\n}",
"public void setName(String name){\n this.name = name;\n}",
"public void setName(String nameIn)\n {\n this.name = nameIn;\n }",
"public void setName(java.lang.String name){th... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns this collection as an array, if the collection itself would be null this method will also return null. | public java.lang.Object[] getIdiomasAsArray()
{
return (idiomas == null) ? null : idiomas.toArray();
} | [
"public Object[] toArray() {\n return null;\n }",
"@Override\n\t public Object[] toArray() {\n\t\treturn null;\n\t }",
"@Override\r\n\tpublic E[] toArray() {\n\t\treturn null;\r\n\t}",
"public Object[] toArray() {\n \n List arrayList = new ArrayList(this.size());\n for (Iterator i... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Saves this weighted (undirected) graph to the given file name | @Override
public boolean save(String file) {
try {
FileOutputStream fileOstrm=new FileOutputStream(file);
ObjectOutputStream out= new ObjectOutputStream(fileOstrm);
out.writeObject(wg);
out.close();
fileOstrm.close();
return true;
... | [
"public void toGraphFile(String name){\r\n\t\tclearMarks();\r\n\t\ttry{\r\n\t\t\tFile f= new File(\"./\"+ name + \".graph\");\r\n\t\t\tBufferedWriter br = new BufferedWriter(new FileWriter(f));\r\n\t\t\tfor(Node n : nodeList){\r\n\t\t\t\tn.visited=true;\r\n\t\t\t\tfor(Arc a:n.adj){\r\n\t\t\t\t\tif(!a.neighbor.visit... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__InterruptibleActivityRegion__Group_4__1" $ANTLR start "rule__InterruptibleActivityRegion__Group_4__1__Impl" InternalActivityDsl.g:4886:1: rule__InterruptibleActivityRegion__Group_4__1__Impl : ( '(' ) ; | public final void rule__InterruptibleActivityRegion__Group_4__1__Impl() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalActivityDsl.g:4890:1: ( ( '(' ) )
// InternalActivityDsl.g:4891:1: ( '(' )
{
// Int... | [
"public final void rule__ActivityNode__Group__6() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalActivityArchitecture.g:2095:1: ( rule__ActivityNode__Group__6__Impl )\n // InternalActivityArchitecture.g:2096:2: rule__Activi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
repeated .MettingSystem.MettingEmpInfo mettingEmpInfo = 3; | public com.ljzn.grpc.metting.MettingEmpInfoOrBuilder getMettingEmpInfoOrBuilder(
int index) {
return mettingEmpInfo_.get(index);
} | [
"abstract void getEmpInfo();",
"public void getEmpData() {\n\t\tgetSalary(); //both are non-static method ...hence object not required to call the method\n\t}",
"private void instantiateIT() {\n\t\tidentifiers.add(\"IT\");\r\n\t\tvalues.add(\"NOOB\");\r\n\t}",
"private void getInformationCouruses() {\r\n }... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
A method that returns a string representation of a SourceClipBO object | public String toString()
{
StringBuilder sb = new StringBuilder();
sb.append("================== SourceClip ======================\n");
sb.append(this.header.toString());
sb.append(String.format("instance_uid = 0x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02... | [
"@Override public String toString()\n{\n StringBuffer buf = new StringBuffer();\n buf.append(\"{\");\n int ctr = 0;\n for (SourceBase cs : getSources()) {\n if (ctr++ != 0) buf.append(\",\");\n buf.append(cs.toString());\n }\n buf.append(\"}\");\n return buf.toString();\n}",
"public Strin... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ / / / / / / | public void onPlayerAdded(EntityPlayerMP player) {} | [
"private void calculatePaths() {\n\n\n }",
"public static void main (String arg[]){\n\tSystem.out.println(\" ( ) ( ( \"); \n\n\tSystem.out.println(\" ( )\\\\ ) ( /( ( )\\\\ ) ( )\\\\ ) \");\n\t\n\tSystem.out.println(\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO: Customize parameter initialization | @SuppressWarnings("unused")
public static ProduktWyborFragment newInstance(int columnCount) {
ProduktWyborFragment fragment = new ProduktWyborFragment();
Bundle args = new Bundle();
fragment.setArguments(args);
return fragment;
} | [
"@Override\r\n\tpublic void initParameter() {\n\t\tsuper.initParameter();\r\n\t}",
"@Override\r\n\tprotected void initOtherParam() {\n\r\n\t}",
"private ParameterUtils() {}",
"private void initParams() {\n }",
"private I18nParameter() {}",
"@Override\r\n\tpublic void subInitParam() {\n\t\t\r\n\t}",
"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return the network address, a.k.a first IP of a subnet. | public static InetAddress network( InetAddress address, InetAddress subnet ) {
byte[] network = address.getAddress();
byte[] mask = subnet.getAddress();
for( int i = 0; i < network.length; ++i ) {
network[i] = (byte) (network[i] & mask[i]);
}
return IpUtil.bytesToInet(network);
} | [
"public InetAddress netmask() {\n final byte[] netmaskBytes = new byte[] { 0, 0, 0, 0 };\n int lengthLeft = length;\n int i=0;\n while (lengthLeft>0) {\n if (lengthLeft>=8) {\n netmaskBytes[i] = (byte)255;\n } else {\n netmaskBytes[i] =... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
int a= 20>10 ? 10:20.0; | public static void main(String as[]){
double d=20 > 10 ? 10 : 20.0;
//int x= 10 > 20 ? 10 : "TWENTY";
//String str= 10 > 20 ? 10 : "TWENTY";
} | [
"int main()\n{\n int a,b;\n std::cin>>a;\n if(a<=200)\n {\n b=a*0.5;\n std::cout<<\"Rs.\"<<b;\n }\n else if(a<=400)\n {\n b=a*0.65+100;\n std::cout<<\"Rs.\"<<b;\n }\n else if(a<=600)\n {\n b=a*0.80+200;\n std::cout<<\"Rs.\"<<b;\n }\n else\n {\n b=a*1.25+425;\n std::cout<<\"Rs.\"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Make the component to the Draft state. It works only if the component is in the WIP state and the 'Update' button is disabled. | void moveToDraft(); | [
"@Override\n\tpublic boolean isDraft() {\n\t\treturn _tramite.isDraft();\n\t}",
"public boolean needsDrafting(){\n return controllerStateRules.containsKey(DraftControllerState.class.getSimpleName());\n }",
"private void saveDraft() {\n Toast.makeText(getContext(), \"Your draft is saved.\", Toas... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the browsing table. | public JTable getJTable() {
if(this.jTable == null) {
this.createJTable();
}
return this.jTable;
} | [
"public final String getTable() {\n return table;\n }",
"public JTable getTable() {\n return theTable;\n }",
"public HashMap<String, Integer> getTable()\n {\n\t return table;\n }",
"public static NetworkTable getTable () {\n\n return NetworkTableInstance.getDefault().getTable(\"limelight-... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Check if all motors are stopped (because they have all reached their desired positions). | public boolean all_motors_stopped() {
for(int i=0; i < MOTOR_COUNT; i++) {
if(motor[i].isBusy())
return false;
}
return true;
} | [
"public boolean hasStopped() {\n\t\treturn this.node.getLinearVelocity(null).z < VELOCITY_THRESHOLD;\n\t}",
"private boolean checkIfStopAll() {\n ParallelizerTask command = taskChannel.peek();\n if (command != null) {\n if (command.cmd == ParallelizerCommands.STOP_ALL) {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
returns the number of cards in the deck | public int size(){
return super.size();
} | [
"public int cardsInDeck()\r\n {\r\n return dec.getNumCards();\r\n }",
"public int deckTotal() { return deck.size(); }",
"public int size() {\n return deck.size();\n }",
"public int numCards(){\n\t\treturn numCards;\n\t}",
"public int getNumCards()\n {\n return cards.length;\n }... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method returns the refresh token. | public String getRefreshToken()
{
return lookupValue(Token.REFRESH_TOKEN);
} | [
"public String getRefreshToken() \n {\n return refreshToken;\n }",
"String getRefreshToken() throws OneDriveException;",
"public String getIdpRefreshToken() {\n\t\treturn idpRefreshToken;\n\t}",
"void refreshToken();",
"public String refreshToken(String token) {\n\t\tString refreshedToken;\n\t\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
compares current board with best move and returns coordinate to best move | public static int[] extractMoveFromMinimax(){
int[] moveFound = {0,0}; //todo
int rows=0;
for (char[] row : bestMove.getPlacedPieces()) {
int column=0;
for (char field : row) {
if (!(field == currentBoard[rows][column])){ //Backup: betterMove.getPlacedPi... | [
"public int getMove(GameState currentBoard) {\n\n\t\tlong startTime = System.currentTimeMillis(); // I have assigned current time in milliseconds to\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// variable(startTime)\n\t\tUtility_Object bestMove = new Utility_Object();// I have initialized the object to compare the best moves in\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
repeated .telemetry.SubscriptionUpdateValueListProto data = 5; | public Builder addData(org.thingsboard.server.extensions.core.plugin.telemetry.gen.TelemetryPluginProtos.SubscriptionUpdateValueListProto value) {
if (dataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDataIsMutable();
data_... | [
"void subscriptionsSucceeded(Collection<ValueSpecification> specifications);",
"java.util.List<tech.donau.behaiv.proto.Data> \n getDataList();",
"public void updateSubscribedData(Map<String, Datapoint> data, String caller) throws Exception;",
"public void setMessages(List<DataMessage> messages);",
"pub... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "entryRuleXCatchClause" $ANTLR start "ruleXCatchClause" InternalSequence.g:5453:1: ruleXCatchClause returns [EObject current=null] : ( ( ( 'catch' )=>otherlv_0= 'catch' ) otherlv_1= '(' ( (lv_declaredParam_2_0= ruleFullJvmFormalParameter ) ) otherlv_3= ')' ( (lv_expression_4_0= ruleXExpression ) ) ) ; | public final EObject ruleXCatchClause() throws RecognitionException {
EObject current = null;
Token otherlv_0=null;
Token otherlv_1=null;
Token otherlv_3=null;
EObject lv_declaredParam_2_0 = null;
EObject lv_expression_4_0 = null;
enterRule();
try {... | [
"public final EObject entryRuleXCatchClause() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleXCatchClause = null;\n\n\n try {\n // ../org.eclipse.xtext.graphview.map/src-gen/org/eclipse/xtext/graphview/map/parser/antlr/internal/InternalGraphViewMapping.g:5... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Recursively ticks a node and all its children. | private static void tick(GraphNode node) {
node.tick();
if (node.isAlive())
node.children.forEach(SceneGraph::tick);
else
kill(node);
} | [
"void updateSelfAndChildren()\n\t{\n\t\tif (!enabled)\n\t\t\treturn;\n\t\t\n\t\tupdate();\n\t\t\n\t\tfor (GameObject gameObject : getChildren())\n\t\t\tgameObject.updateSelfAndChildren();\n\t}",
"public static void drawTicks(int tickLength) {\n\r\n if (tickLength > 0) { // para quando o comprimento chega a... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the entity description. | public void setEntityDescription(String entityDescription) {
this.entityDescription = entityDescription;
} | [
"public void setDescription(String description) {\n LOGGER.log(Level.INFO, \"Plague entity: set description\");\n this.description = description;\n }",
"public void setDescription(final Description description)\r\n\t{\r\n\t\tthis.description = description;\r\n\t}",
"public void setDescription(S... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Value along an x axis. Annotates xaxis data with a value. It is typically used for the location of a _peak_ or _peakGroup_. It uses xUnits or the same units as the data. | public CMLAttribute getXValueAttribute() {
return (CMLAttribute) getAttribute("xValue");
} | [
"@Generated\n @Selector(\"setXValue:\")\n public native void setXValue(@NotNull AXDataPointValue value);",
"public float getXValue() {\n return xValue_;\n }",
"protected void drawXValue(double value,Canvas canvas) {\n\n double offset,totalTime;\n String str;\n\n totalTime=_profile.get... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
check for required fields check for substruct validity | public void validate() throws org.apache.thrift.TException {
if (success != null) {
success.validate();
}
} | [
"public void validate() throws org.apache.thrift.TException {\n if (cpurate == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'cpurate' was not present! Struct: \" + toString());\n }\n if (memrate == null) {\n throw new org.apache.thrift.protocol.TProtocolExcep... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test cardNumber too low, while cardSuit is also too low | @Test (expected = IllegalArgumentException.class)
public void cardConstruct9()
{
Card testCard = new Card(-1000, -1000);
} | [
"public void checkSpecialConditions (Card card) {\n\n // change pick up number accordingly\n\n if (card.getRank() == 2) {\n if (pickup_num == 1) pickup_num = 2;\n else pickup_num += 2;\n } else if (card.getSuit() == Constants.SPADES && card.getRank() ==... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Boolean single = (Boolean)valueForBinding("single"); | protected Integer activeCriterion() {
if(single())//(!hasBinding("single") ||Various.boolForObject(valueForBinding("single")))
return Integer.valueOf(0);
Integer activeCriterion = (Integer)session().objectForKey("activeCriterion");
if(activeCriterion == null)
return Integer.valueOf(0);
return activeCriter... | [
"public void setIsValid (boolean IsValid)\n{\nset_Value (\"IsValid\", new Boolean(IsValid));\n}",
"public boolean getBoolean(){\n return this.value;\n }",
"public void setIsSameTax (boolean IsSameTax)\n{\nset_Value (\"IsSameTax\", new Boolean(IsSameTax));\n}",
"public void setIsEuro (boolean IsEuro)... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
declaration variable deux points | private void identifierVariableTwoPoint() throws Exception {
Supplier<Exception> exceptionSupplierTwoPoint = (!lookahead.getTag().equals(Tag.TWO_POINTS))
?
() -> errorParser.getExceptionVariableTwoPoint(lexicalAnalysis.getCurrentLineNumber())
:
() ... | [
"private zzr$zzao$zza() {\n void var3_1;\n void var2_-1;\n void var1_-1;\n this.zzp = var3_1;\n }",
"private zzbf() {\n void var3_1;\n void var2_-1;\n void var1_-1;\n this.zzad = var3_1;\n }",
"public Declarable(){ //Aca le pasas todo lo de VAR\n\t\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
called by internal mechanisms, do not call yourself. | @Generated(hash = 2059241980)
public void __setDaoSession(DaoSession daoSession) {
this.daoSession = daoSession;
myDao = daoSession != null ? daoSession.getUserDao() : null;
} | [
"protected void mo4791d() {\n }",
"@Override\n public void extornar() {\n \n }",
"@Override\n\t\tprotected void swop() {\n\n\t\t}",
"protected void method_5557() {}",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n }",
"private static void EX5... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Enabled force condition propagation Lifted jumps to return sites | public static b$b a(Context context, String charSequence) {
String string2;
int n10;
String string3 = "versioncode = ";
String string4 = "PackageUtils";
b$b b$b = b$b.a;
if (context == null) {
return b$b;
}
try {
context = context.g... | [
"@Override\n protected void train(boolean x, boolean y){\n return;\n }",
"public double getSimulateFallOffset(){return simulateFallOffset; }",
"private boolean[] hasSkipForwardCpu(Event e1, Event e2) {\n Set<IBPNode> lcsSet = new HashSet<>();\n boolean hasSinkSucc1 = false, hasSinkSuc... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the clientConnection value | public Session getClientConnection() {
return clientConnection;
} | [
"public Connection getCurrentConnection() {\n\t\treturn this.conn;\n\t}",
"public int getConnectionId() {\n return _connectionId;\n }",
"public Socket getConnection() {\n \treturn connection;\n }",
"public String getConnectionId()\r\n\t{\r\n\t\treturn connectionId;\r\n\t}",
"public Object ge... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Inserts a new user in the database | public boolean insertUser(String name, String passMD5, String email) {
boolean success = false;
PreparedStatement ps = null;
try {
ps = db.preparedStatement(SQLUserStatements.insertUser());
ps.setString(1, name);
ps.setString(2, passMD5);
ps.setString(3, email);
ps.setDate(4, new Date(Syste... | [
"@Override\n\tpublic int insertUser(User u) {\n\t\treturn sqlSessionTemplate.insert(getQueryPath(\"insert\"),u);\n\t}",
"private void insert() {\n\n if (User.getAllUsers().isEmpty()) {\n new User(\"admin@example.com\", \"admin\").register();\n }\n }",
"public void insert(User user) t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get a true or false value specifying whether credential store use is enabled for this service. | @Override
public boolean isCredentialStoreEnabled() {
ServiceDesiredStateEntity desiredStateEntity = getServiceDesiredStateEntity();
if (desiredStateEntity != null) {
return desiredStateEntity.isCredentialStoreEnabled();
} else {
LOG.warn("Trying to fetch a member from an entity object that m... | [
"public boolean isEnabled() {\n RequestParameters params = new RequestParameters();\n ServiceResultIterator resultItr = this.getServices().get(params);\n if (resultItr == null || ! resultItr.hasNext()) {\n return false;\n }\n ServiceResult res = resultItr.next();\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
double[] maxSumArray = new double[3];
int n; // initiates the variable needed to determine the lenth of the
// primary array
do {
System.out.println("Please enter the lenth of the primary array");
n = sc.nextInt();
} while... | [
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void wydaj() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional int32 port = 6; port | public Builder setPort(int value) {
bitField0_ |= 0x00000020;
port_ = value;
onChanged();
return this;
} | [
"public abstract int port();",
"public int getPort() {\n/* 250 */ return this.port;\n/* */ }",
"int getPortnum();",
"public int getPort()\r\n {\r\n return port;\r\n }",
"public abstract int getDefaultProtocolPort();",
"public int getPort() {\r\n\treturn port;\r\n }... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ getter and setter | public List<SupplyDemandDto> getSuppliesDemands() {
return suppliesDemands;
} | [
"@Override\n }",
"@Override\n\tpublic void setValue() {\n\t\t\n\t}",
"@Override\n \tpublic String get() {\n \t\treturn null;\n \t}",
"@Override\r\n\t\tprotected void getData() {\n\r\n\t\t}",
"public String getValue() {\n return _value;\n}",
"public String getName() {\nreturn name;\n\n//setter... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "ruleXNullLiteral" $ANTLR start "entryRuleXNumberLiteral" ../org.xtext.example.rmodp/srcgen/org/xtext/example/rmodp/parser/antlr/internal/InternalRmOdp.g:9406:1: entryRuleXNumberLiteral returns [EObject current=null] : iv_ruleXNumberLiteral= ruleXNumberLiteral EOF ; | public final EObject entryRuleXNumberLiteral() throws RecognitionException {
EObject current = null;
EObject iv_ruleXNumberLiteral = null;
try {
// ../org.xtext.example.rmodp/src-gen/org/xtext/example/rmodp/parser/antlr/internal/InternalRmOdp.g:9407:2: (iv_ruleXNumberLitera... | [
"public final EObject entryRuleXNumberLiteral() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleXNumberLiteral = null;\n\n\n try {\n // ../hsh.swa.ocl/src-gen/hsh/swa/ocl/parser/antlr/internal/InternalOCL.g:4834:2: (iv_ruleXNumberLiteral= ruleXNumberLiteral... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | public static void main(String[] args) {
byte byteValue = 20;
short shortValue = 55;
int intValue = 888;
long longValue = 23355;
float floatValue = 8834.3f; //add f at the end to make a double into a float
float floatValue2 =(float)99.3;
double doubleValue = 32.4;
System.out.println(Byte.MAX_VALUE... | [
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void wydaj() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__TArtifactReference__Group__6__Impl" $ANTLR start "rule__TArtifactReference__Group_4__0" ../eu.artist.tosca.dsl.ui/srcgen/eu/artist/tosca/dsl/ui/contentassist/antlr/internal/InternalToscaDSL.g:34971:1: rule__TArtifactReference__Group_4__0 : rule__TArtifactReference__Group_4__0__Impl rule__TArtifactRefe... | public final void rule__TArtifactReference__Group_4__0() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../eu.artist.tosca.dsl.ui/src-gen/eu/artist/tosca/dsl/ui/contentassist/antlr/internal/InternalToscaDSL.g:34975:1: ( rule__TArtifactReference__Group... | [
"public final void rule__UdtRef__Group__4() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalEis.g:3148:1: ( rule__UdtRef__Group__4__Impl )\n // InternalEis.g:3149:2: rule__UdtRef__Group__4__Impl\n {\n p... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method is to get the sharing | public String getSharing() {
return sharing;
} | [
"public int getShare() {\n return iShare;\n }",
"boolean isShareable() {\n return shareable;\n }",
"public int getSharing() {\r\n return _sharedSteps;\r\n }",
"String getShareData();",
"public int getShareType( )\n\t{\n\t\treturn shareType;\n\t}",
"public in... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
CORREGIR ESTE METODO SOLO DEBE MOSTRAR LAS CAJAS SIN REGISTROS DE CIERRE | public LinkedList<CajaLogic> getOpenBoxes(){
LinkedList<CajaLogic> listadoAperCaja = new LinkedList<CajaLogic>();
String SSQL = "SELECT ac.id_caja, ac.saldo_ape, ac.fec_ape_caja FROM aper_caja ac WHERE NOT EXISTS (SELECT NULL FROM cierre_caja cc WHERE cc.FK_id_caja = ac.id_caja);";
... | [
"public void cooper12Min() {\n\n s0 = dist - 504.8;\n resultado = s0 / 44.9;\n\n }",
"@Override\r\n\tpublic long calculaCusto() {\n\t\treturn 0;\r\n\t}",
"public Plato platoMejorValorado( );",
"public Coche(){\n\n ruedas = 4;\n largo = 2000;\n ancho = 300;\n motor ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Cancels all tasks, running as well as waiting | @Override
public void cancelAllTasks() throws OperationFailedException
{
try {
//throw new UnsupportedOperationException("Operation not supported");
_tgCache.cancelMapReduceTask(null, true);
} catch (Exception ex) {
throw new OperationFailedException(ex.getMes... | [
"public void cancelAllTasks() {\n for (Future<T> future : mFutureSet) {\n future.cancel(true /*mayInterruptIfRunning*/);\n }\n }",
"public synchronized void stopPolling()\n\t{\n\t\tfor (ScheduledFuture<?> futureTask : _futureTaskList) {\n\t\t\tString taskName = futureTask.toString();\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets al the custom properties of the document | @Override
public final Map<String, String> getCustomProperties()
{
HashMap<String, String> properties = new HashMap<String, String>();
XSpreadsheetDocument xtd =
(XSpreadsheetDocument) UnoRuntime.queryInterface(XSpreadsheetDocument.class, this.document);
XDocumentInfoSup... | [
"private Map<QName, Serializable> getSiteCustomProperties(NodeRef siteNodeRef)\n {\n Map<QName, Serializable> customProperties = new HashMap<QName, Serializable>(4);\n Map<QName, Serializable> properties = nodeService.getProperties(siteNodeRef);\n \n for (Map.Entry<QName, Serializable... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Move to the terminal of the day. e.g. moveToDayTerminal(): 2011/11/27 12:34:56.789 to 2011/11/27 23:59:59.999 | public HandyDate moveToDayTerminal() {
DfTypeUtil.moveToCalendarDayTerminal(_cal, _dayBeginHour);
return this;
} | [
"public synchronized void goToArrivalTerminal() {\n assert(this.getStat() == BusDriverStates.PARKING_AT_THE_DEPARTURE_TERMINAL);\n this.setStat(BusDriverStates.DRIVING_BACKWARD);\n repos.updateBDriverStat(BusDriverStates.DRIVING_BACKWARD);\n\n // simulates the bus going from the departur... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Adds an external child resource to the childCollection. | protected void addChildResource(String key, FluentModelTImpl childResource) {
this.childCollection.put(key, childResource);
} | [
"public void addChild(FileSystemObject child) {\r\n children.add(child);\r\n }",
"private void addChild(M child) {\n if (children == null) { // if(getChildren().isEmpty())\n children = Lists.newArrayList();\n }\n isLeaf = false;\n children.add(child);\n fire... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates an IncomingFileTransferRequestJabberImpl based on the given fileTransferRequest, coming from the Jabber protocol. | public IncomingFileTransferRequestJabberImpl(ProtocolProviderServiceJabberImpl pps,
OperationSetFileTransferJabberImpl fileTransferOpSet, FileTransferRequest fileTransferRequest)
{
this.jabberProvider = pps;
this.fileTransferOpSet = fileTransferOpSet;
this.fileTransferRequest = f... | [
"private IMFileTransferReq(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public BaseRequest(final IRequest request, final List<String> copyComponents) {\n this.setType(request.getType());\n if (copyComponents.contains(\"schema\")) {\n this.c... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Allows the player to start making his moves. | public Game startTurn() throws NetworkException {
try {
battleServerConnection.canPlay(serverGame, user);
return battleServerConnection.downloadGame(serverGame);
} catch (IOException ex) {
throw new NetworkException(ex);
}
} | [
"private void startPlayerTurn() {\n closeMenus();\n enemy.onPlayerTurn(this);\n }",
"public void startExecuting()\n {\n EntityPlayer player = getTargetPlayer();\n this.parentEntity.getMoveHelper().setMoveTo(player.getPosition().getX(), player.getPosition().getY() + 1, player.getP... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns true if field recoType is set (has been asigned a value) and false otherwise | public boolean isSetRecoType() {
return this.recoType != null;
} | [
"public boolean hasRelType() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }",
"public boolean isSetModelObjectType() {\n synchronized (monitor()) {\n check_orphaned();\n\n return get_store().find_attribute_user(MODELOBJECTTYPE$8) != null;\n }\n }",
"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Appends spaces to a string until the length is reached. If the string is already larger than the specified length, the string itself is returned. | public static String padRight (String _string, int _len) {
return StringUtils.padRight(_string, _len, ' ');
} | [
"public static String padRight(String inputString, int length) {\n\t\tif (inputString.length() >= length) {\n\t\t\treturn inputString;\n\t\t}\n\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append(inputString);\n\n\t\twhile (sb.length() < length) {\n\t\t\tsb.append(' ');\n\t\t}\n\n\t\treturn sb.toString();\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
int32 energy_delta = 15; | @java.lang.Override
public int getEnergyDelta() {
return energyDelta_;
} | [
"public float getEnergy(){\n return Energy;\n }",
"public void increaseEnergy(float amount);",
"public int getEnergyConsumption(){\r\n return energyConsumption;\r\n }",
"public int getEnergy() { return this.energy; }",
"@Override\n \tpublic int getEnergy() {\n \t\treturn energy;\n \t}",
"pri... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Read all corresponding objects from database. | List<T> readAll(ProxyConnection connection) throws SQLException, DaoException; | [
"@Override\n\tpublic List<Producto> readAll() {\n\t\treturn productoDao.readAll();\n\t}",
"@Override\r\n\tpublic List<Map<String, Object>> readAll() {\n\t\tString SQL =\"SELECT * FROM usuario\";\r\n\t\treturn jdbcTemplate.queryForList(SQL);\r\n\t}",
"public void load() {\n objects.clear();\n objec... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Responsible for executing high level application tasks. | public interface Initiator {
void sendTrainData(String filePath) throws FileNotFoundException;
void sendTestData(String filePath) throws FileNotFoundException;
void stop();
} | [
"private static void runBackendApplication()\n\t{\n\t\ttry\n\t\t{\n\t\t\tlogger.info(\"Started the Xerox eConcierge back end processing.\");\n\t\t\t// An instance of xerox service, from spring application context\n\t\t\tXeroxService xeroxService = context.getBean(XeroxService.class);\n\n\t\t\t// Start the process c... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the alias associated with the given name. If no alias can be found in this node, this method queries its parent grouping node. If the alias still can not be found, this method returns null. | public GroupingExpression getAlias(String id) {
if (aliases.containsKey(id)) {
return aliases.get(id);
} else if (parent != null) {
return parent.getAlias(id);
} else {
return null;
}
} | [
"Alias getAlias(String aliasName);",
"String getAliasName();",
"String getRelationNameAliasExpression(RelationName relationName, RelationName aliasName);",
"public String getName() {\n\t\treturn alias.getText();\r\n\t}",
"public String getAlias() { return this.alias; }",
"public Number getAliasId() {\r\n\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
final ConfigurableImportTarget config = (ConfigurableImportTarget) descriptor.getProperty(AbstractFileImportAction.IMPORT_TARGET); | @Override
public void initialize(final StundentafelImportSettings descriptor) {
final ChangeSet<StundentafelImportTargetsItem> s = (ChangeSet<StundentafelImportTargetsItem>) descriptor.getProperty(AbstractFileImportAction.SELECTED_NODES);
selected.clear();
s.stream()
// ... | [
"@Source(type = SourceType.DATABASE)\npublic interface ImportedFilesConfig extends Config {\n\n /**\n * @return information about files imported by AutoImporterImpl\n */\n @Property(\"admintools.importedFiles\")\n @Factory(factory = AutoImportType.Factory.class)\n @Stringify(stringify = AutoImpo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Is this data type initialized yet (name and label known)? | public boolean isInitialized() {
return initialized;
} | [
"public boolean isPrdTypeDescInitialized() {\n return prdTypeDesc_is_initialized;\n }",
"boolean isUninitialized() {\n return descriptor().startsWith(UNINITIALIZED_PREFIX);\n }",
"@Override\n public boolean isInit()\n {\n return true;\n }",
"public void setMet... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Called when a new tab is created. | default void onNewTabCreated(Tab tab, @TabCreationState int creationState) {} | [
"public void addNewTab() {\r\n\r\n\t\tWorkArea wa = new WorkArea(\"method\" + tabPanel.getTabCount(), toolbar);\r\n\t\tthis.workAreas.add(wa);\r\n\t\t\r\n\t\tTab tab = new Tab(wa);\r\n\t\t\r\n\t\tthis.tabPanel.add(wa);\r\n\t\tthis.tabPanel.setTabComponentAt(tabPanel.getTabCount() - 1, tab.getTab());\r\n\t\t\r\n\t\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
=========================================== Public Methods =========================================== Gets the name. | public String getName() {
return name;
} | [
"public String getName() {\r\n\t\tinit();\r\n\t\treturn name;\r\n\t}",
"public String getName()\r\n\t{\r\n\t\t// ***Replace this with the correct implementation.\r\n\t\treturn \"\";\r\n\t}",
"public static String getName() {\n\t\treturn name;\t\t\n\t}",
"public String getName() {\t\t\t\t\t\t\t\t\t\t\treturn n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Detect whether the URL params have changed since this cached report was last rendered. | private boolean urlDirty(ActionURL url)
{
ActionURL cachedURL = _cachedReportURLMap.get(getDescriptor().getReportId());
if (cachedURL != null)
{
Map cur = PageFlowUtil.mapFromQueryString(getCacheURL(url).getQueryString());
Map prev = PageFlowUtil.mapFromQueryStr... | [
"boolean hasCallsLastUpdate();",
"public boolean isChanged()\n\t{\n\t\tif (lastPosition.x != position.x || lastPosition.y != position.y\n\t\t\t\t|| lastRotation != rotation || lastZoom != zoom) { return true; }\n\t\treturn false;\n\t}",
"private boolean cacheIsStale() {\n RefreshResult<T> currentCachedVa... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
hard coded header logo and footer string for now | private void addHeaderAndFooter(PDDocument document,PDPage page, PDPageContentStream contentStream , PDFont font) throws Exception{
logoImage.draw(document, contentStream, page.getMediaBox().getWidth() - (3 * MARGIN), page.getMediaBox().getHeight() - (MARGIN));
PDStreamUtils.write(contentStream, "www.lo... | [
"public String logo(){\r\n String str=\"\\n _______ _ _ \" +\r\n \"\\n |__ __| | | | \" +\r\n \"\\n | |... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
SEARCH /_search/sectorprices?query=:query : search for the sectorPrice corresponding to the query. | @GetMapping("/_search/sector-prices")
@Timed
public ResponseEntity<List<SectorPrice>> searchSectorPrices(@RequestParam String query, Pageable pageable) {
log.debug("REST request to search for a page of SectorPrices for query {}", query);
Page<SectorPrice> page = sectorPriceService.search(query, ... | [
"Page<StockEntryDTO> search(String query, Pageable pageable);",
"@GetMapping(path = \"/books/search\", produces = MediaType.APPLICATION_JSON_VALUE)\n @ApiOperation(value = \"Returns all the books that follow a search criteria.\")\n public List<BookDTO> searchBooks(@RequestParam @ApiParam(value = \"Search cr... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public void addLogStudent(LogStudent log) {
Session session=SessionFactory.getSession();
} | [
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void wydaj() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TEST METHOD: Query user library to check if book already entered | public void checkIfBookInUsersLibrary(final String isbn) {
// Create query on Book Node
Query query = mDatabaseRef
.child(userUid)
.child(Constants.BOOK_NODE)
.orderByValue();
// Attach listener to the query
query.addListenerForSingleValueE... | [
"boolean checkBookIsExisted();",
"public static void searchByIdBook() {\r\n\r\n\t\tif (getBook())\r\n\t\t\tLibrary.book.toStringBook();\r\n\t\telse\r\n\t\t\tCheckInput.findMSG(false);\r\n\t}",
"@Test\n public void testFindSingleBook() {\n boolean isSuccess = true;\n Book testBookInfo = bookCont... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional int32 room_id = 2; | public boolean hasRoomId() {
return ((bitField0_ & 0x00000002) == 0x00000002);
} | [
"public String getRoomID() { return roomID; }",
"public Integer getRoomId() {\n\t\treturn room_id;\n\t}",
"public String getRoomId() {\n return roomId;\n }",
"public int getRoomNumber() {return room.getRoomNumber();}",
"public long getRoomId() {\n return this.roomId;\n }",
"public long getRo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Purpose: Redirects the user to the URL generated. Description: Taken from as a reference | private void goWebsite(JLabel website, final String url, String text) {
lblMedicalURL.setCursor(new Cursor(Cursor.HAND_CURSOR));
lblMedicalURL.addMouseListener(new MouseAdapter() {
@Override
public void mouseClicked(MouseEvent e) {
try {
Deskto... | [
"private RedirectURL(){\n\t\t\n\t}",
"private void gotoRedirectionPage_InUserThread()\n {\n \tSystem.out.println(\"Redirecting the browser to: \" + this.redirectionAddressAfterPost );\n \ttry\n\t{\n URL redirectionURL = new URL( super.getDocumentBase(), this.redirectionAddressAfterPost );\n \t this.getA... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Ask the mManageService to remove a Measure from the Song. | public void deleteAction() {
SongMeasure toDelete = measureList.getSelectionModel().getSelectedItem();
if (toDelete != null) {
Measure measure = toDelete.getMeasure();
boolean isOnlyInstance = measureManageServiceInterface.isOnlyInstance(measure);
var alert = new Aler... | [
"MeasureModel removeMeasureModel(InvocationStat invocationStat);",
"@Override\n\tpublic void deleteUnitMeasure(UnitMeasure user) {\n\n\t}",
"@Test\n public void testRemoveMeasure_2() throws Exception {\n final Measure measure = new Measure(\"\", \"\", \"\", null, \"\", \"\", null, null, \"id\", false)... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Access modifiers changed, original: 0000 / JADX WARNING: Missing block: B:21:0x005a, code skipped: if (r0 != null) goto L_0x005c; / JADX WARNING: Missing block: B:22:0x005c, code skipped: $closeResource(r1, r0); | public void readAbsoluteImpl(com.android.internal.os.KernelCpuUidTimeReader.Callback<long[]> r7) {
/*
r6 = this;
r0 = r6.mReader;
r1 = r6.mThrottle;
r1 = r1 ^ 1;
r0 = r0.open(r1);
r1 = 0;
r2 = r6.checkPrecondition(r0... | [
"public void close() {\n /*\n r8 = this;\n boolean r0 = f4999a\n if (r0 != 0) goto L_0x0013\n com.bca.xco.widget.d.a.a.g.i r0 = com.bca.xco.widget.d.a.a.g.i.this\n boolean r0 = java.lang.Thread.holdsLock(r0)\n if (r... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional bool collideConnected = 1; | public boolean hasCollideConnected() {
return ((bitField0_ & 0x00000001) == 0x00000001);
} | [
"public abstract boolean collide(Entity collision);",
"public boolean getCollisionDetected(){\n return _collisionDetected;\n }",
"void collide(MovingEntity e);",
"public boolean getCollisionState(){\n\t\treturn this.canCollide;\n\t}",
"public void collideWithStatic() {\n }",
"@Overrid... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
end run Establece la clase padre SaveRawPacketHandler | private void setVenPadre(OfflineSaveRawPacketHandler padre) {
this.venpadre = padre;
} | [
"@Override\r\n\tpublic void execPacket(Player player) {\n\r\n\t}",
"public void onPacketSentRaw(String utf, RConnection connection)\r\n\t{\r\n\t\tPacket packet = new Packet(utf);\r\n\t\tSystem.out.println(\"Raw Packet Recieved.\");\r\n\r\n\t\tif (connection.user != null) {\r\n\r\n\t\t\tfor (PacketHandler ph : ser... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
GET /book Get All Books | @ApiOperation(value = "", nickname = "bookGet", notes = "Get All Books", response = Book.class, responseContainer = "List", tags={ "book", })
@ApiResponses(value = {
@ApiResponse(code = 200, message = "OK", response = Book.class, responseContainer = "List") })
@RequestMapping(value = "/book",
p... | [
"@RequestMapping(value = \"/book\", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)\n\tpublic List<Book> findAllBook() {\n\t\tfinal List<Book> resultList = new ArrayList<>();\n\t\tfinal Iterable<Book> all = bookRepository.findAll();\n\t\tall.forEach(new Consumer<Book>() {\n\t\t\t@Override\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Prefills the domain with a bunch of generic users | public void prefillDomain (String prefix, int amount) {
Preconditions.checkNotNull(prefix);
for (int i = 0; i < amount; i++) {
MockUser user = createUser(prefix + i);
}
} | [
"private void setUpDefaultList() {\n\t\ttheUsers.add(new User(\"Chris\", 1, false));\n\t\ttheUsers.add(new User(\"Devon\", 22, false));\n\t\ttheUsers.add(new User(\"River\", 333, false));\n\t\ttheUsers.add(new User(\"Ryan\", 4444, false));\n\t\ttheUsers.add(new User(\"Merlin\", 7777777, true));\n\t}",
"List<User>... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the HttpStatus for this exception object. | public HttpStatus getStatus() {
return status;
} | [
"@JsonProperty(\"httpStatus\")\n public Integer getHttpStatus() {\n return httpStatus;\n }",
"public String getHttpStatusCode() {\n return httpStatusCode;\n }",
"public int getStatusCode() {\n return Util.Field.getStatusCode(this);\n }",
"public int getStatusCode() {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Created by gkhera on 28/05/16. | public interface StockApiMethods {
@GET("/")
void getHistoricalData(@Query("q") String queryString,@Query("format") String format,@Query("diagnostics") String diagnostics,
@Query("env")String env, Callback<StockHistory> cb);
} | [
"@Override\n public void extornar() {\n \n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"private static void EX5() {\n\t\t\r\n\t}",
"@Override\n }",
"protected void method_5557() {}",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"protected voi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
paint(cast to Graphics2D else what.. g, voxels); | public void paint(Graphics g){
int h = getHeight(), w = getWidth();
double mouseYFraction = (double)mouseY/h, mouseXFraction = (double)mouseX/w; //not always fractions cuz can go outside window a little
g.setColor(Color.black);
g.fillRect(0, 0, w, h);
g.setColor(Color.blue);
int end = 3000;
for(int i=0; i... | [
"public void paintVFX(Graphics g) {}",
"public abstract void drawOn(Graphics2D g);",
"void paintComponent(Graphics g);",
"public abstract void render(Graphics2D g2);",
"public void Draw(Graphics2D grafics, Canvas canvas);",
"public void draw(Canvas c , Graphics2D g);",
"public void paint(Graphics g){\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test of left method, of class CollisionPanel. | @Test
public void testLeftVelY() {
System.out.println("left");
double expResult = 0;
CollisionPanel instance = new CollisionPanelImpl();
instance.left();
assertEquals(expResult, instance.vely, 2);
// TODO review the generated test code and remove the default ca... | [
"public void checkTeleLeft(){\n\t\t\n\t\tif(leftColbox.intersects(Adventure.teles[0].position)){\n\t\t\tthis.x = 320f;\n\t\t\tthis.y = 112f;\n\t\t}\n\t\t\n\t}",
"public void moveLeft() {\n if (this.getCollisionRectangle().getUpperLeft().getX() > 20) {\n paddle = new Rectangle(new Point(paddle.ge... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a Dispatch instance for use with JAXB generated objects. | public abstract Dispatch<Object> createDispatch(QName portName, JAXBContext context, Service.Mode mode,
WebServiceFeature... features); | [
"public static com.bagnet.nettracer.ws.core.pojo.xsd.WSForwardItinerary newInstance() {\n return (com.bagnet.nettracer.ws.core.pojo.xsd.WSForwardItinerary) org.apache.xmlbeans.XmlBeans.getContextTypeLoader()\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns a copy of an Atreides. | public House getCopy() {
return new Atreides(xPos, yPos, bounds);
} | [
"@Override\n\tprotected Object clone() {\n\t\treturn new Arco(this.src, this.dst);\n\t}",
"public EnsembleLettre copy() {\n\t\tEnsembleLettre lcopy = new EnsembleLettre();\n\t\tfor (Character c : caracteres) {\n\t\t\tlcopy.add(c);\n\t\t}\n\t\treturn lcopy;\n\t}",
"public HiveAI copy();",
"public ArchiType cop... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional uint32 mana_needed = 7; | public boolean hasManaNeeded() {
return ((bitField0_ & 0x00000040) == 0x00000040);
} | [
"public int getMANA()\n {\n return (this.mana);\n }",
"@Override\n\tpublic void setCost() {\n\t\tmanaCost=1;\n\t}",
"ManaEffect getManaEffect();",
"public void regenMana(){\n this.mana+=(this.mana*0.25);\n }",
"public int getMana() {\n return this.mana;\n }",
"public void setM... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Build the next room. loc is only used if there is no existing room | public void build(Location loc) throws MissingAttributeException {
Building b;
if (castle.getBuildingCount() == 0) {
// create the first building if there aren't any
b = new Building(loc,"hall");
} else {
// first, create the required building, with its extents
// set around some other building, and ... | [
"private Room assignNextRoom(String direction){\n if (direction.equals(\"north\")) {\n return currentRoom.getNorthExit();\n }\n if (direction.equals(\"east\")) {\n return currentRoom.getEastExit();\n }\n if (direction.equals(\"south\")) {\n return ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__XClosure__Group_0__0__Impl" $ANTLR start "rule__XClosure__Group_0_0__0" InternalStubbrLang.g:34898:1: rule__XClosure__Group_0_0__0 : rule__XClosure__Group_0_0__0__Impl rule__XClosure__Group_0_0__1 ; | public final void rule__XClosure__Group_0_0__0() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalStubbrLang.g:34902:1: ( rule__XClosure__Group_0_0__0__Impl rule__XClosure__Group_0_0__1 )
// InternalStubbrLang.g:34903:2: rule__XCl... | [
"public final void rule__XClosure__Group_0__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../jpaqldsl.ui/src-gen/jpaqldsl/ui/contentassist/antlr/internal/InternalJPAQLDsl.g:18943:1: ( rule__XClosure__Group_0__0__Impl )\n // ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructor initializes logIn command | public LogInCommand(UserAccountService userAccountService) {
this.userAccountService = userAccountService;
} | [
"public LogIn() {\n\t\tSystem.out.println(\"logInpage()\");\n\t\tinitialize();\n\t}",
"public Login(){\n\t}",
"public Login() {\n\t\t\n\t\t// Call to super class.\n\t\tsuper ();\n\t}",
"public login() {\r\n\t\tsuper();\r\n\t}",
"public login() {\r\n }",
"public Login(){\n\t \n\t\tinitialize();\n\t}",... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Default constructor for JSON deserialization. | public FulfilledOrderNotification() {} | [
"public static void ParserJson() {\n\t\t//empty constructor\n\t}",
"public JsonParser() {\n\n\t}",
"public JSONConfig() {\n }",
"public JsonObject() {\n }",
"@Override\r\n\tpublic void fromJson(String json) throws JsonParseException, IOException {\n\t\tsuper.fromJson(json);\r\n\t}",
"public JsonResp... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ / Internal methods, other | protected boolean _deleteBackingFile(StorableKey key, File extFile)
{
if (extFile == null) {
return true;
}
try {
boolean ok = extFile.delete();
if (!ok) {
/*
// !!! TEST:
String str = extFile.getAbsolutePath();
for (int i = 0, len = str.length(); i < len;... | [
"protected void method_5557() {}",
"@Override\n }",
"@Override\n public void extornar() {\n \n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"public void mo28221a() {\n }",
"protected void mo4791d() {\n }",
"@Override\n\t\tprotected void swop(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | public MessageToWX textProcess(TextMessageFromWX msg) {
MessageToWX to=null;
if (msg.getContent().trim().equals("南宁")) {
to=new ArticleMessageToWX(msg);
List<HtmlInfo> infos=api.TD(msg.getContent().trim(), 1, 0);
for (HtmlInfo htmlInfo : infos) {
((ArticleMessageToWX)to).setArticleInfo(htmlInfo.ge... | [
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void wydaj() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Are SQL comments enabled? | public String getCommentsEnabled(); | [
"void enableComments(int type);",
"void enableAllComments();",
"public boolean isCommentsEnabled() {\n return !\"no\".equalsIgnoreCase(getComponentParameterValue(\"comments\"));\n }",
"boolean generateCommentsOnSchemas();",
"boolean hasCommentText();",
"public void setCommentsEnabled(boolean comment... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
the background map is static and won't change, so it is 1 frame and 1 animation | @Override
protected void setupAnimations() throws Exception
{
super.addAnimation(Entity.DEFAULT_ANIMATION_KEY, 1, startX, startY, WIDTH, HEIGHT, 0, false);
} | [
"@Override\n\tpublic BufferedImage getBackground() {\n\t\treturn Sprite.map_background.getImage();\n\t}",
"void onBackground() {\n // release images\n mapViewer.reslice();\n }",
"private void addBackground(){\n \t/* Add a blue sky */\n \tTextureLoader bgTex = new TextureLoader( \"models/bigSky.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO: 8/7/2018 Add New Child Method Implementation... | private void addNewChild() {
Log.e(TAG, "AddNewChild");
if (!validate()){
onAddChildFailed();
return;
}
btnAddChild.setEnabled(false);
final ProgressDialog progressDialog = new ProgressDialog(AddChildActivity.this, R.style.AppTheme_Dark_Dialog);
... | [
"@Override\n public void extornar() {\n \n }",
"@Override\n }",
"protected void method_5557() {}",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\r\n public void publicando() {\n }",
"@Ov... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
checking if score is correct | @Test
public void TestMethod() throws Exception {
assertEquals(score, g.getScore(), 0.0);
} | [
"boolean hasScoreCheck();",
"private static int scoreCheck(int score) {\n score += ((score % 2 ==0)? 10: -5);\n return (score<0)? 0 : score;\n }",
"private void check_score(){\n //If player has passed pipe\n if(player.getX() > upPipes.get(index).getX() + upPipes.get(index).getWidt... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml. | @Override
public boolean onOptionsItemSelected(MenuItem item) {
int id = item.getItemId();
//noinspection SimplifiableIfStatement
if (id == R.id.action_settings) {
return true;
}
return super.onOptionsItemSelected(item);
} | [
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch(item.getItemId()){\n\t\tcase android.R.id.home:\n\t\t\t// app icon in action bar clicked; go home\n Intent intent = new Intent(this, MainMenuCard.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the current orthogonal security distance. | public Float getOrthogonalSecurityDistance() throws DynamicCallException, ExecutionException {
return (Float)call("getOrthogonalSecurityDistance").get();
} | [
"public double getDistance() {\n return enco.getRaw() * -0.0002661;\n }",
"public double getDistance() {\n check(\"getDistance\");\n return distance;\n }",
"public double getDistanceL() {\n\t\treturn distanceL;\n\t}",
"public double Distance() {\n double dist=Math.sqrt(x*x+y*... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns if S3TC compression is available for textures. | public static boolean isS3TCSupported() {
return supportsS3TCCompression;
} | [
"boolean hasCompressionFactor();",
"public boolean hasTexture();",
"boolean isTexture();",
"public boolean isUseCompression()\n {\n return this.useCompression;\n }",
"public boolean isCompressed() {\n return compressionAlgorithm != null;\n }",
"boolean hasExpectCompressed();",
"ab... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates an instance of the class handOfCards with n cards | public HandOfCards dealHand(int n) throws InvalidParameterException {
Collections.shuffle(cards);
assert n >= 5 && n <= 52 : "Number must be bigger than 4, and smaller than 52";
ArrayList<PlayingCard> hand = new ArrayList<>();
for(int i = 0; i<n; i++) {
hand.add(cards.get(i)... | [
"public Hand(int numCards) {\n super(numCards);\n }",
"private List<Card> makeCards() {\n int n = 4;\n List<Card> cards = new ArrayList<>();\n int numTiles = n * n;\n for (int i = 0; i < numTiles; i++) {\n cards.add(new Card(i));\n }\n return cards;\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
constructor initializing the class with the | DescribeFeatureType_Impl(String[] schemaDescriptionLanguage, DCPType[] dCPType)
{
this();
setDCPType( dCPType );
setSchemaDescriptionLanguage(schemaDescriptionLanguage);
} | [
"public Cachorro() {\r\n }",
"public Tanh() {\n\t}",
"public Kakuro() {\n\t}",
"public Citas() {\n }",
"public void init() {\n\t\t\n\n\t}",
"@Override\r\n\tpublic void init() {\n\t \r\n\t}",
"public TebakanJamak() {\n }",
"public Marca() {\r\n\t}",
"public Auto() {\r\n\r\n\t}",
"public E... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the number of times the current execution of the job has been attempted. | public int getExecutionAttempts()
{
return executionAttempts;
} | [
"@SuppressWarnings(\"UnusedDeclaration\")\n public int getRetryCount();",
"public Integer getNumRetries() {\n return numRetries;\n }",
"public Integer getNumRetries() {\n return numRetries;\n }",
"int getSyncJobMaxAttempts();",
"Integer getRetries();",
"public int getFailuresSinceLastSucces... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |