code
stringlengths
130
281k
code_dependency
stringlengths
182
306k
public class class_name { protected Message createControlMessage(TestContext context, String messageType) { if (dataDictionary != null) { messageBuilder.setDataDictionary(dataDictionary); } return messageBuilder.buildMessageContent(context, messageType, MessageDirection.INBOUND); ...
public class class_name { protected Message createControlMessage(TestContext context, String messageType) { if (dataDictionary != null) { messageBuilder.setDataDictionary(dataDictionary); // depends on control dependency: [if], data = [(dataDictionary] } return messageBuilder.build...
public class class_name { public Revision next() throws Exception { // Checks whether the next revision has already been reconstructed. Revision revision; if (chronoStorage.isTop(revisionIndex)) { // If this is the case the revision will removed from the storage return chronoStorage.remove(); } /...
public class class_name { public Revision next() throws Exception { // Checks whether the next revision has already been reconstructed. Revision revision; if (chronoStorage.isTop(revisionIndex)) { // If this is the case the revision will removed from the storage return chronoStorage.remove(); } /...
public class class_name { public static void sortBySpecificityAndQuality(List<MediaType> mediaTypes) { checkNotNull(mediaTypes, "'mediaTypes' must not be null"); if (mediaTypes.size() > 1) { Collections.sort(mediaTypes, Ordering.compound( ImmutableList.of(MediaType.SPECI...
public class class_name { public static void sortBySpecificityAndQuality(List<MediaType> mediaTypes) { checkNotNull(mediaTypes, "'mediaTypes' must not be null"); if (mediaTypes.size() > 1) { Collections.sort(mediaTypes, Ordering.compound( ImmutableList.of(MediaType.SPECI...
public class class_name { public void setFacility(String facilityStr) { if (facilityStr != null) { facilityStr = facilityStr.trim(); } this.facilityStr = facilityStr; } }
public class class_name { public void setFacility(String facilityStr) { if (facilityStr != null) { facilityStr = facilityStr.trim(); // depends on control dependency: [if], data = [none] } this.facilityStr = facilityStr; } }
public class class_name { public static int[] btopDecode(String alignment, Alphabet alphabet) { Matcher matcher = btopPattern.matcher(alignment); IntArrayList mutations = new IntArrayList(); int sPosition = 0; while (matcher.find()) { String g = matcher.group(); ...
public class class_name { public static int[] btopDecode(String alignment, Alphabet alphabet) { Matcher matcher = btopPattern.matcher(alignment); IntArrayList mutations = new IntArrayList(); int sPosition = 0; while (matcher.find()) { String g = matcher.group(); ...
public class class_name { protected void changeBreakpoint(final IDbgpSession session, IVdmBreakpoint breakpoint) throws DbgpException, CoreException { final IDbgpBreakpointCommands commands = session.getCoreCommands(); URI bpUri = null; // map the outgoing uri if we're a line breakpoint if (breakpoint ins...
public class class_name { protected void changeBreakpoint(final IDbgpSession session, IVdmBreakpoint breakpoint) throws DbgpException, CoreException { final IDbgpBreakpointCommands commands = session.getCoreCommands(); URI bpUri = null; // map the outgoing uri if we're a line breakpoint if (breakpoint ins...
public class class_name { static <T extends FunctionMeta> Map<T, IDataModel> toMetaFunctions(Workbook book, Class<T> metaClass) { Map<T, IDataModel> map = new HashMap<>(); book.addToolPack(Functions.getUdfFinder()); final FormulaParsingWorkbook parsingBook = create((XSSFWorkbook) book); ...
public class class_name { static <T extends FunctionMeta> Map<T, IDataModel> toMetaFunctions(Workbook book, Class<T> metaClass) { Map<T, IDataModel> map = new HashMap<>(); book.addToolPack(Functions.getUdfFinder()); final FormulaParsingWorkbook parsingBook = create((XSSFWorkbook) book); ...
public class class_name { @SuppressWarnings("unchecked") public static <T> T invoke(Object obj, Method method, Object... args) throws UtilException { if (false == method.isAccessible()) { method.setAccessible(true); } try { return (T) method.invoke(ClassUtil.isStatic(method) ? null : obj, args); ...
public class class_name { @SuppressWarnings("unchecked") public static <T> T invoke(Object obj, Method method, Object... args) throws UtilException { if (false == method.isAccessible()) { method.setAccessible(true); // depends on control dependency: [if], data = [none] } try { return (T) method.in...
public class class_name { private boolean isStringTokenMatched(AnalyzedToken token) { String testToken = getTestToken(token); if (stringRegExp) { Matcher m = pattern.matcher(new InterruptibleCharSequence(testToken)); return m.matches(); } if (caseSensitive) { return stringToken.equals...
public class class_name { private boolean isStringTokenMatched(AnalyzedToken token) { String testToken = getTestToken(token); if (stringRegExp) { Matcher m = pattern.matcher(new InterruptibleCharSequence(testToken)); return m.matches(); // depends on control dependency: [if], data = [none] } ...
public class class_name { public List<CloudTrailSource> parseMessage(List<Message> sqsMessages) { List<CloudTrailSource> sources = new ArrayList<>(); for (Message sqsMessage : sqsMessages) { boolean parseMessageSuccess = false; ProgressStatus parseMessageStatus = new ProgressS...
public class class_name { public List<CloudTrailSource> parseMessage(List<Message> sqsMessages) { List<CloudTrailSource> sources = new ArrayList<>(); for (Message sqsMessage : sqsMessages) { boolean parseMessageSuccess = false; ProgressStatus parseMessageStatus = new ProgressS...
public class class_name { public Observable<ServiceResponse<SharedAccessSignatureAuthorizationRuleInner>> getKeysForKeyNameWithServiceResponseAsync(String resourceGroupName, String resourceName, String keyName) { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parame...
public class class_name { public Observable<ServiceResponse<SharedAccessSignatureAuthorizationRuleInner>> getKeysForKeyNameWithServiceResponseAsync(String resourceGroupName, String resourceName, String keyName) { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parame...
public class class_name { public static int typeCompareTo(Writable one, Writable other) { PrimitiveObject noOne = hadoop2Primitive(one); PrimitiveObject noOther = hadoop2Primitive(other); if (noOne.getType() != noOther.getType()) { return -1; } return 0; } }
public class class_name { public static int typeCompareTo(Writable one, Writable other) { PrimitiveObject noOne = hadoop2Primitive(one); PrimitiveObject noOther = hadoop2Primitive(other); if (noOne.getType() != noOther.getType()) { return -1; // depends on control dependency: [if], ...
public class class_name { public boolean runOptimize() { boolean answer = false; for (int i = 0; i < this.highLowContainer.size(); i++) { Container c = this.highLowContainer.getContainerAtIndex(i).runOptimize(); if (c instanceof RunContainer) { answer = true; } this.highLowConta...
public class class_name { public boolean runOptimize() { boolean answer = false; for (int i = 0; i < this.highLowContainer.size(); i++) { Container c = this.highLowContainer.getContainerAtIndex(i).runOptimize(); if (c instanceof RunContainer) { answer = true; // depends on control dependenc...
public class class_name { public void uninstall(String pluginKey, File uninstallDir) { Set<String> uninstallKeys = new HashSet<>(); uninstallKeys.add(pluginKey); appendDependentPluginKeys(pluginKey, uninstallKeys); for (String uninstallKey : uninstallKeys) { PluginInfo info = getPluginInfo(unins...
public class class_name { public void uninstall(String pluginKey, File uninstallDir) { Set<String> uninstallKeys = new HashSet<>(); uninstallKeys.add(pluginKey); appendDependentPluginKeys(pluginKey, uninstallKeys); for (String uninstallKey : uninstallKeys) { PluginInfo info = getPluginInfo(unins...
public class class_name { public void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { PrintWriter out; String title = "Index of "; String dirName = (String)req.getAttribute("com.ibm.servlet.engine.webapp.dir.browsing.path"); String req...
public class class_name { public void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { PrintWriter out; String title = "Index of "; String dirName = (String)req.getAttribute("com.ibm.servlet.engine.webapp.dir.browsing.path"); String req...
public class class_name { public static synchronized void removeBuffer(String installationID) { for (final Iterator i = buffers.iterator(); i.hasNext();) { final NetworkBuffer b = (NetworkBuffer) i.next(); if (b.inst.equals(installationID)) { i.remove(); while (!b.configs.isEmpty()) b.remo...
public class class_name { public static synchronized void removeBuffer(String installationID) { for (final Iterator i = buffers.iterator(); i.hasNext();) { final NetworkBuffer b = (NetworkBuffer) i.next(); if (b.inst.equals(installationID)) { i.remove(); // depends on control dependency: [if], data ...
public class class_name { int getTrailCCFromCompYesAndZeroCC(CharSequence s, int cpStart, int cpLimit) { int c; if(cpStart==(cpLimit-1)) { c=s.charAt(cpStart); } else { c=Character.codePointAt(s, cpStart); } int prevNorm16=getNorm16(c); if(prevNor...
public class class_name { int getTrailCCFromCompYesAndZeroCC(CharSequence s, int cpStart, int cpLimit) { int c; if(cpStart==(cpLimit-1)) { c=s.charAt(cpStart); // depends on control dependency: [if], data = [(cpStart] } else { c=Character.codePointAt(s, cpStart); // depe...
public class class_name { private String getCategoryLabel(String categoryPath) { CmsObject cms = A_CmsUI.getCmsObject(); String result = ""; if (CmsStringUtil.isEmptyOrWhitespaceOnly(categoryPath)) { return result; } Locale locale = UI.getCurrent().getLocale(); ...
public class class_name { private String getCategoryLabel(String categoryPath) { CmsObject cms = A_CmsUI.getCmsObject(); String result = ""; if (CmsStringUtil.isEmptyOrWhitespaceOnly(categoryPath)) { return result; // depends on control dependency: [if], data = [none] } ...
public class class_name { @Override public CommerceSubscriptionEntry fetchByPrimaryKey(Serializable primaryKey) { Serializable serializable = entityCache.getResult(CommerceSubscriptionEntryModelImpl.ENTITY_CACHE_ENABLED, CommerceSubscriptionEntryImpl.class, primaryKey); if (serializable == nullModel) { re...
public class class_name { @Override public CommerceSubscriptionEntry fetchByPrimaryKey(Serializable primaryKey) { Serializable serializable = entityCache.getResult(CommerceSubscriptionEntryModelImpl.ENTITY_CACHE_ENABLED, CommerceSubscriptionEntryImpl.class, primaryKey); if (serializable == nullModel) { re...
public class class_name { public boolean removeRelation( TemporalExtendedPropositionDefinition lhsRule, TemporalExtendedPropositionDefinition rhsRule) { List<TemporalExtendedPropositionDefinition> key = Arrays.asList( lhsRule, rhsRule); if (defPairsMap.remove(key...
public class class_name { public boolean removeRelation( TemporalExtendedPropositionDefinition lhsRule, TemporalExtendedPropositionDefinition rhsRule) { List<TemporalExtendedPropositionDefinition> key = Arrays.asList( lhsRule, rhsRule); if (defPairsMap.remove(key...
public class class_name { public double getStorageSize(String name, String defaultValue, StorageUnit targetUnit) { Preconditions.checkState(isNotBlank(name), "Key cannot be blank."); String vString = get(name); if (isBlank(vString)) { vString = defaultValue; } // Please note...
public class class_name { public double getStorageSize(String name, String defaultValue, StorageUnit targetUnit) { Preconditions.checkState(isNotBlank(name), "Key cannot be blank."); String vString = get(name); if (isBlank(vString)) { vString = defaultValue; // depends on control...
public class class_name { private void start() { if (independent) { logger.info("KAFKA 启动模式[independent]"); new Thread(new Runnable() { @Override public void run() { registerKafkaSubscriber(); } }).start(); } else { registerKafkaSubscriber(); } } }
public class class_name { private void start() { if (independent) { logger.info("KAFKA 启动模式[independent]"); // depends on control dependency: [if], data = [none] new Thread(new Runnable() { @Override public void run() { registerKafkaSubscriber(); } }).start(); // depends on control dependen...
public class class_name { public Pattern getPattern() { if ((this.pattern == null) && (alias != null)) { this.pattern = Pattern.compile("\\s*" + ParserUtility.wildcardToRegex(alias)); } return pattern; } }
public class class_name { public Pattern getPattern() { if ((this.pattern == null) && (alias != null)) { this.pattern = Pattern.compile("\\s*" + ParserUtility.wildcardToRegex(alias)); // depends on control dependency: [if], data = [none] } return pattern; } }
public class class_name { public static void setClipboardText(final Context context, final String text) { if(text != null) { final ClipboardManager clipboard = (ClipboardManager) context.getSystemService(Context.CLIPBOARD_SERVICE); final ClipData clipData = ClipData.newPlainText(text, t...
public class class_name { public static void setClipboardText(final Context context, final String text) { if(text != null) { final ClipboardManager clipboard = (ClipboardManager) context.getSystemService(Context.CLIPBOARD_SERVICE); final ClipData clipData = ClipData.newPlainText(text, t...
public class class_name { public void fit(DataSet dataSet) { if (numInputArrays != 1 || numOutputArrays != 1) throw new UnsupportedOperationException("Cannot train ComputationGraph network with " + " multiple inputs or outputs using a DataSet"); boolean hasMaskArrays = ...
public class class_name { public void fit(DataSet dataSet) { if (numInputArrays != 1 || numOutputArrays != 1) throw new UnsupportedOperationException("Cannot train ComputationGraph network with " + " multiple inputs or outputs using a DataSet"); boolean hasMaskArrays = ...
public class class_name { public static FontUIResource getFont(PropertyOwner propertyOwner, Map<String,Object> properties, boolean returnDefaultIfNone) { String strFontName = ScreenUtil.getPropery(ScreenUtil.FONT_NAME, propertyOwner, properties, null); String strFontSize = ScreenUtil.getPropery(Scr...
public class class_name { public static FontUIResource getFont(PropertyOwner propertyOwner, Map<String,Object> properties, boolean returnDefaultIfNone) { String strFontName = ScreenUtil.getPropery(ScreenUtil.FONT_NAME, propertyOwner, properties, null); String strFontSize = ScreenUtil.getPropery(Scr...
public class class_name { private int countInstances(HeaderElement root) { int count = 0; HeaderElement elem = root; while (null != elem) { if (!elem.wasRemoved()) { count++; } elem = elem.nextInstance; } return count; } }
public class class_name { private int countInstances(HeaderElement root) { int count = 0; HeaderElement elem = root; while (null != elem) { if (!elem.wasRemoved()) { count++; // depends on control dependency: [if], data = [none] } elem = elem....
public class class_name { private String getCookieParam(String param, String cookieString) { if (param.equals(NAME)) { return cookieString.substring(0, cookieString.indexOf('=')); } if (param.equals(VALUE)) { if (cookieString.contains(";")) { return cook...
public class class_name { private String getCookieParam(String param, String cookieString) { if (param.equals(NAME)) { return cookieString.substring(0, cookieString.indexOf('=')); // depends on control dependency: [if], data = [none] } if (param.equals(VALUE)) { if (coo...
public class class_name { @Override public Filters.Filter adapt(FilterAdapterContext context, FilterList filter) throws IOException { try (ContextCloseable ignored = context.beginFilterList(filter)) { List<Filters.Filter> childFilters = collectChildFilters(context, filter); if (childFilters.isEmpty()...
public class class_name { @Override public Filters.Filter adapt(FilterAdapterContext context, FilterList filter) throws IOException { try (ContextCloseable ignored = context.beginFilterList(filter)) { List<Filters.Filter> childFilters = collectChildFilters(context, filter); if (childFilters.isEmpty()...
public class class_name { private Collection<Snapshot> loadSnapshots() { // Ensure log directories are created. storage.directory().mkdirs(); List<Snapshot> snapshots = new ArrayList<>(); // Iterate through all files in the log directory. for (File file : storage.directory().listFiles(File::isFil...
public class class_name { private Collection<Snapshot> loadSnapshots() { // Ensure log directories are created. storage.directory().mkdirs(); List<Snapshot> snapshots = new ArrayList<>(); // Iterate through all files in the log directory. for (File file : storage.directory().listFiles(File::isFil...
public class class_name { private void parsePreamble(ByteBuffer buffer) { if (_partialBoundary > 0) { int partial = _delimiterSearch.startsWith(buffer.array(), buffer.arrayOffset() + buffer.position(), buffer.remaining(), _partialBoundary); if (partial > 0) { if (partial...
public class class_name { private void parsePreamble(ByteBuffer buffer) { if (_partialBoundary > 0) { int partial = _delimiterSearch.startsWith(buffer.array(), buffer.arrayOffset() + buffer.position(), buffer.remaining(), _partialBoundary); if (partial > 0) { if (partial...
public class class_name { public static OutputMapping createOutputMapping( Element outputElement ){ if( outputElement == null ){ return null; } switch( outputElement.getType() ) { case VARIABLE: return new ValueMapping( outputElement.getString( 0 ) ); ...
public class class_name { public static OutputMapping createOutputMapping( Element outputElement ){ if( outputElement == null ){ return null; // depends on control dependency: [if], data = [none] } switch( outputElement.getType() ) { case VARIABLE: return...
public class class_name { public static double dotProduct(double[] pointA) { double product = 0.0; for (int i = 0; i < pointA.length; i++) { product += pointA[i] * pointA[i]; } return product; } }
public class class_name { public static double dotProduct(double[] pointA) { double product = 0.0; for (int i = 0; i < pointA.length; i++) { product += pointA[i] * pointA[i]; // depends on control dependency: [for], data = [i] } return product; } }
public class class_name { public static String extractHtmlBody(String content) { Matcher startMatcher = BODY_START_PATTERN.matcher(content); Matcher endMatcher = BODY_END_PATTERN.matcher(content); int start = 0; int end = content.length(); if (startMatcher.find()) { ...
public class class_name { public static String extractHtmlBody(String content) { Matcher startMatcher = BODY_START_PATTERN.matcher(content); Matcher endMatcher = BODY_END_PATTERN.matcher(content); int start = 0; int end = content.length(); if (startMatcher.find()) { ...
public class class_name { protected final int applyAllCaseFoldWithMap(int mapSize, int[][]map, boolean essTsettFlag, int flag, ApplyAllCaseFoldFunction fun, Object arg) { asciiApplyAllCaseFold(flag, fun, arg); int[]code = new int[]{0}; for (int i=0; i...
public class class_name { protected final int applyAllCaseFoldWithMap(int mapSize, int[][]map, boolean essTsettFlag, int flag, ApplyAllCaseFoldFunction fun, Object arg) { asciiApplyAllCaseFold(flag, fun, arg); int[]code = new int[]{0}; for (int i=0; i...
public class class_name { public Observable<ServiceResponse<Page<ProjectTaskInner>>> listWithServiceResponseAsync(final String groupName, final String serviceName, final String projectName, final String taskType) { return listSinglePageAsync(groupName, serviceName, projectName, taskType) .concatMap...
public class class_name { public Observable<ServiceResponse<Page<ProjectTaskInner>>> listWithServiceResponseAsync(final String groupName, final String serviceName, final String projectName, final String taskType) { return listSinglePageAsync(groupName, serviceName, projectName, taskType) .concatMap...
public class class_name { @SuppressWarnings("unchecked") public List<URI> getLocatorUrlList() { List<URI> locatorList = new ArrayList<URI>(); Map<String, ?> credentials = getCredentials(); List<String> locators = null; if (credentials != null) locators = (List<String>) credentials.get("locators"); ...
public class class_name { @SuppressWarnings("unchecked") public List<URI> getLocatorUrlList() { List<URI> locatorList = new ArrayList<URI>(); Map<String, ?> credentials = getCredentials(); List<String> locators = null; if (credentials != null) locators = (List<String>) credentials.get("locators"); ...
public class class_name { public static JsonObject toJson( Project project) { JsonObjectBuilder builder = Json.createObjectBuilder(); Optional.ofNullable( project.getBaseLocation()) .ifPresent( uri -> builder.add( REFBASE_KEY, String.valueOf( uri))); if( project.getSystemInputLocation() != null...
public class class_name { public static JsonObject toJson( Project project) { JsonObjectBuilder builder = Json.createObjectBuilder(); Optional.ofNullable( project.getBaseLocation()) .ifPresent( uri -> builder.add( REFBASE_KEY, String.valueOf( uri))); if( project.getSystemInputLocation() != null...
public class class_name { public static Writer getWriterForProperty(final Class<?> beanClass, final String propertyName) { int splitPoint = propertyName.indexOf('.'); if (splitPoint > 0) { String firstPart = propertyName.substring(0, splitPoint); String secondPart = ...
public class class_name { public static Writer getWriterForProperty(final Class<?> beanClass, final String propertyName) { int splitPoint = propertyName.indexOf('.'); if (splitPoint > 0) { String firstPart = propertyName.substring(0, splitPoint); String secondPart = ...
public class class_name { public static String getMtLvESS( int mtLv ) { // MtLvESS = Method Level External Shift String // if ( mtLv < 0 ) return "?"; // String Result = ""; // // String LvS = ". "; String LvS = "."; // for ( int K = 1; K <= mtLv; K ++ ) { // Result = Result + LvS; } // ...
public class class_name { public static String getMtLvESS( int mtLv ) { // MtLvESS = Method Level External Shift String // if ( mtLv < 0 ) return "?"; // String Result = ""; // // String LvS = ". "; String LvS = "."; // for ( int K = 1; K <= mtLv; K ++ ) { // Result = Result + LvS; // depend...
public class class_name { <K, V> ConnectionFuture<StatefulRedisConnection<K, V>> connectToNodeAsync(RedisCodec<K, V> codec, String nodeId, RedisChannelWriter clusterWriter, Mono<SocketAddress> socketAddressSupplier) { assertNotNull(codec); assertNotEmpty(initialUris); LettuceAssert...
public class class_name { <K, V> ConnectionFuture<StatefulRedisConnection<K, V>> connectToNodeAsync(RedisCodec<K, V> codec, String nodeId, RedisChannelWriter clusterWriter, Mono<SocketAddress> socketAddressSupplier) { assertNotNull(codec); assertNotEmpty(initialUris); LettuceAssert...
public class class_name { public String getGeneratedValueAnnotation() { if (useSequenceNameShortcut()) { return getGeneratedValueForSequenceNameByConfiguration(); } if (attribute.getColumnConfig().useConfigForIdGenerator()) { // TODO: explain why we do not directly chec...
public class class_name { public String getGeneratedValueAnnotation() { if (useSequenceNameShortcut()) { return getGeneratedValueForSequenceNameByConfiguration(); // depends on control dependency: [if], data = [none] } if (attribute.getColumnConfig().useConfigForIdGenerator()) { ...
public class class_name { public String getDestinationName(Destination destination) { try { if (destination instanceof Queue) { return ((Queue) destination).getQueueName(); } else if (destination instanceof Topic) { return ((Topic) destination).getTopicNa...
public class class_name { public String getDestinationName(Destination destination) { try { if (destination instanceof Queue) { return ((Queue) destination).getQueueName(); // depends on control dependency: [if], data = [none] } else if (destination instanceof Topic) { ...
public class class_name { public static Comparator universalComparator( final FieldAccess field, final boolean ascending, final boolean nullsFirst) { return new Comparator() { @Override public int compare( Object o1, Object o2 ) { ...
public class class_name { public static Comparator universalComparator( final FieldAccess field, final boolean ascending, final boolean nullsFirst) { return new Comparator() { @Override public int compare( Object o1, Object o2 ) { ...
public class class_name { @Override public void addDigestMetadata(StorageObjectMetadata meta, String digest) { if (!SnowflakeUtil.isBlank(digest)) { // Azure doesn't allow hyphens in the name of a metadata field. meta.addUserMetadata("sfcdigest", digest); } } }
public class class_name { @Override public void addDigestMetadata(StorageObjectMetadata meta, String digest) { if (!SnowflakeUtil.isBlank(digest)) { // Azure doesn't allow hyphens in the name of a metadata field. meta.addUserMetadata("sfcdigest", digest); // depends on control dependency: [if],...
public class class_name { public int rank(double t) { int rank = n; for(int j = 0; j < n; j++) { if(Math.abs(Rdiag[j]) <= t) { --rank; } } return rank; } }
public class class_name { public int rank(double t) { int rank = n; for(int j = 0; j < n; j++) { if(Math.abs(Rdiag[j]) <= t) { --rank; // depends on control dependency: [if], data = [none] } } return rank; } }
public class class_name { public final EObject entryRuleGuarded() throws RecognitionException { EObject current = null; EObject iv_ruleGuarded = null; try { // InternalSimpleAntlr.g:877:2: (iv_ruleGuarded= ruleGuarded EOF ) // InternalSimpleAntlr.g:878:2: iv_ruleGuard...
public class class_name { public final EObject entryRuleGuarded() throws RecognitionException { EObject current = null; EObject iv_ruleGuarded = null; try { // InternalSimpleAntlr.g:877:2: (iv_ruleGuarded= ruleGuarded EOF ) // InternalSimpleAntlr.g:878:2: iv_ruleGuard...
public class class_name { public static String getFileNameOr(TaskResponse response, NameGenerator nameGenerator) { String name = getFileName(response); if (null == name) { name = nameGenerator.name(); } return name; } }
public class class_name { public static String getFileNameOr(TaskResponse response, NameGenerator nameGenerator) { String name = getFileName(response); if (null == name) { name = nameGenerator.name(); // depends on control dependency: [if], data = [none] } return name; }...
public class class_name { public FieldDescriptor[] getFieldDescriptor(boolean withInherited) { if(withInherited && getSuperClassDescriptor() != null) { /* arminw: only return no-PK fields, because all PK fields are declared in sub-class too. */...
public class class_name { public FieldDescriptor[] getFieldDescriptor(boolean withInherited) { if(withInherited && getSuperClassDescriptor() != null) { /* arminw: only return no-PK fields, because all PK fields are declared in sub-class too. */...
public class class_name { protected void failure(final Throwable thrwbl, final Job job, final String curQueue) { try { PoolUtils.doWorkInPool(this.jedisPool, new PoolWork<Jedis, Void>() { /** * {@inheritDoc} */ @Override ...
public class class_name { protected void failure(final Throwable thrwbl, final Job job, final String curQueue) { try { PoolUtils.doWorkInPool(this.jedisPool, new PoolWork<Jedis, Void>() { /** * {@inheritDoc} */ @Override ...
public class class_name { public int readVarIntFlag (boolean optimizePositive) { if (require(1) < 5) return readVarIntFlag_slow(optimizePositive); int b = buffer[position++]; int result = b & 0x3F; // Mask first 6 bits. if ((b & 0x40) != 0) { // Bit 7 means another byte, bit 8 means UTF8. byte[] buffer...
public class class_name { public int readVarIntFlag (boolean optimizePositive) { if (require(1) < 5) return readVarIntFlag_slow(optimizePositive); int b = buffer[position++]; int result = b & 0x3F; // Mask first 6 bits. if ((b & 0x40) != 0) { // Bit 7 means another byte, bit 8 means UTF8. byte[] buffer...
public class class_name { public static FileSystemFactory decorateIfLimited(FileSystemFactory factory, String scheme, Configuration config) { checkNotNull(factory, "factory"); final ConnectionLimitingSettings settings = ConnectionLimitingSettings.fromConfig(config, scheme); // decorate only if any limit is con...
public class class_name { public static FileSystemFactory decorateIfLimited(FileSystemFactory factory, String scheme, Configuration config) { checkNotNull(factory, "factory"); final ConnectionLimitingSettings settings = ConnectionLimitingSettings.fromConfig(config, scheme); // decorate only if any limit is con...
public class class_name { @Override protected ResolutionResult resolveDependencies(String projectFolder, String topLevelFolder, Set<String> bomFiles) { logger.debug("gradleAggregateModules={}",gradleAggregateModules); // In order to use the gradle wrapper, we define the top folder that contains the...
public class class_name { @Override protected ResolutionResult resolveDependencies(String projectFolder, String topLevelFolder, Set<String> bomFiles) { logger.debug("gradleAggregateModules={}",gradleAggregateModules); // In order to use the gradle wrapper, we define the top folder that contains the...
public class class_name { @Override protected Optional<TermType> reduceInferredTypes(ImmutableList<Optional<TermType>> argumentTypes) { if (argumentTypes.stream().allMatch(Optional::isPresent)) { return argumentTypes.stream() .map(Optional::get) .map(t ->...
public class class_name { @Override protected Optional<TermType> reduceInferredTypes(ImmutableList<Optional<TermType>> argumentTypes) { if (argumentTypes.stream().allMatch(Optional::isPresent)) { return argumentTypes.stream() .map(Optional::get) .map(t ->...
public class class_name { public static double asin(double x) { if (x != x) { return Double.NaN; } if (x > 1.0 || x < -1.0) { return Double.NaN; } if (x == 1.0) { return Math.PI/2.0; } if (x == -1.0) { return -Math.PI/2.0; } ...
public class class_name { public static double asin(double x) { if (x != x) { return Double.NaN; // depends on control dependency: [if], data = [none] } if (x > 1.0 || x < -1.0) { return Double.NaN; // depends on control dependency: [if], data = [none] } if (x == 1.0...
public class class_name { public DescribeEcsClustersRequest withEcsClusterArns(String... ecsClusterArns) { if (this.ecsClusterArns == null) { setEcsClusterArns(new com.amazonaws.internal.SdkInternalList<String>(ecsClusterArns.length)); } for (String ele : ecsClusterArns) { ...
public class class_name { public DescribeEcsClustersRequest withEcsClusterArns(String... ecsClusterArns) { if (this.ecsClusterArns == null) { setEcsClusterArns(new com.amazonaws.internal.SdkInternalList<String>(ecsClusterArns.length)); // depends on control dependency: [if], data = [none] }...
public class class_name { public static boolean pickDirectory(Activity activity, File startPath, int requestCode) { PackageManager packageMgr = activity.getPackageManager(); for (String[] intent : PICK_DIRECTORY_INTENTS) { String intentAction = intent[0]; String uriPrefix = inte...
public class class_name { public static boolean pickDirectory(Activity activity, File startPath, int requestCode) { PackageManager packageMgr = activity.getPackageManager(); for (String[] intent : PICK_DIRECTORY_INTENTS) { String intentAction = intent[0]; String uriPrefix = inte...
public class class_name { public void onStartObject() { this.currentObjectKey = this.currentLocalName; if (this.firstObjectKey == null && this.currentLocalName != null) { this.firstObjectKey = this.currentObjectKey; } if (this.currentObjectKey != null) { stackObjectKey.push(this.currentObjectKey); } e...
public class class_name { public void onStartObject() { this.currentObjectKey = this.currentLocalName; if (this.firstObjectKey == null && this.currentLocalName != null) { this.firstObjectKey = this.currentObjectKey; // depends on control dependency: [if], data = [none] } if (this.currentObjectKey != null) ...
public class class_name { public boolean removeInterval(Bounds i) { if(bs.remove(i)) { Bounds intersection = new Bounds(0, APSPSolver.INF); for(Bounds toIntersect : bs) { //intersection = intervalIntersect(intersection, toIntersect);//intervalIntersect(intersection, inter); intersection = int...
public class class_name { public boolean removeInterval(Bounds i) { if(bs.remove(i)) { Bounds intersection = new Bounds(0, APSPSolver.INF); for(Bounds toIntersect : bs) { //intersection = intervalIntersect(intersection, toIntersect);//intervalIntersect(intersection, inter); intersection = int...
public class class_name { public static boolean startsWithPrefix(final String input) { boolean ret = false; if (input != null) { ret = input.toLowerCase().startsWith(PREFIX_BIGINT_DASH_CHECKSUM); } else { ret = false; } return ...
public class class_name { public static boolean startsWithPrefix(final String input) { boolean ret = false; if (input != null) { ret = input.toLowerCase().startsWith(PREFIX_BIGINT_DASH_CHECKSUM); // depends on control dependency: [if], data = [none] } else ...
public class class_name { public static <R> DoubleFunction<R> doubleFunction(CheckedDoubleFunction<R> function, Consumer<Throwable> handler) { return t -> { try { return function.apply(t); } catch (Throwable e) { handler.accept(e); ...
public class class_name { public static <R> DoubleFunction<R> doubleFunction(CheckedDoubleFunction<R> function, Consumer<Throwable> handler) { return t -> { try { return function.apply(t); // depends on control dependency: [try], data = [none] } catch (Throwa...
public class class_name { public void setPortProbeDetails(java.util.Collection<PortProbeDetail> portProbeDetails) { if (portProbeDetails == null) { this.portProbeDetails = null; return; } this.portProbeDetails = new java.util.ArrayList<PortProbeDetail>(portProbeDetails)...
public class class_name { public void setPortProbeDetails(java.util.Collection<PortProbeDetail> portProbeDetails) { if (portProbeDetails == null) { this.portProbeDetails = null; // depends on control dependency: [if], data = [none] return; // depends on control dependency: [if], data = ...
public class class_name { public boolean doCommand(String strCommand, ScreenField sourceSField, int iCommandOptions) { if (strCommand.equalsIgnoreCase(this.getButtonCommand())) if (sourceSField == this) { // Only process this command Map<String,Object> properties = new...
public class class_name { public boolean doCommand(String strCommand, ScreenField sourceSField, int iCommandOptions) { if (strCommand.equalsIgnoreCase(this.getButtonCommand())) if (sourceSField == this) { // Only process this command Map<String,Object> properties = new...
public class class_name { public boolean isPrintableControl(ScreenField sField, int iPrintOptions) { // Override this to break if ((sField == null) || (sField == this)) { // Asking about this control return false; // Tool screens are not printed as a sub-screen. ...
public class class_name { public boolean isPrintableControl(ScreenField sField, int iPrintOptions) { // Override this to break if ((sField == null) || (sField == this)) { // Asking about this control return false; // Tool screens are not printed as a sub-screen. // depe...
public class class_name { public void marshall(UpdateGroupRequest updateGroupRequest, ProtocolMarshaller protocolMarshaller) { if (updateGroupRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshal...
public class class_name { public void marshall(UpdateGroupRequest updateGroupRequest, ProtocolMarshaller protocolMarshaller) { if (updateGroupRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshal...
public class class_name { public void start() { try { if (init) { setErrorStatus("Cannot initialize multiple times", null); return; } init = true; HttpPost postRequest = setupRequest(new ByteArrayOutputStream(0)); UploadImageParam.setHeaders(postRequest, journalId, nam...
public class class_name { public void start() { try { if (init) { setErrorStatus("Cannot initialize multiple times", null); // depends on control dependency: [if], data = [none] return; // depends on control dependency: [if], data = [none] } init = true; // depends on control depe...
public class class_name { public DescribeEndpointsResult withEndpoints(Endpoint... endpoints) { if (this.endpoints == null) { setEndpoints(new java.util.ArrayList<Endpoint>(endpoints.length)); } for (Endpoint ele : endpoints) { this.endpoints.add(ele); } ...
public class class_name { public DescribeEndpointsResult withEndpoints(Endpoint... endpoints) { if (this.endpoints == null) { setEndpoints(new java.util.ArrayList<Endpoint>(endpoints.length)); // depends on control dependency: [if], data = [none] } for (Endpoint ele : endpoints) { ...
public class class_name { protected synchronized void saveRows(CachedObject[] rows, int offset, int count) { if (count == 0) { return; } for (int i = offset; i < offset + count; i++) { CachedObject r = rows[i]; unco...
public class class_name { protected synchronized void saveRows(CachedObject[] rows, int offset, int count) { if (count == 0) { return; // depends on control dependency: [if], data = [none] } for (int i = offset; i < offset + count; i++) { ...
public class class_name { @Override public ExtensionProcessor createExtensionProcessor(IServletContext servletContext) throws Exception { WebModuleMetaData moduleMetaData = ((WebAppConfigExtended) (servletContext.getWebAppConfig())).getMetaData(); JaxRsModuleMetaData jaxRsModuleMetaData = JaxRsMet...
public class class_name { @Override public ExtensionProcessor createExtensionProcessor(IServletContext servletContext) throws Exception { WebModuleMetaData moduleMetaData = ((WebAppConfigExtended) (servletContext.getWebAppConfig())).getMetaData(); JaxRsModuleMetaData jaxRsModuleMetaData = JaxRsMet...
public class class_name { public static <T> List<String> getModifiedFields(T src, T dst, String... ignoreFields) { Class clazz = src.getClass(); Method[] methods = clazz.getMethods(); List<String> ignoreFiledList = Arrays.asList(ignoreFields); List<String> modifiedFields = new ArrayList...
public class class_name { public static <T> List<String> getModifiedFields(T src, T dst, String... ignoreFields) { Class clazz = src.getClass(); Method[] methods = clazz.getMethods(); List<String> ignoreFiledList = Arrays.asList(ignoreFields); List<String> modifiedFields = new ArrayList...
public class class_name { public String printISO8601() { StringBuilder sb = new StringBuilder(); if (_year > 0) { sb.append((_year / 1000) % 10); sb.append((_year / 100) % 10); sb.append((_year / 10) % 10); sb.append(_year % 10); sb.append('-'); sb.append(((_month + 1) / ...
public class class_name { public String printISO8601() { StringBuilder sb = new StringBuilder(); if (_year > 0) { sb.append((_year / 1000) % 10); // depends on control dependency: [if], data = [(_year] sb.append((_year / 100) % 10); // depends on control dependency: [if], data = [(_year] s...
public class class_name { private List<Runner> addDynamicClasses(final RunnerBuilder builder, final ContractTestMap contractTestMap, final Dynamic dynamic) throws InitializationError { final Class<? extends Dynamic> dynamicClass = dynamic.getClass(); // this is the list of all the JUnit run...
public class class_name { private List<Runner> addDynamicClasses(final RunnerBuilder builder, final ContractTestMap contractTestMap, final Dynamic dynamic) throws InitializationError { final Class<? extends Dynamic> dynamicClass = dynamic.getClass(); // this is the list of all the JUnit run...
public class class_name { public synchronized void storeEventForCurrentAppVersion(double timestamp, int versionCode, String versionName, String eventLabel) { EventRecord eventRecord = events.get(eventLabel); if (eventRecord == null) { eventRecord = new EventRecord(); events.put(eventLabel, eventRecord); } ...
public class class_name { public synchronized void storeEventForCurrentAppVersion(double timestamp, int versionCode, String versionName, String eventLabel) { EventRecord eventRecord = events.get(eventLabel); if (eventRecord == null) { eventRecord = new EventRecord(); // depends on control dependency: [if], data...
public class class_name { public long[] getShapeForVarName(String varName) { if (variableNameToArr.containsKey(varName)) { return variableNameToArr.get(varName).shape(); } return variableNameToShape.get(varName); } }
public class class_name { public long[] getShapeForVarName(String varName) { if (variableNameToArr.containsKey(varName)) { return variableNameToArr.get(varName).shape(); // depends on control dependency: [if], data = [none] } return variableNameToShape.get(varName); } }
public class class_name { @SuppressWarnings({"unchecked", "rawtypes"}) @Private static <T> Parser<T>[] toArray(Iterable<? extends Parser<? extends T>> parsers) { if (parsers instanceof Collection<?>) { return toArray((Collection) parsers); } return toArrayWithIteration(parsers); } }
public class class_name { @SuppressWarnings({"unchecked", "rawtypes"}) @Private static <T> Parser<T>[] toArray(Iterable<? extends Parser<? extends T>> parsers) { if (parsers instanceof Collection<?>) { return toArray((Collection) parsers); // depends on control dependency: [if], data = [)] } return...
public class class_name { protected boolean createStandardSARLEventTemplates(String elementTypeName, Function1<? super String, ? extends ISarlBehaviorUnitBuilder> behaviorUnitAdder, Procedure1<? super String> usesAdder) { if (!isCreateStandardEventHandlers()) { return false; } Object type; try { ty...
public class class_name { protected boolean createStandardSARLEventTemplates(String elementTypeName, Function1<? super String, ? extends ISarlBehaviorUnitBuilder> behaviorUnitAdder, Procedure1<? super String> usesAdder) { if (!isCreateStandardEventHandlers()) { return false; // depends on control dependency...
public class class_name { public static <S extends Storable> OrderingScore<S> evaluate (OrderedProperty<S>[] indexProperties, boolean unique, boolean clustered, Filter<S> filter, OrderingList<S> ordering) { if (indexProperties == null) { throw...
public class class_name { public static <S extends Storable> OrderingScore<S> evaluate (OrderedProperty<S>[] indexProperties, boolean unique, boolean clustered, Filter<S> filter, OrderingList<S> ordering) { if (indexProperties == null) { throw...
public class class_name { public boolean movePosition(float[] npos, NavMeshQuery navquery, QueryFilter filter) { // Move along navmesh and update new position. Result<MoveAlongSurfaceResult> masResult = navquery.moveAlongSurface(m_path.get(0), m_pos, npos, filter); if (masResult.succeeded()) { ...
public class class_name { public boolean movePosition(float[] npos, NavMeshQuery navquery, QueryFilter filter) { // Move along navmesh and update new position. Result<MoveAlongSurfaceResult> masResult = navquery.moveAlongSurface(m_path.get(0), m_pos, npos, filter); if (masResult.succeeded()) { ...
public class class_name { public DeleteParametersResult withDeletedParameters(String... deletedParameters) { if (this.deletedParameters == null) { setDeletedParameters(new com.amazonaws.internal.SdkInternalList<String>(deletedParameters.length)); } for (String ele : deletedParameter...
public class class_name { public DeleteParametersResult withDeletedParameters(String... deletedParameters) { if (this.deletedParameters == null) { setDeletedParameters(new com.amazonaws.internal.SdkInternalList<String>(deletedParameters.length)); // depends on control dependency: [if], data = [none...
public class class_name { public HystrixObservableCommand.Setter buildObservableCommandSetter() { HystrixObservableCommand.Setter setter = HystrixObservableCommand.Setter .withGroupKey(HystrixCommandGroupKey.Factory.asKey(groupKey)) .andCommandKey(HystrixCommandKey.Factory.asKey...
public class class_name { public HystrixObservableCommand.Setter buildObservableCommandSetter() { HystrixObservableCommand.Setter setter = HystrixObservableCommand.Setter .withGroupKey(HystrixCommandGroupKey.Factory.asKey(groupKey)) .andCommandKey(HystrixCommandKey.Factory.asKey...
public class class_name { @SuppressWarnings("unchecked") public synchronized <T extends SebEvent> T constructEvent(Class<T> eventCls, SebContext context) { try { return (T) eventCls.getConstructor().newInstance().with(context, LocalDateTime.now()); } catch (Exception e) { throw new EventConstructException("...
public class class_name { @SuppressWarnings("unchecked") public synchronized <T extends SebEvent> T constructEvent(Class<T> eventCls, SebContext context) { try { return (T) eventCls.getConstructor().newInstance().with(context, LocalDateTime.now()); // depends on control dependency: [try], data = [none] } catch...
public class class_name { @Override public void visitToken(Token token) { if (!token.getType().equals(EOF)) { /* Handle all the lines of the token */ String[] tokenLines = EOL_PATTERN.split(token.getValue(), -1); int firstLineAlreadyCounted = lastTokenLine == token.getLine() ? 1 : 0; get...
public class class_name { @Override public void visitToken(Token token) { if (!token.getType().equals(EOF)) { /* Handle all the lines of the token */ String[] tokenLines = EOL_PATTERN.split(token.getValue(), -1); int firstLineAlreadyCounted = lastTokenLine == token.getLine() ? 1 : 0; get...
public class class_name { public EClass getIfcPlanarForceMeasure() { if (ifcPlanarForceMeasureEClass == null) { ifcPlanarForceMeasureEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI) .getEClassifiers().get(722); } return ifcPlanarForceMeasureEClass; } }
public class class_name { public EClass getIfcPlanarForceMeasure() { if (ifcPlanarForceMeasureEClass == null) { ifcPlanarForceMeasureEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI) .getEClassifiers().get(722); // depends on control dependency: [if], data = [none] } ...
public class class_name { @Nonnull public static ESuccess readXMLSAX (@WillClose @Nonnull final InputSource aIS, @Nonnull final ISAXReaderSettings aSettings) { ValueEnforcer.notNull (aIS, "InputStream"); ValueEnforcer.notNull (aSettings, "Settings"); try { ...
public class class_name { @Nonnull public static ESuccess readXMLSAX (@WillClose @Nonnull final InputSource aIS, @Nonnull final ISAXReaderSettings aSettings) { ValueEnforcer.notNull (aIS, "InputStream"); ValueEnforcer.notNull (aSettings, "Settings"); try { ...
public class class_name { @SuppressWarnings("deprecation") public List<AbstractSleeComponent> buildComponents( String componentJarFileName, JarFile deployableUnitJar, File deploymentDir) throws DeploymentException { // extract the component jar from the DU jar, to the temp du dir File extractedFile = ...
public class class_name { @SuppressWarnings("deprecation") public List<AbstractSleeComponent> buildComponents( String componentJarFileName, JarFile deployableUnitJar, File deploymentDir) throws DeploymentException { // extract the component jar from the DU jar, to the temp du dir File extractedFile = ...
public class class_name { public ListElasticsearchVersionsResult withElasticsearchVersions(String... elasticsearchVersions) { if (this.elasticsearchVersions == null) { setElasticsearchVersions(new java.util.ArrayList<String>(elasticsearchVersions.length)); } for (String ele : elasti...
public class class_name { public ListElasticsearchVersionsResult withElasticsearchVersions(String... elasticsearchVersions) { if (this.elasticsearchVersions == null) { setElasticsearchVersions(new java.util.ArrayList<String>(elasticsearchVersions.length)); // depends on control dependency: [if], da...
public class class_name { public void start() { int numHandler = 3; InetSocketAddress socketAddr = new InetSocketAddress(port); Executor executor = Executors.newFixedThreadPool(numHandler); try { hs = HttpServer.create(socketAddr, 0); hs.createContext(HttpserverU...
public class class_name { public void start() { int numHandler = 3; InetSocketAddress socketAddr = new InetSocketAddress(port); Executor executor = Executors.newFixedThreadPool(numHandler); try { hs = HttpServer.create(socketAddr, 0); // depends on control dependency: [try],...
public class class_name { public Glyph.State createStateVar(EntityFeature ef, ObjectFactory factory) { if (ef instanceof FragmentFeature) { FragmentFeature ff = (FragmentFeature) ef; SequenceLocation loc = ff.getFeatureLocation(); if (loc instanceof SequenceInterval) { SequenceInterval si = (Seque...
public class class_name { public Glyph.State createStateVar(EntityFeature ef, ObjectFactory factory) { if (ef instanceof FragmentFeature) { FragmentFeature ff = (FragmentFeature) ef; SequenceLocation loc = ff.getFeatureLocation(); if (loc instanceof SequenceInterval) { SequenceInterval si = (Seque...
public class class_name { private Set<DagNode<T>> getAncestorNodes(Set<DagNode<T>> dagNodes) { Set<DagNode<T>> ancestorNodes = new HashSet<>(); for (DagNode<T> dagNode : dagNodes) { LinkedList<DagNode<T>> nodesToExpand = Lists.newLinkedList(this.getParents(dagNode)); while (!nodesToExpand.isEmpty()...
public class class_name { private Set<DagNode<T>> getAncestorNodes(Set<DagNode<T>> dagNodes) { Set<DagNode<T>> ancestorNodes = new HashSet<>(); for (DagNode<T> dagNode : dagNodes) { LinkedList<DagNode<T>> nodesToExpand = Lists.newLinkedList(this.getParents(dagNode)); while (!nodesToExpand.isEmpty()...
public class class_name { @Override public void motionDetected(WebcamMotionEvent wme) { for (Point p : wme.getPoints()) { motionPoints.put(p, 0); } } }
public class class_name { @Override public void motionDetected(WebcamMotionEvent wme) { for (Point p : wme.getPoints()) { motionPoints.put(p, 0); // depends on control dependency: [for], data = [p] } } }
public class class_name { public void addSubResource(final String resourceName, final long nodeId, final InputStream input, final EIdAccessType type) throws JaxRxException { ISession session = null; INodeWriteTrx wtx = null; synchronized (resourceName) { boolean abort; ...
public class class_name { public void addSubResource(final String resourceName, final long nodeId, final InputStream input, final EIdAccessType type) throws JaxRxException { ISession session = null; INodeWriteTrx wtx = null; synchronized (resourceName) { boolean abort; ...
public class class_name { private static InetAddress findNonLoopbackAddress() throws SocketException { final Enumeration<NetworkInterface> enumInterfaceAddress = NetworkInterface.getNetworkInterfaces(); while (enumInterfaceAddress.hasMoreElements()) { final NetworkInterface netIf = enumInte...
public class class_name { private static InetAddress findNonLoopbackAddress() throws SocketException { final Enumeration<NetworkInterface> enumInterfaceAddress = NetworkInterface.getNetworkInterfaces(); while (enumInterfaceAddress.hasMoreElements()) { final NetworkInterface netIf = enumInte...
public class class_name { @Route(method = HttpMethod.GET, uri = "/monitor/logs/loggers") public Result loggers() { LoggerContext context = (LoggerContext) LoggerFactory.getILoggerFactory(); List<LoggerModel> loggers = new ArrayList<>(); for (Logger logger : context.getLoggerList()) { ...
public class class_name { @Route(method = HttpMethod.GET, uri = "/monitor/logs/loggers") public Result loggers() { LoggerContext context = (LoggerContext) LoggerFactory.getILoggerFactory(); List<LoggerModel> loggers = new ArrayList<>(); for (Logger logger : context.getLoggerList()) { ...
public class class_name { private List<IndexedQueryAnalyzer<S>.Result> splitIntoSubResults(Filter<S> filter, OrderingList<S> ordering, QueryHints hints) throws SupportException, RepositoryException { // Required for split to work. Filter<S> dnfFilter = filter.disjunctiveNormalF...
public class class_name { private List<IndexedQueryAnalyzer<S>.Result> splitIntoSubResults(Filter<S> filter, OrderingList<S> ordering, QueryHints hints) throws SupportException, RepositoryException { // Required for split to work. Filter<S> dnfFilter = filter.disjunctiveNormalF...
public class class_name { public synchronized boolean delete(final Job job) { // if already shutdown in the process of shutdown, there is no // need to remove Jobs as they will never be executed. if (shutdown) { return false; } int i = findIndex(job); if (i !...
public class class_name { public synchronized boolean delete(final Job job) { // if already shutdown in the process of shutdown, there is no // need to remove Jobs as they will never be executed. if (shutdown) { return false; // depends on control dependency: [if], data = [none] ...
public class class_name { @Override public String[] getResources() { String resource = getResource(); if (resource == null) { return null; } return resource.split(" "); } }
public class class_name { @Override public String[] getResources() { String resource = getResource(); if (resource == null) { return null; // depends on control dependency: [if], data = [none] } return resource.split(" "); } }
public class class_name { public void configLogger() { Map<String, Level> logLevels = new HashMap<String, Level>(); logLevels.put("trace", Level.TRACE); logLevels.put("debug", Level.DEBUG); logLevels.put("info", Level.INFO); logLevels.put("warning", Level.WARNING); l...
public class class_name { public void configLogger() { Map<String, Level> logLevels = new HashMap<String, Level>(); logLevels.put("trace", Level.TRACE); logLevels.put("debug", Level.DEBUG); logLevels.put("info", Level.INFO); logLevels.put("warning", Level.WARNING); l...
public class class_name { static SocketChannelUDT newConnectorChannelUDT(final TypeUDT type) { try { return SelectorProviderUDT.from(type).openSocketChannel(); } catch (final IOException e) { throw new ChannelException("failed to open a socket channel", e); } } }
public class class_name { static SocketChannelUDT newConnectorChannelUDT(final TypeUDT type) { try { return SelectorProviderUDT.from(type).openSocketChannel(); // depends on control dependency: [try], data = [none] } catch (final IOException e) { throw new ChannelException("fail...
public class class_name { private void parseMethodSpec(String methodSpec) { methodName = null; methodInterface = null; methodSig = null; if (methodSpec != null) { StringTokenizer tokenizer = new StringTokenizer(methodSpec, ",", true); // Method name if (toke...
public class class_name { private void parseMethodSpec(String methodSpec) { methodName = null; methodInterface = null; methodSig = null; if (methodSpec != null) { StringTokenizer tokenizer = new StringTokenizer(methodSpec, ",", true); // Method name if (toke...
public class class_name { public DescribeLagsResult withLags(Lag... lags) { if (this.lags == null) { setLags(new com.amazonaws.internal.SdkInternalList<Lag>(lags.length)); } for (Lag ele : lags) { this.lags.add(ele); } return this; } }
public class class_name { public DescribeLagsResult withLags(Lag... lags) { if (this.lags == null) { setLags(new com.amazonaws.internal.SdkInternalList<Lag>(lags.length)); // depends on control dependency: [if], data = [none] } for (Lag ele : lags) { this.lags.add(ele); ...