query
stringlengths
8
1.54M
document
stringlengths
9
312k
negatives
listlengths
19
20
metadata
dict
TODO Autogenerated method stub
@Override public void mouseReleased(MouseEvent e) { }
[ "@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" ] ] } }
Use Payload.newBuilder() to construct.
private Payload(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); }
[ "MessagePayload(){}", "private payload(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "public Builder setProtoPayload(com.google.protobuf.Any value) {\n if (protoPayloadBuilder_ == null) {\n if (value...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Signature pades with proof.
@Override public ResponseEntity<ESignSanteSignatureReportWithProof> signaturePadesWithProof(final Long idSignConf, final MultipartFile doc, final Long idVerifSignConf, final String requestId, final String proofTag, final String applicantId, final String secret, List<String> signers) { Version wsVersion = DEFAU...
[ "int VerifySignature(CtxtHandle phContext, SspiX.SecBufferDesc2 pMessage, int MessageSeqNo, IntByReference pfQOP);", "eu.olympus.protos.serializer.PabcSerializer.PSsignature getSignature();", "BigInteger getSignature();", "public static void testSignature() {\n\t}", "io.opencannabis.schema.crypto.SignatureO...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void SendMail(Email e) { System.out.println("----"); System.out.println("subject: " + e.getSubject() + "\nbody: " + e.getBody()); }
[ "@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" ] ] } }
Returns a new object of class 'Wizard Page Configuration'.
WizardPageConfiguration createWizardPageConfiguration();
[ "@Override\n\tpublic void addPages() {\n\t\tsuper.addPages();\n\t\tthis.configurationPage = new ConfigurationPage(\"configurationPage\", Messages.SarlExampleInstallerWizard_0); //$NON-NLS-1$\n\t\tthis.configurationPage.setDescription(Messages.SarlExampleInstallerWizard_1);\n\t\taddPage(this.configurationPage);\n\t}...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
public static void main(String[] args) { System.out.println("new run"); //hi bye new line }
[ "@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" ] ] } }
This method returns the formatted date (as a String).
@Handler(id="getFormatedDateTime", input={ @HandlerInput(name="Timestamp", type=String.class, required=true), @HandlerInput(name="AddHour", type=Boolean.class)}, output={ @HandlerOutput(name="Time", type=String.class), @HandlerOutput(name="Date", type=Stri...
[ "public String getDateString() {\n return formatter.format(date);\n }", "public String dateWithFormat(){\n\n\t\tStringBuilder salida = new StringBuilder();\n\t\tsalida.append(this.getDay() + \" de \" + getMonthName(this.getMonth()) + \" de \" + this.getYear());\n\n\t\treturn salida.toString();\n\t}", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
construct a WebResourceConfiguration from the given parameters
public WebResourceConfiguration(Element resourceElement, String resourceNodeName, String className) throws SAXException { this(className); final NodeList initParams = resourceElement.getElementsByTagName("init-param"); for (int i = initParams.getLength() - 1; i >= 0; i--) { ...
[ "public WebConfiguration() {\n jaxbContextBuilder = JaxbContextBuilder\n .builder()\n .processAll(ServiceLoader.load(JaxbContextDataProvider.class));\n }", "ConfigurationWps createConfigurationWps();", "public Resource init() throws ResourceInstantiationException {\n if(configURL == null)\r...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Getter for property interruptibleAbility.
public Ability getInterruptibleAbility() { return (Ability) getValue("Effect.INTERRUPTIBLEABILITY"); }
[ "public double getAbility() {\n\t\treturn mAbility;\n\t}", "java.lang.String getAbility();", "public java.lang.String getAbility() {\n java.lang.Object ref = ability_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void attributeReplaced(HttpSessionBindingEvent arg0) { }
[ "@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" ] ] } }
metodo para que las celdas del jtable sean noeditables
@Override public Class getColumnClass(int columna) { if (columna == 1) return Integer.class; //Le dice al modelo que la primera columna es de tipo integer return String.class; //Si no, es String }
[ "public boolean isTableEditable() {\n\t\treturn false;\n\t}", "public boolean isEditable() {\n\treturn false;\n}", "private void setModoNoEditable() {\n\t\tetNombre.setEnabled(false);\n\t\tetTelefono.setEnabled(false);\n\t\tetWeb.setEnabled(false);\n\t\tetRif.setEnabled(false);\n\t\tetDirFiscal.setEnabled(false...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Funktion um die scores.txt datei auszulesen und als String Array zurueck zu geben.
private String[][] GetFileStream() { String[][] out = new String[scorerows][scorecols]; BufferedReader reader = null; try { reader = new BufferedReader(new FileReader(filePath)); String zeile = null; int row = 0; while ((zeile = reader.rea...
[ "public List<Score> getGameScore() {\n\t\tList<Score> scores = new ArrayList<>();\n\t\tFile file = new File(route() + SCORE_FILE + \".txt\");\n\n\t\tif (file.exists()) {\n\t\t\ttry {\n\t\t\t\tBufferedReader bufferedReader = new BufferedReader(new FileReader(file));\n\t\t\t\tString line = null;\n\t\t\t\tassert line ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This interface specifies a class that can be used to send emails in either HTML, text or mixed formats. It supports embedding files for HTML emails, as well as attachments for either HTML or text emails.
public interface EmailSender { /** * Set the host name (and optional port) of the SMTP through which the email should be relayed. * * @param host SMTP server name and optional port (e.g. "myhost:25") */ void setMailHost(String host); /** * Sets the SMTP port (default is 25). The po...
[ "static MimeMessage mailInlineHtml(Mail mail, MultipartFile html) throws MessagingException {\r\n\r\n MimeMessage message = sender.createMimeMessage();\r\n MimeMessageHelper helper = new MimeMessageHelper(message, true, \"UTF-8\");\r\n\r\n addHeader(helper, mail.getHeader());\r\n addBody...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void keyPressed(KeyEvent e) { }
[ "@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" ] ] } }
Checks if specific date entries exists in database.
public int checkData(String date) { // GET WRITABLE DATABASE SQLiteDatabase db = this.getWritableDatabase(); // DEFAULT ID -1 int id = -1; // DATABASE QUERY TO CHECK IF DATE EXISTS IN DATABASE Cursor query = db.rawQuery("SELECT id FROM " + TABLE_NAME + " WHERE " + DATE + ...
[ "public boolean isExistingPuls(String formatted_date) {\n\n SQLiteDatabase db = this.getWritableDatabase();\n\n String query_check_exist = \"SELECT * FROM puls WHERE date = '\" + formatted_date + \"'\";\n Cursor cursor = db.rawQuery(query_check_exist, null);\n if (cursor.getCount() <= 0)...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Function to calculate inorder recursivly.
final protected void inorder(MyDancerNode n, ArrayList<IDancer> io) { if (n == null) { return; } inorder(n.left, io); io.add(n.getOriginalIDancer()); try { List<MyDancerNode> myDancerNodes = n.getEqualHeightMyDancerNodes(); if (myDancerNodes.s...
[ "void inorder() {\n inorder_Recursive(root);\n }", "void inorder() {\n inorderRec(root);\n }", "public void inorderTraversal() {\r\n\t\tinorderTraversal(root);\r\n\t}", "void inorder() {\n inorderRec(root);\n }", "public void inOrderTraversal_itr_myImpl2(){\n\t\tif (root==null) r...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "ruleEntry" $ANTLR start "entryRuleExit" InternalLevelDesign.g:228:1: entryRuleExit : ruleExit EOF ;
public final void entryRuleExit() throws RecognitionException { try { // InternalLevelDesign.g:229:1: ( ruleExit EOF ) // InternalLevelDesign.g:230:1: ruleExit EOF { before(grammarAccess.getExitRule()); pushFollow(FOLLOW_1); ruleExit(); ...
[ "public final void entryRuleExitEvent() throws RecognitionException {\n try {\n // ../org.yakindu.sct.statechart.expressions.ui/src-gen/org/yakindu/sct/statechart/ui/contentassist/antlr/internal/InternalExpressions.g:1029:1: ( ruleExitEvent EOF )\n // ../org.yakindu.sct.statechart.expre...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Run the void setParticipants(List) method test.
@Test public void testSetParticipants_fixture1_10() throws Exception { JoinAckMsg fixture = getFixture1(); Vector<ParticipantInfo> participants = new Vector<ParticipantInfo>(); participants.add(new ParticipantInfo(0, "")); participants.add(new ParticipantInfo(1, "0123456789")); fixture.setParticipants(par...
[ "public void setParticipantList(ArrayList<Person> personList) {\n this.participantList.setPersons(personList);\n }", "public void setParticipants(entity.AgreementParticipant[] value) {\n __getInternalInterface().setFieldValue(PARTICIPANTS_PROP.get(), value);\n }", "public void setParticipantes...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional string scdmtpname = 2;
boolean hasScdmtpname();
[ "public void setTpname(String tpname) {\n \n \t\tdefaultConnectionRequestInfo.setProperty(DestinationDataProvider.JCO_TPNAME, tpname);\n \t}", "public void setSendingmsisdn(java.lang.String param){\n \n this.localSendingmsisdn=param;\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This function validate the user secret answers.
public boolean validateAnswers(Map<String, Object> paramMap);
[ "private boolean isValidAnswer(TestTutorialQuestionAns tQuestionAns) {\r\n\r\n\t\tlog.debug(\"\"+tQuestionAns.getQuestionAnsId()+ \" right ans:\" + tQuestionAns.getQuestionCorrectAnswer()\t\t\t\t+ \" user answer: \" + tQuestionAns.getExamineeAns());\r\n\r\n\t\tif ((tQuestionAns.getQuestionCorrectAnswer() != null &...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the effective user ID.
long geteuid();
[ "public int getUserID() {\n return prvPref.getInt(\"USER_ID\", 0);\n }", "public int getUserId() {\n SharedPreferences sharedPreferences = mCtx.getSharedPreferences(SHARED_PREF_NAME, Context.MODE_PRIVATE);\n return sharedPreferences.getInt(KEY_USER_ID, 0);\n }", "public int getIdUser(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
You don't have to define private double calculateSD(double numArray[]) and private double calculateMean(double numArray[]) If you are using princeton package.
private double calculateSD(double numArray[]) { double sum = 0.0, standardDeviation = 0.0; for (double num : numArray) { sum += num; } double mean = sum / noOfTrials; for (double num : numArray) { standardDeviation += Math.pow(num - mean, 2); } ...
[ "private void calculateSD() {\n\t\tdouble sdTotal = 0;\n\t\t\n\t\tfor (int calSDIndex = 0; calSDIndex < rssi_list.size(); calSDIndex++) {\n\t\t\tsdTotal = sdTotal\n\t\t\t\t\t+ (Math.pow((rssi_list.get(calSDIndex) - avg), 2));\n\t\t}\n\t\t\n\t\tstandarDeviation = Math.sqrt((sdTotal / (rssi_list.size() - 1)));\n\t}",...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a temporary file in the default temporaryfile directory. Unlike the similarlynamed method in File, this method adds a shutdown hook to delete the file, always uses the suffix ".tmp", and will create files of arbitrary size. The content of the file will be undefined.
public static File createTempFile(String prefix, long size) throws IOException { File file = File.createTempFile(prefix, null); file.deleteOnExit(); // there's no need to do anything else for an empty file if (size == 0L) return file; RandomAccessFile raf = ...
[ "public static File createTemporaryFile() {\n return createTemporaryFile(\"\");\n }", "public File createTempFile() {\r\n\t\tFile file;\r\n\t\ttry {\r\n\t\t\tfile = File.createTempFile(\"tmp\", TEMP_FILE_SUFFIX);\r\n\t\t} catch (IOException e) {\r\n\t\t\tthrow new RuntimeException(\"Unable to create tem...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns a list with n values generated by the given operator starting from an initial value.
public static <T> List<T> iterate(int n, T first, UnaryOperator<T> next) { List<T> result = new LinkedList<T>(); T nextElem = first; result.add(first); for (int i = 1; i < n; i++) { nextElem = next.apply(nextElem); result.add(nextElem); } return result; }
[ "Operator(int n) {\n super(n);\n }", "static ArrayList<Pair> orbit (Pair start, int n)\n\t{\n\t\tArrayList<Pair> result = new ArrayList<Pair>();\n\t\t\n\t\tPair repeater = new Pair(0,0);\n\t\tresult.add(repeater); // add point (0,0)\n\t\tn--;\n\t\t\n\t\twhile (n != 0)\n\t\t{\n\t\t\trepeater = P(start, r...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
BoolPrimary bprimary; inherited from PrimaryItem
SingleBoolPrimaryItem(BoolPrimary p) { bprimary = p; }
[ "public void setPrimary(boolean primary) {\r\n this.primary = primary;\r\n }", "public boolean isPrimary() {\n/* 73 */ return this.primary;\n/* */ }", "public Boolean getIsPrimary() {\n return this.isPrimary;\n }", "public boolean isPrimary() \n{\nObject oo = get_Value(\"IsPrimary...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
called before request is started
@Override public void onStart() { }
[ "@Override\n public void beforeRequestHook() {\n }", "@Override\n public void onStart() {\n request(2);\n }", "public void onRequestStart(HttpServletRequest request, HttpServletResponse response) {}", "@Override\n\tpublic void onRequestStart(String reqId) {\n\n\t}", "private v...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/Vet vet = (Vet) sessionFactory.getCurrentSession().get(Vet.class, id); Hibernate.initialize(vet.getSpecialties()); return vet;
@Override public Vet loadVet(long id) { return (Vet) sessionFactory .getCurrentSession() .createQuery( "select new com.gg.example.springExample.model.Vet(id, firstName,lastName) FROM Vet where id = ?") .setP...
[ "private void bootstrapVets() {\n\n Specialty radiology = new Specialty();\n radiology.setDescription(\"radiology\");\n radiology = specialtyService.save(radiology);\n\n Specialty surgery = new Specialty();\n surgery.setDescription(\"surgery\");\n surgery = specialtyService...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Dump this item and subitems. Derived classes can override to show more detail.
final private void dump(final PrintStream out, final String indent) { dump_item(out, indent); final String next_indent = indent + " "; for (TreeItem child : children) child.dump(out, next_indent); }
[ "@Override\n public String toString () {\n return item.toString();\n }", "@Override\n public String toString() {\n return \"{\" + item + \"}\";\n }", "@Override\r\n\tpublic String toString()\r\n\t{\r\n\t\treturn itemID + \",\" + auctionName + \",\" + startBid + \",\" + ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override protected Void doInBackground() throws Exception { animate.repaint(); animate.validate(); validate(); getContentPane(); for(int ii=0;ii<(int)(Integer.parseInt(stop.getText())-Integer.parseInt(start.getText()));ii++) { int range, a; range = Integer.parseIn...
[ "@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" ] ] } }
Get Updated. Date this record was updated
public Timestamp getUpdated();
[ "public Date getUpdated()\r\n {\r\n return updated;\r\n }", "DateTime getUpdated();", "public java.sql.Timestamp getUpdateDate() {\n return dto.getUpdateDate();\n }", "public Date getUpdateDate() {\n\t\treturn this.UpdateDate;\n\t}", "public Date getUpdate() {\n return this.update;\n }", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public boolean scrolled(int amount) { return false; }
[ "@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" ] ] } }
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jPImprimeQrCode = new unibaveopencode.gui.panel.screens.JPImprimeQrCode(); setClosable(true); setIconifiable(true); setTitle(...
[ "public StForm() {\n initComponents();\n }", "public CineForm() {\n initComponents();\n }", "public javaform() {\n initComponents();\n }", "public EditDemographicForm() {\n initComponents();\n }", "public FightForm() {\n initComponents();\n }", "public For...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ renamed from: a
public final void mo4498a(int i, int i2, int i3, String str, C1929q c1929q, byte[] bArr) { AppMethodBeat.m2504i(55365); C4990ab.m7410d("MicroMsg.NetSceneLbsP", "onGYNetEnd errType:" + i2 + " errCode:" + i3); aya aya = (aya) ((C7472b) c1929q).fsH.fsP; ArrayList arrayList = new ArrayList(...
[ "public interface C3511a {\n /* renamed from: a */\n void mo29057a(int i);\n }", "interface C4511c {\n /* renamed from: a */\n void mo29775a();\n }", "public interface ans {\n /* renamed from: a */\n void mo1174a();\n}", "public interface C24712af {\n /* renamed from...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method for adding a GridBarriers into the Grid. The position the barrier will be stored at is GridBarriers position. This method is package protected because it acts as a helper method for the addBarrier(E barrier) method and should not run outside of the class. This method does not need to check if the GridBarrier's P...
void _addBarrier(GridBarrier barrier) { Point2D position = barrier.getPosition(); barriers[(int)position.getX()][(int)position.getY()].add(barrier); }
[ "public RoundBarriersImpl(final List<Barrier> barriers, final Graph<Coordinate> graph) {\n super();\n this.barriers = barriers;\n this.graph = graph;\n }", "void setBarrier(BarrierManager barrier);", "public void barrier(){\n if (this.iAmCoordinator()) {\n this.waitForA...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Use ServiceReqMessage.newBuilder() to construct.
private ServiceReqMessage(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); }
[ "private EvmContractCallReq(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "ServiceRequest getServiceRequest(ServiceToken serviceToken);", "private EvmContractCreateReq(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "p...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Constructs a pattern where first and last proteins are related through an interaction. They can be participants or controllers. No limitation.
public static Pattern neighborOf() { Pattern p = new Pattern(ProteinReference.class, "Protein 1"); p.add(erToPE(), "Protein 1", "SPE1"); p.add(notGeneric(), "SPE1"); p.add(linkToComplex(), "SPE1", "PE1"); p.add(peToInter(), "PE1", "Inter"); p.add(interToPE(), "Inter", "PE2"); p.add(linkToSimple(), "PE2",...
[ "private void createComplexFlow() {\n engine.getRepositoryService().createDeployment() //\n .addModelInstance(\"order.bpmn\", Bpmn.createProcess(\"order\").executable() //\n .startEvent()\n .serviceTask().name(\"A\")\n .parallelGateway(\"fork1\")\n .serviceTask().name(\"B\")\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
bytes signature = 1;
com.google.protobuf.ByteString getSignature();
[ "BigInteger getSignature();", "eu.olympus.protos.serializer.PabcSerializer.PSsignature getSignature();", "public byte[] getSignature() {\n \t\treturn signature;\n \t}", "public static void testSignature() {\n\t}", "Element[] generateSignature(byte[] message);", "int getSignatureResult();", "io.opencanna...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test of getDescription method, of class Role.
@Test public void testGetDescription() { System.out.println("getDescription"); Role instance = new Role(); String expResult = ""; String result = instance.getDescription(); assertEquals(expResult, result); // TODO review the generated test code and remove the default ...
[ "@Test\r\n public void testGetDescription() {\r\n System.out.println(\"getDescription\");\r\n String expResult = \"somos uma empresa\";\r\n String result = a.getDescription();\r\n assertEquals(expResult, result);\r\n \r\n }", "@NotNull String getDescription();", "@Test\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
In this method, we did`t specify the given status param. IN THIS METHOD WE ONLY SPECIFY THE USER_ID IS CURRENT LOGIN USER_ID. So, you can add as many where conditions as you want.
public synchronized List<T> get(String whereSQL, String[] whereArgs, String orderSQL) { Cursor cursor = null; List<T> models; SQLiteDatabase database = getWritableDatabase(); try { cursor = database.rawQuery(" SELECT * FROM " + tableName + " WHERE " + Base...
[ "public List<User> getUserBySeachCriteria(int userId,int userStatus,String searchValue);", "@RequestMapping(value = \"/user/{userId}\", method = RequestMethod.GET)\n public Iterable<Allowance> getAllByStatusAndUser(@PathVariable Long userId,\n @RequestParam(v...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Updates the cache params (constraints) if enough time has passed since the last update.
private synchronized void maybeUpdateCacheParams() { if (mLastCacheParamsCheck + mMemoryCacheParams.paramsCheckIntervalMs > SystemClock.uptimeMillis()) { return; } mLastCacheParamsCheck = SystemClock.uptimeMillis(); mMemoryCacheParams = Preconditions.checkNotNull( mMemo...
[ "@Override\n protected void updateCache() {\n\n }", "private void adaptCacheSize() {\r\n \r\n if (!editing\r\n && !memoryCheck()\r\n && !isEmpty()) {\r\n adaptCacheSizeSynchronized();\r\n }\r\n \r\n }", "public void update() {...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Read an array from an HLA object. Create the POJO that will store data, and return this POJO
protected Object getArrayObject(ArrayType migArrayType, Class<?> pojoArrayClass, DataElement hlaObjectData, String fomDataTypeName) throws ArrayIndexOutOfBoundsException, IllegalArgumentException, ClassNotFoundException, NoSuchFieldException, SecurityException, IllegalAccessException, NoSuchMeth...
[ "private Array readObject(EntryHeader header) throws IOException {\n String className = readAsAscii(readTagWithExpectedType(Int8));\n return readStructOrObject(header, className);\n }", "public DataArray create();", "public Object getObject() {\n try {\n ByteArrayInputStream i...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the resulution unit for this image
public char getResolutionUnit () { return resolutionUnit[0]; }
[ "public int getResolution() {\n return mResolution;\n }", "public double getResolution() {\n return resolution;\n }", "java.lang.String getAreaRes();", "public Dimension getPixelResolution()\n {\n return baseConfiguration.getPixelResolution();\n }", "@Override\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column CRUD_ITEM.CRUD_DEF_ID
public void setCrudDefId(Long crudDefId) { this.crudDefId = crudDefId; }
[ "public void setDefKey(String defKey) {\r\n\t\tthis.defKey = defKey;\r\n\t}", "public void setPk_defdoc(java.lang.String pk_defdoc) {\r\n this.pk_defdoc = pk_defdoc;\r\n }", "public void xsetDef(org.openxmlformats.schemas.drawingml.x2006.main.STGuid def)\n {\n synchronized (monitor())\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates new instance and straing it into memory.
private Text(byte[] data, int pos, int len) { this.chars = data; this.pos = pos; this.len = len; }
[ "private Sail createSimpleMemorySail(){\n return new MemoryStore();\n }", "T createNewInstance();", "public void create() { }", "protected MainMemory() { }", "public Memory() {\n initialize();\n }", "public static void createInstance() {\n instance = new ReverseStartRepository()...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
decode column object from bytes
public Column entryToObject(TupleInput ti) { int n; Column col = new Column(); col.setName(ti.readString()); col.setOrd(ti.readInt()); col.setType(ti.readInt()); col.setLength(ti.readInt()); col.setNotNull(ti.readBoolean()); col.setPrimary(ti.readBoolean()); col.setForeign(ti.readBo...
[ "public static Row fromByteBuffer(\n java.nio.ByteBuffer b) throws java.io.IOException {\n return DECODER.decode(b);\n }", "public Object ParseRecordColumn(byte[] rec, int wantedCol) throws Exception {\n\t\tint start = fielddef[wantedCol].fieldstart;\n\t\tint len = fielddef[wantedCol].fieldlen;\n\t\tint ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method corresponds to the database table m_prj_risk
int deleteByPrimaryKey(Integer id);
[ "public Integer getRiskId() {\r\n return riskId;\r\n }", "public Risk risk() {\n return this.risk;\n }", "@Select({\n\t\t\t\"select\",\n\t\t\t\"id, voltageRankClassifyId, year, projectNum, lineProject, powerProject, assessLineProject, \",\n\t\t\t\"assessPowerProject, lineLength, volume, inve...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ renamed from: a
void mo15527a(Bundle bundle, int i);
[ "public interface C3511a {\n /* renamed from: a */\n void mo29057a(int i);\n }", "interface C4511c {\n /* renamed from: a */\n void mo29775a();\n }", "public interface ans {\n /* renamed from: a */\n void mo1174a();\n}", "public interface C24712af {\n /* renamed from...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override //Just check whether the two nodes are equal public int compareTo(WDTreeNode o) { if(this.getWords() == null || o.getWords() == null) { System.out.println("The Node contains no word!"); return 1; } else{ if(this.getWords().get(0).equals(o.getWords().get(0))){ return 0; } else { retur...
[ "@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" ] ] } }
Entity/variable add/change/remove methods public void beforeEntityAdded(EntityDescriptor entityDescriptor, Object entity) // Do nothing
@Override public void afterEntityAdded(EntityDescriptor<Solution_> entityDescriptor, Object entity) { if (entity == null) { throw new IllegalArgumentException("The entity (" + entity + ") cannot be added to the ScoreDirector."); } if (!getSolutionDescriptor().hasEntityDescriptor(...
[ "protected void preModify(@SuppressWarnings(\"unused\") T entity) {\n\t}", "@Override\n\tpublic void beforeUpdate(ContatoInstituicao entity) {\n\t\t\n\t}", "public void entityAdded(boolean local, Entity entity);", "@Override\n\tprotected void updateEntityBeforeSave(final Entity entity) {\n\t\tif (entity insta...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Delete a specific task
void deleteTask(String id);
[ "void removeTask(int taskID);", "Object deleteTask(int id);", "public boolean deleteTask(int idTask) throws SQLException;", "@After(order = eleventh, value = \"@deleteTask\")\n public void deleteTask() throws GeneralSecurityException, IOException, DecoderException {\n taskApi = new TaskApi(context.g...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Print formatted text on screen at given offset with given color
public void printFormattedText(String text, int offset, int color) { // check if string is empty if (TextUtils.isEmpty(text)) { return; } int textIndex = 0; int lineStartOffset = offset; boolean reverseEnabled = false; try { while (textI...
[ "public void printWithColors() {\n PrintStream o = System.out;\n String[] vs = this.colorizedChunks();\n if (vs == null) {\n return;\n }\n o.printf(\" %s\\n\", vs[0]);\n o.printf(\" %s\\n\", vs[1]);\n }", "public void showPtWithText(myPoint P, double r, ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
public static void main(String[] args) { String s="abcdefg"+"\\0"; System.out.println(s); System.out.println(reverse(s)); }
[ "@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" ] ] } }
Sanity checking method. Calls other sanity checking methods and returns true. Uses assert on other sanity checking methods, so this will fail if one of them fails. Called through assert, so this should not impact the performance of production code.
private boolean saneQueue() { assert headAndTailGood(); assert checkHeadToTail(); assert checkTailToHead(); return true; }
[ "protected void sanityCheck() {\n\t\t// do nothing\n\t}", "abstract protected void assertRequisites() throws Exception;", "private static void sanityCheck() {\n\tfor (Gate i: gates) i.checkSanity();\n\t// Bug: Are there any sensible sanity checks on wires?\n }", "public void sanityCheck() {\n\t\tif (DEBUG)...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Performs the merge between the slaveTree passed in and the master tree. The merge will base on the merging algorithm. Attach algorithm here!!!
public void mergeDtdTree( PSDtdTree slaveTree ) { if ( null == slaveTree || null == slaveTree.getRoot() ) return; try { slaveTree = (PSDtdTree)slaveTree.clone(); } catch ( CloneNotSupportedException e ) { /* ignore, won't happen unless interface changes */ } ...
[ "public void updateMergeToMasterArray(){\n\t\tfor(int i = 0; i < arrayQ0.length; i++){\r\n\t\t\tfor(int j = 0; j < arrayQ0[i].length; j++){\r\n\t\t\t\tmasterArray[i][j] = arrayQ0[i][j];\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor(int i = 0; i < arrayQ1.length; i++){\r\n\t\t\tfor(int j = 3; j < arrayQ1[i].length + 3; j++){\r\n\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ access modifiers changed from: private / renamed from: c
public void mo21373b(int i) { GiftPage giftPage; if (this.f22527C != i) { Iterator it = this.f22525A.iterator(); while (true) { if (!it.hasNext()) { giftPage = null; break; } giftPage = (GiftP...
[ "protected void method_5557() {}", "protected void c() {\n\n\t}", "@Override\n\tpublic void c() {\n\t\t\n\t}", "public void mo26342c() {\n }", "@Override\r\n\tvoid c() {\n\t\t\r\n\t}", "public void mo5203c() {\n }", "public abstract void mo30462c();", "private B000066...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
stores the mementos Generates a data structure to hold memento objects in the constructor.
public UndoCaretaker(){ this.mementos = new ArrayList<Memento>(); }
[ "public void criarMemento() {\n\n Memento memento = new Memento(UtilsSerializacao.serializar(restauravel));\n stackMementos.push(memento);\n\n }", "public Memento memento ()\n {\n return Memento.makeMemento(this, GameState.getGameState());\n }", "@Override\n\tpublic void saveMemos() {\n\t\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void writeCatalogUnit(Catalog catalog) { }
[ "@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" ] ] } }
method to read all records
public List<ProjectInfo> readAll() { TypedQuery<ProjectInfo> query = manager.createQuery("SELECT e FROM ProjectInfo e", ProjectInfo.class); List<ProjectInfo> result = query.getResultList(); return result; }
[ "@Override\r\n\tpublic List<PatientRecord> getAllRecords() {\n\t\tSystem.out.println(\"2\");\r\n\t\treturn recorddao.getAllRecords();\r\n\t}", "private void read_records(long begin_record_no, int records_count) throws Exception\r\n {\r\n table_def.read_records(\r\n record_data,\r\n response...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create some layout params
@Override public Object instantiateItem(ViewGroup container, int position) { RelativeLayout.LayoutParams layoutParams = new RelativeLayout.LayoutParams( RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT); layoutPara...
[ "protected LayoutParams generateLayoutParams(android.view.ViewGroup.LayoutParams layoutParams) {\n return new LayoutParams(layoutParams);\n }", "private void initParam() {\n if ((getResources().getConfiguration().screenLayout & Configuration.SCREENLAYOUT_SIZE_MASK) == Configuration.SCREENLAYOUT_S...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
.charlotte.HetconsBlock hetconsBlock = 4;
public boolean hasHetconsBlock() { return blocktypeOneofCase_ == 4; }
[ "public BlockTFCastleBlock()\n {\n super(Material.rock);\n this.setHardness(100F);\n this.setResistance(15F);\n this.setStepSound(Block.soundTypeStone);\n\t\tthis.setCreativeTab(TFItems.creativeTab);\n\n }", "BoardBlock(){}", "public void getNewBlock()\r\n\t{\r\n\t\tnextBlock =...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
GET: update critic to include eventId
@GetMapping("/api/event/{eid}/critic/{cid}") public void addEventToCritic(@PathVariable("eid") int eid, @PathVariable("cid") int cid) { criticDao.addEventToCritic(eid, cid); }
[ "public void setEventId(Long eventId) {\r\n this.eventId = eventId;\r\n }", "EventResponse getEvent(String eventId) throws DataAccessException;", "@JsonProperty(\"eventId\")\r\n public void setEventId(String eventId) {\r\n this.eventId = eventId;\r\n }", "public String updateEvent(){\r\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by Apache iBATIS ibator. This method corresponds to the database table t_socialevent
int updateByExample(TSocialevent record, TSocialeventExample example);
[ "void addNewEvent(String eventType, String kindOfSport, String description, String firstCompetitor, String secondCompetitor, String dateTime) throws DAOException;", "int IEE_MentalCommandEventGetType(Pointer hEvent);", "private F907071_SubscribedEvents()\n {\n super(TABLE_NAME);\n }", "com.exactt...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Where to look next for symbols;
public Scope getEnclosingScope();
[ "public abstract String startSymbol();", "void getSymbol();", "public String startSymbol();", "private SymbolChar() {}", "public String getStartingSymbol() {\r\n \t\treturn startingSymbol;\r\n \t}", "protected webit.script.core.java_cup.runtime.Symbol scan()\r\n throws Exception\r\n {\r\n return ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Determines whether this AggregateFunction is in use.
public boolean isInUse();
[ "public boolean isInUse()\r\n\t{\r\n\t\treturn this.bIsInUse;\r\n\t}", "public boolean isInUse() {\n return inUse;\n }", "boolean hasUsage();", "public boolean hasUsage() {\n return usage_ != null;\n }", "public boolean hasUsage() {\n return usageBuilder_ != null || usage_ != null;\n }...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This function calls the init and drawHTree function and draws the required figure
public static void main(String[] args) { if (args.length < 1) { System.out.println("Usage: java HTree #"); } int depth=Integer.valueOf(args[0]); if(depth<0){ System.out.println("The depth must be greater than or equal to 0"); } init(MAX_SEGMENT_LEN...
[ "protected void paint() {\n Point2D p1 = new Point2D(getWidth() / 3, getHeight() / 10 * 3);\n Point2D p2 = new Point2D(getWidth() / 3, getHeight() * 0.7);\n Point2D p3 = new Point2D(getWidth() / 3 * 2, getHeight() / 10 * 3);\n Point2D p4 = new Point2D(getWidth() / 3 * 2, ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Loads the tab configurations from the save file.
public List<Map<String, ChatTab>> loadState() { final List<Map<String, ChatTab>> tabResults = new ArrayList<>(); try { FileUtil.readLineStorage(saveFile, new TabBuilder(tabResults), new TabVersionConverter()); } catch (final IOException e) { DebugUtil.recoverableError(e);...
[ "public void load() {\n ConfigDaten p2 = null;\n ObjectInputStream ois = null;\n try {\n new FileInputStream(getFilesDir()+\"/datasave\" );\n } catch (FileNotFoundException e) {\n save();\n }\n\n try {\n System.out.println(new FileInputStrea...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Paints the selected node
public void paintPick(Graphics2D g) { Node n = pick; g.setPaint(n.getColor()); int x = (int) n.getX() - correct; int y = (int) n.getY() - correct; Shape shape = PaintTools.getShape(n.getShape(), x, y, nodeSize); g.fill(shape); g.setPaint(Color.black); if (n.isFixed()) g.setPaint(Color.yellow); g.dr...
[ "public void select(NodeView node);", "@Override\n\tpublic void draw(@NotNull Document p) {\n\t\tif (hovering) p.fill(140, 245, 256, opacity);\n\t\t\t// If the node is an anchor, fill it with a darker ble\n\t\telse if (anchor) p.fill(85, 205, 244, opacity);\n\t\t\t// Otherwise, fill it with white.\n\t\telse p.fil...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
a method that will set the status
public void setBackground_Status(String background_Status) { this.background_Status = background_Status; }
[ "private void setStatus(boolean value){\n this.status = value;\n }", "boolean setStatus(Status newStatus);", "public void setStatus(int status)\n/* */ {\n/* 194 */ this.status = status;\n/* */ }", "public void setStatus(String status){\n this.status=status;\n }", "private void ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
IfTest01 it = new IfTest01(); it.testIf();
public static void main(String[] args) { IfTest02 it = new IfTest02(); //it.test(); //it.test2(); //it.test3(); IfTest03 it3 = new IfTest03(); //it3.test(); it3.test3(); }
[ "public static void main(String[] args) {\n\t\t\n\t\tIfTest03 test = new IfTest03();\n\t\t\n\t\ttest.testIfElseIf2();\n\t}", "public interface TestIf {\n\n void show();\n\n void result();\n\n}", "public void testIt() {\n\t}", "public void test(){\r\n\t}", "public void getTest() {\n\t}", "public void...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ access modifiers changed from: protected
@WorkerThread @VisibleForTesting public final void zzfp() { zzq(); zzad(zzz().currentTimeMillis()); }
[ "@Override\n }", "protected void method_5557() {}", "@Override\n public void extornar() {\n \n }", "@Override\r\n public void publicando() {\n }", "@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}", "pro...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Fonction de la gestion du menu
public void circulationMenu() { // initialisation des variables qui vont servir à la récupération de données de // la console String c = ""; BufferedReader entree = new BufferedReader(new InputStreamReader(System.in)); // affichage du menu af.menu(); try { // récupération du choix tapé System.out...
[ "public void buildMenu();", "protected abstract void buildMenu();", "private void addMenu() {\r\n\t\tadd(menuFile);\r\n\t\tadd(menuEdit);\r\n\t\tadd(menuCamera);\r\n\t\tadd(menuHelp);\r\n\t}", "private static void menu() {\n\t\t\r\n\t\tItemMainMenu.setHeader(\"Campus Online Auction Shop\");\r\n\t\tSystem.out....
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public Volaille rendreP() { 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" ] ] } }
end filterText information about classifier and evaluation
public static StringBuffer printClassifierAndEvaluation(Classifier thisClassifier, Evaluation thisEvaluation) { StringBuffer result = new StringBuffer(); try { result.append("\n\nINFORMATION ABOUT THE CLASSIFIER AND EVALUATION:\n"); result.append("\nclassifier.toString():\n" + thisClassifier.toString() + "\...
[ "public void preProcess() throws Exception {\r\n\t\tfilter1= new StringToWordVector();\r\n\t\tfilter2= new AttributeSelection();\r\n\t\tfilter1.setAttributeIndices(\"first-last\");\r\n\t\tfilter1.setWordsToKeep(10000);\r\n\t\tfilter1.setPeriodicPruning(-1.0);\r\n\t\tfilter1.setOutputWordCounts(true);\r\n\t\tfilter1...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Handles collisions between pieces
private void handleCollisions() { for (int i = 0; i < player1.getStartingNumOfPieces(); i++) { for (int j = 0; j < player2.getStartingNumOfPieces(); j++) { // player 1 collision with player 1 if (player1.pieceExists(i) && player1.pieceExists(j) && player1.getPieceLocation(i) == player1.getPieceLocation(j) ...
[ "private void collision() {\n\n for (GameObject tempObject : overworldHandler.getObjects()) {\n\n if (tempObject instanceof Block) {\n\n if (getLeftBounds().intersects(tempObject.getBounds())) {\n\n x = (tempObject.getX() + 32);\n\n\n }\n\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get all available recipes.
public List<Recipe> getRecipes() throws IOException { //the base element in the response from the server is an array Type recipesCollectionType = new TypeToken<Collection<Recipe>>(){}.getType(); String jsonResponse = client.get(BASE_URL); List<Recipe> recipes; try { ...
[ "public List<Recipe> findAllRecipes(){\n return this.rRepo.findAll();\n }", "public List<Recipe> getAllRecipes()\n {\n // Create a list of recipes\n List<Recipe> recipes = new ArrayList<>();\n\n // This String query will return all the recipes\n String selectQuery = \"SELE...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Translates block data into a "Hot or Not" result.
private String translate(Material type) { switch (type) { case STONE: return "Stone Cold"; case MAGMA_BLOCK: return "HOT!!!"; case LIGHT_GRAY_WOOL: return "Not"; case GRAY_WOOL: return "Average"; ...
[ "public boolean onPlayerDestroyBlock(int par1, int par2, int par3, int par4)\n {\n if (this.getCurrentGameType().isAdventure() && !this.mc.thePlayer.canCurrentToolHarvestBlock(par1, par2, par3))\n {\n return false;\n }\n else if (this.getBlockHitDelay() > 0 && !this.getCurr...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get subject details by Id
@Override public Subject getSubjectById(int id) { return subjectRepository.findById(id).orElse(null); }
[ "@Override\n\tpublic Subject getSubject(long id) throws SubjectNotFoundException {\n\t\treturn null;\n\t}", "@Override\n\tpublic Subject selectByPrimaryKey(Integer id) {\n\t\treturn subjectMapper.selectByPrimaryKey(id);\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\tpublic ErmResourcesSubject getSubject(String r...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Retrieves the feature from the underlying datasource and encodes them the MVT PBF format.
public void encode( final OutputStream out, double smallGeometryThreshold, Map<Integer, Double> genFactors, double fallBackGen) throws IOException { int zoomLevel = getZoomLevel(this.mapContent.getScaleDenominator()); double genFactor; ...
[ "public java.lang.String getFeature() {\n java.lang.Object ref = feature_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toSt...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public List<DepartmentInfoBean> queryAllSource() throws Exception { 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" ] ] } }
Determines if the expression evaluates to a random value.
@Override public boolean isRandom() { return false; }
[ "private boolean randBit(){\n\tdouble r = Math.random();\n\tboolean ans = false; \n\tif(r > 0.50d){\n\t ans = true;\n\t}\n\treturn ans;\n }", "public static boolean randomBoolean() {\n\t\tboolean internal_random =false;\n\t\tinternal_random= RANDOM.nextBoolean();\n\t\treturn internal_random;\n\t}", "publi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set new payload. The input string will be converted to an array of bytes with the encoding specified.
public synchronized void setMessage(String newMessage, Charset encoding) { setPayload(newMessage.getBytes(encoding)); }
[ "void setPayload(ByteBuffer payload);", "public void setPayload(byte[] value) {\n this.payload = ((byte[]) value);\n }", "protected void parsePayload(byte[] payload) {\n if (null == payload)\n return;\n int idx = 0;\n int nstr = payload[idx++];\n if (nstr > 0) {\n m_stringPayload...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Empty constructor for JPA.
protected GlobalSurvey(){ }
[ "public PersonJpa() {\n }", "protected AidaEntity() {/* intentionally empty block */}", "public Entity()\n {\n \n }", "public ClinicalFindingEntityImpl() {\n\t\t// empty constructor for persistence\n\t}", "public PersonEntity() {\n }", "public QueryImpl() {\n }", "public EnqueteMo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a TaskList from a List of Tasks.
public TaskList(List<Task> list) { this.list = list; }
[ "public TaskList(List<Task> tasks) {\n assert tasks != null : \"list to be assigned to the Task List can't be null!\";\n this.tasks = tasks;\n }", "public TaskList(ArrayList<Task> tasks) {\n this.TASKS = tasks;\n }", "public TaskList(List<Task> tasks) {\n this.allTasks = new Ar...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the tiles covering this interval
public CloseableIterator<Alignment> query(String sequence, int start, int end, List<AlignmentCounts> counts, int maxReadDepth, Map<String, PEStats> peStats) { int startTile = (start + 1) / getTileSize(sequence); int endTile = end / getTileSize(sequence); ...
[ "private void findInterestingRanges() {\n \n \t\tint nx = (int)Math.ceil(orig.w / (double)TILEX);\n \t\tint ny = (int)Math.ceil(orig.h / (double)TILEY);\n \t\tint nz = (int)Math.ceil(orig.d / (double)TILEZ);\n \n System.out.println(\"nx = \" + nx);\n System.out.println(\"ny = \" + ny);\n System.out.println(\"nz = \...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
A safe way to get an instance of the Camera object.
public static Camera getCameraInstance(){ Camera c = null; try { c = Camera.open(); } catch (Exception e){ } return c; }
[ "private static Camera getCameraInstance() {\n Camera c = null;\n try {\n c = Camera.open(); // attempt to get a Camera instance\n }\n catch (Exception e){\n // Camera is not available (in use or does not exist)\n }\n return c; // returns null if camer...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns TRUE when page is loaded and Logo is visible
public boolean isPageTitleVisible() { return elementExistsByXpath(LOGO_FRENCH); }
[ "boolean hasShowLogo();", "public boolean isMainPageDisplayed() {\n waitForPageLoaded();\n waitForElementToBeDisplayed(mainLogo);\n return mainLogo.isDisplayed();\n }", "public boolean display() {\n\treturn logo.isDisplayed();\n}", "boolean getShowLogo();", "public boolean validateAm...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Checks if is nsar.
public boolean isNsar() { return isNsar; }
[ "public abstract boolean isNTA();", "private boolean hasNamespace(String uri) {\n return (uri != null && uri.length() > 0);\n }", "boolean isNsExcluded(String ns);", "boolean hasNnarWrite();", "boolean isNilTrsamt();", "@java.lang.Override\n public boolean hasNnarInternalValue() {\n re...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Important: Can delete Student at any position in the doubly linkedlist given the Student Name. This method gets a String value (name) of student to be deleted from the list.
public void deleteByName(String value) { if (isEmpty()) { System.out.println("List is Empty. Can't delete " + value); return; } else { ListNode newNode = head; while (newNode != null) { if (newNode.getStudent().getStudentName().equals(value)) { if (newNode == head) { System.out.println(...
[ "public void deleteStudent(String lastName){\n Student student = StudList.findByName( lastName, StudList.students);\n if(student != null){\n students.remove(student);\n \n } else\n System.out.println(\"No student exist with the last name > \" + lastName);\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Param. Constructor Used when wanting to upload existing data from a text file
public Student (String studentName, double studentGPA, int unitsTaken, double gradePoints) { this.studentName = studentName; this.studentGPA = studentGPA; this.unitsTaken = unitsTaken; this.gradePoints = gradePoints; }
[ "private File() {\n initFields();\n }", "public FileIO(String fileIn)\r\n\t{\r\n\t\tfile = fileIn;\r\n\t}", "public TextFile(Path file, List<String> content) {\r\n\t\tthis.file = file;\r\n\t\tthis.content = content;\r\n\t}", "public FileField() {\n super();\n }", "public FileW(/*String...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets (as xml) the "name" element
public org.apache.xmlbeans.XmlString xgetName() { synchronized (monitor()) { check_orphaned(); org.apache.xmlbeans.XmlString target = null; target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(NAME$2, 0); return target; ...
[ "public java.lang.String getXMLName()\r\r\n {\r\r\n return xmlName;\r\r\n }", "public String getName()\n {\n return this.elem.getAttribute(\"name\");\n }", "@XmlElement(name = \"title\")\n public String getName() {\n return name;\n }", "@XmlAttribute\n\tpubli...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Metoda wypisujaca dane o figurze
void wypiszDane();
[ "@Override\n public double hitungKeliling(){\n return 4*sisi;//rumus keliling persegi\n }", "@Override\r\n\tpublic void wydaj() {\n\t\t\r\n\t}", "protected abstract void zeichne ();", "public void bilgilendirme() {\n // 6. adimda yazdirmamizi istedi\n\t\tSystem.out.println(\"isim: \" + this.is...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The standard list filter.
public List setFilter(java.lang.String filter) { this.filter = filter; return this; }
[ "public abstract void restrictList(FilterImpl f, List<PropertyValue> list);", "public abstract AttributedList list(Comparator comparator, Filter filter);", "public void filter() {\r\n\t\tif (filter == null || filterStyle == null) {\r\n\t\t\tCollections.copy(filteredList, expenseList);\r\n\t\t\treturn;\r\n\t\t}\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Notifies all view observers that an UNDO was requested in the GameScreen UI.
void notifyObserversOfUndoMoveRequest();
[ "public void removeObserver() {\n\t}", "public synchronized void fireScreenCleaned(){\n listeners.forEach(PlaneUpdateListener::fireScreenCleaned);\n }", "void removeObserver();", "@Override\n public void beforeHide()\n {\n if (linkClickedObserver != null)\n {\n Session...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
check for required fields check for substruct validity
public void validate() throws org.apache.thrift.TException { }
[ "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" ] ] } }
TODO Autogenerated method stub
@Override public long getItemId(int arg0) { return 0; }
[ "@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" ] ] } }
Constructs a copy of this object with given TCP port.
public final ProLogixGpibEthernetControllerConfiguration withTcpConnectPort (final int tcpConnectPort) { return new ProLogixGpibEthernetControllerConfiguration (this.ipAddress, tcpConnectPort); }
[ "public UniqueTCP(int port) {\n\t\t\ttry {\n\t\t\t\tuniqueTCPSocket = new ServerSocket(port); // New TCP socket.\n\t\t\t\tTCPRunnableThread = new Thread(TCPRunnable1);\n\t\t\t\tTCPRunnableThread.start(); // Main Thread begins\n\t\t\t}\n\t\t\tcatch (IOException e) {\n\t\t\t\tSystem.out.println(\"Port is not Availabl...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Member to access the observation index for the strL datum
public Integer getO() { return this.o; }
[ "java.lang.Long getIndex();", "org.hl7.fhir.Integer getIndex();", "@NonNegative int index();", "private int getIndex(String seshEx) {\n\t\tint index = 0;\n\t\tif (seshEx.charAt(0) == 'L') {\n\t\t\tindex = 1;\n\t\t} else if (seshEx.charAt(0) == 'A') {\n\t\t\tindex = 2;\n\t\t}\n\t\treturn index;\n\t}", "publi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public boolean set(E element) { throw new UnsupportedOperationException( "unsupported operation: HeapEntry.set"); }
[ "@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" ] ] } }
User cancelled the dialog
public void onClick(DialogInterface dialog, int id) { }
[ "protected void cancelDialog() {\n userInput = null;\n closeDialog();\n }", "@Override\n\t\t\tpublic void cancel() {\n\t\t\t\tdialog.dismiss();\n\t\t\t}", "public void cancel () {\n\t\tdialogObject.doCallback(null);\n\t}", "void cancelButtonPressed()\n\t{\n\t\tcloseDlg();\n\t}", "@Override\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
if there is not enough room to store the value a new array is created. (like in java.lang.ArrayList)
public void add(int x) { if (off >= data.length) { data = Arrays.copyOf(data, data.length * 2); } data[off++] = x; }
[ "private void ensureCapacity() {\n\t\tif(count==capacity()) {\n\t\t\tint newSize= capacity()+growSize;\t\t\t\n\t\t\tarray= Arrays.copyOf(array, newSize); //create a larger array and copy my value\t\t\n\t\t\t\n\t\t}\n\t}", "public void addArrayEle(int data) \r\n{\n if (count == size) { \r\n growSize(); /...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }