code
stringlengths
130
281k
code_dependency
stringlengths
182
306k
public class class_name { public ListThingRegistrationTasksResult withTaskIds(String... taskIds) { if (this.taskIds == null) { setTaskIds(new java.util.ArrayList<String>(taskIds.length)); } for (String ele : taskIds) { this.taskIds.add(ele); } return this...
public class class_name { public ListThingRegistrationTasksResult withTaskIds(String... taskIds) { if (this.taskIds == null) { setTaskIds(new java.util.ArrayList<String>(taskIds.length)); // depends on control dependency: [if], data = [none] } for (String ele : taskIds) { ...
public class class_name { private static VCalAlarmProperty create(VAlarm valarm) { Action action = valarm.getAction(); if (action == null) { return null; } if (action.isAudio()) { AudioAlarm aalarm = new AudioAlarm(); List<Attachment> attaches = valarm.getAttachments(); if (!attaches.isEmpty()) {...
public class class_name { private static VCalAlarmProperty create(VAlarm valarm) { Action action = valarm.getAction(); if (action == null) { return null; // depends on control dependency: [if], data = [none] } if (action.isAudio()) { AudioAlarm aalarm = new AudioAlarm(); List<Attachment> attaches = ...
public class class_name { public SelendroidCapabilities addBootstrapClass(String className) { String currentClassNames = getBootstrapClassNames(); if (currentClassNames == null || currentClassNames.isEmpty()) { setCapability(BOOTSTRAP_CLASS_NAMES, className); } else { setCapability(BOOTSTRAP_CL...
public class class_name { public SelendroidCapabilities addBootstrapClass(String className) { String currentClassNames = getBootstrapClassNames(); if (currentClassNames == null || currentClassNames.isEmpty()) { setCapability(BOOTSTRAP_CLASS_NAMES, className); // depends on control dependency: [if], data ...
public class class_name { public void setValue(String value) { try { this.uri = SipFactoryImpl.addressFactory.createURI(value); } catch (ParseException ex) { logger.error("Bad input arg", ex); throw new IllegalArgumentException("Bad input arg", ex); } } }
public class class_name { public void setValue(String value) { try { this.uri = SipFactoryImpl.addressFactory.createURI(value); // depends on control dependency: [try], data = [none] } catch (ParseException ex) { logger.error("Bad input arg", ex); throw new IllegalArgumentException("Bad input arg", e...
public class class_name { private void addContentInfo() { if (!m_cms.getRequestContext().getCurrentProject().isOnlineProject() && (null == m_searchController.getCommon().getConfig().getSolrIndex()) && (null != m_addContentInfoForEntries)) { CmsSolrQuery query = new CmsSolrQ...
public class class_name { private void addContentInfo() { if (!m_cms.getRequestContext().getCurrentProject().isOnlineProject() && (null == m_searchController.getCommon().getConfig().getSolrIndex()) && (null != m_addContentInfoForEntries)) { CmsSolrQuery query = new CmsSolrQ...
public class class_name { public RamlParameter formParameter(String name) { if (formParameters == null) { formParameters = new LinkedHashMap<>(); } RamlParameter param = formParameters.get(name); if (param == null) { param = new RamlParameter(name); formParameters.put(name, param); ...
public class class_name { public RamlParameter formParameter(String name) { if (formParameters == null) { formParameters = new LinkedHashMap<>(); // depends on control dependency: [if], data = [none] } RamlParameter param = formParameters.get(name); if (param == null) { param = new RamlPara...
public class class_name { private void initialize() { // ZAP: Rebrand this.setIconImages(DisplayUtils.getZapIconImages()); this.setVisible(false); this.setTitle(Constant.PROGRAM_NAME); final Dimension dim = restoreWindowSize(); if (dim == null) { this.setSize(WINDOW_DEFAULT_WIDTH, WI...
public class class_name { private void initialize() { // ZAP: Rebrand this.setIconImages(DisplayUtils.getZapIconImages()); this.setVisible(false); this.setTitle(Constant.PROGRAM_NAME); final Dimension dim = restoreWindowSize(); if (dim == null) { this.setSize(WINDOW_DEFAULT_WIDTH, WI...
public class class_name { public HttpRequest setHostHeader() { String hostPort = this.host; if (port != Defaults.DEFAULT_PORT) { hostPort += StringPool.COLON + port; } headerOverwrite(HEADER_HOST, hostPort); return this; } }
public class class_name { public HttpRequest setHostHeader() { String hostPort = this.host; if (port != Defaults.DEFAULT_PORT) { hostPort += StringPool.COLON + port; // depends on control dependency: [if], data = [none] } headerOverwrite(HEADER_HOST, hostPort); return this; } }
public class class_name { public String getNexusUrl() { if (line == null || !line.hasOption(ARGUMENT.NEXUS_URL)) { return null; } else { return line.getOptionValue(ARGUMENT.NEXUS_URL); } } }
public class class_name { public String getNexusUrl() { if (line == null || !line.hasOption(ARGUMENT.NEXUS_URL)) { return null; // depends on control dependency: [if], data = [none] } else { return line.getOptionValue(ARGUMENT.NEXUS_URL); // depends on control dependency: [if], ...
public class class_name { public static File[] getDirFiles(final FilenameFilter aFilter) { final ArrayList<File> list = new ArrayList<>(); for (final String filename : System.getProperty(CLASSPATH).split(DELIMETER)) { final File file = new File(filename); LOGGER.debug(MessageC...
public class class_name { public static File[] getDirFiles(final FilenameFilter aFilter) { final ArrayList<File> list = new ArrayList<>(); for (final String filename : System.getProperty(CLASSPATH).split(DELIMETER)) { final File file = new File(filename); LOGGER.debug(MessageC...
public class class_name { private static boolean validateSyntax(List<String> parts) { final int lastIndex = parts.size() - 1; // Validate the last part specially, as it has different syntax rules. if (!validatePart(parts.get(lastIndex), true)) { return false; } for (int i = 0; i < lastInde...
public class class_name { private static boolean validateSyntax(List<String> parts) { final int lastIndex = parts.size() - 1; // Validate the last part specially, as it has different syntax rules. if (!validatePart(parts.get(lastIndex), true)) { return false; // depends on control dependency: [if],...
public class class_name { public void marshall(UpdateGeoMatchSetRequest updateGeoMatchSetRequest, ProtocolMarshaller protocolMarshaller) { if (updateGeoMatchSetRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocol...
public class class_name { public void marshall(UpdateGeoMatchSetRequest updateGeoMatchSetRequest, ProtocolMarshaller protocolMarshaller) { if (updateGeoMatchSetRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocol...
public class class_name { public KeyArea setupKey(int iKeyArea) { KeyArea keyArea = null; if (iKeyArea == 0) { keyArea = this.makeIndex(DBConstants.UNIQUE, ID_KEY); keyArea.addKeyField(ID, DBConstants.ASCENDING); } if (iKeyArea == 1) { ...
public class class_name { public KeyArea setupKey(int iKeyArea) { KeyArea keyArea = null; if (iKeyArea == 0) { keyArea = this.makeIndex(DBConstants.UNIQUE, ID_KEY); // depends on control dependency: [if], data = [none] keyArea.addKeyField(ID, DBConstants.ASCENDING); ...
public class class_name { public static EntityManagerFactory createEntityManagerFactoryProxy( final EntityManagerFactory entityManagerFactory) { if (DISABLED || !JPA_COUNTER.isDisplayed()) { return entityManagerFactory; } // on veut monitorer seulement les EntityManager retournés par les deux méthodes...
public class class_name { public static EntityManagerFactory createEntityManagerFactoryProxy( final EntityManagerFactory entityManagerFactory) { if (DISABLED || !JPA_COUNTER.isDisplayed()) { return entityManagerFactory; // depends on control dependency: [if], data = [none] } // on veut monitorer seule...
public class class_name { public RowId getRowId(String field) { Object obj = this.get(field); if (null == obj) { return null; } if (obj instanceof RowId) { return (RowId) obj; } throw new DbRuntimeException("Value of field [{}] is not a rowid!", field); } }
public class class_name { public RowId getRowId(String field) { Object obj = this.get(field); if (null == obj) { return null; // depends on control dependency: [if], data = [none] } if (obj instanceof RowId) { return (RowId) obj; // depends on control dependency: [if], data = [none] } throw n...
public class class_name { public EnvVars overrideAll(Map<String,String> all) { for (Map.Entry<String, String> e : all.entrySet()) { override(e.getKey(),e.getValue()); } return this; } }
public class class_name { public EnvVars overrideAll(Map<String,String> all) { for (Map.Entry<String, String> e : all.entrySet()) { override(e.getKey(),e.getValue()); // depends on control dependency: [for], data = [e] } return this; } }
public class class_name { @Override public List<ColumnDescription> getColumnDescriptions( TitleAndCount[] items, boolean showAll, BaseReportForm form) { String description = null; int multipleValues = 0; for (TitleAndCount item : items) { if (item.getCriteriaValuesSe...
public class class_name { @Override public List<ColumnDescription> getColumnDescriptions( TitleAndCount[] items, boolean showAll, BaseReportForm form) { String description = null; int multipleValues = 0; for (TitleAndCount item : items) { if (item.getCriteriaValuesSe...
public class class_name { private List<Locale> extractLocales(List<List<String>> allLangs) { List<Locale> rc = new ArrayList<Locale>(); for (List<String> langList : allLangs) { for (String language : langList) { String country = ""; String variant = ""; ...
public class class_name { private List<Locale> extractLocales(List<List<String>> allLangs) { List<Locale> rc = new ArrayList<Locale>(); for (List<String> langList : allLangs) { for (String language : langList) { String country = ""; String variant = ""; ...
public class class_name { public Person getMother() { if (familyCNavigators == null || familyCNavigators.isEmpty()) { return new Person(); } return familyCNavigators.get(0).getMother(); } }
public class class_name { public Person getMother() { if (familyCNavigators == null || familyCNavigators.isEmpty()) { return new Person(); // depends on control dependency: [if], data = [none] } return familyCNavigators.get(0).getMother(); } }
public class class_name { private List<ConfigCommand> buildCommandList(final Sheet sheet, final int sheetRightCol, final Cell cell, final List<ConfigCommand> cList, final CellAttributesMap cellAttributesMap) { Comment comment = cell.getCellComment(); String text = comment.getString().getString(); String...
public class class_name { private List<ConfigCommand> buildCommandList(final Sheet sheet, final int sheetRightCol, final Cell cell, final List<ConfigCommand> cList, final CellAttributesMap cellAttributesMap) { Comment comment = cell.getCellComment(); String text = comment.getString().getString(); String...
public class class_name { public void setSignature(String signature, boolean repaintIsNotNeeded) { String oldSignature = this.signature; if (!SharedUtil.equals(oldSignature, signature)) { this.signature = signature; if (!repaintIsNotNeeded) { updateSignature...
public class class_name { public void setSignature(String signature, boolean repaintIsNotNeeded) { String oldSignature = this.signature; if (!SharedUtil.equals(oldSignature, signature)) { this.signature = signature; // depends on control dependency: [if], data = [none] if (!...
public class class_name { private void initCompilerClosureArgumentsFromConfig(List<String> args, JawrConfig config) { Set<Entry<Object, Object>> entrySet = config.getConfigProperties().entrySet(); for (Entry<Object, Object> propEntry : entrySet) { String key = (String) propEntry.getKey(); if (key.startsWith(...
public class class_name { private void initCompilerClosureArgumentsFromConfig(List<String> args, JawrConfig config) { Set<Entry<Object, Object>> entrySet = config.getConfigProperties().entrySet(); for (Entry<Object, Object> propEntry : entrySet) { String key = (String) propEntry.getKey(); if (key.startsWith(...
public class class_name { protected String stripVersionFromName(String name, String version) { int versionBeginIndex = name.lastIndexOf("-" + version); if ( versionBeginIndex != -1) { return name.substring(0, versionBeginIndex) + name.substring(versionBeginIndex + version.length() + 1); ...
public class class_name { protected String stripVersionFromName(String name, String version) { int versionBeginIndex = name.lastIndexOf("-" + version); if ( versionBeginIndex != -1) { return name.substring(0, versionBeginIndex) + name.substring(versionBeginIndex + version.length() + 1); // ...
public class class_name { public static List<Header> createRequestHeaders( Metadata headers, String defaultPath, String authority, String userAgent, boolean useGet) { Preconditions.checkNotNull(headers, "headers"); Preconditions.checkNotNull(defaultPath, "defaultPath"); Preconditions.checkNotNull(aut...
public class class_name { public static List<Header> createRequestHeaders( Metadata headers, String defaultPath, String authority, String userAgent, boolean useGet) { Preconditions.checkNotNull(headers, "headers"); Preconditions.checkNotNull(defaultPath, "defaultPath"); Preconditions.checkNotNull(aut...
public class class_name { public List<Integer> get(Integer out_task_id, String stream, List<Object> tuple, Collection<Tuple> anchors, Object root_id) { // in order to improve acker's performance, skip checking // String target_component = // topologyContext.getComp...
public class class_name { public List<Integer> get(Integer out_task_id, String stream, List<Object> tuple, Collection<Tuple> anchors, Object root_id) { // in order to improve acker's performance, skip checking // String target_component = // topologyContext.getComp...
public class class_name { public ResT receive(long timeoutMs) throws IOException { if (mCompleted) { return null; } if (mCanceled) { throw new CancelledException(formatErrorMessage("Stream is already canceled.")); } try { Object response = mResponses.poll(timeoutMs, TimeUnit.MILLI...
public class class_name { public ResT receive(long timeoutMs) throws IOException { if (mCompleted) { return null; } if (mCanceled) { throw new CancelledException(formatErrorMessage("Stream is already canceled.")); } try { Object response = mResponses.poll(timeoutMs, TimeUnit.MILLI...
public class class_name { static void initSingleParam(String key, String initValue, DbConn cnx) { try { cnx.runSelectSingle("globalprm_select_by_key", 2, String.class, key); return; } catch (NoResultException e) { GlobalParameter.create(cn...
public class class_name { static void initSingleParam(String key, String initValue, DbConn cnx) { try { cnx.runSelectSingle("globalprm_select_by_key", 2, String.class, key); // depends on control dependency: [try], data = [none] return; // depends on control dependency: [try...
public class class_name { public static <T> Map<String, Object> getRowFromObject(T entity) throws IllegalAccessException, InstantiationException, InvocationTargetException { Field[] fields = AnnotationUtils.filterDeepFields(entity.getClass()); Map<String, Object> row = new HashMap<>(); ...
public class class_name { public static <T> Map<String, Object> getRowFromObject(T entity) throws IllegalAccessException, InstantiationException, InvocationTargetException { Field[] fields = AnnotationUtils.filterDeepFields(entity.getClass()); Map<String, Object> row = new HashMap<>(); ...
public class class_name { void truncateLogs(TaskAttemptID firstAttempt, PerJVMInfo lInfo) { // Read the log-file details for all the attempts that ran in this JVM Map<Task, Map<LogName, LogFileDetail>> taskLogFileDetails; try { taskLogFileDetails = getAllLogsFileDetails(lInfo.allAttempts); } cat...
public class class_name { void truncateLogs(TaskAttemptID firstAttempt, PerJVMInfo lInfo) { // Read the log-file details for all the attempts that ran in this JVM Map<Task, Map<LogName, LogFileDetail>> taskLogFileDetails; try { taskLogFileDetails = getAllLogsFileDetails(lInfo.allAttempts); // depend...
public class class_name { private void updateVisibility(A_CmsSitemapMenuEntry entry) { if (entry.getSubMenu() != null) { for (I_CmsContextMenuEntry subItem : entry.getSubMenu()) { updateVisibility((A_CmsSitemapMenuEntry)subItem); } } entry.onShow(); ...
public class class_name { private void updateVisibility(A_CmsSitemapMenuEntry entry) { if (entry.getSubMenu() != null) { for (I_CmsContextMenuEntry subItem : entry.getSubMenu()) { updateVisibility((A_CmsSitemapMenuEntry)subItem); // depends on control dependency: [for], data = [sub...
public class class_name { public EEnum getIfcMemberTypeEnum() { if (ifcMemberTypeEnumEEnum == null) { ifcMemberTypeEnumEEnum = (EEnum) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI) .getEClassifiers().get(858); } return ifcMemberTypeEnumEEnum; } }
public class class_name { public EEnum getIfcMemberTypeEnum() { if (ifcMemberTypeEnumEEnum == null) { ifcMemberTypeEnumEEnum = (EEnum) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI) .getEClassifiers().get(858); // depends on control dependency: [if], data = [none] } return ifcMembe...
public class class_name { protected Double getBicubicInterpolationValue(Double[][] values, float offsetX, float offsetY) { Double value = null; Double[] rowValues = new Double[4]; for (int y = 0; y < 4; y++) { Double rowValue = getCubicInterpolationValue(values[y][0], values[y][1], values[y][2], va...
public class class_name { protected Double getBicubicInterpolationValue(Double[][] values, float offsetX, float offsetY) { Double value = null; Double[] rowValues = new Double[4]; for (int y = 0; y < 4; y++) { Double rowValue = getCubicInterpolationValue(values[y][0], values[y][1], values[y][2], va...
public class class_name { public void loadFromProperties(java.util.Properties properties) { for (Iterator i = properties.keySet().iterator(); i.hasNext(); ) { String key = (String) i.next(); if (!key.endsWith(".desc")) { try { Class clazz = Class.forName(properties.getProperty(key)); ...
public class class_name { public void loadFromProperties(java.util.Properties properties) { for (Iterator i = properties.keySet().iterator(); i.hasNext(); ) { String key = (String) i.next(); if (!key.endsWith(".desc")) { try { Class clazz = Class.forName(properties.getProperty(key)); ...
public class class_name { private static synchronized Tree getCollocationProcessedTree(Tree tree, HeadFinder hf) { if (wnc == null) { try { Class<?> cl = Class.forName("edu.stanford.nlp.trees.WordNetInstance"); wnc = (WordNet...
public class class_name { private static synchronized Tree getCollocationProcessedTree(Tree tree, HeadFinder hf) { if (wnc == null) { try { Class<?> cl = Class.forName("edu.stanford.nlp.trees.WordNetInstance"); wnc = (WordNet...
public class class_name { private <T> Method[] getMethodsToProxy(MockCreationSettings<T> settings) { Set<MethodSetEntry> abstractMethods = new HashSet<>(); Set<MethodSetEntry> nonAbstractMethods = new HashSet<>(); Class<?> superClass = settings.getTypeToMock(); while (superClass != nul...
public class class_name { private <T> Method[] getMethodsToProxy(MockCreationSettings<T> settings) { Set<MethodSetEntry> abstractMethods = new HashSet<>(); Set<MethodSetEntry> nonAbstractMethods = new HashSet<>(); Class<?> superClass = settings.getTypeToMock(); while (superClass != nul...
public class class_name { public EClass getIfcTimeSeriesReferenceRelationship() { if (ifcTimeSeriesReferenceRelationshipEClass == null) { ifcTimeSeriesReferenceRelationshipEClass = (EClass) EPackage.Registry.INSTANCE .getEPackage(Ifc2x3tc1Package.eNS_URI).getEClassifiers().get(614); } return ifcTime...
public class class_name { public EClass getIfcTimeSeriesReferenceRelationship() { if (ifcTimeSeriesReferenceRelationshipEClass == null) { ifcTimeSeriesReferenceRelationshipEClass = (EClass) EPackage.Registry.INSTANCE .getEPackage(Ifc2x3tc1Package.eNS_URI).getEClassifiers().get(614); // depends on control...
public class class_name { public Node getPreviousSiblingName() { if (nodeName == null) { return null; } initSiblingNames(); int index = siblingNameIndex -1; for (int i = siblingIndex; i >= 0; i--) { Node sibling = parentNode.childNodes.get(i); if ((index == sibling.siblingNameIndex) && nodeName.equa...
public class class_name { public Node getPreviousSiblingName() { if (nodeName == null) { return null; // depends on control dependency: [if], data = [none] } initSiblingNames(); int index = siblingNameIndex -1; for (int i = siblingIndex; i >= 0; i--) { Node sibling = parentNode.childNodes.get(i); if...
public class class_name { public void tick(long time) { this.time.set(time); long startTime = fileStartTime.get(); long duration = time - startTime; if (duration > FILE_TIMEOUT_MILISECONDS) { fileTimeOut.set(true); } } }
public class class_name { public void tick(long time) { this.time.set(time); long startTime = fileStartTime.get(); long duration = time - startTime; if (duration > FILE_TIMEOUT_MILISECONDS) { fileTimeOut.set(true); // depends on control dependency: [if], data = [none] ...
public class class_name { final int getDestinationNodeOffset(int arc) { if (isNextSet(arc)) { /* The destination node follows this arc in the array. */ return skipArc(arc); } else { /* * The destination node address has to be extracted from the arc's * goto field. ...
public class class_name { final int getDestinationNodeOffset(int arc) { if (isNextSet(arc)) { /* The destination node follows this arc in the array. */ return skipArc(arc); // depends on control dependency: [if], data = [none] } else { /* * The destination node address has to be ...
public class class_name { public void putStats(String route, String cause) { if (route == null) route = "UNKNOWN_ROUTE"; route = route.replace("/", "_"); ConcurrentHashMap<String, ErrorStatsData> statsMap = routeMap.get(route); if (statsMap == null) { statsMap = new Concurre...
public class class_name { public void putStats(String route, String cause) { if (route == null) route = "UNKNOWN_ROUTE"; route = route.replace("/", "_"); ConcurrentHashMap<String, ErrorStatsData> statsMap = routeMap.get(route); if (statsMap == null) { statsMap = new Concurre...
public class class_name { @Override public V get(Object key) { // Keys can not be null if (key == null) { throw new NullPointerException("Key can not be null"); } if (!(key instanceof String)) { throw new ClassCastException("Only String keys are supported -- ...
public class class_name { @Override public V get(Object key) { // Keys can not be null if (key == null) { throw new NullPointerException("Key can not be null"); } if (!(key instanceof String)) { throw new ClassCastException("Only String keys are supported -- ...
public class class_name { @Override public boolean analyzeJar(Analyzer analyzer) throws Exception { loadInternalRangeFix(); loadExternalRangeFix(); if (analyzer.getReferred() == null) { return false; } // Data loaded, start analysis for (Map.Entry<Descr...
public class class_name { @Override public boolean analyzeJar(Analyzer analyzer) throws Exception { loadInternalRangeFix(); loadExternalRangeFix(); if (analyzer.getReferred() == null) { return false; } // Data loaded, start analysis for (Map.Entry<Descr...
public class class_name { public InputStream openStream() { if ( entity == null ) { return null; } try { return entity.getContent(); } catch ( IOException ex ) { throw new CStorageException( "Can't open stream", ex ); } } }
public class class_name { public InputStream openStream() { if ( entity == null ) { return null; // depends on control dependency: [if], data = [none] } try { return entity.getContent(); // depends on control dependency: [try], data = [none] } catch ( IOExce...
public class class_name { public GetCommentsForComparedCommitResult withCommentsForComparedCommitData(CommentsForComparedCommit... commentsForComparedCommitData) { if (this.commentsForComparedCommitData == null) { setCommentsForComparedCommitData(new java.util.ArrayList<CommentsForComparedCommit>(c...
public class class_name { public GetCommentsForComparedCommitResult withCommentsForComparedCommitData(CommentsForComparedCommit... commentsForComparedCommitData) { if (this.commentsForComparedCommitData == null) { setCommentsForComparedCommitData(new java.util.ArrayList<CommentsForComparedCommit>(c...
public class class_name { private void bufferUp() { if (bufPos < bufSplitPoint) return; try { reader.skip(bufPos); reader.mark(maxBufferLen); final int read = reader.read(charBuf); reader.reset(); if (read != -1) { ...
public class class_name { private void bufferUp() { if (bufPos < bufSplitPoint) return; try { reader.skip(bufPos); // depends on control dependency: [try], data = [none] reader.mark(maxBufferLen); // depends on control dependency: [try], data = [none] fi...
public class class_name { public @NotNull IntAssert isLessThanOrEqualTo(int other) { if (actual <= other) { return this; } failIfCustomMessageIsSet(); throw failure(unexpectedGreaterThan(actual, other)); } }
public class class_name { public @NotNull IntAssert isLessThanOrEqualTo(int other) { if (actual <= other) { return this; // depends on control dependency: [if], data = [none] } failIfCustomMessageIsSet(); throw failure(unexpectedGreaterThan(actual, other)); } }
public class class_name { public byte[] readNextProtoBytes() throws IOException { while (true) { if (!setupNewBlockIfNeeded()) { return null; } int blobIndex = curBlobs_.size() - numLeftToReadThisBlock_; numLeftToReadThisBlock_--; byte[] blob = curBlobs_.get(blobIndex).toByte...
public class class_name { public byte[] readNextProtoBytes() throws IOException { while (true) { if (!setupNewBlockIfNeeded()) { return null; // depends on control dependency: [if], data = [none] } int blobIndex = curBlobs_.size() - numLeftToReadThisBlock_; numLeftToReadThisBlock_-...
public class class_name { public void marshall(CampaignsResponse campaignsResponse, ProtocolMarshaller protocolMarshaller) { if (campaignsResponse == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(c...
public class class_name { public void marshall(CampaignsResponse campaignsResponse, ProtocolMarshaller protocolMarshaller) { if (campaignsResponse == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(c...
public class class_name { public Object doesHandlerQualifyForProcessing(String messageParam){ JSONObject jsonObject = null; try{ jsonObject = new JSONObject(messageParam); }catch (JSONException jsonExcept){ throw new FluidClientException( "Unable to parse ["+messageParam+"]. "+ jsonExcept.getM...
public class class_name { public Object doesHandlerQualifyForProcessing(String messageParam){ JSONObject jsonObject = null; try{ jsonObject = new JSONObject(messageParam); // depends on control dependency: [try], data = [none] }catch (JSONException jsonExcept){ throw new FluidClientException( "Unable...
public class class_name { public static Component findParentForm(final Component childComponent) { final Component parent = findParent(childComponent, Form.class); if ((parent != null) && parent.getClass().equals(Form.class)) { return parent; } return null; } }
public class class_name { public static Component findParentForm(final Component childComponent) { final Component parent = findParent(childComponent, Form.class); if ((parent != null) && parent.getClass().equals(Form.class)) { return parent; // depends on control dependency: [if], data = [none] } return...
public class class_name { public void setFilters(java.util.Collection<WebhookFilterRule> filters) { if (filters == null) { this.filters = null; return; } this.filters = new java.util.ArrayList<WebhookFilterRule>(filters); } }
public class class_name { public void setFilters(java.util.Collection<WebhookFilterRule> filters) { if (filters == null) { this.filters = null; // depends on control dependency: [if], data = [none] return; // depends on control dependency: [if], data = [none] } this.fil...
public class class_name { private JsDocToken eatTokensUntilEOL(JsDocToken token) { do { if (token == JsDocToken.EOL || token == JsDocToken.EOC || token == JsDocToken.EOF) { state = State.SEARCHING_ANNOTATION; return token; } token = next(); } while (true); } }
public class class_name { private JsDocToken eatTokensUntilEOL(JsDocToken token) { do { if (token == JsDocToken.EOL || token == JsDocToken.EOC || token == JsDocToken.EOF) { state = State.SEARCHING_ANNOTATION; // depends on control dependency: [if], data = [none] return token; // dep...
public class class_name { protected void executeActions(TestContext context) { context.setVariable(indexName, String.valueOf(index)); for (TestAction action: actions) { setActiveAction(action); action.execute(context); } } }
public class class_name { protected void executeActions(TestContext context) { context.setVariable(indexName, String.valueOf(index)); for (TestAction action: actions) { setActiveAction(action); // depends on control dependency: [for], data = [action] action.execute(context); //...
public class class_name { public void marshall(LogTargetConfiguration logTargetConfiguration, ProtocolMarshaller protocolMarshaller) { if (logTargetConfiguration == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarsha...
public class class_name { public void marshall(LogTargetConfiguration logTargetConfiguration, ProtocolMarshaller protocolMarshaller) { if (logTargetConfiguration == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarsha...
public class class_name { static SQLTransform getMathTransform(TypeName typeName) { if (BigDecimal.class.getName().equals(typeName.toString())) { return new BigDecimalSQLTransform(); } else if (BigInteger.class.getName().equals(typeName.toString())) { return new BigIntegerSQLTransform(); } return null; ...
public class class_name { static SQLTransform getMathTransform(TypeName typeName) { if (BigDecimal.class.getName().equals(typeName.toString())) { return new BigDecimalSQLTransform(); // depends on control dependency: [if], data = [none] } else if (BigInteger.class.getName().equals(typeName.toString())) { ret...
public class class_name { private void RGBtoHSV(float red, float green, float blue) { float min = 0; float max = 0; float delta = 0; min = MIN(red, green, blue); max = MAX(red, green, blue); m_bri = max; // v delta = max - min; if (max !...
public class class_name { private void RGBtoHSV(float red, float green, float blue) { float min = 0; float max = 0; float delta = 0; min = MIN(red, green, blue); max = MAX(red, green, blue); m_bri = max; // v delta = max - min; if (max !...
public class class_name { @SdkProtectedApi public static Signer createSigner(String signerType, SignerParams params) { Signer signer = createSigner(signerType); if (signer instanceof ServiceAwareSigner) { ((ServiceAwareSigner) signer).setServiceName(params.getServiceName()); } ...
public class class_name { @SdkProtectedApi public static Signer createSigner(String signerType, SignerParams params) { Signer signer = createSigner(signerType); if (signer instanceof ServiceAwareSigner) { ((ServiceAwareSigner) signer).setServiceName(params.getServiceName()); // depends...
public class class_name { protected ChannelFuture handleHandshake(ChannelHandlerContext ctx, NettyHttpRequest req, WebSocketBean<?> webSocketBean, MutableHttpResponse<?> response) { int maxFramePayloadLength = webSocketBean.messageMethod().flatMap(m -> m.getValue(OnMessage.class, "maxPayloadLength", Integer.cl...
public class class_name { protected ChannelFuture handleHandshake(ChannelHandlerContext ctx, NettyHttpRequest req, WebSocketBean<?> webSocketBean, MutableHttpResponse<?> response) { int maxFramePayloadLength = webSocketBean.messageMethod().flatMap(m -> m.getValue(OnMessage.class, "maxPayloadLength", Integer.cl...
public class class_name { @SuppressWarnings({"checkstyle:npathcomplexity", "checkstyle:cyclomaticcomplexity", "checkstyle:methodlength"}) void planMigrations(int partitionId, PartitionReplica[] oldReplicas, PartitionReplica[] newReplicas, MigrationDecisionCallback callback) { assert oldReplicas...
public class class_name { @SuppressWarnings({"checkstyle:npathcomplexity", "checkstyle:cyclomaticcomplexity", "checkstyle:methodlength"}) void planMigrations(int partitionId, PartitionReplica[] oldReplicas, PartitionReplica[] newReplicas, MigrationDecisionCallback callback) { assert oldReplicas...
public class class_name { private void actionPreview(CmsHistoryResourceBean bean) { CmsGwtDialogExtension ext = new CmsGwtDialogExtension(A_CmsUI.get(), new I_CmsUpdateListener<String>() { public void onUpdate(List<String> updatedItems) { // nothing to do } })...
public class class_name { private void actionPreview(CmsHistoryResourceBean bean) { CmsGwtDialogExtension ext = new CmsGwtDialogExtension(A_CmsUI.get(), new I_CmsUpdateListener<String>() { public void onUpdate(List<String> updatedItems) { // nothing to do } })...
public class class_name { private Bitmap drawTile(TileMatrix tileMatrix, TileCursor tileResults, BoundingBox requestProjectedBoundingBox, int tileWidth, int tileHeight) { // Draw the resulting bitmap with the matching tiles Bitmap tileBitmap = null; Canvas canvas = null; Paint paint = ...
public class class_name { private Bitmap drawTile(TileMatrix tileMatrix, TileCursor tileResults, BoundingBox requestProjectedBoundingBox, int tileWidth, int tileHeight) { // Draw the resulting bitmap with the matching tiles Bitmap tileBitmap = null; Canvas canvas = null; Paint paint = ...
public class class_name { private String registerChaincodeListenerProcessor() throws InvalidArgumentException { logger.debug(format("Channel %s registerChaincodeListenerProcessor starting", name)); // Chaincode event listener is internal Block listener for chaincode events. return registerBlo...
public class class_name { private String registerChaincodeListenerProcessor() throws InvalidArgumentException { logger.debug(format("Channel %s registerChaincodeListenerProcessor starting", name)); // Chaincode event listener is internal Block listener for chaincode events. return registerBlo...
public class class_name { protected FieldDescriptor[] getFieldsForSelect() { if (fieldsForSelect == null || fieldsForSelect.get() == null) { fieldsForSelect = new WeakReference(buildFieldsForSelect(getSearchClassDescriptor())); } return (FieldDescriptor[]) fieldsFo...
public class class_name { protected FieldDescriptor[] getFieldsForSelect() { if (fieldsForSelect == null || fieldsForSelect.get() == null) { fieldsForSelect = new WeakReference(buildFieldsForSelect(getSearchClassDescriptor())); // depends on control dependency: [if], data = [none] ...
public class class_name { private short getPageLength () { short pageLength = 0; for (int i = 0; i < identificationDescriptors.length; ++i) { pageLength += identificationDescriptors[i].size(); } return pageLength; } }
public class class_name { private short getPageLength () { short pageLength = 0; for (int i = 0; i < identificationDescriptors.length; ++i) { pageLength += identificationDescriptors[i].size(); // depends on control dependency: [for], data = [i] } return pageLength; ...
public class class_name { public Map<String, SortedSet<PackageElement>> groupPackages(Set<PackageElement> packages) { Map<String, SortedSet<PackageElement>> groupPackageMap = new HashMap<>(); String defaultGroupName = (elementNameGroupMap.isEmpty() && regExpGroupMap.isEmpty())? ...
public class class_name { public Map<String, SortedSet<PackageElement>> groupPackages(Set<PackageElement> packages) { Map<String, SortedSet<PackageElement>> groupPackageMap = new HashMap<>(); String defaultGroupName = (elementNameGroupMap.isEmpty() && regExpGroupMap.isEmpty())? ...
public class class_name { @Override public String verifyJarAndPrepareProcRunners(byte[] catalogBytes, String diffCommands, byte[] catalogBytesHash, byte[] deploymentBytes) { ImmutableMap.Builder<String, Class<?>> classesMap = ImmutableMap.<String, Class<?>>builder(); InMemoryJarfile new...
public class class_name { @Override public String verifyJarAndPrepareProcRunners(byte[] catalogBytes, String diffCommands, byte[] catalogBytesHash, byte[] deploymentBytes) { ImmutableMap.Builder<String, Class<?>> classesMap = ImmutableMap.<String, Class<?>>builder(); InMemoryJarfile new...
public class class_name { public void build() { int numGood = 0, numBytecodes = 0; if (DEBUG) { System.out.println("Method: " + methodGen.getName() + " - " + methodGen.getSignature() + "in class " + methodGen.getClassName()); } // Associate line number ...
public class class_name { public void build() { int numGood = 0, numBytecodes = 0; if (DEBUG) { System.out.println("Method: " + methodGen.getName() + " - " + methodGen.getSignature() + "in class " + methodGen.getClassName()); // depends on control dependency: [if], data...
public class class_name { public List<Map<String, String>> pipelinePossibleStates(TransformTag action, List<Map<String, String>> possibleStateList) { DataTransformer tr = transformers.get(action.getName()); DataPipe pipe = new DataPipe(0, n...
public class class_name { public List<Map<String, String>> pipelinePossibleStates(TransformTag action, List<Map<String, String>> possibleStateList) { DataTransformer tr = transformers.get(action.getName()); DataPipe pipe = new DataPipe(0, n...
public class class_name { public List<T> findAll(String path, @Nullable S conf, AlluxioConfiguration alluxioConf) { Preconditions.checkArgument(path != null, "path may not be null"); List<T> factories = new ArrayList<>(mFactories); String libDir = PathUtils.concatPath(alluxioConf.get(PropertyKey.HOME), "l...
public class class_name { public List<T> findAll(String path, @Nullable S conf, AlluxioConfiguration alluxioConf) { Preconditions.checkArgument(path != null, "path may not be null"); List<T> factories = new ArrayList<>(mFactories); String libDir = PathUtils.concatPath(alluxioConf.get(PropertyKey.HOME), "l...
public class class_name { public boolean isInstanceRunning(String clusterName) { boolean result; try { @SuppressWarnings("unchecked") Map<String, Object> response = client.get("/", Map.class); result = clusterName.equals(response.get("cluster_name")); ...
public class class_name { public boolean isInstanceRunning(String clusterName) { boolean result; try { @SuppressWarnings("unchecked") Map<String, Object> response = client.get("/", Map.class); result = clusterName.equals(response.get("cluster_name")); // ...
public class class_name { public void writeString(final String value) { popName(); write(StringPool.QUOTE); int len = value.length(); for (int i = 0; i < len; i++) { char c = value.charAt(i); switch (c) { case '"': write("\\\""); break; case '\\': write("\\\\"); break; ...
public class class_name { public void writeString(final String value) { popName(); write(StringPool.QUOTE); int len = value.length(); for (int i = 0; i < len; i++) { char c = value.charAt(i); switch (c) { case '"': write("\\\""); break; case '\\': write("\\\\"); break; ...
public class class_name { private static Map<RouteDefinition, Method> join(Map<RouteDefinition, Method> base, Map<RouteDefinition, Method> add) { for (RouteDefinition definition : base.keySet()) { Method method = base.get(definition); RouteDefinition additional = find(add, method); definition.join(additio...
public class class_name { private static Map<RouteDefinition, Method> join(Map<RouteDefinition, Method> base, Map<RouteDefinition, Method> add) { for (RouteDefinition definition : base.keySet()) { Method method = base.get(definition); RouteDefinition additional = find(add, method); definition.join(additio...
public class class_name { public String getPackageCsv() { stopCollecting(); StringBuilder buff = new StringBuilder(); buff.append("Package,Self").append(LINE_SEPARATOR); for (String k : new TreeSet<String>(packages.keySet())) { int percent = 100 * packages.get(k) / Math.max(total, 1); buff.append(k...
public class class_name { public String getPackageCsv() { stopCollecting(); StringBuilder buff = new StringBuilder(); buff.append("Package,Self").append(LINE_SEPARATOR); for (String k : new TreeSet<String>(packages.keySet())) { int percent = 100 * packages.get(k) / Math.max(total, 1); buff.append(k...
public class class_name { public static <T> T evaluate(ValueExpression expression, PageContext pageContext) { if (expression == null) { return null; } @SuppressWarnings("unchecked") T value = (T) expression.getValue(pageContext.getELContext()); return value; } }
public class class_name { public static <T> T evaluate(ValueExpression expression, PageContext pageContext) { if (expression == null) { return null; // depends on control dependency: [if], data = [none] } @SuppressWarnings("unchecked") T value = (T) expression.getValue(pageC...
public class class_name { public static int parseRMICCompatible(String options) // PM46698 { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(tc, "parseRMICCompatible: " + options); int flags; if (options ==...
public class class_name { public static int parseRMICCompatible(String options) // PM46698 { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(tc, "parseRMICCompatible: " + options); int flags; if (options ==...
public class class_name { @Override public String produce(String lastSourceOffset, int maxBatchSize, BatchMaker batchMaker) throws StageException { // Offsets can vary depending on the data source. Here we use an integer as an example only. long nextSourceOffset = 0; lastSourceOffset = lastSourceOffset =...
public class class_name { @Override public String produce(String lastSourceOffset, int maxBatchSize, BatchMaker batchMaker) throws StageException { // Offsets can vary depending on the data source. Here we use an integer as an example only. long nextSourceOffset = 0; lastSourceOffset = lastSourceOffset =...
public class class_name { Integer indexOf(T t) { if (t == null) { return null; } Integer i = _set.get(t); if (i == null) { return -1; } return i; } }
public class class_name { Integer indexOf(T t) { if (t == null) { return null; // depends on control dependency: [if], data = [none] } Integer i = _set.get(t); if (i == null) { return -1; // depends on control dependency: [if], data = [none] } ret...
public class class_name { @Override public final synchronized PrepareDbAfterGetCopy lazyGetPrepareDbAfterFullImport() throws Exception { String beanName = getPrepareDbAfterFullImportName(); PrepareDbAfterGetCopy prepareDbAfterGetCopyMysql = (PrepareDbAfterGetCopy) getBeansMap().get(beanName); i...
public class class_name { @Override public final synchronized PrepareDbAfterGetCopy lazyGetPrepareDbAfterFullImport() throws Exception { String beanName = getPrepareDbAfterFullImportName(); PrepareDbAfterGetCopy prepareDbAfterGetCopyMysql = (PrepareDbAfterGetCopy) getBeansMap().get(beanName); i...
public class class_name { public static List<String> splitJson(String combinedJsonString) { List<String> result = new ArrayList<>(); int numberOfOpeningBraces = 0; boolean isInsideString = false; /* * A string starts with an unescaped " and ends with an unescaped "} or ...
public class class_name { public static List<String> splitJson(String combinedJsonString) { List<String> result = new ArrayList<>(); int numberOfOpeningBraces = 0; boolean isInsideString = false; /* * A string starts with an unescaped " and ends with an unescaped "} or ...
public class class_name { public static String bytes2String(byte[] bytes) { try { final int len = bytes.length; char[] charArray = UTF8.getCharArray(len); for (int i = 0; i < bytes.length; i++) { if (bytes[i] < UTF8.MIN_ASCII_CODE) { // non-ASCII codepoints' higher bytes ...
public class class_name { public static String bytes2String(byte[] bytes) { try { final int len = bytes.length; char[] charArray = UTF8.getCharArray(len); for (int i = 0; i < bytes.length; i++) { if (bytes[i] < UTF8.MIN_ASCII_CODE) { // non-ASCII codepoints' higher bytes ...
public class class_name { void load(TestClass testClass, File scriptFile, String testScriptDir) { // スクリプトパスの設定 testClass.setScriptPath(SitPathUtils.relatvePath(new File("."), scriptFile)); // テストクラスの物理名の設定 String baseName = FilenameUtils.getBaseName(testClass.getScriptPath()); ...
public class class_name { void load(TestClass testClass, File scriptFile, String testScriptDir) { // スクリプトパスの設定 testClass.setScriptPath(SitPathUtils.relatvePath(new File("."), scriptFile)); // テストクラスの物理名の設定 String baseName = FilenameUtils.getBaseName(testClass.getScriptPath()); ...
public class class_name { public boolean isValueExistForKey(String key) { boolean isValueExists; try { String string = getString(key, ""); isValueExists = !string.equalsIgnoreCase(""); } catch (ClassCastException e) { try { int anInt = getInt(key, 0); isValueExists = anInt != 0; } catch (Clas...
public class class_name { public boolean isValueExistForKey(String key) { boolean isValueExists; try { String string = getString(key, ""); isValueExists = !string.equalsIgnoreCase(""); // depends on control dependency: [try], data = [none] } catch (ClassCastException e) { try { int anInt = getInt(ke...
public class class_name { public WField addField(final String label, final WComponent field) { if (null == label) { return addField((WLabel) null, field); } return addField(new WLabel(label), field); } }
public class class_name { public WField addField(final String label, final WComponent field) { if (null == label) { return addField((WLabel) null, field); // depends on control dependency: [if], data = [none] } return addField(new WLabel(label), field); } }
public class class_name { public static double qualityTriangular(ZMatrixRMaj T) { int N = Math.min(T.numRows,T.numCols); double max = elementDiagMaxMagnitude2(T); if( max == 0.0 ) return 0.0; max = Math.sqrt(max); int rowStride = T.getRowStride(); dou...
public class class_name { public static double qualityTriangular(ZMatrixRMaj T) { int N = Math.min(T.numRows,T.numCols); double max = elementDiagMaxMagnitude2(T); if( max == 0.0 ) return 0.0; max = Math.sqrt(max); int rowStride = T.getRowStride(); dou...
public class class_name { void moveins(State old, State newState) { Arc a; assert old != newState; while ((a = old.ins) != null) { cparc(a, a.from, newState); freearc(a); } assert old.nins == 0; assert old.ins == null; } }
public class class_name { void moveins(State old, State newState) { Arc a; assert old != newState; while ((a = old.ins) != null) { cparc(a, a.from, newState); // depends on control dependency: [while], data = [none] freearc(a); // depends on control dependency: [while]...
public class class_name { private List<String> parameters() throws RecognitionException { match( input, DRL5Lexer.LEFT_PAREN, null, null, DroolsEditorType.SYMBOL ); if ( state.failed ) return null; List<String> parameters = new ArrayL...
public class class_name { private List<String> parameters() throws RecognitionException { match( input, DRL5Lexer.LEFT_PAREN, null, null, DroolsEditorType.SYMBOL ); if ( state.failed ) return null; List<String> parameters = new ArrayL...
public class class_name { private static String getHeaderInfo(String name, String headerLine) { String[] fields = headerLine.split("[\t ]"); for (String field : fields) { if (field.startsWith(name + "=")) { String[] subfields = field.split("="); return subfie...
public class class_name { private static String getHeaderInfo(String name, String headerLine) { String[] fields = headerLine.split("[\t ]"); for (String field : fields) { if (field.startsWith(name + "=")) { String[] subfields = field.split("="); return subfie...
public class class_name { public static SanitizedContent concatHtml(SanitizedContent... contents) { for (SanitizedContent content : contents) { checkArgument(content.getContentKind() == ContentKind.HTML, "Can only concat HTML"); } StringBuilder combined = new StringBuilder(); Dir dir = Dir.NEUTR...
public class class_name { public static SanitizedContent concatHtml(SanitizedContent... contents) { for (SanitizedContent content : contents) { checkArgument(content.getContentKind() == ContentKind.HTML, "Can only concat HTML"); // depends on control dependency: [for], data = [content] } StringBuild...
public class class_name { public boolean removeRoadSegment(int segmentIndex) { if (segmentIndex >= 0 && segmentIndex < this.roadSegments.getRoadSegmentCount()) { final RoadSegment segment = this.roadSegments.getRoadSegmentAt(segmentIndex); if (segment != null) { // // Invalidate the bus halts on the se...
public class class_name { public boolean removeRoadSegment(int segmentIndex) { if (segmentIndex >= 0 && segmentIndex < this.roadSegments.getRoadSegmentCount()) { final RoadSegment segment = this.roadSegments.getRoadSegmentAt(segmentIndex); if (segment != null) { // // Invalidate the bus halts on the se...
public class class_name { public PartialResponseChangesType<T> eval(String ... values) { if (values != null) { for(String name: values) { childNode.createChild("eval").text(name); } } return this; } }
public class class_name { public PartialResponseChangesType<T> eval(String ... values) { if (values != null) { for(String name: values) { childNode.createChild("eval").text(name); // depends on control dependency: [for], data = [name] } } return this; ...
public class class_name { public static synchronized boolean load(File tempDir, String libraryName) { if (loadedLibraries.contains(libraryName)) { return true; } final String systemLibraryName = System.mapLibraryName(libraryName); // load from the java.library.path ...
public class class_name { public static synchronized boolean load(File tempDir, String libraryName) { if (loadedLibraries.contains(libraryName)) { return true; // depends on control dependency: [if], data = [none] } final String systemLibraryName = System.mapLibraryName(libraryName...
public class class_name { public StandardModel extractStandardTransition(XEvent event) { String transition = extractTransition(event); if (transition != null) { return StandardModel.decode(transition); } else { return null; } } }
public class class_name { public StandardModel extractStandardTransition(XEvent event) { String transition = extractTransition(event); if (transition != null) { return StandardModel.decode(transition); // depends on control dependency: [if], data = [(transition] } else { return null; // depends on control ...
public class class_name { public void start() throws AppiumServerHasNotBeenStartedLocallyException { lock.lock(); try { if (isRunning()) { return; } try { process = new CommandLine(this.nodeJSExec.getCanonicalPath(), ...
public class class_name { public void start() throws AppiumServerHasNotBeenStartedLocallyException { lock.lock(); try { if (isRunning()) { return; // depends on control dependency: [if], data = [none] } try { process = new CommandLine...
public class class_name { @Override public void run() { // Workaround for Issue #4 (http://code.google.com/p/jdiameter/issues/detail?id=4) // BEGIN WORKAROUND // Give some time to initialization... int sleepTime = 250; logger.debug("Sleeping for {}ms before starting transport so that listeners c...
public class class_name { @Override public void run() { // Workaround for Issue #4 (http://code.google.com/p/jdiameter/issues/detail?id=4) // BEGIN WORKAROUND // Give some time to initialization... int sleepTime = 250; logger.debug("Sleeping for {}ms before starting transport so that listeners c...
public class class_name { private static List<String> getRationalePermissions(Source source, String... permissions) { List<String> rationaleList = new ArrayList<>(1); for (String permission : permissions) { if (source.isShowRationalePermission(permission)) { rationaleList.ad...
public class class_name { private static List<String> getRationalePermissions(Source source, String... permissions) { List<String> rationaleList = new ArrayList<>(1); for (String permission : permissions) { if (source.isShowRationalePermission(permission)) { rationaleList.ad...
public class class_name { public static DoubleMatrix2D subdiagonalMultiply(final DoubleMatrix2D A, final DoubleMatrix2D B){ final int r = A.rows(); final int rc = A.columns(); final int c = B.columns(); if(r != c){ throw new IllegalArgumentException("The result must be square"); } boolean use...
public class class_name { public static DoubleMatrix2D subdiagonalMultiply(final DoubleMatrix2D A, final DoubleMatrix2D B){ final int r = A.rows(); final int rc = A.columns(); final int c = B.columns(); if(r != c){ throw new IllegalArgumentException("The result must be square"); } boolean use...
public class class_name { @Override public void afterWrite(List<? extends SnapshotContentItem> items) { //be sure not to count snapshot prop file. int size = items.size(); for (SnapshotContentItem item : items) { if (item.getContentId().equals(Constants.SNAPSHOT_PROPS_FILENAME))...
public class class_name { @Override public void afterWrite(List<? extends SnapshotContentItem> items) { //be sure not to count snapshot prop file. int size = items.size(); for (SnapshotContentItem item : items) { if (item.getContentId().equals(Constants.SNAPSHOT_PROPS_FILENAME))...
public class class_name { protected void create(String group, String id, T type) { ConcurrentMap<String, T> subMap = new ConcurrentHashMap<String, T>(); subMap.put(id, type); Map existingTriggerMap = map.putIfAbsent(group, subMap); if (existingTriggerMap != null) { synchroni...
public class class_name { protected void create(String group, String id, T type) { ConcurrentMap<String, T> subMap = new ConcurrentHashMap<String, T>(); subMap.put(id, type); Map existingTriggerMap = map.putIfAbsent(group, subMap); if (existingTriggerMap != null) { synchroni...
public class class_name { public static String convertCipherListToString(String[] cipherList) { if (cipherList == null || cipherList.length == 0) { return "null"; } StringBuilder sb = new StringBuilder(); sb.append('(').append(cipherList.length).append(')'); for (in...
public class class_name { public static String convertCipherListToString(String[] cipherList) { if (cipherList == null || cipherList.length == 0) { return "null"; // depends on control dependency: [if], data = [none] } StringBuilder sb = new StringBuilder(); sb.append('(')....
public class class_name { private void keyOnlyPut(Class<?> clazz, String tableName, Key objectKey, Method hashKeyGetter, Method rangeKeyGetter) { Map<String, AttributeValue> attributes = new HashMap<String, AttributeValue>(); Map<String, ExpectedAttributeValue> expectedValue...
public class class_name { private void keyOnlyPut(Class<?> clazz, String tableName, Key objectKey, Method hashKeyGetter, Method rangeKeyGetter) { Map<String, AttributeValue> attributes = new HashMap<String, AttributeValue>(); Map<String, ExpectedAttributeValue> expectedValue...