code
stringlengths
130
281k
code_dependency
stringlengths
182
306k
public class class_name { public static CondensedCallStackElement of(CallStackElement callStackElement) { CondensedCallStackElement condensedCallStackElement = new CondensedCallStackElement(callStackElement); List<CallStackElement> children = Lists.newArrayList(); for (CallStackElement child : cal...
public class class_name { public static CondensedCallStackElement of(CallStackElement callStackElement) { CondensedCallStackElement condensedCallStackElement = new CondensedCallStackElement(callStackElement); List<CallStackElement> children = Lists.newArrayList(); for (CallStackElement child : cal...
public class class_name { private RelationType getRelationType(int value) { RelationType result = null; if (value >= 0 || value < RELATION_TYPES.length) { result = RELATION_TYPES[value]; } if (result == null) { result = RelationType.FINISH_START; } r...
public class class_name { private RelationType getRelationType(int value) { RelationType result = null; if (value >= 0 || value < RELATION_TYPES.length) { result = RELATION_TYPES[value]; // depends on control dependency: [if], data = [none] } if (result == null) { ...
public class class_name { private static boolean isEnumIdentifier(Parameter parameter) { switch (parameter.kind()) { case IDENTIFIER: case MEMBER_SELECT: break; default: return false; } TypeSymbol typeSymbol = parameter.type().tsym; if (typeSymbol != null) { retu...
public class class_name { private static boolean isEnumIdentifier(Parameter parameter) { switch (parameter.kind()) { case IDENTIFIER: case MEMBER_SELECT: break; default: return false; } TypeSymbol typeSymbol = parameter.type().tsym; if (typeSymbol != null) { retu...
public class class_name { public Transition getWorkTransitionVO(Long pWorkTransId) { if(this.transitions == null){ return null; } for(int i=0; i<transitions.size(); i++){ if(pWorkTransId.longValue() == transitions.get(i).getId().longValue()){ return tran...
public class class_name { public Transition getWorkTransitionVO(Long pWorkTransId) { if(this.transitions == null){ return null; // depends on control dependency: [if], data = [none] } for(int i=0; i<transitions.size(); i++){ if(pWorkTransId.longValue() == transitions.ge...
public class class_name { public DiGraph<Vertex> subDiGraph(final Collection<Vertex> verts) { final BiDiNavigator<Vertex> origNav = this.getBiDiNavigator(); return DiGraph.diGraph (verts, new BiDiNavigator<Vertex>() { public List<Vertex> next(Vertex v) { return (List<Vertex>) diff(origNav.ne...
public class class_name { public DiGraph<Vertex> subDiGraph(final Collection<Vertex> verts) { final BiDiNavigator<Vertex> origNav = this.getBiDiNavigator(); return DiGraph.diGraph (verts, new BiDiNavigator<Vertex>() { public List<Vertex> next(Vertex v) { return (List<Vertex>) diff(origNav.ne...
public class class_name { public AutoScalingSettingsDescription withScalingPolicies(AutoScalingPolicyDescription... scalingPolicies) { if (this.scalingPolicies == null) { setScalingPolicies(new java.util.ArrayList<AutoScalingPolicyDescription>(scalingPolicies.length)); } for (AutoSc...
public class class_name { public AutoScalingSettingsDescription withScalingPolicies(AutoScalingPolicyDescription... scalingPolicies) { if (this.scalingPolicies == null) { setScalingPolicies(new java.util.ArrayList<AutoScalingPolicyDescription>(scalingPolicies.length)); // depends on control depende...
public class class_name { public void closeConsumers() { final List<RowProcessingConsumer> configurableConsumers = getConfigurableConsumers(); final TaskRunner taskRunner = _publishers.getTaskRunner(); for (RowProcessingConsumer consumer : configurableConsumers) { TaskRunnable task ...
public class class_name { public void closeConsumers() { final List<RowProcessingConsumer> configurableConsumers = getConfigurableConsumers(); final TaskRunner taskRunner = _publishers.getTaskRunner(); for (RowProcessingConsumer consumer : configurableConsumers) { TaskRunnable task ...
public class class_name { private void cleanConnectionClose(Connection connection, Statement stmt) { try { // clean close if (connection != null) { connection.rollback(); } if (stmt != null) { stmt.close(); } ...
public class class_name { private void cleanConnectionClose(Connection connection, Statement stmt) { try { // clean close if (connection != null) { connection.rollback(); // depends on control dependency: [if], data = [none] } if (stmt != null) {...
public class class_name { private boolean checkFilesExists(String[] requiredFiles, File childResource) { File setupFile = null; boolean hasMissingSetupFiles = false; for (int j = 0; j < requiredFiles.length; j++) { setupFile = new File(childResource.getPath() + File.separatorChar ...
public class class_name { private boolean checkFilesExists(String[] requiredFiles, File childResource) { File setupFile = null; boolean hasMissingSetupFiles = false; for (int j = 0; j < requiredFiles.length; j++) { setupFile = new File(childResource.getPath() + File.separatorChar ...
public class class_name { protected String resolveClassNameSuffix() { String classNameSuffix = proxetta.getClassNameSuffix(); if (classNameSuffix == null) { return null; } if (!proxetta.isVariableClassName()) { return classNameSuffix; } suffixCounter++; return classNameSuffix + suffixCounter; }...
public class class_name { protected String resolveClassNameSuffix() { String classNameSuffix = proxetta.getClassNameSuffix(); if (classNameSuffix == null) { return null; // depends on control dependency: [if], data = [none] } if (!proxetta.isVariableClassName()) { return classNameSuffix; // depends on ...
public class class_name { public void init(Record record, int iFieldSeq, String fieldName, int iSecondaryFieldSeq, String secondaryFieldName) { Converter converter = null; m_recMerge = record; m_iFieldSeq = iFieldSeq; m_iSecondaryFieldSeq = iSecondaryFieldSeq; this.fieldName...
public class class_name { public void init(Record record, int iFieldSeq, String fieldName, int iSecondaryFieldSeq, String secondaryFieldName) { Converter converter = null; m_recMerge = record; m_iFieldSeq = iFieldSeq; m_iSecondaryFieldSeq = iSecondaryFieldSeq; this.fieldName...
public class class_name { @SuppressWarnings({"checkstyle:magicnumber", "checkstyle:cyclomaticcomplexity"}) public boolean remove(Point3D<?, ?> point) { if (this.types != null && !this.types.isEmpty() && this.coords != null && !this.coords.isEmpty()) { for (int i = 0, j = 0; i < this.coords.size() && j < this.typ...
public class class_name { @SuppressWarnings({"checkstyle:magicnumber", "checkstyle:cyclomaticcomplexity"}) public boolean remove(Point3D<?, ?> point) { if (this.types != null && !this.types.isEmpty() && this.coords != null && !this.coords.isEmpty()) { for (int i = 0, j = 0; i < this.coords.size() && j < this.typ...
public class class_name { public static Method getAccessibleMethod(Method method) { if (!MemberUtils.isAccessible(method)) { return null; } // If the declaring class is public, we are done final Class<?> cls = method.getDeclaringClass(); if (Modifier.isPublic(cls.getModifiers())) { retu...
public class class_name { public static Method getAccessibleMethod(Method method) { if (!MemberUtils.isAccessible(method)) { return null; // depends on control dependency: [if], data = [none] } // If the declaring class is public, we are done final Class<?> cls = method.getDeclaringClass(); i...
public class class_name { public void dataToField(ComponentCache componentCache, int iRowIndex, int iColumnIndex) { if (componentCache.m_rgcompoments[iColumnIndex] != null) { String string = null; if (componentCache.m_rgcompoments[iColumnIndex] instanceof JTextComponent) ...
public class class_name { public void dataToField(ComponentCache componentCache, int iRowIndex, int iColumnIndex) { if (componentCache.m_rgcompoments[iColumnIndex] != null) { String string = null; if (componentCache.m_rgcompoments[iColumnIndex] instanceof JTextComponent) ...
public class class_name { public void update(long throughput) { if (LOG.isDebugEnabled()) { LOG.debug("Received throughput of " + throughput + " on channel - " + this.channel.getComponentName()); } this.throughput = throughput; } }
public class class_name { public void update(long throughput) { if (LOG.isDebugEnabled()) { LOG.debug("Received throughput of " + throughput + " on channel - " + this.channel.getComponentName()); // depends on control dependency: [if], data = [none] } this.throughput = throughput; ...
public class class_name { public final BELScriptWalker.term_return term() throws RecognitionException { BELScriptWalker.term_return retval = new BELScriptWalker.term_return(); retval.start = input.LT(1); CommonTree root_0 = null; CommonTree _first_0 = null; CommonTree _last = ...
public class class_name { public final BELScriptWalker.term_return term() throws RecognitionException { BELScriptWalker.term_return retval = new BELScriptWalker.term_return(); retval.start = input.LT(1); CommonTree root_0 = null; CommonTree _first_0 = null; CommonTree _last = ...
public class class_name { public boolean renew(String value, String state, long time) { Nonce nonce = _map.get(state + ':' + value); if (nonce != null && !nonce.hasExpired()) { nonce.renew(time > 0 ? time : TTL); return true; } else { return false; } ...
public class class_name { public boolean renew(String value, String state, long time) { Nonce nonce = _map.get(state + ':' + value); if (nonce != null && !nonce.hasExpired()) { nonce.renew(time > 0 ? time : TTL); // depends on control dependency: [if], data = [none] return true;...
public class class_name { public boolean functionAvailable(String methName) { Object tblEntry = m_functionID.get(methName); if (null != tblEntry) return true; else{ tblEntry = m_functionID_customer.get(methName); return (null != tblEntry)? true : false; } } }
public class class_name { public boolean functionAvailable(String methName) { Object tblEntry = m_functionID.get(methName); if (null != tblEntry) return true; else{ tblEntry = m_functionID_customer.get(methName); // depends on control dependency: [if], data = [none] retu...
public class class_name { public V getValue(T object) { try { if (this.getMethod != null) { return (V)this.getMethod.invoke(object); } else { return (V)this.field.get(object); } } catch (IllegalAccessException e) { throw ne...
public class class_name { public V getValue(T object) { try { if (this.getMethod != null) { return (V)this.getMethod.invoke(object); // depends on control dependency: [if], data = [none] } else { return (V)this.field.get(object); // depends on control dep...
public class class_name { public Field updateFieldMultiChoicePlain( Field formFieldParam, List<String> multiChoiceValuesParam) { if(formFieldParam != null && this.serviceTicket != null) { formFieldParam.setServiceTicket(this.serviceTicket); } if(multiCho...
public class class_name { public Field updateFieldMultiChoicePlain( Field formFieldParam, List<String> multiChoiceValuesParam) { if(formFieldParam != null && this.serviceTicket != null) { formFieldParam.setServiceTicket(this.serviceTicket); // depends on control dependen...
public class class_name { public void setOwner(ListenerOwner owner) { super.setOwner(owner); if (owner != null) { if (m_fldTarget != null) if (m_fldTarget.getRecord() != this.getOwner().getRecord()) m_fldTarget.addListener(new FieldRemoveBOnCl...
public class class_name { public void setOwner(ListenerOwner owner) { super.setOwner(owner); if (owner != null) { if (m_fldTarget != null) if (m_fldTarget.getRecord() != this.getOwner().getRecord()) m_fldTarget.addListener(new FieldRemoveBOnCl...
public class class_name { public void subscriptionRequestReceived(SubscriptionRequest sr) throws SubscriptionException { LOG.info("Subscriber -> (Hub), new subscription request received.", sr.getCallback()); try { verifySubscriberRequestedSubscription(sr); if ("subscribe".eq...
public class class_name { public void subscriptionRequestReceived(SubscriptionRequest sr) throws SubscriptionException { LOG.info("Subscriber -> (Hub), new subscription request received.", sr.getCallback()); try { verifySubscriberRequestedSubscription(sr); if ("subscribe".eq...
public class class_name { public Content getSignature(FieldDoc enumConstant) { Content pre = new HtmlTree(HtmlTag.PRE); writer.addAnnotationInfo(enumConstant, pre); addModifiers(enumConstant, pre); Content enumConstantLink = writer.getLink(new LinkInfoImpl( configuration...
public class class_name { public Content getSignature(FieldDoc enumConstant) { Content pre = new HtmlTree(HtmlTag.PRE); writer.addAnnotationInfo(enumConstant, pre); addModifiers(enumConstant, pre); Content enumConstantLink = writer.getLink(new LinkInfoImpl( configuration...
public class class_name { public static void setValueFor(final ConverterFactory converterFactory, final InputComponent<?, ?> component, final Object value) { if (component instanceof SingleValued) { setSingleInputValue(converterFactory, component, value, false); } else i...
public class class_name { public static void setValueFor(final ConverterFactory converterFactory, final InputComponent<?, ?> component, final Object value) { if (component instanceof SingleValued) { setSingleInputValue(converterFactory, component, value, false); // depends on contro...
public class class_name { @Override public void update(final GroupCommunicationMessage msg) { if (msg.hasSrcVersion()) { final String srcId = msg.getSrcid(); final int srcVersion = msg.getSrcVersion(); LOG.finest(getQualifiedName() + "Updating " + msg.getType() + " msg from " + srcId); LO...
public class class_name { @Override public void update(final GroupCommunicationMessage msg) { if (msg.hasSrcVersion()) { final String srcId = msg.getSrcid(); final int srcVersion = msg.getSrcVersion(); LOG.finest(getQualifiedName() + "Updating " + msg.getType() + " msg from " + srcId); // depen...
public class class_name { private void addHeadlines(final PrintWriter writer, final List headlines) { if (headlines == null || headlines.isEmpty()) { return; } writer.write("\n<!-- Start general headlines -->"); for (Object line : headlines) { writer.write("\n" + line); } writer.println("\n<!-- En...
public class class_name { private void addHeadlines(final PrintWriter writer, final List headlines) { if (headlines == null || headlines.isEmpty()) { return; // depends on control dependency: [if], data = [none] } writer.write("\n<!-- Start general headlines -->"); for (Object line : headlines) { write...
public class class_name { private static String classNameOf(TypeElement type, String delimiter) { String name = type.getSimpleName().toString(); while (type.getEnclosingElement() instanceof TypeElement) { type = (TypeElement) type.getEnclosingElement(); name = type.getSimpleName() + delimiter + nam...
public class class_name { private static String classNameOf(TypeElement type, String delimiter) { String name = type.getSimpleName().toString(); while (type.getEnclosingElement() instanceof TypeElement) { type = (TypeElement) type.getEnclosingElement(); // depends on control dependency: [while], data = [...
public class class_name { public int getTypeAnnotation() { int type = 0; if (nodeKind == ATTRIBUTE) { type = StandardNames.XS_UNTYPED_ATOMIC; } else { type = StandardNames.XS_UNTYPED; } return type; } }
public class class_name { public int getTypeAnnotation() { int type = 0; if (nodeKind == ATTRIBUTE) { type = StandardNames.XS_UNTYPED_ATOMIC; // depends on control dependency: [if], data = [none] } else { type = StandardNames.XS_UNTYPED; // depends on control dependency:...
public class class_name { public void setAncestorToSave(QPath newAncestorToSave) { if (!ancestorToSave.equals(newAncestorToSave)) { isNeedReloadAncestorToSave = true; } this.ancestorToSave = newAncestorToSave; } }
public class class_name { public void setAncestorToSave(QPath newAncestorToSave) { if (!ancestorToSave.equals(newAncestorToSave)) { isNeedReloadAncestorToSave = true; // depends on control dependency: [if], data = [none] } this.ancestorToSave = newAncestorToSave; } }
public class class_name { public void setTapeRecoveryPointInfos(java.util.Collection<TapeRecoveryPointInfo> tapeRecoveryPointInfos) { if (tapeRecoveryPointInfos == null) { this.tapeRecoveryPointInfos = null; return; } this.tapeRecoveryPointInfos = new com.amazonaws.inte...
public class class_name { public void setTapeRecoveryPointInfos(java.util.Collection<TapeRecoveryPointInfo> tapeRecoveryPointInfos) { if (tapeRecoveryPointInfos == null) { this.tapeRecoveryPointInfos = null; // depends on control dependency: [if], data = [none] return; // depends on con...
public class class_name { private void checkForUnexpectedCommandParameter(List<String> messages) { if (COMMANDS.UPDATE_COUNT.equalsIgnoreCase(command) || COMMANDS.UPDATE_COUNT_SQL.equalsIgnoreCase(command) || COMMANDS.UPDATE_TO_TAG.equalsIgnoreCase(command) || CO...
public class class_name { private void checkForUnexpectedCommandParameter(List<String> messages) { if (COMMANDS.UPDATE_COUNT.equalsIgnoreCase(command) || COMMANDS.UPDATE_COUNT_SQL.equalsIgnoreCase(command) || COMMANDS.UPDATE_TO_TAG.equalsIgnoreCase(command) || CO...
public class class_name { public void marshall(RemovePermissionRequest removePermissionRequest, ProtocolMarshaller protocolMarshaller) { if (removePermissionRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMar...
public class class_name { public void marshall(RemovePermissionRequest removePermissionRequest, ProtocolMarshaller protocolMarshaller) { if (removePermissionRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMar...
public class class_name { public static void main(String[] args) { final int trials = 10000; final int maxLength = 10000; Random rnd = new Random(); final int seed = rnd.nextInt(); System.out.print("Test correctness... "); rnd = new Random(seed); for (int i = 0; i < trials; i++) { int[] x ...
public class class_name { public static void main(String[] args) { final int trials = 10000; final int maxLength = 10000; Random rnd = new Random(); final int seed = rnd.nextInt(); System.out.print("Test correctness... "); rnd = new Random(seed); for (int i = 0; i < trials; i++) { int[] x ...
public class class_name { public List<JAXBElement<Object>> get_GenericApplicationPropertyOfGroundSurface() { if (_GenericApplicationPropertyOfGroundSurface == null) { _GenericApplicationPropertyOfGroundSurface = new ArrayList<JAXBElement<Object>>(); } return this._GenericApplication...
public class class_name { public List<JAXBElement<Object>> get_GenericApplicationPropertyOfGroundSurface() { if (_GenericApplicationPropertyOfGroundSurface == null) { _GenericApplicationPropertyOfGroundSurface = new ArrayList<JAXBElement<Object>>(); // depends on control dependency: [if], data = [n...
public class class_name { public int readUnsignedInt() { int variableByteDecode = 0; byte variableByteShift = 0; // check if the continuation bit is set while ((this.bufferData[this.bufferPosition] & 0x80) != 0) { variableByteDecode |= (this.bufferData[this.bufferPosition++...
public class class_name { public int readUnsignedInt() { int variableByteDecode = 0; byte variableByteShift = 0; // check if the continuation bit is set while ((this.bufferData[this.bufferPosition] & 0x80) != 0) { variableByteDecode |= (this.bufferData[this.bufferPosition++...
public class class_name { public void initialize() throws SQLException { if (initialized) { // just skip it if already initialized return; } if (connectionSource == null) { throw new IllegalStateException("connectionSource was never set on " + getClass().getSimpleName()); } databaseType = connecti...
public class class_name { public void initialize() throws SQLException { if (initialized) { // just skip it if already initialized return; } if (connectionSource == null) { throw new IllegalStateException("connectionSource was never set on " + getClass().getSimpleName()); } databaseType = connecti...
public class class_name { @Generated(value = "com.sun.tools.xjc.Driver", date = "2018-10-12T02:54:50+02:00", comments = "JAXB RI v2.2.11") public List<String> getVermarktungsart() { if (vermarktungsart == null) { vermarktungsart = new ArrayList<String>(); } return this.vermarktu...
public class class_name { @Generated(value = "com.sun.tools.xjc.Driver", date = "2018-10-12T02:54:50+02:00", comments = "JAXB RI v2.2.11") public List<String> getVermarktungsart() { if (vermarktungsart == null) { vermarktungsart = new ArrayList<String>(); // depends on control dependency: [if],...
public class class_name { public Integer[] getParaValuesToInt(String name) { String[] values = request.getParameterValues(name); if (values == null || values.length == 0) { return null; } Integer[] result = new Integer[values.length]; for (int i=0; i<result.length; i++) { result[i] = StrKit.isBl...
public class class_name { public Integer[] getParaValuesToInt(String name) { String[] values = request.getParameterValues(name); if (values == null || values.length == 0) { return null; // depends on control dependency: [if], data = [none] } Integer[] result = new Integer[values.length]; for (int i=...
public class class_name { public java.util.List<CommandInvocation> getCommandInvocations() { if (commandInvocations == null) { commandInvocations = new com.amazonaws.internal.SdkInternalList<CommandInvocation>(); } return commandInvocations; } }
public class class_name { public java.util.List<CommandInvocation> getCommandInvocations() { if (commandInvocations == null) { commandInvocations = new com.amazonaws.internal.SdkInternalList<CommandInvocation>(); // depends on control dependency: [if], data = [none] } return command...
public class class_name { public static String getGenderByIdCard(String idCard) { String sGender = "N"; if (idCard.length() == CHINA_ID_MIN_LENGTH) { idCard = conver15CardTo18(idCard); } String sCardNum = idCard.substring(16, 17); if (Integer.parseInt(sCardNum) % 2 !...
public class class_name { public static String getGenderByIdCard(String idCard) { String sGender = "N"; if (idCard.length() == CHINA_ID_MIN_LENGTH) { idCard = conver15CardTo18(idCard); // depends on control dependency: [if], data = [none] } String sCardNum = idCard.substring...
public class class_name { private static boolean overlaps_(String scl, int dim_a, int dim_b) { if (dim_a == dim_b) { if (dim_a != 1) { // Valid for area-area, Point-Point if (scl.charAt(0) == 'T' && scl.charAt(1) == '*' && scl.charAt(2) == 'T' && scl.charAt(3) == '*' && scl.charAt(4) == '*' &&...
public class class_name { private static boolean overlaps_(String scl, int dim_a, int dim_b) { if (dim_a == dim_b) { if (dim_a != 1) { // Valid for area-area, Point-Point if (scl.charAt(0) == 'T' && scl.charAt(1) == '*' && scl.charAt(2) == 'T' && scl.charAt(3) == '*' && scl.charAt(4) == '*' &&...
public class class_name { public static RedisConnectionException create(Throwable cause) { if (cause instanceof RedisConnectionException) { return new RedisConnectionException(cause.getMessage(), cause.getCause()); } return new RedisConnectionException("Unable to connect", cause);...
public class class_name { public static RedisConnectionException create(Throwable cause) { if (cause instanceof RedisConnectionException) { return new RedisConnectionException(cause.getMessage(), cause.getCause()); // depends on control dependency: [if], data = [none] } return new...
public class class_name { public File getLauncher() { if (System.getenv(LAUNCHER_ENV_VAR) != null && !System.getenv(LAUNCHER_ENV_VAR).isEmpty()) { options.get(LAUNCHER).setValue(new File(System.getenv(LAUNCHER_ENV_VAR))); } return (File) options.get(LAUNCHER).getValue(); } }
public class class_name { public File getLauncher() { if (System.getenv(LAUNCHER_ENV_VAR) != null && !System.getenv(LAUNCHER_ENV_VAR).isEmpty()) { options.get(LAUNCHER).setValue(new File(System.getenv(LAUNCHER_ENV_VAR))); // depends on control dependency: [if], data = [(System.getenv(LAUNCHER_ENV_VAR)] }...
public class class_name { public boolean setCurrentDestination(String destination) { RtfDestination dest = RtfDestinationMgr.getDestination(destination); if(dest != null) { this.currentState.destination = dest; return false; } else { this.setTokeniserStateSkipGroup(); return false; ...
public class class_name { public boolean setCurrentDestination(String destination) { RtfDestination dest = RtfDestinationMgr.getDestination(destination); if(dest != null) { this.currentState.destination = dest; // depends on control dependency: [if], data = [none] return false; // depends on control...
public class class_name { protected List<PropertyData> getDirectChildPropertiesData(NodeData parent, List<QPathEntryFilter> itemDataFilters) throws RepositoryException, IllegalStateException { checkIfOpened(); List<PropertyData> children = new ArrayList<PropertyData>(); for (Iterator<QPathEn...
public class class_name { protected List<PropertyData> getDirectChildPropertiesData(NodeData parent, List<QPathEntryFilter> itemDataFilters) throws RepositoryException, IllegalStateException { checkIfOpened(); List<PropertyData> children = new ArrayList<PropertyData>(); for (Iterator<QPathEn...
public class class_name { public Output withCaptionDescriptionNames(String... captionDescriptionNames) { if (this.captionDescriptionNames == null) { setCaptionDescriptionNames(new java.util.ArrayList<String>(captionDescriptionNames.length)); } for (String ele : captionDescriptionNam...
public class class_name { public Output withCaptionDescriptionNames(String... captionDescriptionNames) { if (this.captionDescriptionNames == null) { setCaptionDescriptionNames(new java.util.ArrayList<String>(captionDescriptionNames.length)); // depends on control dependency: [if], data = [none] ...
public class class_name { public static String exception2StringShort(Exception e) { StringBuffer st = new StringBuffer(); Throwable e2 = e; while (e2 != null) { String exClass = e2.getClass().getName(); String msg = e2.getMessage(); if (msg != null) { ...
public class class_name { public static String exception2StringShort(Exception e) { StringBuffer st = new StringBuffer(); Throwable e2 = e; while (e2 != null) { String exClass = e2.getClass().getName(); String msg = e2.getMessage(); if (msg != null) { ...
public class class_name { private File unpackFile(HttpPipeKey key) { Pipeline pipeline = configClientService.findPipeline(key.getIdentity().getPipelineId()); DataRetriever dataRetriever = dataRetrieverFactory.createRetriever(pipeline.getParameters().getRetriever(), ...
public class class_name { private File unpackFile(HttpPipeKey key) { Pipeline pipeline = configClientService.findPipeline(key.getIdentity().getPipelineId()); DataRetriever dataRetriever = dataRetrieverFactory.createRetriever(pipeline.getParameters().getRetriever(), ...
public class class_name { private CmsObject initCms(CmsObject cms) { try { cms = OpenCms.initCmsObject(cms); } catch (CmsException e) { LOG.error("Unable to init CmsObject"); } cms.getRequestContext().setSiteRoot(""); return cms; } }
public class class_name { private CmsObject initCms(CmsObject cms) { try { cms = OpenCms.initCmsObject(cms); // depends on control dependency: [try], data = [none] } catch (CmsException e) { LOG.error("Unable to init CmsObject"); } // depends on control dependency: [cat...
public class class_name { @Trivial @Override public int getLocalPort() { int port = this.connection.getLocalPort(); if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "getLocalPort: " + port); } return port; } }
public class class_name { @Trivial @Override public int getLocalPort() { int port = this.connection.getLocalPort(); if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "getLocalPort: " + port); // depends on control dependency: [if], data = [none] ...
public class class_name { public DocumentationBuilder apiListingsByResourceGroupName(Map<String, List<ApiListing>> apiListings) { nullToEmptyMultimap(apiListings).entrySet().stream().forEachOrdered(entry -> { List<ApiListing> list; if (this.apiListings.containsKey(entry.getKey())) { list = this...
public class class_name { public DocumentationBuilder apiListingsByResourceGroupName(Map<String, List<ApiListing>> apiListings) { nullToEmptyMultimap(apiListings).entrySet().stream().forEachOrdered(entry -> { List<ApiListing> list; if (this.apiListings.containsKey(entry.getKey())) { list = this...
public class class_name { public List<E> getCondensedList() { return new AbstractList<E>() { @SuppressWarnings("unchecked") @Override public E get(int arg0) { stateLock.readLock().lock(); try { return (E) elements[effectiv...
public class class_name { public List<E> getCondensedList() { return new AbstractList<E>() { @SuppressWarnings("unchecked") @Override public E get(int arg0) { stateLock.readLock().lock(); try { return (E) elements[effectiv...
public class class_name { public static HtmlPage toHtmlPage(InputStream inputStream) { try { return toHtmlPage(IOUtils.toString(inputStream)); } catch (IOException e) { throw new RuntimeException("Error creating HtmlPage from InputStream.", e); } } }
public class class_name { public static HtmlPage toHtmlPage(InputStream inputStream) { try { return toHtmlPage(IOUtils.toString(inputStream)); // depends on control dependency: [try], data = [none] } catch (IOException e) { throw new RuntimeException("Error creating HtmlPage fro...
public class class_name { public ScanProvisionedProductsResult withProvisionedProducts(ProvisionedProductDetail... provisionedProducts) { if (this.provisionedProducts == null) { setProvisionedProducts(new java.util.ArrayList<ProvisionedProductDetail>(provisionedProducts.length)); } ...
public class class_name { public ScanProvisionedProductsResult withProvisionedProducts(ProvisionedProductDetail... provisionedProducts) { if (this.provisionedProducts == null) { setProvisionedProducts(new java.util.ArrayList<ProvisionedProductDetail>(provisionedProducts.length)); // depends on cont...
public class class_name { public int put(Widget widget) { attach(widget); for (int i = 0; i < content.length; ++i) for (int j = 0; j < content[i].length; ++j) if (content[i][j] == null) { content[i][j] = widget; this.sendElement(); return i; } throw new IndexOutOfBoundsException(); //...
public class class_name { public int put(Widget widget) { attach(widget); for (int i = 0; i < content.length; ++i) for (int j = 0; j < content[i].length; ++j) if (content[i][j] == null) { content[i][j] = widget; // depends on control dependency: [if], data = [none] this.sendElement(); // depends o...
public class class_name { public QPath getRemainder() { if (matchPos + matchLength >= pathLength) { return null; } else { try { throw new RepositoryException("Not implemented"); //return path.subPath(matchPos + matchLength, pathLength)...
public class class_name { public QPath getRemainder() { if (matchPos + matchLength >= pathLength) { return null; // depends on control dependency: [if], data = [none] } else { try { throw new RepositoryException("Not implemented"); //r...
public class class_name { public KeyedStream<T, Tuple> keyBy(int... fields) { if (getType() instanceof BasicArrayTypeInfo || getType() instanceof PrimitiveArrayTypeInfo) { return keyBy(KeySelectorUtil.getSelectorForArray(fields, getType())); } else { return keyBy(new Keys.ExpressionKeys<>(fields, getType()))...
public class class_name { public KeyedStream<T, Tuple> keyBy(int... fields) { if (getType() instanceof BasicArrayTypeInfo || getType() instanceof PrimitiveArrayTypeInfo) { return keyBy(KeySelectorUtil.getSelectorForArray(fields, getType())); // depends on control dependency: [if], data = [none] } else { retu...
public class class_name { public void setButtonTooltipText(final String TEXT) { if (null == buttonTooltipText) { _buttonTooltipText = TEXT; fireUpdateEvent(REDRAW_EVENT); } else { buttonTooltipText.set(TEXT); } } }
public class class_name { public void setButtonTooltipText(final String TEXT) { if (null == buttonTooltipText) { _buttonTooltipText = TEXT; // depends on control dependency: [if], data = [none] fireUpdateEvent(REDRAW_EVENT); // depends on control dependency: [if], data = [none] ...
public class class_name { private String normalizePath(String path) { // remove leading and tailing whitespaces path = path.trim(); // remove consecutive slashes & backslashes path = path.replace("\\", "/"); path = path.replaceAll("/+", "/"); // remove tailing separator if (path.endsWith(SEPARATOR) &&...
public class class_name { private String normalizePath(String path) { // remove leading and tailing whitespaces path = path.trim(); // remove consecutive slashes & backslashes path = path.replace("\\", "/"); path = path.replaceAll("/+", "/"); // remove tailing separator if (path.endsWith(SEPARATOR) &&...
public class class_name { public boolean getInternalBoolean(ColumnInformation columnInfo) { if (lastValueWasNull()) { return false; } if (columnInfo.getColumnType() == ColumnType.BIT) { return parseBit() != 0; } final String rawVal = new String(buf, pos, length, StandardCharsets.UTF_8)...
public class class_name { public boolean getInternalBoolean(ColumnInformation columnInfo) { if (lastValueWasNull()) { return false; // depends on control dependency: [if], data = [none] } if (columnInfo.getColumnType() == ColumnType.BIT) { return parseBit() != 0; // depends on control dependen...
public class class_name { public Set<String> getCustomPlugins(boolean enabled){ Set<Entry<String, Boolean>> entrySet = customPlugins.entrySet(); Set<String> result = new TreeSet<>(); for (Entry<String, Boolean> entry : entrySet) { if(enabled) { if(entry.getValue() !=...
public class class_name { public Set<String> getCustomPlugins(boolean enabled){ Set<Entry<String, Boolean>> entrySet = customPlugins.entrySet(); Set<String> result = new TreeSet<>(); for (Entry<String, Boolean> entry : entrySet) { if(enabled) { if(entry.getValue() !=...
public class class_name { public static <T> List<T> addAll(List<T> to, List<? extends T> what) { List<T> data = safeList(to); if (!isEmpty(what)) { data.addAll(what); } return data; } }
public class class_name { public static <T> List<T> addAll(List<T> to, List<? extends T> what) { List<T> data = safeList(to); if (!isEmpty(what)) { data.addAll(what); // depends on control dependency: [if], data = [none] } return data; } }
public class class_name { protected void failOnInvalidContext(ExecutionContext executionContext) { for (Fact fact : executionContext.getFacts()) { failOnInvalidFact(fact); } for (Step step : executionContext.getSteps()) { failOnInvalidStep(step); } for (Result result : executionContext.getResults()) { ...
public class class_name { protected void failOnInvalidContext(ExecutionContext executionContext) { for (Fact fact : executionContext.getFacts()) { failOnInvalidFact(fact); // depends on control dependency: [for], data = [fact] } for (Step step : executionContext.getSteps()) { failOnInvalidStep(step); // de...
public class class_name { public static boolean shouldShowRateDialog() { if (mOptOut) { return false; } else { if (mLaunchTimes >= sConfig.mCriteriaLaunchTimes) { return true; } long threshold = TimeUnit.DAYS.toMillis(sConfig.mCriteriaInst...
public class class_name { public static boolean shouldShowRateDialog() { if (mOptOut) { return false; // depends on control dependency: [if], data = [none] } else { if (mLaunchTimes >= sConfig.mCriteriaLaunchTimes) { return true; // depends on control dependency:...
public class class_name { @Override protected int readData(byte[] buffer, int offset) { if (FastTrackUtility.getByte(buffer, offset) == 0x01) { offset += 2; } else { offset += 20; StringsWithLengthBlock options = new StringsWithLengthBlock().read(buffer, offs...
public class class_name { @Override protected int readData(byte[] buffer, int offset) { if (FastTrackUtility.getByte(buffer, offset) == 0x01) { offset += 2; // depends on control dependency: [if], data = [none] } else { offset += 20; // depends on control dependency: ...
public class class_name { private static long getMaxTTL(Map<byte[], Long> ttlByFamily) { long maxTTL = 0; for (Long familyTTL : ttlByFamily.values()) { maxTTL = Math.max(familyTTL <= 0 ? Long.MAX_VALUE : familyTTL, maxTTL); } return maxTTL == 0 ? Long.MAX_VALUE : maxTTL; } }
public class class_name { private static long getMaxTTL(Map<byte[], Long> ttlByFamily) { long maxTTL = 0; for (Long familyTTL : ttlByFamily.values()) { maxTTL = Math.max(familyTTL <= 0 ? Long.MAX_VALUE : familyTTL, maxTTL); // depends on control dependency: [for], data = [familyTTL] } return maxT...
public class class_name { public synchronized TreeEntry<K, V> pollFirstEntry() { final TreeEntry<K, V> entry = firstEntry(); if (entry != null) { remove(entry.getKey()); } return entry; } }
public class class_name { public synchronized TreeEntry<K, V> pollFirstEntry() { final TreeEntry<K, V> entry = firstEntry(); if (entry != null) { remove(entry.getKey()); // depends on control dependency: [if], data = [(entry] } return entry; } }
public class class_name { public static NutMap createParamsMap(HttpServletRequest req) { NutMap params = new NutMap(); // parse query strings Enumeration<?> en = req.getParameterNames(); while (en.hasMoreElements()) { String key = en.nextElement().toString(); params.put(key, req.getParameter(key));...
public class class_name { public static NutMap createParamsMap(HttpServletRequest req) { NutMap params = new NutMap(); // parse query strings Enumeration<?> en = req.getParameterNames(); while (en.hasMoreElements()) { String key = en.nextElement().toString(); params.put(key, req.getParameter(key));...
public class class_name { private void validateDepDefinitionUniqueness(final List<FlowTriggerDependency> dependencies) { final Set<String> seen = new HashSet<>(); for (final FlowTriggerDependency dep : dependencies) { final Map<String, String> props = dep.getProps(); // set.add() returns false when...
public class class_name { private void validateDepDefinitionUniqueness(final List<FlowTriggerDependency> dependencies) { final Set<String> seen = new HashSet<>(); for (final FlowTriggerDependency dep : dependencies) { final Map<String, String> props = dep.getProps(); // set.add() returns false when...
public class class_name { public static Object[] merge(Object[]... arrays) { int size = 0; for (Object[] arr : arrays) size += arr.length; Object[] concat = new Object[size]; int destPos = 0; for (Object[] src : arrays) { System.arraycopy(src, 0, concat, destPos, src.length); destPos += src.length; ...
public class class_name { public static Object[] merge(Object[]... arrays) { int size = 0; for (Object[] arr : arrays) size += arr.length; Object[] concat = new Object[size]; int destPos = 0; for (Object[] src : arrays) { System.arraycopy(src, 0, concat, destPos, src.length); // depends on control depend...
public class class_name { public T withStatement(Statement statement) { PropertyIdValue pid = statement.getMainSnak() .getPropertyId(); ArrayList<Statement> pidStatements = this.statements.get(pid); if (pidStatements == null) { pidStatements = new ArrayList<Statement>(); this.statements.put(pid, pidSta...
public class class_name { public T withStatement(Statement statement) { PropertyIdValue pid = statement.getMainSnak() .getPropertyId(); ArrayList<Statement> pidStatements = this.statements.get(pid); if (pidStatements == null) { pidStatements = new ArrayList<Statement>(); // depends on control dependency: ...
public class class_name { @Override public RuntimeResourceDefinition validateCriteriaAndReturnResourceDefinition(String criteria) { String resourceName; if (criteria == null || criteria.trim().isEmpty()) { throw new IllegalArgumentException("Criteria cannot be empty"); } if (criteria.contains("?")) { re...
public class class_name { @Override public RuntimeResourceDefinition validateCriteriaAndReturnResourceDefinition(String criteria) { String resourceName; if (criteria == null || criteria.trim().isEmpty()) { throw new IllegalArgumentException("Criteria cannot be empty"); } if (criteria.contains("?")) { re...
public class class_name { public MarcField tail(MarcField marcField, String key, MarcField appendToThisField) { if (key == null) { return marcField; } MarcField newMarcField = appendToThisField; if (newMarcField == null) { newMarcField = get(key); } ...
public class class_name { public MarcField tail(MarcField marcField, String key, MarcField appendToThisField) { if (key == null) { return marcField; // depends on control dependency: [if], data = [none] } MarcField newMarcField = appendToThisField; if (newMarcField == null) ...
public class class_name { public InjectorBuilder filter(ElementVisitor<Boolean> predicate) { List<Element> elements = new ArrayList<Element>(); for (Element element : Elements.getElements(Stage.TOOL, module)) { if (element.acceptVisitor(predicate)) { elements.add(element); ...
public class class_name { public InjectorBuilder filter(ElementVisitor<Boolean> predicate) { List<Element> elements = new ArrayList<Element>(); for (Element element : Elements.getElements(Stage.TOOL, module)) { if (element.acceptVisitor(predicate)) { elements.add(element); /...
public class class_name { private void checkFileType() { if ((m_fileInput != null) && (m_replaceInfo != null) && (m_fileWidget != null)) { CmsFileInfo file = m_fileInput.getFiles()[0]; if (!m_replaceInfo.getSitepath().endsWith(file.getFileSuffix())) { Widget warnin...
public class class_name { private void checkFileType() { if ((m_fileInput != null) && (m_replaceInfo != null) && (m_fileWidget != null)) { CmsFileInfo file = m_fileInput.getFiles()[0]; if (!m_replaceInfo.getSitepath().endsWith(file.getFileSuffix())) { Widget warnin...
public class class_name { private static int findNext(boolean reverse, int pos) { boolean backwards = IS_BACKWARDS_CHECKBOX.isSelected(); backwards = backwards ? !reverse : reverse; String pattern = (String) FIND_FIELD.getSelectedItem(); if (pattern != null && pattern.length() > 0) { ...
public class class_name { private static int findNext(boolean reverse, int pos) { boolean backwards = IS_BACKWARDS_CHECKBOX.isSelected(); backwards = backwards ? !reverse : reverse; String pattern = (String) FIND_FIELD.getSelectedItem(); if (pattern != null && pattern.length() > 0) { ...
public class class_name { @Override public void prepare(FeatureProvider provider) { super.prepare(provider); transformable = provider.getFeature(Transformable.class); transformable.addListener(this); if (provider instanceof CollidableListener) { a...
public class class_name { @Override public void prepare(FeatureProvider provider) { super.prepare(provider); transformable = provider.getFeature(Transformable.class); transformable.addListener(this); if (provider instanceof CollidableListener) { a...
public class class_name { void displayInheritedPermissions() { // store all parent folder ids together with path in a map m_parents = new HashMap<CmsUUID, String>(); String sitePath = m_cms.getSitePath(m_resource); String path = CmsResource.getParentFolder(sitePath); List<CmsRe...
public class class_name { void displayInheritedPermissions() { // store all parent folder ids together with path in a map m_parents = new HashMap<CmsUUID, String>(); String sitePath = m_cms.getSitePath(m_resource); String path = CmsResource.getParentFolder(sitePath); List<CmsRe...
public class class_name { public double getPriority(Object key) { for (int i = 0; i < elements.size(); i++) { if (elements.get(i).equals(key)) { return priorities[i]; } } throw new NoSuchElementException(); } }
public class class_name { public double getPriority(Object key) { for (int i = 0; i < elements.size(); i++) { if (elements.get(i).equals(key)) { return priorities[i]; // depends on control dependency: [if], data = [none] } } throw new NoSuchElementException(); } }
public class class_name { public static <T> T fromXml(String xml, Class<T> clazz) { try { StringReader reader = new StringReader(xml); return (T) createUnmarshaller(clazz).unmarshal(reader); } catch (JAXBException e) { throw ExceptionUtil.unchecked(e); } } }
public class class_name { public static <T> T fromXml(String xml, Class<T> clazz) { try { StringReader reader = new StringReader(xml); return (T) createUnmarshaller(clazz).unmarshal(reader); // depends on control dependency: [try], data = [none] } catch (JAXBException e) { throw ExceptionUtil.unchecked(e)...
public class class_name { public Response saveAttachment(InputStream in, String name, String contentType, String docId, String docRev) { assertNotEmpty(in, "in"); assertNotEmpty(name, "name"); assertNotEmpty(contentType, "ContentType"); if (docId == nu...
public class class_name { public Response saveAttachment(InputStream in, String name, String contentType, String docId, String docRev) { assertNotEmpty(in, "in"); assertNotEmpty(name, "name"); assertNotEmpty(contentType, "ContentType"); if (docId == nu...
public class class_name { void insertForwardEdge(final ManagementEdge managementEdge, final int index) { while (index >= this.forwardEdges.size()) { this.forwardEdges.add(null); } this.forwardEdges.set(index, managementEdge); } }
public class class_name { void insertForwardEdge(final ManagementEdge managementEdge, final int index) { while (index >= this.forwardEdges.size()) { this.forwardEdges.add(null); // depends on control dependency: [while], data = [none] } this.forwardEdges.set(index, managementEdge); } }
public class class_name { protected void setKeyringMonitorRegistration(ServiceRegistration<KeyringMonitor> keyringMonitorRegistration) { if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) { Tr.event(this, tc, "setKeyringMonitorRegistration"); } this.keyringMonitorRegis...
public class class_name { protected void setKeyringMonitorRegistration(ServiceRegistration<KeyringMonitor> keyringMonitorRegistration) { if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) { Tr.event(this, tc, "setKeyringMonitorRegistration"); // depends on control dependency: [if], da...
public class class_name { private boolean registerListener(String newPath, ArtifactListenerSelector newListener) { boolean updatedCoveringPaths = addCoveringPath(newPath); Collection<ArtifactListenerSelector> listenersForPath = listeners.get(newPath); if ( listenersForPath == null ) { ...
public class class_name { private boolean registerListener(String newPath, ArtifactListenerSelector newListener) { boolean updatedCoveringPaths = addCoveringPath(newPath); Collection<ArtifactListenerSelector> listenersForPath = listeners.get(newPath); if ( listenersForPath == null ) { ...
public class class_name { public void set(T newValue) { Preconditions.checkNotNull(newValue, "Monitored value can not be null"); if (Objects.equal(this.value, newValue)) { return; } this.value = newValue; notifyMonitors(); } }
public class class_name { public void set(T newValue) { Preconditions.checkNotNull(newValue, "Monitored value can not be null"); if (Objects.equal(this.value, newValue)) { return; // depends on control dependency: [if], data = [none] } this.value = newValue; notifyMo...
public class class_name { public void visitParameter(final String name, final int access) { if (api < Opcodes.ASM5) { throw new UnsupportedOperationException(REQUIRES_ASM5); } if (mv != null) { mv.visitParameter(name, access); } } }
public class class_name { public void visitParameter(final String name, final int access) { if (api < Opcodes.ASM5) { throw new UnsupportedOperationException(REQUIRES_ASM5); } if (mv != null) { mv.visitParameter(name, access); // depends on control dependency: [if], data = [none] } } }
public class class_name { public IpcLogEntry withException(Throwable exception) { this.exception = exception; if (statusDetail == null) { statusDetail = exception.getClass().getSimpleName(); } if (status == null) { status = IpcStatus.forException(exception); } return this; } }
public class class_name { public IpcLogEntry withException(Throwable exception) { this.exception = exception; if (statusDetail == null) { statusDetail = exception.getClass().getSimpleName(); // depends on control dependency: [if], data = [none] } if (status == null) { status = IpcStatus.for...
public class class_name { public static void displayVersionInfo(String command) { String version = ProxyInitStrategy.class.getPackage() .getImplementationVersion(); if (version == null) { version = "N/A"; } System.out.format("%s v. %s (%s)\n", command, version, getAPIVersionString(...
public class class_name { public static void displayVersionInfo(String command) { String version = ProxyInitStrategy.class.getPackage() .getImplementationVersion(); if (version == null) { version = "N/A"; // depends on control dependency: [if], data = [none] } System.out.format("%s v. %s...
public class class_name { public void assertNullOrEmpty(Description description, Set<?> actual) { if (actual == null || actual.isEmpty()) { return; } throw failures.failure(description, shouldBeNullOrEmpty(actual)); } }
public class class_name { public void assertNullOrEmpty(Description description, Set<?> actual) { if (actual == null || actual.isEmpty()) { return; // depends on control dependency: [if], data = [none] } throw failures.failure(description, shouldBeNullOrEmpty(actual)); } }
public class class_name { @SuppressWarnings({"WeakerAccess", "unused"}) // For library users public Searcher removeNumericRefinement(@NonNull NumericRefinement refinement) { if (refinement.operator == NumericRefinement.OPERATOR_UNKNOWN) { numericRefinements.remove(refinement.attribute); ...
public class class_name { @SuppressWarnings({"WeakerAccess", "unused"}) // For library users public Searcher removeNumericRefinement(@NonNull NumericRefinement refinement) { if (refinement.operator == NumericRefinement.OPERATOR_UNKNOWN) { numericRefinements.remove(refinement.attribute); // depe...
public class class_name { public final void append(char value) { char[] chunk; // We may have preallocated chunks. If so, all but last should // be at full size. if (m_firstFree < m_chunkSize) // Simplified test single-character-fits chunk = m_array[m_lastChunk]; else { /...
public class class_name { public final void append(char value) { char[] chunk; // We may have preallocated chunks. If so, all but last should // be at full size. if (m_firstFree < m_chunkSize) // Simplified test single-character-fits chunk = m_array[m_lastChunk]; else { /...
public class class_name { protected static void fireWarnEvent( String warning, JsonConfig jsonConfig ) { if( jsonConfig.isEventTriggeringEnabled() ){ for( Iterator listeners = jsonConfig.getJsonEventListeners() .iterator(); listeners.hasNext(); ){ JsonEventListener listener = ...
public class class_name { protected static void fireWarnEvent( String warning, JsonConfig jsonConfig ) { if( jsonConfig.isEventTriggeringEnabled() ){ for( Iterator listeners = jsonConfig.getJsonEventListeners() .iterator(); listeners.hasNext(); ){ JsonEventListener listener = ...
public class class_name { public static void main(final String[] args) { Switch about = new Switch("a", "about", "display about message"); Switch help = new Switch("h", "help", "display help message"); FileArgument inputHmlFile = new FileArgument("i", "input-hml-file", "input HML file, default ...
public class class_name { public static void main(final String[] args) { Switch about = new Switch("a", "about", "display about message"); Switch help = new Switch("h", "help", "display help message"); FileArgument inputHmlFile = new FileArgument("i", "input-hml-file", "input HML file, default ...
public class class_name { protected void set(V v) { if (U.compareAndSwapInt(this, STATE, NEW, COMPLETING)) { outcome = v; U.putOrderedInt(this, STATE, NORMAL); // final state finishCompletion(); } } }
public class class_name { protected void set(V v) { if (U.compareAndSwapInt(this, STATE, NEW, COMPLETING)) { outcome = v; // depends on control dependency: [if], data = [none] U.putOrderedInt(this, STATE, NORMAL); // final state // depends on control dependency: [if], data = [none] ...
public class class_name { private static ApplicationEngine findDelegate() { try { ApplicationEngine result=createApplicationEngineFromSPI(); if(result==null) { result=createApplicationEngineFromConfigurationFile(); } if(result==null) { final String delegateClassName = System.getProperty(LDP4J_AP...
public class class_name { private static ApplicationEngine findDelegate() { try { ApplicationEngine result=createApplicationEngineFromSPI(); if(result==null) { result=createApplicationEngineFromConfigurationFile(); // depends on control dependency: [if], data = [none] } if(result==null) { final ...
public class class_name { public static String getURLPath(String url) { url = stripURLScheme(url); int pathIdx = url.indexOf(UrlOperations.PATH_START); if(pathIdx == -1) { return "/"; } return url.substring(pathIdx); } }
public class class_name { public static String getURLPath(String url) { url = stripURLScheme(url); int pathIdx = url.indexOf(UrlOperations.PATH_START); if(pathIdx == -1) { return "/"; // depends on control dependency: [if], data = [none] } return url.substring(pathIdx); } }
public class class_name { public void addRewardProducer(IRewardProducer producer) { if (this.producers == null) { this.producers = new ArrayList<IRewardProducer>(); } this.producers.add(producer); } }
public class class_name { public void addRewardProducer(IRewardProducer producer) { if (this.producers == null) { this.producers = new ArrayList<IRewardProducer>(); // depends on control dependency: [if], data = [none] } this.producers.add(producer); } }
public class class_name { @Override public void connect(String server, int port, Map<String, Object> connectionParams, IPendingServiceCallback connectCallback, Object[] connectCallArguments) { log.debug("connect server: {} port {} connect - params: {} callback: {} args: {}", new Object[] { server, port, ...
public class class_name { @Override public void connect(String server, int port, Map<String, Object> connectionParams, IPendingServiceCallback connectCallback, Object[] connectCallArguments) { log.debug("connect server: {} port {} connect - params: {} callback: {} args: {}", new Object[] { server, port, ...
public class class_name { public CompletableFuture<Map<InetSocketAddress, List<String>>> getRpcNodeWebSocketAddresses(final Serializable userid) { CompletableFuture<Collection<InetSocketAddress>> sncpFuture = getRpcNodeAddresses(userid); return sncpFuture.thenCompose((Collection<InetSocketAddress> ad...
public class class_name { public CompletableFuture<Map<InetSocketAddress, List<String>>> getRpcNodeWebSocketAddresses(final Serializable userid) { CompletableFuture<Collection<InetSocketAddress>> sncpFuture = getRpcNodeAddresses(userid); return sncpFuture.thenCompose((Collection<InetSocketAddress> ad...
public class class_name { private void validateIfdFP(IFD ifd, int p) { IfdTags metadata = ifd.getMetadata(); checkRequiredTag(metadata, "ImageDescription", 1); checkRequiredTag(metadata, "StripOffsets", 1); if (p == 1 || p == 2) { checkRequiredTag(metadata, "StripOffsets", 1, new long[]{0}); ...
public class class_name { private void validateIfdFP(IFD ifd, int p) { IfdTags metadata = ifd.getMetadata(); checkRequiredTag(metadata, "ImageDescription", 1); checkRequiredTag(metadata, "StripOffsets", 1); if (p == 1 || p == 2) { checkRequiredTag(metadata, "StripOffsets", 1, new long[]{0}); // ...