query stringlengths 8 1.54M | document stringlengths 9 312k | negatives listlengths 19 20 | metadata dict |
|---|---|---|---|
addCollision is an abstract method whose intent is the subclass determines what to do when two Geometry object's bounding volumes are determined to intersect. | public abstract void addCollision(Geometry s, Geometry t); | [
"public abstract void resolveCollision(Collider other);",
"public abstract void collide(InteractiveObject obj);",
"private void detectCollision()\n\t{\n\t\tArrayList<CollidableObject> objects = new ArrayList<CollidableObject>();\n\t\tArrayList<CollidableObject> collision = new ArrayList<CollidableObject>();\n\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__RangeClause__Group_0_0__1" $ANTLR start "rule__RangeClause__Group_0_0__1__Impl" InternalGo.g:12054:1: rule__RangeClause__Group_0_0__1__Impl : ( '=' ) ; | public final void rule__RangeClause__Group_0_0__1__Impl() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalGo.g:12058:1: ( ( '=' ) )
// InternalGo.g:12059:1: ( '=' )
{
// InternalGo.g:12059:1: ( '=' )
... | [
"public final void rule__RangeClause__Group_0_0__1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalGo.g:12047:1: ( rule__RangeClause__Group_0_0__1__Impl )\r\n // InternalGo.g:12048:2: rule__RangeClause__Group_0_0... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter method for list of boats for all boats in scene. | public void setBoats(List<Boat> boats) {
this.boats = boats;
} | [
"protected void setBoatNeighbors(Station[] boat) {\n this.boat = boat;\n }",
"private void buildBoats() {\n\t\tboats.add(new Boat(\"red\"));\n\t\tboats.add(new Boat(\"pink\"));\n\t\tboats.add(new Boat(\"blue\"));\n\t\tboats.add(new Boat(\"yellow\"));\n\t\tboats.add(new Boat(\"orange\"));\n\t\tboats.add(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Change the channels that the member have access to | @AdminAction(@Permission(module = "adminMemberAccess", operation = "changeChannelsAccess"))
@BrokerAction(@Permission(module = "brokerMemberAccess", operation = "changeChannelsAccess"))
@PathToMember("")
Member changeMemberChannelsAccess(final Member member, final Collection<Channel> channels, boolean verif... | [
"@MemberAction(@Permission(module = \"memberOperators\", operation = \"manage\"))\n @IgnoreMember\n Member changeMyChannelsAccess(final Collection<Channel> channels, boolean verifySmsChannel);",
"public void SetChannel(int channel);",
"void setChannel(int newChannel) {\n\t\tif (on && newChannel >= 1 && ne... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a direction using relative coordinates in the x and ydirections. | Direction(int xDel, int yDel) {
this.xDel = xDel;
this.yDel = yDel;
} | [
"Direction createDirection();",
"public static Direction fromVector(double x, double y) {\n\t\treturn new Direction(x, y);\n\t}",
"Position generateRandomDirection()\r\n {\r\n double start = -100;\r\n double end = 100;\r\n\r\n double x = start + (new Random().nextDouble()*(end-start));\r... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Product product = new Product(); CountDownLatch latch = product.updateProduct( product, productCode, callback ); latch.await() | public CountDownLatch updateProductAsync(com.mozu.api.contracts.productadmin.Product product, String productCode, AsyncCallback<com.mozu.api.contracts.productadmin.Product> callback) throws Exception
{
return updateProductAsync( product, productCode, null, callback);
} | [
"public CountDownLatch updateProductAsync(com.mozu.api.contracts.productadmin.Product product, String productCode, String responseFields, AsyncCallback<com.mozu.api.contracts.productadmin.Product> callback) throws Exception\r\n\t{\r\n\t\tMozuClient<com.mozu.api.contracts.productadmin.Product> client = com.mozu.api.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the value of the global variable attr_const. | @ReLogoBuilderGeneratedFor("global: attr_const")
public void setAttr_const(Object value){
repast.simphony.relogo.ReLogoModel.getInstance().setModelParam("attr_const",value);
} | [
"public void setConstantAttribute (AttributeNameValue data){\r\n constantAttributes.add(data);\r\n }",
"@ReLogoBuilderGeneratedFor(\"global: attr_const\")\n\tpublic Object getAttr_const(){\n\t\treturn repast.simphony.relogo.ReLogoModel.getInstance().getModelParam(\"attr_const\");\n\t}",
"public void setServ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the number of doors in the village. | public int getDoorCount() {
return _numDoors;
} | [
"public int getNumOfDoors() {\r\n\t\treturn this.numOfDoors;\r\n\t}",
"public int getNumberOfDoors() {\r\n return this.doors.length;\r\n //your implementation goes here\r\n }",
"public int getNrDoors(){\n return nrDoors;\n }",
"public int getNrDoors(){\r\n return nrDoors;\r\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the days of month on which to execute the job. | public int[] getDaysOfMonth() {
return daysOfMonth;
} | [
"public int daysInMonth() {\r\n if (month == 4 || month == 6 || month == 9 || month == 11) {\r\n return 30;\r\n } else if (month == 2) {\r\n return 28;\r\n } else {\r\n return 31;\r\n }\r\n }",
"private int getDaysOfMonth() {\n\t\tint numDays;\n\t\t\n\t\tnumDays = 0;\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Initializes a rerun. Depending on whether the option to keep the entries was picked or not, the entries get sorted by their initial index (return to their intial randomness) and get added to the table. Otherwise, nothing gets added. | public static void reRun(){
window.initializeInit();
if(Main.keepData){
ArrayList<SortingEntry> oldList = Main.stepController.getInitList();
ArrayList<SortingEntry> sortedList = new ArrayList<>();
int top = oldList.size();
for(int i = 0; i < top; i++){
... | [
"@Override\r\n\tpublic void randomize() {\r\n\t\trand = new Random();\r\n\t\tlookupTable = new double[tableLength];\r\n\t\tfor (int i = 0; i < tableLength; i++)\r\n\t\t\tlookupTable[i] = Math.round(rand.nextDouble());\r\n\t}",
"private static void randomizedEntry() {\r\n\t\tfor (int i = 0; i < shops.length; i++) ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create a editor driver | @Override
public SimpleBeanEditorDriver<Product, ?> createEditorDriver() {
Driver driver = GWT.create(Driver.class);
driver.initialize(this);
return driver;
} | [
"Editor createEditor();",
"@Override\n public RequestFactoryEditorDriver<QuestionProxy,QuestionEditViewImpl> createEditorDriver() {\n RequestFactoryEditorDriver<QuestionProxy, QuestionEditViewImpl> driver = GWT.create(EditorDriver.class);\n driver.initialize(this);\n return driver;\n }"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
La interfaz IXPLImportsDirectiveProcessor. Define un metodo estandar para procesar directivas import. Debe ser implementada por Modulos de Salida para poder procesar directivas import. | public interface IXPLImportsDirectiveProcessor
{
/**
Procesa una directiva "Import" con los argumentos "args".
"generateOutputFile" indica si se guarda un archivo en disco
con el documento XPL de importación o no.
@param args: .
@param generateOutputFile: .
@return True si se ... | [
"public interface IImportDeclaration extends IModelElement, ISourceReference,\r\n\t\tISourceManipulation {\r\n\t/**\r\n\t * Constant representing an import declaration within a compilation unit. A\r\n\t * Java element with this type can be safely cast to\r\n\t * <code>IImportDeclaration</code>.\r\n\t */\r\n\tint EL... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set the labels text to equal the quantity name of the selected ingredient in the listView | public void dynamicQuantityLabelSetUp(ListView<Ingredient> lv, Label label){
lv.getSelectionModel().selectedItemProperty().addListener(new ChangeListener<Ingredient>() {
//use the changeListener to determine when a new ingredient has been selected
@Override
public void change... | [
"@Override\n public void changed(ObservableValue<? extends Ingredient> observableValue, Ingredient ingredient, Ingredient t1) {\n if (t1 != null){\n //if the new ingredient selected is not null then\n //get the Quantity name from the selected ingredien... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter for completedDate The time when the report was finished building, if completed | public void setCompletedDate(Date value) {
this.completedDate = value;
} | [
"public void setCompletedDate(Date p_completedDate);",
"public void setCompletedDate(java.util.Calendar completedDate) {\r\n this.completedDate = completedDate;\r\n }",
"public void setCompletedDate(java.util.Calendar completedDate) {\n this.completedDate = completedDate;\n }",
"public voi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set the specify the minimum duration in milliseconds of the "onhook" state between two successive calls. | public void setOnhookMinDuration(Long onhookMinDuration) {
this.onhookMinDuration = onhookMinDuration;
} | [
"public FXO withOnhookMinDuration(Long onhookMinDuration) {\n\t\tthis.onhookMinDuration = onhookMinDuration;\n\t\treturn this;\n\t}",
"public Long getOnhookMinDuration() {\n\t\treturn onhookMinDuration;\n\t}",
"void onMinTimeReached(long totalMinShownTime);",
"public void setMinDelay(double min_delay)\n {\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Serialize an event for storage in Redis | byte[] serialize(Event event) throws RedisSerializerException; | [
"byte[] encode(E event);",
"public void serializeAndSave(Event event) throws SQLException, IOException\n\t{\n\t\tObjects.requireNonNull(event);\n\n\t\tGlobalLogger.getLogger().logp(Level.INFO, this.getClass().getName(),\n\t\t\t\t\"serializeAndSave(Event)\",\n\t\t\t\t\"Serializing and saving Event \\\"\" + event.g... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__ExtendedAddress__Group__6" $ANTLR start "rule__ExtendedAddress__Group__6__Impl" ../org.xtext.example.mydsl.extensions.ui/srcgen/org/xtext/example/mydsl/extensions/ui/contentassist/antlr/internal/InternalMyDsl.g:792:1: rule__ExtendedAddress__Group__6__Impl : ( 'country' ) ; | public final void rule__ExtendedAddress__Group__6__Impl() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../org.xtext.example.mydsl.extensions.ui/src-gen/org/xtext/example/mydsl/extensions/ui/contentassist/antlr/internal/InternalMyDsl.g:796:1: ( ( 'co... | [
"public final void rule__Address_Impl__Group__6__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.mydsl.extensions.ui/src-gen/org/xtext/example/mydsl/extensions/ui/contentassist/antlr/internal/InternalMyDsl.g:1274:... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Flushes a certain page to disk | private synchronized void flushPage(PageId pid) throws IOException {
// some code goes here
// not necessary for lab1
DbFile file = Database.getCatalog().getDatabaseFile(pid.getTableId());
Page page = pages.get(pid);
file.writePage(page);
page.markDirty(false, null);
... | [
"public void flushPage(PageId pageid) {\n\t\tint f = pageFrame.get(pageid);\n\t\ttry {\n\n\t\t\tMinibase.DiskManager.write_page(pageid, frames[f]);\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(e);\n\t\t}\n\n\n\t}",
"private synchronized void flushPage(PageId pid) throws IOException {\n // some c... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates new TreeAttribute copy constructor. | protected TreeAttribute (TreeAttribute attribute) {
super (attribute);
this.name = attribute.name;
this.specified = true; //??? -- copy will be specified
this.valueList = new TreeObjectList (createValueListContentManager ());
this.valueList.addAll ((TreeObjectList)a... | [
"@Override\r\n\tpublic Tree clone() {\r\n\r\n\t\t// Normal deep cloning\r\n\t\ttry {\r\n\t\t\treturn new Tree(null, key, DeepCloner.clone(value));\r\n\t\t} catch (Exception ignored) {\r\n\r\n\t\t\t// Unknown and/or unserializable objects\r\n\t\t}\r\n\r\n\t\t// JSON-based deep cloning\r\n\t\ttry {\r\n\t\t\treturn ne... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method sets the value of the database column line.d_startcity | public void setdStartcity(String dStartcity) {
this.dStartcity = dStartcity == null ? null : dStartcity.trim();
} | [
"public void setStartcity(String startcity) {\n this.startcity = startcity == null ? null : startcity.trim();\n }",
"public void setdStartcityid(String dStartcityid) {\n this.dStartcityid = dStartcityid == null ? null : dStartcityid.trim();\n }",
"public void setStartCity(String startCity) {... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Simplifies geom a geometry using the DouglasPeuker algorithm. | public static Geometry ST_Simplify(Geometry geom, BigDecimal distance) {
DouglasPeuckerSimplifier simplifier = new DouglasPeuckerSimplifier(geom);
simplifier.setDistanceTolerance(distance.doubleValue());
return simplifier.getResultGeometry();
} | [
"public Polygon simplify(float tolerance)\n {\n DouglasPeuckerReducer reducer =\n new DouglasPeuckerReducer(this, tolerance);\n return reducer.simplified();\n }",
"public static Geometry ST_SimplifyPreserveTopology(Geometry geom, BigDecimal distance) {\n TopologyPreservingSim... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns a dynamic instance of WeatherSourceResource used for entity navigation. | @Path("{wid}/")
public WeatherSourceResource getWeatherSourcesResource(@PathParam("wid") Integer id) {
WeatherSourceResource weatherSourcesResource = resourceContext.getResource(WeatherSourceResource.class);
weatherSourcesResource.setId(id);
return weatherSourcesResource;
} | [
"public WeatherSourcesResource() {\n\t}",
"@GET\n @Produces({\"application/xml\", \"application/json\"})\n\tpublic WeatherSourcesConverter get(@QueryParam(\"start\")\n @DefaultValue(\"0\") int start, @QueryParam(\"max\")\n @DefaultValue(\"10\") int max, @QueryParam(\"expandLevel\")\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test of insertRow method, of class Dataframe. | @Test
public void testInsertRow() throws Exception {
assertEquals(6, students.nbRows());
assertEquals(89, oscars.nbRows());
String[] row1 = {"true", "toto", "1000", "12.5"};
String[] row2 = {"90", "2020", "43", "test test", "test"};
students.insertRow(row1);... | [
"@Test (expected = BadArgumentException.class)\n public void testInsertRowException() throws Exception {\n String[] row1 = {\"toto\", \"1000\", \"12.5\"};\n students.insertRow(row1);\n }",
"public void insertRow() throws SQLException\n {\n m_rs.insertRow();\n }",
"@Test\n public ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__Contract__Group_7__1__Impl" $ANTLR start "rule__Contract__Group_7_1__0" InternalSymboleoide.g:3532:1: rule__Contract__Group_7_1__0 : rule__Contract__Group_7_1__0__Impl rule__Contract__Group_7_1__1 ; | public final void rule__Contract__Group_7_1__0() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalSymboleoide.g:3536:1: ( rule__Contract__Group_7_1__0__Impl rule__Contract__Group_7_1__1 )
// InternalSymboleoide.g:3537:2: rule__Contract_... | [
"public final void rule__Contract__Group_7__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalSymboleoide.g:3482:1: ( rule__Contract__Group_7__0__Impl rule__Contract__Group_7__1 )\n // InternalSymboleoide.g:3483:2: rule__C... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the interval Throws IllegalArgumentExceptons if the lower limit is >= upper limit | public final void setInterval(double xLower, double xUpper) {
if (xLower > xUpper) {
throw new IllegalArgumentException("The lower limit must be <= the upper limit");
}
myLower = xLower;
myUpper = xUpper;
} | [
"void setUpperBound(double upperBound);",
"public void setUpperRange(double upper);",
"public void setLowerRange(double lower);",
"public void setInterimInterval(long interval);",
"public void setLimits(final int lower, final int upper) {\n if (dimensions != 1) {\n throw new UnsupportedOpe... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Binds the removeClass statement. | public JsStatement removeClass(String className)
{
chain(AttributesHelper.removeClass(className));
return this;
} | [
"void removeClassListener(ClassListener listener);",
"void removeClass(final String name);",
"public void removeCommandClass(CommandClass commandClass) {\n endpoints.get(0).removeCommandClass(commandClass);\n }",
"@Test\r\n\tpublic void removeClassCommand() {\r\n\t\t// Create output stream for execu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Access method for ledgerUid. | public Integer getLedgerUid() {
return ledgerUid;
} | [
"public void setLedgerUid(Integer aLedgerUid) {\n ledgerUid = aLedgerUid;\n }",
"java.lang.String getUid();",
"long getUid();",
"int getUid();",
"public Long getLdfUid()\n {\n return ldfUid;\n }",
"java.lang.String getPartyUid();",
"public Integer getLedgerId() {\n return ledge... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the db desc. | public DbDescr getDbDesc() {
return (appconfig == null)? null : appconfig.getDatabaseDescriptor();
} | [
"public java.lang.String getDesc() {\n return desc;\n }",
"java.lang.String getDesc();",
"public String getDescription() {\n return m_database.getConfiguration().getDescription();\n }",
"public java.lang.String getDesc()\r\n {\r\n synchronized (monitor())\r\n {\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
recupera uma lista de Horario return ArrayList | public ArrayList<ModelHorario> getListaHorarioDAO(){
ArrayList<ModelHorario> listamodelHorario = new ArrayList();
ModelHorario modelHorario = new ModelHorario();
try {
this.conectar();
this.executarSQL(
"SELECT "
+ "id,"
... | [
"public Collection<Horario> traerTodosLosHorarios () {\n Collection<Horario> coleccionHorarios = null;\n try {\n bitacora.info(\"Iniciando operacion para traer todos los Horarios\");\n coleccionHorarios = sqlMap.queryForList(\"TodosLosHorarios\");\n } catch (SQLException e... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
return the list of the helprequest that concern user u as helper | List<HelpRequest> getProvidedHelpRequest(User u) throws NoSuchUserException; | [
"List<HelpRequest> getReceivedHelpRequest(User u) throws NoSuchUserException;",
"List<Feedback> getHelperFeedbacks(User u) throws NoSuchUserException;",
"public List<User> getUsersWithRequests();",
"public Map<String,ClientHandler> getUserList()\n {\n return userList;\n }",
"public List<UserDet... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Once the compiler sees code such as this, it starts substituting out the primitives and 'String' objects. After the first pass of the compiler, the class will look something like this. | public void compileTimeSubstitutionOfSomeMethod() {
/**
* The primitive and 'String' constants were substituted while
* other constructed types were left as variables.
*
*/
System.out.println("Hardcore Java");
System.out.println(5);
System.out.printl... | [
"thisConstructor (){\n\t\t\n\t\tthis(\"Hello\");\t\t// calling parameterized constructor\t\n\t}",
"public StringStrategy()\r\n {\r\n super( \"foo\".getClass() );\r\n }",
"private void addBuiltins() {\n // create AST node for object\n Class_ astNode = new Class_(-1,-1, \"<built-in class>\", \"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the value of the ProductWithdrawalELPOverride field. | public void setProductWithdrawalELPOverride(java.math.BigDecimal value); | [
"@gw.internal.gosu.parser.ExtendedProperty\n public java.math.BigDecimal getProductWithdrawalELPOverride();",
"public void setPremOpsELPOverride(java.math.BigDecimal value);",
"public void setProdsCompldOpsELPOverride(java.math.BigDecimal value);",
"public void setLiquorELPOverride(java.math.BigDecimal value... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get a string where some of it's parts can be loaded from one or more resource bundles. This method resolves all occurrences of "ResourceMsg([, , ...])" to the value of the key obtained from the resource bundle formatted with the optional parameters, where "number" is the index of the resource bundle in the provided arr... | public static String getBundleString(String[] resourceBundles, String str, String suffix) {
assert suffix != null;
if (resourceBundles == null) {
return getBundleString(str + suffix);
}
int index = str.indexOf(RESOURCE_MSG);
if (index < 0) {
return getBu... | [
"MessageResources getMessageResources(String key);",
"String getMessage(String bundleKey, Object... args);",
"protected String getResourceString (String key)\n {\n try {\n if (_bundle != null) {\n return _bundle.getString(key);\n }\n \n } catch (Missin... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Only store newly added fav address. favDropAdrsData: | public long insertFavDropAdrsData(FavDropAdrsData favDropAdrsData)
{
Log.d(TAG, "insertFavDropAdrssData favDropAdrsData: "+favDropAdrsData.toString());
SQLiteDatabase db = this.getWritableDatabase();
ContentValues contentValues = new ContentValues();
contentValues.put(FAV_DROP_ADRS_... | [
"public void saveAddress(String name){\r\n Favorite newFavorite = new Favorite(name, getAddress());\r\n favoritesModel.add(newFavorite);\r\n favoriteView.updateFavoritesView();\r\n }",
"private void insertAllFavDropAdrs(ArrayList<FavDropAdrsData> favDropAdrsDataAL)\n {\n Log.d(TA... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Resets and clears the store to force it to reload from file | @ManagedOperation(description = "Reset and reloads the file store")
public synchronized void reset() throws IOException {
synchronized (cache) {
// trunk and clear, before we reload the store
trunkStore();
cache.clear();
loadStore();
}
} | [
"void resetStore() {\n File storeFile = new File(getStoreName());\n if (storeFile.exists()) {\n storeFile.delete();\n }\n }",
"public void resetStorage();",
"private void reset()\r\n {\r\n log.info(\"{0}: Resetting cache\", logCacheName);\r\n\r\n try\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Testing generateGaussians(int n, double mean, double standardDeviation, double significantDigits, JsonObject pregeneratedRandomization) | @Test
public void testPositiveGenerateGaussians_2() {
int i = 1;
for (RandomOrgClient roc : rocs) {
try {
double[] response = roc.generateGaussians(10, 3.41d, 2.1d, 4, identifier);
collector.checkThat(response, notNullValue());
double[] response2 = roc.generateGaussians(10, 3.41d, 2.1d, ... | [
"@Test\r\n\tpublic void testPositiveGenerateSignedGaussians_1() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tHashMap<String, Object> o = roc.generateSignedGaussians(10, 3.41d, 2.1d, 4);\r\n\t\t\t\t\r\n\t\t\t\tthis.signedValueTester(roc, i, o, double[].class);\r\n\t\t\t} catc... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method Name launchApp(String browser , String url) Description Method is to open browser and launch application. Developed by Sushma Nandipati Last Modified By Last Modified Date | public void launchApp(String browser, String url) throws IOException {
String currbrowser=browser;
if (browser.equals("chrome")) {
ChromeOptions options = new ChromeOptions();
options.addArguments("disable-infobars");
options.addArguments("--start-minimized");
System.setProperty("webdriver.chrome.driver... | [
"public void callBrowser(String url)\n\t{\n\t\tContext context = getApplicationContext(); \n\t\tIntent intent = new Intent(Intent.ACTION_VIEW); \n\t\tUri u = Uri.parse(url); \n\t\tintent.setData(u); \n\t\ttry { \n\t\t\t // Start the activity \n\t\t\t startActivity(intent); \n\t\t\t} catch (ActivityNotFound... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the Mac OS X root production directory. | public File
getMacProdDirectory()
{
String dir = (String) pProfile.get("MacProductionDirectory");
if(dir != null)
return new File(dir);
return null;
} | [
"public File\n getMacRootDirectory() \n {\n String dir = (String) pProfile.get(\"MacRootInstallDirectory\");\n if(dir != null) \n return new File(dir);\n return null; \n }",
"public File\n getRootDirectory()\n {\n String dir = (String) pProfile.get(\"RootInstallDirectory\");\n if(dir != n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set the original color set array. This also sets the updated color set array as well. | public void setOriginalArray(List<ColorScaleData> array) {
originalColorSet = new ArrayList<ColorScaleData>(array);
updatedColorSet = new ArrayList<ColorScaleData>(array);
} | [
"public void setColor(int[] color);",
"public void resetData() {\n updatedColorSet.clear();\n updatedColorSet = new ArrayList<ColorScaleData>(originalColorSet);\n }",
"public void setUsedArray(List<ColorScaleData> array) {\n usedColorSet = new ArrayList<ColorScaleData>(array);\n }",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the list of angular directives | public List<AngularDirectiveBase> getAngularDirectives()
{
if (angularDirectives == null)
{
setAngularDirectives(new ArrayList<>());
}
return angularDirectives;
} | [
"public List<__Directive> getDirectives() {\n return (List<__Directive>) get(\"directives\");\n }",
"public String[] getDirectiveNames ();",
"Map<String, String> getDirectives();",
"public static List<String> getDirectives(NodeTemplate nodeTemplate) {\n if (Objects.isNull(nodeTemplate) || Obj... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Calculates the greatest lower bound between this and another Interval. It does not overwrite the status of the "this" interval. | @Override
public AbstractValue greatestLowerBound(AbstractValue d) {
if ( !(d instanceof Interval) )
throw new IllegalArgumentException("v should be of type Interval");
Interval i = (Interval) d;
if (i.isBottom())
return i;
else if (i.equals(top))
return this;
String newLow = "-Inf", newHigh = "+I... | [
"@Override\n\tpublic AbstractValue leastUpperBound(AbstractValue v) {\n\t\tif ( !(v instanceof Interval) )\n\t\t\tthrow new IllegalArgumentException(\"v should be of type Interval\");\n\t\tInterval i = (Interval) v;\n\n\t\tif (i.equals(top))\n\t\t\treturn i;\n\t\telse if (i.isBottom())\n\t\t\treturn this;\n\n\t\tSt... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method is to reset persistence and set new attributes for iacuc protocol species. Purpose is to link protocol species for procedures | private void setAttributesForIacucProtocolSpecies(IacucProtocol destProtocol) {
for(IacucProtocolSpecies iacucProtocolSpecies : destProtocol.getIacucProtocolSpeciesList()) {
iacucProtocolSpecies.resetPersistenceState();
getIacucProtocolSpeciesService().getNewProtocolSpecies(destProtocol,... | [
"public void prepareForSpeciation() {\n\t\tfor (Species s : speciesList) {\r\n\t\t\ts.assignRep();\r\n\t\t}\r\n\r\n\t\t// clear the old species list\r\n\t\tfor (Species s : speciesList) {\r\n\t\t\ts.clearMembers();\r\n\t\t}\r\n\t}",
"private void setAttributesForStudyProcedures(IacucProtocolStudyGroupBean newIacu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "ruleInternalScope" $ANTLR start "entryRuleDeclaration" ../org.yakindu.sct.statechart.expressions/srcgen/org/yakindu/sct/statechart/parser/antlr/internal/InternalExpressions.g:611:1: entryRuleDeclaration returns [EObject current=null] : iv_ruleDeclaration= ruleDeclaration EOF ; | public final EObject entryRuleDeclaration() throws RecognitionException {
EObject current = null;
EObject iv_ruleDeclaration = null;
try {
// ../org.yakindu.sct.statechart.expressions/src-gen/org/yakindu/sct/statechart/parser/antlr/internal/InternalExpressions.g:612:2: (iv_... | [
"public final EObject entryRuleDeclaration() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleDeclaration = null;\n\n\n try {\n // ../fr.imta.tp.calcDSL/src-gen/fr/imta/tp/parser/antlr/internal/InternalCalcDSL.g:147:2: (iv_ruleDeclaration= ruleDeclaration EO... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Mutate this Biolume's genome | private void mutate() {
// copy mutations
for (int i = 0; i < this.exe_size; i++) {
if (RAND.nextDouble() < MUT_PROB_COPY) {
// mutate to random instruction
this.genome[i] = RAND.nextInt(Instruction.INST_SET_SIZE);
}
}
for (int i = EXE_SIZE_MAX; i < GENOME_SIZE_MAX; i++) {
if (RAND.nextDouble... | [
"public boolean mutateGenome(Genome genome);",
"public void mutate() {\n\t\tcachedTotalOverlap = null;\n\t\tGeometryFactory factory = Helper.getGeometryFactory();\n\t\tfor (LabelGene gene : this) {\n\t\t\tdouble overlapArea = getGeneOverlap(gene, factory);\n\t\t\tif (overlapArea > 0) {\n\t\t\t\tgene.mutate();\n\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
get props Env or system query | private String getPropsQuery(BuildParams buildParams) {
String baseQuery;
if (buildParams.isEnvProps()) {
baseQuery = BuildQueries.BUILD_ENV_PROPS;
} else {
baseQuery = BuildQueries.BUILD_SYSTEM_PROPS;
}
return baseQuery;
} | [
"private static String getSystemPropertyOrEnv(String propertyName) {\n\t\tString propertyValue = System.getProperty(propertyName);\n\t\tif (propertyValue == null) {\n\t\t\tpropertyValue = System.getenv(propertyName);\n\t\t}\n\t\treturn propertyValue;\n\t}",
"public Map<String, String> getEnv();",
"java.lang.Str... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the field binding for the given field. | FieldBinding getBinding( Field< ? > field ); | [
"BindingExpression forField(ResolvedBindings resolvedBindings) {\n FieldSpec fieldSpec = generateFrameworkField(resolvedBindings, Optional.empty());\n MemberSelect memberSelect = MemberSelect.localField(componentName, fieldSpec.name);\n return new BindingExpression(\n createRequestFulfillmen... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a new Ship and adds it to the corresponding list of ships according to it's form. | public void buildShip(int shipId, int x, int y, String form) {
if (form.equals("line")) {
lineShips.add(new Ship(shipId, form, x, y));
} else if (form.equals("lShip")) {
lShips.add(new Ship(shipId, form, x, y));
} else {
uShips.add(new Ship(shipId, form, x, y)... | [
"private void placeShip() {\r\n\t\t// Expire the ship ship\r\n\t\tParticipant.expire(ship);\r\n\r\n\t\tclipShip.stop();\r\n\r\n\t\t// Create a new ship\r\n\t\tship = new Ship(SIZE / 2, SIZE / 2, -Math.PI / 2, this);\r\n\t\taddParticipant(ship);\r\n\t\tdisplay.setLegend(\"\");\r\n\t}",
"public void addShip(Ship sh... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column IECS_OPERATE_INSTR_TRUCKS.OIS_TWO_TASK_ID | public Long getOisTwoTaskId() {
return oisTwoTaskId;
} | [
"public void setOisTwoTaskId(Long oisTwoTaskId) {\n this.oisTwoTaskId = oisTwoTaskId;\n }",
"public Integer getId2() {\r\n return id2;\r\n }",
"public String getId2() {\n return id2;\n }",
"public long getT2()\n {\n\treturn (this.t2).longValue();\n }",
"public StrColumn g... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns whether or not we should allow new pings on this connection. If we have recently received a ping, we will likely not allow the second ping to go through to avoid flooding the network with ping traffic. | public boolean allowNewPings() {
synchronized(PING_LOCK) {
long curTime = System.currentTimeMillis();
// don't allow new pings if the connection could drop any second
if(!isStable(curTime)) return false;
if(curTime < _nextPingTime) {
return false;
}
_nextPingTi... | [
"public boolean allowNewPongs() {\n \tsynchronized(PONG_LOCK) {\n\t\t long curTime = System.currentTimeMillis();\n\n\t\t\t// don't allow new pongs if the connection could drop any second\n\t\t\tif(!isStable(curTime)) return false;\n\t\t if(curTime < _nextPongTime) {\n\t\t return false;\n\t\t } \n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO make one lockrotate function which takes as input objInner, objOuter, and point relative to objInner's x,y that objOuter must rotate around. dist is a distance between the two objects at the bottom of objInner. | private static void lockrotateObjAroundObjbottom(ImageObject objOuter, ImageObject objInner, double dist) {
objOuter.moveto(objInner.getX() + (dist + objInner.getWidth() / 2.0)
* Math.cos(-objInner.getAngle() + pi / 2.0) + objOuter.getWidth() / 2.0,
objInner.getY() + (... | [
"public void calcRotate(Tower t, Enemy d){\r\n\r\n\r\n //finding the hypotenuse.\r\n Vector2 tt = new Vector2(t.getX(), t.getY());\r\n Vector2 dd = new Vector2(d.getX(), d.getY());\r\n double hypotenuse = findDistance(tt, dd);\r\n\r\n arbitraryPoint.set(t.getX(), d.getY());\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
required string cost_balance = 48; | public Builder setCostBalance(String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00010000;
costBalance_ = value;
onChanged();
return this;
} | [
"String getCostBalance();",
"java.lang.String getBalance();",
"com.google.protobuf.ByteString getCostBalanceBytes();",
"java.lang.String getBizBalance();",
"public String getCostBalance() {\n Object ref = costBalance_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a new X837Ins_2300_CRC_HomeHealthMentalStatus RecordBuilder by copying an existing X837Ins_2300_CRC_HomeHealthMentalStatus instance | public static net.explorys.samhat.z12.r837.X837Ins_2300_CRC_HomeHealthMentalStatus.Builder newBuilder(net.explorys.samhat.z12.r837.X837Ins_2300_CRC_HomeHealthMentalStatus other) {
return new net.explorys.samhat.z12.r837.X837Ins_2300_CRC_HomeHealthMentalStatus.Builder(other);
} | [
"public static net.explorys.samhat.z12.r837.X837Ins_2300_CRC_HomeHealthMentalStatus.Builder newBuilder() {\n return new net.explorys.samhat.z12.r837.X837Ins_2300_CRC_HomeHealthMentalStatus.Builder();\n }",
"private Builder(net.explorys.samhat.z12.r837.X837Ins_2300_CRC_HomeHealthMentalStatus other) {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
It takes the positions as 1D String then convert it to 2D position as X and Y it reshape 1D Position to 2D Position by dividing the 1D by number of columns to Get the X position then Get Y position by get the reminder of 1D Position of number of columns | public static String indexConvertor(String positions,int num_cols)
{
String[] postions_list = positions.split(",");
String converted_postions = "";
for (int i = 0; i < postions_list.length; i++) {
int x = Integer.parseInt(postions_list[i]) / num_cols;
int y = Integer.parseInt(postions_list[i]) % num_co... | [
"protected void convertWorldPosToScreenPos(double[] position, int[] pixel) {\n\n if (!mapIsAvailable)\n return;\n\n // the map extent\n double mapWidth = mapArea.getWidth();\n double mapHeight = mapArea.getHeight();\n\n Rectangle panelBounds = mapPanel.getBounds();\n\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Track mockTrack = Mockito.mock(Track.class); TrackInfo mockTrackInfo = Mockito.mock(TrackInfo.class); SyncedCycleBuffer mockBuffer = Mockito.mock(SyncedCycleBuffer.class); SignalInputStream mockStream = Mockito.mock(SignalInputStream.class); int buffersize = 10; float[] buffer = new float[buffersize]; Mockito.when(mock... | @Test
public void BufferLoading() throws IOException {
//
//
// Mockito.when(mockBuffer.hasAvailableSpace()).thenReturn(true);
// Mockito.when(mockBuffer.tryLock()).thenReturn(false);
// Mockito.verify(mockBuffer, Mockito.times(0)).writeNextBuffer(buffer);
//
//
// Mockito.when(mockBuffe... | [
"@Test\n public void testFileBufferRead() throws FileNotFoundException, IOException, InterruptedException, ExecutionException {\n System.out.println(\"testFileBufferRead\");\n\n // set all sizes to prime numbers so that all buffers are interleaved.\n // prime numbers can be found with http://easycalculati... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional string androidversion = 3; | java.lang.String getAndroidversion(); | [
"int androidVersion();",
"public String getLibraryVersion(){\r\n return \"3.0.4\";\r\n }",
"boolean hasAndroidversion();",
"String getVersion( String version );",
"String checkAppVersion();",
"java.lang.String getAppVersion();",
"java.lang.String getVersion();",
"void setVersion(String versi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ To view a single product | @RequestMapping(value = "/show/{id}/product")
public ModelAndView showingSingleProduct(@PathVariable("id") int id) throws ProductNotFound {
ModelAndView mv = new ModelAndView("page");
Product product = productDAO.get(id);
if (product == null){
throw new ProductNotFound();
}
product.setViews(p... | [
"void viewProductById(long id);",
"@RequestMapping(value = \"/show/{id}/product\") \n\tpublic ModelAndView showSingleProduct(@PathVariable int id) throws ProductNotFoundException {\n\t\t\n\t\tModelAndView mv = new ModelAndView(\"page\");\n\t\t\n\t\tProduct product = productDAO.get(id);\n\t\t\n\t\tif(product == nu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the view accessor RowSet UsersView1. | public RowSet getUsersView1() {
return (RowSet) getAttributeInternal(USERSVIEW1);
} | [
"public RowSet getPermisView1() {\n return (RowSet) getAttributeInternal(PERMISVIEW1);\n }",
"public RowSet getTypeacteurView1() {\n return (RowSet) getAttributeInternal(TYPEACTEURVIEW1);\n }",
"public RowSet getLocaliteView1() {\n return (RowSet) getAttributeInternal(LOCALITEVIEW1);\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR start "entryRuleAstTop" ../org.caltoopia.frontend.ui/srcgen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:60:1: entryRuleAstTop : ruleAstTop EOF ; | public final void entryRuleAstTop() throws RecognitionException {
try {
// ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:61:1: ( ruleAstTop EOF )
// ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/an... | [
"public final void entryRuleAstToken() throws RecognitionException {\n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:1155:1: ( ruleAstToken EOF )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/co... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Hide the loading bar. | private void hideLoading() {
this.loading.setVisibility(View.INVISIBLE);
} | [
"protected void hideLoader() {\n\n if (progressBar != null) {\n progressBar.setVisibility(View.INVISIBLE);\n }\n if(getActivity()!=null) {\n getActivity().getWindow().clearFlags(WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE);\n }\n\n }",
"public void hideLoadin... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column TRSPAYPLANDET_TENTATIVE_TEMP.CURRENCY | public BigDecimal getCURRENCY() {
return CURRENCY;
} | [
"String getSettlementCurrency();",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.math.BigDecimal getTmpDebitBalance();",
"public typekey.Currency getMoneyCurrency() {\n return ((gw.cc.metric.entity.MoneyMetricDelegate)__getDelegateManager().getImplementation(\"gw.cc.metric.entity.MoneyMetricDeleg... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns a TMLForm object representing the WebTML form of the given ID | @CodeCompletion(preferredCase="tmlformByID")
public abstract Form tmlformbyid(String id); | [
"public WebForm getFormWithID( String ID ) throws SAXException;",
"public static Form getForm(Long id, boolean loadDetails) {\n\t\tFormDaoImpl dao = DB.getFormDao();\n\n\t\tADForm adform = dao.getForm(id);\n\t\tForm form = getForm(adform, loadDetails);\n\n\t\treturn form;\n\t}",
"public TodoItemForm getTodoItem... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method sets the value of the database column good_flash_sale_item.sale_id | public void setSaleId(Long saleId) {
this.saleId = saleId;
} | [
"public void setSaleid(Long saleid) {\r\n this.saleid = saleid;\r\n }",
"public Long getSaleId() {\n return saleId;\n }",
"public Long getSaleid() {\r\n return saleid;\r\n }",
"void setSentByEmail(long saleId) throws SQLException;",
"public void setSale(int sale) {\n\t\tthis.sa... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Given a set of sort names, asserts the internal sort ordering and returns the set as a list. | public List<String> assertSortOrdering(Set<String> theSet)
{
List<String> result = new ArrayList<String>(theSet.size());
// BFS through the sort hierarchy, adding sorts from theSet as they match.
List<MSort> todo = new ArrayList<MSort>();
Set<MSort> done = new HashSet<MSort>();
// Start with the to... | [
"public List<String> set_ordered(Set<String> s) {\n List<String> list = new ArrayList<String>(s);\r\n Collections.sort(list);\r\n return list;\r\n }",
"public List<String> set_ordered(Set<String> s) {\n List<String> list = new ArrayList<String>(s);\n Collections.sort(list);\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Aufruf der statischen Methode durch ResponsibilityMapper.responsibilityMapper(). Singleton: Es kann nur eine Instanz von ResponsibilityMapper existieren | public static ResponsibilityMapper responsibilityMapper() {
if (responsibilityMapper == null) {
responsibilityMapper = new ResponsibilityMapper();
}
return responsibilityMapper;
} | [
"public static ModuleMapper getInstance() {\n return singleton;\n }",
"public static ClassMapperFactory instance(){\n return singleton;\n }",
"public static BokMapper getInstance(){\r\n\t\treturn BokMapper;\r\n\t}",
"protected BusinessObjectMapper() {\n }",
"public static ObjectMapper... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the organizer of this meeting. | public EmailAddress getOrganizer() throws ServiceLocalException {
return (EmailAddress) this.getPropertyBag()
.getObjectFromPropertyDefinition(AppointmentSchema.Organizer);
} | [
"public Organizer getCurrOrganizer(){\n return (Organizer) getCurrAccount();\n }",
"public String getOrganiser() {\n return organiser;\n }",
"public String getOrganiserName() {\n return organiserName;\n }",
"public String getOrganizerDisplayName() {\n\t\t//Profile organizer = ofy... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Checks for possible conflicts between selected (adding) course and current (selectedCourses) list If no conflicts > add new course to selectedCourses list | public void addCourse(FutureCourse c) throws Exception{
for (FutureCourse course: selectedCourses){
if ((course.getCourse()+course.getNumber()).equals(c.getCourse()+c.getNumber()))
throw new Exception("Duplicate Course " + course.getCourse() +"-"+ course.getNumber());
if ... | [
"private void addActiveCourseListToCourseList() {\n courseList.addCoursesToList(activeCourseList);\n activeCourseList = new ArrayList<>();\n System.out.println(\"Added and Cleared!\");\n }",
"private void addSavedCourseToACL() {\n System.out.println(\"(note that selecting a saved co... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Stops the background thread. stopProducerThread | protected synchronized void stopProducerThread() {
logger.debug(LOG_TAG + ".stopProducerThread()");
thread_continue = false;
} | [
"public void stopThread() {\n\t\tThread.currentThread().stop();\n\t}",
"public void stop() {\n thread.interrupt();\n }",
"public void stopThread() {\n\t\tm_running = false;\n\t}",
"public void stopThread()\n\t{\n\t\texitThread = true;\n\t}",
"public void stopThread() \n {\n \tthis.exit = true;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Because Namespace is serialized by proxy, the reading of direct Namespace instances is illegal and prohibited. | private Object readResolve() throws InvalidObjectException {
throw new InvalidObjectException(
"Namespace is serialized through a proxy");
} | [
"private Object writeReplace() {\n return new NamespaceSerializationProxy(prefix, uri);\n }",
"public Namespace getNamespace(Address addr);",
"public Namespace getNamespace(String name, Namespace namespace);",
"@Override\n public boolean isInternalNamespace(String namespace) {\n return true;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the value of the 'Coordinate System' containment reference. Whether the sequence is numbered starting at 0 (0based numbering or coordinates, inclusive start, exclusive end) or starting at 1 (1based numbering, inclusive start and inclusive end). | org.hl7.fhir.Integer getCoordinateSystem(); | [
"public static int getCoordinateSystem() {\r\n return coordinate_system;\r\n }",
"public VerticalCrs getCoordinateReferenceSystem() {\n return crs;\n }",
"public java.lang.String getCoordSys() {\n java.lang.Object ref = coordSys_;\n if (!(ref instanceof java.lang.String)) {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the photo reference for this place. | public String getPhoto() {
return photoRef;
} | [
"public String getPhotoUrl() {\n return fullPhoto.getPhotoUrl();\n }",
"public Photograph getPhoto() {\n return photo;\n }",
"public ImageReference imageReference() {\n return this.imageReference;\n }",
"public String getPhoto()\r\n {\r\n return getSemanticObject().getP... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Inserts new Rule to DB. For this, some fields of the Rule Tuple needs to be updated with the latest from the Rules Builder screen. | private void insertNewRuleToDB(){
String createdDateAndTime = mRuleModel.getRuleInstance().getKey();
if (LOG_DEBUG) Log.d(TAG,"Insert New Rule to DB");
// Generate a new rule key only if the rule key is null or has not been passed in
// which is only for blank rule use case.
if(Util.is... | [
"private void addNewRuleToDB()\n {\n Thread thread = new Thread() {\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\tinsertNewRuleToDB();\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tLog.e(TAG, \"Exception while inserting new rule\");\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tthr... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Container's getter for StockPricesROVO. | public ViewObjectImpl getStockPricesROVO() {
return (ViewObjectImpl)findViewObject("StockPricesROVO");
} | [
"public StockPricesVOImpl getStockPricesVO() {\n return (StockPricesVOImpl)findViewObject(\"StockPricesVO\");\n }",
"public StockDetailsROVOImpl getStockDetailsROVO() {\n return (StockDetailsROVOImpl)findViewObject(\"StockDetailsROVO\");\n }",
"public TestStockPricesVOImpl getTestStockPrices... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns number of "depDate" element | public int sizeOfDepDateArray()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(DEPDATE$6);
}
} | [
"public int getDepNum() {\n\t\tArrayList<String> temp = Main.dbaseClass.getDepartmentList();\n\n\t\treturn temp.size();\n\t}",
"public int getNumberOfDates() {\n return dateList.size();\n }",
"public int getNumOfdays() {\r\n\t\treturn numOfdays;\r\n\t}",
"public final int getNoOfDays() {\n return... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method returns Optimizer used for training | ConvexOptimizer getOptimizer(); | [
"OptimisationAlgo createOptimisationAlgo();",
"public OptimizationAlgorithm getOptimizationAlgorithm();",
"public void setOptimizer(Optimizer optimizer) {\r\n }",
"public Minimizer getMinimizer() {\n return minimizer;\n }",
"public LocalOptimizerIntf newInstance() {\r\n return new SGD4FFNN()... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Reads the java package of a .java file. | private static String readJavaPackageName(File javaFile) {
String javaPackageName = "";
Scanner fileScanner;
try {
fileScanner = new Scanner(javaFile);
while (fileScanner.hasNextLine()) {
String currentLine = fileScanner.nextLine();
if (cur... | [
"private Optional<String> getPackage(File javaFile) {\n try (var lines = LineStream.newInstance(javaFile)) {\r\n while (lines.hasNextLine()) {\r\n var line = lines.nextLine().strip().toLowerCase();\r\n\r\n // Found package\r\n if (line.startsWith(\"pack... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column admin.a_id | public Integer getaId() {
return aId;
} | [
"public Integer getAdminid() {\r\n return adminid;\r\n }",
"public String getaId() {\n return aId;\n }",
"public Long getAdminid() {\n return adminid;\n }",
"public int getAId() {\n return instance.getAId();\n }",
"public String getAdminId() {\n return ad... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the top of the discardPile. | public Card getTopCardDiscardPile() {
return discardPile.get(discardPile.size() - 1);
} | [
"public Card dealTopCard(){\n\n Card topCard = ( this.dealerPile.isEmpty()) ?\n this.discardPile.remove(this.discardPile.size()-1) :\n this.dealerPile.remove(0);\n\n this.discardPile.add(topCard);\n return topCard;\n }",
"public Card removeTopCard(){\n\t\tretu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set the selected option by its index value. (Starts at 0) | public void setSelected(int index){
optGroup.setSelected(index);
setText(optGroup.selectedText());
} | [
"public native void setSelectedIndex(int index);",
"public void setSelectedIndex(int i) {\n select.setSelectedIndex(i);\n refresh(); // updates UI and always resets invalid index to 0\n }",
"protected void setChoice(int index) {\n\t\tchoiceOption = getOption(index);\n\t}",
"void selectDropDow... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Basic topic access control test. | @Test
public void testTopicAccessControl() {
// set permissions
PermissionData data = new PermissionData(true, false, false, true);
pms.configureTopicPermissions(testUser, category, data);
// test access control
assertTrue(accessControlService.canViewTopics(category), "Test ... | [
"@Test()\n public void doTestWithNormalPermission() throws Exception {\n doTestChangeTopic(\"publisher\", \"123\");\n }",
"@Test()\n public void doTestWithSuperPermission() throws Exception {\n doTestChangeTopic(\"admin\", \"123\");\n }",
"@Test\n public void orgApacheFelixEventadmi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Insert a document to collection | public void insertDoc( String collectionName, BasicDBObject doc) {
DB conn=null;
try {
conn=MongoDBHelper.getConnection();
DBCollection coll = conn.getCollection(collectionName);
coll.insert(doc);
} catch (Exception e) {
Logger.info(Util.stackTraceToString(e));
} finally ... | [
"public void insertDB() {\n \n collection.insertOne(document);\n }",
"String insertOne(String document);",
"int insert(Collection record);",
"public void insertDocument(CorpusDocument doc){\n \t\n \tthis.cache.put(doc.did, doc); \n \tthis.size = (long) this.cache.size();\n }",
"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
write the updated phonebook to the contacts.txt in alphabetical order | public static void writeFile ( LinkedList contactsList ) {
try {
PrintWriter writer = new PrintWriter ( "contacts.txt" );
for ( int row = 0; row < contactsList.size ( ); row++ ) {
// this is basically a toString right here, adapted to the original contacts.txt
String ... | [
"static void writeFile(){\n try{\n Path contactsListPath = Paths.get(\"contacts\",\"contacts.txt\");\n Files.write(contactsListPath, contactList);\n } catch(IOException ioe){\n ioe.printStackTrace();\n }\n //refreshes list of Contact objs\n fileToC... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the time zone with the given time zone value. Parameters:value the given time zone.See Also:getTimeZone() | public void setTimeZone(TimeZone value); | [
"public void setTimeZone(java.lang.String value) {\n this.timeZone = value;\n }",
"protected void setZone(ZoneId value) {\n ZoneId oldValue = this.zone;\n this.zone = Objects.requireNonNull(value);\n if (!oldValue.equals(value)) {\n firePropertyChange(PROP_ZONE, oldValue, value... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates the callback factory for the data provider. | private OverviewCallbackFactory<T> createCallbackFactory()
{
return new OverviewCallbackFactoryImpl<T>(pnlError);
} | [
"Callback createCallback();",
"T create(String name, Closure configureClosure) throws InvalidUserDataException;",
"@Test\n public void testCreateCallback()\n {\n assertThat(m_SUT.createCallback(factoryServiceContext).getClass().getName(), \n is(AssetRegistryCallback.class.getName()))... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Ensure we have a copy of the lang object in Minecraft | void updateLang() {
if (lang == null)
lang = game.q;
} | [
"private SCChangeLanguageRet() {}",
"private CSChangeLanguage() {}",
"public abstract LanguageUnit getClone();",
"private MotherTongueLangData(Lang inLang) {\n\t\tsuper(inLang);\n\t}",
"public void prepareLang(){\n\n SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
gets map with all registered sign placeholders | public Map<String, SignPlaceHolder> getPlaceHolders() {
return placeHolders;
} | [
"public Map<Formal, Actual> substitutions();",
"private static final HashMap<String, String> getLatexConstants() {\r\n\t\tfinal HashMap<String, String> out = new HashMap<String, String>();\r\n\t\t\r\n\t\tout.put(\"e\", \"e\");\r\n\t\tout.put(\"pi\", \"\\\\pi\");\r\n\t\tout.put(\"i\", \"i\");\r\n\t\t\r\n\t\treturn... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets user cnt halfyear. | public void setUserCntHalfyear(String userCntHalfyear) {
this.userCntHalfyear = userCntHalfyear;
} | [
"public String getUserCntHalfyear( ) {\n\t\treturn this.userCntHalfyear;\n\t}",
"void setYears(int x) {\n\t\tyearsWorked = x;\r\n\t}",
"void setMaxYears(int val);",
"public void setYearInClaimsMade(java.lang.Integer value);",
"@Override\n\tpublic void setYear(int year) {\n\t\t_esfShooterAffiliationChrono.se... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Adds the equivalent classes as object properties. | private static void addEquivalentClassesAsObjectProperties(OWLClass sourceClass, OWLOntology sourceAttributeOntology, OWLOntology targetOntology) {
OWLOntologyManager manager = OWLManager.createOWLOntologyManager();
OWLDataFactory factory = manager.getOWLDataFactory();
Set<OWLObjectProperty> eqProps = new HashSet... | [
"private static void addEquivalentClassesAsDataProperties(OWLClass sourceClass, OWLOntology sourceAttributeOntology, OWLOntology targetOntology) {\n\t\tOWLOntologyManager manager = OWLManager.createOWLOntologyManager();\n\t\tOWLDataFactory factory = manager.getOWLDataFactory();\n\t\tSet<OWLDataProperty> eqProps = n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Formats project values of employee to be put into the works_on table The Oracle types are (Char, Number, Number) It will grab each project name and hours for that project from listOfProjects then grab each pno associated to that project and then it will put into an object type of ProjectPair(Pno,Hours). From here it wi... | public void insertIntoWorksOn(Employee e) throws SQLException, IOException {
System.out.println("ENTERED INSERT WORKS_ON TABLE");
ArrayList<ProjectPair> numOfProjects = new ArrayList<ProjectPair>();
String pName = null;
BigDecimal pno;
BigDecimal hours;
String insertQuery = "insert INTO works_on(essn,pno,ho... | [
"public void createProject(Project project, List<Employee> allEmployees) throws SQLException;",
"@FXML\n\tpublic void assignNewProjects() {\n\t\t\n\t\toutputArea = \"\";\n\t\tdatabase_output.setText(outputArea);\n\t\t\n\t\ttry {\n\t\t\ttotalHours = 0.0;\n\t\t\tString projectName = projects_comboBox.getSelectionMo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method saves the added product data to inventory. | private void saveAddedProduct() {
Product product = new Product(Integer.parseInt(id.getText().trim()), name.getText().trim(),Double.parseDouble(price.getText().trim()),
Integer.parseInt(Inv.getText().trim()), Integer.parseInt(min.getText().trim()),Integer.parseInt(max.getText().trim()));
... | [
"public void save() {\r\n\t\tGame.getInstance().getInventory().add(id);\r\n\t}",
"public void addProduct(Product item){\n inventory.add(item);\n }",
"public void saveButtonClicked() {\r\n for (Part part : toBeAddedList) {\r\n double temp = part.getPrice();\r\n sum += temp;... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
For ORDER BY columnAlias (where columnAlias is a "column AS columnAlias") | @Override
public boolean isSortByAlias()
{
return true;
} | [
"public abstract ClauseHelper addOrderByClause(ClauseHelper helper) throws SQLException, QueryBuilderException;",
"OrderByColumnFull createOrderByColumnFull();",
"OrderByClause createOrderByClause();",
"protected void generateOrderBy( SQLQueryModel query, LogicalModel model, List<Order> orderBy,\n Databa... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets all of the candidates that should be considered when choosing a default application. | @NonNull
protected abstract List<DefaultAppInfo> getCandidates(); | [
"public List<FeedHenryApplication> getSelectedApplications(){\n\t\tObject[] checked = block.getCheckedElements();\n\t\tif(checked == null || checked.length <1){\n\t\t\treturn Collections.emptyList();\n\t\t}\n\t\tfinal List<FeedHenryApplication> selectedApps = new ArrayList<>();\n\t\tfor (int i = 0; i < checked.leng... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create a media file directory with the given name | public MediaFileDirectory createMediaFileDirectory(
MediaFileDirectory parentDirectory, String newDirName)
throws WebloggerException; | [
"private void createMediaDirectory() {\n try {\n File mFilename = new File(RECEIVED_MEDIA_PATH);\n if (!mFilename.exists()) {\n mFilename.mkdirs();\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"public void createM... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
image service interface with get methods for an image | public interface ImageService {
List<Image> queryImages(Image image) throws Exception;
Image getImageById(Long id) throws Exception;
} | [
"org.openstack4j.api.image.v2.ImageService imagesV2();",
"public interface ImageService {\n\n /**\n * Save a image.\n *\n * @param image the entity to save\n * @return the persisted entity\n */\n Image save(Image image);\n\n /**\n * Get all the images.\n *\n * @return the ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method sets the value of the database column ability_honor.ability_type | public void setAbilityType(String abilityType) {
this.abilityType = abilityType == null ? null : abilityType.trim();
} | [
"private final void setAbilityTypeTable()\n\t{\n\t\tabilityTypeTable.put(0, \"Fire\");\n\t\tabilityTypeTable.put(1, \"Water\");\n\t\tabilityTypeTable.put(2, \"Air\");\n\t\tabilityTypeTable.put(3, \"Earth\");\n\t\tabilityTypeTable.put(4, \"Holy\");\n\t\tabilityTypeTable.put(5, \"Stun\");\n\t\tabilityTypeTable.put(6,... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
get's the static instance of the AppController object and initializes it if it has not been initialized | public static AppController getInstance(){
if(appController == null){
appController = new AppController();
}
return appController;
} | [
"public static synchronized AppController getInstance() {\n return mInstance;\n }",
"public static ApplicationController instance() {\r\n\t\treturn controller;\r\n\t}",
"public static ApplicationController getInstance() {\n if (instance == null) {\n // creating new instance of applic... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test of lihatBarang method, of class DataBarang. | @Test
public void testLihatBarang() {
System.out.println("lihatBarang");
String exp = "1", res = "";
DataBarang instance = new DataBarang();
Object[][] expResult = null;
Object[][] result = instance.lihatBarang();
res = result[0][0].toString();
assertE... | [
"@Test\r\n public void testCrdBarang() {\r\n DataBarang instance = new DataBarang();\r\n System.out.println(\"crdBarang\");\r\n String sql = \"\";\r\n \r\n boolean expResult = false;\r\n boolean result = instance.crdBarang(sql);\r\n assertEquals(expResult, result)... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional string market_hash_name = 18; | @java.lang.Override
public java.lang.String getMarketHashName() {
java.lang.Object ref = marketHashName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
ja... | [
"java.lang.String getMarketHashName();",
"public Builder setMarketHashName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00020000;\n marketHashName_ = value;\n onChanged();\n return this;\n }",
"public... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method will read the saved shortlist from a .TXT file and input it into the app. | public static void read() {
try {
File f = new File(filePath);
if (f.createNewFile()) {
HdBuyLogger.info("Shortlist can be found at: \" + f.getPath()");
}
Scanner s = new Scanner(f);
while (s.hasNext()) {
String input = ... | [
"public void readWordList() {\n try {\n wordList = XmlStringArrayParser.parse(getAssets().open(Constant.WORDLISTFILE),\n settings.getInt(\"wordMaxLength\", 7));\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"private void readItemsFrom... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Extract the bindings from the input folder to the output file, using the bindingExtractor. | public static void extractBindings(final File inputFolder,
final File outputFile,
final AbstractJavaNameBindingsExtractor bindingExtractor)
throws IOException, JsonIOException {
final Collection<File> allFiles = FileUtils
.listFiles(inputFolder, JavaTokenizer.javaCodeFileFilter,
DirectoryFileFilter... | [
"public List<String> extractBaseBindingFile(List<String> pathList, ZipFile zip, String directory, String groupId, String artifactId, String filePathInJar)\n\t{\n\t\ttry {\n\t\t\tString filenameIn = filePathInJar;\n\t\t\tif (directory != null)\n\t\t\t\tfilenameIn = addToPath(directory, filenameIn);\n\t\t\tZipEntry e... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the yyyyMMdd HH:mm threadlocal SimpleDateFormat. | public static SimpleDateFormat getYYYYMMDDWithTimeFormat()
{
return yyyymmddWithTimeFormat.get();
} | [
"private SimpleDateFormat getFormattedDt(){\n m_simpDateFmt = new SimpleDateFormat(m_simpleDateFormatStr);\n m_simpDateFmt.setTimeZone(TimeZone.getTimeZone(m_localTimeZone));\n return m_simpDateFmt;\n }",
"public static SimpleDateFormat getHHMMTimestampParser()\n {\n final Si... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |