query
stringlengths
8
1.54M
document
stringlengths
9
312k
negatives
listlengths
19
20
metadata
dict
/ Insert word into the tree. First, find the longest prefix of word that is already in the tree (use getPrefixNode() below). Then, add TreeNode(s) such that the word is inserted according to the specification in PDF.
public void insert(String word) { // ADD YOUR CODE BELOW HERE WordTreeNode prefix = this.getPrefixNode(word); char c = 0; int i = 0; if (prefix.depth<word.length()) { i = prefix.depth; c = word.charAt(i); prefix.createChild(c); prefix = prefix.getChild(c); i++; while (i<word.length()) { ...
[ "public void insert(String word){\n // convert to lower and set pointer to root\n String lowerWord = word.toLowerCase();\n HashMap<Character, TrieNode> children = root.children;\n // for each letter in the word, travel down from the root\n for(int i = 0; i<lowerWord.length();i++){...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get a new UriBuilder explicitly using RESTEasy implementation (instead of running UriBuilder.fromUri(uri) which relies on current registered JAXRS implementation)
private static UriBuilder uriBuilderFromUri(URI uri) { return new UriBuilderImpl().uri(uri); }
[ "protected <T> UriBuilder buildURI(Class<T> resourceClass, String method) {\n\t\t//start with the URI for the WAR deployed to the server \n\t\t//that ends with the context-root\n\t\treturn UriBuilder.fromUri(appURI)\n\t\t\t\t//add path info from the \n\t\t\t\t//javax.ws.rs.core.Application @ApplicationPath\n\t\t\t\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Basically we're checking to make sure that we actually have some leaf tasks to execute.
public boolean checkConditions() { // logger.info("Checking Conditions"); return control.subTasks.size() > 0; }
[ "public void check() {\n\t\tif (!shouldCheck()) return; // Check every now and then\n\n\t\tSet<Task> taskFound = findRunningTasks();\n\n\t\t// If any 'running' tasks was not not found, mark is as finished ('ERROR')\n\t\tif( taskFound != null )\ttasksRunning(taskFound);\n\t}", "public boolean hasSubTasks() {\n\t\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the names of MBeans controlled by the MBean server. This method enables any of the following to be obtained: The names of all MBeans, the names of a set of MBeans specified by pattern matching on the ObjectName and/or a Query expression, a specific MBean name (equivalent to testing whether an MBean is registered)....
public Set queryNames(final ObjectName name, final QueryExp query) throws Exception{ return getMBeanServer().queryNames(name, query); }
[ "String[] getBeanNames();", "public String [] getValveNames()\n throws Exception\n {\n GlassFishValve [] valves = this.getValves();\n String [] mbeanNames = new String[valves.length];\n for (int i = 0; i < valves.length; i++) {\n if( valves[i] == null ) continue;\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
delete the manager with the given id
public void deleteManager(Integer id) { try { ps = JDBConnection.getInstance().prepareStatement("delete from tb_manager where id=?"); ps.setInt(1, id); ps.executeUpdate(); ps.close(); } catch (SQLException ignored) { } }
[ "@DeleteMapping(\"/managers/{id}\")\n @Timed\n public ResponseEntity<Void> deleteManager(@PathVariable Long id) {\n log.debug(\"REST request to delete Manager : {}\", id);\n managerService.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(\"manager\", i...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set services for this component.
public void setServices(List<AService> services) { this.services = services; }
[ "public void setServices( Service[] services )\n {\n this.services = services;\n }", "public void setServices(ArrayList<Service> services){\n\t\tthis.services = services;\n\t}", "void setConnectedServices(final Set<Service> connectedServices);", "void setServiceName(String serviceName);", "publ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Log a message to the log buffer
private void LogToBuffer(String message) { if (DONTLOG_logPauseButton.GetValue() == 0) { LocalDateTime now = LocalDateTime.now(); String threadName = "";//Thread.currentThread().getName(); long threadId = Thread.currentThread().getId(); String formattedMessage = da...
[ "public void log(Message aMessage);", "public void writeLog(String msg);", "public void setLogBuffer(byte[] logBuffer) {\r\n this.logBuffer = logBuffer;\r\n }", "void log(byte[] buffer, int start, int count) throws IOException;", "private void log(String message) {\n if (this.listener != nu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the table reference that contains the columns to which the given property is mapped.
public Table getContainingTable(String propertyName);
[ "ColumnReference getColumnReference();", "@objid (\"818dee09-2959-443b-9223-8a8a24ff4879\")\n PropertyTableDefinition getDefinedTable();", "PropertyTable getPropertyTable();", "public ColumnNameReference getReferencedColumn();", "TableReference getTableReference();", "Table getReferencedTable();", "P...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
clones from another EnrollmentYear
public EnrollmentYear(EnrollmentYear enrollmentYear) { year = enrollmentYear.getYear(); enrollments = enrollmentYear.getEnrollments(); }
[ "private AbsentYear createAbsentYear(Employee emp, LocalDate startDate) {\n\t\tAbsentYear absentYear = new AbsentYear();\n\t\tabsentYear.setEmployee(emp);\n\t\tabsentYear.setYear((short)startDate.getYear());\n\t\tabsYearRepo.save(absentYear);\n\t\treturn absentYear;\n\t}", "Course buildCopy(UUID courseUuid, Strin...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
loops through each element in the grid and prints it's contents. It prints "[ ]" in place of null values
public void printGrid() { for(int i = 0; i < numRows; i++) { for(int j = 0; j < numColumns; j++) { if(grid[i][j] == null) { System.out.print("[ ]"); } else { System.out.print(grid[i][j]); } } System.out.println("\n"); } System.out.println("\n\n"); }
[ "public void printGridAsChild()\n\t{\n\t\tfor ( int y = 0; y < height; y++)\n\t\t{\n\t\t\tSystem.out.print( \"\\t\" );\n\t\t\tfor ( int x = 0; x < width; x++ )\n\t\t\t{\n\t\t\t\t// If x & y are the same as the empty tile coordinates, print empty tile\n\t\t\t\tif ( x == x0 && y == y0 ) System.out.print( \" \" );\n\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Merges the timelines of a plan.
private void mergeTimeLines(Plan plan) { for(int targetLineIndex = 0; targetLineIndex < plan.getTimeLineNumber(); targetLineIndex++) { TimeLine targetLine = plan.getTimeLine(targetLineIndex); //loop through every other timeline for(int sourceLineIndex = 0; sourceLineIndex < plan...
[ "private void removeEmptyTimeLines(Plan plan)\r\n\t{\r\n\t\tint index = 0;\r\n\t\twhile(index < plan.getTimeLineNumber())\r\n\t\t{\r\n\t\t\tif(!plan.getTimeLine(index).containsExams())\r\n\t\t\t{\r\n\t\t\t\tplan.removeTimeLine(index);\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tindex++;\r\n\t\t\t}\r\n\t\t}\r\n\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the status LED to the given RGB colour.
void setStatusColour(Color colour);
[ "void setLedColour(int position, int colour);", "void setColor(int aLedIndex, int aRed, int aGreen, int aBlue);", "public int set_rgbColor( long newval) throws YAPI_Exception\n {\n String rest_val;\n rest_val = String.format(\"0x%06x\",newval);\n _setAttr(\"rgbColor\",rest_val);\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Lists annotated datasets for a dataset. Pagination is supported.
default void listAnnotatedDatasets( com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest request, io.grpc.stub.StreamObserver< com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse> responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplemen...
[ "public void listAnnotatedDatasets(\n com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest request,\n io.grpc.stub.StreamObserver<\n com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse>\n responseObserver) {\n io.grpc.stub.ClientCalls.asyncU...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Compares the U or V pane of the initial image, and the U or V pane after having encoded & decoded the image.
private boolean compareChromaPanes(boolean crossed) { int d; int f = 0; for (int j = 0; j < NB_DECODED; j++) { if (decodedVideo[j] != null) { // We compare the U and V pane before and after if (!crossed) { ...
[ "private boolean compareLumaPanes()\n {\n int d;\n int e;\n int f = 0;\n\n for (int j = 0; j < NB_DECODED; j++)\n {\n for (int i = 0; i < size; i += 10)\n {\n d = (initialImage[i] & 0xFF) - (decodedVideo[j][i] & 0xFF);\n e = (...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
path is location of the main .pde file, because this is also simplest to use when opening the file from the finder/explorer.
public Sketch(Editor editor, String path) throws IOException { this.editor = editor; primaryFile = new File(path); // get the name of the sketch by chopping .pde or .java // off of the main file name String mainFilename = primaryFile.getName(); int suffixLength = getDefaultExtension().length()...
[ "String getMainPath();", "private String FilePathMenu(String path) {\n IDataChecker filePathChecker = new FilePathChecker();\n /* Reading input */\n Scanner scanner = new Scanner(System.in);\n while (!filePathChecker.check(path)) {\n System.out.println(\"There was no specifi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Constructors Create a detached TblsysPartnerJobviewRecord
public TblsysPartnerJobviewRecord() { super(TblsysPartnerJobview.TBLSYS_PARTNER_JOBVIEW); }
[ "public TblsysPartnerJobviewRecord(Integer entryid, Short partnerid, Integer jobid, Integer userid, String clientip, String browsertype, String clientport, Timestamp visiteddate) {\n super(TblsysPartnerJobview.TBLSYS_PARTNER_JOBVIEW);\n\n set(0, entryid);\n set(1, partnerid);\n set(2, jo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Display even number from startValue to stopValue using recursion
private static void recurseEvens(int startValue, int stopValue) { startValue++; if (startValue % 2 == 0 && startValue != stopValue) { System.out.println(startValue + " is an even number"); } if (startValue < stopValue) { recurseEvens(startValue, stopValue); } }
[ "void countDown (int start, int stop) {\n if (start < stop) {\n System.out.println(\"Start value must be bigger than stop\");\n return;\n }\n System.out.println(start);\n start--;\n\n if (start >= stop) {\n countDown(start, stop);\n }\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a new vivarium panel.
public VivariumPanel() { // Call super constructor super(); // Initialize properties this.turtles = new HashSet<>(); this.isDebug = false; }
[ "public ViewVendedor() {\n buttonClose = new javax.swing.JButton();\n labelStatus = new javax.swing.JLabel();\n panelVendedor = new javax.swing.JPanel();\n }", "private JPanel createSvmPane() {\n\t\tJPanel svmPane = new JPanel();\n\t\tsvmPane.setBorder(BorderFactory\n\t\t\t\t.createTitledB...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns a new picture that applies a motion blur filter to the given picture.
public static Picture motionBlur(Picture picture) { double[][] weights = { { 1 / 9.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 }, { 0.0, 1 / 9.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 }, { 0.0, 0.0, 1 / 9.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 }, { 0.0, 0.0, 0.0, 1 / 9.0, 0.0,...
[ "public static Picture motionBlur(Picture picture) {\r\n double[][] motionBlur = {\r\n {1.0/9,0,0,0,0,0,0,0,0},\r\n {0,1.0/9,0,0,0,0,0,0,0},\r\n {0,0,1.0/9,0,0,0,0,0,0},\r\n {0,0,0,1.0/9,0,0,0,0,0},\r\n {0,0,0,0,1.0/9,0,0,0,0},\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return first method by original short name Note: methods are not unique by name (class can have several methods with same name but different signature)
@Nullable public MethodNode searchMethodByShortName(String name) { for (MethodNode m : methods) { if (m.getMethodInfo().getName().equals(name)) { return m; } } return null; }
[ "public MethodInfo findMethodInfo( String name, Signature sig ) ;", "public SootMethod getMethod(String name) throws\n ca.mcgill.sable.soot.NoSuchMethodException, ca.mcgill.sable.soot.AmbiguousMethodException\n {\n boolean found = false;\n SootMethod foundMethod = null;\n \n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Opens the APK file by the name given in fileName argument and stored in the application's internal data directory. A Context object mContext is passed as argument to retrieve the application's internal data directory or package name or starting an activity/intent
public static String openApkAndUpdatePackage(String fileName, Context mContext) { File file = new File(mContext.getExternalFilesDir(null), fileName); Intent unKnownSourceIntent = new Intent(Settings.ACTION_MANAGE_UNKNOWN_APP_SOURCES).setData(Uri.parse(String.format("package:%s", mContext.getPackageName(...
[ "public static void installApp(Context context, File file) {\n Intent intent = new Intent(Intent.ACTION_VIEW);\n intent.setDataAndType(Uri.fromFile(file), \"application/vnd.android.package-archive\");\n context.startActivity(intent);\n }", "public void startRecording(String fileName)\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the string containing LIBlet attributes. These attributes are LIBletName, LIBletVendor and LIBletVersion. Attributes are separated by semicolons.
public static String getLibletDetails(Map<Object, Object> manifestAttributes) { return (String) manifestAttributes.get(new Attributes.Name("LIBlet-Name")) //NOI18N + ";" + (String) manifestAttributes.get(new Attributes.Name("LIBlet-Vendor")) //NOI18N ...
[ "public String getLibCode() {\n return (String) getAttributeInternal(LIBCODE);\n }", "public String getLibName() {\n return (String) getAttributeInternal(LIBNAME);\n }", "public String attrsToString() {\n StringBuffer sb = new StringBuffer();\n try {\n for (NamingEnumeration en = ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method checks to see if Risk Management needs to be routed
private boolean requiresRiskManagementReviewRouting() { // Right now this works just like International Travel Reviewer, but may change for next version if (ObjectUtils.isNotNull(this.getTripTypeCode()) && getParameterService().getParameterValuesAsString(TemParameterConstants.TEM_DOCUMENT.class, TravelP...
[ "@Override\n\tpublic boolean isDenied() {\n\t\treturn _pathologyData.isDenied();\n\t}", "private static void checkPermission(String action) {\r\n\t\t\r\n\t\t//TODO Implement the permission to access the mandator configuration\r\n\t}", "protected boolean checkForWorkflowRoutingRequests(AccountingDocument documen...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method returns the value of the database column BC_GLOBAL_PROPS.PROP_KEY
public String getPropKey() { return propKey; }
[ "String getDatabaseProp(String key);", "public String getPropertyKey() {\n\t\treturn propertyKey;\n\t}", "public String getActsDBProperty(String key) {\n loadDBConfiguration();\n return (String) dbProperties.get(key);\n }", "public String getPropertyMapKeyName() {\n return m_propertyMa...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
onClick method for the add button. Creates an intent to main activity and passes in the event fields
@RequiresApi(api = Build.VERSION_CODES.M) public void onClickAdd(View view) { Intent main = MainActivity.createIntent(this); String title = titleInput.getText().toString(); String deets = deetsInput.getText().toString(); String location = locationInput.getText().toString(); ...
[ "public void addEvent(View view) {\n Intent event = new Intent(this, AddEventActivity.class);\n event.putExtra(\"url\",\"http://goo.gl/forms/4QecbLtilN\");\n switch (view.getId()) {\n case R.id.imageButton100:\n MESSAGE = \"addevent\";\n break;\n\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns if the encoding provided is supported by the Java Runtime system.
public static boolean encodingSupported(String encoding) { boolean supported = true; try { CharToByteConverter.getConverter(encoding); } catch (UnsupportedEncodingException e) { supported = false; } return supported; }
[ "public boolean isSetEncoding() {\n return this.encoding != null;\n }", "Boolean isAllowDefaultCodec();", "String getSupportedEncoding(String acceptableEncodings);", "String getUseNativeEncoding();", "protected static boolean isSupported() {\n if (osName.contains(OS_NAME_LINUX)) {\n re...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Metodo encargado de eliminar un CompraComic modificarlo y guardarlo
public void eliminarCompraComic();
[ "public void eliminarCentrodelSistema (CentroDistribucion centro){\n int resultado = ControlGeneral.getInstance().eliminarCentro(centro);\n if (resultado == 1) {\n controlador.mostrarMensaje(\"Centro eliminado con éxito\",0);\n }\n else if (resultado == 0)\n controlador.m...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Fill data in Choose Another Build dropdown
public ListBoxModel doFillAllBuildItems() { ListBoxModel items = new ListBoxModel(); for (int i = 0; i < allBuildNum.size(); i++) { if (i == 0) { items.add(new Option("build" + " " + allBuildNum.get(i), allBuildNum.get(i) + "", true)); } else {...
[ "public void fillBuildingChoiceBox() {\n for (Building b: this.buildingArray) {\n buildingList.getItems().add(b);\n }\n }", "private void fillBuildingsChoicePanel() {\n\n int startRow = 31;\n int rowOffset = 3;\n int refRow;\n\n String choiceNumber;\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the number of e s f raduno staffs where id_esf_raduno = &63;.
@Override public int countByfindByIdRaduno(long id_esf_raduno) throws SystemException { FinderPath finderPath = FINDER_PATH_COUNT_BY_FINDBYIDRADUNO; Object[] finderArgs = new Object[] { id_esf_raduno }; Long count = (Long)FinderCacheUtil.getResult(finderPath, finderArgs, this); if (count == null) { ...
[ "@Override\n\tpublic int countByfindRadunoStaff(long id_esf_raduno, long userId)\n\t\tthrows SystemException {\n\t\tFinderPath finderPath = FINDER_PATH_COUNT_BY_FINDRADUNOSTAFF;\n\n\t\tObject[] finderArgs = new Object[] { id_esf_raduno, userId };\n\n\t\tLong count = (Long)FinderCacheUtil.getResult(finderPath, finde...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the route point.
public void setRoutePoint(String routePoint) { this.routePoint = routePoint; }
[ "public void setRoutePoint(AKeyCallPoint routePoint) {\n\t\t\tthis.routePoint = routePoint;\n\t\t}", "public void setPhotoPoint(int routePosition, PhotoPoint photoPoint) {\n route.set(routePosition, photoPoint);\n // If the routes been altered we need to reset the fitness and distance\n fitne...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
crea un profesor en la base de datos
public void crear(Profesor p) throws Exception { Connection con = AdministradorConexionJDBC.getConexion(); String sqlPers = "INSERT INTO tb_persona (cedula_per,apellido_per,correo_per,direccion_per,nombre_per,telefono_per) " + "VALUES (?,?,?,?,?,?)"; String sql = "INSERT INTO tb_docente (cedula_per,...
[ "public Perfil create(Perfil perfil);", "public void insertProblema() {\n \n \n java.util.Date d = new java.util.Date();\n java.sql.Date fecha = new java.sql.Date(d.getTime());\n \n this.equipo.setEstado(true);\n this.prob = new ReporteProblema(equipo, this.problem...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Allows the setting of the parent class field gender. This is implemented in the editProfile methods of MenuController, to allow this member to amend certain fields.
public void setGender(String gender) { super.setGender(gender); }
[ "protected void setGender(Gender gender) {\n this.gender = gender;\n }", "public static void setGender(String gender){\n setUserProperty(Constants.ZeTarget_keyForUserPropertyGender, gender);\n }", "public void setGender( String gender )\r\n {\r\n myGender = gender;\r\n }...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
build a place type (tuple) sort
private String mkPlaceSort(Vector<String> types, int index){ int dtSize = types.size(); StringBuilder z3sort = new StringBuilder(); z3sort.append("Z3_func_decl "+"DT"+index+"_mk_tuple_decl;"+nextline); z3sort.append("Z3_func_decl "+"DT"+index+"_proj_decls["+dtSize+"];"+nextline); z3sort.append("Z3_symbol "+"D...
[ "Sort createSort();", "private void createComparator() {\n if (this.sortType.equals(Enums.AZ)) {\n this.c = new Comparator<T>() {\n public int compare(T lhs, T rhs) {\n if (lhs instanceof Project && rhs instanceof Project) {\n return ((Pro...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Utility method to convert a Bbox to a GeoTools BBOX operator
protected static BinarySpatialOperator bboxToFilter(Bbox bbox) { return filterFactory.bbox("featureOfInterest/*/shape", bbox.getMinX(), bbox.getMinY(), bbox.getMaxX(), bbox.getMaxY(), bbox.getCrs()); }
[ "protected static Bbox filterToBbox(BinarySpatialOperator spatialFilter)\n {\n Bbox bbox = new Bbox();\n \n if (spatialFilter instanceof BBOX)\n {\n BBOX ogcBbox = (BBOX)spatialFilter;\n bbox.setCrs(ogcBbox.getSRS());\n bbox.setMinX(ogcBbox.getMinX());...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the stateCode value for this DocumentLineDetail.
public java.lang.String getStateCode() { return stateCode; }
[ "public String getStateCode() {\n return (String)getAttributeInternal(STATECODE);\n }", "public String stateCode() {\n return state;\n }", "public int getStateCode() {\n\t\treturn this.state.getNumeric();\n\t}", "@Override\n\tpublic java.lang.String getStateCode() {\n\t\treturn _state.getS...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR start "expression" C:\\work\\art\\latestcode\\vclangcodedd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\src\\art\\grammar\\expression.g:34:1: expression : ( freeExpression | stringExpression );
public final expressionParser.expression_return expression() throws RecognitionException { expressionParser.expression_return retval = new expressionParser.expression_return(); retval.start = input.LT(1); CommonTree root_0 = null; expressionParser.freeExpression_return freeExpression4 ...
[ "public final expressionParser.freeExpression_return freeExpression() throws RecognitionException {\n expressionParser.freeExpression_return retval = new expressionParser.freeExpression_return();\n retval.start = input.LT(1);\n\n CommonTree root_0 = null;\n\n Token string_literal21=null;...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "ruleConstDecl" $ANTLR start "entryRuleSharedVarsDeclRule" InternalUclid.g:1110:1: entryRuleSharedVarsDeclRule returns [EObject current=null] : iv_ruleSharedVarsDeclRule= ruleSharedVarsDeclRule EOF ;
public final EObject entryRuleSharedVarsDeclRule() throws RecognitionException { EObject current = null; EObject iv_ruleSharedVarsDeclRule = null; try { // InternalUclid.g:1110:59: (iv_ruleSharedVarsDeclRule= ruleSharedVarsDeclRule EOF ) // InternalUclid.g:1111:2: iv_r...
[ "SharedVarsDeclRule createSharedVarsDeclRule();", "public final EObject ruleSharedVarsDeclRule() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_0=null;\n Token otherlv_2=null;\n Token otherlv_4=null;\n Token otherlv_6=null;\n EObject lv_vars_1_0...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Getter method for property transLogId.
public String getTransLogId() { return transLogId; }
[ "public String getLogId() {\n return logId;\n }", "public Integer getLogId() {\n return logId;\n }", "public String getTransId() {\n return transId;\n }", "public Long getLogId() {\n return logId;\n }", "public String getTransId() {\n\t\treturn transId;\n\t}", "publ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/// Poner el NICK como nombre del ARCHIVO FOTO
public String fotoToNick() { if (fotoFile == null) { foto = "avatar.png"; } else { String nombreString = fotoFile.getName(); String[] extensionStrings = nombreString.split("\\."); foto = nick + "." + (extensionStrings[extensionStrings.length - 1]); ...
[ "public void restoreNick(Player player) {\r\n String sName = player.getName();\r\n\r\n String sDName = player.getDisplayName();\r\n\r\n DP pClass = plugin.getDatabase().find(DP.class).where().ieq(\"PlayerID\", player.getUniqueId().toString()).findUnique();\r\n\r\n if (pClass == null) {\r...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the value of the 'intSourceAssetID' field.
public void setIntSourceAssetID(java.lang.Long intSourceAssetID) { this.intSourceAssetID = intSourceAssetID; }
[ "public Builder setAssetSourceValue(int value) {\n assetSource_ = value;\n bitField0_ |= 0x00000002;\n onChanged();\n return this;\n }", "public void setIntAssetID(java.lang.Long intAssetID)\n\t{\n\t\tthis.intAssetID = intAssetID;\n\t}", "public void setAssetID(int assetID) {\n thi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__IfStmt__Group__0__Impl" $ANTLR start "rule__IfStmt__Group__1" InternalMGPL.g:2578:1: rule__IfStmt__Group__1 : rule__IfStmt__Group__1__Impl rule__IfStmt__Group__2 ;
public final void rule__IfStmt__Group__1() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalMGPL.g:2582:1: ( rule__IfStmt__Group__1__Impl rule__IfStmt__Group__2 ) // InternalMGPL.g:2583:2: rule__IfStmt__Group__1__Impl rule__IfStmt__Grou...
[ "public final void rule__IfStmt__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMGPL.g:2555:1: ( rule__IfStmt__Group__0__Impl rule__IfStmt__Group__1 )\n // InternalMGPL.g:2556:2: rule__IfStmt__Group__0__Impl rule...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method is used to check if the folder is displayed
public boolean isFolderDisplayed(String strFolderName) throws Exception { flag = false; try { logInstruction("LOG INSTRUCTION : Method to check if the folder name is displayed"); if (StringUtils.isNotBlank(strFolderName)) { frameSwitch.switchToAddLinkFrame(); ...
[ "boolean isFolder();", "public boolean isFolderIconDisplayedForRootFolder(String strFolderName) throws Exception {\n flag = false;\n try {\n logInstruction(\"LOG INSTRUCTION : METHOD TO CHECK IF THE FOLDER IS DISPLAYED\");\n if (StringUtils.isNotBlank(strFolderName)) {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Retrieve the core pool size from the pool's Executor.
int getExecutorCorePoolSize();
[ "public Object getExecutorSize() {\n return this.executorSize;\n }", "public Object executorSize() {\n return this.innerTypeProperties() == null ? null : this.innerTypeProperties().executorSize();\n }", "public int poolSize() {\n return partitionWorkers.size();\n }", "public stat...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column tbl_car_info.total_mile
public void setTotalMile(Integer totalMile) { this.totalMile = totalMile; }
[ "public Integer getTotalMile() {\n return totalMile;\n }", "public void setMileage(int mileage){\n this.mileage = mileage;\n }", "public final void setMile(Double mile) {\n this.mile = mile;\n }", "public void setMilesPerGallon(double mpg) { \r\n\tthis.milesPerGallon = mpg;\r\n}", "p...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
testing the method square
@Test public void testSquare() { double tmpRndVal = 0.0; double expResult = 0.0; //testing with negative numbers for (int i = 0; i < 5; i++) { tmpRndVal = doubleRandomNegativeNumbers(); expResult = Math.sqrt(tmpRndVal); assertEquals(ac.square(tmpRndVal), expResult, 0); } //testing with posit...
[ "@Test\r\n public void testIsValidSquare()\r\n {\r\n for(int y = 0; y < 8; y++)\r\n for(int x = 0; x < 8; x++)\r\n assertTrue(board.isValidSqr(x, y));\r\n }", "@Test\n\tpublic void testSquares() {\n\t\t\n\t\t//create new random array at each iteration and create the Laboo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Removes a value of property Translationof given as an instance of Document
public void removebiboTranslationof(Document value) { Base.remove(this.model, this.getResource(), TRANSLATIONOF, value); }
[ "public void removebiboTranslationof( org.ontoware.rdf2go.model.node.Node value) {\n\t\tBase.remove(this.model, this.getResource(), TRANSLATIONOF, value);\n\t}", "public static void removebiboTranslationof(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, Document value) {\n\t\tBase.remove(mo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the first tv show in the ordered set where groupId = &63;.
@Override public TvShow fetchByGroupId_First(long groupId, OrderByComparator orderByComparator) throws SystemException { List<TvShow> list = findByGroupId(groupId, 0, 1, orderByComparator); if (!list.isEmpty()) { return list.get(0); } return null; }
[ "public hu.webtown.liferay.portlet.model.Season fetchByG_T_First(\n\t\tlong groupId, long tvShowId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public hu.webtown.liferay.portlet.model.Season findByG_T_First(\n\t\tlong...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Test of laenge method, of class ADTList.
@Test public void testLaenge() { System.out.println("---laenge---"); //Test1: An empty ADTList has a length of 0 ADTList instance = ADTList.create(); int expResult = 0; int result = instance.laenge(); assertEquals(expResult, result); System.out.println("Test1 ...
[ "@Test\n public void testGetHdAList() {\n AList instance = new AList(1, 0, null);\n int expResult = 1;\n int result = instance.getHd();\n assertEquals(expResult, result);\n }", "@Test\n public void testGetNextNodeAList() {\n \n AList instance = new AList(1, 0, ne...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Updates nearbyActors with the current connected actors
public void updateNearbyActors(boolean lookForWalls) { nearbyActors = new boolean[3][3]; float[] boundaryVertices = getBoundary().getTransformedVertices(); float size = getWidth(); Polygon check; for(int i = 0; i < nearbyActors.length; i++) { for(int j = 0; j < nearbyActors[i].length; j++) { ...
[ "private void processActors()\n {\n for (NetworkActor nActor : state.getActors())\n {\n int id = nActor.getId();\n NetworkActor actor = actors.get(id);\n\n if (null == actor)\n {\n actor = nActor;\n addObject(actor, nActor.ge...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Fill the certain cell in the AlignMatrix with a score.
protected abstract void fill(AlignMatrix<Double> matrix, int row, int column, double score, AlignCell<Double> former);
[ "void setScoreAt(int idx, int value);", "private void scoreSetter(int armThickness, int size) {\r\n int middleRows = armThickness * size;\r\n int topBlock = armThickness * (armThickness - 1);\r\n int bottomBlock = armThickness * (armThickness - 1);\r\n this.initialScore = middleRows + topBlock + botto...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
In this step we collect all intercepted static methods, i.e. static methods annotated with interceptor bindings
@BuildStep void collectInterceptedStaticMethods(BeanArchiveIndexBuildItem beanArchiveIndex, BuildProducer<InterceptedStaticMethodBuildItem> interceptedStaticMethods, InterceptorResolverBuildItem interceptorResolver, TransformedAnnotationsBuildItem transformedAnnotations, BuildPro...
[ "List<MethodInterceptor> getInterceptors(Method method);", "@Override\n public int getCountOfStaticMethods() {\n int count =0;\n Method[] methods = objClass.getDeclaredMethods();\n for (Method method: methods){\n if (Modifier.isStatic(method.getModifiers())){\n co...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the id associated to a given Ksatr type.
public static int getIdByType(String type) { return idTypeMap.get(type).intValue(); }
[ "String getTypeID();", "public String getIdType() {\n return id_type;\n }", "public int id(String type, String name) {\n String key = type + \"/\" + name;\n Integer id = this.ids.get(key);\n if (id == null) {\n id = this.resources.getIdentifier(name, type, this.packageName);\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Locate a import definition on the server. An error message will be produced if the workspace, model or import definition cannot be located.
protected static Import getImport(String workspaceId, String modelId, String importId) throws AnaplanAPIException { Model model = getModel(workspaceId, modelId); if (model == null) { return null; } if (importId == null || importId.isEmpty()) { LOG.error("A...
[ "ImportDefinition createImportDefinition();", "private void importXMLSchema(Import bpelImport) {\n \tString namespace = bpelImport.getNamespace();\n \tString location = bpelImport.getLocation();\n \tif (location == null) {\n mLogger.severe(\"Unable to import schema document, import location is...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Deletes the named Gene object.
public void delete(Gene gene) throws HibernateException { try { getCurrentSession().beginTransaction(); getCurrentSession().delete(gene); getCurrentSession().getTransaction().commit(); } catch (HibernateException e) { getCurrentSession().getTransaction()....
[ "public void delete(int id) throws HibernateException {\n delete(getGene(id));\n }", "void delete(String name);", "void deleteSpecies(SpeciesEntity species);", "@Override\n \tpublic void deleteDrug(Drug aDrug) \n \t{\n \t\tentityManager.remove(aDrug);\n \t}", "@Override\n\tpublic void doDelete() {...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Ensure that the given NameNode marks the specified DataNode as entirely dead/expired.
public static void noticeDeadDatanode(NameNode nn, String dnName) { FSNamesystem namesystem = nn.getNamesystem(); namesystem.writeLock(); try { DatanodeManager dnm = namesystem.getBlockManager().getDatanodeManager(); HeartbeatManager hbm = dnm.getHeartbeatManager(); DatanodeDescriptor[] dn...
[ "boolean isDatanodeDead(DatanodeDescriptor node) {\n return (node.getLastUpdateMonotonic() <\n (monotonicNow() - heartbeatExpireInterval));\n }", "public static void setDatanodeDead(DatanodeInfo dn) {\n dn.setLastUpdate(0);\n // Set this to a large negative value.\n // On short-lived VMs, ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the value of the 'Sproperty' reference. If the meaning of the 'Sproperty' reference isn't clear, there really should be more of a description here...
SProperty getSproperty();
[ "Property getProperty();", "public String getProperty() {\n return property;\n }", "String getPropertyString();", "public Property getProperty(String property);", "public final Item getProperty() {\r\n return property;\r\n }", "public String getProperty(String prop) {\n\t\tList values ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
DATABASE MAPPING : entry_user_time ( DATETIME )
public void setEntryUserTime( Date entryUserTime ) { this.entryUserTime = entryUserTime; }
[ "public Date getUserEntryTime() {\n return userEntryTime;\n }", "public void setUserEntryTime(Date userEntryTime) {\n this.userEntryTime = userEntryTime;\n }", "public void setTimestampOfUser(long time, String username) {\n \t\ttry {\n \t\t\tdb.execute(String.format(\"UPDATE Person SET lastL...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the present state of the task.
public State getTaskState() { return state; }
[ "firmament.TaskDesc.TaskDescriptor.TaskState getState();", "public TaskState state() {\n return state;\n }", "public String getTaskState() {\r\n if (this.isDone) {\r\n return \"[X] \" + this.task;\r\n } else {\r\n return \"[ ] \" + this.task;\r\n }\r\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Save menu information to file.
private void saveMenu() { try { String fileName = "restaurant\\Menu.txt"; BufferedWriter bw = new BufferedWriter(new FileWriter(fileName)); bw.write(menu.size() + "\n"); for (int i = 0; i < menu.size(); i++) { Category category = menu.get(i); ...
[ "public void saveMenuReference() {\n try {\n String fileName = \"restaurant\\\\MenuReference.txt\";\n BufferedWriter bw = new BufferedWriter(new FileWriter(fileName));\n for (MenuItem mc : menuReference.values()) {\n if (mc instanceof MenuBundle mb) {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
get master node parent path
protected String getMasterZNodeParentPath(){return conf.getString(Constants.ZOOKEEPER_ESCHEDULER_MASTERS);}
[ "java.lang.String getParentPath();", "Directory getParentDirectory();", "public String getParentPath() {\n\t\tIOLocation parent = getParent();\n\t\tif(parent==null) return null;\n\t\treturn parent.getPath();\n\t}", "public String getParentPath() {\n\t\tIOLocation parent = getParent();\n\t\tif (parent == null)...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/Increments current index by 1 & returns the next collection element
public Object getNext() { currIndex++; return collection.elementAt(currIndex); }
[ "public E next() {\n\t\t\tE item = elements[index];\n\t\t\tindex++;\n\t\t\treturn item;\n\t\t}", "public E next() {\n int index = 0;\n\n // iterating over collections\n for (Collection<E> coll : collectionList) {\n // checking if current collection contains the desi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Add a post commit hook.
NodeTrx addPostCommitHook(PostCommitHook hook);
[ "public T withPostcommitHook(Function hook)\n {\n this.postCommitHook = hook;\n return self();\n }", "@Override\r\n public void postCommit(Commit committed) {\n }", "NodeTrx addPreCommitHook(PreCommitHook hook);", "<T> void add(Class<T> target, PostGenerationHook<? su...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Issue currentIssue = new MockIssue(); //TODO retrieve issue from CommitInfo once commitData is implemented
@Override public void execute(Commit commitInfo) { Map<String,Object> eventParameters = new HashMap<String,Object>(); // IssueEvent gitCommitEvent = new IssueEvent(currentIssue,eventParameters,publishingUser, EventType.ISSUE_UPDATED_ID); // eventPublisherAccess.publish(gitCommitEvent); ...
[ "Issue createIssue();", "public Issue mockIssue() throws IOException {\n Github gh = new MkGithub(\"amihaiemil\");\n RepoCreate repoCreate = new RepoCreate(\"amihaiemil.github.io\", false);\n gh.repos().create(repoCreate);\n return gh.repos().get(\n new Coordin...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Starts the tracker in its own thread
public void start() { trackerThread.start(); }
[ "public void startTracking()\n {\n if(!pixyThread.isAlive())\n {\n pixyThread = new Thread(this);\n pixyThread.start();\n leds.setMode(LEDController.Mode.ON);\n }\n }", "public synchronized void start(){\n mStatusChecker.run();\n }", "public ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Break block > item
@EventHandler(priority=EventPriority.MONITOR, ignoreCancelled=true) public void onBlockBreak(BlockBreakEvent event) { Block block = event.getBlock(); if (block != null && isQuickBench(block)) { // break tagged lapis block as quickbench item ItemStack item = getQuickBen...
[ "private void breakBlockAction() {\n\t\tint selectedBlock = 0;\n\n\t\t// Get targeted block based on view\n\t\tif(changeViewSlider.getValue() == 0) {\n\t\t\t// Viewing Red Line\n\t\t\t// Based on the viewed track controller ID, get that block\n\t\t\tif(tcComboBox.getSelectedIndex() == 0) {\n\t\t\t\tselectedBlock = ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns all rows from the sesion table that match the criteria 'usuario_id_usuario = :usuarioIdUsuario'.
public SesionEntidad[] findWhereUsuarioIdUsuarioEquals(int usuarioIdUsuario) throws SesionEntidadDaoException;
[ "public SesionEntidad[] findByUsuario(int usuarioIdUsuario) throws SesionEntidadDaoException;", "public Ruta[] findWhereIdUsuarioEquals(int idUsuario) throws RutaDaoException;", "public Bitacora[] findWhereIdUsuarioEquals(int idUsuario) throws BitacoraDaoException\r\n\t{\r\n\t\treturn findByDynamicSelect( SQL_S...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The ID of the DecisionTaskCompleted event corresponding to the decision that resulted in the scheduling of this activity task. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
public void setDecisionTaskCompletedEventId(Long decisionTaskCompletedEventId) { this.decisionTaskCompletedEventId = decisionTaskCompletedEventId; }
[ "public Long getDecisionTaskCompletedEventId() {\n return this.decisionTaskCompletedEventId;\n }", "public com.google.devtools.build.lib.buildeventstream.BuildEventStreamProtos.BuildEventId.ActionCompletedId getActionCompleted() {\n if (idCase_ == 6) {\n return (com.google.devtools.build.li...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO:what happens if try to access high rom bank but not accessible??
@Test public void readRomBanks00_1F_RAMMode() { //Select RAM Mode cartridge.write((char) 0x6000, (byte) 0x01); for (byte bank = 0x01; bank <= 0x1F; bank++) { //Select ROM Bank <bank> cartridge.write((char) 0x2000, bank); for (char a = 0x4000; a <= (char) 0...
[ "public int getRequestableBank() \n {\n return -1; \n }", "@Test\n public void ramEnabledOK() {\n cartridge.write((char) 0x0000, (byte) 0x0A);\n for (char addr = 0xA000; addr <= 0xBFFF; addr++) {\n cartridge.write(addr, (byte) 0xBE);\n assertEquals((byte...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Obtain the confirmation avatar.
private ConfirmAvatar getConfirmAvatar() { return (ConfirmAvatar) getAvatar(AvatarId.DIALOG_CONFIRM); }
[ "java.lang.String getAvatar();", "com.google.protobuf.ByteString getAvatar();", "java.lang.String getChromeosAvatar();", "String avatarImage();", "public String getAvatar() {\n return avatar;\n }", "java.lang.String getChromeAvatar();", "public String getUserAvatar() {\n return userAvat...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns true if field hiveTaleb is set (has been assigned a value) and false otherwise
public boolean isSetHiveTaleb() { return this.hiveTaleb != null; }
[ "public boolean isSetTarjeta() {\n return this.tarjeta != null;\n }", "public boolean isSetPer_age() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __PER_AGE_ISSET_ID);\n }", "public boolean isSetField() {\r\n return this.field != null;\r\n }", "public boolean isSetMortga...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns a new object of class 'Our Ifc Material Layer Set'.
OurIfcMaterialLayerSet createOurIfcMaterialLayerSet();
[ "OurIfcMaterialLayer createOurIfcMaterialLayer();", "LayerSet createLayerSet();", "OurIfcMaterialLayerSetUsage createOurIfcMaterialLayerSetUsage();", "OurIfcMaterial createOurIfcMaterial();", "OurIfcMaterialList createOurIfcMaterialList();", "OurIfcRelAssociatesMaterial createOurIfcRelAssociatesMaterial()...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the thread execution duration for this span.
long getThreadDuration();
[ "int getThreadDuration();", "public static long getDuration() {\n StopwatchState state = getState().top();\n return state.duration;\n }", "public long getTaskDuration();", "public long getDuration() {\n\t\treturn _timesheetTask.getDuration();\n\t}", "int getRunningDuration();", "public Du...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
LocaleSettingsExtPoint defines how and which locale settings (if any) will be applied to certain application parts.
public interface LocaleSettingsExtPoint extends CSSStartupExtensionPoint { /** The name of this extension point element */ public static final String NAME = "locale"; //$NON-NLS-1$ /** * Applies the locale settings. The locale settings can be gathered from any * location specified by the implementation and can...
[ "com.google.ads.googleads.v6.resources.CustomerExtensionSetting getCustomerExtensionSetting();", "com.google.ads.googleads.v1.resources.CustomerExtensionSetting getCustomerExtensionSetting();", "String loadExtensionSetting(String name);", "com.google.ads.googleads.v6.resources.CampaignExtensionSetting getCamp...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
getCurrDir() returns an Direction enum based on what i and j value are inputted. Used in explore().
public static Direction getCurrDir(int i, int j){ if( i == -1 && j == -1){ return SW; } if( i == -1 && j == 0){ return W; } if( i == -1 && j ==...
[ "public CardinalDirection getDirectionForDirsArrayIndex(int i) {\n\t\t/* Compare with Constants.java for consistency\n\t\t Directions: right=east, down=south, left=west, up=north\n\t\tpublic static int[] DIRS_X = { 1, 0, -1, 0 };\n\t\tpublic static int[] DIRS_Y = { 0, 1, 0, -1 };\n\t\t */\n\t\tSystem.out.println(\"...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a new PrinterGraphics with Graphics g, using Printer p
public PrinterGraphics(Graphics g, Printer p) { super(g); printer = p; }
[ "public void print(Graphics g);", "public void print(Graphics g) {\r\n paint(g);\r\n }", "public PGraphics getPGraphics();", "Print createPrint();", "public void paintComponentForPrinter(Graphics g){\r\n\r\n if (g == null) {\r\n MipavUtil.displayError(\"ComponentGraph.paintCompon...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
return "ts=" + this.ts +" spe="+this.spe + " " + (this.abnormal?"abnormal":"normal");
public String toString() { if (!use_color) { return this.ts +","+ formatter.format(this.spe) + "," + formatter.format(this.threshold )+"," + (this.abnormal?"abnormal":"normal"); } else { String abnormal = ((char)0x1B) +"[1;37;41mABNORMAL"+((char)0x1B)+"[0;39;49m"; return this.ts +","+ formatter.format(...
[ "public String getGetalString()\n {\n if(Double.isInfinite(resultaat))\n resultaatString = \"Berekening kan niet worden uitgevoerd.\";\n else\n resultaatString = fmt(resultaat);\n return resultaatString;\n }", "private String pedometerConversion() {\n return...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return true if timeline should notice vertical scrollbar width in it's calculations.
public boolean isNoticeVerticalScrollbarWidth() { return noticeVerticalScrollbarWidth; }
[ "public boolean isVerticalScrollBarEnabled() { throw new RuntimeException(\"Stub!\"); }", "public boolean isHorizontalScrollBarEnabled() { throw new RuntimeException(\"Stub!\"); }", "public int getVerticalScrollbarWidth() { throw new RuntimeException(\"Stub!\"); }", "public boolean getScrollableTracksViewport...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Validate the license using the supplied date. When supplying a date, it's suggested that checkClockTurnback be set to false. This will prevent Padlock from overriding the passed date.
public LicenseState validate(Date currentDate) throws ValidatorException { // All collected results should go into this set. List<TestResult> results = new ArrayList<TestResult>(); // If the license hasn't been signed, throw the exception - we can't validate license date // if we can't be sure it hasn...
[ "public LicenseState validate() throws ValidatorException {\n return validate(new Date());\n }", "public void setValidityDateOfLicense(java.util.Date validityDateOfLicense) {\n this.validityDateOfLicense = validityDateOfLicense;\n }", "public void validateLicense()\n{\n\n getMACAddress(); //deb...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Print the virtual node information
public void printInfo(){ System.out.println("id : " + id + " label : " + label); System.out.println("vms : " ); for(VirtualMachine v : vms){ v.printInfo(); } }
[ "public void printInfo() {\n\t\tString nodeType = \"\";\n\t\tif (nextLayerNodes.size() == 0) {\n\t\t\tnodeType = \"Output Node\";\n\t\t} else if (prevLayerNodes.size() == 0) {\n\t\t\tnodeType = \"Input Node\";\n\t\t} else {\n\t\t\tnodeType = \"Hidden Node\";\n\t\t}\n\t\tSystem.out.printf(\"%n-----Node Values %s----...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
GET /circulations : get all the circulations.
@RequestMapping(value = "/circulations", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE) @Timed public ResponseEntity<List<Circulation>> getAllCirculations(Pageable pageable) throws URISyntaxException { log.debug("REST request to get a page of Circulation...
[ "@RequestMapping(value = \"/_search/circulations\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<List<Circulation>> searchCirculations(@RequestParam String query, Pageable pageable)\n throws URISyntaxException {\n log...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method returns the value of the database column TBL_BLACK_ACC.MER_ID
public String getMerId() { return merId; }
[ "public String getMerId() {\n return merId;\n }", "public String getMerRightId() {\r\n return merRightId;\r\n }", "public String getMerGroupId() {\r\n return merGroupId;\r\n }", "public Integer getMerchId() {\n return merchId;\n }", "public String getCmbiMerchNo() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
if the service exist in one or more function groups , timeline trends are produced for each function that the service belongs and the function info is added to the timelinetrend
@Override public void flatMap(MetricTrends t, Collector<Tuple8<String, String, String, String, String, Integer, Integer,String>> out) throws Exception { // if(t.getGroup().equals("Group_1") && t.getService().equals("Service_1B") && t.getEndpoint().equals("Hostname_4") && t.getMetric().equals("Metric_B")){ ...
[ "@Override\n public void flatMap(ServiceTrends t, Collector<ServiceTrends> out) throws Exception {\n String service = t.getService();\n\n String function = aggregationProfileParser.retrieveFunctionsByService(service);\n \n \n ServiceTrends newT = t;\n ne...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return the selected tree mode (edit or live).
private FxTreeMode getTreeMode() { final FxTreeMode mode; try { mode = FxTreeMode.valueOf(StringUtils.capitalize(getMode().toLowerCase())); } catch (IllegalArgumentException e) { throw new IllegalArgumentException("Invalid value for \"mode\" attribute: " + getMode(), e); ...
[ "public CurrentMode getCurrentMode();", "public String treeType();", "public Mode getMode() {\n\t\tPointer mode_ptr = binding_tv.get_type_mode(ptr);\n\t\tif (mode_ptr == null)\n\t\t\treturn null;\n\t\treturn new Mode(mode_ptr);\n\t}", "int getMode();", "public native String getTreeType();", "public String...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
If we split s such that s = xy, t is a rotation of s if t = yx We know that xy is a substring of yxyx, or y(xy)x Time: O(max(len(s), len(t))
public static boolean isRotation(String s, String t) { String conc = t.concat(t); // O(len(t)) return conc.contains(s); // avg case O(len(s)) }
[ "public boolean isRotation(String s1, String s2) {\n int s1len = s1.length();\n if (s1len == s2.length()) {\n String s1s1 = s1 + s1;\n return isSubstring(s1s1, s2);\n }\n else {\n return false;\n }\n }", "public boolean isSubsequence(String s,...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the team setting url for the assembly.
public String getTeamsUrl(String baseUrl) { return String.format("%s/%s/assemblies/%s#teams", baseUrl, org, assembly); }
[ "public String getConfigURL() {\n return properties.getProperty(\"URL\");\r\n }", "default Optional<String> getSettingsUrl() {\n return getWebUrl().map(url -> url + \"settings\");\n }", "protected String getSpUrlFromConfig() {\r\n String key = AppConfig.CONFIG_KEYS.SEMANTICPROXY_S_URL.name(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the localized titles of this edition gallery from the map of locales and localized titles.
@Override public void setTitleMap(Map<java.util.Locale, String> titleMap) { _editionGallery.setTitleMap(titleMap); }
[ "@Override\n\tpublic void setTitleMap(\n\t\tMap<java.util.Locale, String> titleMap,\n\t\tjava.util.Locale defaultLocale) {\n\n\t\t_editionGallery.setTitleMap(titleMap, defaultLocale);\n\t}", "public void setEditorialTitleMap(Map<Locale, String> editorialTitleMap);", "@Override\n\tpublic void setTitle(String tit...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Updates daily fields like: total kills today, etc. Other fields are actual (updated on each PvP).
public void updateDailyStats(long systemDay) { long totalRankPointsToday = 0; for (Map.Entry<Integer, Pvp> e : _victimPvpTable.entrySet()) { Pvp pvp = e.getValue(); if(pvp != null) { if(pvp.getKillDay() == systemDay) totalRankPointsToday += pvp.getRankPointsToday(); ...
[ "public void updateChargesPerDay(Scanner input, int pId) {\n\n System.out.println(\"Please enter new charges per day of the ward.\");\n double charge = 0.0;\n try {\n charge = Double.parseDouble(input.nextLine());\n } catch (Exception e) {\n System.err.println(\"Inv...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Accuracy test for method importJar(URL, String).
public void testImportJarToDiagramURLAccurracy() { try { String[] classpath = new String[1]; classpath[0] = testEntitiesClasspath; JarImporter importer = new DefaultJarImporter(manager, classpath); Diagram diagram = new Diagram(); diagram.setName("Ma...
[ "public void testImportJarsURLAccuracy() {\n JarImporter importer = new DefaultJarImporter(manager,\n new String[] {testEntitiesClasspath});\n\n try {\n importer.importJars(new URL[] {new File(testEntitiesJarPath1)\n .toURI().toURL()});\n } catch (Ja...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Access method for the acknowledgement property.
public AcknowledgementSearchCriteria getAcknowledgement() { return acknowledgement; }
[ "boolean getAcknowledged();", "messages.Ackinterface.AckInterface getAck();", "boolean getAck();", "public int getAcknowledgeMode() {\n return acknowledgeMode;\n }", "@Nullable\n\tpublic String getAck() {\n\t\treturn getFirst(ACK);\n\t}", "public EdifactAcknowledgementSettings acknowledgementSet...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method returns indices associated for each pit
public Map<String, String[]> getIndicesForPits(List<String> pitIds) { Map<String, String[]> pitToIndicesMap = new HashMap<>(); for (String pitId : pitIds) { pitToIndicesMap.put(pitId, SearchContextId.decode(nodeClient.getNamedWriteableRegistry(), pitId).getActualIndices()); } ...
[ "private int getPitIndex(Pit pit) {\n\n //figure out which index pit you passed\n int pitIndex = 0;\n for (Pit indexPit : board) {\n if (indexPit == pit) {\n return pitIndex;\n }\n pitIndex++;\n }\n return -1;\n }", "private sta...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Perform the test for the given matrix column (A43) and row (B7).
public void testA43_B7() { test_id = getTestId("A43", "B7", "245"); NonRootModelElement src = selectA("A43"); NonRootModelElement dest = selectB("B7"); A_B_Action(src, dest); assertTrue("Paste was allowed but was not successful", checkResult_pasteSuccessful(src,dest)); ...
[ "@Test\r\n public void testColumns() {\r\n int expResult=2;\r\n int result=matrixA.columns();\r\n assertEquals(expResult, result);\r\n }", "@Test\r\n public void testRows() {\r\n int expResult=3;\r\n int result=matrixA.rows();\r\n assertEquals(expResult, result);...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Classes that implement this interface will receive notifications whenever direction has been updated.
public interface DirectionChangedListener { void onDirectionChanged(int updatedDirection); }
[ "void onDirectionChanged(Direction direction);", "void updatedDirection();", "private void updateDirection(){\n\t\tint[] newPosition = moveDirection(newDirection);\n\t\tif(newPosition != null)\n\t\t\tthis.direction = newDirection;\n\t}", "void onDirectionChanged(Compass compass, int value);", "public void u...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
test the method GetMessages for accuracy.
public void testGetMessages_Accuracy_1(){ String[] result = typeValidator.getMessages(null); assertNotNull(result); }
[ "public void testGetAllMessages_Accuracy_1(){\r\n String[] result = typeValidator.getAllMessages(null);\r\n assertNotNull(result);\r\n \r\n }", "public void testGetAllMessages_Accuracy_2(){\r\n Object obj = new Object();\r\n String[] result = typeValidator.getAllMessages(obj)...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Delete all copies projects
public void deleteAllCopiesProjects() { for (String name : listNameCopies) { IProject project = root.getProject(name); deleteCopy(project); } listNameCopies.clear(); }
[ "public void deleteCurrentProject();", "void deleteWorkspace() {\n super.resetWorkspace();\n // clean up any left over projects from other tests\n IProject[] projects = getWorkspace().getRoot().getProjects();\n for (int i = 0; i < projects.length; i++) {\n try {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the catalogue number
@DSpaceField("dc.identifier") public String getChrCatalogueNo() { return chrCatalogueNo; }
[ "String getCviNumber();", "public Integer getCatalogid() {\n return catalogid;\n }", "public java.lang.String getCivNo () {\n\t\treturn civNo;\n\t}", "public Integer getCatalogId() {\r\n return catalogId;\r\n }", "public Integer getCno() {\n return cno;\n }", "public Integer ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
schedule is 10:00:00 every day current time is 09:59:59
@Test public void firstScheduleTimeUtc() { { Instant currentTime = instant("2016-02-03 09:59:59 +0000"); assertThat( newScheduler("00 10 * * *", "UTC").getFirstScheduleTime(currentTime), is(ScheduleTime.of( insta...
[ "ISchedule getSchedule();", "Schedule createSchedule();", "@Test\n public void nextScheduleTimeTz()\n {\n {\n Instant lastScheduleTime = instant(\"2016-02-03 10:00:00 +0900\");\n assertThat(\n newScheduler(\"00 10 * * *\", \"Asia/Tokyo\").nextScheduleTime(la...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
JNA Wrapper for library WebKitHtmlToImage This file was autogenerated by that . For help, please visit <a href=" , <a href=" or <a href="
public interface WebKitHtmlToImageLibrary extends Library { public static final String JNA_LIBRARY_NAME = "wkhtmltox"; public static final NativeLibrary JNA_NATIVE_LIB = NativeLibrary.getInstance(WebKitHtmlToImageLibrary.JNA_LIBRARY_NAME); public static final WebKitHtmlToImageLibrary INSTANCE = Native.load(WebKitHtm...
[ "int wkhtmltoimage_convert(PointerByReference converter);", "int wkhtmltoimage_init(int use_graphics);", "PointerByReference wkhtmltoimage_create_converter(PointerByReference settings, Pointer data);", "NativeLong wkhtmltoimage_get_output(PointerByReference converter, PointerByReference charPtrPtr1);", "Poi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set the value related to the column: profileValue.
public void setProfileValue(final String profileValue) { this.profileValue = profileValue; }
[ "public String getProfileValue() {\n\t\treturn this.profileValue;\n\t\t\n\t}", "public Type setProfile(UriDt theValue) {\n\t\tmyProfile = theValue;\n\t\treturn this;\n\t}", "@objid (\"6680b948-597e-4df9-b9a2-de8dc499acb3\")\n void setOwnerProfile(Profile value);", "public void setUserClaimValue(String user...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
method to unlock the device by Android Native unlockDevive
public void unlockDevice() { ((AndroidDriver) getDriver()).pressKey(new KeyEvent().withKey(AndroidKey.HOME)); }
[ "public void unlock() {\r\n status = DoorLockStatus.UNLOCKED;\r\n logDoorLockStatusChange();\r\n }", "public boolean unlock();", "public void unlockSimcard() {\n // if sim is locked by Pin , need to unlock it\n Xlog.d(TAG,\"unlockSimcard() ,mITelephony \" + mITelephony);\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Must be used subsequently with an empty texture modified with allocateDepth()
public void createDepthTextureAttatchment(int textureId){ glFramebufferTexture(GL_FRAMEBUFFER, GL_DEPTH_ATTACHMENT, textureId, 0); }
[ "private void createDepthTextureAttachment() {\r\n\t\tdepthTexture = GL11.glGenTextures();\r\n\t\tGL11.glBindTexture(GL11.GL_TEXTURE_2D, depthTexture);\r\n\t\tGL11.glTexImage2D(GL11.GL_TEXTURE_2D, 0, GL14.GL_DEPTH_COMPONENT24, width, height, 0, GL11.GL_DEPTH_COMPONENT,\r\n\t\t\t\tGL11.GL_FLOAT, (ByteBuffer) null);\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }