code
stringlengths
130
281k
code_dependency
stringlengths
182
306k
public class class_name { public static <T> AList<T> create(Iterable<T> elements) { if (elements instanceof AList) { return (AList<T>) elements; } if(elements instanceof List) { return create((List<T>) elements); } AList<T> result = nil(); for(T ...
public class class_name { public static <T> AList<T> create(Iterable<T> elements) { if (elements instanceof AList) { return (AList<T>) elements; // depends on control dependency: [if], data = [none] } if(elements instanceof List) { return create((List<T>) elements); // d...
public class class_name { public <S, T> T convertTo(ConverterKey<S,T> key, Object object) { if (object == null) { return null; } Converter<S, T> conv = findConverter(key.getInputClass(), key.getOutputClass(), key.getQualifierAnnotation() == null ? DefaultBinding.class : key.getQualifierAnnotation())...
public class class_name { public <S, T> T convertTo(ConverterKey<S,T> key, Object object) { if (object == null) { return null; // depends on control dependency: [if], data = [none] } Converter<S, T> conv = findConverter(key.getInputClass(), key.getOutputClass(), key.getQualifierAnnotation() == null ...
public class class_name { public static String normalizeSpace(String str) { str = strip(str); if(str == null || str.length() <= 2) { return str; } StringBuilder b = new StringBuilder(str.length()); for (int i = 0; i < str.length(); i++) { char c = str.cha...
public class class_name { public static String normalizeSpace(String str) { str = strip(str); if(str == null || str.length() <= 2) { return str; // depends on control dependency: [if], data = [none] } StringBuilder b = new StringBuilder(str.length()); for (int i = 0;...
public class class_name { protected String getToNames() { List<String> users = new ArrayList<String>(); Iterator<String> itIds = idsList().iterator(); while (itIds.hasNext()) { String id = itIds.next(); CmsSessionInfo session = OpenCms.getSessionManager().getSessionInfo...
public class class_name { protected String getToNames() { List<String> users = new ArrayList<String>(); Iterator<String> itIds = idsList().iterator(); while (itIds.hasNext()) { String id = itIds.next(); CmsSessionInfo session = OpenCms.getSessionManager().getSessionInfo...
public class class_name { public MessageAttributeValue withStringListValues(String... stringListValues) { if (this.stringListValues == null) { setStringListValues(new com.amazonaws.internal.SdkInternalList<String>(stringListValues.length)); } for (String ele : stringListValues) { ...
public class class_name { public MessageAttributeValue withStringListValues(String... stringListValues) { if (this.stringListValues == null) { setStringListValues(new com.amazonaws.internal.SdkInternalList<String>(stringListValues.length)); // depends on control dependency: [if], data = [none] ...
public class class_name { @Override public boolean isMandatoryDimension(String dimensionName) { if (isValidDimension(dimensionName, null)) { return mandatoryDimensionNames.contains(dimensionName.toUpperCase(Locale.ENGLISH)); } return false; } }
public class class_name { @Override public boolean isMandatoryDimension(String dimensionName) { if (isValidDimension(dimensionName, null)) { return mandatoryDimensionNames.contains(dimensionName.toUpperCase(Locale.ENGLISH)); // depends on control dependency: [if], data = [none] } ...
public class class_name { public void listAlternatives(ILexNameToken name) { for (PDefinition possible : findMatches(name)) { if (af.createPDefinitionAssistant().isFunctionOrOperation(possible)) { TypeChecker.detail("Possible", possible.getName()); } } } }
public class class_name { public void listAlternatives(ILexNameToken name) { for (PDefinition possible : findMatches(name)) { if (af.createPDefinitionAssistant().isFunctionOrOperation(possible)) { TypeChecker.detail("Possible", possible.getName()); // depends on control dependency: [if], data = [none] ...
public class class_name { protected Reader generateResourceForDebug(Reader rd, GeneratorContext context) { // Rewrite the image URL StringWriter writer = new StringWriter(); try { IOUtils.copy(rd, writer); String content = rewriteUrl(context, writer.toString()); rd = new StringReader(content); } catc...
public class class_name { protected Reader generateResourceForDebug(Reader rd, GeneratorContext context) { // Rewrite the image URL StringWriter writer = new StringWriter(); try { IOUtils.copy(rd, writer); // depends on control dependency: [try], data = [none] String content = rewriteUrl(context, writer.t...
public class class_name { public static void main(String args[]) { if (args.length != 4) { System.err.println("arguments: srcfile destfile1 destfile2 pagenumber"); } else { try { int pagenumber = Integer.parseInt(args[3]); // we create a reader f...
public class class_name { public static void main(String args[]) { if (args.length != 4) { System.err.println("arguments: srcfile destfile1 destfile2 pagenumber"); // depends on control dependency: [if], data = [none] } else { try { int pagenumber = Integer.parseInt(...
public class class_name { public static PushNotificationPayload sound(String sound) { if (sound == null) throw new IllegalArgumentException("Sound name cannot be null"); PushNotificationPayload payload = complex(); try { payload.addSound(sound); } catch (JSONException e) { } return payload; } }
public class class_name { public static PushNotificationPayload sound(String sound) { if (sound == null) throw new IllegalArgumentException("Sound name cannot be null"); PushNotificationPayload payload = complex(); try { payload.addSound(sound); // depends on control dependency: [try], data = [none] } ...
public class class_name { public void prepare(String sql, com.couchbase.lite.internal.database.sqlite.SQLiteStatementInfo outStatementInfo) { if (sql == null) { throw new IllegalArgumentException("sql must not be null."); } final int cookie = mRecentOperations.beginOperation("prepa...
public class class_name { public void prepare(String sql, com.couchbase.lite.internal.database.sqlite.SQLiteStatementInfo outStatementInfo) { if (sql == null) { throw new IllegalArgumentException("sql must not be null."); } final int cookie = mRecentOperations.beginOperation("prepa...
public class class_name { private void inject2OneConf(String key, DisconfCenterItem disconfCenterItem) { if (disconfCenterItem == null) { return; } try { Object object = null; // // 静态 // if (!disconfCenterItem.isStatic...
public class class_name { private void inject2OneConf(String key, DisconfCenterItem disconfCenterItem) { if (disconfCenterItem == null) { return; // depends on control dependency: [if], data = [none] } try { Object object = null; // // 静态 ...
public class class_name { private String getCustomHandler(WaybackException exception, WaybackRequest wbRequest) { if((exception instanceof ResourceNotInArchiveException) && wbRequest.isReplayRequest()) { String url = wbRequest.getRequestUrl(); String host = UrlOperations.urlToHost(url); if(hosts.cont...
public class class_name { private String getCustomHandler(WaybackException exception, WaybackRequest wbRequest) { if((exception instanceof ResourceNotInArchiveException) && wbRequest.isReplayRequest()) { String url = wbRequest.getRequestUrl(); String host = UrlOperations.urlToHost(url); if(hosts.cont...
public class class_name { private void calculateValueTextHeight() { Rect valueRect = new Rect(); Rect legendRect = new Rect(); String str = Utils.getFloatString(mFocusedPoint.getValue(), mShowDecimal) + (!mIndicatorTextUnit.isEmpty() ? " " + mIndicatorTextUnit : ""); // calculate the b...
public class class_name { private void calculateValueTextHeight() { Rect valueRect = new Rect(); Rect legendRect = new Rect(); String str = Utils.getFloatString(mFocusedPoint.getValue(), mShowDecimal) + (!mIndicatorTextUnit.isEmpty() ? " " + mIndicatorTextUnit : ""); // calculate the b...
public class class_name { public Iterable<String> getAllSortedTypeNames() { synchronized (lock) { if (lazyAllSortedTypeNames == null) { lazyAllSortedTypeNames = Stream.concat(BUILTIN_TYPES.keySet().stream(), descriptors.keySet().stream()) .sorted() .collect...
public class class_name { public Iterable<String> getAllSortedTypeNames() { synchronized (lock) { if (lazyAllSortedTypeNames == null) { lazyAllSortedTypeNames = Stream.concat(BUILTIN_TYPES.keySet().stream(), descriptors.keySet().stream()) .sorted() .collect...
public class class_name { byte[] encodeLikeAnEngineer(final byte[] input) { if (input == null) { throw new NullPointerException("input"); } final byte[] output = new byte[input.length << 1]; int index = 0; // index in output for (int i = 0; i < input.length; i++) ...
public class class_name { byte[] encodeLikeAnEngineer(final byte[] input) { if (input == null) { throw new NullPointerException("input"); } final byte[] output = new byte[input.length << 1]; int index = 0; // index in output for (int i = 0; i < input.length; i++) ...
public class class_name { public void rollback(final OMicroTransaction microTransaction) { try { checkOpenness(); stateLock.acquireReadLock(); try { try { checkOpenness(); if (transaction.get() == null) { return; } if (transaction.get(...
public class class_name { public void rollback(final OMicroTransaction microTransaction) { try { checkOpenness(); // depends on control dependency: [try], data = [none] stateLock.acquireReadLock(); // depends on control dependency: [try], data = [none] try { try { checkOpenness(...
public class class_name { public void closestPoint(Point3D_F64 P , Point3D_F64 closestPt ) { // D = B-P GeometryMath_F64.sub(B, P, D); a = E0.dot(E0); b = E0.dot(E1); c = E1.dot(E1); d = E0.dot(D); e = E1.dot(D); double det = a * c - b * b; s = b * e - c * d; t = b * d - a * e; if (s + t <= d...
public class class_name { public void closestPoint(Point3D_F64 P , Point3D_F64 closestPt ) { // D = B-P GeometryMath_F64.sub(B, P, D); a = E0.dot(E0); b = E0.dot(E1); c = E1.dot(E1); d = E0.dot(D); e = E1.dot(D); double det = a * c - b * b; s = b * e - c * d; t = b * d - a * e; if (s + t <= d...
public class class_name { public static double acos(double x) { if (x != x) { return Double.NaN; } if (x > 1.0 || x < -1.0) { return Double.NaN; } if (x == -1.0) { return Math.PI; } if (x == 1.0) { return 0.0; } if (x == ...
public class class_name { public static double acos(double x) { if (x != x) { return Double.NaN; // depends on control dependency: [if], data = [none] } if (x > 1.0 || x < -1.0) { return Double.NaN; // depends on control dependency: [if], data = [none] } if (x == -1....
public class class_name { public void contextInitialized(ServletContextEvent servletContextEvent) { ServletContext ctx = servletContextEvent.getServletContext(); ctx.log("******* Mounting up GreenPepper-Server"); try { URL url = GPServletContextListener.class.getClassLo...
public class class_name { public void contextInitialized(ServletContextEvent servletContextEvent) { ServletContext ctx = servletContextEvent.getServletContext(); ctx.log("******* Mounting up GreenPepper-Server"); try { URL url = GPServletContextListener.class.getClassLo...
public class class_name { public CreatePipelineResponse createPipeline(CreatePipelineRequest request) { checkNotNull(request, "The parameter request should NOT be null."); checkStringNotEmpty(request.getPipelineName(), "The parameter pipelineName should NOT be null or empty string."); ...
public class class_name { public CreatePipelineResponse createPipeline(CreatePipelineRequest request) { checkNotNull(request, "The parameter request should NOT be null."); checkStringNotEmpty(request.getPipelineName(), "The parameter pipelineName should NOT be null or empty string."); ...
public class class_name { public LocalTime minusSeconds(int seconds) { if (seconds == 0) { return this; } long instant = getChronology().seconds().subtract(getLocalMillis(), seconds); return withLocalMillis(instant); } }
public class class_name { public LocalTime minusSeconds(int seconds) { if (seconds == 0) { return this; // depends on control dependency: [if], data = [none] } long instant = getChronology().seconds().subtract(getLocalMillis(), seconds); return withLocalMillis(instant); ...
public class class_name { protected void findCenter() { center = new float[]{0, 0}; int length = points.length; for(int i=0;i<length;i+=2) { center[0] += points[i]; center[1] += points[i + 1]; } center[0] /= (length / 2); center[1] /= (len...
public class class_name { protected void findCenter() { center = new float[]{0, 0}; int length = points.length; for(int i=0;i<length;i+=2) { center[0] += points[i]; // depends on control dependency: [for], data = [i] center[1] += points[i + 1]; // depends on contro...
public class class_name { public static ZParams.Aggregate getAggregate(ZParams params) { Collection<byte[]> collect = params.getParams(); Iterator<byte[]> iterator = collect.iterator(); String key = new String(iterator.next()); if (!"aggregate".equals(key)) { return ZParams.Aggregate.SUM; } Strin...
public class class_name { public static ZParams.Aggregate getAggregate(ZParams params) { Collection<byte[]> collect = params.getParams(); Iterator<byte[]> iterator = collect.iterator(); String key = new String(iterator.next()); if (!"aggregate".equals(key)) { return ZParams.Aggregate.SUM; // depends o...
public class class_name { public void emptyManagedConnectionPool(ManagedConnectionPool mcp) { if (pools.values().remove(mcp)) { mcp.shutdown(); if (Tracer.isEnabled()) Tracer.destroyManagedConnectionPool(poolConfiguration.getId(), mcp); } } }
public class class_name { public void emptyManagedConnectionPool(ManagedConnectionPool mcp) { if (pools.values().remove(mcp)) { mcp.shutdown(); // depends on control dependency: [if], data = [none] if (Tracer.isEnabled()) Tracer.destroyManagedConnectionPool(poolConfigurati...
public class class_name { public static LocalDate minDate(final LocalDate date0, final LocalDate date1) { if (date1 == null) { return date0; } if (date0 == null) { return date1; } if (date1.isBefore(date0)) { return date1; ...
public class class_name { public static LocalDate minDate(final LocalDate date0, final LocalDate date1) { if (date1 == null) { return date0; // depends on control dependency: [if], data = [none] } if (date0 == null) { return date1; // depends on control depen...
public class class_name { @Nonnull static String headerLetter(final int i) { final int flags = DATA_MODEL.getDataFlags(i); // TODO: The "magic" of how to interpret flags must be in DataModel, not here. if (((flags >> 7) & 3) == 1) { return Character.toString(ENCODE_CHARS[(flags...
public class class_name { @Nonnull static String headerLetter(final int i) { final int flags = DATA_MODEL.getDataFlags(i); // TODO: The "magic" of how to interpret flags must be in DataModel, not here. if (((flags >> 7) & 3) == 1) { return Character.toString(ENCODE_CHARS[(flags...
public class class_name { @Override public TaskBase getTask(ProcessDefinition pd, long taskId) { for (TaskBase task: pd.getTasks()) { if (task.getTaskId() == taskId) { return task; } } return null; } }
public class class_name { @Override public TaskBase getTask(ProcessDefinition pd, long taskId) { for (TaskBase task: pd.getTasks()) { if (task.getTaskId() == taskId) { return task; // depends on control dependency: [if], data = [none] } } return null; } }
public class class_name { public static void main(String[] args){ PDBFileReader pdbr = new PDBFileReader(); pdbr.setPath("/tmp/"); //String pdb1 = "1crl"; //String pdb2 = "1ede"; String pdb1 = "1buz"; String pdb2 = "1ali"; //String pdb1 = "5pti"; //String pdb2 = "5pti"; // NO NEED TO DO CHANGE ...
public class class_name { public static void main(String[] args){ PDBFileReader pdbr = new PDBFileReader(); pdbr.setPath("/tmp/"); //String pdb1 = "1crl"; //String pdb2 = "1ede"; String pdb1 = "1buz"; String pdb2 = "1ali"; //String pdb1 = "5pti"; //String pdb2 = "5pti"; // NO NEED TO DO CHANGE ...
public class class_name { public static byte[] concat(Bytes... listOfBytes) { int offset = 0; int size = 0; for (Bytes b : listOfBytes) { size += b.length() + checkVlen(b.length()); } byte[] data = new byte[size]; for (Bytes b : listOfBytes) { offset = writeVint(data, offset, b.le...
public class class_name { public static byte[] concat(Bytes... listOfBytes) { int offset = 0; int size = 0; for (Bytes b : listOfBytes) { size += b.length() + checkVlen(b.length()); // depends on control dependency: [for], data = [b] } byte[] data = new byte[size]; for (Bytes b : listOf...
public class class_name { private int max(Map<Integer, ModifiableDBIDs> candidates) { int maxDim = -1, size = -1; for(Integer nextDim : candidates.keySet()) { int nextSet = candidates.get(nextDim).size(); if(size < nextSet) { size = nextSet; maxDim = nextDim; } } retur...
public class class_name { private int max(Map<Integer, ModifiableDBIDs> candidates) { int maxDim = -1, size = -1; for(Integer nextDim : candidates.keySet()) { int nextSet = candidates.get(nextDim).size(); if(size < nextSet) { size = nextSet; // depends on control dependency: [if], data = [n...
public class class_name { public OutlierResult run(Relation<O> relation) { final DistanceQuery<O> distanceQuery = relation.getDistanceQuery(getDistanceFunction()); final KNNQuery<O> knnQuery = relation.getKNNQuery(distanceQuery, k); FiniteProgress prog = LOG.isVerbose() ? new FiniteProgress("kNN distance ...
public class class_name { public OutlierResult run(Relation<O> relation) { final DistanceQuery<O> distanceQuery = relation.getDistanceQuery(getDistanceFunction()); final KNNQuery<O> knnQuery = relation.getKNNQuery(distanceQuery, k); FiniteProgress prog = LOG.isVerbose() ? new FiniteProgress("kNN distance ...
public class class_name { @Override public void debug(Object object) { if (isDebugEnabled()) { if (object instanceof Throwable) { debugThrowable((Throwable) object); } else { debugString("" + object); } } } }
public class class_name { @Override public void debug(Object object) { if (isDebugEnabled()) { if (object instanceof Throwable) { debugThrowable((Throwable) object); // depends on control dependency: [if], data = [none] } else { debugString("" + objec...
public class class_name { public boolean offer(T t) { if (t == null) { onError(new NullPointerException("onNext called with null. Null values are generally not allowed in 2.x operators and sources.")); return true; } PublishSubscription<T>[] array = subscribers.get(); ...
public class class_name { public boolean offer(T t) { if (t == null) { onError(new NullPointerException("onNext called with null. Null values are generally not allowed in 2.x operators and sources.")); // depends on control dependency: [if], data = [none] return true; // depends on cont...
public class class_name { private void handleListMechsResponse(ChannelHandlerContext ctx, FullBinaryMemcacheResponse msg) throws Exception { String remote = ctx.channel().remoteAddress().toString(); String[] supportedMechanisms = msg.content().toString(CharsetUtil.UTF_8).split(" "); if (support...
public class class_name { private void handleListMechsResponse(ChannelHandlerContext ctx, FullBinaryMemcacheResponse msg) throws Exception { String remote = ctx.channel().remoteAddress().toString(); String[] supportedMechanisms = msg.content().toString(CharsetUtil.UTF_8).split(" "); if (support...
public class class_name { public static boolean showedToast(CharSequence message) { ShadowApplication shadowApplication = Shadow.extract(RuntimeEnvironment.application); for (Toast toast : shadowApplication.getShownToasts()) { ShadowToast shadowToast = Shadow.extract(toast); String text = shadowToa...
public class class_name { public static boolean showedToast(CharSequence message) { ShadowApplication shadowApplication = Shadow.extract(RuntimeEnvironment.application); for (Toast toast : shadowApplication.getShownToasts()) { ShadowToast shadowToast = Shadow.extract(toast); String text = shadowToa...
public class class_name { @Override public void persistJoinTable(JoinTableData joinTableData) { String tableName = joinTableData.getJoinTableName(); String inverseJoinColumn = joinTableData.getInverseJoinColumnName(); String joinColumn = joinTableData.getJoinColumnName(); Map<O...
public class class_name { @Override public void persistJoinTable(JoinTableData joinTableData) { String tableName = joinTableData.getJoinTableName(); String inverseJoinColumn = joinTableData.getInverseJoinColumnName(); String joinColumn = joinTableData.getJoinColumnName(); Map<O...
public class class_name { public static boolean allNotNull(final Object... values) { if (values == null) { return false; } for (final Object val : values) { if (val == null) { return false; } } return true; } }
public class class_name { public static boolean allNotNull(final Object... values) { if (values == null) { return false; // depends on control dependency: [if], data = [none] } for (final Object val : values) { if (val == null) { return false; // depends...
public class class_name { public void startElement(String uri, String name, String qName, Attributes atts) { boolean isDebug = logger.isDebugEnabled(); try { switch (getLiteralId(qName)) { case JDBC_CONNECTION_DESCRIPTOR: {...
public class class_name { public void startElement(String uri, String name, String qName, Attributes atts) { boolean isDebug = logger.isDebugEnabled(); try { switch (getLiteralId(qName)) { case JDBC_CONNECTION_DESCRIPTOR: {...
public class class_name { protected Format getMainFormat(CmsObject cms, I_CmsXmlContentLocation location, CmsResource functionRes) { I_CmsXmlContentValueLocation jspLoc = location.getSubValue("FunctionProvider"); CmsUUID structureId = jspLoc.asId(cms); I_CmsXmlContentValueLocation containe...
public class class_name { protected Format getMainFormat(CmsObject cms, I_CmsXmlContentLocation location, CmsResource functionRes) { I_CmsXmlContentValueLocation jspLoc = location.getSubValue("FunctionProvider"); CmsUUID structureId = jspLoc.asId(cms); I_CmsXmlContentValueLocation containe...
public class class_name { public static boolean xor(boolean... array) { if (ArrayUtil.isEmpty(array)) { throw new IllegalArgumentException("The Array must not be empty"); } boolean result = false; for (final boolean element : array) { result ^= element; } return result; } }
public class class_name { public static boolean xor(boolean... array) { if (ArrayUtil.isEmpty(array)) { throw new IllegalArgumentException("The Array must not be empty"); } boolean result = false; for (final boolean element : array) { result ^= element; // depends on control dependency: [for], d...
public class class_name { @Override public SparseTensor relabelDimensions(Map<Integer, Integer> relabeling) { int[] newDimensions = new int[numDimensions()]; int[] dimensionNums = getDimensionNumbers(); for (int i = 0; i < dimensionNums.length; i++) { Preconditions.checkArgument(relabeling.contains...
public class class_name { @Override public SparseTensor relabelDimensions(Map<Integer, Integer> relabeling) { int[] newDimensions = new int[numDimensions()]; int[] dimensionNums = getDimensionNumbers(); for (int i = 0; i < dimensionNums.length; i++) { Preconditions.checkArgument(relabeling.contains...
public class class_name { private Grid getGridLayout(int count) { Grid grid = new Grid(); int x, y, z, modolo = 0; x = count % 3; y = count % 5; z = count % 7; if ((z <= y) && (z <= x)) { modolo = 7; } else if ((y <= z) && (y <= x)) { ...
public class class_name { private Grid getGridLayout(int count) { Grid grid = new Grid(); int x, y, z, modolo = 0; x = count % 3; y = count % 5; z = count % 7; if ((z <= y) && (z <= x)) { modolo = 7; // depends on control dependency: [if], data = [n...
public class class_name { static void getLuma02UnsafeNoRound(byte[] pic, int picW, int picH, int[] blk, int blkOff, int blkStride, int x, int y, int blkW, int blkH) { int maxH = picH - 1; int maxW = picW - 1; for (int j = 0; j < blkH; j++) { int offP0 = clip(y + j - 2, ...
public class class_name { static void getLuma02UnsafeNoRound(byte[] pic, int picW, int picH, int[] blk, int blkOff, int blkStride, int x, int y, int blkW, int blkH) { int maxH = picH - 1; int maxW = picW - 1; for (int j = 0; j < blkH; j++) { int offP0 = clip(y + j - 2, ...
public class class_name { public Configuration useDevices(@NonNull int... devices) { List<Integer> usableDevices = new ArrayList<>(); for (int device : devices) { if (!availableDevices.contains(device)) { log.warn("Non-existent device [{}] requested, ignoring...", device); ...
public class class_name { public Configuration useDevices(@NonNull int... devices) { List<Integer> usableDevices = new ArrayList<>(); for (int device : devices) { if (!availableDevices.contains(device)) { log.warn("Non-existent device [{}] requested, ignoring...", device); /...
public class class_name { public void info(Marker marker, String format, Object arg) { if (!logger.isInfoEnabled(marker)) return; if (instanceofLAL) { String formattedMessage = MessageFormatter.format(format, arg).getMessage(); ((LocationAwareLogger) logger).log(mark...
public class class_name { public void info(Marker marker, String format, Object arg) { if (!logger.isInfoEnabled(marker)) return; if (instanceofLAL) { String formattedMessage = MessageFormatter.format(format, arg).getMessage(); ((LocationAwareLogger) logger).log(mark...
public class class_name { @InternalApi public Row createRowFromProto(com.google.bigtable.v2.Row row) { RowBuilder<Row> builder = createRowBuilder(); builder.startRow(row.getKey()); for (Family family : row.getFamiliesList()) { for (Column column : family.getColumnsList()) { for (Cell cell ...
public class class_name { @InternalApi public Row createRowFromProto(com.google.bigtable.v2.Row row) { RowBuilder<Row> builder = createRowBuilder(); builder.startRow(row.getKey()); for (Family family : row.getFamiliesList()) { for (Column column : family.getColumnsList()) { for (Cell cell ...
public class class_name { @Override public RecordMaterializer<T> prepareForRead(Configuration configuration, Map<String, String> keyValueMetaData, MessageType fileSchema, ReadSupport.ReadContext readContext) { ThriftMetaD...
public class class_name { @Override public RecordMaterializer<T> prepareForRead(Configuration configuration, Map<String, String> keyValueMetaData, MessageType fileSchema, ReadSupport.ReadContext readContext) { ThriftMetaD...
public class class_name { public java.util.List<TrafficPolicyInstance> getTrafficPolicyInstances() { if (trafficPolicyInstances == null) { trafficPolicyInstances = new com.amazonaws.internal.SdkInternalList<TrafficPolicyInstance>(); } return trafficPolicyInstances; } }
public class class_name { public java.util.List<TrafficPolicyInstance> getTrafficPolicyInstances() { if (trafficPolicyInstances == null) { trafficPolicyInstances = new com.amazonaws.internal.SdkInternalList<TrafficPolicyInstance>(); // depends on control dependency: [if], data = [none] } ...
public class class_name { void writeInterfaces(final XMLExtendedStreamWriter writer, final ModelNode modelNode) throws XMLStreamException { writer.writeStartElement(Element.INTERFACES.getLocalName()); final Set<String> interfaces = modelNode.keys(); for (String ifaceName : interfaces) { ...
public class class_name { void writeInterfaces(final XMLExtendedStreamWriter writer, final ModelNode modelNode) throws XMLStreamException { writer.writeStartElement(Element.INTERFACES.getLocalName()); final Set<String> interfaces = modelNode.keys(); for (String ifaceName : interfaces) { ...
public class class_name { @Override public int discriminate(VirtualConnection vc, ConnectionLink currentChannel, String inputChannelName) { Channel channel = null; String channelName = null; String matchString = (inputChannelName + ChannelDataImpl.CHILD_STRING); int result = FAILURE...
public class class_name { @Override public int discriminate(VirtualConnection vc, ConnectionLink currentChannel, String inputChannelName) { Channel channel = null; String channelName = null; String matchString = (inputChannelName + ChannelDataImpl.CHILD_STRING); int result = FAILURE...
public class class_name { public static void copy(InputStream inputStream, final OutputStream outputStream, byte[] buffer, final StreamHandler addtionalHandling) throws IOException { LOGGER.trace("copy(InputStream, OutputStream, byte[], StreamHandler)"); LOGGER.debug("buffer size: {} bytes", (buffer!=null) ? b...
public class class_name { public static void copy(InputStream inputStream, final OutputStream outputStream, byte[] buffer, final StreamHandler addtionalHandling) throws IOException { LOGGER.trace("copy(InputStream, OutputStream, byte[], StreamHandler)"); LOGGER.debug("buffer size: {} bytes", (buffer!=null) ? b...
public class class_name { public Status initSlicedFindPath(long startRef, long endRef, float[] startPos, float[] endPos, QueryFilter filter, int options) { // Init path state. m_query = new QueryData(); m_query.status = Status.FAILURE; m_query.startRef = startRef; m_...
public class class_name { public Status initSlicedFindPath(long startRef, long endRef, float[] startPos, float[] endPos, QueryFilter filter, int options) { // Init path state. m_query = new QueryData(); m_query.status = Status.FAILURE; m_query.startRef = startRef; m_...
public class class_name { public URL getURL(final String pUrl) { try { return new URL(pUrl); } catch (final MalformedURLException e) { throw new ConversionException("Cannot parse URL from string " + pUrl, e); } } }
public class class_name { public URL getURL(final String pUrl) { try { return new URL(pUrl); // depends on control dependency: [try], data = [none] } catch (final MalformedURLException e) { throw new ConversionException("Cannot parse URL from string " + pUrl, e); } // d...
public class class_name { public EnvEntryType<InterceptorType<T>> getOrCreateEnvEntry() { List<Node> nodeList = childNode.get("env-entry"); if (nodeList != null && nodeList.size() > 0) { return new EnvEntryTypeImpl<InterceptorType<T>>(this, "env-entry", childNode, nodeList.get(0)); ...
public class class_name { public EnvEntryType<InterceptorType<T>> getOrCreateEnvEntry() { List<Node> nodeList = childNode.get("env-entry"); if (nodeList != null && nodeList.size() > 0) { return new EnvEntryTypeImpl<InterceptorType<T>>(this, "env-entry", childNode, nodeList.get(0)); // de...
public class class_name { private void grow(final int minCapacity) { final int oldCapacity = buffer.length; int newCapacity = oldCapacity << 1; if (newCapacity - minCapacity < 0) { // special case, min capacity is larger then a grow newCapacity = minCapacity + 512; } buffer = Arrays.copyOf(buffer, newC...
public class class_name { private void grow(final int minCapacity) { final int oldCapacity = buffer.length; int newCapacity = oldCapacity << 1; if (newCapacity - minCapacity < 0) { // special case, min capacity is larger then a grow newCapacity = minCapacity + 512; // depends on control dependency: [if], d...
public class class_name { public long waitForZkTxId(long zkTxId, Object timeout) throws TimeoutException, InterruptedException { long endTime = ClockUtils.toEndTime(clock, timeout); synchronized(_lock) { while(_lastZkTxId < zkTxId) { ConcurrentUtils.awaitUntil(clock, _lock, endTi...
public class class_name { public long waitForZkTxId(long zkTxId, Object timeout) throws TimeoutException, InterruptedException { long endTime = ClockUtils.toEndTime(clock, timeout); synchronized(_lock) { while(_lastZkTxId < zkTxId) { ConcurrentUtils.awaitUntil(clock, _lock, endTi...
public class class_name { public Map<G, Integer> getGroupSizes(Predicate<G> predicate) { Timer.Context ctx = getGroupSizesTimer.time(); try { return this.taskQueue.getGroupSizes(predicate); } finally { ctx.stop(); } } }
public class class_name { public Map<G, Integer> getGroupSizes(Predicate<G> predicate) { Timer.Context ctx = getGroupSizesTimer.time(); try { return this.taskQueue.getGroupSizes(predicate); // depends on control dependency: [try], data = [none] } finally { ctx.stop(); ...
public class class_name { public void marshall(DocumentLocation documentLocation, ProtocolMarshaller protocolMarshaller) { if (documentLocation == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(docu...
public class class_name { public void marshall(DocumentLocation documentLocation, ProtocolMarshaller protocolMarshaller) { if (documentLocation == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(docu...
public class class_name { public final DSLMapParser.key_chunk_return key_chunk() throws RecognitionException { DSLMapParser.key_chunk_return retval = new DSLMapParser.key_chunk_return(); retval.start = input.LT(1); Object root_0 = null; ParserRuleReturnScope literal17 =null; try { // src/main/resource...
public class class_name { public final DSLMapParser.key_chunk_return key_chunk() throws RecognitionException { DSLMapParser.key_chunk_return retval = new DSLMapParser.key_chunk_return(); retval.start = input.LT(1); Object root_0 = null; ParserRuleReturnScope literal17 =null; try { // src/main/resource...
public class class_name { private void renderScopeContent(final ContextTreeConfig config, final TreeNode root, final Class<?> scope) { renderScopeItems(config, root, scope); final List<Class<Object>> bundles = service.getData() .getItems(Filters.registeredBy(scope).and(Filters.type(Con...
public class class_name { private void renderScopeContent(final ContextTreeConfig config, final TreeNode root, final Class<?> scope) { renderScopeItems(config, root, scope); final List<Class<Object>> bundles = service.getData() .getItems(Filters.registeredBy(scope).and(Filters.type(Con...
public class class_name { private boolean investigateHandlesTypes(ServletContainerInitializer sci, HashMap<ServletContainerInitializer, Class[]> handleTypesHashMap, HashMap<ServletContainerInitializer, HashSet<Class<?>>> onStartupHashMap){ boolean needToScan = false; try { HandlesTypes hand...
public class class_name { private boolean investigateHandlesTypes(ServletContainerInitializer sci, HashMap<ServletContainerInitializer, Class[]> handleTypesHashMap, HashMap<ServletContainerInitializer, HashSet<Class<?>>> onStartupHashMap){ boolean needToScan = false; try { HandlesTypes hand...
public class class_name { public int numOccurrences(int year, int month, int day) { DateTimeFormatter parser = ISODateTimeFormat.date(); DateTime date = parser.parseDateTime(year + "-" + month + "-" + "01"); Calendar cal = Calendar.getInstance(); cal.setTime(date.toDate()); Greg...
public class class_name { public int numOccurrences(int year, int month, int day) { DateTimeFormatter parser = ISODateTimeFormat.date(); DateTime date = parser.parseDateTime(year + "-" + month + "-" + "01"); Calendar cal = Calendar.getInstance(); cal.setTime(date.toDate()); Greg...
public class class_name { public void unproxyRemoteObject (DObjectAddress addr) { Tuple<Subscriber<?>, DObject> bits = _proxies.remove(addr); if (bits == null) { log.warning("Requested to clear unknown proxy", "addr", addr); return; } // If it's local, just ...
public class class_name { public void unproxyRemoteObject (DObjectAddress addr) { Tuple<Subscriber<?>, DObject> bits = _proxies.remove(addr); if (bits == null) { log.warning("Requested to clear unknown proxy", "addr", addr); // depends on control dependency: [if], data = [none] ...
public class class_name { public void processContent(byte[] contentBytes, PdfDictionary resources) { this.resources.push(resources); try { PdfContentParser ps = new PdfContentParser(new PRTokeniser(contentBytes)); ArrayList operands = new ArrayList(); while (ps.parse(operands).size() > 0) { PdfL...
public class class_name { public void processContent(byte[] contentBytes, PdfDictionary resources) { this.resources.push(resources); try { PdfContentParser ps = new PdfContentParser(new PRTokeniser(contentBytes)); ArrayList operands = new ArrayList(); while (ps.parse(operands).size() > 0) { PdfL...
public class class_name { public static File writeStringToTempFileNoExceptions(String contents, String path, String encoding) { OutputStream writer = null; File tmp = null; try{ tmp = File.createTempFile(path,".tmp"); if (path.endsWith(".gz")) { writer = new GZIPOutputStream(new FileOutputStream(...
public class class_name { public static File writeStringToTempFileNoExceptions(String contents, String path, String encoding) { OutputStream writer = null; File tmp = null; try{ tmp = File.createTempFile(path,".tmp"); // depends on control dependency: [try], data = [none] if (path.endsWith(".gz")) { ...
public class class_name { private boolean checkVersion(final KNXnetIPHeader h) { if (h.getVersion() != KNXNETIP_VERSION_10) { status = "protocol version changed"; close(CloseEvent.INTERNAL, "protocol version changed", LogLevel.ERROR, null); return false; } return true; } }
public class class_name { private boolean checkVersion(final KNXnetIPHeader h) { if (h.getVersion() != KNXNETIP_VERSION_10) { status = "protocol version changed"; // depends on control dependency: [if], data = [none] close(CloseEvent.INTERNAL, "protocol version changed", LogLevel.ERROR, null); // depends on c...
public class class_name { private boolean pointPointPredicates_(int cluster, int id_a, int id_b) { boolean bRelationKnown = true; if (m_perform_predicates[MatrixPredicate.InteriorInterior]) { interiorPointInteriorPoint_(cluster, id_a, id_b); bRelationKnown &= isPredicat...
public class class_name { private boolean pointPointPredicates_(int cluster, int id_a, int id_b) { boolean bRelationKnown = true; if (m_perform_predicates[MatrixPredicate.InteriorInterior]) { interiorPointInteriorPoint_(cluster, id_a, id_b); // depends on control dependency: [if], ...
public class class_name { public EClass getIfcRectangleHollowProfileDef() { if (ifcRectangleHollowProfileDefEClass == null) { ifcRectangleHollowProfileDefEClass = (EClass) EPackage.Registry.INSTANCE .getEPackage(Ifc2x3tc1Package.eNS_URI).getEClassifiers().get(426); } return ifcRectangleHollowProfile...
public class class_name { public EClass getIfcRectangleHollowProfileDef() { if (ifcRectangleHollowProfileDefEClass == null) { ifcRectangleHollowProfileDefEClass = (EClass) EPackage.Registry.INSTANCE .getEPackage(Ifc2x3tc1Package.eNS_URI).getEClassifiers().get(426); // depends on control dependency: [if],...
public class class_name { public void setIncrementalMode(boolean incremental) { if (this.incrementalMode == incremental) // already set return; LOGGER_.trace("set incremental mode: " + incremental); this.incrementalMode = incremental; if (!incremental) { clearDeletedRules(); commitAddedRules(); ...
public class class_name { public void setIncrementalMode(boolean incremental) { if (this.incrementalMode == incremental) // already set return; LOGGER_.trace("set incremental mode: " + incremental); this.incrementalMode = incremental; if (!incremental) { clearDeletedRules(); // depends on control depe...
public class class_name { public Pair<Expr[], Context> translateExpressionsWithChecks(Tuple<WyilFile.Expr> exprs, Context context) { // Generate expression preconditions as verification conditions for (WyilFile.Expr expr : exprs) { checkExpressionPreconditions(expr, context); } // Gather up any postconditio...
public class class_name { public Pair<Expr[], Context> translateExpressionsWithChecks(Tuple<WyilFile.Expr> exprs, Context context) { // Generate expression preconditions as verification conditions for (WyilFile.Expr expr : exprs) { checkExpressionPreconditions(expr, context); // depends on control dependency: [...
public class class_name { private void loadPlugins() { // Read the plugin class names from well known resources try { Enumeration<URL> pluginResources = classLoader.get().getResources( "META-INF/services/org.springsource.reloading.agent.Plugins"); while (pluginResources.hasMoreElements()) { URL plug...
public class class_name { private void loadPlugins() { // Read the plugin class names from well known resources try { Enumeration<URL> pluginResources = classLoader.get().getResources( "META-INF/services/org.springsource.reloading.agent.Plugins"); while (pluginResources.hasMoreElements()) { URL plug...
public class class_name { private Map<String, Factory> getVisibleIDMap() { synchronized (this) { // or idcache-only lock? if (idcache == null) { try { factoryLock.acquireRead(); Map<String, Factory> mutableMap = new HashMap<String, Factory>();...
public class class_name { private Map<String, Factory> getVisibleIDMap() { synchronized (this) { // or idcache-only lock? if (idcache == null) { try { factoryLock.acquireRead(); // depends on control dependency: [try], data = [none] Map<String...
public class class_name { public void marshall(SetFileModeEntry setFileModeEntry, ProtocolMarshaller protocolMarshaller) { if (setFileModeEntry == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(setF...
public class class_name { public void marshall(SetFileModeEntry setFileModeEntry, ProtocolMarshaller protocolMarshaller) { if (setFileModeEntry == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(setF...
public class class_name { @Override public boolean checkResourceConstraints(String contextId, Object httpServletRequest, Permission webPerm, Subject subject) { HttpServletRequest req = null; if (httpServletRequest != null) { try { req = (HttpServletRequest) httpServletRe...
public class class_name { @Override public boolean checkResourceConstraints(String contextId, Object httpServletRequest, Permission webPerm, Subject subject) { HttpServletRequest req = null; if (httpServletRequest != null) { try { req = (HttpServletRequest) httpServletRe...
public class class_name { public static void initialize( Context context, @Nullable ImagePipelineConfig imagePipelineConfig, @Nullable DraweeConfig draweeConfig) { if (FrescoSystrace.isTracing()) { FrescoSystrace.beginSection("Fresco#initialize"); } if (sIsInitialized) { FLog....
public class class_name { public static void initialize( Context context, @Nullable ImagePipelineConfig imagePipelineConfig, @Nullable DraweeConfig draweeConfig) { if (FrescoSystrace.isTracing()) { FrescoSystrace.beginSection("Fresco#initialize"); // depends on control dependency: [if], dat...
public class class_name { public static void runExample( AdManagerServices adManagerServices, AdManagerSession session, long reconciliationReportId) throws RemoteException { ReconciliationOrderReportServiceInterface reconciliationOrderReportService = adManagerServices.get(session, Reconciliatio...
public class class_name { public static void runExample( AdManagerServices adManagerServices, AdManagerSession session, long reconciliationReportId) throws RemoteException { ReconciliationOrderReportServiceInterface reconciliationOrderReportService = adManagerServices.get(session, Reconciliatio...
public class class_name { @Override public void onContainerStopped(final ContainerId containerId) { final boolean hasContainer = this.containers.hasContainer(containerId.toString()); if (hasContainer) { this.reefEventHandlers.onResourceStatus( ResourceStatusEventImpl.newBuilder() ...
public class class_name { @Override public void onContainerStopped(final ContainerId containerId) { final boolean hasContainer = this.containers.hasContainer(containerId.toString()); if (hasContainer) { this.reefEventHandlers.onResourceStatus( ResourceStatusEventImpl.newBuilder() ...
public class class_name { public void addResponseHeaders(final HttpServletResponse servletResponse) { final String receivedParam = ofNullable(params.get("received")).orElse(""); final List<String> includes = asList(ofNullable(params.get("include")).orElse(" ").split(" ")); final List<String> o...
public class class_name { public void addResponseHeaders(final HttpServletResponse servletResponse) { final String receivedParam = ofNullable(params.get("received")).orElse(""); final List<String> includes = asList(ofNullable(params.get("include")).orElse(" ").split(" ")); final List<String> o...
public class class_name { @SuppressWarnings("unchecked") public boolean postValidateInfoTopic(final InfoTopic infoTopic, final ContentSpec contentSpec) { // Check if the app should be shutdown if (isShuttingDown.get()) { shutdown.set(true); return false; } b...
public class class_name { @SuppressWarnings("unchecked") public boolean postValidateInfoTopic(final InfoTopic infoTopic, final ContentSpec contentSpec) { // Check if the app should be shutdown if (isShuttingDown.get()) { shutdown.set(true); // depends on control dependency: [if], data =...
public class class_name { @Override public Map<String, Object> toSource() { Map<String, Object> sourceMap = new HashMap<>(); if (configId != null) { addFieldToSource(sourceMap, "configId", configId); } if (errorCount != null) { addFieldToSource(sourceMap, "er...
public class class_name { @Override public Map<String, Object> toSource() { Map<String, Object> sourceMap = new HashMap<>(); if (configId != null) { addFieldToSource(sourceMap, "configId", configId); // depends on control dependency: [if], data = [none] } if (errorCount ...
public class class_name { public List<RawEntry> toRawList(){ if (t == null || t.size() == 0){ return Collections.emptyList(); } List<RawEntry> result = new ArrayList<RawEntry>(t.size()); int lastDuration = 0; for (int i = 0; i < t.size(); i ++){ long timestamp = t.get(i); int duration = -1; if...
public class class_name { public List<RawEntry> toRawList(){ if (t == null || t.size() == 0){ return Collections.emptyList(); // depends on control dependency: [if], data = [none] } List<RawEntry> result = new ArrayList<RawEntry>(t.size()); int lastDuration = 0; for (int i = 0; i < t.size(); i ++){ ...
public class class_name { public static Expression select(String field, String operator, Val<Expression>[] args, EbeanExprInvoker invoker) { if (args.length > 0) { EbeanServer server = invoker.getServer(); Class type = Filters.getBeanTypeByName(field, (SpiEbeanServer) server); ...
public class class_name { public static Expression select(String field, String operator, Val<Expression>[] args, EbeanExprInvoker invoker) { if (args.length > 0) { EbeanServer server = invoker.getServer(); Class type = Filters.getBeanTypeByName(field, (SpiEbeanServer) server); ...
public class class_name { private int computePk2Measure(double[] objectiveScores) { LOGGER.fine("Computing the PK2 measure"); // Compute each Pk2 score and the average score. double average = 0; for (int k = objectiveScores.length - 1; k > 0; --k) { objectiveScores[k] /= ob...
public class class_name { private int computePk2Measure(double[] objectiveScores) { LOGGER.fine("Computing the PK2 measure"); // Compute each Pk2 score and the average score. double average = 0; for (int k = objectiveScores.length - 1; k > 0; --k) { objectiveScores[k] /= ob...
public class class_name { private static boolean isEmpty(MsgNode msg) { for (SoyNode child : msg.getChildren()) { if (child instanceof RawTextNode && ((RawTextNode) child).getRawText().isEmpty()) { continue; } return false; } return true; } }
public class class_name { private static boolean isEmpty(MsgNode msg) { for (SoyNode child : msg.getChildren()) { if (child instanceof RawTextNode && ((RawTextNode) child).getRawText().isEmpty()) { continue; } return false; // depends on control dependency: [for], data = [none] } ...
public class class_name { public String formatDiagnostic(JCDiagnostic d, Locale l) { try { StringBuilder buf = new StringBuilder(); if (d.getPosition() != Position.NOPOS) { buf.append(formatSource(d, false, null)); buf.append(':'); buf.app...
public class class_name { public String formatDiagnostic(JCDiagnostic d, Locale l) { try { StringBuilder buf = new StringBuilder(); if (d.getPosition() != Position.NOPOS) { buf.append(formatSource(d, false, null)); // depends on control dependency: [if], data = [none] ...
public class class_name { public List<T> first(final int n) { N.checkArgument(n >= 0, "'n' can't be negative: " + n); if (N.isNullOrEmpty(coll) || n == 0) { return new ArrayList<>(); } else if (coll.size() <= n) { return new ArrayList<>(coll); } else if (...
public class class_name { public List<T> first(final int n) { N.checkArgument(n >= 0, "'n' can't be negative: " + n); if (N.isNullOrEmpty(coll) || n == 0) { return new ArrayList<>(); // depends on control dependency: [if], data = [none] } else if (coll.size() <= n) { ...
public class class_name { public <DatastoreType, Instance> InstanceInvocationHandler<DatastoreType> getInvocationHandler(Instance instance) { Instance effectiveInstance; if (interceptorFactory.hasInterceptor(instance)) { effectiveInstance = interceptorFactory.removeInterceptor(instance); ...
public class class_name { public <DatastoreType, Instance> InstanceInvocationHandler<DatastoreType> getInvocationHandler(Instance instance) { Instance effectiveInstance; if (interceptorFactory.hasInterceptor(instance)) { effectiveInstance = interceptorFactory.removeInterceptor(instance); //...
public class class_name { @Override public ContentSerializer getBestSerializer(Collection<MediaType> mediaTypes) { if (mediaTypes == null || mediaTypes.isEmpty()) { mediaTypes = ImmutableList.of(MediaType.HTML_UTF_8); } for (MediaType type : mediaTypes) { for (Conte...
public class class_name { @Override public ContentSerializer getBestSerializer(Collection<MediaType> mediaTypes) { if (mediaTypes == null || mediaTypes.isEmpty()) { mediaTypes = ImmutableList.of(MediaType.HTML_UTF_8); // depends on control dependency: [if], data = [none] } for ...
public class class_name { public Affordance build() { Assert.state(!(rels.isEmpty() && reverseRels.isEmpty()), "no rels or reverse rels found, call rel() or rev() before building the affordance"); final Affordance affordance; affordance = new Affordance(new PartialUriTemplate(th...
public class class_name { public Affordance build() { Assert.state(!(rels.isEmpty() && reverseRels.isEmpty()), "no rels or reverse rels found, call rel() or rev() before building the affordance"); final Affordance affordance; affordance = new Affordance(new PartialUriTemplate(th...
public class class_name { public void setResourceAccessPolicies(java.util.Collection<ResourceAccessPolicy> resourceAccessPolicies) { if (resourceAccessPolicies == null) { this.resourceAccessPolicies = null; return; } this.resourceAccessPolicies = new java.util.ArrayList...
public class class_name { public void setResourceAccessPolicies(java.util.Collection<ResourceAccessPolicy> resourceAccessPolicies) { if (resourceAccessPolicies == null) { this.resourceAccessPolicies = null; // depends on control dependency: [if], data = [none] return; // depends on cont...
public class class_name { private static byte[] hmacTemplate(byte[] data, byte[] key, String algorithm) { if (data == null || data.length == 0 || key == null || key.length == 0) return null; try { SecretKeySpec secretKey = new SecretKeySpec(key, algorithm); Mac mac ...
public class class_name { private static byte[] hmacTemplate(byte[] data, byte[] key, String algorithm) { if (data == null || data.length == 0 || key == null || key.length == 0) return null; try { SecretKeySpec secretKey = new SecretKeySpec(key, algorithm); Mac mac ...
public class class_name { @Nullable public <R> R collect(@NotNull Supplier<R> supplier, @NotNull ObjLongConsumer<R> accumulator) { final R result = supplier.get(); while (iterator.hasNext()) { final long value = iterator.nextLong(); accumulator.accep...
public class class_name { @Nullable public <R> R collect(@NotNull Supplier<R> supplier, @NotNull ObjLongConsumer<R> accumulator) { final R result = supplier.get(); while (iterator.hasNext()) { final long value = iterator.nextLong(); accumulator.accep...
public class class_name { public void freeTopology(String topId, Cluster cluster) { Set<WorkerSlot> slots = _topIdToUsedSlots.get(topId); if (slots == null || slots.isEmpty()) return; for (WorkerSlot ws : slots) { cluster.freeSlot(ws); if (_isAlive) { ...
public class class_name { public void freeTopology(String topId, Cluster cluster) { Set<WorkerSlot> slots = _topIdToUsedSlots.get(topId); if (slots == null || slots.isEmpty()) return; for (WorkerSlot ws : slots) { cluster.freeSlot(ws); // depends on control dependency: [...
public class class_name { public RevokeIpRulesRequest withUserRules(String... userRules) { if (this.userRules == null) { setUserRules(new com.amazonaws.internal.SdkInternalList<String>(userRules.length)); } for (String ele : userRules) { this.userRules.add(ele); ...
public class class_name { public RevokeIpRulesRequest withUserRules(String... userRules) { if (this.userRules == null) { setUserRules(new com.amazonaws.internal.SdkInternalList<String>(userRules.length)); // depends on control dependency: [if], data = [none] } for (String ele : user...
public class class_name { private ResourceBundle getResourceBundle(@NotNull final Annotation annotation, @NotNull final Locale locale, @NotNull final Class<?> clasz) { if (getBundle(annotation).equals("")) { final String path = clasz.getPackage().getName().replace('.', '/'); ...
public class class_name { private ResourceBundle getResourceBundle(@NotNull final Annotation annotation, @NotNull final Locale locale, @NotNull final Class<?> clasz) { if (getBundle(annotation).equals("")) { final String path = clasz.getPackage().getName().replace('.', '/'); ...
public class class_name { public ListStacksRequest withStackStatusFilters(StackStatus... stackStatusFilters) { com.amazonaws.internal.SdkInternalList<String> stackStatusFiltersCopy = new com.amazonaws.internal.SdkInternalList<String>(stackStatusFilters.length); for (StackStatus value : stackStatusFilte...
public class class_name { public ListStacksRequest withStackStatusFilters(StackStatus... stackStatusFilters) { com.amazonaws.internal.SdkInternalList<String> stackStatusFiltersCopy = new com.amazonaws.internal.SdkInternalList<String>(stackStatusFilters.length); for (StackStatus value : stackStatusFilte...
public class class_name { static Type getRawType(Type genericType, Map<TypeVariable, Type> typeVariableMap) { Type resolvedType = genericType; if (genericType instanceof TypeVariable) { TypeVariable tv = (TypeVariable) genericType; resolvedType = typeVariableMap.get(tv); if (resolvedType == null) { re...
public class class_name { static Type getRawType(Type genericType, Map<TypeVariable, Type> typeVariableMap) { Type resolvedType = genericType; if (genericType instanceof TypeVariable) { TypeVariable tv = (TypeVariable) genericType; resolvedType = typeVariableMap.get(tv); // depends on control dependency: [if...
public class class_name { public Duration withDurationAdded(ReadableDuration durationToAdd, int scalar) { if (durationToAdd == null || scalar == 0) { return this; } return withDurationAdded(durationToAdd.getMillis(), scalar); } }
public class class_name { public Duration withDurationAdded(ReadableDuration durationToAdd, int scalar) { if (durationToAdd == null || scalar == 0) { return this; // depends on control dependency: [if], data = [none] } return withDurationAdded(durationToAdd.getMillis(), scalar); ...
public class class_name { public final int getIndex(String name, Object... args) { Integer defaultIndex = methodIndexs.get(name); if (null != defaultIndex) return defaultIndex.intValue(); else { final List<MethodInfo> exists = methods.get(name); if (null != exists) { for (MethodInfo inf...
public class class_name { public final int getIndex(String name, Object... args) { Integer defaultIndex = methodIndexs.get(name); if (null != defaultIndex) return defaultIndex.intValue(); else { final List<MethodInfo> exists = methods.get(name); if (null != exists) { for (MethodInfo inf...