code
stringlengths
130
281k
code_dependency
stringlengths
182
306k
public class class_name { public static void zipDirectory(Logger log, File directory, ZipOutputStream zos, String path, FileFilter filter) throws IOException { // get a listing of the directory content File[] dirList = directory.listFiles(); byte[] readBuffer = new byte[8192]; int bytes...
public class class_name { public static void zipDirectory(Logger log, File directory, ZipOutputStream zos, String path, FileFilter filter) throws IOException { // get a listing of the directory content File[] dirList = directory.listFiles(); byte[] readBuffer = new byte[8192]; int bytes...
public class class_name { @VisibleForTesting Map<QName, List<String>> getGroups(final String value) { final Map<QName, List<String>> res = new HashMap<>(); final StringBuilder buf = new StringBuilder(); int previousEnd = 0; final Matcher m = groupPattern.matcher(value); whi...
public class class_name { @VisibleForTesting Map<QName, List<String>> getGroups(final String value) { final Map<QName, List<String>> res = new HashMap<>(); final StringBuilder buf = new StringBuilder(); int previousEnd = 0; final Matcher m = groupPattern.matcher(value); whi...
public class class_name { static List<Vector2d> newUnitVectors(final IAtom fromAtom, final List<IAtom> toAtoms) { final List<Vector2d> unitVectors = new ArrayList<Vector2d>(toAtoms.size()); for (final IAtom toAtom : toAtoms) { unitVectors.add(newUnitVector(fromAtom.getPoint2d(), toAtom.getP...
public class class_name { static List<Vector2d> newUnitVectors(final IAtom fromAtom, final List<IAtom> toAtoms) { final List<Vector2d> unitVectors = new ArrayList<Vector2d>(toAtoms.size()); for (final IAtom toAtom : toAtoms) { unitVectors.add(newUnitVector(fromAtom.getPoint2d(), toAtom.getP...
public class class_name { protected StringBuilder addPart(List<String> commandList,StringBuilder buffer,int endIndex,boolean typeSpace) { int delta=1; if(typeSpace) { delta=0; } String part=buffer.substring(delta,endIndex); commandList.add(part);...
public class class_name { protected StringBuilder addPart(List<String> commandList,StringBuilder buffer,int endIndex,boolean typeSpace) { int delta=1; if(typeSpace) { delta=0; // depends on control dependency: [if], data = [none] } String part=buffer.sub...
public class class_name { public Variable[] promote() { Scope parent = getParent(); if (parent == null) { return new Variable[0]; } Collection<Variable> promotion = new ArrayList<Variable>(); // A set of variable names that have been moved into the promoti...
public class class_name { public Variable[] promote() { Scope parent = getParent(); if (parent == null) { return new Variable[0]; // depends on control dependency: [if], data = [none] } Collection<Variable> promotion = new ArrayList<Variable>(); // A set o...
public class class_name { private boolean isPaintLineSeperators(JComponent c) { boolean paintLines = c instanceof JTextArea; // Global settings String globalOverride = System.getProperty("SeaGlass.JTextArea.drawLineSeparator"); if (globalOverride != null && globalOverride.length() > 0)...
public class class_name { private boolean isPaintLineSeperators(JComponent c) { boolean paintLines = c instanceof JTextArea; // Global settings String globalOverride = System.getProperty("SeaGlass.JTextArea.drawLineSeparator"); if (globalOverride != null && globalOverride.length() > 0)...
public class class_name { public void setInstancesToTerminate(java.util.Collection<String> instancesToTerminate) { if (instancesToTerminate == null) { this.instancesToTerminate = null; return; } this.instancesToTerminate = new com.amazonaws.internal.SdkInternalList<Stri...
public class class_name { public void setInstancesToTerminate(java.util.Collection<String> instancesToTerminate) { if (instancesToTerminate == null) { this.instancesToTerminate = null; // depends on control dependency: [if], data = [none] return; // depends on control dependency: [if], ...
public class class_name { public URL buildWithQuery(String base, String queryString, Object... values) { String urlString = String.format(base + this.template, values) + queryString; URL url = null; try { url = new URL(urlString); } catch (MalformedURLException e) { ...
public class class_name { public URL buildWithQuery(String base, String queryString, Object... values) { String urlString = String.format(base + this.template, values) + queryString; URL url = null; try { url = new URL(urlString); // depends on control dependency: [try], data = [non...
public class class_name { public static void copyProperties(Object dest, Object orig){ try { if (orig != null && dest != null){ BeanUtils.copyProperties(dest, orig); PropertyUtils putils = new PropertyUtils(); PropertyDescriptor origDescriptors[] = putils.getPropertyDescriptors(orig); f...
public class class_name { public static void copyProperties(Object dest, Object orig){ try { if (orig != null && dest != null){ BeanUtils.copyProperties(dest, orig); // depends on control dependency: [if], data = [none] PropertyUtils putils = new PropertyUtils(); PropertyDescriptor origDescr...
public class class_name { public ListAuditFindingsResult withFindings(AuditFinding... findings) { if (this.findings == null) { setFindings(new java.util.ArrayList<AuditFinding>(findings.length)); } for (AuditFinding ele : findings) { this.findings.add(ele); } ...
public class class_name { public ListAuditFindingsResult withFindings(AuditFinding... findings) { if (this.findings == null) { setFindings(new java.util.ArrayList<AuditFinding>(findings.length)); // depends on control dependency: [if], data = [none] } for (AuditFinding ele : finding...
public class class_name { @Override public void unsetBufferManager(String sourceId, BufferManager bufferMgr) { if (auditService.isAuditRequired(AuditConstants.SECURITY_AUDIT_MGMT, AuditConstants.SUCCESS)) { AuditMgmtEvent av = new AuditMgmtEvent(thisConf...
public class class_name { @Override public void unsetBufferManager(String sourceId, BufferManager bufferMgr) { if (auditService.isAuditRequired(AuditConstants.SECURITY_AUDIT_MGMT, AuditConstants.SUCCESS)) { AuditMgmtEvent av = new AuditMgmtEvent(thisConf...
public class class_name { public static String toLog(XmlProperty data) { if (data.channels == null) { return data.getName() + "(" + data.getOwner() + ")"; } else { return data.getName() + "(" + data.getOwner() + ")" + (data.channels); } } }
public class class_name { public static String toLog(XmlProperty data) { if (data.channels == null) { return data.getName() + "(" + data.getOwner() + ")"; // depends on control dependency: [if], data = [none] } else { return data.getName() + "(" + data.getOwner() + ")" ...
public class class_name { public List<Rulebases.Rulebase> getRulebase() { if (rulebase == null) { rulebase = new ArrayList<Rulebases.Rulebase>(); } return this.rulebase; } }
public class class_name { public List<Rulebases.Rulebase> getRulebase() { if (rulebase == null) { rulebase = new ArrayList<Rulebases.Rulebase>(); // depends on control dependency: [if], data = [none] } return this.rulebase; } }
public class class_name { public static String getUtcTimeAsIso8601(Calendar cal) { try { if (cal == null) { return DatatypeFactory.newInstance().newXMLGregorianCalendar( new GregorianCalendar(TimeZone.getTimeZone("UTC"))) .toXMLFormat().replaceAll("\\.[0-9]{3}", ""); } GregorianCalendar sup...
public class class_name { public static String getUtcTimeAsIso8601(Calendar cal) { try { if (cal == null) { return DatatypeFactory.newInstance().newXMLGregorianCalendar( new GregorianCalendar(TimeZone.getTimeZone("UTC"))) .toXMLFormat().replaceAll("\\.[0-9]{3}", ""); // depends on control dependen...
public class class_name { @RequestMapping(value = "/**/consoleout.json", method = RequestMethod.GET) public ModelAndView consoleout(@RequestParam("pipelineName") String pipelineName, @RequestParam("pipelineCounter") String pipelineCounter, @Requ...
public class class_name { @RequestMapping(value = "/**/consoleout.json", method = RequestMethod.GET) public ModelAndView consoleout(@RequestParam("pipelineName") String pipelineName, @RequestParam("pipelineCounter") String pipelineCounter, @Requ...
public class class_name { public static void goBack(final String returnCode) { if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(returnCode)) { CmsRpcAction<CmsReturnLinkInfo> goBackAction = new CmsRpcAction<CmsReturnLinkInfo>() { @Override public void execute() { ...
public class class_name { public static void goBack(final String returnCode) { if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(returnCode)) { CmsRpcAction<CmsReturnLinkInfo> goBackAction = new CmsRpcAction<CmsReturnLinkInfo>() { @Override public void execute() { ...
public class class_name { public static void write(byte[] data, OutputStream os, boolean closeSink) { try { os.write(data); } catch (IOException e) { throw E.ioException(e); } finally { if (closeSink) { close(os); } } }...
public class class_name { public static void write(byte[] data, OutputStream os, boolean closeSink) { try { os.write(data); // depends on control dependency: [try], data = [none] } catch (IOException e) { throw E.ioException(e); } finally { // depends on control dependen...
public class class_name { public static synchronized <T> IExpectationSetters<T> expectPrivate(Object instance, String methodName, Class<?> where, Class<?>[] parameterTypes, Object... arguments) throws Exception { if (instance == null) { ...
public class class_name { public static synchronized <T> IExpectationSetters<T> expectPrivate(Object instance, String methodName, Class<?> where, Class<?>[] parameterTypes, Object... arguments) throws Exception { if (instance == null) { ...
public class class_name { private static void startAll() { try { if (_configs!=null) { synchronized(_configs) { for(int i=0;i<_servers.size();i++) { HttpServer server = (HttpServe...
public class class_name { private static void startAll() { try { if (_configs!=null) { synchronized(_configs) // depends on control dependency: [if], data = [(_configs] { for(int i=0;i<_servers.size();i++) ...
public class class_name { private void putPropertyStrings(Service s) { String type = s.getType(); String algorithm = s.getAlgorithm(); // use super() to avoid permission check and other processing super.put(type + "." + algorithm, s.getClassName()); for (String alias : s.getAlia...
public class class_name { private void putPropertyStrings(Service s) { String type = s.getType(); String algorithm = s.getAlgorithm(); // use super() to avoid permission check and other processing super.put(type + "." + algorithm, s.getClassName()); for (String alias : s.getAlia...
public class class_name { private void createMinistrySummary(final AbstractOrderedLayout content, final String field, final String label) { final DataSeries dataSeries = new DataSeries(); final Series series = new Series(); final Map<String, List<GovernmentBodyAnnualOutcomeSummary>> reportByMinistry = esvApi....
public class class_name { private void createMinistrySummary(final AbstractOrderedLayout content, final String field, final String label) { final DataSeries dataSeries = new DataSeries(); final Series series = new Series(); final Map<String, List<GovernmentBodyAnnualOutcomeSummary>> reportByMinistry = esvApi....
public class class_name { public static <T> ObjectName getObjectName(final Class<T> clazz) { final String domain = clazz.getPackage().getName(); final String className = clazz.getSimpleName(); final String objectName = domain+":type="+className; LOG.debug("Returning object name:...
public class class_name { public static <T> ObjectName getObjectName(final Class<T> clazz) { final String domain = clazz.getPackage().getName(); final String className = clazz.getSimpleName(); final String objectName = domain+":type="+className; LOG.debug("Returning object name:...
public class class_name { @SuppressWarnings("unchecked") private <T extends BaseTopicWrapper<T>> void doSpecTopicSecondPass(final BuildData buildData, final Map<SpecTopic, Set<String>> usedIdAttributes) throws BuildProcessingException { log.info("Doing " + buildData.getBuildLocale() + " Spec To...
public class class_name { @SuppressWarnings("unchecked") private <T extends BaseTopicWrapper<T>> void doSpecTopicSecondPass(final BuildData buildData, final Map<SpecTopic, Set<String>> usedIdAttributes) throws BuildProcessingException { log.info("Doing " + buildData.getBuildLocale() + " Spec To...
public class class_name { public void publish(RoutedMessage routedMessage, Object id) { //Publish the trace if it is not coming from a handler thread if (!ThreadLocalHandler.get()) { if (routedMessage.getLogRecord() != null && bufferMgr != null) { bufferMgr.add(parse(routedM...
public class class_name { public void publish(RoutedMessage routedMessage, Object id) { //Publish the trace if it is not coming from a handler thread if (!ThreadLocalHandler.get()) { if (routedMessage.getLogRecord() != null && bufferMgr != null) { bufferMgr.add(parse(routedM...
public class class_name { protected void setForeground(Color newColor) { if (foreground == null || !foreground.equals(newColor)) { foreground = new Color(newColor.getRGB()); invalidateCache(); } } }
public class class_name { protected void setForeground(Color newColor) { if (foreground == null || !foreground.equals(newColor)) { foreground = new Color(newColor.getRGB()); // depends on control dependency: [if], data = [none] invalidateCache(); // depends on control depend...
public class class_name { protected Double getBilinearInterpolationValue(float offsetX, float offsetY, float minX, float maxX, float minY, float maxY, Double topLeft, Double topRight, Double bottomLeft, Double bottomRight) { Double value = null; if (topLeft != null && (topRight != null || minX == maxX) ...
public class class_name { protected Double getBilinearInterpolationValue(float offsetX, float offsetY, float minX, float maxX, float minY, float maxY, Double topLeft, Double topRight, Double bottomLeft, Double bottomRight) { Double value = null; if (topLeft != null && (topRight != null || minX == maxX) ...
public class class_name { private Source register(Source source) { /** * As promised, the registrar simply abstracts away internal resolvers * by iterating over them during the registration process. */ for (Resolver resolver : resolvers) { resolver.regist...
public class class_name { private Source register(Source source) { /** * As promised, the registrar simply abstracts away internal resolvers * by iterating over them during the registration process. */ for (Resolver resolver : resolvers) { resolver.regist...
public class class_name { public static float[] toPrimitive(Float... a) { if (a != null) { float[] p = new float[a.length]; for (int i = 0; i < a.length; i++) { p[i] = a[i]; } return p; } return null; } }
public class class_name { public static float[] toPrimitive(Float... a) { if (a != null) { float[] p = new float[a.length]; for (int i = 0; i < a.length; i++) { p[i] = a[i]; // depends on control dependency: [for], data = [i] } return p; // depends on control dependency: [if], data = [none] } re...
public class class_name { public static String buildClusterWorkerCommand(String clusterName, String nfsParentDir, String sinkLogRootDir, String awsConfDir, String appWorkDir, String masterPublicIp, String workerS3ConfUri, String workerS3ConfFiles, String workerS3JarsUri, String workerS3JarsFiles, Str...
public class class_name { public static String buildClusterWorkerCommand(String clusterName, String nfsParentDir, String sinkLogRootDir, String awsConfDir, String appWorkDir, String masterPublicIp, String workerS3ConfUri, String workerS3ConfFiles, String workerS3JarsUri, String workerS3JarsFiles, Str...
public class class_name { protected String interpolateString(String value) { String interpolatedValue = value; for (Map.Entry<String, String> entry : interpolationValues.entrySet()) { interpolatedValue = interpolatedValue.replace(entry.getKey(), entry.getValue()); } return ...
public class class_name { protected String interpolateString(String value) { String interpolatedValue = value; for (Map.Entry<String, String> entry : interpolationValues.entrySet()) { interpolatedValue = interpolatedValue.replace(entry.getKey(), entry.getValue()); // depends on control depe...
public class class_name { public static MetricValue valueOf(BigDecimal val, final String format) { if (val instanceof MetricValue) { // TODO: check that val.format == format return (MetricValue) val; } return new MetricValue(val, new DecimalFormat(format)); } }
public class class_name { public static MetricValue valueOf(BigDecimal val, final String format) { if (val instanceof MetricValue) { // TODO: check that val.format == format return (MetricValue) val; // depends on control dependency: [if], data = [none] } return new Metr...
public class class_name { private static void appendSystemPropertiesToCommandLine(AbstractWisdomMojo mojo, CommandLine cmd) { Properties userProperties = mojo.session.getUserProperties(); if (userProperties != null) { //noinspection unchecked Enumeration<String> names = (Enumera...
public class class_name { private static void appendSystemPropertiesToCommandLine(AbstractWisdomMojo mojo, CommandLine cmd) { Properties userProperties = mojo.session.getUserProperties(); if (userProperties != null) { //noinspection unchecked Enumeration<String> names = (Enumera...
public class class_name { private Report getReport(AbstractBlock part) { Object primaryReportColum = part.getAttributes().get(PRIMARY_REPORT_COLUM); Object reportType = part.getAttributes().get(REPORT_TYPE); Properties reportProperties = parseProperties(part, REPORT_PROPERTIES); Report....
public class class_name { private Report getReport(AbstractBlock part) { Object primaryReportColum = part.getAttributes().get(PRIMARY_REPORT_COLUM); Object reportType = part.getAttributes().get(REPORT_TYPE); Properties reportProperties = parseProperties(part, REPORT_PROPERTIES); Report....
public class class_name { public void addMoreContext(CacheContext context) { Object cached = context.get(CacheContext.SECURITY_CONTEXT_KEY); if (cached == null) { SavedAuthorization sa = securityContext.getSavedAuthorization(); log.debug("Storing SavedAuthorization {}", sa); context.put(CacheContext.SECUR...
public class class_name { public void addMoreContext(CacheContext context) { Object cached = context.get(CacheContext.SECURITY_CONTEXT_KEY); if (cached == null) { SavedAuthorization sa = securityContext.getSavedAuthorization(); log.debug("Storing SavedAuthorization {}", sa); // depends on control dependency:...
public class class_name { @Override public void sawOpcode(int seen) { try { stack.precomputation(this); int pc = getPC(); CodeException ex = catchHandlerPCs.get(Integer.valueOf(pc)); if (ex != null) { int endPC; if ((seen == C...
public class class_name { @Override public void sawOpcode(int seen) { try { stack.precomputation(this); // depends on control dependency: [try], data = [none] int pc = getPC(); CodeException ex = catchHandlerPCs.get(Integer.valueOf(pc)); if (ex != null) { ...
public class class_name { @Nonnull public static FileIOError renameFile (@Nonnull final File aSourceFile, @Nonnull final File aTargetFile) { ValueEnforcer.notNull (aSourceFile, "SourceFile"); ValueEnforcer.notNull (aTargetFile, "TargetFile"); // Does the source file exist? if (!FileHelper.existsFi...
public class class_name { @Nonnull public static FileIOError renameFile (@Nonnull final File aSourceFile, @Nonnull final File aTargetFile) { ValueEnforcer.notNull (aSourceFile, "SourceFile"); ValueEnforcer.notNull (aTargetFile, "TargetFile"); // Does the source file exist? if (!FileHelper.existsFi...
public class class_name { public Date toDate(double x) { if (Double.isNaN(x)) { return null; } return new Date(Double.doubleToRawLongBits(x)); } }
public class class_name { public Date toDate(double x) { if (Double.isNaN(x)) { return null; // depends on control dependency: [if], data = [none] } return new Date(Double.doubleToRawLongBits(x)); } }
public class class_name { public static List<Point> computeDialogPositions(final int dialogWidth, final int dialogHeight) { List<Point> dialogPosition = null; final int windowBesides = ScreenSizeExtensions.getScreenWidth() / dialogWidth; final int windowBelow = ScreenSizeExtensions.getScreenHeight() / dialogHei...
public class class_name { public static List<Point> computeDialogPositions(final int dialogWidth, final int dialogHeight) { List<Point> dialogPosition = null; final int windowBesides = ScreenSizeExtensions.getScreenWidth() / dialogWidth; final int windowBelow = ScreenSizeExtensions.getScreenHeight() / dialogHei...
public class class_name { public static Object[] readObjects(ChannelBuffer buffer, int numOfObjects) { Object[] objects = new String[numOfObjects]; for (int i = 0; i < numOfObjects; i++) { Object theObject = readObject(buffer); if (null == theObject) break; objects[i] = theObject; } return obje...
public class class_name { public static Object[] readObjects(ChannelBuffer buffer, int numOfObjects) { Object[] objects = new String[numOfObjects]; for (int i = 0; i < numOfObjects; i++) { Object theObject = readObject(buffer); if (null == theObject) break; objects[i] = theObject; // depends on con...
public class class_name { private String getRelatedIDs(SmallMoleculeReference smr) { String ids = smr.getUri(); for (Object o : new PathAccessor( "SmallMoleculeReference/entityReferenceOf").getValueFromBean(smr)) { SimplePhysicalEntity spe = (SimplePhysicalEntity) o; ids += "\n" + spe.getUri(); } ...
public class class_name { private String getRelatedIDs(SmallMoleculeReference smr) { String ids = smr.getUri(); for (Object o : new PathAccessor( "SmallMoleculeReference/entityReferenceOf").getValueFromBean(smr)) { SimplePhysicalEntity spe = (SimplePhysicalEntity) o; ids += "\n" + spe.getUri(); // dep...
public class class_name { public static int[] getDeconvolutionOutputSize(INDArray inputData, int[] kernel, int[] strides, int[] padding, ConvolutionMode convolutionMode, int[] dilation) { // FIXME: int cast int hIn = (int) inputData.size(2); i...
public class class_name { public static int[] getDeconvolutionOutputSize(INDArray inputData, int[] kernel, int[] strides, int[] padding, ConvolutionMode convolutionMode, int[] dilation) { // FIXME: int cast int hIn = (int) inputData.size(2); i...
public class class_name { @Override public void init(Context context) { try { // get the cookie that contains session information: Cookie cookie = context.request().cookie(applicationCookiePrefix + SESSION_SUFFIX); // check that the cookie is not emp...
public class class_name { @Override public void init(Context context) { try { // get the cookie that contains session information: Cookie cookie = context.request().cookie(applicationCookiePrefix + SESSION_SUFFIX); // check that the cookie is not emp...
public class class_name { public void officeCheck() { // move to receptionist for dynamic text //if (from == null) { // throwMailFromAddressNotFoundException(); //} if (toList == null || toList.isEmpty()) { throwMailToAddressNotFoundException(); } ...
public class class_name { public void officeCheck() { // move to receptionist for dynamic text //if (from == null) { // throwMailFromAddressNotFoundException(); //} if (toList == null || toList.isEmpty()) { throwMailToAddressNotFoundException(); // depends on cont...
public class class_name { public void pushNDArrayMessage(NDArrayMessage message) { //start a subscriber that can send us ndarrays if (subscriber == null) { running = new AtomicBoolean(true); subscriber = AeronNDArraySubscriber.startSubscriber(aeron, subscriberHost, subscriberPor...
public class class_name { public void pushNDArrayMessage(NDArrayMessage message) { //start a subscriber that can send us ndarrays if (subscriber == null) { running = new AtomicBoolean(true); // depends on control dependency: [if], data = [none] subscriber = AeronNDArraySubscribe...
public class class_name { protected static void decorateCORSProperties( final HttpServletRequest request, final CORSRequestType corsRequestType) { if (request == null) { throw new IllegalArgumentException("HttpServletRequest object is null"); } if (corsRequestType == nu...
public class class_name { protected static void decorateCORSProperties( final HttpServletRequest request, final CORSRequestType corsRequestType) { if (request == null) { throw new IllegalArgumentException("HttpServletRequest object is null"); } if (corsRequestType == nu...
public class class_name { private boolean checkCommonPropExistance(Path rootPath, String noExtFileName) throws IOException { Configuration conf = new Configuration(); FileStatus[] children = rootPath.getFileSystem(conf).listStatus(rootPath); for (FileStatus aChild : children) { if (aChild.getP...
public class class_name { private boolean checkCommonPropExistance(Path rootPath, String noExtFileName) throws IOException { Configuration conf = new Configuration(); FileStatus[] children = rootPath.getFileSystem(conf).listStatus(rootPath); for (FileStatus aChild : children) { if (aChild.getP...
public class class_name { @SuppressWarnings("unchecked") private static <MK, K, V> Map<K, V> getMap(Cache<MK, Object> cache, MK key, boolean createIfAbsent, boolean fineGrained) { if (fineGrained) { // With fine grained maps the cache will store both the keyset under master key and the entries under ...
public class class_name { @SuppressWarnings("unchecked") private static <MK, K, V> Map<K, V> getMap(Cache<MK, Object> cache, MK key, boolean createIfAbsent, boolean fineGrained) { if (fineGrained) { // With fine grained maps the cache will store both the keyset under master key and the entries under ...
public class class_name { public DeploymentInfo addLastAuthenticationMechanism(final String name, final AuthenticationMechanism mechanism) { authenticationMechanisms.put(name, new ImmediateAuthenticationMechanismFactory(mechanism)); if(loginConfig == null) { loginConfig = new LoginConfig(nu...
public class class_name { public DeploymentInfo addLastAuthenticationMechanism(final String name, final AuthenticationMechanism mechanism) { authenticationMechanisms.put(name, new ImmediateAuthenticationMechanismFactory(mechanism)); if(loginConfig == null) { loginConfig = new LoginConfig(nu...
public class class_name { public int layerInputSize(String layerName) { Layer l = getLayer(layerName); if(l == null){ throw new IllegalArgumentException("No layer with name \"" + layerName + "\" exists"); } org.deeplearning4j.nn.conf.layers.Layer conf = l.conf().getLayer(); ...
public class class_name { public int layerInputSize(String layerName) { Layer l = getLayer(layerName); if(l == null){ throw new IllegalArgumentException("No layer with name \"" + layerName + "\" exists"); } org.deeplearning4j.nn.conf.layers.Layer conf = l.conf().getLayer(); ...
public class class_name { private LeftJoinNode liftSubstitution(LeftJoinNode normalizedLeftJoin, ImmutableSubstitution<ImmutableTerm> remainingRightSubstitution, IntermediateQuery query) { SubstitutionPropagationProposal<LeftJo...
public class class_name { private LeftJoinNode liftSubstitution(LeftJoinNode normalizedLeftJoin, ImmutableSubstitution<ImmutableTerm> remainingRightSubstitution, IntermediateQuery query) { SubstitutionPropagationProposal<LeftJo...
public class class_name { protected void broadcastTo ( DObject object, Name from, byte levelOrMode, String bundle, String msg) { if (from == null) { SpeakUtil.sendSystem(object, bundle, msg, levelOrMode /* level */); } else { SpeakUtil.sendSpeak(object, from, bundle...
public class class_name { protected void broadcastTo ( DObject object, Name from, byte levelOrMode, String bundle, String msg) { if (from == null) { SpeakUtil.sendSystem(object, bundle, msg, levelOrMode /* level */); // depends on control dependency: [if], data = [none] } else ...
public class class_name { public <T extends EventListener> void subscribe(EventPublisher source, T listener) { if (source == null || listener == null) { throw new IllegalArgumentException("Parameters cannot be null"); } log.debug("[subscribe] Adding {} --> {}", source.getClass().getName(), listener.getClass()....
public class class_name { public <T extends EventListener> void subscribe(EventPublisher source, T listener) { if (source == null || listener == null) { throw new IllegalArgumentException("Parameters cannot be null"); } log.debug("[subscribe] Adding {} --> {}", source.getClass().getName(), listener.getClass()....
public class class_name { private void prioritizeFromEntryNode(DiGraphNode<Node, Branch> entry) { PriorityQueue<DiGraphNode<Node, Branch>> worklist = new PriorityQueue<>(10, priorityComparator); worklist.add(entry); while (!worklist.isEmpty()) { DiGraphNode<Node, Branch> current = worklist.r...
public class class_name { private void prioritizeFromEntryNode(DiGraphNode<Node, Branch> entry) { PriorityQueue<DiGraphNode<Node, Branch>> worklist = new PriorityQueue<>(10, priorityComparator); worklist.add(entry); while (!worklist.isEmpty()) { DiGraphNode<Node, Branch> current = worklist.r...
public class class_name { @Override public byte[] binaryDiff(final RevisionCodecData codecData, final Diff diff) throws UnsupportedEncodingException, EncodingException { byte[] bData = encode(codecData, diff); if (MODE_ZIP_COMPRESSION) { Deflater compresser = new Deflater(); compresser.setInput(bData);...
public class class_name { @Override public byte[] binaryDiff(final RevisionCodecData codecData, final Diff diff) throws UnsupportedEncodingException, EncodingException { byte[] bData = encode(codecData, diff); if (MODE_ZIP_COMPRESSION) { Deflater compresser = new Deflater(); compresser.setInput(bData);...
public class class_name { public byte[] encrypt(byte[] plainData) { checkArgument(plainData.length >= OVERHEAD_SIZE, "Invalid plainData, %s bytes", plainData.length); // workBytes := initVector || payload || zeros:4 byte[] workBytes = plainData.clone(); ByteBuffer workBuffer = ByteBuffer.wrap(...
public class class_name { public byte[] encrypt(byte[] plainData) { checkArgument(plainData.length >= OVERHEAD_SIZE, "Invalid plainData, %s bytes", plainData.length); // workBytes := initVector || payload || zeros:4 byte[] workBytes = plainData.clone(); ByteBuffer workBuffer = ByteBuffer.wrap(...
public class class_name { public int getFlags() { int flags = 32; // Use Adobe Standard charset if (italicAngle != 0) { flags = flags | 64; } if (isFixedPitch != 0) { flags = flags | 2; } if (hasSerifs) { flags = flags | 1; ...
public class class_name { public int getFlags() { int flags = 32; // Use Adobe Standard charset if (italicAngle != 0) { flags = flags | 64; // depends on control dependency: [if], data = [none] } if (isFixedPitch != 0) { flags = flags | 2; // depends on contro...
public class class_name { public void makeTouchable(GVRSceneObject sceneObject, OnTouch handler) { if (handler != null) { if (sceneObject.getRenderData() != null) { if (!touchHandlers.containsKey(sceneObject)) { makePickable(sceneObject); touc...
public class class_name { public void makeTouchable(GVRSceneObject sceneObject, OnTouch handler) { if (handler != null) { if (sceneObject.getRenderData() != null) { if (!touchHandlers.containsKey(sceneObject)) { makePickable(sceneObject); // depends on control de...
public class class_name { protected Object createBeanProperty(final BeanProperty bp) { Setter setter = bp.getSetter(true); if (setter == null) { return null; } Class type = setter.getSetterRawType(); Object newInstance; try { newInstance = ClassUtil.newInstance(type); } catch (Exception ex) { ...
public class class_name { protected Object createBeanProperty(final BeanProperty bp) { Setter setter = bp.getSetter(true); if (setter == null) { return null; // depends on control dependency: [if], data = [none] } Class type = setter.getSetterRawType(); Object newInstance; try { newInstance = Class...
public class class_name { public static URL codeLocationFromPath(String filePath) { try { return new File(filePath).toURI().toURL(); } catch (Exception e) { throw new InvalidCodeLocation(filePath); } } }
public class class_name { public static URL codeLocationFromPath(String filePath) { try { return new File(filePath).toURI().toURL(); // depends on control dependency: [try], data = [none] } catch (Exception e) { throw new InvalidCodeLocation(filePath); } // depends on co...
public class class_name { public long[] keys() { long[] values = new long[size]; int idx = 0; for (Entry entry : table) { while (entry != null) { values[idx++] = entry.key; entry = entry.next; } } return values; } }
public class class_name { public long[] keys() { long[] values = new long[size]; int idx = 0; for (Entry entry : table) { while (entry != null) { values[idx++] = entry.key; // depends on control dependency: [while], data = [none] entry = entry.next; /...
public class class_name { public synchronized static void write(int fd, byte[] ... data) throws IOException { for(byte[] single : data) { // write the data contents to the serial port via JNI native method write(fd, single, single.length); } } }
public class class_name { public synchronized static void write(int fd, byte[] ... data) throws IOException { for(byte[] single : data) { // write the data contents to the serial port via JNI native method write(fd, single, single.length); // depends on control dependency: [for], data =...
public class class_name { protected void updateFoldingThreshhold() { int left = estimateRequiredWidth(m_itemsLeft) + estimateRequiredWidth(m_leftButtons); int right = estimateRequiredWidth(m_itemsRight) + estimateRequiredWidth(m_rightButtons); int requiredWidth = left > right ? left : right; ...
public class class_name { protected void updateFoldingThreshhold() { int left = estimateRequiredWidth(m_itemsLeft) + estimateRequiredWidth(m_leftButtons); int right = estimateRequiredWidth(m_itemsRight) + estimateRequiredWidth(m_rightButtons); int requiredWidth = left > right ? left : right; ...
public class class_name { public AnnotatedTypeBuilder<X> addToField(Field field, Annotation annotation) { if (fields.get(field) == null) { fields.put(field, new AnnotationBuilder()); } fields.get(field).add(annotation); return this; } }
public class class_name { public AnnotatedTypeBuilder<X> addToField(Field field, Annotation annotation) { if (fields.get(field) == null) { fields.put(field, new AnnotationBuilder()); // depends on control dependency: [if], data = [none] } fields.get(field).add(annotation); return...
public class class_name { public static boolean startsWithAny(final CharSequence sequence, final CharSequence... searchStrings) { if (isEmpty(sequence) || ArrayUtils.isEmpty(searchStrings)) { return false; } for (final CharSequence searchString : searchStrings) { if (sta...
public class class_name { public static boolean startsWithAny(final CharSequence sequence, final CharSequence... searchStrings) { if (isEmpty(sequence) || ArrayUtils.isEmpty(searchStrings)) { return false; // depends on control dependency: [if], data = [none] } for (final CharSequen...
public class class_name { public static void process(GrayF32 orig, GrayF32 derivX, GrayF32 derivY, @Nullable ImageBorder_F32 border) { InputSanityCheck.reshapeOneIn(orig, derivX, derivY); if( BoofConcurrency.USE_CONCURRENT ) { GradientTwo0_Standard_MT.process(orig, derivX, derivY); } else { Grad...
public class class_name { public static void process(GrayF32 orig, GrayF32 derivX, GrayF32 derivY, @Nullable ImageBorder_F32 border) { InputSanityCheck.reshapeOneIn(orig, derivX, derivY); if( BoofConcurrency.USE_CONCURRENT ) { GradientTwo0_Standard_MT.process(orig, derivX, derivY); // depends on cont...
public class class_name { public T getByInterfaces(Class<?> clazz) { T object = null; Class<?>[] interfaces = clazz.getInterfaces(); for (Class<?> interfaceClass : interfaces) { object = map.get(interfaceClass); if(object != null) { break; } ...
public class class_name { public T getByInterfaces(Class<?> clazz) { T object = null; Class<?>[] interfaces = clazz.getInterfaces(); for (Class<?> interfaceClass : interfaces) { object = map.get(interfaceClass); // depends on control dependency: [for], data = [interfaceClass] ...
public class class_name { private void updateCustomerAndSetDefaultSourceIfNecessary(@NonNull Customer customer) { // An inverted early return - we don't need to talk to the CustomerSession if there is // already a default source selected or we have no or more than one customer sources in our //...
public class class_name { private void updateCustomerAndSetDefaultSourceIfNecessary(@NonNull Customer customer) { // An inverted early return - we don't need to talk to the CustomerSession if there is // already a default source selected or we have no or more than one customer sources in our //...
public class class_name { public UriMappingResolver addResources(String... resources) { if (resources.length % 2 == 1) { throw new IllegalArgumentException ("Expected even number of arguments"); } for (int i = 0; i < resources.length; i += 2) { ...
public class class_name { public UriMappingResolver addResources(String... resources) { if (resources.length % 2 == 1) { throw new IllegalArgumentException ("Expected even number of arguments"); } for (int i = 0; i < resources.length; i += 2) { ...
public class class_name { public static final void setAutoCommit(final Connection connection, boolean autocommit) { try { connection.setAutoCommit(autocommit); } catch (Exception e) { if (LOG.isWarnEnabled()) LOG.warn("Error committing Connection: " + connection ...
public class class_name { public static final void setAutoCommit(final Connection connection, boolean autocommit) { try { connection.setAutoCommit(autocommit); // depends on control dependency: [try], data = [none] } catch (Exception e) { if (LOG.isWarnEnabled()) ...
public class class_name { private void setParameterObject(final PreparedStatement preparedStatement, final int parameterIndex, final Object param, final BindParameterMapperManager parameterMapperManager) throws SQLException { //JDBCの受け付ける型に変換 Object jdbcParam = parameterMapperManager.toJdbc(param, preparedState...
public class class_name { private void setParameterObject(final PreparedStatement preparedStatement, final int parameterIndex, final Object param, final BindParameterMapperManager parameterMapperManager) throws SQLException { //JDBCの受け付ける型に変換 Object jdbcParam = parameterMapperManager.toJdbc(param, preparedState...
public class class_name { public static QueryMeta checkAndPromoteToTimeSeries(QueryMeta qMeta) { if (qMeta instanceof GroupByQueryMeta) { if (((GroupByQueryMeta)qMeta).fetchDimensions == null) { return TimeSeriesQueryMeta.promote(qMeta); } } return qMet...
public class class_name { public static QueryMeta checkAndPromoteToTimeSeries(QueryMeta qMeta) { if (qMeta instanceof GroupByQueryMeta) { if (((GroupByQueryMeta)qMeta).fetchDimensions == null) { return TimeSeriesQueryMeta.promote(qMeta); // depends on control dependency: [if], data...
public class class_name { private static void appendValue(StringBuilder sb, String item, boolean valid, long value) { sb.append(item).append('='); if (valid) { sb.append(value); } else { sb.append('?'); } } }
public class class_name { private static void appendValue(StringBuilder sb, String item, boolean valid, long value) { sb.append(item).append('='); if (valid) { sb.append(value); // depends on control dependency: [if], data = [none] } else { sb.append('?'); // depends on ...
public class class_name { @Override public long length() { // If the summary is already in the cache, return it. // It'll have been added by a listDatasets() call on the parent directory. S3ObjectSummary objectSummary = objectSummaryCache.getIfPresent(s3uri); if (objectSummary != nu...
public class class_name { @Override public long length() { // If the summary is already in the cache, return it. // It'll have been added by a listDatasets() call on the parent directory. S3ObjectSummary objectSummary = objectSummaryCache.getIfPresent(s3uri); if (objectSummary != nu...
public class class_name { public Clustering<MedoidModel> run(Database db, Relation<O> relation) { ArrayDBIDs ids = DBIDUtil.ensureArray(relation.getDBIDs()); final int size = ids.size(); int[] assignment = new int[size]; double[][] s = initialization.getSimilarityMatrix(db, relation, ids); double[...
public class class_name { public Clustering<MedoidModel> run(Database db, Relation<O> relation) { ArrayDBIDs ids = DBIDUtil.ensureArray(relation.getDBIDs()); final int size = ids.size(); int[] assignment = new int[size]; double[][] s = initialization.getSimilarityMatrix(db, relation, ids); double[...
public class class_name { public void marshall(ListResourceDefinitionsRequest listResourceDefinitionsRequest, ProtocolMarshaller protocolMarshaller) { if (listResourceDefinitionsRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { ...
public class class_name { public void marshall(ListResourceDefinitionsRequest listResourceDefinitionsRequest, ProtocolMarshaller protocolMarshaller) { if (listResourceDefinitionsRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { ...
public class class_name { public static Object toWrapperArray(Object array) { if (!array.getClass().isArray()) { throw new IllegalArgumentException("Must give array object."); } if (isPrimitiveArray(array.getClass())) { int length = Array.getLength(array); Object newArray = Array.ne...
public class class_name { public static Object toWrapperArray(Object array) { if (!array.getClass().isArray()) { throw new IllegalArgumentException("Must give array object."); } if (isPrimitiveArray(array.getClass())) { int length = Array.getLength(array); Object newArray = Array.ne...
public class class_name { public static BoxLegalHoldPolicy.Info createOngoing(BoxAPIConnection api, String name, String description) { URL url = ALL_LEGAL_HOLD_URL_TEMPLATE.build(api.getBaseURL()); BoxJSONRequest request = new BoxJSONRequest(api, url, "POST"); JsonObject requestJSON = new JsonO...
public class class_name { public static BoxLegalHoldPolicy.Info createOngoing(BoxAPIConnection api, String name, String description) { URL url = ALL_LEGAL_HOLD_URL_TEMPLATE.build(api.getBaseURL()); BoxJSONRequest request = new BoxJSONRequest(api, url, "POST"); JsonObject requestJSON = new JsonO...
public class class_name { private void maybeUpdateTopLevelName(NodeTraversal t, Node nameNode) { String name = nameNode.getString(); if (!currentScript.isModule || !currentScript.topLevelNames.contains(name)) { return; } Var var = t.getScope().getVar(name); // If the name refers to a var that...
public class class_name { private void maybeUpdateTopLevelName(NodeTraversal t, Node nameNode) { String name = nameNode.getString(); if (!currentScript.isModule || !currentScript.topLevelNames.contains(name)) { return; // depends on control dependency: [if], data = [none] } Var var = t.getScope()...
public class class_name { public Object get(Object obj, String propertyName) { try { if (obj != null && propertyName != null) { return PropertyUtils.getNestedProperty(obj, propertyName); } } catch (NullPointerException e) { } catch (NestedNullException e)...
public class class_name { public Object get(Object obj, String propertyName) { try { if (obj != null && propertyName != null) { return PropertyUtils.getNestedProperty(obj, propertyName); // depends on control dependency: [if], data = [(obj] } } catch (NullPointer...
public class class_name { public java.util.List<Hit> getHit() { if (hit == null) { hit = new com.amazonaws.internal.SdkInternalList<Hit>(); } return hit; } }
public class class_name { public java.util.List<Hit> getHit() { if (hit == null) { hit = new com.amazonaws.internal.SdkInternalList<Hit>(); // depends on control dependency: [if], data = [none] } return hit; } }
public class class_name { public BackupSelection withListOfTags(Condition... listOfTags) { if (this.listOfTags == null) { setListOfTags(new java.util.ArrayList<Condition>(listOfTags.length)); } for (Condition ele : listOfTags) { this.listOfTags.add(ele); } ...
public class class_name { public BackupSelection withListOfTags(Condition... listOfTags) { if (this.listOfTags == null) { setListOfTags(new java.util.ArrayList<Condition>(listOfTags.length)); // depends on control dependency: [if], data = [none] } for (Condition ele : listOfTags) { ...
public class class_name { public static void renderSelectOptions(FacesContext context, UIComponent component, Converter converter, Set lookupSet, List selectItemList) throws IOException { ResponseWriter writer = context.getResponseWriter(); // check for the hideNoSelectionOp...
public class class_name { public static void renderSelectOptions(FacesContext context, UIComponent component, Converter converter, Set lookupSet, List selectItemList) throws IOException { ResponseWriter writer = context.getResponseWriter(); // check for the hideNoSelectionOp...
public class class_name { public static PublicKey deserializePublicKey(byte[] keyData, String algorithm) { LOGGER.trace("deserialize public key from data using algorithm \"{}\"", algorithm); X509EncodedKeySpec pubSpec = new X509EncodedKeySpec(keyData); try { KeyFactory keyFactory = ...
public class class_name { public static PublicKey deserializePublicKey(byte[] keyData, String algorithm) { LOGGER.trace("deserialize public key from data using algorithm \"{}\"", algorithm); X509EncodedKeySpec pubSpec = new X509EncodedKeySpec(keyData); try { KeyFactory keyFactory = ...
public class class_name { public byte[] readBytesNullEnd() { int initialPosition = position; int cnt = 0; while (remaining() > 0 && (buf[position++] != 0)) { cnt++; } final byte[] tmpArr = new byte[cnt]; System.arraycopy(buf, initialPosition, tmpArr, 0, cnt); return tmpArr; } }
public class class_name { public byte[] readBytesNullEnd() { int initialPosition = position; int cnt = 0; while (remaining() > 0 && (buf[position++] != 0)) { cnt++; // depends on control dependency: [while], data = [none] } final byte[] tmpArr = new byte[cnt]; System.arraycopy(buf, initia...
public class class_name { @SuppressWarnings("unchecked") private static void updateCache(HashMap cache, Object key, Object value) { if (value == null) { return; } if (cache.size() > 1000) { cache.clear(); } cache.put(key, value); } }
public class class_name { @SuppressWarnings("unchecked") private static void updateCache(HashMap cache, Object key, Object value) { if (value == null) { return; // depends on control dependency: [if], data = [none] } if (cache.size() > 1000) { cache.clear(); // depends on control dependency: [if], data =...
public class class_name { @Override public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { // Save the supplied value to the date picker. setCellEditorValue(value); // Draw the appropriate backgroun...
public class class_name { @Override public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { // Save the supplied value to the date picker. setCellEditorValue(value); // Draw the appropriate backgroun...
public class class_name { public synchronized void resume() { closed = false; for(PauseListener p : pauseListeners) { p.resumed(); } pauseListeners.clear(); } }
public class class_name { public synchronized void resume() { closed = false; for(PauseListener p : pauseListeners) { p.resumed(); // depends on control dependency: [for], data = [p] } pauseListeners.clear(); } }
public class class_name { private void removeHandlerIfActive(ChannelHandlerContext ctx, String name) { if (ctx.channel().isActive()) { ChannelPipeline pipeline = ctx.pipeline(); ChannelHandler handler = pipeline.get(name); if (handler != null) { pipeline.remo...
public class class_name { private void removeHandlerIfActive(ChannelHandlerContext ctx, String name) { if (ctx.channel().isActive()) { ChannelPipeline pipeline = ctx.pipeline(); ChannelHandler handler = pipeline.get(name); if (handler != null) { pipeline.remo...
public class class_name { protected void handleAppendResponse(RaftMemberContext member, AppendRequest request, AppendResponse response, long timestamp) { if (response.status() == RaftResponse.Status.OK) { handleAppendResponseOk(member, request, response); } else { handleAppendResponseError(member, ...
public class class_name { protected void handleAppendResponse(RaftMemberContext member, AppendRequest request, AppendResponse response, long timestamp) { if (response.status() == RaftResponse.Status.OK) { handleAppendResponseOk(member, request, response); // depends on control dependency: [if], data = [none]...
public class class_name { public static double[] pForDistribution(int[] counts) { double[] probabilities = new double[counts.length]; int total = 0; // Loop over the counts for all symbols adding up the total number. for (int c : counts) { total += c; }...
public class class_name { public static double[] pForDistribution(int[] counts) { double[] probabilities = new double[counts.length]; int total = 0; // Loop over the counts for all symbols adding up the total number. for (int c : counts) { total += c; // depend...
public class class_name { private String makePropertyName(String name) { if (name.startsWith(beanParser.getFieldPrefix())) { return name.substring(beanParser.getFieldPrefix().length()); } return name; } }
public class class_name { private String makePropertyName(String name) { if (name.startsWith(beanParser.getFieldPrefix())) { return name.substring(beanParser.getFieldPrefix().length()); // depends on control dependency: [if], data = [none] } return name; } }
public class class_name { protected void setValue(int newValue, boolean updateTextField, boolean firePropertyChange) { int oldValue = value; if (newValue < min) { value = min; } else if (newValue > max) { value = max; } else { value = newValue; } if (updateTextField) { textField.setText(Intege...
public class class_name { protected void setValue(int newValue, boolean updateTextField, boolean firePropertyChange) { int oldValue = value; if (newValue < min) { value = min; // depends on control dependency: [if], data = [none] } else if (newValue > max) { value = max; // depends on control dependency: [...
public class class_name { boolean executeInternal(String sql, Map<String, ParameterBindingDTO> parameterBindings) throws SQLException { raiseSQLExceptionIfStatementIsClosed(); connection.injectedDelay(); logger.debug("execute: {}", sql); String trimmedSql = sql.trim(); ...
public class class_name { boolean executeInternal(String sql, Map<String, ParameterBindingDTO> parameterBindings) throws SQLException { raiseSQLExceptionIfStatementIsClosed(); connection.injectedDelay(); logger.debug("execute: {}", sql); String trimmedSql = sql.trim(); ...
public class class_name { private static void formatBytesToSB (StringBuilder sb, byte[] data, int start, int countRequested, boolean displayCharRepresentations, int max) { if (max > MAX_TO_FORMAT) max = MAX_TO_FORMAT; // Ensure we can't be asked to format a completely bonkers amount of data ...
public class class_name { private static void formatBytesToSB (StringBuilder sb, byte[] data, int start, int countRequested, boolean displayCharRepresentations, int max) { if (max > MAX_TO_FORMAT) max = MAX_TO_FORMAT; // Ensure we can't be asked to format a completely bonkers amount of data ...
public class class_name { @Override public IResourceDescriptions getResourceDescriptions(ResourceSet resourceSet) { IResourceDescriptions result = super.getResourceDescriptions(resourceSet); if (compilerPhases.isIndexing(resourceSet)) { // during indexing we don't want to see any local files String project...
public class class_name { @Override public IResourceDescriptions getResourceDescriptions(ResourceSet resourceSet) { IResourceDescriptions result = super.getResourceDescriptions(resourceSet); if (compilerPhases.isIndexing(resourceSet)) { // during indexing we don't want to see any local files String project...
public class class_name { public static <T extends Extendable> List<T> group(final List<T> values, final Group[] groups) { final SortableList<T> list = getSortableList(values); final GroupStrategy strategy = new GroupStrategy(); for (int i = groups.length - 1; i >= 0; i--) { list.so...
public class class_name { public static <T extends Extendable> List<T> group(final List<T> values, final Group[] groups) { final SortableList<T> list = getSortableList(values); final GroupStrategy strategy = new GroupStrategy(); for (int i = groups.length - 1; i >= 0; i--) { list.so...
public class class_name { public static String serialize(Object object, boolean addType) { if (object == null) { return "null"; } else if (object instanceof CharSequence || object instanceof Character) { //TODO 去除特殊字符 String tmp = object.toString(); return '\"' + tmp...
public class class_name { public static String serialize(Object object, boolean addType) { if (object == null) { return "null"; // depends on control dependency: [if], data = [none] } else if (object instanceof CharSequence || object instanceof Character) { //TODO 去除特殊字符 String ...
public class class_name { private String outputMDCForAllKeys(Map<String, String> mdcPropertyMap) { StringBuilder buf = new StringBuilder(); boolean first = true; for (Map.Entry<String, String> entry : mdcPropertyMap.entrySet()) { if (first) { first = false; } else { buf.append("...
public class class_name { private String outputMDCForAllKeys(Map<String, String> mdcPropertyMap) { StringBuilder buf = new StringBuilder(); boolean first = true; for (Map.Entry<String, String> entry : mdcPropertyMap.entrySet()) { if (first) { first = false; // depends on control dependency: [...
public class class_name { public int getIndex(Object key) { int[] nums = (int[]) cset.get(key); if (nums == null) { return -1; } else { return nums[1]; } } }
public class class_name { public int getIndex(Object key) { int[] nums = (int[]) cset.get(key); if (nums == null) { return -1; // depends on control dependency: [if], data = [none] } else { return nums[1]; // depends on control dependency: [if], data = [none] } } }
public class class_name { public void setPresets(java.util.Collection<Preset> presets) { if (presets == null) { this.presets = null; return; } this.presets = new java.util.ArrayList<Preset>(presets); } }
public class class_name { public void setPresets(java.util.Collection<Preset> presets) { if (presets == null) { this.presets = null; // depends on control dependency: [if], data = [none] return; // depends on control dependency: [if], data = [none] } this.presets = new ...