code
stringlengths
130
281k
code_dependency
stringlengths
182
306k
public class class_name { @Override public final Object convert(final Map<String, Object> pAddParam, final IRecordSet<RS> pFrom, final String pName) throws Exception { Class fieldClass = (Class) pAddParam.get("fieldClass"); Class entityClass = (Class) pAddParam.get("entityClass"); @SuppressWarnings("...
public class class_name { @Override public final Object convert(final Map<String, Object> pAddParam, final IRecordSet<RS> pFrom, final String pName) throws Exception { Class fieldClass = (Class) pAddParam.get("fieldClass"); Class entityClass = (Class) pAddParam.get("entityClass"); @SuppressWarnings("...
public class class_name { @Override public void sawOpcode(int seen) { ImmutabilityType seenImmutable = null; try { stack.precomputation(this); switch (seen) { case Const.INVOKESTATIC: { String className = getClassConstantOperand(); ...
public class class_name { @Override public void sawOpcode(int seen) { ImmutabilityType seenImmutable = null; try { stack.precomputation(this); // depends on control dependency: [try], data = [none] switch (seen) { case Const.INVOKESTATIC: { ...
public class class_name { public static AppDescriptor of(String appName, String packageName, Version appVersion) { String[] packages = packageName.split(S.COMMON_SEP); String effectPackageName = packageName; if (packages.length > 0) { effectPackageName = packages[0]; } ...
public class class_name { public static AppDescriptor of(String appName, String packageName, Version appVersion) { String[] packages = packageName.split(S.COMMON_SEP); String effectPackageName = packageName; if (packages.length > 0) { effectPackageName = packages[0]; // depends on c...
public class class_name { public EClass getImageLUTID() { if (imageLUTIDEClass == null) { imageLUTIDEClass = (EClass)EPackage.Registry.INSTANCE.getEPackage(AfplibPackage.eNS_URI).getEClassifiers().get(390); } return imageLUTIDEClass; } }
public class class_name { public EClass getImageLUTID() { if (imageLUTIDEClass == null) { imageLUTIDEClass = (EClass)EPackage.Registry.INSTANCE.getEPackage(AfplibPackage.eNS_URI).getEClassifiers().get(390); // depends on control dependency: [if], data = [none] } return imageLUTIDEClass; } }
public class class_name { public void write(final ComponentDocumentationWrapper componentWrapper, final OutputStream outputStream) throws IOException { final Map<String, Object> data = new HashMap<>(); try { data.put("breadcrumbs", _breadcrumbs); data.put("componen...
public class class_name { public void write(final ComponentDocumentationWrapper componentWrapper, final OutputStream outputStream) throws IOException { final Map<String, Object> data = new HashMap<>(); try { data.put("breadcrumbs", _breadcrumbs); data.put("componen...
public class class_name { public void list(PrintStream out) { out.println("-- listing properties --"); Hashtable h = new Hashtable(); enumerate(h); for (Enumeration e = h.keys() ; e.hasMoreElements() ;) { String key = (String)e.nextElement(); String val = (String...
public class class_name { public void list(PrintStream out) { out.println("-- listing properties --"); Hashtable h = new Hashtable(); enumerate(h); for (Enumeration e = h.keys() ; e.hasMoreElements() ;) { String key = (String)e.nextElement(); String val = (String...
public class class_name { public void marshall(StartChildWorkflowExecutionFailedEventAttributes startChildWorkflowExecutionFailedEventAttributes, ProtocolMarshaller protocolMarshaller) { if (startChildWorkflowExecutionFailedEventAttributes == null) { throw new SdkClientException("Inval...
public class class_name { public void marshall(StartChildWorkflowExecutionFailedEventAttributes startChildWorkflowExecutionFailedEventAttributes, ProtocolMarshaller protocolMarshaller) { if (startChildWorkflowExecutionFailedEventAttributes == null) { throw new SdkClientException("Inval...
public class class_name { private void colorChooser1stTextActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_colorChooser1stTextActionPerformed if (this.colorChooser1stText.isLastOkPressed() && changeNotificationAllowed) { this.controller.changed(); } } }
public class class_name { private void colorChooser1stTextActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_colorChooser1stTextActionPerformed if (this.colorChooser1stText.isLastOkPressed() && changeNotificationAllowed) { this.controller.changed(); // depends on control dependency: [if], dat...
public class class_name { public static SecretKey generateKey(String algorithm, KeySpec keySpec) { final SecretKeyFactory keyFactory = getSecretKeyFactory(algorithm); try { return keyFactory.generateSecret(keySpec); } catch (InvalidKeySpecException e) { throw new CryptoException(e); } } }
public class class_name { public static SecretKey generateKey(String algorithm, KeySpec keySpec) { final SecretKeyFactory keyFactory = getSecretKeyFactory(algorithm); try { return keyFactory.generateSecret(keySpec); // depends on control dependency: [try], data = [none] } catch (InvalidKeySpecException e)...
public class class_name { protected void handleNodeAttributes(Object node, Map attributes) { // first, short circuit if (node == null) { return; } for (Closure attrDelegate : getProxyBuilder().getAttributeDelegates()) { FactoryBuilderSupport builder = this; ...
public class class_name { protected void handleNodeAttributes(Object node, Map attributes) { // first, short circuit if (node == null) { return; // depends on control dependency: [if], data = [none] } for (Closure attrDelegate : getProxyBuilder().getAttributeDelegates()) { ...
public class class_name { public int run(String[] args) throws Exception { List<FileOperation> ops = new ArrayList<FileOperation>(); Path logpath = null; boolean isIgnoreFailures = false; try { for (int idx = 0; idx < args.length; idx++) { if ("-f".equals(args[idx])) { if (++id...
public class class_name { public int run(String[] args) throws Exception { List<FileOperation> ops = new ArrayList<FileOperation>(); Path logpath = null; boolean isIgnoreFailures = false; try { for (int idx = 0; idx < args.length; idx++) { if ("-f".equals(args[idx])) { if (++id...
public class class_name { public static UnitReference initUom(UnitReference uom, VariableSimpleIF dataVar) { // @code String udunits = dataVar.getUnitsString(); if (udunits == null) { // Variable may not have a "units" attribute. return null; } String ucum = Erddap...
public class class_name { public static UnitReference initUom(UnitReference uom, VariableSimpleIF dataVar) { // @code String udunits = dataVar.getUnitsString(); if (udunits == null) { // Variable may not have a "units" attribute. return null; // depends on control dependency: [if],...
public class class_name { public void marshall(DeleteWorkerBlockRequest deleteWorkerBlockRequest, ProtocolMarshaller protocolMarshaller) { if (deleteWorkerBlockRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocol...
public class class_name { public void marshall(DeleteWorkerBlockRequest deleteWorkerBlockRequest, ProtocolMarshaller protocolMarshaller) { if (deleteWorkerBlockRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocol...
public class class_name { public void addHeaders(HttpServletRequest reqSource, HttpRequestBase httpTarget) { Enumeration<?> headerNames = reqSource.getHeaderNames(); while (headerNames.hasMoreElements()) { String key = headerNames.nextElement().toString(); if (CONTENT_LENGTH.equalsIgnore...
public class class_name { public void addHeaders(HttpServletRequest reqSource, HttpRequestBase httpTarget) { Enumeration<?> headerNames = reqSource.getHeaderNames(); while (headerNames.hasMoreElements()) { String key = headerNames.nextElement().toString(); if (CONTENT_LENGTH.equalsIgnore...
public class class_name { private void clear(Object caller, int version) { assert mutation_in_progress(caller, version); _buf_limit = 0; for (int ii=0; ii<_blocks.size(); ii++) { _blocks.get(ii).clearBlock(); // _blocks.get(ii)._idx = -1; this is done in clearBlock() ...
public class class_name { private void clear(Object caller, int version) { assert mutation_in_progress(caller, version); _buf_limit = 0; for (int ii=0; ii<_blocks.size(); ii++) { _blocks.get(ii).clearBlock(); // depends on control dependency: [for], data = [ii] // _block...
public class class_name { public EEnum getBDDUBASE() { if (bddubaseEEnum == null) { bddubaseEEnum = (EEnum)EPackage.Registry.INSTANCE.getEPackage(AfplibPackage.eNS_URI).getEClassifiers().get(2); } return bddubaseEEnum; } }
public class class_name { public EEnum getBDDUBASE() { if (bddubaseEEnum == null) { bddubaseEEnum = (EEnum)EPackage.Registry.INSTANCE.getEPackage(AfplibPackage.eNS_URI).getEClassifiers().get(2); // depends on control dependency: [if], data = [none] } return bddubaseEEnum; } }
public class class_name { @Override public boolean timeRange(Object hour1, Object min1, Object sec1, Object hour2, Object min2, Object sec2, Object gmt) { boolean useGmt = GMT.equalsIgnoreCase(String.valueOf(min1)) || GMT.equalsIgnoreCase(String.valueOf(sec1)) || GMT.equalsIgnoreCase(String...
public class class_name { @Override public boolean timeRange(Object hour1, Object min1, Object sec1, Object hour2, Object min2, Object sec2, Object gmt) { boolean useGmt = GMT.equalsIgnoreCase(String.valueOf(min1)) || GMT.equalsIgnoreCase(String.valueOf(sec1)) || GMT.equalsIgnoreCase(String...
public class class_name { public String parameterize() { Set<Integer> paramIds = new HashSet<>(); ParameterizationInfo.findUserParametersRecursively(m_xmlSQL, paramIds); m_adhocUserParamsCount = paramIds.size(); m_paramzInfo = null; if (paramIds.size() == 0) { m_par...
public class class_name { public String parameterize() { Set<Integer> paramIds = new HashSet<>(); ParameterizationInfo.findUserParametersRecursively(m_xmlSQL, paramIds); m_adhocUserParamsCount = paramIds.size(); m_paramzInfo = null; if (paramIds.size() == 0) { m_par...
public class class_name { @RequestMapping("/web/frontend") public String webFrontend(HttpServletRequest request){ Map<String, String> receives = new HashMap<>(); // TODO 这里还是建议直接从request中获取map参数,兼容支付宝修改或增减参数 for (AlipayField f : AlipayFields.WEB_PAY_RETURN){ receives.put(f.fie...
public class class_name { @RequestMapping("/web/frontend") public String webFrontend(HttpServletRequest request){ Map<String, String> receives = new HashMap<>(); // TODO 这里还是建议直接从request中获取map参数,兼容支付宝修改或增减参数 for (AlipayField f : AlipayFields.WEB_PAY_RETURN){ receives.put(f.fie...
public class class_name { private UfsStatus[] getChildrenInUFS(AlluxioURI alluxioUri) throws InvalidPathException, IOException { MountTable.Resolution resolution = mMountTable.resolve(alluxioUri); AlluxioURI ufsUri = resolution.getUri(); try (CloseableResource<UnderFileSystem> ufsResource = resolutio...
public class class_name { private UfsStatus[] getChildrenInUFS(AlluxioURI alluxioUri) throws InvalidPathException, IOException { MountTable.Resolution resolution = mMountTable.resolve(alluxioUri); AlluxioURI ufsUri = resolution.getUri(); try (CloseableResource<UnderFileSystem> ufsResource = resolutio...
public class class_name { public void performActions() { if (this.clientConfiguration.getActions().isEmpty()) { this.clientConfiguration.printHelp(); return; } this.dumpProcessingController.setOfflineMode(this.clientConfiguration .getOfflineMode()); if (this.clientConfiguration.getDumpDirectoryLoca...
public class class_name { public void performActions() { if (this.clientConfiguration.getActions().isEmpty()) { this.clientConfiguration.printHelp(); // depends on control dependency: [if], data = [none] return; // depends on control dependency: [if], data = [none] } this.dumpProcessingController.setOffli...
public class class_name { public void wait(String message, long timeoutInMilliseconds, long intervalInMilliseconds) { long start = System.currentTimeMillis(); long end = start + timeoutInMilliseconds; while (System.currentTimeMillis() < end) { if (until()) return; try { Thread.sleep(int...
public class class_name { public void wait(String message, long timeoutInMilliseconds, long intervalInMilliseconds) { long start = System.currentTimeMillis(); long end = start + timeoutInMilliseconds; while (System.currentTimeMillis() < end) { if (until()) return; try { Thread.sleep(int...
public class class_name { private int getNextDayOfWeek(int day, int dayOfWeek) { if (!contains(daysOfWeek, dayOfWeek)) { long higher = higher(daysOfWeek, dayOfWeek); if (higher != 0) { return day + (first(higher) - dayOfWeek); } ...
public class class_name { private int getNextDayOfWeek(int day, int dayOfWeek) { if (!contains(daysOfWeek, dayOfWeek)) { long higher = higher(daysOfWeek, dayOfWeek); if (higher != 0) { return day + (first(higher) - dayOfWeek); // depends on contro...
public class class_name { public static String getNamespace(HasMetadata entity) { if (entity != null) { return getNamespace(entity.getMetadata()); } else { return null; } } }
public class class_name { public static String getNamespace(HasMetadata entity) { if (entity != null) { return getNamespace(entity.getMetadata()); // depends on control dependency: [if], data = [(entity] } else { return null; // depends on control dependency: [if], data = [none] } } }
public class class_name { @Override public Description matchNewClass(NewClassTree newClassTree, VisitorState state) { if (state.getPath().getParentPath().getLeaf().getKind() != Kind.EXPRESSION_STATEMENT) { return Description.NO_MATCH; } if (newClassTree.getClassBody() == null) { return Descri...
public class class_name { @Override public Description matchNewClass(NewClassTree newClassTree, VisitorState state) { if (state.getPath().getParentPath().getLeaf().getKind() != Kind.EXPRESSION_STATEMENT) { return Description.NO_MATCH; // depends on control dependency: [if], data = [none] } if (newC...
public class class_name { public static boolean isSequentialAlignment(AFPChain afpChain, boolean checkWithinBlocks) { int[][][] optAln = afpChain.getOptAln(); int[] alnLen = afpChain.getOptLen(); int blocks = afpChain.getBlockNum(); if(blocks < 1) return true; //trivial case if ( alnLen[0] < 1) return true;...
public class class_name { public static boolean isSequentialAlignment(AFPChain afpChain, boolean checkWithinBlocks) { int[][][] optAln = afpChain.getOptAln(); int[] alnLen = afpChain.getOptLen(); int blocks = afpChain.getBlockNum(); if(blocks < 1) return true; //trivial case if ( alnLen[0] < 1) return true;...
public class class_name { public Observable<ServiceResponse<ConnectivityInformationInner>> beginCheckConnectivityWithServiceResponseAsync(String resourceGroupName, String networkWatcherName, ConnectivityParameters parameters) { if (resourceGroupName == null) { throw new IllegalArgumentException("Pa...
public class class_name { public Observable<ServiceResponse<ConnectivityInformationInner>> beginCheckConnectivityWithServiceResponseAsync(String resourceGroupName, String networkWatcherName, ConnectivityParameters parameters) { if (resourceGroupName == null) { throw new IllegalArgumentException("Pa...
public class class_name { synchronized HttpHandler getHandler(final Consumer<ServletContext> consumer) throws ServletException { if (handler == null) { LOG.debug("Creating handler on demand"); createHandler(consumer); } else if (consumer != null) { // Handler might be available, but the ServletContextProx...
public class class_name { synchronized HttpHandler getHandler(final Consumer<ServletContext> consumer) throws ServletException { if (handler == null) { LOG.debug("Creating handler on demand"); // depends on control dependency: [if], data = [none] createHandler(consumer); // depends on control dependency: [if],...
public class class_name { public static String getOfficialDataTypeURI(Datatype datatype) { for(Uris uris : datatype.getUris()) { for(Uri uri : uris.getUri()) { if(!isDeprecated(uri) && uri.getType() == UriType.URN) { return uri.getValue(); } } } return null; }...
public class class_name { public static String getOfficialDataTypeURI(Datatype datatype) { for(Uris uris : datatype.getUris()) { for(Uri uri : uris.getUri()) { if(!isDeprecated(uri) && uri.getType() == UriType.URN) { return uri.getValue(); // depends on control dependency: [if], data = [none]...
public class class_name { protected void extractParameterDescriptorMap() { for (PropertyDescriptor propertyDescriptor : this.parametersBeanDescriptor.getProperties()) { DefaultParameterDescriptor desc = new DefaultParameterDescriptor(propertyDescriptor); this.parameterDescriptorMap....
public class class_name { protected void extractParameterDescriptorMap() { for (PropertyDescriptor propertyDescriptor : this.parametersBeanDescriptor.getProperties()) { DefaultParameterDescriptor desc = new DefaultParameterDescriptor(propertyDescriptor); this.parameterDescriptorMap....
public class class_name { protected long getNumConnections(IPeer peer) { if (peer == null) { return 0; } IStatistic stats = peer.getStatistic(); // If no statistics are available, return zero if (!stats.isEnabled()) { if (logger.isDebugEnabled()) { logger.debug("Statistics for ...
public class class_name { protected long getNumConnections(IPeer peer) { if (peer == null) { return 0; // depends on control dependency: [if], data = [none] } IStatistic stats = peer.getStatistic(); // If no statistics are available, return zero if (!stats.isEnabled()) { if (logger.isD...
public class class_name { public void setCustomEventLoggerImpl(String customEventLoggerImpl) { System.err.println("### GOT CustomEventLoggerImpl: " + customEventLoggerImpl); this.customEventLoggerImpl = customEventLoggerImpl; try { System.err.println("Try to load class: " + customEventLo...
public class class_name { public void setCustomEventLoggerImpl(String customEventLoggerImpl) { System.err.println("### GOT CustomEventLoggerImpl: " + customEventLoggerImpl); this.customEventLoggerImpl = customEventLoggerImpl; try { System.err.println("Try to load class: " + customEventLo...
public class class_name { final long internalEdgeDisconnect(int edgeToRemove, long edgeToUpdatePointer, int baseNode) { long edgeToRemovePointer = toPointer(edgeToRemove); // an edge is shared across the two nodes even if the edge is not in both directions // so we need to know two edge-pointer...
public class class_name { final long internalEdgeDisconnect(int edgeToRemove, long edgeToUpdatePointer, int baseNode) { long edgeToRemovePointer = toPointer(edgeToRemove); // an edge is shared across the two nodes even if the edge is not in both directions // so we need to know two edge-pointer...
public class class_name { public int toByteArray( Object obj, byte result[], int resultOffset, int avaiableSize ) { output.resetForReUse(); try { output.writeObject(obj); } catch (IOException e) { FSTUtil.<RuntimeException>rethrow(e); } int written = outp...
public class class_name { public int toByteArray( Object obj, byte result[], int resultOffset, int avaiableSize ) { output.resetForReUse(); try { output.writeObject(obj); // depends on control dependency: [try], data = [none] } catch (IOException e) { FSTUtil.<RuntimeExc...
public class class_name { protected String ensureCanonicalPath(String path) { final String basePath; String wildCards = null; final String file = path.replace('\\', '/'); if (file.contains("*") || file.contains("?")) { int pos = getLastFileSeparator(file); if (p...
public class class_name { protected String ensureCanonicalPath(String path) { final String basePath; String wildCards = null; final String file = path.replace('\\', '/'); if (file.contains("*") || file.contains("?")) { int pos = getLastFileSeparator(file); if (p...
public class class_name { private static void disable2PC(String extractDirectory, String serverName) throws IOException { String fileName = extractDirectory + File.separator + "wlp" + File.separator + "usr" + File.separator + "servers" + File.separator + serverName + File.separator + ...
public class class_name { private static void disable2PC(String extractDirectory, String serverName) throws IOException { String fileName = extractDirectory + File.separator + "wlp" + File.separator + "usr" + File.separator + "servers" + File.separator + serverName + File.separator + ...
public class class_name { public static String replaceAll(String str, String match, String replacement) { String newStr = str; int i = newStr.indexOf(match); while (i >= 0) { newStr = newStr.substring(0, i) + replacement + newStr.substring(i + match.length()...
public class class_name { public static String replaceAll(String str, String match, String replacement) { String newStr = str; int i = newStr.indexOf(match); while (i >= 0) { newStr = newStr.substring(0, i) + replacement + newStr.substring(i + match.length()...
public class class_name { public String getMimetype(String fileName) { int lastPeriodIndex = fileName.lastIndexOf("."); if (lastPeriodIndex > 0 && lastPeriodIndex + 1 < fileName.length()) { String ext = fileName.substring(lastPeriodIndex + 1).toLowerCase(); if (extensionToMimety...
public class class_name { public String getMimetype(String fileName) { int lastPeriodIndex = fileName.lastIndexOf("."); if (lastPeriodIndex > 0 && lastPeriodIndex + 1 < fileName.length()) { String ext = fileName.substring(lastPeriodIndex + 1).toLowerCase(); if (extensionToMimety...
public class class_name { public HttpSessionsSite getHttpSessionsSite(String site, boolean createIfNeeded) { // Add a default port if (!site.contains(":")) { site = site + (":80"); } synchronized (sessionLock) { if (sessions == null) { if (!createIfNeeded) { return null; } sessions = new...
public class class_name { public HttpSessionsSite getHttpSessionsSite(String site, boolean createIfNeeded) { // Add a default port if (!site.contains(":")) { site = site + (":80"); // depends on control dependency: [if], data = [none] } synchronized (sessionLock) { if (sessions == null) { if (!create...
public class class_name { private void visitCall(AmbiguatedFunctionSummary callerInfo, Node invocation) { // Handle special cases (Math, RegExp) // TODO: This logic can probably be replaced with @nosideeffects annotations in externs. if (invocation.isCall() && !NodeUtil.functionCallHasSideEffects(inv...
public class class_name { private void visitCall(AmbiguatedFunctionSummary callerInfo, Node invocation) { // Handle special cases (Math, RegExp) // TODO: This logic can probably be replaced with @nosideeffects annotations in externs. if (invocation.isCall() && !NodeUtil.functionCallHasSideEffects(inv...
public class class_name { @Nullable public final EnhancedMimeType getMetaContentType() { if ((metaContentType == null) && (metaContentTypeStr != null)) { metaContentType = EnhancedMimeType.create(metaContentTypeStr); } return metaContentType; } }
public class class_name { @Nullable public final EnhancedMimeType getMetaContentType() { if ((metaContentType == null) && (metaContentTypeStr != null)) { metaContentType = EnhancedMimeType.create(metaContentTypeStr); // depends on control dependency: [if], data = [none] } return...
public class class_name { public String getLayer() { String str = null; if ((layer >= 0) && (layer < layerLabels.length)) { str = layerLabels[layer]; } return str; } }
public class class_name { public String getLayer() { String str = null; if ((layer >= 0) && (layer < layerLabels.length)) { str = layerLabels[layer]; // depends on control dependency: [if], data = [none] } return str; } }
public class class_name { public final void removeExpired() { mapLock.lock(); Iterator<Entry<String, TimestampedCacheEntry<DOReader>>> entries = cacheMap.entrySet().iterator(); if (entries.hasNext()) { long now = System.currentTimeMillis(); while (entries.hasNext()) { Entry<String, Timestam...
public class class_name { public final void removeExpired() { mapLock.lock(); Iterator<Entry<String, TimestampedCacheEntry<DOReader>>> entries = cacheMap.entrySet().iterator(); if (entries.hasNext()) { long now = System.currentTimeMillis(); while (entries.hasNext()) { Entry<String, Timestam...
public class class_name { public static synchronized Properties getProperties(String resourceName) { /*log.fine("public static synchronized Properties getProperties(String resourceName): called");*/ /*log.fine("resourceName = " + resourceName);*/ // Try to find an already created singleton...
public class class_name { public static synchronized Properties getProperties(String resourceName) { /*log.fine("public static synchronized Properties getProperties(String resourceName): called");*/ /*log.fine("resourceName = " + resourceName);*/ // Try to find an already created singleton...
public class class_name { public static boolean contains(float[] array, float value, float delta) { for (int i=0; i<array.length; i++) { if (Primitives.equals(array[i], value, delta)) { return true; } } return false; } }
public class class_name { public static boolean contains(float[] array, float value, float delta) { for (int i=0; i<array.length; i++) { if (Primitives.equals(array[i], value, delta)) { return true; // depends on control dependency: [if], data = [none] } } ...
public class class_name { private void postProcessEmbedded(Map<String, String> embNametoUDTQuery, Map<String, List<String>> embNametoDependentList) { for (Map.Entry<String, List<String>> entry : embNametoDependentList.entrySet()) { checkRelationAndExecuteQuery(entry.getKey()...
public class class_name { private void postProcessEmbedded(Map<String, String> embNametoUDTQuery, Map<String, List<String>> embNametoDependentList) { for (Map.Entry<String, List<String>> entry : embNametoDependentList.entrySet()) { checkRelationAndExecuteQuery(entry.getKey()...
public class class_name { public void setCustomColors(final boolean CUSTOM_COLORS) { customColors = CUSTOM_COLORS; if (customColors) { init(getInnerBounds().width, getInnerBounds().height); repaint(getInnerBounds()); } } }
public class class_name { public void setCustomColors(final boolean CUSTOM_COLORS) { customColors = CUSTOM_COLORS; if (customColors) { init(getInnerBounds().width, getInnerBounds().height); // depends on control dependency: [if], data = [none] repaint(getInnerBounds()); // depen...
public class class_name { void cancelAllSuperToasts() { removeMessages(Messages.SHOW_NEXT); removeMessages(Messages.DISPLAY_SUPERTOAST); removeMessages(Messages.REMOVE_SUPERTOAST); // Iterate through the Queue, polling and removing everything for (SuperToast superToast : ...
public class class_name { void cancelAllSuperToasts() { removeMessages(Messages.SHOW_NEXT); removeMessages(Messages.DISPLAY_SUPERTOAST); removeMessages(Messages.REMOVE_SUPERTOAST); // Iterate through the Queue, polling and removing everything for (SuperToast superToast : ...
public class class_name { public static String joinAsString( Object[] objects, String separator ) { StringBuilder result = new StringBuilder(); for (int i = 0; i < objects.length; i++) { Object element = objects[i]; result.append( String.valueOf( element ) ); ...
public class class_name { public static String joinAsString( Object[] objects, String separator ) { StringBuilder result = new StringBuilder(); for (int i = 0; i < objects.length; i++) { Object element = objects[i]; result.append( String.valueOf( element ) ); // depe...
public class class_name { public <T> FluentValidator onEach(Collection<T> t) { if (CollectionUtil.isEmpty(t)) { lastAddCount = 0; return this; } MultiValidatorElement multiValidatorElement = null; for (T element : t) { multiValidatorElement = doOn(el...
public class class_name { public <T> FluentValidator onEach(Collection<T> t) { if (CollectionUtil.isEmpty(t)) { lastAddCount = 0; // depends on control dependency: [if], data = [none] return this; // depends on control dependency: [if], data = [none] } MultiValidatorEle...
public class class_name { public static long copy( final InputStream input, final OutputStream output ) throws IOException { _LOG_.debug( "begin copy" ); @SuppressWarnings( "resource" ) BufferedInputStream b_input = (Buffer...
public class class_name { public static long copy( final InputStream input, final OutputStream output ) throws IOException { _LOG_.debug( "begin copy" ); @SuppressWarnings( "resource" ) BufferedInputStream b_input = (Buffer...
public class class_name { @SuppressWarnings("unchecked") protected static boolean sameType(Collection[] cols) { List all = new LinkedList(); for (Collection col : cols) { all.addAll(col); } if (all.isEmpty()) return true; Object first = all.get(0); ...
public class class_name { @SuppressWarnings("unchecked") protected static boolean sameType(Collection[] cols) { List all = new LinkedList(); for (Collection col : cols) { all.addAll(col); // depends on control dependency: [for], data = [col] } if (all.isEmpty()) ...
public class class_name { protected T loginViaBasicAuth(final HttpServletRequest servletRequest) { final String username = ServletUtil.resolveAuthUsername(servletRequest); if (username == null) { return null; } final String password = ServletUtil.resolveAuthPassword(servletRequest); return userAuth.login...
public class class_name { protected T loginViaBasicAuth(final HttpServletRequest servletRequest) { final String username = ServletUtil.resolveAuthUsername(servletRequest); if (username == null) { return null; // depends on control dependency: [if], data = [none] } final String password = ServletUtil.resolve...
public class class_name { @Override void analyzeWords(AnalyzedText aText) { FastList<String> list = new FastList<String>(); FastSet<String> set = new FastSet<String>(); com.chenlb.mmseg4j.Word word = null; Reader sr = new StringReader(aText.getText()); synchronized(mmSeg){ mmSeg.reset(sr); t...
public class class_name { @Override void analyzeWords(AnalyzedText aText) { FastList<String> list = new FastList<String>(); FastSet<String> set = new FastSet<String>(); com.chenlb.mmseg4j.Word word = null; Reader sr = new StringReader(aText.getText()); synchronized(mmSeg){ mmSeg.reset(sr); t...
public class class_name { private Expr parseAdditiveExpression(EnclosingScope scope, boolean terminated) { int start = index; Expr lhs = parseMultiplicativeExpression(scope, terminated); Token lookahead; while ((lookahead = tryAndMatch(terminated, Plus, Minus)) != null) { Expr rhs = parseMultiplicativeExpr...
public class class_name { private Expr parseAdditiveExpression(EnclosingScope scope, boolean terminated) { int start = index; Expr lhs = parseMultiplicativeExpression(scope, terminated); Token lookahead; while ((lookahead = tryAndMatch(terminated, Plus, Minus)) != null) { Expr rhs = parseMultiplicativeExpr...
public class class_name { public static Object parse(final String s, final BSONCallback c) { if (s == null || (s.trim()).equals("")) { return null; } JSONParser p = new JSONParser(s, c); return p.parse(); } }
public class class_name { public static Object parse(final String s, final BSONCallback c) { if (s == null || (s.trim()).equals("")) { return null; // depends on control dependency: [if], data = [none] } JSONParser p = new JSONParser(s, c); return p.parse(); } }
public class class_name { protected void completeSarlEvents(boolean allowEventType, boolean isExtensionFilter, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { if (isSarlProposalEnabled()) { completeSubJavaTypes(Event.class, allowEventType, context, TypesPackage.Literals.JVM_PARAMETER...
public class class_name { protected void completeSarlEvents(boolean allowEventType, boolean isExtensionFilter, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { if (isSarlProposalEnabled()) { completeSubJavaTypes(Event.class, allowEventType, context, TypesPackage.Literals.JVM_PARAMETER...
public class class_name { private void processInternalListeners() { List<Class<?>> internalListeners = getAllInternalListeners(); for (Class<?> internalListener : internalListeners) { processInternalListener(internalListener); } } }
public class class_name { private void processInternalListeners() { List<Class<?>> internalListeners = getAllInternalListeners(); for (Class<?> internalListener : internalListeners) { processInternalListener(internalListener); // depends on control dependency: [for], data = [internalListener] } } }
public class class_name { private void reusePropertyNames(Set<String> reservedNames, Collection<Property> allProps) { for (Property prop : allProps) { // Check if this node can reuse a name from a previous compilation - if // it can set the newName for the property too...
public class class_name { private void reusePropertyNames(Set<String> reservedNames, Collection<Property> allProps) { for (Property prop : allProps) { // Check if this node can reuse a name from a previous compilation - if // it can set the newName for the property too...
public class class_name { private synchronized Producer<CloseableReference<CloseableImage>> getNetworkFetchSequence() { if (FrescoSystrace.isTracing()) { FrescoSystrace.beginSection("ProducerSequenceFactory#getNetworkFetchSequence"); } if (mNetworkFetchSequence == null) { if (FrescoSystrace.isT...
public class class_name { private synchronized Producer<CloseableReference<CloseableImage>> getNetworkFetchSequence() { if (FrescoSystrace.isTracing()) { FrescoSystrace.beginSection("ProducerSequenceFactory#getNetworkFetchSequence"); // depends on control dependency: [if], data = [none] } if (mNetwor...
public class class_name { public String getString(Map<String, Object> data, String attr) { Object value = data.get(attr); if (null == value) { return null; } if (!value.getClass().isArray()) { return value.toString(); } String[] values = (String[]) value; if (values.length == 1) { return valu...
public class class_name { public String getString(Map<String, Object> data, String attr) { Object value = data.get(attr); if (null == value) { return null; } // depends on control dependency: [if], data = [none] if (!value.getClass().isArray()) { return value.toString(); } // depends on control dependency:...
public class class_name { private Result executeResultUpdate(Result cmd) { long id = cmd.getResultId(); int actionType = cmd.getActionType(); Result result = sessionData.getDataResult(id); if (result == null) { return Result.newErrorResult(Error.error(Erro...
public class class_name { private Result executeResultUpdate(Result cmd) { long id = cmd.getResultId(); int actionType = cmd.getActionType(); Result result = sessionData.getDataResult(id); if (result == null) { return Result.newErrorResult(Error.error(Erro...
public class class_name { public String getFromRemote(String uri){ // clear cache fileSystem.getFilesCache().close(); String remoteContent ; String remoteEncoding = "utf-8"; log.debug("getFromRemote: Loading remote URI=" + uri); FileContent fileContent ; try ...
public class class_name { public String getFromRemote(String uri){ // clear cache fileSystem.getFilesCache().close(); String remoteContent ; String remoteEncoding = "utf-8"; log.debug("getFromRemote: Loading remote URI=" + uri); FileContent fileContent ; try ...
public class class_name { protected void addItemView(View itemView, int childIndex) { final ViewGroup currentParent = (ViewGroup) itemView.getParent(); if (currentParent != null) { currentParent.removeView(itemView); } ((ViewGroup) mMenuView).addView(itemView, childIndex); ...
public class class_name { protected void addItemView(View itemView, int childIndex) { final ViewGroup currentParent = (ViewGroup) itemView.getParent(); if (currentParent != null) { currentParent.removeView(itemView); // depends on control dependency: [if], data = [none] } ((...
public class class_name { public java.util.List<String> getConfigurationRecorderNames() { if (configurationRecorderNames == null) { configurationRecorderNames = new com.amazonaws.internal.SdkInternalList<String>(); } return configurationRecorderNames; } }
public class class_name { public java.util.List<String> getConfigurationRecorderNames() { if (configurationRecorderNames == null) { configurationRecorderNames = new com.amazonaws.internal.SdkInternalList<String>(); // depends on control dependency: [if], data = [none] } return confi...
public class class_name { public static MongoDS getDS(String host, int port) { final String key = host + ":" + port; MongoDS ds = dsMap.get(key); if (null == ds) { // 没有在池中加入之 ds = new MongoDS(host, port); dsMap.put(key, ds); } return ds; } }
public class class_name { public static MongoDS getDS(String host, int port) { final String key = host + ":" + port; MongoDS ds = dsMap.get(key); if (null == ds) { // 没有在池中加入之 ds = new MongoDS(host, port); // depends on control dependency: [if], data = [none] dsMap.put(key, ds); // depends on con...
public class class_name { protected final void addUserTag(String name, URL source) { if (_strictJsf2FaceletsCompatibility == null) { MyfacesConfig config = MyfacesConfig.getCurrentInstance( FacesContext.getCurrentInstance().getExternalContext()); _strict...
public class class_name { protected final void addUserTag(String name, URL source) { if (_strictJsf2FaceletsCompatibility == null) { MyfacesConfig config = MyfacesConfig.getCurrentInstance( FacesContext.getCurrentInstance().getExternalContext()); _strict...
public class class_name { public User getLoggedInUser() { User user = null; final Authentication authentication = SecurityContextHolder.getContext().getAuthentication(); if (authentication != null) { final Object principal = authentication.getPrincipal(); // principal can be "anonymousUser" (...
public class class_name { public User getLoggedInUser() { User user = null; final Authentication authentication = SecurityContextHolder.getContext().getAuthentication(); if (authentication != null) { final Object principal = authentication.getPrincipal(); // principal can be "anonymousUser" (...
public class class_name { public static List<AvPair> decode ( byte[] data ) throws CIFSException { List<AvPair> pairs = new LinkedList<>(); int pos = 0; boolean foundEnd = false; while ( pos + 4 <= data.length ) { int avId = SMBUtil.readInt2(data, pos); int avLen...
public class class_name { public static List<AvPair> decode ( byte[] data ) throws CIFSException { List<AvPair> pairs = new LinkedList<>(); int pos = 0; boolean foundEnd = false; while ( pos + 4 <= data.length ) { int avId = SMBUtil.readInt2(data, pos); int avLen...
public class class_name { public static List<Object> getAlignedUserCollection(String sequence) { List<Object> aligned = new ArrayList<Object>(sequence.length()); for (char c : sequence.toCharArray()) { aligned.add(Character.isUpperCase(c)); } return aligned; } }
public class class_name { public static List<Object> getAlignedUserCollection(String sequence) { List<Object> aligned = new ArrayList<Object>(sequence.length()); for (char c : sequence.toCharArray()) { aligned.add(Character.isUpperCase(c)); // depends on control dependency: [for], data = [c] } return aligne...
public class class_name { public CollectionResult<double[]> run(Database database, Relation<O> relation, Relation<?> lrelation) { final DistanceQuery<O> distQuery = database.getDistanceQuery(relation, getDistanceFunction()); final int qk = k + (includeSelf ? 0 : 1); final KNNQuery<O> knnQuery = database.ge...
public class class_name { public CollectionResult<double[]> run(Database database, Relation<O> relation, Relation<?> lrelation) { final DistanceQuery<O> distQuery = database.getDistanceQuery(relation, getDistanceFunction()); final int qk = k + (includeSelf ? 0 : 1); final KNNQuery<O> knnQuery = database.ge...
public class class_name { @Override public Set keySet() { if (keySet != null) { return keySet; } keySet = new AbstractSet() { @Override public Iterator iterator() { return new KeyIterator(); } @Override ...
public class class_name { @Override public Set keySet() { if (keySet != null) { return keySet; // depends on control dependency: [if], data = [none] } keySet = new AbstractSet() { @Override public Iterator iterator() { return new K...
public class class_name { public Converter getTargetField(Record record) { if (record == null) { BaseTable currentTable = m_recMerge.getTable().getCurrentTable(); if (currentTable == null) currentTable = m_recMerge.getTable(); // First time only ...
public class class_name { public Converter getTargetField(Record record) { if (record == null) { BaseTable currentTable = m_recMerge.getTable().getCurrentTable(); if (currentTable == null) currentTable = m_recMerge.getTable(); // First time only ...
public class class_name { public Result<SingleValue> readSingleValue(Series series, DateTime timestamp, DateTimeZone timezone, Direction direction) { checkNotNull(series); checkNotNull(timestamp); checkNotNull(timezone); checkNotNull(direction); URI uri = null; try { URIBuilder builder =...
public class class_name { public Result<SingleValue> readSingleValue(Series series, DateTime timestamp, DateTimeZone timezone, Direction direction) { checkNotNull(series); checkNotNull(timestamp); checkNotNull(timezone); checkNotNull(direction); URI uri = null; try { URIBuilder builder =...
public class class_name { private X509TrustManager createPromptingTrustManager() { TrustManager[] trustManagers = null; try { String defaultAlg = TrustManagerFactory.getDefaultAlgorithm(); TrustManagerFactory tmf = TrustManagerFactory.getInstance(defaultAlg); tmf.ini...
public class class_name { private X509TrustManager createPromptingTrustManager() { TrustManager[] trustManagers = null; try { String defaultAlg = TrustManagerFactory.getDefaultAlgorithm(); TrustManagerFactory tmf = TrustManagerFactory.getInstance(defaultAlg); tmf.ini...
public class class_name { public void init(String text) { m_iCurrentState = OFF; if (m_iconOff == null) { m_iconOff = BaseApplet.getSharedInstance().loadImageIcon(CHECKBOX_OFF); m_iconOn = BaseApplet.getSharedInstance().loadImageIcon(CHECKBOX_ON); m_iconN...
public class class_name { public void init(String text) { m_iCurrentState = OFF; if (m_iconOff == null) { m_iconOff = BaseApplet.getSharedInstance().loadImageIcon(CHECKBOX_OFF); // depends on control dependency: [if], data = [none] m_iconOn = BaseApplet.getSharedInst...
public class class_name { public void registerProblem(GitHubRepositoryName repo, Throwable throwable) { if (throwable == null) { return; } registerProblem(repo, throwable.getMessage()); } }
public class class_name { public void registerProblem(GitHubRepositoryName repo, Throwable throwable) { if (throwable == null) { return; // depends on control dependency: [if], data = [none] } registerProblem(repo, throwable.getMessage()); } }
public class class_name { public void checkExecutorHealth() { final Map<Optional<Executor>, List<ExecutableFlow>> exFlowMap = getFlowToExecutorMap(); for (final Map.Entry<Optional<Executor>, List<ExecutableFlow>> entry : exFlowMap.entrySet()) { final Optional<Executor> executorOption = entry.getKey(); ...
public class class_name { public void checkExecutorHealth() { final Map<Optional<Executor>, List<ExecutableFlow>> exFlowMap = getFlowToExecutorMap(); for (final Map.Entry<Optional<Executor>, List<ExecutableFlow>> entry : exFlowMap.entrySet()) { final Optional<Executor> executorOption = entry.getKey(); ...
public class class_name { private Component indent(CmsResourceInfo resourceInfo) { boolean simple = false; if (simple) { return resourceInfo; } else { HorizontalLayout hl = new HorizontalLayout(); Label label = new Label(""); label.setWidth("35...
public class class_name { private Component indent(CmsResourceInfo resourceInfo) { boolean simple = false; if (simple) { return resourceInfo; // depends on control dependency: [if], data = [none] } else { HorizontalLayout hl = new HorizontalLayout(); Label...
public class class_name { public static File getDataDir() { final File dir; if (SystemUtils.IS_OS_WINDOWS) { dir = new File(System.getenv("APPDATA"), "LittleShoot"); } else if (SystemUtils.IS_OS_MAC_OSX) { // TODO: Is this correct on international machines?? ...
public class class_name { public static File getDataDir() { final File dir; if (SystemUtils.IS_OS_WINDOWS) { dir = new File(System.getenv("APPDATA"), "LittleShoot"); // depends on control dependency: [if], data = [none] } else if (SystemUtils.IS_OS_MAC_OSX) { // TODO: Is...
public class class_name { public static void vNormalize(float[] v) { float d = (float) (1.0f / Math.sqrt(sqr(v[0]) + sqr(v[1]) + sqr(v[2]))); if (d != 0) { v[0] *= d; v[1] *= d; v[2] *= d; } } }
public class class_name { public static void vNormalize(float[] v) { float d = (float) (1.0f / Math.sqrt(sqr(v[0]) + sqr(v[1]) + sqr(v[2]))); if (d != 0) { v[0] *= d; // depends on control dependency: [if], data = [none] v[1] *= d; // depends on control dependency: [if], data = ...
public class class_name { private String createRemoteRequestURI(HttpServletRequest pRequest) { StringBuilder requestURI = new StringBuilder(remotePath); requestURI.append(pRequest.getPathInfo()); if (!StringUtil.isEmpty(pRequest.getQueryString())) { requestURI.append("?"); ...
public class class_name { private String createRemoteRequestURI(HttpServletRequest pRequest) { StringBuilder requestURI = new StringBuilder(remotePath); requestURI.append(pRequest.getPathInfo()); if (!StringUtil.isEmpty(pRequest.getQueryString())) { requestURI.append("?"); //...
public class class_name { private ErrorObjectWithJsonError createResponseError(String jsonRpc, Object id, JsonError errorObject) { ObjectNode response = mapper.createObjectNode(); ObjectNode error = mapper.createObjectNode(); error.put(ERROR_CODE, errorObject.code); error.put(ERROR_MESSAGE, errorObject.message...
public class class_name { private ErrorObjectWithJsonError createResponseError(String jsonRpc, Object id, JsonError errorObject) { ObjectNode response = mapper.createObjectNode(); ObjectNode error = mapper.createObjectNode(); error.put(ERROR_CODE, errorObject.code); error.put(ERROR_MESSAGE, errorObject.message...
public class class_name { public DescribeClustersResult withClusters(Cluster... clusters) { if (this.clusters == null) { setClusters(new com.amazonaws.internal.SdkInternalList<Cluster>(clusters.length)); } for (Cluster ele : clusters) { this.clusters.add(ele); } ...
public class class_name { public DescribeClustersResult withClusters(Cluster... clusters) { if (this.clusters == null) { setClusters(new com.amazonaws.internal.SdkInternalList<Cluster>(clusters.length)); // depends on control dependency: [if], data = [none] } for (Cluster ele : clus...
public class class_name { private Iterator<Map.Entry<DeltaClusteringKey, Compaction>> decodeCompactionsFromCql(final Iterator<Row> iter) { return new AbstractIterator<Map.Entry<DeltaClusteringKey, Compaction>>() { @Override protected Map.Entry<DeltaClusteringKey, Compaction> computeNext...
public class class_name { private Iterator<Map.Entry<DeltaClusteringKey, Compaction>> decodeCompactionsFromCql(final Iterator<Row> iter) { return new AbstractIterator<Map.Entry<DeltaClusteringKey, Compaction>>() { @Override protected Map.Entry<DeltaClusteringKey, Compaction> computeNext...
public class class_name { public void marshall(ReservationPurchaseRecommendationSummary reservationPurchaseRecommendationSummary, ProtocolMarshaller protocolMarshaller) { if (reservationPurchaseRecommendationSummary == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"...
public class class_name { public void marshall(ReservationPurchaseRecommendationSummary reservationPurchaseRecommendationSummary, ProtocolMarshaller protocolMarshaller) { if (reservationPurchaseRecommendationSummary == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"...
public class class_name { @Override public int compareTo(Version other) { int result = normal.compareTo(other.normal); if (result == 0) { result = preRelease.compareTo(other.preRelease); } return result; } }
public class class_name { @Override public int compareTo(Version other) { int result = normal.compareTo(other.normal); if (result == 0) { result = preRelease.compareTo(other.preRelease); // depends on control dependency: [if], data = [none] } return result; } }
public class class_name { public String constructShortName() { String result = shortName; if(dir != null) { result = dir + "/" + result; } if(extension != null) { result = result + "." + extension; } return result; } }
public class class_name { public String constructShortName() { String result = shortName; if(dir != null) { result = dir + "/" + result; // depends on control dependency: [if], data = [none] } if(extension != null) { result = result + "." + extension; // depends ...
public class class_name { public static VINT fromValue(long value) { BitSet bs = BitSet.valueOf(new long[] { value }); byte length = (byte) (1 + bs.length() / BIT_IN_BYTE); if (bs.length() == length * BIT_IN_BYTE) { length++; } bs.set(length * BIT_IN_BYTE - length); ...
public class class_name { public static VINT fromValue(long value) { BitSet bs = BitSet.valueOf(new long[] { value }); byte length = (byte) (1 + bs.length() / BIT_IN_BYTE); if (bs.length() == length * BIT_IN_BYTE) { length++; // depends on control dependency: [if], data = [none] ...
public class class_name { public static base_responses update(nitro_service client, aaakcdaccount resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { aaakcdaccount updateresources[] = new aaakcdaccount[resources.length]; for (int i=0;i<resources.leng...
public class class_name { public static base_responses update(nitro_service client, aaakcdaccount resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { aaakcdaccount updateresources[] = new aaakcdaccount[resources.length]; for (int i=0;i<resources.leng...
public class class_name { public String getEndUserAuthorizationRequestUri(final HttpServletRequest request) { OAuthClientRequest oauthClientRequest; try { oauthClientRequest = OAuthClientRequest .authorizationLocation(authorizationLocation) .setClientId(clientId) .setRedirectURI(getAbsoluteUrl(re...
public class class_name { public String getEndUserAuthorizationRequestUri(final HttpServletRequest request) { OAuthClientRequest oauthClientRequest; try { oauthClientRequest = OAuthClientRequest .authorizationLocation(authorizationLocation) .setClientId(clientId) .setRedirectURI(getAbsoluteUrl(re...
public class class_name { int readResults(byte[] b, int bPos, int bAvail) { if (buffer != null) { int len = Math.min(avail(), bAvail); if (buffer != b) { System.arraycopy(buffer, readPos, b, bPos, len); readPos += len; if (readPos >= pos) ...
public class class_name { int readResults(byte[] b, int bPos, int bAvail) { if (buffer != null) { int len = Math.min(avail(), bAvail); if (buffer != b) { System.arraycopy(buffer, readPos, b, bPos, len); // depends on control dependency: [if], data = [(buffer] ...
public class class_name { @SuppressWarnings("unchecked") @Override public <C extends Configuration<K, T>> C getConfiguration(Class<C> clazz) { final C c = cache.getConfiguration(clazz); if (c instanceof CompleteConfiguration) { final CompleteConfiguration<K, T> cc = (CompleteConfiguration<K,T>) c; ...
public class class_name { @SuppressWarnings("unchecked") @Override public <C extends Configuration<K, T>> C getConfiguration(Class<C> clazz) { final C c = cache.getConfiguration(clazz); if (c instanceof CompleteConfiguration) { final CompleteConfiguration<K, T> cc = (CompleteConfiguration<K,T>) c; ...
public class class_name { private void scheduleUpdate() { if (!isVisible()) { return; } SwingUtilities.invokeLater(new Runnable() { public void run() { try { container.gameLoop(); } catch (SlickException e) { e.printStackTrace(); } container.checkDimensions(); ...
public class class_name { private void scheduleUpdate() { if (!isVisible()) { return; // depends on control dependency: [if], data = [none] } SwingUtilities.invokeLater(new Runnable() { public void run() { try { container.gameLoop(); // depends on control dependency: [try], data = [non...
public class class_name { public void setSecretList(java.util.Collection<SecretListEntry> secretList) { if (secretList == null) { this.secretList = null; return; } this.secretList = new java.util.ArrayList<SecretListEntry>(secretList); } }
public class class_name { public void setSecretList(java.util.Collection<SecretListEntry> secretList) { if (secretList == null) { this.secretList = null; // depends on control dependency: [if], data = [none] return; // depends on control dependency: [if], data = [none] } ...
public class class_name { private static Constructor<?> getPersistenceStoreConstructor(Class<?> theClass, Class<?>[] interfaces) throws Exception { Constructor<?> constructor = null; for (Class<?> interfaceClass : interfaces) { try { constructor = theClass.getConstructor...
public class class_name { private static Constructor<?> getPersistenceStoreConstructor(Class<?> theClass, Class<?>[] interfaces) throws Exception { Constructor<?> constructor = null; for (Class<?> interfaceClass : interfaces) { try { constructor = theClass.getConstructor...
public class class_name { private UfsStatus[] trimIndirect(UfsStatus[] children) { List<UfsStatus> childrenList = new ArrayList<>(); for (UfsStatus child : children) { int index = child.getName().indexOf(AlluxioURI.SEPARATOR); if (index < 0 || index == child.getName().length()) { childrenLi...
public class class_name { private UfsStatus[] trimIndirect(UfsStatus[] children) { List<UfsStatus> childrenList = new ArrayList<>(); for (UfsStatus child : children) { int index = child.getName().indexOf(AlluxioURI.SEPARATOR); if (index < 0 || index == child.getName().length()) { childrenLi...
public class class_name { public static byte[] ascToBcd(byte[] ascii, int ascLength) { byte[] bcd = new byte[ascLength / 2]; int j = 0; for (int i = 0; i < (ascLength + 1) / 2; i++) { bcd[i] = ascToBcd(ascii[j++]); bcd[i] = (byte) (((j >= ascLength) ? 0x00 : ascToBcd(ascii[j++])) + (bcd[i] << 4)); ...
public class class_name { public static byte[] ascToBcd(byte[] ascii, int ascLength) { byte[] bcd = new byte[ascLength / 2]; int j = 0; for (int i = 0; i < (ascLength + 1) / 2; i++) { bcd[i] = ascToBcd(ascii[j++]); // depends on control dependency: [for], data = [i] bcd[i] = (byte) (((j >= ascLength) ...
public class class_name { private boolean isCollection(Class<?> rawType) { // this sucks... is there really no way to work around this in GWT? // http://code.google.com/p/google-web-toolkit/issues/detail?id=4663 if (rawType == Collection.class) { return true; } if (rawType == List.class) { ...
public class class_name { private boolean isCollection(Class<?> rawType) { // this sucks... is there really no way to work around this in GWT? // http://code.google.com/p/google-web-toolkit/issues/detail?id=4663 if (rawType == Collection.class) { return true; // depends on control dependency: [if], ...
public class class_name { public void addIndexWarning(String noIndexGiven) { if (jsonResponse==null){ jsonResponse = new JSONObject(); } jsonResponse.put("warning:noIndexGiven", noIndexGiven); } }
public class class_name { public void addIndexWarning(String noIndexGiven) { if (jsonResponse==null){ jsonResponse = new JSONObject(); // depends on control dependency: [if], data = [none] } jsonResponse.put("warning:noIndexGiven", noIndexGiven); } }