Erzeugt einen neuen Buchungstag.

@param report der Report.
@return der erzeugte Buchungstag.
186154
private BTag createDay(AccountReport12 report) {
        BTag tag = new BTag();
        tag.start = new Saldo();
        tag.end = new Saldo();
        tag.starttype = 'F';
        tag.endtype = 'F';

        ////////////////////////////////////////////////////////////////
        // Start- un End-Saldo ermitteln
        final long day = 24 * 60 * 60 * 1000L;
        for (CashBalance3 bal : report.getBal()) {
            BalanceType12Code code = bal.getTp().getCdOrPrtry().getCd();

            // Schluss-Saldo vom Vortag
            if (code == BalanceType12Code.PRCD) {
                tag.start.value = new Value(this.checkDebit(bal.getAmt().getValue(), bal.getCdtDbtInd()));
                tag.start.value.setCurr(bal.getAmt().getCcy());

                //  Wir erhoehen noch das Datum um einen Tag, damit aus dem
                // Schlusssaldo des Vortages der Startsaldo des aktuellen Tages wird.
                tag.start.timestamp = new Date(SepaUtil.toDate(bal.getDt().getDt()).getTime() + day);
            }

            // End-Saldo
            else if (code == BalanceType12Code.CLBD) {
                tag.end.value = new Value(this.checkDebit(bal.getAmt().getValue(), bal.getCdtDbtInd()));
                tag.end.value.setCurr(bal.getAmt().getCcy());
                tag.end.timestamp = SepaUtil.toDate(bal.getDt().getDt());
            }
        }
        //
        ////////////////////////////////////////////////////////////////

        ////////////////////////////////////////////////////////////////
        // Das eigene Konto ermitteln
        CashAccount25 acc = report.getAcct();
        tag.my = new Konto();
        tag.my.iban = trim(acc.getId().getIBAN());
        tag.my.curr = trim(acc.getCcy());

        BranchAndFinancialInstitutionIdentification5 bank = acc.getSvcr();
        if (bank != null && bank.getFinInstnId() != null)
            tag.my.bic = trim(bank.getFinInstnId().getBICFI());
        ////////////////////////////////////////////////////////////////

        return tag;
    }
1197113
public static MchBaseResult payitilReport(Report report,String key){
		Map<String,String> map = MapUtil.objectToMap(report);
		String sign = SignatureUtil.generateSign(map,report.getSign_type(),key);
		report.setSign(sign);
		String shorturlXML = XMLConverUtil.convertToXML(report);
		HttpUriRequest httpUriRequest = RequestBuilder.post()
				.setHeader(xmlHeader)
				.setUri(baseURI()+ "/payitil/report")
				.setEntity(new StringEntity(shorturlXML,Charset.forName("utf-8")))
				.build();
		return LocalHttpClient.executeXmlResult(httpUriRequest,MchBaseResult.class);
	}
260196
public static List<String> getStaticImages(Report report) {
		List<String> images = new ArrayList<String>();
		ReportLayout layout = report.getLayout();
		List<Band> bands = layout.getBands();
		for (Band band : bands) {
			for (int i = 0, rows = band.getRowCount(); i < rows; i++) {
				List<BandElement> list = band.getRow(i);
				for (BandElement be : list) {
					if ((be instanceof ImageBandElement) && !(be instanceof ChartBandElement)
							&& !(be instanceof BarcodeBandElement)) {
						images.add(((ImageBandElement) be).getImage());
					}
				}
			}
		}
		if (layout.getBackgroundImage() != null) {
			images.add(layout.getBackgroundImage());
		}
		return images;
	}
429579
def _get_existing_report(self, mask, report):
        """"""
        for existing_report in self._reports:
            if existing_report['namespace'] == report['namespace']:
                if mask == existing_report['queryMask']:
                    return existing_report
        return None
930846
@Override
   public ReportGenerator<RD> getReportGenerator() throws VectorPrintException {
      try {
         Class reportClass = getSettings().getClassProperty(BaseReportGenerator.class, REPORTCLASS);

         return (ReportGenerator<RD>) reportClass.newInstance();
      } catch (InstantiationException | IllegalAccessException | ClassNotFoundException ex) {
         throw new VectorPrintException(ex);
      }
   }
925756
public void actionMerge(I_CmsReport report) {

        m_report = report;
        m_report.println(Messages.get().container(Messages.RPT_MERGE_PAGES_BEGIN_0), I_CmsReport.FORMAT_HEADLINE);

        try {
            // collect all pages and sort them depending on their state
            collectResources();
            // merge all pages that can be merged
            mergePages();
            // cleanup
            cleanup();
        } catch (CmsException e) {
            m_report.println(e);
        }

    }
334054
public static ro.nextreports.server.domain.Report renameImagesAsUnique(ro.nextreports.server.domain.Report report) {
        NextContent reportContent = (NextContent) report.getContent();
		try {
			String masterContent = new String(reportContent.getNextFile().getDataProvider().getBytes(), "UTF-8");
			for (JcrFile imageFile : reportContent.getImageFiles()) {
				String oldName = imageFile.getName();
				int index = oldName.lastIndexOf(ro.nextreports.server.report.util.ReportUtil.EXTENSION_SEPARATOR);
				String newName = oldName.substring(0, index) + ro.nextreports.server.report.util.ReportUtil.IMAGE_DELIM
						+ UUID.randomUUID().toString() + oldName.substring(index);
				masterContent = masterContent.replaceAll(oldName, newName);
				imageFile.setName(newName);
			}
			JcrFile templateFile = reportContent.getTemplateFile();
			if (templateFile != null) {
				String oldName = templateFile.getName();
				int index = oldName.lastIndexOf(ro.nextreports.server.report.util.ReportUtil.EXTENSION_SEPARATOR);
				String newName = oldName.substring(0, index) + ro.nextreports.server.report.util.ReportUtil.IMAGE_DELIM
						+ UUID.randomUUID().toString() + oldName.substring(index);
				masterContent = masterContent.replaceAll(oldName, newName);
				templateFile.setName(newName);
			}
			
			reportContent.getNextFile().setDataProvider(new JcrDataProviderImpl(masterContent.getBytes("UTF-8")));
		} catch (UnsupportedEncodingException e) {
			LOG.error("Error inside renameImagesAsUnique: " + e.getMessage(), e);
			e.printStackTrace();
		}

        return report;
    }
1275748
@Override
    public boolean send(Context context, Report report) {
        if (url != null) {
            String reportStr = report.asJSON()
                    .toString();
            try {
                postReport(url, reportStr);
                return true;
            } catch (IOException e) {
                e.printStackTrace();
            }
        }
        return false;
    }
1301096
public Set<BugPattern> getReportedBugPatterns() {
        Set<BugPattern> result = new TreeSet<>();
        StringTokenizer tok = new StringTokenizer(reports, ",");
        while (tok.hasMoreTokens()) {
            String type = tok.nextToken();
            BugPattern bugPattern = DetectorFactoryCollection.instance().lookupBugPattern(type);
            if (bugPattern != null) {
                result.add(bugPattern);
            }
        }
        return result;
    }
1004848
public static Map<String, QueryParameter> intersectParametersMap(List<Report> reports) {
    	Map<String, QueryParameter> map = new LinkedHashMap<String, QueryParameter>();
    	if ((reports == null) || (reports.size() == 0)) {
    		return map;
    	}
    	if (reports.size() == 1) {
    		return getUsedParametersMap(reports.get(0), false, false);
    	}    	
    	Map<String, QueryParameter> firstParamMap = getUsedParametersMap(reports.get(0), false, false);  
    	Map<String, QueryParameter> secondParamMap = getUsedParametersMap(reports.get(1), false, false);
        map = intersectParametersMap(firstParamMap, secondParamMap);
        
        for (int i=2, n=reports.size(); i<n; i++) {
        	Map<String, QueryParameter> paramMap = getUsedParametersMap(reports.get(i), false, false);
        	map = intersectParametersMap(map, paramMap);
        	if (map.size() == 0) {
        		break;
        	}
        }
        return map;
    }
989339
@Bean
	@ConditionalOnProperty(value = "sample.zipkin.enabled", havingValue = "false")
	public Reporter<Span> spanReporter() {
		return new Reporter<Span>() {
			@Override
			public void report(Span span) {
				logger.info(span);
			}
		};
	}
525518
public static String getSql(Report report) {
		String sql;
		if (report.getSql() != null) {
			sql = report.getSql();
		} else {
			sql = report.getQuery().toString();
		}
		return sql;
	}
803793
public static List<Report> getSubreports(Report report) {
		List<Report> subreports = new ArrayList<Report>();
		
		List<Band> bands = report.getLayout().getDocumentBands();
		for (Band band : bands) {
			for (int i = 0, rows = band.getRowCount(); i < rows; i++) {
				List<BandElement> list = band.getRow(i);
				for (int j = 0, size = list.size(); j < size; j++) {
					BandElement be = list.get(j);
					if (be instanceof ReportBandElement) {
						subreports.add(((ReportBandElement)be).getReport());
					}
				}
			}
		}	
		return subreports;
	}
434352
public static String isValidSqlWithMessage(Connection con, Report report) {
		String sql = getSql(report);
		List<QueryParameter> parameters = report.getParameters();
		String message = isValidSqlWithMessage(con, sql, parameters);
		if (message == null) {
			for (QueryParameter qp : parameters) {
				if (qp.isManualSource()) {
					String parMessage = isValidSqlWithMessage(con, qp.getSource(), parameters);
					if (parMessage != null) {
						parMessage = "Parameter '" + qp.getName() + "'\n" + parMessage;
						return parMessage;
					}
				}
 			}
		} 
		return message;		
	}
774488
public static void logDataDistribution(DatanodeInfo[] report) {
    if (LOG.isInfoEnabled()) {
      double avgRemaining = computeAvgRemaining(Arrays.asList(report));
      StringBuilder msg = new StringBuilder("Data distribution report: avgRemaining "
          + avgRemaining);
      for (DatanodeInfo node : report) {
        msg.append("\n").append(node.getName());
        msg.append(" remaining ").append(getRemaining(node));
        msg.append(" raw ").append(node.getRemaining()).append(" / ").append(node.getCapacity());
      }
      LOG.info(msg);
    }
  }
1000088
public static void saveReport(Report report, OutputStream out) {
		XStream xstream = XStreamFactory.createXStream();
		xstream.toXML(report, out);
	}
1160434
function (report) {
            var inputField = this._textInputField;
            var inputFieldParent = inputField.parentNode;
            if (report.clearSuggestions) {
                this._makeInputFieldLastChild();
                while (inputFieldParent.firstChild != inputField) {
                    inputFieldParent.removeChild(inputFieldParent.firstChild);
                }
            }
            var suggestionsToAdd = report.suggestionsToAdd;
            if (suggestionsToAdd && suggestionsToAdd.length > 0) {
                var suggestionsMarkup = [];
                for (var i = 0, l = suggestionsToAdd.length; i < l; i++) {
                    suggestionsMarkup.push(this._generateSuggestionMarkup(suggestionsToAdd[i]));
                }
                ariaUtilsDom.insertAdjacentHTML(inputField, "beforeBegin", suggestionsMarkup.join(""));
                this.__createEllipsis(inputField);
                this._makeInputFieldLastChild();
                inputField.style.width = "0px";
                this.__resizeInput();
            }
        }