query stringlengths 8 1.54M | document stringlengths 9 312k | negatives listlengths 19 20 | metadata dict |
|---|---|---|---|
Returns the progress in percent based on the number of files processed. | Amount getProgressInPercent(); | [
"@Override\n\tpublic float getProgress() throws IOException, InterruptedException {\n\t\treturn (curr_position - startofFile) / (float) (EndOfFile - startofFile);\n\t // 37 - 0 900 - 0 0.041 \n\t}",
"public Double getPercentage(){\n return percentOfFilesAff... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the "ack" element | public com.validar.ResponseValidarDocument.ResponseValidar.Ack getAck()
{
synchronized (monitor())
{
check_orphaned();
com.validar.ResponseValidarDocument.ResponseValidar.Ack target = null;
target = (com.validar.ResponseValidarDocumen... | [
"@Nullable\n\tpublic String getAck() {\n\t\treturn getFirst(ACK);\n\t}",
"messages.Ackinterface.AckInterface getAck();",
"private String readAck()\r\n\t {\r\n\t\t try\r\n\t\t {\r\n\t\t\t StringBuffer stringbuffer = new StringBuffer();\r\n\t\t\t int i = 0;\r\n\t\t\t while(i != 28)\r\n\t\t\t {\r\n\t\t\t\t i = is.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
DELETE request to delete specific appointments | @RequestMapping(path = "/{appointmentId}", method = RequestMethod.DELETE)
@ResponseStatus(HttpStatus.OK)
void deleteById(@PathVariable Long appointmentId) {
appointmentService.deleteById(appointmentId);
} | [
"void deleteAppointment(Appointment target) throws AppointmentNotFoundException;",
"public boolean deleteAppointmentById(Integer id);",
"@DeleteMapping(\"/appointment\")\n public ResponseEntity<String> deleteAppointment(@RequestParam String appointmentId) {\n try {\n appointmentService.dele... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructs an empty hashtable with the given initial size, maximum load factor, and no maximum chain length. The load factor should be a real number greater than 0.0 (not a percentage). For example, to create a hash table with an initial size of 10 and a load factor of 0.85, one would use: HashTable ht = new HashTable(... | @SuppressWarnings("unchecked")
public HashTable(int initSize, double loadFactor) throws IllegalArgumentException
{
// Integer.MAX_VALUE is passed to appear to give an limit based on the limit of the type.
this(initSize, loadFactor, Integer.MAX_VALUE);
} | [
"@SuppressWarnings(\"unchecked\")\n\tpublic HashTable(int initSize, double loadFactor, int maxChainLength) throws IllegalArgumentException \n {\n \tif(initSize <= 0 || loadFactor <= 0.0 || maxChainLength <= 0)\n\t\t\tthrow new IllegalArgumentException();\n \t\n \t// Set instance variables\n \tthis.MA... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the result of interpreting the object as an instance of 'Out Port'. This implementation returns null; returning a nonnull result will terminate the switch. | public T caseOutPort(OutPort object) {
return null;
} | [
"OutputPort getOutPort();",
"public T caseOutputPortStatement(OutputPortStatement object)\n {\n return null;\n }",
"public T caseInPort(InPort object) {\n\t\treturn null;\n\t}",
"public T casePort(Port object)\r\n {\r\n return null;\r\n }",
"public T casePort(Port object)\n {\n return null;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructs an assertion object given its HL formula and assertion mt. | public CycAssertion(CycList hlFormula, CycObject mt) {
//// Preconditions
assert hlFormula != null : "hlFormula cannot be null";
assert ! hlFormula.isEmpty() : "hlFormula cannot be empty";
assert mt != null : "mt cannot be null";
this.hlFormula = hlFormula;
this.mt = mt;
} | [
"Assertion createAssertion();",
"AssertionBlock createAssertionBlock();",
"Assert createAssert();",
"public ConceptAssertion(String x,String c) {\r\n\tsuper();\r\n\tindividual=x;\r\n\tconcept=c;\r\n}",
"<C, PM> LetExp<C, PM> createLetExp();",
"Assertion()\r\n {\r\n }",
"public static String createCo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
changes the current page of hte current client | public void changePage(Page page) {
currentClient.changePage(page);
this.page = currentClient.getCurrentPage();
this.refresh();
} | [
"public void changePage(Block223MainPage.Page page){\n framework.changePage(page);\n }",
"public void UpdateCurrentPage() {\n Page currentPage = new Page(this.driver.getCurrentUrl(), this.driver.getTitle(), this.driver.getWindowHandle());\n \n if (!currentPage.equals(this.focusedPag... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Getter for the server start button | public JButton getStartButton() {
return startButton;
} | [
"public JButton getStartServerButton() {\n return startServerButton;\n }",
"public JButton getStartButton() {\r\n\t\treturn startButton;\r\n\t}",
"public JButton getStartButton() {\n\t\treturn startButton;\n\t}",
"public MenuButton getStartButton() {\n return startButton;\n }",
"public J... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set the value of processDt | public void setProcessDt(Date processDt) {
_processDt = processDt;
} | [
"public Date getProcessDt() {\n return _processDt;\n }",
"public void setProcessTransmissionDate(Date processTransmissionDate) {\n this.processTransmissionDate = processTransmissionDate;\n }",
"void setCreatedWith(PROCESS process);",
"public void setExeDate(Date exeDate);",
"public void ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Is used for removing all formula menus before placing a new one as well as clearing both memo and main display | private void resetFormulaMenu()
{
missingVarIndex = 0;
calc.clearMemoDisplay();
calc.clearMainDisplay();
remove(e1);
remove(e2);
remove(e3);
remove(e4);
remove(e5);
remove(e6);
} | [
"private void clear() {\n mainTextArea.setText(\"\"); // this can be changed to null or \"\" and do the same thing (removes text)\n menuArea.removeAll(); // get rid of those buttons!\n refresh(); // repaint and refresh\n }",
"public void clearMenuItems() {\n menuItemNames.clear(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
method to return the singleton Main Memory object. The only way to get the singleton Main Memory object. | public static MainMemory getInstance(){
return memory;
} | [
"public static Memory getInstance() {\r\n\t\tif (instance == null) {\r\n\t\t\tinstance = new Memory();\r\n\t\t}\r\n\t\treturn instance;\r\n\t}",
"public static Memory getInstance(){\n if (mem == null) mem = new Memory(4000);\n return mem;\n }",
"public MainMemory getMem()\n {\n return... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Places a fleet in diagonal lines. | public static void placeFleetDiagonally(final Field field,
final Fleet fleet) {
int i = 0, j = 0;
while (!fleet.isReady()) {
if (fleet.getNextNonPlacedShip().isPresent()) {
final Ship ship = fleet.getNextNonPlacedShip().get();
field.placeShip(shi... | [
"public String slashDiagonal() {\n StringBuilder sb = new StringBuilder(height);\n\n for (int h = 0; h < height; h++) {\n int w = lastCol + lastTop - h;\n\n if (0 <= w && w < width) {\n sb.append(grid[h][w]);\n }\n }\n\n return sb.toString(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Fetch funcionarios by request. | public InternalResultsResponse<Funcionario> fetchFuncionariosByRequest(FuncionarioInquiryRequest request); | [
"public InternalResultsResponse<Funcionario> fetchFuncionarioById(FetchByIdRequest request);",
"public InternalResultsResponse<HorarioFunc> fetchHorafuncsByRequest(HoraFuncInquiryRequest request);",
"public FilialResponse fetchAllFilialFilial(Request request);",
"Map<RequestUtil.RequestType, RequestFunction> ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Tests that a segment is properly created between two points | @Test
public void testCreateSegment() {
Point startPoint = view.mapPoints[0];
Point endPoint = view.mapPoints[1];
MotionEvent down = createMotionEvent(MotionEvent.ACTION_DOWN, startPoint.x, startPoint.y);
MotionEvent up = createMotionEvent(MotionEvent.ACTION_UP, endPoint.x, endPoint... | [
"@Test\n public void testDontCreateSegmentFirstAndLastPointSame() {\n Point startPoint = view.mapPoints[0];\n MotionEvent down = createMotionEvent(MotionEvent.ACTION_DOWN, startPoint.x, startPoint.y);\n MotionEvent up = createMotionEvent(MotionEvent.ACTION_UP, startPoint.x, startPoint.y);\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get a list of all occurrences of the field Field29G in the given message an empty list is returned if none found. | public static java.util.List<Field29G> getAll(final SwiftMessage msg) {
if (msg == null || msg.getBlock4()==null || msg.getBlock4().isEmpty())
return null;
return getAll(msg.getBlock4());
} | [
"public static List<Field61> getAll(final SwiftMessage msg) {\n if (msg == null || msg.getBlock4() == null || msg.getBlock4().isEmpty()) {\n return java.util.Collections.emptyList();\n }\n return getAll(msg.getBlock4());\n }",
"public static Field29G get(final SwiftMessage msg) ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Check if workflow is active or completed. | boolean isWorkflowActive(Long processInstanceId); | [
"public boolean isWithinWorkflow() {\n \treturn getWorkflowLevel() >0;\n }",
"public boolean isPaused(WorkflowID workflowID) throws Exception;",
"boolean isActive(@Nonnull WorkflowScheme workflowScheme);",
"public static boolean isWorkflowProcess ()\n\t{\n\t\tif (s_workflow == null)\n\t\t{\n\t\t\ts_work... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Retrieves the software package artifact Id, as stated in the MANIFEST.MF | public String getArtifactId() {
checkStatus();
return info.getOrDefault("Implementation-Artifact", null);
} | [
"java.lang.String getArtifactId();",
"String getArtifactId();",
"pb.lyft.datacatalog.Datacatalog.ArtifactId getArtifactId();",
"public String getArtifactId()\n {\n return artifactId;\n }",
"public String getArtifactId() {\n return artifactId;\n }",
"String artifactSourceId();",
"p... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Add data to the given service. | @Override
public boolean addData(String service, Data data, String version) {
// IDataStore dataStore = (IDataStore)manager.getStore(service, IDataStore.class);
// dataStore.addData(service, data);
return true;
} | [
"public void addService(Service service);",
"public void addService(InvService service) {\n // System.out.println(\"--add dataset service= \"+service.getName());\n servicesLocal.add(service);\n services.add(service);\n // add nested servers\n for (InvService nested : service.getServices()) {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the ProvidersClient object to access its operations. | ProvidersClient getProviders(); | [
"public final com.google.longrunning.OperationsClient getOperationsClient() {\n return operationsClient;\n }",
"OperationsClient getOperations();",
"public ProtocolProviderService getProtocolProvider()\n {\n return providerService;\n }",
"public static Provider provider() {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return the most frequently occurring letter in the words in the collection. (Technically, only tracking each letter once per word.) In the case of ties, this algorithm chooses the letter that occurs later in the alphabet. During testing, this appeared to be slightly more efficient and likely to guess earlier. | static char getMostLikelyLetter(Set<String> coll, Set<Character> exclude) {
int[] frequency = new int['Z' + 1];
for (String word : coll)
for (char ch = 'A'; ch <= 'Z'; ch++)
if (word.indexOf(ch) > -1 && !exclude.contains(ch))
frequency[ch]++;
int m... | [
"private char mostCommonLetter() {\n\t\t\n\t\tint[] frequencies = calcFrequencies();\n\t\tint max = 0;\n\t\tint maxi = 0;\n\t\t\n\t\tfor (int i = 0; i < frequencies.length; i++) {\n\t\t\n\t\t\tif (frequencies[i] > max) {\n\t\t\t\tmax = frequencies[i];\n\t\t\t\tmaxi = i;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\treturn (ch... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructor. Allocates a new PIN instance with validated flag set to false. | public OwnerPIN(byte tryLimit, byte maxPINSize) throws PINException{
if ((tryLimit<1) || (maxPINSize<1)) PINException.throwIt( PINException.ILLEGAL_VALUE );
pinValue = new byte[maxPINSize]; //default value 0
this.pinSize = maxPINSize; //default
this.maxPINSize = maxPINSize;
this.tryLimit = tryL... | [
"public Pin(int pin) {\r\n if (is4Digit(pin))\r\n this.pin = pin;\r\n }",
"Pin createPin();",
"DigitalPin createDigitalPin();",
"DigitalInputPin createDigitalInputPin();",
"public void setPIN (String PIN);",
"public Address() {\n this(Register.NO_REG, Register.NO_REG, NO_SCALE,... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Generated from IDL interface "ConsumerAdmin". | public interface ConsumerAdminOperations
{
/* constants */
/* operations */
org.omg.CosEventChannelAdmin.ProxyPushSupplier obtain_push_supplier();
org.omg.CosEventChannelAdmin.ProxyPullSupplier obtain_pull_supplier();
} | [
"public interface TypedSupplierAdmin\n\textends TypedSupplierAdminOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity, org.omg.CosEventChannelAdmin.SupplierAdmin\n{\n}",
"public interface Admin\n\textends AdminOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity, org.omg.CosTrading.Tr... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Changes a newspaperStory object to a string containing all relevant data | private static String convertToOutputFormat(NewspaperStory newspaperStory){
//Turning date into Month, day year format
LocalDate date = newspaperStory.getDate();
int monthNum = date.getMonthValue();
String month = "";
switch(monthNum){
case 1: month = "January ";
break;
case 2: month = "... | [
"public String getStory(){\r\n return String.format(storyText);\r\n }",
"public String getStory(){\n return cleanStory(storyString);\n }",
"java.lang.String getStory();",
"public String getStory() {\n return story;\n }",
"private void displayStory() {\n\n //Fetching the sto... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
get maximum and minimum price range | public float[] getPriceRange()
{ return this.priceRange;
} | [
"double getRange();",
"float getMinRange();",
"public double[] getRangeBounds() {\n double max=-1.7e307, min=1.7e307;\n\n if(seriesCollection.getSeriesCount() != 0 && seriesCollection.getItemCount(0) != 0)\n max = min = seriesCollection.getYValue(0, 0);\n\n for(int i = 0; i < seriesColle... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a new GraphFrame with a scrollable GraphPanel and the GraphMenuBar. | public GraphFrame(GraphModel graph) {
super("Graph Editor");
setSize(PREFERRED_SIZE);
setPreferredSize(PREFERRED_SIZE);
setMaximumSize(PREFERRED_SIZE);
setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
panel = new GraphPanel(graph);
getContentPane().add(new J... | [
"private void createScrollbar()\n\t{\n\t\tsbar_mainpane = new JScrollPane();\n\t\tsbar_mainpane.setPreferredSize(new Dimension(845,672)); // Sadly these value has is a product of trial and error\n\t\tsbar_mainpane.setViewportView(main_data_panel);\n\t\tadd(sbar_mainpane);\n\n\t}",
"private void createScrollPanel(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get all Bindings below the given nodes (deepth first traverse). | public LinkedHashSet getAllBindings() {
Set walkedNodes = new HashSet(23);
LinkedHashSet all = new LinkedHashSet(23*2);
myGetAllBindings(all, walkedNodes);
return all;
} | [
"public Map getAllBindings();",
"public Bindings getBindings(int scope);",
"public List getBindings() {\n\t\tList l = new ArrayList();\n\t\tIterator it = getSubPatterns();\n\t\twhile (it.hasNext())\n\t\t\tl.addAll(((Pattern) it.next()).getBindings());\n\t\treturn l;\n\t}",
"List<N> getDescendants() ;",
"pub... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns a bitmap with digits for the specified level | public static Bitmap getBitmap(Resources resources, int level) {
if (level < 0 || level > 100) {
return BitmapFactory.decodeResource(resources, R.drawable.batterynumber_blank);
}
// Return the "F" bitmap in case of a fully loaded battery
if (level >= 100) {
retur... | [
"public Bitmap getAngerBitmap(int level){\n\t\tBitmap flame = null;\n\t\t\n\t\tswitch(level) {\n\t\tcase 1:\n\t\t\tflame = BitmapFactory.decodeResource(mContext.getResources(), R.drawable.level_flame_one);\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tflame = BitmapFactory.decodeResource(mContext.getResources(), R.drawable.lev... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Utility to indicate whether or not a factor is compatible with the requirements of this custom factor | @Deprecated
public static boolean isFactorCompatible(Factor factor)
{
FactorFunction factorFunction = factor.getFactorFunction();
if (!(factorFunction instanceof Normal))
return false;
Normal specificFactorFunction = (Normal)factorFunction;
boolean constantParameters = false;
if (specificFactorFunc... | [
"public static boolean isFactorCompatible(Factor factor)\n\t{\n\t\t\n\t\tfor (int i = 0; i < factor.getSiblings().size(); i++)\n\t\t{\n\t\t\tVariableBase v = (VariableBase)factor.getSiblings().get(i);\n\t\t\t\n\t\t\t// Must be real\n\t\t\tif (v.getDomain().isDiscrete())\n\t\t\t\treturn false;\n\t\t\t\n\t\t\t// Must... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Delete the directional pool record given the zone name,owner name and type. | @Headers("Content-Type: application/json-patch+json")
@RequestLine("PATCH /zones/{zoneName}/rrsets/{poolRecordType}/{hostName}")
@Body("%5B" +
"%7B" +
"\"op\": \"remove\", " +
"\"path\": \"/rdata/{index}\"" +
"%7D, " +
"%7B" +
"\"op\": \"remove\", " ... | [
"@Headers(\"Content-Type: application/json-patch+json\")\n @RequestLine(\"PATCH /zones/{zoneName}/rrsets/{poolRecordType}/{hostName}\")\n @Body(\"[\" +\n \"{\" +\n \"\\\"op\\\": \\\"remove\\\", \" +\n \"\\\"path\\\": \\\"/profile/noResponse\\\"\" +\n \"}\" +\n \"]\")... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Adds all the requests to this view. | public void addAll(Collection<CustomerRequest> request) {
for (CustomerRequest o: request) {
mAdapter.add(o);
}
mAdapter.notifyDataSetChanged();
} | [
"public void addRequest(Request request) {\n\t\trequests.add(request);\n\t}",
"@Override\n public Request addRequest(Request request) {\n return generalInfo.addRequest(request);\n }",
"public MultiSearchRequest add(SearchRequestBuilder request) {\n requests.add(request.request());\n r... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Define el valor de la propiedad numHabitacion. | public void setNumHabitacion(int value) {
this.numHabitacion = value;
} | [
"public int getNumHabitacion() {\n return numHabitacion;\n }",
"public int getnHabitantes() {\r\n return nHabitantes;\r\n }",
"public void setnHabitantes(int nHabitantes) {\r\n this.nHabitantes = nHabitantes;\r\n }",
"public int numHabitantes() {\r\n int habitantes = 0;\r\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Exchange B, J, Z amino acid queries into their corresponding amino acids | private void addAmbiguous(ArrayList<int[]> setCharacter) {
long[] foundChars = new long[]{0L, 0L};
int maxNum = setCharacter.size();
int[] bValues = null;
int[] jValues = null;
int[] zValues = null;
for (int i = setCharacter.size() - 1; i >= 0; --i) {
if (set... | [
"public static void AuId2Id3hop(){\n\t\t\r\n\t\tlong AID=2052648321L;\r\n\t\tlong AID2=2041650587L;\r\n\t\tlong ID=1511277043L;\r\n\t\tlong AFID=97018004L;\r\n\t\tSearchWrapper.search( AID, ID);\r\n\t}",
"public static int findAminoAcidIndex(String codon){\n\t\tString seq = codon.toLowerCase();\n\t\tint aminoAci... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
If the file has not already been read, this reads it into memory, so that a call to getCurrentValue() will return the entire contents of this file as Text, and getCurrentKey() will return the qualified path to this file as Text. Then, returns true. If it has already been read, then returns false without updating any in... | @Override
public boolean nextKeyValue() throws IOException, InterruptedException {
if (!isProcessed) {
if (mFileLength > (long) Integer.MAX_VALUE) {
throw new IOException("File is longer than Integer.MAX_VALUE.");
}
byte[] contents = new byte[(int) mFileLength];
FileSystem fs = mFileToRead.getFileSy... | [
"@Override\n public boolean nextKeyValue() throws IOException, InterruptedException\n {\n // Initialize the key\n if (key == null)\n {\n key = new Text();\n }\n\n // Set the key to the filename\n key.set(split.getPath().getName());\n\n // Initialize ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__XEqualityExpression__Group_1__1__Impl" $ANTLR start "rule__XEqualityExpression__Group_1_0__0" ../org.xtext.lwc.instances.ui/srcgen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:4118:1: rule__XEqualityExpression__Group_1_0__0 : rule__XEqualityExpression__Group_1_0__0__Impl... | public final void rule__XEqualityExpression__Group_1_0__0() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:4122:1: ( rule__XEqualityExpre... | [
"public final void rule__XEqualityExpression__Group_1_0__0() 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:4392:1:... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the key file. | File getKeyFile() {
String path = (String) keyFile.getSelectedItem();
File file = new File(path);
return file.isAbsolute() ? file : new File(getDirectory(), path);
} | [
"public String getKeyFilePath();",
"public static String getKeyFile() {\n\t\tif (xml == null) return null;\n\t\treturn keyfile;\n\t}",
"String getKeyStoreFile();",
"public byte[] getFileKey() {\n return fileKey;\n }",
"public File getPrivateKeyFile() { return getPrivateKeyFile(getConf()); }",
"p... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the result of interpreting the object as an instance of 'Input File'. This implementation returns null; returning a nonnull result will terminate the switch. | public T caseInputFile(InputFile object) {
return null;
} | [
"protected File getInputFile()\n {\n return this.inputFile;\n }",
"public File getInputFile() {\n\t\treturn infile;\n\t}",
"public File getInputFile() {\n return this.inputFile;\n\n }",
"public String getInputFile(){\n return inputFile;\n }",
"public T caseFile(File object)\n {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the length of the pending queue | public abstract int getQueueLength(); | [
"public int getQueueLength()\n {\n\treturn queue.length();\n }",
"public abstract int computeQueueLength();",
"public int getSize() {\r\n return readyQueue.size();\r\n }",
"public int getQueueSize(){\n\t\treturn queue.size();\n\t}",
"public int size() {\n return queue.size();\n }",
"in... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Getter for property Th_libelle. | public java.lang.String getTh_libelle() {
return Th_libelle;
} | [
"public String getLibelle() {\n\t\treturn this.libelle;\n\t}",
"public String getLibelle() {\n return this.libelle;\n }",
"public java.lang.String getMa_libelle() {\r\n return ma_libelle;\r\n }",
"public String getLibelle() {\r\n return libelle;\r\n }",
"public java.lang.String... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
A sudoku with a size different from 9x9 is not a standard 9x9 | @Test
final void testIsStandard9x9() {
Sudoku<Integer> sudoku;
sudoku = new Sudoku<>(Sudoku9x9.size - 1, Sudoku9x9.symbols, Sudoku9x9.cellGroups);
assertFalse(Sudoku9x9.isStandard9x9(sudoku));
// A sudoku with a different set of numbers than 1-9 as symbols is not a
// standard 9x9
HashSet<Integer> symbols... | [
"public SudokuPuzzle(int a1,int a2,int a3, int b1,int b2,int b3, int c1,int c2,int c3,\n int a4,int a5,int a6, int b4,int b5,int b6, int c4,int c5,int c6,\n int a7,int a8,int a9, int b7,int b8,int b9, int c7,int c8,int c9,\n int d1,int d2,int d3, ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
test multiplication of xs:yearMonthDuration by NaN . | @org.junit.Test
public void cbclMultiplyYearMonthDuration003() {
final XQuery query = new XQuery(
"xs:yearMonthDuration(\"P2Y\") * xs:double('NaN')",
ctx);
try {
result = new QT3Result(query.value());
} catch(final Throwable trw) {
result = new QT3Result(trw);
} finally {
... | [
"@org.junit.Test\n public void cbclMultiplyYearMonthDuration006() {\n final XQuery query = new XQuery(\n \"xs:double('NaN') * xs:yearMonthDuration(\\\"P2Y\\\")\",\n ctx);\n try {\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
string Notice = 5; | public java.lang.String getNotice() {
java.lang.Object ref = notice_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
... | [
"java.lang.String getNotice();",
"public String getNotice();",
"public String getNotice() \n {\n return _notice;\n }",
"public com.google.protobuf.ByteString\n getNoticeBytes() {\n java.lang.Object ref = notice_;\n if (ref instanceof String) {\n com.google.protobuf... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method sets the value of the database column PLAYER_PERFORMANCE_STAT_PER_GAME.eFGP | public void seteFGP(Double eFGP) {
this.eFGP = eFGP;
} | [
"public void setFGP(Double FGP) {\n this.FGP = FGP;\n }",
"public void setFG(Double FG) {\n this.FG = FG;\n }",
"public void fieldGoal(boolean success) {\n\t if(success) {\n\t\t \n\t\t if(offenseTeam == 0) {\n\t\t\t teamAScore = teamAScore + FIELD_GOAL_POINTS;\n\t\t }\n\t\t else {\n\t\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method is used to generate valid beginTime and endTime for later function calling. | public void generateValidTimes()
{
this.beginTime = Calendar.getInstance();
this.beginTime.add(Calendar.DATE, -1);
this.endTime = Calendar.getInstance();
} | [
"public void generateInvalidTimes()\r\r\n {\r\r\n this.beginTime = Calendar.getInstance();\r\r\n this.beginTime.add(Calendar.DATE, 1);\r\r\n this.endTime = Calendar.getInstance();\r\r\n }",
"long getBeginTime();",
"public void setBeginTime(Date beginTime) {\r\n this.beginTime = beginTi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Solves the optimization problem of finding from which store to order required products. Returns a map of product amounts per store, which represents the amount of products to deliver from a store to the calling store. | private Map<StoreTO, Collection<ProductAmountTO>> __solveStoreProductOrders(
final Collection<ProductAmountTO> requiredProductAmounts,
final Collection<Store> stores, final Store callingStore,
final IPersistenceContext pctx
) {
final IOptimizationSolver solver = new AmplCplexSolver(pctx);
final long[] p... | [
"public Hashtable<StoreTO, Collection<ProductAmountTO>> solveOptimization(\n\t\t\tCollection<ProductAmountTO> requiredProductAmounts,\n \t\tHashtable<Store, Collection<StockItem>> storeStockItems,\n \t\tHashtable<Store, Integer> storeDistances) {\n\t\t\n\t\tHashtable<StoreTO, Collection<ProductAmountTO>> retu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets whether to destroy and respawn the entity when pitch flips between 180 and 180. | public void setRespawnOnPitchFlip(boolean respawn) {
this.respawnOnPitchFlip = respawn;
} | [
"public void changePitch(double angle) throws RemoteException\r\n {\r\n super.changePitch(angle);\r\n undoChangePitch = -angle;\r\n lastOp = 2;\r\n }",
"public void setRotable(boolean b);",
"public void pitch(float amount){\r\n pitch -= amount;\r\n }",
"public void setShootRight(boolean T... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Wait the disabled state of the save button. | public void waitSaveButtonDisabled() throws Exception {
new WebDriverWait(driver(), 30).until(new ExpectedCondition<Boolean>() {
@Override
public Boolean apply(WebDriver driver) {
return !(IDE().BUTTON.isButtonEnabled(saveButton));
}
});
} | [
"public void waitSaveButtonEnabled() throws Exception {\n new WebDriverWait(driver(), 30).until(new ExpectedCondition<Boolean>() {\n @Override\n public Boolean apply(WebDriver driver) {\n return IDE().BUTTON.isButtonEnabled(saveButton);\n }\n });\n }"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
define two pointers, the fast one will always double the speed of the slow one when the fast pointer reach the end of the List, the slow pointer must point to the middle. | public Node method1(Node head) {
Node fastPointer = head;
Node slowPointer = head;
while (fastPointer != null && fastPointer.next != null) {
fastPointer = fastPointer.next.next;
slowPointer = slowPointer.next;
}
return slowPointer;
} | [
"public static LLNode findMiddleNodeUsing2Pointers(LLNode head) {\n\t\t\tLLNode slowPtr = head;\n\t\t\tLLNode fastPtr = head;\n\n\t\t\twhile(fastPtr != null && fastPtr.next != null) {\n\t\t\t\tslowPtr = slowPtr.next;\n\t\t\t\tfastPtr = fastPtr.next;\n\t\t\t\tif(fastPtr != null) {\n\t\t\t\t\tfastPtr = fastPtr.next;\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
check if containerLine size is less than 5 if true push the donation package onto the stack containerLine if false return false | @Override
public boolean loadContainer(DonationPackage dPackage) {
if(containerLine.isFull() == false) {
containerLine.push(dPackage);
return true;
} else{
return false;
}
} | [
"@AssertTrue(message = \"Packing size is 3\")\n @JsonIgnore\n protected boolean isValidPackingSize() {\n List<Integer> list = new ArrayList<>(Arrays.asList(packingSize));\n if (list.size() != 3) return false;\n return true;\n }",
"public boolean canAddEPC(ItemStack stack, int amountOfEPC);",
"public... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/String appUuid = securityServiceImpl.getAppInfo().getRef().getUuid(); LoadExec loadExec = iLoadExecDao.findOneByUuidAndVersion(appUuid, execUuid, execVersion); | public MetaIdentifier getMetaIdByExecId(String execUuid, String execVersion) throws Exception {
LoadExec loadExec = (LoadExec) commonServiceImpl.getOneByUuidAndVersion(execUuid, execVersion, MetaType.loadExec.toString());
MetaIdentifier mi = new MetaIdentifier();
mi.setType(MetaType.load);
mi.setUuid(loadExec.g... | [
"String getExecRefId();",
"public void loadAppDetails(String id);",
"String getExecId();",
"@Test\n\tvoid testfindById() {\n\t\tlogger.info(\"[START] Test to view voter id by application id\");\n\t\tRestTemplate restTemplate = new RestTemplate();\n\t\tVoterId result = restTemplate.getForObject(properties.getL... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates new form Inicio_view | public Inicio_view()
{
//INICIALIZADOR
initComponents();
//MUDANDO A COR DE FUNDO DO FORM
getContentPane().setBackground(Color.DARK_GRAY);
} | [
"public frm_registro_admision_ingreso_registro() {\n }",
"public FormularioLivroView() {\n initComponents();\n }",
"public InventarioController() {\r\n }",
"public detalleInventarioController() {\n }",
"public SegFisicoController() {\n }",
"public RegistraEntradaSaidaView() {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
3 bit6ycxo1iqd2al92y8gkzlvb static inline box box_intersect(box b0, box b1) | public static Object box_intersect(Object... arg) {
UNSUPPORTED("34gv28cldst09bl71itjgviue"); // static inline box box_intersect(box b0, box b1)
UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
UNSUPPORTED("52u27kayecy1i1e8bbo8f7s9r"); // box b;
UNSUPPORTED("9slu7bixuymxttjic76ha2nl2"); // b.LL.x = MAX(b0.LL.... | [
"public static Object boxf_intersect(Object... arg) {\r\nUNSUPPORTED(\"ape22b8z6jfg17gvo42hok9eb\"); // static inline boxf boxf_intersect(boxf b0, boxf b1)\r\nUNSUPPORTED(\"erg9i1970wdri39osu8hx2a6e\"); // {\r\nUNSUPPORTED(\"c57pq0f87j6dnbcvygu7v6k84\"); // boxf b;\r\nUNSUPPORTED(\"9slu7bixuymxttjic76ha2nl2\");... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Handles item on object action | public static boolean handleItemOnObject(Player player, int id, int object) {
/*
* The item
*/
ItemInteraction item = ItemInteractionMap.getSingleton().get(id);
/*
* Invalid item
*/
if (item == null) {
return false;
}
/*
* Item on object action
*/
return item.useItemOnObject(player, i... | [
"void action(Item o);",
"protected abstract void editItem();",
"public void commandAction(Command c, Item item);",
"public void handleGetItemDetailsButtonAction(ActionEvent event) {\n String itemID = updateItemItemID.getText();\n try{\n //get the details from mgr\n HashMap ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return the received number of seconds since the epoch timestamp. | public long getReceivedSecondsTimestamp() {
try {
return Long.parseLong(receivedSecondsTimestamp);
} catch (Exception anyE) {
final String errorMessage = "Error parsing received timestamp to long value";
log.error(errorMessage, anyE);
throw new RuntimeExce... | [
"public static long getSecondsSinceEpoch() {\n return System.currentTimeMillis() / 1000L;\n }",
"public long getSeconds() {\n\t\treturn (ntpTime >>> 32) & 0xffffffffL;\n\t}",
"public static long getSeconds(Timestamp timestamp) {\n long ms = timestamp.getTime();\n return ms > 0 ? (ms / 10... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The method test cache for topic name. | @Test
private void getTopicNameFromCacheWhenFoundTest() throws AsyncException {
String eventName = "event1";
this.cacheMap.put(eventName, "event1_Topic");
when(this.validator.validate(eventName)).thenReturn(eventName);
when(this.topicCache.getRegisterMap()).thenReturn(this.cacheMap)... | [
"@Test\n private void getTopicNameFromCacheWhenNotFoundTest() throws AsyncException {\n\n String eventName = \"event1\";\n this.cacheMap.put(eventName, \"event1_Topic\");\n when(this.validator.validate(eventName)).thenReturn(eventName);\n when(this.topicCache.getRegisterMap()).thenRet... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This constructor has to be used to extract individual information from the connection string. For cases where the input connection string may be provided without a prefix, SEE ALSO ConnectionString.from(TxtHostRecord) where you can provide additional information to help guess the right connection string. | public ConnectionString(String connectionString) throws MalformedURLException {
this();
vendor = vendorFromURL(connectionString);
// Let us first check if the connection string has the prefix of the vendor or not.
if( vendor == null ) {
vendor = guessVend... | [
"public ConnStringInfo() {\n }",
"public ConnectStringParser(String connectString) {\n // parse out chroot, if any\n int off = connectString.indexOf('/');\n if (off >= 0) {\n String chrootPath = connectString.substring(off);\n // ignore \"/\" chroot spec, same as null... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "entryRuleCommunicationServiceUsage" $ANTLR start "ruleCommunicationServiceUsage" InternalServiceDefinition.g:1200:1: ruleCommunicationServiceUsage returns [EObject current=null] : (otherlv_0= 'CommunicationServiceUsage' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= 'uses' ( ( ruleFQN ) ) ) ; | public final EObject ruleCommunicationServiceUsage() throws RecognitionException {
EObject current = null;
Token otherlv_0=null;
Token lv_name_1_0=null;
Token otherlv_2=null;
enterRule();
try {
// InternalServiceDefinition.g:1206:2: ( (otherlv_0= 'Communi... | [
"public final EObject entryRuleCommunicationServiceUsage() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleCommunicationServiceUsage = null;\n\n\n try {\n // InternalServiceDefinition.g:1193:66: (iv_ruleCommunicationServiceUsage= ruleCommunicationServiceUsa... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set the stock symbol. | public void setStockSymbol(StockSymbol stockSymbol) {
this.stockSymbol = stockSymbol;
} | [
"public guru.learningjournal.kafka.examples.StockData.Builder setSymbol(java.lang.CharSequence value) {\n validate(fields()[0], value);\n this.symbol = value;\n fieldSetFlags()[0] = true;\n return this;\n }",
"public void setStockSymbol(java.lang.Object stockSymbol) {\n this.stockSym... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Add a pebble to the bag | public synchronized void addPebble(int pebble) {
this.pebbles.add(pebble);
} | [
"public synchronized void addPebble(Pebble pebble) {\r\n this.pebbles.add(pebble);\r\n this.pebbles.trimToSize();\r\n }",
"public void addBag(Bag b) {\n bag = b;\n }",
"public void addBag(char name, int size){\r\n\t\tbags.add(new Bag(name, size));\r\n\t}",
"public void addBounty(Bou... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This will run the build on the generated projects (with real data) in the specified language. | public void buildProject(Language language) throws IOException {
final int exitCode = WrapperRunner.run(getProjectWithRealDataDir(language));
Assertions.assertThat(exitCode).as("Run project return status is zero").isZero();
} | [
"public void buildAllProjects() throws IOException {\n for (Language language : languages) {\n buildProject(language);\n }\n }",
"void build(String name, Project project);",
"@Test\n\tvoid canSetLanguageForGenericStep() throws Exception {\n\t\tsetFile(\"build.gradle\").toLines(\n\t\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the rehydrationExpiryTime property: The rehydrationExpiryTime property. | public OffsetDateTime rehydrationExpiryTime() {
return this.rehydrationExpiryTime;
} | [
"public long getExpiryTime()\n {\n return m_metaInf.getExpiryTime();\n }",
"public double getTimeToExpiry() {\n return _timeToExpiry;\n }",
"public int getRegenerationTime() {\n return regenerationTime;\n }",
"public Date getRechargeTime() {\n return rechargeTime;... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
private DialogodeMensaje Dialogo = new DialogodeMensaje(); | public DialogodeMensaje() {
initComponents();
setLocationRelativeTo(null);
} | [
"public Dialog() {\n }",
"public FiltroGirosDialog() {\n \n }",
"public frm_adm_mensajeria_nuevo_msg() {\n }",
"public GestorDialogListaPersonas() {\n }",
"public VistaDetallemensaje() {\n // You can initialise any data required for the connected UI components here.\n }",
"pub... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Adds a Sensor to the SetOfSensors sensors and sets the FieldStation on that Sensor. | public void addSensor(Sensor sensor){
sensors.addSensor(sensor);
sensor.setFieldStation(this);
} | [
"public void addSensor(Sensor sensor)\n\t{\n\t\tthis.sensors.add(sensor);\n\t}",
"public void addSensor(Sensor sensor) {\n\t\tsensors.add(sensor);\n\t}",
"public void addSensor(Sensor sensor) throws DuplicateSensorException {\n for (Sensor s: this.sensorList){\n if (sensor == s){\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Interface to rappresent a DMA write operation. DMA write operation occours when trasfer is from peripheral to memory. | interface DmaRequestWrite extends DmaRequest
{
/**
* Read a byte from the peripheral
*/
public int getDmaValue();
} | [
"public void dmaRequest(DmaRequestWrite write) throws SIMException;",
"interface DmaChannel\n{\n\t/**\n\t * Initiate DMA request for read.\n\t * <p>\n\t * Data will be transferred from memory to the peripheral.\n\t */\n\tpublic void dmaRequest(DmaRequestRead read) throws SIMException;\n\n\t/**\n\t * Initiate DMA ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Accessor for the multiValue member. | public boolean isMultiValue() {
return multiValue;
} | [
"@JsonIgnore\r\n\tpublic Integer getMultivalue() {\r\n\t\treturn multivalue;\r\n\t}",
"@DISPID(2) //= 0x2. The runtime will prefer the VTID if present\n @VTID(9)\n DDDD.IMultiValue fieldMultiValue(\n String fieldName);",
"public boolean isMultiValued() {\n if (this.getType() == AttrType.MULTIV... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns a utf16le char array codec. | public ICodec<char[]> utf_16le_array(); | [
"public static ICodec<char[]> utf_16le_array() {\n\t\treturn c_provider.utf_16le_array();\n\t}",
"public ICodec<char[]> utf_16_array();",
"public ICodec<char[]> utf_16be_array();",
"public static ICodec<char[]> utf_16_array() {\n\t\treturn c_provider.utf_16_array();\n\t}",
"public ICodec<String> utf_16le();... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets Resource Bundle file encoding scheme; optional. Defaults to source file encoding | public void setBundleEncoding(String bundleEncoding) {
this.bundleEncoding = bundleEncoding;
} | [
"public void setSrcEncoding(String srcEncoding) {\n this.srcEncoding = srcEncoding;\n }",
"public void setFileEncoding(String s) {\n if (s == null) fileEncoding = \"\";\n else fileEncoding = s;\n }",
"public void setFileCharacterSet(String encoding);",
"@Override\n public void setInp... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Add this mod's brewing recipes. | private static void addBrewingRecipes() {
} | [
"@Override\n\tpublic void addRecipes() {\n\t\tRecipeHelper.addCrushRecipe(new ItemStack(Core.materials, 1, MaterialsMeta.DYE_BROWN), \"coralBrown\", false);\n\t\tRecipeHelper.addCrushRecipe(new ItemStack(Core.materials, 1, MaterialsMeta.DYE_RED), \"coralRed\", false);\n\t\tRecipeHelper.addCrushRecipe(new ItemStack(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Funtion to check if a command can return a table. | boolean returnsTable(String command)
throws SQLException; | [
"public boolean supportsTableCheck();",
"public boolean willReturnTable() {\n\t\tswitch (this) {\n\t\tcase SELECT_TABLE:\n\t\tcase UNION_SELECT:\n\t\t\treturn true;\n\t\tdefault:\n\t\t\treturn false;\n\t\t}\n\t}",
"boolean isTableAvailable(String table);",
"public boolean supportsTableCheck() {\n \t\treturn t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Find the configured directory containing harvester logos. The directory the logos are located in depends on the configuration of dataImagesDir in the config.xml. (Overrides will be applied so the actual config can be in overrides) | public static Path locateHarvesterLogosDir(ServiceContext context) {
ServletContext servletContext = null;
if (context.getServlet() != null) {
servletContext = context.getServlet().getServletContext();
}
return locateHarvesterLogosDir(servletContext,
context.getAp... | [
"public static Path locateHarvesterLogosDir(ServletContext context,\n ConfigurableApplicationContext applicationContext, Path appDir) {\n final Path base = context == null ? appDir : locateResourcesDir(context, applicationContext);\n Path path = base.resol... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method is used to update user's locale groups. It will get country and langauge from session and find out if they are different with the one from locale resolver if different, update the groups in vignette and save back to session | @SuppressWarnings("unchecked")
protected void refreshLocaleRelatedGroups(List<String> sessionGroups) {
Set<String> inputGroups = new HashSet<String>();
String language = "";
String country = "";
Iterator<String> iterator = sessionGroups.iterator();
while (iterator.hasNext()) {
String group = iterat... | [
"@SuppressWarnings(\"unchecked\")\r\n\tprotected Set getLocaleGroups() {\r\n\t\tSet<String> group = new HashSet<String>();\r\n\r\n\t\t// set group according to user locale retrieved by locale resolver\r\n\t\tLocale reqLocale = (Locale)request.getAttribute(AuthenticationConsts.SSO_USER_LOCALE);\r\n\t\tString languag... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
calculate min actions for create palindrome from input word | private int findMinActionDistance(String word) {
String reverseWord = new StringBuilder(word).reverse().toString();
int[][] matrix = new int[word.length()+1][word.length()+1];
for (int i = 1; i <= word.length(); i++){
matrix[0][i] = i;
matrix[i][0] = i;
}
... | [
"public static void main(String[] args) {\n\n String word = \"level\";\n String wordLower = word.toLowerCase();\n String[] letters = wordLower.split(\"\");\n String inReverse = \"\";\n\n\n\n for(int i = letters.length-1; i >= 0; i--) {\n inReverse = inReverse + letters[... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Extra Headers added to the redirect HTTP response as a keyvalue pairs of Header name and it's value. | public Map<String, String> getExtraHeaders() {
return extraHeaders;
} | [
"private void decorateWithEndToEndHeaders(final ClassicHttpResponse r) {\n r.setHeader(\"Allow\",\"GET\");\n r.setHeader(\"Content-Encoding\",\"gzip\");\n r.setHeader(\"Content-Language\",\"en\");\n r.setHeader(\"Content-Length\", \"128\");\n r.setHeader(\"Content-Location\",\"htt... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
move your 'bird' and apply any gravitational pull | public void moveBird() {
// your code here
xBird += xVelo;
yBird += yVelo;
if(gSwitch) {
yVelo += G;
}
if (yI >= W_HEIGHT) {
xI = 200; yI = 300;
gSwitch = false;
xVelo = 0; yVelo = 0;
}
} | [
"ILoBgFish moveAllBgFish();",
"void updateBlasts() {\n for (int i = 0; i < myBlasts.size(); i++) {\n myBlasts.get(i).move();\n }\n }",
"public void moveRobots();",
"private void autoBGear(){\n\t\tautoMove(0.7f, 1.7f);\n\t\tautoAdjustAngleLeft();\n\t\tautoDeliverGear(5f);\n\t}",
"public void lift... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
BINHaystackWorkerParent is the parent of a BNHaystackWorker | public interface BINHaystackWorkerParent extends BInterface
{
public static final Type TYPE = Sys.loadType(BINHaystackWorkerParent.class);
/**
* Handle a network exception that occured when running a chore.
*/
public void handleNetworkException(WorkerChore chore, CallNetworkException e);
p... | [
"public final Executable getParent() {\r\n return parent;\r\n }",
"protected String getWorkerZNodeParentPath(){return conf.getString(Constants.ZOOKEEPER_ESCHEDULER_WORKERS);}",
"IWIRoad getParent();",
"public IProcess getParentProcess( )\r\n {\r\n return parentProcess;\r\n }",
"public... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Subtracts a single Motif or Motif collection (other) from a target collection | private static void subtractFromMotifCollection(MotifCollection target, Object other, MotifLabEngine engine) {
if (other==null) return;
if (other instanceof Motif) {
target.removeMotif((Motif)other);
} else if (other instanceof MotifCollection) {
for (Motif motif:((Motif... | [
"private static void subtractFromSequenceCollection(SequenceCollection target, Object other, MotifLabEngine engine) {\n if (other==null) return;\n if (other instanceof Sequence) {\n target.removeSequence((Sequence)other);\n } else if (other instanceof SequenceCollection) {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Refresh the list of reviews from the remote database. | public void refreshReviews() {
executor.execute(new Runnable() {
@Override
public void run() {
webService.getReviews().enqueue(new Callback<List<Review>>() {
@Override
public void onResponse(Call<List<Review>> call, Response<List<Review>> response) {
Log.d("Review... | [
"public void refreshReviewList() {\n reviewListModel.clear();\n int index = gamesList.getSelectedIndex();\n String gameName = gamesListModel.getElementAt(index).toString();\n String gameID = dbMgr.getGameID(gameName);\n List<List<String>> userReviews = dbMgr.getReviewsByGame(gameI... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Searches smallHardwares ArrayList and updates the quantity | public void updateSmallHardwareQuantity (String name, int update){
for (SmallHardware smallHardware : smallHardwares){
if (smallHardware.getName().equals(name)){
update = smallHardware.getQuantity() + update;
smallHardware.setQuantity(update);
}
... | [
"public void lookUpSmallHardware (){\r\n Scanner scanItemName = new Scanner(System.in);\r\n System.out.print(\"Please enter item name: \");\r\n String itemName = scanItemName.nextLine();\r\n\r\n for (SmallHardware smallHardware : smallHardwares){\r\n if (smallHardware.getName(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Called when a toplevel Chrome activity (ChromeTabbedActivity, FullscreenActivity) is started in foreground. It will not be called again when other Chrome activities take over (see onStart()), that is, when correct activity calls startActivity() for another Chrome activity. | private void onForegroundSessionStart() {
ChildProcessLauncher.onBroughtToForeground();
mBackgroundProcessing.startTimers();
updatePasswordEchoState();
FontSizePrefs.getInstance(this).onSystemFontScaleChanged();
updateAcceptLanguages();
mVariationsSession.start(getApplica... | [
"@Override\n public void onAppGotoForeground() {\n Log.e(\"CHECK\", \"background to foreground: \");\n if (resumeEventReceiverListener != null) {\n resumeEventReceiverListener.onAppResume();\n }\n }",
"@Override\n pub... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
if snakes at it's destination, get a new one | public void move(){
if(super.getKillingEndCoords() == randomLocation){
int check = getRandomLocation();
if(check == randomLocation){
move();
return;
} else {
randomLocation = check;
}
}
//figure out the longest distance getting to the snakes destination
int position = this.getKill... | [
"public int getNearestDest() {\n int down = position;\n int up = position;\n int foundPos = 0;//placeholder. Will change to actual destination\n boolean found = false;//will notify when it's found something\n while (found == false && status != BROKEN) {\n if (down == 0)... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Proxy print output request. | @ApiOperation("Proxy print output request.")
@GetMapping(value = "/print/**")
public void printOutputProxy(HttpServletRequest request, HttpServletResponse response) {
LOG.info(String.format("%s: Proxy print output -request.", getCurrentUsername()));
String serviceEndpoint = KsrRequestUtils.getSe... | [
"void printWrite(PrintWrite request) throws JposException;",
"public void printOutput() {\n\t\t// Override\n\t}",
"public void printRequest() {\r\n\t\tSystem.out.print(nameOfRequestor + \" \");\r\n\t\t\r\n\t}",
"public void printOn(OutputStream stream) throws IOException{\n OutputStreamWriter out = new Out... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
ONLY for DEBUG purposes. Deletes all patients from the Patient table | public void deleteAllPatients() {
try {
activeDB.delete(PatientEntry.TABLE_NAME, null, null);
closeDB();
} catch (SQLiteException e) {
Log.d(TAG, e.getMessage());
}
} | [
"public void deletePatients(){\n try{\n database.deletePatients();\n }\n catch(DataException ex){\n System.out.print(ex.getMessage());\n }\n }",
"@Delete(\"DELETE from patients WHERE id_patient=#{patientId}\")\n void deletePatient(int patientId);",
"privat... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get a specific CloudSites, based on a CLLI and (optional) version, which will be matched against the aic_version field of the CloudSite. | private Optional<CloudSite> getCloudSiteWithClli(String clli) {
Optional<CloudSite> cloudSiteOptional =
Optional.ofNullable(catalogDbClient.getCloudSiteByClliAndAicVersion(clli, CLOUD_SITE_VERSION));
if (cloudSiteOptional.isPresent()) {
return cloudSiteOptional;
} els... | [
"@GET(CoreConstant.CORE_PUBLIC_API_V1 + \"/sites\")\n Call<ResultPaging<SiteRepresentation>> listSitesCall();",
"public synchronized Optional<CloudSite> getCloudSite(String id) {\n if (id == null) {\n return Optional.empty();\n }\n CloudSite cloudSite = catalogDbClient.getCloudS... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Factory method for ClearContentsIfVisibleWeb | public static ClearContentsIfVisibleWeb clearContentsIfVisibleWeb(String timeout) {
return new ClearContentsIfVisibleWeb(timeout);
} | [
"public static ClearContentsIfVisibleWeb getClearContentsIfVisibleWeb() {\n return new ClearContentsIfVisibleWeb();\n }",
"public static ClearContentsIfVisibleiOS getClearContentsIfVisibleiOS() {\n return new ClearContentsIfVisibleiOS();\n }",
"@Test\n @Feature({\"AndroidWebView\"})\n @SmallTest\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the "selected" attribute of the Empleado controller in order to display its data in its View dialog. | public void prepareIdEmpleado(ActionEvent event) {
Rentadevolucion selected = this.getSelected();
if (selected != null && idEmpleadoController.getSelected() == null) {
idEmpleadoController.setSelected(selected.getIdEmpleado());
}
} | [
"@Test\n public void testSetSelected() {\n \n Cuestionario selected = null;\n CuestionarioController instance = new CuestionarioController();\n instance.setSelected(selected);\n\n \n }",
"public void setSelected()\n\t{\n\t\tset(\"selected\", true);\n\t}",
"public static voi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This step is in charge of the BreadType. Next Step available : MainFillingStep | public interface BreadTypeStep {
MainFillingStep breadType(String breadType);
} | [
"private void startFilling() {\n\t\t/* since this example only has one talon, just update that one */\n startFilling(mProfile.getPoints(), mProfile.getPoints().length);\n }",
"public void fillBlock(TYPE typeOfBlock){\n isFull=true;\n type=typeOfBlock;\n return;\n }",
"public in... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Checks whether the 'fullPriceTableRef' field has been set | public boolean hasFullPriceTableRef() {
return fieldSetFlags()[7];
} | [
"public void setFullPriceTableRef(gr.grnet.aquarium.message.avro.gen.FullPriceTableMsg value) {\n this.fullPriceTableRef = value;\n }",
"public gr.grnet.aquarium.message.avro.gen.UserAgreementMsg.Builder clearFullPriceTableRef() {\n fullPriceTableRef = null;\n fieldSetFlags()[7] = false;\n retu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Remove mappings for a Cmd classes provided by the CmdSource | public void removeMappings(CmdSource cmds)
throws Exception
{
for (final Class<? extends Cmd> c : cmds.getClasses())
{
removeMappingsForClass(c);
}
} | [
"public void removeMappingsForClass(Class<? extends Cmd> theClass)\n throws Exception\n {\n final String[] names = CmdBase.getCmdNames(theClass);\n\n for (int i = 0; i < names.length; ++i)\n {\n mFactory.removeCmdMapping(names[i]);\n }\n }",
"private void re... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns whether the upgraded version is active. | public boolean upgraded() {
return upgraded;
} | [
"public boolean isUpgrading() {\n this.readLock.lock();\n\n try {\n return !(upgradeStatus.isCompleted() &&\n cancelUpgradeStatus.isCompleted());\n } finally {\n this.readLock.unlock();\n }\n }",
"public boolean isUpgrade( )\n {\n return _bUpgrade;\n }",
"public bool... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
.pb4server.SendNoticeToLeaderAskReq sendNoticeToLeaderAskReq = 48; | pb4server.SendNoticeToLeaderAskReqOrBuilder getSendNoticeToLeaderAskReqOrBuilder(); | [
"pb4server.SendNoticeToLeaderAskReq getSendNoticeToLeaderAskReq();",
"pb4server.AskFightInfoAskReq getAskFightInfoAskReq();",
"pb4server.CallBossAskReq getCallBossAskReq();",
"pb4server.ArenaFightAskReq getArenaFightAskReq();",
"pb4server.EatPoisonNumAskReq getEatPoisonNumAskReq();",
"pb4server.FireFightA... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Checks if the case group or its sibling contain the 'default' switch. | private static boolean containsDefaultSwitch(DetailAST caseGroupAst) {
DetailAST nextAst = caseGroupAst;
boolean found = false;
while (nextAst != null) {
if (nextAst.findFirstToken(TokenTypes.LITERAL_DEFAULT) != null) {
found = true;
break;
... | [
"public final void rule__ExprSwitchCase__Group_1__1__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalGo.g:10546:1: ( ( 'default' ) )\r\n // InternalGo.g:10547:1: ( 'default' )\r\n {\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
//// ====== Abstract method for concrete implementations (e.g.: NSP or ZooKeeper) ====== Get the default relative timeout in millis for higherlevel wait on getNamespacePropertiesWithTimeout | abstract protected long getDefaultRelTimeoutMillis(); | [
"public int getDefaultTimeout()\n {\n return _timeout_;\n }",
"public int getDefaultTimeout() {\n\t\treturn _timeout_;\n\t}",
"public int getDefaultTimeout() {\n return _timeout_;\n }",
"public Long getDefaultTimeoutInSecs() {\n\t\treturn defaultTimeoutInSecs;\n\t}",
"org.apache.xmlbe... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Copy backupFile to destFile, replacing regex with the content of the file replacementFile (this file should be acessible through the getResourceAsStream(...) method). | private void replaceRegex(File file, String regex, String replacement, boolean restoreFromBackup) throws IOException {
File source = null;
if (restoreFromBackup) source = new File(backupDir + "/" + file.getName()); else source = file;
Pattern pattern = Pattern.compile(regex, Pattern.DOTALL);
... | [
"public void copy_replace(String source, String destination, String[] malwareFiles,\r\n\t\t\tHashMap<String, String> replacementOpcodes) {\r\n\t\tScanner myReader = null;\r\n\t\tFileWriter writer = null;\r\n\t\tfor (int i = 0; i < 1000; i++) {\r\n\t\t\ttry {\r\n\t\t\t\tString sourcePath = source + \"\\\\\" + malwar... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ True if the given Ship collides with any of the given list of ships | private boolean collide(Ship ship, Ship[] ships) {
for (Ship s : ships) {
if (collide(s, ship)) return true;
}
return false;
} | [
"private boolean collide(int row, int col, Ship[] ships) {\n for (Ship ship : ships) {\n if (collide(row, col, ship)) return true;\n }\n return false;\n }",
"private void check_collision() {\n\t\t/* Get list of ships */\n\t\tVector<Ship> ships = new Vector<Ship>();\n\t\tIterator... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Initialize workflow object for GitHub repository | public BioWorkflow initializeWorkflowFromGitHub(String repositoryId, String subclass, String workflowName) {
BioWorkflow workflow = new BioWorkflow();
setWorkflowInfo(repositoryId, subclass, DescriptorLanguageSubclass.NOT_APPLICABLE.toString(), workflowName, workflow);
return workflow;
} | [
"protected void initWorkflow() {\n Workflow workflow = new Workflow();\n\n Project project = getProject();\n String repositoryDomain = project.getProperty(\"domain.savant.repository\");\n String mappingFile = project.getProperty(\"file.savant.mapping\");\n if (repositoryDomain != ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Click, then wait for page to load; but this time, frame2 starts before frame1 declares close | @Test
public void testEvilClickThenWait() {
MockPIFrame frame1 = startSession();
BrowserRequest browserRequest = frame1.getMostRecentRequest();
DriverRequest driverRequest = sendCommand("click", "foo", "");
browserRequest.expectCommand("click", "foo", "");
frame1.sendResult("OK");
driverReque... | [
"@Test\n public void testEvilClickThenWaitRaceCondition() {\n MockPIFrame frame1 = startSession();\n BrowserRequest browserRequest = frame1.getMostRecentRequest();\n\n DriverRequest driverRequest = sendCommand(\"click\", \"foo\", \"\");\n browserRequest.expectCommand(\"click\", \"foo\", \"\");\n\n /... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Parse one or more lines of queue info as produced by atq. These lines have the following syntax: [jobID] [weekday] [month] [dayOfMonth] [time] [year] [queue] [user] For example: 11 Mon Jul 2 10:22:00 2018 a jason The parsed output will be split into "jobID", "startDate", "queue" and "user" data, which is combined in a ... | public static HashMap<String, Map<String, String>> parseATQJobInfo(String atqOutput, Set<String> queues) {
HashMap<String, Map<String, String>> result = new HashMap<>();
if (atqOutput == null || atqOutput.isEmpty()) {
return result;
}
String[] lines = atqOutput.split("\\r?\... | [
"public void getJobs() {\r\n\t\tint arrivalTime;\r\n\t\tint pid;\r\n\t\tint cpuTime;\r\n\t\t\r\n\t\twhile(in.hasNextLine()) {\r\n\t\t\tinput = in.nextLine();\r\n\t\t\tdelims = \"[ ]+\";\r\n\t\t\ttokens = input.split(delims);\r\n\t\t\t\r\n\t\t\tarrivalTime = Integer.parseInt(tokens[0]);\r\n\t\t\tpid = Integer.parseI... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Recursive method used to descend down the xml hierarchy and instantiate items, instantiate their children, and then call onFinishInflate(). | @DSGenerator(tool_name = "Doppelganger", tool_version = "2.0", generated_on = "2013-12-30 12:32:23.671 -0500", hash_original_method = "DD09A710ED93B5E593984A56AAF093F3", hash_generated_method = "B1ECB8CF4BB8E553CCEA1A1F500B4A19")
private void rInflate(XmlPullParser parser, T parent, final AttributeSet attrs)
... | [
"@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:32:23.661 -0500\", hash_original_method = \"93981E75696898B46E3B07FB71CA5701\", hash_generated_method = \"F7CBDD8E68F702CE7763BE8921E5FBC3\")\n \npublic T inflate(XmlPullParser parser, P root,\n boolean ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns a String array containing names of all test classes in project's testsuites package. It does not detect subclasses inside a test class. The method locates all files in the project directory recursively with the extension .java. It then removes the .java extension from each of the strings. | public static String[] listFilesAsArray() {
// Recursively find all .java files
File path = new File(Project.pathWorkspace());
FilenameFilter filter = new FilenameFilter() {
public boolean accept(File directory, String fileName) {
return fileName.endsWith(".java");
}
};
Collection<File> files = lis... | [
"public String[] getTestClassNames(String directoryName)\n\t{\n\t File directory = new File(directoryName);\n\t \n File[] fList = directory.listFiles();\n \n for (File file : fList){\n if (file.isFile()){\n if (file.getName().startsWith(\"Test\") && file.getName().endsW... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets thirdPartyRegExp specified by user. | public final void setThirdPartyPackageRegExp(Pattern regexp) {
thirdPartyPackageRegExp = regexp;
} | [
"void setRegex( String regex );",
"void setRE(java.lang.String re);",
"public final native void setRegex(String regex) /*-{\n\t\tthis.regex = regex;\n\t}-*/;",
"public final void setStandardPackageRegExp(Pattern regexp) {\n standardPackageRegExp = regexp;\n }",
"public final void setSpecialImports... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
When we show the search in workspace window, and have already been searching in the little search bar, then we want to immediately search for the same term also in here! | public void firstSearch() {
if ((workspaceSearchField.getText() == null) || "".equals(workspaceSearchField.getText())) {
workspaceSearchField.setText(mainGUI.getSearchFieldText());
searchInWorkspaceFor(workspaceSearchField.getText());
}
} | [
"private void butSearchActionPerformed(java.awt.event.ActionEvent evt)\n {\n TTrace.find(\"StRinG\", false, true , true, true);// {Sensitive}{WholeWord}{Highlight}{SearchInAllPages}\n\n // from the current node : go to the next item matching criteria. Call ttrace.WinTrace.GotoFirstNode() before FindN... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |