code
stringlengths
130
281k
code_dependency
stringlengths
182
306k
public class class_name { public static Class<?> getGenericClass(Field collectionField) { Class<?> genericClass = null; if (collectionField == null) { return genericClass; } if (isCollection(collectionField.getType())) { Type[] parame...
public class class_name { public static Class<?> getGenericClass(Field collectionField) { Class<?> genericClass = null; if (collectionField == null) { return genericClass; } if (isCollection(collectionField.getType())) { Type[] parame...
public class class_name { public static WindowState getWindowState(String state) { if (state == null) { return null; } final WindowState windowState = WINDOW_STATES.get(state); if (windowState != null) { return windowState; } return new WindowSt...
public class class_name { public static WindowState getWindowState(String state) { if (state == null) { return null; // depends on control dependency: [if], data = [none] } final WindowState windowState = WINDOW_STATES.get(state); if (windowState != null) { retu...
public class class_name { public static void completeBackgroundTasks(long timeoutMillis) { boolean fifoEmpty = false; boolean asyncThreadsCompleted = false; long absTimeout = System.currentTimeMillis() + timeoutMillis; while (System.currentTimeMillis() < absTimeout) { ...
public class class_name { public static void completeBackgroundTasks(long timeoutMillis) { boolean fifoEmpty = false; boolean asyncThreadsCompleted = false; long absTimeout = System.currentTimeMillis() + timeoutMillis; while (System.currentTimeMillis() < absTimeout) { ...
public class class_name { @Override public void inactiveConnectionClosed( Object connection, ManagedConnectionFactory managedConnectionFactory) { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) { ...
public class class_name { @Override public void inactiveConnectionClosed( Object connection, ManagedConnectionFactory managedConnectionFactory) { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) { ...
public class class_name { private Token tryAndMatchOnLine(Token.Kind kind) { int next = skipLineSpace(index); if (next < tokens.size()) { Token t = tokens.get(next); if (t.kind == kind) { index = next + 1; return t; } } return null; } }
public class class_name { private Token tryAndMatchOnLine(Token.Kind kind) { int next = skipLineSpace(index); if (next < tokens.size()) { Token t = tokens.get(next); if (t.kind == kind) { index = next + 1; // depends on control dependency: [if], data = [none] return t; // depends on control dependenc...
public class class_name { public static int whichMax(double[] x) { double m = Double.NEGATIVE_INFINITY; int which = 0; for (int i = 0; i < x.length; i++) { if (x[i] > m) { m = x[i]; which = i; } } return which; } }
public class class_name { public static int whichMax(double[] x) { double m = Double.NEGATIVE_INFINITY; int which = 0; for (int i = 0; i < x.length; i++) { if (x[i] > m) { m = x[i]; // depends on control dependency: [if], data = [none] which = i; // ...
public class class_name { public void marshall(DeleteImagePermissionsRequest deleteImagePermissionsRequest, ProtocolMarshaller protocolMarshaller) { if (deleteImagePermissionsRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { ...
public class class_name { public void marshall(DeleteImagePermissionsRequest deleteImagePermissionsRequest, ProtocolMarshaller protocolMarshaller) { if (deleteImagePermissionsRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { ...
public class class_name { public static Problem readProblem(File file, double bias) throws IOException, InvalidInputDataException { BufferedReader fp = new BufferedReader(new FileReader(file)); List<Double> vy = new ArrayList<Double>(); List<Feature[]> vx = new ArrayList<Feature[]>(); i...
public class class_name { public static Problem readProblem(File file, double bias) throws IOException, InvalidInputDataException { BufferedReader fp = new BufferedReader(new FileReader(file)); List<Double> vy = new ArrayList<Double>(); List<Feature[]> vx = new ArrayList<Feature[]>(); i...
public class class_name { @Override public void createCallableStatement(String sql) { if (!endpointConfiguration.isAutoCreateStatement()) { handleMessageAndCheckResponse(JdbcMessage.createCallableStatement(sql)); } } }
public class class_name { @Override public void createCallableStatement(String sql) { if (!endpointConfiguration.isAutoCreateStatement()) { handleMessageAndCheckResponse(JdbcMessage.createCallableStatement(sql)); // depends on control dependency: [if], data = [none] } } }
public class class_name { public Filter convert(Criterion criterionDto, List<AttributeDescriptor> schema) { FilterContext fc = new FilterContext(); fc.setSchema(schema); criterionDto.accept(this, fc); try { log.debug("Filter converted : " + ECQL.toCQL(fc.getFilter())); } catch (Exception e) { // ignore...
public class class_name { public Filter convert(Criterion criterionDto, List<AttributeDescriptor> schema) { FilterContext fc = new FilterContext(); fc.setSchema(schema); criterionDto.accept(this, fc); try { log.debug("Filter converted : " + ECQL.toCQL(fc.getFilter())); // depends on control dependency: [try...
public class class_name { public void setErrors(java.util.Collection<TableVersionError> errors) { if (errors == null) { this.errors = null; return; } this.errors = new java.util.ArrayList<TableVersionError>(errors); } }
public class class_name { public void setErrors(java.util.Collection<TableVersionError> errors) { if (errors == null) { this.errors = null; // depends on control dependency: [if], data = [none] return; // depends on control dependency: [if], data = [none] } this.errors ...
public class class_name { public static boolean handleAction(String strAction, Container target, Component source, int iOptions) { // First see if I can handle this action if (target instanceof JBasePanel) { // This is a panel, handle the action. if (((JBasePanel)target).doAct...
public class class_name { public static boolean handleAction(String strAction, Container target, Component source, int iOptions) { // First see if I can handle this action if (target instanceof JBasePanel) { // This is a panel, handle the action. if (((JBasePanel)target).doAct...
public class class_name { public List<T> nextCombinationAsList(List<T> destination) { generateNextCombinationIndices(); // Generate actual combination. destination.clear(); for (int i : combinationIndices) { destination.add(elements[i]); } return ...
public class class_name { public List<T> nextCombinationAsList(List<T> destination) { generateNextCombinationIndices(); // Generate actual combination. destination.clear(); for (int i : combinationIndices) { destination.add(elements[i]); // depends on control dep...
public class class_name { @SuppressWarnings("unused") // Public API public void removePositionUpdateListener(@NonNull PositionUpdateListener listener) { listeners.remove(listener); if (isReady()) { getToView().getPositionAnimator().removePositionUpdateListener(listener); } }...
public class class_name { @SuppressWarnings("unused") // Public API public void removePositionUpdateListener(@NonNull PositionUpdateListener listener) { listeners.remove(listener); if (isReady()) { getToView().getPositionAnimator().removePositionUpdateListener(listener); // depends on c...
public class class_name { public static int[] RGBtoHSV (float r, float g, float b) { float h, s, v; float min, max, delta; min = Math.min(Math.min(r, g), b); max = Math.max(Math.max(r, g), b); v = max; delta = max - min; if (max != 0) s = delta / max; else { s = 0; h = 0; return new int[...
public class class_name { public static int[] RGBtoHSV (float r, float g, float b) { float h, s, v; float min, max, delta; min = Math.min(Math.min(r, g), b); max = Math.max(Math.max(r, g), b); v = max; delta = max - min; if (max != 0) s = delta / max; else { s = 0; // depends on control depend...
public class class_name { public static String getDefaultValueForType( JType type ) { JPrimitiveType primitiveType = type.isPrimitive(); if ( null != primitiveType ) { return primitiveType.getUninitializedFieldExpression(); } return "null"; } }
public class class_name { public static String getDefaultValueForType( JType type ) { JPrimitiveType primitiveType = type.isPrimitive(); if ( null != primitiveType ) { return primitiveType.getUninitializedFieldExpression(); // depends on control dependency: [if], data = [none] } ...
public class class_name { public Map<String, String> split(final CharSequence source) { java.util.Objects.requireNonNull(source, "source"); Map<String, String> parameters = new HashMap<>(); Iterator<String> i = new StringIterator(source, pairSeparator); while (i.hasNext()) { String keyValue = i.n...
public class class_name { public Map<String, String> split(final CharSequence source) { java.util.Objects.requireNonNull(source, "source"); Map<String, String> parameters = new HashMap<>(); Iterator<String> i = new StringIterator(source, pairSeparator); while (i.hasNext()) { String keyValue = i.n...
public class class_name { static InputStream getCachedImageStream(URI url, Context context) { InputStream imageStream = null; if (url != null) { if (isCDNURL(url)) { try { FileLruCache cache = getCache(context); imageStream = cache.get...
public class class_name { static InputStream getCachedImageStream(URI url, Context context) { InputStream imageStream = null; if (url != null) { if (isCDNURL(url)) { try { FileLruCache cache = getCache(context); imageStream = cache.get...
public class class_name { public static String format(String pattern, Object... arguments) { String msg = pattern; if (arguments != null) { for (int index = 0; index < arguments.length; index++) { msg = msg.replaceAll("\\{" + (index + 1) + "\\}", String.valueOf(arguments[ind...
public class class_name { public static String format(String pattern, Object... arguments) { String msg = pattern; if (arguments != null) { for (int index = 0; index < arguments.length; index++) { msg = msg.replaceAll("\\{" + (index + 1) + "\\}", String.valueOf(arguments[ind...
public class class_name { protected void printHeaders(final StringBuilder sb, final long id, final String prefix, final MultivaluedMap<String, String> headers) { getSortedHeaders(headers.entrySet()).forEach(h -> { ...
public class class_name { protected void printHeaders(final StringBuilder sb, final long id, final String prefix, final MultivaluedMap<String, String> headers) { getSortedHeaders(headers.entrySet()).forEach(h -> { ...
public class class_name { public static String simpleObjectName(Object object) { if (object == null) { return "<null>"; } StringBuilder builder = new StringBuilder(); builder.append(simpleClassName(object.getClass())) .append('#') .append(objectId(obj...
public class class_name { public static String simpleObjectName(Object object) { if (object == null) { return "<null>"; // depends on control dependency: [if], data = [none] } StringBuilder builder = new StringBuilder(); builder.append(simpleClassName(object.getClass())) ...
public class class_name { public Enumeration getValues(String name,final String separators) { final Enumeration e = getValues(name); if (e==null) return null; return new Enumeration() { QuotedStringTokenizer tok=null; public boolean ha...
public class class_name { public Enumeration getValues(String name,final String separators) { final Enumeration e = getValues(name); if (e==null) return null; return new Enumeration() { QuotedStringTokenizer tok=null; public boolean ha...
public class class_name { public void setSchedules(java.util.Collection<Schedule> schedules) { if (schedules == null) { this.schedules = null; return; } this.schedules = new java.util.ArrayList<Schedule>(schedules); } }
public class class_name { public void setSchedules(java.util.Collection<Schedule> schedules) { if (schedules == null) { this.schedules = null; // depends on control dependency: [if], data = [none] return; // depends on control dependency: [if], data = [none] } this.sche...
public class class_name { public Observable<ServiceResponse<Page<SyncFullSchemaPropertiesInner>>> listMemberSchemasNextWithServiceResponseAsync(final String nextPageLink) { return listMemberSchemasNextSinglePageAsync(nextPageLink) .concatMap(new Func1<ServiceResponse<Page<SyncFullSchemaPropertiesIn...
public class class_name { public Observable<ServiceResponse<Page<SyncFullSchemaPropertiesInner>>> listMemberSchemasNextWithServiceResponseAsync(final String nextPageLink) { return listMemberSchemasNextSinglePageAsync(nextPageLink) .concatMap(new Func1<ServiceResponse<Page<SyncFullSchemaPropertiesIn...
public class class_name { @POST @Consumes("application/x.json-create-api-key") public Response createApiKey(CreateEmoApiKeyRequest request, @QueryParam("key") String key, @Authenticated Subject subject) { if (key != null) { request.setCustomRequestParameter(...
public class class_name { @POST @Consumes("application/x.json-create-api-key") public Response createApiKey(CreateEmoApiKeyRequest request, @QueryParam("key") String key, @Authenticated Subject subject) { if (key != null) { request.setCustomRequestParameter(...
public class class_name { public void dispose() { LOGGER.debug("dispose all Filters for FilterFactory {}...", factory.getClass().getName()); synchronized (filterCache) { if (maintainLifeCycle) { Collection<Filter> values = filterCache.values(); for (Filter fi...
public class class_name { public void dispose() { LOGGER.debug("dispose all Filters for FilterFactory {}...", factory.getClass().getName()); synchronized (filterCache) { if (maintainLifeCycle) { Collection<Filter> values = filterCache.values(); for (Filter fi...
public class class_name { static byte[] getCodecNameUTF8(String compressionCodecName) { byte[] codecNameBytes = CODEC_NAME_CACHE.get(compressionCodecName); if (codecNameBytes == null) { try { codecNameBytes = compressionCodecName.getBytes("UTF-8"); } catch (UnsupportedEncodingException e) {...
public class class_name { static byte[] getCodecNameUTF8(String compressionCodecName) { byte[] codecNameBytes = CODEC_NAME_CACHE.get(compressionCodecName); if (codecNameBytes == null) { try { codecNameBytes = compressionCodecName.getBytes("UTF-8"); // depends on control dependency: [try], data = ...
public class class_name { public CConfiguration read(Type type, String namespace) throws IOException { String tableName = getTableName(namespace); CConfiguration conf = null; HTable table = null; try { table = new HTable(hbaseConf, tableName); Get get = new Get(Bytes.toBytes(type.name()));...
public class class_name { public CConfiguration read(Type type, String namespace) throws IOException { String tableName = getTableName(namespace); CConfiguration conf = null; HTable table = null; try { table = new HTable(hbaseConf, tableName); Get get = new Get(Bytes.toBytes(type.name()));...
public class class_name { @SuppressWarnings("unchecked") private static void pinValueChangeCallback(int pin, double value) { Vector<AnalogInputListener> listenersClone; listenersClone = (Vector<AnalogInputListener>) listeners.clone(); for (int i = 0; i < listenersClone.size(); i++) { ...
public class class_name { @SuppressWarnings("unchecked") private static void pinValueChangeCallback(int pin, double value) { Vector<AnalogInputListener> listenersClone; listenersClone = (Vector<AnalogInputListener>) listeners.clone(); for (int i = 0; i < listenersClone.size(); i++) { ...
public class class_name { @Override public boolean validate(final Problems problems, final String compName, final String model) { try { Integer.parseInt(model); } catch (final NumberFormatException e) { problems.add(ValidationBundle.getMessage(IsAnIntegerValidator.class, "ERR_NOT_INTEGER", model)); // NOI18...
public class class_name { @Override public boolean validate(final Problems problems, final String compName, final String model) { try { Integer.parseInt(model); // depends on control dependency: [try], data = [none] } catch (final NumberFormatException e) { problems.add(ValidationBundle.getMessage(IsAnInteg...
public class class_name { @Override public BufferedImage drawUnindexedTile(int tileWidth, int tileHeight, long totalFeatureCount, FeatureResultSet allFeatureResults) { BufferedImage image = null; if (drawUnindexedTiles) { // Draw a tile indicating we have no idea if there are features // inside. // ...
public class class_name { @Override public BufferedImage drawUnindexedTile(int tileWidth, int tileHeight, long totalFeatureCount, FeatureResultSet allFeatureResults) { BufferedImage image = null; if (drawUnindexedTiles) { // Draw a tile indicating we have no idea if there are features // inside. // ...
public class class_name { private void resetDefaultBorders() { try { // Etched Borders Field highLightColor = EtchedBorder.class.getDeclaredField("highlight"); highLightColor.setAccessible(true); Field shadowcolor = EtchedBorder.class.getDeclaredField("shadow"); ...
public class class_name { private void resetDefaultBorders() { try { // Etched Borders Field highLightColor = EtchedBorder.class.getDeclaredField("highlight"); highLightColor.setAccessible(true); // depends on control dependency: [try], data = [none] Field shadow...
public class class_name { private boolean robustFitTrifocal(List<AssociatedTriple> associated) { // Fit a trifocal tensor to the observations robustly ransac.process(associated); inliers = ransac.getMatchSet(); TrifocalTensor model = ransac.getModelParameters(); if( verbose != null ) verbose.println("Rem...
public class class_name { private boolean robustFitTrifocal(List<AssociatedTriple> associated) { // Fit a trifocal tensor to the observations robustly ransac.process(associated); inliers = ransac.getMatchSet(); TrifocalTensor model = ransac.getModelParameters(); if( verbose != null ) verbose.println("Rem...
public class class_name { public Label newLabelFromString(String labelStr) { int first = labelStr.indexOf(divider); int second = labelStr.lastIndexOf(divider); if (first == second) { return new WordLemmaTag(labelStr.substring(0, first), Morphology.stemStatic(labelStr.substring(0, first), labelStr...
public class class_name { public Label newLabelFromString(String labelStr) { int first = labelStr.indexOf(divider); int second = labelStr.lastIndexOf(divider); if (first == second) { return new WordLemmaTag(labelStr.substring(0, first), Morphology.stemStatic(labelStr.substring(0, first), labelStr...
public class class_name { public void configureForSubprocessGobbler(Props props, String logPattern) { if (isAllLogsToConsoleEnabled(props)) { LoggerContext ctx = getRootContext(); ctx.getLogger(ROOT_LOGGER_NAME).addAppender(newConsoleAppender(ctx, "root_console", logPattern)); } } }
public class class_name { public void configureForSubprocessGobbler(Props props, String logPattern) { if (isAllLogsToConsoleEnabled(props)) { LoggerContext ctx = getRootContext(); ctx.getLogger(ROOT_LOGGER_NAME).addAppender(newConsoleAppender(ctx, "root_console", logPattern)); // depends on control dep...
public class class_name { @Override public Exception getLinkedException() { //return (Exception) getCause(); Throwable t = getCause(); while (t != null) { if (t instanceof Exception) { return (Exception) t; } else { t = t.getCause(); ...
public class class_name { @Override public Exception getLinkedException() { //return (Exception) getCause(); Throwable t = getCause(); while (t != null) { if (t instanceof Exception) { return (Exception) t; // depends on control dependency: [if], data = [none] ...
public class class_name { public Filters withKeyUsage(String... keyUsage) { if (this.keyUsage == null) { setKeyUsage(new java.util.ArrayList<String>(keyUsage.length)); } for (String ele : keyUsage) { this.keyUsage.add(ele); } return this; } }
public class class_name { public Filters withKeyUsage(String... keyUsage) { if (this.keyUsage == null) { setKeyUsage(new java.util.ArrayList<String>(keyUsage.length)); // depends on control dependency: [if], data = [none] } for (String ele : keyUsage) { this.keyUsage.add...
public class class_name { public ConstraintValidatorFactory getConstraintValidatorFactoryOverride(Configuration<?> config) { ValidationReleasable<ConstraintValidatorFactory> releasable = null; String cvfClassName = config.getBootstrapConfiguration().getConstraintValidatorFactoryClassName(); //...
public class class_name { public ConstraintValidatorFactory getConstraintValidatorFactoryOverride(Configuration<?> config) { ValidationReleasable<ConstraintValidatorFactory> releasable = null; String cvfClassName = config.getBootstrapConfiguration().getConstraintValidatorFactoryClassName(); //...
public class class_name { private LocalThreadObjectPool getThreadLocalObjectPool() { if (threadPoolSize <= 0) { // no local thread pool needed. return null; } LocalThreadObjectPool localPool = null; if (threadLocals != null) { localPool = threadLocals...
public class class_name { private LocalThreadObjectPool getThreadLocalObjectPool() { if (threadPoolSize <= 0) { // no local thread pool needed. return null; // depends on control dependency: [if], data = [none] } LocalThreadObjectPool localPool = null; if (thread...
public class class_name { public static String getName(String pathAndName) { int i = pathAndName.lastIndexOf('/'); int l = pathAndName.length(); if (i == -1) { return pathAndName; } else if (l == i) { return "/"; } else { return pathAndName.su...
public class class_name { public static String getName(String pathAndName) { int i = pathAndName.lastIndexOf('/'); int l = pathAndName.length(); if (i == -1) { return pathAndName; // depends on control dependency: [if], data = [none] } else if (l == i) { return "...
public class class_name { public static String checkPermitted(String sql) { /* * IMPORTANT: Black-lists are checked first because they know more about * what they don't like about a statement and can provide a better message. * It requires that black-lists patterns be very selec...
public class class_name { public static String checkPermitted(String sql) { /* * IMPORTANT: Black-lists are checked first because they know more about * what they don't like about a statement and can provide a better message. * It requires that black-lists patterns be very selec...
public class class_name { public void init() { LOG.info("Scanning esjps for REST implementations"); try { if (!Context.isThreadActive()) { Context.begin(null, Context.Inheritance.Local); Context.getThreadContext().setRequestAttribute(CONTEXTHINT, true); ...
public class class_name { public void init() { LOG.info("Scanning esjps for REST implementations"); try { if (!Context.isThreadActive()) { Context.begin(null, Context.Inheritance.Local); // depends on control dependency: [if], data = [none] Context.getThr...
public class class_name { @Override public void redraw() { if (!isDrawn()) { draw(); } else { try { beforeLoad(); beforeDataSetLookup(); dataSetHandler.lookupDataSet(new DataSetReadyCallback() { public void ...
public class class_name { @Override public void redraw() { if (!isDrawn()) { draw(); // depends on control dependency: [if], data = [none] } else { try { beforeLoad(); // depends on control dependency: [try], data = [none] beforeDataSetLookup(...
public class class_name { private void ensureInitialized() { if (!mInitialized) { lock.lock(); try { if (!mInitialized) { mInternalPath = Environment.getDataDirectory(); mExternalPath = Environment.getExternalStorageDirectory(); updateStats(); mInitialized...
public class class_name { private void ensureInitialized() { if (!mInitialized) { lock.lock(); // depends on control dependency: [if], data = [none] try { if (!mInitialized) { mInternalPath = Environment.getDataDirectory(); // depends on control dependency: [if], data = [none] ...
public class class_name { public String getEditURI() { for (int i = 0; i < getOtherLinks().size(); i++) { final Link link = getOtherLinks().get(i); if (link.getRel() != null && link.getRel().equals("edit")) { return link.getHrefResolved(); } } ...
public class class_name { public String getEditURI() { for (int i = 0; i < getOtherLinks().size(); i++) { final Link link = getOtherLinks().get(i); if (link.getRel() != null && link.getRel().equals("edit")) { return link.getHrefResolved(); // depends on control dependenc...
public class class_name { public static Long getLong(final LdapEntry entry, final String attribute, final Long nullValue) { val v = getString(entry, attribute, nullValue.toString()); if (NumberUtils.isCreatable(v)) { return Long.valueOf(v); } return nullValue; } }
public class class_name { public static Long getLong(final LdapEntry entry, final String attribute, final Long nullValue) { val v = getString(entry, attribute, nullValue.toString()); if (NumberUtils.isCreatable(v)) { return Long.valueOf(v); // depends on control dependency: [if], data = [no...
public class class_name { private static void setIncomeBudgetPeriods(PHS398Checklist13 phsChecklist, List<? extends BudgetProjectIncomeContract> projectIncomes) { if (projectIncomes.isEmpty()) { phsChecklist.setProgramIncome(YesNoDataType.N_NO); } else { phsChecklist.setProgramIncome(YesNoDataT...
public class class_name { private static void setIncomeBudgetPeriods(PHS398Checklist13 phsChecklist, List<? extends BudgetProjectIncomeContract> projectIncomes) { if (projectIncomes.isEmpty()) { phsChecklist.setProgramIncome(YesNoDataType.N_NO); // depends on control dependency: [if], data = [none] ...
public class class_name { public void marshall(DeleteResourceDefinitionRequest deleteResourceDefinitionRequest, ProtocolMarshaller protocolMarshaller) { if (deleteResourceDefinitionRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try {...
public class class_name { public void marshall(DeleteResourceDefinitionRequest deleteResourceDefinitionRequest, ProtocolMarshaller protocolMarshaller) { if (deleteResourceDefinitionRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try {...
public class class_name { public static SerializableException deserializeFromBuffer(ByteBuffer b) { final int length = b.getInt(); if (length == 0) { return null; } final int ordinal = b.get(); assert (ordinal != SerializableExceptions.None.ordinal()); return...
public class class_name { public static SerializableException deserializeFromBuffer(ByteBuffer b) { final int length = b.getInt(); if (length == 0) { return null; // depends on control dependency: [if], data = [none] } final int ordinal = b.get(); assert (ordinal != ...
public class class_name { @Override public Content getPackageHeader(String heading) { HtmlTree bodyTree = getBody(true, getWindowTitle(utils.getPackageName(packageElement))); HtmlTree htmlTree = (configuration.allowTag(HtmlTag.HEADER)) ? HtmlTree.HEADER() : bodyTree;...
public class class_name { @Override public Content getPackageHeader(String heading) { HtmlTree bodyTree = getBody(true, getWindowTitle(utils.getPackageName(packageElement))); HtmlTree htmlTree = (configuration.allowTag(HtmlTag.HEADER)) ? HtmlTree.HEADER() : bodyTree;...
public class class_name { private boolean htmlSentenceTerminatorFound(String str, int index) { for (int i = 0; i < sentenceTerminators.length; i++) { String terminator = sentenceTerminators[i]; if (str.regionMatches(true, index, terminator, 0, terminato...
public class class_name { private boolean htmlSentenceTerminatorFound(String str, int index) { for (int i = 0; i < sentenceTerminators.length; i++) { String terminator = sentenceTerminators[i]; if (str.regionMatches(true, index, terminator, 0, terminato...
public class class_name { private List<ClassNameWrapper> getLocalClassNames (String packageName) { if (packageName == null || packageName.equals("")) { return Collections.emptyList(); } String folder = packageName.replace('.', '/'); URL local = AddOnLoad...
public class class_name { private List<ClassNameWrapper> getLocalClassNames (String packageName) { if (packageName == null || packageName.equals("")) { return Collections.emptyList(); // depends on control dependency: [if], data = [none] } String folder = package...
public class class_name { public void marshall(DescribePipelineRequest describePipelineRequest, ProtocolMarshaller protocolMarshaller) { if (describePipelineRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMar...
public class class_name { public void marshall(DescribePipelineRequest describePipelineRequest, ProtocolMarshaller protocolMarshaller) { if (describePipelineRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMar...
public class class_name { private Map<String, StatsSnapshot> getStatsSnapshots(boolean isReceived) { SortedMap<String, StatsSnapshot> map = Maps.newTreeMap(); // Sorted by method name. if (isReceived) { getStatsSnapshots(map, SERVER_RPC_CUMULATIVE_VIEWS); getStatsSnapshots(map, SERVER_RPC_MINUTE_VI...
public class class_name { private Map<String, StatsSnapshot> getStatsSnapshots(boolean isReceived) { SortedMap<String, StatsSnapshot> map = Maps.newTreeMap(); // Sorted by method name. if (isReceived) { getStatsSnapshots(map, SERVER_RPC_CUMULATIVE_VIEWS); // depends on control dependency: [if], data = [n...
public class class_name { private static boolean isClosest(long ts, long[] timeStamps, int curIdx) { if (curIdx >= (timeStamps.length - 1)) { // curIdx is the last one so it must be the closest return true; } if (ts == timeStamps[curIdx]) { return true; } r...
public class class_name { private static boolean isClosest(long ts, long[] timeStamps, int curIdx) { if (curIdx >= (timeStamps.length - 1)) { // curIdx is the last one so it must be the closest return true; // depends on control dependency: [if], data = [none] } if (ts == timeSta...
public class class_name { private CmsUUID readOptionalUUID(JSONValue val) { String id = readOptionalString(val); if (null != id) { try { CmsUUID uuid = CmsUUID.valueOf(id); return uuid; } catch (@SuppressWarnings("unused") NumberFormatException e...
public class class_name { private CmsUUID readOptionalUUID(JSONValue val) { String id = readOptionalString(val); if (null != id) { try { CmsUUID uuid = CmsUUID.valueOf(id); return uuid; // depends on control dependency: [try], data = [none] } cat...
public class class_name { public final String getTags(final Priority priority) { if (priority == Priority.HIGH) { return high; } else if (priority == Priority.NORMAL) { return normal; } else { return low; } } }
public class class_name { public final String getTags(final Priority priority) { if (priority == Priority.HIGH) { return high; // depends on control dependency: [if], data = [none] } else if (priority == Priority.NORMAL) { return normal; // depends on control dependency:...
public class class_name { public static byte[] stringToUid(final String uid, final short uid_length) { if (uid == null || uid.isEmpty()) { throw new IllegalArgumentException("UID was empty"); } String id = uid; if (uid_length > 0) { while (id.length() < uid_length * 2) { id = "0" + ...
public class class_name { public static byte[] stringToUid(final String uid, final short uid_length) { if (uid == null || uid.isEmpty()) { throw new IllegalArgumentException("UID was empty"); } String id = uid; if (uid_length > 0) { while (id.length() < uid_length * 2) { id = "0" + ...
public class class_name { public void marshall(CoreDefinitionVersion coreDefinitionVersion, ProtocolMarshaller protocolMarshaller) { if (coreDefinitionVersion == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshalle...
public class class_name { public void marshall(CoreDefinitionVersion coreDefinitionVersion, ProtocolMarshaller protocolMarshaller) { if (coreDefinitionVersion == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshalle...
public class class_name { @Override public Tuple getNext() throws IOException { LzoW3CLogRecordReader w3CLogRecordReader = (LzoW3CLogRecordReader) reader; if (w3CLogRecordReader == null) { return null; } MapWritable value_; try { if (w3CLogRecordReader.nextKeyValue() && (val...
public class class_name { @Override public Tuple getNext() throws IOException { LzoW3CLogRecordReader w3CLogRecordReader = (LzoW3CLogRecordReader) reader; if (w3CLogRecordReader == null) { return null; } MapWritable value_; try { if (w3CLogRecordReader.nextKeyValue() && (val...
public class class_name { private boolean isInDoNotEngageZone(final int x, final int y) { for (final Rectangle zone : doNotEnganeZones) { if (zone.contains(x, y)) { return true; } } return false; } }
public class class_name { private boolean isInDoNotEngageZone(final int x, final int y) { for (final Rectangle zone : doNotEnganeZones) { if (zone.contains(x, y)) { return true; // depends on control dependency: [if], data = [none] } } return false; } }
public class class_name { public Path downloadIfNecessary( String version, Log log, boolean requiresAppEngineComponents, boolean offline) { ManagedCloudSdk managedCloudSdk = managedCloudSdkFactory.apply(version); if (offline) { // in offline mode, don't download anything return managedCloudSdk.getS...
public class class_name { public Path downloadIfNecessary( String version, Log log, boolean requiresAppEngineComponents, boolean offline) { ManagedCloudSdk managedCloudSdk = managedCloudSdkFactory.apply(version); if (offline) { // in offline mode, don't download anything return managedCloudSdk.getS...
public class class_name { public void bindNamespaceUri(String prefix, String namespaceUri) { Assert.notNull(prefix, "No prefix given"); Assert.notNull(namespaceUri, "No namespaceUri given"); if (XMLConstants.DEFAULT_NS_PREFIX.equals(prefix)) { defaultNamespaceUri = namespaceUri; ...
public class class_name { public void bindNamespaceUri(String prefix, String namespaceUri) { Assert.notNull(prefix, "No prefix given"); Assert.notNull(namespaceUri, "No namespaceUri given"); if (XMLConstants.DEFAULT_NS_PREFIX.equals(prefix)) { defaultNamespaceUri = namespaceUri; // ...
public class class_name { public String confusionToString() { int nClasses = confusion().getClasses().size(); //First: work out the longest label size int maxLabelSize = 0; for (String s : labelsList) { maxLabelSize = Math.max(maxLabelSize, s.length()); } /...
public class class_name { public String confusionToString() { int nClasses = confusion().getClasses().size(); //First: work out the longest label size int maxLabelSize = 0; for (String s : labelsList) { maxLabelSize = Math.max(maxLabelSize, s.length()); // depends on contro...
public class class_name { @Override public <Instance> boolean isInstance(Instance instance) { if (instance instanceof CompositeObject) { Object delegate = ((CompositeObject) instance).getDelegate(); return isDatastoreType(delegate); } return false; } }
public class class_name { @Override public <Instance> boolean isInstance(Instance instance) { if (instance instanceof CompositeObject) { Object delegate = ((CompositeObject) instance).getDelegate(); return isDatastoreType(delegate); // depends on control dependency: [if], data = [no...
public class class_name { private void secureCookie(Cookie cookie, HttpServletRequest request){ // if we can mark the cookie HTTP only, do so to protect this cookie even in case of XSS vulnerability. if (SET_HTTP_ONLY!=null) { try { SET_HTTP_ONLY.invoke(cookie,true); ...
public class class_name { private void secureCookie(Cookie cookie, HttpServletRequest request){ // if we can mark the cookie HTTP only, do so to protect this cookie even in case of XSS vulnerability. if (SET_HTTP_ONLY!=null) { try { SET_HTTP_ONLY.invoke(cookie,true); // depe...
public class class_name { public static void runExample(AdManagerServices adManagerServices, AdManagerSession session) throws RemoteException { // Get the PlacementService. PlacementServiceInterface placementService = adManagerServices.get(session, PlacementServiceInterface.class); // Get al...
public class class_name { public static void runExample(AdManagerServices adManagerServices, AdManagerSession session) throws RemoteException { // Get the PlacementService. PlacementServiceInterface placementService = adManagerServices.get(session, PlacementServiceInterface.class); // Get al...
public class class_name { public static void load(Context cx, Scriptable thisObj, Object[] args, Function funObj) { for (Object arg : args) { String file = Context.toString(arg); try { Main.processFile(cx, thisObj, file); } cat...
public class class_name { public static void load(Context cx, Scriptable thisObj, Object[] args, Function funObj) { for (Object arg : args) { String file = Context.toString(arg); try { Main.processFile(cx, thisObj, file); // depends on con...
public class class_name { private void handleBatchUpdateException( Collection<Record> failedRecords, SQLException e, List<OnRecordErrorException> errorRecords ) throws StageException { if (jdbcUtil.isDataError(getCustomDataSqlStateCodes(), getConnectionString(), e)) { String formattedError = JdbcErro...
public class class_name { private void handleBatchUpdateException( Collection<Record> failedRecords, SQLException e, List<OnRecordErrorException> errorRecords ) throws StageException { if (jdbcUtil.isDataError(getCustomDataSqlStateCodes(), getConnectionString(), e)) { String formattedError = JdbcErro...
public class class_name { public void applyPattern(String pattern) { this.pattern = pattern; if (msgPattern == null) { msgPattern = new MessagePattern(); } try { msgPattern.parseSelectStyle(pattern); } catch(RuntimeException e) { reset(); ...
public class class_name { public void applyPattern(String pattern) { this.pattern = pattern; if (msgPattern == null) { msgPattern = new MessagePattern(); // depends on control dependency: [if], data = [none] } try { msgPattern.parseSelectStyle(pattern); // depend...
public class class_name { protected void updatePacketListener() { removeAsyncPacketListener(); LOGGER.fine("UpdatePacketListener"); packetListener = new StanzaListener() { @Override public void processStanza(Stanza packet) { try { re...
public class class_name { protected void updatePacketListener() { removeAsyncPacketListener(); LOGGER.fine("UpdatePacketListener"); packetListener = new StanzaListener() { @Override public void processStanza(Stanza packet) { try { re...
public class class_name { public void marshall(BatchListObjectChildrenResponse batchListObjectChildrenResponse, ProtocolMarshaller protocolMarshaller) { if (batchListObjectChildrenResponse == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try {...
public class class_name { public void marshall(BatchListObjectChildrenResponse batchListObjectChildrenResponse, ProtocolMarshaller protocolMarshaller) { if (batchListObjectChildrenResponse == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try {...
public class class_name { @Deprecated public static ParagraphVectors readParagraphVectorsFromText(@NonNull InputStream stream) { try { BufferedReader reader = new BufferedReader(new InputStreamReader(stream, StandardCharsets.UTF_8)); ArrayList<String> labels = new ArrayList<>(); ...
public class class_name { @Deprecated public static ParagraphVectors readParagraphVectorsFromText(@NonNull InputStream stream) { try { BufferedReader reader = new BufferedReader(new InputStreamReader(stream, StandardCharsets.UTF_8)); ArrayList<String> labels = new ArrayList<>(); ...
public class class_name { public void initFromSetupBean(String webapp) { String db = m_setupBean.getDatabase(); CmsSetupBean bean = m_setupBean; Map<String, String[]> params = new HashMap<>(); m_setupPanel.setVisible(true); switch (db) { case "mysql": ca...
public class class_name { public void initFromSetupBean(String webapp) { String db = m_setupBean.getDatabase(); CmsSetupBean bean = m_setupBean; Map<String, String[]> params = new HashMap<>(); m_setupPanel.setVisible(true); switch (db) { case "mysql": ca...
public class class_name { protected final Section getSection (int x, int y, boolean create) { int key = key(x, y); Section sect = _sections.get(key); if (sect == null && create) { short sx = (short)(MathUtil.floorDiv(x, swidth)*swidth); short sy = (short)(MathUtil.fl...
public class class_name { protected final Section getSection (int x, int y, boolean create) { int key = key(x, y); Section sect = _sections.get(key); if (sect == null && create) { short sx = (short)(MathUtil.floorDiv(x, swidth)*swidth); short sy = (short)(MathUtil.fl...
public class class_name { private State reservePermissions(final RateLimiterConfig config, final long timeoutInNanos, final long cycle, final int permissions, final long nanosToWait) { boolean canAcquireInTime = timeoutInNanos >= nanosToWait; int permissionsWithRese...
public class class_name { private State reservePermissions(final RateLimiterConfig config, final long timeoutInNanos, final long cycle, final int permissions, final long nanosToWait) { boolean canAcquireInTime = timeoutInNanos >= nanosToWait; int permissionsWithRese...
public class class_name { public static Throwable getRootCause(Throwable t) { if (t == null) { return null; } while (t.getCause() != null) { t = t.getCause(); } return t; } }
public class class_name { public static Throwable getRootCause(Throwable t) { if (t == null) { return null; // depends on control dependency: [if], data = [none] } while (t.getCause() != null) { t = t.getCause(); // depends on control dependency: [while], data = [none] ...
public class class_name { public static void startSplashScreen() { int width=275,height=148; Window win=new Window( new Frame() ); win.pack(); BshCanvas can=new BshCanvas(); can.setSize( width, height ); // why is this necessary? Toolkit tk=Toolkit.getDefaultToolkit(...
public class class_name { public static void startSplashScreen() { int width=275,height=148; Window win=new Window( new Frame() ); win.pack(); BshCanvas can=new BshCanvas(); can.setSize( width, height ); // why is this necessary? Toolkit tk=Toolkit.getDefaultToolkit(...
public class class_name { private CouchbaseResponse handleBucketStreamingResponse(final ChannelHandlerContext ctx, final HttpResponse header) { SocketAddress addr = ctx.channel().remoteAddress(); String host = addr instanceof InetSocketAddress ? ((InetSocketAddress) addr).getAddress().getHostAd...
public class class_name { private CouchbaseResponse handleBucketStreamingResponse(final ChannelHandlerContext ctx, final HttpResponse header) { SocketAddress addr = ctx.channel().remoteAddress(); String host = addr instanceof InetSocketAddress ? ((InetSocketAddress) addr).getAddress().getHostAd...
public class class_name { private int getDegreesFromCoords(float pointX, float pointY, boolean forceLegal, final Boolean[] isInnerCircle) { int currentItem = getCurrentItemShowing(); if (currentItem == HOUR_INDEX) { return mHourRadialSelectorView.getDegr...
public class class_name { private int getDegreesFromCoords(float pointX, float pointY, boolean forceLegal, final Boolean[] isInnerCircle) { int currentItem = getCurrentItemShowing(); if (currentItem == HOUR_INDEX) { return mHourRadialSelectorView.getDegr...
public class class_name { public Annotation[] getRuntimeInvisibleAnnotations() { for (int i = mAttributes.size(); --i >= 0; ) { Attribute attr = mAttributes.get(i); if (attr instanceof RuntimeInvisibleAnnotationsAttr) { return ((AnnotationsAttr) attr).getAnnotations(); ...
public class class_name { public Annotation[] getRuntimeInvisibleAnnotations() { for (int i = mAttributes.size(); --i >= 0; ) { Attribute attr = mAttributes.get(i); if (attr instanceof RuntimeInvisibleAnnotationsAttr) { return ((AnnotationsAttr) attr).getAnnotations(); /...
public class class_name { private void compilePattern() throws ParseException { StringBuilder sb = new StringBuilder(); boolean escaped = false; final List<GlobPattern> patterns = new ArrayList<>(); for (int a = 0; a < _patternSource.length(); a++) { final char c = _patternS...
public class class_name { private void compilePattern() throws ParseException { StringBuilder sb = new StringBuilder(); boolean escaped = false; final List<GlobPattern> patterns = new ArrayList<>(); for (int a = 0; a < _patternSource.length(); a++) { final char c = _patternS...
public class class_name { public final synchronized Date evalDateBalanceStoreStart( final Map<String, Object> pAddParam) throws Exception { Date dateBalanceStoreStart = lazyGetBalanceAtAllDirtyCheck(pAddParam) .getDateBalanceStoreStart(); Date leastAccountingEntryDate = this.balanceAtAllDirtyCheck ...
public class class_name { public final synchronized Date evalDateBalanceStoreStart( final Map<String, Object> pAddParam) throws Exception { Date dateBalanceStoreStart = lazyGetBalanceAtAllDirtyCheck(pAddParam) .getDateBalanceStoreStart(); Date leastAccountingEntryDate = this.balanceAtAllDirtyCheck ...
public class class_name { private Map<String, InputColumn<?>> readSourceColumns(final SourceColumnMapping sourceColumnMapping, final AnalysisJobBuilder analysisJobBuilder, final SourceType source) { final Map<String, InputColumn<?>> inputColumns = new HashMap<>(); final ColumnsType columnsT...
public class class_name { private Map<String, InputColumn<?>> readSourceColumns(final SourceColumnMapping sourceColumnMapping, final AnalysisJobBuilder analysisJobBuilder, final SourceType source) { final Map<String, InputColumn<?>> inputColumns = new HashMap<>(); final ColumnsType columnsT...
public class class_name { public String getWorkerMemParameter(LocalAssignment assignment, Map totalConf, String topologyId, Integer port) { long memSize = assignment.getMem(); long me...
public class class_name { public String getWorkerMemParameter(LocalAssignment assignment, Map totalConf, String topologyId, Integer port) { long memSize = assignment.getMem(); long me...
public class class_name { AtomSymbol generatePeriodicSymbol(final int number, final int hydrogens, final int mass, final int charge, final int unpaired, HydrogenPosition position) { TextOutline element = number == 0 ? new TextOutline("*", font) ...
public class class_name { AtomSymbol generatePeriodicSymbol(final int number, final int hydrogens, final int mass, final int charge, final int unpaired, HydrogenPosition position) { TextOutline element = number == 0 ? new TextOutline("*", font) ...
public class class_name { @Override public DescriptorValue calculate(IBond aBond, IAtomContainer atomContainer) { IAtomContainer ac; IBond bond; try { ac = (IAtomContainer) atomContainer.clone(); bond = ac.getBond(atomContainer.indexOf(aBond)); AtomConta...
public class class_name { @Override public DescriptorValue calculate(IBond aBond, IAtomContainer atomContainer) { IAtomContainer ac; IBond bond; try { ac = (IAtomContainer) atomContainer.clone(); // depends on control dependency: [try], data = [none] bond = ac.getBo...
public class class_name { public Observable<ServiceResponse<ResourceGroupExportResultInner>> exportTemplateWithServiceResponseAsync(String resourceGroupName, ExportTemplateRequest parameters) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is requi...
public class class_name { public Observable<ServiceResponse<ResourceGroupExportResultInner>> exportTemplateWithServiceResponseAsync(String resourceGroupName, ExportTemplateRequest parameters) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is requi...
public class class_name { public Producer<CloseableReference<PooledByteBuffer>> getNetworkFetchEncodedImageProducerSequence() { synchronized (this) { if (FrescoSystrace.isTracing()) { FrescoSystrace.beginSection( "ProducerSequenceFactory#getNetworkFetchEncodedImageProducerSequence"); ...
public class class_name { public Producer<CloseableReference<PooledByteBuffer>> getNetworkFetchEncodedImageProducerSequence() { synchronized (this) { if (FrescoSystrace.isTracing()) { FrescoSystrace.beginSection( "ProducerSequenceFactory#getNetworkFetchEncodedImageProducerSequence"); //...
public class class_name { @Override public void beginList(WikiParameters params, boolean ordered) { if (ordered) { listOrdering.push(ListOrdering.ORDERED); } else { listOrdering.push(ListOrdering.UNORDERED); } if (listItemWritten) { // new line for each n...
public class class_name { @Override public void beginList(WikiParameters params, boolean ordered) { if (ordered) { listOrdering.push(ListOrdering.ORDERED); // depends on control dependency: [if], data = [none] } else { listOrdering.push(ListOrdering.UNORDERED); // depend...
public class class_name { public java.util.List<RecordPatch> getRecordPatches() { if (recordPatches == null) { recordPatches = new com.amazonaws.internal.SdkInternalList<RecordPatch>(); } return recordPatches; } }
public class class_name { public java.util.List<RecordPatch> getRecordPatches() { if (recordPatches == null) { recordPatches = new com.amazonaws.internal.SdkInternalList<RecordPatch>(); // depends on control dependency: [if], data = [none] } return recordPatches; } }
public class class_name { @Override public void register(Builder.Registry registry) { registry.add(new AzureAdTokenFactory()); registry.add(MediaContract.class, MediaExceptionProcessor.class); registry.add(MediaRestProxy.class); registry.add(OAuthFilter.class); registry.add...
public class class_name { @Override public void register(Builder.Registry registry) { registry.add(new AzureAdTokenFactory()); registry.add(MediaContract.class, MediaExceptionProcessor.class); registry.add(MediaRestProxy.class); registry.add(OAuthFilter.class); registry.add...
public class class_name { protected Content getNavSummaryLink(TypeElement typeElement, boolean link) { if (link) { return writer.getHyperLink( SectionName.ANNOTATION_TYPE_FIELD_SUMMARY, contents.navField); } else { return contents.navField...
public class class_name { protected Content getNavSummaryLink(TypeElement typeElement, boolean link) { if (link) { return writer.getHyperLink( SectionName.ANNOTATION_TYPE_FIELD_SUMMARY, contents.navField); // depends on control dependency: [if], data = [none]...
public class class_name { public void marshall(ListBulkDeploymentsRequest listBulkDeploymentsRequest, ProtocolMarshaller protocolMarshaller) { if (listBulkDeploymentsRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { pr...
public class class_name { public void marshall(ListBulkDeploymentsRequest listBulkDeploymentsRequest, ProtocolMarshaller protocolMarshaller) { if (listBulkDeploymentsRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { pr...
public class class_name { private void jobBizLog(JobPo jobPo, BizLogCode code) { if (jobPo == null) { return; } try { // 记录日志 JobLogPo jobLogPo = JobDomainConverter.convertJobLog(jobPo); jobLogPo.setSuccess(true); jobLogPo.setLogType(...
public class class_name { private void jobBizLog(JobPo jobPo, BizLogCode code) { if (jobPo == null) { return; // depends on control dependency: [if], data = [none] } try { // 记录日志 JobLogPo jobLogPo = JobDomainConverter.convertJobLog(jobPo); jobLo...
public class class_name { public static void popPreferredClassLoader() { final ClassLoader sysLoader = ClassLoaderFinder.class.getClassLoader(); if ((dynamicLoader == null) || (dynamicLoader == sysLoader)) { dynamicLoader = null; final Thread[] threads = new Thread[Thread.activeCount()]; Thread.enumerate...
public class class_name { public static void popPreferredClassLoader() { final ClassLoader sysLoader = ClassLoaderFinder.class.getClassLoader(); if ((dynamicLoader == null) || (dynamicLoader == sysLoader)) { dynamicLoader = null; // depends on control dependency: [if], data = [none] final Thread[] threads =...
public class class_name { public boolean continueAfterUnprotectedURI(WebRequest webRequest) { if (taiServiceRef.getService() != null) { TAIService taiService = taiServiceRef.getService(); if (!taiService.isContinueAfterUnprotectedURI() && taiService.isInvokeForUnprotectedURI() && webRe...
public class class_name { public boolean continueAfterUnprotectedURI(WebRequest webRequest) { if (taiServiceRef.getService() != null) { TAIService taiService = taiServiceRef.getService(); if (!taiService.isContinueAfterUnprotectedURI() && taiService.isInvokeForUnprotectedURI() && webRe...
public class class_name { private void doResource(HttpServletRequest req, HttpServletResponse resp) throws IOException { boolean success = true; String resource = (String) req.getParameter("id"); if (!isEmpty(resource)) { if (resource.endsWith(".js")) { resp.setContentType("text/j...
public class class_name { private void doResource(HttpServletRequest req, HttpServletResponse resp) throws IOException { boolean success = true; String resource = (String) req.getParameter("id"); if (!isEmpty(resource)) { if (resource.endsWith(".js")) { resp.setContentType("text/j...
public class class_name { public StringBuilder onWhereClause(StringBuilder builder, Class fieldClazz, String field, Object value, String clause, boolean useToken) { if (clause.trim().equals(IN_CLAUSE)) { useToken = false; } builder = ensureCase(builder, fie...
public class class_name { public StringBuilder onWhereClause(StringBuilder builder, Class fieldClazz, String field, Object value, String clause, boolean useToken) { if (clause.trim().equals(IN_CLAUSE)) { useToken = false; // depends on control dependency: [if], data = [none...
public class class_name { private Set<RelationshipTuple> getRels(String relsDatastreamName) { List<Datastream> relsDatastreamVersions = m_datastreams.get(relsDatastreamName); if (relsDatastreamVersions == null || relsDatastreamVersions.size() == 0) { return new HashSet<RelationshipTuple>()...
public class class_name { private Set<RelationshipTuple> getRels(String relsDatastreamName) { List<Datastream> relsDatastreamVersions = m_datastreams.get(relsDatastreamName); if (relsDatastreamVersions == null || relsDatastreamVersions.size() == 0) { return new HashSet<RelationshipTuple>()...