code
stringlengths
130
281k
code_dependency
stringlengths
182
306k
public class class_name { public static boolean[] values(Boolean[] array) { boolean[] dest = new boolean[array.length]; for (int i = 0; i < array.length; i++) { Boolean v = array[i]; if (v != null) { dest[i] = v.booleanValue(); } } return dest; } }
public class class_name { public static boolean[] values(Boolean[] array) { boolean[] dest = new boolean[array.length]; for (int i = 0; i < array.length; i++) { Boolean v = array[i]; if (v != null) { dest[i] = v.booleanValue(); // depends on control dependency: [if], data = [none] } } return dest;...
public class class_name { private static String wordShapeChris2Short(String s, int len, Collection<String> knownLCWords) { int sbLen = (knownLCWords != null) ? len + 1: len; // markKnownLC makes String 1 longer final StringBuilder sb = new StringBuilder(sbLen); boolean nonLetters = false; for (i...
public class class_name { private static String wordShapeChris2Short(String s, int len, Collection<String> knownLCWords) { int sbLen = (knownLCWords != null) ? len + 1: len; // markKnownLC makes String 1 longer final StringBuilder sb = new StringBuilder(sbLen); boolean nonLetters = false; for (i...
public class class_name { Statement generateReattachTable() { final Expression readField = stateField.accessor(thisExpr); final Statement defaultCase = Statement.throwExpression(MethodRef.RUNTIME_UNEXPECTED_STATE_ERROR.invoke(readField)); return new Statement() { @Override protected voi...
public class class_name { Statement generateReattachTable() { final Expression readField = stateField.accessor(thisExpr); final Statement defaultCase = Statement.throwExpression(MethodRef.RUNTIME_UNEXPECTED_STATE_ERROR.invoke(readField)); return new Statement() { @Override protected voi...
public class class_name { public JvmTypeReference typeRef(String typeName, JvmTypeReference... typeArgs) { JvmType type = references.findDeclaredType(typeName, context); if (type == null) { return createUnknownTypeReference(typeName); } return typeRef(type, typeArgs); } }
public class class_name { public JvmTypeReference typeRef(String typeName, JvmTypeReference... typeArgs) { JvmType type = references.findDeclaredType(typeName, context); if (type == null) { return createUnknownTypeReference(typeName); // depends on control dependency: [if], data = [(type] } return typeRef(t...
public class class_name { public static Map<Transition, Collection<TileRef>> imports(Media config) { final Xml root = new Xml(config); final Collection<Xml> nodesTransition = root.getChildren(NODE_TRANSITION); final Map<Transition, Collection<TileRef>> transitions = new HashMap<>(nodesT...
public class class_name { public static Map<Transition, Collection<TileRef>> imports(Media config) { final Xml root = new Xml(config); final Collection<Xml> nodesTransition = root.getChildren(NODE_TRANSITION); final Map<Transition, Collection<TileRef>> transitions = new HashMap<>(nodesT...
public class class_name { @Implementation protected void prepare() { checkStateException("prepare()", preparableStates); MediaInfo info = getMediaInfo(); if (info.preparationDelay > 0) { SystemClock.sleep(info.preparationDelay); } invokePreparedListener(); } }
public class class_name { @Implementation protected void prepare() { checkStateException("prepare()", preparableStates); MediaInfo info = getMediaInfo(); if (info.preparationDelay > 0) { SystemClock.sleep(info.preparationDelay); // depends on control dependency: [if], data = [(info.preparationDelay...
public class class_name { public static ArrayList<FileListItem> prepareFileListEntries(ArrayList<FileListItem> internalList, File inter, ExtensionFilter filter) { try { //Check for each and every directory/file in 'inter' directory. //Filter by extension using 'filter' reference. ...
public class class_name { public static ArrayList<FileListItem> prepareFileListEntries(ArrayList<FileListItem> internalList, File inter, ExtensionFilter filter) { try { //Check for each and every directory/file in 'inter' directory. //Filter by extension using 'filter' reference. ...
public class class_name { protected SerializationPolicy doGetSerializationPolicy(HttpServletRequest request, String moduleBaseURL, String strongName) { if (getSerializationPolicyLocator() == null) { return super.doGetSerializationPolicy(request, moduleBaseURL, strongName); } else { return getSerialization...
public class class_name { protected SerializationPolicy doGetSerializationPolicy(HttpServletRequest request, String moduleBaseURL, String strongName) { if (getSerializationPolicyLocator() == null) { return super.doGetSerializationPolicy(request, moduleBaseURL, strongName); // depends on control dependency: [if...
public class class_name { public CollectionAssert hasSizeBetween(int lowerBound, int higherBound) { isNotNull(); int size = size(this.actual); if (!(size >= lowerBound && size <= higherBound)) { failWithMessage("The size <%s> is not between <%s> and <%s>", size, lowerBound, higherBound); } return thi...
public class class_name { public CollectionAssert hasSizeBetween(int lowerBound, int higherBound) { isNotNull(); int size = size(this.actual); if (!(size >= lowerBound && size <= higherBound)) { failWithMessage("The size <%s> is not between <%s> and <%s>", size, lowerBound, higherBound); // depends on co...
public class class_name { public static Long valueOf(long l) { final int offset = 128; if (l >= -128 && l <= 127) { // will cache return LongCache.cache[(int)l + offset]; } return new Long(l); } }
public class class_name { public static Long valueOf(long l) { final int offset = 128; if (l >= -128 && l <= 127) { // will cache return LongCache.cache[(int)l + offset]; // depends on control dependency: [if], data = [none] } return new Long(l); } }
public class class_name { public static Map<String, String> lookupNamespaces(Node referenceNode) { Map<String, String> namespaces = new HashMap<String, String>(); Node node; if (referenceNode.getNodeType() == Node.DOCUMENT_NODE) { node = referenceNode.getFirstChild(); } els...
public class class_name { public static Map<String, String> lookupNamespaces(Node referenceNode) { Map<String, String> namespaces = new HashMap<String, String>(); Node node; if (referenceNode.getNodeType() == Node.DOCUMENT_NODE) { node = referenceNode.getFirstChild(); // depends on...
public class class_name { public static FitData<Circle2D_F64> averageCircle_I32(List<Point2D_I32> points, GrowQueue_F64 optional, FitData<Circle2D_F64> outputStorage) { if( outputStorage == null ) { outputStorage = new FitData<>(new Circle2D_F64()); } if( optional == null ) { optional = new...
public class class_name { public static FitData<Circle2D_F64> averageCircle_I32(List<Point2D_I32> points, GrowQueue_F64 optional, FitData<Circle2D_F64> outputStorage) { if( outputStorage == null ) { outputStorage = new FitData<>(new Circle2D_F64()); // depends on control dependency: [if], data = [...
public class class_name { private void inspectBinaryFile(byte[] bytes) { for (int i = 0; i < bytes.length; i += width) { out.print(String.format("0x%04X ", i)); // Print out databytes for (int j = 0; j < width; ++j) { if(j+i < bytes.length) { out.print(String.format("%02X ", bytes[i+j])); } els...
public class class_name { private void inspectBinaryFile(byte[] bytes) { for (int i = 0; i < bytes.length; i += width) { out.print(String.format("0x%04X ", i)); // depends on control dependency: [for], data = [i] // Print out databytes for (int j = 0; j < width; ++j) { if(j+i < bytes.length) { out....
public class class_name { public EClass getIfcBoundaryEdgeCondition() { if (ifcBoundaryEdgeConditionEClass == null) { ifcBoundaryEdgeConditionEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI) .getEClassifiers().get(46); } return ifcBoundaryEdgeConditionEClass; } }
public class class_name { public EClass getIfcBoundaryEdgeCondition() { if (ifcBoundaryEdgeConditionEClass == null) { ifcBoundaryEdgeConditionEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI) .getEClassifiers().get(46); // depends on control dependency: [if], data = [none...
public class class_name { @SuppressWarnings("unchecked") private static Method getMethodOrDie( final Class clazz, final String name, final Class... params) { try { return clazz.getMethod(name, params); } catch (NoSuchMethodException e) { throw new RuntimeException( "Generated messag...
public class class_name { @SuppressWarnings("unchecked") private static Method getMethodOrDie( final Class clazz, final String name, final Class... params) { try { return clazz.getMethod(name, params); // depends on control dependency: [try], data = [none] } catch (NoSuchMethodException e) { ...
public class class_name { public static String getModuleName(URI uri) { String name = uri.getPath(); if (name.endsWith("/")) { //$NON-NLS-1$ name = name.substring(0, name.length()-1); } int idx = name.lastIndexOf("/"); //$NON-NLS-1$ if (idx != -1) { name = name.substring(idx+1); } if (name...
public class class_name { public static String getModuleName(URI uri) { String name = uri.getPath(); if (name.endsWith("/")) { //$NON-NLS-1$ name = name.substring(0, name.length()-1); // depends on control dependency: [if], data = [none] } int idx = name.lastIndexOf("/"); //$NON-NLS-1$ if (idx != -1...
public class class_name { public void marshall(ArchiveContainerSettings archiveContainerSettings, ProtocolMarshaller protocolMarshaller) { if (archiveContainerSettings == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocol...
public class class_name { public void marshall(ArchiveContainerSettings archiveContainerSettings, ProtocolMarshaller protocolMarshaller) { if (archiveContainerSettings == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocol...
public class class_name { public static void wrap_undeclared_throwable(CodeEmitter e, Block handler, Type[] exceptions, Type wrapper) { Set set = (exceptions == null) ? Collections.EMPTY_SET : new HashSet(Arrays.asList(exceptions)); if (set.contains(Constants.TYPE_THROWABLE)) return; ...
public class class_name { public static void wrap_undeclared_throwable(CodeEmitter e, Block handler, Type[] exceptions, Type wrapper) { Set set = (exceptions == null) ? Collections.EMPTY_SET : new HashSet(Arrays.asList(exceptions)); if (set.contains(Constants.TYPE_THROWABLE)) return; ...
public class class_name { @SuppressWarnings("rawtypes") public static boolean isEmpty(Object obj) { if(null == obj) { return true; } if(obj instanceof CharSequence) { return StrUtil.isEmpty((CharSequence)obj); }else if(obj instanceof Map) { return MapUtil.isEmpty((Map)obj); }else if(ob...
public class class_name { @SuppressWarnings("rawtypes") public static boolean isEmpty(Object obj) { if(null == obj) { return true; // depends on control dependency: [if], data = [none] } if(obj instanceof CharSequence) { return StrUtil.isEmpty((CharSequence)obj); // depends on control dependenc...
public class class_name { public void cancel() { try { executorService.shutdown(); if (!executorService.awaitTermination(30, TimeUnit.MINUTES)) { executorService.shutdownNow(); // Cancel currently executing tasks if (!executorService.awaitTermination(30, TimeUnit.MINUTES)) { L...
public class class_name { public void cancel() { try { executorService.shutdown(); // depends on control dependency: [try], data = [none] if (!executorService.awaitTermination(30, TimeUnit.MINUTES)) { executorService.shutdownNow(); // Cancel currently executing tasks // depends on control depen...
public class class_name { public final DSLMapping mapping_file() throws RecognitionException { mapping_file_stack.push(new mapping_file_scope()); DSLMapping mapping = null; mapping_file_stack.peek().retval = new DefaultDSLMapping() ; try { // src/main/resources/org/drools/compiler/lang/dsl/DSLMapWal...
public class class_name { public final DSLMapping mapping_file() throws RecognitionException { mapping_file_stack.push(new mapping_file_scope()); DSLMapping mapping = null; mapping_file_stack.peek().retval = new DefaultDSLMapping() ; try { // src/main/resources/org/drools/compiler/lang/dsl/DSLMapWal...
public class class_name { public static void toastSafely(final Context context, final int resId, final int duration) { Long lastToastTime = LAST_TOAST_TIME.get(resId); if (lastToastTime != null && (lastToastTime + TOAST_MIN_REPEAT_DELAY) < System.currentTimeMillis()) { return; } ...
public class class_name { public static void toastSafely(final Context context, final int resId, final int duration) { Long lastToastTime = LAST_TOAST_TIME.get(resId); if (lastToastTime != null && (lastToastTime + TOAST_MIN_REPEAT_DELAY) < System.currentTimeMillis()) { return; // depends on...
public class class_name { private int parseLength() throws IOException { int curLen = 0; if (dataPos == dataSize) return curLen; int lenByte = data[dataPos++] & 0xff; if (isIndefinite(lenByte)) { ndefsList.add(new Integer(dataPos)); unresolved++; ...
public class class_name { private int parseLength() throws IOException { int curLen = 0; if (dataPos == dataSize) return curLen; int lenByte = data[dataPos++] & 0xff; if (isIndefinite(lenByte)) { ndefsList.add(new Integer(dataPos)); unresolved++; ...
public class class_name { public void addProducer(Broker broker) { Properties props = new Properties(); props.put("host", broker.host); props.put("port", "" + broker.port); props.putAll(config.getProperties()); if (sync) { SyncProducer producer = new SyncProducer(new...
public class class_name { public void addProducer(Broker broker) { Properties props = new Properties(); props.put("host", broker.host); props.put("port", "" + broker.port); props.putAll(config.getProperties()); if (sync) { SyncProducer producer = new SyncProducer(new...
public class class_name { public void render() { removeMembers(getMembers()); // Then go over all layers, to draw styles: for (Layer<?> layer : mapModel.getLayers()) { if (staticLegend || layer.isShowing()) { // Go over every truly visible layer: if (layer instanceof VectorLayer) { ClientVectorLa...
public class class_name { public void render() { removeMembers(getMembers()); // Then go over all layers, to draw styles: for (Layer<?> layer : mapModel.getLayers()) { if (staticLegend || layer.isShowing()) { // Go over every truly visible layer: if (layer instanceof VectorLayer) { ClientVectorLa...
public class class_name { protected void processLoginConfig(LoginConfig loginConfig) { boolean authMethodDefaulted = false; if (loginConfig != null) { String authenticationMethod = loginConfig.getAuthMethod(); if (authenticationMethod != null) { Map<String, Confi...
public class class_name { protected void processLoginConfig(LoginConfig loginConfig) { boolean authMethodDefaulted = false; if (loginConfig != null) { String authenticationMethod = loginConfig.getAuthMethod(); if (authenticationMethod != null) { Map<String, Confi...
public class class_name { public Maker from(Settable settable) { Optional<Maker<?>> makerOptional = context.getPreferredValueMakers().getMaker(settable); if (makerOptional.isPresent()) { return makerOptional.get(); } Type type = settable.getType(); Class<?> rawType ...
public class class_name { public Maker from(Settable settable) { Optional<Maker<?>> makerOptional = context.getPreferredValueMakers().getMaker(settable); if (makerOptional.isPresent()) { return makerOptional.get(); // depends on control dependency: [if], data = [none] } Typ...
public class class_name { private static Node checkFollowedIdentifier( final FormItemList formItemList, final CreateFollowResponse createFollowResponse) { final String followedId = formItemList .getField(ProtocolConstants.Parameters.Create.Follow.FOLLOWED_IDENTIFIER); if (followedId != null) { final N...
public class class_name { private static Node checkFollowedIdentifier( final FormItemList formItemList, final CreateFollowResponse createFollowResponse) { final String followedId = formItemList .getField(ProtocolConstants.Parameters.Create.Follow.FOLLOWED_IDENTIFIER); if (followedId != null) { final N...
public class class_name { public Observable<ServiceResponse<Page<PermissionInner>>> listForResourceNextWithServiceResponseAsync(final String nextPageLink) { return listForResourceNextSinglePageAsync(nextPageLink) .concatMap(new Func1<ServiceResponse<Page<PermissionInner>>, Observable<ServiceRespons...
public class class_name { public Observable<ServiceResponse<Page<PermissionInner>>> listForResourceNextWithServiceResponseAsync(final String nextPageLink) { return listForResourceNextSinglePageAsync(nextPageLink) .concatMap(new Func1<ServiceResponse<Page<PermissionInner>>, Observable<ServiceRespons...
public class class_name { private void open() { for (Snapshot snapshot : loadSnapshots()) { snapshots.put(snapshot.index(), snapshot); } if (!snapshots.isEmpty()) { currentSnapshot = snapshots.lastEntry().getValue(); } } }
public class class_name { private void open() { for (Snapshot snapshot : loadSnapshots()) { snapshots.put(snapshot.index(), snapshot); // depends on control dependency: [for], data = [snapshot] } if (!snapshots.isEmpty()) { currentSnapshot = snapshots.lastEntry().getValue(); // depends on cont...
public class class_name { public static DoubleStream of(final Supplier<DoubleList> supplier) { final DoubleIterator iter = new DoubleIteratorEx() { private DoubleIterator iterator = null; @Override public boolean hasNext() { if (iterator == null) { ...
public class class_name { public static DoubleStream of(final Supplier<DoubleList> supplier) { final DoubleIterator iter = new DoubleIteratorEx() { private DoubleIterator iterator = null; @Override public boolean hasNext() { if (iterator == null) { ...
public class class_name { public static String[] getTypeStrs(Class[] types, boolean javaStyle) { if (CommonUtils.isEmpty(types)) { return StringUtils.EMPTY_STRING_ARRAY; } else { String[] strings = new String[types.length]; for (int i = 0; i < types.length; i++) { ...
public class class_name { public static String[] getTypeStrs(Class[] types, boolean javaStyle) { if (CommonUtils.isEmpty(types)) { return StringUtils.EMPTY_STRING_ARRAY; // depends on control dependency: [if], data = [none] } else { String[] strings = new String[types.length]; ...
public class class_name { @SuppressWarnings("ConstantConditions") public static NaaccrDictionary getDefaultUserDictionaryByVersion(String naaccrVersion) { if (naaccrVersion == null) throw new RuntimeException("Version is required for getting the default user dictionary."); if (!NaaccrFo...
public class class_name { @SuppressWarnings("ConstantConditions") public static NaaccrDictionary getDefaultUserDictionaryByVersion(String naaccrVersion) { if (naaccrVersion == null) throw new RuntimeException("Version is required for getting the default user dictionary."); if (!NaaccrFo...
public class class_name { @Override public Object invoke(ELContext context, Object base, Object method, Class<?>[] paramTypes, Object[] params) { if (context == null) { throw new NullPointerException(); } Object result = null; if (isResolvable(base)) { if (params == null) { params = new Object[0]; ...
public class class_name { @Override public Object invoke(ELContext context, Object base, Object method, Class<?>[] paramTypes, Object[] params) { if (context == null) { throw new NullPointerException(); } Object result = null; if (isResolvable(base)) { if (params == null) { params = new Object[0]; /...
public class class_name { @CheckReturnValue public RoleAction setPermissions(Long permissions) { if (permissions != null) { Checks.notNegative(permissions, "Raw Permissions"); Checks.check(permissions <= Permission.ALL_PERMISSIONS, "Provided permissions may not be greate...
public class class_name { @CheckReturnValue public RoleAction setPermissions(Long permissions) { if (permissions != null) { Checks.notNegative(permissions, "Raw Permissions"); // depends on control dependency: [if], data = [(permissions] Checks.check(permissions <= Permi...
public class class_name { protected boolean taskStop() { try { task.stop(); return true; } catch (Throwable t) { log.warn("Unexpected error during 'stop' for task: " + taskString, t); return false; } } }
public class class_name { protected boolean taskStop() { try { task.stop(); // depends on control dependency: [try], data = [none] return true; // depends on control dependency: [try], data = [none] } catch (Throwable t) { log.warn("Unexpected error during 's...
public class class_name { public void setInstanceNames(java.util.Collection<String> instanceNames) { if (instanceNames == null) { this.instanceNames = null; return; } this.instanceNames = new java.util.ArrayList<String>(instanceNames); } }
public class class_name { public void setInstanceNames(java.util.Collection<String> instanceNames) { if (instanceNames == null) { this.instanceNames = null; // depends on control dependency: [if], data = [none] return; // depends on control dependency: [if], data = [none] } ...
public class class_name { public void registerTransformer(String namespace, String waivePattern, Class<?>... transformerClasses) { ExtensionManager jem = extensionManager(); for (Class<?> extensionClass : transformerClasses) { Transformer t = extensionClass.getAnnotation(Transformer.class);...
public class class_name { public void registerTransformer(String namespace, String waivePattern, Class<?>... transformerClasses) { ExtensionManager jem = extensionManager(); for (Class<?> extensionClass : transformerClasses) { Transformer t = extensionClass.getAnnotation(Transformer.class);...
public class class_name { @SuppressWarnings("unchecked") public Recording startRecording(String sessionId, RecordingProperties properties) throws OpenViduJavaClientException, OpenViduHttpException { HttpPost request = new HttpPost(OpenVidu.urlOpenViduServer + API_RECORDINGS + API_RECORDINGS_START); JSONObjec...
public class class_name { @SuppressWarnings("unchecked") public Recording startRecording(String sessionId, RecordingProperties properties) throws OpenViduJavaClientException, OpenViduHttpException { HttpPost request = new HttpPost(OpenVidu.urlOpenViduServer + API_RECORDINGS + API_RECORDINGS_START); JSONObjec...
public class class_name { public final void stopCapture() { synchronized (this) { // make sure we are running if ((state == STATE_STOPPED) || (state == STATE_ABOUT_TO_STOP)) //throw new StateException("The capture is about to stop"); return; // update our state state = STATE_ABOUT_TO_STOP; } ...
public class class_name { public final void stopCapture() { synchronized (this) { // make sure we are running if ((state == STATE_STOPPED) || (state == STATE_ABOUT_TO_STOP)) //throw new StateException("The capture is about to stop"); return; // update our state state = STATE_ABOUT_TO_STOP; } ...
public class class_name { PartitionReplica checkAndGetPrimaryReplicaOwner(int partitionId, int replicaIndex) { InternalPartitionImpl partition = partitionStateManager.getPartitionImpl(partitionId); PartitionReplica owner = partition.getOwnerReplicaOrNull(); if (owner == null) { logg...
public class class_name { PartitionReplica checkAndGetPrimaryReplicaOwner(int partitionId, int replicaIndex) { InternalPartitionImpl partition = partitionStateManager.getPartitionImpl(partitionId); PartitionReplica owner = partition.getOwnerReplicaOrNull(); if (owner == null) { logg...
public class class_name { public String createInsertBeforeStr4ModelEntry(Map dbColMap0,Map<String,MicroDbModelEntry> modelEntryMap){ if(dbColMap0==null){ return null; } //add 201902 ning Map dbColMap=new CaseInsensitiveKeyMap(); if(dbColMap0!=null){ dbColMap.putAll(dbColMap0); } Co...
public class class_name { public String createInsertBeforeStr4ModelEntry(Map dbColMap0,Map<String,MicroDbModelEntry> modelEntryMap){ if(dbColMap0==null){ return null; // depends on control dependency: [if], data = [none] } //add 201902 ning Map dbColMap=new CaseInsensitiveKeyMap(); if(dbColMap0!...
public class class_name { static void closeQuietly(Connection connection) { try { if (connection != null && !connection.isClosed()) { connection.close(); log.debug("closed {}", connection); } } catch (SQLException e) { log.debug(e.getM...
public class class_name { static void closeQuietly(Connection connection) { try { if (connection != null && !connection.isClosed()) { connection.close(); // depends on control dependency: [if], data = [none] log.debug("closed {}", connection); // depends on control d...
public class class_name { public static boolean sendHtmlMail(MailSenderInfo mailInfo) { try { LOG.info("send to " + mailInfo.getFromAddress()); // 设置一些通用的数据 Message mailMessage = setCommon(mailInfo); // MiniMultipart类是一个容器类,包含MimeBodyPart类型的对象 Mul...
public class class_name { public static boolean sendHtmlMail(MailSenderInfo mailInfo) { try { LOG.info("send to " + mailInfo.getFromAddress()); // depends on control dependency: [try], data = [none] // 设置一些通用的数据 Message mailMessage = setCommon(mailInfo); // M...
public class class_name { private List<HdfsStats> createFromScanResults(String cluster, String path, Scan scan, int maxCount, boolean checkPath, long starttime, long endtime) throws IOException { Map<HdfsStatsKey, HdfsStats> hdfsStats = new HashMap<HdfsStatsKey, HdfsStats>(); ResultScanner ...
public class class_name { private List<HdfsStats> createFromScanResults(String cluster, String path, Scan scan, int maxCount, boolean checkPath, long starttime, long endtime) throws IOException { Map<HdfsStatsKey, HdfsStats> hdfsStats = new HashMap<HdfsStatsKey, HdfsStats>(); ResultScanner ...
public class class_name { public void marshall(StartMonitoringMembersRequest startMonitoringMembersRequest, ProtocolMarshaller protocolMarshaller) { if (startMonitoringMembersRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { ...
public class class_name { public void marshall(StartMonitoringMembersRequest startMonitoringMembersRequest, ProtocolMarshaller protocolMarshaller) { if (startMonitoringMembersRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { ...
public class class_name { public static int queryInt(PreparedStatement stmt, int def) throws SQLException { ResultSet rs = null; try { rs = stmt.executeQuery(); if (rs.next()) { int value = rs.getInt(1); if (!rs.wasNull()) { return value; } } return def...
public class class_name { public static int queryInt(PreparedStatement stmt, int def) throws SQLException { ResultSet rs = null; try { rs = stmt.executeQuery(); if (rs.next()) { int value = rs.getInt(1); if (!rs.wasNull()) { return value; // depends on control dependency: ...
public class class_name { private Map<Integer, Grib1Parameter> readParameterTableEcmwfEcCodes() throws IOException { HashMap<Integer, Grib1Parameter> result = new HashMap<>(); try (InputStream is = GribResourceReader.getInputStream(path); BufferedReader br = new BufferedReader(new InputStreamReader(is, ...
public class class_name { private Map<Integer, Grib1Parameter> readParameterTableEcmwfEcCodes() throws IOException { HashMap<Integer, Grib1Parameter> result = new HashMap<>(); try (InputStream is = GribResourceReader.getInputStream(path); BufferedReader br = new BufferedReader(new InputStreamReader(is, ...
public class class_name { public static String removeInvalidSeprator(String tmp) { if (tmp != null && !tmp.isEmpty()) { return tmp.replaceAll("[`~!@#$%^&*+=|{}':;',\\[\\]<>/?~! @#¥%……&*——+|{}【】‘;:”“’。,、?]", "_").replaceAll("__", "_"); } return tmp; } }
public class class_name { public static String removeInvalidSeprator(String tmp) { if (tmp != null && !tmp.isEmpty()) { return tmp.replaceAll("[`~!@#$%^&*+=|{}':;',\\[\\]<>/?~! @#¥%……&*——+|{}【】‘;:”“’。,、?]", "_").replaceAll("__", "_"); // depends on control dependency: [if], data...
public class class_name { @Override @Path("/{roleName}/users/{cuid}") @ApiOperation(value="Create a role or add a user to an existing role", notes="If users/{cuid} is present, user is added to role.", response=StatusMessage.class) @ApiImplicitParams({ @ApiImplicitParam(name="Workgroup", par...
public class class_name { @Override @Path("/{roleName}/users/{cuid}") @ApiOperation(value="Create a role or add a user to an existing role", notes="If users/{cuid} is present, user is added to role.", response=StatusMessage.class) @ApiImplicitParams({ @ApiImplicitParam(name="Workgroup", par...
public class class_name { @Override public EClass getIfcDistributionElement() { if (ifcDistributionElementEClass == null) { ifcDistributionElementEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI) .getEClassifiers().get(183); } return ifcDistributionElementEClass; } }
public class class_name { @Override public EClass getIfcDistributionElement() { if (ifcDistributionElementEClass == null) { ifcDistributionElementEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI) .getEClassifiers().get(183); // depends on control dependency: [if], data = [no...
public class class_name { public void add(final AbsAxis mAx) { AbsAxis axis = mAx; if (isDupOrd(axis)) { axis = new DupFilterAxis(mRtx, axis); DupState.nodup = true; } switch (mNumber) { case 0: mFirstAxis = axis; mNumber++; ...
public class class_name { public void add(final AbsAxis mAx) { AbsAxis axis = mAx; if (isDupOrd(axis)) { axis = new DupFilterAxis(mRtx, axis); // depends on control dependency: [if], data = [none] DupState.nodup = true; // depends on control dependency: [if], data = [none] ...
public class class_name { public static Point getCircumCenter(Geometry geometry) { if(geometry == null || geometry.getNumPoints() == 0) { return null; } return geometry.getFactory().createPoint(new MinimumBoundingCircle(geometry).getCentre()); } }
public class class_name { public static Point getCircumCenter(Geometry geometry) { if(geometry == null || geometry.getNumPoints() == 0) { return null; // depends on control dependency: [if], data = [none] } return geometry.getFactory().createPoint(new MinimumBoundingCircle(geometry)...
public class class_name { public static List<VectorTile.Tile.Feature> toFeatures(Collection<Geometry> flatGeoms, MvtLayerProps layerProps, IUserDataConverter userDataConverter) { // Guard: emp...
public class class_name { public static List<VectorTile.Tile.Feature> toFeatures(Collection<Geometry> flatGeoms, MvtLayerProps layerProps, IUserDataConverter userDataConverter) { // Guard: emp...
public class class_name { @Override @LogarithmicTime public AddressableHeap.Handle<K, V> deleteMin() { if (size == 0) { throw new NoSuchElementException(); } Node oldRoot = root; // easy special cases if (size == 1) { root = null; siz...
public class class_name { @Override @LogarithmicTime public AddressableHeap.Handle<K, V> deleteMin() { if (size == 0) { throw new NoSuchElementException(); } Node oldRoot = root; // easy special cases if (size == 1) { root = null; // depends on c...
public class class_name { @Override public Double getUserItemPreference(U u, I i) { if (userItemPreferences.containsKey(u) && userItemPreferences.get(u).containsKey(i)) { return userItemPreferences.get(u).get(i); } return Double.NaN; } }
public class class_name { @Override public Double getUserItemPreference(U u, I i) { if (userItemPreferences.containsKey(u) && userItemPreferences.get(u).containsKey(i)) { return userItemPreferences.get(u).get(i); // depends on control dependency: [if], data = [none] } return Dou...
public class class_name { private static WaveletTransform createDefaultShrinkTransform(ImageDataType imageType, int numLevels, double minPixelValue , double maxPixelValue ) { WaveletTransform descTran; if( !imageType.isInteger()) { WaveletDescription<WlCoef_F32> waveletDesc_F32 = FactoryWavel...
public class class_name { private static WaveletTransform createDefaultShrinkTransform(ImageDataType imageType, int numLevels, double minPixelValue , double maxPixelValue ) { WaveletTransform descTran; if( !imageType.isInteger()) { WaveletDescription<WlCoef_F32> waveletDesc_F32 = FactoryWavel...
public class class_name { public Namer getOneToManyIntermediateNamer(Namer fromEntityNamer, ColumnConfig pointsOnToEntity, Namer toEntityNamer) { // new configuration Namer result = getOneToManyNamerFromConf(pointsOnToEntity.getOneToManyConfig(), toEntityNamer); // fallback if (result ...
public class class_name { public Namer getOneToManyIntermediateNamer(Namer fromEntityNamer, ColumnConfig pointsOnToEntity, Namer toEntityNamer) { // new configuration Namer result = getOneToManyNamerFromConf(pointsOnToEntity.getOneToManyConfig(), toEntityNamer); // fallback if (result ...
public class class_name { public IFeatureAlphabet rebuildFeatureAlphabet(String name) { IFeatureAlphabet alphabet = null; if (maps.containsKey(name)) { alphabet = (IFeatureAlphabet) maps.get(name); alphabet.clear(); }else{ return buildFeatureAlphabet(name,defaultFeatureType); } return alphab...
public class class_name { public IFeatureAlphabet rebuildFeatureAlphabet(String name) { IFeatureAlphabet alphabet = null; if (maps.containsKey(name)) { alphabet = (IFeatureAlphabet) maps.get(name); // depends on control dependency: [if], data = [none] alphabet.clear(); // depends on control dependency: ...
public class class_name { public static boolean isTopApplication(Context context) { ComponentName activity = getTopActivity(context); if (activity == null) { return false; } return activity.getPackageName().equals(context.getApplicationInfo().packageName); } }
public class class_name { public static boolean isTopApplication(Context context) { ComponentName activity = getTopActivity(context); if (activity == null) { return false; // depends on control dependency: [if], data = [none] } return activity.getPackageName().equals(context.getApplicationInfo().packageName...
public class class_name { @Override public void type(String text) throws WidgetException{ try{ if (getGUIDriver().isJavascriptTypeMode()) { // Replaces apostrophes that have not been escaped with escaped variations // Slashes need to be escaped multiple times. Once f...
public class class_name { @Override public void type(String text) throws WidgetException{ try{ if (getGUIDriver().isJavascriptTypeMode()) { // Replaces apostrophes that have not been escaped with escaped variations // Slashes need to be escaped multiple times. Once f...
public class class_name { public Node cloneNode(boolean deep) { try { if (isXMLDoc == UNKNOWN_TYPE) isXMLDoc = getDocumentType(); if (isXMLDoc == NON_XML) { throw new UnsupportedOperationException( "Text document cannot be cloned"); } ...
public class class_name { public Node cloneNode(boolean deep) { try { if (isXMLDoc == UNKNOWN_TYPE) isXMLDoc = getDocumentType(); if (isXMLDoc == NON_XML) { throw new UnsupportedOperationException( "Text document cannot be cloned"); } ...
public class class_name { public boolean startsWithPackage(String... pkgs) { for (String st : pkgs) { if (!st.endsWith(".")) st += "."; String className = getClassName(); if (className.startsWith(st)) { return true; } } return fals...
public class class_name { public boolean startsWithPackage(String... pkgs) { for (String st : pkgs) { if (!st.endsWith(".")) st += "."; String className = getClassName(); if (className.startsWith(st)) { return true; // depends on control dependency: [if], dat...
public class class_name { public <T> T get(Class<T> clazz, final String name) { JAXBNamedResourceFactory<T> cached = cachedReferences.get(name); if (cached == null) { cached = new JAXBNamedResourceFactory<T>(this.config, this.factory, name, clazz); cachedReferences.put(name, cached); } return cached...
public class class_name { public <T> T get(Class<T> clazz, final String name) { JAXBNamedResourceFactory<T> cached = cachedReferences.get(name); if (cached == null) { cached = new JAXBNamedResourceFactory<T>(this.config, this.factory, name, clazz); // depends on control dependency: [if], data = [none] ca...
public class class_name { public void setBoardTranslationX(float x) { if (mListeners != null) { for (StateListener l : mListeners) { l.onBoardTranslationX(this, x); } } mContentView.setTranslationX(x); } }
public class class_name { public void setBoardTranslationX(float x) { if (mListeners != null) { for (StateListener l : mListeners) { l.onBoardTranslationX(this, x); // depends on control dependency: [for], data = [l] } } mContentView.setTranslationX(x); ...
public class class_name { @SuppressWarnings("unchecked") private List<String> operations(Map<String, Object> ops) { List<String> result = new LinkedList<>(); for (String operation : ops.keySet()) { Object operationOrListOfOperations = ops.get(operation); List<Map<String, Obj...
public class class_name { @SuppressWarnings("unchecked") private List<String> operations(Map<String, Object> ops) { List<String> result = new LinkedList<>(); for (String operation : ops.keySet()) { Object operationOrListOfOperations = ops.get(operation); List<Map<String, Obj...
public class class_name { protected String getSetToField(String target, Field field, Class<?> cls, String express, boolean isList, boolean isMap, boolean packed) { StringBuilder ret = new StringBuilder(); if (isList || isMap) { ret.append("if ((").append(getAccessByField(tar...
public class class_name { protected String getSetToField(String target, Field field, Class<?> cls, String express, boolean isList, boolean isMap, boolean packed) { StringBuilder ret = new StringBuilder(); if (isList || isMap) { ret.append("if ((").append(getAccessByField(tar...
public class class_name { @Override public void stop() { synchronized (this) { setStateAndNotify(State.STOPPING); ArrayList<SubscriptionRecord> values = new ArrayList<>(subscriptions.values()); for (SubscriptionRecord subscription : values) { doUnsubscribe(subscription.subscription); ...
public class class_name { @Override public void stop() { synchronized (this) { setStateAndNotify(State.STOPPING); ArrayList<SubscriptionRecord> values = new ArrayList<>(subscriptions.values()); for (SubscriptionRecord subscription : values) { doUnsubscribe(subscription.subscription); //...
public class class_name { private boolean parameterIsAllowed(String name, String resourceType) { switch (resourceType) { case REMOTE_ACCEPTOR: case HTTP_ACCEPTOR: case REMOTE_CONNECTOR: case HTTP_CONNECTOR: // WFLY-5667 - for now remove only use-n...
public class class_name { private boolean parameterIsAllowed(String name, String resourceType) { switch (resourceType) { case REMOTE_ACCEPTOR: case HTTP_ACCEPTOR: case REMOTE_CONNECTOR: case HTTP_CONNECTOR: // WFLY-5667 - for now remove only use-n...
public class class_name { public List<Attachment> getAttachmentsByForm( Form formParam, boolean includeAttachmentDataParam) { if(formParam != null && this.serviceTicket != null) { formParam.setServiceTicket(this.serviceTicket); } AttachmentListin...
public class class_name { public List<Attachment> getAttachmentsByForm( Form formParam, boolean includeAttachmentDataParam) { if(formParam != null && this.serviceTicket != null) { formParam.setServiceTicket(this.serviceTicket); // depends on control dependency: [...
public class class_name { public int getFieldsSendTotalByteSize(Object bean, Charset charset) { if (!hasDynamicField()) { return fieldsTotalSize; } else { return getDynamicTotalFieldSize(bean, charset); } } }
public class class_name { public int getFieldsSendTotalByteSize(Object bean, Charset charset) { if (!hasDynamicField()) { return fieldsTotalSize; // depends on control dependency: [if], data = [none] } else { return getDynamicTotalFieldSize(bean, charset); // depends on control ...
public class class_name { @Override public int findIn(Source source) { Matcher matcher = REGEX_AUTHORITY.matcher(source.subToEnd()); int offset = -1; while (matcher.find()) { int matcherPosition = source.getOffset() + matcher.start(); if (parseLength(source, matcherP...
public class class_name { @Override public int findIn(Source source) { Matcher matcher = REGEX_AUTHORITY.matcher(source.subToEnd()); int offset = -1; while (matcher.find()) { int matcherPosition = source.getOffset() + matcher.start(); if (parseLength(source, matcherP...
public class class_name { private void fillDensities(KNNQuery<O> knnq, DBIDs ids, WritableDoubleDataStore dens) { FiniteProgress prog = LOG.isVerbose() ? new FiniteProgress("Densities", ids.size(), LOG) : null; for(DBIDIter iter = ids.iter(); iter.valid(); iter.advance()) { final KNNList neighbors = knnq...
public class class_name { private void fillDensities(KNNQuery<O> knnq, DBIDs ids, WritableDoubleDataStore dens) { FiniteProgress prog = LOG.isVerbose() ? new FiniteProgress("Densities", ids.size(), LOG) : null; for(DBIDIter iter = ids.iter(); iter.valid(); iter.advance()) { final KNNList neighbors = knnq...
public class class_name { protected void fireEvent(E event) { for (L listener : this.listeners) { try { fireEvent(event, listener); } catch (RuntimeException e) { handleListenerError(listener, event, e); } } } }
public class class_name { protected void fireEvent(E event) { for (L listener : this.listeners) { try { fireEvent(event, listener); // depends on control dependency: [try], data = [none] } catch (RuntimeException e) { handleListenerError(listener, event, e); } // depends on contr...
public class class_name { private void extractFlags(GanttBarStyle style, GanttBarShowForTasks baseCriteria, long flagValue) { int index = 0; long flag = 0x0001; while (index < 64) { if ((flagValue & flag) != 0) { GanttBarShowForTasks enumValue = GanttBarShowFor...
public class class_name { private void extractFlags(GanttBarStyle style, GanttBarShowForTasks baseCriteria, long flagValue) { int index = 0; long flag = 0x0001; while (index < 64) { if ((flagValue & flag) != 0) { GanttBarShowForTasks enumValue = GanttBarShowFor...
public class class_name { public void addTask(Object objJobDef) { synchronized (this) { if (objJobDef == CLEAR_JOBS) { // Dump all waiting jobs m_vPrivateJobs.removeAllElements(); return; } m_vPrivateJobs.addElement(o...
public class class_name { public void addTask(Object objJobDef) { synchronized (this) { if (objJobDef == CLEAR_JOBS) { // Dump all waiting jobs m_vPrivateJobs.removeAllElements(); // depends on control dependency: [if], data = [none] return;...
public class class_name { private final void checkForDeadConnections(final long now) { final ArrayList<Pair<Connection, Integer>> connectionsToRemove = new ArrayList<Pair<Connection, Integer>>(); for (final ClientInterfaceHandleManager cihm : m_cihm.values()) { // Internal connections don't...
public class class_name { private final void checkForDeadConnections(final long now) { final ArrayList<Pair<Connection, Integer>> connectionsToRemove = new ArrayList<Pair<Connection, Integer>>(); for (final ClientInterfaceHandleManager cihm : m_cihm.values()) { // Internal connections don't...
public class class_name { public static CharSequence escapeMarkupId(final CharSequence markupId) { Args.notNull(markupId, "markupId"); // create pattern for: !"#$%&'()*+,./:;<=>?@[\]^`{|}~ final StringCharacterIterator iterator = new StringCharacterIterator(markupId.toString()); final ...
public class class_name { public static CharSequence escapeMarkupId(final CharSequence markupId) { Args.notNull(markupId, "markupId"); // create pattern for: !"#$%&'()*+,./:;<=>?@[\]^`{|}~ final StringCharacterIterator iterator = new StringCharacterIterator(markupId.toString()); final ...
public class class_name { public static void generate(ConfigurationImpl configuration) { HelpWriter helpgen; DocPath filename = DocPath.empty; try { filename = DocPaths.HELP_DOC; helpgen = new HelpWriter(configuration, filename); helpgen.generateHelpFile(); ...
public class class_name { public static void generate(ConfigurationImpl configuration) { HelpWriter helpgen; DocPath filename = DocPath.empty; try { filename = DocPaths.HELP_DOC; // depends on control dependency: [try], data = [none] helpgen = new HelpWriter(configuratio...
public class class_name { public java.util.List<String> getSnapshotIdentifierList() { if (snapshotIdentifierList == null) { snapshotIdentifierList = new com.amazonaws.internal.SdkInternalList<String>(); } return snapshotIdentifierList; } }
public class class_name { public java.util.List<String> getSnapshotIdentifierList() { if (snapshotIdentifierList == null) { snapshotIdentifierList = new com.amazonaws.internal.SdkInternalList<String>(); // depends on control dependency: [if], data = [none] } return snapshotIdentifie...
public class class_name { @Override public void handle(ChangeConfigurationItemRequestedEvent event, CorrelationToken correlationToken) { final boolean hasConfigurationChanged = chargingStationOcpp12Client.changeConfiguration(event.getChargingStationId(), event.getConfigurationItem()); if (hasConfi...
public class class_name { @Override public void handle(ChangeConfigurationItemRequestedEvent event, CorrelationToken correlationToken) { final boolean hasConfigurationChanged = chargingStationOcpp12Client.changeConfiguration(event.getChargingStationId(), event.getConfigurationItem()); if (hasConfi...
public class class_name { @Override protected void reserveInternal(int newCapacity) { if (isArray() || type instanceof MapType) { int[] newLengths = new int[newCapacity]; int[] newOffsets = new int[newCapacity]; if (this.arrayLengths != null) { System.arraycopy(this.arrayLengths, 0, new...
public class class_name { @Override protected void reserveInternal(int newCapacity) { if (isArray() || type instanceof MapType) { int[] newLengths = new int[newCapacity]; int[] newOffsets = new int[newCapacity]; if (this.arrayLengths != null) { System.arraycopy(this.arrayLengths, 0, new...
public class class_name { protected void trackConnectionFinalizer(ConnectionHandle connectionHandle) { if (!this.disableTracking){ // assert !connectionHandle.getPool().getFinalizableRefs().containsKey(connectionHandle) : "Already tracking this handle"; Connection con = connectionHandle.getInternalConnection...
public class class_name { protected void trackConnectionFinalizer(ConnectionHandle connectionHandle) { if (!this.disableTracking){ // assert !connectionHandle.getPool().getFinalizableRefs().containsKey(connectionHandle) : "Already tracking this handle"; Connection con = connectionHandle.getInternalConnection...
public class class_name { public boolean process(Field onField, Object fieldOwnedBy, Set<Object> mockCandidates) { if(processInjection(onField, fieldOwnedBy, mockCandidates)) { return true; } return relayProcessToNextStrategy(onField, fieldOwnedBy, mockCandidates); } }
public class class_name { public boolean process(Field onField, Object fieldOwnedBy, Set<Object> mockCandidates) { if(processInjection(onField, fieldOwnedBy, mockCandidates)) { return true; // depends on control dependency: [if], data = [none] } return relayProcessToNextStrategy(onF...
public class class_name { public void dischargeAsEmpty(BitmapStorage container) { while (size() > 0) { container.addStreamOfEmptyWords(false, size()); discardFirstWords(size()); } } }
public class class_name { public void dischargeAsEmpty(BitmapStorage container) { while (size() > 0) { container.addStreamOfEmptyWords(false, size()); // depends on control dependency: [while], data = [none] discardFirstWords(size()); // depends on control dependency: [while], data = [(...
public class class_name { public void ensureCapacity(@NonNegative long maximumSize) { requireArgument(maximumSize >= 0); int maximum = (int) Math.min(maximumSize, Integer.MAX_VALUE >>> 1); if ((table != null) && (table.length >= maximum)) { return; } table = new long[(maximum == 0) ? 1 : cei...
public class class_name { public void ensureCapacity(@NonNegative long maximumSize) { requireArgument(maximumSize >= 0); int maximum = (int) Math.min(maximumSize, Integer.MAX_VALUE >>> 1); if ((table != null) && (table.length >= maximum)) { return; // depends on control dependency: [if], data = [none...
public class class_name { public void ancestorAdded (AncestorEvent e) { gainedFocus(); if (_window == null) { _window = SwingUtilities.getWindowAncestor(_target); _window.addWindowFocusListener(this); } } }
public class class_name { public void ancestorAdded (AncestorEvent e) { gainedFocus(); if (_window == null) { _window = SwingUtilities.getWindowAncestor(_target); // depends on control dependency: [if], data = [none] _window.addWindowFocusListener(this); // depends on contr...
public class class_name { public static final void translate (Structure structure, Vector3d v) { for (int n=0; n<structure.nrModels();n++) { for (Chain c : structure.getChains(n)) { translate(c, v); } } } }
public class class_name { public static final void translate (Structure structure, Vector3d v) { for (int n=0; n<structure.nrModels();n++) { for (Chain c : structure.getChains(n)) { translate(c, v); // depends on control dependency: [for], data = [c] } } } }
public class class_name { public void flip(long startIndex, long endIndex) { if (endIndex <= startIndex) return; int startWord = (int) (startIndex >> 6); // since endIndex is one past the end, this is index of the last // word to be changed. int endWord = expandingWordNum(e...
public class class_name { public void flip(long startIndex, long endIndex) { if (endIndex <= startIndex) return; int startWord = (int) (startIndex >> 6); // since endIndex is one past the end, this is index of the last // word to be changed. int endWord = expandingWordNum(e...
public class class_name { public static HSQLDDLInfo preprocessHSQLDDL(String ddl) { ddl = SQLLexer.stripComments(ddl); Matcher matcher = HSQL_DDL_PREPROCESSOR.matcher(ddl); if (matcher.find()) { String verbString = matcher.group("verb"); HSQLDDLInfo.Verb verb = HSQLDDLI...
public class class_name { public static HSQLDDLInfo preprocessHSQLDDL(String ddl) { ddl = SQLLexer.stripComments(ddl); Matcher matcher = HSQL_DDL_PREPROCESSOR.matcher(ddl); if (matcher.find()) { String verbString = matcher.group("verb"); HSQLDDLInfo.Verb verb = HSQLDDLI...
public class class_name { public JBBPOut Byte(final String str, final JBBPBitOrder bitOrder) throws IOException { assertNotEnded(); assertStringNotNull(str); if (this.processCommands) { for (int i = 0; i < str.length(); i++) { byte value = (byte) str.charAt(i); if (bitOrder == JBBPBit...
public class class_name { public JBBPOut Byte(final String str, final JBBPBitOrder bitOrder) throws IOException { assertNotEnded(); assertStringNotNull(str); if (this.processCommands) { for (int i = 0; i < str.length(); i++) { byte value = (byte) str.charAt(i); if (bitOrder == JBBPBit...
public class class_name { private void buildSheetConfigMapFromFormCommand(final Sheet sheet, final Map<String, SheetConfiguration> sheetConfigMap, final List<ConfigCommand> commandList, final List<String> formList, final int sheetRightCol) { boolean foundForm = false; int minRowNum = sheet.getLastRowNum(...
public class class_name { private void buildSheetConfigMapFromFormCommand(final Sheet sheet, final Map<String, SheetConfiguration> sheetConfigMap, final List<ConfigCommand> commandList, final List<String> formList, final int sheetRightCol) { boolean foundForm = false; int minRowNum = sheet.getLastRowNum(...
public class class_name { public boolean addAll(Collection<? extends E> c) { Iterator<? extends E> cIterator = c.iterator(); while(cIterator.hasNext()) { this.add(cIterator.next()); } return true; } }
public class class_name { public boolean addAll(Collection<? extends E> c) { Iterator<? extends E> cIterator = c.iterator(); while(cIterator.hasNext()) { this.add(cIterator.next()); // depends on control dependency: [while], data = [none] } return true; } }
public class class_name { public void applyIndexes(VocabCache<? extends SequenceElement> cache) { if (!buildTrigger) build(); for (int a = 0; a < words.size(); a++) { if (words.get(a).getLabel() != null) { cache.addWordToIndex(a, words.get(a).getLabel()); ...
public class class_name { public void applyIndexes(VocabCache<? extends SequenceElement> cache) { if (!buildTrigger) build(); for (int a = 0; a < words.size(); a++) { if (words.get(a).getLabel() != null) { cache.addWordToIndex(a, words.get(a).getLabel()); // dep...
public class class_name { StringVector processSTRINGLIST(StylesheetHandler handler, String uri, String name, String rawName, String value) { StringTokenizer tokenizer = new StringTokenizer(value, " \t\n\r\f"); int nStrings = tokenizer.countTokens(); StringVector strings ...
public class class_name { StringVector processSTRINGLIST(StylesheetHandler handler, String uri, String name, String rawName, String value) { StringTokenizer tokenizer = new StringTokenizer(value, " \t\n\r\f"); int nStrings = tokenizer.countTokens(); StringVector strings ...
public class class_name { public ServiceCall<Collection> createCollection(CreateCollectionOptions createCollectionOptions) { Validator.notNull(createCollectionOptions, "createCollectionOptions cannot be null"); String[] pathSegments = { "v1/environments", "collections" }; String[] pathParameters = { create...
public class class_name { public ServiceCall<Collection> createCollection(CreateCollectionOptions createCollectionOptions) { Validator.notNull(createCollectionOptions, "createCollectionOptions cannot be null"); String[] pathSegments = { "v1/environments", "collections" }; String[] pathParameters = { create...
public class class_name { public static String getMajorName(String path) { int len = path.length(); int l = 0; int r = len; for (int i = r - 1; i > 0; i--) { if (r == len) if (path.charAt(i) == '.') { r = i; } ...
public class class_name { public static String getMajorName(String path) { int len = path.length(); int l = 0; int r = len; for (int i = r - 1; i > 0; i--) { if (r == len) if (path.charAt(i) == '.') { r = i; // depends on control d...
public class class_name { @Override public IRoSessionData getAppSessionData(Class<? extends AppSession> clazz, String sessionId) { if (clazz.equals(ClientRoSession.class)) { ClientRoSessionDataReplicatedImpl data = new ClientRoSessionDataReplicatedImpl(sessionId, this.mobicentsCluster, this.r...
public class class_name { @Override public IRoSessionData getAppSessionData(Class<? extends AppSession> clazz, String sessionId) { if (clazz.equals(ClientRoSession.class)) { ClientRoSessionDataReplicatedImpl data = new ClientRoSessionDataReplicatedImpl(sessionId, this.mobicentsCluster, this.r...
public class class_name { private Pair<List<DCTree>, List<DCTree>> splitBody(Collection<? extends DocTree> list) { // pos is modified as we create trees, therefore // we save the pos and restore it later. final int savedpos = this.pos; try { ListBuffer<DCTree> body = new Lis...
public class class_name { private Pair<List<DCTree>, List<DCTree>> splitBody(Collection<? extends DocTree> list) { // pos is modified as we create trees, therefore // we save the pos and restore it later. final int savedpos = this.pos; try { ListBuffer<DCTree> body = new Lis...
public class class_name { private boolean remoteViewerActive() { if (remoteQueue == null) { return false; } if (!remoteQueue.isAlive()) { remoteQueue = null; return false; } return true; } }
public class class_name { private boolean remoteViewerActive() { if (remoteQueue == null) { return false; // depends on control dependency: [if], data = [none] } if (!remoteQueue.isAlive()) { remoteQueue = null; // depends on control dependency: [if], data = [no...