code
stringlengths
130
281k
code_dependency
stringlengths
182
306k
public class class_name { @Nonnull public final LinkedList<A> toLinkedList() { LinkedList<A> list = new LinkedList<>(); ImmutableList<A> l = this; for (int i = 0; i < length; i++) { list.add(((NonEmptyImmutableList<A>) l).head); l = ((NonEmptyImmutableList<A>) l).tai...
public class class_name { @Nonnull public final LinkedList<A> toLinkedList() { LinkedList<A> list = new LinkedList<>(); ImmutableList<A> l = this; for (int i = 0; i < length; i++) { list.add(((NonEmptyImmutableList<A>) l).head); // depends on control dependency: [for], data = [n...
public class class_name { private static LblTree createTree(TreeWalker walker) { Node parent = walker.getCurrentNode(); LblTree node = new LblTree(parent.getNodeName(), -1); // treeID = -1 for (Node n = walker.firstChild(); n != null; n = walker.nextSibling()) { node.add(createTree(walker)); } walker.setC...
public class class_name { private static LblTree createTree(TreeWalker walker) { Node parent = walker.getCurrentNode(); LblTree node = new LblTree(parent.getNodeName(), -1); // treeID = -1 for (Node n = walker.firstChild(); n != null; n = walker.nextSibling()) { node.add(createTree(walker)); // depends on con...
public class class_name { public static Type getReturnTypeOfInvocation(AbstractInsnNode invokeNode) { Validate.notNull(invokeNode); if (invokeNode instanceof MethodInsnNode) { MethodInsnNode methodInsnNode = (MethodInsnNode) invokeNode; Type methodType = Type.getType(methodInsn...
public class class_name { public static Type getReturnTypeOfInvocation(AbstractInsnNode invokeNode) { Validate.notNull(invokeNode); if (invokeNode instanceof MethodInsnNode) { MethodInsnNode methodInsnNode = (MethodInsnNode) invokeNode; Type methodType = Type.getType(methodInsn...
public class class_name { @Override public void updateBeanValue() { List<?> beanList = this.getBeanList(); WComponent renderer = getRepeatedComponent(); for (int i = 0; i < beanList.size(); i++) { Object rowData = beanList.get(i); UIContext rowContext = getRowContext(rowData, i); UIContextHolder.push...
public class class_name { @Override public void updateBeanValue() { List<?> beanList = this.getBeanList(); WComponent renderer = getRepeatedComponent(); for (int i = 0; i < beanList.size(); i++) { Object rowData = beanList.get(i); UIContext rowContext = getRowContext(rowData, i); UIContextHolder.push...
public class class_name { public static String replaceProperties(final String string, final Properties props) { if (string == null || string.isEmpty()) { return string; } final char[] chars = string.toCharArray(); StringBuffer buffer = new StringBuffer(); boolean pr...
public class class_name { public static String replaceProperties(final String string, final Properties props) { if (string == null || string.isEmpty()) { return string; // depends on control dependency: [if], data = [none] } final char[] chars = string.toCharArray(); String...
public class class_name { @Override public void init(ServletConfig config) throws ServletException { super.init(config); try { if (!validateConfiguration()) { LOG.error("Rpc configuration has some problems, so interrupt initialization process, please figure out."); ...
public class class_name { @Override public void init(ServletConfig config) throws ServletException { super.init(config); try { if (!validateConfiguration()) { LOG.error("Rpc configuration has some problems, so interrupt initialization process, please figure out."); // de...
public class class_name { public <T> T shallowClone(final T o) { if (o == null) { return null; } if (!this.cloningEnabled) { return o; } try { return cloneInternal(o, null); } catch (final IllegalAccessException e) { throw ...
public class class_name { public <T> T shallowClone(final T o) { if (o == null) { return null; // depends on control dependency: [if], data = [none] } if (!this.cloningEnabled) { return o; // depends on control dependency: [if], data = [none] } try { ...
public class class_name { public void marshall(DescribeEnvironmentMembershipsRequest describeEnvironmentMembershipsRequest, ProtocolMarshaller protocolMarshaller) { if (describeEnvironmentMembershipsRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); ...
public class class_name { public void marshall(DescribeEnvironmentMembershipsRequest describeEnvironmentMembershipsRequest, ProtocolMarshaller protocolMarshaller) { if (describeEnvironmentMembershipsRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); ...
public class class_name { void removeEdgeRole(EdgeRole er, boolean preserveData) { if (er.getVertexLabel() != this) { throw new IllegalStateException("Trying to remove a EdgeRole from a non owner VertexLabel"); } Collection<VertexLabel> ers; switch (er.getDirection()) { ...
public class class_name { void removeEdgeRole(EdgeRole er, boolean preserveData) { if (er.getVertexLabel() != this) { throw new IllegalStateException("Trying to remove a EdgeRole from a non owner VertexLabel"); } Collection<VertexLabel> ers; switch (er.getDirection()) { ...
public class class_name { public String toDistributionString(int treshold) { Counter<Double> weightCounts = new ClassicCounter<Double>(); StringBuilder s = new StringBuilder(); s.append("Total number of weights: ").append(totalSize()); for (int f = 0; f < weights.length; f++) { for (int l = ...
public class class_name { public String toDistributionString(int treshold) { Counter<Double> weightCounts = new ClassicCounter<Double>(); StringBuilder s = new StringBuilder(); s.append("Total number of weights: ").append(totalSize()); for (int f = 0; f < weights.length; f++) { for (int l = ...
public class class_name { public void setMessage(String message) { this.message = message; if (errorMessage == null) { logger.debug("Setting status bar message to \"" + message + "\""); messageLabel.setText(this.message); } } }
public class class_name { public void setMessage(String message) { this.message = message; if (errorMessage == null) { logger.debug("Setting status bar message to \"" + message + "\""); // depends on control dependency: [if], data = [none] messageLabel.setText(this.message); // ...
public class class_name { @Override public T addAsResources(Package resourcePackage, String... resourceNames) throws IllegalArgumentException { Validate.notNull(resourcePackage, "ResourcePackage must be specified"); Validate.notNullAndNoNullValues(resourceNames, "ResourceNames must be s...
public class class_name { @Override public T addAsResources(Package resourcePackage, String... resourceNames) throws IllegalArgumentException { Validate.notNull(resourcePackage, "ResourcePackage must be specified"); Validate.notNullAndNoNullValues(resourceNames, "ResourceNames must be s...
public class class_name { public boolean remove(Object o) { if (o != null) { Node<E> next, pred = null; for (Node<E> p = first(); p != null; pred = p, p = next) { boolean removed = false; E item = p.item; if (item != null) { ...
public class class_name { public boolean remove(Object o) { if (o != null) { Node<E> next, pred = null; for (Node<E> p = first(); p != null; pred = p, p = next) { boolean removed = false; E item = p.item; if (item != null) { ...
public class class_name { private static boolean disableChecks(String springVersion, String springSecurityVersion) { if (springVersion == null || springVersion.equals(springSecurityVersion)) { return true; } return Boolean.getBoolean(DISABLE_CHECKS); } }
public class class_name { private static boolean disableChecks(String springVersion, String springSecurityVersion) { if (springVersion == null || springVersion.equals(springSecurityVersion)) { return true; // depends on control dependency: [if], data = [none] } return Boolean.getBoolean(DISABLE_CHECKS); }...
public class class_name { public void setAll(int index, Collection<? extends Byte> items) { rangeCheck(index, index + items.size()); for (byte e : items) { elements[index++] = e; } } }
public class class_name { public void setAll(int index, Collection<? extends Byte> items) { rangeCheck(index, index + items.size()); for (byte e : items) { elements[index++] = e; // depends on control dependency: [for], data = [e] } } }
public class class_name { @Override protected void load() { //recordId can be null when in batchMode if (this.recordId != null && this.properties.isEmpty()) { this.sqlgGraph.tx().readWrite(); if (this.sqlgGraph.getSqlDialect().supportsBatchMode() && this.sqlgGraph.tx().getBa...
public class class_name { @Override protected void load() { //recordId can be null when in batchMode if (this.recordId != null && this.properties.isEmpty()) { this.sqlgGraph.tx().readWrite(); // depends on control dependency: [if], data = [none] if (this.sqlgGraph.getSqlDial...
public class class_name { public static Map<String, ?> getMapFromProperties(Properties properties, String prefix) { Map<String, Object> result = new HashMap<String, Object>(); for (String key : properties.stringPropertyNames()) { if (key.startsWith(prefix)) { String name = k...
public class class_name { public static Map<String, ?> getMapFromProperties(Properties properties, String prefix) { Map<String, Object> result = new HashMap<String, Object>(); for (String key : properties.stringPropertyNames()) { if (key.startsWith(prefix)) { String name = k...
public class class_name { public EClass getIfcResource() { if (ifcResourceEClass == null) { ifcResourceEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI) .getEClassifiers().get(492); } return ifcResourceEClass; } }
public class class_name { public EClass getIfcResource() { if (ifcResourceEClass == null) { ifcResourceEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI) .getEClassifiers().get(492); // depends on control dependency: [if], data = [none] } return ifcResourceEClass; }...
public class class_name { private int subspaceDimensionality(NumberVector v1, NumberVector v2, long[] pv1, long[] pv2, long[] commonPreferenceVector) { // number of zero values in commonPreferenceVector int subspaceDim = v1.getDimensionality() - BitsUtil.cardinality(commonPreferenceVector); // special cas...
public class class_name { private int subspaceDimensionality(NumberVector v1, NumberVector v2, long[] pv1, long[] pv2, long[] commonPreferenceVector) { // number of zero values in commonPreferenceVector int subspaceDim = v1.getDimensionality() - BitsUtil.cardinality(commonPreferenceVector); // special cas...
public class class_name { @NotNull public static String unescapeChars(@NotNull final String string, final char[] toUnescape) { String toReturn = string; for (char character : toUnescape) { toReturn = unescapeChar(toReturn, character); } return toReturn; } }
public class class_name { @NotNull public static String unescapeChars(@NotNull final String string, final char[] toUnescape) { String toReturn = string; for (char character : toUnescape) { toReturn = unescapeChar(toReturn, character); // depends on control dependency: [for], data = [cha...
public class class_name { public void marshall(DisassociateTagOptionFromResourceRequest disassociateTagOptionFromResourceRequest, ProtocolMarshaller protocolMarshaller) { if (disassociateTagOptionFromResourceRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"...
public class class_name { public void marshall(DisassociateTagOptionFromResourceRequest disassociateTagOptionFromResourceRequest, ProtocolMarshaller protocolMarshaller) { if (disassociateTagOptionFromResourceRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"...
public class class_name { public String getStatement() { StringBuffer sb = new StringBuffer(512); int argumentCount = this.procedureDescriptor.getArgumentCount(); if (this.procedureDescriptor.hasReturnValue()) { sb.append("{ ?= call "); } else ...
public class class_name { public String getStatement() { StringBuffer sb = new StringBuffer(512); int argumentCount = this.procedureDescriptor.getArgumentCount(); if (this.procedureDescriptor.hasReturnValue()) { sb.append("{ ?= call "); // depends on control depen...
public class class_name { private long cleanupTime(W window) { if (windowAssigner.isEventTime()) { long cleanupTime = Math.max(0, window.maxTimestamp() + allowedLateness); return cleanupTime >= window.maxTimestamp() ? cleanupTime : Long.MAX_VALUE; } else { return Math.max(0, window.maxTimestamp()); } }...
public class class_name { private long cleanupTime(W window) { if (windowAssigner.isEventTime()) { long cleanupTime = Math.max(0, window.maxTimestamp() + allowedLateness); return cleanupTime >= window.maxTimestamp() ? cleanupTime : Long.MAX_VALUE; // depends on control dependency: [if], data = [none] } else ...
public class class_name { @Override @NonNull public String[] selectImports(@NonNull AnnotationMetadata importingClassMetadata) { boolean enabledTxc = Boolean.valueOf( Objects.requireNonNull( importingClassMetadata.getAnnotationAttributes(EnableDistributedTransact...
public class class_name { @Override @NonNull public String[] selectImports(@NonNull AnnotationMetadata importingClassMetadata) { boolean enabledTxc = Boolean.valueOf( Objects.requireNonNull( importingClassMetadata.getAnnotationAttributes(EnableDistributedTransact...
public class class_name { public static void setIdentity( DMatrix1Row mat ) { int width = mat.numRows < mat.numCols ? mat.numRows : mat.numCols; Arrays.fill(mat.data,0,mat.getNumElements(),0); int index = 0; for( int i = 0; i < width; i++ , index += mat.numCols + 1) { ...
public class class_name { public static void setIdentity( DMatrix1Row mat ) { int width = mat.numRows < mat.numCols ? mat.numRows : mat.numCols; Arrays.fill(mat.data,0,mat.getNumElements(),0); int index = 0; for( int i = 0; i < width; i++ , index += mat.numCols + 1) { ...
public class class_name { public static <T> List<T> getServices(Class<T> intf) { List<T> ret = new ArrayList<T>(); for (T service : ServiceLoader.load(intf)) { if (!(service instanceof ServiceStatus) || ((ServiceStatus)service).isAvailable()) { if (service instanceof Servic...
public class class_name { public static <T> List<T> getServices(Class<T> intf) { List<T> ret = new ArrayList<T>(); for (T service : ServiceLoader.load(intf)) { if (!(service instanceof ServiceStatus) || ((ServiceStatus)service).isAvailable()) { if (service instanceof Servic...
public class class_name { @Override @XmlTransient public JSONObject toJsonForElasticSearch() throws JSONException { JSONObject returnVal = super.toJsonObject(); //Form Type... if(this.getFormType() != null) { returnVal.put(JSONMapping.FORM_TYPE, this.getFormType()); } //Form Type Id... if(this.ge...
public class class_name { @Override @XmlTransient public JSONObject toJsonForElasticSearch() throws JSONException { JSONObject returnVal = super.toJsonObject(); //Form Type... if(this.getFormType() != null) { returnVal.put(JSONMapping.FORM_TYPE, this.getFormType()); } //Form Type Id... if(this.ge...
public class class_name { public static int writeLongAsVarIntBytes(long v, byte[] bytes, int offest) { int pos = offest; while (true) { if ((v & ~0x7FL) == 0) { bytes[pos++] = ((byte)v); return pos; } else { bytes[pos++] = (byte)(...
public class class_name { public static int writeLongAsVarIntBytes(long v, byte[] bytes, int offest) { int pos = offest; while (true) { if ((v & ~0x7FL) == 0) { bytes[pos++] = ((byte)v); // depends on control dependency: [if], data = [none] return pos; // de...
public class class_name { public DomainCommandBuilder setMasterPortHint(final String port) { if (port != null) { setMasterPortHint(Integer.parseInt(port)); } return this; } }
public class class_name { public DomainCommandBuilder setMasterPortHint(final String port) { if (port != null) { setMasterPortHint(Integer.parseInt(port)); // depends on control dependency: [if], data = [(port] } return this; } }
public class class_name { @Override public synchronized void start() { if (!running && !used) { this.running = true; this.used = true; this.setDaemon(true); super.start(); } } }
public class class_name { @Override public synchronized void start() { if (!running && !used) { this.running = true; // depends on control dependency: [if], data = [none] this.used = true; // depends on control dependency: [if], data = [none] this.setDaemon(true); // depends on c...
public class class_name { public static Integer[] nullToEmpty(Integer[] array) { if (array == null || array.length == 0) { return EMPTY_INTEGER_OBJECT_ARRAY; } return array; } }
public class class_name { public static Integer[] nullToEmpty(Integer[] array) { if (array == null || array.length == 0) { return EMPTY_INTEGER_OBJECT_ARRAY; // depends on control dependency: [if], data = [none] } return array; } }
public class class_name { protected Object lookupVar(JsonNode node, String var) { List<? extends JsonNode> children = node.getChildren(var); if (children.size()>1) { // multiple with name, treat as list of values List<String> result = new ArrayList<String>(); for (JsonNode child : children) { result.add(...
public class class_name { protected Object lookupVar(JsonNode node, String var) { List<? extends JsonNode> children = node.getChildren(var); if (children.size()>1) { // multiple with name, treat as list of values List<String> result = new ArrayList<String>(); for (JsonNode child : children) { result.add(...
public class class_name { public static int intersectQuadAndCubic (float qx1, float qy1, float qx2, float qy2, float qx3, float qy3, float cx1, float cy1, float cx2, float cy2, float cx3, float cy3, ...
public class class_name { public static int intersectQuadAndCubic (float qx1, float qy1, float qx2, float qy2, float qx3, float qy3, float cx1, float cy1, float cx2, float cy2, float cx3, float cy3, ...
public class class_name { public static Double[] toObject(double... a) { if (a != null) { Double[] w = new Double[a.length]; for (int i = 0; i < a.length; i++) { w[i] = a[i]; } return w; } return null; } }
public class class_name { public static Double[] toObject(double... a) { if (a != null) { Double[] w = new Double[a.length]; for (int i = 0; i < a.length; i++) { w[i] = a[i]; // depends on control dependency: [for], data = [i] } return w; // depends on control dependency: [if], data = [none] } r...
public class class_name { public Observable<ServiceResponse<Page<SasTokenInformationInner>>> listSasTokensNextWithServiceResponseAsync(final String nextPageLink) { return listSasTokensNextSinglePageAsync(nextPageLink) .concatMap(new Func1<ServiceResponse<Page<SasTokenInformationInner>>, Observable<...
public class class_name { public Observable<ServiceResponse<Page<SasTokenInformationInner>>> listSasTokensNextWithServiceResponseAsync(final String nextPageLink) { return listSasTokensNextSinglePageAsync(nextPageLink) .concatMap(new Func1<ServiceResponse<Page<SasTokenInformationInner>>, Observable<...
public class class_name { private static MultiLineString convertMultiCurve(JGeometry geometry) { JGeometry[] elements = geometry.getElements(); if (elements == null || elements.length == 0) { return MultiLineString.createEmpty(); } CrsId crs = CrsId.valueOf(geometry.getSRID(...
public class class_name { private static MultiLineString convertMultiCurve(JGeometry geometry) { JGeometry[] elements = geometry.getElements(); if (elements == null || elements.length == 0) { return MultiLineString.createEmpty(); // depends on control dependency: [if], data = [none] ...
public class class_name { public static boolean isServiceRunning(Context context, Class<? extends Service> service, int maxCheckCount) { if (context == null || service == null) { return false; } ActivityManager manager = (ActivityManager) context.getSystemService(Context.ACTIVITY_S...
public class class_name { public static boolean isServiceRunning(Context context, Class<? extends Service> service, int maxCheckCount) { if (context == null || service == null) { return false; // depends on control dependency: [if], data = [none] } ActivityManager manager = (Activi...
public class class_name { protected void addName() { if (Strings.isNotEmpty(builder)) { int endOffset = 0; if (Strings.endsWith(builder, tagSeparator)) { // Ends with ','. endOffset = 1; } if (Strings.startsWith(builder, inheritanceMarker)) { // S...
public class class_name { protected void addName() { if (Strings.isNotEmpty(builder)) { int endOffset = 0; if (Strings.endsWith(builder, tagSeparator)) { // Ends with ','. endOffset = 1; // depends on control dependency: [if], data = [none] } if (...
public class class_name { public final EObject ruleJvmUpperBoundAnded() throws RecognitionException { EObject current = null; Token otherlv_0=null; EObject lv_typeReference_1_0 = null; enterRule(); try { // InternalPureXbase.g:6484:2: ( (otherlv_0= '&' ( (lv_ty...
public class class_name { public final EObject ruleJvmUpperBoundAnded() throws RecognitionException { EObject current = null; Token otherlv_0=null; EObject lv_typeReference_1_0 = null; enterRule(); try { // InternalPureXbase.g:6484:2: ( (otherlv_0= '&' ( (lv_ty...
public class class_name { protected I_CmsContextMenuEntry createViewOnlineEntry() { final String onlineLink = m_controller.getData().getOnlineLink(); CmsContextMenuEntry entry = null; if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(onlineLink)) { I_CmsContextMenuCommand command = new ...
public class class_name { protected I_CmsContextMenuEntry createViewOnlineEntry() { final String onlineLink = m_controller.getData().getOnlineLink(); CmsContextMenuEntry entry = null; if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(onlineLink)) { I_CmsContextMenuCommand command = new ...
public class class_name { @CheckForNull public NodeProperty getNodeProperty(String className) { for (NodeProperty p: getNodeProperties()) { if (p.getClass().getName().equals(className)) { return p; } } return null; } }
public class class_name { @CheckForNull public NodeProperty getNodeProperty(String className) { for (NodeProperty p: getNodeProperties()) { if (p.getClass().getName().equals(className)) { return p; // depends on control dependency: [if], data = [none] } }...
public class class_name { public Matcher getMatcher(String str) { Matcher m; if (matchers.containsKey(str)) { m = matchers.get(str); } else { m = p.matcher(str); matchers.put(str, m); ...
public class class_name { public Matcher getMatcher(String str) { Matcher m; if (matchers.containsKey(str)) { m = matchers.get(str); // depends on control dependency: [if], data = [none] } else { m = p.matcher(str); // depe...
public class class_name { public List<T> getPermutation(List<T> storage) { if( storage == null ) storage = new ArrayList<T>(); else storage.clear(); for( int i = 0; i < list.size(); i++ ) { storage.add(get(i)); } return storage; } }
public class class_name { public List<T> getPermutation(List<T> storage) { if( storage == null ) storage = new ArrayList<T>(); else storage.clear(); for( int i = 0; i < list.size(); i++ ) { storage.add(get(i)); // depends on control dependency: [for], data = [i] } return storage; } }
public class class_name { @Nonnull @ReturnsMutableCopy public Matrix getQ () { final Matrix aNewMatrix = new Matrix (m_nRows, m_nCols); final double [] [] aNewArray = aNewMatrix.internalGetArray (); for (int k = m_nCols - 1; k >= 0; k--) { final double [] aQRk = m_aQR[k]; for (int nRo...
public class class_name { @Nonnull @ReturnsMutableCopy public Matrix getQ () { final Matrix aNewMatrix = new Matrix (m_nRows, m_nCols); final double [] [] aNewArray = aNewMatrix.internalGetArray (); for (int k = m_nCols - 1; k >= 0; k--) { final double [] aQRk = m_aQR[k]; for (int nRo...
public class class_name { public static alluxio.grpc.FileInfo toProto(FileInfo fileInfo) { List<alluxio.grpc.FileBlockInfo> fileBlockInfos = new ArrayList<>(); for (FileBlockInfo fileBlockInfo : fileInfo.getFileBlockInfos()) { fileBlockInfos.add(toProto(fileBlockInfo)); } alluxio.grpc.FileInfo.Bu...
public class class_name { public static alluxio.grpc.FileInfo toProto(FileInfo fileInfo) { List<alluxio.grpc.FileBlockInfo> fileBlockInfos = new ArrayList<>(); for (FileBlockInfo fileBlockInfo : fileInfo.getFileBlockInfos()) { fileBlockInfos.add(toProto(fileBlockInfo)); // depends on control dependency: ...
public class class_name { private List<String> computePath( AbstractPath specifiedClasspath ) { List<Artifact> artifacts = new ArrayList<>(); List<Path> theClasspathFiles = new ArrayList<>(); List<String> resultList = new ArrayList<>(); collectProjectArtifactsAndClasspath( artifact...
public class class_name { private List<String> computePath( AbstractPath specifiedClasspath ) { List<Artifact> artifacts = new ArrayList<>(); List<Path> theClasspathFiles = new ArrayList<>(); List<String> resultList = new ArrayList<>(); collectProjectArtifactsAndClasspath( artifact...
public class class_name { public int deleteIds(String type) { int deleted = 0; try { if (contentsIdDao.isTableExists()) { List<ContentsId> contentsIds = getIds(type); deleted = contentsIdDao.delete(contentsIds); } } catch (SQLException e) { throw new GeoPackageException( "Failed to delete c...
public class class_name { public int deleteIds(String type) { int deleted = 0; try { if (contentsIdDao.isTableExists()) { List<ContentsId> contentsIds = getIds(type); deleted = contentsIdDao.delete(contentsIds); // depends on control dependency: [if], data = [none] } } catch (SQLException e) { t...
public class class_name { public List<BeanSpec> fields($.Predicate<Field> filter) { List<BeanSpec> retVal = new ArrayList<>(); BeanSpec current = this; Class<?> rawType = rawType(); if ($.isSimpleType(rawType)) { return C.list(); } Type[] typeDeclarations = r...
public class class_name { public List<BeanSpec> fields($.Predicate<Field> filter) { List<BeanSpec> retVal = new ArrayList<>(); BeanSpec current = this; Class<?> rawType = rawType(); if ($.isSimpleType(rawType)) { return C.list(); // depends on control dependency: [if], data ...
public class class_name { protected void storeExtension(Extension e, XMLStreamWriter writer, String elementName) throws XMLStreamException { writer.writeStartElement(elementName); writer.writeAttribute(CommonXML.ATTRIBUTE_CLASS_NAME, e.getValue(CommonXML.ATTRIBUTE_CLASS_NAME,...
public class class_name { protected void storeExtension(Extension e, XMLStreamWriter writer, String elementName) throws XMLStreamException { writer.writeStartElement(elementName); writer.writeAttribute(CommonXML.ATTRIBUTE_CLASS_NAME, e.getValue(CommonXML.ATTRIBUTE_CLASS_NAME,...
public class class_name { public ListElasticsearchInstanceTypesResult withElasticsearchInstanceTypes(ESPartitionInstanceType... elasticsearchInstanceTypes) { java.util.ArrayList<String> elasticsearchInstanceTypesCopy = new java.util.ArrayList<String>(elasticsearchInstanceTypes.length); for (ESPartition...
public class class_name { public ListElasticsearchInstanceTypesResult withElasticsearchInstanceTypes(ESPartitionInstanceType... elasticsearchInstanceTypes) { java.util.ArrayList<String> elasticsearchInstanceTypesCopy = new java.util.ArrayList<String>(elasticsearchInstanceTypes.length); for (ESPartition...
public class class_name { @Override public void updateProgress(float value) { final int size = mTransitionList.size(); for (int i = 0; i < size; i++) { mTransitionList.get(i).updateProgress(value); } } }
public class class_name { @Override public void updateProgress(float value) { final int size = mTransitionList.size(); for (int i = 0; i < size; i++) { mTransitionList.get(i).updateProgress(value); // depends on control dependency: [for], data = [i] } } }
public class class_name { private static void internalCopyBitmap(Bitmap destBitmap, Bitmap sourceBitmap) { if (destBitmap.getConfig() == sourceBitmap.getConfig()) { Bitmaps.copyBitmap(destBitmap, sourceBitmap); } else { // The bitmap configurations might be different when the source bitmap's config...
public class class_name { private static void internalCopyBitmap(Bitmap destBitmap, Bitmap sourceBitmap) { if (destBitmap.getConfig() == sourceBitmap.getConfig()) { Bitmaps.copyBitmap(destBitmap, sourceBitmap); // depends on control dependency: [if], data = [none] } else { // The bitmap configurati...
public class class_name { public static final char[] append(char[] array, char suffix) { if (array == null) { return new char[] { suffix }; } int length = array.length; System.arraycopy(array, 0, array = new char[length + 1], 0, length); array[length] = suffix; return array; } }
public class class_name { public static final char[] append(char[] array, char suffix) { if (array == null) { return new char[] { suffix }; // depends on control dependency: [if], data = [none] } int length = array.length; System.arraycopy(array, 0, array = new char[length + 1], 0, length); array[lengt...
public class class_name { public void setUsername (Name username, final UserChangeListener ucl) { ClientResolutionListener clr = new ClientResolutionListener() { public void clientResolved (final Name username, final ClientObject clobj) { // if they old client object is gone by ...
public class class_name { public void setUsername (Name username, final UserChangeListener ucl) { ClientResolutionListener clr = new ClientResolutionListener() { public void clientResolved (final Name username, final ClientObject clobj) { // if they old client object is gone by ...
public class class_name { private Object addSettingParameter(Setting setting, String key, String value) { if ("startOnBoot".equals(key)) { setting.setStartOnBoot(Boolean.parseBoolean(value)); } else if ("enableVerbose".equals(key)) { setting.setEnableVerbose(Boolean.parseBoolean(value)); } else if ("maxLog...
public class class_name { private Object addSettingParameter(Setting setting, String key, String value) { if ("startOnBoot".equals(key)) { setting.setStartOnBoot(Boolean.parseBoolean(value)); // depends on control dependency: [if], data = [none] } else if ("enableVerbose".equals(key)) { setting.setEnableVerb...
public class class_name { public String appendFileSeparator(String path) { if (null == path) { return File.separator; } // add "/" prefix if (!path.startsWith(StringPool.SLASH) && !path.startsWith(StringPool.BACK_SLASH)) { path = File.separator + path; } ...
public class class_name { public String appendFileSeparator(String path) { if (null == path) { return File.separator; // depends on control dependency: [if], data = [none] } // add "/" prefix if (!path.startsWith(StringPool.SLASH) && !path.startsWith(StringPool.BACK_SLASH)) ...
public class class_name { public BoundingBox overlap(BoundingBox projectedCoverage) { BoundingBox overlap = null; if (point) { overlap = projectedBoundingBox; } else { overlap = projectedBoundingBox.overlap(projectedCoverage); } return overlap; } }
public class class_name { public BoundingBox overlap(BoundingBox projectedCoverage) { BoundingBox overlap = null; if (point) { overlap = projectedBoundingBox; // depends on control dependency: [if], data = [none] } else { overlap = projectedBoundingBox.overlap(projectedCoverage); // depends on control depe...
public class class_name { public static final void setActiveSession(Session session) { synchronized (Session.STATIC_LOCK) { if (session != Session.activeSession) { Session oldSession = Session.activeSession; if (oldSession != null) { oldSession.c...
public class class_name { public static final void setActiveSession(Session session) { synchronized (Session.STATIC_LOCK) { if (session != Session.activeSession) { Session oldSession = Session.activeSession; if (oldSession != null) { oldSession.c...
public class class_name { private boolean attemptToBind(final int port) throws Throwable { log.debug("Attempting to start {} on port {}.", serverName, port); this.queryExecutor = createQueryExecutor(); this.handler = initializeHandler(); final NettyBufferPool bufferPool = new NettyBufferPool(numEventLoopThre...
public class class_name { private boolean attemptToBind(final int port) throws Throwable { log.debug("Attempting to start {} on port {}.", serverName, port); this.queryExecutor = createQueryExecutor(); this.handler = initializeHandler(); final NettyBufferPool bufferPool = new NettyBufferPool(numEventLoopThre...
public class class_name { public static boolean isValidJson(String s) { try { new JSONParser(DEFAULT_PERMISSIVE_MODE).parse(s, FakeMapper.DEFAULT); return true; } catch (ParseException e) { return false; } } }
public class class_name { public static boolean isValidJson(String s) { try { new JSONParser(DEFAULT_PERMISSIVE_MODE).parse(s, FakeMapper.DEFAULT); // depends on control dependency: [try], data = [none] return true; // depends on control dependency: [try], data = [none] } catch (ParseException e) { return...
public class class_name { public static <T extends Object> boolean arraryContains(T[] array, T value) { // Si le tableau est vide if(array == null || array.length == 0) { // On retourne false return false; } // Si le mode est vide if(value == null) { // On retourne false ...
public class class_name { public static <T extends Object> boolean arraryContains(T[] array, T value) { // Si le tableau est vide if(array == null || array.length == 0) { // On retourne false return false; // depends on control dependency: [if], data = [none] } // Si le mode est vide ...
public class class_name { public static void execute( int parallelism, ExecutorService executorService, int globalMin, int globalMax, final RangeExecutor rangeExecutor) { if (parallelism <= 0) { throw new IllegalArgumentException( ...
public class class_name { public static void execute( int parallelism, ExecutorService executorService, int globalMin, int globalMax, final RangeExecutor rangeExecutor) { if (parallelism <= 0) { throw new IllegalArgumentException( ...
public class class_name { public ValidationResult validate () { long validationStartTime = System.currentTimeMillis(); // Create an empty validation result that will have its fields populated by certain validators. ValidationResult validationResult = new ValidationResult(); // Error tab...
public class class_name { public ValidationResult validate () { long validationStartTime = System.currentTimeMillis(); // Create an empty validation result that will have its fields populated by certain validators. ValidationResult validationResult = new ValidationResult(); // Error tab...
public class class_name { public java.util.List<String> getNotificationEvents() { if (notificationEvents == null) { notificationEvents = new com.amazonaws.internal.SdkInternalList<String>(); } return notificationEvents; } }
public class class_name { public java.util.List<String> getNotificationEvents() { if (notificationEvents == null) { notificationEvents = new com.amazonaws.internal.SdkInternalList<String>(); // depends on control dependency: [if], data = [none] } return notificationEvents; } }
public class class_name { private void adaptMessageContainerVisibility() { if (titleContainer != null) { boolean visible = isCustomMessageUsed() || !TextUtils.isEmpty(message); if (visible) { messageContainer.setVisibility(View.VISIBLE); notifyOnAreaShow...
public class class_name { private void adaptMessageContainerVisibility() { if (titleContainer != null) { boolean visible = isCustomMessageUsed() || !TextUtils.isEmpty(message); if (visible) { messageContainer.setVisibility(View.VISIBLE); // depends on control dependency...
public class class_name { public static <T extends GeoTuple3D_F64> T multTran( DMatrixRMaj M, T pt, T mod ) { if( M.numRows != 3 || M.numCols != 3 ) throw new IllegalArgumentException( "Rotation matrices are 3 by 3." ); if( mod == null ) { mod = (T) pt.createNewInstance(); } double x = pt.x; double y...
public class class_name { public static <T extends GeoTuple3D_F64> T multTran( DMatrixRMaj M, T pt, T mod ) { if( M.numRows != 3 || M.numCols != 3 ) throw new IllegalArgumentException( "Rotation matrices are 3 by 3." ); if( mod == null ) { mod = (T) pt.createNewInstance(); // depends on control dependency: ...
public class class_name { public double getLongitudeFromElasticSearchText(String textToCheckParam) { if(textToCheckParam == null || textToCheckParam.trim().isEmpty()) { return 0.0; } String[] latitudeAndLongitude = textToCheckParam.split(REG_EX_COMMA); if(latitudeAndLongitude == null || latitudeAndLongitu...
public class class_name { public double getLongitudeFromElasticSearchText(String textToCheckParam) { if(textToCheckParam == null || textToCheckParam.trim().isEmpty()) { return 0.0; // depends on control dependency: [if], data = [none] } String[] latitudeAndLongitude = textToCheckParam.split(REG_EX_COMMA); ...
public class class_name { protected int checkWrite(int offset, int length) { checkOffset(offset); if (limit == -1) { if (offset + length > capacity) { if (capacity < maxCapacity) { capacity(calculateCapacity(offset + length)); } else { throw new BufferOverflowException...
public class class_name { protected int checkWrite(int offset, int length) { checkOffset(offset); if (limit == -1) { if (offset + length > capacity) { if (capacity < maxCapacity) { capacity(calculateCapacity(offset + length)); // depends on control dependency: [if], data = [none] ...
public class class_name { public EClass getIfcConic() { if (ifcConicEClass == null) { ifcConicEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI).getEClassifiers() .get(99); } return ifcConicEClass; } }
public class class_name { public EClass getIfcConic() { if (ifcConicEClass == null) { ifcConicEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI).getEClassifiers() .get(99); // depends on control dependency: [if], data = [none] } return ifcConicEClass; } }
public class class_name { public static Config build(final BaseHazelcastProperties hz) { val cluster = hz.getCluster(); val config = new Config(); config.setLicenseKey(hz.getLicenseKey()); val networkConfig = new NetworkConfig() .setPort(cluster.getPort()) .set...
public class class_name { public static Config build(final BaseHazelcastProperties hz) { val cluster = hz.getCluster(); val config = new Config(); config.setLicenseKey(hz.getLicenseKey()); val networkConfig = new NetworkConfig() .setPort(cluster.getPort()) .set...
public class class_name { public java.util.List<InstanceStateChange> getStoppingInstances() { if (stoppingInstances == null) { stoppingInstances = new com.amazonaws.internal.SdkInternalList<InstanceStateChange>(); } return stoppingInstances; } }
public class class_name { public java.util.List<InstanceStateChange> getStoppingInstances() { if (stoppingInstances == null) { stoppingInstances = new com.amazonaws.internal.SdkInternalList<InstanceStateChange>(); // depends on control dependency: [if], data = [none] } return stoppi...
public class class_name { private void handleAtRule(CssToken start, CssTokenIterator iter, CssContentHandler doc, CssErrorHandler err) throws CssException { if (debug) { checkArgument(start.type == CssToken.Type.ATKEYWORD); checkArgument(iter.index() == iter.list.indexOf(start)); ...
public class class_name { private void handleAtRule(CssToken start, CssTokenIterator iter, CssContentHandler doc, CssErrorHandler err) throws CssException { if (debug) { checkArgument(start.type == CssToken.Type.ATKEYWORD); checkArgument(iter.index() == iter.list.indexOf(start)); ...
public class class_name { public QueueItem poll() { QueueItem item = peek(); if (item == null) { return null; } if (store.isEnabled()) { try { store.delete(item.getItemId()); } catch (Exception e) { throw new HazelcastE...
public class class_name { public QueueItem poll() { QueueItem item = peek(); if (item == null) { return null; // depends on control dependency: [if], data = [none] } if (store.isEnabled()) { try { store.delete(item.getItemId()); // depends on cont...
public class class_name { public Object[] setEnableNonFilter(Object[] rgobjEnable, boolean bHasNext, boolean bBreak, boolean bAfterRequery, boolean bSelectEOF, boolean bFieldListeners) { boolean bEnable = (rgobjEnable == null) ? false : true; if (bFieldListeners) { if (rgobjEnab...
public class class_name { public Object[] setEnableNonFilter(Object[] rgobjEnable, boolean bHasNext, boolean bBreak, boolean bAfterRequery, boolean bSelectEOF, boolean bFieldListeners) { boolean bEnable = (rgobjEnable == null) ? false : true; if (bFieldListeners) { if (rgobjEnab...
public class class_name { @Override @PortalTransactional public IPortalCookie addOrUpdatePortletCookie(IPortalCookie portalCookie, Cookie cookie) { final Set<IPortletCookie> portletCookies = portalCookie.getPortletCookies(); boolean found = false; final String name = cookie.getName(); ...
public class class_name { @Override @PortalTransactional public IPortalCookie addOrUpdatePortletCookie(IPortalCookie portalCookie, Cookie cookie) { final Set<IPortletCookie> portletCookies = portalCookie.getPortletCookies(); boolean found = false; final String name = cookie.getName(); ...
public class class_name { public long addAll(T[] items) { long firstSequence = ringbuffer.peekNextTailSequence(); long lastSequence = ringbuffer.peekNextTailSequence(); if (store.isEnabled() && items.length != 0) { try { store.storeAll(firstSequence, convertToData(i...
public class class_name { public long addAll(T[] items) { long firstSequence = ringbuffer.peekNextTailSequence(); long lastSequence = ringbuffer.peekNextTailSequence(); if (store.isEnabled() && items.length != 0) { try { store.storeAll(firstSequence, convertToData(i...
public class class_name { @PublicAPI(usage = ACCESS) public Slices namingSlices(String pattern) { List<Slice> newSlices = new ArrayList<>(); for (Slice slice : slices) { newSlices.add(slice.as(pattern)); } return new Slices(newSlices, description); } }
public class class_name { @PublicAPI(usage = ACCESS) public Slices namingSlices(String pattern) { List<Slice> newSlices = new ArrayList<>(); for (Slice slice : slices) { newSlices.add(slice.as(pattern)); // depends on control dependency: [for], data = [slice] } return ne...
public class class_name { @Override public void onStatusChange(JobExecutionState state, RunningState previousStatus, RunningState newStatus) { if (this.filter.apply(state.getJobSpec())) { this.delegate.onStatusChange(state, previousStatus, newStatus); } } }
public class class_name { @Override public void onStatusChange(JobExecutionState state, RunningState previousStatus, RunningState newStatus) { if (this.filter.apply(state.getJobSpec())) { this.delegate.onStatusChange(state, previousStatus, newStatus); // depends on control dependency: [if], data = [none] ...
public class class_name { public static String getOtherName(String source, String target){ String other; if (target.contains(source) && !target.equals(source)) { int start = target.indexOf(source); other = start == 0 ? target.substring(source.length()) : target.substring(0, st...
public class class_name { public static String getOtherName(String source, String target){ String other; if (target.contains(source) && !target.equals(source)) { int start = target.indexOf(source); other = start == 0 ? target.substring(source.length()) : target.substring(0, st...
public class class_name { public List<MetaProperty> getProperties() { checkInitalised(); SingleKeyHashMap propertyMap = classPropertyIndex.getNullable(theCachedClass); if (propertyMap==null) { // GROOVY-6903: May happen in some special environment, like under Android, due ...
public class class_name { public List<MetaProperty> getProperties() { checkInitalised(); SingleKeyHashMap propertyMap = classPropertyIndex.getNullable(theCachedClass); if (propertyMap==null) { // GROOVY-6903: May happen in some special environment, like under Android, due ...
public class class_name { private void exportModules() { // avoid to export modules if unnecessary if (((null != m_copyAndUnzip) && !m_copyAndUnzip.booleanValue()) || ((null == m_copyAndUnzip) && !m_currentConfiguration.getDefaultCopyAndUnzip())) { m_logStream.println(); ...
public class class_name { private void exportModules() { // avoid to export modules if unnecessary if (((null != m_copyAndUnzip) && !m_copyAndUnzip.booleanValue()) || ((null == m_copyAndUnzip) && !m_currentConfiguration.getDefaultCopyAndUnzip())) { m_logStream.println(); // dep...
public class class_name { public CodeBuilder addInterface(Class<?> interfaceClass) { if (!interfaceClass.isInterface()) { System.out.println(interfaceClass + "不是接口类型!取消设为实现。"); return this; } String simpleName = interfaceClass.getSimpleName(); Package pkg = inter...
public class class_name { public CodeBuilder addInterface(Class<?> interfaceClass) { if (!interfaceClass.isInterface()) { System.out.println(interfaceClass + "不是接口类型!取消设为实现。"); // depends on control dependency: [if], data = [none] return this; // depends on control dependency: [if], dat...
public class class_name { static int getAnimationResource(int gravity, boolean isInAnimation) { if ((gravity & Gravity.TOP) == Gravity.TOP) { return isInAnimation ? R.anim.slide_in_top : R.anim.slide_out_top; } if ((gravity & Gravity.BOTTOM) == Gravity.BOTTOM) { return isInAnimation ? R.anim.sl...
public class class_name { static int getAnimationResource(int gravity, boolean isInAnimation) { if ((gravity & Gravity.TOP) == Gravity.TOP) { return isInAnimation ? R.anim.slide_in_top : R.anim.slide_out_top; // depends on control dependency: [if], data = [none] } if ((gravity & Gravity.BOTTOM) == Gr...
public class class_name { protected synchronized void evictStaleEntries() { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { int size = primaryTable.size(); Tr.debug(tc, "The current cache size is " + size); } Map<String, Object> secondaryTable = new H...
public class class_name { protected synchronized void evictStaleEntries() { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { int size = primaryTable.size(); Tr.debug(tc, "The current cache size is " + size); // depends on control dependency: [if], data = [none] ...
public class class_name { @Override public void contextInitialized(ServletContextEvent sce) { ServletContext sc = sce.getServletContext(); WunderBoss.putOption("servlet-context-path", sc.getContextPath()); /* We don't want to initialize the application on this thread, because if t...
public class class_name { @Override public void contextInitialized(ServletContextEvent sce) { ServletContext sc = sce.getServletContext(); WunderBoss.putOption("servlet-context-path", sc.getContextPath()); /* We don't want to initialize the application on this thread, because if t...
public class class_name { public void displayDialog() throws Exception { Map<String, String[]> params = initAdminTool(); // explorer view dialogs if (CmsExplorerDialog.EXPLORER_TOOLS.contains(getCurrentToolPath())) { if (getAction() == CmsDialog.ACTION_CANCEL) { ac...
public class class_name { public void displayDialog() throws Exception { Map<String, String[]> params = initAdminTool(); // explorer view dialogs if (CmsExplorerDialog.EXPLORER_TOOLS.contains(getCurrentToolPath())) { if (getAction() == CmsDialog.ACTION_CANCEL) { ac...
public class class_name { public void replaceStringInFile(File folder, File file, String template, String[] replacement) throws IOException { System.out.println("Patching file: "+file.getCanonicalPath()); String name = file.getName(); File origFile = new File(folder, name+".orig"); ...
public class class_name { public void replaceStringInFile(File folder, File file, String template, String[] replacement) throws IOException { System.out.println("Patching file: "+file.getCanonicalPath()); String name = file.getName(); File origFile = new File(folder, name+".orig"); ...
public class class_name { private void readResourceAssignment(Allocation gpAllocation) { Integer taskID = Integer.valueOf(NumberHelper.getInt(gpAllocation.getTaskId()) + 1); Integer resourceID = Integer.valueOf(NumberHelper.getInt(gpAllocation.getResourceId()) + 1); Task task = m_projectFile.getTa...
public class class_name { private void readResourceAssignment(Allocation gpAllocation) { Integer taskID = Integer.valueOf(NumberHelper.getInt(gpAllocation.getTaskId()) + 1); Integer resourceID = Integer.valueOf(NumberHelper.getInt(gpAllocation.getResourceId()) + 1); Task task = m_projectFile.getTa...
public class class_name { private List<Row> getRows(String tableName, String columnName, Integer id) { List<Row> result; List<Row> table = m_tables.get(tableName); if (table == null) { result = Collections.<Row> emptyList(); } else { if (columnName == null...
public class class_name { private List<Row> getRows(String tableName, String columnName, Integer id) { List<Row> result; List<Row> table = m_tables.get(tableName); if (table == null) { result = Collections.<Row> emptyList(); // depends on control dependency: [if], data = [none] ...
public class class_name { private static List<AtomNode> atomSegment(String sSentence, int start, int end) { if (end < start) { throw new RuntimeException("start=" + start + " < end=" + end); } List<AtomNode> atomSegment = new ArrayList<AtomNode>(); int pCur = 0, ...
public class class_name { private static List<AtomNode> atomSegment(String sSentence, int start, int end) { if (end < start) { throw new RuntimeException("start=" + start + " < end=" + end); } List<AtomNode> atomSegment = new ArrayList<AtomNode>(); int pCur = 0, ...
public class class_name { public void marshall(GetImportJobRequest getImportJobRequest, ProtocolMarshaller protocolMarshaller) { if (getImportJobRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.mars...
public class class_name { public void marshall(GetImportJobRequest getImportJobRequest, ProtocolMarshaller protocolMarshaller) { if (getImportJobRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.mars...
public class class_name { private List<String> getRotatedList(List<String> strings) { int index = RANDOM.nextInt(strings.size()); List<String> rotated = new ArrayList<String>(); for (int i = 0; i < strings.size(); i++) { rotated.add(strings.get(index)); index = (index + ...
public class class_name { private List<String> getRotatedList(List<String> strings) { int index = RANDOM.nextInt(strings.size()); List<String> rotated = new ArrayList<String>(); for (int i = 0; i < strings.size(); i++) { rotated.add(strings.get(index)); // depends on control depende...
public class class_name { List<Key> subrecordKeys(long lowTime, long highTime) { List<Key> keys = new ArrayList<Key>(); long lowBucketNumber = bucketNumber(lowTime); long highBucketNumber = bucketNumber(highTime); for (long index = lowBucketNumber; index <= highBucketNumber; index += this.bucketSize) { keys...
public class class_name { List<Key> subrecordKeys(long lowTime, long highTime) { List<Key> keys = new ArrayList<Key>(); long lowBucketNumber = bucketNumber(lowTime); long highBucketNumber = bucketNumber(highTime); for (long index = lowBucketNumber; index <= highBucketNumber; index += this.bucketSize) { keys...
public class class_name { public File getFirstExistingDirectory(String param) { final List<String> directoryStrings = getStringList(param); for (final String dirName : directoryStrings) { final File dir = new File(dirName.trim()); if (dir.isDirectory()) { return dir; } } thro...
public class class_name { public File getFirstExistingDirectory(String param) { final List<String> directoryStrings = getStringList(param); for (final String dirName : directoryStrings) { final File dir = new File(dirName.trim()); if (dir.isDirectory()) { return dir; // depends on control d...
public class class_name { public void marshall(EntitiesDetectionJobFilter entitiesDetectionJobFilter, ProtocolMarshaller protocolMarshaller) { if (entitiesDetectionJobFilter == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { pr...
public class class_name { public void marshall(EntitiesDetectionJobFilter entitiesDetectionJobFilter, ProtocolMarshaller protocolMarshaller) { if (entitiesDetectionJobFilter == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { pr...
public class class_name { public void visit(final WebApp webApp) { bundleClassLoader = new BundleClassLoader(webApp.getBundle()); httpContext = webApp.getHttpContext(); // Make sure we stop the context first, so that listeners // can be called correctly before removing ann objects webContainer.begin(htt...
public class class_name { public void visit(final WebApp webApp) { bundleClassLoader = new BundleClassLoader(webApp.getBundle()); httpContext = webApp.getHttpContext(); // Make sure we stop the context first, so that listeners // can be called correctly before removing ann objects webContainer.begin(htt...
public class class_name { public <T extends Entity<ID>, ID extends Serializable> T newInstance(final Class<T> clazz, final ID id) { EntityType type = getEntityType(clazz); @SuppressWarnings("unchecked") T entity = (T) type.newInstance(); try { PropertyUtils.setProperty(entity, type.getIdName(), i...
public class class_name { public <T extends Entity<ID>, ID extends Serializable> T newInstance(final Class<T> clazz, final ID id) { EntityType type = getEntityType(clazz); @SuppressWarnings("unchecked") T entity = (T) type.newInstance(); try { PropertyUtils.setProperty(entity, type.getIdName(), i...
public class class_name { private static List<AbstractWarningsParser> getAllParsers() { List<AbstractWarningsParser> parsers = Lists.newArrayList(); parsers.add(new MsBuildParser(Messages._Warnings_PCLint_ParserName(), Messages._Warnings_PCLint_LinkName(), ...
public class class_name { private static List<AbstractWarningsParser> getAllParsers() { List<AbstractWarningsParser> parsers = Lists.newArrayList(); parsers.add(new MsBuildParser(Messages._Warnings_PCLint_ParserName(), Messages._Warnings_PCLint_LinkName(), ...
public class class_name { public boolean publish(String channel, Message message, String className, Recipient... recipients) { try { IMessageProducer producer = findRegisteredProducer(Class.forName(className, false, null)); return publish(channel, message, producer, recipients); ...
public class class_name { public boolean publish(String channel, Message message, String className, Recipient... recipients) { try { IMessageProducer producer = findRegisteredProducer(Class.forName(className, false, null)); return publish(channel, message, producer, recipients); // depe...
public class class_name { public String doLayout(ILoggingEvent event) { // Reset working buffer. If the buffer is too large, then we need a new // one in order to avoid the penalty of creating a large array. if (buf.capacity() > UPPER_LIMIT) { buf = new StringBuilder(DEFAULT_SIZE); } else { ...
public class class_name { public String doLayout(ILoggingEvent event) { // Reset working buffer. If the buffer is too large, then we need a new // one in order to avoid the penalty of creating a large array. if (buf.capacity() > UPPER_LIMIT) { buf = new StringBuilder(DEFAULT_SIZE); // depends on con...