code
stringlengths
130
281k
code_dependency
stringlengths
182
306k
public class class_name { public void marshall(ListPolicyAttachmentsRequest listPolicyAttachmentsRequest, ProtocolMarshaller protocolMarshaller) { if (listPolicyAttachmentsRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { ...
public class class_name { public void marshall(ListPolicyAttachmentsRequest listPolicyAttachmentsRequest, ProtocolMarshaller protocolMarshaller) { if (listPolicyAttachmentsRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { ...
public class class_name { private void requestCompleteCallback(CompletableFuture<ConnectionWrapper> connectionFuture, Throwable e) { // when processing completes, return the connection back to connection manager asynchronously. // Note: If result future is comp...
public class class_name { private void requestCompleteCallback(CompletableFuture<ConnectionWrapper> connectionFuture, Throwable e) { // when processing completes, return the connection back to connection manager asynchronously. // Note: If result future is comp...
public class class_name { public void reply(Object message) { if (context.sender() != null) { context.sender().send(message, self()); } } }
public class class_name { public void reply(Object message) { if (context.sender() != null) { context.sender().send(message, self()); // depends on control dependency: [if], data = [none] } } }
public class class_name { public void addComment(Comment comment) { if (comments == null || comments.size() == 0) { comments = new ArrayList<Comment>(); } comments.add((CommentImpl) comment); } }
public class class_name { public void addComment(Comment comment) { if (comments == null || comments.size() == 0) { comments = new ArrayList<Comment>(); // depends on control dependency: [if], data = [none] } comments.add((CommentImpl) comment); } }
public class class_name { public static <T extends Enum<T>> T convert(Class<T> type, String name, T defaultValue) { if (name == null) { return defaultValue; } for (T e : type.getEnumConstants()) { if (e.name().equalsIgnoreCase(name)) { return e; ...
public class class_name { public static <T extends Enum<T>> T convert(Class<T> type, String name, T defaultValue) { if (name == null) { return defaultValue; // depends on control dependency: [if], data = [none] } for (T e : type.getEnumConstants()) { if (e.name().equals...
public class class_name { public static Object getValue(Result result, int index, GeoPackageDataType dataType) { Object value = null; int type = result.getType(index); switch (type) { case FIELD_TYPE_INTEGER: value = getIntegerValue(result, index, dataType); break; case FIELD_TYPE_FLOAT: val...
public class class_name { public static Object getValue(Result result, int index, GeoPackageDataType dataType) { Object value = null; int type = result.getType(index); switch (type) { case FIELD_TYPE_INTEGER: value = getIntegerValue(result, index, dataType); break; case FIELD_TYPE_FLOAT: val...
public class class_name { private String generateMultidots(String line) { line = multiDots.matcher(line).replaceAll(" DOTMULTI$1 "); final Matcher dotMultiDot = dotmultiDot.matcher(line); while (dotMultiDot.find()) { line = dotmultiDotAny.matcher(line).replaceAll("DOTDOTMULTI $1"); line = dot...
public class class_name { private String generateMultidots(String line) { line = multiDots.matcher(line).replaceAll(" DOTMULTI$1 "); final Matcher dotMultiDot = dotmultiDot.matcher(line); while (dotMultiDot.find()) { line = dotmultiDotAny.matcher(line).replaceAll("DOTDOTMULTI $1"); // depends on co...
public class class_name { @VisibleForTesting static void updateRecordForHDFS( Record record, boolean roll, String avroSchema, String location ){ if(roll){ record.getHeader().setAttribute(HDFS_HEADER_ROLL, "true"); } record.getHeader().setAttribute(HDFS_HEADER_AVROSCHEMA, a...
public class class_name { @VisibleForTesting static void updateRecordForHDFS( Record record, boolean roll, String avroSchema, String location ){ if(roll){ record.getHeader().setAttribute(HDFS_HEADER_ROLL, "true"); // depends on control dependency: [if], data = [none] } rec...
public class class_name { public Long getId() { if (this.genericRecordAttributes.getId() != null) { return this.genericRecordAttributes.getId(); } else if (this.typeARecordAttributes.getId() != null) { return this.typeARecordAttributes.getId(); } else if (this.typeAAAARe...
public class class_name { public Long getId() { if (this.genericRecordAttributes.getId() != null) { return this.genericRecordAttributes.getId(); // depends on control dependency: [if], data = [none] } else if (this.typeARecordAttributes.getId() != null) { return this.typeARecord...
public class class_name { public void marshall(Output output, ProtocolMarshaller protocolMarshaller) { if (output == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(output.getDescription(), DESCRIPTI...
public class class_name { public void marshall(Output output, ProtocolMarshaller protocolMarshaller) { if (output == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(output.getDescription(), DESCRIPTI...
public class class_name { private State<O> updateSignature(State<O> state, int idx, State<O> succ) { StateSignature<O> sig = state.getSignature(); if (sig.successors.array[idx] == succ) { return state; } register.remove(sig); if (sig.successors.array[idx] != null) {...
public class class_name { private State<O> updateSignature(State<O> state, int idx, State<O> succ) { StateSignature<O> sig = state.getSignature(); if (sig.successors.array[idx] == succ) { return state; // depends on control dependency: [if], data = [none] } register.remove(...
public class class_name { public static void loadProperties(Properties properties) { if (instance == null) { instance = getConfigInstance(); } ConfigurationUtils.loadProperties(properties, instance); } }
public class class_name { public static void loadProperties(Properties properties) { if (instance == null) { instance = getConfigInstance(); // depends on control dependency: [if], data = [none] } ConfigurationUtils.loadProperties(properties, instance); } }
public class class_name { public final void mRIGHT_JOIN() throws RecognitionException { try { int _type = RIGHT_JOIN; int _channel = DEFAULT_TOKEN_CHANNEL; // druidG.g:655:13: ( ( 'RIGHT_JOIN' | 'right_join' ) ) // druidG.g:655:15: ( 'RIGHT_JOIN' | 'right_join' ) { // druidG.g:655:15: ( 'RIGHT_JOIN...
public class class_name { public final void mRIGHT_JOIN() throws RecognitionException { try { int _type = RIGHT_JOIN; int _channel = DEFAULT_TOKEN_CHANNEL; // druidG.g:655:13: ( ( 'RIGHT_JOIN' | 'right_join' ) ) // druidG.g:655:15: ( 'RIGHT_JOIN' | 'right_join' ) { // druidG.g:655:15: ( 'RIGHT_JOIN...
public class class_name { public void sendAuditEvent(AuditEventMessage[] msgs) throws Exception { if (!EventUtils.isEmptyOrNull(msgs)) { DatagramSocket socket = new DatagramSocket(); for (int i=0; i<msgs.length; i++) { if (!EventUtils.isEmptyOrNull(msgs[i])) { send(msgs[i], sock...
public class class_name { public void sendAuditEvent(AuditEventMessage[] msgs) throws Exception { if (!EventUtils.isEmptyOrNull(msgs)) { DatagramSocket socket = new DatagramSocket(); for (int i=0; i<msgs.length; i++) { if (!EventUtils.isEmptyOrNull(msgs[i])) { send(msgs[i], sock...
public class class_name { private boolean startSettingsRequest(Activity activity, Fragment fragment) { boolean isSuccessful = false; // State transition. mLinkRequestState = STATE_SETTINGS_REQUEST; Session session = Session.getActiveSession(); if (session != null && session.is...
public class class_name { private boolean startSettingsRequest(Activity activity, Fragment fragment) { boolean isSuccessful = false; // State transition. mLinkRequestState = STATE_SETTINGS_REQUEST; Session session = Session.getActiveSession(); if (session != null && session.is...
public class class_name { private int checkSecurity(String strClassResource, String strSecurityMap, int iAccessType, int iLevel) { int iAccessAllowed = Constants.ACCESS_DENIED; if (strSecurityMap == null) return iAccessAllowed; // Denied if (LOGIN_REQUIRED.equalsIgnoreCase(str...
public class class_name { private int checkSecurity(String strClassResource, String strSecurityMap, int iAccessType, int iLevel) { int iAccessAllowed = Constants.ACCESS_DENIED; if (strSecurityMap == null) return iAccessAllowed; // Denied if (LOGIN_REQUIRED.equalsIgnoreCase(str...
public class class_name { public void close() { if (connected) { try { transport.close(); socket.close(); } catch (IOException ex) { logger.warn("Could not close socket", ex); } connected = false; ...
public class class_name { public void close() { if (connected) { try { transport.close(); // depends on control dependency: [try], data = [none] socket.close(); // depends on control dependency: [try], data = [none] } catch (IOException ex) { ...
public class class_name { public void stopPageReadFromCacheTimer() { final long endTs = nanoTimer.getNano(); final long timeDiff = (endTs - timeStamps.pop()); performanceCountersHolder.pageReadFromCacheTime += timeDiff; performanceCountersHolder.pageReadFromCacheCount++; for (Component component ...
public class class_name { public void stopPageReadFromCacheTimer() { final long endTs = nanoTimer.getNano(); final long timeDiff = (endTs - timeStamps.pop()); performanceCountersHolder.pageReadFromCacheTime += timeDiff; performanceCountersHolder.pageReadFromCacheCount++; for (Component component ...
public class class_name { public LinkedHashSet<Class<?>> getRegisteredKryoTypes() { if (isForceKryoEnabled()) { // if we force kryo, we must also return all the types that // were previously only registered as POJO LinkedHashSet<Class<?>> result = new LinkedHashSet<>(); result.addAll(registeredKryoTypes)...
public class class_name { public LinkedHashSet<Class<?>> getRegisteredKryoTypes() { if (isForceKryoEnabled()) { // if we force kryo, we must also return all the types that // were previously only registered as POJO LinkedHashSet<Class<?>> result = new LinkedHashSet<>(); // depends on control dependency: [if...
public class class_name { void refineOperandType(VoltType valueType) { if (m_valueType != VoltType.NUMERIC) { return; } if (valueType == VoltType.DECIMAL) { m_valueType = VoltType.DECIMAL; m_valueSize = VoltType.DECIMAL.getLengthInBytesForFixedTypes(); ...
public class class_name { void refineOperandType(VoltType valueType) { if (m_valueType != VoltType.NUMERIC) { return; // depends on control dependency: [if], data = [none] } if (valueType == VoltType.DECIMAL) { m_valueType = VoltType.DECIMAL; // depends on control depen...
public class class_name { public void marshall(DeleteAppRequest deleteAppRequest, ProtocolMarshaller protocolMarshaller) { if (deleteAppRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(dele...
public class class_name { public void marshall(DeleteAppRequest deleteAppRequest, ProtocolMarshaller protocolMarshaller) { if (deleteAppRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(dele...
public class class_name { public void zoomPrevious() { if (hasPrevious()) { next.addFirst(previous.remove()); MapViewChangedEvent data = previous.peek(); active = false; mapView.applyBounds(data.getBounds(), MapView.ZoomOption.LEVEL_CLOSEST); updateActionsAbility(); } } }
public class class_name { public void zoomPrevious() { if (hasPrevious()) { next.addFirst(previous.remove()); // depends on control dependency: [if], data = [none] MapViewChangedEvent data = previous.peek(); active = false; // depends on control dependency: [if], data = [none] mapView.applyBounds(data.ge...
public class class_name { private void generateSheet(Workbook workbook, List<?> data, Class clazz, boolean isWriteHeader, String sheetName) throws Excel4JException { Sheet sheet; if (null != sheetName && !"".equals(sheetName)) { sheet = workbook.c...
public class class_name { private void generateSheet(Workbook workbook, List<?> data, Class clazz, boolean isWriteHeader, String sheetName) throws Excel4JException { Sheet sheet; if (null != sheetName && !"".equals(sheetName)) { sheet = workbook.c...
public class class_name { public void marshall(DescribeMountTargetSecurityGroupsRequest describeMountTargetSecurityGroupsRequest, ProtocolMarshaller protocolMarshaller) { if (describeMountTargetSecurityGroupsRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"...
public class class_name { public void marshall(DescribeMountTargetSecurityGroupsRequest describeMountTargetSecurityGroupsRequest, ProtocolMarshaller protocolMarshaller) { if (describeMountTargetSecurityGroupsRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"...
public class class_name { public List<Workflow> getWorkflowsByCorrelationId(String correlationId, boolean includeTasks) { if (!executionDAO.canSearchAcrossWorkflows()) { List<Workflow> workflows = new LinkedList<>(); SearchResult<String> result = indexDAO.searchWorkflows("correlationId=...
public class class_name { public List<Workflow> getWorkflowsByCorrelationId(String correlationId, boolean includeTasks) { if (!executionDAO.canSearchAcrossWorkflows()) { List<Workflow> workflows = new LinkedList<>(); SearchResult<String> result = indexDAO.searchWorkflows("correlationId=...
public class class_name { public ServiceCall<Expansions> createExpansions(CreateExpansionsOptions createExpansionsOptions) { Validator.notNull(createExpansionsOptions, "createExpansionsOptions cannot be null"); String[] pathSegments = { "v1/environments", "collections", "expansions" }; String[] pathParamet...
public class class_name { public ServiceCall<Expansions> createExpansions(CreateExpansionsOptions createExpansionsOptions) { Validator.notNull(createExpansionsOptions, "createExpansionsOptions cannot be null"); String[] pathSegments = { "v1/environments", "collections", "expansions" }; String[] pathParamet...
public class class_name { private ImmutableList<TargetAtom> prepareTargetQuery(MapItem predicateSubjectMap, List<MapItem> predicateObjectMapsList) { // Create the body of the CQ ImmutableList.Builder<TargetAtom> bodyBuilder = ImmutableList.builder(); // Store concept in the body, if any ImmutableTerm subjectT...
public class class_name { private ImmutableList<TargetAtom> prepareTargetQuery(MapItem predicateSubjectMap, List<MapItem> predicateObjectMapsList) { // Create the body of the CQ ImmutableList.Builder<TargetAtom> bodyBuilder = ImmutableList.builder(); // Store concept in the body, if any ImmutableTerm subjectT...
public class class_name { private void addSuperBlockStart(int pc) { if (GenerateStackMap) { if (itsSuperBlockStarts == null) { itsSuperBlockStarts = new int[SuperBlockStartsSize]; } else if (itsSuperBlockStarts.length == itsSuperBlockStartsTop) { int[] tm...
public class class_name { private void addSuperBlockStart(int pc) { if (GenerateStackMap) { if (itsSuperBlockStarts == null) { itsSuperBlockStarts = new int[SuperBlockStartsSize]; // depends on control dependency: [if], data = [none] } else if (itsSuperBlockStarts.length...
public class class_name { public Object resetHardState(FacesContext context) { if (_transientState != null) { _transientState.clear(); } if (_deltas != null && !_deltas.isEmpty() && isInitialStateMarked()) { clearFullStateMap(context); } ...
public class class_name { public Object resetHardState(FacesContext context) { if (_transientState != null) { _transientState.clear(); // depends on control dependency: [if], data = [none] } if (_deltas != null && !_deltas.isEmpty() && isInitialStateMarked()) { ...
public class class_name { public boolean cancelTimer(final long timerId) { final int wheelIndex = tickForTimerId(timerId); final int arrayIndex = indexInTickArray(timerId); if (wheelIndex < wheel.length) { final long[] array = wheel[wheelIndex]; if (arrayIn...
public class class_name { public boolean cancelTimer(final long timerId) { final int wheelIndex = tickForTimerId(timerId); final int arrayIndex = indexInTickArray(timerId); if (wheelIndex < wheel.length) { final long[] array = wheel[wheelIndex]; if (arrayIn...
public class class_name { protected void checkForOldRestStyleError(JsonNode node) { JsonNode errorCode = node.get("error_code"); if (errorCode != null) { int code = errorCode.intValue(); String msg = node.path("error_msg").asText(); this.throwCodeAndMessage(code, msg); } } }
public class class_name { protected void checkForOldRestStyleError(JsonNode node) { JsonNode errorCode = node.get("error_code"); if (errorCode != null) { int code = errorCode.intValue(); String msg = node.path("error_msg").asText(); this.throwCodeAndMessage(code, msg); // depends on control de...
public class class_name { public boolean isValidGitRepository(Path folder) { if (Files.exists(folder) && Files.isDirectory(folder)) { // If it has been at least initialized if (RepositoryCache.FileKey.isGitRepository(folder.toFile(), FS.DETECTED)) { // we are assuming ...
public class class_name { public boolean isValidGitRepository(Path folder) { if (Files.exists(folder) && Files.isDirectory(folder)) { // If it has been at least initialized if (RepositoryCache.FileKey.isGitRepository(folder.toFile(), FS.DETECTED)) { // we are assuming ...
public class class_name { private IntervalListener getListener(String intervalName){ IntervalListener listener = listeners.get(intervalName); if (listener!=null) return listener; try { Interval interval = IntervalRegistry.getInstance().getIntervalOnlyIfExisting(intervalName); listener = new IntervalLis...
public class class_name { private IntervalListener getListener(String intervalName){ IntervalListener listener = listeners.get(intervalName); if (listener!=null) return listener; try { Interval interval = IntervalRegistry.getInstance().getIntervalOnlyIfExisting(intervalName); listener = new IntervalLis...
public class class_name { public static Constraint future() { return new Constraint("future", simplePayload("future")) { public boolean isValid(Object actualValue) { if (actualValue != null) { long now = System.currentTimeMillis(); if ((actualValue instanceof Date && ((Date) actualValue).getTime() <...
public class class_name { public static Constraint future() { return new Constraint("future", simplePayload("future")) { public boolean isValid(Object actualValue) { if (actualValue != null) { long now = System.currentTimeMillis(); if ((actualValue instanceof Date && ((Date) actualValue).getTime() <...
public class class_name { @Override public Attribute createAttribute(final GedObject ged, final String string) { if (ged == null || string == null) { return new Attribute(); } final Attribute attribute = new Attribute(ged, string); ged.insert(attribute); return a...
public class class_name { @Override public Attribute createAttribute(final GedObject ged, final String string) { if (ged == null || string == null) { return new Attribute(); // depends on control dependency: [if], data = [none] } final Attribute attribute = new Attribute(ged, st...
public class class_name { protected String getDefaultTimeFormatIfNull(Member c2jMemberDefinition, Map<String, Shape> allC2jShapes, String protocolString, Shape parentShape) { String timestampFormat = c2jMemberDefinition.getTimestampFormat(); if (!StringUtils.isNullOrEmpty(timestampFormat)) { ...
public class class_name { protected String getDefaultTimeFormatIfNull(Member c2jMemberDefinition, Map<String, Shape> allC2jShapes, String protocolString, Shape parentShape) { String timestampFormat = c2jMemberDefinition.getTimestampFormat(); if (!StringUtils.isNullOrEmpty(timestampFormat)) { ...
public class class_name { public static File getBundleFile(Bundle bundle) throws IOException { URL rootEntry = bundle.getEntry("/"); //$NON-NLS-1$ rootEntry = FileLocator.resolve(rootEntry); if ("file".equals(rootEntry.getProtocol())) //$NON-NLS-1$ return new File(rootEntry.getPath()); if ("jar".equals(root...
public class class_name { public static File getBundleFile(Bundle bundle) throws IOException { URL rootEntry = bundle.getEntry("/"); //$NON-NLS-1$ rootEntry = FileLocator.resolve(rootEntry); if ("file".equals(rootEntry.getProtocol())) //$NON-NLS-1$ return new File(rootEntry.getPath()); if ("jar".equals(root...
public class class_name { private AuthenticationService getAuthenticationService(String id) { AuthenticationService service = authentication.getService(id); if (service == null) { throwIllegalArgumentExceptionInvalidAttributeValue(SecurityConfiguration.CFG_KEY_AUTHENTICATION_REF, id); ...
public class class_name { private AuthenticationService getAuthenticationService(String id) { AuthenticationService service = authentication.getService(id); if (service == null) { throwIllegalArgumentExceptionInvalidAttributeValue(SecurityConfiguration.CFG_KEY_AUTHENTICATION_REF, id); // de...
public class class_name { protected void addIndexContents(PackageDoc[] packages, String text, String tableSummary, Content body) { if (packages.length > 0) { Arrays.sort(packages); HtmlTree div = new HtmlTree(HtmlTag.DIV); div.addStyle(HtmlStyle.indexHeader); ...
public class class_name { protected void addIndexContents(PackageDoc[] packages, String text, String tableSummary, Content body) { if (packages.length > 0) { Arrays.sort(packages); // depends on control dependency: [if], data = [none] HtmlTree div = new HtmlTree(HtmlTag.DIV)...
public class class_name { public void finish() { try { if (switcher.getCurrentMode() == STTYMode.RAW && lineCount > 0) { out.write('\r'); out.write('\n'); out.flush(); } lineCount = 0; } catch (IOException e) { ...
public class class_name { public void finish() { try { if (switcher.getCurrentMode() == STTYMode.RAW && lineCount > 0) { out.write('\r'); // depends on control dependency: [if], data = [none] out.write('\n'); // depends on control dependency: [if], data = [none] ...
public class class_name { public final EObject ruleContinueExpression() throws RecognitionException { EObject current = null; Token otherlv_1=null; enterRule(); try { // InternalSARL.g:7492:2: ( ( () otherlv_1= 'continue' ) ) // InternalSARL.g:7493:2: ( () o...
public class class_name { public final EObject ruleContinueExpression() throws RecognitionException { EObject current = null; Token otherlv_1=null; enterRule(); try { // InternalSARL.g:7492:2: ( ( () otherlv_1= 'continue' ) ) // InternalSARL.g:7493:2: ( () o...
public class class_name { protected int getRefreshTokenValiditySeconds(OAuth2Request clientAuth) { if (clientDetailsService != null) { ClientDetails client = clientDetailsService.loadClientByClientId(clientAuth.getClientId()); Integer validity = client.getRefreshTokenValiditySeconds(); if (validity != null)...
public class class_name { protected int getRefreshTokenValiditySeconds(OAuth2Request clientAuth) { if (clientDetailsService != null) { ClientDetails client = clientDetailsService.loadClientByClientId(clientAuth.getClientId()); Integer validity = client.getRefreshTokenValiditySeconds(); if (validity != null)...
public class class_name { public void setLedType(final LedType LED_TYPE) { if (ledType == LED_TYPE) {return;} ledType = LED_TYPE; final boolean LED_WAS_ON = currentLedImage.equals(ledImageOn) ? true : false; flushImages(); ledImageOff = create_LED_Image(getWidth(), 0, ledColor,...
public class class_name { public void setLedType(final LedType LED_TYPE) { if (ledType == LED_TYPE) {return;} // depends on control dependency: [if], data = [none] ledType = LED_TYPE; final boolean LED_WAS_ON = currentLedImage.equals(ledImageOn) ? true : false; flushImages(); l...
public class class_name { public static synchronized Router getRouterFor(ServletContext con) { // log.info( "getting router for context path '" + givenContextPath + "'" ); String contextPath = EldaRouterRestletSupport.flatContextPath(con.getContextPath()); TimestampedRouter r = routers.get(cont...
public class class_name { public static synchronized Router getRouterFor(ServletContext con) { // log.info( "getting router for context path '" + givenContextPath + "'" ); String contextPath = EldaRouterRestletSupport.flatContextPath(con.getContextPath()); TimestampedRouter r = routers.get(cont...
public class class_name { public static boolean writeObjectToFile(Object obj, File f) { try { FileOutputStream fout = new FileOutputStream(f); ObjectOutputStream oos = new ObjectOutputStream(fout); oos.writeObject(obj); oos.close(); } catch (Excepti...
public class class_name { public static boolean writeObjectToFile(Object obj, File f) { try { FileOutputStream fout = new FileOutputStream(f); ObjectOutputStream oos = new ObjectOutputStream(fout); oos.writeObject(obj); // depends on control dependency: [try], data = [n...
public class class_name { public static <T extends Enum<T>> ConfigurationOptionBuilder<T> enumOption(Class<T> clazz) { final ConfigurationOptionBuilder<T> optionBuilder = new ConfigurationOptionBuilder<T>(new EnumValueConverter<T>(clazz), clazz); for (T enumConstant : clazz.getEnumConstants()) { optionBuilder.a...
public class class_name { public static <T extends Enum<T>> ConfigurationOptionBuilder<T> enumOption(Class<T> clazz) { final ConfigurationOptionBuilder<T> optionBuilder = new ConfigurationOptionBuilder<T>(new EnumValueConverter<T>(clazz), clazz); for (T enumConstant : clazz.getEnumConstants()) { optionBuilder.a...
public class class_name { public GetSignatureResponse getSignature(String nonceStr, long timestame, String url) { BeanUtil.requireNonNull(url, "请传入当前网页的URL,不包含#及其后面部分"); GetSignatureResponse response = new GetSignatureResponse(); String jsApiTicket = this.config.getJsApiTicket(); String...
public class class_name { public GetSignatureResponse getSignature(String nonceStr, long timestame, String url) { BeanUtil.requireNonNull(url, "请传入当前网页的URL,不包含#及其后面部分"); GetSignatureResponse response = new GetSignatureResponse(); String jsApiTicket = this.config.getJsApiTicket(); String...
public class class_name { public void setAttributeMap( Map savedAttrs ) { assert savedAttrs != null : "Map of attributes must be non-null"; Map currentAttrs = _scopedContainer.getAttrMap(); Map attrs = new HashMap(); attrs.putAll( savedAttrs ); if ( currentAttrs != null )...
public class class_name { public void setAttributeMap( Map savedAttrs ) { assert savedAttrs != null : "Map of attributes must be non-null"; Map currentAttrs = _scopedContainer.getAttrMap(); Map attrs = new HashMap(); attrs.putAll( savedAttrs ); if ( currentAttrs != null )...
public class class_name { public JSONObject similarSearch(String image, HashMap<String, String> options) { try { byte[] data = Util.readFileByBytes(image); return similarSearch(data, options); } catch (IOException e) { e.printStackTrace(); return AipError...
public class class_name { public JSONObject similarSearch(String image, HashMap<String, String> options) { try { byte[] data = Util.readFileByBytes(image); return similarSearch(data, options); // depends on control dependency: [try], data = [none] } catch (IOException e) { ...
public class class_name { public boolean checkPermissions() { if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.LOLLIPOP_MR1) return true; for (String permission : mRequiredPermissions) { if (ContextCompat.checkSelfPermission(mContext, permission) != PackageManager.PERMISSION_GR...
public class class_name { public boolean checkPermissions() { if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.LOLLIPOP_MR1) return true; for (String permission : mRequiredPermissions) { if (ContextCompat.checkSelfPermission(mContext, permission) != PackageManager.PERMISSION_GR...
public class class_name { public void generatePotentialMenuTimes(ArrayList<LocalTime> desiredTimes) { potentialMenuTimes = new ArrayList<LocalTime>(); if (desiredTimes == null || desiredTimes.isEmpty()) { return; } TreeSet<LocalTime> timeSet = new TreeSet<LocalTime>(); ...
public class class_name { public void generatePotentialMenuTimes(ArrayList<LocalTime> desiredTimes) { potentialMenuTimes = new ArrayList<LocalTime>(); if (desiredTimes == null || desiredTimes.isEmpty()) { return; // depends on control dependency: [if], data = [none] } TreeSe...
public class class_name { public static List<String> getLocaleVariants( String basename, Locale locale, boolean wantBase, boolean defaultAsBase) { List<String> result = new ArrayList<String>(); if (null == basename) { return result; } else { ...
public class class_name { public static List<String> getLocaleVariants( String basename, Locale locale, boolean wantBase, boolean defaultAsBase) { List<String> result = new ArrayList<String>(); if (null == basename) { return result; // depends on control dep...
public class class_name { public PackageResourceTable newFrameworkResourceTable(ResourcePath resourcePath) { return PerfStatsCollector.getInstance() .measure( "load legacy framework resources", () -> { PackageResourceTable resourceTable = new PackageResourceTable("andr...
public class class_name { public PackageResourceTable newFrameworkResourceTable(ResourcePath resourcePath) { return PerfStatsCollector.getInstance() .measure( "load legacy framework resources", () -> { PackageResourceTable resourceTable = new PackageResourceTable("andr...
public class class_name { public void setNamespaceProperty(String key, Object value, String namespace) { try { this.propertiesLock.lock(); Map<String, Object> namespaceProperties = getNamespaceProperties(namespace); if (namespaceProperties != null) { nam...
public class class_name { public void setNamespaceProperty(String key, Object value, String namespace) { try { this.propertiesLock.lock(); // depends on control dependency: [try], data = [none] Map<String, Object> namespaceProperties = getNamespaceProperties(namespace); ...
public class class_name { void closeAllPaths(int geometry) { if (getGeometryType(geometry) == Geometry.GeometryType.Polygon) return; if (!Geometry.isLinear(getGeometryType(geometry))) throw GeometryException.GeometryInternalError(); for (int path = getFirstPath(geometry); path != -1; path = getNextPath(pa...
public class class_name { void closeAllPaths(int geometry) { if (getGeometryType(geometry) == Geometry.GeometryType.Polygon) return; if (!Geometry.isLinear(getGeometryType(geometry))) throw GeometryException.GeometryInternalError(); for (int path = getFirstPath(geometry); path != -1; path = getNextPath(pa...
public class class_name { public String getProxyFile() { String location; location = System.getProperty("X509_USER_PROXY"); if (location != null) { return location; } location = getProperty("proxy"); if (location != null) { return location; } return ConfigUtil.discoverProxyLocation(); } }
public class class_name { public String getProxyFile() { String location; location = System.getProperty("X509_USER_PROXY"); if (location != null) { return location; // depends on control dependency: [if], data = [none] } location = getProperty("proxy"); if (location != null) { return location; // depen...
public class class_name { public OutputStream getModificHistory(final String resourceName, // NOPMD this method needs alls these // functions final String revisionRange, final boolean nodeid, final OutputStream output, final boolean wrap) throws JaxRxException, TTException { // extract...
public class class_name { public OutputStream getModificHistory(final String resourceName, // NOPMD this method needs alls these // functions final String revisionRange, final boolean nodeid, final OutputStream output, final boolean wrap) throws JaxRxException, TTException { // extract...
public class class_name { public long toLong () { long result = 0; byte[] uuidBytes = super.toByteArray(); for (int i = 0; i < 8; i++) { result = result << 8; result += (int) uuidBytes[i]; } return result; } }
public class class_name { public long toLong () { long result = 0; byte[] uuidBytes = super.toByteArray(); for (int i = 0; i < 8; i++) { result = result << 8; // depends on control dependency: [for], data = [none] result += (int) uuidBytes[i]; // depends on control dependency: [fo...
public class class_name { private static Node getNextSiblingOfType(Node first, Token ... types) { for (Node c = first; c != null; c = c.getNext()) { for (Token type : types) { if (c.getToken() == type) { return c; } } } return null; } }
public class class_name { private static Node getNextSiblingOfType(Node first, Token ... types) { for (Node c = first; c != null; c = c.getNext()) { for (Token type : types) { if (c.getToken() == type) { return c; // depends on control dependency: [if], data = [none] } } }...
public class class_name { public Object getObjectByQuery(Query query) throws PersistenceBrokerException { Object result = null; if (query instanceof QueryByIdentity) { // example obj may be an entity or an Identity Object obj = query.getExampleObject(); i...
public class class_name { public Object getObjectByQuery(Query query) throws PersistenceBrokerException { Object result = null; if (query instanceof QueryByIdentity) { // example obj may be an entity or an Identity Object obj = query.getExampleObject(); i...
public class class_name { public static final long parseDuration(String durationStr, long defaultValue) { durationStr = durationStr.toLowerCase().trim(); Matcher matcher = DURATION_NUMBER_AND_UNIT_PATTERN.matcher(durationStr); long millis = 0; boolean matched = false; while (ma...
public class class_name { public static final long parseDuration(String durationStr, long defaultValue) { durationStr = durationStr.toLowerCase().trim(); Matcher matcher = DURATION_NUMBER_AND_UNIT_PATTERN.matcher(durationStr); long millis = 0; boolean matched = false; while (ma...
public class class_name { private Element writeCoordTransform(CoverageTransform ct) { Element ctElem = new Element("coordTransform"); ctElem.setAttribute("name", ct.getName()); ctElem.setAttribute("transformType", ct.isHoriz() ? "Projection" : "Vertical"); for (Attribute param : ct.getAttributes()) { ...
public class class_name { private Element writeCoordTransform(CoverageTransform ct) { Element ctElem = new Element("coordTransform"); ctElem.setAttribute("name", ct.getName()); ctElem.setAttribute("transformType", ct.isHoriz() ? "Projection" : "Vertical"); for (Attribute param : ct.getAttributes()) { ...
public class class_name { public JType getGenericReturnType() { SignatureAttribute sigAttr = (SignatureAttribute) getAttribute("Signature"); if (sigAttr != null) { String sig = sigAttr.getSignature(); int t = sig.lastIndexOf(')'); return _loader.parseParameterizedType(sig.substring(t + 1...
public class class_name { public JType getGenericReturnType() { SignatureAttribute sigAttr = (SignatureAttribute) getAttribute("Signature"); if (sigAttr != null) { String sig = sigAttr.getSignature(); int t = sig.lastIndexOf(')'); return _loader.parseParameterizedType(sig.substring(t + 1...
public class class_name { public static String urlDecode(final String part) { try { return URLDecoder.decode(part, DEFAULT_URL_ENCODING); } catch (UnsupportedEncodingException e) { throw new ImpossibleException(e); } } }
public class class_name { public static String urlDecode(final String part) { try { return URLDecoder.decode(part, DEFAULT_URL_ENCODING); // depends on control dependency: [try], data = [none] } catch (UnsupportedEncodingException e) { throw new ImpossibleException(e); } // depends on control depende...
public class class_name { @Override protected List<ConfigIssue> init() { // Validate configuration values and open any required resources. List<ConfigIssue> issues = super.init(); errorRecordHandler = new DefaultErrorRecordHandler(getContext()); elEvals.init(getContext()); Processor.Context con...
public class class_name { @Override protected List<ConfigIssue> init() { // Validate configuration values and open any required resources. List<ConfigIssue> issues = super.init(); errorRecordHandler = new DefaultErrorRecordHandler(getContext()); elEvals.init(getContext()); Processor.Context con...
public class class_name { private static boolean isASCIIOkBiDi(CharSequence s, int length) { int labelStart=0; for(int i=0; i<length; ++i) { char c=s.charAt(i); if(c=='.') { // dot if(i>labelStart) { c=s.charAt(i-1); i...
public class class_name { private static boolean isASCIIOkBiDi(CharSequence s, int length) { int labelStart=0; for(int i=0; i<length; ++i) { char c=s.charAt(i); if(c=='.') { // dot if(i>labelStart) { c=s.charAt(i-1); // depends on control...
public class class_name { public static void createUsers(GreenMailOperations greenMail, InternetAddress... addresses) { for (InternetAddress address : addresses) { greenMail.setUser(address.getAddress(), address.getAddress()); } } }
public class class_name { public static void createUsers(GreenMailOperations greenMail, InternetAddress... addresses) { for (InternetAddress address : addresses) { greenMail.setUser(address.getAddress(), address.getAddress()); // depends on control dependency: [for], data = [address] } ...
public class class_name { protected String ensureMemberDeclarationKeyword(CodeElementExtractor.ElementDescription memberDescription) { final List<String> modifiers = getCodeBuilderConfig().getModifiers().get(memberDescription.getName()); if (modifiers != null && !modifiers.isEmpty()) { return modifiers.get(0); ...
public class class_name { protected String ensureMemberDeclarationKeyword(CodeElementExtractor.ElementDescription memberDescription) { final List<String> modifiers = getCodeBuilderConfig().getModifiers().get(memberDescription.getName()); if (modifiers != null && !modifiers.isEmpty()) { return modifiers.get(0); ...
public class class_name { public static Set<Integer> differences(BitSet s, BitSet t) { BitSet u = (BitSet) s.clone(); u.xor(t); Set<Integer> differences = new TreeSet<Integer>(); for (int i = u.nextSetBit(0); i >= 0; i = u.nextSetBit(i + 1)) { differences.add(i); }...
public class class_name { public static Set<Integer> differences(BitSet s, BitSet t) { BitSet u = (BitSet) s.clone(); u.xor(t); Set<Integer> differences = new TreeSet<Integer>(); for (int i = u.nextSetBit(0); i >= 0; i = u.nextSetBit(i + 1)) { differences.add(i); // depend...
public class class_name { @Nullable public String[] calculateRemainingWaypointNames(RouteProgress routeProgress) { RouteOptions routeOptions = routeProgress.directionsRoute().routeOptions(); if (routeOptions == null || TextUtils.isEmpty(routeOptions.waypointNames())) { return null; } String all...
public class class_name { @Nullable public String[] calculateRemainingWaypointNames(RouteProgress routeProgress) { RouteOptions routeOptions = routeProgress.directionsRoute().routeOptions(); if (routeOptions == null || TextUtils.isEmpty(routeOptions.waypointNames())) { return null; // depends on contro...
public class class_name { public void marshall(ExclusionPreview exclusionPreview, ProtocolMarshaller protocolMarshaller) { if (exclusionPreview == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(excl...
public class class_name { public void marshall(ExclusionPreview exclusionPreview, ProtocolMarshaller protocolMarshaller) { if (exclusionPreview == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(excl...
public class class_name { void populateClientProperties(Map properties) { if (properties != null && !properties.isEmpty()) { Map<String, Client> clientMap = getDelegate(); if (!clientMap.isEmpty()) { // TODO If we have two pu for same client then?...
public class class_name { void populateClientProperties(Map properties) { if (properties != null && !properties.isEmpty()) { Map<String, Client> clientMap = getDelegate(); if (!clientMap.isEmpty()) { // TODO If we have two pu for same client then?...
public class class_name { public void marshall(QueryCompileErrorLocation queryCompileErrorLocation, ProtocolMarshaller protocolMarshaller) { if (queryCompileErrorLocation == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { proto...
public class class_name { public void marshall(QueryCompileErrorLocation queryCompileErrorLocation, ProtocolMarshaller protocolMarshaller) { if (queryCompileErrorLocation == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { proto...
public class class_name { @Bean(name = "portalRenderingPipeline") @Qualifier(value = "main") public IPortalRenderingPipeline getPortalRenderingPipeline() { // Rendering Pipeline Branches (adopter extension point) final List<RenderingPipelineBranchPoint> sortedList = (branchPoin...
public class class_name { @Bean(name = "portalRenderingPipeline") @Qualifier(value = "main") public IPortalRenderingPipeline getPortalRenderingPipeline() { // Rendering Pipeline Branches (adopter extension point) final List<RenderingPipelineBranchPoint> sortedList = (branchPoin...
public class class_name { public Node getNextSiblingElement() { parentNode.initChildElementNodes(); if (siblingElementIndex == -1) { int max = parentNode.getChildNodesCount(); for (int i = siblingIndex; i < max; i++) { Node sibling = parentNode.childNodes.get(i); if (sibling.getNodeType() == NodeType...
public class class_name { public Node getNextSiblingElement() { parentNode.initChildElementNodes(); if (siblingElementIndex == -1) { int max = parentNode.getChildNodesCount(); for (int i = siblingIndex; i < max; i++) { Node sibling = parentNode.childNodes.get(i); if (sibling.getNodeType() == NodeType...
public class class_name { protected int getSearchEndIndex(final @NonNull Spanned text, int cursor) { if (cursor < 0 || cursor > text.length()) { cursor = 0; } // Get index of the start of the first span after the cursor (or text.length() if does not exist) MentionSpan[] spa...
public class class_name { protected int getSearchEndIndex(final @NonNull Spanned text, int cursor) { if (cursor < 0 || cursor > text.length()) { cursor = 0; // depends on control dependency: [if], data = [none] } // Get index of the start of the first span after the cursor (or text...
public class class_name { @Override public void close() { if (isDefaultManager() && getClass().getClassLoader() == classLoader) { log.info("Closing default CacheManager"); } Iterable<Cache> _caches; synchronized (lock) { if (closing) { return; } _caches = cachesCopy();...
public class class_name { @Override public void close() { if (isDefaultManager() && getClass().getClassLoader() == classLoader) { log.info("Closing default CacheManager"); // depends on control dependency: [if], data = [none] } Iterable<Cache> _caches; synchronized (lock) { if (closing) {...
public class class_name { @Override public void declineCheckpoint(DeclineCheckpoint decline) { final CheckpointCoordinator checkpointCoordinator = executionGraph.getCheckpointCoordinator(); if (checkpointCoordinator != null) { getRpcService().execute(() -> { try { checkpointCoordinator.receiveDecline...
public class class_name { @Override public void declineCheckpoint(DeclineCheckpoint decline) { final CheckpointCoordinator checkpointCoordinator = executionGraph.getCheckpointCoordinator(); if (checkpointCoordinator != null) { getRpcService().execute(() -> { try { checkpointCoordinator.receiveDecline...
public class class_name { public JavaFileObject writeClass(ClassSymbol c) throws IOException, PoolOverflow, StringOverflow { JavaFileObject outFile = fileManager.getJavaFileForOutput(CLASS_OUTPUT, c.flatname.toString(), ...
public class class_name { public JavaFileObject writeClass(ClassSymbol c) throws IOException, PoolOverflow, StringOverflow { JavaFileObject outFile = fileManager.getJavaFileForOutput(CLASS_OUTPUT, c.flatname.toString(), ...
public class class_name { public ActionRuntime createActionRuntime( final ActionHandler actionHandler, final Class actionClass, final Method actionClassMethod, final Class<? extends ActionResult> actionResult, final Class<? extends ActionResult> defaultActionResult, final ActionFilter[] filters, final Ac...
public class class_name { public ActionRuntime createActionRuntime( final ActionHandler actionHandler, final Class actionClass, final Method actionClassMethod, final Class<? extends ActionResult> actionResult, final Class<? extends ActionResult> defaultActionResult, final ActionFilter[] filters, final Ac...
public class class_name { public InitiateMultipartUploadResponse initiateMultipartUpload(InitiateMultipartUploadRequest request) { checkNotNull(request, "request should not be null."); InternalRequest internalRequest = this.createRequest(request, HttpMethodName.POST); internalRequest.addParame...
public class class_name { public InitiateMultipartUploadResponse initiateMultipartUpload(InitiateMultipartUploadRequest request) { checkNotNull(request, "request should not be null."); InternalRequest internalRequest = this.createRequest(request, HttpMethodName.POST); internalRequest.addParame...
public class class_name { private void doDocumentTypeDefinition(Node received, Node source, XmlMessageValidationContext validationContext, NamespaceContext namespaceContext, TestContext context) { Assert.isTrue(source instanceof DocumentType, "Missing document type definition in expect...
public class class_name { private void doDocumentTypeDefinition(Node received, Node source, XmlMessageValidationContext validationContext, NamespaceContext namespaceContext, TestContext context) { Assert.isTrue(source instanceof DocumentType, "Missing document type definition in expect...
public class class_name { public static void setRotateM(float[] rm, int rmOffset, float a, float x, float y, float z) { rm[rmOffset + 3] = 0; rm[rmOffset + 7] = 0; rm[rmOffset + 11]= 0; rm[rmOffset + 12]= 0; rm[rmOffset + 13]= 0; rm[rmOffset + 14]= 0; ...
public class class_name { public static void setRotateM(float[] rm, int rmOffset, float a, float x, float y, float z) { rm[rmOffset + 3] = 0; rm[rmOffset + 7] = 0; rm[rmOffset + 11]= 0; rm[rmOffset + 12]= 0; rm[rmOffset + 13]= 0; rm[rmOffset + 14]= 0; ...
public class class_name { public TaxonomyTerm createTaxonomyTerm(final String taxonomy, final String name, final String slug, final String description) throws SQLException { Term term = createTerm(name, slug); Connection conn = null; PreparedStatement stmt =...
public class class_name { public TaxonomyTerm createTaxonomyTerm(final String taxonomy, final String name, final String slug, final String description) throws SQLException { Term term = createTerm(name, slug); Connection conn = null; PreparedStatement stmt =...
public class class_name { public static List<MediaType> valueOf(final String... types) throws Err.BadMediaType { requireNonNull(types, "Types are required."); List<MediaType> result = new ArrayList<>(); for (String type : types) { result.add(valueOf(type)); } return result; } }
public class class_name { public static List<MediaType> valueOf(final String... types) throws Err.BadMediaType { requireNonNull(types, "Types are required."); List<MediaType> result = new ArrayList<>(); for (String type : types) { result.add(valueOf(type)); // depends on control dependency: [for], da...
public class class_name { public static <K, V> Map<K, V> zip(K[] keys, V[] values, boolean isOrder) { if (isEmpty(keys) || isEmpty(values)) { return null; } final int size = Math.min(keys.length, values.length); final Map<K, V> map = CollectionUtil.newHashMap(size, isOrder); for (int i = 0; i < si...
public class class_name { public static <K, V> Map<K, V> zip(K[] keys, V[] values, boolean isOrder) { if (isEmpty(keys) || isEmpty(values)) { return null; // depends on control dependency: [if], data = [none] } final int size = Math.min(keys.length, values.length); final Map<K, V> map = CollectionUti...
public class class_name { public static int findRowIdColumnIndex(String[] columnNames) { int length = columnNames.length; for (int i = 0; i < length; i++) { if (columnNames[i].equals("_id")) { return i; } } return -1; } }
public class class_name { public static int findRowIdColumnIndex(String[] columnNames) { int length = columnNames.length; for (int i = 0; i < length; i++) { if (columnNames[i].equals("_id")) { return i; // depends on control dependency: [if], data = [none] } ...
public class class_name { public int size() { int ret = anyMethodRouter.size(); for (MethodlessRouter<T> router : routers.values()) { ret += router.size(); } return ret; } }
public class class_name { public int size() { int ret = anyMethodRouter.size(); for (MethodlessRouter<T> router : routers.values()) { ret += router.size(); // depends on control dependency: [for], data = [router] } return ret; } }
public class class_name { @Override public int compareTo(ChronoZonedDateTime<?> other) { int cmp = Jdk8Methods.compareLongs(toEpochSecond(), other.toEpochSecond()); if (cmp == 0) { cmp = toLocalTime().getNano() - other.toLocalTime().getNano(); if (cmp == 0) { ...
public class class_name { @Override public int compareTo(ChronoZonedDateTime<?> other) { int cmp = Jdk8Methods.compareLongs(toEpochSecond(), other.toEpochSecond()); if (cmp == 0) { cmp = toLocalTime().getNano() - other.toLocalTime().getNano(); // depends on control dependency: [if], dat...
public class class_name { public Record makeRecordFromRecordName(String strRecordName, RecordOwner recordOwner) { int iOldKeyArea = this.getDefaultOrder(); try { this.addNew(); this.setKeyArea(ContactType.CODE_KEY); this.getField(ContactType.CODE).setString(strRe...
public class class_name { public Record makeRecordFromRecordName(String strRecordName, RecordOwner recordOwner) { int iOldKeyArea = this.getDefaultOrder(); try { this.addNew(); // depends on control dependency: [try], data = [none] this.setKeyArea(ContactType.CODE_KEY); // d...
public class class_name { @Requires("pathName != null") @Ensures("result != null") public static String getPackageName(String pathName) { int lastSep = pathName.lastIndexOf('.'); if (lastSep == -1) { return ""; } else { return pathName.substring(0, lastSep); } } }
public class class_name { @Requires("pathName != null") @Ensures("result != null") public static String getPackageName(String pathName) { int lastSep = pathName.lastIndexOf('.'); if (lastSep == -1) { return ""; // depends on control dependency: [if], data = [none] } else { return pathName.s...
public class class_name { @SuppressWarnings("unchecked") private <T> void addClass(Set<Class<? extends T>> classes, String includeRegExp, String className, Class<T> ofType, Class<? extends Annotation> annotationCla...
public class class_name { @SuppressWarnings("unchecked") private <T> void addClass(Set<Class<? extends T>> classes, String includeRegExp, String className, Class<T> ofType, Class<? extends Annotation> annotationCla...
public class class_name { private double snapToResolution(double scale, ZoomOption option) { // clip upper bounds double allowedScale = limitScale(scale); if (resolutions != null) { IndexRange indices = getResolutionRange(); if (option == ZoomOption.EXACT || !indices.isValid()) { // should not or canno...
public class class_name { private double snapToResolution(double scale, ZoomOption option) { // clip upper bounds double allowedScale = limitScale(scale); if (resolutions != null) { IndexRange indices = getResolutionRange(); if (option == ZoomOption.EXACT || !indices.isValid()) { // should not or canno...
public class class_name { private boolean isWorkingDay(ProjectCalendar mpxjCalendar, Day day) { boolean result = false; net.sf.mpxj.DayType type = mpxjCalendar.getWorkingDay(day); if (type == null) { type = net.sf.mpxj.DayType.DEFAULT; } switch (type) { c...
public class class_name { private boolean isWorkingDay(ProjectCalendar mpxjCalendar, Day day) { boolean result = false; net.sf.mpxj.DayType type = mpxjCalendar.getWorkingDay(day); if (type == null) { type = net.sf.mpxj.DayType.DEFAULT; // depends on control dependency: [if], data = ...
public class class_name { @Override public ManagedChannelImpl shutdown() { channelLogger.log(ChannelLogLevel.DEBUG, "shutdown() called"); if (!shutdown.compareAndSet(false, true)) { return this; } // Put gotoState(SHUTDOWN) as early into the syncContext's queue as possible. // delayedTrans...
public class class_name { @Override public ManagedChannelImpl shutdown() { channelLogger.log(ChannelLogLevel.DEBUG, "shutdown() called"); if (!shutdown.compareAndSet(false, true)) { return this; // depends on control dependency: [if], data = [none] } // Put gotoState(SHUTDOWN) as early into th...
public class class_name { public Integer delInfoByIdListService(List<String> idList,String tableName){ int status=0; String tempDbType=calcuDbType(); String tempKeyId=calcuIdKey(); for(String id:idList){ int retStatus=getInnerDao().delObjByBizId(tableName, id, tempKeyId); status=status+retStatus;...
public class class_name { public Integer delInfoByIdListService(List<String> idList,String tableName){ int status=0; String tempDbType=calcuDbType(); String tempKeyId=calcuIdKey(); for(String id:idList){ int retStatus=getInnerDao().delObjByBizId(tableName, id, tempKeyId); status=status+retStatus;...
public class class_name { protected void updateDeploymentRepository(DeploymentRepository value, String xmlTag, Counter counter, Element element) { boolean shouldExist = value != null; Element root = updateElement(counter, element, xmlTag, shouldExist); if (shouldExist) { ...
public class class_name { protected void updateDeploymentRepository(DeploymentRepository value, String xmlTag, Counter counter, Element element) { boolean shouldExist = value != null; Element root = updateElement(counter, element, xmlTag, shouldExist); if (shouldExist) { ...
public class class_name { public void marshall(ApplicationSummary applicationSummary, ProtocolMarshaller protocolMarshaller) { if (applicationSummary == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshal...
public class class_name { public void marshall(ApplicationSummary applicationSummary, ProtocolMarshaller protocolMarshaller) { if (applicationSummary == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshal...
public class class_name { public java.util.List<Category> getCategories() { if (categories == null) { categories = new com.amazonaws.internal.SdkInternalList<Category>(); } return categories; } }
public class class_name { public java.util.List<Category> getCategories() { if (categories == null) { categories = new com.amazonaws.internal.SdkInternalList<Category>(); // depends on control dependency: [if], data = [none] } return categories; } }
public class class_name { private void registerQueryMBeans(ComponentRegistry cr, Configuration cfg, SearchIntegrator searchIntegrator) { AdvancedCache<?, ?> cache = cr.getComponent(Cache.class).getAdvancedCache(); // Resolve MBean server instance GlobalJmxStatisticsConfiguration jmxConfig = cr.getGlo...
public class class_name { private void registerQueryMBeans(ComponentRegistry cr, Configuration cfg, SearchIntegrator searchIntegrator) { AdvancedCache<?, ?> cache = cr.getComponent(Cache.class).getAdvancedCache(); // Resolve MBean server instance GlobalJmxStatisticsConfiguration jmxConfig = cr.getGlo...