code
stringlengths
130
281k
code_dependency
stringlengths
182
306k
public class class_name { public static byte[] hash(byte[] data, int offset, int len) { try { MessageDigest a = MessageDigest.getInstance("SHA-256"); a.update(data, offset, len); return a.digest(); } catch (NoSuchAlgorithmException e) { throw new RuntimeE...
public class class_name { public static byte[] hash(byte[] data, int offset, int len) { try { MessageDigest a = MessageDigest.getInstance("SHA-256"); a.update(data, offset, len); // depends on control dependency: [try], data = [none] return a.digest(); // depends on control ...
public class class_name { private static void applyShapeStyle(Element element, ShapeStyle style) { // First check the presence of the fill and stroke elements: NodeList<Element> fills = element.getElementsByTagName("fill"); if (fills.getLength() == 0) { Element stroke = Dom.createElementNS(Dom.NS_VML, "stroke...
public class class_name { private static void applyShapeStyle(Element element, ShapeStyle style) { // First check the presence of the fill and stroke elements: NodeList<Element> fills = element.getElementsByTagName("fill"); if (fills.getLength() == 0) { Element stroke = Dom.createElementNS(Dom.NS_VML, "stroke...
public class class_name { private Iterator<Column<ByteBuffer>> readManifestForChannel(final String channel, final boolean weak) { final ByteBuffer oldestSlab = weak ? _oldestSlab.getIfPresent(channel) : null; final ConsistencyLevel consistency; RangeBuilder range = new RangeBuilder().setLimit(...
public class class_name { private Iterator<Column<ByteBuffer>> readManifestForChannel(final String channel, final boolean weak) { final ByteBuffer oldestSlab = weak ? _oldestSlab.getIfPresent(channel) : null; final ConsistencyLevel consistency; RangeBuilder range = new RangeBuilder().setLimit(...
public class class_name { public final int prev(int node) { final int left = left(node); if (left != NIL) { return last(left); } else { int parent = parent(node); while (parent != NIL && node == left(parent)) { node = parent; p...
public class class_name { public final int prev(int node) { final int left = left(node); if (left != NIL) { return last(left); // depends on control dependency: [if], data = [(left] } else { int parent = parent(node); while (parent != NIL && node == left(pare...
public class class_name { @Override public EClass getIfcTimePeriod() { if (ifcTimePeriodEClass == null) { ifcTimePeriodEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI).getEClassifiers() .get(722); } return ifcTimePeriodEClass; } }
public class class_name { @Override public EClass getIfcTimePeriod() { if (ifcTimePeriodEClass == null) { ifcTimePeriodEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI).getEClassifiers() .get(722); // depends on control dependency: [if], data = [none] } return ifcTimePe...
public class class_name { public void marshall(Category category, ProtocolMarshaller protocolMarshaller) { if (category == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(category.getCategoryId(), CA...
public class class_name { public void marshall(Category category, ProtocolMarshaller protocolMarshaller) { if (category == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(category.getCategoryId(), CA...
public class class_name { protected void loadBasicStyle() { ctx.updateForGraphics(style, g); display = style.getProperty("display"); if (display == null) display = CSSProperty.Display.INLINE; CSSProperty.Float floating = style.getProperty("float"); if (floa...
public class class_name { protected void loadBasicStyle() { ctx.updateForGraphics(style, g); display = style.getProperty("display"); if (display == null) display = CSSProperty.Display.INLINE; CSSProperty.Float floating = style.getProperty("float"); if (floa...
public class class_name { public int alloc(int size) { int index = n; int len = array.length; if (n + size >= len) { byte[] aux = new byte[len + blockSize]; System.arraycopy(array, 0, aux, 0, len); array = aux; } n += size; return inde...
public class class_name { public int alloc(int size) { int index = n; int len = array.length; if (n + size >= len) { byte[] aux = new byte[len + blockSize]; System.arraycopy(array, 0, aux, 0, len); // depends on control dependency: [if], data = [none] array =...
public class class_name { public static List<Table> getMaterializeViews(org.voltdb.catalog.Database database, org.voltdb.catalog.Table table) { ArrayList<Table> tlist = new ArrayList<>(); CatalogMap<Table> tables = database.getTables(); ...
public class class_name { public static List<Table> getMaterializeViews(org.voltdb.catalog.Database database, org.voltdb.catalog.Table table) { ArrayList<Table> tlist = new ArrayList<>(); CatalogMap<Table> tables = database.getTables(); ...
public class class_name { public static UserTrades adaptTradeHistory(LakeBTCTradeResponse[] transactions) { List<UserTrade> trades = new ArrayList<>(); long lastTradeId = 0; for (LakeBTCTradeResponse trade : transactions) { final OrderType orderType = trade.getType().startsWith("buy") ? OrderType.BI...
public class class_name { public static UserTrades adaptTradeHistory(LakeBTCTradeResponse[] transactions) { List<UserTrade> trades = new ArrayList<>(); long lastTradeId = 0; for (LakeBTCTradeResponse trade : transactions) { final OrderType orderType = trade.getType().startsWith("buy") ? OrderType.BI...
public class class_name { static <T> T doWithMainClasses(File rootFolder, MainClassCallback<T> callback) throws IOException { if (!rootFolder.exists()) { return null; // nothing to do } if (!rootFolder.isDirectory()) { throw new IllegalArgumentException( "Invalid root folder '" + rootFolder + "'");...
public class class_name { static <T> T doWithMainClasses(File rootFolder, MainClassCallback<T> callback) throws IOException { if (!rootFolder.exists()) { return null; // nothing to do } if (!rootFolder.isDirectory()) { throw new IllegalArgumentException( "Invalid root folder '" + rootFolder + "'");...
public class class_name { @Override public Future<M> requestData() { logger.debug(this + " requestData..."); try { validateInitialization(); synchronized (syncMonitor) { // Check if sync is in process. if (syncFuture != null && !syncFuture.is...
public class class_name { @Override public Future<M> requestData() { logger.debug(this + " requestData..."); try { validateInitialization(); // depends on control dependency: [try], data = [none] synchronized (syncMonitor) { // depends on control dependency: [try], data = [n...
public class class_name { public static void setNewIdentifier(ModelElementType type, ModelElementInstance modelElementInstance, String newId, boolean withReferenceUpdate) { Attribute<?> id = type.getAttribute(ID_ATTRIBUTE_NAME); if (id != null && id instanceof StringAttribute...
public class class_name { public static void setNewIdentifier(ModelElementType type, ModelElementInstance modelElementInstance, String newId, boolean withReferenceUpdate) { Attribute<?> id = type.getAttribute(ID_ATTRIBUTE_NAME); if (id != null && id instanceof StringAttribute...
public class class_name { public InputSplit[] sample(PathFilter pathFilter, double... weights) { URI[] paths = pathFilter != null ? pathFilter.filter(locations()) : locations(); if (weights != null && weights.length > 0 && weights[0] != 1.0) { InputSplit[] splits = new InputSplit[weights.l...
public class class_name { public InputSplit[] sample(PathFilter pathFilter, double... weights) { URI[] paths = pathFilter != null ? pathFilter.filter(locations()) : locations(); if (weights != null && weights.length > 0 && weights[0] != 1.0) { InputSplit[] splits = new InputSplit[weights.l...
public class class_name { public static long[] truncateI(long[] v, int len) { final int zap = (v.length * Long.SIZE) - len; final int zapWords = (zap >>> LONG_LOG2_SIZE); final int zapbits = zap & LONG_LOG2_MASK; Arrays.fill(v, v.length - zapWords, v.length, 0); if(zapbits > 0) { v[v.length -...
public class class_name { public static long[] truncateI(long[] v, int len) { final int zap = (v.length * Long.SIZE) - len; final int zapWords = (zap >>> LONG_LOG2_SIZE); final int zapbits = zap & LONG_LOG2_MASK; Arrays.fill(v, v.length - zapWords, v.length, 0); if(zapbits > 0) { v[v.length -...
public class class_name { @Override public TemporalDataModelIF<U, I>[] split(final TemporalDataModelIF<U, I> data) { @SuppressWarnings("unchecked") final TemporalDataModelIF<U, I>[] splits = new TemporalDataModelIF[2]; splits[0] = new TemporalDataModel<>(); // training splits[1] = n...
public class class_name { @Override public TemporalDataModelIF<U, I>[] split(final TemporalDataModelIF<U, I> data) { @SuppressWarnings("unchecked") final TemporalDataModelIF<U, I>[] splits = new TemporalDataModelIF[2]; splits[0] = new TemporalDataModel<>(); // training splits[1] = n...
public class class_name { public static char[] encode(byte[] src, char[] table, char pad) { int len = src.length; if (len == 0) return new char[0]; int blocks = (len / 3) * 3; int chars = ((len - 1) / 3 + 1) << 2; int tail = len - blocks; if (pad == 0 && tail > 0) c...
public class class_name { public static char[] encode(byte[] src, char[] table, char pad) { int len = src.length; if (len == 0) return new char[0]; int blocks = (len / 3) * 3; int chars = ((len - 1) / 3 + 1) << 2; int tail = len - blocks; if (pad == 0 && tail > 0) c...
public class class_name { @Override public EEnum getIfcConnectionTypeEnum() { if (ifcConnectionTypeEnumEEnum == null) { ifcConnectionTypeEnumEEnum = (EEnum) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI) .getEClassifiers().get(941); } return ifcConnectionTypeEnumEEnum; } }
public class class_name { @Override public EEnum getIfcConnectionTypeEnum() { if (ifcConnectionTypeEnumEEnum == null) { ifcConnectionTypeEnumEEnum = (EEnum) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI) .getEClassifiers().get(941); // depends on control dependency: [if], data = [none] }...
public class class_name { protected void notifyITransferContextPreProcessWorkState() { if (com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled()&&logger.isLoggable (Level.FINEST)) { logger.entering(CLASS_NAME,"notifyITransferContextPostStoreState", this); } Iterator<ITransferContextServic...
public class class_name { protected void notifyITransferContextPreProcessWorkState() { if (com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled()&&logger.isLoggable (Level.FINEST)) { logger.entering(CLASS_NAME,"notifyITransferContextPostStoreState", this); // depends on control dependency: [if], data =...
public class class_name { @Override public Tag[] inlineTags() { if (inlineTags == null) { inlineTags = Comment.getInlineTags(holder, exceptionComment()); } return inlineTags; } }
public class class_name { @Override public Tag[] inlineTags() { if (inlineTags == null) { inlineTags = Comment.getInlineTags(holder, exceptionComment()); // depends on control dependency: [if], data = [none] } return inlineTags; } }
public class class_name { public void queueNotification (ObserverList.ObserverOp<Object> amop) { if (_observers != null) { if (_mgr != null) { _mgr.queueNotification(_observers, amop); } else { log.warning("Have no manager, dropping notification", "me...
public class class_name { public void queueNotification (ObserverList.ObserverOp<Object> amop) { if (_observers != null) { if (_mgr != null) { _mgr.queueNotification(_observers, amop); // depends on control dependency: [if], data = [none] } else { log...
public class class_name { static private String resolve(String base, String rel) { // Short-circuit check for unspecified base or relative URI. if (base == null || base.isEmpty()) return rel; if (rel == null || rel.isEmpty()) return base; // Attempt to parse both strings as URIs. URI b = null;...
public class class_name { static private String resolve(String base, String rel) { // Short-circuit check for unspecified base or relative URI. if (base == null || base.isEmpty()) return rel; if (rel == null || rel.isEmpty()) return base; // Attempt to parse both strings as URIs. URI b = null;...
public class class_name { @Override public ProposalPersonContract getPrincipalInvestigator(ProposalDevelopmentDocumentContract pdDoc) { ProposalPersonContract proposalPerson = null; if (pdDoc != null) { for (ProposalPersonContract person : pdDoc.getDevelopmentProposal().getProposalPerso...
public class class_name { @Override public ProposalPersonContract getPrincipalInvestigator(ProposalDevelopmentDocumentContract pdDoc) { ProposalPersonContract proposalPerson = null; if (pdDoc != null) { for (ProposalPersonContract person : pdDoc.getDevelopmentProposal().getProposalPerso...
public class class_name { public void parse(UNode fieldNode) { assert fieldNode != null; // Set field name. setName(fieldNode.getName()); // Parse the nodes child nodes. If we find a "fields" definition, just save it // for later. for (String ch...
public class class_name { public void parse(UNode fieldNode) { assert fieldNode != null; // Set field name. setName(fieldNode.getName()); // Parse the nodes child nodes. If we find a "fields" definition, just save it // for later. for (String ch...
public class class_name { @Deprecated @GwtIncompatible("To be supported") @Override MapMaker expireAfterAccess(long duration, TimeUnit unit) { checkExpiration(duration, unit); this.expireAfterAccessNanos = unit.toNanos(duration); if (duration == 0 && this.nullRemovalCause == null) { // SIZE tru...
public class class_name { @Deprecated @GwtIncompatible("To be supported") @Override MapMaker expireAfterAccess(long duration, TimeUnit unit) { checkExpiration(duration, unit); this.expireAfterAccessNanos = unit.toNanos(duration); if (duration == 0 && this.nullRemovalCause == null) { // SIZE tru...
public class class_name { public static <T extends IItem & IExpandable> int countSelectedSubItems(final FastAdapter adapter, T header) { SelectExtension extension = (SelectExtension) adapter.getExtension(SelectExtension.class); if (extension != null) { Set<IItem> selections = extension.getS...
public class class_name { public static <T extends IItem & IExpandable> int countSelectedSubItems(final FastAdapter adapter, T header) { SelectExtension extension = (SelectExtension) adapter.getExtension(SelectExtension.class); if (extension != null) { Set<IItem> selections = extension.getS...
public class class_name { public void addDocumentDependency(CmsObject cms, CmsDocumentDependency resDeps) { if (resDeps != null) { m_doc.addField(CmsSearchField.FIELD_DEPENDENCY_TYPE, resDeps.getType()); if ((resDeps.getMainDocument() != null) && (resDeps.getType() != null)) { ...
public class class_name { public void addDocumentDependency(CmsObject cms, CmsDocumentDependency resDeps) { if (resDeps != null) { m_doc.addField(CmsSearchField.FIELD_DEPENDENCY_TYPE, resDeps.getType()); // depends on control dependency: [if], data = [none] if ((resDeps.getMainDocument...
public class class_name { @VisibleForTesting List<Long> prepareRowBaseTimes() { final ArrayList<Long> row_base_time_list = new ArrayList<Long>( (int) ((end_row_time - start_row_time) / Const.MAX_TIMESPAN)); // NOTE: inclusive end here long ts = (start_row_time - (start_row_time % Const.MAX_TIMESP...
public class class_name { @VisibleForTesting List<Long> prepareRowBaseTimes() { final ArrayList<Long> row_base_time_list = new ArrayList<Long>( (int) ((end_row_time - start_row_time) / Const.MAX_TIMESPAN)); // NOTE: inclusive end here long ts = (start_row_time - (start_row_time % Const.MAX_TIMESP...
public class class_name { public CmsPathTree<P, V> findNode(List<P> path) { List<P> pathToConsume = Lists.newLinkedList(path); CmsPathTree<P, V> descendant = findNodeInternal(pathToConsume); if (!pathToConsume.isEmpty()) { return null; } else { return descendant...
public class class_name { public CmsPathTree<P, V> findNode(List<P> path) { List<P> pathToConsume = Lists.newLinkedList(path); CmsPathTree<P, V> descendant = findNodeInternal(pathToConsume); if (!pathToConsume.isEmpty()) { return null; // depends on control dependency: [if], data =...
public class class_name { public final V putIfAbsent(K key, LazyFactory<V> factory) { final int hash = hash(key); final int slot = indexOf(hash); // search the chain from the slot for (Entry<K, V> entry = table[slot]; entry != null; entry = entry.next) { if (entry.hashCode == hash && entry.key.equals(key))...
public class class_name { public final V putIfAbsent(K key, LazyFactory<V> factory) { final int hash = hash(key); final int slot = indexOf(hash); // search the chain from the slot for (Entry<K, V> entry = table[slot]; entry != null; entry = entry.next) { if (entry.hashCode == hash && entry.key.equals(key))...
public class class_name { public static boolean shouldGzippedBodyBeZero(byte[] compressedBytes, HttpServletRequest request) { //Check for 0 length body if (compressedBytes.length == EMPTY_GZIPPED_CONTENT_SIZE) { if (log.isTraceEnabled()) { log.trace("{} resulted in an empty response.", request.getRequestUR...
public class class_name { public static boolean shouldGzippedBodyBeZero(byte[] compressedBytes, HttpServletRequest request) { //Check for 0 length body if (compressedBytes.length == EMPTY_GZIPPED_CONTENT_SIZE) { if (log.isTraceEnabled()) { log.trace("{} resulted in an empty response.", request.getRequestUR...
public class class_name { @SuppressWarnings("fallthrough") Symbol selectBest(Env<AttrContext> env, Type site, List<Type> argtypes, List<Type> typeargtypes, Symbol sym, Symbol bestSoFar, ...
public class class_name { @SuppressWarnings("fallthrough") Symbol selectBest(Env<AttrContext> env, Type site, List<Type> argtypes, List<Type> typeargtypes, Symbol sym, Symbol bestSoFar, ...
public class class_name { public void marshall(AudioOnlyHlsSettings audioOnlyHlsSettings, ProtocolMarshaller protocolMarshaller) { if (audioOnlyHlsSettings == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.m...
public class class_name { public void marshall(AudioOnlyHlsSettings audioOnlyHlsSettings, ProtocolMarshaller protocolMarshaller) { if (audioOnlyHlsSettings == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.m...
public class class_name { @Override protected void doPerform() { Select select = getSelectElement(); if (!select.isMultiple()) { throw new UnsupportedOperationException("You may only deselect all options of a multi-select"); } for (WebElement option : select.getOptions(...
public class class_name { @Override protected void doPerform() { Select select = getSelectElement(); if (!select.isMultiple()) { throw new UnsupportedOperationException("You may only deselect all options of a multi-select"); } for (WebElement option : select.getOptions(...
public class class_name { public MetricName resolve(String p) { final String next; if (p != null && !p.isEmpty()) { if (key != null && !key.isEmpty()) { next = key + SEPARATOR + p; } else { next = p; } } else { nex...
public class class_name { public MetricName resolve(String p) { final String next; if (p != null && !p.isEmpty()) { if (key != null && !key.isEmpty()) { next = key + SEPARATOR + p; // depends on control dependency: [if], data = [none] } else { ne...
public class class_name { protected void updateMSIdinCallDetailRecord(final String msId, final Sid callSid){ if(callSid == null){ if(logger.isDebugEnabled()) logger.debug("Call Id is not specisfied, it can be an outbound call."); }else{ CallDetailRecordsDao dao =...
public class class_name { protected void updateMSIdinCallDetailRecord(final String msId, final Sid callSid){ if(callSid == null){ if(logger.isDebugEnabled()) logger.debug("Call Id is not specisfied, it can be an outbound call."); }else{ CallDetailRecordsDao dao =...
public class class_name { protected void onSerializableProperty(final String propertyName, final Class propertyType, final Object value) { jsonContext.pushName(propertyName, count > 0); jsonContext.serialize(value); if (jsonContext.isNamePopped()) { count++; } } }
public class class_name { protected void onSerializableProperty(final String propertyName, final Class propertyType, final Object value) { jsonContext.pushName(propertyName, count > 0); jsonContext.serialize(value); if (jsonContext.isNamePopped()) { count++; // depends on control dependency: [if], data = [n...
public class class_name { private static PCM clear_ligne(PCM pcm, PCM pcm_return){ List<Product> pdts = pcm.getProducts(); List<Cell> cells = new ArrayList<Cell>() ; for (Product pr : pdts) { float nbCellsEmpty = 0 ; // On ajoute les cellules du product dans une liste cells = pr.getCells(); //...
public class class_name { private static PCM clear_ligne(PCM pcm, PCM pcm_return){ List<Product> pdts = pcm.getProducts(); List<Cell> cells = new ArrayList<Cell>() ; for (Product pr : pdts) { float nbCellsEmpty = 0 ; // On ajoute les cellules du product dans une liste cells = pr.getCells(); // de...
public class class_name { protected void setLoggedInUser(final HttpServletRequest _request, final String _userName) { if (_userName == null) { _request.getSession(true).removeAttribute(this.sessionParameterLoginName); } else { _request.getS...
public class class_name { protected void setLoggedInUser(final HttpServletRequest _request, final String _userName) { if (_userName == null) { _request.getSession(true).removeAttribute(this.sessionParameterLoginName); // depends on control dependency: [if], da...
public class class_name { public static HazardCurve createHazardCurveFromSurvivalProbabilities(String name, double[] times, double[] givenSurvivalProbabilities){ HazardCurve survivalProbabilities = new HazardCurve(name); for(int timeIndex=0; timeIndex<times.length;timeIndex++) { survivalProbabilities.addSurviv...
public class class_name { public static HazardCurve createHazardCurveFromSurvivalProbabilities(String name, double[] times, double[] givenSurvivalProbabilities){ HazardCurve survivalProbabilities = new HazardCurve(name); for(int timeIndex=0; timeIndex<times.length;timeIndex++) { survivalProbabilities.addSurviv...
public class class_name { void expandCurrentFolder() { if (m_currentFolder != null) { m_treeContainer.setChildrenAllowed(m_currentFolder, true); m_fileTree.expandItem(m_currentFolder); } } }
public class class_name { void expandCurrentFolder() { if (m_currentFolder != null) { m_treeContainer.setChildrenAllowed(m_currentFolder, true); // depends on control dependency: [if], data = [(m_currentFolder] m_fileTree.expandItem(m_currentFolder); // depends on control dependency: [...
public class class_name { private Node<K, V> cutOldestChild(Node<K, V> n) { Node<K, V> oldestChild = n.o_c; if (oldestChild != null) { if (oldestChild.y_s != null) { oldestChild.y_s.o_s = n; } n.o_c = oldestChild.y_s; oldestChild.y_s = nul...
public class class_name { private Node<K, V> cutOldestChild(Node<K, V> n) { Node<K, V> oldestChild = n.o_c; if (oldestChild != null) { if (oldestChild.y_s != null) { oldestChild.y_s.o_s = n; // depends on control dependency: [if], data = [none] } n.o_...
public class class_name { protected String findPackageSuffix(String uri) { String temp = uri.startsWith("/") ? uri.substring(1) : uri; temp = temp.replace(".", "_"); temp = temp.replace("/", "."); //find all matches List<String> candidates = new ArrayList<>(); for (St...
public class class_name { protected String findPackageSuffix(String uri) { String temp = uri.startsWith("/") ? uri.substring(1) : uri; temp = temp.replace(".", "_"); temp = temp.replace("/", "."); //find all matches List<String> candidates = new ArrayList<>(); for (St...
public class class_name { @GuardedBy("lock") private void scheduleBackoff(final Status status) { class EndOfCurrentBackoff implements Runnable { @Override public void run() { try { synchronized (lock) { reconnectTask = null; if (reconnectCanceled) { ...
public class class_name { @GuardedBy("lock") private void scheduleBackoff(final Status status) { class EndOfCurrentBackoff implements Runnable { @Override public void run() { try { synchronized (lock) { // depends on control dependency: [try], data = [none] reconnectTask...
public class class_name { public synchronized void destroy() { if (state == DESTROYED) return; if (state != DISCONNECTED) try { tl.disconnect(this); } catch (final KNXLinkClosedException e) { // we already should've been destroyed on catching this exception } setState(DESTROYED...
public class class_name { public synchronized void destroy() { if (state == DESTROYED) return; if (state != DISCONNECTED) try { tl.disconnect(this); // depends on control dependency: [try], data = [none] } catch (final KNXLinkClosedException e) { // we already should've been destroyed...
public class class_name { public static List<String> split(String pArg, String pEscape, String pDelimiter) { if (pArg != null) { ArrayList<String> ret = new ArrayList<String>(); Pattern[] pattern = SPLIT_PATTERNS.get(pEscape + pDelimiter); if (pattern == null) { ...
public class class_name { public static List<String> split(String pArg, String pEscape, String pDelimiter) { if (pArg != null) { ArrayList<String> ret = new ArrayList<String>(); Pattern[] pattern = SPLIT_PATTERNS.get(pEscape + pDelimiter); if (pattern == null) { ...
public class class_name { @SuppressWarnings("unchecked") private <T> List<T> getListValue(Class<T> type, String propertyName, EDBObject object) { List<T> temp = new ArrayList<>(); for (int i = 0;; i++) { String property = getEntryNameForList(propertyName, i); Object obj = ob...
public class class_name { @SuppressWarnings("unchecked") private <T> List<T> getListValue(Class<T> type, String propertyName, EDBObject object) { List<T> temp = new ArrayList<>(); for (int i = 0;; i++) { String property = getEntryNameForList(propertyName, i); Object obj = ob...
public class class_name { public static InputStream getResourceAsStream(String resource) { InputStream in = ClassUtils.getContextClassLoader().getResourceAsStream(resource); if (in == null) { in = IOUtils.class.getResourceAsStream(resource); } return in; } }
public class class_name { public static InputStream getResourceAsStream(String resource) { InputStream in = ClassUtils.getContextClassLoader().getResourceAsStream(resource); if (in == null) { in = IOUtils.class.getResourceAsStream(resource); // depends on control dependency: [if], data = [n...
public class class_name { public void execute() throws MojoExecutionException, MojoFailureException { if (file == null) throw new MojoFailureException("File not defined"); if (!file.exists()) throw new MojoFailureException("File doesn't exists: " + file); FileInputStream fis = ...
public class class_name { public void execute() throws MojoExecutionException, MojoFailureException { if (file == null) throw new MojoFailureException("File not defined"); if (!file.exists()) throw new MojoFailureException("File doesn't exists: " + file); FileInputStream fis = ...
public class class_name { public FieldMember findInstanceField(String name) { FieldMember found = getLatestTypeDescriptor().getField(name); if (found != null) { return found; } // Walk up the supertypes - this is looking for instance fields so no need to search interfaces String slashedSupername = getType...
public class class_name { public FieldMember findInstanceField(String name) { FieldMember found = getLatestTypeDescriptor().getField(name); if (found != null) { return found; // depends on control dependency: [if], data = [none] } // Walk up the supertypes - this is looking for instance fields so no need to...
public class class_name { static int getPoaThreadPoolMax() { if (!thread_pool_max_done) { final String str = System.getProperty("jacorb.poa.thread_pool_max"); int value; try { value = Integer.parseInt(str); if (value > 0) { ...
public class class_name { static int getPoaThreadPoolMax() { if (!thread_pool_max_done) { final String str = System.getProperty("jacorb.poa.thread_pool_max"); int value; try { value = Integer.parseInt(str); // depends on control dependency: [try], data = [non...
public class class_name { private void parseFieldRemove(String fieldName, UNode addNode) { Set<String> removeValueSet = new LinkedHashSet<>(); for (UNode valueNode : addNode.getMemberList()) { Utils.require(valueNode.isValue() && valueNode.getName().equals("value"), ...
public class class_name { private void parseFieldRemove(String fieldName, UNode addNode) { Set<String> removeValueSet = new LinkedHashSet<>(); for (UNode valueNode : addNode.getMemberList()) { Utils.require(valueNode.isValue() && valueNode.getName().equals("value"), ...
public class class_name { protected void updateCiManagement(CiManagement value, String xmlTag, Counter counter, Element element) { boolean shouldExist = value != null; Element root = updateElement(counter, element, xmlTag, shouldExist); if (shouldExist) { Counter innerCount = new Co...
public class class_name { protected void updateCiManagement(CiManagement value, String xmlTag, Counter counter, Element element) { boolean shouldExist = value != null; Element root = updateElement(counter, element, xmlTag, shouldExist); if (shouldExist) { Counter innerCount = new Co...
public class class_name { private boolean isUnit(final int lit, final MSClause clause) { for (int i = 0; i < clause.size(); ++i) { final int clauseLit = clause.get(i); if (lit != clauseLit && this.model.get(var(clauseLit)) != sign(clauseLit)) { return false; ...
public class class_name { private boolean isUnit(final int lit, final MSClause clause) { for (int i = 0; i < clause.size(); ++i) { final int clauseLit = clause.get(i); if (lit != clauseLit && this.model.get(var(clauseLit)) != sign(clauseLit)) { return false; // depends o...
public class class_name { @Deprecated public String getAccessToken() { Session s = getSession(); if (s != null) { return s.getAccessToken(); } else { return null; } } }
public class class_name { @Deprecated public String getAccessToken() { Session s = getSession(); if (s != null) { return s.getAccessToken(); // depends on control dependency: [if], data = [none] } else { return null; // depends on control dependency: [if], data = [no...
public class class_name { private Token indent() { Matcher matcher; String re; if (indentRe != null) { matcher = scanner.getMatcherForPattern(indentRe); } else { // tabs re = "^\\n(\\t*) *"; String indentType = "tabs"; matcher...
public class class_name { private Token indent() { Matcher matcher; String re; if (indentRe != null) { matcher = scanner.getMatcherForPattern(indentRe); // depends on control dependency: [if], data = [(indentRe] } else { // tabs re = "^\\n(\\t*) *"; ...
public class class_name { @Override public final Set<IPersonAttributes> mergeResults(final Set<IPersonAttributes> toModify, final Set<IPersonAttributes> toConsider) { Validate.notNull(toModify, "toModify cannot be null"); Validate.notNull(toConsider, "toConsider cannot be null"); //Convert...
public class class_name { @Override public final Set<IPersonAttributes> mergeResults(final Set<IPersonAttributes> toModify, final Set<IPersonAttributes> toConsider) { Validate.notNull(toModify, "toModify cannot be null"); Validate.notNull(toConsider, "toConsider cannot be null"); //Convert...
public class class_name { @Override public EClass getIfcConstructionResourceType() { if (ifcConstructionResourceTypeEClass == null) { ifcConstructionResourceTypeEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI) .getEClassifiers().get(135); } return ifcConstructionResour...
public class class_name { @Override public EClass getIfcConstructionResourceType() { if (ifcConstructionResourceTypeEClass == null) { ifcConstructionResourceTypeEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI) .getEClassifiers().get(135); // depends on control dependency: [...
public class class_name { public static void independent( BufferedImage input ) { // convert the BufferedImage into a Planar Planar<GrayU8> image = ConvertBufferedImage.convertFromPlanar(input,null,true,GrayU8.class); // declare the output blurred image Planar<GrayU8> blurred = image.createSameShape(); /...
public class class_name { public static void independent( BufferedImage input ) { // convert the BufferedImage into a Planar Planar<GrayU8> image = ConvertBufferedImage.convertFromPlanar(input,null,true,GrayU8.class); // declare the output blurred image Planar<GrayU8> blurred = image.createSameShape(); /...
public class class_name { @SuppressWarnings("rawtypes") private static PluginDefinition parsePluginDefinition(final ClassLoader cl, final Element plugin) throws PluginConfigurationException { // Check if the plugin definition is inside its own file if (getAttributeValue(plugin, "definedIn", false)...
public class class_name { @SuppressWarnings("rawtypes") private static PluginDefinition parsePluginDefinition(final ClassLoader cl, final Element plugin) throws PluginConfigurationException { // Check if the plugin definition is inside its own file if (getAttributeValue(plugin, "definedIn", false)...
public class class_name { public GetSessionResponse getSessionWithToken(String sessionId, Integer timeoutInMinute) { GetSessionResponse getSessionResponse = getSession(sessionId); if (timeoutInMinute == null) { return getSessionResponse; } DateTime dateTime = new DateTime(Da...
public class class_name { public GetSessionResponse getSessionWithToken(String sessionId, Integer timeoutInMinute) { GetSessionResponse getSessionResponse = getSession(sessionId); if (timeoutInMinute == null) { return getSessionResponse; // depends on control dependency: [if], data = [none]...
public class class_name { @Check public void checkFieldNameShadowing(SarlField field) { if (!isIgnored(VARIABLE_NAME_SHADOWING) && !Utils.isHiddenMember(field.getName())) { final JvmField inferredField = this.associations.getJvmField(field); final Map<String, JvmField> inheritedFields = new TreeMap<>(); ...
public class class_name { @Check public void checkFieldNameShadowing(SarlField field) { if (!isIgnored(VARIABLE_NAME_SHADOWING) && !Utils.isHiddenMember(field.getName())) { final JvmField inferredField = this.associations.getJvmField(field); final Map<String, JvmField> inheritedFields = new TreeMap<>(); ...
public class class_name { public static AccrueType getInstance(String type, Locale locale) { AccrueType result = null; String[] typeNames = LocaleData.getStringArray(locale, LocaleData.ACCRUE_TYPES); for (int loop = 0; loop < typeNames.length; loop++) { if (typeNames[loop].equalsI...
public class class_name { public static AccrueType getInstance(String type, Locale locale) { AccrueType result = null; String[] typeNames = LocaleData.getStringArray(locale, LocaleData.ACCRUE_TYPES); for (int loop = 0; loop < typeNames.length; loop++) { if (typeNames[loop].equalsI...
public class class_name { @Override protected Tree determineNonTrivialHead(Tree t, Tree parent) { String motherCat = tlp.basicCategory(t.label().value()); if (DEBUG) { System.err.println("At " + motherCat + ", my parent is " + parent); } // do VPs with auxiliary as special case i...
public class class_name { @Override protected Tree determineNonTrivialHead(Tree t, Tree parent) { String motherCat = tlp.basicCategory(t.label().value()); if (DEBUG) { System.err.println("At " + motherCat + ", my parent is " + parent); // depends on control dependency: [if], data = [none] } ...
public class class_name { private void configureServletContext(final ServletContext servletContext) { servletContext.addListener(jodd.servlet.RequestContextListener.class); if (decoraEnabled) { final FilterRegistration filter = servletContext.addFilter("decora", jodd.decora.DecoraServletFilter.class); filte...
public class class_name { private void configureServletContext(final ServletContext servletContext) { servletContext.addListener(jodd.servlet.RequestContextListener.class); if (decoraEnabled) { final FilterRegistration filter = servletContext.addFilter("decora", jodd.decora.DecoraServletFilter.class); filte...
public class class_name { protected final Object getEventSessionMutex(HttpSession session) { synchronized (WebUtils.getSessionMutex(session)) { SerializableObject mutex = (SerializableObject) session.getAttribute(EVENT_SESSION_MUTEX); if (mutex == null) { ...
public class class_name { protected final Object getEventSessionMutex(HttpSession session) { synchronized (WebUtils.getSessionMutex(session)) { SerializableObject mutex = (SerializableObject) session.getAttribute(EVENT_SESSION_MUTEX); if (mutex == null) { ...
public class class_name { @Override protected NoSqlSession loadSession(final String clusterId) { log.debug("loadSession: loading: id=" + clusterId); ISerializableSession data = getKey(clusterId); log.debug("loadSession: loaded: id=" + clusterId + ", data=" + data); if (data == ...
public class class_name { @Override protected NoSqlSession loadSession(final String clusterId) { log.debug("loadSession: loading: id=" + clusterId); ISerializableSession data = getKey(clusterId); log.debug("loadSession: loaded: id=" + clusterId + ", data=" + data); if (data == ...
public class class_name { public static void writeFile(File file, long val) throws IOException { AtomicFileOutputStream fos = new AtomicFileOutputStream(file); try { fos.write(String.valueOf(val).getBytes(Charsets.UTF_8)); fos.write('\n'); fos.close(); fos = null; } finally { ...
public class class_name { public static void writeFile(File file, long val) throws IOException { AtomicFileOutputStream fos = new AtomicFileOutputStream(file); try { fos.write(String.valueOf(val).getBytes(Charsets.UTF_8)); fos.write('\n'); fos.close(); fos = null; } finally { ...
public class class_name { @GET @Produces(MediaType.APPLICATION_XML) public Response getAgreements( @QueryParam("consumerId") String consumerId, @QueryParam("providerId") String providerId, @QueryParam("active") BooleanParam active) { logger.debug("StartOf getAgreeme...
public class class_name { @GET @Produces(MediaType.APPLICATION_XML) public Response getAgreements( @QueryParam("consumerId") String consumerId, @QueryParam("providerId") String providerId, @QueryParam("active") BooleanParam active) { logger.debug("StartOf getAgreeme...
public class class_name { public NatGateway withNatGatewayAddresses(NatGatewayAddress... natGatewayAddresses) { if (this.natGatewayAddresses == null) { setNatGatewayAddresses(new com.amazonaws.internal.SdkInternalList<NatGatewayAddress>(natGatewayAddresses.length)); } for (NatGatewa...
public class class_name { public NatGateway withNatGatewayAddresses(NatGatewayAddress... natGatewayAddresses) { if (this.natGatewayAddresses == null) { setNatGatewayAddresses(new com.amazonaws.internal.SdkInternalList<NatGatewayAddress>(natGatewayAddresses.length)); // depends on control dependency...
public class class_name { public static String[] split (String source, String sep) { // handle the special case of a zero-component source if (isBlank(source)) { return new String[0]; } int tcount = 0, tpos = -1, tstart = 0; // count up the number of tokens ...
public class class_name { public static String[] split (String source, String sep) { // handle the special case of a zero-component source if (isBlank(source)) { return new String[0]; // depends on control dependency: [if], data = [none] } int tcount = 0, tpos = -1, tst...
public class class_name { @Override public void visitMethod(Method obj) { if (getMethod().isSynthetic()) { return; } methodTransType = getTransactionalType(obj); if ((methodTransType != TransactionalType.NONE) && !obj.isPublic()) { bugReporter ...
public class class_name { @Override public void visitMethod(Method obj) { if (getMethod().isSynthetic()) { return; // depends on control dependency: [if], data = [none] } methodTransType = getTransactionalType(obj); if ((methodTransType != TransactionalType.NONE) && !ob...
public class class_name { @Override public boolean remove(Object object) { for (int offset = 0; offset < this.size; offset++) { if (this.storage[offset] == object) { System.arraycopy(this.storage, offset + 1, this.storage, offset, this.size - (offset + 1)); this....
public class class_name { @Override public boolean remove(Object object) { for (int offset = 0; offset < this.size; offset++) { if (this.storage[offset] == object) { System.arraycopy(this.storage, offset + 1, this.storage, offset, this.size - (offset + 1)); // depends on control...
public class class_name { public void setOtaUpdateFiles(java.util.Collection<OTAUpdateFile> otaUpdateFiles) { if (otaUpdateFiles == null) { this.otaUpdateFiles = null; return; } this.otaUpdateFiles = new java.util.ArrayList<OTAUpdateFile>(otaUpdateFiles); } }
public class class_name { public void setOtaUpdateFiles(java.util.Collection<OTAUpdateFile> otaUpdateFiles) { if (otaUpdateFiles == null) { this.otaUpdateFiles = null; // depends on control dependency: [if], data = [none] return; // depends on control dependency: [if], data = [none] ...
public class class_name { public void marshall(ListOutgoingTypedLinksRequest listOutgoingTypedLinksRequest, ProtocolMarshaller protocolMarshaller) { if (listOutgoingTypedLinksRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { ...
public class class_name { public void marshall(ListOutgoingTypedLinksRequest listOutgoingTypedLinksRequest, ProtocolMarshaller protocolMarshaller) { if (listOutgoingTypedLinksRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { ...
public class class_name { private void compactAndRemove(final E[] buffer, final int mask, int removeHashIndex) { // remove(9a): [9a,9b,10a,9c,10b,11a,null] -> [9b,9c,10a,10b,null,11a,null] removeHashIndex = removeHashIndex & mask; int j = removeHashIndex; while(true) { int k...
public class class_name { private void compactAndRemove(final E[] buffer, final int mask, int removeHashIndex) { // remove(9a): [9a,9b,10a,9c,10b,11a,null] -> [9b,9c,10a,10b,null,11a,null] removeHashIndex = removeHashIndex & mask; int j = removeHashIndex; while(true) { int k...
public class class_name { @SuppressWarnings("null") @Override public byte[] toByteArray() { byte[][] summariesBytes = null; int summariesBytesLength = 0; if (count_ > 0) { summariesBytes = new byte[count_][]; int i = 0; for (int j = 0; j < summaries_.length; j++) { if (summari...
public class class_name { @SuppressWarnings("null") @Override public byte[] toByteArray() { byte[][] summariesBytes = null; int summariesBytesLength = 0; if (count_ > 0) { summariesBytes = new byte[count_][]; // depends on control dependency: [if], data = [none] int i = 0; for (int j ...
public class class_name { public static Map<Object, Object> getSupportedProperties(Object ref) { if (null == supportedMIMETypes) { synchronized (MIMETypesSupport.class) { if (null == supportedMIMETypes) { // Load the supported MIME types out of a properties file try (InputStream is = ClassLoaderRes...
public class class_name { public static Map<Object, Object> getSupportedProperties(Object ref) { if (null == supportedMIMETypes) { synchronized (MIMETypesSupport.class) { // depends on control dependency: [if], data = [none] if (null == supportedMIMETypes) { // Load the supported MIME types out of a pro...
public class class_name { protected Method analyse_method_state(String cl_name,String state_method) throws DevFailed { Method s_meth = null; try { // // Get the class object for the device class // StringBuffer str = new StringBuffer(cl_name); str.append("."); str.append(cl_name); Class ...
public class class_name { protected Method analyse_method_state(String cl_name,String state_method) throws DevFailed { Method s_meth = null; try { // // Get the class object for the device class // StringBuffer str = new StringBuffer(cl_name); str.append("."); str.append(cl_name); Class ...
public class class_name { public static File[] wrap(File[] pPaths) { if (IS_WINDOWS) { for (int i = 0; pPaths != null && i < pPaths.length; i++) { pPaths[i] = wrap(pPaths[i]); } } return pPaths; } }
public class class_name { public static File[] wrap(File[] pPaths) { if (IS_WINDOWS) { for (int i = 0; pPaths != null && i < pPaths.length; i++) { pPaths[i] = wrap(pPaths[i]); // depends on control dependency: [for], data = [i] } } return pPaths; ...
public class class_name { @JustForTest synchronized static void removeValue(String key) { Object oldValue = CFG.get(key); if (oldValue != null) { CFG.remove(key); List<RpcConfigListener> rpcConfigListeners = CFG_LISTENER.get(key); if (CommonUtils.isNotEmpty(rpcCo...
public class class_name { @JustForTest synchronized static void removeValue(String key) { Object oldValue = CFG.get(key); if (oldValue != null) { CFG.remove(key); // depends on control dependency: [if], data = [none] List<RpcConfigListener> rpcConfigListeners = CFG_LISTENER....
public class class_name { public RestRequestInformation asRestRequestInformation() { try { return new RestRequestInformationImpl( api, new URL(endpoint.getFullUrl(urlParameters)), queryParameters, headers, body); } catch (MalformedURLException e) { throw new ...
public class class_name { public RestRequestInformation asRestRequestInformation() { try { return new RestRequestInformationImpl( api, new URL(endpoint.getFullUrl(urlParameters)), queryParameters, headers, body); // depends on control dependency: [try], data = [none] } c...
public class class_name { public static HashValue murmurhash3_x64_128(final byte[] key, final int offset, final int len, final int seed) { // The original algorithm does have a 32 bit unsigned seed. // We have to mask to match the behavior of the unsigned types and prevent sign extension. long h1 = seed & 0x0000...
public class class_name { public static HashValue murmurhash3_x64_128(final byte[] key, final int offset, final int len, final int seed) { // The original algorithm does have a 32 bit unsigned seed. // We have to mask to match the behavior of the unsigned types and prevent sign extension. long h1 = seed & 0x0000...
public class class_name { private static String driverVersion() { // "Session" is arbitrary - the only thing that matters is that the class we use here is in the // 'org.neo4j.driver' package, because that is where the jar manifest specifies the version. // This is done as part of the build...
public class class_name { private static String driverVersion() { // "Session" is arbitrary - the only thing that matters is that the class we use here is in the // 'org.neo4j.driver' package, because that is where the jar manifest specifies the version. // This is done as part of the build...
public class class_name { Table ADMINISTRABLE_ROLE_AUTHORIZATIONS() { Table t = sysTables[ADMINISTRABLE_ROLE_AUTHORIZATIONS]; if (t == null) { t = createBlankTable( sysTableHsqlNames[ADMINISTRABLE_ROLE_AUTHORIZATIONS]); addColumn(t, "GRANTEE", SQL_IDENTIFIER);...
public class class_name { Table ADMINISTRABLE_ROLE_AUTHORIZATIONS() { Table t = sysTables[ADMINISTRABLE_ROLE_AUTHORIZATIONS]; if (t == null) { t = createBlankTable( sysTableHsqlNames[ADMINISTRABLE_ROLE_AUTHORIZATIONS]); // depends on control dependency: [if], data = [none]...
public class class_name { public String getRequestURI() { if (WCCustomProperties.CHECK_REQUEST_OBJECT_IN_USE){ checkRequestObjectInUse(); } // Begin PK06988, strip session id of when url rewriting is enabled SRTServletRequestThreadData reqData = SRTServletRequestThreadDa...
public class class_name { public String getRequestURI() { if (WCCustomProperties.CHECK_REQUEST_OBJECT_IN_USE){ checkRequestObjectInUse(); // depends on control dependency: [if], data = [none] } // Begin PK06988, strip session id of when url rewriting is enabled SRTServle...
public class class_name { private void genTypeSignature(TypeMirror type, StringBuilder sb) { switch (type.getKind()) { case BOOLEAN: case BYTE: case CHAR: case DOUBLE: case FLOAT: case INT: case LONG: case SHORT: case VOID: sb.append(TypeUtil.getBinaryN...
public class class_name { private void genTypeSignature(TypeMirror type, StringBuilder sb) { switch (type.getKind()) { case BOOLEAN: case BYTE: case CHAR: case DOUBLE: case FLOAT: case INT: case LONG: case SHORT: case VOID: sb.append(TypeUtil.getBinaryN...
public class class_name { public Response handle( AuthleteApi api, UserInfoRequestHandlerSpi spi, String accessToken) { try { // Create a handler. UserInfoRequestHandler handler = new UserInfoRequestHandler(api, spi); // Delegate the task to the hand...
public class class_name { public Response handle( AuthleteApi api, UserInfoRequestHandlerSpi spi, String accessToken) { try { // Create a handler. UserInfoRequestHandler handler = new UserInfoRequestHandler(api, spi); // Delegate the task to the hand...
public class class_name { private JPanel getJPanel() { if (jPanel == null) { GridBagConstraints gridBagConstraints15 = new GridBagConstraints(); java.awt.GridBagConstraints gridBagConstraints13 = new GridBagConstraints(); javax.swing.JLabel jLabel2 = new JLabel(); java.awt.GridBagConstraints gri...
public class class_name { private JPanel getJPanel() { if (jPanel == null) { GridBagConstraints gridBagConstraints15 = new GridBagConstraints(); java.awt.GridBagConstraints gridBagConstraints13 = new GridBagConstraints(); javax.swing.JLabel jLabel2 = new JLabel(); java.awt.GridBagConstraints gri...
public class class_name { public void compress () { for (Iterator<CountEntry<K>> it = _backing.values().iterator(); it.hasNext(); ) { if (it.next().count == 0) { it.remove(); } } } }
public class class_name { public void compress () { for (Iterator<CountEntry<K>> it = _backing.values().iterator(); it.hasNext(); ) { if (it.next().count == 0) { it.remove(); // depends on control dependency: [if], data = [none] } } } }
public class class_name { protected void setCommitDanglingWork(BeanMetaData bmd) { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); int unresolvedAction = bmd._localTran.getUnresolvedAction(); if (unresolvedAction == LocalTransactionSettings.UNRESOLVED_COMMIT) { bmd....
public class class_name { protected void setCommitDanglingWork(BeanMetaData bmd) { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); int unresolvedAction = bmd._localTran.getUnresolvedAction(); if (unresolvedAction == LocalTransactionSettings.UNRESOLVED_COMMIT) { bmd....
public class class_name { public static String RSAKeyToString (PublicKey key) { try { KeyFactory kf = KeyFactory.getInstance("RSA"); RSAPublicKeySpec spec = kf.getKeySpec(key, RSAPublicKeySpec.class); StringBuilder buf = new StringBuilder(); buf.append(spec.g...
public class class_name { public static String RSAKeyToString (PublicKey key) { try { KeyFactory kf = KeyFactory.getInstance("RSA"); RSAPublicKeySpec spec = kf.getKeySpec(key, RSAPublicKeySpec.class); StringBuilder buf = new StringBuilder(); buf.append(spec.g...
public class class_name { private void handleModule(Node n, Node parent) { pushScope(n); curNode = n; if (callback.shouldTraverse(this, n, parent)) { curNode = n; traverseChildren(n); callback.visit(this, n, parent); } popScope(); } }
public class class_name { private void handleModule(Node n, Node parent) { pushScope(n); curNode = n; if (callback.shouldTraverse(this, n, parent)) { curNode = n; // depends on control dependency: [if], data = [none] traverseChildren(n); // depends on control dependency: [if], data = [none] ...
public class class_name { @Override public EObjectInComment computeEObjectReferencedInComment(XtextResource resource, int offset) { IParseResult parseResult = resource.getParseResult(); if(parseResult != null) { INode rootNode = parseResult.getRootNode(); INode node = NodeModelUtils.findLeafNodeAtOffset(roo...
public class class_name { @Override public EObjectInComment computeEObjectReferencedInComment(XtextResource resource, int offset) { IParseResult parseResult = resource.getParseResult(); if(parseResult != null) { INode rootNode = parseResult.getRootNode(); INode node = NodeModelUtils.findLeafNodeAtOffset(roo...
public class class_name { public BatchReadRequest withOperations(BatchReadOperation... operations) { if (this.operations == null) { setOperations(new java.util.ArrayList<BatchReadOperation>(operations.length)); } for (BatchReadOperation ele : operations) { this.operation...
public class class_name { public BatchReadRequest withOperations(BatchReadOperation... operations) { if (this.operations == null) { setOperations(new java.util.ArrayList<BatchReadOperation>(operations.length)); // depends on control dependency: [if], data = [none] } for (BatchReadOp...
public class class_name { public static String print(Doc doc) { final StringBuilder builder = new StringBuilder(doc.pkg.name.isEmpty() ? "" : ("package " + doc.pkg.name + "\n\n")); if (!doc.imports.isEmpty()) { for (Imprt imp : doc.imports) { builder.append("import " + imp.n...
public class class_name { public static String print(Doc doc) { final StringBuilder builder = new StringBuilder(doc.pkg.name.isEmpty() ? "" : ("package " + doc.pkg.name + "\n\n")); if (!doc.imports.isEmpty()) { for (Imprt imp : doc.imports) { builder.append("import " + imp.n...
public class class_name { public boolean removeChild( AstNode child ) { boolean result = this.children.remove(child); if (result) { child.parent = null; } return result; } }
public class class_name { public boolean removeChild( AstNode child ) { boolean result = this.children.remove(child); if (result) { child.parent = null; // depends on control dependency: [if], data = [none] } return result; } }
public class class_name { @Override // DataNodeMXBean public String getVolumeInfo() { final Map<String, Object> info = new HashMap<String, Object>(); try { FSVolume[] volumes = ((FSDataset)this.data).volumes.getVolumes(); for (FSVolume v : volumes) { final Map<String, Object> innerInfo = ...
public class class_name { @Override // DataNodeMXBean public String getVolumeInfo() { final Map<String, Object> info = new HashMap<String, Object>(); try { FSVolume[] volumes = ((FSDataset)this.data).volumes.getVolumes(); for (FSVolume v : volumes) { final Map<String, Object> innerInfo = ...
public class class_name { public void disconnect(){ if(timer != null){ timer.cancel(); } if (ws != null && ws.isOpen()) { ws.disconnect(); subscribedTokens = new HashSet<>(); modeMap.clear(); } } }
public class class_name { public void disconnect(){ if(timer != null){ timer.cancel(); // depends on control dependency: [if], data = [none] } if (ws != null && ws.isOpen()) { ws.disconnect(); // depends on control dependency: [if], data = [none] subscribedTo...
public class class_name { public void enforceVersion( Log log, String variableName, String requiredVersionRange, ArtifactVersion actualVersion ) throws EnforcerRuleException { if ( StringUtils.isEmpty( requiredVersionRange ) ) { throw new EnforcerRuleException( variableName + " ...
public class class_name { public void enforceVersion( Log log, String variableName, String requiredVersionRange, ArtifactVersion actualVersion ) throws EnforcerRuleException { if ( StringUtils.isEmpty( requiredVersionRange ) ) { throw new EnforcerRuleException( variableName + " ...