code
stringlengths
130
281k
code_dependency
stringlengths
182
306k
public class class_name { private boolean getBooleanProperty(String key, String defaultValue, StringBuilder errors) { boolean booleanValue = false; String stringValue = null; boolean valueCorrect = false; // Pull the key from the property map Object objectValue = this.propertie...
public class class_name { private boolean getBooleanProperty(String key, String defaultValue, StringBuilder errors) { boolean booleanValue = false; String stringValue = null; boolean valueCorrect = false; // Pull the key from the property map Object objectValue = this.propertie...
public class class_name { public static Method tryGetMethod(String id) { if (id.length() != NAME_LEN) { // we use it to fast discard the request without doing map lookup return null; } return idToMethod.get(id); } }
public class class_name { public static Method tryGetMethod(String id) { if (id.length() != NAME_LEN) { // we use it to fast discard the request without doing map lookup return null; // depends on control dependency: [if], data = [none] } return idToMethod.get(id); } }
public class class_name { @Override public String fromComponentNameToPartOfClassName(final String componentName) { if (componentName == null) { throw new EmptyRuntimeException("componentName"); } String[] names = LdiStringUtil.split(componentName, PACKAGE_SEPARATOR_STR); ...
public class class_name { @Override public String fromComponentNameToPartOfClassName(final String componentName) { if (componentName == null) { throw new EmptyRuntimeException("componentName"); } String[] names = LdiStringUtil.split(componentName, PACKAGE_SEPARATOR_STR); ...
public class class_name { public String getParent() { int length = path.length(), firstInPath = 0; if (separatorChar == '\\' && length > 2 && path.charAt(1) == ':') { firstInPath = 2; } int index = path.lastIndexOf(separatorChar); if (index == -1 && firstInPath > 0) ...
public class class_name { public String getParent() { int length = path.length(), firstInPath = 0; if (separatorChar == '\\' && length > 2 && path.charAt(1) == ':') { firstInPath = 2; // depends on control dependency: [if], data = [none] } int index = path.lastIndexOf(separa...
public class class_name { public static DiscordianDate from(TemporalAccessor temporal) { if (temporal instanceof DiscordianDate) { return (DiscordianDate) temporal; } return DiscordianDate.ofEpochDay(temporal.getLong(EPOCH_DAY)); } }
public class class_name { public static DiscordianDate from(TemporalAccessor temporal) { if (temporal instanceof DiscordianDate) { return (DiscordianDate) temporal; // depends on control dependency: [if], data = [none] } return DiscordianDate.ofEpochDay(temporal.getLong(EPOCH_DAY));...
public class class_name { @Override public List<EntityDeclaration> getEntities() { if (mEntities == null && (mSubset != null)) { /* Better make a copy, so that caller can not modify list * DTD has, which may be shared (since DTD subset instances * are cached and re...
public class class_name { @Override public List<EntityDeclaration> getEntities() { if (mEntities == null && (mSubset != null)) { /* Better make a copy, so that caller can not modify list * DTD has, which may be shared (since DTD subset instances * are cached and re...
public class class_name { private Collection<SSTableReader> doAntiCompaction(ColumnFamilyStore cfs, Collection<Range<Token>> ranges, Collection<SSTableReader> repairedSSTables, long repairedAt) { List<SSTableReader> anticompactedSSTables = new ArrayList<>(); int repairedKeyCount = 0; int un...
public class class_name { private Collection<SSTableReader> doAntiCompaction(ColumnFamilyStore cfs, Collection<Range<Token>> ranges, Collection<SSTableReader> repairedSSTables, long repairedAt) { List<SSTableReader> anticompactedSSTables = new ArrayList<>(); int repairedKeyCount = 0; int un...
public class class_name { private void handleShutdownQueue() throws IOException { for (MemcachedNode qa : nodesToShutdown) { if (!addedQueue.contains(qa)) { nodesToShutdown.remove(qa); metrics.decrementCounter(SHUTD_QUEUE_METRIC); Collection<Operation> notCompletedOperations = qa.dest...
public class class_name { private void handleShutdownQueue() throws IOException { for (MemcachedNode qa : nodesToShutdown) { if (!addedQueue.contains(qa)) { nodesToShutdown.remove(qa); // depends on control dependency: [if], data = [none] metrics.decrementCounter(SHUTD_QUEUE_METRIC); // depen...
public class class_name { private ResourceXMLParser.Entity createEntity(final INodeEntry node) { final ResourceXMLParser.Entity ent = new ResourceXMLParser.Entity(); ent.setName(node.getNodename()); ent.setResourceType(NODE_ENTITY_TAG); if(null!=node.getAttributes()){ ...
public class class_name { private ResourceXMLParser.Entity createEntity(final INodeEntry node) { final ResourceXMLParser.Entity ent = new ResourceXMLParser.Entity(); ent.setName(node.getNodename()); ent.setResourceType(NODE_ENTITY_TAG); if(null!=node.getAttributes()){ ...
public class class_name { protected void addItem(ItemState item) { index.put(item.getData().getIdentifier(), item); index.put(item.getData().getQPath(), item); index.put(new ParentIDQPathBasedKey(item), item); index.put(new IDStateBasedKey(item.getData().getIdentifier(), item.getState()), it...
public class class_name { protected void addItem(ItemState item) { index.put(item.getData().getIdentifier(), item); index.put(item.getData().getQPath(), item); index.put(new ParentIDQPathBasedKey(item), item); index.put(new IDStateBasedKey(item.getData().getIdentifier(), item.getState()), it...
public class class_name { public int handleOpenGroup() { int result = errOK; this.openGroupCount++; // stats this.groupLevel++; // current group level in tokeniser this.docGroupLevel++; // current group level in document if (this.getTokeniserState() == TOKENISER_SKIP_GROUP) { this.groupSkippedCoun...
public class class_name { public int handleOpenGroup() { int result = errOK; this.openGroupCount++; // stats this.groupLevel++; // current group level in tokeniser this.docGroupLevel++; // current group level in document if (this.getTokeniserState() == TOKENISER_SKIP_GROUP) { this.groupSkippedCoun...
public class class_name { public static String[] trimItems(String[] arr) { for (int i = 0; i < arr.length; i++) { arr[i] = arr[i].trim(); } return arr; } }
public class class_name { public static String[] trimItems(String[] arr) { for (int i = 0; i < arr.length; i++) { arr[i] = arr[i].trim(); // depends on control dependency: [for], data = [i] } return arr; } }
public class class_name { public List<PropertyData> getChildPropertiesData(NodeData parent, List<QPathEntryFilter> itemDataFilters) throws RepositoryException { long start = 0; if (LOG.isDebugEnabled()) { start = System.currentTimeMillis(); LOG.debug("getChildPropertiesData...
public class class_name { public List<PropertyData> getChildPropertiesData(NodeData parent, List<QPathEntryFilter> itemDataFilters) throws RepositoryException { long start = 0; if (LOG.isDebugEnabled()) { start = System.currentTimeMillis(); LOG.debug("getChildPropertiesData...
public class class_name { public String getBasePath() { if (basePath == null) { try { basePath = getMainClass().getProtectionDomain().getCodeSource().getLocation().getPath(); int lastIndex = basePath.lastIndexOf('/'); if (lastIndex < 0) { ...
public class class_name { public String getBasePath() { if (basePath == null) { try { basePath = getMainClass().getProtectionDomain().getCodeSource().getLocation().getPath(); // depends on control dependency: [try], data = [none] int lastIndex = basePath.lastIndexOf(...
public class class_name { public static Token parseToken(byte[] secret, String token) { Token tk = new Token(); if (S.blank(token)) return tk; String s = ""; try { s = Crypto.decryptAES(token, secret); } catch (Exception e) { return tk; } ...
public class class_name { public static Token parseToken(byte[] secret, String token) { Token tk = new Token(); if (S.blank(token)) return tk; String s = ""; try { s = Crypto.decryptAES(token, secret); // depends on control dependency: [try], data = [none] } catch (E...
public class class_name { public static Collection<InetAddress> getAllByName(String host, boolean allowIPv6) { Enumeration<NetworkInterface> networkInterfaces = cloneInterfaces(ResolutionUtils.networkInterfaces); List<String> resolvedAddresses = resolveDeviceAddress(host, networkInterfaces, allowIPv6); ...
public class class_name { public static Collection<InetAddress> getAllByName(String host, boolean allowIPv6) { Enumeration<NetworkInterface> networkInterfaces = cloneInterfaces(ResolutionUtils.networkInterfaces); List<String> resolvedAddresses = resolveDeviceAddress(host, networkInterfaces, allowIPv6); ...
public class class_name { public void setId(long id) { // Find the enumeration node for this enumeration value. EnumerationNode node = null; // Check if the attribute class has been finalized yet. if (attributeClass.finalized) { // Fetch the string value from th...
public class class_name { public void setId(long id) { // Find the enumeration node for this enumeration value. EnumerationNode node = null; // Check if the attribute class has been finalized yet. if (attributeClass.finalized) { // Fetch the string value from th...
public class class_name { public static Configuration getConfiguration() { if(configuration == null){ try { configuration = (Configuration) getContext().getBean("configuration"); } catch (BeansException e) { LOGGER.error("Can't load config. Error: {}",e ,e);...
public class class_name { public static Configuration getConfiguration() { if(configuration == null){ try { configuration = (Configuration) getContext().getBean("configuration"); // depends on control dependency: [try], data = [none] } catch (BeansException e) { ...
public class class_name { public static Ipv6 parse(final String ipv6Address) { try { String ipv6String = Validate.notNull(ipv6Address).trim(); Validate.isTrue(!ipv6String.isEmpty()); final boolean isIpv6AddressWithEmbeddedIpv4 = ipv6String.contains("."); if (isI...
public class class_name { public static Ipv6 parse(final String ipv6Address) { try { String ipv6String = Validate.notNull(ipv6Address).trim(); Validate.isTrue(!ipv6String.isEmpty()); // depends on control dependency: [try], data = [none] final boolean isIpv6AddressWithEmbed...
public class class_name { @Override public void delete(String key) { final String KEY = calcCacheKey(key); try { if (keyMode == KeyMode.HASH) { getJedis().hdel(getName(), KEY); } else { getJedis().del(KEY); } } catch (Excep...
public class class_name { @Override public void delete(String key) { final String KEY = calcCacheKey(key); try { if (keyMode == KeyMode.HASH) { getJedis().hdel(getName(), KEY); // depends on control dependency: [if], data = [none] } else { get...
public class class_name { public String getName(int ch, int choice) { if (ch < UCharacter.MIN_VALUE || ch > UCharacter.MAX_VALUE || choice > UCharacterNameChoice.CHAR_NAME_CHOICE_COUNT) { return null; } String result = null; result = getAlgName(ch, choice);...
public class class_name { public String getName(int ch, int choice) { if (ch < UCharacter.MIN_VALUE || ch > UCharacter.MAX_VALUE || choice > UCharacterNameChoice.CHAR_NAME_CHOICE_COUNT) { return null; // depends on control dependency: [if], data = [none] } String re...
public class class_name { public void updateFrontFacingRotation(float rotation) { if (!Float.isNaN(rotation) && !equal(rotation, frontFacingRotation)) { final float oldRotation = frontFacingRotation; frontFacingRotation = rotation % 360; for (OnFrontRotationChangedListener l...
public class class_name { public void updateFrontFacingRotation(float rotation) { if (!Float.isNaN(rotation) && !equal(rotation, frontFacingRotation)) { final float oldRotation = frontFacingRotation; frontFacingRotation = rotation % 360; // depends on control dependency: [if], data = [n...
public class class_name { public AnnotationVisitor visitParameterAnnotation(int parameter, String desc, boolean visible) { if (mv != null) { return mv.visitParameterAnnotation(parameter, desc, visible); } return null; } }
public class class_name { public AnnotationVisitor visitParameterAnnotation(int parameter, String desc, boolean visible) { if (mv != null) { return mv.visitParameterAnnotation(parameter, desc, visible); // depends on control dependency: [if], data = [none] } return null;...
public class class_name { private Object[] stubWaitForResult(Stub stub, long waitTime) throws ExecutionException, InterruptedException, RemoteException { // F16043 while (true) { if (!Util.isLocal(stub)) { org.omg.CORBA_2_3.portable.InputStream in = null; ...
public class class_name { private Object[] stubWaitForResult(Stub stub, long waitTime) throws ExecutionException, InterruptedException, RemoteException { // F16043 while (true) { if (!Util.isLocal(stub)) { org.omg.CORBA_2_3.portable.InputStream in = null; ...
public class class_name { public boolean eq(IntIntSortedVector other) { // This is slow, but correct. IntIntSortedVector v1 = IntIntSortedVector.getWithNoZeroValues(this); IntIntSortedVector v2 = IntIntSortedVector.getWithNoZeroValues(other); if (v2.size() != v1.size())...
public class class_name { public boolean eq(IntIntSortedVector other) { // This is slow, but correct. IntIntSortedVector v1 = IntIntSortedVector.getWithNoZeroValues(this); IntIntSortedVector v2 = IntIntSortedVector.getWithNoZeroValues(other); if (v2.size() != v1.size())...
public class class_name { public static void logout() { GwtCommandDispatcher dispatcher = GwtCommandDispatcher.getInstance(); if (null != dispatcher.getUserToken()) { GwtCommand command = new GwtCommand(LogoutRequest.COMMAND); dispatcher.logout(); dispatcher.execute(command); } } }
public class class_name { public static void logout() { GwtCommandDispatcher dispatcher = GwtCommandDispatcher.getInstance(); if (null != dispatcher.getUserToken()) { GwtCommand command = new GwtCommand(LogoutRequest.COMMAND); dispatcher.logout(); // depends on control dependency: [if], data = [none] disp...
public class class_name { protected void issueDepthIntervalMessage(long depth) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "issueDepthIntervalMessage", new Long(depth)); if(destinationHandler.isLink()) { // {0} messages queued for transmission from...
public class class_name { protected void issueDepthIntervalMessage(long depth) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "issueDepthIntervalMessage", new Long(depth)); if(destinationHandler.isLink()) { // {0} messages queued for transmission from...
public class class_name { public void authenticate() { URL url; try { url = new URL(this.getTokenURL()); } catch (MalformedURLException e) { assert false : "An invalid token URL indicates a bug in the SDK."; throw new RuntimeException("An invalid token URL in...
public class class_name { public void authenticate() { URL url; try { url = new URL(this.getTokenURL()); // depends on control dependency: [try], data = [none] } catch (MalformedURLException e) { assert false : "An invalid token URL indicates a bug in the SDK."; ...
public class class_name { public T execute(final Task<T> taskToWrap) throws DevFailed { int triesLeft = tries; do { try { return taskToWrap.call(); } catch (final DevFailed e) { triesLeft--; // Are we allowed to try again? ...
public class class_name { public T execute(final Task<T> taskToWrap) throws DevFailed { int triesLeft = tries; do { try { return taskToWrap.call(); // depends on control dependency: [try], data = [none] } catch (final DevFailed e) { triesLeft--; ...
public class class_name { private static void resetMapperForThrift(boolean isCql3Enabled) { if (isCql3Enabled) { validationClassMapper.put(Byte.class, BytesType.class); validationClassMapper.put(byte.class, BytesType.class); validationClassMapper.put(Short.class,...
public class class_name { private static void resetMapperForThrift(boolean isCql3Enabled) { if (isCql3Enabled) { validationClassMapper.put(Byte.class, BytesType.class); // depends on control dependency: [if], data = [none] validationClassMapper.put(byte.class, BytesType.clas...
public class class_name { public static Class<?>[] toClassesFromObjects(final Object[] params) { final Class<?>[] classes = new Class<?>[params.length]; int i = 0; for (final Object object : params) { if (object != null) { classes[i++] = object.getClass(); } else { classes[i++] = Object.clas...
public class class_name { public static Class<?>[] toClassesFromObjects(final Object[] params) { final Class<?>[] classes = new Class<?>[params.length]; int i = 0; for (final Object object : params) { if (object != null) { classes[i++] = object.getClass(); // depends on control dependency: [if], dat...
public class class_name { public PoolEnableAutoScaleOptions withIfUnmodifiedSince(DateTime ifUnmodifiedSince) { if (ifUnmodifiedSince == null) { this.ifUnmodifiedSince = null; } else { this.ifUnmodifiedSince = new DateTimeRfc1123(ifUnmodifiedSince); } return this...
public class class_name { public PoolEnableAutoScaleOptions withIfUnmodifiedSince(DateTime ifUnmodifiedSince) { if (ifUnmodifiedSince == null) { this.ifUnmodifiedSince = null; // depends on control dependency: [if], data = [none] } else { this.ifUnmodifiedSince = new DateTimeRfc...
public class class_name { public static long ipToLong(String ip) { if (!isValidIp(ip)) { throw new IllegalArgumentException("Invalid IP address: " + ip); } long result = 0; String[] ipArr = ip.split("\\."); for (int i = 3; i >= 0; i--) { long part = Long...
public class class_name { public static long ipToLong(String ip) { if (!isValidIp(ip)) { throw new IllegalArgumentException("Invalid IP address: " + ip); } long result = 0; String[] ipArr = ip.split("\\."); for (int i = 3; i >= 0; i--) { long part = Long...
public class class_name { static String extractStyle(String style, String attribute) { if (style == null) { return ""; } StringTokenizer tokens = new StringTokenizer(style,";"); while (tokens.hasMoreTokens()) { String token = tokens.nextToken(); String key = token.substring(0,token.inde...
public class class_name { static String extractStyle(String style, String attribute) { if (style == null) { return ""; // depends on control dependency: [if], data = [none] } StringTokenizer tokens = new StringTokenizer(style,";"); while (tokens.hasMoreTokens()) { String token = tokens.next...
public class class_name { private void expand(int newCapacity) { byte[][] newNamesAndValues = new byte[newCapacity][]; if (!isEmpty()) { System.arraycopy(namesAndValues, 0, newNamesAndValues, 0, len()); } namesAndValues = newNamesAndValues; } }
public class class_name { private void expand(int newCapacity) { byte[][] newNamesAndValues = new byte[newCapacity][]; if (!isEmpty()) { System.arraycopy(namesAndValues, 0, newNamesAndValues, 0, len()); // depends on control dependency: [if], data = [none] } namesAndValues = newNamesAndValues; ...
public class class_name { private void showSystemMenu() { Insets insets = frame.getInsets(); if (!frame.isIcon()) { systemPopupMenu.show(frame, insets.left, getY() + getHeight()); } else { systemPopupMenu.show(menuButton, getX() - insets.left - insets.right, ...
public class class_name { private void showSystemMenu() { Insets insets = frame.getInsets(); if (!frame.isIcon()) { systemPopupMenu.show(frame, insets.left, getY() + getHeight()); // depends on control dependency: [if], data = [none] } else { systemPopupMenu.show(menuBu...
public class class_name { public DBInstance withDBParameterGroups(DBParameterGroupStatus... dBParameterGroups) { if (this.dBParameterGroups == null) { setDBParameterGroups(new java.util.ArrayList<DBParameterGroupStatus>(dBParameterGroups.length)); } for (DBParameterGroupStatus ele :...
public class class_name { public DBInstance withDBParameterGroups(DBParameterGroupStatus... dBParameterGroups) { if (this.dBParameterGroups == null) { setDBParameterGroups(new java.util.ArrayList<DBParameterGroupStatus>(dBParameterGroups.length)); // depends on control dependency: [if], data = [non...
public class class_name { public static Minutes minutesIn(ReadableInterval interval) { if (interval == null) { return Minutes.ZERO; } int amount = BaseSingleFieldPeriod.between(interval.getStart(), interval.getEnd(), DurationFieldType.minutes()); return Minutes.minutes(amo...
public class class_name { public static Minutes minutesIn(ReadableInterval interval) { if (interval == null) { return Minutes.ZERO; // depends on control dependency: [if], data = [none] } int amount = BaseSingleFieldPeriod.between(interval.getStart(), interval.getEnd(), DurationFi...
public class class_name { public void prapareForInferred() { log.info("Adding additional axioms to calculate inferred axioms"); int key = 0; int numNf3 = 0; int numNf8 = 0; for(final IntIterator itr = ontologyNF2.keyIterator(); itr.hasNext();) { MonotonicCol...
public class class_name { public void prapareForInferred() { log.info("Adding additional axioms to calculate inferred axioms"); int key = 0; int numNf3 = 0; int numNf8 = 0; for(final IntIterator itr = ontologyNF2.keyIterator(); itr.hasNext();) { MonotonicCol...
public class class_name { @Override protected Object createPoolOrConnection() { PersistenceUnitMetadata persistenceUnitMetadata = kunderaMetadata.getApplicationMetadata() .getPersistenceUnitMetadata(getPersistenceUnit()); Properties props = persistenceUnitMetadata.getProperties...
public class class_name { @Override protected Object createPoolOrConnection() { PersistenceUnitMetadata persistenceUnitMetadata = kunderaMetadata.getApplicationMetadata() .getPersistenceUnitMetadata(getPersistenceUnit()); Properties props = persistenceUnitMetadata.getProperties...
public class class_name { public void marshall(DescribeConfigurationRequest describeConfigurationRequest, ProtocolMarshaller protocolMarshaller) { if (describeConfigurationRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { ...
public class class_name { public void marshall(DescribeConfigurationRequest describeConfigurationRequest, ProtocolMarshaller protocolMarshaller) { if (describeConfigurationRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { ...
public class class_name { private void recvAlert() throws IOException { byte level = (byte)inputRecord.read(); byte description = (byte)inputRecord.read(); if (description == -1) { // check for short message fatal(Alerts.alert_illegal_parameter, "Short alert message"); } ...
public class class_name { private void recvAlert() throws IOException { byte level = (byte)inputRecord.read(); byte description = (byte)inputRecord.read(); if (description == -1) { // check for short message fatal(Alerts.alert_illegal_parameter, "Short alert message"); } ...
public class class_name { public FieldAccessor create(final Method method) { ArgUtils.notNull(method, "method"); final FieldAccessor accessor = new FieldAccessor(); final String methodName = method.getName(); if(ClassUtils.isGetterMethod(method) || ClassUtils.isBooleanGetterMe...
public class class_name { public FieldAccessor create(final Method method) { ArgUtils.notNull(method, "method"); final FieldAccessor accessor = new FieldAccessor(); final String methodName = method.getName(); if(ClassUtils.isGetterMethod(method) || ClassUtils.isBooleanGetterMe...
public class class_name { public void printOb(int row, int col) { int stnIndex = (getFileSubType().equals(CLIMATE)) ? row : col; List<GempakStation> stations = getStations(); if (stations.isEmpty() || stnIndex > stations.size()) { System.out.println("\nNo data available"...
public class class_name { public void printOb(int row, int col) { int stnIndex = (getFileSubType().equals(CLIMATE)) ? row : col; List<GempakStation> stations = getStations(); if (stations.isEmpty() || stnIndex > stations.size()) { System.out.println("\nNo data available"...
public class class_name { @SuppressWarnings("unchecked") static <T> TypeInfoImpl<T> typeInfoFor(Class<T> sourceType, InheritingConfiguration configuration) { TypeInfoKey pair = new TypeInfoKey(sourceType, configuration); TypeInfoImpl<T> typeInfo = (TypeInfoImpl<T>) cache.get(pair); if (typeInfo == ...
public class class_name { @SuppressWarnings("unchecked") static <T> TypeInfoImpl<T> typeInfoFor(Class<T> sourceType, InheritingConfiguration configuration) { TypeInfoKey pair = new TypeInfoKey(sourceType, configuration); TypeInfoImpl<T> typeInfo = (TypeInfoImpl<T>) cache.get(pair); if (typeInfo == ...
public class class_name { public static byte[] readRAM(final File f) throws IOException { final int total = (int) f.length(); final byte[] ret = new byte[total]; final InputStream in = new FileInputStream(f); try { int offset = 0; int read = 0; do { read = in.read(ret, offset,...
public class class_name { public static byte[] readRAM(final File f) throws IOException { final int total = (int) f.length(); final byte[] ret = new byte[total]; final InputStream in = new FileInputStream(f); try { int offset = 0; int read = 0; do { read = in.read(ret, offset,...
public class class_name { public Snapshot withRestorableNodeTypes(String... restorableNodeTypes) { if (this.restorableNodeTypes == null) { setRestorableNodeTypes(new com.amazonaws.internal.SdkInternalList<String>(restorableNodeTypes.length)); } for (String ele : restorableNodeTypes)...
public class class_name { public Snapshot withRestorableNodeTypes(String... restorableNodeTypes) { if (this.restorableNodeTypes == null) { setRestorableNodeTypes(new com.amazonaws.internal.SdkInternalList<String>(restorableNodeTypes.length)); // depends on control dependency: [if], data = [none] ...
public class class_name { private CmsResource getResource(CmsObject cms, String resourcename, CmsResourceFilter filter) { CmsResource res = null; try { res = cms.readResource( CmsResourceWrapperUtils.removeFileExtension(cms, resourcename, getExtension()), f...
public class class_name { private CmsResource getResource(CmsObject cms, String resourcename, CmsResourceFilter filter) { CmsResource res = null; try { res = cms.readResource( CmsResourceWrapperUtils.removeFileExtension(cms, resourcename, getExtension()), f...
public class class_name { public Result<Integer> updateSlicedFindPath(int maxIter) { if (!m_query.status.isInProgress()) { return Result.of(m_query.status, 0); } // Make sure the request is still valid. if (!m_nav.isValidPolyRef(m_query.startRef) || !m_nav.isValidPolyRef(m_...
public class class_name { public Result<Integer> updateSlicedFindPath(int maxIter) { if (!m_query.status.isInProgress()) { return Result.of(m_query.status, 0); // depends on control dependency: [if], data = [none] } // Make sure the request is still valid. if (!m_nav.isVali...
public class class_name { private static byte[] extract(byte[] result, int length) { if (length == result.length) { return result; } else { byte[] trunc = new byte[length]; System.arraycopy(result, 0, trunc, 0, length); return trunc; } } }
public class class_name { private static byte[] extract(byte[] result, int length) { if (length == result.length) { return result; // depends on control dependency: [if], data = [none] } else { byte[] trunc = new byte[length]; System.arraycopy(result, 0, trunc, 0, length); // depends on contr...
public class class_name { public static boolean isPermanent(ResourceModel resourceModel) { Object resource = resourceModel.getResource(); try { return (Boolean) resource; } catch (ClassCastException e) { return false; } } }
public class class_name { public static boolean isPermanent(ResourceModel resourceModel) { Object resource = resourceModel.getResource(); try { return (Boolean) resource; // depends on control dependency: [try], data = [none] } catch (ClassCastException e) { return false...
public class class_name { private void processSecurityIdentity(BeanMetaData bmd) { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) { Tr.entry(tc, "processSecurityIdentity"); } EnterpriseBean ejbBean = bmd.wccm.enterprise...
public class class_name { private void processSecurityIdentity(BeanMetaData bmd) { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) { Tr.entry(tc, "processSecurityIdentity"); // depends on control dependency: [if], data = [none] ...
public class class_name { public void updateProgressRate(long currentTime) { double bestProgressRate = 0; for (TaskStatus ts : taskStatuses.values()){ if (ts.getRunState() == TaskStatus.State.RUNNING || ts.getRunState() == TaskStatus.State.SUCCEEDED || ts.getRunState() == TaskStat...
public class class_name { public void updateProgressRate(long currentTime) { double bestProgressRate = 0; for (TaskStatus ts : taskStatuses.values()){ if (ts.getRunState() == TaskStatus.State.RUNNING || ts.getRunState() == TaskStatus.State.SUCCEEDED || ts.getRunState() == TaskStat...
public class class_name { public static String getPackageCanonicalName(final Class<?> cls) { if (cls == null) { return StringUtils.EMPTY; } return getPackageCanonicalName(cls.getName()); } }
public class class_name { public static String getPackageCanonicalName(final Class<?> cls) { if (cls == null) { return StringUtils.EMPTY; // depends on control dependency: [if], data = [none] } return getPackageCanonicalName(cls.getName()); } }
public class class_name { public OMVRBTreeEntry<K, V> getPreviousInMemory() { OMVRBTreeEntry<K, V> t = this; OMVRBTreeEntry<K, V> p = null; if (t.getLeftInMemory() != null) { p = t.getLeftInMemory(); while (p.getRightInMemory() != null) p = p.getRightInMemory(); } else { ...
public class class_name { public OMVRBTreeEntry<K, V> getPreviousInMemory() { OMVRBTreeEntry<K, V> t = this; OMVRBTreeEntry<K, V> p = null; if (t.getLeftInMemory() != null) { p = t.getLeftInMemory(); // depends on control dependency: [if], data = [none] while (p.getRightInMemory() != nul...
public class class_name { @NullSafe public static int sum(final int... numbers) { int sum = 0; if (numbers != null) { for (int number : numbers) { sum += number; } } return sum; } }
public class class_name { @NullSafe public static int sum(final int... numbers) { int sum = 0; if (numbers != null) { for (int number : numbers) { sum += number; // depends on control dependency: [for], data = [number] } } return sum; } }
public class class_name { @Override public Object remove(String name) { final HttpSession session = this.getPortalSesion(false); if (session == null) { return null; } final Object sessionMutex = WebUtils.getSessionMutex(session); synchronized (sessionMutex) { ...
public class class_name { @Override public Object remove(String name) { final HttpSession session = this.getPortalSesion(false); if (session == null) { return null; // depends on control dependency: [if], data = [none] } final Object sessionMutex = WebUtils.getSessionMu...
public class class_name { @SuppressWarnings("unchecked") public void setDefaults(Class<T> realClass) { this.realClass = realClass; this.keyDef = new KeyDefinition(); // find the "effective" class - skipping up the hierarchy over inner classes effectiveClass = realClass; boolean entityFound; ...
public class class_name { @SuppressWarnings("unchecked") public void setDefaults(Class<T> realClass) { this.realClass = realClass; this.keyDef = new KeyDefinition(); // find the "effective" class - skipping up the hierarchy over inner classes effectiveClass = realClass; boolean entityFound; ...
public class class_name { @Override public boolean hasNext() { if (next == null) { try { next = readNextFromStream(); } catch (Exception e) { throw new RuntimeException("Failed to receive next element: " + e.getMessage(), e); } } return next != null; } }
public class class_name { @Override public boolean hasNext() { if (next == null) { try { next = readNextFromStream(); // depends on control dependency: [try], data = [none] } catch (Exception e) { throw new RuntimeException("Failed to receive next element: " + e.getMessage(), e); } // depends on co...
public class class_name { public static ServerAddress fromString(String string) { String tokens[] = string.split(":"); if (tokens.length == 1) { return new ServerAddress(tokens[0], null); } return new ServerAddress(tokens[0], Integer.valueOf(tokens[1])); } }
public class class_name { public static ServerAddress fromString(String string) { String tokens[] = string.split(":"); if (tokens.length == 1) { return new ServerAddress(tokens[0], null); // depends on control dependency: [if], data = [none] } return new ServerAddress(tokens[0], Integer.valueOf(t...
public class class_name { public void stop() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "CommsInboundChain Stop"); //stopchain() first quiesce's(invokes chainQuiesced) depending on the chainQuiesceTimeOut //Once the chain is quiesced StopChai...
public class class_name { public void stop() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "CommsInboundChain Stop"); //stopchain() first quiesce's(invokes chainQuiesced) depending on the chainQuiesceTimeOut //Once the chain is quiesced StopChai...
public class class_name { @SuppressWarnings("rawtypes") @Override public storm.trident.spout.ITridentSpout.Emitter<Object> getEmitter(String txStateId, Map conf, TopologyContext context) { DrpcTridentEmitter emitter = null; try { emitter = this.emitterClassT...
public class class_name { @SuppressWarnings("rawtypes") @Override public storm.trident.spout.ITridentSpout.Emitter<Object> getEmitter(String txStateId, Map conf, TopologyContext context) { DrpcTridentEmitter emitter = null; try { emitter = this.emitterClassT...
public class class_name { private void doGCMRefresh() { final DeviceInfo _deviceInfo = this.deviceInfo; postAsyncSafely("GcmManager#doGCMRefresh", new Runnable() { @Override public void run() { try { if(getConfig().isAnalyticsOnly()){ ...
public class class_name { private void doGCMRefresh() { final DeviceInfo _deviceInfo = this.deviceInfo; postAsyncSafely("GcmManager#doGCMRefresh", new Runnable() { @Override public void run() { try { if(getConfig().isAnalyticsOnly()){ ...
public class class_name { public static void mult(ZMatrixRMaj a, ZMatrixRMaj b, ZMatrixRMaj c) { if( b.numCols >= EjmlParameters.CMULT_COLUMN_SWITCH) { MatrixMatrixMult_ZDRM.mult_reorder(a, b, c); } else { MatrixMatrixMult_ZDRM.mult_small(a, b, c); } } }
public class class_name { public static void mult(ZMatrixRMaj a, ZMatrixRMaj b, ZMatrixRMaj c) { if( b.numCols >= EjmlParameters.CMULT_COLUMN_SWITCH) { MatrixMatrixMult_ZDRM.mult_reorder(a, b, c); // depends on control dependency: [if], data = [none] } else { MatrixMatrixMul...
public class class_name { public void useProfile(final String profile) { if (profile == null) { return; } if (this.enabledProfiles == null) { this.enabledProfiles = new HashSet<>(); } this.enabledProfiles.add(profile); } }
public class class_name { public void useProfile(final String profile) { if (profile == null) { return; // depends on control dependency: [if], data = [none] } if (this.enabledProfiles == null) { this.enabledProfiles = new HashSet<>(); // depends on control dependency: [if], data = [none] } this.enable...
public class class_name { public final void setValue(String value) { if ((null == value) || value.isEmpty()) { setDefaultValue(); } else { try { tryToSetParsedValue(value); } catch (@SuppressWarnings("unused") Exception e) { CmsDebugL...
public class class_name { public final void setValue(String value) { if ((null == value) || value.isEmpty()) { setDefaultValue(); // depends on control dependency: [if], data = [none] } else { try { tryToSetParsedValue(value); // depends on control dependency: [...
public class class_name { public synchronized String[] list() { if(isDirectory() && _list==null) { ArrayList list = new ArrayList(32); checkConnection(); JarFile jarFile=_jarFile; if(jarFile==null) { try ...
public class class_name { public synchronized String[] list() { if(isDirectory() && _list==null) { ArrayList list = new ArrayList(32); checkConnection(); // depends on control dependency: [if], data = [none] JarFile jarFile=_jarFile; if(...
public class class_name { private int pruneToRemove() { final Iterator<IndexedClass> iter = toRemove_.iterator(); int size = 0; while (iter.hasNext()) { final IndexedClass cls = iter.next(); /* @formatter:off * * Should be pruned when * it is not in taxonomy, or * it is in the bottom class...
public class class_name { private int pruneToRemove() { final Iterator<IndexedClass> iter = toRemove_.iterator(); int size = 0; while (iter.hasNext()) { final IndexedClass cls = iter.next(); /* @formatter:off * * Should be pruned when * it is not in taxonomy, or * it is in the bottom class...
public class class_name { @Nullable public static PDBusinessCard parseBusinessCard (@Nonnull final byte [] aData, @Nullable final Charset aCharset) { ValueEnforcer.notNull (aData, "Data"); { // Read version 1 final PD1BusinessCardMarshaller aMarshaller1 = new PD1BusinessCardMarshaller (); ...
public class class_name { @Nullable public static PDBusinessCard parseBusinessCard (@Nonnull final byte [] aData, @Nullable final Charset aCharset) { ValueEnforcer.notNull (aData, "Data"); { // Read version 1 final PD1BusinessCardMarshaller aMarshaller1 = new PD1BusinessCardMarshaller (); ...
public class class_name { public void marshall(Folder folder, ProtocolMarshaller protocolMarshaller) { if (folder == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(folder.getTreeId(), TREEID_BINDING...
public class class_name { public void marshall(Folder folder, ProtocolMarshaller protocolMarshaller) { if (folder == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(folder.getTreeId(), TREEID_BINDING...
public class class_name { public void compile() { // Treat media queries as "normal" sections as they are supported by CSS sections.addAll(mediaQueries.values()); for (Section section : new ArrayList<Section>(sections)) { compileSection(section); } // Delete empty s...
public class class_name { public void compile() { // Treat media queries as "normal" sections as they are supported by CSS sections.addAll(mediaQueries.values()); for (Section section : new ArrayList<Section>(sections)) { compileSection(section); // depends on control dependency: [f...
public class class_name { public Long pexpireAt(Object key, long millisecondsTimestamp) { Jedis jedis = getJedis(); try { return jedis.pexpireAt(keyToBytes(key), millisecondsTimestamp); } finally {close(jedis);} } }
public class class_name { public Long pexpireAt(Object key, long millisecondsTimestamp) { Jedis jedis = getJedis(); try { return jedis.pexpireAt(keyToBytes(key), millisecondsTimestamp); // depends on control dependency: [try], data = [none] } finally {close(jedis);} } }
public class class_name { @Override public Object getObjectInstance(Object o, Name n, Context c, Hashtable<?, ?> envmt) throws Exception { if (tc.isEntryEnabled()) { Tr.entry(tc, "getObjectInstance: o=" + o + ",name=" + n + ",context=" + c + ",evnmt=" + envmt); } if (!(o insta...
public class class_name { @Override public Object getObjectInstance(Object o, Name n, Context c, Hashtable<?, ?> envmt) throws Exception { if (tc.isEntryEnabled()) { Tr.entry(tc, "getObjectInstance: o=" + o + ",name=" + n + ",context=" + c + ",evnmt=" + envmt); } if (!(o insta...
public class class_name { public static long decode(String s) { long n = 0; for (int i = 0, max = s.length(); i < max; i++) { n = (n * 62) + encoding.indexOf(s.charAt(i)); } return n; } }
public class class_name { public static long decode(String s) { long n = 0; for (int i = 0, max = s.length(); i < max; i++) { n = (n * 62) + encoding.indexOf(s.charAt(i)); // depends on control dependency: [for], data = [i] } return n; } }
public class class_name { @SuppressWarnings("unchecked") protected <T extends Closeable> void forEachCloseable(Predicate<? super Closeable> selector, Consumer<T> function) { for (Closeable c : closeableResources) { if (selector.test(c)) { function.accept((T) c); } ...
public class class_name { @SuppressWarnings("unchecked") protected <T extends Closeable> void forEachCloseable(Predicate<? super Closeable> selector, Consumer<T> function) { for (Closeable c : closeableResources) { if (selector.test(c)) { function.accept((T) c); // depends on co...
public class class_name { public void setOptionsToRemove(java.util.Collection<OptionSpecification> optionsToRemove) { if (optionsToRemove == null) { this.optionsToRemove = null; return; } this.optionsToRemove = new com.amazonaws.internal.SdkInternalList<OptionSpecificat...
public class class_name { public void setOptionsToRemove(java.util.Collection<OptionSpecification> optionsToRemove) { if (optionsToRemove == null) { this.optionsToRemove = null; // depends on control dependency: [if], data = [none] return; // depends on control dependency: [if], data = ...
public class class_name { public static alluxio.grpc.LocalityTier toProto(TieredIdentity.LocalityTier localityTier) { alluxio.grpc.LocalityTier.Builder tier = alluxio.grpc.LocalityTier.newBuilder().setTierName(localityTier.getTierName()); if (localityTier.getValue() != null) { tier.setValue(local...
public class class_name { public static alluxio.grpc.LocalityTier toProto(TieredIdentity.LocalityTier localityTier) { alluxio.grpc.LocalityTier.Builder tier = alluxio.grpc.LocalityTier.newBuilder().setTierName(localityTier.getTierName()); if (localityTier.getValue() != null) { tier.setValue(local...
public class class_name { public long getLong(Integer type) { long result = 0; byte[] item = m_map.get(type); if (item != null) { result = MPPUtility.getLong6(item, 0); } return (result); } }
public class class_name { public long getLong(Integer type) { long result = 0; byte[] item = m_map.get(type); if (item != null) { result = MPPUtility.getLong6(item, 0); // depends on control dependency: [if], data = [(item] } return (result); } }
public class class_name { public static TermColor getColorByFunction(TermFunction func) { List<Term<?>> args = func.getSeparatedValues(CSSFactory.getTermFactory().createOperator(','), false); if (args != null) { if ((COLOR_RGB_NAME.equals(func.getFunctionName()) && args.size() ==...
public class class_name { public static TermColor getColorByFunction(TermFunction func) { List<Term<?>> args = func.getSeparatedValues(CSSFactory.getTermFactory().createOperator(','), false); if (args != null) { if ((COLOR_RGB_NAME.equals(func.getFunctionName()) && args.size() ==...
public class class_name { public final EObject ruleJvmArgumentTypeReference() throws RecognitionException { EObject current = null; EObject this_JvmTypeReference_0 = null; EObject this_JvmWildcardTypeReference_1 = null; enterRule(); try { // InternalXbaseWithA...
public class class_name { public final EObject ruleJvmArgumentTypeReference() throws RecognitionException { EObject current = null; EObject this_JvmTypeReference_0 = null; EObject this_JvmWildcardTypeReference_1 = null; enterRule(); try { // InternalXbaseWithA...
public class class_name { private void writeDocument(String fullDocument, String filename) { // create output file handle File outFile = new File(mOutputDir, filename+".xml"); BufferedWriter bw = null; try { // create a buffered writer for the output file bw = new BufferedWriter(new FileWriter(outFil...
public class class_name { private void writeDocument(String fullDocument, String filename) { // create output file handle File outFile = new File(mOutputDir, filename+".xml"); BufferedWriter bw = null; try { // create a buffered writer for the output file bw = new BufferedWriter(new FileWriter(outFil...
public class class_name { public String getPartition(String url, Metadata metadata) { String partitionKey = null; String host = ""; // IP in metadata? if (mode.equalsIgnoreCase(Constants.PARTITION_MODE_IP)) { String ip_provided = metadata.getFirstValue("ip"); i...
public class class_name { public String getPartition(String url, Metadata metadata) { String partitionKey = null; String host = ""; // IP in metadata? if (mode.equalsIgnoreCase(Constants.PARTITION_MODE_IP)) { String ip_provided = metadata.getFirstValue("ip"); i...
public class class_name { public void setScheduledInstanceIds(java.util.Collection<String> scheduledInstanceIds) { if (scheduledInstanceIds == null) { this.scheduledInstanceIds = null; return; } this.scheduledInstanceIds = new com.amazonaws.internal.SdkInternalList<Stri...
public class class_name { public void setScheduledInstanceIds(java.util.Collection<String> scheduledInstanceIds) { if (scheduledInstanceIds == null) { this.scheduledInstanceIds = null; // depends on control dependency: [if], data = [none] return; // depends on control dependency: [if], ...
public class class_name { public void setWindowMinFullHeight(int minHeight) { Window window = CmsVaadinUtils.getWindow(this); if (window == null) { return; } window.setHeight("90%"); setHeight("100%"); setContentMinHeight(minHeight); window.center();...
public class class_name { public void setWindowMinFullHeight(int minHeight) { Window window = CmsVaadinUtils.getWindow(this); if (window == null) { return; // depends on control dependency: [if], data = [none] } window.setHeight("90%"); setHeight("100%"); se...
public class class_name { protected <I extends AdminToolValidationInterceptor<O>> void sortInterceptors(List<I> interceptors) { if (!CollectionUtils.isEmpty(interceptors)) { int amount = interceptors != null ? interceptors.size() : 0; LOGGER.debug(amount + " interceptors configured for " + getMessageAre...
public class class_name { protected <I extends AdminToolValidationInterceptor<O>> void sortInterceptors(List<I> interceptors) { if (!CollectionUtils.isEmpty(interceptors)) { int amount = interceptors != null ? interceptors.size() : 0; LOGGER.debug(amount + " interceptors configured for " + getMessageAre...
public class class_name { public DMatrixRMaj getH(DMatrixRMaj H ) { H = UtilDecompositons_DDRM.checkZeros(H,N,N); // copy the first row System.arraycopy(QH.data, 0, H.data, 0, N); for( int i = 1; i < N; i++ ) { for( int j = i-1; j < N; j++ ) { H.set(i,j, QH...
public class class_name { public DMatrixRMaj getH(DMatrixRMaj H ) { H = UtilDecompositons_DDRM.checkZeros(H,N,N); // copy the first row System.arraycopy(QH.data, 0, H.data, 0, N); for( int i = 1; i < N; i++ ) { for( int j = i-1; j < N; j++ ) { H.set(i,j, QH...
public class class_name { public byte[] toByteArray() { if (state != State.PASS) { logger.log(Level.WARNING, "Failed to instrument class " + className + " because " + message); return original; } return cw.toByteArray(); } }
public class class_name { public byte[] toByteArray() { if (state != State.PASS) { logger.log(Level.WARNING, "Failed to instrument class " + className + " because " + message); // depends on control dependency: [if], data = [none] return original; // depends on control dependency: [if], data = [none] ...
public class class_name { public TagHandler createTagHandler(String ns, String localName, TagConfig tag) throws FacesException { if (containsNamespace(ns)) { TagHandlerFactory f = _factories.get(localName); if (f != null) { return f.createHandler(...
public class class_name { public TagHandler createTagHandler(String ns, String localName, TagConfig tag) throws FacesException { if (containsNamespace(ns)) { TagHandlerFactory f = _factories.get(localName); if (f != null) { return f.createHandler(...
public class class_name { private String trimTo1(String string) { while (string.startsWith("\"\"") && string.endsWith("\"\"")) { string = string.substring(1, string.length() - 1); } return string; } }
public class class_name { private String trimTo1(String string) { while (string.startsWith("\"\"") && string.endsWith("\"\"")) { string = string.substring(1, string.length() - 1); // depends on control dependency: [while], data = [none] } return string; } }
public class class_name { private static <T> Method tryGetSetMethod(Class<T> clazz, Field field, String methodName) { try { return clazz.getDeclaredMethod(methodName, field.getType()); } catch (Exception e) { return null; } } }
public class class_name { private static <T> Method tryGetSetMethod(Class<T> clazz, Field field, String methodName) { try { return clazz.getDeclaredMethod(methodName, field.getType()); // depends on control dependency: [try], data = [none] } catch (Exception e) { return null; ...
public class class_name { public Expression unboxAsMessage() { if (soyType().getKind() == Kind.NULL) { // If this is a null literal, return a Messaged-typed null literal. return BytecodeUtils.constantNull(BytecodeUtils.MESSAGE_TYPE); } // Attempting to unbox an unboxed proto // (We compare ...
public class class_name { public Expression unboxAsMessage() { if (soyType().getKind() == Kind.NULL) { // If this is a null literal, return a Messaged-typed null literal. return BytecodeUtils.constantNull(BytecodeUtils.MESSAGE_TYPE); // depends on control dependency: [if], data = [none] } // At...
public class class_name { public static IConjunct either( IConjunct conjunct1, IConjunct conjunct2) { IConjunct conjunct; if( conjunct1.getDisjunctCount() == 0) { conjunct = conjunct2; } else if( conjunct2.getDisjunctCount() == 0) { conjunct = conjunct1; } els...
public class class_name { public static IConjunct either( IConjunct conjunct1, IConjunct conjunct2) { IConjunct conjunct; if( conjunct1.getDisjunctCount() == 0) { conjunct = conjunct2; // depends on control dependency: [if], data = [none] } else if( conjunct2.getDisjunctCount() == 0...
public class class_name { public CmsGalleryFolderBean getGalleryInfo(String galleryPath) { CmsGalleryFolderBean result = null; for (CmsGalleryFolderBean folderBean : getAvailableGalleries()) { if (folderBean.getPath().equals(galleryPath)) { result = folderBean; ...
public class class_name { public CmsGalleryFolderBean getGalleryInfo(String galleryPath) { CmsGalleryFolderBean result = null; for (CmsGalleryFolderBean folderBean : getAvailableGalleries()) { if (folderBean.getPath().equals(galleryPath)) { result = folderBean; // depends o...
public class class_name { private void fillDetailMimetypes(CmsListItem item, String detailId) { CmsSearchManager searchManager = OpenCms.getSearchManager(); StringBuffer html = new StringBuffer(); String doctypeName = (String)item.get(LIST_COLUMN_NAME); CmsSearchDocumentType docType =...
public class class_name { private void fillDetailMimetypes(CmsListItem item, String detailId) { CmsSearchManager searchManager = OpenCms.getSearchManager(); StringBuffer html = new StringBuffer(); String doctypeName = (String)item.get(LIST_COLUMN_NAME); CmsSearchDocumentType docType =...
public class class_name { public void marshall(ListDiscoveredResourcesRequest listDiscoveredResourcesRequest, ProtocolMarshaller protocolMarshaller) { if (listDiscoveredResourcesRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { ...
public class class_name { public void marshall(ListDiscoveredResourcesRequest listDiscoveredResourcesRequest, ProtocolMarshaller protocolMarshaller) { if (listDiscoveredResourcesRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { ...
public class class_name { public ChannelFuture close(final ChannelPromise promise) { ChannelHandlerContext ctx = ctx(); EventExecutor executor = ctx.executor(); if (executor.inEventLoop()) { return finishEncode(ctx, promise); } else { executor.execute(new Runnabl...
public class class_name { public ChannelFuture close(final ChannelPromise promise) { ChannelHandlerContext ctx = ctx(); EventExecutor executor = ctx.executor(); if (executor.inEventLoop()) { return finishEncode(ctx, promise); // depends on control dependency: [if], data = [none] ...
public class class_name { public static void insert( final UnsafeBuffer termBuffer, final int termOffset, final UnsafeBuffer packet, final int length) { if (0 == termBuffer.getInt(termOffset)) { termBuffer.putBytes(termOffset + HEADER_LENGTH, packet, HEADER_LENGTH, length - HEAD...
public class class_name { public static void insert( final UnsafeBuffer termBuffer, final int termOffset, final UnsafeBuffer packet, final int length) { if (0 == termBuffer.getInt(termOffset)) { termBuffer.putBytes(termOffset + HEADER_LENGTH, packet, HEADER_LENGTH, length - HEAD...
public class class_name { public static boolean implementsEquals(Type type, VisitorState state) { Name equalsName = state.getName("equals"); Symbol objectEquals = getOnlyMember(state, state.getSymtab().objectType, "equals"); for (Type sup : state.getTypes().closure(type)) { if (sup.tsym.isInterface()...
public class class_name { public static boolean implementsEquals(Type type, VisitorState state) { Name equalsName = state.getName("equals"); Symbol objectEquals = getOnlyMember(state, state.getSymtab().objectType, "equals"); for (Type sup : state.getTypes().closure(type)) { if (sup.tsym.isInterface()...
public class class_name { public static Short extractToShort(final DeviceData deviceDataArgout) throws DevFailed { final Object value = CommandHelper.extract(deviceDataArgout); Short argout = null; if (value instanceof Short) { argout = (Short) value; } else if (value instanceof String) { try { argout ...
public class class_name { public static Short extractToShort(final DeviceData deviceDataArgout) throws DevFailed { final Object value = CommandHelper.extract(deviceDataArgout); Short argout = null; if (value instanceof Short) { argout = (Short) value; } else if (value instanceof String) { try { argout ...
public class class_name { public static void main(String args[]) { try { Display display = Display.getDefault(); WebcamPanelShell shell = new WebcamPanelShell(display); shell.open(); shell.layout(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) { display.sleep(); } } ...
public class class_name { public static void main(String args[]) { try { Display display = Display.getDefault(); WebcamPanelShell shell = new WebcamPanelShell(display); shell.open(); // depends on control dependency: [try], data = [none] shell.layout(); // depends on control dependency: [try], data = [no...