code
stringlengths
130
281k
code_dependency
stringlengths
182
306k
public class class_name { public static String encodeString(final String string) { String encodedString = null; try { encodedString = encodeString(string, "UTF-8"); } catch (UnsupportedEncodingException uue) { // Should never happen, java has to support "UTF-8". } return encodedString; } }
public class class_name { public static String encodeString(final String string) { String encodedString = null; try { encodedString = encodeString(string, "UTF-8"); // depends on control dependency: [try], data = [none] } catch (UnsupportedEncodingException uue) { // Should never happen, java has to suppo...
public class class_name { public void setReservedInstanceValueSet(java.util.Collection<ReservedInstanceReservationValue> reservedInstanceValueSet) { if (reservedInstanceValueSet == null) { this.reservedInstanceValueSet = null; return; } this.reservedInstanceValueSet = n...
public class class_name { public void setReservedInstanceValueSet(java.util.Collection<ReservedInstanceReservationValue> reservedInstanceValueSet) { if (reservedInstanceValueSet == null) { this.reservedInstanceValueSet = null; // depends on control dependency: [if], data = [none] return...
public class class_name { public static DictionaryMaker combineWhenNotInclude(String[] pathArray) { DictionaryMaker dictionaryMaker = new DictionaryMaker(); logger.info("正在处理主词典" + pathArray[0]); dictionaryMaker.addAll(DictionaryMaker.loadAsItemList(pathArray[0])); for (int i = 1; i...
public class class_name { public static DictionaryMaker combineWhenNotInclude(String[] pathArray) { DictionaryMaker dictionaryMaker = new DictionaryMaker(); logger.info("正在处理主词典" + pathArray[0]); dictionaryMaker.addAll(DictionaryMaker.loadAsItemList(pathArray[0])); for (int i = 1; i...
public class class_name { private void addResponseHeaderParameters(InternalRequest request, ResponseHeaderOverrides responseHeaders) { if (responseHeaders != null) { if (responseHeaders.getCacheControl() != null) { request.addParameter(ResponseHeaderOverrides.RESPONSE_HEADER_CACHE_C...
public class class_name { private void addResponseHeaderParameters(InternalRequest request, ResponseHeaderOverrides responseHeaders) { if (responseHeaders != null) { if (responseHeaders.getCacheControl() != null) { request.addParameter(ResponseHeaderOverrides.RESPONSE_HEADER_CACHE_C...
public class class_name { public void set(long index) throws IOException { long pos = index >> 3; try { lock().acquireUpgradableLock(); int value = mFile.read(pos); int newValue; if (value <= 0) { newValue = (0x00000080 >> (index & 7)); ...
public class class_name { public void set(long index) throws IOException { long pos = index >> 3; try { lock().acquireUpgradableLock(); int value = mFile.read(pos); int newValue; if (value <= 0) { newValue = (0x00000080 >> (index & 7)); //...
public class class_name { public void setLowerCaseFirst(boolean lowerfirst) { checkNotFrozen(); if (lowerfirst == isLowerCaseFirst()) { return; } CollationSettings ownedSettings = getOwnedSettings(); ownedSettings.setCaseFirst(lowerfirst ? CollationSettings.CASE_FIRST : 0); setF...
public class class_name { public void setLowerCaseFirst(boolean lowerfirst) { checkNotFrozen(); if (lowerfirst == isLowerCaseFirst()) { return; } // depends on control dependency: [if], data = [none] CollationSettings ownedSettings = getOwnedSettings(); ownedSettings.setCaseFirst(lowerf...
public class class_name { protected void prepareDialogPage(DialogPage page) { page.addPropertyChangeListener(childChangeHandler); JComponent c = page.getControl(); GuiStandardUtils.attachDialogBorder(c); Dimension size = c.getPreferredSize(); if (size.width > largestPageWidth) { largestPageWidth = size.wi...
public class class_name { protected void prepareDialogPage(DialogPage page) { page.addPropertyChangeListener(childChangeHandler); JComponent c = page.getControl(); GuiStandardUtils.attachDialogBorder(c); Dimension size = c.getPreferredSize(); if (size.width > largestPageWidth) { largestPageWidth = size.wi...
public class class_name { protected void transition(Member.Type type) { switch (type) { case ACTIVE: if (!(state instanceof ActiveState)) { transition(CopycatServer.State.FOLLOWER); } break; case PASSIVE: if (this.state.type() != CopycatServer.State.PASSIVE) { ...
public class class_name { protected void transition(Member.Type type) { switch (type) { case ACTIVE: if (!(state instanceof ActiveState)) { transition(CopycatServer.State.FOLLOWER); // depends on control dependency: [if], data = [none] } break; case PASSIVE: if...
public class class_name { public Manifest findByPath(String path) { for (Manifest manifest : this) { String mpath = ((ManifestEx) manifest).path; if (path.startsWith(mpath)) { return manifest; } } return null; } }
public class class_name { public Manifest findByPath(String path) { for (Manifest manifest : this) { String mpath = ((ManifestEx) manifest).path; if (path.startsWith(mpath)) { return manifest; // depends on control dependency: [if], data = [none] } }...
public class class_name { @Override public Type[] getAudioFileTypes(AudioInputStream stream) { AudioFileFormat.Type[] filetypes = getAudioFileTypes(); // make sure we can write this stream AudioFormat format = stream.getFormat(); if(AudioStreamEncoder.getDataFormatSupport(format) == AudioStreamEncod...
public class class_name { @Override public Type[] getAudioFileTypes(AudioInputStream stream) { AudioFileFormat.Type[] filetypes = getAudioFileTypes(); // make sure we can write this stream AudioFormat format = stream.getFormat(); if(AudioStreamEncoder.getDataFormatSupport(format) == AudioStreamEncod...
public class class_name { public StatsImpl getStats(int[] dataIds, boolean recursive) { if (dataIds == null) return getStats(recursive); if (instance == null) return null; SpdData[] dataList = instance.listData(dataIds); ModuleItem[] items = children(); ...
public class class_name { public StatsImpl getStats(int[] dataIds, boolean recursive) { if (dataIds == null) return getStats(recursive); if (instance == null) return null; SpdData[] dataList = instance.listData(dataIds); ModuleItem[] items = children(); ...
public class class_name { public static MethodNode addDelegateStaticMethod(Expression delegate, ClassNode classNode, MethodNode delegateMethod, AnnotationNode markerAnnotation, Map<String, ClassNode> genericsPlaceholders, boolean noNullCheck) { Parameter[] parameterTypes = delegateMethod.getParameters(); ...
public class class_name { public static MethodNode addDelegateStaticMethod(Expression delegate, ClassNode classNode, MethodNode delegateMethod, AnnotationNode markerAnnotation, Map<String, ClassNode> genericsPlaceholders, boolean noNullCheck) { Parameter[] parameterTypes = delegateMethod.getParameters(); ...
public class class_name { public static String maxLengthString(String... strings) { String res = ""; for (String string : strings) { if (string.length() > res.length()) { res = string; } } return res; } }
public class class_name { public static String maxLengthString(String... strings) { String res = ""; for (String string : strings) { if (string.length() > res.length()) { res = string; // depends on control dependency: [if], data = [none] } } retu...
public class class_name { protected boolean needsToBeRefreshed(DefaultFacelet facelet) { // if set to 0, constantly reload-- nocache if (_refreshPeriod == NO_CACHE_DELAY) { return true; } // if set to -1, never reload if (_refreshPeriod == INFINITE_DELAY...
public class class_name { protected boolean needsToBeRefreshed(DefaultFacelet facelet) { // if set to 0, constantly reload-- nocache if (_refreshPeriod == NO_CACHE_DELAY) { return true; // depends on control dependency: [if], data = [none] } // if set to -1, nev...
public class class_name { public static AccessorProvider getAllAccessorsProvider( final Elements elements, final Types types, final TypeElement originatingType) { class CollectedOrdering extends Ordering<Element> { class Intratype { final String inType; final Ordering<Strin...
public class class_name { public static AccessorProvider getAllAccessorsProvider( final Elements elements, final Types types, final TypeElement originatingType) { class CollectedOrdering extends Ordering<Element> { class Intratype { final String inType; final Ordering<Strin...
public class class_name { protected static JMenuItem createItem (String name, Integer mnem, KeyStroke accel) { JMenuItem item = new JMenuItem(name); if (mnem != null) { item.setMnemonic(mnem.intValue()); } if (accel != null) { item.setAccelerator(accel); ...
public class class_name { protected static JMenuItem createItem (String name, Integer mnem, KeyStroke accel) { JMenuItem item = new JMenuItem(name); if (mnem != null) { item.setMnemonic(mnem.intValue()); // depends on control dependency: [if], data = [(mnem] } if (accel ...
public class class_name { public void endElement(String namespaceURI, String localName, String name) throws org.xml.sax.SAXException { if (m_inEntityRef) return; // namespaces declared at the current depth are no longer valid // so get rid of them m_prefixMa...
public class class_name { public void endElement(String namespaceURI, String localName, String name) throws org.xml.sax.SAXException { if (m_inEntityRef) return; // namespaces declared at the current depth are no longer valid // so get rid of them m_prefixMa...
public class class_name { @Override public Double getDoubleOrDie(String key) { Double value = getDouble(key); if (value == null) { throw new IllegalArgumentException(String.format(ERROR_KEYNOTFOUND, key)); } else { return value; } } }
public class class_name { @Override public Double getDoubleOrDie(String key) { Double value = getDouble(key); if (value == null) { throw new IllegalArgumentException(String.format(ERROR_KEYNOTFOUND, key)); } else { return value; // depends on control dependency: [if]...
public class class_name { protected void processOneMetric(List<String> resultStrings, Server server, Result result, Object value, String addTagName, String addTagValue) { String metricName = this.metricNameStrategy.formatName(result); // // Skip any non-numeric values since OpenTSDB only supports numer...
public class class_name { protected void processOneMetric(List<String> resultStrings, Server server, Result result, Object value, String addTagName, String addTagValue) { String metricName = this.metricNameStrategy.formatName(result); // // Skip any non-numeric values since OpenTSDB only supports numer...
public class class_name { public void setPipelineExecutionSummaries(java.util.Collection<PipelineExecutionSummary> pipelineExecutionSummaries) { if (pipelineExecutionSummaries == null) { this.pipelineExecutionSummaries = null; return; } this.pipelineExecutionSummaries =...
public class class_name { public void setPipelineExecutionSummaries(java.util.Collection<PipelineExecutionSummary> pipelineExecutionSummaries) { if (pipelineExecutionSummaries == null) { this.pipelineExecutionSummaries = null; // depends on control dependency: [if], data = [none] return...
public class class_name { public void visit(boolean depthFirst, Consumer<? super XElement> action) { Deque<XElement> queue = new LinkedList<>(); queue.add(this); while (!queue.isEmpty()) { XElement x = queue.removeFirst(); action.accept(x); if (depthFirst) { ...
public class class_name { public void visit(boolean depthFirst, Consumer<? super XElement> action) { Deque<XElement> queue = new LinkedList<>(); queue.add(this); while (!queue.isEmpty()) { XElement x = queue.removeFirst(); action.accept(x); // depends on control dependen...
public class class_name { public static String implode(String[] inputArr, String delimiter) { String implodedStr = ""; implodedStr += inputArr[0]; for (int i = 1; i < inputArr.length; i++) { implodedStr += delimiter; implodedStr += inputArr[i]; } return ...
public class class_name { public static String implode(String[] inputArr, String delimiter) { String implodedStr = ""; implodedStr += inputArr[0]; for (int i = 1; i < inputArr.length; i++) { implodedStr += delimiter; // depends on control dependency: [for], data = [none] ...
public class class_name { public final void setTongue(final String tongue) { if (tongue != null && tongue.length() > 0) { if (tongue.length() > 2) { this.tongue = tongue.substring(0, 2); } else { this.tongue = tongue; } } } }
public class class_name { public final void setTongue(final String tongue) { if (tongue != null && tongue.length() > 0) { if (tongue.length() > 2) { this.tongue = tongue.substring(0, 2); // depends on control dependency: [if], data = [2)] } else { this.tongue = tongue; // depends on control dependency:...
public class class_name { public synchronized void stop() { if (!running) { return; } LOGGER.info("stopping raft agent"); raftAlgorithm.stop(); raftNetworkClient.stop(); serverBossPool.shutdown(); clientBossPool.shutdown(); workerPool.shutd...
public class class_name { public synchronized void stop() { if (!running) { return; // depends on control dependency: [if], data = [none] } LOGGER.info("stopping raft agent"); raftAlgorithm.stop(); raftNetworkClient.stop(); serverBossPool.shutdown(); ...
public class class_name { protected boolean addWork(final ForkJoinContext<?> context) { requireNotStopped(this); final boolean result = workQueue.addWaitingWork(context); if (result) { addWorkerIfNeeded(); } return result; } }
public class class_name { protected boolean addWork(final ForkJoinContext<?> context) { requireNotStopped(this); final boolean result = workQueue.addWaitingWork(context); if (result) { addWorkerIfNeeded(); // depends on control dependency: [if], data = [none] } return result; } }
public class class_name { private Map<String, List<DBObject>> onPersist(Map<String, List<DBObject>> collections, Object entity, Object id, EntityMetadata metadata, List<RelationHolder> relationHolders, boolean isUpdate) { persistenceUnit = metadata.getPersistenceUnit(); Map<String, DBOb...
public class class_name { private Map<String, List<DBObject>> onPersist(Map<String, List<DBObject>> collections, Object entity, Object id, EntityMetadata metadata, List<RelationHolder> relationHolders, boolean isUpdate) { persistenceUnit = metadata.getPersistenceUnit(); Map<String, DBOb...
public class class_name { @Override public AllocationPoint allocateMemory(DataBuffer buffer, AllocationShape requiredMemory, AllocationStatus location, boolean initialize) { AllocationPoint point = new AllocationPoint(); useTracker.set(System.currentTimeMillis()); // w...
public class class_name { @Override public AllocationPoint allocateMemory(DataBuffer buffer, AllocationShape requiredMemory, AllocationStatus location, boolean initialize) { AllocationPoint point = new AllocationPoint(); useTracker.set(System.currentTimeMillis()); // w...
public class class_name { public void marshall(ModifyHsmRequest modifyHsmRequest, ProtocolMarshaller protocolMarshaller) { if (modifyHsmRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(modi...
public class class_name { public void marshall(ModifyHsmRequest modifyHsmRequest, ProtocolMarshaller protocolMarshaller) { if (modifyHsmRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(modi...
public class class_name { public static double[] createBoundingBox(double[] coordinates) { int maxActualCoords = Math.min(coordinates.length,3);// ignore potential M values, so 4 dimension (X Y Z M) becomes X Y Z double[] result = new double[maxActualCoords * 2]; for (int i = 0; i < maxActualCo...
public class class_name { public static double[] createBoundingBox(double[] coordinates) { int maxActualCoords = Math.min(coordinates.length,3);// ignore potential M values, so 4 dimension (X Y Z M) becomes X Y Z double[] result = new double[maxActualCoords * 2]; for (int i = 0; i < maxActualCo...
public class class_name { @Override public PropertyResolver build() { if (resolver != null) { return resolver; } Converter converter = buildConverter(); List<PropertyResolver> delegates = buildProperties(converter); return new FirstExistingPropertiesResolver(delegates); } }
public class class_name { @Override public PropertyResolver build() { if (resolver != null) { return resolver; // depends on control dependency: [if], data = [none] } Converter converter = buildConverter(); List<PropertyResolver> delegates = buildProperties(converter); return new FirstExistingPropertiesR...
public class class_name { public Observable<ServiceResponse<Page<AppServiceCertificateResourceInner>>> listCertificatesNextSinglePageAsync(final String nextPageLink) { if (nextPageLink == null) { throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); }...
public class class_name { public Observable<ServiceResponse<Page<AppServiceCertificateResourceInner>>> listCertificatesNextSinglePageAsync(final String nextPageLink) { if (nextPageLink == null) { throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); }...
public class class_name { public static String parseErrorMessage(String errorMessage) { StringBuilder response = new StringBuilder(); Pattern pattern = Pattern.compile(".*?/series/(\\d*?)/default/(\\d*?)/(\\d*?)/.*?"); Matcher matcher = pattern.matcher(errorMessage); // See if the err...
public class class_name { public static String parseErrorMessage(String errorMessage) { StringBuilder response = new StringBuilder(); Pattern pattern = Pattern.compile(".*?/series/(\\d*?)/default/(\\d*?)/(\\d*?)/.*?"); Matcher matcher = pattern.matcher(errorMessage); // See if the err...
public class class_name { public T extractFromPayload(String path, String variable) { if (JsonPathMessageValidationContext.isJsonPathExpression(path)) { getJsonPathVariableExtractor().getJsonPathExpressions().put(path, variable); } else { getXpathVariableExtractor().getXpathExpr...
public class class_name { public T extractFromPayload(String path, String variable) { if (JsonPathMessageValidationContext.isJsonPathExpression(path)) { getJsonPathVariableExtractor().getJsonPathExpressions().put(path, variable); // depends on control dependency: [if], data = [none] } else ...
public class class_name { public void addText(Phrase phrase) { if (phrase == null || composite) return; addWaitingPhrase(); if (bidiLine == null) { waitPhrase = phrase; return; } for (Iterator j = phrase.getChunks().iterator(); j.hasNext();) {...
public class class_name { public void addText(Phrase phrase) { if (phrase == null || composite) return; addWaitingPhrase(); if (bidiLine == null) { waitPhrase = phrase; // depends on control dependency: [if], data = [none] return; // depends on control depend...
public class class_name { public synchronized void remove(Runnable runnable) { Iterator<ScheduledRunnable> iterator = runnables.iterator(); while (iterator.hasNext()) { if (iterator.next().runnable == runnable) { iterator.remove(); } } } }
public class class_name { public synchronized void remove(Runnable runnable) { Iterator<ScheduledRunnable> iterator = runnables.iterator(); while (iterator.hasNext()) { if (iterator.next().runnable == runnable) { iterator.remove(); // depends on control dependency: [if], data = [none] } ...
public class class_name { public static <E> Comparator<E> toComparator(final Counter<E> counter, final boolean ascending, final boolean useMagnitude) { return new Comparator<E>() { public int compare(E o1, E o2) { if (ascending) { if (useMagnitude) { return Double.compare(M...
public class class_name { public static <E> Comparator<E> toComparator(final Counter<E> counter, final boolean ascending, final boolean useMagnitude) { return new Comparator<E>() { public int compare(E o1, E o2) { if (ascending) { if (useMagnitude) { return Double.compare(M...
public class class_name { private List<CmsRole> getRolesList(VerticalLayout parent, boolean importCase) { List<CmsRole> res = new ArrayList<CmsRole>(); CmsEditableGroup editableGroup = importCase ? m_importRolesGroup : m_exportRolesGroup; for (I_CmsEditableGroupRow row : editableGroup.getRows...
public class class_name { private List<CmsRole> getRolesList(VerticalLayout parent, boolean importCase) { List<CmsRole> res = new ArrayList<CmsRole>(); CmsEditableGroup editableGroup = importCase ? m_importRolesGroup : m_exportRolesGroup; for (I_CmsEditableGroupRow row : editableGroup.getRows...
public class class_name { private String resolveName() { if (this.readMethod != null) { int index = this.readMethod.getName().indexOf("get"); if (index != -1) { index += 3; } else { index = this.readMethod.getName().indexOf("is"); if (index == -1) { throw new IllegalArgumentException("No...
public class class_name { private String resolveName() { if (this.readMethod != null) { int index = this.readMethod.getName().indexOf("get"); if (index != -1) { index += 3; // depends on control dependency: [if], data = [none] } else { index = this.readMethod.getName().indexOf("is"); // depends o...
public class class_name { public double render(Graphics2D g) { Color previousColor = g.getColor(); setColor(g, ScoreElements.TABLATURE_LINES); number.setText("MM"); double mWidth = number.getWidth(); double numberOfStrings = m_tablature.getNumberOfString(); for (int i = 1; i <= numberOfStrings; i++) ...
public class class_name { public double render(Graphics2D g) { Color previousColor = g.getColor(); setColor(g, ScoreElements.TABLATURE_LINES); number.setText("MM"); double mWidth = number.getWidth(); double numberOfStrings = m_tablature.getNumberOfString(); for (int i = 1; i <= numberOfStrings; i++) ...
public class class_name { public static String getScheme(String uriString) { try { return (new URI(uriString)).getScheme(); } catch (URISyntaxException e) { try { return (new NetworkInterfaceURI(uriString)).getScheme(); } catch (Il...
public class class_name { public static String getScheme(String uriString) { try { return (new URI(uriString)).getScheme(); // depends on control dependency: [try], data = [none] } catch (URISyntaxException e) { try { return (new NetworkInterfaceURI(uriSt...
public class class_name { private boolean detectLogFromBugsnag(Throwable throwable) { // Check all places that LOGGER is called with an exception in the Bugsnag library for (StackTraceElement element : throwable.getStackTrace()) { for (String excludedClass : EXCLUDED_CLASSES) { ...
public class class_name { private boolean detectLogFromBugsnag(Throwable throwable) { // Check all places that LOGGER is called with an exception in the Bugsnag library for (StackTraceElement element : throwable.getStackTrace()) { for (String excludedClass : EXCLUDED_CLASSES) { ...
public class class_name { protected boolean seekToRow(long currentRow) throws IOException { boolean seeked = false; // If this holds it means we checked if the row is null, and it was not, // and when we skipRows we don't want to skip this row. if (currentRow != previousPresentRow) { nextIsNull(...
public class class_name { protected boolean seekToRow(long currentRow) throws IOException { boolean seeked = false; // If this holds it means we checked if the row is null, and it was not, // and when we skipRows we don't want to skip this row. if (currentRow != previousPresentRow) { nextIsNull(...
public class class_name { public int setString(String strValue, boolean bDisplayOption, int iMoveMode) { NumberField numberField = (NumberField)this.getField(); if ((strValue == null) || (strValue.length() == 0)) return super.setString(strValue, bDisplayOption, iMoveMode); // Don't tri...
public class class_name { public int setString(String strValue, boolean bDisplayOption, int iMoveMode) { NumberField numberField = (NumberField)this.getField(); if ((strValue == null) || (strValue.length() == 0)) return super.setString(strValue, bDisplayOption, iMoveMode); // Don't tri...
public class class_name { @Override public void dtdNotationDecl(String name, String publicId, String systemId, URL baseURL) throws XMLStreamException { if (mDTDHandler != null) { /* 24-Nov-2006, TSa: Note: SAX expects system identifiers to * be fully resolved when repo...
public class class_name { @Override public void dtdNotationDecl(String name, String publicId, String systemId, URL baseURL) throws XMLStreamException { if (mDTDHandler != null) { /* 24-Nov-2006, TSa: Note: SAX expects system identifiers to * be fully resolved when repo...
public class class_name { @Nullable public static Bitmap createDrawableBitmap(@NonNull Drawable drawable) { int width = drawable.getIntrinsicWidth(); int height = drawable.getIntrinsicHeight(); if (width <= 0 || height <= 0) { return null; } float scale = Math.mi...
public class class_name { @Nullable public static Bitmap createDrawableBitmap(@NonNull Drawable drawable) { int width = drawable.getIntrinsicWidth(); int height = drawable.getIntrinsicHeight(); if (width <= 0 || height <= 0) { return null; // depends on control dependency: [if],...
public class class_name { @Override public final void beforeRun() { try { onMigrationStart(); verifyNodeStarted(); verifyMaster(); verifyMigrationParticipant(); verifyClusterState(); applyCompletedMigrations(); verifyParti...
public class class_name { @Override public final void beforeRun() { try { onMigrationStart(); // depends on control dependency: [try], data = [none] verifyNodeStarted(); // depends on control dependency: [try], data = [none] verifyMaster(); // depends on control depende...
public class class_name { public static int[][] toInt(double[][] array) { int[][] n = new int[array.length][array[0].length]; for (int i = 0; i < array.length; i++) { for (int j = 0; j < array[0].length; j++) { n[i][j] = (int) array[i][j]; } } ret...
public class class_name { public static int[][] toInt(double[][] array) { int[][] n = new int[array.length][array[0].length]; for (int i = 0; i < array.length; i++) { for (int j = 0; j < array[0].length; j++) { n[i][j] = (int) array[i][j]; // depends on control dependency: [...
public class class_name { public static void writeCSVColumns(XYSeries series, String path2Dir) { File newFile = new File(path2Dir + series.getName() + ".csv"); Writer out = null; try { out = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(newFile), "UTF8")); double[] xData = se...
public class class_name { public static void writeCSVColumns(XYSeries series, String path2Dir) { File newFile = new File(path2Dir + series.getName() + ".csv"); Writer out = null; try { out = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(newFile), "UTF8")); double[] xData = se...
public class class_name { public static FlinkJoinType getFlinkJoinType(Join join) { if (join instanceof SemiJoin) { // TODO supports ANTI return FlinkJoinType.SEMI; } else { return toFlinkJoinType(join.getJoinType()); } } }
public class class_name { public static FlinkJoinType getFlinkJoinType(Join join) { if (join instanceof SemiJoin) { // TODO supports ANTI return FlinkJoinType.SEMI; // depends on control dependency: [if], data = [none] } else { return toFlinkJoinType(join.getJoinType()); // depends on control dependency: ...
public class class_name { public static void uploadFileItems(final List<FileItem> fileItems, final Map<String, String[]> parameters, final Map<String, FileItem[]> files) { for (FileItem item : fileItems) { String name = item.getFieldName(); boolean formField = item.isFormField(); if (LOG.isDebugEnabled...
public class class_name { public static void uploadFileItems(final List<FileItem> fileItems, final Map<String, String[]> parameters, final Map<String, FileItem[]> files) { for (FileItem item : fileItems) { String name = item.getFieldName(); boolean formField = item.isFormField(); if (LOG.isDebugEnabled...
public class class_name { public void marshall(CancelArchivalRequest cancelArchivalRequest, ProtocolMarshaller protocolMarshaller) { if (cancelArchivalRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshalle...
public class class_name { public void marshall(CancelArchivalRequest cancelArchivalRequest, ProtocolMarshaller protocolMarshaller) { if (cancelArchivalRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshalle...
public class class_name { protected String resolveTable(final String tableRef, final DbEntityDescriptor ded) { String tableAlias = templateData.getTableAlias(tableRef); if (tableAlias != null) { return tableAlias; } return ded.getTableNameForQuery(); } }
public class class_name { protected String resolveTable(final String tableRef, final DbEntityDescriptor ded) { String tableAlias = templateData.getTableAlias(tableRef); if (tableAlias != null) { return tableAlias; // depends on control dependency: [if], data = [none] } return ded.getTableNameForQuery(); } ...
public class class_name { public static void deprecated(Class<?> clazz, String methodOrPropName, String version) { if (LOG_DEPRECATED) { deprecated("Property or method [" + methodOrPropName + "] of class [" + clazz.getName() + "] is deprecated in [" + version + ...
public class class_name { public static void deprecated(Class<?> clazz, String methodOrPropName, String version) { if (LOG_DEPRECATED) { deprecated("Property or method [" + methodOrPropName + "] of class [" + clazz.getName() + "] is deprecated in [" + version + ...
public class class_name { int[] impliedElements(int anc, int desc) { // <style> and <script> are allowed anywhere. if (desc == SCRIPT_TAG || desc == STYLE_TAG) { return ZERO_INTS; } // It's dangerous to allow free <li> tags because of the way an <li> // implies a </li> if there is an <li> on...
public class class_name { int[] impliedElements(int anc, int desc) { // <style> and <script> are allowed anywhere. if (desc == SCRIPT_TAG || desc == STYLE_TAG) { return ZERO_INTS; // depends on control dependency: [if], data = [none] } // It's dangerous to allow free <li> tags because of the way...
public class class_name { private static void receiveParameterNames(final KlassInfo declaringklass) { if (declaringklass.getType().getClassLoader() == null) { // We can not find parameter name for class which is in JDK return; } ClassReader cr = null; try { ...
public class class_name { private static void receiveParameterNames(final KlassInfo declaringklass) { if (declaringklass.getType().getClassLoader() == null) { // We can not find parameter name for class which is in JDK return; // depends on control dependency: [if], data = [none] ...
public class class_name { public static <T extends ImageGray<T>, G extends GradientValue> SparseImageGradient<T,G> createPrewitt( Class<T> imageType , ImageBorder<T> border ) { if( imageType == GrayF32.class) { return (SparseImageGradient)new GradientSparsePrewitt_F32((ImageBorder_F32)border); } else if( imag...
public class class_name { public static <T extends ImageGray<T>, G extends GradientValue> SparseImageGradient<T,G> createPrewitt( Class<T> imageType , ImageBorder<T> border ) { if( imageType == GrayF32.class) { return (SparseImageGradient)new GradientSparsePrewitt_F32((ImageBorder_F32)border); // depends on con...
public class class_name { @Nonnull @ReturnsMutableCopy public ICommonsList <IBANElementValue> parseToElementValues (@Nonnull final String sIBAN) { ValueEnforcer.notNull (sIBAN, "IBANString"); final String sRealIBAN = IBANManager.unifyIBAN (sIBAN); if (sRealIBAN.length () != m_nExpectedLength) ...
public class class_name { @Nonnull @ReturnsMutableCopy public ICommonsList <IBANElementValue> parseToElementValues (@Nonnull final String sIBAN) { ValueEnforcer.notNull (sIBAN, "IBANString"); final String sRealIBAN = IBANManager.unifyIBAN (sIBAN); if (sRealIBAN.length () != m_nExpectedLength) ...
public class class_name { protected String parseOptionalStringValue(final String path) { final I_CmsXmlContentValue value = m_xml.getValue(path, m_locale); if (value == null) { return null; } else { return value.getStringValue(null); } } }
public class class_name { protected String parseOptionalStringValue(final String path) { final I_CmsXmlContentValue value = m_xml.getValue(path, m_locale); if (value == null) { return null; // depends on control dependency: [if], data = [none] } else { return value.getS...
public class class_name { public static int compare(Date startDate, Date endDate, long targetDate) { int result = 0; if (targetDate < startDate.getTime()) { result = -1; } else { if (targetDate > endDate.getTime()) { result = 1; } ...
public class class_name { public static int compare(Date startDate, Date endDate, long targetDate) { int result = 0; if (targetDate < startDate.getTime()) { result = -1; // depends on control dependency: [if], data = [none] } else { if (targetDate > endDate.getT...
public class class_name { protected boolean isSOFnMarker(int marker) { if (marker <= 0xC3 && marker >= 0xC0) { return true; } if (marker <= 0xCB && marker >= 0xC5) { return true; } if (marker <= 0xCF && marker >= 0xCD) { return tru...
public class class_name { protected boolean isSOFnMarker(int marker) { if (marker <= 0xC3 && marker >= 0xC0) { return true; // depends on control dependency: [if], data = [none] } if (marker <= 0xCB && marker >= 0xC5) { return true; // depends on control dependen...
public class class_name { public final <T extends GraphObject> T getGraphObjectAs(Class<T> graphObjectClass) { if (graphObject == null) { return null; } if (graphObjectClass == null) { throw new NullPointerException("Must pass in a valid interface that extends GraphObjec...
public class class_name { public final <T extends GraphObject> T getGraphObjectAs(Class<T> graphObjectClass) { if (graphObject == null) { return null; // depends on control dependency: [if], data = [none] } if (graphObjectClass == null) { throw new NullPointerException("...
public class class_name { public Content getPackageHeader(String heading) { String pkgName = packageDoc.name(); Content bodyTree = getBody(true, getWindowTitle(pkgName)); addTop(bodyTree); addNavLinks(true, bodyTree); HtmlTree div = new HtmlTree(HtmlTag.DIV); div.addStyl...
public class class_name { public Content getPackageHeader(String heading) { String pkgName = packageDoc.name(); Content bodyTree = getBody(true, getWindowTitle(pkgName)); addTop(bodyTree); addNavLinks(true, bodyTree); HtmlTree div = new HtmlTree(HtmlTag.DIV); div.addStyl...
public class class_name { public void setTargetGroupARNs(java.util.Collection<String> targetGroupARNs) { if (targetGroupARNs == null) { this.targetGroupARNs = null; return; } this.targetGroupARNs = new com.amazonaws.internal.SdkInternalList<String>(targetGroupARNs); ...
public class class_name { public void setTargetGroupARNs(java.util.Collection<String> targetGroupARNs) { if (targetGroupARNs == null) { this.targetGroupARNs = null; // depends on control dependency: [if], data = [none] return; // depends on control dependency: [if], data = [none] ...
public class class_name { public static void addCronJobForInterval(ExecutableJobQueue executableJobQueue, CronJobQueue cronJobQueue, int scheduleIntervalMinute, final JobPo finalJobPo,...
public class class_name { public static void addCronJobForInterval(ExecutableJobQueue executableJobQueue, CronJobQueue cronJobQueue, int scheduleIntervalMinute, final JobPo finalJobPo,...
public class class_name { public FacesConfigApplicationType<T> navigationHandler(String ... values) { if (values != null) { for(String name: values) { childNode.createChild("navigation-handler").text(name); } } return this; } }
public class class_name { public FacesConfigApplicationType<T> navigationHandler(String ... values) { if (values != null) { for(String name: values) { childNode.createChild("navigation-handler").text(name); // depends on control dependency: [for], data = [name] } ...
public class class_name { public long getMinSharePreemptionTimeout(String pool) { if (minSharePreemptionTimeouts.containsKey(pool)) { return minSharePreemptionTimeouts.get(pool); } else { return defaultMinSharePreemptionTimeout; } } }
public class class_name { public long getMinSharePreemptionTimeout(String pool) { if (minSharePreemptionTimeouts.containsKey(pool)) { return minSharePreemptionTimeouts.get(pool); // depends on control dependency: [if], data = [none] } else { return defaultMinSharePreemptionTimeout; // depends on co...
public class class_name { public static Duration getDuration(Config config, String path) { try { return config.getDuration(path); } catch (ConfigException.Missing | ConfigException.WrongType | ConfigException.BadValue e) { if (e instanceof ConfigException.WrongType || e instance...
public class class_name { public static Duration getDuration(Config config, String path) { try { return config.getDuration(path); // depends on control dependency: [try], data = [none] } catch (ConfigException.Missing | ConfigException.WrongType | ConfigException.BadValue e) { i...
public class class_name { public static IAtomContainerSet getAllReactants(IReaction reaction) { IAtomContainerSet moleculeSet = reaction.getBuilder().newInstance(IAtomContainerSet.class); IAtomContainerSet reactants = reaction.getReactants(); for (int i = 0; i < reactants.getAtomContainerCount(...
public class class_name { public static IAtomContainerSet getAllReactants(IReaction reaction) { IAtomContainerSet moleculeSet = reaction.getBuilder().newInstance(IAtomContainerSet.class); IAtomContainerSet reactants = reaction.getReactants(); for (int i = 0; i < reactants.getAtomContainerCount(...
public class class_name { public void updateGroupPermission(int iGroupID) { if (m_recUserPermission == null) m_recUserPermission = new UserPermission(this.getOwner().findRecordOwner()); Record m_recUserGroup = ((ReferenceField)m_recUserPermission.getField(UserPermission.USER_GROUP_ID))....
public class class_name { public void updateGroupPermission(int iGroupID) { if (m_recUserPermission == null) m_recUserPermission = new UserPermission(this.getOwner().findRecordOwner()); Record m_recUserGroup = ((ReferenceField)m_recUserPermission.getField(UserPermission.USER_GROUP_ID))....
public class class_name { @Pure public static int getSelectionColor() { final Preferences prefs = Preferences.userNodeForPackage(BusLayerConstants.class); if (prefs != null) { final String str = prefs.get("SELECTION_COLOR", null); //$NON-NLS-1$ if (str != null) { try { return Integer.valueOf(str); ...
public class class_name { @Pure public static int getSelectionColor() { final Preferences prefs = Preferences.userNodeForPackage(BusLayerConstants.class); if (prefs != null) { final String str = prefs.get("SELECTION_COLOR", null); //$NON-NLS-1$ if (str != null) { try { return Integer.valueOf(str); ...
public class class_name { private static String extractPassword(String password, ClientAuthScheme scheme) { MessageDigest md = null; try { md = MessageDigest.getInstance(ClientAuthScheme.getDigestScheme(scheme)); } catch (final NoSuchAlgorithmException e) { hostLog.l7dlo...
public class class_name { private static String extractPassword(String password, ClientAuthScheme scheme) { MessageDigest md = null; try { md = MessageDigest.getInstance(ClientAuthScheme.getDigestScheme(scheme)); // depends on control dependency: [try], data = [none] } catch (final ...
public class class_name { public DescribeParametersRequest withFilters(ParametersFilter... filters) { if (this.filters == null) { setFilters(new com.amazonaws.internal.SdkInternalList<ParametersFilter>(filters.length)); } for (ParametersFilter ele : filters) { this.filte...
public class class_name { public DescribeParametersRequest withFilters(ParametersFilter... filters) { if (this.filters == null) { setFilters(new com.amazonaws.internal.SdkInternalList<ParametersFilter>(filters.length)); // depends on control dependency: [if], data = [none] } for (Pa...
public class class_name { public synchronized void addSingletonInitialization(EJSHome home) { if (ivStopping) { throw new EJBStoppedException(home.getJ2EEName().toString()); } if (ivSingletonInitializations == null) { ivSingletonInitializations = new LinkedHashSet<EJSHo...
public class class_name { public synchronized void addSingletonInitialization(EJSHome home) { if (ivStopping) { throw new EJBStoppedException(home.getJ2EEName().toString()); } if (ivSingletonInitializations == null) { ivSingletonInitializations = new LinkedHashSet<EJSHo...
public class class_name { public InetAddress getRemoteAddress() { final Channel channel; try { channel = strategy.getChannel(); } catch (IOException e) { return null; } final Connection connection = channel.getConnection(); final InetSocketAddress...
public class class_name { public InetAddress getRemoteAddress() { final Channel channel; try { channel = strategy.getChannel(); // depends on control dependency: [try], data = [none] } catch (IOException e) { return null; } // depends on control dependency: [catc...
public class class_name { public void setExportTaskIds(java.util.Collection<String> exportTaskIds) { if (exportTaskIds == null) { this.exportTaskIds = null; return; } this.exportTaskIds = new com.amazonaws.internal.SdkInternalList<String>(exportTaskIds); } }
public class class_name { public void setExportTaskIds(java.util.Collection<String> exportTaskIds) { if (exportTaskIds == null) { this.exportTaskIds = null; // depends on control dependency: [if], data = [none] return; // depends on control dependency: [if], data = [none] } ...
public class class_name { private Map<Integer, Object> getFilter(List<PivotField> fields, List<Object> values) { // long start = System.currentTimeMillis(); Map<Integer, Object> filter = new HashMap<Integer, Object>(); for (int i = 0; i < values.size(); i++) { int fieldIndex = fields.get(i).getIndex(); // S...
public class class_name { private Map<Integer, Object> getFilter(List<PivotField> fields, List<Object> values) { // long start = System.currentTimeMillis(); Map<Integer, Object> filter = new HashMap<Integer, Object>(); for (int i = 0; i < values.size(); i++) { int fieldIndex = fields.get(i).getIndex(); // S...
public class class_name { @Override public DateCalculator<LocalDate> moveByDays(final int days) { setCurrentIncrement(days); setCurrentBusinessDate(getCurrentBusinessDate().plusDays(days)); if (getHolidayHandler() != null) { setCurrentBusinessDate(getHolidayHandler().mo...
public class class_name { @Override public DateCalculator<LocalDate> moveByDays(final int days) { setCurrentIncrement(days); setCurrentBusinessDate(getCurrentBusinessDate().plusDays(days)); if (getHolidayHandler() != null) { setCurrentBusinessDate(getHolidayHandler().mo...
public class class_name { public void handleReceiverError() { try { if (connected) { close(true); } } catch (WebSocketException wse) { if (Log.isLoggable(TAG, DEBUG)) Log.d(TAG, "Exception closing web socket", wse); } } }
public class class_name { public void handleReceiverError() { try { if (connected) { close(true); // depends on control dependency: [if], data = [none] } } catch (WebSocketException wse) { if (Log.isLoggable(TAG, DEBUG)) Log.d(TAG, "Exception closing web socket", wse); } //...
public class class_name { @Override public void destroyProxy(ProxyDestroyParams params) { if (params.getProxyFile() == null) { params.setProxyFile(VOMSProxyPathBuilder.buildProxyPath()); } File file = new File(params.getProxyFile()); if (!file.exists()) { listener.notifyProxyNotFound...
public class class_name { @Override public void destroyProxy(ProxyDestroyParams params) { if (params.getProxyFile() == null) { params.setProxyFile(VOMSProxyPathBuilder.buildProxyPath()); // depends on control dependency: [if], data = [none] } File file = new File(params.getProxyFile()); if ...
public class class_name { public static String getMethodDescriptor(final Method m) { Class<?>[] parameters = m.getParameterTypes(); StringBuilder sb = new StringBuilder(); sb.append('('); for (int i = 0; i < parameters.length; ++i) { getDescriptor(sb, parameters[i]); } ...
public class class_name { public static String getMethodDescriptor(final Method m) { Class<?>[] parameters = m.getParameterTypes(); StringBuilder sb = new StringBuilder(); sb.append('('); for (int i = 0; i < parameters.length; ++i) { getDescriptor(sb, parameters[i]); // depends on...
public class class_name { @Override public <K, V> MapAttribute<X, K, V> getDeclaredMap(String paramName, Class<K> keyClazz, Class<V> valueClazz) { PluralAttribute<X, ?, ?> declaredAttrib = getDeclaredPluralAttribute(paramName); if (onCheckMapAttribute(declaredAttrib, valueClazz)) { ...
public class class_name { @Override public <K, V> MapAttribute<X, K, V> getDeclaredMap(String paramName, Class<K> keyClazz, Class<V> valueClazz) { PluralAttribute<X, ?, ?> declaredAttrib = getDeclaredPluralAttribute(paramName); if (onCheckMapAttribute(declaredAttrib, valueClazz)) { ...
public class class_name { private void createSingleHeader(HeaderKeys key, byte[] value, int offset, int length) { HeaderElement elem = findHeader(key); if (null != elem) { // delete all secondary instances first if (null != elem.nextInstance) { HeaderElement temp...
public class class_name { private void createSingleHeader(HeaderKeys key, byte[] value, int offset, int length) { HeaderElement elem = findHeader(key); if (null != elem) { // delete all secondary instances first if (null != elem.nextInstance) { HeaderElement temp...
public class class_name { public void readPkValuesFrom(ResultSetAndStatement rs_stmt, Map row) { String ojbClass = SqlHelper.getOjbClassName(rs_stmt.m_rs); ClassDescriptor cld; if (ojbClass != null) { cld = m_cld.getRepository().getDescriptorFor(ojbClass)...
public class class_name { public void readPkValuesFrom(ResultSetAndStatement rs_stmt, Map row) { String ojbClass = SqlHelper.getOjbClassName(rs_stmt.m_rs); ClassDescriptor cld; if (ojbClass != null) { cld = m_cld.getRepository().getDescriptorFor(ojbClass)...
public class class_name { public static GrayU8 invert(GrayU8 input , GrayU8 output) { output = InputSanityCheck.checkDeclare(input, output); if( BoofConcurrency.USE_CONCURRENT ) { ImplBinaryImageOps_MT.invert(input, output); } else { ImplBinaryImageOps.invert(input, output); } return output; } }
public class class_name { public static GrayU8 invert(GrayU8 input , GrayU8 output) { output = InputSanityCheck.checkDeclare(input, output); if( BoofConcurrency.USE_CONCURRENT ) { ImplBinaryImageOps_MT.invert(input, output); // depends on control dependency: [if], data = [none] } else { ImplBinaryImageOp...
public class class_name { @Override public Collection<Block> getByResourceId(String resourceId) { ensureSorted(); // prepare resourceId for binary search resourceIds[size] = resourceId; resourceIdsIndex[size] = size; int index = DataUtils.binarySearch(byResourceId); List<Block> result = ne...
public class class_name { @Override public Collection<Block> getByResourceId(String resourceId) { ensureSorted(); // prepare resourceId for binary search resourceIds[size] = resourceId; resourceIdsIndex[size] = size; int index = DataUtils.binarySearch(byResourceId); List<Block> result = ne...
public class class_name { @Pure public QuadTreeZone zoneOf(N child) { if (child == this.nNorthWest) { return QuadTreeZone.NORTH_WEST; } if (child == this.nNorthEast) { return QuadTreeZone.NORTH_EAST; } if (child == this.nSouthWest) { return QuadTreeZone.SOUTH_WEST; } if (child == this.nSouthEas...
public class class_name { @Pure public QuadTreeZone zoneOf(N child) { if (child == this.nNorthWest) { return QuadTreeZone.NORTH_WEST; // depends on control dependency: [if], data = [none] } if (child == this.nNorthEast) { return QuadTreeZone.NORTH_EAST; // depends on control dependency: [if], data = [none...
public class class_name { static String validateObjectName(String objectName, boolean allowEmptyObjectName) { logger.atFine().log("validateObjectName('%s', %s)", objectName, allowEmptyObjectName); if (isNullOrEmpty(objectName) || objectName.equals(PATH_DELIMITER)) { if (allowEmptyObjectName) { o...
public class class_name { static String validateObjectName(String objectName, boolean allowEmptyObjectName) { logger.atFine().log("validateObjectName('%s', %s)", objectName, allowEmptyObjectName); if (isNullOrEmpty(objectName) || objectName.equals(PATH_DELIMITER)) { if (allowEmptyObjectName) { o...
public class class_name { private void initialize(CatalogContext catalogContext, List<Pair<Integer, Integer>> localPartitionsToSites, boolean isRejoin) { try { CatalogMap<Connector> connectors = CatalogUtil.getConnectors(catalogContext); if (exportLog.isDebugEnabled()) { ...
public class class_name { private void initialize(CatalogContext catalogContext, List<Pair<Integer, Integer>> localPartitionsToSites, boolean isRejoin) { try { CatalogMap<Connector> connectors = CatalogUtil.getConnectors(catalogContext); if (exportLog.isDebugEnabled()) { ...
public class class_name { Expr map() { if (peek().sym != Sym.LBRACE) { return array(); } LinkedHashMap<Object, Expr> mapEntry = new LinkedHashMap<Object, Expr>(); Map map = new Map(mapEntry); move(); if (peek().sym == Sym.RBRACE) { move(); return map; } buildMapEntry(mapEntr...
public class class_name { Expr map() { if (peek().sym != Sym.LBRACE) { return array(); // depends on control dependency: [if], data = [none] } LinkedHashMap<Object, Expr> mapEntry = new LinkedHashMap<Object, Expr>(); Map map = new Map(mapEntry); move(); if (peek().sym == Sym.RBRACE) { mov...
public class class_name { protected <OTHER, X> Specification<ENTITY> buildReferringEntitySpecification(Filter<X> filter, SetAttribute<ENTITY, OTHER> reference, SingularAttribute<OTHER, X> valueField) { if (filter.getEquals() != null) { return equalsSetSpecification(reference, valueF...
public class class_name { protected <OTHER, X> Specification<ENTITY> buildReferringEntitySpecification(Filter<X> filter, SetAttribute<ENTITY, OTHER> reference, SingularAttribute<OTHER, X> valueField) { if (filter.getEquals() != null) { return equalsSetSpecification(reference, valueF...
public class class_name { public static boolean doGraphAnalysis(Connection connection, String inputTable, String orientation, String weight) throws SQLException, InvocationTargetExc...
public class class_name { public static boolean doGraphAnalysis(Connection connection, String inputTable, String orientation, String weight) throws SQLException, InvocationTargetExc...
public class class_name { protected APIParameter parseCustomizedReturn(MethodDoc methodDoc) { Tag[] tags = methodDoc.tags(WRReturnTaglet.NAME); APIParameter result = null; if (tags.length > 0) { result = WRReturnTaglet.parse(tags[0].text()); } return result; } }
public class class_name { protected APIParameter parseCustomizedReturn(MethodDoc methodDoc) { Tag[] tags = methodDoc.tags(WRReturnTaglet.NAME); APIParameter result = null; if (tags.length > 0) { result = WRReturnTaglet.parse(tags[0].text()); // depends on control dependency: [if], data = [none] } return r...
public class class_name { private JPanel getPanelMisc() { if (panelMisc == null) { panelMisc = new JPanel(); panelMisc.setLayout(new GridBagLayout()); if (Model.getSingleton().getOptionsParam().getViewParam().getWmUiHandlingOption() == 0) { panelMisc.setSize(114, 132); } displa...
public class class_name { private JPanel getPanelMisc() { if (panelMisc == null) { panelMisc = new JPanel(); panelMisc.setLayout(new GridBagLayout()); if (Model.getSingleton().getOptionsParam().getViewParam().getWmUiHandlingOption() == 0) { panelMisc.setSize(114, 132); // depends on contro...
public class class_name { @JsonIgnore @Override public Collection<? extends GrantedAuthority> getAuthorities() { final List<GrantedAuthority> authorities = new ArrayList<>(); for (final UserRoleName role : roles) { authorities.add(createAuthority(role)); } return aut...
public class class_name { @JsonIgnore @Override public Collection<? extends GrantedAuthority> getAuthorities() { final List<GrantedAuthority> authorities = new ArrayList<>(); for (final UserRoleName role : roles) { authorities.add(createAuthority(role)); // depends on control depend...
public class class_name { public Table getTable(){ final Table table = new Table("Name", "Long Name", "URL", "Comment"); // Create row(s) per dependency for(final License license: licenses){ table.addRow(license.getName(), license.getLongName(), license.getUrl(), license.getComment...
public class class_name { public Table getTable(){ final Table table = new Table("Name", "Long Name", "URL", "Comment"); // Create row(s) per dependency for(final License license: licenses){ table.addRow(license.getName(), license.getLongName(), license.getUrl(), license.getComment...
public class class_name { public final Table getSystemTable(Session session, String name) { Table t; int tableIndex; // must come first...many methods depend on this being set properly this.session = session; if (!isSystemTable(name)) { return null; } ...
public class class_name { public final Table getSystemTable(Session session, String name) { Table t; int tableIndex; // must come first...many methods depend on this being set properly this.session = session; if (!isSystemTable(name)) { return null; // depends o...
public class class_name { public Layer getLayer(String layerId) { org.geomajas.gwt.client.map.layer.Layer<?> layer = mapModel.getLayer(layerId); if (layer instanceof org.geomajas.gwt.client.map.layer.VectorLayer) { return new VectorLayer((org.geomajas.gwt.client.map.layer.VectorLayer) layer); } return new L...
public class class_name { public Layer getLayer(String layerId) { org.geomajas.gwt.client.map.layer.Layer<?> layer = mapModel.getLayer(layerId); if (layer instanceof org.geomajas.gwt.client.map.layer.VectorLayer) { return new VectorLayer((org.geomajas.gwt.client.map.layer.VectorLayer) layer); // depends on cont...
public class class_name { public void marshall(DiskSnapshotInfo diskSnapshotInfo, ProtocolMarshaller protocolMarshaller) { if (diskSnapshotInfo == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(disk...
public class class_name { public void marshall(DiskSnapshotInfo diskSnapshotInfo, ProtocolMarshaller protocolMarshaller) { if (diskSnapshotInfo == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(disk...
public class class_name { @Override public boolean hasChain(String authId) { int modelnr = 0; List<Chain> chains = getChains(modelnr); for (Chain c : chains) { // we check here with equals because we might want to distinguish between upper and lower case chains! if (c.getId().equals(authId)) { return...
public class class_name { @Override public boolean hasChain(String authId) { int modelnr = 0; List<Chain> chains = getChains(modelnr); for (Chain c : chains) { // we check here with equals because we might want to distinguish between upper and lower case chains! if (c.getId().equals(authId)) { return...
public class class_name { public String text() { final StringBuilder accum = StringUtil.borrowBuilder(); NodeTraversor.traverse(new NodeVisitor() { public void head(Node node, int depth) { if (node instanceof TextNode) { TextNode textNode = (TextNode) nod...
public class class_name { public String text() { final StringBuilder accum = StringUtil.borrowBuilder(); NodeTraversor.traverse(new NodeVisitor() { public void head(Node node, int depth) { if (node instanceof TextNode) { TextNode textNode = (TextNode) nod...