code
stringlengths
130
281k
code_dependency
stringlengths
182
306k
public class class_name { @Path("/cookies") @GET public Response getCookies(@QueryParam("token") String token) { try { StringDataStore dataStore = this.stringDataStoreFactory.create(Constants.HIDDEN_COOKIE_SPACE); String cookiesData = dataStore.retrieveData(token); ...
public class class_name { @Path("/cookies") @GET public Response getCookies(@QueryParam("token") String token) { try { StringDataStore dataStore = this.stringDataStoreFactory.create(Constants.HIDDEN_COOKIE_SPACE); String cookiesData = dataStore.retrieveData(token); ...
public class class_name { void expectIndexMatch(Node n, JSType objType, JSType indexType) { checkState(n.isGetElem() || n.isComputedProp(), n); Node indexNode = n.isGetElem() ? n.getLastChild() : n.getFirstChild(); if (indexType.isSymbolValueType()) { // For now, allow symbols definitions/access on a...
public class class_name { void expectIndexMatch(Node n, JSType objType, JSType indexType) { checkState(n.isGetElem() || n.isComputedProp(), n); Node indexNode = n.isGetElem() ? n.getLastChild() : n.getFirstChild(); if (indexType.isSymbolValueType()) { // For now, allow symbols definitions/access on a...
public class class_name { static SingleOffsetTimezone of(ZonalOffset offset) { if ( (offset.getIntegralAmount() == 0) && (offset.getFractionalAmount() == 0) ) { return UTC; } else { return new SingleOffsetTimezone(offset); } } }
public class class_name { static SingleOffsetTimezone of(ZonalOffset offset) { if ( (offset.getIntegralAmount() == 0) && (offset.getFractionalAmount() == 0) ) { return UTC; // depends on control dependency: [if], data = [] } else { return new Sin...
public class class_name { @Override public void visit(final String name, final Object value) { // Case of an element_value with a const_value_index, class_info_index or array_index field. // See https://docs.oracle.com/javase/specs/jvms/se9/html/jvms-4.html#jvms-4.7.16.1. ++numElementValuePairs; if (...
public class class_name { @Override public void visit(final String name, final Object value) { // Case of an element_value with a const_value_index, class_info_index or array_index field. // See https://docs.oracle.com/javase/specs/jvms/se9/html/jvms-4.html#jvms-4.7.16.1. ++numElementValuePairs; if (...
public class class_name { private void restoreFieldsFromUserInfo() { String savedEmail = (String)(m_user.getAdditionalInfo().get(ADDINFO_EMAIL)); String savedName = (String)(m_user.getAdditionalInfo().get(ADDINFO_USER)); String savedMessage = (String)(m_user.getAdditionalInfo().get(ADDINFO_MES...
public class class_name { private void restoreFieldsFromUserInfo() { String savedEmail = (String)(m_user.getAdditionalInfo().get(ADDINFO_EMAIL)); String savedName = (String)(m_user.getAdditionalInfo().get(ADDINFO_USER)); String savedMessage = (String)(m_user.getAdditionalInfo().get(ADDINFO_MES...
public class class_name { public Object superPut(Object key, Object value) { if (com.ibm.websphere.ras.TraceComponent.isAnyTracingEnabled() && LoggingUtil.SESSION_LOGGER_WAS.isLoggable(Level.FINE)) { LoggingUtil.SESSION_LOGGER_WAS.logp(Level.FINE, methodClassName, methodNames[SUPER_PUT], "" + key);...
public class class_name { public Object superPut(Object key, Object value) { if (com.ibm.websphere.ras.TraceComponent.isAnyTracingEnabled() && LoggingUtil.SESSION_LOGGER_WAS.isLoggable(Level.FINE)) { LoggingUtil.SESSION_LOGGER_WAS.logp(Level.FINE, methodClassName, methodNames[SUPER_PUT], "" + key);...
public class class_name { public java.util.List<VolumeRecoveryPointInfo> getVolumeRecoveryPointInfos() { if (volumeRecoveryPointInfos == null) { volumeRecoveryPointInfos = new com.amazonaws.internal.SdkInternalList<VolumeRecoveryPointInfo>(); } return volumeRecoveryPointInfos; }...
public class class_name { public java.util.List<VolumeRecoveryPointInfo> getVolumeRecoveryPointInfos() { if (volumeRecoveryPointInfos == null) { volumeRecoveryPointInfos = new com.amazonaws.internal.SdkInternalList<VolumeRecoveryPointInfo>(); // depends on control dependency: [if], data = [none] ...
public class class_name { public static String getPackageResource(Class<?> type, String resourceName) { StringBuilder builder = new StringBuilder(); builder.append(type.getPackage().getName().replace('.', '/')); if(resourceName.charAt(0) != '/') { builder.append('/'); } builder.appen...
public class class_name { public static String getPackageResource(Class<?> type, String resourceName) { StringBuilder builder = new StringBuilder(); builder.append(type.getPackage().getName().replace('.', '/')); if(resourceName.charAt(0) != '/') { builder.append('/'); // depends on control de...
public class class_name { Entry forceRemove() { Entry removedEntry = null; checkEntryParent(); if(atTop) { //if we are at the top of the list and we are the first top cursor if(parentList.firstTopCursor == this) { //set the first top cursor to be the next one in th...
public class class_name { Entry forceRemove() { Entry removedEntry = null; checkEntryParent(); if(atTop) { //if we are at the top of the list and we are the first top cursor if(parentList.firstTopCursor == this) { //set the first top cursor to be the next one in th...
public class class_name { public static double combination(int n, int k) { if(n<k) { throw new IllegalArgumentException("The n can't be smaller than k."); } double combinations=1.0; double lowerBound = n-k; for(int i=n;i>lowerBound;i--) { combinations *= ...
public class class_name { public static double combination(int n, int k) { if(n<k) { throw new IllegalArgumentException("The n can't be smaller than k."); } double combinations=1.0; double lowerBound = n-k; for(int i=n;i>lowerBound;i--) { combinations *= ...
public class class_name { @Override public String encode() throws IOException { FastStringWriter fsw = new FastStringWriter(); try { fsw.write(super.encode()); if (this.type != null) { fsw.write(",\"type\":\"" + this.type + "\""); } ...
public class class_name { @Override public String encode() throws IOException { FastStringWriter fsw = new FastStringWriter(); try { fsw.write(super.encode()); if (this.type != null) { fsw.write(",\"type\":\"" + this.type + "\""); // depends on control depe...
public class class_name { public void enableConnHeartbeat(Url url) { if (null != url) { this.connectionManager.enableHeartbeat(this.connectionManager.get(url.getUniqueKey())); } } }
public class class_name { public void enableConnHeartbeat(Url url) { if (null != url) { this.connectionManager.enableHeartbeat(this.connectionManager.get(url.getUniqueKey())); // depends on control dependency: [if], data = [none] } } }
public class class_name { protected boolean setForwardProxyBuffers(Map<Object, Object> config) { byte[] target = (byte[]) config.get(PROXY_TARGET_HOST_PORT); if (null == target) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "Proxy tunnel ...
public class class_name { protected boolean setForwardProxyBuffers(Map<Object, Object> config) { byte[] target = (byte[]) config.get(PROXY_TARGET_HOST_PORT); if (null == target) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "Proxy tunnel ...
public class class_name { public void addPlugin(final Plugin plugin) { // put plugin into the repository's reciever map synchronized (pluginMap) { String name = plugin.getName(); // make sure the plugin has reference to repository plugin.setLoggerRepository(getLogge...
public class class_name { public void addPlugin(final Plugin plugin) { // put plugin into the repository's reciever map synchronized (pluginMap) { String name = plugin.getName(); // make sure the plugin has reference to repository plugin.setLoggerRepository(getLogge...
public class class_name { public DepTreeRoot mapDependencies(DepTreeRoot root, Map<String, URI> map, boolean failIfNoExist) { // For each config path entry... for (Entry<String, URI> configPathEntry : map.entrySet()) { String name = configPathEntry.getKey(); // make sure name is valid if (name.starts...
public class class_name { public DepTreeRoot mapDependencies(DepTreeRoot root, Map<String, URI> map, boolean failIfNoExist) { // For each config path entry... for (Entry<String, URI> configPathEntry : map.entrySet()) { String name = configPathEntry.getKey(); // make sure name is valid if (name.starts...
public class class_name { static TaskInstance createTaskInstance(Long taskId, String masterRequestId, Long processInstanceId, String secondaryOwner, Long secondaryOwnerId, String title, String comments, int dueInSeconds, Map<String,String> indexes, String assignee) throws Servic...
public class class_name { static TaskInstance createTaskInstance(Long taskId, String masterRequestId, Long processInstanceId, String secondaryOwner, Long secondaryOwnerId, String title, String comments, int dueInSeconds, Map<String,String> indexes, String assignee) throws Servic...
public class class_name { @Override public boolean validateAction(String action) { boolean result = false; if (action.equals(MessagingSecurityConstants.OPERATION_TYPE_SEND) || action.equals(MessagingSecurityConstants.OPERATION_TYPE_RECEIVE)) { result = true; } ...
public class class_name { @Override public boolean validateAction(String action) { boolean result = false; if (action.equals(MessagingSecurityConstants.OPERATION_TYPE_SEND) || action.equals(MessagingSecurityConstants.OPERATION_TYPE_RECEIVE)) { result = true; // depends on co...
public class class_name { public BufferedImage createImage() { BufferedImage image = null; Graphics2D graphics = null; for (int layer = 0; layer < 4; layer++) { BufferedImage layerImage = layeredImage[layer]; if (layerImage != null) { if (image == null) { image = layerImage; graphics = l...
public class class_name { public BufferedImage createImage() { BufferedImage image = null; Graphics2D graphics = null; for (int layer = 0; layer < 4; layer++) { BufferedImage layerImage = layeredImage[layer]; if (layerImage != null) { if (image == null) { image = layerImage; // depends on con...
public class class_name { @Override public Menu getContextMenu() { if (menu == null) { menu = new Menu(); menu.addItem(new NewFeatureAction(mapWidget, this)); menu.addItem(new EditFeatureAction(mapWidget, this)); menu.addItem(new DeleteFeatureAction(mapWidget, this)); menu.addItem(new MenuItemSeparat...
public class class_name { @Override public Menu getContextMenu() { if (menu == null) { menu = new Menu(); // depends on control dependency: [if], data = [none] menu.addItem(new NewFeatureAction(mapWidget, this)); // depends on control dependency: [if], data = [none] menu.addItem(new EditFeatureAction(mapWi...
public class class_name { public static <T> T[] sub(T[] array, int start, int end) { int length = length(array); if (start < 0) { start += length; } if (end < 0) { end += length; } if (start == length) { return newArray(array.getClass().getComponentType(), 0); } if (start > end) { ...
public class class_name { public static <T> T[] sub(T[] array, int start, int end) { int length = length(array); if (start < 0) { start += length; // depends on control dependency: [if], data = [none] } if (end < 0) { end += length; // depends on control dependency: [if], data = [none] } if (...
public class class_name { public void setColumnCellStyles (int column, String... styles) { int rowCount = getRowCount(); for (int row = 0; row < rowCount; ++row) { setStyleNames(row, column, styles); } } }
public class class_name { public void setColumnCellStyles (int column, String... styles) { int rowCount = getRowCount(); for (int row = 0; row < rowCount; ++row) { setStyleNames(row, column, styles); // depends on control dependency: [for], data = [row] } } }
public class class_name { public boolean isEdge(GeometryIndex index) { if (index.hasChild()) { return isEdge(index.getChild()); } return index.getType() == GeometryIndexType.TYPE_EDGE; } }
public class class_name { public boolean isEdge(GeometryIndex index) { if (index.hasChild()) { return isEdge(index.getChild()); // depends on control dependency: [if], data = [none] } return index.getType() == GeometryIndexType.TYPE_EDGE; } }
public class class_name { void realloc(boolean throwIfFail) { // Double the capacity while it is "sufficiently small", and otherwise increase by 50%. int newLength = capacity <= 65536 ? capacity << 1 : capacity + capacity >> 1; try { ByteBuffer buffer = Buffer.allocateDirectWithNat...
public class class_name { void realloc(boolean throwIfFail) { // Double the capacity while it is "sufficiently small", and otherwise increase by 50%. int newLength = capacity <= 65536 ? capacity << 1 : capacity + capacity >> 1; try { ByteBuffer buffer = Buffer.allocateDirectWithNat...
public class class_name { @Override public boolean removeFirstOccurrence(DelayedEntry incoming) { Data incomingKey = (Data) incoming.getKey(); Object incomingValue = incoming.getValue(); DelayedEntry current = map.get(incomingKey); if (current == null) { return false; ...
public class class_name { @Override public boolean removeFirstOccurrence(DelayedEntry incoming) { Data incomingKey = (Data) incoming.getKey(); Object incomingValue = incoming.getValue(); DelayedEntry current = map.get(incomingKey); if (current == null) { return false; /...
public class class_name { public void setParent(Model parent) { if (parent == this) { throw new IllegalArgumentException("The model can't be its own parent"); } if (parent == null) { this.parent.children.remove(this); } else { parent.children.add(this...
public class class_name { public void setParent(Model parent) { if (parent == this) { throw new IllegalArgumentException("The model can't be its own parent"); } if (parent == null) { this.parent.children.remove(this); // depends on control dependency: [if], data = [none]...
public class class_name { public final ProtoParser.rpc_body_block_return rpc_body_block(Proto proto, Service.RpcMethod rm) throws RecognitionException { ProtoParser.rpc_body_block_return retval = new ProtoParser.rpc_body_block_return(); retval.start = input.LT(1); Object root_0 = null; ...
public class class_name { public final ProtoParser.rpc_body_block_return rpc_body_block(Proto proto, Service.RpcMethod rm) throws RecognitionException { ProtoParser.rpc_body_block_return retval = new ProtoParser.rpc_body_block_return(); retval.start = input.LT(1); Object root_0 = null; ...
public class class_name { public static PrivateKey readPasswordProtectedPrivateKey(final File encryptedPrivateKeyFile, final String password, final String algorithm) throws IOException, NoSuchAlgorithmException, NoSuchPaddingException, InvalidKeySpecException, InvalidKeyException, InvalidAlgorithmParameterExcept...
public class class_name { public static PrivateKey readPasswordProtectedPrivateKey(final File encryptedPrivateKeyFile, final String password, final String algorithm) throws IOException, NoSuchAlgorithmException, NoSuchPaddingException, InvalidKeySpecException, InvalidKeyException, InvalidAlgorithmParameterExcept...
public class class_name { public static void newRecord(HashMap m, String path) { if( path != null ) { String[] paths = path.split(","); int l = paths.length; for(int i=0; i < l; i++) { if( paths[i].contains("@") ) { String temp[] = paths[i...
public class class_name { public static void newRecord(HashMap m, String path) { if( path != null ) { String[] paths = path.split(","); int l = paths.length; for(int i=0; i < l; i++) { if( paths[i].contains("@") ) { String temp[] = paths[i...
public class class_name { public RValue[] execute(QualifiedName name, Type.Callable signature, CallStack frame, RValue... args) { Decl.Callable lambda = frame.getCallable(name, signature); if (lambda == null) { throw new IllegalArgumentException("no function or method found: " + name + ", " + signature); } el...
public class class_name { public RValue[] execute(QualifiedName name, Type.Callable signature, CallStack frame, RValue... args) { Decl.Callable lambda = frame.getCallable(name, signature); if (lambda == null) { throw new IllegalArgumentException("no function or method found: " + name + ", " + signature); } el...
public class class_name { @Override public String getQName(int index) { if (index < 0 || index >= attributesList.size()) { return null; } Attribute attr = attributesList.get(index); return (attr.name == null) ? "" : attr.name; } }
public class class_name { @Override public String getQName(int index) { if (index < 0 || index >= attributesList.size()) { return null; // depends on control dependency: [if], data = [none] } Attribute attr = attributesList.get(index); return (attr.name == null) ? "" : a...
public class class_name { @SuppressWarnings("unchecked") public <T extends Annotation> T getSetterAnnotation(Method method, Class<T> annotationType) { T annotation = method.getAnnotation(annotationType); if (annotation != null) { return annotation; } Annotation[][] param...
public class class_name { @SuppressWarnings("unchecked") public <T extends Annotation> T getSetterAnnotation(Method method, Class<T> annotationType) { T annotation = method.getAnnotation(annotationType); if (annotation != null) { return annotation; // depends on control dependency: [if]...
public class class_name { private String getCropName(Map result) { String ret; String crid; // Get crop id crid = getCrid(result); // Get crop name string ret = LookupCodes.lookupCode("CRID", crid, "common", "DSSAT"); if (ret.equals(crid)) { ret = "...
public class class_name { private String getCropName(Map result) { String ret; String crid; // Get crop id crid = getCrid(result); // Get crop name string ret = LookupCodes.lookupCode("CRID", crid, "common", "DSSAT"); if (ret.equals(crid)) { ret = "...
public class class_name { public void warn( String format, Object arg ) { if( m_delegate.isWarnEnabled() ) { FormattingTuple tuple = MessageFormatter.format( format, arg ); m_delegate.warn( tuple.getMessage(), tuple.getThrowable() ); } } }
public class class_name { public void warn( String format, Object arg ) { if( m_delegate.isWarnEnabled() ) { FormattingTuple tuple = MessageFormatter.format( format, arg ); m_delegate.warn( tuple.getMessage(), tuple.getThrowable() ); // depends on control dependency: [if], d...
public class class_name { public Namer getInverseOneToOneNamer(Attribute fromAttribute, Namer fromEntityNamer) { Namer result = getInverseOneToOneNamerFromConf(fromAttribute.getColumnConfig(), fromEntityNamer); if (result == null) { result = fromEntityNamer; } return resul...
public class class_name { public Namer getInverseOneToOneNamer(Attribute fromAttribute, Namer fromEntityNamer) { Namer result = getInverseOneToOneNamerFromConf(fromAttribute.getColumnConfig(), fromEntityNamer); if (result == null) { result = fromEntityNamer; // depends on control dependenc...
public class class_name { @Override public WsByteBuffer[] marshallLine() { WsByteBuffer[] firstLine = new WsByteBuffer[1]; firstLine[0] = allocateBuffer(getOutgoingBufferSize()); firstLine = putBytes(getVersionValue().getByteArray(), firstLine); firstLine = putByte(SPACE, firstLine...
public class class_name { @Override public WsByteBuffer[] marshallLine() { WsByteBuffer[] firstLine = new WsByteBuffer[1]; firstLine[0] = allocateBuffer(getOutgoingBufferSize()); firstLine = putBytes(getVersionValue().getByteArray(), firstLine); firstLine = putByte(SPACE, firstLine...
public class class_name { private JLabel getAddedCountValueLabel() { if (addedCountValueLabel == null) { addedCountValueLabel = new JLabel(); addedCountValueLabel.setText(ZERO_REQUESTS_LABEL_TEXT); } return addedCountValueLabel; } }
public class class_name { private JLabel getAddedCountValueLabel() { if (addedCountValueLabel == null) { addedCountValueLabel = new JLabel(); // depends on control dependency: [if], data = [none] addedCountValueLabel.setText(ZERO_REQUESTS_LABEL_TEXT); // depends on control dependency: [if], data = [none] ...
public class class_name { @JsonIgnore protected Map<String, List<Object>> getCachedPrincipalAttributes(final Principal principal, final RegisteredService registeredService) { try { val cache = getCacheInstanceFromApplicationContext(); return cache.getCachedAttributesFor(registeredSe...
public class class_name { @JsonIgnore protected Map<String, List<Object>> getCachedPrincipalAttributes(final Principal principal, final RegisteredService registeredService) { try { val cache = getCacheInstanceFromApplicationContext(); return cache.getCachedAttributesFor(registeredSe...
public class class_name { @Override public Downloader build() { Downloader underlying = null; CacheProvider<URI, byte[]> cache = null; try { underlying = Objects.requireNonNull(this.underlying.build(), "Underlying downloader builder returns null"); cache = buildCacheProvider(); LOGGER.fine("Using cach...
public class class_name { @Override public Downloader build() { Downloader underlying = null; CacheProvider<URI, byte[]> cache = null; try { underlying = Objects.requireNonNull(this.underlying.build(), "Underlying downloader builder returns null"); // depends on control dependency: [try], data = [none] c...
public class class_name { public JaversType getJaversType(Type javaType) { argumentIsNotNull(javaType); if (javaType == Object.class) { return OBJECT_TYPE; } return engine.computeIfAbsent(javaType, j -> typeFactory.infer(j, findPrototype(j))); } }
public class class_name { public JaversType getJaversType(Type javaType) { argumentIsNotNull(javaType); if (javaType == Object.class) { return OBJECT_TYPE; // depends on control dependency: [if], data = [none] } return engine.computeIfAbsent(javaType, j -> typeFactory.infe...
public class class_name { public long getWaitIndex() { if (id == null || id.length() != 36) { return 0; } long lower = 0, upper = 0; for (int i = 0; i < 18; i++) { if (i != 8 && i != 13) { lower = lower * 16 + Character.digit(id.charAt(i), 16); } } for (int i = 19; i < 36; i++) { if (i != 2...
public class class_name { public long getWaitIndex() { if (id == null || id.length() != 36) { return 0; // depends on control dependency: [if], data = [none] } long lower = 0, upper = 0; for (int i = 0; i < 18; i++) { if (i != 8 && i != 13) { lower = lower * 16 + Character.digit(id.charAt(i), 16); //...
public class class_name { public void setDeferredMaintenanceWindows(java.util.Collection<DeferredMaintenanceWindow> deferredMaintenanceWindows) { if (deferredMaintenanceWindows == null) { this.deferredMaintenanceWindows = null; return; } this.deferredMaintenanceWindows ...
public class class_name { public void setDeferredMaintenanceWindows(java.util.Collection<DeferredMaintenanceWindow> deferredMaintenanceWindows) { if (deferredMaintenanceWindows == null) { this.deferredMaintenanceWindows = null; // depends on control dependency: [if], data = [none] retur...
public class class_name { public static void colorizeSign( GrayF32 input , float maxAbsValue , Bitmap output , byte[] storage ) { shapeShape(input, output); if( storage == null ) storage = declareStorage(output,null); if( maxAbsValue < 0 ) maxAbsValue = ImageStatistics.maxAbs(input); int indexDst = 0;...
public class class_name { public static void colorizeSign( GrayF32 input , float maxAbsValue , Bitmap output , byte[] storage ) { shapeShape(input, output); if( storage == null ) storage = declareStorage(output,null); if( maxAbsValue < 0 ) maxAbsValue = ImageStatistics.maxAbs(input); int indexDst = 0;...
public class class_name { @SuppressWarnings("static-method") public List<Boolean> findBooleanValues(JvmAnnotationReference reference) { assert reference != null; final List<Boolean> values = new ArrayList<>(); for (final JvmAnnotationValue value : reference.getValues()) { if (value instanceof JvmBooleanAnnot...
public class class_name { @SuppressWarnings("static-method") public List<Boolean> findBooleanValues(JvmAnnotationReference reference) { assert reference != null; final List<Boolean> values = new ArrayList<>(); for (final JvmAnnotationValue value : reference.getValues()) { if (value instanceof JvmBooleanAnnot...
public class class_name { @Override protected void perform(final Wave wave) { // Avoid to continue launching next command if cancellation has been requested if (!this.cancelRequested.get()) { if (isSequential()) { // Store the wave when we are running the first command...
public class class_name { @Override protected void perform(final Wave wave) { // Avoid to continue launching next command if cancellation has been requested if (!this.cancelRequested.get()) { if (isSequential()) { // Store the wave when we are running the first command...
public class class_name { public Association getAssociation(String collectionRole) { if ( associations == null ) { return null; } return associations.get( collectionRole ); } }
public class class_name { public Association getAssociation(String collectionRole) { if ( associations == null ) { return null; // depends on control dependency: [if], data = [none] } return associations.get( collectionRole ); } }
public class class_name { private void reconnect(final ArrayList<Long> tokens) { nonUserDisconnect(); try { ws = new WebSocketFactory().createSocket(wsuri); } catch (IOException e) { if(onErrorListener != null) { onErrorListener.onError(e); } ...
public class class_name { private void reconnect(final ArrayList<Long> tokens) { nonUserDisconnect(); try { ws = new WebSocketFactory().createSocket(wsuri); // depends on control dependency: [try], data = [none] } catch (IOException e) { if(onErrorListener != null) { ...
public class class_name { public static boolean hasTranslator(final int mainNumber, final String dptId) { try { final MainType t = getMainType(getMainNumber(mainNumber, dptId)); if (t != null) return t.getSubTypes().get(dptId) != null; } catch (final NumberFormatException e) {} catch (final KNXExcep...
public class class_name { public static boolean hasTranslator(final int mainNumber, final String dptId) { try { final MainType t = getMainType(getMainNumber(mainNumber, dptId)); if (t != null) return t.getSubTypes().get(dptId) != null; } catch (final NumberFormatException e) {} // depends on control d...
public class class_name { private void addComposites(MBeanAttributeConfig config, CompositeData compositeData) { CompositeType compositeType = compositeData.getCompositeType(); for (String key : compositeType.keySet()) { config.addChild(makeComposite(compositeType, key)); } } }
public class class_name { private void addComposites(MBeanAttributeConfig config, CompositeData compositeData) { CompositeType compositeType = compositeData.getCompositeType(); for (String key : compositeType.keySet()) { config.addChild(makeComposite(compositeType, key)); // depends on control dependency: [f...
public class class_name { public synchronized void add(T actual, T predicted, int count) { if (matrix.containsKey(actual)) { matrix.get(actual).add(predicted, count); } else { Multiset<T> counts = HashMultiset.create(); counts.add(predicted, count); matri...
public class class_name { public synchronized void add(T actual, T predicted, int count) { if (matrix.containsKey(actual)) { matrix.get(actual).add(predicted, count); // depends on control dependency: [if], data = [none] } else { Multiset<T> counts = HashMultiset.create(); ...
public class class_name { public static int[] ConcatenateInt(List<int[]> arrays) { int size = 0; for (int i = 0; i < arrays.size(); i++) { size += arrays.get(i).length; } int[] all = new int[size]; int idx = 0; for (int i = 0; i < arrays.size(); i++) { ...
public class class_name { public static int[] ConcatenateInt(List<int[]> arrays) { int size = 0; for (int i = 0; i < arrays.size(); i++) { size += arrays.get(i).length; // depends on control dependency: [for], data = [i] } int[] all = new int[size]; int idx = 0; ...
public class class_name { protected <T> Optional<T> getUserData(Optional<? extends Node> node, Class<T> type) { if (node.isPresent()) { final Node n = node.get(); return getValue(n, n::getUserData, type); } return Optional.empty(); } }
public class class_name { protected <T> Optional<T> getUserData(Optional<? extends Node> node, Class<T> type) { if (node.isPresent()) { final Node n = node.get(); return getValue(n, n::getUserData, type); // depends on control dependency: [if], data = [none] } return Opt...
public class class_name { public boolean deleteProfile() { String[] profileDirs = {smallPrefsFolder, largePrefsFolder, cachePrefsFolder}; // Assuming if any of those are main profile, skip the whole delete for (String profileDir : profileDirs) { if (isMainProfile(profileDir)) { logger.finer(...
public class class_name { public boolean deleteProfile() { String[] profileDirs = {smallPrefsFolder, largePrefsFolder, cachePrefsFolder}; // Assuming if any of those are main profile, skip the whole delete for (String profileDir : profileDirs) { if (isMainProfile(profileDir)) { logger.finer(...
public class class_name { static Set<ArchiveEventCode> getEnabledArchiveEventCodes(final String enabledArchiveEventCodes) { if (null == enabledArchiveEventCodes || "".equals(enabledArchiveEventCodes)) { return EnumSet.noneOf(ArchiveEventCode.class); } final Function<Int...
public class class_name { static Set<ArchiveEventCode> getEnabledArchiveEventCodes(final String enabledArchiveEventCodes) { if (null == enabledArchiveEventCodes || "".equals(enabledArchiveEventCodes)) { return EnumSet.noneOf(ArchiveEventCode.class); // depends on control dependency: [if...
public class class_name { @SuppressWarnings({"fallthrough"}) @Override public int startScan(String displayName, Target target, User user, Object[] customConfigurations) { switch (Control.getSingleton().getMode()) { case safe: throw new IllegalStateException("Scans are not allowed in Safe mode"); case protec...
public class class_name { @SuppressWarnings({"fallthrough"}) @Override public int startScan(String displayName, Target target, User user, Object[] customConfigurations) { switch (Control.getSingleton().getMode()) { case safe: throw new IllegalStateException("Scans are not allowed in Safe mode"); case protec...
public class class_name { public void setEmail(String email) { checkEmail(email); if (email != null) { email = email.trim(); } m_email = email; } }
public class class_name { public void setEmail(String email) { checkEmail(email); if (email != null) { email = email.trim(); // depends on control dependency: [if], data = [none] } m_email = email; } }
public class class_name { public void visitComplexType(CobolComplexType type, ComplexTypeChildHandler callback) { cobolNamesStack.push(type.getCobolName()); int index = 0; for (Entry < String, CobolType > child : type.getFields().entrySet()) { CobolType childType = chil...
public class class_name { public void visitComplexType(CobolComplexType type, ComplexTypeChildHandler callback) { cobolNamesStack.push(type.getCobolName()); int index = 0; for (Entry < String, CobolType > child : type.getFields().entrySet()) { CobolType childType = chil...
public class class_name { public static ThreadFactory newThreadFactory(final String format, final boolean daemon) { final String nameFormat; if (!format.contains("%d")) { nameFormat = format + "-%d"; } else { nameFormat = format; } return new ThreadFacto...
public class class_name { public static ThreadFactory newThreadFactory(final String format, final boolean daemon) { final String nameFormat; if (!format.contains("%d")) { nameFormat = format + "-%d"; // depends on control dependency: [if], data = [none] } else { nameForm...
public class class_name { private Node tryMinimizeExprResult(Node n) { Node originalExpr = n.getFirstChild(); MinimizedCondition minCond = MinimizedCondition.fromConditionNode(originalExpr); MeasuredNode mNode = minCond.getMinimized(MinimizationStyle.ALLOW_LEADING_NOT); if (mNode.isNot()) { ...
public class class_name { private Node tryMinimizeExprResult(Node n) { Node originalExpr = n.getFirstChild(); MinimizedCondition minCond = MinimizedCondition.fromConditionNode(originalExpr); MeasuredNode mNode = minCond.getMinimized(MinimizationStyle.ALLOW_LEADING_NOT); if (mNode.isNot()) { ...
public class class_name { public boolean hasNext() { if(_rs == null) return false; if(_primed) return true; try { _primed = _rs.next(); return _primed; } catch(SQLException sql) { String msg = "An exception occurred r...
public class class_name { public boolean hasNext() { if(_rs == null) return false; if(_primed) return true; try { _primed = _rs.next(); // depends on control dependency: [try], data = [none] return _primed; // depends on control dependency: [try...
public class class_name { public EEnum getIfcLightEmissionSourceEnum() { if (ifcLightEmissionSourceEnumEEnum == null) { ifcLightEmissionSourceEnumEEnum = (EEnum) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI) .getEClassifiers().get(854); } return ifcLightEmissionSourceEnumEEnum; ...
public class class_name { public EEnum getIfcLightEmissionSourceEnum() { if (ifcLightEmissionSourceEnumEEnum == null) { ifcLightEmissionSourceEnumEEnum = (EEnum) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI) .getEClassifiers().get(854); // depends on control dependency: [if], data = [n...
public class class_name { public static double[] colSums(double[][] data) { double[] x = data[0].clone(); for (int i = 1; i < data.length; i++) { for (int j = 0; j < x.length; j++) { x[j] += data[i][j]; } } return x; } }
public class class_name { public static double[] colSums(double[][] data) { double[] x = data[0].clone(); for (int i = 1; i < data.length; i++) { for (int j = 0; j < x.length; j++) { x[j] += data[i][j]; // depends on control dependency: [for], data = [j] } ...
public class class_name { @Override public Collection<BioPAXElement> generate(Match match, int... ind) { Collection<BioPAXElement> gen = new HashSet<BioPAXElement> ( con[0].generate(match, ind)); for (int i = 1; i < con.length; i++) { if (gen.isEmpty()) break; Collection<BioPAXElement> subset = con[...
public class class_name { @Override public Collection<BioPAXElement> generate(Match match, int... ind) { Collection<BioPAXElement> gen = new HashSet<BioPAXElement> ( con[0].generate(match, ind)); for (int i = 1; i < con.length; i++) { if (gen.isEmpty()) break; Collection<BioPAXElement> subset = con[...
public class class_name { public static Map<JComponent, List<JComponent>> getComponentMap( JComponent container, boolean nested) { HashMap<JComponent, List<JComponent>> retVal = new HashMap<JComponent, List<JComponent>>(); for (JComponent component : getDescendantsOfType(JComponent.cla...
public class class_name { public static Map<JComponent, List<JComponent>> getComponentMap( JComponent container, boolean nested) { HashMap<JComponent, List<JComponent>> retVal = new HashMap<JComponent, List<JComponent>>(); for (JComponent component : getDescendantsOfType(JComponent.cla...
public class class_name { public synchronized Set<Vulnerability> getVulnerabilities(boolean sorted) { final Set<Vulnerability> vulnerabilitySet; if (sorted) { vulnerabilitySet = new TreeSet<>(vulnerabilities); } else { vulnerabilitySet = vulnerabilities; } ...
public class class_name { public synchronized Set<Vulnerability> getVulnerabilities(boolean sorted) { final Set<Vulnerability> vulnerabilitySet; if (sorted) { vulnerabilitySet = new TreeSet<>(vulnerabilities); // depends on control dependency: [if], data = [none] } else { ...
public class class_name { public void marshall(ElasticsearchDomainConfig elasticsearchDomainConfig, ProtocolMarshaller protocolMarshaller) { if (elasticsearchDomainConfig == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { proto...
public class class_name { public void marshall(ElasticsearchDomainConfig elasticsearchDomainConfig, ProtocolMarshaller protocolMarshaller) { if (elasticsearchDomainConfig == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { proto...
public class class_name { void fetchRouteTileVersions(String accessToken, final OnTileVersionsFoundCallback callback) { MapboxRouteTileVersions mapboxRouteTileVersions = buildTileVersionsWith(accessToken); mapboxRouteTileVersions.enqueueCall(new Callback<RouteTileVersionsResponse>() { @Override pub...
public class class_name { void fetchRouteTileVersions(String accessToken, final OnTileVersionsFoundCallback callback) { MapboxRouteTileVersions mapboxRouteTileVersions = buildTileVersionsWith(accessToken); mapboxRouteTileVersions.enqueueCall(new Callback<RouteTileVersionsResponse>() { @Override pub...
public class class_name { public void marshall(WeightedTarget weightedTarget, ProtocolMarshaller protocolMarshaller) { if (weightedTarget == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(weightedTa...
public class class_name { public void marshall(WeightedTarget weightedTarget, ProtocolMarshaller protocolMarshaller) { if (weightedTarget == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(weightedTa...
public class class_name { public String[] getIdentifiers() { final PerSessionInfo[] infos; synchronized (sessions) { infos = (PerSessionInfo[]) sessions.values().toArray(new PerSessionInfo[sessions.size()]); } int count = 0; for (int i = 0; i < infos.length; ++i) { if (infos[i] != null && infos[i]...
public class class_name { public String[] getIdentifiers() { final PerSessionInfo[] infos; synchronized (sessions) { infos = (PerSessionInfo[]) sessions.values().toArray(new PerSessionInfo[sessions.size()]); } int count = 0; for (int i = 0; i < infos.length; ++i) { if (infos[i] != null && infos[i]...
public class class_name { public Query groupby(final Collection<? extends Expression> groupbyColumns) { if (groupbyColumns == null) { return this; } this.groupbyColumns.addAll(groupbyColumns); return this; } }
public class class_name { public Query groupby(final Collection<? extends Expression> groupbyColumns) { if (groupbyColumns == null) { return this; // depends on control dependency: [if], data = [none] } this.groupbyColumns.addAll(groupbyColumns); return this; } }
public class class_name { public DOMSource createDOMSource(DocumentSource src) { try { Constructor<? extends DOMSource> constr = getDOMSourceClass().getConstructor(DocumentSource.class); return constr.newInstance(src); } catch (Exception e) { log.warn("Bo...
public class class_name { public DOMSource createDOMSource(DocumentSource src) { try { Constructor<? extends DOMSource> constr = getDOMSourceClass().getConstructor(DocumentSource.class); // depends on control dependency: [try], data = [none] return constr.newInstance(src); /...
public class class_name { private String format(String message, Object[] params) { if (params.length == 0) { return message; } else if (params.length == 1 && params[0] instanceof Throwable) { // We print only the message here since breaking exception will bubble up /...
public class class_name { private String format(String message, Object[] params) { if (params.length == 0) { return message; // depends on control dependency: [if], data = [none] } else if (params.length == 1 && params[0] instanceof Throwable) { // We print only the message here...
public class class_name { public static GrayU8 removePointNoise(GrayU8 input, GrayU8 output) { output = InputSanityCheck.checkDeclare(input, output); if( BoofConcurrency.USE_CONCURRENT ) { ImplBinaryInnerOps_MT.removePointNoise(input, output); } else { ImplBinaryInnerOps.removePointNoise(input, output); ...
public class class_name { public static GrayU8 removePointNoise(GrayU8 input, GrayU8 output) { output = InputSanityCheck.checkDeclare(input, output); if( BoofConcurrency.USE_CONCURRENT ) { ImplBinaryInnerOps_MT.removePointNoise(input, output); // depends on control dependency: [if], data = [none] } else { ...
public class class_name { public static void main(String[] args) throws Exception { boolean valid = true; boolean requiredArguments = false; String imageFormat = null; boolean rawImage = false; File inputDirectory = null; TileFormatType tileType = null; File geoPackageFile = null; String tileTable = ...
public class class_name { public static void main(String[] args) throws Exception { boolean valid = true; boolean requiredArguments = false; String imageFormat = null; boolean rawImage = false; File inputDirectory = null; TileFormatType tileType = null; File geoPackageFile = null; String tileTable = ...
public class class_name { public float nextPolar() { // If there's a saved value, return it. if (haveNextPolar) { haveNextPolar = false; return nextPolar; } float u1, u2, r; // point coordinates and their radius do { // u1...
public class class_name { public float nextPolar() { // If there's a saved value, return it. if (haveNextPolar) { haveNextPolar = false; // depends on control dependency: [if], data = [none] return nextPolar; // depends on control dependency: [if], data = [none] } ...
public class class_name { ArrayTagSet addAll(Tag[] ts, int tsLength) { if (tsLength == 0) { return this; } else if (length == 0) { Arrays.sort(ts, 0, tsLength, TAG_COMPARATOR); int len = dedup(ts, 0, ts, 0, tsLength); return new ArrayTagSet(toStringArray(ts, len)); } else { St...
public class class_name { ArrayTagSet addAll(Tag[] ts, int tsLength) { if (tsLength == 0) { return this; // depends on control dependency: [if], data = [none] } else if (length == 0) { Arrays.sort(ts, 0, tsLength, TAG_COMPARATOR); // depends on control dependency: [if], data = [none] int len ...
public class class_name { @Override public CommerceShippingMethod fetchByPrimaryKey(Serializable primaryKey) { Serializable serializable = entityCache.getResult(CommerceShippingMethodModelImpl.ENTITY_CACHE_ENABLED, CommerceShippingMethodImpl.class, primaryKey); if (serializable == nullModel) { return null...
public class class_name { @Override public CommerceShippingMethod fetchByPrimaryKey(Serializable primaryKey) { Serializable serializable = entityCache.getResult(CommerceShippingMethodModelImpl.ENTITY_CACHE_ENABLED, CommerceShippingMethodImpl.class, primaryKey); if (serializable == nullModel) { return null...
public class class_name { public EntityMetadata buildEntityMetadata(Class<?> clazz) { EntityMetadata metadata = new EntityMetadata(clazz); // validate(clazz); if (log.isDebugEnabled()) log.debug("Processing @Entity >> " + clazz); for (MetadataProcessor process...
public class class_name { public EntityMetadata buildEntityMetadata(Class<?> clazz) { EntityMetadata metadata = new EntityMetadata(clazz); // validate(clazz); if (log.isDebugEnabled()) log.debug("Processing @Entity >> " + clazz); for (MetadataProcessor process...
public class class_name { public static systembackup[] get(nitro_service service, String filename[]) throws Exception{ if (filename !=null && filename.length>0) { systembackup response[] = new systembackup[filename.length]; systembackup obj[] = new systembackup[filename.length]; for (int i=0;i<filename.leng...
public class class_name { public static systembackup[] get(nitro_service service, String filename[]) throws Exception{ if (filename !=null && filename.length>0) { systembackup response[] = new systembackup[filename.length]; systembackup obj[] = new systembackup[filename.length]; for (int i=0;i<filename.leng...
public class class_name { @SuppressWarnings("rawtypes") public static int prepareCollectionDataInContext( final String[] varparts, final Collection collection, final Map<String, Object> dataContext) { if (varparts.length == TieConstants.DEFAULT_COMMAND_PART_LENGTH) { int collectionIndex = Integer.pars...
public class class_name { @SuppressWarnings("rawtypes") public static int prepareCollectionDataInContext( final String[] varparts, final Collection collection, final Map<String, Object> dataContext) { if (varparts.length == TieConstants.DEFAULT_COMMAND_PART_LENGTH) { int collectionIndex = Integer.pars...
public class class_name { public AttributeDataset columns(String... cols) { Attribute[] attrs = new Attribute[cols.length]; int[] index = new int[cols.length]; for (int k = 0; k < cols.length; k++) { for (int j = 0; j < attributes.length; j++) { if (attributes[j].get...
public class class_name { public AttributeDataset columns(String... cols) { Attribute[] attrs = new Attribute[cols.length]; int[] index = new int[cols.length]; for (int k = 0; k < cols.length; k++) { for (int j = 0; j < attributes.length; j++) { if (attributes[j].get...
public class class_name { public static <T extends XMLObject> T createAttributeValueObject(Class<T> clazz) { try { QName schemaType = (QName) clazz.getDeclaredField("TYPE_NAME").get(null); return createAttributeValueObject(schemaType, clazz); } catch (NoSuchFieldException | IllegalArgumentExcep...
public class class_name { public static <T extends XMLObject> T createAttributeValueObject(Class<T> clazz) { try { QName schemaType = (QName) clazz.getDeclaredField("TYPE_NAME").get(null); return createAttributeValueObject(schemaType, clazz); // depends on control dependency: [try], data = [none] }...
public class class_name { public static char[] toChars(int codePoint) { if (isBmpCodePoint(codePoint)) { return new char[] { (char) codePoint }; } else if (isValidCodePoint(codePoint)) { char[] result = new char[2]; toSurrogates(codePoint, result, 0); ret...
public class class_name { public static char[] toChars(int codePoint) { if (isBmpCodePoint(codePoint)) { return new char[] { (char) codePoint }; // depends on control dependency: [if], data = [none] } else if (isValidCodePoint(codePoint)) { char[] result = new char[2]; ...
public class class_name { private void processViewAnnotations(final DeploymentUnit deploymentUnit, final Class<?> sessionBeanClass, final SessionBeanComponentDescription sessionBeanComponentDescription) throws DeploymentUnitProcessingException { final Collection<Class<?>> remoteBusinessInterfaces = this.getRem...
public class class_name { private void processViewAnnotations(final DeploymentUnit deploymentUnit, final Class<?> sessionBeanClass, final SessionBeanComponentDescription sessionBeanComponentDescription) throws DeploymentUnitProcessingException { final Collection<Class<?>> remoteBusinessInterfaces = this.getRem...
public class class_name { public boolean verify(byte [] signature, boolean truncation_ok) { byte [] expected = sign(); if (truncation_ok && signature.length < expected.length) { byte [] truncated = new byte[signature.length]; System.arraycopy(expected, 0, truncated, 0, truncated.length); expected = truncated; ...
public class class_name { public boolean verify(byte [] signature, boolean truncation_ok) { byte [] expected = sign(); if (truncation_ok && signature.length < expected.length) { byte [] truncated = new byte[signature.length]; System.arraycopy(expected, 0, truncated, 0, truncated.length); // depends on control de...
public class class_name { public void println(int tempIndent, String x) { if (startOfLine) { doIndent(tempIndent); } if (noNl) { super.print(x); } else { super.println(x); if (oNlCr) { super.write('\r'); } } startOfLine = true; } }
public class class_name { public void println(int tempIndent, String x) { if (startOfLine) { doIndent(tempIndent); // depends on control dependency: [if], data = [none] } if (noNl) { super.print(x); // depends on control dependency: [if], data = [none] } else { super.println(x); // d...
public class class_name { private Node tryFoldStringCharAt(Node n, Node stringNode, Node arg1) { checkArgument(n.isCall()); checkArgument(stringNode.isString()); int index; String stringAsString = stringNode.getString(); if (arg1 != null && arg1.isNumber() && arg1.getNext() == null) { ...
public class class_name { private Node tryFoldStringCharAt(Node n, Node stringNode, Node arg1) { checkArgument(n.isCall()); checkArgument(stringNode.isString()); int index; String stringAsString = stringNode.getString(); if (arg1 != null && arg1.isNumber() && arg1.getNext() == null) { ...
public class class_name { public void flushChildScopes(QName unitId) { Set<Integer> childScopes = findChildScopes(unitId); for(Integer scopeId : childScopes) { MutableContext mutableContext = statementContexts.get(scopeId); mutableContext.clearStatements(); } ...
public class class_name { public void flushChildScopes(QName unitId) { Set<Integer> childScopes = findChildScopes(unitId); for(Integer scopeId : childScopes) { MutableContext mutableContext = statementContexts.get(scopeId); mutableContext.clearStatements(); // depends on...
public class class_name { public Movie setLoop(final boolean loop) { getAttributes().setLoop(loop); if (null != m_video) { m_video.setLoop(loop); } return this; } }
public class class_name { public Movie setLoop(final boolean loop) { getAttributes().setLoop(loop); if (null != m_video) { m_video.setLoop(loop); // depends on control dependency: [if], data = [none] } return this; } }
public class class_name { protected void setByteArrayValue(byte[] input) { this.sValue = null; this.bValue = input; this.offset = 0; this.valueLength = input.length; if (ELEM_ADDED != this.status) { this.status = ELEM_CHANGED; } } }
public class class_name { protected void setByteArrayValue(byte[] input) { this.sValue = null; this.bValue = input; this.offset = 0; this.valueLength = input.length; if (ELEM_ADDED != this.status) { this.status = ELEM_CHANGED; // depends on control dependency: [if], ...
public class class_name { public void marshall(ListResourceDataSyncRequest listResourceDataSyncRequest, ProtocolMarshaller protocolMarshaller) { if (listResourceDataSyncRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { ...
public class class_name { public void marshall(ListResourceDataSyncRequest listResourceDataSyncRequest, ProtocolMarshaller protocolMarshaller) { if (listResourceDataSyncRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { ...
public class class_name { protected String getParameterString(Map<String, String> parameters, Class<? extends EndpointConfiguration> endpointConfigurationType) { StringBuilder paramString = new StringBuilder(); for (Map.Entry<String, String> parameterEntry : par...
public class class_name { protected String getParameterString(Map<String, String> parameters, Class<? extends EndpointConfiguration> endpointConfigurationType) { StringBuilder paramString = new StringBuilder(); for (Map.Entry<String, String> parameterEntry : par...
public class class_name { public Map<String, List<String>> getModuleDependencies() { if ((m_moduleDependencies == null) || m_moduleDependencies.isEmpty()) { try { // open the folder "/WEB-INF/packages/modules/" m_moduleDependencies = CmsModuleManager.buildDepsForAll...
public class class_name { public Map<String, List<String>> getModuleDependencies() { if ((m_moduleDependencies == null) || m_moduleDependencies.isEmpty()) { try { // open the folder "/WEB-INF/packages/modules/" m_moduleDependencies = CmsModuleManager.buildDepsForAll...
public class class_name { @Override public void process(WatchedEvent event) { logger.debug("recived event "+ event); if (event.getState() == KeeperState.Expired || event.getState() == KeeperState.Disconnected){ driver.setGoOn(false); shutdown(); } if (event.getType() == EventType.NodeData...
public class class_name { @Override public void process(WatchedEvent event) { logger.debug("recived event "+ event); if (event.getState() == KeeperState.Expired || event.getState() == KeeperState.Disconnected){ driver.setGoOn(false); // depends on control dependency: [if], data = [none] shutdown(...
public class class_name { public List<$.T2<String, String>> options(CommanderClassMetaInfo classMetaInfo, AppClassLoader classLoader) { List<$.T2<String, String>> retVal = new ArrayList<>(); for (CommandParamMetaInfo param : params) { OptionAnnoInfoBase opt = param.optionInfo(); ...
public class class_name { public List<$.T2<String, String>> options(CommanderClassMetaInfo classMetaInfo, AppClassLoader classLoader) { List<$.T2<String, String>> retVal = new ArrayList<>(); for (CommandParamMetaInfo param : params) { OptionAnnoInfoBase opt = param.optionInfo(); ...
public class class_name { public void updatePoi(final String BLIP_NAME, final Point2D LOCATION) { if (pois.keySet().contains(BLIP_NAME)) { pois.get(BLIP_NAME).setLocation(LOCATION); checkForBlips(); } } }
public class class_name { public void updatePoi(final String BLIP_NAME, final Point2D LOCATION) { if (pois.keySet().contains(BLIP_NAME)) { pois.get(BLIP_NAME).setLocation(LOCATION); // depends on control dependency: [if], data = [none] checkForBlips(); // depends on control dependency: ...
public class class_name { public List<ListenerType<TldTaglibType<T>>> getAllListener() { List<ListenerType<TldTaglibType<T>>> list = new ArrayList<ListenerType<TldTaglibType<T>>>(); List<Node> nodeList = childNode.get("listener"); for(Node node: nodeList) { ListenerType<TldTaglibTyp...
public class class_name { public List<ListenerType<TldTaglibType<T>>> getAllListener() { List<ListenerType<TldTaglibType<T>>> list = new ArrayList<ListenerType<TldTaglibType<T>>>(); List<Node> nodeList = childNode.get("listener"); for(Node node: nodeList) { ListenerType<TldTaglibTyp...
public class class_name { IPortletDefinition unmarshall(ExternalPortletDefinition epd) { final PortletDescriptor portletDescriptor = epd.getPortletDescriptor(); final Boolean isFramework = portletDescriptor.isIsFramework(); if (isFramework != null && isFramework ...
public class class_name { IPortletDefinition unmarshall(ExternalPortletDefinition epd) { final PortletDescriptor portletDescriptor = epd.getPortletDescriptor(); final Boolean isFramework = portletDescriptor.isIsFramework(); if (isFramework != null && isFramework ...
public class class_name { public static BuildDocHandler fromDirectoryAndJar( File directory, JarFile jarFile, String base, boolean fallbackToJar) { FileRepository fileRepo = new FilesystemRepository(directory); FileRepository jarRepo = new JarRepository(jarFile, Option.apply(base)); FileRepository ma...
public class class_name { public static BuildDocHandler fromDirectoryAndJar( File directory, JarFile jarFile, String base, boolean fallbackToJar) { FileRepository fileRepo = new FilesystemRepository(directory); FileRepository jarRepo = new JarRepository(jarFile, Option.apply(base)); FileRepository ma...
public class class_name { public void addHeader(String name, String value) { if(logger.isDebugEnabled()) { logger.debug("addHeader - name=" + name + ", value=" + value); } checkCommitted(); addHeaderInternal(name, value, false); } }
public class class_name { public void addHeader(String name, String value) { if(logger.isDebugEnabled()) { logger.debug("addHeader - name=" + name + ", value=" + value); // depends on control dependency: [if], data = [none] } checkCommitted(); addHeaderInternal(name, value, false); } }
public class class_name { public static Object getAggAttribute(Map<String,?> map ,String metrics,String attribute){ if(map != null) { Map<String, Object> metrics_ = (Map<String, Object>) map.get(metrics); if (metrics_ != null) { return metrics_.get(attribute); } } return null; } }
public class class_name { public static Object getAggAttribute(Map<String,?> map ,String metrics,String attribute){ if(map != null) { Map<String, Object> metrics_ = (Map<String, Object>) map.get(metrics); if (metrics_ != null) { return metrics_.get(attribute); // depends on control dependency: [if], data =...