query stringlengths 8 1.54M | document stringlengths 9 312k | negatives listlengths 19 20 | metadata dict |
|---|---|---|---|
Extracts file to the specified directory using any user defined parameters in UnzipParameters | public void extractFile(ZipModel zipModel, String outputPath, UnzipParameters unzipParameters,
ProgressMonitor progressMonitor, boolean runInThread, char[] password) throws ZipException {
extractFile(zipModel, outputPath, unzipParameters, null, progressMonitor, runInThread, password);
... | [
"public void extractFile(ZipModel zipModel, String outputPath, UnzipParameters unzipParameters, String newFileName,\r\n ProgressMonitor progressMonitor, boolean runInThread, char[] password) throws ZipException {\r\n if (zipModel == null) {\r\n throw new ZipException(\"input zipMode... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates and returns a QueryTranslator appropriate for the specified query parameter. Sets translator "query" and "adapter" property. This factory method allows subclasses to specify their own translators that implement vendorspecific optimizations. | public QueryTranslator getQueryTranslator(Query query) throws Exception; | [
"public RequestTranslator getQueryTranslator() {\n\t\treturn QUERY_TRANSLATOR;\n\t}",
"void setQueryTranslation(java.lang.String queryTranslation);",
"Query newQuery(String language, Object query);",
"Query newQuery (String language, Object query);",
"public CDOQuery createQuery(String language, String quer... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Show notification in the bottom of activity as a "Snackbar" | public void showNotification(String notificationText) {
View parentLayout = findViewById(android.R.id.content);
Snackbar mySnackbar = Snackbar.make(parentLayout, notificationText, Snackbar.LENGTH_LONG);
mySnackbar.show();
} | [
"@Override\n public void showNotification(String message) {\n View parentLayout = findViewById(android.R.id.content);\n Snackbar mySnackbar = Snackbar.make(parentLayout, message, Snackbar.LENGTH_LONG);\n mySnackbar.show();\n //TODO: Fab intersection avoidance\n }",
"void showSnac... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
get docs names by matrix | public List<String> getDocNameByMatrix(File[] files, int res[]){
List<String> list = new ArrayList<String>();
for (int i = 0; i < res.length; i++) {
if(res[i] == 1) list.add(files[i].getName());
}
return list;
} | [
"public interface DocumentNameFinder {\n\n /**\n * Returns tokens span for the specified document of sentences and their tokens.\n * Span start and end indices are relative to the sentence they are in.\n * For example, a span identifying a name consisting of the first and second word\n * of the s... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Change the frame's percentages of the main frame, and updates the size. | protected final void changeFramePercents(final double theXPerc, final double theYPerc) {
myXPerc = theXPerc;
myYPerc = theYPerc;
updateSize(getSize());
} | [
"private void sizeFrame()\r\n\t{\r\n//\t\tmainBox.revalidate();\r\n//\t\tDimension pSize = mainBox.getPreferredSize();\r\n//\t\tsetSize((int) pSize.getWidth() + 75, (int) pSize.getHeight() + 50);\r\n//\t\trevalidate();\r\n//\t\trepaint();\r\n\t}",
"@Override\n\tpublic void addNotify()\n\t{\n\t\tfinal Dimension si... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR start "delColumnFamily" /home/kane/apachecassandra0.7.4src/src/java/org/apache/cassandra/cli/Cli.g:312:1: delColumnFamily : DROP COLUMN FAMILY columnFamily > ^( NODE_DEL_COLUMN_FAMILY columnFamily ) ; | public final CliParser.delColumnFamily_return delColumnFamily() throws RecognitionException {
CliParser.delColumnFamily_return retval = new CliParser.delColumnFamily_return();
retval.start = input.LT(1);
CommonTree root_0 = null;
Token DROP157=null;
Token COLUMN158=null;
... | [
"public final CliParser.delStatement_return delStatement() throws RecognitionException {\n CliParser.delStatement_return retval = new CliParser.delStatement_return();\n retval.start = input.LT(1);\n\n CommonTree root_0 = null;\n\n Token DEL124=null;\n CliParser.columnFamilyExpr_re... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
service REST delete item from a specific shopping list | @DELETE
@Path("{id}/{idItem}")
@Produces(MediaType.APPLICATION_XML)
@Consumes(MediaType.APPLICATION_FORM_URLENCODED)
public void deleteItemInShoppingList(@PathParam("id") Long id, @PathParam("idItem") Long idItem) throws WebApplicationException {
boolean b = sls.deleteItemShoppingList(id, idItem... | [
"@DELETE\n @Path(\"{id}\")\n @Produces(MediaType.APPLICATION_XML)\n public void deleteShoppingList(@PathParam(\"id\") Long id) throws WebApplicationException {\n boolean b = sls.deleteShoppingList(id);\n if (b == false) {\n throw new WebApplicationException(Response.Status.NOT_FOUN... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets this classes BitSet mask to new mask. | public void setBitSetMask(BitSet mask) {
newMask = mask;
} | [
"public void setMask(BitSet newMask) {\r\n mask = newMask;\r\n entireImage = false;\r\n }",
"void setMask(Mask newMask) throws MatrixException;",
"public void setMask(BitSet imageMask) {\r\n mask = imageMask;\r\n }",
"public BitSet getBitSetMask() {\r\n return newMask;\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Generate the Lens field ("theXxx" field). | public GenField generateTheLensField() {
val choiceName = choiceCase.name;
val choiceTypeName = sourceSpec.sourceType.simpleName();
val caseName = choiceCase.name;
val packageName = sourceSpec.sourceType.packageName();
val encloseName = sourceSpec.sourceType.enclo... | [
"java.lang.String getField1307();",
"java.lang.String getField1406();",
"java.lang.String getField1730();",
"java.lang.String getField1734();",
"java.lang.String getField1020();",
"java.lang.String getField1704();",
"java.lang.String getField1464();",
"java.lang.String getField1032();",
"java.lang.S... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/RelativeLayout n = (RelativeLayout) rootView.findViewById(R.id.no_result); n.setVisibility(View.GONE); | public void clean(){
RelativeLayout r = (RelativeLayout) rootView.findViewById(R.id.no_result);
r.removeAllViews();
} | [
"public void setPLPRecyclerNoResultView()\n {\n recyclerView.setVisibility(View.GONE);\n recyclerViewNoResult.setVisibility(View.VISIBLE);\n }",
"private void hideErrorMessage() {\n RelativeLayout errRl;\n TextView errTextView = (TextView) findViewById(R.id.failme... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Populates stations HashMap by adding line name and relevant stations to each line | public void addToStations(String lineName, ArrayList<String> s)
{
//put line name as key and arraylist as value to stations hashMap
stations.put(lineName, new ArrayList<String>(s));
} | [
"public void createLinkedStructure() {\n\t\t\n\t\tfor (ArrayList<String> s : stations.values())\n\t\t//Check every ArrayList of stations in the stations hashmap\n\t\t{\n\t\t\tArrayList<String> stationsInLine = s;\n\t\t\t// get the arraylist of stations value and put it into a new arraylist stationsInLine\n\t\t\tint... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
If this old language corresponds to a legacy language which was tied to a specific compiler specification, a suitable ID will be returned. | public CompilerSpecID getOldCompilerSpecID() {
Collection<CompilerSpecDescription> compatibleCompilerSpecDescriptions =
langDescription.getCompatibleCompilerSpecDescriptions();
if (!compatibleCompilerSpecDescriptions.isEmpty()) {
return compatibleCompilerSpecDescriptions.iterator().next().getCompilerSpecID();... | [
"java.lang.String getLegacyId();",
"String getLangId();",
"Integer getCodeSystemId(String codeSystem);",
"long getCodeId();",
"public String getLegacyId() {\n return this.legacy_id;\n }",
"io.dstore.values.IntegerValue getLanguageId();",
"public native int getEngineID() throws DecoderException;",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Tests the summary page with incomplete request data label is missing | @Test
public void test_donateSummary3_shouldReturn400_missingLabel() {
Map<String, String> data = new HashMap<>(requestData1);
// remove label
data.remove("label");
Result result = callAction(controllers.routes.ref.Donate.summary(), fakeRequest().withFormUrlEncodedBody(data));
// check reply HTTP st... | [
"@Test\n\tpublic void test_donateSummary3_shouldReturn400_missingDescription() {\n\t\tMap<String, String> data = new HashMap<>(requestData1);\n\t\t\n\t\t// remove label\n\t\tdata.remove(\"description\");\n\t\t\n\t\tResult result = callAction(controllers.routes.ref.Donate.summary(), fakeRequest().withFormUrlEncodedB... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Function: SetLatestMoviesString() Description: Takes a JSONObject containing an upcoming movies list and converts it to a string, storing it in the SharedPrefereneces. Parameters : JSONObject latestMovies The JSON data containing the list of upcoming movies Return: : N/A | public void SetLatestMoviesString(JSONObject latestMovies)
{
sharedPreferences.edit().putString("UpcomingMovies", latestMovies.toString()).commit();
} | [
"public void SetSearchMoviesString(JSONObject searchResults)\n {\n sharedPreferences.edit().putString(\"SearchMovies\", searchResults.toString()).commit();\n }",
"private void getMoviesFromJson(String moviesJsonStr) throws JSONException {\n\n // These are the names of the JSON objects that nee... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create a detached, initialised MrktCmpttrRecord | public MrktCmpttrRecord(BigDecimal mrktId, BigDecimal cmpttrId, String crncyCd, String cmpttrBusTxt, String retlTyp, String mrktShrPctTxt, String cmpttnTyp, String bnchmrkClmsTxt, String trnvrAmtTxt, String strtgyTxt, String futrDirctnTxt, String plndMrktgInvstmtsTxt, String creatUserId, Date creatTs, String lastUpdtUs... | [
"public MrktCmpttrRecord() {\n\t\tsuper(MrktCmpttr.MRKT_CMPTTR);\n\t}",
"public MailAttachmentRecord() {\n super(MailAttachment.MAIL_ATTACHMENT);\n }",
"public MrktPromtnCmplncRecord(BigDecimal patrnId, BigDecimal mrktId, String patrnDescTxt, String patrnValTxt, BigDecimal patrnLen, String dcsnTag, Bi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Throw an Intent to the MyMessagesActivity class. The FLAG_ACTIVITY_CLEAR_TOP flag is set, which ensures that no more than one instance of such a class will be created for the current task stack. | public void myMessages(View v) {
Intent intent = new Intent(RootMenuActivity.this,
MyMessagesActivity.class);
intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
startActivity(intent);
} | [
"public static void pushWithClearTop(Activity activity, Intent objIntent) {\n objIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n activity.startActivity(objIntent);\n activity.finish();\n activity.overridePendingTransition(R.anim.pull_in_left, R.anim.push_out_right);\n }",
"privat... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Updates the parameters of a single Backup. | public com.google.longrunning.Operation updateBackup(
com.google.cloud.alloydb.v1alpha.UpdateBackupRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getUpdateBackupMethod(), getCallOptions(), request);
} | [
"BackupPolicy.Update update();",
"public abstract void updateBackup() throws OperationInterruptedException;",
"Update withBackupDriveManifest(Boolean backupDriveManifest);",
"public void setBackupId(String backupId) {\n this.backupId = backupId;\n }",
"public void setbackupdone(String customerid){\n\t\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the customerName value for this Address. | public java.lang.String getCustomerName() {
return customerName;
} | [
"public String customerName() {\n return this.innerProperties() == null ? null : this.innerProperties().customerName();\n }",
"public String getCustomerName() {\n return (String) getAttributeInternal(CUSTOMERNAME);\n }",
"public String getCustomerName() {\r\n return name.getName();\r\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Drops this collection, removing all of the documents it contains from the DB | public void drop() {
this.name = null;
this.file.delete();
this.documents.clear();
} | [
"private void removeAllDocuments () {\n\t\tLOG.info(\"Remove all documents in collection : \" + COLLECTION_NAME);\n\t\t\n\t try {\n\t \tMongoClient mongoClient = new MongoClient(new MongoClientURI(SERVER_URL));\n\t \tMongoDatabase database = mongoClient.getDatabase(DATABASE_NAME);\n\t \tMongoCollection<... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns true if the light has shadow casting enabled. | public boolean isShadowCastingEnabled() {
return this.enableShadows;
} | [
"public boolean hasShadow() {\n\t\treturn !hasElevation() && getShadowRadius() > 0.0f;\n\t}",
"public final boolean getShadowEnabled() {\n return mShadowEnabled;\n }",
"public boolean getDisplayShadows();",
"public Boolean getShadow() {\r\n\t\treturn shadow;\r\n\t}",
"public boolean isHasLight() {... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/here used a loop to place and the number of segments defined by a constant | private void caterpillar(int segments) {
for (int i= 0; i<SEGMENTS; i++){
creatingCircle(i);
}
} | [
"private void createSegments () {\n // this call will remove each segment from the MarkerChangeListener list\n // of the start and end Marker objects of the segment. If we don't do\n // this the segments will not be garbage collected.\n stopSegmentsListening ();\n\n segments = new FeatureSegmentVect... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the value of the 'TransferSerials' field. | public java.util.List<TransferSerial> getTransferSerials() {
return TransferSerials;
} | [
"public java.util.List<TransferSerial> getTransferSerials() {\n return TransferSerials;\n }",
"public void setTransferSerials(java.util.List<TransferSerial> value) {\n this.TransferSerials = value;\n }",
"public boolean hasTransferSerials() {\n return fieldSetFlags()[3];\n }",
"public Buil... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets a value, but if the value isn't there, it reserves the slot where it will go with a new instance where the key matches, but the type is a unique value. Threading: not synchronized for main path where get is finding an element. Since elements are never updated, there is no race if an element is found. And it doesn'... | FeatureStructureImpl getReserve(final int key, final int hash) {
boolean isLocked = false;
final int[] probeInfo = probeInfoGet.get();
try {
retry:
while (true) { // loop back point after locking against updates, to re-traverse the bucket chain from the beginning
resetProbeInfo(probeInfo)... | [
"private HashTableNode<K, V> getNodeWithValue(V value) {\n if (size() == ??) {\n return null;\n }\n\n\t// This seems too tough for Sketch\n\tint bs = buckets.size();\n\tint b = {|this.size, this.currentCapacity, this.capacityGrowth,\n\t\t this.initialCapacity, bs|};\n\tfor (int i = ??; i < ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
A service used to create and manage token buckets. | public interface ITokenBucketService {
public static final String KEY = "TokenBucketService";
/**
* Create a token bucket.
* @param capacity Capacity of the bucket.
* @param speed Speed of the bucket. Bytes per millisecond.
* @return <tt>null</tt> if fail to create.
*/
ITokenBucket createTokenBucket(long ... | [
"ITokenBucket createTokenBucket(long capacity, long speed);",
"protected void createBucket() {\n }",
"Map<String, Object> createBucket(String key);",
"BucketEntity createBucket(BucketEntity bucket);",
"public interface MetadataService {\n\n /**\n * Creates the given bucket.\n *\n * @param ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructs a new subscription list for all events that occur within a namespace. | private SubscriptionList getNamespaceSubscriptions(String baseNS) throws RepositoryException {
SubscriptionResource sr = namespaceCache.get( baseNS );
if (sr == null) {
try {
sr = new SubscriptionResource( fileUtils, baseNS, null, null );
namespaceCache.put( baseNS, sr );
} catch (... | [
"Collection<Subscription> getSubscriptions();",
"Collection<Subscription> listSubscriptions() throws IOException;",
"Collection<Service> getAllSubscribeService();",
"java.util.concurrent.Future<ListEventSubscriptionsResult> listEventSubscriptionsAsync(ListEventSubscriptionsRequest listEventSubscriptionsReques... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Prints to the Display Pane the name, number and balance of the receiver. | public void displayDetails()
{
System.out.println("Holder Name: " + this.getHolder());
System.out.println("Account Num: " + this.getNumber());
System.out.println("Balance: " + this.getBalance());
} | [
"public void displayDetails() {\n\t\t//System.out.println(\"Account number is \" + accountNum);\n\t\tSystem.out.println(\"Balance is \" + balance);\n\t}",
"public void print() \n\t{\n\t System.out.println(\"\\nBank Name : \" + getBankName() + \n\t\t\t \"\\nAccount Holder : \" + accountName + \... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Schedules a task to purge the given map. An updatetask will be scheduled right after the purge, to get the map uptodate again. | boolean scheduleMapPurgeTask(BlueMapMap map) throws IOException; | [
"boolean scheduleMapUpdateTask(BlueMapMap map, boolean force);",
"private void deleteStaleTasks() {\n taskProvider.removeStaleTasks(HOURS.toMillis(TASK_PURGE_INTERVAL));\n }",
"boolean scheduleMapUpdateTask(BlueMapMap map, Collection<Vector2i> regions, boolean force);",
"default boolean scheduleMapU... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
We assume that any 500 range error for Google is something we should retry. | public static boolean isGoogleServiceUnavailableException(IOException e) {
if (e instanceof GoogleJsonResponseException) {
int code = ((GoogleJsonResponseException) e).getDetails().getCode();
return code >= 500 && code < 600;
}
return false;
} | [
"private void detectRateLimitingElseRethrow(StravaUserEntity stravaUserEntity, String endpoint, RestClientException e)\n throws StravaApiException {\n\n if(e instanceof HttpStatusCodeException) {\n HttpStatusCodeException httpStatusCodeException = (HttpStatusCodeException)e;\n Ht... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
creates a new PButton object. With its center point at x, y and a size of width and height. The label font is Arial 14 pt. to change this use the appropriate functions. | public PButton(float x, float y, float width, float height, String label, PApplet p){
this.p = p;
this.setSize(width, height);
this.setLocation(x, y);
this.setChecked(false);
this.textFont = this.p.createFont("Arial", 14, true);
this.text = label;
this.stroke = 0; //40
this.strokeHighl... | [
"public BoardSizeButton(final String theLabel) {\r\n super();\r\n myLabel = theLabel;\r\n myButtonAreaSize = new Dimension(ORIG_SIZE.width * M + AREA_PADDING,\r\n ORIG_SIZE.height * M + AREA_PADDING);\r\n myRect = new Rectangle(0, 0, ORIG_SIZE.widt... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Adds name and InChI information to a CML molecule. | private static void enhanceCMLMolecule(IMolecule mol, Element cmlMolElem, String name) {
String inchi = ConverterToInChI.getInChI(mol);
if(inchi != null) {
Element identifier = new Element("identifier");
identifier.addAttribute(new Attribute("convention", "iupac:inchi"));
identifier.appendChild(inchi);
... | [
"public abstract void setInChI(String inchi);",
"public void putMoleculeInCilia(){\n\t\t\tcilia.setOdorantMolecule(molecule);\n\t\t}",
"void setMolecule(String mol, Object conc);",
"public static String cmlToInChI(Element cmlMol) throws Exception {\n\t\treturn ConverterToInChI.getInChI(cmlToMolecule(cmlMol));... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
getter for isFullCycle boolean | public boolean isFullCycle() {
return isFullCycle;
} | [
"public void setFullCycle(boolean isFullCycle) {\r\n\t\tthis.isFullCycle = isFullCycle;\r\n\t}",
"public boolean inCycle() {\n return cycleDepth > 0;\n }",
"public boolean isFirstCycle() {\n return cycle == 0;\n }",
"public boolean isSetCycle() {\n return EncodingUtils.testBit(__isset_bitfiel... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
initializes our processes arraylist based on job mix | public static void initProcesses(int jobMix, int sizeOfProcess, int numReferencesPerProcess) {
if(jobMix == 1){
processes.add(new Process(1.0, 0.0, 0.0, sizeOfProcess, numReferencesPerProcess, 1));
}
else if( jobMix == 2){
processes.add(new Process(1.0, 0.0, 0.0, sizeOfProcess, numReferencesPerProcess, 1... | [
"private void initializeJobs(){\n\t\tjobs = new Job[jobCount];\n\t}",
"public void getJobMixAndMakeProcesses(){\n if(jobType == 1){\n //type 1: there is only one process, with A=1 and B=C=0\n //since there is only one process, no the currentWord is 111%processSize\n process... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Performs the adrenaline card action. | public String itemAdrenalineAction() {
this.updateAllJournals("Player " + playerID + " uses: Adrenaline card.");
Player p = CommonMethods.toPlayer(playerID, playerList);
p.setMoves(2);
usedAdrenalineCard = true;
return "OK";
} | [
"public boolean acknowledgeCardAbility(Card card){\n if(card.isNoble){\n switch(card.getId()){\n\n //add noble from deck to end of card line after collecting this noble\n case \"Capt_Guard\":\n gameState.actionCardPlayed = true;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Construct a new line with a given start and direction. | public Line(Point start, Vector2D direction) {
this(start, start.asVector().add(direction).asPoint());
} | [
"public abstract void addHorizontalLine(int start);",
"public Line(Vector direction) {\n\t\tthis(Vector.ZERO, direction);\n\t}",
"public abstract void addHorizontalLine(int start, int end);",
"Line createLine();",
"ILine createLine(double x1, double y1, double x2, double y2);",
"void addLine(int index, Co... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Access method for claveacceso. | public byte[] getClaveacceso() {
return claveacceso;
} | [
"public ClaveAcceso getClaveAcceso() {\n\t\treturn claveAcceso;\n\t}",
"public String getClaveAcceso(Comprobante comprobante) throws GenericException;",
"public int GetClave() {\n return claveExpediente;\n }",
"public void setClaveacceso(byte[] aClaveacceso) {\r\n claveacceso = aClaveacceso;\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the map sprite. | public Sprite getMapSprite() {
return mapSprite;
} | [
"public static BufferedImage getSprite() {\n return sprite;\n }",
"public BufferedImage getSprite() {\n return loader.GetPokeman(this.getName());\n }",
"public String getSprite() {\n return sprite;\n }",
"public Sprite getSprite() {\n\t\treturn sprites[dir];\n\t}",
"public Image getSprite(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the spreadMinimo value for this CustoEfetivoTotal. | public java.lang.Float getSpreadMinimo() {
return spreadMinimo;
} | [
"public void setSpreadMinimo(java.lang.Float spreadMinimo) {\n this.spreadMinimo = spreadMinimo;\n }",
"public java.lang.Float getSpreadDaOperacao() {\n return spreadDaOperacao;\n }",
"public int getGradoMinimo() {\n\t\treturn grMin;\n\t}",
"public double getPrecioMinimo() {\n\t\treturn th... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
places a Letter on a Case of the Board or returns false if rack doesn't contain letter | public boolean playLetter(Letter e, int x, int y) {
if(rack.contains(e)) {
board.placeLetter(e,x,y);
rack.removeLetter(e);
return true;
} else {
return false;
}
} | [
"public boolean checkLetter(char letter){\n\t\tboolean found=false;\r\n\t\tfor(int i=0;i<this.word.length();i++){\r\n\t\t\t\tif(letter==this.word.charAt(i)){\r\n\t\t\t\t\tfound=true;\r\n\t\t\t\t\tintroduced+=letter;\r\n\t\t\t\t\tgamestatearray[i]=letter;\r\n\t\t\t\t\tgamestate=String.valueOf(gamestatearray);\r\n\t\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
For drawing a door within the confines of this zone to graphics g | private void drawDoor(Graphics g, Color main, Color indents, Color knob) {
g.setColor(main);
fillZone(g);
g.setColor(indents);
g.fillRect(x1 + Adventure.xo + (width / 7), y2 + Adventure.yo + (height / 11), width * 2 / 7, height * 4 / 11);
g.fillRect(x1 + Adventure.xo + (width * 4... | [
"public static void drawDoor(Graphics g){\ng.setColor(Color.blue);\ng.fillRect(170, 250, 25, 50);\ng.setColor(Color.black);\ng.drawRect(170, 250, 25, 50);\n\n//this draws that oval..circle thing in the middle of the door\ng.setColor(Color.black);\ng.drawOval(170, 250, 25, 50 );\ng.setColor(Color.blue);\n\n// this d... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
take note, already the real and imaginary has been declared, the method below takes a new set of values simply add the real parts and the imaginary | public void add(double real, double imaginary){
this.real += real;
this.imaginary += imaginary;
} | [
"public void add(Complex toAdd){\n real = real + toAdd.getReal();\n imag = imag + toAdd.getImag();\n }",
"public void add(Complex other) {\n this.real += other.real;\n this.imag += other.imag;\n }",
"public void setImag(double imag) {this.imag = imag;}",
"Complex(){\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Remove 500 elements from setA | public void remove(){
int counter = 0;
for(int i : setA){
if(counter == 500) return;
int keys[] = map.get(i);
for(int j : keys){
filter[j]--;
}
counter++;
}
} | [
"void removeAllFrom(NumberSet x);",
"private HashSet<Integer> removeNodesFromSet(HashSet<Integer> set, int maxSize) {\n\t\tArrayList<Integer> list = new ArrayList<Integer>(set);\n\n\t\t// Keep removing nodes while the set is too big.\n\t\twhile (list.size() > maxSize) {\n\t\t\tlist.remove(random.nextInt(list.size... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the state of this field from the board to the current player's index. | public void setState(int row, int col) throws ArrayIndexOutOfBoundsException {
board[row][col] = currentPlayer;
} | [
"void setIndexPlayer(int indexPlayer);",
"public void setCurrentPlayer(int index){\n this.currentPlayer=index%4;\n }",
"public void setBoardIndex(int boardIndex) {\n this.boardIndex = boardIndex;\n }",
"public void setPlayerIndex(int playerIndex) {\n this.playerIndex = playerIndex;\n }",... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the experience contributed to the clan by this clan mate. | public long getExperience() {
return experience;
} | [
"public int getExperience() {\n\t\treturn experience;\n\t}",
"public Integer getExperience() {\n return experience;\n }",
"long getExperience();",
"public in.trujobs.proto.PreScreenExperienceObject getExperience() {\n return experience_ == null ? in.trujobs.proto.PreScreenExperienceObject.getDefa... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Delete tokens for given identity | public void deleteTokensForIdentity(Identity identity) throws SystemException; | [
"void deleteToken(String token);",
"private void removeToken(String customerId, String token) {\n // TODO remove the token\n }",
"void removeToken(String token);",
"void deleteAuthorizationToken(User forUser);",
"public void deleteAllToken() throws BusinessException;",
"@DELETE\r\n public voi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a SpriteSheet object of specified width and height in pixel precision. A width = 16 and a height = 32 means a SpriteSheet object 16 pixels wide and 32 pixels tall. | public SpriteSheet(String path, int spriteWidth, int spriteHeight) {
url = getClass().getClassLoader().getResource(path);
this.spriteWidth = spriteWidth;
this.spriteHeight = spriteHeight;
load();
} | [
"public SpriteSheet(SpriteSheet sheet, int xOfs, int yOfs, int width, int height, int spriteWidth, int spriteHeight) {\n int x = xOfs * spriteWidth;\n int y = yOfs * spriteHeight;\n int w = width * spriteWidth;\n int h = height * spriteHeight;\n this.spriteWidth = w;\n this... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets a scaled amount of the byproduct amount | public int getByproductScaled(int scale)
{
return this.byproduct.getFluidAmount() * scale / TOTAL_BYPRODUCT_SPACE;
} | [
"public int scale() {\r\n\t return amount.scale();\r\n\t }",
"public int scale(int original);",
"Integer getCurrencyScale();",
"public int getReservoirAmountScaled(int scale)\n {\n\n return this.getReservoirAmount() * scale / TOTAL_RESERVOIR_SPACE;\n }",
"public final double getScaler()\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the value of the 'Update Data Model' reference. If the meaning of the 'Update Data Model' reference isn't clear, there really should be more of a description here... | DataModel getUpdateDataModel(); | [
"protected String getUpdateString() {\r\n\t\treturn this.updateString;\r\n\t}",
"public UpdateDefinition getDefinition() {\r\n\t\treturn _updateDefinition;\r\n\t}",
"String getUpdate();",
"public String getUpdatePropRegNo() {\n\t\treturn updatePropRegNo;\n\t}",
"public String getDataUpdated() {\n return ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the Scholar ArrayList of committee members. | public ArrayList<Scholar> getCommitteeMembers(){
return committeeMembers;
} | [
"public String getAllCommitteeMembers(){\r\n\t\tString allCommitteeMembers = \"\";\r\n\t\tfor(int index = 0; index < committeeMembers.size(); ++index){\r\n\t\t\tallCommitteeMembers += committeeMembers.get(index).returnNameInString() + \"\\n\\t\";\r\n\t\t}\r\n\t\treturn allCommitteeMembers;\r\n\t}",
"public List<I... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Performs the inverse of the transform to the given rotation matrix by this orientation. The operation is equivalent to prepend the inverse of this orientation to the given rotation matrix. | default void inverseTransform(RotationMatrixBasics matrixToTransform)
{
inverseTransform(matrixToTransform, matrixToTransform);
} | [
"public Rotation inverse(){\n //System.out.println(\"In Rotation::inverse()\");\n // create a copy of this matrix, transpose it, construct and return a Rotation containing it.\n Matrix mat = new Matrix(getMatrix());\n mat = mat.transpose();\n Rotation inverse = new Rotation(mat);\n //S... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Export the view as an SVG. | void exportSvg() throws IOException; | [
"private void handleExportToSVG() {\n FileChooser chooser = new FileChooser();\n chooser.setTitle(\"Export to SVG\");\n FileChooser.ExtensionFilter filter = new FileChooser.ExtensionFilter(\n \"Scalable Vector Graphics (SVG)\", \"*.svg\");\n chooser.getExtensionFilters().a... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
try to recover with the PresenterSavior | @SuppressWarnings("unchecked")
public void onCreate_afterSuper(final Bundle savedInstanceState) {
if (savedInstanceState != null) {
final String recoveredPresenterId =
savedInstanceState.getString(SAVED_STATE_PRESENTER_ID);
if (mPresenter == null) {
... | [
"protected abstract void onPresenterCreatedOrRestored(P presenter);",
"@Override\n protected void onSaveInstanceState(Bundle outState) {\n super.onSaveInstanceState(outState);\n mPresenter.saveState(outState);\n }",
"protected boolean retainPresenter() {\n return true;\n }",
"pri... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Clears the value of the 'MT_SYSTEM' field. | public org.LNDCDC_NCS_TCS.CF_MEDIA_TYPES.apache.nifi.LNDCDC_NCS_TCS_CF_MEDIA_TYPES.Builder clearMTSYSTEM() {
MT_SYSTEM = null;
fieldSetFlags()[7] = false;
return this;
} | [
"public void unsetSystem()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(SYSTEM$0, 0);\n }\n }",
"public void setMTSYSTEM(java.lang.CharSequence value) {\n this.MT_SYSTEM = value;\n }",
"void unsetSystem();",
"public vo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Performance profile that can be used to annotate HLO operations in the computation graph. .tensorflow.RunMetadata hlo_metadata = 5; | public org.tensorflow.framework.RunMetadataOrBuilder getHloMetadataOrBuilder() {
return getHloMetadata();
} | [
"org.tensorflow.framework.RunMetadata getHloMetadata();",
"org.tensorflow.framework.RunMetadataOrBuilder getHloMetadataOrBuilder();",
"public org.tensorflow.framework.RunMetadata getHloMetadata() {\n return hloMetadata_ == null ? org.tensorflow.framework.RunMetadata.getDefaultInstance() : hloMetadata_;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gather specific files from FileStatus | private void gatherFile(FileStatus[] fstat)
{
inputSize = 0;
paths = new Path[fstat.length];
for(int i=0;i<fstat.length;i++)
{
inputSize+=fstat[i].getLen();
paths[i] = fstat[i].getPath();
}
} | [
"comnet.minihadoop.common.message.cli.ListResponse.File getFiles(int index);",
"java.util.List<comnet.minihadoop.common.message.cli.ListResponse.File> \n getFilesList();",
"com.google.devtools.build.lib.buildeventstream.BuildEventStreamProtos.File getFiles(int index);",
"@NonNull\n synchronized Set<St... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__XAssignment__FeatureAssignment_1_1_0_0_1" $ANTLR start "rule__XAssignment__RightOperandAssignment_1_1_1" InternalDroneScript.g:17426:1: rule__XAssignment__RightOperandAssignment_1_1_1 : ( ruleXAssignment ) ; | public final void rule__XAssignment__RightOperandAssignment_1_1_1() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalDroneScript.g:17430:1: ( ( ruleXAssignment ) )
// InternalDroneScript.g:17431:2: ( ruleXAssignment )
... | [
"public final void rule__XAssignment__RightOperandAssignment_1_1_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the value of the P parameter. The plaintext data format is bigendian and rightaligned (the least significant bit is the least significant bit of last byte). Input P parameter data is copied into the internal representation. | void setP( byte[] buffer, short offset, short length) throws CryptoException; | [
"protected void setP1(byte p1) {\n\theader[2] = p1;\n }",
"@objid (\"4a70fdf5-35b2-4c97-bf6d-f67d64977605\")\n void setPBase(Parameter value);",
"public void setP(double p) {\n this.p = p;\n setPID(p, i, d);\n }",
"protected void setP1P2(byte[] p1p2) {\n\tsetP1(p1p2[0]);\n\tsetP2(p1p2[1... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return the L2ItemInstance of the arrows needed for this crossbow. | public L2ItemInstance findArrowForCrossbow(final L2Item xbow)
{
final int[] boltsId = BOLTS[xbow.getCrystalType().externalOrdinal];
L2ItemInstance ret = null;
for(final int id : boltsId)
if((ret = getItemByItemId(id)) != null)
return ret;
return null;
} | [
"public ArrayList<Arrow> getArrows() {\r\n\t\treturn arrows;// return active Arrows\r\n\t}",
"public Object getArrow(int i) {\r\n\t\treturn arrows.get(i);// returns specific Arrow\r\n\t}",
"public abstract ArrowDecoratorStyle getArrowDecorator();",
"public L2ItemInstance findArrowForBow(final L2Item bow)\n\t{... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column ec_cust_phone.is_deault | public String getIsDeault() {
return isDeault;
} | [
"public String getDeaultValue()\n\t{\n\t\treturn deaultValue;\n\t}",
"public String getIsDerate() {\n return isDerate;\n }",
"public String getDebitCard() {\n return debitCard;\n }",
"public int getDownPayment() {\n return downPayment;\n }",
"public float getDeb... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the URL to the first party for cookies used in combination with CefURLRequest. | public abstract String getFirstPartyForCookies(); | [
"public abstract void setFirstPartyForCookies(String url);",
"String getRequestURL();",
"public String buildCookieHeader(URL url) {\r\n String domain = url.getHost();\r\n int dot = domain.indexOf('.');\r\n if (dot >= 0)\r\n domain = domain.substring(dot);\r\n if (domain.eq... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "RULE_LESS_THAN" $ANTLR start "RULE_MORE_THAN" | public final void mRULE_MORE_THAN() throws RecognitionException {
try {
int _type = RULE_MORE_THAN;
int _channel = DEFAULT_TOKEN_CHANNEL;
// ../org.sqlproc.meta/src-gen/org/sqlproc/meta/parser/antlr/internal/InternalProcessorMeta.g:12833:16: ( '>' )
// ../org.sqlp... | [
"public static BinaryExpression greaterThan(Expression expression0, Expression expression1) { throw Extensions.todo(); }",
"private Expr comparison(){\n Expr expr = addition();\n\n while (match(GREATER, GREATEREQ, LESS, LESSEQ)){\n Token op = previous();\n Expr right = addition... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
string prepended_search_string = 2; | public com.google.protobuf.ByteString
getPrependedSearchStringBytes() {
java.lang.Object ref = prependedSearchString_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
pr... | [
"@java.lang.Override\n public java.lang.String getPrependedSearchString() {\n java.lang.Object ref = prependedSearchString_;\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... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
General Sets whether to force selection of the single lowest bitrate audio and video tracks that comply with all other constraints. | public ParametersBuilder setForceLowestBitrate(boolean forceLowestBitrate) {
this.forceLowestBitrate = forceLowestBitrate;
return this;
} | [
"public ParametersBuilder setForceHighestSupportedBitrate(boolean forceHighestSupportedBitrate) {\n this.forceHighestSupportedBitrate = forceHighestSupportedBitrate;\n return this;\n }",
"public boolean hasMinbitrate() {\n return fieldSetFlags()[11];\n }",
"public void setMinbitrate(java.la... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the associativity of the branch target buffer used in the two bit branch predictor. | public int getTwoBitBranchPredictorBranchTargetBufferAssociativity() {
return twoBitBranchPredictorBranchTargetBufferAssociativity;
} | [
"public int getTwoLevelBranchPredictorBranchTargetBufferAssociativity() {\n return twoLevelBranchPredictorBranchTargetBufferAssociativity;\n }",
"public int getCombinedBranchPredictorBranchTargetBufferAssociativity() {\n return combinedBranchPredictorBranchTargetBufferAssociativity;\n }",
"p... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Retorna valor parametrico de reforma tributaria | public String getParamReformaTributaria()
{
return this.paramReformaTributaria;
} | [
"public java.lang.String getValor3();",
"public abstract java.lang.String getValor3();",
"public abstract java.lang.String getValor4();",
"public java.lang.String getValor2();",
"public java.lang.String getValor4();",
"Object getParameterValue(Parameter param);",
"public abstract java.lang.String getVal... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns true if and only if the entire search phrase matches at least one of the task name tokens exactly. | private static boolean searchWholeWord(String searchPhrase, String[] taskNameTokens) {
for (String s : taskNameTokens) {
if (searchPhrase.equals(s)) {
return true;
}
}
return false;
} | [
"private static boolean searchSubstring(String searchPhrase, String[] taskNameTokens) {\n\t\tfor (String s : taskNameTokens) {\n\t\t\tif (s.contains(searchPhrase)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn false;\n\t}",
"@Override\n public boolean test(Person person) {\n return keywords.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Flower1 fl[] = new Flower1[4]; fl[0] = new Flower1("Rose","red","basket", 45.95D); fl[1] = new Flower1("Lilis","purple","bouquet", 25.05); fl[2] = new Flower1("Daisy","white","bouquet", 15.25D); fl[3] = new Flower1("Tulip","orange","basket", 10.75D); System.out.println("Flower Type: " + flr.type); System.out.println("F... | public static void main(String[] args) {
Flower1[] fl = { new Flower1("Rose","red","basket", 45.95D), new Flower1("Lilis","purple","bouquet", 25.05),
new Flower1("Daisy","white","bouquet", 15.25D), new Flower1("Tulip","orange","basket", 10.75D)
};
for (Flower1 a : fl)
... | [
"public static void main(String[] args) {\n\n Addition lettuce = new Addition(1, \"Lettuce\");\n Addition tomato = new Addition(1, \"Tomato\");\n Addition carrot = new Addition(1, \"Carrot\");\n Addition mushroom = new Addition(1, \"Mushroom\");\n Addition onion = new Addition(1, ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get value for careerpath_desc | public String getCareerpath_desc() {
return (String) get("careerpath_desc");
} | [
"public String getCareerpath_id() {\r\n return (String) get(\"careerpath_id\");\r\n }",
"public String getPath()\n\t{\n\t\treturn f_pathField.getText();\n\t}",
"public final String getPathDescription()\n {\n if (tryGetHost() == null)\n {\n return getCanonicalPath();\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
^ means XOR toggleLeft = shift to the left | public void toggleLeft() { barType = barType ^ LEFT; } | [
"public void moveShiftLeft();",
"public static BinaryExpression leftShift(Expression expression0, Expression expression1) { throw Extensions.todo(); }",
"void shiftLeftS(){\n Color sign = getPoint(122);\n shiftLeft();\n setPoint(122, sign);\n }",
"BitvectorFormula shiftLeft(BitvectorFo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Additional Operation > Count the amount of leaf nodes of myBinaryTree: my_leaf_count | public int my_leaf_count(); | [
"public int leafCount(){ \n\treturn leafCount(root);\n}",
"protected int leafCount(ASTRoot tree) {\n // create traverser using mill\n TreesTraverser traverser = TreesMill.traverser();\n LeafCounter counter = new LeafCounter();\n traverser.add4Trees(counter);\n \n // comput... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Run the EClass eStaticClass() method test. | @Test
public void testEStaticClass_1()
throws Exception {
ModelElementImpl fixture = ModelElementImplFactory.createModelElementImpl();
EClass result = fixture.eStaticClass();
assertNotNull(result);
assertEquals(false, result.isInterface());
assertEquals(false, result.isAbstract());
assertEquals(6, resu... | [
"public static void main(String[] args) {\n\n\t StaticTest firstInstance = new StaticTest(\"1st Instance\");\n System.out.println(firstInstance.getName() + \" is instance number \" + StaticTest.getNumInstances());\n\n StaticTest secondInstance = new StaticTest(\"2nd Instance\");\n System.out... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the tags for a shoppingCartConnection. Get all existing shoppingCartConnection tags. | @Test
public void getShoppingCartConnectionTagsTest() throws ApiException {
Integer shoppingCartConnectionId = null;
api.getShoppingCartConnectionTags(shoppingCartConnectionId);
// TODO: test validations
} | [
"List<NewsTag> getAllTags();",
"List<Tag> getTags();",
"List<Tag> getTagList();",
"@ServiceMethod(returns = ReturnType.COLLECTION)\n public PagedIterable<DeviceTag> getAllDeviceTags() {\n return this.serviceClient.getAllDeviceTags();\n }",
"java.util.List<SteammessagesEconSteamclient.CEconItem_... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "object" $ANTLR start "return_sentence" src\\calculator.g:441:1: return_sentence[int tab] returns [String value] : ( expr_value[$tab] |); | public final String return_sentence(int tab) throws RecognitionException {
String value = null;
String expr_value91 =null;
value = null;
try {
// src\\calculator.g:445:2: ( expr_value[$tab] |)
int alt27=2;
int LA27_0 = input.LA(1);
... | [
"Expression getActionSentence();",
"private ReturnStmt returnStmt() {\n Expr myExpr = null;\n \n lexer.nextToken();\n \n if (isFunction) myExpr = expr();\n \n return new ReturnStmt(myExpr); \n }",
"public final ANTLRv3Parser.rule_return rule() throws Recog... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Print the body of the status HTML document on the given print writer. | private void printStatusHtmlBody
(PrintWriter out,
long now)
{
out.println ("<P>");
out.println ("<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0>");
out.println ("<TR>");
out.println ("<TD ALIGN=\"center\" VALIGN=\"top\">");
out.println ("Nodes");
out.println ("<TABLE BORDER=1 CELLPADDING=3 CELLSPACING... | [
"private void printStatusHtmlEnd\n\t\t(PrintWriter out)\n\t\t{\n\t\tout.println (\"<P>\");\n\t\tout.println (\"<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0>\");\n\t\tout.println (\"<TR>\");\n\t\tout.println (\"<TD ALIGN=\\\"left\\\" VALIGN=\\\"top\\\">\");\n\t\tout.println (\"Web interface: \");\n\t\tout.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return the height (vertical size) of the GIF image from the given path (in window coordinates). Return 0, if GIF image is invalid. | public double imageHeight(String imagePath)
{
return _wnd.toWindowHeight(_wnd.getImageHeight(imagePath));
} | [
"public int getImageHeight()\n {\n \n int retVal = getImageHeight_0(nativeObj);\n \n return retVal;\n }",
"public int getHeight() {\n\t\treturn this.img.height;\n\t}",
"public int getHeight(){\n \tif (pcount==0){\n \t\treturn 0;\n \t}\n \treturn boxImages.get(pcoun... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
new columns (id) // | public ScGridColumn<AcFacilityDestinationMapping> newIdColumn()
{
return newIdColumn("Id");
} | [
"public ScGridColumn<AcItem> newIdColumn()\n {\n return newIdColumn(\"Id\");\n }",
"public ScGridColumn<AcActionAutoCorrectedLog> newIdColumn()\n {\n return newIdColumn(\"Id\");\n }",
"public ScGridColumn<AcDomesticCandidateRouteLeg> newIdColumn()\n {\n return newIdColumn(\"I... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the videoUserGuid value for this VideoTimeInfoDTO. | public java.lang.String getVideoUserGuid() {
return videoUserGuid;
} | [
"public java.lang.String getVideoUserDomainGuid() {\n return videoUserDomainGuid;\n }",
"public java.lang.String getVideoUserUserTypeGuid() {\n return videoUserUserTypeGuid;\n }",
"public java.lang.String getVideoGuid() {\n return videoGuid;\n }",
"public java.lang.String getVide... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the list of sensors in the room. The list of sensors stored by the room should always be in alphabetical order, by the sensor's class name. Adding or removing sensors from this list should not affect the room's internal list of sensors. | public List<Sensor> getSensors(){
List<Sensor> sensorListCopy = new ArrayList<>(this.sensorList);
// Comparing class name to sort alphabetically
sensorListCopy.sort((sensor1, sensor2) -> {
if (sensor1.getClass().getSimpleName().equals
(sensor2.getClass().getSimple... | [
"public List<Sensor> getSensorList()\n {\n return new ArrayList<>(sensors.values());\n }",
"public List<Sensor> getSensorList(int type) {\n\t\treturn mgr.getSensorList(type);\n\t}",
"public List<SensorObject> getSensorData(){\n\t\t\n\t\t//Cleaning all the information stored\n\t\tthis.sensorData.cle... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the value of the Reference2 field. The insurer or reinsurer claim reference number 2 | @gw.internal.gosu.parser.ExtendedProperty
public java.lang.String getReference2() {
return (java.lang.String)__getInternalInterface().getFieldValueForCodegen(REFERENCE2_PROP.get());
} | [
"public java.lang.String getReference2() {\n return reference2;\n }",
"public String getRef2() {\n\t\treturn ref2;\n\t}",
"public String getREFERENCE2() {\r\n return REFERENCE2;\r\n }",
"public void setReference2(java.lang.String reference2) {\n this.reference2 = reference2;\n }"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
return list of last completed Download tasks in "ReportStructure" style you can use it as notifier | public List<ReportStructure> lastCompletedDownloads() {
List<ReportStructure> reportList;
List<Task> lastCompleted = tasksDataSource.getUnnoticedCompleted();
reportList = readyTaskList(lastCompleted);
return reportList;
} | [
"private void doViewAllCompletedTasks() {\n ArrayList<Task> t1 = todoList.getListOfCompletedTasks();\n if (t1.size() > 0) {\n for (Task task : t1) {\n System.out.println(task.getTime() + \" \" + task.getDescription() + \" \" + task.getDate());\n }\n } else {... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Affecter le montant de la mise a une case | public void MiserCase(int somme, int num) {
tab[num].setMise(tab[num].getMise() + somme);
} | [
"public void May()\n {\n int may=0;\n calcMay(raiz);\n System.out.println(\"El mayor promedio es: \"+may);\n }",
"private void taillesCases() {\n\t\tthis.largeurCase=gui.getPanelWidth()/this.automate.getNbCol();\n\t\tthis.hauteurCase=gui.getPanelHeight()/this.automate.getNbLig();\n\t}",... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns all the marks for a given student | public ArrayList<Marks> getMarks(Student student) {
ArrayList<Marks> marks = new ArrayList<>();
String query = String.format("SELECT * FROM enrollment WHERE student_id = '%s'", student.getId());
try {
result = statement.executeQuery(query);
while(result.next()){
... | [
"private Map<Course, Integer> generateMarksList()\n\t\t\tthrows StudentEnrollmentException {\n\t\tMap<Course, Integer> marksList = new HashMap<Course, Integer>();\n\t\tCourse newCourse;\n\t\tfor (int i = 0; i < courseID.length; i++) {\n\t\t\tnewCourse = courseDao.getCourse(courseID[i]);\n\t\t\tmarksList.put(newCour... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get speciality of doctor. | public String getSpeciality() {
return this.speciality;
} | [
"public int getDexterity(){\n\t\treturn this.dexterity;\n\t}",
"Doctor getDoctor();",
"public Doctor getDoctor() {\r\n\t\treturn doctor;\r\n\t}",
"@Override\n public java.lang.String getLegalPersonality() {\n return _entityCustomer.getLegalPersonality();\n }",
"public String getDoctor3()\n {... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Easy method to return the default TextButtonStyle as a proper class. | public final TextButton.TextButtonStyle getDefaultTextButtonStyle() {
return get("default_textButtonStyle", TextButton.TextButtonStyle.class);
} | [
"protected final TextButton.TextButtonStyle generateDefaultTextButtonStyle() {\n TextButton.TextButtonStyle buttonStyle = new TextButton.TextButtonStyle();\n buttonStyle.fontColor = Color.GREEN;\n buttonStyle.font = this.get(\"default_font\", BitmapFont.class);\n Sprite sprite = new Spri... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
get method for patient total | public double getTotal (){
return total;
} | [
"public Total getTotal();",
"String getTotale();",
"int getTotal();",
"double getSubtotal();",
"double totalPayment();",
"public int getTotal () {\r\n return total;\r\n }",
"public int getTotal () {\n return total;\n }",
"java.lang.String getSumPaid();",
"public int getPuntuacionTotal(){ ret... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Transform CDSReferenceEntity to PsdReferenceEntity | List<PsdReferenceEntity> wrapReferenceEntity(List<CDSReferenceEntity> xmlReferEntitiesList); | [
"void createOrUpdateReferenceEntity(List<PsdReferenceEntity> psdReferEntities);",
"EntityReference getEntityReference();",
"List<PsdReferenceObligationPair> wrapReferenceObligPair(CDSReferenceObligationPairs refObPairsXmlObject, List<PsdReferenceEntity> listReferenceEntity);",
"private void replaceReferences(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Use ForceExitReqMsg.newBuilder() to construct. | private ForceExitReqMsg(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
} | [
"private ForceExitRspMsg(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"pb4server.CancelMakeSoliderAskReqOrBuilder getCancelMakeSoliderAskReqOrBuilder();",
"public io.confluent.developer.InterceptTest.Builder clearReqMessage() {\n req_message = null;\n fi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Adds the given mutation to the mutations list | public static void add(Mutation mutation) {
mutations.add(mutation);
} | [
"public static void addAll(Collection<? extends Mutation> mutationsToAdd) {\n mutations.addAll(mutationsToAdd);\n }",
"@Test\n public void testMutation() {\n AbstractMutation mutation = Mockito.mock(AbstractMutation.class);\n strand.addMutation(mutation);\n assertEquals(strand.ge... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
carga la tabla y premios | public void cargarTablaPremios() {
this.txtGanador.setText("");
this.tabla.setRowCount(0);
this.tabla.fireTableDataChanged();
String moneda = this.traerTipoMoneda();
SimpleDateFormat formato = new SimpleDateFormat("yyyy/MM/dd");
String fecha = formato.format(this.dateFech... | [
"private void cargarTabla() {\n\t\tObject[] fila = new Object[7];\r\n\t\tfila[1] = txtCedula.getText();\r\n\t\tfila[2] = txtFuncionario.getText();\r\n\t\tfila[3] = util.getDateToString(dcDesde.getDate());\r\n\t\tif (cbTipo.getSelectedIndex() == 1 || cbTipo.getSelectedIndex() == 2) {\r\n\t\t\tfila[4] = util.getDateT... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
cleans up empty burstPairs in thread | private void cleanUp(Thread thread) {
if (thread.getBurstPairs().get(0).getCpuBurst() == 0
&& thread.getBurstPairs().get(0).getIoBurst() == 0)
thread.getBurstPairs().remove(0);
} | [
"private void discardQueued() {\n ChannelBuffer buf;\n\n while (outQueueHead != null) {\n buf = outQueueHead;\n outQueueHead = buf.next;\n recycleBuffer(buf, false);\n }\n outQueueHead = null;\n outQueueTail = null;\n }",
"private void lazyCle... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Generates the querystring objects | public void GenerateQueryString() throws HttpRequestParsingException
{
try
{
m_QueryString = new LinkedHashMap<HttpQueryStringType, LinkedHashMap<String, String>>();
// did we get any params from the URI?
int paramSeperator = m_RequestedURI.indexOf('?');
if (paramSeperator != -1)
{... | [
"public String generateQueryString() {\n QueryString qs = new QueryString();\n\n // build query\n if(this.cursor != null) qs.add(\"cursor\", this.cursor);\n if(this.getLimit() > 0) qs.add(\"limit\",Integer.toString(this.getLimit()));\n if (this.getKeyword() != null) qs.add(\"keywo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
check which genre is selected to add it to the key,value pair extra string | public String checkWhichGenreIsSelected() {
String genre = "";
if (genre1clicked) {
genre = "politics";
} else if (genre2clicked) {
genre = "sex";
} else if (genre3clicked) {
genre = "love";
} else if (genre4clicked) {
genre = "pe... | [
"Builder addGenre(String value);",
"Builder addGenre(Text value);",
"public void addGenre(String newGenre) {\n this.genre.add(newGenre);\n }",
"public void setGenre(String genre);",
"public void setGenre(String genre)\r\n {\r\n this.genre=genre;\r\n }",
"public void setGenre(String newGen... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get solution from parent if the solution has been set Otherwise compute solution | public Solution getSolution()
{
if (this.solution.lengthOfS() == 0) {
// call the main logic of the current algorithm
this.setSolution();
}
return this.solution;
} | [
"public PartialSolution calculateOptimalSolution() {\n\t\twhile (shouldRunSequentially()) {\n\t\t\tPartialSolution currentSolution = unexploredSolutions.poll();\n\n\t\t\t// Check if partial solution contains all the vertices\n\t\t\tif (isComplete(currentSolution)) {\n\t\t\t\treturn currentSolution;\n\t\t\t} else {\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test of getUrl method, of class SPWeb. | @Test
public void testGetUrl() {
System.out.println("getUrl");
String result = instance.getUrl();
assertNotNull(result);
} | [
"@Test\n public void testGetUrl() {\n LOG.entering(CLASS, \"testGetUrl\");\n try{\n String url = URL;\n setUrl(url);\n String result = MarionetteUtil.parseJsonObject(GET(getUri(\"getUrl\", sessionId)).body()).getString(\"url\");\n Assertions.assertTrue(Ob... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Accessor to retrieve the reference to the XTCESpaceSystem object that is associated to the tree node that is represented by the object of this class. | public XTCESpaceSystem getSpaceSystemReference() {
return referenceObject_;
} | [
"public SolarSystem getSystemAssociation() {\n return systemAssociation;\n }",
"public ShipSystem getSystem() {\n\t\treturn system;\n\t}",
"public EntitySystem getSystem() {\n\t\tif (instance == null) {\n\t\t\ttry {\n\t\t\t\tinstance = type.newInstance();\n\t\t\t} catch (Exception e) {\n\t\t\t\tPrint.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__XOtherOperatorExpression__Group__1" $ANTLR start "rule__XOtherOperatorExpression__Group__1__Impl" ../org.xtext.example.helloxcore.ui/srcgen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:4892:1: rule__XOtherOperatorExpression__Group__1__Impl : ( ( rule__XOtherOperato... | public final void rule__XOtherOperatorExpression__Group__1__Impl() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:4896:1: ( ( ... | [
"public final void rule__XOtherOperatorExpression__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:4885:1... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the viewer binding for the table. | IViewerBinding getBinding(); | [
"public TableViewer getTableViewer() {\n\t\treturn _viewer;\n\t}",
"public TableViewer getTableViewer() {\n return viewer;\n }",
"protected TableViewer getTableViewer() {\n\t\treturn tableViewer;\n\t}",
"public StructuredViewer getTableViewer() {\n return tableViewer;\n }",
"Bind... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
define the possibilities of where the scale max comes from. | protected void buildScaleMax(JPanel holder, GridBagConstraints gbc, GridBagLayout gbl) {
JLabel labelScaleMax = new JLabel("Use as scale maximum:");
labelScaleMax.setForeground(Color.black);
labelScaleMax.setFont(serif12);
gbc.gridwidth = GridBagConstraints.RELATIVE;
gbc.anc... | [
"int getMaxScale();",
"double[] setMaxScaling(double[] scaling);",
"void setMaxScale(int value);",
"private void newMax() {\n\t\tif (point.getID() != -1) {\n\n\t\t\t// calculating all 3 cases\n\t\t\tint case1 = left.maxval;\n\t\t\tint case2 = left.val + getP();\n\t\t\tint case3 = case2 + right.maxval;\n\t\t\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ setAlwaysNotify Set the always_notify flag to determine whether or not a MESSAGES_PROCESSED message will be sent every time the list of messages is processed, or only if the list of messages was NOT empty and at least one message returned true. Setting this true can be useful for driving animations. | public void setAlwaysNotify( boolean onoff )
{
this.always_notify = onoff;
} | [
"public void setNotify(boolean flag) {\n this.notify = flag;\n }",
"public void setMessageNotify(java.lang.String messageNotify) {\n this.messageNotify = messageNotify;\n }",
"public void setNotify(String message) {\n\t\tset(\"notify\", message);\n\t}",
"public void setNotify(long notify) ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Provides access to a the set of possible pixelvalue labels of a segmented image. | @Override
public ImageData[] getLabels()
{
ImageData[] r = new ImageData[256]; // BJL: Need to revisit this assumption of 256 pixel values
for (int i=0; i < r.length; i++) {
r[i] = getLabel((double)i);
}
return r;
} | [
"com.google.monitoring.v3.LabelValue getLabelValues(int index);",
"java.util.List<com.google.monitoring.v3.LabelValue> \n getLabelValuesList();",
"java.util.List<com.sri.recognizer.message.RecognizerMessages.SegmentValues> \n getAnnotationsList();",
"public LabelElement[] getLabels();",
"ArrayLi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test method for createSlots(long, long[]). In this case, the bidids is null. | public void testCreateSlots_NullBidIds() throws Exception {
try {
dao.createSlots(1, null);
fail("IllegalArgumentException expected");
} catch (IllegalArgumentException e) {
// should land here
}
} | [
"public void createParkingLot(int no_slots);",
"@Override\r\n\tpublic void createSlots(Map<Integer, ParkingStatus> availableSlots, int noOfSlots) {\r\n\t\tAllocateParkingSlot.logger.info(CURRENT_CLASS_NAME + \"Executing createSlots method\" );\r\n\t\tSystem.out.println(\"Created parking lot with \" + noOfSlots + ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |