code
stringlengths
130
281k
code_dependency
stringlengths
182
306k
public class class_name { public Object invoke(MethodInvocation invocation) throws Throwable { ProxyMethodInvocation proxyMethodInvocation = (ProxyMethodInvocation) invocation; TargetMetaDef targetMetaDef = targetMetaRequestsHolder.getTargetMetaRequest().getTargetMetaDef(); if (targetMetaDef.isEJB()) retu...
public class class_name { public Object invoke(MethodInvocation invocation) throws Throwable { ProxyMethodInvocation proxyMethodInvocation = (ProxyMethodInvocation) invocation; TargetMetaDef targetMetaDef = targetMetaRequestsHolder.getTargetMetaRequest().getTargetMetaDef(); if (targetMetaDef.isEJB()) retu...
public class class_name { private static List<CardinalitySpec> createChildren( Map<String, Object> rawSpec ) { List<CardinalitySpec> children = new ArrayList<>(); Set<String> actualKeys = new HashSet<>(); for ( String keyString : rawSpec.keySet() ) { Object rawRhs = rawSpec.get( ...
public class class_name { private static List<CardinalitySpec> createChildren( Map<String, Object> rawSpec ) { List<CardinalitySpec> children = new ArrayList<>(); Set<String> actualKeys = new HashSet<>(); for ( String keyString : rawSpec.keySet() ) { Object rawRhs = rawSpec.get( ...
public class class_name { private StoredDatabaseInfo registerPrimaryDatabase(boolean readOnly, Layout layout) throws Exception { if (getStorableType() == StoredDatabaseInfo.class) { // Can't register itself in itself. return null; } Repository repo =...
public class class_name { private StoredDatabaseInfo registerPrimaryDatabase(boolean readOnly, Layout layout) throws Exception { if (getStorableType() == StoredDatabaseInfo.class) { // Can't register itself in itself. return null; } Repository repo =...
public class class_name { public double overlapRadiusDegree(SphereCluster other) { double[] center0 = getCenter(); double radius0 = getRadius(); double[] center1 = other.getCenter(); double radius1 = other.getRadius(); double radiusBig; double radiusSmall; if(radius0 < radius1){ radiusBig = radius...
public class class_name { public double overlapRadiusDegree(SphereCluster other) { double[] center0 = getCenter(); double radius0 = getRadius(); double[] center1 = other.getCenter(); double radius1 = other.getRadius(); double radiusBig; double radiusSmall; if(radius0 < radius1){ radiusBig = radius...
public class class_name { static Map<String, String> parseResourceLabels(@Nullable String rawEnvLabels) { if (rawEnvLabels == null) { return Collections.<String, String>emptyMap(); } else { Map<String, String> labels = new HashMap<String, String>(); String[] rawLabels = rawEnvLabels.split(LAB...
public class class_name { static Map<String, String> parseResourceLabels(@Nullable String rawEnvLabels) { if (rawEnvLabels == null) { return Collections.<String, String>emptyMap(); // depends on control dependency: [if], data = [none] } else { Map<String, String> labels = new HashMap<String, String...
public class class_name { HystrixMetricsPublisherThreadPool getPublisherForThreadPool(HystrixThreadPoolKey threadPoolKey, HystrixThreadPoolMetrics metrics, HystrixThreadPoolProperties properties) { // attempt to retrieve from cache first HystrixMetricsPublisherThreadPool publisher = threadPoolPublisher...
public class class_name { HystrixMetricsPublisherThreadPool getPublisherForThreadPool(HystrixThreadPoolKey threadPoolKey, HystrixThreadPoolMetrics metrics, HystrixThreadPoolProperties properties) { // attempt to retrieve from cache first HystrixMetricsPublisherThreadPool publisher = threadPoolPublisher...
public class class_name { public Counter<K1> sumInnerCounter() { Counter<K1> summed = new ClassicCounter<K1>(); for (K1 key : this.firstKeySet()) { summed.incrementCount(key, this.getCounter(key).totalCount()); } return summed; } }
public class class_name { public Counter<K1> sumInnerCounter() { Counter<K1> summed = new ClassicCounter<K1>(); for (K1 key : this.firstKeySet()) { summed.incrementCount(key, this.getCounter(key).totalCount()); // depends on control dependency: [for], data = [key] } return summed; } }
public class class_name { private Set<String> getServersThatHasAllClusters(Map<String, Set<String>> clusterMap, Set<String> queryClusters) { Set<String> remainingServers = clusterMap.keySet(); for (String cluster : queryClusters) { for (Map.Entry<String, Set<String>> serverConfig : clusterMap.entrySet())...
public class class_name { private Set<String> getServersThatHasAllClusters(Map<String, Set<String>> clusterMap, Set<String> queryClusters) { Set<String> remainingServers = clusterMap.keySet(); for (String cluster : queryClusters) { for (Map.Entry<String, Set<String>> serverConfig : clusterMap.entrySet())...
public class class_name { public static boolean copyModuleMetaDataSlot(MetaDataEvent<ModuleMetaData> event, MetaDataSlot slot) { Container container = event.getContainer(); MetaData metaData = event.getMetaData(); try { // For now, we just need to copy from WebModuleInfo, and Clien...
public class class_name { public static boolean copyModuleMetaDataSlot(MetaDataEvent<ModuleMetaData> event, MetaDataSlot slot) { Container container = event.getContainer(); MetaData metaData = event.getMetaData(); try { // For now, we just need to copy from WebModuleInfo, and Clien...
public class class_name { public synchronized Map<String, Dependency> getPluginDependencies() throws MojoExecutionException { if (this.pluginDependencies == null) { final String groupId = getConfig("plugin.groupId"); //$NON-NLS-1$ final String artifactId = getConfig("plugin.artifactId"); //$NON-NLS-1$ final...
public class class_name { public synchronized Map<String, Dependency> getPluginDependencies() throws MojoExecutionException { if (this.pluginDependencies == null) { final String groupId = getConfig("plugin.groupId"); //$NON-NLS-1$ final String artifactId = getConfig("plugin.artifactId"); //$NON-NLS-1$ final...
public class class_name { @FFDCIgnore(NoSuchAlgorithmException.class) public static String createLookupKey(String realm, String userid, @Sensitive String password) { String lookupKey = null; if (realm != null && userid != null && password != null) { try { String hashedPa...
public class class_name { @FFDCIgnore(NoSuchAlgorithmException.class) public static String createLookupKey(String realm, String userid, @Sensitive String password) { String lookupKey = null; if (realm != null && userid != null && password != null) { try { String hashedPa...
public class class_name { public static int crc16(byte[] bytes, int off, int len) { int crc = 0x0000; int end = off + len; for (int i = off; i < end; i++) { crc = doCrc(bytes[i], crc); } return crc & 0xFFFF; } }
public class class_name { public static int crc16(byte[] bytes, int off, int len) { int crc = 0x0000; int end = off + len; for (int i = off; i < end; i++) { crc = doCrc(bytes[i], crc); // depends on control dependency: [for], data = [i] } return crc & 0xFFFF; ...
public class class_name { public void load(@Nonnull final Preferences preferences) { this.config.loadFrom(preferences); loadFrom(this.config, preferences); this.changeNotificationAllowed = false; try { // Common behaviour options this.checkBoxShowHiddenFiles.setSelected(preferences.getBoole...
public class class_name { public void load(@Nonnull final Preferences preferences) { this.config.loadFrom(preferences); loadFrom(this.config, preferences); this.changeNotificationAllowed = false; try { // Common behaviour options this.checkBoxShowHiddenFiles.setSelected(preferences.getBoole...
public class class_name { void setStartPoint(StandardRoadConnection desiredConnection) { final StandardRoadConnection oldPoint = getBeginPoint(StandardRoadConnection.class); if (oldPoint != null) { oldPoint.removeConnectedSegment(this, true); } this.firstConnection = desiredConnection; if (desiredConnecti...
public class class_name { void setStartPoint(StandardRoadConnection desiredConnection) { final StandardRoadConnection oldPoint = getBeginPoint(StandardRoadConnection.class); if (oldPoint != null) { oldPoint.removeConnectedSegment(this, true); // depends on control dependency: [if], data = [none] } this.firs...
public class class_name { public static double[][] computeMinMax(Relation<? extends NumberVector> relation) { int dim = RelationUtil.dimensionality(relation); double[] mins = new double[dim], maxs = new double[dim]; for(int i = 0; i < dim; i++) { mins[i] = Double.MAX_VALUE; maxs[i] = -Double.MA...
public class class_name { public static double[][] computeMinMax(Relation<? extends NumberVector> relation) { int dim = RelationUtil.dimensionality(relation); double[] mins = new double[dim], maxs = new double[dim]; for(int i = 0; i < dim; i++) { mins[i] = Double.MAX_VALUE; // depends on control depe...
public class class_name { public static List<Job> qstat(String name) { final CommandLine cmdLine = new CommandLine(COMMAND_QSTAT); cmdLine.addArgument(PARAMETER_FULL_STATUS); if (StringUtils.isNotBlank(name)) { cmdLine.addArgument(name); } final OutputStream out = n...
public class class_name { public static List<Job> qstat(String name) { final CommandLine cmdLine = new CommandLine(COMMAND_QSTAT); cmdLine.addArgument(PARAMETER_FULL_STATUS); if (StringUtils.isNotBlank(name)) { cmdLine.addArgument(name); // depends on control dependency: [if], data ...
public class class_name { public long getLogoHeight() { try { val items = getLogoUrls(); if (!items.isEmpty()) { return items.iterator().next().getHeight(); } } catch (final Exception e) { LOGGER.debug(e.getMessage(), e); } ...
public class class_name { public long getLogoHeight() { try { val items = getLogoUrls(); if (!items.isEmpty()) { return items.iterator().next().getHeight(); // depends on control dependency: [if], data = [none] } } catch (final Exception e) { ...
public class class_name { protected void connectionErrorOccurred() { if (tc.isEntryEnabled()) { Tr.entry(this, tc, "connectionErrorOccurred"); } connectionErrorOccurred(null); if (tc.isEntryEnabled()) { Tr.exit(this, tc, "connectionErrorOccurred"); } ...
public class class_name { protected void connectionErrorOccurred() { if (tc.isEntryEnabled()) { Tr.entry(this, tc, "connectionErrorOccurred"); // depends on control dependency: [if], data = [none] } connectionErrorOccurred(null); if (tc.isEntryEnabled()) { Tr.exi...
public class class_name { public static final boolean endsWithDelimiter(byte[] bytes, int endPos, byte[] delim) { if (endPos < delim.length - 1) { return false; } for (int pos = 0; pos < delim.length; ++pos) { if (delim[pos] != bytes[endPos - delim.length + 1 + pos]) { return false; } } return t...
public class class_name { public static final boolean endsWithDelimiter(byte[] bytes, int endPos, byte[] delim) { if (endPos < delim.length - 1) { return false; // depends on control dependency: [if], data = [none] } for (int pos = 0; pos < delim.length; ++pos) { if (delim[pos] != bytes[endPos - delim.leng...
public class class_name { private Locale getWorkplaceLocale() { Locale result = OpenCms.getWorkplaceManager().getWorkplaceLocale(getCmsObject()); if (result == null) { result = CmsLocaleManager.getDefaultLocale(); } if (result == null) { result = Locale.getDefau...
public class class_name { private Locale getWorkplaceLocale() { Locale result = OpenCms.getWorkplaceManager().getWorkplaceLocale(getCmsObject()); if (result == null) { result = CmsLocaleManager.getDefaultLocale(); // depends on control dependency: [if], data = [none] } if (...
public class class_name { @Override public String toConstraintString() throws DapException { assert this.first != UNDEFINED && this.stride != UNDEFINED && this.stop != UNDEFINED; StringBuilder buf = new StringBuilder(); buf.append("["); boolean first = true; ...
public class class_name { @Override public String toConstraintString() throws DapException { assert this.first != UNDEFINED && this.stride != UNDEFINED && this.stop != UNDEFINED; StringBuilder buf = new StringBuilder(); buf.append("["); boolean first = true; ...
public class class_name { protected static SipPrincipal findPrincipal(MobicentsSipServletRequest request, String authorization, String realmName, String securityDomain, Deployment deployment, ServletInfo servletInfo, SipStack sipStack) { // System.out.println("Authorization token : " + authorizati...
public class class_name { protected static SipPrincipal findPrincipal(MobicentsSipServletRequest request, String authorization, String realmName, String securityDomain, Deployment deployment, ServletInfo servletInfo, SipStack sipStack) { // System.out.println("Authorization token : " + authorizati...
public class class_name { public static Range sum(Range range1, Range range2) { if (range1.getMinimum().doubleValue() <= range2.getMinimum().doubleValue()) { if (range1.getMaximum().doubleValue() >= range2.getMaximum().doubleValue()) { return range1; } else { ...
public class class_name { public static Range sum(Range range1, Range range2) { if (range1.getMinimum().doubleValue() <= range2.getMinimum().doubleValue()) { if (range1.getMaximum().doubleValue() >= range2.getMaximum().doubleValue()) { return range1; // depends on control dependency...
public class class_name { private Reader getPushBackReader(Reader source) throws ParseException { PushbackReader pushbackReader = new PushbackReader(source); int c; try { c = pushbackReader.read(); if (c == -1) { return null; } ...
public class class_name { private Reader getPushBackReader(Reader source) throws ParseException { PushbackReader pushbackReader = new PushbackReader(source); int c; try { c = pushbackReader.read(); if (c == -1) { return null; // depends on control dep...
public class class_name { private static void clean(Element e, String tag) { Elements targetList = getElementsByTag(e, tag); boolean isEmbed = "object".equalsIgnoreCase(tag) || "embed".equalsIgnoreCase(tag) || "iframe".equalsIgnoreCase(tag); for (E...
public class class_name { private static void clean(Element e, String tag) { Elements targetList = getElementsByTag(e, tag); boolean isEmbed = "object".equalsIgnoreCase(tag) || "embed".equalsIgnoreCase(tag) || "iframe".equalsIgnoreCase(tag); for (E...
public class class_name { public String getStartingCategory(CmsObject cms, String referencePath) { String ret = ""; if (CmsStringUtil.isEmptyOrWhitespaceOnly(m_category) && CmsStringUtil.isEmptyOrWhitespaceOnly(m_property)) { ret = "/"; } else if (CmsStringUtil.isEmptyOrWhitespaceO...
public class class_name { public String getStartingCategory(CmsObject cms, String referencePath) { String ret = ""; if (CmsStringUtil.isEmptyOrWhitespaceOnly(m_category) && CmsStringUtil.isEmptyOrWhitespaceOnly(m_property)) { ret = "/"; // depends on control dependency: [if], data = [none]...
public class class_name { public int loadIndeces(List<RowIndexEntry> rowIndexEntries, int startIndex) { int updatedStartIndex = input.loadIndeces(rowIndexEntries, startIndex); int numIndeces = rowIndexEntries.size(); indeces = new int[numIndeces + 1]; int i = 0; for (RowIndexEntry rowIndexEntry : ...
public class class_name { public int loadIndeces(List<RowIndexEntry> rowIndexEntries, int startIndex) { int updatedStartIndex = input.loadIndeces(rowIndexEntries, startIndex); int numIndeces = rowIndexEntries.size(); indeces = new int[numIndeces + 1]; int i = 0; for (RowIndexEntry rowIndexEntry : ...
public class class_name { private static IAtomContainer roundUpIfNeeded(IAtomContainer anon) { IChemObjectBuilder bldr = anon.getBuilder(); if ((anon.getAtomCount() & 0x1) != 0) { IBond bond = anon.removeBond(anon.getBondCount() - 1); IAtom dummy = bldr.newInstance(IAtom.class, ...
public class class_name { private static IAtomContainer roundUpIfNeeded(IAtomContainer anon) { IChemObjectBuilder bldr = anon.getBuilder(); if ((anon.getAtomCount() & 0x1) != 0) { IBond bond = anon.removeBond(anon.getBondCount() - 1); IAtom dummy = bldr.newInstance(IAtom.class, ...
public class class_name { @Override public <R> OperationResult<R> executeWithFailover(Operation<CL, R> op, RetryPolicy retry) throws ConnectionException { //Tracing operation OperationTracer opsTracer = config.getOperationTracer(); final AstyanaxContext context = opsTracer.getAstya...
public class class_name { @Override public <R> OperationResult<R> executeWithFailover(Operation<CL, R> op, RetryPolicy retry) throws ConnectionException { //Tracing operation OperationTracer opsTracer = config.getOperationTracer(); final AstyanaxContext context = opsTracer.getAstya...
public class class_name { private void updateTokenWaitTime(long waitForMillis) { final long newTime = millisFromNow(waitForMillis); boolean done; do { long oldTime = tokenWaitUntil.get(); // If the new wait until time exceeds current one, update it; otherwise just skip the loop. if (oldT...
public class class_name { private void updateTokenWaitTime(long waitForMillis) { final long newTime = millisFromNow(waitForMillis); boolean done; do { long oldTime = tokenWaitUntil.get(); // If the new wait until time exceeds current one, update it; otherwise just skip the loop. if (oldT...
public class class_name { @Override public int compareTo(final QueueInfo other) { int retVal = 1; if (other != null) { if (this.name != null && other.name != null) { retVal = this.name.compareTo(other.name); } else if (this.name == null) { ret...
public class class_name { @Override public int compareTo(final QueueInfo other) { int retVal = 1; if (other != null) { if (this.name != null && other.name != null) { retVal = this.name.compareTo(other.name); // depends on control dependency: [if], data = [none] ...
public class class_name { public Set<String> getAttributeNamesSkipGenerated(boolean managed) { //TODO: can cache this, but will need a cache for managed=true an another for managed=false Set<String> attributesNames = new CaseInsensitiveSet(getAttributeNamesSkipId()); if(managed){ a...
public class class_name { public Set<String> getAttributeNamesSkipGenerated(boolean managed) { //TODO: can cache this, but will need a cache for managed=true an another for managed=false Set<String> attributesNames = new CaseInsensitiveSet(getAttributeNamesSkipId()); if(managed){ a...
public class class_name { protected static HyperBoundingBox computeBounds(NumberVector[] samples) { assert(samples.length > 0) : "Cannot compute bounding box of empty set."; // Compute bounds: final int dimensions = samples[0].getDimensionality(); final double[] min = new double[dimensions]; final ...
public class class_name { protected static HyperBoundingBox computeBounds(NumberVector[] samples) { assert(samples.length > 0) : "Cannot compute bounding box of empty set."; // Compute bounds: final int dimensions = samples[0].getDimensionality(); final double[] min = new double[dimensions]; final ...
public class class_name { public ImmutableList<Class<?>> getClassObjects(final String param) { final ImmutableList.Builder<Class<?>> ret = ImmutableList.builder(); for (final String className : getStringList(param)) { try { ret.add(getClassObjectForString(className)); } catch (ClassNotFound...
public class class_name { public ImmutableList<Class<?>> getClassObjects(final String param) { final ImmutableList.Builder<Class<?>> ret = ImmutableList.builder(); for (final String className : getStringList(param)) { try { ret.add(getClassObjectForString(className)); // depends on control depend...
public class class_name { public final void client(final InputStream inputStream, final OutputStream outputStream) { String host = parsedArguments.getString("host"); String port = parsedArguments.getString("port"); try (Socket socketClient = new Socket(host, Integer.parseInt(port)); BufferedR...
public class class_name { public final void client(final InputStream inputStream, final OutputStream outputStream) { String host = parsedArguments.getString("host"); String port = parsedArguments.getString("port"); try (Socket socketClient = new Socket(host, Integer.parseInt(port)); BufferedR...
public class class_name { private Content getClassLinks(LinkInfoImpl.Kind context, Collection<?> list) { Object[] typeList = list.toArray(); Content dd = new HtmlTree(HtmlTag.DD); boolean isFirst = true; for (Object item : typeList) { if (!isFirst) { Content ...
public class class_name { private Content getClassLinks(LinkInfoImpl.Kind context, Collection<?> list) { Object[] typeList = list.toArray(); Content dd = new HtmlTree(HtmlTag.DD); boolean isFirst = true; for (Object item : typeList) { if (!isFirst) { Content ...
public class class_name { public static Object[] values( TypedArgument... arguments ) { Object[] values = new Object[arguments.length]; for ( int i = 0; i < values.length; i++ ) { values[i] = arguments[i].value; } return values; } }
public class class_name { public static Object[] values( TypedArgument... arguments ) { Object[] values = new Object[arguments.length]; for ( int i = 0; i < values.length; i++ ) { values[i] = arguments[i].value; // depends on control dependency: [for], data = [i] } ...
public class class_name { @Override public void registerListener(LifecycleListener listener) { if(listener == null) throw new NullPointerException("listener is null"); synchronized(_lock) { if(_listeners == null || !_listeners.contains(listener)) { Set<LifecycleListener> list...
public class class_name { @Override public void registerListener(LifecycleListener listener) { if(listener == null) throw new NullPointerException("listener is null"); synchronized(_lock) { if(_listeners == null || !_listeners.contains(listener)) { Set<LifecycleListener> list...
public class class_name { public void send(SIBusMessage msg, SITransaction tran) throws SISessionUnavailableException, SISessionDroppedException, SIConnectionUnavailableException, SIConnectionDroppedException, SIResourceException, SIConnectionLostException, SILimitExceededException, ...
public class class_name { public void send(SIBusMessage msg, SITransaction tran) throws SISessionUnavailableException, SISessionDroppedException, SIConnectionUnavailableException, SIConnectionDroppedException, SIResourceException, SIConnectionLostException, SILimitExceededException, ...
public class class_name { public void removeDeployableUnit(DeployableUnitID deployableUnitID) { if (logger.isTraceEnabled()) { logger.trace("Removing DU with id: " + deployableUnitID); } if (deployableUnitID == null) throw new NullPointerException("null id"); deployableUnits.remove(deployableUnitID);...
public class class_name { public void removeDeployableUnit(DeployableUnitID deployableUnitID) { if (logger.isTraceEnabled()) { logger.trace("Removing DU with id: " + deployableUnitID); // depends on control dependency: [if], data = [none] } if (deployableUnitID == null) throw new NullPointerException("n...
public class class_name { @Override public MtasTokenCollection createTokenCollection(Reader reader) throws MtasParserException, MtasConfigException { Boolean hasRoot = rootTag == null ? true : false; Boolean parsingContent = contentTag == null ? true : false; String textContent = null; Integer ...
public class class_name { @Override public MtasTokenCollection createTokenCollection(Reader reader) throws MtasParserException, MtasConfigException { Boolean hasRoot = rootTag == null ? true : false; Boolean parsingContent = contentTag == null ? true : false; String textContent = null; Integer ...
public class class_name { public static int getMaxIndex(DoubleMatrix1D v){ int maxIndex = -1; double maxValue = -Double.MAX_VALUE; for(int i=0; i<v.size(); i++){ if(v.getQuick(i)>maxValue){ maxIndex = i; maxValue = v.getQuick(i); } } return maxIndex; } }
public class class_name { public static int getMaxIndex(DoubleMatrix1D v){ int maxIndex = -1; double maxValue = -Double.MAX_VALUE; for(int i=0; i<v.size(); i++){ if(v.getQuick(i)>maxValue){ maxIndex = i; // depends on control dependency: [if], data = [none] maxValue = v.getQuick(i); ...
public class class_name { public static String getString(@NonNull final Context context, @StyleRes final int themeResourceId, @AttrRes final int resourceId) { Condition.INSTANCE.ensureNotNull(context, "The context may not be null"); ...
public class class_name { public static String getString(@NonNull final Context context, @StyleRes final int themeResourceId, @AttrRes final int resourceId) { Condition.INSTANCE.ensureNotNull(context, "The context may not be null"); ...
public class class_name { public void append(Map<?, ?> map) { if (map == null || map.size() == 0) return; for (Map.Entry<?, ?> entry : map.entrySet()) { put(StringConverter.toString(entry.getKey()), StringConverter.toNullableString(entry.getValue())); } } }
public class class_name { public void append(Map<?, ?> map) { if (map == null || map.size() == 0) return; for (Map.Entry<?, ?> entry : map.entrySet()) { put(StringConverter.toString(entry.getKey()), StringConverter.toNullableString(entry.getValue())); // depends on control dependency: [for], data = [entry] ...
public class class_name { public String getDefaultSystemName() { // No system name set, check the base menus for domain or default properties Environment env = this.getEnvironment(); Map<String, Object> properties = new HashMap<String, Object>(); properties.put(DBConstants.SYSTEM_NAME, "b...
public class class_name { public String getDefaultSystemName() { // No system name set, check the base menus for domain or default properties Environment env = this.getEnvironment(); Map<String, Object> properties = new HashMap<String, Object>(); properties.put(DBConstants.SYSTEM_NAME, "b...
public class class_name { public static int compareVersion(String v1, String v2) { if (v1.equals(v2)) { return 0; } String[] version1Array = v1.split("[._]"); String[] version2Array = v2.split("[._]"); int index = 0; int minLen = Math.min(version1Array.length...
public class class_name { public static int compareVersion(String v1, String v2) { if (v1.equals(v2)) { return 0; // depends on control dependency: [if], data = [none] } String[] version1Array = v1.split("[._]"); String[] version2Array = v2.split("[._]"); int index =...
public class class_name { public static void deletePageOrResource(Resource resource) { Page configPage = resource.adaptTo(Page.class); if (configPage != null) { try { log.trace("! Delete page {}", configPage.getPath()); PageManager pageManager = configPage.getPageManager(); pageMa...
public class class_name { public static void deletePageOrResource(Resource resource) { Page configPage = resource.adaptTo(Page.class); if (configPage != null) { try { log.trace("! Delete page {}", configPage.getPath()); // depends on control dependency: [try], data = [none] PageManager pa...
public class class_name { private BytesRef computeMaximumFilteredPayload(String value, BytesRef payload, String filter) { // do magic with filter if (value != null) { if (payload != null) { Float payloadFloat = PayloadHelper.decodeFloat(payload.bytes, payload.offset); Fl...
public class class_name { private BytesRef computeMaximumFilteredPayload(String value, BytesRef payload, String filter) { // do magic with filter if (value != null) { if (payload != null) { Float payloadFloat = PayloadHelper.decodeFloat(payload.bytes, payload.offset); Fl...
public class class_name { @Override @SuppressWarnings("unchecked") public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { if (mVerbose) Log.v(TAG, "onCreateViewHolder: " + viewType); final RecyclerView.ViewHolder holder = mOnCreateViewHolderListener.onPreCreateView...
public class class_name { @Override @SuppressWarnings("unchecked") public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { if (mVerbose) Log.v(TAG, "onCreateViewHolder: " + viewType); final RecyclerView.ViewHolder holder = mOnCreateViewHolderListener.onPreCreateView...
public class class_name { @Override public byte[] encrypt(byte[] data, KeyType keyType) { final Key key = getKeyByType(keyType); final int inputLen = data.length; final int maxBlockSize = this.encryptBlockSize < 0 ? inputLen : this.encryptBlockSize; lock.lock(); try (ByteArrayOutputStream out = new ...
public class class_name { @Override public byte[] encrypt(byte[] data, KeyType keyType) { final Key key = getKeyByType(keyType); final int inputLen = data.length; final int maxBlockSize = this.encryptBlockSize < 0 ? inputLen : this.encryptBlockSize; lock.lock(); try (ByteArrayOutputStream out = new ...
public class class_name { public ExtensionElement removeExtension(ExtensionElement extension) { String key = XmppStringUtils.generateKey(extension.getElementName(), extension.getNamespace()); synchronized (packetExtensions) { List<ExtensionElement> list = packetExtensions.getAll(key); ...
public class class_name { public ExtensionElement removeExtension(ExtensionElement extension) { String key = XmppStringUtils.generateKey(extension.getElementName(), extension.getNamespace()); synchronized (packetExtensions) { List<ExtensionElement> list = packetExtensions.getAll(key); ...
public class class_name { public static void forward( String contextRelativePath, RequestDispatcher dispatcher, HttpServletRequest request, HttpServletResponse response, Map<String,?> args ) throws ServletException, IOException { // Track original page when first accessed final String oldOriginal = getO...
public class class_name { public static void forward( String contextRelativePath, RequestDispatcher dispatcher, HttpServletRequest request, HttpServletResponse response, Map<String,?> args ) throws ServletException, IOException { // Track original page when first accessed final String oldOriginal = getO...
public class class_name { private void generateBeanInfo(ClassDoc classDoc) throws Exception { String beanInfoJavaFileName = classDoc.getTypeNameForFile() + "BeanInfo.java"; String beanInfoJavaFilePath = beanInfoJavaFileName; String packageName = classDoc.getPackageName(); ...
public class class_name { private void generateBeanInfo(ClassDoc classDoc) throws Exception { String beanInfoJavaFileName = classDoc.getTypeNameForFile() + "BeanInfo.java"; String beanInfoJavaFilePath = beanInfoJavaFileName; String packageName = classDoc.getPackageName(); ...
public class class_name { public static Button createIconButton(String name, String description, Resource icon, String buttonStyle) { Button button = new Button(name); button.setIcon(icon, name); button.setDescription(description); button.addStyleName(OpenCmsTheme.APP_BUTTON); ...
public class class_name { public static Button createIconButton(String name, String description, Resource icon, String buttonStyle) { Button button = new Button(name); button.setIcon(icon, name); button.setDescription(description); button.addStyleName(OpenCmsTheme.APP_BUTTON); ...
public class class_name { public String getExpandedString(String key, int behavior) { String s = getString(key); Matcher matcher = sysPropVarPattern.matcher(s); int previousEnd = 0; StringBuffer sb = new StringBuffer(); String varName, varValue; String condlVal; // Cond...
public class class_name { public String getExpandedString(String key, int behavior) { String s = getString(key); Matcher matcher = sysPropVarPattern.matcher(s); int previousEnd = 0; StringBuffer sb = new StringBuffer(); String varName, varValue; String condlVal; // Cond...
public class class_name { public boolean runScheduler() { IScheduler scheduler = null; String statemgrClass = Context.stateManagerClass(config); IStateManager statemgr; try { // create an instance of state manager statemgr = ReflectionUtils.newInstance(statemgrClass); } catch (Illegal...
public class class_name { public boolean runScheduler() { IScheduler scheduler = null; String statemgrClass = Context.stateManagerClass(config); IStateManager statemgr; try { // create an instance of state manager statemgr = ReflectionUtils.newInstance(statemgrClass); // depends on contro...
public class class_name { private synchronized Collection<GenericMatchInfo> findLocal(String text, int start, EnumSet<GenericNameType> types) { GenericNameSearchHandler handler = new GenericNameSearchHandler(types); _gnamesTrie.find(text, start, handler); if (handler.getMaxMatchLen() == (text.l...
public class class_name { private synchronized Collection<GenericMatchInfo> findLocal(String text, int start, EnumSet<GenericNameType> types) { GenericNameSearchHandler handler = new GenericNameSearchHandler(types); _gnamesTrie.find(text, start, handler); if (handler.getMaxMatchLen() == (text.l...
public class class_name { private void truncateFile(List<FileEntry> entries) { long startTime = 0; if (trace) startTime = timeService.wallClockTime(); int reclaimedSpace = 0; int removedEntries = 0; long truncateOffset = -1; for (Iterator<FileEntry> it = entries.iterator() ; it.has...
public class class_name { private void truncateFile(List<FileEntry> entries) { long startTime = 0; if (trace) startTime = timeService.wallClockTime(); int reclaimedSpace = 0; int removedEntries = 0; long truncateOffset = -1; for (Iterator<FileEntry> it = entries.iterator() ; it.has...
public class class_name { private ArrayList<Pair<String, ?>> getKeyValues() { ArrayList<Pair<String, ?>> keyValPair = new ArrayList<>(); Map<String, ?> map = preferenceUtils.getAll(); Set<String> strings = map.keySet(); Object value; for (String key : strings) { if (!key.contains(SharedPreferenceUtils.key...
public class class_name { private ArrayList<Pair<String, ?>> getKeyValues() { ArrayList<Pair<String, ?>> keyValPair = new ArrayList<>(); Map<String, ?> map = preferenceUtils.getAll(); Set<String> strings = map.keySet(); Object value; for (String key : strings) { if (!key.contains(SharedPreferenceUtils.key...
public class class_name { private void addType(final Queue<String> typeQueue, final AbstractSchemaNode schemaNode) { final String _extendsClass = schemaNode.getProperty(SchemaNode.extendsClass); if (_extendsClass != null) { typeQueue.add(StringUtils.substringBefore(_extendsClass, "<")); } final String _i...
public class class_name { private void addType(final Queue<String> typeQueue, final AbstractSchemaNode schemaNode) { final String _extendsClass = schemaNode.getProperty(SchemaNode.extendsClass); if (_extendsClass != null) { typeQueue.add(StringUtils.substringBefore(_extendsClass, "<")); // depends on control ...
public class class_name { public static boolean copyFile(File source, File dest) { // if(!source.renameTo(new File(dest,source.getName()))) { // return false; // } else { // return true; // } try { FileInputStream in = new FileInputStream(source); FileOutputStream out = new FileOutputStream(d...
public class class_name { public static boolean copyFile(File source, File dest) { // if(!source.renameTo(new File(dest,source.getName()))) { // return false; // } else { // return true; // } try { FileInputStream in = new FileInputStream(source); FileOutputStream out = new FileOutputStream(d...
public class class_name { void showCrumbs(boolean show) { if (show) { m_crumbs.removeStyleName(OpenCmsTheme.HIDDEN); CmsAppWorkplaceUi.get().enableGlobalShortcuts(); } else { m_crumbs.addStyleName(OpenCmsTheme.HIDDEN); CmsAppWorkplaceUi.get().disableGlob...
public class class_name { void showCrumbs(boolean show) { if (show) { m_crumbs.removeStyleName(OpenCmsTheme.HIDDEN); // depends on control dependency: [if], data = [none] CmsAppWorkplaceUi.get().enableGlobalShortcuts(); // depends on control dependency: [if], data = [none] } el...
public class class_name { public void add(Chromosome element) { if (population.size() == populationSize) { cullOperator.cullPopulation(); } population.add(element); Collections.sort(population, chromosomeComparator); triggerPopulationChangedListeners(population); ...
public class class_name { public void add(Chromosome element) { if (population.size() == populationSize) { cullOperator.cullPopulation(); // depends on control dependency: [if], data = [none] } population.add(element); Collections.sort(population, chromosomeComparator); ...
public class class_name { public void marshall(DescribeIdentityRequest describeIdentityRequest, ProtocolMarshaller protocolMarshaller) { if (describeIdentityRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMar...
public class class_name { public void marshall(DescribeIdentityRequest describeIdentityRequest, ProtocolMarshaller protocolMarshaller) { if (describeIdentityRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMar...
public class class_name { @SuppressWarnings("unchecked") public ManagedIndex build() { List<IndexChangeAdapter> changeAdapters = new ArrayList<>(); ProvidedIndex<?> index = null; switch (defn.getKind()) { case VALUE: index = buildMultiValueIndex(context, defn, wo...
public class class_name { @SuppressWarnings("unchecked") public ManagedIndex build() { List<IndexChangeAdapter> changeAdapters = new ArrayList<>(); ProvidedIndex<?> index = null; switch (defn.getKind()) { case VALUE: index = buildMultiValueIndex(context, defn, wo...
public class class_name { public static Iterator iterator(final DefaultTableModel self) { return new Iterator() { private int row = 0; public boolean hasNext() { return row > -1 && row < self.getRowCount(); } public Object next() { ...
public class class_name { public static Iterator iterator(final DefaultTableModel self) { return new Iterator() { private int row = 0; public boolean hasNext() { return row > -1 && row < self.getRowCount(); } public Object next() { ...
public class class_name { public ItemState read(ObjectReader in) throws UnknownClassIdException, IOException { // read id int key; if ((key = in.readInt()) != SerializationConstants.ITEM_STATE) { throw new UnknownClassIdException("There is unexpected class [" + key + "]"); ...
public class class_name { public ItemState read(ObjectReader in) throws UnknownClassIdException, IOException { // read id int key; if ((key = in.readInt()) != SerializationConstants.ITEM_STATE) { throw new UnknownClassIdException("There is unexpected class [" + key + "]"); ...
public class class_name { public Element getLastChildElement(final String elementName) { if (childNodes == null) { return null; } int from = childNodes.size() - 1; for (int i = from; i >= 0; i--) { Node child = childNodes.get(i); if (child.getNodeType() == NodeType.ELEMENT && elementName.equals(child....
public class class_name { public Element getLastChildElement(final String elementName) { if (childNodes == null) { return null; // depends on control dependency: [if], data = [none] } int from = childNodes.size() - 1; for (int i = from; i >= 0; i--) { Node child = childNodes.get(i); if (child.getNodeT...
public class class_name { public static MethodValues find(byte[] name, int offset, int length) { MethodValues key = (MethodValues) myMatcher.match(name, offset, length); if (null == key) { synchronized (MethodValues.class) { // protect against 2 threads getting here on the n...
public class class_name { public static MethodValues find(byte[] name, int offset, int length) { MethodValues key = (MethodValues) myMatcher.match(name, offset, length); if (null == key) { synchronized (MethodValues.class) { // depends on control dependency: [if], data = [none] ...
public class class_name { public long getSaving(Configuration conf) { try { DFSClient dfs = ((DistributedFileSystem)FileSystem.get(conf)).getClient(); Counters raidedCounters = stateToSourceCounters.get(RaidState.RAIDED); long physical = raidedCounters.getNumBytes() + parityCounters.get...
public class class_name { public long getSaving(Configuration conf) { try { DFSClient dfs = ((DistributedFileSystem)FileSystem.get(conf)).getClient(); Counters raidedCounters = stateToSourceCounters.get(RaidState.RAIDED); long physical = raidedCounters.getNumBytes() + parityCounters.get...
public class class_name { @Override public LexNameSet caseAVariableExp(AVariableExp node, FreeVarInfo info) throws AnalysisException { PDefinition d = info.globals.findName(node.getName(), NameScope.NAMESANDSTATE); if (d != null && af.createPDefinitionAssistant().isFunction(d)) { return new LexNameSet();...
public class class_name { @Override public LexNameSet caseAVariableExp(AVariableExp node, FreeVarInfo info) throws AnalysisException { PDefinition d = info.globals.findName(node.getName(), NameScope.NAMESANDSTATE); if (d != null && af.createPDefinitionAssistant().isFunction(d)) { return new LexNameSet();...
public class class_name { private void finish(boolean commit) { for (Synchronization s : syncs) { s.beforeCompletion(); } if (commit) { status = Status.STATUS_COMMITTED; } else { status = Status.STATUS_ROLLEDBACK; } for (Synchr...
public class class_name { private void finish(boolean commit) { for (Synchronization s : syncs) { s.beforeCompletion(); // depends on control dependency: [for], data = [s] } if (commit) { status = Status.STATUS_COMMITTED; // depends on control dependency: [if], data ...
public class class_name { public int length() { int ret = 0; if (data instanceof int[]) ret = 1; else if (data instanceof int[][]) ret = ((int[][]) data).length; else if (data instanceof int[][][]) { ret = ((int[][][]) data)[0].length; } return ret; } public Object getDicData() { ...
public class class_name { public int length() { int ret = 0; if (data instanceof int[]) ret = 1; else if (data instanceof int[][]) ret = ((int[][]) data).length; else if (data instanceof int[][][]) { ret = ((int[][][]) data)[0].length; // depends on control dependency: [if], data = [none] } ...
public class class_name { @Override public boolean includesValues(String name, Collection<String> values) { Collection<String> propValues = properties.get(name); if (propValues == null) { return false; } return propValues.containsAll(values); } }
public class class_name { @Override public boolean includesValues(String name, Collection<String> values) { Collection<String> propValues = properties.get(name); if (propValues == null) { return false; // depends on control dependency: [if], data = [none] } return prop...
public class class_name { public void clearBugCounts() { for (int i = 0; i < totalErrors.length; i++) { totalErrors[i] = 0; } for (PackageStats stats : packageStatsMap.values()) { stats.clearBugCounts(); } } }
public class class_name { public void clearBugCounts() { for (int i = 0; i < totalErrors.length; i++) { totalErrors[i] = 0; // depends on control dependency: [for], data = [i] } for (PackageStats stats : packageStatsMap.values()) { stats.clearBugCounts(); // depends on c...
public class class_name { @Action( semantics = SemanticsOf.SAFE ) @MemberOrder(sequence = "3") public List<FullCalendar2WicketToDoItem> complete() { final List<FullCalendar2WicketToDoItem> items = completeNoUi(); if(items.isEmpty()) { container.informUser("No to-do i...
public class class_name { @Action( semantics = SemanticsOf.SAFE ) @MemberOrder(sequence = "3") public List<FullCalendar2WicketToDoItem> complete() { final List<FullCalendar2WicketToDoItem> items = completeNoUi(); if(items.isEmpty()) { container.informUser("No to-do i...
public class class_name { @Override public VariableExpression visitBuiltInType(BuiltInTypeContext ctx) { String text; if (asBoolean(ctx.VOID())) { text = ctx.VOID().getText(); } else if (asBoolean(ctx.BuiltInPrimitiveType())) { text = ctx.BuiltInPrimitiveType().getTe...
public class class_name { @Override public VariableExpression visitBuiltInType(BuiltInTypeContext ctx) { String text; if (asBoolean(ctx.VOID())) { text = ctx.VOID().getText(); // depends on control dependency: [if], data = [none] } else if (asBoolean(ctx.BuiltInPrimitiveType()))...
public class class_name { public String toJsonString() { try { JSONArray array = new JSONArray(); for (PebbleTuple t : tuples.values()) { array.put(serializeTuple(t)); } return array.toString(); } catch (JSONException je) { je....
public class class_name { public String toJsonString() { try { JSONArray array = new JSONArray(); for (PebbleTuple t : tuples.values()) { array.put(serializeTuple(t)); // depends on control dependency: [for], data = [t] } return array.toString(); ...
public class class_name { public InetSocketAddress getTrackerAddress() { TrackerAddressHolder holder; // 遍历连接地址,抓取当前有效的地址 for (int i = 0; i < trackerAddressCircular.size(); i++) { holder = trackerAddressCircular.next(); if (holder.canTryToConnect(retryAfterSecend)) { ...
public class class_name { public InetSocketAddress getTrackerAddress() { TrackerAddressHolder holder; // 遍历连接地址,抓取当前有效的地址 for (int i = 0; i < trackerAddressCircular.size(); i++) { holder = trackerAddressCircular.next(); // depends on control dependency: [for], data = [none] ...
public class class_name { protected Properties collectProperties( CmsObject cms, CmsResource resource, Set<String> orgfilter, ObjectInfoImpl objectInfo) { CmsCmisTypeManager tm = m_repository.getTypeManager(); if (resource == null) { throw new Ille...
public class class_name { protected Properties collectProperties( CmsObject cms, CmsResource resource, Set<String> orgfilter, ObjectInfoImpl objectInfo) { CmsCmisTypeManager tm = m_repository.getTypeManager(); if (resource == null) { throw new Ille...
public class class_name { private int trMedian5(int ISAd, int v1, int v2, int v3, int v4, int v5) { int t; if (SA[ISAd + SA[v2]] > SA[ISAd + SA[v3]]) { t = v2; v2 = v3; v3 = t; } if (SA[ISAd + SA[v4]] > SA[ISAd + SA[v5]]) { t = v4; ...
public class class_name { private int trMedian5(int ISAd, int v1, int v2, int v3, int v4, int v5) { int t; if (SA[ISAd + SA[v2]] > SA[ISAd + SA[v3]]) { t = v2; // depends on control dependency: [if], data = [none] v2 = v3; // depends on control dependency: [if], data = [none] ...
public class class_name { public static double lpow2(long m, int n) { if(m == 0) { return 0.0; } if(m == Long.MIN_VALUE) { return lpow2(Long.MIN_VALUE >> 1, n + 1); } if(m < 0) { return -lpow2(-m, n); } assert (m >= 0); int bitLength = magnitude(m); int shift = bit...
public class class_name { public static double lpow2(long m, int n) { if(m == 0) { return 0.0; // depends on control dependency: [if], data = [none] } if(m == Long.MIN_VALUE) { return lpow2(Long.MIN_VALUE >> 1, n + 1); // depends on control dependency: [if], data = [none] } if(m < 0) { ...
public class class_name { protected String getModuleVersion() { StringBuilder sb = new StringBuilder(); int pcs = 0; for (String pc : projectVersion.split("\\.")) { if (pcs++ > 3) { break; } else { appendVersionPiece(sb, pc); ...
public class class_name { protected String getModuleVersion() { StringBuilder sb = new StringBuilder(); int pcs = 0; for (String pc : projectVersion.split("\\.")) { if (pcs++ > 3) { break; } else { appendVersionPiece(sb, pc); // d...
public class class_name { @Override public EClass getDownloadResult() { if (downloadResultEClass == null) { downloadResultEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(StorePackage.eNS_URI).getEClassifiers().get(17); } return downloadResultEClass; } }
public class class_name { @Override public EClass getDownloadResult() { if (downloadResultEClass == null) { downloadResultEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(StorePackage.eNS_URI).getEClassifiers().get(17); // depends on control dependency: [if], data = [none] } return downloadResul...
public class class_name { @Override public List<Record> signalStartTrack(Record signal) { //(queue track) this.queuedTracks.addLast(signal); //(push info) if(info != null){ this.trackStack.push(info); } info = new TrackInfo(signal.content.toString(), signal.timesstamp); //(...
public class class_name { @Override public List<Record> signalStartTrack(Record signal) { //(queue track) this.queuedTracks.addLast(signal); //(push info) if(info != null){ this.trackStack.push(info); // depends on control dependency: [if], data = [(info] } info = new TrackInfo(...
public class class_name { public static Iterable<BoxLegalHoldPolicy.Info> getAll( final BoxAPIConnection api, String policyName, int limit, String ... fields) { QueryStringBuilder builder = new QueryStringBuilder(); if (policyName != null) { builder.appendParam("policy_name", po...
public class class_name { public static Iterable<BoxLegalHoldPolicy.Info> getAll( final BoxAPIConnection api, String policyName, int limit, String ... fields) { QueryStringBuilder builder = new QueryStringBuilder(); if (policyName != null) { builder.appendParam("policy_name", po...
public class class_name { @Override public Value check(ILexNameToken name) { Value v = get(name); if (v != null) { return v; } if (freeVariables != null) { v = freeVariables.get(name); if (v != null) { return v; } } // A RootContext stops the name search from continuing down th...
public class class_name { @Override public Value check(ILexNameToken name) { Value v = get(name); if (v != null) { return v; // depends on control dependency: [if], data = [none] } if (freeVariables != null) { v = freeVariables.get(name); // depends on control dependency: [if], data = [none] ...
public class class_name { private void CheckCMYK(IfdTags metadata, int n) { // Samples per pixel if (!metadata.containsTagId(TiffTags.getTagId("SamplesPerPixel"))) { validation.addErrorLoc("Missing Samples Per Pixel", "IFD" + n); } // BitsPerSample if (!metadata.containsTagId(TiffTags.getTag...
public class class_name { private void CheckCMYK(IfdTags metadata, int n) { // Samples per pixel if (!metadata.containsTagId(TiffTags.getTagId("SamplesPerPixel"))) { validation.addErrorLoc("Missing Samples Per Pixel", "IFD" + n); // depends on control dependency: [if], data = [none] } // BitsPer...
public class class_name { private void onJoinComplete(Integer count, Result<Boolean> result) { if (count == null) { count = 0; } _joinState = _joinState.onJoinComplete(count, this); updatePodsFromHeartbeat(); waitForHubHeartbeat(count, result); ...
public class class_name { private void onJoinComplete(Integer count, Result<Boolean> result) { if (count == null) { count = 0; // depends on control dependency: [if], data = [none] } _joinState = _joinState.onJoinComplete(count, this); updatePodsFromHeart...
public class class_name { private void initResultsTable(DeferredSelector[] dg, Benchmark... benchs) { int numRows = dg.length; grid = new FlexTable(); grid.addStyleName("resultstable"); RootPanel.get("results").clear(); RootPanel.get("results").add(grid); grid.setText(0, 0, "Selector"); fo...
public class class_name { private void initResultsTable(DeferredSelector[] dg, Benchmark... benchs) { int numRows = dg.length; grid = new FlexTable(); grid.addStyleName("resultstable"); RootPanel.get("results").clear(); RootPanel.get("results").add(grid); grid.setText(0, 0, "Selector"); fo...
public class class_name { public static boolean isTypeOf(final Class<?> lookupClass, final Class<?> targetClass) { if (targetClass == null || lookupClass == null) { return false; } return targetClass.isAssignableFrom(lookupClass); } }
public class class_name { public static boolean isTypeOf(final Class<?> lookupClass, final Class<?> targetClass) { if (targetClass == null || lookupClass == null) { return false; // depends on control dependency: [if], data = [none] } return targetClass.isAssignableFrom(lookupClass); } }
public class class_name { @SneakyThrows public void parseCompilationUnit(final Set<ConfigurationMetadataProperty> collectedProps, final Set<ConfigurationMetadataProperty> collectedGroups, final ConfigurationMetadataProperty p, ...
public class class_name { @SneakyThrows public void parseCompilationUnit(final Set<ConfigurationMetadataProperty> collectedProps, final Set<ConfigurationMetadataProperty> collectedGroups, final ConfigurationMetadataProperty p, ...
public class class_name { public void marshall(HlsGroupSettings hlsGroupSettings, ProtocolMarshaller protocolMarshaller) { if (hlsGroupSettings == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(hlsG...
public class class_name { public void marshall(HlsGroupSettings hlsGroupSettings, ProtocolMarshaller protocolMarshaller) { if (hlsGroupSettings == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(hlsG...
public class class_name { protected void checkWritePermissionsInFolder(CmsDbContext dbc, CmsResource folder) throws CmsDataAccessException { ResultSet res = null; PreparedStatement stmt = null; Connection conn = null; CmsUUID projectId = dbc.getRequestContext().getCurrentProject().get...
public class class_name { protected void checkWritePermissionsInFolder(CmsDbContext dbc, CmsResource folder) throws CmsDataAccessException { ResultSet res = null; PreparedStatement stmt = null; Connection conn = null; CmsUUID projectId = dbc.getRequestContext().getCurrentProject().get...
public class class_name { public void marshall(GetTriggerRequest getTriggerRequest, ProtocolMarshaller protocolMarshaller) { if (getTriggerRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(g...
public class class_name { public void marshall(GetTriggerRequest getTriggerRequest, ProtocolMarshaller protocolMarshaller) { if (getTriggerRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(g...
public class class_name { private static Collection<TileRef> getTiles(Map<ColorRgba, Collection<TileRef>> colors, ColorRgba color) { if (!colors.containsKey(color)) { colors.put(color, new HashSet<TileRef>()); } return colors.get(color); } }
public class class_name { private static Collection<TileRef> getTiles(Map<ColorRgba, Collection<TileRef>> colors, ColorRgba color) { if (!colors.containsKey(color)) { colors.put(color, new HashSet<TileRef>()); // depends on control dependency: [if], data = [none] } ...
public class class_name { public void dispose(){ if(logger.isDebugEnabled()){ logger.debug("Disposing of editor "+getId()); } context.register(GlobalCommandIds.SAVE, null); context.register(GlobalCommandIds.SAVE_AS, null); //descriptor.removePropertyChangeListener((PropertyChangeListener)context.getPane()...
public class class_name { public void dispose(){ if(logger.isDebugEnabled()){ logger.debug("Disposing of editor "+getId()); // depends on control dependency: [if], data = [none] } context.register(GlobalCommandIds.SAVE, null); context.register(GlobalCommandIds.SAVE_AS, null); //descriptor.removePropertyCh...
public class class_name { @Override public void taskStopping() { if (suspendTranOfExecutionThread) { Throwable exception = null; // Cleanup any unresolved transactions. UOWCurrent uowCurrent = EmbeddableTransactionManagerFactory.getUOWCurrent(); switch (uowC...
public class class_name { @Override public void taskStopping() { if (suspendTranOfExecutionThread) { Throwable exception = null; // Cleanup any unresolved transactions. UOWCurrent uowCurrent = EmbeddableTransactionManagerFactory.getUOWCurrent(); switch (uowC...
public class class_name { public ServiceCall<Classifier> getClassifier(GetClassifierOptions getClassifierOptions) { Validator.notNull(getClassifierOptions, "getClassifierOptions cannot be null"); String[] pathSegments = { "v3/classifiers" }; String[] pathParameters = { getClassifierOptions.classifierId() }...
public class class_name { public ServiceCall<Classifier> getClassifier(GetClassifierOptions getClassifierOptions) { Validator.notNull(getClassifierOptions, "getClassifierOptions cannot be null"); String[] pathSegments = { "v3/classifiers" }; String[] pathParameters = { getClassifierOptions.classifierId() }...
public class class_name { public Map<String, String> toStringMap() { Map<String, String> map = new HashMap<>(); for (Map.Entry<String, Object> entry : entrySet()) { map.put(entry.getKey(), String.valueOf(entry.getValue())); } return map; } }
public class class_name { public Map<String, String> toStringMap() { Map<String, String> map = new HashMap<>(); for (Map.Entry<String, Object> entry : entrySet()) { map.put(entry.getKey(), String.valueOf(entry.getValue())); // depends on control dependency: [for], data = [entry] } return map; }...