code
stringlengths
130
281k
code_dependency
stringlengths
182
306k
public class class_name { @Override protected final int serializeBytes1to3 () { int line = 0; line |= taskAttributes.value() << Constants.TWO_BYTES_SHIFT; if (writeExpectedFlag) { line |= WRITE_EXPECTED_FLAG_MASK; } if (readExpectedFlag) { line |=...
public class class_name { @Override protected final int serializeBytes1to3 () { int line = 0; line |= taskAttributes.value() << Constants.TWO_BYTES_SHIFT; if (writeExpectedFlag) { line |= WRITE_EXPECTED_FLAG_MASK; // depends on control dependency: [if], data = [none] ...
public class class_name { public static String slurpURLNoExceptions(URL u) { try { return slurpURL(u); } catch (Exception e) { e.printStackTrace(); return null; } } }
public class class_name { public static String slurpURLNoExceptions(URL u) { try { return slurpURL(u); // depends on control dependency: [try], data = [none] } catch (Exception e) { e.printStackTrace(); return null; } // depends on control dependency: [catch], data = [none] } }
public class class_name { public float getStringWidth(String string, float tj) { DocumentFont font = gs().font; char[] chars = string.toCharArray(); float totalWidth = 0; for (int i = 0; i < chars.length; i++) { float w = font.getWidth(chars[i]) / 1000.0f; float wordSpacing = chars[i] == 32 ? gs()....
public class class_name { public float getStringWidth(String string, float tj) { DocumentFont font = gs().font; char[] chars = string.toCharArray(); float totalWidth = 0; for (int i = 0; i < chars.length; i++) { float w = font.getWidth(chars[i]) / 1000.0f; float wordSpacing = chars[i] == 32 ? gs()....
public class class_name { protected Map<String, List<Object>> retrievePersonAttributesFromAttributeRepository(final String id) { synchronized (lock) { val repository = getAttributeRepository(); if (repository == null) { LOGGER.warn("No attribute repositories could be fet...
public class class_name { protected Map<String, List<Object>> retrievePersonAttributesFromAttributeRepository(final String id) { synchronized (lock) { val repository = getAttributeRepository(); if (repository == null) { LOGGER.warn("No attribute repositories could be fet...
public class class_name { public int getPluginRequestCount(int pluginId) { PluginStats pluginStats = mapPluginStats.get(pluginId); if (pluginStats != null) { return pluginStats.getMessageCount(); } return 0; } }
public class class_name { public int getPluginRequestCount(int pluginId) { PluginStats pluginStats = mapPluginStats.get(pluginId); if (pluginStats != null) { return pluginStats.getMessageCount(); // depends on control dependency: [if], data = [none] } return 0; } }
public class class_name { public Map getMap(String name, boolean create) { if (name == null) throw new IllegalStateException("name must not be null"); if (_nameMap == null) return null; TrackingObject to = (TrackingObject) _nameMap.get(name); // The object was...
public class class_name { public Map getMap(String name, boolean create) { if (name == null) throw new IllegalStateException("name must not be null"); if (_nameMap == null) return null; TrackingObject to = (TrackingObject) _nameMap.get(name); // The object was...
public class class_name { public void marshall(ViolationEvent violationEvent, ProtocolMarshaller protocolMarshaller) { if (violationEvent == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(violationE...
public class class_name { public void marshall(ViolationEvent violationEvent, ProtocolMarshaller protocolMarshaller) { if (violationEvent == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(violationE...
public class class_name { public static List<Instant> instantsInRange(Instant firstInstant, Instant lastInstant, Schedule schedule) { Preconditions.checkArgument( isAligned(firstInstant, schedule) && isAligned(lastInstant, schedule), "unaligned instant"...
public class class_name { public static List<Instant> instantsInRange(Instant firstInstant, Instant lastInstant, Schedule schedule) { Preconditions.checkArgument( isAligned(firstInstant, schedule) && isAligned(lastInstant, schedule), "unaligned instant"...
public class class_name { public CharSequence getJavaScriptOptions() { StringBuilder sb = new StringBuilder(); this.optionsRenderer.renderBefore(sb); int count = 0; for (Entry<String, Object> entry : options.entrySet()) { String key = entry.getKey(); Object value = entry.getValue(); if (value insta...
public class class_name { public CharSequence getJavaScriptOptions() { StringBuilder sb = new StringBuilder(); this.optionsRenderer.renderBefore(sb); int count = 0; for (Entry<String, Object> entry : options.entrySet()) { String key = entry.getKey(); Object value = entry.getValue(); if (value insta...
public class class_name { private void handleBaseUriLink(EntityBuilder builder, String baseUri) { if (StringUtils.isBlank(baseUri)) { return; } Link link = LinkBuilder.newInstance().setRelationship(Link.RELATIONSHIP_BASEURI).setHref(baseUri).build(); builder.addLink(lin...
public class class_name { private void handleBaseUriLink(EntityBuilder builder, String baseUri) { if (StringUtils.isBlank(baseUri)) { return; // depends on control dependency: [if], data = [none] } Link link = LinkBuilder.newInstance().setRelationship(Link.RELATIONSHIP_BASEURI)....
public class class_name { public String getMimeType(String filename, String defaultMimeType) { Matcher matcher = extPattern.matcher(filename.toLowerCase()); String ext = ""; if (matcher.matches()) { ext = matcher.group(1); } if (ext.length() > 0) { String...
public class class_name { public String getMimeType(String filename, String defaultMimeType) { Matcher matcher = extPattern.matcher(filename.toLowerCase()); String ext = ""; if (matcher.matches()) { ext = matcher.group(1); // depends on control dependency: [if], data = [none] ...
public class class_name { public boolean getBooleanResult(final CharSequence equation) { final Element result = new ValueElement(getResult(equation), null, null); if (result.isBoolean()) { return result.getBoolean(); } else if (result.isInt()) { return result.getInt() > ...
public class class_name { public boolean getBooleanResult(final CharSequence equation) { final Element result = new ValueElement(getResult(equation), null, null); if (result.isBoolean()) { return result.getBoolean(); // depends on control dependency: [if], data = [none] } else if (r...
public class class_name { public void syncTopologyMetaForFollower() { // sys meta, use remote only syncSysMetaFromRemote(); // normal topology meta, local + remote for (Entry<String, TopologyMetricContext> entry : context.getTopologyMetricContexts().entrySet()) { String top...
public class class_name { public void syncTopologyMetaForFollower() { // sys meta, use remote only syncSysMetaFromRemote(); // normal topology meta, local + remote for (Entry<String, TopologyMetricContext> entry : context.getTopologyMetricContexts().entrySet()) { String top...
public class class_name { public NumberExpression<T> negate() { if (negation == null) { negation = Expressions.numberOperation(getType(), Ops.NEGATE, mixin); } return negation; } }
public class class_name { public NumberExpression<T> negate() { if (negation == null) { negation = Expressions.numberOperation(getType(), Ops.NEGATE, mixin); // depends on control dependency: [if], data = [none] } return negation; } }
public class class_name { public Logger getLogger(String name) { PaxLogger paxLogger; if (m_paxLogging == null) { paxLogger = FallbackLogFactory.createFallbackLog(null, name); } else { paxLogger = m_paxLogging.getLogger(name, Slf4jLogger.SLF4J...
public class class_name { public Logger getLogger(String name) { PaxLogger paxLogger; if (m_paxLogging == null) { paxLogger = FallbackLogFactory.createFallbackLog(null, name); // depends on control dependency: [if], data = [none] } else { paxL...
public class class_name { public static void removeAppNameSubContext(Context envCtx, String appName) { if(envCtx != null) { try { javax.naming.Context sipContext = (javax.naming.Context)envCtx.lookup(SIP_SUBCONTEXT); sipContext.destroySubcontext(appName); } catch (NamingException e) { logger....
public class class_name { public static void removeAppNameSubContext(Context envCtx, String appName) { if(envCtx != null) { try { javax.naming.Context sipContext = (javax.naming.Context)envCtx.lookup(SIP_SUBCONTEXT); sipContext.destroySubcontext(appName); // depends on control dependency: [try], data...
public class class_name { public long hash64( final byte[] data, int length, int seed) { final long m = 0xc6a4a7935bd1e995L; final int r = 47; long h = (seed&0xffffffffl)^(length*m); int length8 = length/8; for (int i=0; i<length8; i++) { final int i8 = i*8; long k = ((long)data[i8+0]&0xff) +(...
public class class_name { public long hash64( final byte[] data, int length, int seed) { final long m = 0xc6a4a7935bd1e995L; final int r = 47; long h = (seed&0xffffffffl)^(length*m); int length8 = length/8; for (int i=0; i<length8; i++) { final int i8 = i*8; long k = ((long)data[i8+0]&0xff) +(...
public class class_name { private long processPauseRequest( final AbstractBody req) { assertLocked(); if (cmParams != null && cmParams.getMaxPause() != null) { try { AttrPause pause = AttrPause.createFromString( req.getAttribute(Attribute...
public class class_name { private long processPauseRequest( final AbstractBody req) { assertLocked(); if (cmParams != null && cmParams.getMaxPause() != null) { try { AttrPause pause = AttrPause.createFromString( req.getAttribute(Attribute...
public class class_name { private KeyPersonCompensationDataType getCompensation(KeyPersonDto keyPerson) { KeyPersonCompensationDataType keyPersonCompensation = KeyPersonCompensationDataType.Factory.newInstance(); if (keyPerson != null) { if (keyPerson.getAcademicMonths() != null) { ...
public class class_name { private KeyPersonCompensationDataType getCompensation(KeyPersonDto keyPerson) { KeyPersonCompensationDataType keyPersonCompensation = KeyPersonCompensationDataType.Factory.newInstance(); if (keyPerson != null) { if (keyPerson.getAcademicMonths() != null) { ...
public class class_name { public String getSchema(Class<?> clazz) { if (clazz == Integer.class || clazz == Integer.TYPE) { return "integer [" + Integer.MIN_VALUE + " to " + Integer.MAX_VALUE + "]"; } else if (clazz == Long.class || clazz == Long.TYPE) { return "long [" + Long.MIN_VALUE + " to " + Long...
public class class_name { public String getSchema(Class<?> clazz) { if (clazz == Integer.class || clazz == Integer.TYPE) { return "integer [" + Integer.MIN_VALUE + " to " + Integer.MAX_VALUE + "]"; // depends on control dependency: [if], data = [none] } else if (clazz == Long.class || clazz == Long.TYPE) ...
public class class_name { protected List<Integer> getAllAcceptedStates(CharSequence text, int startIndex){ List<Integer> states = new ArrayList<Integer>(); int lastAcceptedState = -1; int p = runAutomaton.getInitialState(); int l = text.length(); for (int i = startIndex; i < l; i++) { p = runAut...
public class class_name { protected List<Integer> getAllAcceptedStates(CharSequence text, int startIndex){ List<Integer> states = new ArrayList<Integer>(); int lastAcceptedState = -1; int p = runAutomaton.getInitialState(); int l = text.length(); for (int i = startIndex; i < l; i++) { p = runAut...
public class class_name { @Override public PipelineEventReader<XMLEventReader, XMLEvent> getEventReader( HttpServletRequest request, HttpServletResponse response) { final PipelineEventReader<XMLEventReader, XMLEvent> pipelineEventReader = this.wrappedComponent.getEventReader(req...
public class class_name { @Override public PipelineEventReader<XMLEventReader, XMLEvent> getEventReader( HttpServletRequest request, HttpServletResponse response) { final PipelineEventReader<XMLEventReader, XMLEvent> pipelineEventReader = this.wrappedComponent.getEventReader(req...
public class class_name { public static Optional<Boolean> isTarget(EventModel eventModel, Identifiable identifiable) { if (eventModel.getListResourceContainer() .providesResource(Collections.singletonList(SelectorResource.RESOURCE_ID))) { return Optional.of(eventModel.getListReso...
public class class_name { public static Optional<Boolean> isTarget(EventModel eventModel, Identifiable identifiable) { if (eventModel.getListResourceContainer() .providesResource(Collections.singletonList(SelectorResource.RESOURCE_ID))) { return Optional.of(eventModel.getListReso...
public class class_name { public static <E> Set<E> retainNonZeros(Counter<E> counter) { Set<E> removed = new HashSet<E>(); for (E key : counter.keySet()) { if (counter.getCount(key) == 0.0) { removed.add(key); } } for (E key : removed) { counter.remove(key); } ...
public class class_name { public static <E> Set<E> retainNonZeros(Counter<E> counter) { Set<E> removed = new HashSet<E>(); for (E key : counter.keySet()) { if (counter.getCount(key) == 0.0) { removed.add(key); // depends on control dependency: [if], data = [none] } } for (E k...
public class class_name { public final void eval() throws IOException { final String component = this.parsedArguments.getString("component"); final String testFile = this.parsedArguments.getString("testSet"); final String model = this.parsedArguments.getString("model"); Evaluate evaluator = null; ...
public class class_name { public final void eval() throws IOException { final String component = this.parsedArguments.getString("component"); final String testFile = this.parsedArguments.getString("testSet"); final String model = this.parsedArguments.getString("model"); Evaluate evaluator = null; ...
public class class_name { private static @Nullable Dimension getDimensionFromRenditionMetadata(@NotNull Rendition rendition) { Asset asset = rendition.getAsset(); String metadataPath = JCR_CONTENT + "/" + NN_RENDITIONS_METADATA + "/" + rendition.getName(); Resource metadataResource = AdaptTo.notNull(asset,...
public class class_name { private static @Nullable Dimension getDimensionFromRenditionMetadata(@NotNull Rendition rendition) { Asset asset = rendition.getAsset(); String metadataPath = JCR_CONTENT + "/" + NN_RENDITIONS_METADATA + "/" + rendition.getName(); Resource metadataResource = AdaptTo.notNull(asset,...
public class class_name { final int getIndexValue() { if (anteContextLength == pattern.length()) { // A pattern with just ante context {such as foo)>bar} can // match any key. return -1; } int c = UTF16.charAt(pattern, anteContextLength); return data....
public class class_name { final int getIndexValue() { if (anteContextLength == pattern.length()) { // A pattern with just ante context {such as foo)>bar} can // match any key. return -1; // depends on control dependency: [if], data = [none] } int c = UTF16.ch...
public class class_name { private void ensureWatchThreadRunning() { if (!threadRunning) { thread = new Thread(watchThread); thread.setDaemon(true); thread.start(); watchThread.setThread(thread); watchThread.updateName(); threadRunning = true; } } }
public class class_name { private void ensureWatchThreadRunning() { if (!threadRunning) { thread = new Thread(watchThread); // depends on control dependency: [if], data = [none] thread.setDaemon(true); // depends on control dependency: [if], data = [none] thread.start(); // depends on control dependency: [i...
public class class_name { public static ScriptableObject getGlobal(Context cx) { final String GLOBAL_CLASS = "org.mozilla.javascript.tools.shell.Global"; Class<?> globalClass = Kit.classOrNull(GLOBAL_CLASS); if (globalClass != null) { try { Class<?>[] parm = { Script...
public class class_name { public static ScriptableObject getGlobal(Context cx) { final String GLOBAL_CLASS = "org.mozilla.javascript.tools.shell.Global"; Class<?> globalClass = Kit.classOrNull(GLOBAL_CLASS); if (globalClass != null) { try { Class<?>[] parm = { Script...
public class class_name { public void checkForErrorResponse() { lock.lock(); try { ensureOpen(); if (controlResponsePoller.poll() != 0 && controlResponsePoller.isPollComplete()) { if (controlResponsePoller.controlSessionId() == controlSes...
public class class_name { public void checkForErrorResponse() { lock.lock(); try { ensureOpen(); // depends on control dependency: [try], data = [none] if (controlResponsePoller.poll() != 0 && controlResponsePoller.isPollComplete()) { if ...
public class class_name { private MIMETypedStream getFromWeb(String url, String user, String pass, String knownMimeType, boolean headOnly, Context context) throws GeneralException, RangeNotSatisfiableException { logger.debug("DefaultExternalContentManager.getFromWeb({})", url); ...
public class class_name { private MIMETypedStream getFromWeb(String url, String user, String pass, String knownMimeType, boolean headOnly, Context context) throws GeneralException, RangeNotSatisfiableException { logger.debug("DefaultExternalContentManager.getFromWeb({})", url); ...
public class class_name { @Override public void prepare ( CommonServerMessageBlockRequest next ) { if ( isReceived() && ( next instanceof RequestWithFileId ) ) { ( (RequestWithFileId) next ).setFileId(this.fileId); } super.prepare(next); } }
public class class_name { @Override public void prepare ( CommonServerMessageBlockRequest next ) { if ( isReceived() && ( next instanceof RequestWithFileId ) ) { ( (RequestWithFileId) next ).setFileId(this.fileId); // depends on control dependency: [if], data = [none] } super.pr...
public class class_name { protected void addOverviewComment(Content htmltree) { if (root.inlineTags().length > 0) { htmltree.addContent( getMarkerAnchor(SectionName.OVERVIEW_DESCRIPTION)); addInlineComment(root, htmltree); } } }
public class class_name { protected void addOverviewComment(Content htmltree) { if (root.inlineTags().length > 0) { htmltree.addContent( getMarkerAnchor(SectionName.OVERVIEW_DESCRIPTION)); // depends on control dependency: [if], data = [none] addInlineComment(root, h...
public class class_name { @Override public void logAuditTrail(LogTarget lt) { if(lt.isLoggable()) { StringBuilder sb = new StringBuilder(); auditTrail(1, sb); lt.log(sb); } } }
public class class_name { @Override public void logAuditTrail(LogTarget lt) { if(lt.isLoggable()) { StringBuilder sb = new StringBuilder(); auditTrail(1, sb); // depends on control dependency: [if], data = [none] lt.log(sb); // depends on control dependency: [if], data = [none] } } }
public class class_name { private static int unsignedBinarySearch(int[] a, int fromIndex, int toIndex, int key, Comparator<? super Integer> c) { int low = fromIndex; int high = toIndex - 1; while (low <= high) { int mid = (low + high) >>> 1; int midVal = a[mid]; int cmp = c.compare...
public class class_name { private static int unsignedBinarySearch(int[] a, int fromIndex, int toIndex, int key, Comparator<? super Integer> c) { int low = fromIndex; int high = toIndex - 1; while (low <= high) { int mid = (low + high) >>> 1; int midVal = a[mid]; int cmp = c.compare...
public class class_name { public static DigestInputStream wrapStream(InputStream inStream, Algorithm algorithm) { MessageDigest streamDigest = null; try { streamDigest = MessageDigest.getInstance(algorithm.toString()); } catch (NoSuchAl...
public class class_name { public static DigestInputStream wrapStream(InputStream inStream, Algorithm algorithm) { MessageDigest streamDigest = null; try { streamDigest = MessageDigest.getInstance(algorithm.toString()); // depends on control dep...
public class class_name { public static List<File> find(File directory, String pattern) { pattern = wildcardsToRegExp(pattern); List<File> files = findFilesInDirectory(directory, Pattern.compile(pattern), true); List<File> result = new ArrayList<File>(); for (File file : files) { String fileString = fil...
public class class_name { public static List<File> find(File directory, String pattern) { pattern = wildcardsToRegExp(pattern); List<File> files = findFilesInDirectory(directory, Pattern.compile(pattern), true); List<File> result = new ArrayList<File>(); for (File file : files) { String fileString = fil...
public class class_name { protected void broadcastNodeConnected(Tree info, boolean reconnected) { if (info != null) { Tree msg = new Tree(); msg.putObject("node", info); msg.put("reconnected", reconnected); eventbus.broadcast("$node.connected", msg, null, true); } } }
public class class_name { protected void broadcastNodeConnected(Tree info, boolean reconnected) { if (info != null) { Tree msg = new Tree(); msg.putObject("node", info); // depends on control dependency: [if], data = [none] msg.put("reconnected", reconnected); // depends on control dependency: [if], da...
public class class_name { public void marshall(GetBackupPlanFromJSONRequest getBackupPlanFromJSONRequest, ProtocolMarshaller protocolMarshaller) { if (getBackupPlanFromJSONRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { ...
public class class_name { public void marshall(GetBackupPlanFromJSONRequest getBackupPlanFromJSONRequest, ProtocolMarshaller protocolMarshaller) { if (getBackupPlanFromJSONRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { ...
public class class_name { public Priority[] getPriorities() { List<Priority> actualPriorities = new ArrayList<Priority>(); for (String priority : getAvailablePriorities()) { if (provider.getNumberOfAnnotations(priority) > 0) { actualPriorities.add(Priority.fromString(priorit...
public class class_name { public Priority[] getPriorities() { List<Priority> actualPriorities = new ArrayList<Priority>(); for (String priority : getAvailablePriorities()) { if (provider.getNumberOfAnnotations(priority) > 0) { actualPriorities.add(Priority.fromString(priorit...
public class class_name { public Chronology getChronology(Object object, Chronology chrono) { if (chrono == null) { chrono = ((ReadableInstant) object).getChronology(); chrono = DateTimeUtils.getChronology(chrono); } return chrono; } }
public class class_name { public Chronology getChronology(Object object, Chronology chrono) { if (chrono == null) { chrono = ((ReadableInstant) object).getChronology(); // depends on control dependency: [if], data = [none] chrono = DateTimeUtils.getChronology(chrono); // depends on cont...
public class class_name { public void marshall(LogSetup logSetup, ProtocolMarshaller protocolMarshaller) { if (logSetup == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(logSetup.getTypes(), TYPES_B...
public class class_name { public void marshall(LogSetup logSetup, ProtocolMarshaller protocolMarshaller) { if (logSetup == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(logSetup.getTypes(), TYPES_B...
public class class_name { private List<DependencyError> checkAllowedSection(final Dependencies dependencies, final Package<DependsOn> allowedPkg, final ClassInfo classInfo) { final List<DependencyError> errors = new ArrayList<DependencyError>(); final Iterator<String> it = classInfo....
public class class_name { private List<DependencyError> checkAllowedSection(final Dependencies dependencies, final Package<DependsOn> allowedPkg, final ClassInfo classInfo) { final List<DependencyError> errors = new ArrayList<DependencyError>(); final Iterator<String> it = classInfo....
public class class_name { @Override @ConstantTime(amortized = true) public void insert(K key) { if (key == null) { throw new IllegalArgumentException("Null keys not permitted"); } if (compare(key, maxKey) > 0) { throw new IllegalArgumentException("Key is more tha...
public class class_name { @Override @ConstantTime(amortized = true) public void insert(K key) { if (key == null) { throw new IllegalArgumentException("Null keys not permitted"); } if (compare(key, maxKey) > 0) { throw new IllegalArgumentException("Key is more tha...
public class class_name { private void initiateParameterMap2(EntryReact entry) { List<List<String>> paramDic = entry.getParameterClass(); paramsMap2 = new ArrayList<IParameterReact>(); for (Iterator<List<String>> it = paramDic.iterator(); it.hasNext();) { List<String> param = it.ne...
public class class_name { private void initiateParameterMap2(EntryReact entry) { List<List<String>> paramDic = entry.getParameterClass(); paramsMap2 = new ArrayList<IParameterReact>(); for (Iterator<List<String>> it = paramDic.iterator(); it.hasNext();) { List<String> param = it.ne...
public class class_name { public static synchronized void init(Configuration conf) { if (!initDone) { DefaultConfiguration.conf = conf; DefaultConfiguration.initDone = true; } } }
public class class_name { public static synchronized void init(Configuration conf) { if (!initDone) { DefaultConfiguration.conf = conf; // depends on control dependency: [if], data = [none] DefaultConfiguration.initDone = true; // depends on control dependency: [if], data = [none] } } }
public class class_name { public int executeUpdate(String cmd, Transaction tx) { if (tx.isReadOnly()) throw new UnsupportedOperationException(); Parser parser = new Parser(cmd); Object obj = parser.updateCommand(); if (obj.getClass().equals(InsertData.class)) { Verifier.verifyInsertData((InsertData...
public class class_name { public int executeUpdate(String cmd, Transaction tx) { if (tx.isReadOnly()) throw new UnsupportedOperationException(); Parser parser = new Parser(cmd); Object obj = parser.updateCommand(); if (obj.getClass().equals(InsertData.class)) { Verifier.verifyInsertData((InsertData...
public class class_name { public XWPFParagraph insertNewParagraph(XWPFRun run) { // XmlCursor cursor = run.getCTR().newCursor(); XmlCursor cursor = ((XWPFParagraph) run.getParent()).getCTP().newCursor(); if (isCursorInBody(cursor)) { String uri = CTP.type.getName().getNamespaceURI()...
public class class_name { public XWPFParagraph insertNewParagraph(XWPFRun run) { // XmlCursor cursor = run.getCTR().newCursor(); XmlCursor cursor = ((XWPFParagraph) run.getParent()).getCTP().newCursor(); if (isCursorInBody(cursor)) { String uri = CTP.type.getName().getNamespaceURI()...
public class class_name { public void shutdown() { /** * Probably we don't need this method in practice */ if (initLocker.get() && shutdownLocker.compareAndSet(false, true)) { // do shutdown log.info("Shutting down transport..."); // we just sendin...
public class class_name { public void shutdown() { /** * Probably we don't need this method in practice */ if (initLocker.get() && shutdownLocker.compareAndSet(false, true)) { // do shutdown log.info("Shutting down transport..."); // depends on control dependen...
public class class_name { @Nullable public static AnnotationTree getAnnotationWithSimpleName( List<? extends AnnotationTree> annotations, String name) { for (AnnotationTree annotation : annotations) { if (hasSimpleName(annotation, name)) { return annotation; } } return null; }...
public class class_name { @Nullable public static AnnotationTree getAnnotationWithSimpleName( List<? extends AnnotationTree> annotations, String name) { for (AnnotationTree annotation : annotations) { if (hasSimpleName(annotation, name)) { return annotation; // depends on control dependency: ...
public class class_name { public void compileNode(DecisionService ds, DMNCompilerImpl compiler, DMNModelImpl model) { DMNType type = null; if (ds.getVariable() == null) { // even for the v1.1 backport, variable creation is taken care in DMNCompiler. DMNCompilerHelper.reportMissingVariable(m...
public class class_name { public void compileNode(DecisionService ds, DMNCompilerImpl compiler, DMNModelImpl model) { DMNType type = null; if (ds.getVariable() == null) { // even for the v1.1 backport, variable creation is taken care in DMNCompiler. DMNCompilerHelper.reportMissingVariable(m...
public class class_name { @Override public SecuritySetter<HttpURLConnection> basicAuth(String user, String password) throws CadiException { if(password.startsWith("enc:???")) { try { password = access.decrypt(password, true); } catch (IOException e) { throw new CadiException("Error decrypting password...
public class class_name { @Override public SecuritySetter<HttpURLConnection> basicAuth(String user, String password) throws CadiException { if(password.startsWith("enc:???")) { try { password = access.decrypt(password, true); // depends on control dependency: [try], data = [none] } catch (IOException e) {...
public class class_name { public void prependMessage(String message) { if (iMessage == null) { iMessage = message; } else if (message != null) { iMessage = message + ": " + iMessage; } } }
public class class_name { public void prependMessage(String message) { if (iMessage == null) { iMessage = message; // depends on control dependency: [if], data = [none] } else if (message != null) { iMessage = message + ": " + iMessage; // depends on control dependency: [if], da...
public class class_name { public static void addEvidence(ProbabilisticNetwork bn, String nodeName, String status) throws ShanksException { ProbabilisticNode node = ShanksAgentBayesianReasoningCapability .getNode(bn, nodeName); if (node.hasEvidence()) { ShanksAgen...
public class class_name { public static void addEvidence(ProbabilisticNetwork bn, String nodeName, String status) throws ShanksException { ProbabilisticNode node = ShanksAgentBayesianReasoningCapability .getNode(bn, nodeName); if (node.hasEvidence()) { ShanksAgen...
public class class_name { private void selectQueryNode(javax.swing.event.TreeSelectionEvent evt) {//GEN-FIRST:event_selectQueryNode String currentQuery = ""; DefaultMutableTreeNode node = (DefaultMutableTreeNode) evt.getPath().getLastPathComponent(); if (node instanceof QueryTreeElement) { ...
public class class_name { private void selectQueryNode(javax.swing.event.TreeSelectionEvent evt) {//GEN-FIRST:event_selectQueryNode String currentQuery = ""; DefaultMutableTreeNode node = (DefaultMutableTreeNode) evt.getPath().getLastPathComponent(); if (node instanceof QueryTreeElement) { ...
public class class_name { protected final O execute(@Nullable EventLoop eventLoop, HttpMethod method, String path, @Nullable String query, @Nullable String fragment, I req, BiFunction<ClientRequestContext, Throwable, O> fallback) { final ClientReques...
public class class_name { protected final O execute(@Nullable EventLoop eventLoop, HttpMethod method, String path, @Nullable String query, @Nullable String fragment, I req, BiFunction<ClientRequestContext, Throwable, O> fallback) { final ClientReques...
public class class_name { public Object expand(Context activeCtx, String activeProperty, Object element) throws JsonLdError { final boolean frameExpansion = this.opts.getFrameExpansion(); // 1) if (element == null) { return null; } // 3) if (elem...
public class class_name { public Object expand(Context activeCtx, String activeProperty, Object element) throws JsonLdError { final boolean frameExpansion = this.opts.getFrameExpansion(); // 1) if (element == null) { return null; } // 3) if (elem...
public class class_name { private <T extends Index> List<T> listIndexType(String type, Class<T> modelType) { List<T> indexesOfType = new ArrayList<T>(); Gson g = new Gson(); for (JsonElement index : indexes) { if (index.isJsonObject()) { JsonObject indexDefinition = ...
public class class_name { private <T extends Index> List<T> listIndexType(String type, Class<T> modelType) { List<T> indexesOfType = new ArrayList<T>(); Gson g = new Gson(); for (JsonElement index : indexes) { if (index.isJsonObject()) { JsonObject indexDefinition = ...
public class class_name { public OnPremisesTagSet withOnPremisesTagSetList(java.util.List<TagFilter>... onPremisesTagSetList) { if (this.onPremisesTagSetList == null) { setOnPremisesTagSetList(new com.amazonaws.internal.SdkInternalList<java.util.List<TagFilter>>(onPremisesTagSetList.length)); ...
public class class_name { public OnPremisesTagSet withOnPremisesTagSetList(java.util.List<TagFilter>... onPremisesTagSetList) { if (this.onPremisesTagSetList == null) { setOnPremisesTagSetList(new com.amazonaws.internal.SdkInternalList<java.util.List<TagFilter>>(onPremisesTagSetList.length)); // de...
public class class_name { protected void formatCommaSeparatedList(Collection<? extends EObject> elements, IFormattableDocument document) { for (final EObject element : elements) { document.format(element); final ISemanticRegionFinder immediatelyFollowing = this.textRegionExtensions.immediatelyFollowing(element...
public class class_name { protected void formatCommaSeparatedList(Collection<? extends EObject> elements, IFormattableDocument document) { for (final EObject element : elements) { document.format(element); // depends on control dependency: [for], data = [element] final ISemanticRegionFinder immediatelyFollowin...
public class class_name { public BoxRequestsFile.UploadNewVersion getUploadNewVersionRequest(File file, String destinationFileId) { try { BoxRequestsFile.UploadNewVersion request = getUploadNewVersionRequest(new FileInputStream(file), destinationFileId); request.setUploadSize(file.lengt...
public class class_name { public BoxRequestsFile.UploadNewVersion getUploadNewVersionRequest(File file, String destinationFileId) { try { BoxRequestsFile.UploadNewVersion request = getUploadNewVersionRequest(new FileInputStream(file), destinationFileId); request.setUploadSize(file.lengt...
public class class_name { protected void doExecuteCommand() { if(!ValkyrieRepository.getInstance().getApplicationConfig().applicationSecurityManager().isSecuritySupported()) { return ; } CompositeDialogPage tabbedPage = new TabbedDialogPage( "loginForm" ); final LoginForm l...
public class class_name { protected void doExecuteCommand() { if(!ValkyrieRepository.getInstance().getApplicationConfig().applicationSecurityManager().isSecuritySupported()) { return ; // depends on control dependency: [if], data = [none] } CompositeDialogPage tabbedPage = new Tabbe...
public class class_name { @Override public void sortByLabel() { Map<Integer, Queue<DataSet>> map = new HashMap<>(); List<DataSet> data = asList(); int numLabels = numOutcomes(); int examples = numExamples(); for (DataSet d : data) { int label = d.outcome(); ...
public class class_name { @Override public void sortByLabel() { Map<Integer, Queue<DataSet>> map = new HashMap<>(); List<DataSet> data = asList(); int numLabels = numOutcomes(); int examples = numExamples(); for (DataSet d : data) { int label = d.outcome(); ...
public class class_name { protected final void awaitShutdown() throws InterruptedException { Runtime.getRuntime().addShutdownHook(new Thread(() -> { try { shutdown(); finishLatch.await(); Thread.sleep(10); // wait a bit for things outside `launch` call, such as JUnit finishing or whatever } catch (...
public class class_name { protected final void awaitShutdown() throws InterruptedException { Runtime.getRuntime().addShutdownHook(new Thread(() -> { try { shutdown(); // depends on control dependency: [try], data = [none] finishLatch.await(); // depends on control dependency: [try], data = [none] Thre...
public class class_name { protected ScriptContext getScriptContext(Bindings nn) { SimpleScriptContext ctxt = new SimpleScriptContext(); Bindings gs = getBindings(ScriptContext.GLOBAL_SCOPE); if (gs != null) { ctxt.setBindings(gs, ScriptContext.GLOBAL_SCOPE); } if (nn != null) { ctxt.setBindings(nn, S...
public class class_name { protected ScriptContext getScriptContext(Bindings nn) { SimpleScriptContext ctxt = new SimpleScriptContext(); Bindings gs = getBindings(ScriptContext.GLOBAL_SCOPE); if (gs != null) { ctxt.setBindings(gs, ScriptContext.GLOBAL_SCOPE); // depends on control dependency: [if], data = [(g...
public class class_name { public void filterTable(String search) { m_container.removeAllContainerFilters(); if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(search)) { if (CmsStringUtil.isEmptyOrWhitespaceOnly(m_dialog.getFurtherColumnId())) { m_container.addContainerFilter(new...
public class class_name { public void filterTable(String search) { m_container.removeAllContainerFilters(); if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(search)) { if (CmsStringUtil.isEmptyOrWhitespaceOnly(m_dialog.getFurtherColumnId())) { m_container.addContainerFilter(new...
public class class_name { protected Expanded doExpand(Record record, long fullConsistencyTimestamp, long compactionConsistencyTimeStamp, long compactionControlTimestamp, MutableIntrinsics intrinsics, boolean ignoreRecent) throws RestartException { List<DeltaClusteringKey> keysToDelete = Lists.newAr...
public class class_name { protected Expanded doExpand(Record record, long fullConsistencyTimestamp, long compactionConsistencyTimeStamp, long compactionControlTimestamp, MutableIntrinsics intrinsics, boolean ignoreRecent) throws RestartException { List<DeltaClusteringKey> keysToDelete = Lists.newAr...
public class class_name { public static int getResources_getInteger(Context context, int id) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB_MR2) { return context.getResources().getInteger(id); } DisplayMetrics metrics = context.getResources().getDisplayMetrics(); ...
public class class_name { public static int getResources_getInteger(Context context, int id) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB_MR2) { return context.getResources().getInteger(id); // depends on control dependency: [if], data = [none] } DisplayMetrics metr...
public class class_name { public void setScheduledInstanceAvailabilitySet(java.util.Collection<ScheduledInstanceAvailability> scheduledInstanceAvailabilitySet) { if (scheduledInstanceAvailabilitySet == null) { this.scheduledInstanceAvailabilitySet = null; return; } this...
public class class_name { public void setScheduledInstanceAvailabilitySet(java.util.Collection<ScheduledInstanceAvailability> scheduledInstanceAvailabilitySet) { if (scheduledInstanceAvailabilitySet == null) { this.scheduledInstanceAvailabilitySet = null; // depends on control dependency: [if], dat...
public class class_name { public void addRequest(RecordRequest request) { if (request.getRequestSize() + getRequestSize() > 248) { throw new IllegalArgumentException(); } if (records == null) { records = new RecordRequest[1]; } else { RecordR...
public class class_name { public void addRequest(RecordRequest request) { if (request.getRequestSize() + getRequestSize() > 248) { throw new IllegalArgumentException(); } if (records == null) { records = new RecordRequest[1]; // depends on control dependency: [if], data...
public class class_name { private void addDiscriminatorNode(DiscriminatorNode dn) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.entry(tc, "addDiscriminatorNode, weight=" + dn.weight); } if (discriminators == null) { // add it as the first node ...
public class class_name { private void addDiscriminatorNode(DiscriminatorNode dn) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.entry(tc, "addDiscriminatorNode, weight=" + dn.weight); // depends on control dependency: [if], data = [none] } if (discriminator...
public class class_name { public static Duration ofMillis(long millis) { long secs = millis / 1000; int mos = (int) (millis % 1000); if (mos < 0) { mos += 1000; secs--; } return create(secs, mos * NANOS_PER_MILLI); } }
public class class_name { public static Duration ofMillis(long millis) { long secs = millis / 1000; int mos = (int) (millis % 1000); if (mos < 0) { mos += 1000; // depends on control dependency: [if], data = [none] secs--; // depends on control dependency: [if], data = [...
public class class_name { public boolean isEditorAvailableForResource(CmsResource res) { I_CmsResourceType type = OpenCms.getResourceManager().getResourceType(res); String typeName = type.getTypeName(); for (CmsWorkplaceEditorConfiguration editorConfig : m_editorConfigurations) { i...
public class class_name { public boolean isEditorAvailableForResource(CmsResource res) { I_CmsResourceType type = OpenCms.getResourceManager().getResourceType(res); String typeName = type.getTypeName(); for (CmsWorkplaceEditorConfiguration editorConfig : m_editorConfigurations) { i...
public class class_name { public void setParamTabExFileEntries(String value) { try { m_userSettings.setExplorerFileEntries(Integer.parseInt(value)); } catch (Throwable t) { // should usually never happen } } }
public class class_name { public void setParamTabExFileEntries(String value) { try { m_userSettings.setExplorerFileEntries(Integer.parseInt(value)); // depends on control dependency: [try], data = [none] } catch (Throwable t) { // should usually never happen } // depend...
public class class_name { protected final void runOnUiThread(@NonNull Runnable runnable) { checkNotNull(runnable, "runnable"); if (Looper.myLooper() == Looper.getMainLooper()) { runnable.run(); } else { mPoster.post(runnable); } } }
public class class_name { protected final void runOnUiThread(@NonNull Runnable runnable) { checkNotNull(runnable, "runnable"); if (Looper.myLooper() == Looper.getMainLooper()) { runnable.run(); // depends on control dependency: [if], data = [none] } else { mPoster.post(r...
public class class_name { public CreateFleetResult withInstances(CreateFleetInstance... instances) { if (this.instances == null) { setInstances(new com.amazonaws.internal.SdkInternalList<CreateFleetInstance>(instances.length)); } for (CreateFleetInstance ele : instances) { ...
public class class_name { public CreateFleetResult withInstances(CreateFleetInstance... instances) { if (this.instances == null) { setInstances(new com.amazonaws.internal.SdkInternalList<CreateFleetInstance>(instances.length)); // depends on control dependency: [if], data = [none] } ...
public class class_name { public void addChildProperties(final NodeData parentData, final List<PropertyData> childItems) { if (enabled && parentData != null && childItems != null) { String logInfo = null; if (LOG.isDebugEnabled()) { logInfo = "parent...
public class class_name { public void addChildProperties(final NodeData parentData, final List<PropertyData> childItems) { if (enabled && parentData != null && childItems != null) { String logInfo = null; if (LOG.isDebugEnabled()) { logInfo = "parent...
public class class_name { @Nonnull public DataBuilder appendDevicePattern(@Nonnull final DevicePattern pattern) { Check.notNull(pattern, "pattern"); if (!devicePatterns.containsKey(pattern.getId())) { devicePatterns.put(pattern.getId(), new TreeSet<DevicePattern>(DEVICE_PATTERN_COMPARATOR)); } devicePatte...
public class class_name { @Nonnull public DataBuilder appendDevicePattern(@Nonnull final DevicePattern pattern) { Check.notNull(pattern, "pattern"); if (!devicePatterns.containsKey(pattern.getId())) { devicePatterns.put(pattern.getId(), new TreeSet<DevicePattern>(DEVICE_PATTERN_COMPARATOR)); // depends on cont...
public class class_name { public int getValue(int ch) { // valid, uncompacted trie and valid c? if (m_isCompacted_ || ch > UCharacter.MAX_VALUE || ch < 0) { return 0; } int block = m_index_[ch >> SHIFT_]; return m_data_[Math.abs(block) + (ch & MASK_)]; ...
public class class_name { public int getValue(int ch) { // valid, uncompacted trie and valid c? if (m_isCompacted_ || ch > UCharacter.MAX_VALUE || ch < 0) { return 0; // depends on control dependency: [if], data = [none] } int block = m_index_[ch >> SHIFT_]; ...
public class class_name { public void registerHanders(String packageString) { List<String> list = AnnotationDetector.scanAsList(ExceptionHandler.class, packageString); for (String handler : list) { // System.out.println(handler); JKExceptionHandler<? extends Throwable> newInstance = JKObjectUtil.newInst...
public class class_name { public void registerHanders(String packageString) { List<String> list = AnnotationDetector.scanAsList(ExceptionHandler.class, packageString); for (String handler : list) { // System.out.println(handler); JKExceptionHandler<? extends Throwable> newInstance = JKObjectUtil.newInst...
public class class_name { public String buildSelectStartGalleries(String htmlAttributes) { StringBuffer result = new StringBuffer(1024); HttpServletRequest request = getJsp().getRequest(); // set the attributes for the select tag if (htmlAttributes != null) { htmlAttributes...
public class class_name { public String buildSelectStartGalleries(String htmlAttributes) { StringBuffer result = new StringBuffer(1024); HttpServletRequest request = getJsp().getRequest(); // set the attributes for the select tag if (htmlAttributes != null) { htmlAttributes...
public class class_name { public String path() { /* build the fully qualified url with all query parameters */ StringBuilder path = new StringBuilder(); if (this.target != null) { path.append(this.target); } if (this.uriTemplate != null) { path.append(this.uriTemplate.toString()); }...
public class class_name { public String path() { /* build the fully qualified url with all query parameters */ StringBuilder path = new StringBuilder(); if (this.target != null) { path.append(this.target); // depends on control dependency: [if], data = [(this.target] } if (this.uriTemplate !=...
public class class_name { public static IWebSocketConnection getConnection4Session(final String _sessionId) { IWebSocketConnection ret = null; if (RegistryManager.getCache().containsKey(_sessionId)) { final UserSession userSession = RegistryManager.getCache().get(_sessionId); ...
public class class_name { public static IWebSocketConnection getConnection4Session(final String _sessionId) { IWebSocketConnection ret = null; if (RegistryManager.getCache().containsKey(_sessionId)) { final UserSession userSession = RegistryManager.getCache().get(_sessionId); ...
public class class_name { @SuppressWarnings("unchecked") public static Stream<Statement> encode(final Stream<? extends Record> stream, @Nullable final Iterable<? extends URI> types) { Preconditions.checkNotNull(stream); if (types != null) { stream.setProperty("types", types)...
public class class_name { @SuppressWarnings("unchecked") public static Stream<Statement> encode(final Stream<? extends Record> stream, @Nullable final Iterable<? extends URI> types) { Preconditions.checkNotNull(stream); if (types != null) { stream.setProperty("types", types)...
public class class_name { private void updateStateAndNotify() { Boolean oldGroupValid = groupValid; groupValid = true; for (Boolean valid : fields.values()) { groupValid &= valid; } if (groupValid != oldGroupValid) { eventBus.fireEvent(new ValidationChang...
public class class_name { private void updateStateAndNotify() { Boolean oldGroupValid = groupValid; groupValid = true; for (Boolean valid : fields.values()) { groupValid &= valid; // depends on control dependency: [for], data = [valid] } if (groupValid != oldGroupVal...
public class class_name { public ColorImg copyArea(int x, int y, int w, int h, ColorImg dest, int destX, int destY){ ImagingKitUtils.requireAreaInImageBounds(x, y, w, h, this); if(dest == null){ return copyArea(x, y, w, h, new ColorImg(w,h,this.hasAlpha()), 0, 0); } if(x==0 && destX==0 && w==dest.getWidth()...
public class class_name { public ColorImg copyArea(int x, int y, int w, int h, ColorImg dest, int destX, int destY){ ImagingKitUtils.requireAreaInImageBounds(x, y, w, h, this); if(dest == null){ return copyArea(x, y, w, h, new ColorImg(w,h,this.hasAlpha()), 0, 0); // depends on control dependency: [if], data = ...
public class class_name { public List<Card> parseData(@Nullable T data) { List<Card> cardList = mDataParser.parseGroup(data, this); MVHelper mvHelper = (MVHelper) mServices.get(MVHelper.class); if (mvHelper != null) { mvHelper.renderManager().onDownloadTemplate(); } ...
public class class_name { public List<Card> parseData(@Nullable T data) { List<Card> cardList = mDataParser.parseGroup(data, this); MVHelper mvHelper = (MVHelper) mServices.get(MVHelper.class); if (mvHelper != null) { mvHelper.renderManager().onDownloadTemplate(); // depends on cont...
public class class_name { public NamedEntityGraph<Entity<T>> getOrCreateNamedEntityGraph() { List<Node> nodeList = childNode.get("named-entity-graph"); if (nodeList != null && nodeList.size() > 0) { return new NamedEntityGraphImpl<Entity<T>>(this, "named-entity-graph", childNode, nodeLis...
public class class_name { public NamedEntityGraph<Entity<T>> getOrCreateNamedEntityGraph() { List<Node> nodeList = childNode.get("named-entity-graph"); if (nodeList != null && nodeList.size() > 0) { return new NamedEntityGraphImpl<Entity<T>>(this, "named-entity-graph", childNode, nodeLis...
public class class_name { protected void addLineageSourceInfo(WorkUnit workUnit, State state) { if (!lineageInfo.isPresent()) { log.info("Lineage is not enabled"); return; } String platform = state.getProp(ConfigurationKeys.SOURCE_FILEBASED_PLATFORM, DatasetConstants.PLATFORM_HDFS); Path d...
public class class_name { protected void addLineageSourceInfo(WorkUnit workUnit, State state) { if (!lineageInfo.isPresent()) { log.info("Lineage is not enabled"); // depends on control dependency: [if], data = [none] return; // depends on control dependency: [if], data = [none] } String platf...
public class class_name { public DescribeHsmConfigurationsRequest withTagValues(String... tagValues) { if (this.tagValues == null) { setTagValues(new com.amazonaws.internal.SdkInternalList<String>(tagValues.length)); } for (String ele : tagValues) { this.tagValues.add(el...
public class class_name { public DescribeHsmConfigurationsRequest withTagValues(String... tagValues) { if (this.tagValues == null) { setTagValues(new com.amazonaws.internal.SdkInternalList<String>(tagValues.length)); // depends on control dependency: [if], data = [none] } for (Strin...
public class class_name { static void bindTabWithData(BottomNavigationItem bottomNavigationItem, BottomNavigationTab bottomNavigationTab, BottomNavigationBar bottomNavigationBar) { Context context = bottomNavigationBar.getContext(); bottomNavigationTab.setLabel(bottomNavigationItem.getTitle(context))...
public class class_name { static void bindTabWithData(BottomNavigationItem bottomNavigationItem, BottomNavigationTab bottomNavigationTab, BottomNavigationBar bottomNavigationBar) { Context context = bottomNavigationBar.getContext(); bottomNavigationTab.setLabel(bottomNavigationItem.getTitle(context))...
public class class_name { public static void validate(HppRequest hppRequest) { Set<ConstraintViolation<HppRequest>> constraintViolations = validator.validate(hppRequest); if (constraintViolations.size() > 0) { List<String> validationMessages = new ArrayList<String>(); Iterator<ConstraintViolation<HppRequest...
public class class_name { public static void validate(HppRequest hppRequest) { Set<ConstraintViolation<HppRequest>> constraintViolations = validator.validate(hppRequest); if (constraintViolations.size() > 0) { List<String> validationMessages = new ArrayList<String>(); Iterator<ConstraintViolation<HppRequest...
public class class_name { public static void replaceNonWordChars(StringValue string, char replacement) { final char[] chars = string.getCharArray(); final int len = string.length(); for (int i = 0; i < len; i++) { final char c = chars[i]; if (!(Character.isLetter(c) || Character.isDigit(c) || c == '_')) {...
public class class_name { public static void replaceNonWordChars(StringValue string, char replacement) { final char[] chars = string.getCharArray(); final int len = string.length(); for (int i = 0; i < len; i++) { final char c = chars[i]; if (!(Character.isLetter(c) || Character.isDigit(c) || c == '_')) {...
public class class_name { public static void closeQuietly(XMLStreamWriter writer) { if (writer != null) { try { writer.close(); } catch (XMLStreamException e) { logger.warn("Error while closing", e); } } } }
public class class_name { public static void closeQuietly(XMLStreamWriter writer) { if (writer != null) { try { writer.close(); // depends on control dependency: [try], data = [none] } catch (XMLStreamException e) { logger.warn("Error while closing", e); ...
public class class_name { private static byte[] getBytes(String string, Charset charset) { if (string == null) { return null; } return string.getBytes(charset); } }
public class class_name { private static byte[] getBytes(String string, Charset charset) { if (string == null) { return null; // depends on control dependency: [if], data = [none] } return string.getBytes(charset); } }
public class class_name { @Override public void generateWriteParam2ContentValues(Builder methodBuilder, SQLiteModelMethod method, String paramName, TypeName paramTypeName, ModelProperty property) { if (property != null && property.hasTypeAdapter()) { methodBuilder.addCode(WRITE_COSTANT + PRE_TYPE_ADAPTER_TO_DATA...
public class class_name { @Override public void generateWriteParam2ContentValues(Builder methodBuilder, SQLiteModelMethod method, String paramName, TypeName paramTypeName, ModelProperty property) { if (property != null && property.hasTypeAdapter()) { methodBuilder.addCode(WRITE_COSTANT + PRE_TYPE_ADAPTER_TO_DATA...
public class class_name { private IAsyncResultHandler<IEngineResult> wrapResultHandler(final IAsyncResultHandler<IEngineResult> handler) { return (IAsyncResult<IEngineResult> result) -> { boolean doRecord = true; if (result.isError()) { recordErrorMetrics(result.getError...
public class class_name { private IAsyncResultHandler<IEngineResult> wrapResultHandler(final IAsyncResultHandler<IEngineResult> handler) { return (IAsyncResult<IEngineResult> result) -> { boolean doRecord = true; if (result.isError()) { recordErrorMetrics(result.getError...
public class class_name { @Override public List<MonitorLine> getLinesFrom(Object actual) throws Exception { //TODO Enhance line retrieve to get last lines directly String line; Integer currentLineNo = 0; final List<MonitorLine> result = new ArrayList<MonitorLine>(); Buffered...
public class class_name { @Override public List<MonitorLine> getLinesFrom(Object actual) throws Exception { //TODO Enhance line retrieve to get last lines directly String line; Integer currentLineNo = 0; final List<MonitorLine> result = new ArrayList<MonitorLine>(); Buffered...
public class class_name { public static float getDimension(@NonNull final Context context, @StyleRes final int themeResourceId, @AttrRes final int resourceId) { TypedArray typedArray = null; try { typedArray = obtain...
public class class_name { public static float getDimension(@NonNull final Context context, @StyleRes final int themeResourceId, @AttrRes final int resourceId) { TypedArray typedArray = null; try { typedArray = obtain...
public class class_name { public void printTo(StringBuffer buf, ReadablePartial partial) { try { printTo((Appendable) buf, partial); } catch (IOException ex) { // StringBuffer does not throw IOException } } }
public class class_name { public void printTo(StringBuffer buf, ReadablePartial partial) { try { printTo((Appendable) buf, partial); // depends on control dependency: [try], data = [none] } catch (IOException ex) { // StringBuffer does not throw IOException } // depends ...