code
stringlengths
130
281k
code_dependency
stringlengths
182
306k
public class class_name { public DescribeBrokerResult withBrokerInstances(BrokerInstance... brokerInstances) { if (this.brokerInstances == null) { setBrokerInstances(new java.util.ArrayList<BrokerInstance>(brokerInstances.length)); } for (BrokerInstance ele : brokerInstances) { ...
public class class_name { public DescribeBrokerResult withBrokerInstances(BrokerInstance... brokerInstances) { if (this.brokerInstances == null) { setBrokerInstances(new java.util.ArrayList<BrokerInstance>(brokerInstances.length)); // depends on control dependency: [if], data = [none] } ...
public class class_name { public static <T> Constructor<T> findConstructor(Class<T> clazz, Class<?>... params) { try { return clazz.getConstructor(params); } catch (NoSuchMethodException e) { @SuppressWarnings("unchecked") Constructor<T>[] ctors = (Constructor<T>[]) ...
public class class_name { public static <T> Constructor<T> findConstructor(Class<T> clazz, Class<?>... params) { try { return clazz.getConstructor(params); // depends on control dependency: [try], data = [none] } catch (NoSuchMethodException e) { @SuppressWarnings("unchecked") ...
public class class_name { private void parameters( ParameterSupportBuilder< ? > statement, boolean requiresType ) throws RecognitionException { match( input, DRL5Lexer.LEFT_PAREN, null, null, DroolsEditorType.SYMBOL ); ...
public class class_name { private void parameters( ParameterSupportBuilder< ? > statement, boolean requiresType ) throws RecognitionException { match( input, DRL5Lexer.LEFT_PAREN, null, null, DroolsEditorType.SYMBOL ); ...
public class class_name { public void setIconBrand(boolean _iconBrand) { if (_iconBrand) { AddResourcesListener.setFontAwesomeVersion(5, this); } getStateHelper().put(PropertyKeys.iconBrand, _iconBrand); } }
public class class_name { public void setIconBrand(boolean _iconBrand) { if (_iconBrand) { AddResourcesListener.setFontAwesomeVersion(5, this); // depends on control dependency: [if], data = [none] } getStateHelper().put(PropertyKeys.iconBrand, _iconBrand); } }
public class class_name { @SuppressWarnings("resource") @Pure public Collection<String> getAllAttributeNames(int recordNumber) { try { final DBaseFileReader dbReader = getReader(); synchronized (dbReader) { final List<DBaseFileField> fields = dbReader.getDBFFields(); if (fields == null) { return...
public class class_name { @SuppressWarnings("resource") @Pure public Collection<String> getAllAttributeNames(int recordNumber) { try { final DBaseFileReader dbReader = getReader(); synchronized (dbReader) { // depends on control dependency: [try], data = [none] final List<DBaseFileField> fields = dbReade...
public class class_name { public static boolean isUnixTimeStamp(String timeStamp) { if (timeStamp.length() != ComplianceConfigurationKeys.TIME_STAMP_LENGTH) { return false; } try { Long.parseLong(timeStamp); return true; } catch (NumberFormatException e) { return false; } ...
public class class_name { public static boolean isUnixTimeStamp(String timeStamp) { if (timeStamp.length() != ComplianceConfigurationKeys.TIME_STAMP_LENGTH) { return false; // depends on control dependency: [if], data = [none] } try { Long.parseLong(timeStamp); // depends on control dependency:...
public class class_name { public EEnum getIfcInventoryTypeEnum() { if (ifcInventoryTypeEnumEEnum == null) { ifcInventoryTypeEnumEEnum = (EEnum) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI) .getEClassifiers().get(849); } return ifcInventoryTypeEnumEEnum; } }
public class class_name { public EEnum getIfcInventoryTypeEnum() { if (ifcInventoryTypeEnumEEnum == null) { ifcInventoryTypeEnumEEnum = (EEnum) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI) .getEClassifiers().get(849); // depends on control dependency: [if], data = [none] } return...
public class class_name { public String buildWhere(String field, ColumnValue value) { String where; if (value != null) { if (value.getValue() != null && value.getTolerance() != null) { if (!(value.getValue() instanceof Number)) { throw new GeoPackageException( "Field value is not a number and ca...
public class class_name { public String buildWhere(String field, ColumnValue value) { String where; if (value != null) { if (value.getValue() != null && value.getTolerance() != null) { if (!(value.getValue() instanceof Number)) { throw new GeoPackageException( "Field value is not a number and ca...
public class class_name { private static String getRoleWithDefaultPrefix(String defaultRolePrefix, String role) { if (role == null) { return role; } if (defaultRolePrefix == null || defaultRolePrefix.length() == 0) { return role; } if (role.startsWith(defaultRolePrefix)) { return role; } return ...
public class class_name { private static String getRoleWithDefaultPrefix(String defaultRolePrefix, String role) { if (role == null) { return role; // depends on control dependency: [if], data = [none] } if (defaultRolePrefix == null || defaultRolePrefix.length() == 0) { return role; // depends on control d...
public class class_name { public static void applyToOrTransparent(ColorHolder colorHolder, Context ctx, GradientDrawable gradientDrawable) { if (colorHolder != null && gradientDrawable != null) { colorHolder.applyTo(ctx, gradientDrawable); } else if (gradientDrawable != null) { ...
public class class_name { public static void applyToOrTransparent(ColorHolder colorHolder, Context ctx, GradientDrawable gradientDrawable) { if (colorHolder != null && gradientDrawable != null) { colorHolder.applyTo(ctx, gradientDrawable); // depends on control dependency: [if], data = [none] ...
public class class_name { @Override public synchronized void relocate(int oldPosition, int newPosition, ByteBuffer oldBuffer, ByteBuffer newBuffer) { DoublesUnion union = unions.get(oldBuffer).get(oldPosition); final WritableMemory oldMem = getMemory(oldBuffer).writableRegion(oldPosition, maxIntermediateSi...
public class class_name { @Override public synchronized void relocate(int oldPosition, int newPosition, ByteBuffer oldBuffer, ByteBuffer newBuffer) { DoublesUnion union = unions.get(oldBuffer).get(oldPosition); final WritableMemory oldMem = getMemory(oldBuffer).writableRegion(oldPosition, maxIntermediateSi...
public class class_name { private static void addPuService(final DeploymentPhaseContext phaseContext, final ArrayList<PersistenceUnitMetadataHolder> puList, final boolean startEarly, final Platform platform) throws DeploymentUnitProcessingException { if (puList.siz...
public class class_name { private static void addPuService(final DeploymentPhaseContext phaseContext, final ArrayList<PersistenceUnitMetadataHolder> puList, final boolean startEarly, final Platform platform) throws DeploymentUnitProcessingException { if (puList.siz...
public class class_name { private Class<?> resolveResultJavaType(Class<?> resultType, String property, Class<?> javaType) { if (javaType == null && property != null) { try { MetaClass metaResultType = MetaClass.forClass(resultType, REFLECTOR_FACTORY); javaType = metaResultType.getSetterType(p...
public class class_name { private Class<?> resolveResultJavaType(Class<?> resultType, String property, Class<?> javaType) { if (javaType == null && property != null) { try { MetaClass metaResultType = MetaClass.forClass(resultType, REFLECTOR_FACTORY); javaType = metaResultType.getSetterType(p...
public class class_name { public final SettingsMap getSettings (final String targetName, final int connectionID) { final SettingsMap sm = new SettingsMap(); // set all default settings synchronized (globalConfig) { for (Map.Entry<OperationalTextKey , SettingEntry> e : globalConfig...
public class class_name { public final SettingsMap getSettings (final String targetName, final int connectionID) { final SettingsMap sm = new SettingsMap(); // set all default settings synchronized (globalConfig) { for (Map.Entry<OperationalTextKey , SettingEntry> e : globalConfig...
public class class_name { public void remove(BeanId beanId) { final String fileName = getPortableFilename(beanId); final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(tc, "remove: key=" + beanId + ", file=" + fileName); ...
public class class_name { public void remove(BeanId beanId) { final String fileName = getPortableFilename(beanId); final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(tc, "remove: key=" + beanId + ", file=" + fileName); ...
public class class_name { @Override public void onBindViewHolder(@NonNull DirViewHolder vh, int position, @NonNull File file) { // Let the super method do its thing with checkboxes and text super.onBindViewHolder(vh, position, file); // Here we load the preview image if it is an image file...
public class class_name { @Override public void onBindViewHolder(@NonNull DirViewHolder vh, int position, @NonNull File file) { // Let the super method do its thing with checkboxes and text super.onBindViewHolder(vh, position, file); // Here we load the preview image if it is an image file...
public class class_name { public boolean writeXML(QueryCapability dqc, String filename) { try { BufferedOutputStream os = new BufferedOutputStream(new FileOutputStream(filename)); writeXML(dqc, os); os.close(); } catch (IOException e) { e.printStackTrace(); return false; } ...
public class class_name { public boolean writeXML(QueryCapability dqc, String filename) { try { BufferedOutputStream os = new BufferedOutputStream(new FileOutputStream(filename)); writeXML(dqc, os); // depends on control dependency: [try], data = [none] os.close(); // depends on control dependenc...
public class class_name { public void marshall(UploadLayerPartRequest uploadLayerPartRequest, ProtocolMarshaller protocolMarshaller) { if (uploadLayerPartRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarsha...
public class class_name { public void marshall(UploadLayerPartRequest uploadLayerPartRequest, ProtocolMarshaller protocolMarshaller) { if (uploadLayerPartRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarsha...
public class class_name { @Override protected void initPrototypeId(int id) { String s; int arity; switch (id) { case Id_constructor: { IdFunctionObject ctor; if (this instanceof XML) { ctor = new XMLCtor((XML)this, XMLOBJECT_TA...
public class class_name { @Override protected void initPrototypeId(int id) { String s; int arity; switch (id) { case Id_constructor: { IdFunctionObject ctor; if (this instanceof XML) { ctor = new XMLCtor((XML)this, XMLOBJECT_TA...
public class class_name { @Override public NamespaceNotification getNamespaceNotification() throws IOException { FSEditLogOp op = null; NamespaceNotification notification = null; // Keep looping until we reach an operation that can be // considered a notification. while (true) { try...
public class class_name { @Override public NamespaceNotification getNamespaceNotification() throws IOException { FSEditLogOp op = null; NamespaceNotification notification = null; // Keep looping until we reach an operation that can be // considered a notification. while (true) { try...
public class class_name { public void setRecommendations(java.util.Collection<ReservationPurchaseRecommendation> recommendations) { if (recommendations == null) { this.recommendations = null; return; } this.recommendations = new java.util.ArrayList<ReservationPurchaseRe...
public class class_name { public void setRecommendations(java.util.Collection<ReservationPurchaseRecommendation> recommendations) { if (recommendations == null) { this.recommendations = null; // depends on control dependency: [if], data = [none] return; // depends on control dependency:...
public class class_name { protected boolean doTypeMappingCheck(EObject source, JvmType type, Procedure3<? super EObject, ? super JvmType, ? super String> errorHandler) { if (source != null && type != null) { final ExtraLanguageTypeConverter converter = getTypeConverter(); final String qn = type.getQualifiedNam...
public class class_name { protected boolean doTypeMappingCheck(EObject source, JvmType type, Procedure3<? super EObject, ? super JvmType, ? super String> errorHandler) { if (source != null && type != null) { final ExtraLanguageTypeConverter converter = getTypeConverter(); final String qn = type.getQualifiedNam...
public class class_name { public void truncateAdditionalInfo(final String textMetricsPrefix, final int widgetWidth) { for (Widget addInfo : m_additionalInfo) { ((AdditionalInfoItem)addInfo).truncate(textMetricsPrefix, widgetWidth - 10); } } }
public class class_name { public void truncateAdditionalInfo(final String textMetricsPrefix, final int widgetWidth) { for (Widget addInfo : m_additionalInfo) { ((AdditionalInfoItem)addInfo).truncate(textMetricsPrefix, widgetWidth - 10); // depends on control dependency: [for], data = [addInfo] ...
public class class_name { private PointSequence createPointSequence(double[][] coordinates, CrsId crsId) { if (coordinates == null) { return null; } else if (coordinates.length == 0) { return PointCollectionFactory.createEmpty(); } DimensionalFlag df = coordinat...
public class class_name { private PointSequence createPointSequence(double[][] coordinates, CrsId crsId) { if (coordinates == null) { return null; // depends on control dependency: [if], data = [none] } else if (coordinates.length == 0) { return PointCollectionFactory.createEmpt...
public class class_name { public static String trimRight(final String src) { int len = src.length(); int count = len; while ((len > 0) && (CharUtil.isWhitespace(src.charAt(len - 1)))) { len--; } return (len < count) ? src.substring(0, len) : src; } }
public class class_name { public static String trimRight(final String src) { int len = src.length(); int count = len; while ((len > 0) && (CharUtil.isWhitespace(src.charAt(len - 1)))) { len--; // depends on control dependency: [while], data = [none] } return (len < count) ? src.substring(0, len) : src; }...
public class class_name { public static String appendPiecesForUri(String... pieces) { if (pieces==null || pieces.length==0) return ""; // join parts && strip double slashes StringBuilder builder = new StringBuilder(16 * pieces.length); char previous = 0; for (int i=0; i < piece...
public class class_name { public static String appendPiecesForUri(String... pieces) { if (pieces==null || pieces.length==0) return ""; // join parts && strip double slashes StringBuilder builder = new StringBuilder(16 * pieces.length); char previous = 0; for (int i=0; i < piece...
public class class_name { @Override public void removeByUuid(String uuid) { for (CPDAvailabilityEstimate cpdAvailabilityEstimate : findByUuid( uuid, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) { remove(cpdAvailabilityEstimate); } } }
public class class_name { @Override public void removeByUuid(String uuid) { for (CPDAvailabilityEstimate cpdAvailabilityEstimate : findByUuid( uuid, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) { remove(cpdAvailabilityEstimate); // depends on control dependency: [for], data = [cpdAvailabilityEstimate] } }...
public class class_name { public void updateProgress(long latestProgress, long expectedProgress) { lastProgress = progress; progress = latestProgress; expected = expectedProgress; if (connected() == false) state = State.CONNECTED; else state = State.UPDA...
public class class_name { public void updateProgress(long latestProgress, long expectedProgress) { lastProgress = progress; progress = latestProgress; expected = expectedProgress; if (connected() == false) state = State.CONNECTED; else state = State.UPDA...
public class class_name { private static void weightAdjoint(final Hypergraph graph, final Hyperpotential w, final Algebra s, final Scores scores, final HyperedgeDoubleFn lambda, final boolean backOutside) { final double[] alpha = scores.alpha; final double[] beta = scores.beta; fin...
public class class_name { private static void weightAdjoint(final Hypergraph graph, final Hyperpotential w, final Algebra s, final Scores scores, final HyperedgeDoubleFn lambda, final boolean backOutside) { final double[] alpha = scores.alpha; final double[] beta = scores.beta; fin...
public class class_name { public EEnum getIfcSpaceTypeEnum() { if (ifcSpaceTypeEnumEEnum == null) { ifcSpaceTypeEnumEEnum = (EEnum) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI) .getEClassifiers().get(901); } return ifcSpaceTypeEnumEEnum; } }
public class class_name { public EEnum getIfcSpaceTypeEnum() { if (ifcSpaceTypeEnumEEnum == null) { ifcSpaceTypeEnumEEnum = (EEnum) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI) .getEClassifiers().get(901); // depends on control dependency: [if], data = [none] } return ifcSpaceTyp...
public class class_name { public ListAppsResult withApps(AppSummary... apps) { if (this.apps == null) { setApps(new java.util.ArrayList<AppSummary>(apps.length)); } for (AppSummary ele : apps) { this.apps.add(ele); } return this; } }
public class class_name { public ListAppsResult withApps(AppSummary... apps) { if (this.apps == null) { setApps(new java.util.ArrayList<AppSummary>(apps.length)); // depends on control dependency: [if], data = [none] } for (AppSummary ele : apps) { this.apps.add(ele); //...
public class class_name { private void resolveProxyKeyUsage() { boolean[] keyUsages = proxyCredential.getCertificate().getKeyUsage(); if (keyUsages != null) { int index = 0; for (boolean key : keyUsages) { if (key) proxyKeyUsageList.add(keyUsagesValues[index]); index++...
public class class_name { private void resolveProxyKeyUsage() { boolean[] keyUsages = proxyCredential.getCertificate().getKeyUsage(); if (keyUsages != null) { int index = 0; for (boolean key : keyUsages) { if (key) proxyKeyUsageList.add(keyUsagesValues[index]); index++...
public class class_name { protected String generateProjectName(CmsObject userCms) { String projectName = generateProjectName(userCms, true); if (existsProject(projectName)) { projectName = generateProjectName(userCms, false); } return projectName; } }
public class class_name { protected String generateProjectName(CmsObject userCms) { String projectName = generateProjectName(userCms, true); if (existsProject(projectName)) { projectName = generateProjectName(userCms, false); // depends on control dependency: [if], data = [none] ...
public class class_name { private String trim(String line) { char[] chars = line.toCharArray(); int len = chars.length; while (len > 0) { if (!Character.isWhitespace(chars[len - 1])) { break; } len--; } return line.substring(...
public class class_name { private String trim(String line) { char[] chars = line.toCharArray(); int len = chars.length; while (len > 0) { if (!Character.isWhitespace(chars[len - 1])) { break; } len--; // depends on control dependency: [while]...
public class class_name { @Override public TitanVertex addVertex(Object... keyValues) { ElementHelper.legalPropertyKeyValueArray(keyValues); if (ElementHelper.getIdValue(keyValues).isPresent()) throw Vertex.Exceptions.userSuppliedIdsNotSupported(); Object labelValue = null; for (int...
public class class_name { @Override public TitanVertex addVertex(Object... keyValues) { ElementHelper.legalPropertyKeyValueArray(keyValues); if (ElementHelper.getIdValue(keyValues).isPresent()) throw Vertex.Exceptions.userSuppliedIdsNotSupported(); Object labelValue = null; for (int...
public class class_name { public void stopAllTasks() { ICBTask task; stopSign = true; while ((task = queue.poll()) != null) { task.stopTask(); } } }
public class class_name { public void stopAllTasks() { ICBTask task; stopSign = true; while ((task = queue.poll()) != null) { task.stopTask(); // depends on control dependency: [while], data = [none] } } }
public class class_name { public Optional<ArrayLabelSetter> create(final Class<?> beanClass, final String fieldName) { ArgUtils.notNull(beanClass, "beanClass"); ArgUtils.notEmpty(fieldName, "fieldName"); // フィールド Map labelsの場合 Optional<ArrayLabelSetter> arrayLabe...
public class class_name { public Optional<ArrayLabelSetter> create(final Class<?> beanClass, final String fieldName) { ArgUtils.notNull(beanClass, "beanClass"); ArgUtils.notEmpty(fieldName, "fieldName"); // フィールド Map labelsの場合 Optional<ArrayLabelSetter> arrayLabe...
public class class_name { public static <T, R> Publisher<R> map(Publisher<T> publisher, Function<T, R> mapper) { return actual -> publisher.subscribe(new CompletionAwareSubscriber<T>() { @Override protected void doOnSubscribe(Subscription subscription) { actual.onSubscri...
public class class_name { public static <T, R> Publisher<R> map(Publisher<T> publisher, Function<T, R> mapper) { return actual -> publisher.subscribe(new CompletionAwareSubscriber<T>() { @Override protected void doOnSubscribe(Subscription subscription) { actual.onSubscri...
public class class_name { private boolean match(Path.ID id, int idIndex, int myIndex, boolean submatch) { int mySize = depth + 1; if (myIndex == mySize && idIndex == id.size()) { return true; } else if(idIndex == id.size()) { return submatch; } else if (myIndex == mySize) { return false; } String...
public class class_name { private boolean match(Path.ID id, int idIndex, int myIndex, boolean submatch) { int mySize = depth + 1; if (myIndex == mySize && idIndex == id.size()) { return true; // depends on control dependency: [if], data = [none] } else if(idIndex == id.size()) { return submatch; // depends...
public class class_name { public static boolean hasJoinOperation(String selectQuery) { if (selectQuery == null || selectQuery.length() == 0) { return false; } SqlParser sqlParser = SqlParser.create(selectQuery); try { SqlNode all = sqlParser.parseQuery(); SqlSelect query; if (...
public class class_name { public static boolean hasJoinOperation(String selectQuery) { if (selectQuery == null || selectQuery.length() == 0) { return false; // depends on control dependency: [if], data = [none] } SqlParser sqlParser = SqlParser.create(selectQuery); try { SqlNode all = sql...
public class class_name { public TemplateStore getTemplateStore() { if (fTemplateStore == null) { fTemplateStore = new ContributionTemplateStore(getTemplateContextRegistry(), getPreferenceStore(), "org.eclipse.wst.sse.ui.custom_templates"); try { fTemplateStore.load(); } catch (IOException e) { log...
public class class_name { public TemplateStore getTemplateStore() { if (fTemplateStore == null) { fTemplateStore = new ContributionTemplateStore(getTemplateContextRegistry(), getPreferenceStore(), "org.eclipse.wst.sse.ui.custom_templates"); // depends on control dependency: [if], data = [none] try { fTemp...
public class class_name { @Override public Object visit(Object context, ForVarDeclStatement statement, boolean strict) { Scope scope = (Scope) context; List<VariableDeclaration> decls = statement.getDeclarationList(); for (VariableDeclaration each : decls) { each.accept(context,...
public class class_name { @Override public Object visit(Object context, ForVarDeclStatement statement, boolean strict) { Scope scope = (Scope) context; List<VariableDeclaration> decls = statement.getDeclarationList(); for (VariableDeclaration each : decls) { each.accept(context,...
public class class_name { private Region find(Region x) { Region current = this.root; while (current != NULL_NODE) { long res = x.orderRelativeTo(current); if (res < 0) { current = current.left; } else if (res > 0) { current = current.right; } else { return curre...
public class class_name { private Region find(Region x) { Region current = this.root; while (current != NULL_NODE) { long res = x.orderRelativeTo(current); if (res < 0) { current = current.left; // depends on control dependency: [if], data = [none] } else if (res > 0) { curren...
public class class_name { public void marshall(SetIdentityPoolConfigurationRequest setIdentityPoolConfigurationRequest, ProtocolMarshaller protocolMarshaller) { if (setIdentityPoolConfigurationRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } ...
public class class_name { public void marshall(SetIdentityPoolConfigurationRequest setIdentityPoolConfigurationRequest, ProtocolMarshaller protocolMarshaller) { if (setIdentityPoolConfigurationRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } ...
public class class_name { private void toStringList(final StringBuilder sb, final List < ? > list, final String title) { sb.append(','); sb.append(title + ":["); boolean first = true; for (Object child : list) { if (!first) { sb.append(","); ...
public class class_name { private void toStringList(final StringBuilder sb, final List < ? > list, final String title) { sb.append(','); sb.append(title + ":["); boolean first = true; for (Object child : list) { if (!first) { sb.append(","); // de...
public class class_name { private static Response send(HttpRequestBase httpRequest, Credentials credentials, Header[] requestHeaders) throws URISyntaxException, HttpException { CloseableHttpClient httpClient = null; CloseableHttpResponse httpResponse = null; Re...
public class class_name { private static Response send(HttpRequestBase httpRequest, Credentials credentials, Header[] requestHeaders) throws URISyntaxException, HttpException { CloseableHttpClient httpClient = null; CloseableHttpResponse httpResponse = null; Re...
public class class_name { public boolean isRepeated(final String _plainPassword) { boolean ret = false; for (int i = 1; i < this.threshold + 1; i++) { ret = check(_plainPassword, i); if (ret) { break; } } return ret; } }
public class class_name { public boolean isRepeated(final String _plainPassword) { boolean ret = false; for (int i = 1; i < this.threshold + 1; i++) { ret = check(_plainPassword, i); // depends on control dependency: [for], data = [i] if (ret) { break; ...
public class class_name { public EClass getIfcParameterValue() { if (ifcParameterValueEClass == null) { ifcParameterValueEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI) .getEClassifiers().get(721); } return ifcParameterValueEClass; } }
public class class_name { public EClass getIfcParameterValue() { if (ifcParameterValueEClass == null) { ifcParameterValueEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI) .getEClassifiers().get(721); // depends on control dependency: [if], data = [none] } return ifcP...
public class class_name { public String[] getBuildMetaDataParts() { if (this.buildMetaDataParts.length == 0) { return EMPTY_ARRAY; } return Arrays.copyOf(this.buildMetaDataParts, this.buildMetaDataParts.length); } }
public class class_name { public String[] getBuildMetaDataParts() { if (this.buildMetaDataParts.length == 0) { return EMPTY_ARRAY; // depends on control dependency: [if], data = [none] } return Arrays.copyOf(this.buildMetaDataParts, this.buildMetaDataParts.length); } }
public class class_name { public void marshall(Volume volume, ProtocolMarshaller protocolMarshaller) { if (volume == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(volume.getVolumeId(), VOLUMEID_BIN...
public class class_name { public void marshall(Volume volume, ProtocolMarshaller protocolMarshaller) { if (volume == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(volume.getVolumeId(), VOLUMEID_BIN...
public class class_name { private List<String> getMatchingLongOptions(String token) { if (allowPartialMatching) { return options.getMatchingOptions(token); } else { List<String> matches = new ArrayList<>(1); if (options.hasLongOption(token)) { Option ...
public class class_name { private List<String> getMatchingLongOptions(String token) { if (allowPartialMatching) { return options.getMatchingOptions(token); // depends on control dependency: [if], data = [none] } else { List<String> matches = new ArrayList<>(1); if (o...
public class class_name { public static String buildSpecializedPagedResultClass(TypeSpec.Builder classBuilder, SQLiteModelMethod method) { // TypeName entityTypeName = // TypeUtility.typeName(method.getParent().getEntityClassName()); TypeName entityTypeName = TypeUtility.typeName(method.getEntity().getName()); ...
public class class_name { public static String buildSpecializedPagedResultClass(TypeSpec.Builder classBuilder, SQLiteModelMethod method) { // TypeName entityTypeName = // TypeUtility.typeName(method.getParent().getEntityClassName()); TypeName entityTypeName = TypeUtility.typeName(method.getEntity().getName()); ...
public class class_name { private String getActivityStatus(Task mpxj) { String result; if (mpxj.getActualStart() == null) { result = "Not Started"; } else { if (mpxj.getActualFinish() == null) { result = "In Progress"; } el...
public class class_name { private String getActivityStatus(Task mpxj) { String result; if (mpxj.getActualStart() == null) { result = "Not Started"; // depends on control dependency: [if], data = [none] } else { if (mpxj.getActualFinish() == null) { ...
public class class_name { public boolean handleAction (Object source, String action, Object arg) { Method method = null; Object[] args = null; try { // look for the appropriate method Method[] methods = getClass().getMethods(); int mcount = methods.lengt...
public class class_name { public boolean handleAction (Object source, String action, Object arg) { Method method = null; Object[] args = null; try { // look for the appropriate method Method[] methods = getClass().getMethods(); int mcount = methods.lengt...
public class class_name { public void setEndpoints(java.util.Collection<EndpointSummary> endpoints) { if (endpoints == null) { this.endpoints = null; return; } this.endpoints = new java.util.ArrayList<EndpointSummary>(endpoints); } }
public class class_name { public void setEndpoints(java.util.Collection<EndpointSummary> endpoints) { if (endpoints == null) { this.endpoints = null; // depends on control dependency: [if], data = [none] return; // depends on control dependency: [if], data = [none] } th...
public class class_name { private V linearSearch(final K iKey) { V value = null; int i = 0; tree.pageItemComparator = -1; for (int s = getSize(); i < s; ++i) { if (tree.comparator != null) tree.pageItemComparator = tree.comparator.compare(getKeyAt(i), iKey); else tre...
public class class_name { private V linearSearch(final K iKey) { V value = null; int i = 0; tree.pageItemComparator = -1; for (int s = getSize(); i < s; ++i) { if (tree.comparator != null) tree.pageItemComparator = tree.comparator.compare(getKeyAt(i), iKey); else tre...
public class class_name { public StringBuffer format(Object number, StringBuffer toAppendTo, FieldPosition pos) { if (number instanceof Long || number instanceof Integer || number instanceof Short || number instanceof Byte || ...
public class class_name { public StringBuffer format(Object number, StringBuffer toAppendTo, FieldPosition pos) { if (number instanceof Long || number instanceof Integer || number instanceof Short || number instanceof Byte || ...
public class class_name { private void mapMouseToPlane(Simple1DOFCamera camera, Point point2d, double[] vec) { // Far plane camera.unproject(point2d.x, point2d.y, -100., far); // Near plane camera.unproject(point2d.x, point2d.y, 1., near); // Delta vector: far -= near. VMath.minusEquals(far, ne...
public class class_name { private void mapMouseToPlane(Simple1DOFCamera camera, Point point2d, double[] vec) { // Far plane camera.unproject(point2d.x, point2d.y, -100., far); // Near plane camera.unproject(point2d.x, point2d.y, 1., near); // Delta vector: far -= near. VMath.minusEquals(far, ne...
public class class_name { public void addImportName(ClassDesc classDesc, ClassConstants importedClass) { String packageName = importedClass.getPackageName(); if (isImportTargetPackage(classDesc, packageName)) { classDesc.addImportName(importedClass.getQualifiedName()); } } }
public class class_name { public void addImportName(ClassDesc classDesc, ClassConstants importedClass) { String packageName = importedClass.getPackageName(); if (isImportTargetPackage(classDesc, packageName)) { classDesc.addImportName(importedClass.getQualifiedName()); // depends on control dependency: [...
public class class_name { public void setMatrix(int[] r, int j0, int j1, Matrix X) { try { for (int i = 0; i < r.length; i++) { for (int j = j0; j <= j1; j++) { A[r[i]][j] = X.get(i, j - j0); } }...
public class class_name { public void setMatrix(int[] r, int j0, int j1, Matrix X) { try { for (int i = 0; i < r.length; i++) { for (int j = j0; j <= j1; j++) { A[r[i]][j] = X.get(i, j - j0); // depends on control dependenc...
public class class_name { public static String print(ResponseOptions responseOptions, ResponseBody responseBody, PrintStream stream, LogDetail logDetail, boolean shouldPrettyPrint) { final StringBuilder builder = new StringBuilder(); if (logDetail == ALL || logDetail == STATUS) { builder.ap...
public class class_name { public static String print(ResponseOptions responseOptions, ResponseBody responseBody, PrintStream stream, LogDetail logDetail, boolean shouldPrettyPrint) { final StringBuilder builder = new StringBuilder(); if (logDetail == ALL || logDetail == STATUS) { builder.ap...
public class class_name { public void prepareClassOptions() { //TaskMonitor monitor, //ObjectRepository repository) { this.classOptionNamesToPreparedObjects = null; Option[] optionArray = getOptions().getOptionArray(); for (Option option : optionArray) { if (option insta...
public class class_name { public void prepareClassOptions() { //TaskMonitor monitor, //ObjectRepository repository) { this.classOptionNamesToPreparedObjects = null; Option[] optionArray = getOptions().getOptionArray(); for (Option option : optionArray) { if (option insta...
public class class_name { public StrBuilder appendWithSeparators(final Object[] array, final String separator) { if (array != null && array.length > 0) { final String sep = Objects.toString(separator, ""); append(array[0]); for (int i = 1; i < array.length; i++) { ...
public class class_name { public StrBuilder appendWithSeparators(final Object[] array, final String separator) { if (array != null && array.length > 0) { final String sep = Objects.toString(separator, ""); append(array[0]); // depends on control dependency: [if], data = [(array] ...
public class class_name { public CollisionFormula getCollisionFormula(String name) { if (formulas.containsKey(name)) { return formulas.get(name); } throw new LionEngineException(ERROR_FORMULA + name); } }
public class class_name { public CollisionFormula getCollisionFormula(String name) { if (formulas.containsKey(name)) { return formulas.get(name); // depends on control dependency: [if], data = [none] } throw new LionEngineException(ERROR_FORMULA + name); } }
public class class_name { public void longForEach(final LongLongConsumer consumer) { final long[] entries = this.entries; for (int i = 0; i < entries.length; i += 2) { final long key = entries[i]; if (key != missingValue) { consumer.accept(entries[i], entries[i +...
public class class_name { public void longForEach(final LongLongConsumer consumer) { final long[] entries = this.entries; for (int i = 0; i < entries.length; i += 2) { final long key = entries[i]; if (key != missingValue) { consumer.accept(entries[i], entries[i +...
public class class_name { public boolean remove(final VisitState k) { // The starting point. int pos = (int)(MurmurHash3.hash(k.schemeAuthority) & mask); // There's always an unused entry. while (visitState[pos] != null) { if (visitState[pos] == k) { size--; shiftKeys(pos); // TODO: implement re...
public class class_name { public boolean remove(final VisitState k) { // The starting point. int pos = (int)(MurmurHash3.hash(k.schemeAuthority) & mask); // There's always an unused entry. while (visitState[pos] != null) { if (visitState[pos] == k) { size--; // depends on control dependency: [if], data ...
public class class_name { @Override public Collection<Block> getBySequenceHash(ByteArray sequenceHash) { ensureSorted(); // prepare hash for binary search int[] hash = sequenceHash.toIntArray(); if (hash.length != hashInts) { throw new IllegalArgumentException("Expected " + hashInts + " ints i...
public class class_name { @Override public Collection<Block> getBySequenceHash(ByteArray sequenceHash) { ensureSorted(); // prepare hash for binary search int[] hash = sequenceHash.toIntArray(); if (hash.length != hashInts) { throw new IllegalArgumentException("Expected " + hashInts + " ints i...
public class class_name { public void propertyChange(final java.beans.PropertyChangeEvent evt) { super.propertyChange(evt); if (this.getDateParam().equalsIgnoreCase(evt.getPropertyName())) if (evt.getNewValue() instanceof Date) { Container container = this.getParent(...
public class class_name { public void propertyChange(final java.beans.PropertyChangeEvent evt) { super.propertyChange(evt); if (this.getDateParam().equalsIgnoreCase(evt.getPropertyName())) if (evt.getNewValue() instanceof Date) { Container container = this.getParent(...
public class class_name { private ZapTextField getTxtHeadline() { if (txtHeadline == null) { txtHeadline = new ZapTextField(); txtHeadline.setBorder(javax.swing.BorderFactory.createEtchedBorder(javax.swing.border.EtchedBorder.RAISED)); txtHeadline.setEditable(false); ...
public class class_name { private ZapTextField getTxtHeadline() { if (txtHeadline == null) { txtHeadline = new ZapTextField(); // depends on control dependency: [if], data = [none] txtHeadline.setBorder(javax.swing.BorderFactory.createEtchedBorder(javax.swing.border.EtchedBorder.RAIS...
public class class_name { public AttributeValue withBS(java.nio.ByteBuffer... bS) { if (getBS() == null) setBS(new java.util.ArrayList<java.nio.ByteBuffer>(bS.length)); for (java.nio.ByteBuffer value : bS) { getBS().add(value); } return this; } }
public class class_name { public AttributeValue withBS(java.nio.ByteBuffer... bS) { if (getBS() == null) setBS(new java.util.ArrayList<java.nio.ByteBuffer>(bS.length)); for (java.nio.ByteBuffer value : bS) { getBS().add(value); // depends on control dependency: [for], data = [value] ...
public class class_name { public long getEncodedLength(final byte[] pArray) { // Calculate non-chunked size - rounded up to allow for padding // cast to long is needed to avoid possibility of overflow long len = ((pArray.length + unencodedBlockSize-1) / unencodedBlockSize) * (long) encodedBloc...
public class class_name { public long getEncodedLength(final byte[] pArray) { // Calculate non-chunked size - rounded up to allow for padding // cast to long is needed to avoid possibility of overflow long len = ((pArray.length + unencodedBlockSize-1) / unencodedBlockSize) * (long) encodedBloc...
public class class_name { private String getPreprocessorDefinitions(final CommandLineCompilerConfiguration compilerConfig, final boolean isDebug) { final StringBuffer defines = new StringBuffer(); final String[] args = compilerConfig.getPreArguments(); for (final String arg : args) { if (arg.st...
public class class_name { private String getPreprocessorDefinitions(final CommandLineCompilerConfiguration compilerConfig, final boolean isDebug) { final StringBuffer defines = new StringBuffer(); final String[] args = compilerConfig.getPreArguments(); for (final String arg : args) { if (arg.st...
public class class_name { public void writeBodyFeed(List<?> entities) throws ODataRenderException { checkNotNull(entities); try { for (Object entity : entities) { writeEntry(entity, true); } } catch (XMLStreamException | IllegalAccessException | NoSuchFie...
public class class_name { public void writeBodyFeed(List<?> entities) throws ODataRenderException { checkNotNull(entities); try { for (Object entity : entities) { writeEntry(entity, true); // depends on control dependency: [for], data = [entity] } } catch...
public class class_name { public static ProviderList getFullProviderList() { ProviderList list; synchronized (Providers.class) { list = getThreadProviderList(); if (list != null) { ProviderList newList = list.removeInvalid(); if (newList != list) ...
public class class_name { public static ProviderList getFullProviderList() { ProviderList list; synchronized (Providers.class) { list = getThreadProviderList(); if (list != null) { ProviderList newList = list.removeInvalid(); if (newList != list) ...
public class class_name { @Override public boolean containsWithinBounds(Object value) { if (value instanceof Comparable) { final int result = compareTo(from, (Comparable) value); return result == 0 || result < 0 && compareTo(to, (Comparable) value) >= 0; } return con...
public class class_name { @Override public boolean containsWithinBounds(Object value) { if (value instanceof Comparable) { final int result = compareTo(from, (Comparable) value); return result == 0 || result < 0 && compareTo(to, (Comparable) value) >= 0; // depends on control depend...
public class class_name { public static TokenResponseException from(JsonFactory jsonFactory, HttpResponse response) { HttpResponseException.Builder builder = new HttpResponseException.Builder( response.getStatusCode(), response.getStatusMessage(), response.getHeaders()); // details Preconditions.ch...
public class class_name { public static TokenResponseException from(JsonFactory jsonFactory, HttpResponse response) { HttpResponseException.Builder builder = new HttpResponseException.Builder( response.getStatusCode(), response.getStatusMessage(), response.getHeaders()); // details Preconditions.ch...
public class class_name { private int decodeBlackCodeWord() { int current, entry, bits, isT, code = -1; int runLength = 0; boolean isWhite = false; while (!isWhite) { current = nextLesserThan8Bits(4); entry = initBlack[current]; ...
public class class_name { private int decodeBlackCodeWord() { int current, entry, bits, isT, code = -1; int runLength = 0; boolean isWhite = false; while (!isWhite) { current = nextLesserThan8Bits(4); // depends on control dependency: [while], data = [none] ...
public class class_name { @Override public void run() { do { // Scan for directories: try { log.info("Scanning for directories under {}", root); Files.walkFileTree(root, new Visitor()); } catch (IOException e) { log.info("...
public class class_name { @Override public void run() { do { // Scan for directories: try { log.info("Scanning for directories under {}", root); // depends on control dependency: [try], data = [none] Files.walkFileTree(root, new Visitor()); // depend...
public class class_name { public MethodInfo getMethodInfo(final String methodName) { for(MethodInfo item : methodInfos) { if(item.getMethodName().equals(methodName)) { return item; } } return null; } }
public class class_name { public MethodInfo getMethodInfo(final String methodName) { for(MethodInfo item : methodInfos) { if(item.getMethodName().equals(methodName)) { return item; // depends on control dependency: [if], data = [none] } } ...
public class class_name { @SuppressWarnings("unchecked") public static void set(Map<String, Object> target, String name, Object value) { if ( value instanceof Map ) { setMapValue( target, name, (Map<String, Object>) value ); } else { target.put( name, value ); } } }
public class class_name { @SuppressWarnings("unchecked") public static void set(Map<String, Object> target, String name, Object value) { if ( value instanceof Map ) { setMapValue( target, name, (Map<String, Object>) value ); // depends on control dependency: [if], data = [none] } else { target.put( name, ...
public class class_name { @Override public void actionPerformed(ActionEvent e) { // Use a new JFileChooser. Inconsistent behaviour otherwise! final JFileChooser fc = new JFileChooser(new File(".")); if(param.isDefined()) { fc.setSelectedFile(param.getValue()); } if(e.getSource() == button)...
public class class_name { @Override public void actionPerformed(ActionEvent e) { // Use a new JFileChooser. Inconsistent behaviour otherwise! final JFileChooser fc = new JFileChooser(new File(".")); if(param.isDefined()) { fc.setSelectedFile(param.getValue()); // depends on control dependency: [if]...
public class class_name { public void toLeftJoin() { assert((m_leftNode != null && m_rightNode != null) || (m_leftNode == null && m_rightNode == null)); if (m_leftNode == null && m_rightNode == null) { // End of recursion return; } // recursive calls if (...
public class class_name { public void toLeftJoin() { assert((m_leftNode != null && m_rightNode != null) || (m_leftNode == null && m_rightNode == null)); if (m_leftNode == null && m_rightNode == null) { // End of recursion return; // depends on control dependency: [if], data = [n...
public class class_name { public List<URI> listFileNames(FileInfo fileInfo, boolean recursive) throws IOException { Preconditions.checkNotNull(fileInfo); URI path = fileInfo.getPath(); logger.atFine().log("listFileNames(%s)", path); List<URI> paths = new ArrayList<>(); List<String> childName...
public class class_name { public List<URI> listFileNames(FileInfo fileInfo, boolean recursive) throws IOException { Preconditions.checkNotNull(fileInfo); URI path = fileInfo.getPath(); logger.atFine().log("listFileNames(%s)", path); List<URI> paths = new ArrayList<>(); List<String> childName...
public class class_name { public static void copyZipWithoutEmptyDirectories(final File inputFile, final File outputFile) throws IOException { final byte[] buf = new byte[0x2000]; final ZipFile inputZip = new ZipFile(inputFile); final ZipOutputStream outputStream = new ZipOutputStream(new F...
public class class_name { public static void copyZipWithoutEmptyDirectories(final File inputFile, final File outputFile) throws IOException { final byte[] buf = new byte[0x2000]; final ZipFile inputZip = new ZipFile(inputFile); final ZipOutputStream outputStream = new ZipOutputStream(new F...
public class class_name { public static String removeEnd(final String s, final String remove) { if (isEmpty(s) || isEmpty(remove)) { return s; } if (s.endsWith(remove)) { return s.substring(0, s.length() - remove.length()); } return s; } }
public class class_name { public static String removeEnd(final String s, final String remove) { if (isEmpty(s) || isEmpty(remove)) { return s; // depends on control dependency: [if], data = [none] } if (s.endsWith(remove)) { return s.substring(0, s.length() - remove.leng...
public class class_name { private static void printDescription(Class<?> descriptionClass) { if(descriptionClass == null) { return; } try { LoggingConfiguration.setVerbose(Level.VERBOSE); LOG.verbose(OptionUtil.describeParameterizable(new StringBuilder(), descriptionClass, FormatUtil.getCo...
public class class_name { private static void printDescription(Class<?> descriptionClass) { if(descriptionClass == null) { return; // depends on control dependency: [if], data = [none] } try { LoggingConfiguration.setVerbose(Level.VERBOSE); // depends on control dependency: [try], data = [none]...
public class class_name { public static @NonNull Throwable unwrap(final @NonNull Throwable throwable) { if(throwable instanceof InvocationTargetException) { final /* @Nullable */ Throwable cause = throwable.getCause(); if(cause != null) { return cause; } } return throwable; } }
public class class_name { public static @NonNull Throwable unwrap(final @NonNull Throwable throwable) { if(throwable instanceof InvocationTargetException) { final /* @Nullable */ Throwable cause = throwable.getCause(); if(cause != null) { return cause; // depends on control dependency: [if], da...
public class class_name { public synchronized List<CmsAliasImportResult> getAndRemove(String key) { List<CmsAliasImportResult> result = m_entries.get(key); if (result != null) { m_entries.remove(key); } return result; } }
public class class_name { public synchronized List<CmsAliasImportResult> getAndRemove(String key) { List<CmsAliasImportResult> result = m_entries.get(key); if (result != null) { m_entries.remove(key); // depends on control dependency: [if], data = [none] } return resu...
public class class_name { public Map<String, Object> jsonToMap(String json) { /* * This if block treats the /v2/accounts/exists response. Currently the endpoint returns the status * code on its response body, breaking the JSON conversion. */ if ("200".equals(json)) { ...
public class class_name { public Map<String, Object> jsonToMap(String json) { /* * This if block treats the /v2/accounts/exists response. Currently the endpoint returns the status * code on its response body, breaking the JSON conversion. */ if ("200".equals(json)) { ...
public class class_name { public static MutableRoaringBitmap or(final ImmutableRoaringBitmap x1, final ImmutableRoaringBitmap x2) { final MutableRoaringBitmap answer = new MutableRoaringBitmap(); MappeableContainerPointer i1 = x1.highLowContainer.getContainerPointer(); MappeableContainerPointer i2 = ...
public class class_name { public static MutableRoaringBitmap or(final ImmutableRoaringBitmap x1, final ImmutableRoaringBitmap x2) { final MutableRoaringBitmap answer = new MutableRoaringBitmap(); MappeableContainerPointer i1 = x1.highLowContainer.getContainerPointer(); MappeableContainerPointer i2 = ...
public class class_name { public void addCapabilityRequirements(OperationContext context, Resource resource, ModelNode attributeValue) { @SuppressWarnings("deprecation") CapabilityReferenceRecorder refRecorder = getReferenceRecorder(); if (refRecorder != null) { // We can't process ...
public class class_name { public void addCapabilityRequirements(OperationContext context, Resource resource, ModelNode attributeValue) { @SuppressWarnings("deprecation") CapabilityReferenceRecorder refRecorder = getReferenceRecorder(); if (refRecorder != null) { // We can't process ...
public class class_name { public static MSICredentials getMSICredentials(String managementEndpoint) { //check if we are running in a web app String websiteName = System.getenv("WEBSITE_SITE_NAME"); if (websiteName != null && !websiteName.isEmpty()) { // We are in a web app... ...
public class class_name { public static MSICredentials getMSICredentials(String managementEndpoint) { //check if we are running in a web app String websiteName = System.getenv("WEBSITE_SITE_NAME"); if (websiteName != null && !websiteName.isEmpty()) { // We are in a web app... ...
public class class_name { public static void awaitTermination(ExecutorService executorService, long timeoutMillis) { if (executorService.isTerminated()) return; log.info("Start Terminating !!! - {}, timeoutMillis - {}", executorService, timeoutMillis); lo...
public class class_name { public static void awaitTermination(ExecutorService executorService, long timeoutMillis) { if (executorService.isTerminated()) return; log.info("Start Terminating !!! - {}, timeoutMillis - {}", executorService, timeoutMillis); lo...
public class class_name { public void setWarningLevel(int level) { if (level < WarningMessage.NONE || level > WarningMessage.PARANOIA) { this.warningLevel = WarningMessage.LIKELY_ERRORS; } else { this.warningLevel = level; } } }
public class class_name { public void setWarningLevel(int level) { if (level < WarningMessage.NONE || level > WarningMessage.PARANOIA) { this.warningLevel = WarningMessage.LIKELY_ERRORS; // depends on control dependency: [if], data = [none] } else { this.warningLevel = l...
public class class_name { public synchronized Properties getProperties(final File file) throws IOException { final Properties fileprops; if (needsReload(file)) { fileprops = new Properties(); final InputStream is = new FileInputStream(file); try { fi...
public class class_name { public synchronized Properties getProperties(final File file) throws IOException { final Properties fileprops; if (needsReload(file)) { fileprops = new Properties(); // depends on control dependency: [if], data = [none] final InputStream is = new FileI...
public class class_name { public static void generate( Application app, File outputDirectory, Collection<TemplateEntry> templates, Logger logger ) throws IOException { // Create the context on the fly ApplicationContextBean appCtx = ContextUtils.toContext( app ); Context wrappingCtx = Context .newBuilder( ...
public class class_name { public static void generate( Application app, File outputDirectory, Collection<TemplateEntry> templates, Logger logger ) throws IOException { // Create the context on the fly ApplicationContextBean appCtx = ContextUtils.toContext( app ); Context wrappingCtx = Context .newBuilder( ...
public class class_name { private boolean symmetryBreakingForStayingVMs(ReconfigurationProblem rp) { for (VM vm : rp.getFutureRunningVMs()) { VMTransition a = rp.getVMAction(vm); Slice dSlice = a.getDSlice(); Slice cSlice = a.getCSlice(); if (dSlice != null && cS...
public class class_name { private boolean symmetryBreakingForStayingVMs(ReconfigurationProblem rp) { for (VM vm : rp.getFutureRunningVMs()) { VMTransition a = rp.getVMAction(vm); Slice dSlice = a.getDSlice(); Slice cSlice = a.getCSlice(); if (dSlice != null && cS...
public class class_name { @Override public Object getValue(ELContext context, Object base, Object property) { if (context == null) { throw new NullPointerException("context is null"); } Object result = null; if (isResolvable(base)) { if (property != null) { try { result = ((ResourceBundle) base...
public class class_name { @Override public Object getValue(ELContext context, Object base, Object property) { if (context == null) { throw new NullPointerException("context is null"); } Object result = null; if (isResolvable(base)) { if (property != null) { try { result = ((ResourceBundle) base...
public class class_name { public static int stringSize(long x) { if(x < 0) { // Avoid overflow on extreme negative return (x == Long.MIN_VALUE) ? 20 : stringSize(-x) + 1; } // This is almost a binary search - 10 cases is not a power of two, and we // assume that the smaller values are more ...
public class class_name { public static int stringSize(long x) { if(x < 0) { // Avoid overflow on extreme negative return (x == Long.MIN_VALUE) ? 20 : stringSize(-x) + 1; // depends on control dependency: [if], data = [(x] } // This is almost a binary search - 10 cases is not a power of two, an...
public class class_name { public static SortedSet reduce(SortedSet locations) { SortedSet newSet = new TreeSet(); Iterator it = locations.iterator(); while (it.hasNext()) { LocationRange next = (LocationRange)it.next(); if (newSet.size() == 0) { newSet....
public class class_name { public static SortedSet reduce(SortedSet locations) { SortedSet newSet = new TreeSet(); Iterator it = locations.iterator(); while (it.hasNext()) { LocationRange next = (LocationRange)it.next(); if (newSet.size() == 0) { newSet....