query stringlengths 8 1.54M | document stringlengths 9 312k | negatives listlengths 19 20 | metadata dict |
|---|---|---|---|
start the collapse of one node by the index. | public void startCollapse(GraphData data,int nodeNumber){
Vector edgesFromSource = data.findEdgesWithSource(nodeNumber);
Vector nodesToConnect = new Vector();
// data.nodes[nodeNumber].fixed=true;
Iterator i = edgesFromSource.iterator();
while (i.hasNext()){
Edge edge = (Edge) ... | [
"public void collapseAll(GraphData data) {\r\n \t\tIterator i = collapsingList.iterator();\r\n \t\twhile (i.hasNext())\r\n \t\t{\r\n \t\t\tint nodeToCollapse = ((Integer)i.next()).intValue(); \t\t\t\r\n \t\t\tthis.startCollapse(data,nodeToCollapse);\r\n \t\t}\r\n \t\t\r\n \t}",
"public void startVirtualC... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test method for toArray(E[]). When size is less. | @Test
public void testToArrayEArraySmallSize() {
list1.push("Test1");
list1.push("Test2");
list1.push("Test3");
String[] output = list1.toArray(new String[2]);
assertTrue(output.length == list1.size());
assertTrue(output[0].equals("Test1"));
assertTrue(output[1].equals("Test2"));
assertTrue(output[2].e... | [
"@Test\n\tpublic void testToArrayEArrayBigSize() {\n\t\tlist1.push(\"Test1\");\n\t\tlist1.push(\"Test2\");\n\t\tlist1.push(\"Test3\");\n\t\tString[] output = new String[6];\n\t\toutput = list1.toArray(output);\n\t\tassertTrue(output.length == 6);\n\t\tassertTrue(output[0].equals(\"Test1\"));\n\t\tassertTrue(output[... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Refreshes the panel with buttons that represents the current list of shapes found in the model. | private void refreshRemoveButtons() {
removeShapePanel.removeAll();
List<Shape> shapes = m.getShapesInModel();
JRadioButton[] removeRadioButtons = new JRadioButton[shapes.size()];
for (int i = 0; i < removeRadioButtons.length; i++) {
removeRadioButtons[i] = new JRadioButton(shapes.get(i).getName()... | [
"private void refreshSelectionList() {\n dataForListOfShapes.clear();\n for (Shape s : m.getShapesInModel()) {\n dataForListOfShapes.addElement(s.getName());\n }\n }",
"public void redrawButtons(){\r\n \t\tthis.removeAll();\r\n \t\tmButtons = new buttonArray(mIval,mJval);\r\n \t\tmButtons.initArray... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__Declar__Group__1__Impl" $ANTLR start "rule__Declar__Group__2" InternalSymboleoide.g:4126:1: rule__Declar__Group__2 : rule__Declar__Group__2__Impl rule__Declar__Group__3 ; | public final void rule__Declar__Group__2() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalSymboleoide.g:4130:1: ( rule__Declar__Group__2__Impl rule__Declar__Group__3 )
// InternalSymboleoide.g:4131:2: rule__Declar__Group__2__Impl rule... | [
"public final void rule__Declar__Group_2__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalSymboleoide.g:4238:1: ( rule__Declar__Group_2__2__Impl rule__Declar__Group_2__3 )\n // InternalSymboleoide.g:4239:2: rule__Declar_... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This function returns a parametrized string specific to sending this message. The message is used to tell the batch worker where to look for the json versions of the metadata to compare, the startIndex for the metadata, the number of json files for this batch invocation, the className to use for the comparison and the ... | public static String getSendHeaders(String className, String nameSpace, String params, String outputFile,
int startIndex, int count, String inputDir, long dimension) {
StringBuilder sb = new StringBuilder();
sb.append(BatchEngineMessage.NAME);
sb.append(":");
... | [
"Message<String> generateFilename(Message<CelebrosExportData> incMessage);",
"public abstract String serialize(Message message, ResultFormatter resultFormatter);",
"String getMessageContentOutName();",
"java.lang.String getResultMsg();",
"@Override\n public String getNextMessage() {\n MessagePojo ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
COMMENTS This function will put the CV Path from the Book a Session form in user_cv table. | public Boolean setCV(String absoluteURL,int requestId,int userId) {
logger.info("Entered setCV method of BookASessionDAO");
Boolean isCvCommit = false;
if(!("").equals(absoluteURL)){
try {
conn =ConnectionFactory.getConnection();
conn.setAutoCommit(false);
String query = "insert into user_c... | [
"public void editCV(View view){\r\n try {\r\n View parenView = (View) view.getParent();\r\n TextView fileNameView = parenView.findViewById(R.id.cvNameText);\r\n String fileName = fileNameView.getText().toString();\r\n\r\n dbHelper.getCVInfoFromDB(db, fileName, pers... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Change the appearance when the wolf turns around | private void changeAppearance() {
if (goingRight) appearance = wolfLeft;
else appearance = wolfRight;
goingRight = !goingRight;
} | [
"@Override\n public void action() {\n if (watchOutForWolf()) {\n // this.setScaredImage();\n processing.fill(0); // specify font color: black\n processing.text(\"WOLF!\", this.getX(), this.getY() - this.image.height / 2 - 6);\n }\n }",
"@Override\n public void drawWhiteMarbleConversionsL... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Some operator functions are given a suffix indicating the promotion type of the operands according to JLS 5.6.2. | private static String getPromotionSuffix(Assignment node) {
if (!needsPromotionSuffix(node.getOperator())) {
return "";
}
TypeKind lhsKind = node.getLeftHandSide().getTypeMirror().getKind();
TypeKind rhsKind = node.getRightHandSide().getTypeMirror().getKind();
if (lhsKind == TypeKind.DOUBLE ||... | [
"public Exp\nadjustTypesOfBinaryOperands( Exp pExp1, Exp pExp2 );",
"public int getOperandType() {\n if (sym == OPSYM) {\n return minor;\n }\n throw new UnsupportedOperationException(\"This method is only available to OPSYM tokens\");\n }",
"public int getOperandType(int opInd... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Verifies the prepared CameraService response, to be sent to the web layer, for validity. | private void verifyImageResponse(String imageProcessResult) {
try {
if (imageProcessResult != null) {
JSONObject imageResponseJson = new JSONObject(imageProcessResult);
if ((imageResponseJson.has(SmartConstants.CAMERA_OPERATION_SUCCESSFUL_TAG)) & (imageResponseJson.getBoolean(SmartConstants.CAMERA_OPERATIO... | [
"protected abstract boolean isResponseValid(SatelMessage response);",
"public void checkResponseValid() {\n\n if (mResponse == null) {\n\n // response invalid, login failed\n onLoginFailed();\n } else {\n\n // response valid,\n onLoginSuccess();\n }... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Instancia una Prescripcion Mueble desde un ResulSet | private PrescripcionMueble instanciarDeResultSet(ResultSet resultado) throws SQLException {
return new PrescripcionMueble(Integer.parseInt(resultado.getString("id")),
resultado.getString("tipo_pieza"),
resultado.getString("modelo_mueble"),
Integer.parseInt(resulta... | [
"public void setPrenotazione(Set<Prenotazione> aPrenotazione) {\n prenotazione = aPrenotazione;\n }",
"public PromoSetPack(){\r\n\t\tthis.Type = type.PROMO;\r\n\t\tthis.promo = new ArrayList<\t>();\r\n\t}",
"public void addPrescription(Prescription p){\n prescriptions.add(p);\n }",
"public... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Turn on the LED. | public void on() {
// Sets the LED pin state to 1 (high)
ledPin.high();
} | [
"public void turnOn() {\n this.status = true;\n update(this.redValue, this.greenValue, this.blueValue);\n }",
"public void turnOn ()\n\t{\n\t\tthis.powerState = true;\n\t}",
"public void setLED(boolean on) {\n if (!on) {\n mLimelight.getEntry(\"ledMode\").setNumber(1);\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column S_TODO_DET.DATE_PROCESSED | public Date getDATE_PROCESSED() {
return DATE_PROCESSED;
} | [
"public void setDATE_PROCESSED(Date DATE_PROCESSED) {\r\n this.DATE_PROCESSED = DATE_PROCESSED;\r\n }",
"public Date getLAST_PROCESSED_DATE() {\r\n return LAST_PROCESSED_DATE;\r\n }",
"public Date getProcessDt() {\n return _processDt;\n }",
"public Date obtenerPrimeraFecha() {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the retail price that will be included on the report. This is included for the Retail Web site. Customers may want different retails on the web site than they normally use in their store. The default value is the retail calculated by the main query. | private double calcRetail(ResultSet rs)
{
double retail = 0;
String item = null;
RetailOption opt = null;
try {
item = rs.getString("item_id");
retail = rs.getDouble("retail");
opt = getRetailOption(rs);
if ( opt != null ) {
retail = calcCustomRetail(opt, rs);
}
}... | [
"public double getRetailPrice() {\n return retailPrice;\n }",
"private double calcCustomRetail(RetailOption opt, ResultSet rs) throws Exception\n {\n \tdouble retail = 0;\n\n\t\tretail = rs.getDouble(\"retail\");\n\n\t\tif ( opt.getPriceOption().equalsIgnoreCase(\"a\") )\n\t\t\tretail = rs.getDouble... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Determines what happens if an Temporary Charm tries to attack this character | public abstract boolean attack(TemporaryCharm i); | [
"public void attackTargetCharacter() {\n }",
"public int attack(Character c){\n int weapDmg=getEquippedStr();\n return -1*(weapDmg+getStrength()-c.getDefense());\n }",
"void attack(Character character);",
"private boolean tryAttack(Tile fromTile) {\r\n\t\tint size = getBoard().getTiles().length;... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method gets a list of all the products in the database belonging to the category provided | List<Product> getProductsByCategory(String category); | [
"List<Product> getProductByCategory(String category) throws DataBaseException;",
"List<ProductCategory> getAll();",
"AttributesCollectionType listCategoryProducts(int categoryId) throws ExceptionType;",
"public List<ProductCatagory> getAllCategory() throws BusinessException;",
"public List<Product> getProCa... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method to return the Game Info Boxes , based on the width , height and GridSizeType | public static GameSizeBoxInfo generateGameGridSizes(Context context,
GridSizeValues gridSizeValues, int width,
int height) {
int grid_box_size = 0;
switch (gridSizeValues) {
case SMALL:
gri... | [
"public static GameSizeBoxInfo generateGameSizeBoxInfo(Context context,\n GridSizeValues gridSizeValues) {\n WindowManager wm = (WindowManager) context.getSystemService(Context.WINDOW_SERVICE);\n Display display = wm.getDefaultDisplay();\n Point point ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the log probability assigned by this HMM to a transition from the dummy start state to the given state. | public double getLogStartProb(int state) {
// your code here
} | [
"public double getLogTransProb(int fromState, int toState) {\n\n\t// your code here\n\n }",
"public double getLogOutputProb(int state, int output) {\n\n\t// your code here\n\n }",
"double getLogProbabilityOfEstimate();",
"public double getLogProb(double x) {\n checkHasParams();\n if (x >= 0 && x <... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the system year | public static int getSystemYear() {
return Integer.parseInt(getFormattedDate("yyy", System.currentTimeMillis()));
} | [
"java.lang.String getYear();",
"public static int getYear(){\r\n\t\tint val = read(year);\r\n\t\treturn (val & 0xF) + ((val >> 4) & 0xF)* 10 + 2000;\r\n\t}",
"public int getCurrentYear(){\r\n return Calendar.getInstance().get(Calendar.YEAR);\r\n }",
"public static int getCurrentYear()\n\t{\n\t\tretu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Generiert ein ReferenceImportRecordObjekt anhand der übergebenen Parameter. | public ReferenceImportRecord(String fktn, String fkcn, String pktn, String pkcn) {
super();
this.fkColumnName = fkcn;
this.fkTableName = fktn;
this.pkColumnName = pkcn;
this.pkTableName = pktn;
} | [
"public ReferenceImportRecord() {\r\n super();\r\n }",
"ImportDefinition createImportDefinition();",
"RecordDefinition createRecordDefinition();",
"private void addReference(T record) {\n addReferenceIATA(record);\n addReferenceICAO(record);\n }",
"ReferenceEmbed createReferenceEm... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
=================================================================================== Internal Main ============= Filter the date as From. It requires this method is called before getFromDateConditionKey(). | public Date filterFromDate(Date fromDate) {
if (fromDate == null) {
return null;
}
if (_compareAsDate) {
final Calendar cal = Calendar.getInstance();
cal.setTimeInMillis(fromDate.getTime());
clearCalendarHourMinuteSecondMilli(cal);
... | [
"Date getValidFrom();",
"public Date getValidFrom();",
"private Predicate<ApplicationDTO> applicationInfoFilterPredicate(LocalDate applicationDateFrom, LocalDate applicationDateTo) {\n if(applicationDateFrom != null && applicationDateTo != null) {\n return applicationDTO -> !applicationDTO.get... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set a new default encryptor | public static serialEncryption setDefaultEncryptor(serialEncryption cryptor) {
serialEncryption prev = defaultEncryptor ;
defaultEncryptor = cryptor ;
return prev ;
} | [
"void setEncryptionMethod(Encryptor encryptor);",
"public abstract void setEncryptMode();",
"void setCryptProvider(java.lang.String cryptProvider);",
"@Override\n protected EncryptionConfiguration createDefaultEncryptionConfiguration() {\n\n final BasicEncryptionConfiguration config = DefaultSecurityConfi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Instantiates a NewDialog instance. | public NewDialog() {
// super((java.awt.Frame)null, "New Document");
super("JFLAP 7.0");
getContentPane().setLayout(new GridLayout(0, 1));
initMenu();
initComponents();
setResizable(false);
pack();
this.setLocation(50, 50);
addWindowListener(new WindowAdapter() {
@Override
public voi... | [
"public void createAndShowDialog() {\n\t\tcreateDialog();\n\t\tgetSwingRenderer().showDialog(createdDialog, true);\n\t}",
"public abstract Dialog createDialog(DialogDescriptor descriptor);",
"public PatientDetailsDialog() {\n super();\n this.mode = Mode.NEW;\n createContent();\n\n }",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set this sequence to hold the bases in the given String throws ReadOnlyException for CorbaSequence objects. | public void setFromString (final String new_sequence)
throws ReadOnlyException {
throw new ReadOnlyException ();
} | [
"public void fill(String[] seqInput) throws BaseException\n {\n fill(stringsToBases(seqInput));\n }",
"void setBase(java.lang.String base);",
"public void setSequence(String sequence) {\r\n\t\t this.sequence = sequence.toCharArray();\r\n\r\n\t}",
"public final void setBase(String base) {\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Private method that given a box and a direction tells us if the next adjacent box in that direction it was already used. 0 = Up. 1 = Right. 2 = Down. 3 = Left. | private boolean isNextBoxUsed(Box box, int directionNextBox) {
if (directionNextBox < 0 || directionNextBox > 3)
throw new IllegalArgumentException("The only allowed values are between 0 and 3.");
if (box == null)
throw new IllegalArgumentException("Error. Null pointer in isNextB... | [
"private boolean allAdjacentUsed(Box box) {\n if (box == null)\n throw new IllegalArgumentException(\"Error. null pointer in allAdjacentUsed(box).\");\n return isNextBoxUsed(box, 0) && isNextBoxUsed(box, 1) && isNextBoxUsed(box, 2) && isNextBoxUsed(box, 3);\n }",
"public boolean canMov... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the partition in which the given element can be found, or null otherwise. | public Set<V> getPartition(V element) {
V root = find(element);
return setMap.get(root);
} | [
"public int seek(Element element) {\n Element current;\n int k = 0;\n int father = 0;\n current = heap.get(k);\n boolean foundElement = false;\n do {\n try {\n if (comparator.compare(current, element) < 0) {\n father = k;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Deletes the given registrant from persistent storage. | public void deleteRegistrant(Registrant registrant) {
EntityManager em = getEntityManager();
Query registrantDeletePublicationDownloads = em.createNamedQuery( "registrantDeletePublicationDownloads" );
Query registrantDeletePublicationItemDownloads = em.createNamedQuery( "registrantDeletePublicationItemDownloads" ... | [
"public void deleteRegistration(UUID id);",
"public void deleteRegistration(String regNumber)throws Exception;",
"@Override\n public void deleteTenant(int tenantId, boolean removeFromPersistentStorage) throws UserStoreException {\n return;\n }",
"void deleteByRegNo(String regNo);",
"void delete... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Display the Video stream | private void displayVideo(Mat frame){
surfView.setDisplayFrame(frame);
Canvas c;
c = null;
try {
c = surfView.getHolder().lockCanvas(null);
synchronized (surfView.getHolder()) {
surfView.draw(c);
}
} finally {
if (... | [
"private void gotRemoteStream(MediaStream stream) {\n final VideoTrack videoTrack = stream.videoTracks.get(0);\n runOnUiThread(() -> {\n try {\n remoteVideoView.setVisibility(View.VISIBLE);\n videoTrack.addSink(remoteVideoView);\n } catch (Exception ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates new form SummaryView | public SummaryView() {
initComponents();
} | [
"public SummaryFragment newInstance()\n {\n return new SummaryFragment();\n }",
"SummaryPresenter(SummaryView view) {\n this.view = view;\n }",
"public Summary() {\n initComponents();\n \n }",
"public static Result newForm() {\n return ok(newForm.render(palletFo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns record of client data from remote server Returns DNF if a record could not be found remotely | private String[] searchForUserRemotely(String username) {
String[] record = { DNF, null, null };
for (int i=0; i<RTable.length && record[0].equals(DNF); ++i)
if ( ((String)RTable[i][USERNAME]).equals(SERVER_ID) ) {
try { record = requestDataFromExternalServer((Socket)RTable[i][SOCKET], username); }
... | [
"public Host.Record getRecord(Connection c) throws BadServerResponse,\n\t\t\tXenAPIException, XmlRpcException {\n\t\tString method_call = \"host.get_record\";\n\t\tString session = c.getSessionReference();\n\t\tObject[] method_params = { Marshalling.toXMLRPC(session),\n\t\t\t\tMarshalling.toXMLRPC(this.ref) };\n\t\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Accessor for the propertyChange field. | protected java.beans.PropertyChangeSupport getPropertyChange() {
if (propertyChange == null) {
propertyChange = new java.beans.PropertyChangeSupport(this);
};
return propertyChange;
} | [
"protected java.beans.PropertyChangeSupport getPropertyChange() {\n\t\tif (propertyChange == null) {\n\t\t\tpropertyChange = new java.beans.PropertyChangeSupport(this);\n\t\t};\n\t\treturn propertyChange;\n\t}",
"protected PropertyChangeSupport getPropertyChange() {\r\n\t\tif (propertyChange == null) {\r\n\t\t\tp... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get pvalue for fuzzy enrichment for fuzzy input vs crisp gene set | public static double getPValue(Map<String, Double> fuzzyInput, Set<String> geneSet, Set<String> genePool) {
double actualScore = calculateOverlap(geneSet, normalizeFuzzySet(fuzzyInput));
int numOfTermGenes = geneSet.size();
int numOfBgGenes = genePool.size();
int numOfInputGenes = fuzzyInput.size();
int nu... | [
"public static double getPValue(Map<String, Double> fuzzyInput, Map<String, Double> fuzzyGeneSet, Set<String> genePool) {\t\t\n\t\tdouble actualScore = calculateOverlap(normalizeFuzzySet(fuzzyInput), normalizeFuzzySet(fuzzyGeneSet));\n\t\t\n\t\tint numOfTermGenes = fuzzyGeneSet.size();\n\t\tint numOfBgGenes = geneP... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Send synchronous data via USB with specified timeout | public int send(byte[] buffer, int timeout) throws IllegalAccessException {
if (!mUsbConnection.claimInterface(mUsbInterface, forceClaim))
throw new IllegalAccessException("USB interface cannot be claimed");
return mUsbConnection.bulkTransfer(mUsbEndpointOut, buffer, buffer.length, timeout);... | [
"@Override\r\n\tpublic void sendApduToSE(byte[] dataBT, int timeout) {\n writeBluetooth(dataBT, timeout);\r\n\t}",
"public void send0(){\n digitalWrite(data0, LOW);\n delayMicroseconds(34);\n digitalWrite(data0, HIGH);\n}",
"public void send1(){\n digitalWrite(data1, LOW);\n delayMicroseconds(34);\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Verify Report Columns in Report | private void verifyIndividualBatchColumns() {
for (final String element : BATCH_COLUMNS) {
Log.altVerify(true, lblBatchColumnName(element).exists(),
"Check that column '" + element + "' is exist");
}
} | [
"private void verifyReportColumns() {\n for (final String element : REPORT_COLUMNS) {\n Log.altVerify(true, lblReportColumnName(element).exists(),\n \"Check that column '\" + element + \"' is exist\");\n }\n }",
"public void verifyDisbursementReportColumns() {\n Log.logBanner(\"Verifying D... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Methodos gia thn anazhthsh syntaghs vasei tou epwnymou tou iatrou pou thn egrapse | public void anazitisiSintagisVaseiGiatrou() {
String doctorName = null;
tmp_2 = 0;
if(numOfPrescription != 0)
{
System.out.println();
System.out.println(" STOIXEIA SYNTAGWN");
// Emfanizw oles tis syntages
for(int j = 0; j < numOfPrescription; j++)
{
System.out.print("\n " + j + ". STOIXEI... | [
"public void anazitisiSintagisVaseiAstheni() {\n\t\tint amkaCode = 0;\n\t\ttmp_2 = 0;\n\t\tif(numOfPrescription != 0)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\" STOIXEIA SYNTAGWN\");\n\t\t\t// Emfanizw oles tis syntages\n\t\t\tfor(int j = 0; j < numOfPrescription; j++)\n\t\t\t{\n\t\t\t\tSyst... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__AstExternalFunction__Group__6__Impl" $ANTLR start "rule__AstExternalFunction__Group__7" ../org.caltoopia.frontend.ui/srcgen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:9202:1: rule__AstExternalFunction__Group__7 : rule__AstExternalFunction__Group__7__Impl rule__AstExternalFunc... | public final void rule__AstExternalFunction__Group__7() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:9206:1: ( rule__AstExternalFunction__Group... | [
"public final void rule__AstExternalFunction__Group__6() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:9177:1: ( rule__AstExternalFun... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Process the facsimile section of a TEI document. This code is based on the structure from Jeffrey Witt's Petrus Plaoul manuscripts. Jeffrey defines a separate surface for each paragraph on a page. Tradamus treats each graphic as a canvas, and notes the coordinates of the paragraphs. We will likely need additional work ... | private void processFacsimile(String imageBase) throws XMLStreamException, URISyntaxException {
surfaces = new ArrayList<>();
Map<String, List<SurfaceDef>> graphicSurfaces = new LinkedHashMap<>();
String curGraphic = null;
SurfaceDef curSurf = null;
while (reader.hasNext()) {
... | [
"protected void visualizeCharacters(Document pdf, PdfDrawer drawer)\n throws PdfActVisualizeException {\n for (Paragraph paragraph : pdf.getParagraphs()) {\n // Ignore the paragraph if its role should not be extracted.\n if (!hasRelevantRole(paragraph)) {\n continue;\n }\n\n f... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates an attribute of the given qualified name and namespace URI. Per [XML Namespaces], applications must use the value null as the namespaceURI parameter for methods if they wish to have no namespace. | @DOMSupport(DomLevel.TWO)
@BrowserSupport({BrowserType.FIREFOX_2P, BrowserType.OPERA_9P})
@Function Attr createAttributeNS(String namespaceURI, String qualifiedName); | [
"public Attr createAttributeNS(String namespaceURI, \n String qualifiedName)\n throws DOMException;",
"public XmlAttribute CreateAttribute( String qualifiedName, String namespaceURI ) { \r\n String prefix = String.Empty;\r\n S... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
A predicate checking if the given table should be backed up based on the given configuration | private boolean filterTable(Map.Entry<CorfuStoreMetadata.TableName,
CorfuRecord<CorfuStoreMetadata.TableDescriptors, CorfuStoreMetadata.TableMetadata>> table) {
return (namespace == null || table.getKey().getNamespace().equals(namespace)) &&
(!taggedTables || table.getValue().getMeta... | [
"boolean getTableExists(String table);",
"protected abstract boolean existsByTable(String table);",
"boolean hasDeleteBackUp();",
"boolean supportsRollbackAfterDDL();",
"public boolean updateTableFromTap(String fullTableName, TableConfig config);",
"public boolean supportsTableCheck();",
"boolean suppor... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set the radio power on/off state for all phones. | static final void setRadioPower(boolean enabled) {
for (Phone phone : PhoneFactory.getPhones()) {
phone.setRadioPower(enabled);
}
} | [
"boolean setRadioPower(boolean turnOn);",
"public void turnONRadion() {\n radio.setSwitchStatus(true);\n }",
"void toggleRadioOnOff();",
"public void power() {\r\n\t\tpowerOn = !powerOn;\r\n\t}",
"public void turnOn ()\n\t{\n\t\tthis.powerState = true;\n\t}",
"private void enableRadioButtons(){\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The buildCustomerTable method creates the Customer table and adds some rows to it. | public static void buildCustomerTable(Connection conn)
{
try
{
// Get a Statement object.
Statement stmt = conn.createStatement();
// Create the table.
stmt.execute("CREATE TABLE Customer" +
"( CustomerNumber INTEGER NOT NULL GENER... | [
"public static void buildCustomerTable(Connection conn) {\n try {\n // Get a Statement object.\n Statement stmt = conn.createStatement();\n\n // Create the table.\n stmt.execute(\n \"CREATE TABLE Customer\"\n + \"( CustomerNumber CHAR(10) NOT NULL PRIMARY KEY, \"\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the funding curve requirement. | private static ValueRequirement getFundingCurveRequirement(final Currency ccy, final String curveName, final String curveCalculationConfig) {
final ValueProperties fundingProperties = ValueProperties.builder()
.with(ValuePropertyNames.CURVE, curveName)
.with(ValuePropertyNames.CURVE_CALCULATION_CONF... | [
"public java.math.BigDecimal getPurchaseRequirement()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PURCHASERE... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the id estatus objeto. | public int getIdEstatusObjeto() {
return idEstatusObjeto;
} | [
"public long getIdEstatusObjeto() {\r\n\t\treturn idEstatusObjeto;\r\n\t}",
"public int getIdStatus() {\r\n return idStatus;\r\n }",
"public int getStatusId() {\n return statusId;\n }",
"public int getStatusId() {\n return statusId_;\n }",
"public String getStatusId() {\n return getProp... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
todo: notify last not reported tick here | @Override public void notifyNoMoreTicks() {
super.notifyNoMoreTicks();
log("TickJoinerTs[" + m_size + "ms]: reportedCount=" + m_reportedCount + "; joinedCount=" + m_joinedCount + "; rate=" + (((float) m_joinedCount) / m_reportedCount));
} | [
"public boolean tick() {\r\n \t\treturn false;\r\n \t}",
"public void tick() {}",
"@Override\n\tpublic boolean tick() {\n\t\treturn false;\n\t}",
"private void tick() {\n Log.enter();\n Log.write(\"[:Timer].tick()\");\n Log.exit();\n }",
"int getLastTick();",
"void tick(long tickSinceStart);",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the Boolean value of an argument if it exists. | public Boolean getBoolean(String key)
{
if (!arguments.containsKey(key))
{
return null;
}
else
{
try
{
return Boolean.parseBoolean(arguments.get(key));
}
catch (Exception e)
{
return true;
}
}
} | [
"protected boolean getBoolArg(GraphQLAppliedDirective directive, String argName) {\n GraphQLAppliedDirectiveArgument argument = directive.getArgument(argName);\n if (argument == null) {\n return assertExpectedArgType(argName, \"Boolean\");\n }\n Object value = argument.getValu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a Google User login class. | public GoogleUser(Social social, Person person, Integer sessionTimeoutInSec) {
super("Google", social, person, sessionTimeoutInSec);
} | [
"GoogleAuthenticatorKey createCredentials(String userName);",
"public GoogleAuthenticatorAccount() {\n }",
"public GoogleOAuthProvider(){}",
"private JwtUserFactory() {\n\t}",
"private void RegisterGoogleSignup() {\n\n\t\ttry {\n\t\t\tLocalData data = new LocalData(SplashActivity.this);\n\n\t\t\tArrayLis... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Adds a value to property OriginalTextWriter from an instance of Contact [Generated from RDFReactor template rule add4dynamic] | public void addOriginalTextWriter(Contact value) {
Base.add(this.model, this.getResource(), ORIGINALTEXTWRITER, value);
} | [
"public static void addOriginalTextWriter(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, Contact value) {\r\n\t\tBase.add(model, instanceResource, ORIGINALTEXTWRITER, value);\r\n\t}",
"public void setOriginalTextWriter(Contact value) {\r\n\t\tBase.set(this.model, this.getResource(), ORIGIN... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter for domain vnc connection autoport | public void setAutoport(String autoport) {
this.autoport = autoport;
} | [
"public void setAutoConnect(boolean v) {\n agentConfig.setAutoConnect(v);\n }",
"public void setConnectDhcp() {\r\n\t\tif (dummyMode) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif(mDevReceiver == null) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tString devName = getDevName();\r\n\t\t\r\n\t\tmDevReceiver.setConnect... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ This method is used to update the status of the customer. The update details are obtained from the request and the response is returned to the front end. | public Response<Boolean> updateCustomerStatus(CustomerStatusReqDto requestDto) {
Response<Boolean> responseDto = new Response<>();
Optional<Customer> getCustomer = customerRepo.findByCustomerId(requestDto.getCustomerId());
if (!getCustomer.isPresent())
throw new NoDataFoundException(CustomerConstants.CUSTOMER_... | [
"public Response<CustomerUpdateResponseDto> updateCustomer(CustomerUpdateReqDto requestDto) {\n\t\tResponse<CustomerUpdateResponseDto> responseDto = new Response<>();\n\t\tCustomerUpdateResponseDto response = null;\n\t\tOptional<Customer> customer = customerRepo.findByCustomerId(requestDto.getCustomerId());\n\t\tif... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
LengthAreaStreamSource Creates an indicator grid (1,0) that evaluates A >= (M)(L^y) based on upslope path length, | public static ExecResult LengthAreaStreamSource(@NotBlank String Input_Length_Grid,
@NotBlank String Input_Contributing_Area_Grid,
String Output_Stream_Source_Grid, String inputDir,
... | [
"public static ExecResult LengthAreaStreamSource(@NotBlank String Input_Length_Grid,\n @NotBlank String Input_Contributing_Area_Grid, Double Threshold_M,\n Double Exponent_y, String Output_Stream_Source_Grid,\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Clears the value of the 'kGSuperPopCategory' field | public Gel_BioInf_Models.ChiSquare1KGenomesPhase3Pop.Builder clearKGSuperPopCategory() {
kGSuperPopCategory = null;
fieldSetFlags()[0] = false;
return this;
} | [
"public void setKGSuperPopCategory(Gel_BioInf_Models.KGSuperPopCategory value) {\n this.kGSuperPopCategory = value;\n }",
"public Gel_BioInf_Models.ChiSquare1KGenomesPhase3Pop.Builder clearKGPopCategory() {\n kGPopCategory = null;\n fieldSetFlags()[1] = false;\n return this;\n }",
"@Overri... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
update place address on location text | private void updateLocationUI() {
mCurrentLocationStr = mCurrentPlace.getAddress().toString();
mCurrentLatLng = mCurrentPlace.getLatLng();
if(mCurrentLocationStr.isEmpty())
mCurrentLocationStr = String.format("(%.2f, %.2f)",mCurrentLatLng.latitude, mCurrentLatLng.longitude);
... | [
"public void updateAddress(Address address);",
"private void updateAddress() {\n\t\t_updateAddress(selectionMarker);\n\t}",
"public void editLocation(){\n\t\t\n\t}",
"private void _updateAddress(Marker marker) {\n\t\ttry {\n\t\t\tLatLng markerPos = marker.getPosition();\n\t\t\tAddress address = geocoder.getFr... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The MetaData interface defines attribute/value couples used to describe a Message or Resource. Values can either be Complex numbers or a String objects. The same attribute name can be use for both a Complex value or a String value. Attribute names (keys) are caseinsensitive, while values are casesensitive. It's to be n... | public interface MetaData {
/**
* Add a Complex number attribute.
*
* @param key attribute name (not null/empty).
* @param val Complex number (not null).
*/
public void addComplex(String key, Complex val);
/**
* Add a character string attribute, insignificant spaces will be removed.
*
* @param k... | [
"public interface MetaDataValue\n extends MetaDataObject {\n\n /**\n * Get a String representation of this value.\n *\n * <p>\n * For simple types the value is returned as is e.g Boolean values are\n * represented by the strings \"true\" and \"false\"\n * </p>\n * <p>\n * F... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Wraps the given array of longs in a bit vector. | public static LongArrayBitVector wrap( final long[] array ) {
return wrap( array, (long)array.length * Long.SIZE );
} | [
"public static LongArrayBitVector wrap( final long[] array, final long size ) {\n\t\tif ( size > (long)array.length << LOG2_BITS_PER_WORD ) throw new IllegalArgumentException( \"The provided array is too short (\" + array.length + \" elements) for the given size (\" + size + \")\" );\n\t\tfinal LongArrayBitVector r... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TC002 Verifies left video alignment on editor, 'left' string on source mode, left alignment on preview modal and left alignment on article | @Test(groups = { "VetModalTests002", "VetModalTests" })
public void Vet_Tests_002_VerifyLeftAlignmentOnEditorSourcePreviewModalAndArticle() {
CommonFunctions.logOut(driver);
WikiBasePageObject wiki = new WikiBasePageObject(driver, Global.DOMAIN);
wiki.openWikiPage();
CommonFunctions.logInCookie(Properties... | [
"@Test(groups = { \"VetModalTests001\", \"VetModalTests\" })\n \tpublic void Vet_Tests_001_VerifyLeftAlignmentOnEditorSourceAndArticle() {\n \t\tWikiBasePageObject wiki = new WikiBasePageObject(driver, Global.DOMAIN);\n\t\twiki.openWikiPage();\n \t\tCommonFunctions.logInCookie(Properties.userName, Properties.passwo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the company ID of this room. | public void setCompanyId(long companyId) {
_room.setCompanyId(companyId);
} | [
"@Override\n public void setCompanyId(long companyId);",
"public void setCompanyId(long value) {\n this.companyId = value;\n }",
"@Override\n public void setCompanyId(long companyId) {\n _person.setCompanyId(companyId);\n }",
"@Override\n public void setCompanyId(long companyId) {... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Date of the claim when the regular claim was finalized. Value required when claim is adjusted | @ApiModelProperty(value = "Date of the claim when the regular claim was finalized. Value required when claim is adjusted")
public Long getAdjustmentSoruceDate() {
return adjustmentSoruceDate;
} | [
"java.lang.String getDateOfClaim();",
"public Date getFINAL_MATURITY_DATE()\r\n {\r\n\treturn FINAL_MATURITY_DATE;\r\n }",
"public int finalMaturityDate()\n\t{\n\t\treturn _iFinalMaturityDate;\n\t}",
"public Date getFINAL_MATURITY_DATE() {\r\n return FINAL_MATURITY_DATE;\r\n }",
"public abst... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The same as new BasicCache(context, classes, false); | protected BasicCache(Context context, Class[] classes) {
this(context, classes, false);
} | [
"Cache createCache();",
"<V> CrossBuildInMemoryCache<Class<?>, V> newClassCache();",
"CacheWrapper create(Context context, CacheType type, String shareName);",
"<K, V> CrossBuildInMemoryCache<K, V> newCache();",
"Object cached(Class<?> api, ComponentContext context);",
"public Cache() {\n data = ne... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructs and initializes a Tuple2f to (0,0). | public Tuple2f()
{
x = 0.0F;
y = 0.0F;
} | [
"public Tuple2f(float x, float y)\n {\n this.x = x;\n this.y = y;\n }",
"public Tuple2f(Tuple2f t)\n {\n x = t.x;\n y = t.y;\n }",
"public Vec2f() {\n\t\tthis(0, 0);\n\t}",
"public Tuple2f(float t[])\n {\n x = t[0];\n y = t[1];\n }",
"public Tuple(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create method to print number list | public void PrintList() {
// Print number list
System.out.println(number_list);
} | [
"private void printNumbers()\n {\n System.out.print(\" \" + \" \" + \" 1 \");\n for (int i = 2; i <= size; i++)\n {\n System.out.print(i + \" \");\n }\n System.out.println();\n }",
"void printList();",
"public void PrintNewList() {\n\t\t// Print new list\n\t\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the logger with the specified name. This creates a new logger if one did not already exist. | public static synchronized Logger getLogger(String name) {
Logger logger;
if (loggers == null) {
loggers = new Hashtable();
logger = null;
} else {
logger = (Logger)loggers.get(name);
}
// Create a new logger if one doesn't already exist
... | [
"public static Logger getLogger(String name) { return loggerRegistry.get(name); }",
"public synchronized static Logger getLogger( final String name ) {\r\n if ( name != null ) {\r\n return LogKernel.nameToLogger.get( name );\r\n } else {\r\n return null;\r\n }\r\n }",
"public static Logger g... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ This exitDone method is called when the user leaves the current screen. I a screen such as the play screen one will normally close the level or remove all spatials and controls and lights, etc from the rootNode | @Override
protected void exit() {
touchPickListener.unregisterInput();
cameraJointNode.removeFromParent();
game.close();
marker.removeFromParent();
log("close game");
} | [
"public void exit()\n {\n gameStatus = GameStatus.RETURN_MENU;\n map.stopAllSeeds();\n map.stopAllTrees();\n }",
"public void end()\n\t{\n\t\tStateManager.setState(StateManager.GameState.MAINMENU);\n\t\tStateManager.setGame(null);\n\t}",
"public void onSceneExit() {\r\n update(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Ability ability = random.get(position); Name name = ability.getAbility(); String name = name.getName(); | @Override
public void onBindViewHolder(@NonNull ViewHolder holder, int position) {
String Abilityname=random.get(position).getAbility().getName();
// String Typename=random2.get(position).getType().getName();
holder.abilities.setText(Abilityname);
// holder.types.setT... | [
"public Ability findAbility(String name);",
"@Override\n public String randomReward() {\n return ITEM.getRandomItem().name();\n }",
"void pickName() {\n\t\tString[] names = {\"Spider-Man\",\"Captain America\",\"Thor\",\"The Incredible Hulk\",\"Black Widow\",\"Iron Man\",\"Deadpool\"};\n\t\tint choi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
.yandex.cloud.ai.stt.v2.RecognitionConfig config = 1; | @java.lang.Override
public yandex.cloud.api.ai.stt.v2.SttServiceOuterClass.RecognitionConfigOrBuilder getConfigOrBuilder() {
return getConfig();
} | [
"yandex.cloud.api.ai.stt.v2.SttServiceOuterClass.RecognitionConfig getConfig();",
"yandex.cloud.api.ai.stt.v2.SttServiceOuterClass.RecognitionConfigOrBuilder getConfigOrBuilder();",
"PredictionConfig prediction();",
"public Builder setConfig(yandex.cloud.api.ai.stt.v2.SttServiceOuterClass.RecognitionConfig va... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the pub associated with the view | public void setPub(Pub pub) {
this.pub = pub;
} | [
"public void setPubAt(Date pubAt) {\n this.pubAt = pubAt;\n }",
"public void setPubDate(Date pubDate) {\n this.pubDate = pubDate;\n }",
"public void setPublish(java.lang.Object publish) {\n this.publish = publish;\n }",
"public void setPublish(String publish) {\n this.publ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method sets a bead in a given position on the grid, creating an instance of Bead and adding it to the list of beads. It first makes some controls on the validity of the position given, in particular if the bead is placed in a hole, which is illegal by the game rules, and if a grid cell has already another bead. Ea... | public GridHole placeBeadOnGrid(int x, int y, int playerNumber) throws GameException {
// must check validity of the coordinate
if ((x < 0 || x >= Utility.GRID_SIDE) || (y < 0 || y >= Utility.GRID_SIDE)) {
throw new GameException("error: the cell on which you want to place your bead is outsi... | [
"public void addBeesToMatrix() {\r\n int i;\r\n int j;\r\n int k;\r\n for (int b = 0; b < this.numberOfBees; b++) {\r\n Bee3D bee = this.beesArray[b];\r\n i = (int) (Math.abs(Math.abs(bee.getLongitude()) - Math.abs(minLO)) * distanceLongi / precission) + offset + 1;... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
MS Level 2: We have commented the below part of return statement, since it will not support timeouts issue return new RestTemplate(); // restTemplates will be obsolete after sometime, so using the WebClient functionality listed below | @Bean // @Bean - One and only one instance will be created and be used by multiple services
@LoadBalanced // Load Balanced annotation is used in Service Discovery model, which indicates that does service discovery in load balanced way
public RestTemplate getRestTemplate(){
HttpComponentsClientHttpRequestFactory ... | [
"public RestTemplate getRestTemplate();",
"public static RestTemplate getRestTemplate()\n\t{\n\t\treturn new RestTemplate();\n\t}",
"private RestTemplate getRestTemplate() {\n ObjectMapper mapper = new ObjectMapper();\n mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Copy rows from mail_item, appointment and revision table to the corresponding dumpster tables. | private static void copyToDumpster(DbConnection conn, Mailbox mbox, List<Integer> ids, int offset, int count)
throws SQLException, ServiceException {
String miTableName = getMailItemTableName(mbox, false);
String dumpsterMiTableName = getMailItemTableName(mbox, true);
String ciTableName = ge... | [
"private static void copyToDumpster(Connection conn, Mailbox mbox, List<Integer> ids, int offset, int count)\n throws SQLException, ServiceException {\n String miTableName = getMailItemTableName(mbox, false);\n String dumpsterMiTableName = getMailItemTableName(mbox, true);\n String ciTableNa... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Make sure that when the job wasn't archived the method doesn't retry. | @Test
void testNoRetryOnJobNotArchived() throws Exception {
Mockito
.when(this.persistenceService.getJobArchiveLocation(JOB_ID))
.thenReturn(Optional.empty());
try {
this.archivedJobService.getArchivedJobMetadata(JOB_ID);
} catch (final JobNotArchivedExce... | [
"@Test\n void testNoRetryOnJobNotFound() throws Exception {\n Mockito\n .when(this.persistenceService.getJobArchiveLocation(JOB_ID))\n .thenThrow(new NotFoundException(\"blah\"));\n\n try {\n this.archivedJobService.getArchivedJobMetadata(JOB_ID);\n } catch (... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns a new object of class 'Service Method Return Type'. | ServiceMethodReturnType createServiceMethodReturnType(); | [
"Parameter createReturnResult(String name, Type type);",
"Return createReturn();",
"public Type getReturnType();",
"ServiceMethod createServiceMethod();",
"Return getReturnType ();",
"Type getReturnType();",
"Type getReturnType () { return return_type; }",
"ResponsesType createResponsesType();",
"pu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Convert a serialized Hashtable object to a CSV file. The CSV file is written in the same directory as the original serialized object. | public static void convertHashtableIntScoreCountToCSV(String serializedObj) {
// Deserialize the dataset
Hashtable<Integer, ScoreCount<Integer>> dataset = deserializeHastableIntScoreCount(serializedObj);
String dir = getDirname(serializedObj);
String resultFilename = getResultFilename(serializedObj);
logge... | [
"public void outputToCSV() throws FileNotFoundException, UnsupportedEncodingException {\n PrintWriter writer = new PrintWriter(\"test_data.csv\", \"UTF-8\");\n\n //For every object in array, print surname, initials and extension, separated by commmas\n for (int i=0; i<toArrayList().size(); i++)... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
I tried to activate Retribution of the Ancients while I only controlled Nantuko Husk and Willbreaker without +1/+1 counters on them. The program didn't let me activate the RotA, even though the creature you choose doesn't need to have any counters on it (X can be 0, doesn't say otherwise on the card and it isn't a targ... | @Test
public void testRetributionOfTheAncientsZeroCounter() {
addCard(Zone.BATTLEFIELD, playerA, "Swamp", 1);
// {B}, Remove X +1/+1 counters from among creatures you control: Target creature gets -X/-X until end of turn.
addCard(Zone.BATTLEFIELD, playerA, "Retribution of the Ancients", 1); ... | [
"@Test\n public void conniveDiscardCreature() {\n // P/T : 1/2\n // {3}: Hypnotic Grifter connives\n addCard(Zone.BATTLEFIELD, playerA, \"Hypnotic Grifter\");\n addCard(Zone.BATTLEFIELD, playerA, \"Swamp\", 3);\n addCard(Zone.HAND, playerA, \"Ledger Shredder\", 1); // To discar... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Should we recover from the unsupported data sets, default is true. | public void setRecoverFromUnsupportedDataSet(boolean recoverFromUnsupportedDataSet) {
this.recoverFromUnsupportedDataSet = recoverFromUnsupportedDataSet;
} | [
"public void checkDataSet()\n\t{\n\t\treturn;\n\n\t}",
"@JsonIgnore\n public boolean isFallbackToOdSet() {\n return isSet.contains(\"fallbackToOd\");\n }",
"public boolean supportSets()\n {\n return true;\n }",
"public boolean checkIfApplicable(Dataset dataset){\n if(dataset.p... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "bb" $ANTLR start "blocks2" C:\\Users\\Cavicchio\\workspace\\InterDepAdjStructure\\newgrammar\\JCB_tree.g:520:1: blocks2 returns [JCBlock bBlock] : (sblk2= sb2 (b= blocks2 )? |cblk2= cb2 (b= blocks2 )? |cfunctioncall2= functioncall2 (b= blocks2 )? |cloop2= loop2 (b= blocks2 )? ); | public final JCBlock blocks2() throws RecognitionException {
JCBlock bBlock = null;
JCSectionBlock sblk2 =null;
JCBlock b =null;
JCConditionalBlock cblk2 =null;
JCFunctionCallBlock cfunctioncall2 =null;
JCLoopBlock cloop2 =null;
try {
// C:\\Us... | [
"public final void cblocks2() throws RecognitionException {\n JCConditionalSection csblks2 =null;\n\n\n try {\n // C:\\\\Users\\\\Cavicchio\\\\workspace\\\\InterDepAdjStructure\\\\newgrammar\\\\JCB_tree.g:681:10: (csblks2= csb2 (csblk2= cblocks2 )? )\n // C:\\\\Users\\\\Cavicchio... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a TraceBuf from a Wave. This is useful for putting non Earthworm data in a Winston database. | public TraceBuf(String code, Wave sw) {
data = sw.buffer;
samplingPeriod = Math.round(TO_USEC / sw.getSamplingRate());
firstSampleTime = Math.round(Util.j2KToEW(sw.getStartTime()) * TO_USEC);
pin = -1;
numSamples = data.length;
dataType = "s4";
quality = "";
pad = "";
String[] cc = code.split("\\$");
... | [
"public static Wave traceBufToWave(List<TraceBuf> traceBufs) {\n\n\t\t// Nothing in, nothing out\n\t\tif (traceBufs == null || traceBufs.size() <= 0)\n\t\t\treturn null;\n\n\t\t// get rid of all the bad stuff, except gaps\n\t\tnormalize(traceBufs);\n\n\t\tfinal TraceBuf firstTraceBuf = traceBufs.get(0);\n\t\tfinal ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column sys_contentmain.vipFlag | public Integer getVipflag() {
return vipflag;
} | [
"public void setVipflag(Integer vipflag) {\r\n\t\tthis.vipflag = vipflag;\r\n\t}",
"public Integer getFLAG() {\n return FLAG;\n }",
"public Integer getFlag() {\r\n return flag;\r\n }",
"public Integer getFlag() {\n return flag;\n }",
"public String getFlag() {\n return (... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Check a personal deck to see if contains any card that is activable | private boolean hasUsableCards(List<ItemCard> itemdeck){
boolean hasUsables = false;
for (ItemCard ic : itemdeck){
if(ic.isActivable()){
hasUsables = true;
break;
}
}
return hasUsables;
} | [
"boolean hasDebtCard();",
"protected abstract boolean isCardActivatable(Card card);",
"boolean hasCreCard();",
"boolean hasAlreadShowCard();",
"boolean hasAlreadCheckCard();",
"boolean hasAlreadFoldCard();",
"private boolean isAllCardsExsit() {\n TelephonyManager mTm = (TelephonyManager) mContext... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
check card all place of China | public static boolean isValidCard(String card) {
if (card == null || "".equals(card)) return false;
if (card.length() == 10 || card.length() == 15) {
return true;
} else if (card.length() == 18) {
return isValidChinaCard(card);
}
return false;
} | [
"static boolean isCardPlacementWellFormed(String cardPlacement) {\n // FIXME Task 2: determine whether a card placement is well-formed\n char[] arr = cardPlacement.toCharArray(); //converts the cardPlacement set into an array of characters\n //if the third element in the char array is A and Z o... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructs a DeclInfo for the given decl. | DeclInfo(Decl decl) {
this.decl = decl;
this.upperBound = null;
} | [
"Declaration createDeclaration();",
"DeclRule createDeclRule();",
"public LocalDecl createLocalDecl(Position pos, LocalDef def, Expr init) {\n return xnf.LocalDecl( pos.markCompilerGenerated(), \n xnf.FlagsNode(pos, def.flags()),\n xnf.Canonica... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Tests the unwrap method. | @Test
public void testUnwrap() {
assertEquals(FudgeResponse.unwrap(VALUE), VALUE);
assertEquals(FudgeResponse.unwrap(RESPONSE), VALUE);
} | [
"private static Object unwrap(final Object object, final boolean inverse) {\n return inverse ? ((Inverse) object).inverse() : object;\n }",
"public boolean unwrap() {\n // Pico input file.\n try {\n\n PicoInputStream pis = new PicoInputStream(new FileInputStream(this.infile));\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Populate the room spinner | private void populateRooms() {
ArrayAdapter<String> dataAdapter = new ArrayAdapter<String>(this,
android.R.layout.simple_spinner_item, roomList);
dataAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
rooms.setAdapter(dataAdapter);
} | [
"private void setSpinnerRoom() {\r\n List<String> ids = new ArrayList<>();\r\n for (Room room : roomsSelected) { //On parcourt les pièces sélectionnées\r\n ids.add(room.getName()); //On récupère le nom des pièces\r\n }\r\n ArrayAdapter<String> arrayAdapter = new ArrayAdapter<>... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
POST /merchants : Create a new merchant. | @PostMapping("/merchants")
@Timed
public ResponseEntity<Merchant> createMerchant(@Valid @RequestBody MerchantDTO merchantDTO) throws URISyntaxException {
log.debug("REST request to save Merchant : {}", merchantDTO);
Merchant result = merchantRepository.save(merchantDTO.toMerchant());
mer... | [
"@RequestMapping(value = \"/provideMerchants\",\n method = RequestMethod.POST,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<ProvideMerchant> createProvideMerchant(@RequestBody ProvideMerchant provideMerchant) throws URISyntaxException {\n log.debug(\"RES... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Removes the ith "Userfield" element | public void removeUserField(int i)
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(USERFIELD$0, i);
}
} | [
"public Object removeField( Object n );",
"void removeField(String name) throws JSONException;",
"public void removeAllField()\n {\n _fieldList.removeAllElements();\n }",
"private UserRemove() {\n initFields();\n }",
"public void unsetFields()\r\n {\r\n synchro... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
CM11672 Total Obtain the allocatable case qty. | public long getTotalAllocateCaseQty()
{
return wTotalAllocateCaseQty;
} | [
"public long getAllocationCaseQty()\n\t{\n\t\treturn getBigDecimal(StockControlStock.ALLOCATION_CASE_QTY).longValue();\n\t}",
"public void setTotalAllocateCaseQty(long arg)\n\t{\n\t\twTotalAllocateCaseQty = arg;\n\t}",
"public long getTotalAllocatePieceQty()\n\t{\n\t\treturn wTotalAllocatePieceQty;\n\t}",
"pu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "K_COUNT" $ANTLR start "K_SET" | public final void mK_SET() throws RecognitionException {
try {
int _type = K_SET;
int _channel = DEFAULT_TOKEN_CHANNEL;
// /Users/devdatta.kulkarni/Documents/Cassandra/apache-cassandra-0.8.6-src/src/java/org/apache/cassandra/cql/Cql.g:502:6: ( S E T )
// /Users/de... | [
"Rule SetType() {\n // Push 1 SetTypeNode onto the value stack\n return Sequence(\n \"set \",\n Optional(CppType()),\n \"<\",\n FieldType(),\n \"> \",\n actions.pushSetTypeNode());\n }",
"public long getAllL... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Write header into baos | private static void writeHeader(ByteArrayOutputStream baos, int length,
int address) throws Exception
{
// write header and datablock into baos
if (debugMode)
System.out.println("Write Header: Length: " + length +
" (0x" + Integer.toHexString(length).toUpp... | [
"public void write(CCompatibleOutputStream os) throws Exception {\n header.write(os);\n super.write(os);\n }",
"private void writeHEADER() throws IOException {\n\t\tmeta.compute_checksum();\n\t\tmeta.write();\n\t\t\n\t\t// We could also generate a non-aldus metafile :\n\t\t// writeClipboardHeader(meta);... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Utility method to navigate throw the tree and extract the paths for given expression type | public void paths(Class<? extends IExpression> expressionType, IExpression parent, List<IExpression> currentPath, List<List<IExpression>> paths) {
for (IExpression expression : parent.getExpressions()) {
List<IExpression> currentPath_ = HashUtil.getList(currentPath);
currentPath_.add(expression);
if (exp... | [
"String getPathMatchingExpression();",
"private String getPath(Element e) {\n String path = \"\";\n Element parent = e.getParentElement();\n while (parent != null) {\n path = getSyntax(parent) + path;\n parent = parent.getParentElement();\n }\n return path;... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the value of the 'var107' field. | public java.lang.CharSequence getVar107() {
return var107;
} | [
"public java.lang.CharSequence getVar107() {\n return var107;\n }",
"public java.lang.Integer getVar109() {\n return var109;\n }",
"public java.lang.Integer getVar109() {\n return var109;\n }",
"public java.lang.Integer getVar105() {\n return var105;\n }",
"public java.lang.CharSequence ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return a Map from the stream. If there are similar keys in the stream, the merge function will be applied to merge the values of those keys | default Map<K, V> collect(BinaryOperator<V> mergeFunction) {
return collect(toMap(Entry::getKey, Entry::getValue, mergeFunction));
} | [
"default MapStream<K, List<V>> mergeKeys() {\n return of(collect(groupingBy(Entry::getKey, mapping(Entry::getValue, toList()))));\n }",
"default MapStream<K, V> mergeKeys(BinaryOperator<V> mergeFunction) {\n return of(collect(mergeFunction));\n }",
"public static Map<String, String> convertT... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
POST /prixtickets : Create a new prixTicket. | @PostMapping("/prix-tickets")
@Timed
public ResponseEntity<PrixTicketDTO> createPrixTicket(@RequestBody PrixTicketDTO prixTicketDTO) throws URISyntaxException {
log.debug("REST request to save PrixTicket : {}", prixTicketDTO);
if (prixTicketDTO.getId() != null) {
throw new BadRequest... | [
"@PostMapping(\"/tickets\")\n @Timed\n public ResponseEntity<Ticket> createTicket(@Valid @RequestBody Ticket ticket) throws URISyntaxException {\n log.debug(\"REST request to save Ticket : {}\", ticket);\n if (ticket.getId() != null) {\n throw new BadRequestAlertException(\"A new tick... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Factory method for creating a leccmachinespecific executor. | @Override
public CALExecutor makeExecutor(ExecutionContext context) {
return new org.openquark.cal.internal.machine.lecc.Executor(theProgram, resourceAccess, context);
} | [
"ExecutorService newExecutor(String name);",
"Machine createMachine();",
"@Override\n\t\tpublic ExecutorService createExecutorService() {\n\t\t\treturn Executors.newFixedThreadPool(this.teamSize, this.threadFactory);\n\t\t}",
"private DefaultExecutorSupplier() {\n\n // setting the thread factory\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a Shape instance with specified x, y, deltaX and deltaY values. The Shape object is created with a default width and height. | public Shape(int x, int y, int deltaX, int deltaY) {
this(x, y, deltaX, deltaY, DEFAULT_WIDTH, DEFAULT_HEIGHT);
} | [
"public Shape(int x, int y, int deltaX, int deltaY) {\n\t\tthis(x, y, deltaX, deltaY, DEFAULT_WIDTH, DEFAULT_HEIGHT);\n\t}",
"public Shape(int x, int y, int deltaX, int deltaY, int width, int height) {\n\t\t_x = x;\n\t\t_y = y;\n\t\t_deltaX = deltaX;\n\t\t_deltaY = deltaY;\n\t\t_width = width;\n\t\t_height = heig... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column TRSDEAL_BALLOON_CALC.PAYMENT_DATE | public Date getPAYMENT_DATE() {
return PAYMENT_DATE;
} | [
"public Date getPayOrderDT() {\n return payOrderDT;\n }",
"public Date getDateToPay() {\n return dateToPay;\n }",
"public Date getPaidDate(){\n //return paid date\n return new Date(this.paidDate);\n }",
"public String getLastPaymentDate() {\n\t\treturn stateEqualMasterDao.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Adds context to the "public" namespace | public void setPublicContext(String key, String value) {
setContext(PUBLIC_NAMESPACE, key, value);
} | [
"public void setContext(Object context);",
"Context createContext();",
"public void setCurrentContext(HttpContext context) {\r\n this.currentContext = context;\r\n }",
"public void setContext(Context context) {\n this.contextMain = context;\n }",
"public void setContext(Object context)\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
remove brackets around IPv6 address in host name | String cleanHostString(String host) {
if (host.charAt(0) == '[' && host.charAt(host.length() - 1) == ']') {
host = host.substring(1, host.length() - 1);
}
return host;
} | [
"private static String correctIPv6Str(String s) {\n int counter = 0;\n for (int i = 0; i < s.length(); i++) {\n if (s.charAt(i) == ':') {\n counter++;\n if (i > 0) {\n if (s.charAt(i - 1) == ':') {\n return s;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the result of interpreting the object as an instance of 'Group'. This implementation returns null; returning a nonnull result will terminate the switch. | public T caseGroup(Group object) {
return null;
} | [
"public T caseGroupClass(GroupClass object) {\r\n\t\treturn null;\r\n\t}",
"public T caseGroupM(GroupM object) {\n\t\treturn null;\n\t}",
"public T caseGroupOpt(GroupOpt object)\n\t{\n\t\treturn null;\n\t}",
"public T caseGroupType(GroupType object) {\n\t\treturn null;\n\t}",
"public T caseGroupComponents(G... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
If attribute is not a primary key, set null at position position of ps, else set attribute | public void setNull (PreparedStatement ps, String line, boolean key, int position, Date attribute) throws SQLException {
if (line.length() == 0 && !key) {
ps.setDate(position, null);
} else {
ps.setDate(position, attribute);
}
} | [
"public void setNull (PreparedStatement ps, String line, boolean key, int position, int attribute) throws SQLException {\n\t\tif (line.length() == 0 && !key) {\n\t\t\tps.setNull(position, java.sql.Types.INTEGER);\n\t\t} else {\n\t\t\tattribute = Integer.parseInt(line);\n\t\t\tps.setInt(position, attribute);\n\t\t}\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
GLES20.glBindFramebuffer(GLES20.GL_FRAMEBUFFER, fboId[0]); This multiplies the view matrix by the model matrix, and stores the result in the MVP matrix (which currently contains model view). | private void drawStatic() {
Matrix.multiplyMM(mMVPMatrix, 0, mViewMatrix, 0, mModelMatrix, 0);
// Pass in the modelview matrix.
GLES20.glUniformMatrix4fv(mMVMatrixHandle, 1, false, mMVPMatrix, 0);
// This multiplies the modelview matrix by the projection matrix, and stores the result i... | [
"public void pushModelMatrix()\r\n\t{\r\n\t\tgl.glMatrixMode(GL_MODELVIEW);\r\n\t\tgl.glPushMatrix();\r\n\t}",
"public void bind() {GLES20.glBindFramebuffer(GLES20.GL_FRAMEBUFFER, mFrameBufferHandle[0]);}",
"private void updateMvpMatrix() {\n multiplyMM(modelViewMatrix, 0, viewMatrix, 0, modelMatrix, 0);... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test finding an order by cart order GUID will not return an order that does not match the cart order GUID. | @DirtiesDatabase
@Test
public void testFindLatestOrderGuidByCartOrderGuidWhenManyOrdersExistForACartOrderButDoesNotMatchCartOrderGuidArgument() {
createOrderWithCartOrderGuid(product, CART_ORDER_GUID);
String result = orderService.findLatestOrderGuidByCartOrderGuid(DIFFERENT_CART_ORDER_GUID);
assertNull("There ... | [
"@DirtiesDatabase\n\t@Test\n\tpublic void testFindLatestOrderGuidByCartOrderGuidWhenNoCartOrdersExist() {\n\t\t// create an order with no cart order GUID assigned\n\t\tpersistOrder(product);\n\t\tString result = orderService.findLatestOrderGuidByCartOrderGuid(NON_EXISTENT_CART_ORDER_GUID);\n\t\tassertNull(\"There s... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Parameterized constructor taking the data source, item writer and output file path. | public ResultHandlerDaoFactory(DataSource datasource, ItemWriter itemWriter, String outputFilePath) {
setDatasource(datasource);
setItemWriter(itemWriter);
setOutputFilePath(outputFilePath);
} | [
"public ResultHandlerDaoFactory(DataSource datasource, ItemWriter itemWriter, Writer writer) {\n setDatasource(datasource);\n setItemWriter(itemWriter);\n setWriter(writer);\n }",
"public ResultHandlerDaoFactory(DataSource datasource, ItemWriter itemWriter) {\n this(datasource, item... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Instantiates a new id repo app unchecked exception. | public IdRepoAppUncheckedException(IdRepoErrorConstants exceptionConstant, Throwable rootCause, String id) {
this(exceptionConstant.getErrorCode(), exceptionConstant.getErrorMessage(), rootCause);
this.id = id;
} | [
"public IdRepoAppUncheckedException() {\n\t\tsuper();\n\t}",
"public IdRepoAppUncheckedException(IdRepoErrorConstants exceptionConstant, String id) {\n\t\tthis(exceptionConstant.getErrorCode(), exceptionConstant.getErrorMessage());\n\t\tthis.id = id;\n\t}",
"public IdRepoAppUncheckedException(IdRepoErrorConstan... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |