code
stringlengths
130
281k
code_dependency
stringlengths
182
306k
public class class_name { public static URI addPathComponent(URI uri, String component) { if (uri != null && component != null) try { return new URI(uri.getScheme(), uri.getUserInfo(), uri.getHost(), uri.getPort(), Optional.ofNullable(uri.getPath()).map(path -> join(path, compon...
public class class_name { public static URI addPathComponent(URI uri, String component) { if (uri != null && component != null) try { return new URI(uri.getScheme(), uri.getUserInfo(), uri.getHost(), uri.getPort(), Optional.ofNullable(uri.getPath()).map(path -> join(path, compon...
public class class_name { public boolean isMetBy(LocalProperties other) { if (this.ordering != null) { // we demand an ordering return other.getOrdering() != null && this.ordering.isMetBy(other.getOrdering()); } else if (this.groupedFields != null) { // check if the other fields are unique if (other.ge...
public class class_name { public boolean isMetBy(LocalProperties other) { if (this.ordering != null) { // we demand an ordering return other.getOrdering() != null && this.ordering.isMetBy(other.getOrdering()); // depends on control dependency: [if], data = [none] } else if (this.groupedFields != null) { /...
public class class_name { @Override public void run() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.entry(tc, "run", Thread.currentThread().getName() + " " + this.in.getReadListener()); } try { if (TraceComponent.isAnyTracingEn...
public class class_name { @Override public void run() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.entry(tc, "run", Thread.currentThread().getName() + " " + this.in.getReadListener()); // depends on control dependency: [if], data = [none] } tr...
public class class_name { protected Object session(Type type, String name) { return parameter(type, name, new Function<String, Object>() { public Object apply(String name) { return context.session().getAttribute(name); } }, new Function<String, Collection<Object>>() { @SuppressWarnings("unchecke...
public class class_name { protected Object session(Type type, String name) { return parameter(type, name, new Function<String, Object>() { public Object apply(String name) { return context.session().getAttribute(name); } }, new Function<String, Collection<Object>>() { @SuppressWarnings("unchecke...
public class class_name { public JsonObject prepare() { if (channel != null) { slackMessage.addProperty(CHANNEL, channel); } if (username != null) { slackMessage.addProperty(USERNAME, username); } if (icon != null) { if (icon.contains(HTTP)) { slackMessage.addProperty(ICON_URL, icon); } els...
public class class_name { public JsonObject prepare() { if (channel != null) { slackMessage.addProperty(CHANNEL, channel); // depends on control dependency: [if], data = [none] } if (username != null) { slackMessage.addProperty(USERNAME, username); // depends on control dependency: [if], data = [none] }...
public class class_name { @Override public EClass getIfcAudioVisualApplianceType() { if (ifcAudioVisualApplianceTypeEClass == null) { ifcAudioVisualApplianceTypeEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI) .getEClassifiers().get(30); } return ifcAudioVisualApplianc...
public class class_name { @Override public EClass getIfcAudioVisualApplianceType() { if (ifcAudioVisualApplianceTypeEClass == null) { ifcAudioVisualApplianceTypeEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI) .getEClassifiers().get(30); // depends on control dependency: [i...
public class class_name { public int hash(char[] buffer, int offset, int length) { int code = 0; for (int i = 0; i < length; i++) { code = code * 37 + buffer[offset + i]; } return code & 0x7FFFFFF; } }
public class class_name { public int hash(char[] buffer, int offset, int length) { int code = 0; for (int i = 0; i < length; i++) { code = code * 37 + buffer[offset + i]; // depends on control dependency: [for], data = [i] } return code & 0x7FFFFFF; } }
public class class_name { public CharSequence matchesPattern(final CharSequence input, final String pattern) { if (!Pattern.matches(pattern, input)) { fail(String.format(DEFAULT_MATCHES_PATTERN_EX, input, pattern)); } return input; } }
public class class_name { public CharSequence matchesPattern(final CharSequence input, final String pattern) { if (!Pattern.matches(pattern, input)) { fail(String.format(DEFAULT_MATCHES_PATTERN_EX, input, pattern)); // depends on control dependency: [if], data = [none] } return inpu...
public class class_name { @Pure @SuppressWarnings({"checkstyle:magicnumber", "checkstyle:cyclomaticcomplexity", "checkstyle:npathcomplexity"}) public static String formatTime(double amount, TimeUnit unit) { double amt; double coef = 1.; switch (unit) { case DAYS: coef = 86400.; break; case HOURS: ...
public class class_name { @Pure @SuppressWarnings({"checkstyle:magicnumber", "checkstyle:cyclomaticcomplexity", "checkstyle:npathcomplexity"}) public static String formatTime(double amount, TimeUnit unit) { double amt; double coef = 1.; switch (unit) { case DAYS: coef = 86400.; break; case HOURS: ...
public class class_name { public static Process launchVMWithClassPath(String classToLaunch, File[] classpath, String... additionalParams) throws IOException { final StringBuilder b = new StringBuilder(); for (final File f : classpath) { if (b.length() > 0) { b.append(File.pathSeparator); } b.append...
public class class_name { public static Process launchVMWithClassPath(String classToLaunch, File[] classpath, String... additionalParams) throws IOException { final StringBuilder b = new StringBuilder(); for (final File f : classpath) { if (b.length() > 0) { b.append(File.pathSeparator); // depends on co...
public class class_name { private Context getContext(ExecutionContext executionContext) { // Get context id. HttpServletRequest request = executionContext.getActionBeanContext().getRequest(); String parameter = request.getParameter(ID_PARAMETER); // Return context. if (...
public class class_name { private Context getContext(ExecutionContext executionContext) { // Get context id. HttpServletRequest request = executionContext.getActionBeanContext().getRequest(); String parameter = request.getParameter(ID_PARAMETER); // Return context. if (...
public class class_name { public static Optional<Method> extractGetter(final Class<?> targetClass, final String propertyName, final Class<?> propertyType) { final String methodName = "get" + Utils.capitalize(propertyName); Method method; try { method = target...
public class class_name { public static Optional<Method> extractGetter(final Class<?> targetClass, final String propertyName, final Class<?> propertyType) { final String methodName = "get" + Utils.capitalize(propertyName); Method method; try { method = target...
public class class_name { public static Set<Stubbing> findStubbings(Iterable<?> mocks) { Set<Stubbing> stubbings = new TreeSet<Stubbing>(new StubbingComparator()); for (Object mock : mocks) { Collection<? extends Stubbing> fromSingleMock = new DefaultMockingDetails(mock).getStubbings(); ...
public class class_name { public static Set<Stubbing> findStubbings(Iterable<?> mocks) { Set<Stubbing> stubbings = new TreeSet<Stubbing>(new StubbingComparator()); for (Object mock : mocks) { Collection<? extends Stubbing> fromSingleMock = new DefaultMockingDetails(mock).getStubbings(); // ...
public class class_name { public synchronized void firePlaylistChangeEvent(PlaylistBasicChangeEvent.Event event) { PlaylistBasicChangeEvent pce = new PlaylistBasicChangeEvent(this, event); for (PlaylistBasicChangeListener pcl : playlistListeners) { pcl.playlistBasicChange(pce); } ...
public class class_name { public synchronized void firePlaylistChangeEvent(PlaylistBasicChangeEvent.Event event) { PlaylistBasicChangeEvent pce = new PlaylistBasicChangeEvent(this, event); for (PlaylistBasicChangeListener pcl : playlistListeners) { pcl.playlistBasicChange(pce); // depends ...
public class class_name { public static void showKeyboardInDialog(Dialog dialog, EditText target) { if (dialog == null || target == null) { return; } dialog.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_VISIBLE); target.requestFocus(); } }
public class class_name { public static void showKeyboardInDialog(Dialog dialog, EditText target) { if (dialog == null || target == null) { return; // depends on control dependency: [if], data = [none] } dialog.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STAT...
public class class_name { private void ensureCapacity(int minCapacity) { long currentCapacity = data.length; if (minCapacity <= currentCapacity) { return; } // increase capacity by at least ~50% long expandedCapacity = Math.max(minCapacity, currentCapacity + (currentCapacity >> 1)); int newCapacity = ...
public class class_name { private void ensureCapacity(int minCapacity) { long currentCapacity = data.length; if (minCapacity <= currentCapacity) { return; // depends on control dependency: [if], data = [none] } // increase capacity by at least ~50% long expandedCapacity = Math.max(minCapacity, currentCa...
public class class_name { public Set<ConstraintViolation> validate(DataSetInfo info) { Set<ConstraintViolation> errors = new LinkedHashSet<ConstraintViolation>(); try { if (info.isMandatory() && get(info.getDataSetNumber()) == null) { errors.add(new ConstraintViolation(info, ConstraintViolation.MANDATOR...
public class class_name { public Set<ConstraintViolation> validate(DataSetInfo info) { Set<ConstraintViolation> errors = new LinkedHashSet<ConstraintViolation>(); try { if (info.isMandatory() && get(info.getDataSetNumber()) == null) { errors.add(new ConstraintViolation(info, ConstraintViolation.MANDATOR...
public class class_name { @SuppressWarnings("unused") private final void purgeBeanClasses(ClassLoader loader) { Iterator<Class<?>> classes = cache.keySet().iterator(); while (classes.hasNext()) { if (loader == classes.next().getClassLoader()) { classes.remove(); } } } }
public class class_name { @SuppressWarnings("unused") private final void purgeBeanClasses(ClassLoader loader) { Iterator<Class<?>> classes = cache.keySet().iterator(); while (classes.hasNext()) { if (loader == classes.next().getClassLoader()) { classes.remove(); // depends on control dependency: [if], data...
public class class_name { private static boolean subMatch(final String str, int soff, final byte[] m) { for(int k = 0; k < m.length; k++) { if(str.charAt(soff++) != m[k]) { return false; } } return true; } }
public class class_name { private static boolean subMatch(final String str, int soff, final byte[] m) { for(int k = 0; k < m.length; k++) { if(str.charAt(soff++) != m[k]) { return false; // depends on control dependency: [if], data = [none] } } return...
public class class_name { public Observable<ServiceResponse<Page<RemoteLoginInformationInner>>> listRemoteLoginInformationWithServiceResponseAsync(final String resourceGroupName, final String workspaceName, final String experimentName, final String jobName) { return listRemoteLoginInformationSinglePageAsync(re...
public class class_name { public Observable<ServiceResponse<Page<RemoteLoginInformationInner>>> listRemoteLoginInformationWithServiceResponseAsync(final String resourceGroupName, final String workspaceName, final String experimentName, final String jobName) { return listRemoteLoginInformationSinglePageAsync(re...
public class class_name { private byte getHeaderType(final Header header, final Header lastHeader) { //int lastFullTs = ((RTMPConnection) Red5.getConnectionLocal()).getState().getLastFullTimestampWritten(header.getChannelId()); if (lastHeader == null || header.getStreamId() != lastHeader.getStreamId(...
public class class_name { private byte getHeaderType(final Header header, final Header lastHeader) { //int lastFullTs = ((RTMPConnection) Red5.getConnectionLocal()).getState().getLastFullTimestampWritten(header.getChannelId()); if (lastHeader == null || header.getStreamId() != lastHeader.getStreamId(...
public class class_name { @Override public List<Group> getAtomGroups(GroupType type){ List<Group> tmp = new ArrayList<>() ; for (Group g : groups) { if (g.getType().equals(type)) { tmp.add(g); } } return tmp ; } }
public class class_name { @Override public List<Group> getAtomGroups(GroupType type){ List<Group> tmp = new ArrayList<>() ; for (Group g : groups) { if (g.getType().equals(type)) { tmp.add(g); // depends on control dependency: [if], data = [none] } } return tmp ; } }
public class class_name { public static JettyConnector[] parseConnectors(String[] connectors) { if (connectors == null) { return null; } List<JettyConnector> array = new ArrayList<>(); for (String coonectorString : connectors) { try { array.add(J...
public class class_name { public static JettyConnector[] parseConnectors(String[] connectors) { if (connectors == null) { return null; // depends on control dependency: [if], data = [none] } List<JettyConnector> array = new ArrayList<>(); for (String coonectorString : conne...
public class class_name { @Override public CPFriendlyURLEntry fetchByPrimaryKey(Serializable primaryKey) { Serializable serializable = entityCache.getResult(CPFriendlyURLEntryModelImpl.ENTITY_CACHE_ENABLED, CPFriendlyURLEntryImpl.class, primaryKey); if (serializable == nullModel) { return null; } CPF...
public class class_name { @Override public CPFriendlyURLEntry fetchByPrimaryKey(Serializable primaryKey) { Serializable serializable = entityCache.getResult(CPFriendlyURLEntryModelImpl.ENTITY_CACHE_ENABLED, CPFriendlyURLEntryImpl.class, primaryKey); if (serializable == nullModel) { return null; // depends...
public class class_name { public static String getCustomerInfoWithEncrypt(Map<String,String> customerInfoMap,String accNo,String encoding) { if(customerInfoMap.isEmpty()) return "{}"; StringBuffer sf = new StringBuffer("{"); //敏感信息加密域 StringBuffer encryptedInfoSb = new StringBuffer(""); for(Iterator<St...
public class class_name { public static String getCustomerInfoWithEncrypt(Map<String,String> customerInfoMap,String accNo,String encoding) { if(customerInfoMap.isEmpty()) return "{}"; StringBuffer sf = new StringBuffer("{"); //敏感信息加密域 StringBuffer encryptedInfoSb = new StringBuffer(""); for(Iterator<St...
public class class_name { @Override public void emit(SinkFactory factory, Doc doc) { logger.fine("Generating Java source based on " + doc.srcInfo); final StringBuilder header = new StringBuilder(); header.append(ASTPrinter.printComments("", commentProcessor.leftAlign(doc.pkg.comments))); ...
public class class_name { @Override public void emit(SinkFactory factory, Doc doc) { logger.fine("Generating Java source based on " + doc.srcInfo); final StringBuilder header = new StringBuilder(); header.append(ASTPrinter.printComments("", commentProcessor.leftAlign(doc.pkg.comments))); ...
public class class_name { boolean attemptClearSymbolIDValues() { boolean sidsRemain = false; if (_fieldName != null) { _fieldId = UNKNOWN_SYMBOL_ID; } else if (_fieldId > UNKNOWN_SYMBOL_ID) { // retaining the field SID, as it couldn't be cleared due t...
public class class_name { boolean attemptClearSymbolIDValues() { boolean sidsRemain = false; if (_fieldName != null) { _fieldId = UNKNOWN_SYMBOL_ID; // depends on control dependency: [if], data = [none] } else if (_fieldId > UNKNOWN_SYMBOL_ID) { // re...
public class class_name { public static long convertStringToFutureTimeMillis(String time) { Calendar exp = Calendar.getInstance(); if (time.endsWith("H")) { exp.add(Calendar.HOUR, Integer.valueOf(StringUtils.remove(time, 'H'))); } else if (time.endsWith("M")) { exp....
public class class_name { public static long convertStringToFutureTimeMillis(String time) { Calendar exp = Calendar.getInstance(); if (time.endsWith("H")) { exp.add(Calendar.HOUR, Integer.valueOf(StringUtils.remove(time, 'H'))); // depends on control dependency: [if], data = [none] ...
public class class_name { public FixedDelayBuilder<RetryBuilder<P>> fixedDelay() { if (fixedDelay == null) { fixedDelay = new FixedDelayBuilder<>(this, environmentBuilder); } return fixedDelay; } }
public class class_name { public FixedDelayBuilder<RetryBuilder<P>> fixedDelay() { if (fixedDelay == null) { fixedDelay = new FixedDelayBuilder<>(this, environmentBuilder); // depends on control dependency: [if], data = [none] } return fixedDelay; } }
public class class_name { private Observable<Boolean> reconfigureBucket(final BucketConfig config) { LOGGER.debug("Starting reconfiguration for bucket {}", config.name()); List<Observable<Boolean>> observables = new ArrayList<Observable<Boolean>>(); for (final NodeInfo nodeInfo : config.nodes()...
public class class_name { private Observable<Boolean> reconfigureBucket(final BucketConfig config) { LOGGER.debug("Starting reconfiguration for bucket {}", config.name()); List<Observable<Boolean>> observables = new ArrayList<Observable<Boolean>>(); for (final NodeInfo nodeInfo : config.nodes()...
public class class_name { public static char[] addToSortedCharArray(char[] a, char value) { if(a == null || a.length == 0) { return new char[] {value}; } int insertionPochar = -java.util.Arrays.binarySearch(a, value) - 1; if(insertionPochar < 0) { throw new IllegalArgumentException(String.format("E...
public class class_name { public static char[] addToSortedCharArray(char[] a, char value) { if(a == null || a.length == 0) { return new char[] {value}; // depends on control dependency: [if], data = [none] } int insertionPochar = -java.util.Arrays.binarySearch(a, value) - 1; if(insertionPochar < 0) { ...
public class class_name { @DoesServiceRequest public boolean createIfNotExists(FileRequestOptions options, OperationContext opContext) throws StorageException, URISyntaxException { options = FileRequestOptions.populateAndApplyDefaults(options, this.fileServiceClient); this.getShare().assertNoSnaps...
public class class_name { @DoesServiceRequest public boolean createIfNotExists(FileRequestOptions options, OperationContext opContext) throws StorageException, URISyntaxException { options = FileRequestOptions.populateAndApplyDefaults(options, this.fileServiceClient); this.getShare().assertNoSnaps...
public class class_name { boolean checkAvailablePush(Context context) { int connectionStatus = GoogleApiAvailability.getInstance().isGooglePlayServicesAvailable(context); if (connectionStatus == ConnectionResult.SUCCESS) { log.i("Google Play Services are available on this device."); ...
public class class_name { boolean checkAvailablePush(Context context) { int connectionStatus = GoogleApiAvailability.getInstance().isGooglePlayServicesAvailable(context); if (connectionStatus == ConnectionResult.SUCCESS) { log.i("Google Play Services are available on this device."); // dep...
public class class_name { static Set<DriverEventCode> getEnabledDriverEventCodes(final String enabledLoggerEventCodes) { if (null == enabledLoggerEventCodes || "".equals(enabledLoggerEventCodes)) { return EnumSet.noneOf(DriverEventCode.class); } final Set<DriverEventCod...
public class class_name { static Set<DriverEventCode> getEnabledDriverEventCodes(final String enabledLoggerEventCodes) { if (null == enabledLoggerEventCodes || "".equals(enabledLoggerEventCodes)) { return EnumSet.noneOf(DriverEventCode.class); // depends on control dependency: [if], dat...
public class class_name { public static String pathToClassName(String path) { path = path.replace('/', '.'); if (path.endsWith(CLASS_EXTENSION)) { path = path.substring(0, path.length() - CLASS_EXTENSION.length()); } return path; } }
public class class_name { public static String pathToClassName(String path) { path = path.replace('/', '.'); if (path.endsWith(CLASS_EXTENSION)) { path = path.substring(0, path.length() - CLASS_EXTENSION.length()); // depends on control dependency: [if], data = [none] } retu...
public class class_name { public static void transformDocumentToXml(DomDocument document, StreamResult result) { TransformerFactory transformerFactory = TransformerFactory.newInstance(); try { Transformer transformer = transformerFactory.newTransformer(); transformer.setOutputProperty(OutputKeys.EN...
public class class_name { public static void transformDocumentToXml(DomDocument document, StreamResult result) { TransformerFactory transformerFactory = TransformerFactory.newInstance(); try { Transformer transformer = transformerFactory.newTransformer(); transformer.setOutputProperty(OutputKeys.EN...
public class class_name { public A_CmsReportThread retrieveThread(CmsUUID key) { if (LOG.isDebugEnabled()) { dumpThreads(); } return m_threads.get(key); } }
public class class_name { public A_CmsReportThread retrieveThread(CmsUUID key) { if (LOG.isDebugEnabled()) { dumpThreads(); // depends on control dependency: [if], data = [none] } return m_threads.get(key); } }
public class class_name { static void adjustPositionSet( List<NodeInfo> order, Element positionSet, IntegrationResult result) { Node nodeToMatch = positionSet.getFirstChild(); Element nodeToInsertBefore = positionSet.getOwnerDocument().createElement("INSERT_POINT"); positionSet.inse...
public class class_name { static void adjustPositionSet( List<NodeInfo> order, Element positionSet, IntegrationResult result) { Node nodeToMatch = positionSet.getFirstChild(); Element nodeToInsertBefore = positionSet.getOwnerDocument().createElement("INSERT_POINT"); positionSet.inse...
public class class_name { public Space findSpace(float x, float y) { for (int i=0;i<spaces.size();i++) { Space space = getSpace(i); if (space.contains(x,y)) { return space; } } return null; } }
public class class_name { public Space findSpace(float x, float y) { for (int i=0;i<spaces.size();i++) { Space space = getSpace(i); if (space.contains(x,y)) { return space; // depends on control dependency: [if], data = [none] } } return null; } }
public class class_name { @Override public StreamOperatorStateContext streamOperatorStateContext( @Nonnull OperatorID operatorID, @Nonnull String operatorClassName, @Nonnull KeyContext keyContext, @Nullable TypeSerializer<?> keySerializer, @Nonnull CloseableRegistry streamTaskCloseableRegistry, @Nonnull M...
public class class_name { @Override public StreamOperatorStateContext streamOperatorStateContext( @Nonnull OperatorID operatorID, @Nonnull String operatorClassName, @Nonnull KeyContext keyContext, @Nullable TypeSerializer<?> keySerializer, @Nonnull CloseableRegistry streamTaskCloseableRegistry, @Nonnull M...
public class class_name { private static void quoteList(final Collection<String> coll, final StringBuilder buf) { buf.append('['); boolean first = true; for (final String item : coll) { if (first) { first = false; } else { buf.append(", ")...
public class class_name { private static void quoteList(final Collection<String> coll, final StringBuilder buf) { buf.append('['); boolean first = true; for (final String item : coll) { if (first) { first = false; // depends on control dependency: [if], data = [none]...
public class class_name { static public void registerFactory( FeatureType datatype, Class c) { if (!(TypedDatasetFactoryIF.class.isAssignableFrom( c))) throw new IllegalArgumentException("Class "+c.getName()+" must implement TypedDatasetFactoryIF"); // fail fast - check newInstance works Object inst...
public class class_name { static public void registerFactory( FeatureType datatype, Class c) { if (!(TypedDatasetFactoryIF.class.isAssignableFrom( c))) throw new IllegalArgumentException("Class "+c.getName()+" must implement TypedDatasetFactoryIF"); // fail fast - check newInstance works Object inst...
public class class_name { private void handleGroupChannel(JsonNode jsonChannel) { long channelId = jsonChannel.get("id").asLong(); api.getGroupChannelById(channelId).map(GroupChannelImpl.class::cast).ifPresent(channel -> { String oldName = channel.getName().orElseThrow(AssertionError::new);...
public class class_name { private void handleGroupChannel(JsonNode jsonChannel) { long channelId = jsonChannel.get("id").asLong(); api.getGroupChannelById(channelId).map(GroupChannelImpl.class::cast).ifPresent(channel -> { String oldName = channel.getName().orElseThrow(AssertionError::new);...
public class class_name { public synchronized DirectoryScanner setExcludes(String[] excludes) { if (excludes == null) { this.excludes = null; } else { this.excludes = new String[excludes.length]; for (int i = 0; i < excludes.length; i++) { this.exclud...
public class class_name { public synchronized DirectoryScanner setExcludes(String[] excludes) { if (excludes == null) { this.excludes = null; // depends on control dependency: [if], data = [none] } else { this.excludes = new String[excludes.length]; // depends on control depende...
public class class_name { protected AllowableActions collectAllowableActions(CmsObject cms, CmsResource file) { try { if (file == null) { throw new IllegalArgumentException("File must not be null!"); } CmsLock lock = cms.getLock(file); C...
public class class_name { protected AllowableActions collectAllowableActions(CmsObject cms, CmsResource file) { try { if (file == null) { throw new IllegalArgumentException("File must not be null!"); } CmsLock lock = cms.getLock(file); C...
public class class_name { public static <T> T readObjectFromFile(String file, Class<T> clazz, boolean printException) { final FileInputStream fileIn; try { fileIn = new FileInputStream(file); } catch (Exception e) { printException(e, printException); re...
public class class_name { public static <T> T readObjectFromFile(String file, Class<T> clazz, boolean printException) { final FileInputStream fileIn; try { fileIn = new FileInputStream(file); // depends on control dependency: [try], data = [none] } catch (Exception e) { ...
public class class_name { boolean allowsValue(String str, ValidationContext vc) { try { getValue(str, vc); return true; } catch (DatatypeException e) { return false; } } }
public class class_name { boolean allowsValue(String str, ValidationContext vc) { try { getValue(str, vc); // depends on control dependency: [try], data = [none] return true; // depends on control dependency: [try], data = [none] } catch (DatatypeException e) { return false; } // depe...
public class class_name { private int[] doLabel( int[] data, int width, int height ) { int nextlabel = 1; int nbs[] = new int[4]; int nbls[] = new int[4]; // Get size of image and make 1d_arrays int d_w = width; int d_h = height; int[] dest_1d = new int[d_w * ...
public class class_name { private int[] doLabel( int[] data, int width, int height ) { int nextlabel = 1; int nbs[] = new int[4]; int nbls[] = new int[4]; // Get size of image and make 1d_arrays int d_w = width; int d_h = height; int[] dest_1d = new int[d_w * ...
public class class_name { public Block withEntityTypes(String... entityTypes) { if (this.entityTypes == null) { setEntityTypes(new java.util.ArrayList<String>(entityTypes.length)); } for (String ele : entityTypes) { this.entityTypes.add(ele); } return thi...
public class class_name { public Block withEntityTypes(String... entityTypes) { if (this.entityTypes == null) { setEntityTypes(new java.util.ArrayList<String>(entityTypes.length)); // depends on control dependency: [if], data = [none] } for (String ele : entityTypes) { t...
public class class_name { private void sendPending() { while (outstanding.get() < concurrency) { final TopicQueue queue = pendingTopics.poll(); if (queue == null) { return; } queue.pending = false; final int sent = queue.sendBatch(); // Did we send a whole batch? Then ...
public class class_name { private void sendPending() { while (outstanding.get() < concurrency) { final TopicQueue queue = pendingTopics.poll(); if (queue == null) { return; // depends on control dependency: [if], data = [none] } queue.pending = false; // depends on control dependen...
public class class_name { private void checkPoint(Collidable objectA, Map<Point, Set<Collidable>> acceptedElements, Point point) { final Set<Collidable> others = acceptedElements.get(point); for (final Collidable objectB : others) { if (objectA != objectB) { ...
public class class_name { private void checkPoint(Collidable objectA, Map<Point, Set<Collidable>> acceptedElements, Point point) { final Set<Collidable> others = acceptedElements.get(point); for (final Collidable objectB : others) { if (objectA != objectB) { ...
public class class_name { public int getInteger(String name, int defaultValue) { try { String value = getString(name, null); if (!StringUtils.isNullOrEmpty(value)) { return Integer.parseInt(value.trim()); } } catch (NumberFormatException e) { ...
public class class_name { public int getInteger(String name, int defaultValue) { try { String value = getString(name, null); if (!StringUtils.isNullOrEmpty(value)) { return Integer.parseInt(value.trim()); // depends on control dependency: [if], data = [none] ...
public class class_name { @Override public Collection<Symptom> detect(Collection<Measurement> measurements) { publishingMetrics.executeDetectorIncr(BACK_PRESSURE_DETECTOR); Collection<Symptom> result = new ArrayList<>(); Instant now = context.checkpoint(); MeasurementsTable bpMetrics = Meas...
public class class_name { @Override public Collection<Symptom> detect(Collection<Measurement> measurements) { publishingMetrics.executeDetectorIncr(BACK_PRESSURE_DETECTOR); Collection<Symptom> result = new ArrayList<>(); Instant now = context.checkpoint(); MeasurementsTable bpMetrics = Meas...
public class class_name { @Override public ExitStatus afterStep(StepExecution stepExecution) { ExitStatus status = stepExecution.getExitStatus(); List<String> errors = getErrors(); if (errors.isEmpty()) { try { RestoreStatus newStatus = RestoreStatus.TRANSFER_TO...
public class class_name { @Override public ExitStatus afterStep(StepExecution stepExecution) { ExitStatus status = stepExecution.getExitStatus(); List<String> errors = getErrors(); if (errors.isEmpty()) { try { RestoreStatus newStatus = RestoreStatus.TRANSFER_TO...
public class class_name { public void put_device_attribute_property(Database database, String deviceName, DbAttribute[] attr) throws DevFailed { if (!database.isAccess_checked()) checkAccess(database); DeviceData argIn = new DeviceData(); try { // value is an array ...
public class class_name { public void put_device_attribute_property(Database database, String deviceName, DbAttribute[] attr) throws DevFailed { if (!database.isAccess_checked()) checkAccess(database); DeviceData argIn = new DeviceData(); try { // value is an array ...
public class class_name { private static Properties loadPropsFromResource(String resourceName, boolean failOnResourceNotFoundOrNotLoaded) { Properties props = new Properties(); InputStream resource = PropertyLoaderFromResource.class.getResourceAsStream(resourceName); boolean resourceNotFound = (resource == null)...
public class class_name { private static Properties loadPropsFromResource(String resourceName, boolean failOnResourceNotFoundOrNotLoaded) { Properties props = new Properties(); InputStream resource = PropertyLoaderFromResource.class.getResourceAsStream(resourceName); boolean resourceNotFound = (resource == null)...
public class class_name { @Override public void close() { //at the moment the only thing that might need to happen is to stop the timeout... //however, if execution has completed normally and as designed, the timeout will already be stopped //one day there might be more things that need clo...
public class class_name { @Override public void close() { //at the moment the only thing that might need to happen is to stop the timeout... //however, if execution has completed normally and as designed, the timeout will already be stopped //one day there might be more things that need clo...
public class class_name { public ClientStats getStatsForProcedure(String procedureName) { Map<Long, Map<String, ClientStats>> complete = getCompleteStats(); List<ClientStats> statsForProc = new ArrayList<ClientStats>(); for (Entry<Long, Map<String, ClientStats>> e : complete.entrySet()) { ...
public class class_name { public ClientStats getStatsForProcedure(String procedureName) { Map<Long, Map<String, ClientStats>> complete = getCompleteStats(); List<ClientStats> statsForProc = new ArrayList<ClientStats>(); for (Entry<Long, Map<String, ClientStats>> e : complete.entrySet()) { ...
public class class_name { public static Integer toInteger(Object v) { if (v == null) { return null; } if (v instanceof Boolean) { return ((Boolean) v) ? 1 : 0; } return ((Number) v).intValue(); } }
public class class_name { public static Integer toInteger(Object v) { if (v == null) { return null; // depends on control dependency: [if], data = [none] } if (v instanceof Boolean) { return ((Boolean) v) ? 1 : 0; // depends on control dependency: [if], data = [none] ...
public class class_name { public void setCompanyName(java.util.Collection<StringFilter> companyName) { if (companyName == null) { this.companyName = null; return; } this.companyName = new java.util.ArrayList<StringFilter>(companyName); } }
public class class_name { public void setCompanyName(java.util.Collection<StringFilter> companyName) { if (companyName == null) { this.companyName = null; // depends on control dependency: [if], data = [none] return; // depends on control dependency: [if], data = [none] } ...
public class class_name { public void setCommandExecutor(ActionCommandExecutor commandExecutor) { if (ObjectUtils.nullSafeEquals(this.commandExecutor, commandExecutor)) { return; } if (commandExecutor == null) { detachCommandExecutor(); } else { ...
public class class_name { public void setCommandExecutor(ActionCommandExecutor commandExecutor) { if (ObjectUtils.nullSafeEquals(this.commandExecutor, commandExecutor)) { return; // depends on control dependency: [if], data = [none] } if (commandExecutor == null) { detac...
public class class_name { public static void pause(long delay) { try { Thread.sleep(delay); } catch (@SuppressWarnings("unused") final InterruptedException exception) { Thread.currentThread().interrupt(); } } }
public class class_name { public static void pause(long delay) { try { Thread.sleep(delay); // depends on control dependency: [try], data = [none] } catch (@SuppressWarnings("unused") final InterruptedException exception) { Thread.currentThrea...
public class class_name { public void marshall(BulkDeploymentMetrics bulkDeploymentMetrics, ProtocolMarshaller protocolMarshaller) { if (bulkDeploymentMetrics == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshalle...
public class class_name { public void marshall(BulkDeploymentMetrics bulkDeploymentMetrics, ProtocolMarshaller protocolMarshaller) { if (bulkDeploymentMetrics == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshalle...
public class class_name { public static AsciiString of(CharSequence name) { if (name instanceof AsciiString) { return of((AsciiString) name); } final String lowerCased = Ascii.toLowerCase(requireNonNull(name, "name")); final AsciiString cached = map.get(lowerCased); ...
public class class_name { public static AsciiString of(CharSequence name) { if (name instanceof AsciiString) { return of((AsciiString) name); // depends on control dependency: [if], data = [none] } final String lowerCased = Ascii.toLowerCase(requireNonNull(name, "name")); f...
public class class_name { public static List<Method> getPublicMethod(Class<?> clz) { Method[] methods = clz.getMethods(); List<Method> ret = new ArrayList<Method>(); for (Method method : methods) { boolean isPublic = Modifier.isPublic(method.getModifiers()); boolean is...
public class class_name { public static List<Method> getPublicMethod(Class<?> clz) { Method[] methods = clz.getMethods(); List<Method> ret = new ArrayList<Method>(); for (Method method : methods) { boolean isPublic = Modifier.isPublic(method.getModifiers()); boolean is...
public class class_name { public static long getDirLogicalSize(List<FileStatus> lfs) { long totalSize = 0L; if (null == lfs) { return totalSize; } for (FileStatus fsStat : lfs) { totalSize += fsStat.getLen(); } return totalSize; } }
public class class_name { public static long getDirLogicalSize(List<FileStatus> lfs) { long totalSize = 0L; if (null == lfs) { return totalSize; // depends on control dependency: [if], data = [none] } for (FileStatus fsStat : lfs) { totalSize += fsStat.getLen(); // depends on control d...
public class class_name { private RSAPublicKey getKeyForUser(String userName) throws KeyNotFoundException { RSAPublicKey key = null; for (final KeyProvider keyProvider : keyProviders) { try { key = keyProvider.getKey(userName); break; } catch (KeyNotFoundException e) { // th...
public class class_name { private RSAPublicKey getKeyForUser(String userName) throws KeyNotFoundException { RSAPublicKey key = null; for (final KeyProvider keyProvider : keyProviders) { try { key = keyProvider.getKey(userName); // depends on control dependency: [try], data = [none] break;...
public class class_name { public void marshall(DisassociateConnectionFromLagRequest disassociateConnectionFromLagRequest, ProtocolMarshaller protocolMarshaller) { if (disassociateConnectionFromLagRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); }...
public class class_name { public void marshall(DisassociateConnectionFromLagRequest disassociateConnectionFromLagRequest, ProtocolMarshaller protocolMarshaller) { if (disassociateConnectionFromLagRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); }...
public class class_name { public Converter<?, NetworkRequest> requestConverter(Type type, Annotation[] annotations) { checkNotNull(type, "type == null"); checkNotNull(annotations, "annotations == null"); for (int i = 0, count = converters.size(); i < count; i++) { Converter<?, Netw...
public class class_name { public Converter<?, NetworkRequest> requestConverter(Type type, Annotation[] annotations) { checkNotNull(type, "type == null"); checkNotNull(annotations, "annotations == null"); for (int i = 0, count = converters.size(); i < count; i++) { Converter<?, Netw...
public class class_name { protected void writePackageFiles(QualifiedName name, String lineSeparator, IExtraLanguageGeneratorContext context) { final IFileSystemAccess2 fsa = context.getFileSystemAccess(); final String outputConfiguration = getOutputConfigurationName(); QualifiedName libraryName = null; for ...
public class class_name { protected void writePackageFiles(QualifiedName name, String lineSeparator, IExtraLanguageGeneratorContext context) { final IFileSystemAccess2 fsa = context.getFileSystemAccess(); final String outputConfiguration = getOutputConfigurationName(); QualifiedName libraryName = null; for ...
public class class_name { void emitMinusOne(int tc) { if (tc == LONGcode) { items.makeImmediateItem(syms.longType, Long.valueOf(-1)).load(); } else { code.emitop0(iconst_m1); } } }
public class class_name { void emitMinusOne(int tc) { if (tc == LONGcode) { items.makeImmediateItem(syms.longType, Long.valueOf(-1)).load(); // depends on control dependency: [if], data = [none] } else { code.emitop0(iconst_m1); // depends on control dependency: [if], data = [no...
public class class_name { public void marshall(ImportSourceCredentialsRequest importSourceCredentialsRequest, ProtocolMarshaller protocolMarshaller) { if (importSourceCredentialsRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { ...
public class class_name { public void marshall(ImportSourceCredentialsRequest importSourceCredentialsRequest, ProtocolMarshaller protocolMarshaller) { if (importSourceCredentialsRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { ...
public class class_name { public static short getShort(MemorySegment[] segments, int offset) { if (inFirstSegment(segments, offset, 2)) { return segments[0].getShort(offset); } else { return getShortMultiSegments(segments, offset); } } }
public class class_name { public static short getShort(MemorySegment[] segments, int offset) { if (inFirstSegment(segments, offset, 2)) { return segments[0].getShort(offset); // depends on control dependency: [if], data = [none] } else { return getShortMultiSegments(segments, offset); // depends on control d...
public class class_name { private ImageMetaData readImageMetaData() { InputStream inputStream = null; ImageMetaData metaData = null; try { inputStream = getInputStream(); metaData = BitmapUtil.decodeDimensionsAndColorSpace(inputStream); mColorSpace = metaData.getColorSpace(); Pair<I...
public class class_name { private ImageMetaData readImageMetaData() { InputStream inputStream = null; ImageMetaData metaData = null; try { inputStream = getInputStream(); // depends on control dependency: [try], data = [none] metaData = BitmapUtil.decodeDimensionsAndColorSpace(inputStream); // ...
public class class_name { protected int marshalMessagesToSameDestination(Address dest, Message[] buf, final int start_index, final int end_index, int max_bundle_size) throws Exception { int num_msgs=0, bytes=0; for(int i=start_index; i != end_index; i=...
public class class_name { protected int marshalMessagesToSameDestination(Address dest, Message[] buf, final int start_index, final int end_index, int max_bundle_size) throws Exception { int num_msgs=0, bytes=0; for(int i=start_index; i != end_index; i=...
public class class_name { public JimfsPath createPath(@Nullable Name root, Iterable<Name> names) { ImmutableList<Name> nameList = ImmutableList.copyOf(Iterables.filter(names, NOT_EMPTY)); if (root == null && nameList.isEmpty()) { // ensure the canonical empty path (one empty string name) is used rather t...
public class class_name { public JimfsPath createPath(@Nullable Name root, Iterable<Name> names) { ImmutableList<Name> nameList = ImmutableList.copyOf(Iterables.filter(names, NOT_EMPTY)); if (root == null && nameList.isEmpty()) { // ensure the canonical empty path (one empty string name) is used rather t...
public class class_name { static public List<String> breakUpCommand(String command) throws Exception{ try { List<String> commandTokens = new Vector<String>(); StringBuilder currentToken = null; boolean isTokenQuoted = false; StringReader sr = new StringReader(command); int b = sr.read(); while(...
public class class_name { static public List<String> breakUpCommand(String command) throws Exception{ try { List<String> commandTokens = new Vector<String>(); StringBuilder currentToken = null; boolean isTokenQuoted = false; StringReader sr = new StringReader(command); int b = sr.read(); while(...
public class class_name { public static List<List<String>> convertWritableInputToString(List<List<Writable>> stringInput,Schema schema) { List<List<String>> ret = new ArrayList<>(); List<List<String>> timeStepAdd = new ArrayList<>(); for(int j = 0; j < stringInput.size(); j++) { Lis...
public class class_name { public static List<List<String>> convertWritableInputToString(List<List<Writable>> stringInput,Schema schema) { List<List<String>> ret = new ArrayList<>(); List<List<String>> timeStepAdd = new ArrayList<>(); for(int j = 0; j < stringInput.size(); j++) { Lis...
public class class_name { @Override public void visitClassContext(ClassContext clsContext) { try { stack = new OpcodeStack(); clsVersion = clsContext.getJavaClass().getMajor(); unendedZLIBs = new HashMap<>(); super.visitClassContext(clsContext); } fi...
public class class_name { @Override public void visitClassContext(ClassContext clsContext) { try { stack = new OpcodeStack(); // depends on control dependency: [try], data = [none] clsVersion = clsContext.getJavaClass().getMajor(); // depends on control dependency: [try], data = [n...
public class class_name { public static String getBaseDir() { // 'basedir' is set by Maven Surefire. It always points to the current subproject, // even in reactor builds. String baseDir = System.getProperty("basedir"); // if 'basedir' is not set, try the current directory if (...
public class class_name { public static String getBaseDir() { // 'basedir' is set by Maven Surefire. It always points to the current subproject, // even in reactor builds. String baseDir = System.getProperty("basedir"); // if 'basedir' is not set, try the current directory if (...
public class class_name { public static List<ReflectedInfo> getExposedFieldInfo(final Class<?> clazz) { List<ReflectedInfo> results = null; try { results = fieldInfoCache.get(clazz, new Callable<List<ReflectedInfo>>() { /** * This method is called if th...
public class class_name { public static List<ReflectedInfo> getExposedFieldInfo(final Class<?> clazz) { List<ReflectedInfo> results = null; try { results = fieldInfoCache.get(clazz, new Callable<List<ReflectedInfo>>() { /** * This method is called if th...
public class class_name { JCTree attribSpeculative(JCTree tree, Env<AttrContext> env, ResultInfo resultInfo) { final JCTree newTree = new TreeCopier<Object>(make).copy(tree); Env<AttrContext> speculativeEnv = env.dup(newTree, env.info.dup(env.info.scope.dupUnshared())); speculativeEnv.info.scop...
public class class_name { JCTree attribSpeculative(JCTree tree, Env<AttrContext> env, ResultInfo resultInfo) { final JCTree newTree = new TreeCopier<Object>(make).copy(tree); Env<AttrContext> speculativeEnv = env.dup(newTree, env.info.dup(env.info.scope.dupUnshared())); speculativeEnv.info.scop...
public class class_name { public final void start() { if (isStarted()) return; if (getContext() == null) { throw new IllegalStateException("context not set"); } if (shouldStart()) { getContext().getScheduledExecutorService().execute(getRunnableTask()); started = true; } } }
public class class_name { public final void start() { if (isStarted()) return; if (getContext() == null) { throw new IllegalStateException("context not set"); } if (shouldStart()) { getContext().getScheduledExecutorService().execute(getRunnableTask()); // depends on control dependency: [if]...
public class class_name { public void respawn(int index) { configurationRwLock.writeLock().lock(); try { if (index >= 0 && index < servers.length) { servers[index].startup(); } rebalance(); } finally { Info.incrementConfigRevision(...
public class class_name { public void respawn(int index) { configurationRwLock.writeLock().lock(); try { if (index >= 0 && index < servers.length) { servers[index].startup(); // depends on control dependency: [if], data = [none] } rebalance(); // depe...
public class class_name { public KQueueDatagramChannelConfig setReusePort(boolean reusePort) { try { ((KQueueDatagramChannel) channel).socket.setReusePort(reusePort); return this; } catch (IOException e) { throw new ChannelException(e); } } }
public class class_name { public KQueueDatagramChannelConfig setReusePort(boolean reusePort) { try { ((KQueueDatagramChannel) channel).socket.setReusePort(reusePort); // depends on control dependency: [try], data = [none] return this; // depends on control dependency: [try], data = [non...
public class class_name { private static SQLTransform getTransform(TypeName typeName) { if (typeName.isPrimitive()) { return getPrimitiveTransform(typeName); } if (typeName instanceof ArrayTypeName) { ArrayTypeName typeNameArray = (ArrayTypeName) typeName; TypeName componentTypeName = typeNameArray.com...
public class class_name { private static SQLTransform getTransform(TypeName typeName) { if (typeName.isPrimitive()) { return getPrimitiveTransform(typeName); // depends on control dependency: [if], data = [none] } if (typeName instanceof ArrayTypeName) { ArrayTypeName typeNameArray = (ArrayTypeName) typeN...
public class class_name { @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, int highlightColor) { Context ctx = inflater.getContext(); View view = inflater.inflate(R.layout.navdrawer_item, container, false); ImageView iconView = ButterKnife.findById(view, R.i...
public class class_name { @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, int highlightColor) { Context ctx = inflater.getContext(); View view = inflater.inflate(R.layout.navdrawer_item, container, false); ImageView iconView = ButterKnife.findById(view, R.i...
public class class_name { public String getNamespaceForPrefix(String prefix, org.w3c.dom.Node namespaceContext) { Node parent = namespaceContext; String namespace = null; if (prefix.equals("xml")) { namespace = S_XMLNAMESPACEURI; } else...
public class class_name { public String getNamespaceForPrefix(String prefix, org.w3c.dom.Node namespaceContext) { Node parent = namespaceContext; String namespace = null; if (prefix.equals("xml")) { namespace = S_XMLNAMESPACEURI; // depends on ...
public class class_name { protected final void verifyFieldType(short id, String name, Collection<FieldMetadata> fields, ThriftCatalog catalog) { boolean isSupportedType = true; for (FieldMetadata field : fields) { if (!catalog.isSupportedStructFieldType(field.getJavaType())) { ...
public class class_name { protected final void verifyFieldType(short id, String name, Collection<FieldMetadata> fields, ThriftCatalog catalog) { boolean isSupportedType = true; for (FieldMetadata field : fields) { if (!catalog.isSupportedStructFieldType(field.getJavaType())) { ...
public class class_name { public Observable<ServiceResponse<Boolean>> checkNameExistsWithServiceResponseAsync(String accountName) { if (accountName == null) { throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); } if (this.client.apiVersion() ...
public class class_name { public Observable<ServiceResponse<Boolean>> checkNameExistsWithServiceResponseAsync(String accountName) { if (accountName == null) { throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); } if (this.client.apiVersion() ...
public class class_name { public boolean setMetadata(int iid, Object metaData) { if (iid < 0 || iid > loadCounter) { System.out.println("Internal id " + iid + " is out of range!"); return false; } MetaDataEntity mde = new MetaDataEntity(iid, metaData); PrimaryIndex<Integer, MetaDataEntity> primaryI...
public class class_name { public boolean setMetadata(int iid, Object metaData) { if (iid < 0 || iid > loadCounter) { System.out.println("Internal id " + iid + " is out of range!"); // depends on control dependency: [if], data = [none] return false; // depends on control dependency: [if], data = [none] } ...
public class class_name { @NullSafe public static boolean containsDigits(String value) { for (char chr : toCharArray(value)) { if (Character.isDigit(chr)) { return true; } } return false; } }
public class class_name { @NullSafe public static boolean containsDigits(String value) { for (char chr : toCharArray(value)) { if (Character.isDigit(chr)) { return true; // depends on control dependency: [if], data = [none] } } return false; } }
public class class_name { private IcsListPopupWindow getListPopupWindow() { if (mListPopupWindow == null) { mListPopupWindow = new IcsListPopupWindow(getContext()); mListPopupWindow.setAdapter(mAdapter); mListPopupWindow.setAnchorView(ActivityChooserView.this); m...
public class class_name { private IcsListPopupWindow getListPopupWindow() { if (mListPopupWindow == null) { mListPopupWindow = new IcsListPopupWindow(getContext()); // depends on control dependency: [if], data = [none] mListPopupWindow.setAdapter(mAdapter); // depends on control depende...
public class class_name { public StreamSource getTransformerStream(String strDocument) { StreamSource source = null; if (strDocument.indexOf(':') == -1) { // See if it is a file name try { // First try it as a filename FileReader reader = new FileReader(strDo...
public class class_name { public StreamSource getTransformerStream(String strDocument) { StreamSource source = null; if (strDocument.indexOf(':') == -1) { // See if it is a file name try { // First try it as a filename FileReader reader = new FileReader(strDo...
public class class_name { public void addComment(String tag, String comment) { String nt = normaliseTag(tag); if(! comments.containsKey(nt)) { comments.put(nt, new ArrayList<String>()); } comments.get(nt).add(comment); } }
public class class_name { public void addComment(String tag, String comment) { String nt = normaliseTag(tag); if(! comments.containsKey(nt)) { comments.put(nt, new ArrayList<String>()); // depends on control dependency: [if], data = [none] } comments.get(nt).add(comment); ...
public class class_name { public synchronized void merge(BloomFilter filter) { if (!this.matchesAll() && !filter.matchesAll()) { checkArgument(filter.data.length == this.data.length && filter.hashFuncs == this.hashFuncs && filter.nTweak == this.nT...
public class class_name { public synchronized void merge(BloomFilter filter) { if (!this.matchesAll() && !filter.matchesAll()) { checkArgument(filter.data.length == this.data.length && filter.hashFuncs == this.hashFuncs && filter.nTweak == this.nT...
public class class_name { protected TypeName[] createTypeVariables( TypeName extractedType, String extractVariableName, int extractArity) { List<TypeName> typeVariables = new ArrayList<>(); typeVariables.add(extractedType); if (extractArity > 0) { typeVariables.addAll( IntStream.range...
public class class_name { protected TypeName[] createTypeVariables( TypeName extractedType, String extractVariableName, int extractArity) { List<TypeName> typeVariables = new ArrayList<>(); typeVariables.add(extractedType); if (extractArity > 0) { typeVariables.addAll( IntStream.range...
public class class_name { @SuppressWarnings("unchecked") public static List<EntityPlayerMP> getPlayersWatchingChunk(WorldServer world, int x, int z) { if (playersWatchingChunk == null) return new ArrayList<>(); try { PlayerChunkMapEntry entry = world.getPlayerChunkMap().getEntry(x, z); if (entry == n...
public class class_name { @SuppressWarnings("unchecked") public static List<EntityPlayerMP> getPlayersWatchingChunk(WorldServer world, int x, int z) { if (playersWatchingChunk == null) return new ArrayList<>(); try { PlayerChunkMapEntry entry = world.getPlayerChunkMap().getEntry(x, z); if (entry == n...
public class class_name { @Override public EClass getIfcFlowTerminal() { if (ifcFlowTerminalEClass == null) { ifcFlowTerminalEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI) .getEClassifiers().get(290); } return ifcFlowTerminalEClass; } }
public class class_name { @Override public EClass getIfcFlowTerminal() { if (ifcFlowTerminalEClass == null) { ifcFlowTerminalEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI) .getEClassifiers().get(290); // depends on control dependency: [if], data = [none] } return ifc...
public class class_name { public GroupAsa[] getGroupAsas() { TreeMap<ResidueNumber, GroupAsa> asas = new TreeMap<>(); double[] asasPerAtom = calculateAsas(); for (int i=0;i<atomCoords.length;i++) { Group g = atoms[i].getGroup(); if (!asas.containsKey(g.getResidueNumber())) { GroupAsa groupAsa = new ...
public class class_name { public GroupAsa[] getGroupAsas() { TreeMap<ResidueNumber, GroupAsa> asas = new TreeMap<>(); double[] asasPerAtom = calculateAsas(); for (int i=0;i<atomCoords.length;i++) { Group g = atoms[i].getGroup(); if (!asas.containsKey(g.getResidueNumber())) { GroupAsa groupAsa = new ...