code
stringlengths
130
281k
code_dependency
stringlengths
182
306k
public class class_name { private int setWidth(int width) { m_width = width; int width_label = (m_width / m_part); if (m_complementPartWidth) { int complementaryWidth = m_width - width_label; width_label = complementaryWidth < 30 ? 30 : complementaryWidth; ...
public class class_name { private int setWidth(int width) { m_width = width; int width_label = (m_width / m_part); if (m_complementPartWidth) { int complementaryWidth = m_width - width_label; width_label = complementaryWidth < 30 ? 30 : complementaryWidth; // dep...
public class class_name { public MatcherController initialize() { this.lastAddTableInfo = null; for (Map.Entry<Class<?>, TableInfo> entry : this.tables.entrySet()) { entry.getValue().isValid(true); } for (MatcherPattern entry : matcherPatterns) { entry.isValid(...
public class class_name { public MatcherController initialize() { this.lastAddTableInfo = null; for (Map.Entry<Class<?>, TableInfo> entry : this.tables.entrySet()) { entry.getValue().isValid(true); // depends on control dependency: [for], data = [entry] } for (MatcherPatte...
public class class_name { public static void join(StringBuilder buf, Iterable<?> values, String separator) { for (Iterator<?> i = values.iterator(); i.hasNext();) { buf.append(i.next()); if (i.hasNext()) { buf.append(separator); } } } }
public class class_name { public static void join(StringBuilder buf, Iterable<?> values, String separator) { for (Iterator<?> i = values.iterator(); i.hasNext();) { buf.append(i.next()); // depends on control dependency: [for], data = [i] if (i.hasNext()) { buf.append(separator); // depends on control depe...
public class class_name { @Beta public boolean containsCustomEventMappingFor(final String eventType) { if (eventType == null || eventType.isEmpty()) { return false; } else { return this.eventTypeToEventDataMapping.containsKey(canonicalizeEventType(eventType)); } ...
public class class_name { @Beta public boolean containsCustomEventMappingFor(final String eventType) { if (eventType == null || eventType.isEmpty()) { return false; // depends on control dependency: [if], data = [none] } else { return this.eventTypeToEventDataMapping.contain...
public class class_name { public StrBuilder appendAll(final Iterator<?> it) { if (it != null) { while (it.hasNext()) { append(it.next()); } } return this; } }
public class class_name { public StrBuilder appendAll(final Iterator<?> it) { if (it != null) { while (it.hasNext()) { append(it.next()); // depends on control dependency: [while], data = [none] } } return this; } }
public class class_name { static int[] toIntArray(List<Integer> integers) { int[] ints = new int[integers.size()]; int i = 0; for (Integer n : integers) { ints[i++] = n; } return ints; } }
public class class_name { static int[] toIntArray(List<Integer> integers) { int[] ints = new int[integers.size()]; int i = 0; for (Integer n : integers) { ints[i++] = n; // depends on control dependency: [for], data = [n] } return ints; } }
public class class_name { private int hash(final String name) { int h = 0; for (int i = name.length() - 1; i >= 0; i--) { char c = name.charAt(i); if (!caseSensitive) { if (c >= 'A' && c <= 'Z') { c += 32; } } h = 31 * h + c; } if (h > 0) { return h; } if (h == Integer.MIN_VALU...
public class class_name { private int hash(final String name) { int h = 0; for (int i = name.length() - 1; i >= 0; i--) { char c = name.charAt(i); if (!caseSensitive) { if (c >= 'A' && c <= 'Z') { c += 32; // depends on control dependency: [if], data = [none] } } h = 31 * h + c; // depends...
public class class_name { public void apply(int from, int[]to, int length, Object o) { ApplyCaseFoldArg arg = (ApplyCaseFoldArg)o; ScanEnvironment env = arg.env; Encoding enc = env.enc; CClassNode cc = arg.cc; CClassNode ascCc = arg.ascCc; BitSet bs = cc.bs; boo...
public class class_name { public void apply(int from, int[]to, int length, Object o) { ApplyCaseFoldArg arg = (ApplyCaseFoldArg)o; ScanEnvironment env = arg.env; Encoding enc = env.enc; CClassNode cc = arg.cc; CClassNode ascCc = arg.ascCc; BitSet bs = cc.bs; boo...
public class class_name { @Process(actionType = HostSelection.class, dependencies = {HostStore.class}) public void onSelectHost(final HostSelection action, final Dispatcher.Channel channel) { // load the server data on demand if(!host2server.containsKey(action.getHostName())) onRefresh...
public class class_name { @Process(actionType = HostSelection.class, dependencies = {HostStore.class}) public void onSelectHost(final HostSelection action, final Dispatcher.Channel channel) { // load the server data on demand if(!host2server.containsKey(action.getHostName())) onRefresh...
public class class_name { public File[] getFsImageNameCheckpoint(long txid) { ArrayList<File> list = new ArrayList<File>(); for (Iterator<StorageDirectory> it = dirIterator(NameNodeDirType.IMAGE); it.hasNext();) { list.add(getStorageFile(it.next(), NameNodeFile.IMAGE_NEW, txid)); } ...
public class class_name { public File[] getFsImageNameCheckpoint(long txid) { ArrayList<File> list = new ArrayList<File>(); for (Iterator<StorageDirectory> it = dirIterator(NameNodeDirType.IMAGE); it.hasNext();) { list.add(getStorageFile(it.next(), NameNodeFile.IMAGE_NEW, txid)); // depe...
public class class_name { public static boolean isValidFormat(String string) { if (StringUtil.isBlank(string)) { return false; } String[] parts = string.split(SEPARATOR); if (parts.length != 3) { return false; } try { Integer.valueOf(p...
public class class_name { public static boolean isValidFormat(String string) { if (StringUtil.isBlank(string)) { return false; // depends on control dependency: [if], data = [none] } String[] parts = string.split(SEPARATOR); if (parts.length != 3) { return false;...
public class class_name { protected void doRequest (HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { InvocationContext context = null; try { context = new InvocationContext(request, response); setContentType(request, ...
public class class_name { protected void doRequest (HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { InvocationContext context = null; try { context = new InvocationContext(request, response); setContentType(request, ...
public class class_name { public void addItem(@Nonnull final ExpressionItem item) { if (item == null) { throw new PreprocessorException("[Expression]Item is null", this.sources, this.includeStack, null); } if (last.isEmptySlot()) { last = new ExpressionTreeElement(item, this.includeStack, this...
public class class_name { public void addItem(@Nonnull final ExpressionItem item) { if (item == null) { throw new PreprocessorException("[Expression]Item is null", this.sources, this.includeStack, null); } if (last.isEmptySlot()) { last = new ExpressionTreeElement(item, this.includeStack, this...
public class class_name { public static long getOffset(long baseOffset, int[] shape, int[] stride, int... indices) { //int ret = mappers[shape.length].getOffset(baseOffset, shape, stride, indices); if (shape.length != stride.length || indices.length != shape.length) throw new IllegalArgume...
public class class_name { public static long getOffset(long baseOffset, int[] shape, int[] stride, int... indices) { //int ret = mappers[shape.length].getOffset(baseOffset, shape, stride, indices); if (shape.length != stride.length || indices.length != shape.length) throw new IllegalArgume...
public class class_name { public byte[] processBlock(byte[] in, int inOff, int inLen) { if (forEncryption) { return encrypt(in, inOff, inLen); } else { return decrypt(in, inOff, inLen); } } }
public class class_name { public byte[] processBlock(byte[] in, int inOff, int inLen) { if (forEncryption) { return encrypt(in, inOff, inLen); // depends on control dependency: [if], data = [none] } else { return decrypt(in, inOff, inLen); // depends on control dependency: [if], data = [none] } } }
public class class_name { @Override public Content getHeader(String header) { HtmlTree bodyTree = getBody(true, getWindowTitle(utils.getSimpleName(annotationType))); HtmlTree htmlTree = (configuration.allowTag(HtmlTag.HEADER)) ? HtmlTree.HEADER() : bodyTree; ...
public class class_name { @Override public Content getHeader(String header) { HtmlTree bodyTree = getBody(true, getWindowTitle(utils.getSimpleName(annotationType))); HtmlTree htmlTree = (configuration.allowTag(HtmlTag.HEADER)) ? HtmlTree.HEADER() : bodyTree; ...
public class class_name { @Override public synchronized void receiveAck(int blockIndex) { SendWork work = m_outstandingWork.get(blockIndex); // releases the BBContainers and cleans up if (work == null || work.m_ackCounter == null) { rejoinLog.warn("Received invalid blockIndex a...
public class class_name { @Override public synchronized void receiveAck(int blockIndex) { SendWork work = m_outstandingWork.get(blockIndex); // releases the BBContainers and cleans up if (work == null || work.m_ackCounter == null) { rejoinLog.warn("Received invalid blockIndex a...
public class class_name { protected void cleanup() { try { if (cancellationHandler != null) { cancellationHandler.onCancel(); } else if (this instanceof CancellationHandler) { ((CancellationHandler) this).onCancel(); } } catch (Throwable t) { // TODO: forward to global ExceptionHandler log.w...
public class class_name { protected void cleanup() { try { if (cancellationHandler != null) { cancellationHandler.onCancel(); // depends on control dependency: [if], data = [none] } else if (this instanceof CancellationHandler) { ((CancellationHandler) this).onCancel(); // depends on control dependency...
public class class_name { public void addImport(String imprt, int lineNo) { imports.add(imprt); if (imprt.endsWith(".*")) { imprt = imprt.substring(0, imprt.lastIndexOf(".*")); templateClass.importPaths.add(imprt); } importLineMap.put(imprt, lineNo); } }
public class class_name { public void addImport(String imprt, int lineNo) { imports.add(imprt); if (imprt.endsWith(".*")) { imprt = imprt.substring(0, imprt.lastIndexOf(".*")); // depends on control dependency: [if], data = [none] templateClass.importPaths.add(imprt); // depends...
public class class_name { @Override public void setWorkingSolution(Solution_ workingSolution) { super.setWorkingSolution(workingSolution); if (incrementalScoreCalculator instanceof ConstraintMatchAwareIncrementalScoreCalculator) { ((ConstraintMatchAwareIncrementalScoreCalculator<Solutio...
public class class_name { @Override public void setWorkingSolution(Solution_ workingSolution) { super.setWorkingSolution(workingSolution); if (incrementalScoreCalculator instanceof ConstraintMatchAwareIncrementalScoreCalculator) { ((ConstraintMatchAwareIncrementalScoreCalculator<Solutio...
public class class_name { public Set<Explanation<E>> computePreciseJustsOptimised(E entailment, int limit) throws OWLException { this.limit = limit; foundLaconicJustifications.clear(); ExplanationGenerator<E> gen = explanationGeneratorFactory.createExplanationGenerator(axioms, this); Se...
public class class_name { public Set<Explanation<E>> computePreciseJustsOptimised(E entailment, int limit) throws OWLException { this.limit = limit; foundLaconicJustifications.clear(); ExplanationGenerator<E> gen = explanationGeneratorFactory.createExplanationGenerator(axioms, this); Se...
public class class_name { @Override public ElementReader nextElementReader() throws IOException { RandomElementReader reader = plyReader.nextElementReader(); if (reader == null) { return reader; } if (!reader.getElementType().getName().equals("vertex")) { re...
public class class_name { @Override public ElementReader nextElementReader() throws IOException { RandomElementReader reader = plyReader.nextElementReader(); if (reader == null) { return reader; } if (!reader.getElementType().getName().equals("vertex")) { re...
public class class_name { public static void throwException(Throwable t) { if (hasUnsafe()) { PlatformDependent0.throwException(t); } else { PlatformDependent.<RuntimeException>throwException0(t); } } }
public class class_name { public static void throwException(Throwable t) { if (hasUnsafe()) { PlatformDependent0.throwException(t); // depends on control dependency: [if], data = [none] } else { PlatformDependent.<RuntimeException>throwException0(t); // depends on control depend...
public class class_name { public static String parseToUnicode(String input) { // Get all the potential aliases List<AliasCandidate> candidates = getAliasCandidates(input); // Replace the aliases by their unicode String result = input; for (AliasCandidate candidate : candidates) { Emoji emoji...
public class class_name { public static String parseToUnicode(String input) { // Get all the potential aliases List<AliasCandidate> candidates = getAliasCandidates(input); // Replace the aliases by their unicode String result = input; for (AliasCandidate candidate : candidates) { Emoji emoji...
public class class_name { @Default @Produces @Singleton public Tracer produceTracer() { // TCK casts to MockTracer so we cannot use GlobalTracer as a bean! Tracer tracer = TracerResolver.resolveTracer(); if (tracer == null) { tracer = GlobalTracer.get(); } logger.info(String.format("Reg...
public class class_name { @Default @Produces @Singleton public Tracer produceTracer() { // TCK casts to MockTracer so we cannot use GlobalTracer as a bean! Tracer tracer = TracerResolver.resolveTracer(); if (tracer == null) { tracer = GlobalTracer.get(); // depends on control dependency: [if], ...
public class class_name { public void forAllIndices(String template, Properties attributes) throws XDocletException { boolean processUnique = TypeConversionUtil.stringToBoolean(attributes.getProperty(ATTRIBUTE_UNIQUE), false); // first the default index _curIndexDef = _curTableDef.get...
public class class_name { public void forAllIndices(String template, Properties attributes) throws XDocletException { boolean processUnique = TypeConversionUtil.stringToBoolean(attributes.getProperty(ATTRIBUTE_UNIQUE), false); // first the default index _curIndexDef = _curTableDef.get...
public class class_name { public static double sabrBerestyckiNormalVolatilityApproximation(double alpha, double beta, double rho, double nu, double displacement, double underlying, double strike, double maturity) { // Apply displacement. Displaced model is just a shift on underlying and strike. underlying += disp...
public class class_name { public static double sabrBerestyckiNormalVolatilityApproximation(double alpha, double beta, double rho, double nu, double displacement, double underlying, double strike, double maturity) { // Apply displacement. Displaced model is just a shift on underlying and strike. underlying += disp...
public class class_name { public ServiceCall<Classifier> updateClassifier(UpdateClassifierOptions updateClassifierOptions) { Validator.notNull(updateClassifierOptions, "updateClassifierOptions cannot be null"); Validator.isTrue((updateClassifierOptions.positiveExamples() != null) || (updateClassifierOptions ...
public class class_name { public ServiceCall<Classifier> updateClassifier(UpdateClassifierOptions updateClassifierOptions) { Validator.notNull(updateClassifierOptions, "updateClassifierOptions cannot be null"); Validator.isTrue((updateClassifierOptions.positiveExamples() != null) || (updateClassifierOptions ...
public class class_name { static public boolean isDateUnit(ucar.units.Unit uu) { boolean ok = uu.isCompatible(dateReferenceUnit); if (!ok) return false; try { uu.getConverterTo(dateReferenceUnit); return true; } catch (ConversionException e) { return false; } } }
public class class_name { static public boolean isDateUnit(ucar.units.Unit uu) { boolean ok = uu.isCompatible(dateReferenceUnit); if (!ok) return false; try { uu.getConverterTo(dateReferenceUnit); // depends on control dependency: [try], data = [none] return true; // depends on control dependen...
public class class_name { public DevVarLongStringArray extractLongStringArray(final DeviceData deviceData) { if (deviceData.getAny()==null) { System.out.println("any = null !!"); } return DevVarLongStringArrayHelper.extract(deviceData.getAny()); } }
public class class_name { public DevVarLongStringArray extractLongStringArray(final DeviceData deviceData) { if (deviceData.getAny()==null) { System.out.println("any = null !!"); // depends on control dependency: [if], data = [none] } return DevVarLongStringArrayHelper.extract(devic...
public class class_name { public static synchronized UserGroupInformation getProxiedUser( final String toProxy, final Properties prop, final Logger log, final Configuration conf) throws IOException { if (conf == null) { throw new IllegalArgumentException("conf can't be null"); } UserGrou...
public class class_name { public static synchronized UserGroupInformation getProxiedUser( final String toProxy, final Properties prop, final Logger log, final Configuration conf) throws IOException { if (conf == null) { throw new IllegalArgumentException("conf can't be null"); } UserGrou...
public class class_name { void setPhase(Phase phase){ TaskStatus.Phase oldPhase = getPhase(); if (oldPhase != phase){ // sort phase started if (phase == TaskStatus.Phase.SORT){ setShuffleFinishTime(JobTracker.getClock().getTime()); } else if (phase == TaskStatus.Phase.REDUCE){ ...
public class class_name { void setPhase(Phase phase){ TaskStatus.Phase oldPhase = getPhase(); if (oldPhase != phase){ // sort phase started if (phase == TaskStatus.Phase.SORT){ setShuffleFinishTime(JobTracker.getClock().getTime()); // depends on control dependency: [if], data = [none] ...
public class class_name { public void info(String s) { if (isEnabled() && isInfoEnabled()) { dispatchLogMessage(new LogEvent(this, LogEvent.INFO_TYPE, s)); } } }
public class class_name { public void info(String s) { if (isEnabled() && isInfoEnabled()) { dispatchLogMessage(new LogEvent(this, LogEvent.INFO_TYPE, s)); // depends on control dependency: [if], data = [none] } } }
public class class_name { private void groovySection(Reader reader, StringWriter sw) throws IOException { sw.write("\"\"\");"); int c; while ((c = reader.read()) != -1) { if (c == '%') { c = reader.read(); if (c != '>') { sw.write(...
public class class_name { private void groovySection(Reader reader, StringWriter sw) throws IOException { sw.write("\"\"\");"); int c; while ((c = reader.read()) != -1) { if (c == '%') { c = reader.read(); // depends on control dependency: [if], data = [none] ...
public class class_name { @Beta protected int standardCount(@Nullable Object object) { for (Entry<?> entry : this.entrySet()) { if (Objects.equal(entry.getElement(), object)) { return entry.getCount(); } } return 0; } }
public class class_name { @Beta protected int standardCount(@Nullable Object object) { for (Entry<?> entry : this.entrySet()) { if (Objects.equal(entry.getElement(), object)) { return entry.getCount(); // depends on control dependency: [if], data = [none] } } return 0; } }
public class class_name { public DeleteUserAttributesRequest withUserAttributeNames(String... userAttributeNames) { if (this.userAttributeNames == null) { setUserAttributeNames(new java.util.ArrayList<String>(userAttributeNames.length)); } for (String ele : userAttributeNames) { ...
public class class_name { public DeleteUserAttributesRequest withUserAttributeNames(String... userAttributeNames) { if (this.userAttributeNames == null) { setUserAttributeNames(new java.util.ArrayList<String>(userAttributeNames.length)); // depends on control dependency: [if], data = [none] ...
public class class_name { public static Pair<List<Pinyin>, List<Boolean>> convert2Pair(String complexText, boolean removeTone) { List<Pinyin> pinyinList = new LinkedList<Pinyin>(); List<Boolean> booleanList = new LinkedList<Boolean>(); Collection<Token> tokenize = trie.tokenize(complexText)...
public class class_name { public static Pair<List<Pinyin>, List<Boolean>> convert2Pair(String complexText, boolean removeTone) { List<Pinyin> pinyinList = new LinkedList<Pinyin>(); List<Boolean> booleanList = new LinkedList<Boolean>(); Collection<Token> tokenize = trie.tokenize(complexText)...
public class class_name { @NotNull public Optional<T> findSingle() { if (iterator.hasNext()) { T singleCandidate = iterator.next(); if (iterator.hasNext()) { throw new IllegalStateException("Stream contains more than one element"); } else { ...
public class class_name { @NotNull public Optional<T> findSingle() { if (iterator.hasNext()) { T singleCandidate = iterator.next(); if (iterator.hasNext()) { throw new IllegalStateException("Stream contains more than one element"); } else { ...
public class class_name { @Override public void userEventTriggered(ChannelHandlerContext ctx, Object evt) throws Exception { if (evt instanceof IdleStateEvent) { IdleStateEvent e = (IdleStateEvent) evt; // See class comment for timeout semantics. In addition to ensuring we only timeout while //...
public class class_name { @Override public void userEventTriggered(ChannelHandlerContext ctx, Object evt) throws Exception { if (evt instanceof IdleStateEvent) { IdleStateEvent e = (IdleStateEvent) evt; // See class comment for timeout semantics. In addition to ensuring we only timeout while //...
public class class_name { protected String getStringMethodParam(String methodName, String paramKey, String defaultValue) { if (CommonUtils.isEmpty(configContext)) { return defaultValue; } String o = (String) configContext.get(buildMethodKey(methodName, paramKey)); if (o == n...
public class class_name { protected String getStringMethodParam(String methodName, String paramKey, String defaultValue) { if (CommonUtils.isEmpty(configContext)) { return defaultValue; // depends on control dependency: [if], data = [none] } String o = (String) configContext.get(bui...
public class class_name { public CreateClusterResponse createCluster(CreateClusterRequest request) { checkNotNull(request, "request should not be null."); checkStringNotEmpty(request.getImageType(), "The imageType should not be null or empty string."); checkStringNotEmpty(request.getImageVersio...
public class class_name { public CreateClusterResponse createCluster(CreateClusterRequest request) { checkNotNull(request, "request should not be null."); checkStringNotEmpty(request.getImageType(), "The imageType should not be null or empty string."); checkStringNotEmpty(request.getImageVersio...
public class class_name { @Nullable @Override public DFA<?, I> findCounterExample(DFA<?, I> automaton, Collection<? extends I> inputs, String property) throws ModelCheckingException { final File fsm = findCounterExampleFSM(automaton, inputs, property); try { final Compa...
public class class_name { @Nullable @Override public DFA<?, I> findCounterExample(DFA<?, I> automaton, Collection<? extends I> inputs, String property) throws ModelCheckingException { final File fsm = findCounterExampleFSM(automaton, inputs, property); try { final Compa...
public class class_name { private void init(Context context, AttributeSet attrs, int defStyle) { // Attribute initialization final TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.ProgressButton, defStyle, R.style.ProgressButton_Pin_Compat); final Resources res = getResources(); ...
public class class_name { private void init(Context context, AttributeSet attrs, int defStyle) { // Attribute initialization final TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.ProgressButton, defStyle, R.style.ProgressButton_Pin_Compat); final Resources res = getResources(); ...
public class class_name { public static void setValue(Object instance, String fieldName, Object value) { try { Field f = findFieldRecursively(instance.getClass(), fieldName); if (f == null) throw new NoSuchMethodException("Cannot find field " + fieldName + " on " + insta...
public class class_name { public static void setValue(Object instance, String fieldName, Object value) { try { Field f = findFieldRecursively(instance.getClass(), fieldName); if (f == null) throw new NoSuchMethodException("Cannot find field " + fieldName + " on " + insta...
public class class_name { public Observable<ServiceResponse<Page<ResourceHealthMetadataInner>>> listBySiteSlotNextWithServiceResponseAsync(final String nextPageLink) { return listBySiteSlotNextSinglePageAsync(nextPageLink) .concatMap(new Func1<ServiceResponse<Page<ResourceHealthMetadataInner>>, Obs...
public class class_name { public Observable<ServiceResponse<Page<ResourceHealthMetadataInner>>> listBySiteSlotNextWithServiceResponseAsync(final String nextPageLink) { return listBySiteSlotNextSinglePageAsync(nextPageLink) .concatMap(new Func1<ServiceResponse<Page<ResourceHealthMetadataInner>>, Obs...
public class class_name { private static boolean areMethodNameAndParameterTypesEqual(Method methodA, Method methodB) { if (!methodA.getName().equals(methodB.getName())) { return false; } Class<?>[] methodAParameterTypes = methodA.getParameterTypes(); Class<?>[] methodBParame...
public class class_name { private static boolean areMethodNameAndParameterTypesEqual(Method methodA, Method methodB) { if (!methodA.getName().equals(methodB.getName())) { return false; // depends on control dependency: [if], data = [none] } Class<?>[] methodAParameterTypes = methodA...
public class class_name { public PoolExistsHeaders withLastModified(DateTime lastModified) { if (lastModified == null) { this.lastModified = null; } else { this.lastModified = new DateTimeRfc1123(lastModified); } return this; } }
public class class_name { public PoolExistsHeaders withLastModified(DateTime lastModified) { if (lastModified == null) { this.lastModified = null; // depends on control dependency: [if], data = [none] } else { this.lastModified = new DateTimeRfc1123(lastModified); // depends on ...
public class class_name { public TemporalAccessor parse(CharSequence text) { Jdk8Methods.requireNonNull(text, "text"); try { return parseToBuilder(text, null).resolve(resolverStyle, resolverFields); } catch (DateTimeParseException ex) { throw ex; } catch (Runtime...
public class class_name { public TemporalAccessor parse(CharSequence text) { Jdk8Methods.requireNonNull(text, "text"); try { return parseToBuilder(text, null).resolve(resolverStyle, resolverFields); // depends on control dependency: [try], data = [none] } catch (DateTimeParseExcepti...
public class class_name { private static int drawTail(final Point2DArray points, final NFastDoubleArrayJSO buffer, Direction lastDirection, final Direction tailDirection, final double correction, final OrthogonalPolyLine pline, final double p0x, final double p0y, double p1x, double p1y, final boolean write) { ...
public class class_name { private static int drawTail(final Point2DArray points, final NFastDoubleArrayJSO buffer, Direction lastDirection, final Direction tailDirection, final double correction, final OrthogonalPolyLine pline, final double p0x, final double p0y, double p1x, double p1y, final boolean write) { ...
public class class_name { public static ANVLRecord load(final InputStream is) throws IOException { // It doesn't look like a CRLF sequence is possible in UTF-8 without // it signifying CRLF: The top bits are set in multibyte characters. // Was thinking of recording CRLF as I was running through t...
public class class_name { public static ANVLRecord load(final InputStream is) throws IOException { // It doesn't look like a CRLF sequence is possible in UTF-8 without // it signifying CRLF: The top bits are set in multibyte characters. // Was thinking of recording CRLF as I was running through t...
public class class_name { private void initAnchorsMap(final Workbook wb, final ChartsData chartsData) { try { if (wb instanceof XSSFWorkbook) { ChartUtility.initXSSFAnchorsMap((XSSFWorkbook) wb, chartsData); } } catch (Exception e) { LOG.log(Level.SEVERE, "Web Form getAnchorsMap...
public class class_name { private void initAnchorsMap(final Workbook wb, final ChartsData chartsData) { try { if (wb instanceof XSSFWorkbook) { ChartUtility.initXSSFAnchorsMap((XSSFWorkbook) wb, chartsData); // depends on control dependency: [if], data = [none] } } catch (Exception e) { ...
public class class_name { @Override public String filter(URL sourceUrl, Metadata sourceMetadata, String urlString) { Iterator<Rule> i = rules.iterator(); while (i.hasNext()) { Rule r = i.next(); Matcher matcher = r.pattern.matcher(urlString); urlSt...
public class class_name { @Override public String filter(URL sourceUrl, Metadata sourceMetadata, String urlString) { Iterator<Rule> i = rules.iterator(); while (i.hasNext()) { Rule r = i.next(); Matcher matcher = r.pattern.matcher(urlString); urlSt...
public class class_name { public List<Converter<OrmDescriptor>> getAllConverter() { List<Converter<OrmDescriptor>> list = new ArrayList<Converter<OrmDescriptor>>(); List<Node> nodeList = model.get("converter"); for(Node node: nodeList) { Converter<OrmDescriptor> type = new Converte...
public class class_name { public List<Converter<OrmDescriptor>> getAllConverter() { List<Converter<OrmDescriptor>> list = new ArrayList<Converter<OrmDescriptor>>(); List<Node> nodeList = model.get("converter"); for(Node node: nodeList) { Converter<OrmDescriptor> type = new Converte...
public class class_name { public static org.osmdroid.views.overlay.Polygon addPolygonToMap( MapView map, List<GeoPoint> pts, List<List<GeoPoint>> holes, PolygonOptions options) { org.osmdroid.views.overlay.Polygon polygon1 = new org.osmdroid.views.overlay.Polygon(map); polygon1....
public class class_name { public static org.osmdroid.views.overlay.Polygon addPolygonToMap( MapView map, List<GeoPoint> pts, List<List<GeoPoint>> holes, PolygonOptions options) { org.osmdroid.views.overlay.Polygon polygon1 = new org.osmdroid.views.overlay.Polygon(map); polygon1....
public class class_name { public JvmAnnotationReference getJvmAnnotationReference(/* @Nullable */ XAnnotation anno) { if(anno == null) return null; JvmAnnotationReference reference = typesFactory.createJvmAnnotationReference(); final JvmType annotation = (JvmType) anno.eGet( XAnnotationsPackage.Literals.X...
public class class_name { public JvmAnnotationReference getJvmAnnotationReference(/* @Nullable */ XAnnotation anno) { if(anno == null) return null; JvmAnnotationReference reference = typesFactory.createJvmAnnotationReference(); final JvmType annotation = (JvmType) anno.eGet( XAnnotationsPackage.Literals.X...
public class class_name { public void setLinkSubstitutionHandler(String handlerClassName) { try { m_linkSubstitutionHandler = (I_CmsLinkSubstitutionHandler)Class.forName(handlerClassName).newInstance(); } catch (Exception e) { // should never happen LOG.error(e.getL...
public class class_name { public void setLinkSubstitutionHandler(String handlerClassName) { try { m_linkSubstitutionHandler = (I_CmsLinkSubstitutionHandler)Class.forName(handlerClassName).newInstance(); // depends on control dependency: [try], data = [none] } catch (Exception e) { ...
public class class_name { private void performNextWrite() { Append append = getNextAppend(); if (append == null) { return; } long traceId = LoggerHelpers.traceEnter(log, "storeAppend", append); Timer timer = new Timer(); storeAppend(append) .w...
public class class_name { private void performNextWrite() { Append append = getNextAppend(); if (append == null) { return; // depends on control dependency: [if], data = [none] } long traceId = LoggerHelpers.traceEnter(log, "storeAppend", append); Timer timer = new T...
public class class_name { public static @Nullable String get(@NotNull Map<String, String[]> requestMap, @NotNull String param) { String value = null; String[] valueArray = requestMap.get(param); if (valueArray != null && valueArray.length > 0) { value = valueArray[0]; } // convert encoding to...
public class class_name { public static @Nullable String get(@NotNull Map<String, String[]> requestMap, @NotNull String param) { String value = null; String[] valueArray = requestMap.get(param); if (valueArray != null && valueArray.length > 0) { value = valueArray[0]; // depends on control dependency...
public class class_name { public static ConditionTerm create(StreamTokenizer tokenizer) throws WebDAVException { ConditionTerm term = new ConditionTerm(); try { int token = tokenizer.ttype; if (token == '(') token = tokenizer.nextToken(); else ...
public class class_name { public static ConditionTerm create(StreamTokenizer tokenizer) throws WebDAVException { ConditionTerm term = new ConditionTerm(); try { int token = tokenizer.ttype; if (token == '(') token = tokenizer.nextToken(); else ...
public class class_name { private static String getCanonicalHeaders(HashMap<String, String> headers) { if (headers.isEmpty()) { return ""; } TreeSet<String> headerSet = new TreeSet<String>(); for (Map.Entry<String, String> entry : headers.entrySet()) { String key...
public class class_name { private static String getCanonicalHeaders(HashMap<String, String> headers) { if (headers.isEmpty()) { return ""; // depends on control dependency: [if], data = [none] } TreeSet<String> headerSet = new TreeSet<String>(); for (Map.Entry<String, String...
public class class_name { public Optional<T> ifPresent(final Consumer<? super T> consumer) { if (isPresent()) { consumer.accept(get()); } return this; } }
public class class_name { public Optional<T> ifPresent(final Consumer<? super T> consumer) { if (isPresent()) { consumer.accept(get()); // depends on control dependency: [if], data = [none] } return this; } }
public class class_name { public MarshallerRegistry merge(MarshallerRegistry.Builder marshallerRegistryOverrides) { if(marshallerRegistryOverrides == null) { return this; } Builder merged = MarshallerRegistry.builder(); merged.copyMarshallersFromRegistry(this.marshallers); ...
public class class_name { public MarshallerRegistry merge(MarshallerRegistry.Builder marshallerRegistryOverrides) { if(marshallerRegistryOverrides == null) { return this; // depends on control dependency: [if], data = [none] } Builder merged = MarshallerRegistry.builder(); m...
public class class_name { public EClass getIfcIrregularTimeSeriesValue() { if (ifcIrregularTimeSeriesValueEClass == null) { ifcIrregularTimeSeriesValueEClass = (EClass) EPackage.Registry.INSTANCE .getEPackage(Ifc2x3tc1Package.eNS_URI).getEClassifiers().get(283); } return ifcIrregularTimeSeriesValueE...
public class class_name { public EClass getIfcIrregularTimeSeriesValue() { if (ifcIrregularTimeSeriesValueEClass == null) { ifcIrregularTimeSeriesValueEClass = (EClass) EPackage.Registry.INSTANCE .getEPackage(Ifc2x3tc1Package.eNS_URI).getEClassifiers().get(283); // depends on control dependency: [if], da...
public class class_name { private void setOption(String opt, List<String> arguments) { String[] args = new String[arguments.length() + 1]; int k = 0; args[k++] = opt; for (List<String> i = arguments; i.nonEmpty(); i=i.tail) { args[k++] = i.head; } options.app...
public class class_name { private void setOption(String opt, List<String> arguments) { String[] args = new String[arguments.length() + 1]; int k = 0; args[k++] = opt; for (List<String> i = arguments; i.nonEmpty(); i=i.tail) { args[k++] = i.head; // depends on control depende...
public class class_name { public String selectOption(final String optionName, final String defaultValue) throws SQLException { Connection conn = null; PreparedStatement stmt = null; ResultSet rs = null; Timer.Context ctx = metrics.optionSelectTimer.time(); try { conn = connection...
public class class_name { public String selectOption(final String optionName, final String defaultValue) throws SQLException { Connection conn = null; PreparedStatement stmt = null; ResultSet rs = null; Timer.Context ctx = metrics.optionSelectTimer.time(); try { conn = connection...
public class class_name { public DirWatcher useWatchFile(final String name) { watchFile = new File(dir, name); if (!watchFile.isFile() || !watchFile.exists()) { try { FileUtil.touch(watchFile); } catch (IOException ioex) { throw new DirWatcherException("Invalid watch file: " + name, ioex); } } ...
public class class_name { public DirWatcher useWatchFile(final String name) { watchFile = new File(dir, name); if (!watchFile.isFile() || !watchFile.exists()) { try { FileUtil.touch(watchFile); // depends on control dependency: [try], data = [none] } catch (IOException ioex) { throw new DirWatcherEx...
public class class_name { public <T> List<T> findList(Class<T> clazz) { List<T> list = new ArrayList<T>(); for (Entry<String, Object> entry : contextMap.entrySet()) { if (clazz.isInstance(entry.getValue())) { list.add(clazz.cast(entry.getValue())); } } return list; } }
public class class_name { public <T> List<T> findList(Class<T> clazz) { List<T> list = new ArrayList<T>(); for (Entry<String, Object> entry : contextMap.entrySet()) { if (clazz.isInstance(entry.getValue())) { list.add(clazz.cast(entry.getValue())); // depends on control dependency: [if], data = [none] } ...
public class class_name { public void marshall(GetRunRequest getRunRequest, ProtocolMarshaller protocolMarshaller) { if (getRunRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(getRunRequest...
public class class_name { public void marshall(GetRunRequest getRunRequest, ProtocolMarshaller protocolMarshaller) { if (getRunRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(getRunRequest...
public class class_name { @SuppressWarnings("unused") final void handleHeaderValue(ByteBuffer buffer, ResponseParseState state, HttpResponseBuilder builder) { StringBuilder stringBuilder = state.stringBuilder; if (stringBuilder == null) { stringBuilder = new StringBuilder(); ...
public class class_name { @SuppressWarnings("unused") final void handleHeaderValue(ByteBuffer buffer, ResponseParseState state, HttpResponseBuilder builder) { StringBuilder stringBuilder = state.stringBuilder; if (stringBuilder == null) { stringBuilder = new StringBuilder(); // depends ...
public class class_name { protected String lookupAlias(final String alias) { String value = actionsManager.lookupPathAlias(alias); if (value == null) { ActionRuntime cfg = actionsManager.lookup(alias); if (cfg != null) { value = cfg.getActionPath(); } } return value; } }
public class class_name { protected String lookupAlias(final String alias) { String value = actionsManager.lookupPathAlias(alias); if (value == null) { ActionRuntime cfg = actionsManager.lookup(alias); if (cfg != null) { value = cfg.getActionPath(); // depends on control dependency: [if], data = [none] ...
public class class_name { public static DMatrixRMaj copyTriangle(DMatrixRMaj src , DMatrixRMaj dst , boolean upper ) { if( dst == null ) { dst = new DMatrixRMaj(src.numRows,src.numCols); } else if( src.numRows != dst.numRows || src.numCols != dst.numCols ) { throw new IllegalArg...
public class class_name { public static DMatrixRMaj copyTriangle(DMatrixRMaj src , DMatrixRMaj dst , boolean upper ) { if( dst == null ) { dst = new DMatrixRMaj(src.numRows,src.numCols); // depends on control dependency: [if], data = [none] } else if( src.numRows != dst.numRows || src.numCo...
public class class_name { static public void update(Configuration configs) { scoringPolicy = configs.get(MalmoMod.SCORING_CONFIGS, "policy", DEFAULT_NO_SCORING).getInt(); if (scoringPolicy > 0) { String customLogHandler = configs.get(MalmoMod.SCORING_CONFIGS, "handler", "").getString();...
public class class_name { static public void update(Configuration configs) { scoringPolicy = configs.get(MalmoMod.SCORING_CONFIGS, "policy", DEFAULT_NO_SCORING).getInt(); if (scoringPolicy > 0) { String customLogHandler = configs.get(MalmoMod.SCORING_CONFIGS, "handler", "").getString();...
public class class_name { private Map<String, Object> collectClaims(String subject, String[] claimNames, String[] claimLocales) { // If no claim is required. if (claimNames == null || claimNames.length == 0) { return null; } // Drop empty and duplicate entries f...
public class class_name { private Map<String, Object> collectClaims(String subject, String[] claimNames, String[] claimLocales) { // If no claim is required. if (claimNames == null || claimNames.length == 0) { return null; // depends on control dependency: [if], data = [none] ...
public class class_name { @Deprecated public static final Timecode getInstance(SampleCount samples, boolean dropFrame, boolean supportDays) { final Timecode timecode = getInstance(samples, dropFrame); if (!supportDays && timecode.getDaysPart() != 0) { throw new IllegalArgumentException("supportDays disable...
public class class_name { @Deprecated public static final Timecode getInstance(SampleCount samples, boolean dropFrame, boolean supportDays) { final Timecode timecode = getInstance(samples, dropFrame); if (!supportDays && timecode.getDaysPart() != 0) { throw new IllegalArgumentException("supportDays disable...
public class class_name { @SuppressWarnings("unchecked") private E[] leafNodeArrayFor(int i) { // i is the index into this vector. Each 5 bits represent an index into an array. The // highest 5 bits (that are less than the shift value) are the index into the top-level // array. The lowest...
public class class_name { @SuppressWarnings("unchecked") private E[] leafNodeArrayFor(int i) { // i is the index into this vector. Each 5 bits represent an index into an array. The // highest 5 bits (that are less than the shift value) are the index into the top-level // array. The lowest...
public class class_name { private static void close(Closeable closeable) { if (closeable != null) { try { closeable.close(); } catch (IOException ignored) { logger.error("Failed to close output stream: " + ignored.getMessage()); } } } }
public class class_name { private static void close(Closeable closeable) { if (closeable != null) { try { closeable.close(); // depends on control dependency: [try], data = [none] } catch (IOException ignored) { logger.error("Failed to close output stream: " + ignored.getMessage()); } // depen...
public class class_name { public int getFixedHeaderSize() { int msgsize = super.getSerializedSize(); // Fixed header msgsize += 2 + 2 + 1 + 1 + 1 + 1 + 1 + 2 + 1 + 8 + 8; // procname to load str if any if (m_procNameToLoad != null) { msgsize += m_procNameToLoad.len...
public class class_name { public int getFixedHeaderSize() { int msgsize = super.getSerializedSize(); // Fixed header msgsize += 2 + 2 + 1 + 1 + 1 + 1 + 1 + 2 + 1 + 8 + 8; // procname to load str if any if (m_procNameToLoad != null) { msgsize += m_procNameToLoad.len...
public class class_name { protected Map<String, Object> convertProfileAndPasswordToAttributes(final U profile, final String password) { final Map<String, Object> storageAttributes = new HashMap<>(); storageAttributes.put(getIdAttribute(), profile.getId()); storageAttributes.put(LINKEDID, profil...
public class class_name { protected Map<String, Object> convertProfileAndPasswordToAttributes(final U profile, final String password) { final Map<String, Object> storageAttributes = new HashMap<>(); storageAttributes.put(getIdAttribute(), profile.getId()); storageAttributes.put(LINKEDID, profil...
public class class_name { public static boolean isChildOf(Resource file, Resource dir) { while (file != null) { if (file.equals(dir)) return true; file = file.getParentResource(); } return false; } }
public class class_name { public static boolean isChildOf(Resource file, Resource dir) { while (file != null) { if (file.equals(dir)) return true; file = file.getParentResource(); // depends on control dependency: [while], data = [none] } return false; } }
public class class_name { public synchronized Set<String> regexInTopic(final String topic, final String payload) { final Set<String> res = new HashSet<>(); final Map<String, List<KafkaDependencyInstanceContext>> eventMap = this.topicEventMap.get(topic); if (eventMap == null) { return Collections.empt...
public class class_name { public synchronized Set<String> regexInTopic(final String topic, final String payload) { final Set<String> res = new HashSet<>(); final Map<String, List<KafkaDependencyInstanceContext>> eventMap = this.topicEventMap.get(topic); if (eventMap == null) { return Collections.empt...
public class class_name { public static boolean hasModifier(Method method, ModifierType... modifierTypes) { if (null == method || ArrayUtil.isEmpty(modifierTypes)) { return false; } return 0 != (method.getModifiers() & modifiersToInt(modifierTypes)); } }
public class class_name { public static boolean hasModifier(Method method, ModifierType... modifierTypes) { if (null == method || ArrayUtil.isEmpty(modifierTypes)) { return false; // depends on control dependency: [if], data = [none] } return 0 != (method.getModifiers() & modifiersToInt(modifierTypes)); ...
public class class_name { private CmsGalleryDataBean getInitialSettingsInternal(CmsGalleryConfiguration conf) throws CmsRpcException { CmsGalleryDataBean data = new CmsGalleryDataBean(); data.setMode(conf.getGalleryMode()); data.setResultViewType(readResultViewType()); boolean galleryS...
public class class_name { private CmsGalleryDataBean getInitialSettingsInternal(CmsGalleryConfiguration conf) throws CmsRpcException { CmsGalleryDataBean data = new CmsGalleryDataBean(); data.setMode(conf.getGalleryMode()); data.setResultViewType(readResultViewType()); boolean galleryS...
public class class_name { public DynamicReport build() { if (built) { throw new DJBuilderException("DynamicReport already built. Cannot use more than once."); } else { built = true; } report.setOptions(options); if (!globalVariablesGroup.getFooterVariab...
public class class_name { public DynamicReport build() { if (built) { throw new DJBuilderException("DynamicReport already built. Cannot use more than once."); } else { built = true; // depends on control dependency: [if], data = [none] } report.setOptions(optio...
public class class_name { @SuppressWarnings("unchecked") public Class<? extends T> defineClass() { if (generatedClass == null) { synchronized (this) { if (generatedClass == null) { try { // first check that the proxy has not already be...
public class class_name { @SuppressWarnings("unchecked") public Class<? extends T> defineClass() { if (generatedClass == null) { synchronized (this) { if (generatedClass == null) { try { // first check that the proxy has not already be...
public class class_name { @Column(header = Messages.GUI_HISTORY_DIALOG_COL_DATE_PUBLISHED_0, order = 50) public Date getPublishDate() { if (m_bean.getPublishDate() == null) { return null; } return new Date(m_bean.getPublishDate().getDate()); } }
public class class_name { @Column(header = Messages.GUI_HISTORY_DIALOG_COL_DATE_PUBLISHED_0, order = 50) public Date getPublishDate() { if (m_bean.getPublishDate() == null) { return null; // depends on control dependency: [if], data = [none] } return new Date(m_bean.getPublishD...
public class class_name { public S initialize(ExtractorConfig extractorConfig) { setExtractorImplClassName(extractorConfig.getExtractorImplClassName()); setEntityClass(extractorConfig.getEntityClass()); setRddId(extractorConfig.getRddId()); setPartitionId(extractorConfig.getPartitionId...
public class class_name { public S initialize(ExtractorConfig extractorConfig) { setExtractorImplClassName(extractorConfig.getExtractorImplClassName()); setEntityClass(extractorConfig.getEntityClass()); setRddId(extractorConfig.getRddId()); setPartitionId(extractorConfig.getPartitionId...
public class class_name { private void readProjectHeader() { Table table = m_tables.get("DIR"); MapRow row = table.find(""); if (row != null) { setFields(PROJECT_FIELDS, row, m_projectFile.getProjectProperties()); m_wbsFormat = new P3WbsFormat(row); } } }
public class class_name { private void readProjectHeader() { Table table = m_tables.get("DIR"); MapRow row = table.find(""); if (row != null) { setFields(PROJECT_FIELDS, row, m_projectFile.getProjectProperties()); // depends on control dependency: [if], data = [none] m_wbsF...
public class class_name { @Nullable public static CascadingStyleSheet readFromReader (@Nonnull final IHasReader aRP, @Nonnull final CSSReaderSettings aSettings) { ValueEnforcer.notNull (aRP, "ReaderProvider"); ValueEnforcer.notNull (aSettings, "Settings")...
public class class_name { @Nullable public static CascadingStyleSheet readFromReader (@Nonnull final IHasReader aRP, @Nonnull final CSSReaderSettings aSettings) { ValueEnforcer.notNull (aRP, "ReaderProvider"); ValueEnforcer.notNull (aSettings, "Settings")...
public class class_name { protected void putFile(final String name, final FileUpload value) { if (requestFiles == null) { requestFiles = new HashMap<>(); } FileUpload[] fileUploads = requestFiles.get(name); if (fileUploads != null) { fileUploads = ArraysUtil.append(fileUploads, value); } else { fi...
public class class_name { protected void putFile(final String name, final FileUpload value) { if (requestFiles == null) { requestFiles = new HashMap<>(); // depends on control dependency: [if], data = [none] } FileUpload[] fileUploads = requestFiles.get(name); if (fileUploads != null) { fileUploads = A...
public class class_name { public void onDoubleClick(DoubleClickEvent event) { //Check if there was a last click that was handled in this class. if (null != lastClickPosition) { // Zoom in on the event location. Bbox bounds = mapWidget.getMapModel().getMapView().getBounds(); double x = lastClickPosition.ge...
public class class_name { public void onDoubleClick(DoubleClickEvent event) { //Check if there was a last click that was handled in this class. if (null != lastClickPosition) { // Zoom in on the event location. Bbox bounds = mapWidget.getMapModel().getMapView().getBounds(); double x = lastClickPosition.ge...
public class class_name { public static ContractSummaryBean unmarshallContractSummary(Map<String, Object> source) { if (source == null) { return null; } ContractSummaryBean bean = new ContractSummaryBean(); bean.setContractId(asLong(source.get("id"))); bean.setCreate...
public class class_name { public static ContractSummaryBean unmarshallContractSummary(Map<String, Object> source) { if (source == null) { return null; // depends on control dependency: [if], data = [none] } ContractSummaryBean bean = new ContractSummaryBean(); bean.setContra...
public class class_name { public static FacesMessage getMessage(String messageId, String... params) { String summary = null; String detail = null; ResourceBundle bundle; String bundleName; FacesContext context = FacesContext.getCurrentInstance(); Locale locale = context.getViewRoot().getLocale(); // see...
public class class_name { public static FacesMessage getMessage(String messageId, String... params) { String summary = null; String detail = null; ResourceBundle bundle; String bundleName; FacesContext context = FacesContext.getCurrentInstance(); Locale locale = context.getViewRoot().getLocale(); // see...
public class class_name { public static String getDirectEditPath(CmsObject cms, CmsUserSettings userSettings) { if (userSettings.getStartView().equals(CmsWorkplace.VIEW_DIRECT_EDIT) | userSettings.getStartView().equals(CmsPageEditorConfiguration.APP_ID)) { try { CmsObj...
public class class_name { public static String getDirectEditPath(CmsObject cms, CmsUserSettings userSettings) { if (userSettings.getStartView().equals(CmsWorkplace.VIEW_DIRECT_EDIT) | userSettings.getStartView().equals(CmsPageEditorConfiguration.APP_ID)) { try { CmsObj...
public class class_name { public java.util.List<Reservation> getReservations() { if (reservations == null) { reservations = new com.amazonaws.internal.SdkInternalList<Reservation>(); } return reservations; } }
public class class_name { public java.util.List<Reservation> getReservations() { if (reservations == null) { reservations = new com.amazonaws.internal.SdkInternalList<Reservation>(); // depends on control dependency: [if], data = [none] } return reservations; } }
public class class_name { public <T extends RequestParameter> void addParameters(final List<T> params) { for (RequestParameter rp : params) { String value = rp.getValue(); String name = rp.getName(); if (!parameters.containsKey(name)) { ArrayList<String> ...
public class class_name { public <T extends RequestParameter> void addParameters(final List<T> params) { for (RequestParameter rp : params) { String value = rp.getValue(); String name = rp.getName(); if (!parameters.containsKey(name)) { ArrayList<String> ...
public class class_name { public void setUserProfiles(java.util.Collection<UserProfileSummary> userProfiles) { if (userProfiles == null) { this.userProfiles = null; return; } this.userProfiles = new java.util.ArrayList<UserProfileSummary>(userProfiles); } }
public class class_name { public void setUserProfiles(java.util.Collection<UserProfileSummary> userProfiles) { if (userProfiles == null) { this.userProfiles = null; // depends on control dependency: [if], data = [none] return; // depends on control dependency: [if], data = [none] ...
public class class_name { private static CaseInsensitiveStringMap catalogOptions(String name, SQLConf conf) { Map<String, String> allConfs = mapAsJavaMapConverter(conf.getAllConfs()).asJava(); Pattern prefix = Pattern.compile("^spark\\.sql\\.catalog\\." + name + "\\.(.+)"); HashMap<String, String> options...
public class class_name { private static CaseInsensitiveStringMap catalogOptions(String name, SQLConf conf) { Map<String, String> allConfs = mapAsJavaMapConverter(conf.getAllConfs()).asJava(); Pattern prefix = Pattern.compile("^spark\\.sql\\.catalog\\." + name + "\\.(.+)"); HashMap<String, String> options...
public class class_name { public Object convertToDefaultType(SessionInterface session, Object a) { if (a == null) { return a; } Type otherType; if (a instanceof Number) { if (a instanceof BigInteger) { a = new BigDecimal((BigInteger) a); ...
public class class_name { public Object convertToDefaultType(SessionInterface session, Object a) { if (a == null) { return a; // depends on control dependency: [if], data = [none] } Type otherType; if (a instanceof Number) { if (a instanceof BigInteger) { ...
public class class_name { public Set<Deque<Archive>> inverseDependences() throws IOException { // create a new dependency finder to do the analysis DependencyFinder dependencyFinder = new DependencyFinder(configuration, DEFAULT_FILTER); try { // parse all archives in unnamed module ...
public class class_name { public Set<Deque<Archive>> inverseDependences() throws IOException { // create a new dependency finder to do the analysis DependencyFinder dependencyFinder = new DependencyFinder(configuration, DEFAULT_FILTER); try { // parse all archives in unnamed module ...
public class class_name { private int binarySearch(List<SparseItemset> candidates, SparseItemset scratch, int begin, int end) { --end; while(begin < end) { final int mid = (begin + end) >>> 1; SparseItemset midVal = candidates.get(mid); int cmp = midVal.compareTo(scratch); if(cmp < 0) ...
public class class_name { private int binarySearch(List<SparseItemset> candidates, SparseItemset scratch, int begin, int end) { --end; while(begin < end) { final int mid = (begin + end) >>> 1; SparseItemset midVal = candidates.get(mid); int cmp = midVal.compareTo(scratch); if(cmp < 0) ...