code
stringlengths
130
281k
code_dependency
stringlengths
182
306k
public class class_name { public static String quote(String s, boolean flag) { if (s == null) return "null"; //PM21395 starts if (flag){ s = s.replaceAll(""", "\""); } //PM21395 ends return '"' + escape(s) + '"'; } }
public class class_name { public static String quote(String s, boolean flag) { if (s == null) return "null"; //PM21395 starts if (flag){ s = s.replaceAll(""", "\""); // depends on control dependency: [if], data = [none] } //PM21395 ends retu...
public class class_name { private Geometry makePolygonValid(Polygon polygon) { //This first step analyze linear components and create degenerate geometries //of dimension 0 or 1 if they do not form valid LinearRings //If degenerate geometries are found, it may produce a GeometryCollection with ...
public class class_name { private Geometry makePolygonValid(Polygon polygon) { //This first step analyze linear components and create degenerate geometries //of dimension 0 or 1 if they do not form valid LinearRings //If degenerate geometries are found, it may produce a GeometryCollection with ...
public class class_name { public static List<String> getUiExtensionsRunningIssues(AddOn.AddOnRunRequirements requirements, AddOnSearcher addOnSearcher) { if (!requirements.hasExtensionsWithRunningIssues()) { return new ArrayList<>(0); } List<String> issues = new ArrayList<>(10); ...
public class class_name { public static List<String> getUiExtensionsRunningIssues(AddOn.AddOnRunRequirements requirements, AddOnSearcher addOnSearcher) { if (!requirements.hasExtensionsWithRunningIssues()) { return new ArrayList<>(0); // depends on control dependency: [if], data = [none] } ...
public class class_name { @Override public void destroy() { try { ContextClassLoaderUtils.doWithClassLoader(jasperClassLoader, new Callable<Void>() { @Override public Void call() throws Exception { jasperServlet.destroy(); return null; } }); //CHECKSTYL...
public class class_name { @Override public void destroy() { try { ContextClassLoaderUtils.doWithClassLoader(jasperClassLoader, new Callable<Void>() { @Override public Void call() throws Exception { jasperServlet.destroy(); return null; } }); // depends on ...
public class class_name { public RouteMethod attributes(Map<String, Object> attributes) { if (attributes != null) { if (this.attributes == null) { this.attributes = new LinkedHashMap<>(); } this.attributes.putAll(attributes); } return this; } }
public class class_name { public RouteMethod attributes(Map<String, Object> attributes) { if (attributes != null) { if (this.attributes == null) { this.attributes = new LinkedHashMap<>(); // depends on control dependency: [if], data = [none] } this.attributes.putAll(attributes); // depend...
public class class_name { private String buildHandlingMethodName(final EnumEventType annotationType) { final StringBuilder methodName = new StringBuilder(); if (Arrays.asList(getAnnotationValue()).contains(annotationType)) { // Lower case the first letter of the annotation name ...
public class class_name { private String buildHandlingMethodName(final EnumEventType annotationType) { final StringBuilder methodName = new StringBuilder(); if (Arrays.asList(getAnnotationValue()).contains(annotationType)) { // Lower case the first letter of the annotation name ...
public class class_name { static void escapePressed() { final Component focusOwner = getPermanentFocusOwner(); final Window focusedWindow = SwingUtilities.getWindowAncestor(focusOwner); if (focusedWindow instanceof Dialog && ((Dialog) focusedWindow).isModal()) { // try { // final Robot robot = ne...
public class class_name { static void escapePressed() { final Component focusOwner = getPermanentFocusOwner(); final Window focusedWindow = SwingUtilities.getWindowAncestor(focusOwner); if (focusedWindow instanceof Dialog && ((Dialog) focusedWindow).isModal()) { // try { // final Robot robot = ne...
public class class_name { public static boolean resetPrefixLength(JcsegTaskConfig config, ADictionary dic, int mixLength) { if ( mixLength <= config.MAX_LENGTH && mixLength > dic.mixPrefixLength ) { dic.mixPrefixLength = mixLength; return true; } ...
public class class_name { public static boolean resetPrefixLength(JcsegTaskConfig config, ADictionary dic, int mixLength) { if ( mixLength <= config.MAX_LENGTH && mixLength > dic.mixPrefixLength ) { dic.mixPrefixLength = mixLength; // depends on control dependency: [if], data =...
public class class_name { public void marshall(InstanceIdentity instanceIdentity, ProtocolMarshaller protocolMarshaller) { if (instanceIdentity == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(inst...
public class class_name { public void marshall(InstanceIdentity instanceIdentity, ProtocolMarshaller protocolMarshaller) { if (instanceIdentity == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(inst...
public class class_name { @Override public void init() { loadConfig(); if (!isEnabled()) { return; } try { String actorStr = format(ACTOR_FORMAT, actorName, actorEmail); // Setup GET params... List<BasicNameValuePair> getParams = ne...
public class class_name { @Override public void init() { loadConfig(); if (!isEnabled()) { return; // depends on control dependency: [if], data = [none] } try { String actorStr = format(ACTOR_FORMAT, actorName, actorEmail); // Setup GET params....
public class class_name { static public Date getStandardOrISO(String text) { Date result = getStandardDate(text); if (result == null) { DateFormatter formatter = new DateFormatter(); result = formatter.getISODate(text); } return result; } }
public class class_name { static public Date getStandardOrISO(String text) { Date result = getStandardDate(text); if (result == null) { DateFormatter formatter = new DateFormatter(); result = formatter.getISODate(text); // depends on control dependency: [if], data = [none] } return re...
public class class_name { private Vector get_hierarchy() { synchronized (this) { final Vector h = new Vector(); final Iterator it = elements.iterator(); while (it.hasNext()) { final GroupElement e = (GroupElement) it.next(); if (e instanceof GroupDeviceElement) { h.add(e); } else { h....
public class class_name { private Vector get_hierarchy() { synchronized (this) { final Vector h = new Vector(); final Iterator it = elements.iterator(); while (it.hasNext()) { final GroupElement e = (GroupElement) it.next(); if (e instanceof GroupDeviceElement) { h.add(e); // depends on contr...
public class class_name { public static ODatabaseDocument castToODatabaseDocument(ODatabase<?> db) { while(db!=null && !(db instanceof ODatabaseDocument)) { if(db instanceof ODatabaseInternal<?>) { db = ((ODatabaseInternal<?>)db).getUnderlying(); } } return (ODatabaseDocument)db; } }
public class class_name { public static ODatabaseDocument castToODatabaseDocument(ODatabase<?> db) { while(db!=null && !(db instanceof ODatabaseDocument)) { if(db instanceof ODatabaseInternal<?>) { db = ((ODatabaseInternal<?>)db).getUnderlying(); // depends on control dependency: [if], data = [)] } ...
public class class_name { public static void removeThreadIdentityService(ThreadIdentityService tis) { if (tis != null) { threadIdentityServices.remove(tis); if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "A ThreadIdentityService implement...
public class class_name { public static void removeThreadIdentityService(ThreadIdentityService tis) { if (tis != null) { threadIdentityServices.remove(tis); // depends on control dependency: [if], data = [(tis] if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { ...
public class class_name { public EClass getIDESize() { if (ideSizeEClass == null) { ideSizeEClass = (EClass)EPackage.Registry.INSTANCE.getEPackage(AfplibPackage.eNS_URI).getEClassifiers().get(389); } return ideSizeEClass; } }
public class class_name { public EClass getIDESize() { if (ideSizeEClass == null) { ideSizeEClass = (EClass)EPackage.Registry.INSTANCE.getEPackage(AfplibPackage.eNS_URI).getEClassifiers().get(389); // depends on control dependency: [if], data = [none] } return ideSizeEClass; } }
public class class_name { @Override public void writeCookieValue(CookieValue cookieValue) { HttpServletRequest request = cookieValue.getRequest(); HttpServletResponse response = cookieValue.getResponse(); StringBuilder sb = new StringBuilder(); sb.append(this.cookieName).append('='); String value = getValu...
public class class_name { @Override public void writeCookieValue(CookieValue cookieValue) { HttpServletRequest request = cookieValue.getRequest(); HttpServletResponse response = cookieValue.getResponse(); StringBuilder sb = new StringBuilder(); sb.append(this.cookieName).append('='); String value = getValu...
public class class_name { protected List<SparseItemset> frequentItemsetsSparse(List<SparseItemset> candidates, Relation<BitVector> relation, int needed, DBIDs ids, ArrayModifiableDBIDs survivors, int length) { // Current search interval: int begin = 0, end = candidates.size(); int[] scratchi = new int[leng...
public class class_name { protected List<SparseItemset> frequentItemsetsSparse(List<SparseItemset> candidates, Relation<BitVector> relation, int needed, DBIDs ids, ArrayModifiableDBIDs survivors, int length) { // Current search interval: int begin = 0, end = candidates.size(); int[] scratchi = new int[leng...
public class class_name { DeleteResult deleteOne(final MongoNamespace namespace, final Bson filter) { this.waitUntilInitialized(); try { ongoingOperationsGroup.enter(); final ChangeEvent<BsonDocument> event; final DeleteResult result; final NamespaceSynchronizationConfig nsConfig = ...
public class class_name { DeleteResult deleteOne(final MongoNamespace namespace, final Bson filter) { this.waitUntilInitialized(); try { ongoingOperationsGroup.enter(); // depends on control dependency: [try], data = [none] final ChangeEvent<BsonDocument> event; final DeleteResult result; ...
public class class_name { @CommandHandler public void handle(StartTransactionCommand command, MetaData metaData) { if (command.getStartTransactionInfo().getEvseId().getNumberedId() > numberOfEvses) { apply(new EvseNotFoundEvent(id, command.getStartTransactionInfo().getEvseId(), command.getIdent...
public class class_name { @CommandHandler public void handle(StartTransactionCommand command, MetaData metaData) { if (command.getStartTransactionInfo().getEvseId().getNumberedId() > numberOfEvses) { apply(new EvseNotFoundEvent(id, command.getStartTransactionInfo().getEvseId(), command.getIdent...
public class class_name { public FireableEventType getEventId(EventLookupFacility eventLookupFacility, Request request, boolean inDialogActivity) { final String requestMethod = request.getMethod(); // Cancel is always the same. if (requestMethod.equals(Request.CANCEL)) inDialogActivity = false; Fire...
public class class_name { public FireableEventType getEventId(EventLookupFacility eventLookupFacility, Request request, boolean inDialogActivity) { final String requestMethod = request.getMethod(); // Cancel is always the same. if (requestMethod.equals(Request.CANCEL)) inDialogActivity = false; Fire...
public class class_name { @SuppressWarnings("unchecked") public <T extends Tag> Set<T> getOfType(final Class<T> type) { read.lock(); try { final Set<T> tagsOfType = (Set<T>) tags.get(type); return tagsOfType != null ? Collections.unmodifiableSet(tagsOfType) : Collections.emptySet(); } finally { r...
public class class_name { @SuppressWarnings("unchecked") public <T extends Tag> Set<T> getOfType(final Class<T> type) { read.lock(); try { final Set<T> tagsOfType = (Set<T>) tags.get(type); return tagsOfType != null ? Collections.unmodifiableSet(tagsOfType) : Collections.emptySet(); // depends on contr...
public class class_name { @Override public void setBean(final Object bean) { BeanAndProviderBoundComponentModel model = getOrCreateComponentModel(); model.setBean(bean); if (getBeanProperty() == null) { setBeanProperty("."); } // Remove values in scratch map removeBeanFromScratchMap(); } }
public class class_name { @Override public void setBean(final Object bean) { BeanAndProviderBoundComponentModel model = getOrCreateComponentModel(); model.setBean(bean); if (getBeanProperty() == null) { setBeanProperty("."); // depends on control dependency: [if], data = [none] } // Remove values in scr...
public class class_name { private static void statFile(String fname) { try { Path path = Paths.get(new URI(fname)); long size = Files.size(path); System.out.println(fname + ": " + size + " bytes."); } catch (Exception ex) { System.out.println(fname + ": " + ex.toString()); } } }
public class class_name { private static void statFile(String fname) { try { Path path = Paths.get(new URI(fname)); long size = Files.size(path); System.out.println(fname + ": " + size + " bytes."); // depends on control dependency: [try], data = [none] } catch (Exception ex) { System.o...
public class class_name { @Transactional public static ServiceManagementRecord updateServiceManagementRecord(EntityManager em, ServiceManagementRecord record) { SystemAssert.requireArgument(em != null, "Entity manager can not be null."); SystemAssert.requireArgument(record != null, "ServiceManageme...
public class class_name { @Transactional public static ServiceManagementRecord updateServiceManagementRecord(EntityManager em, ServiceManagementRecord record) { SystemAssert.requireArgument(em != null, "Entity manager can not be null."); SystemAssert.requireArgument(record != null, "ServiceManageme...
public class class_name { public <ATTRIBUTE> OptionalThing<ATTRIBUTE> getAttribute(String key, Class<ATTRIBUTE> attributeType) { assertArgumentNotNull("key", key); assertArgumentNotNull("attributeType", attributeType); final Object original = findSuccessAttribute(key); final ATTRIBUTE a...
public class class_name { public <ATTRIBUTE> OptionalThing<ATTRIBUTE> getAttribute(String key, Class<ATTRIBUTE> attributeType) { assertArgumentNotNull("key", key); assertArgumentNotNull("attributeType", attributeType); final Object original = findSuccessAttribute(key); final ATTRIBUTE a...
public class class_name { long expireAfterCreate(@Nullable K key, @Nullable V value, Expiry<K, V> expiry, long now) { if (expiresVariable() && (key != null) && (value != null)) { long duration = expiry.expireAfterCreate(key, value, now); return isAsync ? (now + duration) : (now + Math.min(duration, MAX...
public class class_name { long expireAfterCreate(@Nullable K key, @Nullable V value, Expiry<K, V> expiry, long now) { if (expiresVariable() && (key != null) && (value != null)) { long duration = expiry.expireAfterCreate(key, value, now); return isAsync ? (now + duration) : (now + Math.min(duration, MAX...
public class class_name { @Override public void removeByUuid(String uuid) { for (CommerceOrder commerceOrder : findByUuid(uuid, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) { remove(commerceOrder); } } }
public class class_name { @Override public void removeByUuid(String uuid) { for (CommerceOrder commerceOrder : findByUuid(uuid, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) { remove(commerceOrder); // depends on control dependency: [for], data = [commerceOrder] } } }
public class class_name { private static String processMsgPartsHelper( ImmutableList<SoyMsgPart> parts, Function<String, String> escaper) { StringBuilder rawMsgTextSb = new StringBuilder(); for (SoyMsgPart part : parts) { if (part instanceof SoyMsgRawTextPart) { rawMsgTextSb.append(escaper....
public class class_name { private static String processMsgPartsHelper( ImmutableList<SoyMsgPart> parts, Function<String, String> escaper) { StringBuilder rawMsgTextSb = new StringBuilder(); for (SoyMsgPart part : parts) { if (part instanceof SoyMsgRawTextPart) { rawMsgTextSb.append(escaper....
public class class_name { private int getHuffmanValue(final int table[], final int temp[], final int index[]) throws IOException { int code, input; final int mask = 0xFFFF; if (index[0] < 8) { temp[0] <<= 8; input = this.input.readUnsignedByte(); if (input =...
public class class_name { private int getHuffmanValue(final int table[], final int temp[], final int index[]) throws IOException { int code, input; final int mask = 0xFFFF; if (index[0] < 8) { temp[0] <<= 8; input = this.input.readUnsignedByte(); if (input =...
public class class_name { public static String separatorsToSystem(String path) { if (path == null) { return null; } if (EnvUtil.isWindows()) { return separatorsToWindows(path); } else { return separatorsToUnix(path); } } }
public class class_name { public static String separatorsToSystem(String path) { if (path == null) { return null; // depends on control dependency: [if], data = [none] } if (EnvUtil.isWindows()) { return separatorsToWindows(path); // depends on control dependency: [if], data = [none] } else { return s...
public class class_name { public View onViewCreated(View view, Context context, AttributeSet attrs) { if (view == null) { return null; } view = onViewCreatedInternal(view, context, attrs); for (OnViewCreatedListener listener : otherListeners) { if (listener != null) { view = listen...
public class class_name { public View onViewCreated(View view, Context context, AttributeSet attrs) { if (view == null) { return null; // depends on control dependency: [if], data = [none] } view = onViewCreatedInternal(view, context, attrs); for (OnViewCreatedListener listener : otherListeners)...
public class class_name { public static void removeLegacyNonScopesFromMapping(Map<ScopeImpl, PvmExecutionImpl> mapping) { Map<PvmExecutionImpl, List<ScopeImpl>> scopesForExecutions = new HashMap<PvmExecutionImpl, List<ScopeImpl>>(); for (Map.Entry<ScopeImpl, PvmExecutionImpl> mappingEntry : mapping.entrySet()...
public class class_name { public static void removeLegacyNonScopesFromMapping(Map<ScopeImpl, PvmExecutionImpl> mapping) { Map<PvmExecutionImpl, List<ScopeImpl>> scopesForExecutions = new HashMap<PvmExecutionImpl, List<ScopeImpl>>(); for (Map.Entry<ScopeImpl, PvmExecutionImpl> mappingEntry : mapping.entrySet()...
public class class_name { @Override public void handle(CommandContext ctx, String commandLine) { // TODO Validate command if (commandLine.contains("--help")) { this.printHelp(commandLine, ctx); return; } String[] commands = commandLine.split(" "); ...
public class class_name { @Override public void handle(CommandContext ctx, String commandLine) { // TODO Validate command if (commandLine.contains("--help")) { this.printHelp(commandLine, ctx); // depends on control dependency: [if], data = [none] return; // depends on cont...
public class class_name { @Implementation protected boolean getPosTan(float distance, float pos[], float tan[]) { if ((pos != null && pos.length < 2) || (tan != null && tan.length < 2)) { throw new ArrayIndexOutOfBoundsException(); } // This is not mathematically correct, but the simulation keeps ...
public class class_name { @Implementation protected boolean getPosTan(float distance, float pos[], float tan[]) { if ((pos != null && pos.length < 2) || (tan != null && tan.length < 2)) { throw new ArrayIndexOutOfBoundsException(); } // This is not mathematically correct, but the simulation keeps ...
public class class_name { public TranslationMap doImport() { try { for (String locale : LOCALES) { TranslationHashMap trMap = new TranslationHashMap(getLocale(locale)); trMap.doImport(TranslationMap.class.getResourceAsStream(locale + ".txt")); add(trM...
public class class_name { public TranslationMap doImport() { try { for (String locale : LOCALES) { TranslationHashMap trMap = new TranslationHashMap(getLocale(locale)); trMap.doImport(TranslationMap.class.getResourceAsStream(locale + ".txt")); // depends on control d...
public class class_name { public static boolean includes(final Language language1, final Language language2) { if(language1==null || language2==null) { return false; } if(language1.isWildcard()) { return true; } if(language2.isWildcard()) { return false; } return language1.primaryTag().equals...
public class class_name { public static boolean includes(final Language language1, final Language language2) { if(language1==null || language2==null) { return false; // depends on control dependency: [if], data = [none] } if(language1.isWildcard()) { return true; // depends on control dependency: [if], dat...
public class class_name { protected CertPathValidatorResult validate(CertPath certPath) throws CertPathValidatorException { List<? extends Certificate> certificates = certPath.getCertificates(); if (certificates.size() == 0) { return null; } X509Certificate cert; T...
public class class_name { protected CertPathValidatorResult validate(CertPath certPath) throws CertPathValidatorException { List<? extends Certificate> certificates = certPath.getCertificates(); if (certificates.size() == 0) { return null; } X509Certificate cert; T...
public class class_name { public static List<ConnectionParams> manyFromConfig(ConfigParams config, boolean configAsDefault) { List<ConnectionParams> result = new ArrayList<ConnectionParams>(); // Try to get multiple connections first ConfigParams connections = config.getSection("connections"); if (connection...
public class class_name { public static List<ConnectionParams> manyFromConfig(ConfigParams config, boolean configAsDefault) { List<ConnectionParams> result = new ArrayList<ConnectionParams>(); // Try to get multiple connections first ConfigParams connections = config.getSection("connections"); if (connection...
public class class_name { protected void exportSchema(final String persistenceUnit, List<TableInfo> tables) { // Get persistence unit metadata this.puMetadata = kunderaMetadata.getApplicationMetadata().getPersistenceUnitMetadata(persistenceUnit); String paramString = externalProperties != n...
public class class_name { protected void exportSchema(final String persistenceUnit, List<TableInfo> tables) { // Get persistence unit metadata this.puMetadata = kunderaMetadata.getApplicationMetadata().getPersistenceUnitMetadata(persistenceUnit); String paramString = externalProperties != n...
public class class_name { public EClass getIfcBuildingElementPart() { if (ifcBuildingElementPartEClass == null) { ifcBuildingElementPartEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI) .getEClassifiers().get(57); } return ifcBuildingElementPartEClass; } }
public class class_name { public EClass getIfcBuildingElementPart() { if (ifcBuildingElementPartEClass == null) { ifcBuildingElementPartEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI) .getEClassifiers().get(57); // depends on control dependency: [if], data = [none] } ...
public class class_name { public ServiceCall<LogCollection> listLogs(ListLogsOptions listLogsOptions) { Validator.notNull(listLogsOptions, "listLogsOptions cannot be null"); String[] pathSegments = { "v1/workspaces", "logs" }; String[] pathParameters = { listLogsOptions.workspaceId() }; RequestBuilder ...
public class class_name { public ServiceCall<LogCollection> listLogs(ListLogsOptions listLogsOptions) { Validator.notNull(listLogsOptions, "listLogsOptions cannot be null"); String[] pathSegments = { "v1/workspaces", "logs" }; String[] pathParameters = { listLogsOptions.workspaceId() }; RequestBuilder ...
public class class_name { @Override public String marshall(Object value) { if( value == null ) { return "null"; } return KieExtendedDMNFunctions.getFunction(CodeFunction.class).invoke(value).cata(justNull(), Function.identity()); } }
public class class_name { @Override public String marshall(Object value) { if( value == null ) { return "null"; // depends on control dependency: [if], data = [none] } return KieExtendedDMNFunctions.getFunction(CodeFunction.class).invoke(value).cata(justNull(), Function.identity...
public class class_name { protected TaskInstance createTaskInstance() throws ActivityException { try { String taskTemplate = getAttributeValue(ATTRIBUTE_TASK_TEMPLATE); if (taskTemplate == null) throw new ActivityException("Missing attribute: " + ATTRIBUTE_TASK_TEMPLATE)...
public class class_name { protected TaskInstance createTaskInstance() throws ActivityException { try { String taskTemplate = getAttributeValue(ATTRIBUTE_TASK_TEMPLATE); if (taskTemplate == null) throw new ActivityException("Missing attribute: " + ATTRIBUTE_TASK_TEMPLATE)...
public class class_name { public static Instance findInstanceByPath( AbstractApplication application, String instancePath ) { Collection<Instance> currentList = new ArrayList<> (); if( application != null ) currentList.addAll( application.getRootInstances()); List<String> instanceNames = new ArrayList<> ();...
public class class_name { public static Instance findInstanceByPath( AbstractApplication application, String instancePath ) { Collection<Instance> currentList = new ArrayList<> (); if( application != null ) currentList.addAll( application.getRootInstances()); List<String> instanceNames = new ArrayList<> ();...
public class class_name { DatanodeCommand[] handleHeartbeat(DatanodeRegistration nodeReg, long capacity, long dfsUsed, long remaining, long namespaceUsed, int xceiverCount, int xmitsInProgress) throws IOException { DatanodeCommand cmd = nu...
public class class_name { DatanodeCommand[] handleHeartbeat(DatanodeRegistration nodeReg, long capacity, long dfsUsed, long remaining, long namespaceUsed, int xceiverCount, int xmitsInProgress) throws IOException { DatanodeCommand cmd = nu...
public class class_name { public static EventType map(Event event) { EventType eventType = new EventType(); eventType.setTimestamp(Converter.convertDate(event.getTimestamp())); eventType.setEventType(convertEventType(event.getEventType())); OriginatorType origType = mapOriginator(event....
public class class_name { public static EventType map(Event event) { EventType eventType = new EventType(); eventType.setTimestamp(Converter.convertDate(event.getTimestamp())); eventType.setEventType(convertEventType(event.getEventType())); OriginatorType origType = mapOriginator(event....
public class class_name { @Override public Fix replace(ExpressionTemplateMatch match) { Inliner inliner = match.createInliner(); Context context = inliner.getContext(); if (annotations().containsKey(UseImportPolicy.class)) { ImportPolicy.bind(context, annotations().getInstance(UseImportPolicy.class...
public class class_name { @Override public Fix replace(ExpressionTemplateMatch match) { Inliner inliner = match.createInliner(); Context context = inliner.getContext(); if (annotations().containsKey(UseImportPolicy.class)) { ImportPolicy.bind(context, annotations().getInstance(UseImportPolicy.class...
public class class_name { public synchronized void initialize() { if (!isInitialized()) { fillMethodIndex(); try { addProperties(); } catch (Throwable e) { if (!AndroidSupport.isRunningAndroid()) { ExceptionUtils.sneakyThro...
public class class_name { public synchronized void initialize() { if (!isInitialized()) { fillMethodIndex(); // depends on control dependency: [if], data = [none] try { addProperties(); // depends on control dependency: [try], data = [none] } catch (Throwable...
public class class_name { public static ClassLoader getParaClassLoader() { if (paraClassLoader == null) { try { ClassLoader currentClassLoader = Thread.currentThread().getContextClassLoader(); List<URL> jars = new ArrayList<>(); File lib = new File(Config.getConfigParam("plugin_folder", "lib/")); ...
public class class_name { public static ClassLoader getParaClassLoader() { if (paraClassLoader == null) { try { ClassLoader currentClassLoader = Thread.currentThread().getContextClassLoader(); List<URL> jars = new ArrayList<>(); File lib = new File(Config.getConfigParam("plugin_folder", "lib/")); ...
public class class_name { public static PoolInfoStrings createPoolInfoStrings(PoolInfo poolInfo) { if (poolInfo == null) { return null; } return new PoolInfoStrings(poolInfo.getPoolGroupName(), poolInfo.getPoolName()); } }
public class class_name { public static PoolInfoStrings createPoolInfoStrings(PoolInfo poolInfo) { if (poolInfo == null) { return null; // depends on control dependency: [if], data = [none] } return new PoolInfoStrings(poolInfo.getPoolGroupName(), poolInfo.getPoolName(...
public class class_name { @Override public EClass getIfcStructuralSurfaceAction() { if (ifcStructuralSurfaceActionEClass == null) { ifcStructuralSurfaceActionEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI) .getEClassifiers().get(660); } return ifcStructuralSurfaceActi...
public class class_name { @Override public EClass getIfcStructuralSurfaceAction() { if (ifcStructuralSurfaceActionEClass == null) { ifcStructuralSurfaceActionEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI) .getEClassifiers().get(660); // depends on control dependency: [if]...
public class class_name { public static String loadResourceFile(FacesContext ctx, String file) { ByteArrayOutputStream content = new ByteArrayOutputStream(10240); InputStream in = null; try { in = ctx.getExternalContext().getResourceAsStream(file); if (in =...
public class class_name { public static String loadResourceFile(FacesContext ctx, String file) { ByteArrayOutputStream content = new ByteArrayOutputStream(10240); InputStream in = null; try { in = ctx.getExternalContext().getResourceAsStream(file); // depends on contro...
public class class_name { private static byte[] readInputStream(byte[] buf, InputStream s) throws IOException { try { buf = ensureCapacity(buf, s.available()); int r = s.read(buf); int bp = 0; while (r != -1) { bp += r; ...
public class class_name { private static byte[] readInputStream(byte[] buf, InputStream s) throws IOException { try { buf = ensureCapacity(buf, s.available()); int r = s.read(buf); int bp = 0; while (r != -1) { bp += r; ...
public class class_name { @Override protected void handleEvents(final String EVENT_TYPE) { super.handleEvents(EVENT_TYPE); if ("VISIBILITY".equals(EVENT_TYPE)) { Helper.enableNode(titleText, !tile.getTitle().isEmpty()); Helper.enableNode(text, tile.isTextVisible()); ...
public class class_name { @Override protected void handleEvents(final String EVENT_TYPE) { super.handleEvents(EVENT_TYPE); if ("VISIBILITY".equals(EVENT_TYPE)) { Helper.enableNode(titleText, !tile.getTitle().isEmpty()); // depends on control dependency: [if], data = [none] Help...
public class class_name { @Override public int encode ( byte[] dst, int dstIndex ) { int start = dstIndex; SMBUtil.writeInt4(this.capabilities, dst, dstIndex); dstIndex += 4; System.arraycopy(this.clientGuid, 0, dst, dstIndex, 16); dstIndex += 16; SMBUtil.writeInt...
public class class_name { @Override public int encode ( byte[] dst, int dstIndex ) { int start = dstIndex; SMBUtil.writeInt4(this.capabilities, dst, dstIndex); dstIndex += 4; System.arraycopy(this.clientGuid, 0, dst, dstIndex, 16); dstIndex += 16; SMBUtil.writeInt...
public class class_name { public void processRequest(RequestContext context, RequestSecurityProcessorChain processorChain) throws Exception { if (isLogoutRequest(context.getRequest())) { logger.debug("Processing logout request"); Authentication auth = SecurityUtils.getAuthentication(co...
public class class_name { public void processRequest(RequestContext context, RequestSecurityProcessorChain processorChain) throws Exception { if (isLogoutRequest(context.getRequest())) { logger.debug("Processing logout request"); Authentication auth = SecurityUtils.getAuthentication(co...
public class class_name { public TypeMirror unaryNumericPromotion(TypeMirror type) { TypeKind t = type.getKind(); if (t == TypeKind.DECLARED) { type = javacTypes.unboxedType(type); t = type.getKind(); } if (t == TypeKind.BYTE || t == TypeKind.SHORT || t == TypeKind.CHAR) { return getI...
public class class_name { public TypeMirror unaryNumericPromotion(TypeMirror type) { TypeKind t = type.getKind(); if (t == TypeKind.DECLARED) { type = javacTypes.unboxedType(type); // depends on control dependency: [if], data = [(t] t = type.getKind(); // depends on control dependency: [if], data =...
public class class_name { public void onCloseConnection() { try { finishRequest(); } catch (Exception e) { log.log(Level.FINE, e.toString(), e); } HttpBufferStore httpBuffer = _largeHttpBuffer; _largeHttpBuffer = null; if (httpBuffer != null) { http().freeHttpBuf...
public class class_name { public void onCloseConnection() { try { finishRequest(); // depends on control dependency: [try], data = [none] } catch (Exception e) { log.log(Level.FINE, e.toString(), e); } // depends on control dependency: [catch], data = [none] HttpBufferStore httpBuffe...
public class class_name { <E extends BaseClient> Observable<E> initialise(@NonNull final Application application, @NonNull final E instance, @NonNull final CallbackAdapter adapter) { if (state.compareAndSet(GlobalState.NOT_INITIALISED, GlobalState.INITIALISING)) { return init(application, adapter...
public class class_name { <E extends BaseClient> Observable<E> initialise(@NonNull final Application application, @NonNull final E instance, @NonNull final CallbackAdapter adapter) { if (state.compareAndSet(GlobalState.NOT_INITIALISED, GlobalState.INITIALISING)) { return init(application, adapter...
public class class_name { private void insertAction(final Element subTree, final QName attName, final Action action) { if (subTree == null || action == null) { return; } final LinkedList<Element> queue = new LinkedList<>(); // Skip the sub-tree root because it has been add...
public class class_name { private void insertAction(final Element subTree, final QName attName, final Action action) { if (subTree == null || action == null) { return; // depends on control dependency: [if], data = [none] } final LinkedList<Element> queue = new LinkedList<>(); ...
public class class_name { public void transformPacket(RawPacket pkt) { boolean encrypt = false; // Encrypt the packet using Counter Mode encryption if (policy.getEncType() == SRTPPolicy.AESCM_ENCRYPTION || policy.getEncType() == SRTPPolicy.TWOFISH_ENCRYPTION) { processPacketAESC...
public class class_name { public void transformPacket(RawPacket pkt) { boolean encrypt = false; // Encrypt the packet using Counter Mode encryption if (policy.getEncType() == SRTPPolicy.AESCM_ENCRYPTION || policy.getEncType() == SRTPPolicy.TWOFISH_ENCRYPTION) { processPacketAESC...
public class class_name { public static CmsDriverManager newInstance( CmsConfigurationManager configurationManager, CmsSecurityManager securityManager, I_CmsDbContextFactory runtimeInfoFactory, CmsPublishEngine publishEngine) throws CmsInitException { // read the opencms.pr...
public class class_name { public static CmsDriverManager newInstance( CmsConfigurationManager configurationManager, CmsSecurityManager securityManager, I_CmsDbContextFactory runtimeInfoFactory, CmsPublishEngine publishEngine) throws CmsInitException { // read the opencms.pr...
public class class_name { private OutputStream initializeSource() { try { PipedOutputStream pipeOut = new PipedOutputStream(); PipedInputStream pipeIn = new PipedInputStream( pipeOut); filterInput_ = pipeIn; return new FilterSourceStream( pipeOut); } catch( Exception e)...
public class class_name { private OutputStream initializeSource() { try { PipedOutputStream pipeOut = new PipedOutputStream(); PipedInputStream pipeIn = new PipedInputStream( pipeOut); filterInput_ = pipeIn; // depends on control dependency: [try], data = [none] return new Filter...
public class class_name { public void setSortDirection(final SortDirection _sortdirection) { this.sortDirection = _sortdirection; try { Context.getThreadContext().setUserAttribute(getCacheKey(UserCacheKey.SORTDIRECTION), _sortdirection.getValue()); } ...
public class class_name { public void setSortDirection(final SortDirection _sortdirection) { this.sortDirection = _sortdirection; try { Context.getThreadContext().setUserAttribute(getCacheKey(UserCacheKey.SORTDIRECTION), _sortdirection.getValue()); // depends...
public class class_name { public Set<Class<?>> scan() { for (URL url : ResourceUtil.getResourceIter(this.packagePath)) { switch (url.getProtocol()) { case "file": scanFile(new File(URLUtil.decode(url.getFile(), this.charset.name())), null); break; case "jar": scanJar(URLUtil.getJarFile(ur...
public class class_name { public Set<Class<?>> scan() { for (URL url : ResourceUtil.getResourceIter(this.packagePath)) { switch (url.getProtocol()) { case "file": scanFile(new File(URLUtil.decode(url.getFile(), this.charset.name())), null); break; case "jar": scanJar(URLUtil.getJarFile(ur...
public class class_name { private Deferred<byte[]> hbaseGet(final byte[] key, final byte[] family) { final GetRequest get = new GetRequest(table, key); get.family(family).qualifier(kind); class GetCB implements Callback<byte[], ArrayList<KeyValue>> { public byte[] call(final ArrayList<KeyValue> row) ...
public class class_name { private Deferred<byte[]> hbaseGet(final byte[] key, final byte[] family) { final GetRequest get = new GetRequest(table, key); get.family(family).qualifier(kind); class GetCB implements Callback<byte[], ArrayList<KeyValue>> { public byte[] call(final ArrayList<KeyValue> row) ...
public class class_name { public int getWidth(Attribute attr) { State state; state = lookup(attr); if (state == null) { return 1; } else { return state.maxOcc; } } }
public class class_name { public int getWidth(Attribute attr) { State state; state = lookup(attr); if (state == null) { return 1; // depends on control dependency: [if], data = [none] } else { return state.maxOcc; // depends on control dependency: [if], data = [...
public class class_name { @Override public EClass getIfcWarpingMomentMeasure() { if (ifcWarpingMomentMeasureEClass == null) { ifcWarpingMomentMeasureEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI) .getEClassifiers().get(894); } return ifcWarpingMomentMeasureEClass; ...
public class class_name { @Override public EClass getIfcWarpingMomentMeasure() { if (ifcWarpingMomentMeasureEClass == null) { ifcWarpingMomentMeasureEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI) .getEClassifiers().get(894); // depends on control dependency: [if], data = ...
public class class_name { private static List<String> getElementsId(List<Element> elementList) { List<String> result = new ArrayList<String>(); for (Element element : elementList) { result.add(element.getAttribute("id")); } return result; } }
public class class_name { private static List<String> getElementsId(List<Element> elementList) { List<String> result = new ArrayList<String>(); for (Element element : elementList) { result.add(element.getAttribute("id")); // depends on control dependency: [for], data = [element] ...
public class class_name { public ToStringBuilder appendToString(final String toString) { if (toString != null) { style.appendToString(buffer, toString); } return this; } }
public class class_name { public ToStringBuilder appendToString(final String toString) { if (toString != null) { style.appendToString(buffer, toString); // depends on control dependency: [if], data = [none] } return this; } }
public class class_name { public byte getByte(String key, byte defaultValue) { addToDefaults(key, Byte.toString(defaultValue)); String value = get(key); if (value == null) { return defaultValue; } else { return Byte.valueOf(value); } } }
public class class_name { public byte getByte(String key, byte defaultValue) { addToDefaults(key, Byte.toString(defaultValue)); String value = get(key); if (value == null) { return defaultValue; // depends on control dependency: [if], data = [none] } else { return Byte.valueOf(value); // depends on contr...
public class class_name { public static void closeQuietly(final ResultSet rs, final Statement stmt, final Connection conn) { if (rs != null) { try { rs.close(); } catch (Exception e) { logger.error("Failed to close ResultSet", e); } ...
public class class_name { public static void closeQuietly(final ResultSet rs, final Statement stmt, final Connection conn) { if (rs != null) { try { rs.close(); // depends on control dependency: [try], data = [none] } catch (Exception e) { logger.err...
public class class_name { private void buildOperationTitle(MarkupDocBuilder markupDocBuilder, String title, String anchor) { if (config.getPathsGroupedBy() == GroupBy.AS_IS) { markupDocBuilder.sectionTitleWithAnchorLevel2(title, anchor); } else { markupDocBuilder.sectionTitleWit...
public class class_name { private void buildOperationTitle(MarkupDocBuilder markupDocBuilder, String title, String anchor) { if (config.getPathsGroupedBy() == GroupBy.AS_IS) { markupDocBuilder.sectionTitleWithAnchorLevel2(title, anchor); // depends on control dependency: [if], data = [none] ...
public class class_name { public T getSingleValue() { List<T> values = getSelectedValue(); if (!values.isEmpty()) { return values.get(0); } return null; } }
public class class_name { public T getSingleValue() { List<T> values = getSelectedValue(); if (!values.isEmpty()) { return values.get(0); // depends on control dependency: [if], data = [none] } return null; } }
public class class_name { public void marshall(BatchSuspendUserRequest batchSuspendUserRequest, ProtocolMarshaller protocolMarshaller) { if (batchSuspendUserRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMar...
public class class_name { public void marshall(BatchSuspendUserRequest batchSuspendUserRequest, ProtocolMarshaller protocolMarshaller) { if (batchSuspendUserRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMar...
public class class_name { protected void initialize() { rows = cols = (int)Math.sqrt(matrix.length); map = new int[levels]; for (int i = 0; i < levels; i++) { int v = 255 * i / (levels-1); map[i] = v; } div = new int[256]; mod = new int[256]; int rc = (rows*cols+1); for (int i = 0; i < 256; i++) ...
public class class_name { protected void initialize() { rows = cols = (int)Math.sqrt(matrix.length); map = new int[levels]; for (int i = 0; i < levels; i++) { int v = 255 * i / (levels-1); map[i] = v; // depends on control dependency: [for], data = [i] } div = new int[256]; mod = new int[256]; int ...
public class class_name { public String toJson() { build(); try { return JsonSerializer.toString(this); } catch (IOException e) { throw new IndexException(e, "Unformateable JSON search: {}", e.getMessage()); } } }
public class class_name { public String toJson() { build(); try { return JsonSerializer.toString(this); // depends on control dependency: [try], data = [none] } catch (IOException e) { throw new IndexException(e, "Unformateable JSON search: {}", e.getMessage()); ...
public class class_name { public void scheduleReconnect() { logger.debug("{} scheduleReconnect()", logPrefix()); if (!isEventLoopGroupActive()) { logger.debug("isEventLoopGroupActive() == false"); return; } if (!isListenOnChannelInactive()) { logge...
public class class_name { public void scheduleReconnect() { logger.debug("{} scheduleReconnect()", logPrefix()); if (!isEventLoopGroupActive()) { logger.debug("isEventLoopGroupActive() == false"); // depends on control dependency: [if], data = [none] return; // depends on cont...
public class class_name { @Override public <V> V until(Function<? super T, V> isTrue) { Instant end = clock.instant().plus(timeout); Throwable lastException; while (true) { try { V value = isTrue.apply(input); if (value != null && (Boolean.class != value.getClass() || Boolean.TRUE....
public class class_name { @Override public <V> V until(Function<? super T, V> isTrue) { Instant end = clock.instant().plus(timeout); Throwable lastException; while (true) { try { V value = isTrue.apply(input); if (value != null && (Boolean.class != value.getClass() || Boolean.TRUE....
public class class_name { private static boolean compareAnnotatedParameters(List<? extends AnnotatedParameter<?>> p1, List<? extends AnnotatedParameter<?>> p2) { if (p1.size() != p2.size()) { return false; } for (int i = 0; i < p1.size(); ++i) { if (!compareAnnotated(p1....
public class class_name { private static boolean compareAnnotatedParameters(List<? extends AnnotatedParameter<?>> p1, List<? extends AnnotatedParameter<?>> p2) { if (p1.size() != p2.size()) { return false; } for (int i = 0; i < p1.size(); ++i) { if (!compareAnnotated(p1....
public class class_name { protected void append(String v, int start, int end) { try { writer.write(v, start, end - start); } catch (Exception e) { throw MwsUtl.wrap(e); } } }
public class class_name { protected void append(String v, int start, int end) { try { writer.write(v, start, end - start); // depends on control dependency: [try], data = [none] } catch (Exception e) { throw MwsUtl.wrap(e); } // depends on control dependency: [catch], da...
public class class_name { private void decodeEndRule() { useDaylight = (startDay != 0) && (endDay != 0); if (useDaylight && dst == 0) { dst = Grego.MILLIS_PER_DAY; } if (endDay != 0) { if (endMonth < Calendar.JANUARY || endMonth > Calendar.DECEMBER) { ...
public class class_name { private void decodeEndRule() { useDaylight = (startDay != 0) && (endDay != 0); if (useDaylight && dst == 0) { dst = Grego.MILLIS_PER_DAY; // depends on control dependency: [if], data = [none] } if (endDay != 0) { if (endMonth < Calendar....
public class class_name { private static void setValue(Postcard postcard, Integer typeDef, String key, String value) { if (TextUtils.isEmpty(key) || TextUtils.isEmpty(value)) { return; } try { if (null != typeDef) { if (typeDef == TypeKind.BOOLEAN.ordina...
public class class_name { private static void setValue(Postcard postcard, Integer typeDef, String key, String value) { if (TextUtils.isEmpty(key) || TextUtils.isEmpty(value)) { return; // depends on control dependency: [if], data = [none] } try { if (null != typeDef) { ...
public class class_name { public ByteBuf encode(GatewayMessage message) throws MessageCodecException { ByteBuf byteBuf = ByteBufAllocator.DEFAULT.buffer(); try (JsonGenerator generator = jsonFactory.createGenerator( (OutputStream) new ByteBufOutputStream(byteBuf), JsonEncoding.UTF8)) { ...
public class class_name { public ByteBuf encode(GatewayMessage message) throws MessageCodecException { ByteBuf byteBuf = ByteBufAllocator.DEFAULT.buffer(); try (JsonGenerator generator = jsonFactory.createGenerator( (OutputStream) new ByteBufOutputStream(byteBuf), JsonEncoding.UTF8)) { ...
public class class_name { public static <T> boolean removeIf(Iterable<T> iterable, Predicate<? super T> predicate) { if (iterable instanceof MutableCollection) { return ((MutableCollection<T>) iterable).removeIf(predicate); } if (iterable instanceof ArrayList) { ...
public class class_name { public static <T> boolean removeIf(Iterable<T> iterable, Predicate<? super T> predicate) { if (iterable instanceof MutableCollection) { return ((MutableCollection<T>) iterable).removeIf(predicate); // depends on control dependency: [if], data = [none] }...
public class class_name { @Override public EtlResult etl(String task, List<String> params) { EtlResult etlResult = new EtlResult(); MappingConfig config = rdbMapping.get(task); RdbEtlService rdbEtlService = new RdbEtlService(dataSource, config); if (config != null) { ...
public class class_name { @Override public EtlResult etl(String task, List<String> params) { EtlResult etlResult = new EtlResult(); MappingConfig config = rdbMapping.get(task); RdbEtlService rdbEtlService = new RdbEtlService(dataSource, config); if (config != null) { ...
public class class_name { private Statement createStatement(Connection con, boolean scrollable, int explicitFetchSizeHint) throws java.sql.SQLException { Statement result; try { // if necessary use JDBC1.0 methods if (!FORCEJDBC1_0) { ...
public class class_name { private Statement createStatement(Connection con, boolean scrollable, int explicitFetchSizeHint) throws java.sql.SQLException { Statement result; try { // if necessary use JDBC1.0 methods if (!FORCEJDBC1_0) { ...
public class class_name { @Override public void onMessageReceived(MessageReceivedEvent event) { //These are provided with every event in JDA JDA jda = event.getJDA(); //JDA, the core of the api. long responseNumber = event.getResponseNumber();//The amount of discor...
public class class_name { @Override public void onMessageReceived(MessageReceivedEvent event) { //These are provided with every event in JDA JDA jda = event.getJDA(); //JDA, the core of the api. long responseNumber = event.getResponseNumber();//The amount of discor...
public class class_name { @SafeVarargs public static Method getDeclaredMethod(final Class<?> cls, final String methodName, final Class<?>... parameterTypes) { Map<String, Map<Class<?>[], Method>> methodNamePool = classDeclaredMethodPool.get(cls); Map<Class<?>[], Method> methodPool = methodNamePo...
public class class_name { @SafeVarargs public static Method getDeclaredMethod(final Class<?> cls, final String methodName, final Class<?>... parameterTypes) { Map<String, Map<Class<?>[], Method>> methodNamePool = classDeclaredMethodPool.get(cls); Map<Class<?>[], Method> methodPool = methodNamePo...
public class class_name { private void fireMusicEnded() { playing = false; for (int i=0;i<listeners.size();i++) { ((MusicListener) listeners.get(i)).musicEnded(this); } } }
public class class_name { private void fireMusicEnded() { playing = false; for (int i=0;i<listeners.size();i++) { ((MusicListener) listeners.get(i)).musicEnded(this); // depends on control dependency: [for], data = [i] } } }
public class class_name { public void marshall(AdminConfirmSignUpRequest adminConfirmSignUpRequest, ProtocolMarshaller protocolMarshaller) { if (adminConfirmSignUpRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { proto...
public class class_name { public void marshall(AdminConfirmSignUpRequest adminConfirmSignUpRequest, ProtocolMarshaller protocolMarshaller) { if (adminConfirmSignUpRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { proto...
public class class_name { @Deprecated public UnicodeSet applyPattern(String pattern, ParsePosition pos, SymbolTable symbols, int options) { // Need to build the pattern in a temporary string because // _applyPattern calls add() etc., which set pat to empty. ...
public class class_name { @Deprecated public UnicodeSet applyPattern(String pattern, ParsePosition pos, SymbolTable symbols, int options) { // Need to build the pattern in a temporary string because // _applyPattern calls add() etc., which set pat to empty. ...
public class class_name { private boolean download( URL target, File file ) { _log.addDebug( "JarDiffHandler: Doing download" ); boolean ret = true; boolean delete = false; // use bufferedstream for better performance BufferedInputStream in = null; BufferedOutputS...
public class class_name { private boolean download( URL target, File file ) { _log.addDebug( "JarDiffHandler: Doing download" ); boolean ret = true; boolean delete = false; // use bufferedstream for better performance BufferedInputStream in = null; BufferedOutputS...
public class class_name { public static Stack<String> reversePath(List<String> pathParts) { Stack<String> pathStack = new Stack<String>(); if (pathParts != null) { // Needs first extra argument at top of the stack for (int i = pathParts.size() - 1;i >=0;i--) { pa...
public class class_name { public static Stack<String> reversePath(List<String> pathParts) { Stack<String> pathStack = new Stack<String>(); if (pathParts != null) { // Needs first extra argument at top of the stack for (int i = pathParts.size() - 1;i >=0;i--) { pa...
public class class_name { public List<Throwable> getCauses(Throwable t) { List<Throwable> causes = new LinkedList<Throwable>(); Throwable next = t; while (next.getCause() != null) { next = next.getCause(); causes.add(next); } return causes; ...
public class class_name { public List<Throwable> getCauses(Throwable t) { List<Throwable> causes = new LinkedList<Throwable>(); Throwable next = t; while (next.getCause() != null) { next = next.getCause(); // depends on control dependency: [while], data = [none] ...
public class class_name { private void updateEnumOptions(EntityType entityType, Attribute attr, Attribute updatedAttr) { if (attr.getDataType() == ENUM) { if (updatedAttr.getDataType() == ENUM) { // update check constraint dropCheckConstraint(entityType, attr); createCheckConstraint(e...
public class class_name { private void updateEnumOptions(EntityType entityType, Attribute attr, Attribute updatedAttr) { if (attr.getDataType() == ENUM) { if (updatedAttr.getDataType() == ENUM) { // update check constraint dropCheckConstraint(entityType, attr); // depends on control dependenc...
public class class_name { public static Downloader createDefaultDownloader(Context context) { Downloader downloaderInstance = null; try { Class.forName("com.squareup.okhttp.OkHttpClient"); downloaderInstance = new OkHttpDownloader(context); } catch (ClassNotFoundException ignored) {} try { Class.fo...
public class class_name { public static Downloader createDefaultDownloader(Context context) { Downloader downloaderInstance = null; try { Class.forName("com.squareup.okhttp.OkHttpClient"); downloaderInstance = new OkHttpDownloader(context); } catch (ClassNotFoundException ignored) {} // depends on control...
public class class_name { protected String buildQueryFilter(String streamId, String query) { checkArgument(streamId != null, "streamId parameter cannot be null"); final String trimmedStreamId = streamId.trim(); checkArgument(!trimmedStreamId.isEmpty(), "streamId parameter cannot be empty"); ...
public class class_name { protected String buildQueryFilter(String streamId, String query) { checkArgument(streamId != null, "streamId parameter cannot be null"); final String trimmedStreamId = streamId.trim(); checkArgument(!trimmedStreamId.isEmpty(), "streamId parameter cannot be empty"); ...
public class class_name { public static Type[] getSupperGenericType(Object object) { if (Proxy.isProxyClass(object.getClass())) { object = ProxyBuilder.getProxyBuilder(object.hashCode()).getMostOriginalObject(); } return getSupperGenericType(object.getClass()); } }
public class class_name { public static Type[] getSupperGenericType(Object object) { if (Proxy.isProxyClass(object.getClass())) { object = ProxyBuilder.getProxyBuilder(object.hashCode()).getMostOriginalObject(); // depends on control dependency: [if], data = [none] } return getSuppe...
public class class_name { @Override protected void analyzeDependency(Dependency dependency, Engine engine) throws AnalysisException { //strip any path information that may get added by ArchiveAnalyzer, etc. final File f = dependency.getActualFile(); final String fileName = FilenameUtils.rem...
public class class_name { @Override protected void analyzeDependency(Dependency dependency, Engine engine) throws AnalysisException { //strip any path information that may get added by ArchiveAnalyzer, etc. final File f = dependency.getActualFile(); final String fileName = FilenameUtils.rem...