code
stringlengths
130
281k
code_dependency
stringlengths
182
306k
public class class_name { @JsonIgnore public String getEncryptionCertificateDecoded() { if (EncodingUtils.isBase64(encryptionCertificate)) { return EncodingUtils.decodeBase64ToString(encryptionCertificate); } return encryptionCertificate; } }
public class class_name { @JsonIgnore public String getEncryptionCertificateDecoded() { if (EncodingUtils.isBase64(encryptionCertificate)) { return EncodingUtils.decodeBase64ToString(encryptionCertificate); // depends on control dependency: [if], data = [none] } return encryptio...
public class class_name { public final void drawParagraph(String[] texts, float dstX, float dstY, float dstZ, float paragraphWidth, ALIGN align) throws IOException { if (LwjgFontUtil.isEmpty(texts)) { return; } String buff = ""; for (String text: texts) { if (!LwjgFontUtil.isEmpty(text)) { buff += "...
public class class_name { public final void drawParagraph(String[] texts, float dstX, float dstY, float dstZ, float paragraphWidth, ALIGN align) throws IOException { if (LwjgFontUtil.isEmpty(texts)) { return; } String buff = ""; for (String text: texts) { if (!LwjgFontUtil.isEmpty(text)) { buff += "...
public class class_name { private BufferedImage createBinaryImage(int w, int h, int pixelBits) { int bytesPerRow = w * pixelBits / 8; if ((w * pixelBits % 8) != 0) { bytesPerRow++; } byte[] imageData = new byte[h * bytesPerRow]; IndexColorModel cm = nul...
public class class_name { private BufferedImage createBinaryImage(int w, int h, int pixelBits) { int bytesPerRow = w * pixelBits / 8; if ((w * pixelBits % 8) != 0) { bytesPerRow++; // depends on control dependency: [if], data = [none] } byte[] imageData = new b...
public class class_name { public StrBuilder appendAll(final Iterable<?> iterable) { if (iterable != null) { for (final Object o : iterable) { append(o); } } return this; } }
public class class_name { public StrBuilder appendAll(final Iterable<?> iterable) { if (iterable != null) { for (final Object o : iterable) { append(o); // depends on control dependency: [for], data = [o] } } return this; } }
public class class_name { public boolean check() { String path = StagePathUtils.getMainStem(getPipelineId()); try { byte[] bytes = zookeeper.readData(path); Long nid = ArbitrateConfigUtils.getCurrentNid(); MainStemEventData eventData = JsonUtils.unmarshalFromByte(byt...
public class class_name { public boolean check() { String path = StagePathUtils.getMainStem(getPipelineId()); try { byte[] bytes = zookeeper.readData(path); Long nid = ArbitrateConfigUtils.getCurrentNid(); MainStemEventData eventData = JsonUtils.unmarshalFromByte(byt...
public class class_name { public Set<Association> getAssociationsFromDB(final JAASSystem _jaasSystem) throws EFapsException { final Set<Association> ret = new HashSet<>(); Connection con = null; try { final List<Long> associationIds = new ArrayList<>(); con =...
public class class_name { public Set<Association> getAssociationsFromDB(final JAASSystem _jaasSystem) throws EFapsException { final Set<Association> ret = new HashSet<>(); Connection con = null; try { final List<Long> associationIds = new ArrayList<>(); con =...
public class class_name { public int drainTo(@NotNull byte[] dest, int destOffset, int maxSize) { int s = maxSize; while (hasRemaining()) { ByteBuf buf = bufs[first]; int remaining = buf.readRemaining(); if (s < remaining) { arraycopy(buf.array(), buf.head(), dest, destOffset, s); buf.moveHead(s);...
public class class_name { public int drainTo(@NotNull byte[] dest, int destOffset, int maxSize) { int s = maxSize; while (hasRemaining()) { ByteBuf buf = bufs[first]; int remaining = buf.readRemaining(); if (s < remaining) { arraycopy(buf.array(), buf.head(), dest, destOffset, s); // depends on contro...
public class class_name { public void addSingularAttribute(String attributeName, SingularAttribute<X, ?> attribute) { if (declaredSingluarAttribs == null) { declaredSingluarAttribs = new HashMap<String, SingularAttribute<X, ?>>(); } declaredSingluarAttribs.put(attribute...
public class class_name { public void addSingularAttribute(String attributeName, SingularAttribute<X, ?> attribute) { if (declaredSingluarAttribs == null) { declaredSingluarAttribs = new HashMap<String, SingularAttribute<X, ?>>(); } declaredSingluarAttribs.put(attribute...
public class class_name { @Override public AttributesTable createAttributesTable(String tableName, String idColumnName, List<AttributesColumn> additionalColumns, List<UserUniqueConstraint<AttributesColumn>> uniqueConstraints) { if (idColumnName == null) { idColumnName = "id"; } List<AttributesColumn>...
public class class_name { @Override public AttributesTable createAttributesTable(String tableName, String idColumnName, List<AttributesColumn> additionalColumns, List<UserUniqueConstraint<AttributesColumn>> uniqueConstraints) { if (idColumnName == null) { idColumnName = "id"; // depends on control depende...
public class class_name { public UpdateUserPoolClientRequest withAllowedOAuthFlows(String... allowedOAuthFlows) { if (this.allowedOAuthFlows == null) { setAllowedOAuthFlows(new java.util.ArrayList<String>(allowedOAuthFlows.length)); } for (String ele : allowedOAuthFlows) { ...
public class class_name { public UpdateUserPoolClientRequest withAllowedOAuthFlows(String... allowedOAuthFlows) { if (this.allowedOAuthFlows == null) { setAllowedOAuthFlows(new java.util.ArrayList<String>(allowedOAuthFlows.length)); // depends on control dependency: [if], data = [none] } ...
public class class_name { public static NutMap checkPayReturn(String xml, String key) { try { NutMap map = Xmls.asMap(xmls().parse(new InputSource(new StringReader(xml))).getDocumentElement()); return checkPayReturnMap(map, key); } catch (Exception e) { throw...
public class class_name { public static NutMap checkPayReturn(String xml, String key) { try { NutMap map = Xmls.asMap(xmls().parse(new InputSource(new StringReader(xml))).getDocumentElement()); return checkPayReturnMap(map, key); // depends on control dependency: [try], data = [none] ...
public class class_name { @Override protected void initGraphics() { super.initGraphics(); chartEventListener = e -> drawChart(); tile.getChartData().forEach(chartData -> chartData.addChartDataEventListener(chartEventListener)); chartDataListener = c -> { while (c.next()) ...
public class class_name { @Override protected void initGraphics() { super.initGraphics(); chartEventListener = e -> drawChart(); tile.getChartData().forEach(chartData -> chartData.addChartDataEventListener(chartEventListener)); chartDataListener = c -> { while (c.next()) ...
public class class_name { public void marshall(StartInstanceRequest startInstanceRequest, ProtocolMarshaller protocolMarshaller) { if (startInstanceRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.m...
public class class_name { public void marshall(StartInstanceRequest startInstanceRequest, ProtocolMarshaller protocolMarshaller) { if (startInstanceRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.m...
public class class_name { public static Expression getFieldExpression(DelegateTask task, String fieldName) { if (task.getCurrentActivitiListener() != null) { List<FieldExtension> fieldExtensions = task.getCurrentActivitiListener().getFieldExtensions()...
public class class_name { public static Expression getFieldExpression(DelegateTask task, String fieldName) { if (task.getCurrentActivitiListener() != null) { List<FieldExtension> fieldExtensions = task.getCurrentActivitiListener().getFieldExtensions()...
public class class_name { public void onMetadataFileForceDelete( @Observes final FileDeletionEvent event ) { EventMetadata eventMetadata = event.getEventMetadata(); if ( !Boolean.TRUE.equals( eventMetadata.get( CHECK_CACHE_ONLY ) ) ) { return; } logger.trace( "G...
public class class_name { public void onMetadataFileForceDelete( @Observes final FileDeletionEvent event ) { EventMetadata eventMetadata = event.getEventMetadata(); if ( !Boolean.TRUE.equals( eventMetadata.get( CHECK_CACHE_ONLY ) ) ) { return; // depends on control dependency: [...
public class class_name { @Override public RemoteCallReturn invokeSoapCall(SoapCall<BindingProvider> soapCall) { BindingProvider webService = soapCall.getSoapClient(); RemoteCallReturn.Builder builder = new RemoteCallReturn.Builder(); synchronized (webService) { Object result = null; try { ...
public class class_name { @Override public RemoteCallReturn invokeSoapCall(SoapCall<BindingProvider> soapCall) { BindingProvider webService = soapCall.getSoapClient(); RemoteCallReturn.Builder builder = new RemoteCallReturn.Builder(); synchronized (webService) { Object result = null; try { ...
public class class_name { @Override public Object get(int key, Object defaultValue) { if (key <= 0) return defaultValue; if (key > list.size()) return defaultValue; try { Object rtn = list.get(key - 1); if (rtn == null) { if (NullSupportHelper.full()) { return null; } return defaultValue;...
public class class_name { @Override public Object get(int key, Object defaultValue) { if (key <= 0) return defaultValue; if (key > list.size()) return defaultValue; try { Object rtn = list.get(key - 1); if (rtn == null) { if (NullSupportHelper.full()) { return null; // depends on control depe...
public class class_name { public Format getFormatByArgumentName(String argumentName) { if (cachedFormatters == null) { return null; } int argNumber = MessagePattern.validateArgumentName(argumentName); if (argNumber < MessagePattern.ARG_NAME_NOT_NUMBER) { return n...
public class class_name { public Format getFormatByArgumentName(String argumentName) { if (cachedFormatters == null) { return null; // depends on control dependency: [if], data = [none] } int argNumber = MessagePattern.validateArgumentName(argumentName); if (argNumber < Mess...
public class class_name { @Override public String readLine(String prompt) { try { return console.read(prompt); } catch (IOException e) { e.printStackTrace(); return null; } } }
public class class_name { @Override public String readLine(String prompt) { try { return console.read(prompt); // depends on control dependency: [try], data = [none] } catch (IOException e) { e.printStackTrace(); return null; } // depends on control depen...
public class class_name { public static void planarToBuffered_F32(Planar<GrayF32> src, DataBuffer buffer, BufferedImage dst) { if(BoofConcurrency.USE_CONCURRENT ) { try { if (buffer.getDataType() == DataBuffer.TYPE_BYTE && isKnownByteFormat(dst)) { ImplConvertRaster_MT.planarToBuffered_F32(src, (DataBuff...
public class class_name { public static void planarToBuffered_F32(Planar<GrayF32> src, DataBuffer buffer, BufferedImage dst) { if(BoofConcurrency.USE_CONCURRENT ) { try { if (buffer.getDataType() == DataBuffer.TYPE_BYTE && isKnownByteFormat(dst)) { ImplConvertRaster_MT.planarToBuffered_F32(src, (DataBuff...
public class class_name { private void processResourceAssignments(Task task, List<MapRow> assignments) { for (MapRow row : assignments) { processResourceAssignment(task, row); } } }
public class class_name { private void processResourceAssignments(Task task, List<MapRow> assignments) { for (MapRow row : assignments) { processResourceAssignment(task, row); // depends on control dependency: [for], data = [row] } } }
public class class_name { public void addCommandRegistryListener(CommandRegistryListener listener) { if (logger.isDebugEnabled()) { logger.debug("Adding command registry listener " + listener); } commandRegistryListeners.add(listener); } }
public class class_name { public void addCommandRegistryListener(CommandRegistryListener listener) { if (logger.isDebugEnabled()) { logger.debug("Adding command registry listener " + listener); // depends on control dependency: [if], data = [none] } commandRegistryListener...
public class class_name { public Flow[] getFlows() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, "getFlows"); } Flow[] clonedFlows = flows.clone(); if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.exit(tc, "ge...
public class class_name { public Flow[] getFlows() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, "getFlows"); // depends on control dependency: [if], data = [none] } Flow[] clonedFlows = flows.clone(); if (TraceComponent.isAnyTracingEnabled() && t...
public class class_name { public static final KeyPressHandler getRegExKeyPressHandler(final String pregEx) { if (StringUtils.isEmpty(pregEx)) { return null; } RegExKeyPressHandler result = HandlerFactory.REG_EX_KEY_PRESS_HANDLER_MAP.get(pregEx); if (result == null) { result = new RegExKeyPr...
public class class_name { public static final KeyPressHandler getRegExKeyPressHandler(final String pregEx) { if (StringUtils.isEmpty(pregEx)) { return null; // depends on control dependency: [if], data = [none] } RegExKeyPressHandler result = HandlerFactory.REG_EX_KEY_PRESS_HANDLER_MAP.get(pregEx); ...
public class class_name { public static int medoid(boolean parallel, Collection<Integer> indecies, double tol, List<? extends Vec> X, DistanceMetric dm, List<Double> accel) { final int N = indecies.size(); if(tol <= 0 || N < SystemInfo.LogicalCores)//Really just not enough points, lets sim...
public class class_name { public static int medoid(boolean parallel, Collection<Integer> indecies, double tol, List<? extends Vec> X, DistanceMetric dm, List<Double> accel) { final int N = indecies.size(); if(tol <= 0 || N < SystemInfo.LogicalCores)//Really just not enough points, lets sim...
public class class_name { public void postConstruct() { Assert.isTrue(this.spacing == null || this.spacing.length == 2, GridLayer.class.getSimpleName() + ".spacing has the wrong number of elements. Expected 2 (x,y) but was: " + ...
public class class_name { public void postConstruct() { Assert.isTrue(this.spacing == null || this.spacing.length == 2, GridLayer.class.getSimpleName() + ".spacing has the wrong number of elements. Expected 2 (x,y) but was: " + ...
public class class_name { public static DbPipe toDbPipe(String pipeName, final String[] array) throws DevFailed { DbPipe dbPipe = new DbPipe(pipeName); try { int index = 3; final int nbProperties = Integer.parseInt(array[index++]); for (int i=0 ; i<nbProperties ; i++...
public class class_name { public static DbPipe toDbPipe(String pipeName, final String[] array) throws DevFailed { DbPipe dbPipe = new DbPipe(pipeName); try { int index = 3; final int nbProperties = Integer.parseInt(array[index++]); for (int i=0 ; i<nbProperties ; i++...
public class class_name { public static int intValue(String option) { String s = value(option); if (s != null) { try { int val = Integer.parseInt(s); if (val > 0) return (val); } catch (NumberFormatException e) { } } return (-1); } }
public class class_name { public static int intValue(String option) { String s = value(option); if (s != null) { try { int val = Integer.parseInt(s); if (val > 0) return (val); } catch (NumberFormatException e) { } // depends on control dependency: [catch], data = [none] } return (-1); } }
public class class_name { @Override public AuditEventOutputStream write(AuditEvent event) { if (LifeCycleContext.getInstance().getStatus().equals(RunStatus.RUNNING)) { try { ValidationManager.validateEvent(event); if (configContext.getFilters().isEmpty() || filte...
public class class_name { @Override public AuditEventOutputStream write(AuditEvent event) { if (LifeCycleContext.getInstance().getStatus().equals(RunStatus.RUNNING)) { try { ValidationManager.validateEvent(event); // depends on control dependency: [try], data = [none] ...
public class class_name { public void addListeners() { super.addListeners(); if (m_properties.size() > 0) { Record recPropertiesInput = this.getMainRecord(); recPropertiesInput.setKeyArea(PropertiesInput.KEY_KEY); Iterator<Object> iterator = m_properties....
public class class_name { public void addListeners() { super.addListeners(); if (m_properties.size() > 0) { Record recPropertiesInput = this.getMainRecord(); recPropertiesInput.setKeyArea(PropertiesInput.KEY_KEY); // depends on control dependency: [if], data = [none]...
public class class_name { public void marshall(GetLayerVersionRequest getLayerVersionRequest, ProtocolMarshaller protocolMarshaller) { if (getLayerVersionRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarsha...
public class class_name { public void marshall(GetLayerVersionRequest getLayerVersionRequest, ProtocolMarshaller protocolMarshaller) { if (getLayerVersionRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarsha...
public class class_name { protected SparseArray<ReleaseItem> readChangeLog(XmlPullParser xml, boolean full) { SparseArray<ReleaseItem> result = new SparseArray<ReleaseItem>(); try { int eventType = xml.getEventType(); while (eventType != XmlPullParser.END_DOCUMENT) { ...
public class class_name { protected SparseArray<ReleaseItem> readChangeLog(XmlPullParser xml, boolean full) { SparseArray<ReleaseItem> result = new SparseArray<ReleaseItem>(); try { int eventType = xml.getEventType(); while (eventType != XmlPullParser.END_DOCUMENT) { ...
public class class_name { void setAsas(double[] asas1, double[] asas2, int nSpherePoints, int nThreads, int cofactorSizeToUse) { Atom[] atoms = getAtomsForAsa(cofactorSizeToUse); AsaCalculator asaCalc = new AsaCalculator(atoms, AsaCalculator.DEFAULT_PROBE_SIZE, nSpherePoints, nThreads); double[] complexAsa...
public class class_name { void setAsas(double[] asas1, double[] asas2, int nSpherePoints, int nThreads, int cofactorSizeToUse) { Atom[] atoms = getAtomsForAsa(cofactorSizeToUse); AsaCalculator asaCalc = new AsaCalculator(atoms, AsaCalculator.DEFAULT_PROBE_SIZE, nSpherePoints, nThreads); double[] complexAsa...
public class class_name { public void updateSecurityMetadataWithRunAs(SecurityMetadata securityMetadataFromDD, IServletConfig servletConfig) { String runAs = servletConfig.getRunAsRole(); if (runAs != null) { String servletName = servletConfig.getServletName(); //only add if the...
public class class_name { public void updateSecurityMetadataWithRunAs(SecurityMetadata securityMetadataFromDD, IServletConfig servletConfig) { String runAs = servletConfig.getRunAsRole(); if (runAs != null) { String servletName = servletConfig.getServletName(); //only add if the...
public class class_name { public void setPersons(java.util.Collection<PersonDetection> persons) { if (persons == null) { this.persons = null; return; } this.persons = new java.util.ArrayList<PersonDetection>(persons); } }
public class class_name { public void setPersons(java.util.Collection<PersonDetection> persons) { if (persons == null) { this.persons = null; // depends on control dependency: [if], data = [none] return; // depends on control dependency: [if], data = [none] } this.perso...
public class class_name { public static void loadMetadata(RDBMetadata metadata, Connection conn, Set<RelationID> realTables) throws SQLException { if (printouts) System.out.println("GETTING METADATA WITH " + conn + " ON " + realTables); final DatabaseMetaData md = conn.getMetaData(); String productName = md...
public class class_name { public static void loadMetadata(RDBMetadata metadata, Connection conn, Set<RelationID> realTables) throws SQLException { if (printouts) System.out.println("GETTING METADATA WITH " + conn + " ON " + realTables); final DatabaseMetaData md = conn.getMetaData(); String productName = md...
public class class_name { protected Postcard build(Uri uri) { if (null == uri || TextUtils.isEmpty(uri.toString())) { throw new HandlerException(Consts.TAG + "Parameter invalid!"); } else { PathReplaceService pService = ARouter.getInstance().navigation(PathReplaceService.class);...
public class class_name { protected Postcard build(Uri uri) { if (null == uri || TextUtils.isEmpty(uri.toString())) { throw new HandlerException(Consts.TAG + "Parameter invalid!"); } else { PathReplaceService pService = ARouter.getInstance().navigation(PathReplaceService.class);...
public class class_name { private Listener popListener() { Listener listener = this.listenerStack.pop(); if (!this.listenerStack.isEmpty()) { setWrappedListener(this.listenerStack.peek()); } return listener; } }
public class class_name { private Listener popListener() { Listener listener = this.listenerStack.pop(); if (!this.listenerStack.isEmpty()) { setWrappedListener(this.listenerStack.peek()); // depends on control dependency: [if], data = [none] } return listener; } }
public class class_name { public Triple[] generateTriangleNeighbors(Geometry geometry) throws TopologyException { inputTriangles = geometry; CoordinateSequenceDimensionFilter sequenceDimensionFilter = new CoordinateSequenceDimensionFilter(); geometry.apply(sequenceDimensionFilter); hasZ...
public class class_name { public Triple[] generateTriangleNeighbors(Geometry geometry) throws TopologyException { inputTriangles = geometry; CoordinateSequenceDimensionFilter sequenceDimensionFilter = new CoordinateSequenceDimensionFilter(); geometry.apply(sequenceDimensionFilter); hasZ...
public class class_name { public void clear() { List<Socket> socketsToClear = new LinkedList<Socket>(); synchronized(multimap) { for (Socket sock : multimap.values()) { socketsToClear.add(sock); } multimap.clear(); } for (Socket sock : socketsToClear) { IOUtils.clos...
public class class_name { public void clear() { List<Socket> socketsToClear = new LinkedList<Socket>(); synchronized(multimap) { for (Socket sock : multimap.values()) { socketsToClear.add(sock); // depends on control dependency: [for], data = [sock] } multimap.clear(); } ...
public class class_name { public void addDate(ICalDate icalDate, ICalProperty property, ICalParameters parameters) { if (!icalDate.hasTime()) { //dates don't have timezones return; } if (icalDate.getRawComponents().isUtc()) { //it's a UTC date, so it was already parsed under the correct timezone ret...
public class class_name { public void addDate(ICalDate icalDate, ICalProperty property, ICalParameters parameters) { if (!icalDate.hasTime()) { //dates don't have timezones return; // depends on control dependency: [if], data = [none] } if (icalDate.getRawComponents().isUtc()) { //it's a UTC date, so i...
public class class_name { private void writeSilenceInternal(TickRange tr, boolean forced) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "writeSilenceInternal", new Object[] { tr, Boolean.valueOf(forced) }); List msgList = null; // Tak...
public class class_name { private void writeSilenceInternal(TickRange tr, boolean forced) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "writeSilenceInternal", new Object[] { tr, Boolean.valueOf(forced) }); List msgList = null; // Tak...
public class class_name { public int getInt(int key, int defaultValue) { if (key < 0) Kit.codeBug(); int index = findIndex(key); if (0 <= index) { if (ivaluesShift != 0) { return keys[ivaluesShift + index]; } return 0; } return...
public class class_name { public int getInt(int key, int defaultValue) { if (key < 0) Kit.codeBug(); int index = findIndex(key); if (0 <= index) { if (ivaluesShift != 0) { return keys[ivaluesShift + index]; // depends on control dependency: [if], data = [none] ...
public class class_name { private static int searchNzRowsInX_DFS(int rowB , DMatrixSparseCSC G , int top , int pinv[], int xi[], int w[] ) { int N = G.numCols; // first N elements in w is the length of X int head = 0; // put the selected row into the FILO stack xi[head] = rowB; // use the ...
public class class_name { private static int searchNzRowsInX_DFS(int rowB , DMatrixSparseCSC G , int top , int pinv[], int xi[], int w[] ) { int N = G.numCols; // first N elements in w is the length of X int head = 0; // put the selected row into the FILO stack xi[head] = rowB; // use the ...
public class class_name { String buildProjectionExpression(SubstitutionContext context) { if (projections.size() == 0) return null; StringBuilder sb = new StringBuilder(); for (PathOperand projection : projections) { if (sb.length() > 0) sb.append(", "); ...
public class class_name { String buildProjectionExpression(SubstitutionContext context) { if (projections.size() == 0) return null; StringBuilder sb = new StringBuilder(); for (PathOperand projection : projections) { if (sb.length() > 0) sb.append(", "); ...
public class class_name { protected HttpRequestMessageImpl getRequestImpl() { if (null == getMyRequest()) { setMyRequest(getObjectFactory().getRequest(this)); getMyRequest().setHeaderChangeLimit(getHttpConfig().getHeaderChangeLimit()); } setStartTime(); return ge...
public class class_name { protected HttpRequestMessageImpl getRequestImpl() { if (null == getMyRequest()) { setMyRequest(getObjectFactory().getRequest(this)); // depends on control dependency: [if], data = [none] getMyRequest().setHeaderChangeLimit(getHttpConfig().getHeaderChangeLimit()...
public class class_name { protected T createInstance() { try { return targetClass.newInstance(); } catch (InstantiationException e) { throw new RuntimeException(e); } catch (IllegalAccessException e) { throw new RuntimeException(e); } } }
public class class_name { protected T createInstance() { try { return targetClass.newInstance(); // depends on control dependency: [try], data = [none] } catch (InstantiationException e) { throw new RuntimeException(e); } catch (IllegalAccessException e) { // depends on control dependency: [catch], data = ...
public class class_name { public String getSrcSet() { StringBuffer result = new StringBuffer(128); if (m_srcSet != null) { int items = m_srcSet.size(); for (Map.Entry<Integer, CmsJspImageBean> entry : m_srcSet.entrySet()) { CmsJspImageBean imageBean = entry.getV...
public class class_name { public String getSrcSet() { StringBuffer result = new StringBuffer(128); if (m_srcSet != null) { int items = m_srcSet.size(); for (Map.Entry<Integer, CmsJspImageBean> entry : m_srcSet.entrySet()) { CmsJspImageBean imageBean = entry.getV...
public class class_name { public void cancel(int entryId) { NotificationEntry entry = mCenter.getEntry(ID, entryId); if (entry != null) { cancel(entry); } } }
public class class_name { public void cancel(int entryId) { NotificationEntry entry = mCenter.getEntry(ID, entryId); if (entry != null) { cancel(entry); // depends on control dependency: [if], data = [(entry] } } }
public class class_name { @Override protected void checkPrimitiveValidity() { BusPrimitiveInvalidity invalidityReason = null; if (this.position == null) { invalidityReason = new BusPrimitiveInvalidity( BusPrimitiveInvalidityType.NO_STOP_POSITION, null); } else { final BusNetwork busNetw...
public class class_name { @Override protected void checkPrimitiveValidity() { BusPrimitiveInvalidity invalidityReason = null; if (this.position == null) { invalidityReason = new BusPrimitiveInvalidity( BusPrimitiveInvalidityType.NO_STOP_POSITION, null); // depends on control dependency: [if]...
public class class_name { static void parseArguments(String[] args) { for (AbstractH2OExtension e : extManager.getCoreExtensions()) { args = e.parseArguments(args); } parseH2OArgumentsTo(args, ARGS); } }
public class class_name { static void parseArguments(String[] args) { for (AbstractH2OExtension e : extManager.getCoreExtensions()) { args = e.parseArguments(args); // depends on control dependency: [for], data = [e] } parseH2OArgumentsTo(args, ARGS); } }
public class class_name { protected void validateValue(FacesContext context, Object value) { super.validateValue(context, value); // Skip validation if it is not necessary if (!isValid() || (value == null)) { return; } boolean doAddMessage = false; ...
public class class_name { protected void validateValue(FacesContext context, Object value) { super.validateValue(context, value); // Skip validation if it is not necessary if (!isValid() || (value == null)) { return; // depends on control dependency: [if], data = [none] } ...
public class class_name { @Override public final synchronized void beforeCompletion() throws RemoteException { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(tc, "beforeCompletion: " + StateStrs[stat...
public class class_name { @Override public final synchronized void beforeCompletion() throws RemoteException { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(tc, "beforeCompletion: " + StateStrs[stat...
public class class_name { public void setAssociationFilterList(java.util.Collection<AssociationFilter> associationFilterList) { if (associationFilterList == null) { this.associationFilterList = null; return; } this.associationFilterList = new com.amazonaws.internal.SdkI...
public class class_name { public void setAssociationFilterList(java.util.Collection<AssociationFilter> associationFilterList) { if (associationFilterList == null) { this.associationFilterList = null; // depends on control dependency: [if], data = [none] return; // depends on control dep...
public class class_name { public synchronized boolean receive(Tree message) { // Update timestamp if (timeoutMillis > 0) { timeoutAt = System.currentTimeMillis() + timeoutMillis; } // Check sequence number long seq = message.get("seq", -1); if (seq > -1) { if (seq - 1 == prevSeq) { p...
public class class_name { public synchronized boolean receive(Tree message) { // Update timestamp if (timeoutMillis > 0) { timeoutAt = System.currentTimeMillis() + timeoutMillis; // depends on control dependency: [if], data = [none] } // Check sequence number long seq = message.get("seq", -1); ...
public class class_name { public static StoreDefinition getStoreDefinitionWithName(List<StoreDefinition> storeDefs, String storeName) { StoreDefinition def = null; for(StoreDefinition storeDef: storeDefs) { if(storeDef.getName().c...
public class class_name { public static StoreDefinition getStoreDefinitionWithName(List<StoreDefinition> storeDefs, String storeName) { StoreDefinition def = null; for(StoreDefinition storeDef: storeDefs) { if(storeDef.getName().c...
public class class_name { public static void simplify(Throwable e) { if (!isSimplifyStackTrace()) { return; } if (e.getCause() != null) { simplify(e.getCause()); } StackTraceElement[] trace = e.getStackTrace(); if (trace == null || trace.length == 0) { return; } List<StackTraceElement> s...
public class class_name { public static void simplify(Throwable e) { if (!isSimplifyStackTrace()) { return; // depends on control dependency: [if], data = [none] } if (e.getCause() != null) { simplify(e.getCause()); // depends on control dependency: [if], data = [(e.getCause()] } StackTraceElement[] ...
public class class_name { final private com.ibm.websphere.cache.CacheEntry internal_putAndGet( Object key, Object value, ...
public class class_name { final private com.ibm.websphere.cache.CacheEntry internal_putAndGet( Object key, Object value, ...
public class class_name { public static void widenDomain (HttpServletRequest req, Cookie cookie) { String server = req.getServerName(); int didx = server.indexOf("."); // if no period was found (e.g. localhost) don't set the domain if (didx == -1) { return; } ...
public class class_name { public static void widenDomain (HttpServletRequest req, Cookie cookie) { String server = req.getServerName(); int didx = server.indexOf("."); // if no period was found (e.g. localhost) don't set the domain if (didx == -1) { return; // depends on...
public class class_name { public String[] toArray(String[] a) { int n = data.size(); if (a.length < n) { a = new String[n]; } for (int i = 0; i < n; i++) { a[i] = data.get(i).name; } for (int i = n; i < a.length; i++) { ...
public class class_name { public String[] toArray(String[] a) { int n = data.size(); if (a.length < n) { a = new String[n]; // depends on control dependency: [if], data = [none] } for (int i = 0; i < n; i++) { a[i] = data.get(i).name; // depends on contr...
public class class_name { public JsonElement parse(JsonReader json) throws JsonIOException, JsonSyntaxException { boolean lenient = json.isLenient(); json.setLenient(true); try { return Streams.parse(json); } catch (StackOverflowError e) { throw new JsonParseException("Failed parsing ...
public class class_name { public JsonElement parse(JsonReader json) throws JsonIOException, JsonSyntaxException { boolean lenient = json.isLenient(); json.setLenient(true); try { return Streams.parse(json); } catch (StackOverflowError e) { throw new JsonParseException("Failed parsing ...
public class class_name { private String getToken() { SessionData session = dataMgr.getSessionDAO().session(); if (session != null && session.getExpiresOn() > System.currentTimeMillis()) { return session.getAccessToken(); } return null; } }
public class class_name { private String getToken() { SessionData session = dataMgr.getSessionDAO().session(); if (session != null && session.getExpiresOn() > System.currentTimeMillis()) { return session.getAccessToken(); // depends on control dependency: [if], data = [none] } ...
public class class_name { public GrailsClass addArtefact(String artefactType, GrailsClass artefactGrailsClass) { ArtefactHandler handler = artefactHandlersByName.get(artefactType); if (handler.isArtefactGrailsClass(artefactGrailsClass)) { // Store the GrailsClass in cache Defaul...
public class class_name { public GrailsClass addArtefact(String artefactType, GrailsClass artefactGrailsClass) { ArtefactHandler handler = artefactHandlersByName.get(artefactType); if (handler.isArtefactGrailsClass(artefactGrailsClass)) { // Store the GrailsClass in cache Defaul...
public class class_name { public static boolean canSetCustomIPECropRatios(@NotNull MediaRequest mediaRequest, @Nullable ComponentContext wcmComponentContext) { EditConfig editConfig = null; InplaceEditingConfig ipeConfig = null; if (wcmComponentContext != null && wcmComponentContext.getEditContext()...
public class class_name { public static boolean canSetCustomIPECropRatios(@NotNull MediaRequest mediaRequest, @Nullable ComponentContext wcmComponentContext) { EditConfig editConfig = null; InplaceEditingConfig ipeConfig = null; if (wcmComponentContext != null && wcmComponentContext.getEditContext()...
public class class_name { public static final void rotate(Structure structure, Matrix m){ AtomIterator iter = new AtomIterator(structure) ; while (iter.hasNext()) { Atom atom = iter.next() ; rotate(atom,m); } } }
public class class_name { public static final void rotate(Structure structure, Matrix m){ AtomIterator iter = new AtomIterator(structure) ; while (iter.hasNext()) { Atom atom = iter.next() ; rotate(atom,m); // depends on control dependency: [while], data = [none] } } }
public class class_name { static int toInt(String input, int offset, int length) { if (length == 1) { return input.charAt(offset) - '0'; } int out = 0; for (int i = offset + length - 1, factor = 1; i >= offset; --i, factor *= 10) { out += (in...
public class class_name { static int toInt(String input, int offset, int length) { if (length == 1) { return input.charAt(offset) - '0'; // depends on control dependency: [if], data = [none] } int out = 0; for (int i = offset + length - 1, factor = 1; i >= offse...
public class class_name { public static <T> T navigateStrict( final Object source, final Object... paths ) throws UnsupportedOperationException { Object destination = source; for ( Object path : paths ) { if ( path == null ) { throw new UnsupportedOperationException("path i...
public class class_name { public static <T> T navigateStrict( final Object source, final Object... paths ) throws UnsupportedOperationException { Object destination = source; for ( Object path : paths ) { if ( path == null ) { throw new UnsupportedOperationException("path i...
public class class_name { public void generateCucumberITFiles(final File outputDirectory, final Collection<File> featureFiles) throws MojoExecutionException { Parser<GherkinDocument> parser = new Parser<GherkinDocument>(new AstBuilder()); TagPredicate tagPredicat...
public class class_name { public void generateCucumberITFiles(final File outputDirectory, final Collection<File> featureFiles) throws MojoExecutionException { Parser<GherkinDocument> parser = new Parser<GherkinDocument>(new AstBuilder()); TagPredicate tagPredicat...
public class class_name { public static boolean hasHDFSDelegationToken() throws Exception { UserGroupInformation loginUser = UserGroupInformation.getCurrentUser(); Collection<Token<? extends TokenIdentifier>> usrTok = loginUser.getTokens(); for (Token<? extends TokenIdentifier> token : usrTok) { if (token.get...
public class class_name { public static boolean hasHDFSDelegationToken() throws Exception { UserGroupInformation loginUser = UserGroupInformation.getCurrentUser(); Collection<Token<? extends TokenIdentifier>> usrTok = loginUser.getTokens(); for (Token<? extends TokenIdentifier> token : usrTok) { if (token.get...
public class class_name { public static <T> Supplier<T> memoize(final Supplier<T> supplier) { return new Supplier<T>() { private volatile boolean initialized = false; private T instance = null; @Override public T get() { if (initialized ==...
public class class_name { public static <T> Supplier<T> memoize(final Supplier<T> supplier) { return new Supplier<T>() { private volatile boolean initialized = false; private T instance = null; @Override public T get() { if (initialized ==...
public class class_name { @EventListener(classes = CancelTargetAssignmentEvent.class) protected void targetCancelAssignmentToDistributionSet(final CancelTargetAssignmentEvent cancelEvent) { if (isNotFromSelf(cancelEvent)) { return; } sendCancelMessageToTarget(cancelEvent.getTen...
public class class_name { @EventListener(classes = CancelTargetAssignmentEvent.class) protected void targetCancelAssignmentToDistributionSet(final CancelTargetAssignmentEvent cancelEvent) { if (isNotFromSelf(cancelEvent)) { return; // depends on control dependency: [if], data = [none] }...
public class class_name { private void handleBody(HttpRequestBase httpRequest) { if (hasBody()) { HttpEntityEnclosingRequestBase rq = (HttpEntityEnclosingRequestBase) httpRequest; if (!formParams.isEmpty()) { handleFormParameters(rq); } else if (body != null) { handleRequestBody(rq); } } } ...
public class class_name { private void handleBody(HttpRequestBase httpRequest) { if (hasBody()) { HttpEntityEnclosingRequestBase rq = (HttpEntityEnclosingRequestBase) httpRequest; if (!formParams.isEmpty()) { handleFormParameters(rq); // depends on control dependency: [if], data = [none] } else if (b...
public class class_name { private static boolean multiPointWithinEnvelope_(MultiPoint multipoint_a, Envelope envelope_b, double tolerance, ProgressTracker progress_tracker) { Envelope2D env_a = new Envelope2D(), env_b = new Envelope2D(); multipoint_a.queryEnvelope2D(env_a); envelope_b.queryEnvelope2D(env_b...
public class class_name { private static boolean multiPointWithinEnvelope_(MultiPoint multipoint_a, Envelope envelope_b, double tolerance, ProgressTracker progress_tracker) { Envelope2D env_a = new Envelope2D(), env_b = new Envelope2D(); multipoint_a.queryEnvelope2D(env_a); envelope_b.queryEnvelope2D(env_b...
public class class_name { public GeometryIndex populate(TableIndex tableIndex, long geomId, GeometryEnvelope envelope) { GeometryIndex geometryIndex = new GeometryIndex(); geometryIndex.setTableIndex(tableIndex); geometryIndex.setGeomId(geomId); geometryIndex.setMinX(envelope.getMinX()); geometryIndex.se...
public class class_name { public GeometryIndex populate(TableIndex tableIndex, long geomId, GeometryEnvelope envelope) { GeometryIndex geometryIndex = new GeometryIndex(); geometryIndex.setTableIndex(tableIndex); geometryIndex.setGeomId(geomId); geometryIndex.setMinX(envelope.getMinX()); geometryIndex.se...
public class class_name { @Override protected final void acknowledgeIDs(long checkpointId, Set<UId> uniqueIds) { LOG.debug("Acknowledging ids for checkpoint {}", checkpointId); Iterator<Tuple2<Long, List<SessionId>>> iterator = sessionIdsPerSnapshot.iterator(); while (iterator.hasNext()) { final Tuple2<Long,...
public class class_name { @Override protected final void acknowledgeIDs(long checkpointId, Set<UId> uniqueIds) { LOG.debug("Acknowledging ids for checkpoint {}", checkpointId); Iterator<Tuple2<Long, List<SessionId>>> iterator = sessionIdsPerSnapshot.iterator(); while (iterator.hasNext()) { final Tuple2<Long,...
public class class_name { private void addEPStatementListener(UpdateListener listener) { if (this.subscriber == null) { if (epStatement != null) { epStatement.addListener(listener); } } } }
public class class_name { private void addEPStatementListener(UpdateListener listener) { if (this.subscriber == null) { if (epStatement != null) { epStatement.addListener(listener); // depends on control dependency: [if], data = [none] } } } }
public class class_name { private static FileInputStream openFileRead(String dirName, String fullName, String firstPart, String secondPart) { try { return new FileInputStream(new File(dirName, fullName)); } catch (FileNotFoundException ex1) { // If file name is too long hash it ...
public class class_name { private static FileInputStream openFileRead(String dirName, String fullName, String firstPart, String secondPart) { try { return new FileInputStream(new File(dirName, fullName)); // depends on control dependency: [try], data = [none] } catch (FileNotFoundException ...
public class class_name { public boolean shouldReplace(MethodMember other) { if (!name.equals(other.name)) { return false; } if (!descriptor.equals(other.descriptor)) { return false; } return true; } }
public class class_name { public boolean shouldReplace(MethodMember other) { if (!name.equals(other.name)) { return false; // depends on control dependency: [if], data = [none] } if (!descriptor.equals(other.descriptor)) { return false; // depends on control dependency: [if], data = [none] } return tru...
public class class_name { public long transferTo(long pos, long count, WritableByteChannel dest) throws IOException { long bytesToRead = bytesToRead(pos, count); if (bytesToRead > 0) { long remaining = bytesToRead; int blockIndex = blockIndex(pos); byte[] block = blocks[blockIndex]; i...
public class class_name { public long transferTo(long pos, long count, WritableByteChannel dest) throws IOException { long bytesToRead = bytesToRead(pos, count); if (bytesToRead > 0) { long remaining = bytesToRead; int blockIndex = blockIndex(pos); byte[] block = blocks[blockIndex]; i...
public class class_name { public List<JAXBElement<Object>> get_GenericApplicationPropertyOfBridge() { if (_GenericApplicationPropertyOfBridge == null) { _GenericApplicationPropertyOfBridge = new ArrayList<JAXBElement<Object>>(); } return this._GenericApplicationPropertyOfBridge; ...
public class class_name { public List<JAXBElement<Object>> get_GenericApplicationPropertyOfBridge() { if (_GenericApplicationPropertyOfBridge == null) { _GenericApplicationPropertyOfBridge = new ArrayList<JAXBElement<Object>>(); // depends on control dependency: [if], data = [none] } ...
public class class_name { public void setIcon(String iconClasses, String detailIconClasses) { m_iconPanel.setVisible(true); HTML iconWidget = new HTML(); m_iconPanel.setWidget(iconWidget); iconWidget.setStyleName(iconClasses + " " + m_fixedIconClasses); // render the detail ico...
public class class_name { public void setIcon(String iconClasses, String detailIconClasses) { m_iconPanel.setVisible(true); HTML iconWidget = new HTML(); m_iconPanel.setWidget(iconWidget); iconWidget.setStyleName(iconClasses + " " + m_fixedIconClasses); // render the detail ico...
public class class_name { @Override protected E load() { context = BundleReference.class.cast(serviceType.getClassLoader()).getBundle().getBundleContext(); ServiceReference<T> ref = context.getServiceReference(serviceType); try{ if(ref == null){ return null; } T service = context.getService(ref); retur...
public class class_name { @Override protected E load() { context = BundleReference.class.cast(serviceType.getClassLoader()).getBundle().getBundleContext(); ServiceReference<T> ref = context.getServiceReference(serviceType); try{ if(ref == null){ return null; // depends on control dependency: [if], data = ...
public class class_name { public void marshall(DeclineInvitationsRequest declineInvitationsRequest, ProtocolMarshaller protocolMarshaller) { if (declineInvitationsRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { proto...
public class class_name { public void marshall(DeclineInvitationsRequest declineInvitationsRequest, ProtocolMarshaller protocolMarshaller) { if (declineInvitationsRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { proto...
public class class_name { @SuppressWarnings("unchecked") protected String[] getUserRoles(SOAPMessageContext context) { HttpServletRequest request = (HttpServletRequest) context .get(SOAPMessageContext.SERVLET_REQUEST); Map<String, Set<String>> reqAttr = null...
public class class_name { @SuppressWarnings("unchecked") protected String[] getUserRoles(SOAPMessageContext context) { HttpServletRequest request = (HttpServletRequest) context .get(SOAPMessageContext.SERVLET_REQUEST); Map<String, Set<String>> reqAttr = null...
public class class_name { @Override public void doSessionCreated() throws Exception { // establish the user principals. // XXX There's a question about what to do if they are changed on revalidate Set<Class<Principal>> userPrincipalClasses = serviceManagementBean.getUserPrincipalClasses(); ...
public class class_name { @Override public void doSessionCreated() throws Exception { // establish the user principals. // XXX There's a question about what to do if they are changed on revalidate Set<Class<Principal>> userPrincipalClasses = serviceManagementBean.getUserPrincipalClasses(); ...
public class class_name { public static BigExcelWriter getBigWriter(File destFile) { try { return new BigExcelWriter(destFile); } catch (NoClassDefFoundError e) { throw new DependencyException(ObjectUtil.defaultIfNull(e.getCause(), e), PoiChecker.NO_POI_ERROR_MSG); } } }
public class class_name { public static BigExcelWriter getBigWriter(File destFile) { try { return new BigExcelWriter(destFile); // depends on control dependency: [try], data = [none] } catch (NoClassDefFoundError e) { throw new DependencyException(ObjectUtil.defaultIfNull(e.getCause(), e), PoiChecker.NO_...
public class class_name { private int correctForExpungedMessages(int absoluteMsn) { int correctedMsn = absoluteMsn; // Loop through the expunged list backwards, adjusting the msn as we go. for (int i = expungedMsns.size() - 1; i >= 0; i--) { int expunged = expungedMsns.get(i); ...
public class class_name { private int correctForExpungedMessages(int absoluteMsn) { int correctedMsn = absoluteMsn; // Loop through the expunged list backwards, adjusting the msn as we go. for (int i = expungedMsns.size() - 1; i >= 0; i--) { int expunged = expungedMsns.get(i); ...
public class class_name { public void setProcessPid(java.util.Collection<NumberFilter> processPid) { if (processPid == null) { this.processPid = null; return; } this.processPid = new java.util.ArrayList<NumberFilter>(processPid); } }
public class class_name { public void setProcessPid(java.util.Collection<NumberFilter> processPid) { if (processPid == null) { this.processPid = null; // depends on control dependency: [if], data = [none] return; // depends on control dependency: [if], data = [none] } t...
public class class_name { public static void showBooks(final ListOfBooks booksList){ if(booksList != null && booksList.getBook() != null && !booksList.getBook().isEmpty()){ List<BookType> books = booksList.getBook(); System.out.println("\nNumber of books: " + books.size()); int cnt = 0; ...
public class class_name { public static void showBooks(final ListOfBooks booksList){ if(booksList != null && booksList.getBook() != null && !booksList.getBook().isEmpty()){ List<BookType> books = booksList.getBook(); System.out.println("\nNumber of books: " + books.size()); // depends on control ...
public class class_name { private void initShowAnimation(TypedArray attrs) { int index = R.styleable.ActionButton_show_animation; if (attrs.hasValue(index)) { int animResId = attrs.getResourceId(index, Animations.NONE.animResId); showAnimation = Animations.load(getContext(), animResId); LOGGER.trace("Init...
public class class_name { private void initShowAnimation(TypedArray attrs) { int index = R.styleable.ActionButton_show_animation; if (attrs.hasValue(index)) { int animResId = attrs.getResourceId(index, Animations.NONE.animResId); showAnimation = Animations.load(getContext(), animResId); // depends on control...
public class class_name { private void createSystemConnection() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "createSystemConnection"); Subject subject = _authorisationUtils.getSIBServerSubject(); try { _connectionToMP ...
public class class_name { private void createSystemConnection() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "createSystemConnection"); Subject subject = _authorisationUtils.getSIBServerSubject(); try { _connectionToMP ...
public class class_name { private static Map<byte[], byte[]> createCfRenameMap(Configuration conf) { Map<byte[], byte[]> cfRenameMap = null; String allMappingsPropVal = conf.get(CF_RENAME_PROP); if(allMappingsPropVal != null) { // The conf value format should be sourceCf1:destCf1,sourceCf2:destCf2,.....
public class class_name { private static Map<byte[], byte[]> createCfRenameMap(Configuration conf) { Map<byte[], byte[]> cfRenameMap = null; String allMappingsPropVal = conf.get(CF_RENAME_PROP); if(allMappingsPropVal != null) { // The conf value format should be sourceCf1:destCf1,sourceCf2:destCf2,.....
public class class_name { private Comparator<String> getInitedAliasComparator() { if (MapUtil.isEmpty(this.headerAlias)) { return null; } Comparator<String> aliasComparator = this.aliasComparator; if (null == aliasComparator) { Set<String> keySet = this.headerAlias.keySet(); aliasComparator = n...
public class class_name { private Comparator<String> getInitedAliasComparator() { if (MapUtil.isEmpty(this.headerAlias)) { return null; // depends on control dependency: [if], data = [none] } Comparator<String> aliasComparator = this.aliasComparator; if (null == aliasComparator) { Set<String> keySe...
public class class_name { public static DMatrixRMaj sumRows(DMatrixRMaj input , DMatrixRMaj output ) { if( output == null ) { output = new DMatrixRMaj(input.numRows,1); } else { output.reshape(input.numRows,1); } for( int row = 0; row < input.numRows; row++ ) { ...
public class class_name { public static DMatrixRMaj sumRows(DMatrixRMaj input , DMatrixRMaj output ) { if( output == null ) { output = new DMatrixRMaj(input.numRows,1); // depends on control dependency: [if], data = [none] } else { output.reshape(input.numRows,1); // depends on ...
public class class_name { @Override public void paint(final RenderContext renderContext) { if (!(renderContext instanceof WebXmlRenderContext)) { throw new SystemException("Unable to render to " + renderContext); } PrintWriter writer = ((WebXmlRenderContext) renderContext).getWriter(); Template template...
public class class_name { @Override public void paint(final RenderContext renderContext) { if (!(renderContext instanceof WebXmlRenderContext)) { throw new SystemException("Unable to render to " + renderContext); } PrintWriter writer = ((WebXmlRenderContext) renderContext).getWriter(); Template template...
public class class_name { private static int countWildcardsOccurrences(String templateMessage, String occurrence) { if (templateMessage != null && occurrence != null) { final Pattern pattern = Pattern.compile(occurrence); final Matcher matcher = pattern.matcher(templateMessage); ...
public class class_name { private static int countWildcardsOccurrences(String templateMessage, String occurrence) { if (templateMessage != null && occurrence != null) { final Pattern pattern = Pattern.compile(occurrence); final Matcher matcher = pattern.matcher(templateMessage); ...
public class class_name { public static boolean isClass(String name) { if(name == null) { return false; } Matcher matcher = CLASS_NAME_PATTERN.matcher(name); return matcher.find(); } }
public class class_name { public static boolean isClass(String name) { if(name == null) { return false; // depends on control dependency: [if], data = [none] } Matcher matcher = CLASS_NAME_PATTERN.matcher(name); return matcher.find(); } }
public class class_name { private void uploadThumbImage(StorageNode client, InputStream inputStream, String masterFilename, FastImageFile fastImageFile) { ByteArrayInputStream thumbImageStream = null; ThumbImage thumbImage = fastImageFile.getThumbImage(); try {...
public class class_name { private void uploadThumbImage(StorageNode client, InputStream inputStream, String masterFilename, FastImageFile fastImageFile) { ByteArrayInputStream thumbImageStream = null; ThumbImage thumbImage = fastImageFile.getThumbImage(); try {...
public class class_name { public int count() { Integer result = null; if (result == null) { SimpleQuery q = this.isKeysOnly()? this : this.clone().keysOnly(); result = getDatastoreService().prepare(q.getQuery()).countEntities(fetchOptions); } return result; } }
public class class_name { public int count() { Integer result = null; if (result == null) { SimpleQuery q = this.isKeysOnly()? this : this.clone().keysOnly(); result = getDatastoreService().prepare(q.getQuery()).countEntities(fetchOptions); // depends on control dependency: [if], data = [none] } return r...
public class class_name { public synchronized JavaClassModel create(String qualifiedName) { // if a phantom exists, just convert it PhantomJavaClassModel phantom = new GraphService<>(getGraphContext(), PhantomJavaClassModel.class).getUniqueByProperty( JavaClassModel.QUALIFIED_NA...
public class class_name { public synchronized JavaClassModel create(String qualifiedName) { // if a phantom exists, just convert it PhantomJavaClassModel phantom = new GraphService<>(getGraphContext(), PhantomJavaClassModel.class).getUniqueByProperty( JavaClassModel.QUALIFIED_NA...