code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
@Override
public void writeContent(XMLExtendedStreamWriter writer, SubsystemMarshallingContext context) throws XMLStreamException {
ModelNode node = context.getModelNode();
boolean hasChildren = node.hasDefined(RESOURCEADAPTER_NAME) && node.get(RESOURCEADAPTER_NAME).asProp... | public class class_name {
@Override
public void writeContent(XMLExtendedStreamWriter writer, SubsystemMarshallingContext context) throws XMLStreamException {
ModelNode node = context.getModelNode();
boolean hasChildren = node.hasDefined(RESOURCEADAPTER_NAME) && node.get(RESOURCEADAPTER_NAME).asProp... |
public class class_name {
public Object createNewInstance(Class[] types, Object[] args)
{
try
{
Object result;
// create an instance of the target class
if (types != null)
{
result = ClassHelper.newInstance(getClassToServe(), t... | public class class_name {
public Object createNewInstance(Class[] types, Object[] args)
{
try
{
Object result;
// create an instance of the target class
if (types != null)
{
result = ClassHelper.newInstance(getClassToServe(), t... |
public class class_name {
protected boolean section()
{
// System.out.println("------------- section");
// compute the value at the new sample point
double temp = stp;
stp = interpolate(pLow +t2*(pHi - pLow), pHi -t3*(pHi - pLow));
updated = true;
// save the previous step
if( !Double.isNaN(gp)) {
// ... | public class class_name {
protected boolean section()
{
// System.out.println("------------- section");
// compute the value at the new sample point
double temp = stp;
stp = interpolate(pLow +t2*(pHi - pLow), pHi -t3*(pHi - pLow));
updated = true;
// save the previous step
if( !Double.isNaN(gp)) {
// ... |
public class class_name {
public static double Log(double x) {
double p, q, w, z;
double[] A =
{
8.11614167470508450300E-4,
-5.95061904284301438324E-4,
7.93650340457716943945E-4,
-2.77777777... | public class class_name {
public static double Log(double x) {
double p, q, w, z;
double[] A =
{
8.11614167470508450300E-4,
-5.95061904284301438324E-4,
7.93650340457716943945E-4,
-2.77777777... |
public class class_name {
private static void moveElements(List<?> input, Collection<Object> output, int maxElements) {
for (int i = 0; i < maxElements; i++) {
output.add(input.remove(0));
}
} } | public class class_name {
private static void moveElements(List<?> input, Collection<Object> output, int maxElements) {
for (int i = 0; i < maxElements; i++) {
output.add(input.remove(0)); // depends on control dependency: [for], data = [none]
}
} } |
public class class_name {
public DescribeEntityAggregatesResult withEntityAggregates(EntityAggregate... entityAggregates) {
if (this.entityAggregates == null) {
setEntityAggregates(new java.util.ArrayList<EntityAggregate>(entityAggregates.length));
}
for (EntityAggregate ele : entit... | public class class_name {
public DescribeEntityAggregatesResult withEntityAggregates(EntityAggregate... entityAggregates) {
if (this.entityAggregates == null) {
setEntityAggregates(new java.util.ArrayList<EntityAggregate>(entityAggregates.length)); // depends on control dependency: [if], data = [no... |
public class class_name {
public java.util.List<VolumeStatusAction> getActions() {
if (actions == null) {
actions = new com.amazonaws.internal.SdkInternalList<VolumeStatusAction>();
}
return actions;
} } | public class class_name {
public java.util.List<VolumeStatusAction> getActions() {
if (actions == null) {
actions = new com.amazonaws.internal.SdkInternalList<VolumeStatusAction>(); // depends on control dependency: [if], data = [none]
}
return actions;
} } |
public class class_name {
@Nullable
@ReturnsMutableCopy
public ICommonsList <MimeTypeInfo> getAllInfosOfExtension (@Nullable final String sExtension)
{
// Extension may be empty!
if (sExtension == null)
return null;
return m_aRWLock.readLocked ( () -> {
ICommonsList <MimeTypeInfo> ret = ... | public class class_name {
@Nullable
@ReturnsMutableCopy
public ICommonsList <MimeTypeInfo> getAllInfosOfExtension (@Nullable final String sExtension)
{
// Extension may be empty!
if (sExtension == null)
return null;
return m_aRWLock.readLocked ( () -> {
ICommonsList <MimeTypeInfo> ret = ... |
public class class_name {
private void removeBlocks(List<BlockInfo> blocks) {
if (blocks == null) {
return;
}
for (BlockInfo b : blocks) {
removeFromExcessReplicateMap(b);
neededReplications.remove(b, -1);
corruptReplicas.removeFromCorruptReplicasMap(b);
if (pendingReplication... | public class class_name {
private void removeBlocks(List<BlockInfo> blocks) {
if (blocks == null) {
return; // depends on control dependency: [if], data = [none]
}
for (BlockInfo b : blocks) {
removeFromExcessReplicateMap(b); // depends on control dependency: [for], data = [b]
neededRepli... |
public class class_name {
public URI uri() {
String uri = newBuilder().reencodeForUri().toString();
try {
return new URI(uri);
} catch (URISyntaxException e) {
// Unlikely edge case: the URI has a forbidden character in the fragment. Strip it & retry.
try {
... | public class class_name {
public URI uri() {
String uri = newBuilder().reencodeForUri().toString();
try {
return new URI(uri); // depends on control dependency: [try], data = [none]
} catch (URISyntaxException e) {
// Unlikely edge case: the URI has a forbidden character... |
public class class_name {
public void stop() {
// return if not running
if (!running.compareAndSet(true, false)) {
return;
}
try {
runner.join();
} catch (InterruptedException e) {
throw new WebcamException("Joint interrupted");
}
LOG.debug("Discovery service has been stopped");
runner = ... | public class class_name {
public void stop() {
// return if not running
if (!running.compareAndSet(true, false)) {
return; // depends on control dependency: [if], data = [none]
}
try {
runner.join(); // depends on control dependency: [try], data = [none]
} catch (InterruptedException e) {
throw n... |
public class class_name {
public static Object newHashTable(int numEntries, float loadFactor) {
int hashSize = (int) Math.ceil((float) numEntries / loadFactor);
hashSize = 1 << (32 - Integer.numberOfLeadingZeros(hashSize)); // next
... | public class class_name {
public static Object newHashTable(int numEntries, float loadFactor) {
int hashSize = (int) Math.ceil((float) numEntries / loadFactor);
hashSize = 1 << (32 - Integer.numberOfLeadingZeros(hashSize)); // next
... |
public class class_name {
private void split(Map<Invariant, SortedSet<Integer>> invariants, Partition partition) {
int nonEmptyInvariants = invariants.keySet().size();
if (nonEmptyInvariants > 1) {
List<Invariant> invariantKeys =
new ArrayList<Invariant>(invariants.keyS... | public class class_name {
private void split(Map<Invariant, SortedSet<Integer>> invariants, Partition partition) {
int nonEmptyInvariants = invariants.keySet().size();
if (nonEmptyInvariants > 1) {
List<Invariant> invariantKeys =
new ArrayList<Invariant>(invariants.keyS... |
public class class_name {
private static void handleEOD(EncoderContext context, CharSequence buffer) {
try {
int count = buffer.length();
if (count == 0) {
return; //Already finished
}
if (count == 1) {
//Only an unlatch at the end
context.updateSymbolInfo();
... | public class class_name {
private static void handleEOD(EncoderContext context, CharSequence buffer) {
try {
int count = buffer.length();
if (count == 0) {
return; //Already finished // depends on control dependency: [if], data = [none]
}
if (count == 1) {
//Only an unlatch ... |
public class class_name {
public static long incThreeBytePrimaryByOffset(long basePrimary, boolean isCompressible,
int offset) {
// Extract the third byte, minus the minimum byte value,
// plus the offset, modulo the number of usable byte values, plus the... | public class class_name {
public static long incThreeBytePrimaryByOffset(long basePrimary, boolean isCompressible,
int offset) {
// Extract the third byte, minus the minimum byte value,
// plus the offset, modulo the number of usable byte values, plus the... |
public class class_name {
public static void elementPower(DMatrixD1 A , double b, DMatrixD1 C ) {
if( A.numRows != C.numRows || A.numCols != C.numCols ) {
throw new MatrixDimensionException("All matrices must be the same shape");
}
int size = A.getNumElements();
for( int i... | public class class_name {
public static void elementPower(DMatrixD1 A , double b, DMatrixD1 C ) {
if( A.numRows != C.numRows || A.numCols != C.numCols ) {
throw new MatrixDimensionException("All matrices must be the same shape");
}
int size = A.getNumElements();
for( int i... |
public class class_name {
@SuppressWarnings("unchecked")
protected static final Tree toTree(Object object) {
if (object == null) {
return new Tree((Tree) null, null, null);
}
if (object instanceof Tree) {
return (Tree) object;
}
if (object instanceof Map) {
return new Tree((Map<String, Obj... | public class class_name {
@SuppressWarnings("unchecked")
protected static final Tree toTree(Object object) {
if (object == null) {
return new Tree((Tree) null, null, null);
// depends on control dependency: [if], data = [null)]
}
if (object instanceof Tree) {
return (Tree) object;
// depends on con... |
public class class_name {
public Object [] getChildren(Object parent) {
if (parent == invisibleRoot) {
return ((TreeParent)invisibleRoot).getChildren();
} else if (parent instanceof TreeParent) {
return manager.getChildren(parent);
}
return new Object[0];
} } | public class class_name {
public Object [] getChildren(Object parent) {
if (parent == invisibleRoot) {
return ((TreeParent)invisibleRoot).getChildren(); // depends on control dependency: [if], data = [invisibleRoot)]
} else if (parent instanceof TreeParent) {
return manager.getC... |
public class class_name {
@SuppressFBWarnings(value = "DMI_COLLECTION_OF_URLS", justification = "Plugin loading happens only once on Jenkins startup")
protected @Nonnull Set<String> loadPluginsFromWar(@Nonnull String fromPath, @CheckForNull FilenameFilter filter) {
Set<String> names = new HashSet();
... | public class class_name {
@SuppressFBWarnings(value = "DMI_COLLECTION_OF_URLS", justification = "Plugin loading happens only once on Jenkins startup")
protected @Nonnull Set<String> loadPluginsFromWar(@Nonnull String fromPath, @CheckForNull FilenameFilter filter) {
Set<String> names = new HashSet();
... |
public class class_name {
protected void deleteChildExecutions(ExecutionEntity parentExecution, boolean deleteExecution, CommandContext commandContext) {
// Delete all child executions
ExecutionEntityManager executionEntityManager = commandContext.getExecutionEntityManager();
Collection<ExecutionEntity> ch... | public class class_name {
protected void deleteChildExecutions(ExecutionEntity parentExecution, boolean deleteExecution, CommandContext commandContext) {
// Delete all child executions
ExecutionEntityManager executionEntityManager = commandContext.getExecutionEntityManager();
Collection<ExecutionEntity> ch... |
public class class_name {
private List<Locale> initWorkplaceLocales(CmsObject cms) {
Set<Locale> locales = new HashSet<Locale>();
// collect locales from the VFS
if (cms.existsResource(CmsWorkplace.VFS_PATH_LOCALES)) {
List<CmsResource> localeFolders;
try {
... | public class class_name {
private List<Locale> initWorkplaceLocales(CmsObject cms) {
Set<Locale> locales = new HashSet<Locale>();
// collect locales from the VFS
if (cms.existsResource(CmsWorkplace.VFS_PATH_LOCALES)) {
List<CmsResource> localeFolders;
try {
... |
public class class_name {
protected void discover(final Mapper mapper) {
for (final Class<? extends Annotation> clazz : INTERESTING) {
addAnnotation(clazz);
}
//type must be discovered before the constructor.
discoverType(mapper);
constructor = discoverConstructor()... | public class class_name {
protected void discover(final Mapper mapper) {
for (final Class<? extends Annotation> clazz : INTERESTING) {
addAnnotation(clazz); // depends on control dependency: [for], data = [clazz]
}
//type must be discovered before the constructor.
discoverT... |
public class class_name {
public void marshall(ListStateMachinesRequest listStateMachinesRequest, ProtocolMarshaller protocolMarshaller) {
if (listStateMachinesRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocol... | public class class_name {
public void marshall(ListStateMachinesRequest listStateMachinesRequest, ProtocolMarshaller protocolMarshaller) {
if (listStateMachinesRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocol... |
public class class_name {
public boolean isAllowed(String contextPath, String uri, String method,
Authentication authentication) {
Assert.notNull(uri, "uri parameter is required");
FilterInvocation fi = new FilterInvocation(contextPath, uri, method);
Collection<ConfigAttribute> attrs = securityInterceptor
... | public class class_name {
public boolean isAllowed(String contextPath, String uri, String method,
Authentication authentication) {
Assert.notNull(uri, "uri parameter is required");
FilterInvocation fi = new FilterInvocation(contextPath, uri, method);
Collection<ConfigAttribute> attrs = securityInterceptor
... |
public class class_name {
public void visitPubapi(Element e) {
Name n = ((ClassSymbol)e).fullname;
Name p = ((ClassSymbol)e).packge().fullname;
StringBuffer sb = publicApiPerClass.get(n);
assert(sb == null);
sb = new StringBuffer();
PubapiVisitor v = new PubapiVisitor(sb... | public class class_name {
public void visitPubapi(Element e) {
Name n = ((ClassSymbol)e).fullname;
Name p = ((ClassSymbol)e).packge().fullname;
StringBuffer sb = publicApiPerClass.get(n);
assert(sb == null);
sb = new StringBuffer();
PubapiVisitor v = new PubapiVisitor(sb... |
public class class_name {
private Map<String, String> getDependenciesFromJson(JSONObject json, String keyJson) {
Map<String, String> nameVersionMap = new HashMap<>();
if (json.has(keyJson)) {
JSONObject optionals = json.getJSONObject(keyJson);
Iterator<String> keys = optionals.k... | public class class_name {
private Map<String, String> getDependenciesFromJson(JSONObject json, String keyJson) {
Map<String, String> nameVersionMap = new HashMap<>();
if (json.has(keyJson)) {
JSONObject optionals = json.getJSONObject(keyJson);
Iterator<String> keys = optionals.k... |
public class class_name {
public static void configureProtocolHandler() {
final String pkgs = System.getProperty("java.protocol.handler.pkgs");
String newValue = "org.mapfish.print.url";
if (pkgs != null && !pkgs.contains(newValue)) {
newValue = newValue + "|" + pkgs;
} else... | public class class_name {
public static void configureProtocolHandler() {
final String pkgs = System.getProperty("java.protocol.handler.pkgs");
String newValue = "org.mapfish.print.url";
if (pkgs != null && !pkgs.contains(newValue)) {
newValue = newValue + "|" + pkgs; // depends on ... |
public class class_name {
protected void updatePatternSet(PatternSet value, String xmlTag, Counter counter, Element element)
{
boolean shouldExist = value != null;
Element root = updateElement(counter, element, xmlTag, shouldExist);
if (shouldExist)
{
Counter innerCount = new Counte... | public class class_name {
protected void updatePatternSet(PatternSet value, String xmlTag, Counter counter, Element element)
{
boolean shouldExist = value != null;
Element root = updateElement(counter, element, xmlTag, shouldExist);
if (shouldExist)
{
Counter innerCount = new Counte... |
public class class_name {
public String getSuperClientName()
{
ClassType superType = _clientDecl.getSuperclass();
while ( superType != null )
{
ClassDeclaration superDecl = superType.getDeclaration();
Collection<FieldDeclaration> declaredFields = superDecl.getField... | public class class_name {
public String getSuperClientName()
{
ClassType superType = _clientDecl.getSuperclass();
while ( superType != null )
{
ClassDeclaration superDecl = superType.getDeclaration();
Collection<FieldDeclaration> declaredFields = superDecl.getField... |
public class class_name {
public static ArrayList<String> toList( String[] array )
{
if( array == null )
{
return new ArrayList<String>( 0 );
}
ArrayList<String> list = new ArrayList<String>( array.length );
for (String s : array)
{
list.add( s );
}
return list;
} } | public class class_name {
public static ArrayList<String> toList( String[] array )
{
if( array == null )
{
return new ArrayList<String>( 0 );
// depends on control dependency: [if], data = [none]
}
ArrayList<String> list = new ArrayList<String>( array.length );
for (String s : array)
{
list... |
public class class_name {
public DBCluster withDBClusterMembers(DBClusterMember... dBClusterMembers) {
if (this.dBClusterMembers == null) {
setDBClusterMembers(new java.util.ArrayList<DBClusterMember>(dBClusterMembers.length));
}
for (DBClusterMember ele : dBClusterMembers) {
... | public class class_name {
public DBCluster withDBClusterMembers(DBClusterMember... dBClusterMembers) {
if (this.dBClusterMembers == null) {
setDBClusterMembers(new java.util.ArrayList<DBClusterMember>(dBClusterMembers.length)); // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
public static String stripTrailingChar(final String string, final char c) {
if (string.length() > 0) {
if (string.charAt(string.length() - 1) == c) {
return string.substring(0, string.length() - 1);
}
}
return string;
} } | public class class_name {
public static String stripTrailingChar(final String string, final char c) {
if (string.length() > 0) {
if (string.charAt(string.length() - 1) == c) {
return string.substring(0, string.length() - 1); // depends on control dependency: [if], data = [none]
}
}
return string;
} } |
public class class_name {
static ObjectStreamClass lookupStreamClass(Class<?> cl) {
WeakHashMap<Class<?>, ObjectStreamClass> tlc = getCache();
ObjectStreamClass cachedValue = tlc.get(cl);
if (cachedValue == null) {
cachedValue = createClassDesc(cl);
tlc.put(cl, cachedVal... | public class class_name {
static ObjectStreamClass lookupStreamClass(Class<?> cl) {
WeakHashMap<Class<?>, ObjectStreamClass> tlc = getCache();
ObjectStreamClass cachedValue = tlc.get(cl);
if (cachedValue == null) {
cachedValue = createClassDesc(cl); // depends on control dependency:... |
public class class_name {
public static String expand(
String pathUri, Object parameters, boolean addUnusedParamsAsQueryParams) {
Map<String, Object> variableMap = getMap(parameters);
StringBuilder pathBuf = new StringBuilder();
int cur = 0;
int length = pathUri.length();
while (cur < length)... | public class class_name {
public static String expand(
String pathUri, Object parameters, boolean addUnusedParamsAsQueryParams) {
Map<String, Object> variableMap = getMap(parameters);
StringBuilder pathBuf = new StringBuilder();
int cur = 0;
int length = pathUri.length();
while (cur < length)... |
public class class_name {
public static base_responses disable(nitro_service client, Long clid[]) throws Exception {
base_responses result = null;
if (clid != null && clid.length > 0) {
clusterinstance disableresources[] = new clusterinstance[clid.length];
for (int i=0;i<clid.length;i++){
disableresource... | public class class_name {
public static base_responses disable(nitro_service client, Long clid[]) throws Exception {
base_responses result = null;
if (clid != null && clid.length > 0) {
clusterinstance disableresources[] = new clusterinstance[clid.length];
for (int i=0;i<clid.length;i++){
disableresource... |
public class class_name {
private KamNode wrapNode(KamNode kamNode) {
if (kamNode == null) {
return null;
}
TermParameter param = ntp.get(kamNode.getId());
if (param != null) {
return new OrthologousNode(kamNode, param);
}
return kamNode;
} ... | public class class_name {
private KamNode wrapNode(KamNode kamNode) {
if (kamNode == null) {
return null; // depends on control dependency: [if], data = [none]
}
TermParameter param = ntp.get(kamNode.getId());
if (param != null) {
return new OrthologousNode(kamN... |
public class class_name {
public static void addAlgorithm(StructureAlignment alg) {
//ensure uniqueness
try {
getAlgorithm(alg.getAlgorithmName());
// algorithm was found. Do nothing.
} catch(StructureException e) {
// no algorithm found, so it's new
algorithms.add(alg);
}
} } | public class class_name {
public static void addAlgorithm(StructureAlignment alg) {
//ensure uniqueness
try {
getAlgorithm(alg.getAlgorithmName()); // depends on control dependency: [try], data = [none]
// algorithm was found. Do nothing.
} catch(StructureException e) {
// no algorithm found, so it's ne... |
public class class_name {
public void setBindingsSLO(Collection<String> bindingsSLO) {
if (bindingsSLO == null) {
this.bindingsSLO = Collections.emptyList();
} else {
this.bindingsSLO = bindingsSLO;
}
} } | public class class_name {
public void setBindingsSLO(Collection<String> bindingsSLO) {
if (bindingsSLO == null) {
this.bindingsSLO = Collections.emptyList(); // depends on control dependency: [if], data = [none]
} else {
this.bindingsSLO = bindingsSLO; // depends on control depe... |
public class class_name {
public ClientConfig setFlakeIdGeneratorConfigMap(Map<String, ClientFlakeIdGeneratorConfig> map) {
Preconditions.isNotNull(map, "flakeIdGeneratorConfigMap");
flakeIdGeneratorConfigMap.clear();
flakeIdGeneratorConfigMap.putAll(map);
for (Entry<String, ClientFlake... | public class class_name {
public ClientConfig setFlakeIdGeneratorConfigMap(Map<String, ClientFlakeIdGeneratorConfig> map) {
Preconditions.isNotNull(map, "flakeIdGeneratorConfigMap");
flakeIdGeneratorConfigMap.clear();
flakeIdGeneratorConfigMap.putAll(map);
for (Entry<String, ClientFlake... |
public class class_name {
public void printHtmlClassInfo(PrintWriter out, String strTag, String strParams, String strData)
{
String strClass = ((BasePanel)this.getRecordOwner()).getProperty("name");
if (strClass != null) if (strClass.length() > 0)
if (strData != null) if (strData.length... | public class class_name {
public void printHtmlClassInfo(PrintWriter out, String strTag, String strParams, String strData)
{
String strClass = ((BasePanel)this.getRecordOwner()).getProperty("name");
if (strClass != null) if (strClass.length() > 0)
if (strData != null) if (strData.length... |
public class class_name {
@SuppressWarnings("unchecked")
public static <T> TypeInformation<T> convert(String jsonSchema) {
Preconditions.checkNotNull(jsonSchema, "JSON schema");
final ObjectMapper mapper = new ObjectMapper();
mapper.getFactory()
.enable(JsonParser.Feature.ALLOW_COMMENTS)
.enable(JsonParse... | public class class_name {
@SuppressWarnings("unchecked")
public static <T> TypeInformation<T> convert(String jsonSchema) {
Preconditions.checkNotNull(jsonSchema, "JSON schema");
final ObjectMapper mapper = new ObjectMapper();
mapper.getFactory()
.enable(JsonParser.Feature.ALLOW_COMMENTS)
.enable(JsonParse... |
public class class_name {
public void preparePartitions(Map config, int totalTasks, int taskIndex, SpoutOutputCollector collector) throws Exception {
this.collector = collector;
if(stateStore == null) {
String zkEndpointAddress = eventHubConfig.getZkConnectionString();
if (zkEndpointAddress == null... | public class class_name {
public void preparePartitions(Map config, int totalTasks, int taskIndex, SpoutOutputCollector collector) throws Exception {
this.collector = collector;
if(stateStore == null) {
String zkEndpointAddress = eventHubConfig.getZkConnectionString();
if (zkEndpointAddress == null... |
public class class_name {
protected void subscribeEvent(
List topicSpaces,
List topics,
String busId,
Transaction transaction) throws SIResourceException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(
tc,
"subscribeEvent",
new Object[... | public class class_name {
protected void subscribeEvent(
List topicSpaces,
List topics,
String busId,
Transaction transaction) throws SIResourceException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(
tc,
"subscribeEvent",
new Object[... |
public class class_name {
public Object newInstance(String clazz) {
try {
return Class.forName(clazz).newInstance();
} catch (Exception e) {
error(e);
return null;
}
} } | public class class_name {
public Object newInstance(String clazz) {
try {
return Class.forName(clazz).newInstance(); // depends on control dependency: [try], data = [none]
} catch (Exception e) {
error(e);
return null;
} // depends on control dependency: [cat... |
public class class_name {
private String formatMessage(VdmDebugLogItem item)
{
String result = item.getMessage();
if (result.startsWith(XML_DECL_BEGIN))
{
int end = result.indexOf(XML_DECL_END);
if (end >= 0)
{
end += XML_DECL_END.length();
while (end < result.length()
&& Character.isWhit... | public class class_name {
private String formatMessage(VdmDebugLogItem item)
{
String result = item.getMessage();
if (result.startsWith(XML_DECL_BEGIN))
{
int end = result.indexOf(XML_DECL_END);
if (end >= 0)
{
end += XML_DECL_END.length(); // depends on control dependency: [if], data = [none]
... |
public class class_name {
public static XNElement parseXMLFragment(XMLStreamReader in)
throws XMLStreamException {
XNElement node = null;
XNElement root = null;
final StringBuilder emptyBuilder = new StringBuilder();
StringBuilder b = null;
Deque<StringBuilder> stack... | public class class_name {
public static XNElement parseXMLFragment(XMLStreamReader in)
throws XMLStreamException {
XNElement node = null;
XNElement root = null;
final StringBuilder emptyBuilder = new StringBuilder();
StringBuilder b = null;
Deque<StringBuilder> stack... |
public class class_name {
public void resolvePrefixTables() throws TransformerException
{
super.resolvePrefixTables();
StylesheetRoot stylesheet = getStylesheetRoot();
if ((null != m_namespace) && (m_namespace.length() > 0))
{
NamespaceAlias nsa = stylesheet.getNamespaceAliasComposed(m_names... | public class class_name {
public void resolvePrefixTables() throws TransformerException
{
super.resolvePrefixTables();
StylesheetRoot stylesheet = getStylesheetRoot();
if ((null != m_namespace) && (m_namespace.length() > 0))
{
NamespaceAlias nsa = stylesheet.getNamespaceAliasComposed(m_names... |
public class class_name {
public final boolean appliesTo(final URI property) {
if (this.properties.isEmpty() || this.properties.contains(property)) {
return true;
}
Preconditions.checkNotNull(property);
return false;
} } | public class class_name {
public final boolean appliesTo(final URI property) {
if (this.properties.isEmpty() || this.properties.contains(property)) {
return true; // depends on control dependency: [if], data = [none]
}
Preconditions.checkNotNull(property);
return false;
... |
public class class_name {
public static String join(String delimiter, Object... values) {
// Since primitive arrays does not pass as a values array, but as it's
// single first element.
if (values.length == 1) {
Class<?> type = values[0].getClass();
if (char[].class.equa... | public class class_name {
public static String join(String delimiter, Object... values) {
// Since primitive arrays does not pass as a values array, but as it's
// single first element.
if (values.length == 1) {
Class<?> type = values[0].getClass();
if (char[].class.equa... |
public class class_name {
public AnimaQuery<T> order(String order) {
if (this.orderBySQL.length() > 0) {
this.orderBySQL.append(',');
}
this.orderBySQL.append(' ').append(order);
return this;
} } | public class class_name {
public AnimaQuery<T> order(String order) {
if (this.orderBySQL.length() > 0) {
this.orderBySQL.append(','); // depends on control dependency: [if], data = [none]
}
this.orderBySQL.append(' ').append(order);
return this;
} } |
public class class_name {
private static boolean endsWith(final CharSequence str, final CharSequence suffix, final boolean ignoreCase) {
if (str == null || suffix == null) {
return str == null && suffix == null;
}
if (suffix.length() > str.length()) {
return false;
... | public class class_name {
private static boolean endsWith(final CharSequence str, final CharSequence suffix, final boolean ignoreCase) {
if (str == null || suffix == null) {
return str == null && suffix == null; // depends on control dependency: [if], data = [none]
}
if (suffix.leng... |
public class class_name {
static long getTotalSize(Collection<Allocation> allocations) {
long totalSize = 0;
for (Allocation allocation : allocations) {
totalSize += allocation.size;
}
return totalSize;
} } | public class class_name {
static long getTotalSize(Collection<Allocation> allocations) {
long totalSize = 0;
for (Allocation allocation : allocations) {
totalSize += allocation.size; // depends on control dependency: [for], data = [allocation]
}
return totalSize;
} } |
public class class_name {
public void addViewInterceptor(Method method, InterceptorFactory interceptorFactory, int priority) {
OrderedItemContainer<InterceptorFactory> container = viewInterceptors.get(method);
if (container == null) {
viewInterceptors.put(method, container = new OrderedItem... | public class class_name {
public void addViewInterceptor(Method method, InterceptorFactory interceptorFactory, int priority) {
OrderedItemContainer<InterceptorFactory> container = viewInterceptors.get(method);
if (container == null) {
viewInterceptors.put(method, container = new OrderedItem... |
public class class_name {
public LoadBalancerDescription withSubnets(String... subnets) {
if (this.subnets == null) {
setSubnets(new com.amazonaws.internal.SdkInternalList<String>(subnets.length));
}
for (String ele : subnets) {
this.subnets.add(ele);
}
r... | public class class_name {
public LoadBalancerDescription withSubnets(String... subnets) {
if (this.subnets == null) {
setSubnets(new com.amazonaws.internal.SdkInternalList<String>(subnets.length)); // depends on control dependency: [if], data = [none]
}
for (String ele : subnets) {
... |
public class class_name {
public T headerFragment(Object model, Marshaller marshaller) {
StringResult result = new StringResult();
try {
marshaller.marshal(model, result);
} catch (XmlMappingException e) {
throw new CitrusRuntimeException("Failed to marshal object graph... | public class class_name {
public T headerFragment(Object model, Marshaller marshaller) {
StringResult result = new StringResult();
try {
marshaller.marshal(model, result); // depends on control dependency: [try], data = [none]
} catch (XmlMappingException e) {
throw new... |
public class class_name {
public int getNumberAvailable() {
int result = 0;
for (int i = 0; i < data.size(); i++) {
if (data.get(i) != null) {
result += 1;
}
}
return result;
} } | public class class_name {
public int getNumberAvailable() {
int result = 0;
for (int i = 0; i < data.size(); i++) {
if (data.get(i) != null) {
result += 1;
// depends on control dependency: [if], data = [none]
}
}
return result;
} } |
public class class_name {
@GwtIncompatible // com.google.common.math.DoubleUtils
public static boolean isPowerOfTwo(double x) {
if (x > 0.0 && isFinite(x)) {
long significand = getSignificand(x);
return (significand & (significand - 1)) == 0;
}
return false;
} } | public class class_name {
@GwtIncompatible // com.google.common.math.DoubleUtils
public static boolean isPowerOfTwo(double x) {
if (x > 0.0 && isFinite(x)) {
long significand = getSignificand(x);
return (significand & (significand - 1)) == 0; // depends on control dependency: [if], data = [none]
... |
public class class_name {
public boolean handleCommand(String strCommand, ScreenField sourceSField, int iUseSameWindow)
{
boolean bHandled = this.doCommand(strCommand, sourceSField, iUseSameWindow); // Do I handle it?
if (bHandled == false)
{ // Not handled by this screen, try child wi... | public class class_name {
public boolean handleCommand(String strCommand, ScreenField sourceSField, int iUseSameWindow)
{
boolean bHandled = this.doCommand(strCommand, sourceSField, iUseSameWindow); // Do I handle it?
if (bHandled == false)
{ // Not handled by this screen, try child wi... |
public class class_name {
public BufferedImage render(List<ColouredPolygon> entity)
{
// Need to set the background before applying the transform.
graphics.setTransform(IDENTITY_TRANSFORM);
graphics.setColor(Color.GRAY);
graphics.fillRect(0, 0, targetSize.width, targetSize.height);
... | public class class_name {
public BufferedImage render(List<ColouredPolygon> entity)
{
// Need to set the background before applying the transform.
graphics.setTransform(IDENTITY_TRANSFORM);
graphics.setColor(Color.GRAY);
graphics.fillRect(0, 0, targetSize.width, targetSize.height);
... |
public class class_name {
public StorageKey toKey(Path fromPath, StorageKey storage) {
final List<FieldPartitioner> partitioners =
Accessor.getDefault().getFieldPartitioners(storage.getPartitionStrategy());
//Strip off the root directory to get partition segments
String truncatedPath = fromPat... | public class class_name {
public StorageKey toKey(Path fromPath, StorageKey storage) {
final List<FieldPartitioner> partitioners =
Accessor.getDefault().getFieldPartitioners(storage.getPartitionStrategy());
//Strip off the root directory to get partition segments
String truncatedPath = fromPat... |
public class class_name {
public static InetAddress getInetAddress(Config config, String path) {
try {
return InetAddress.getByName(config.getString(path));
} catch (UnknownHostException e) {
throw badValue(e, config, path);
}
} } | public class class_name {
public static InetAddress getInetAddress(Config config, String path) {
try {
return InetAddress.getByName(config.getString(path)); // depends on control dependency: [try], data = [none]
} catch (UnknownHostException e) {
throw badValue(e, config, path);... |
public class class_name {
public KeyArea setupKey(int iKeyArea)
{
KeyArea keyArea = null;
if (iKeyArea == 0)
{
keyArea = this.makeIndex(DBConstants.UNIQUE, ID_KEY);
keyArea.addKeyField(ID, DBConstants.ASCENDING);
}
if (iKeyArea == 1)
{
... | public class class_name {
public KeyArea setupKey(int iKeyArea)
{
KeyArea keyArea = null;
if (iKeyArea == 0)
{
keyArea = this.makeIndex(DBConstants.UNIQUE, ID_KEY); // depends on control dependency: [if], data = [none]
keyArea.addKeyField(ID, DBConstants.ASCENDING); ... |
public class class_name {
@SuppressWarnings("rawtypes")
protected List cacheLoadOrStore(List<Object> loadedObjects) {
if (loadedObjects.isEmpty()) {
return loadedObjects;
}
if (!(loadedObjects.get(0) instanceof Entity)) {
return loadedObjects;
}
List... | public class class_name {
@SuppressWarnings("rawtypes")
protected List cacheLoadOrStore(List<Object> loadedObjects) {
if (loadedObjects.isEmpty()) {
return loadedObjects; // depends on control dependency: [if], data = [none]
}
if (!(loadedObjects.get(0) instanceof Entity)) {
... |
public class class_name {
public static String parseWithMetric(final String metric,
final HashMap<String, String> tags) {
final int curly = metric.indexOf('{');
if (curly < 0) {
return metric;
}
final int len = metric.length();
if (metric.charAt(len - 1)... | public class class_name {
public static String parseWithMetric(final String metric,
final HashMap<String, String> tags) {
final int curly = metric.indexOf('{');
if (curly < 0) {
return metric; // depends on control dependency: [if], data = [none]
}
final int... |
public class class_name {
public void destroy(String name, Object instance)
{
if (instance != null && isManagedBean(name))
{
try
{
_lifecycleProvider.destroyInstance(instance);
}
catch (IllegalAccessException e)
{
... | public class class_name {
public void destroy(String name, Object instance)
{
if (instance != null && isManagedBean(name))
{
try
{
_lifecycleProvider.destroyInstance(instance); // depends on control dependency: [try], data = [none]
}
... |
public class class_name {
@Pure
public static Long getAttributeLongWithDefault(Node document, boolean caseSensitive, Long defaultValue, String... path) {
assert document != null : AssertMessages.notNullParameter(0);
final String v = getAttributeValue(document, caseSensitive, 0, path);
if (v != null) {
try {
... | public class class_name {
@Pure
public static Long getAttributeLongWithDefault(Node document, boolean caseSensitive, Long defaultValue, String... path) {
assert document != null : AssertMessages.notNullParameter(0);
final String v = getAttributeValue(document, caseSensitive, 0, path);
if (v != null) {
try {
... |
public class class_name {
private Instance[] readInstance(String corpus, FeatureMap featureMap)
{
IOUtil.LineIterator lineIterator = new IOUtil.LineIterator(corpus);
List<Instance> instanceList = new LinkedList<Instance>();
for (String line : lineIterator)
{
String[] cel... | public class class_name {
private Instance[] readInstance(String corpus, FeatureMap featureMap)
{
IOUtil.LineIterator lineIterator = new IOUtil.LineIterator(corpus);
List<Instance> instanceList = new LinkedList<Instance>();
for (String line : lineIterator)
{
String[] cel... |
public class class_name {
public User getUSer(String email)
{
try
{
ExampleFunctionService userService = appContext.getBean(ExampleFunctionService.class);
return userService.findUserByEmail(email);
}
finally
{
appContext.close();
}
} } | public class class_name {
public User getUSer(String email)
{
try
{
ExampleFunctionService userService = appContext.getBean(ExampleFunctionService.class);
return userService.findUserByEmail(email); // depends on control dependency: [try], data = [none]
}
finally
{
appContext.close();
}
} } |
public class class_name {
private static StringConcatenationClient toStringConcatenation(final String... javaCodeLines) {
return new StringConcatenationClient() {
@Override
protected void appendTo(StringConcatenationClient.TargetStringConcatenation builder) {
for (final String line : javaCodeLines) {
... | public class class_name {
private static StringConcatenationClient toStringConcatenation(final String... javaCodeLines) {
return new StringConcatenationClient() {
@Override
protected void appendTo(StringConcatenationClient.TargetStringConcatenation builder) {
for (final String line : javaCodeLines) {
... |
public class class_name {
public void addFunctions(final FunctionSet functions) {
checkNotNull(functions);
log.debug("Adding functions: {}", functions);
Object target = functions.target();
for (String name : functions.names()) {
addCommand(null, target, name);
}
} } | public class class_name {
public void addFunctions(final FunctionSet functions) {
checkNotNull(functions);
log.debug("Adding functions: {}", functions);
Object target = functions.target();
for (String name : functions.names()) {
addCommand(null, target, name); // depends on control dependency: [... |
public class class_name {
private void initActionButtonAttrs(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) {
TypedArray attributes = context.getTheme().obtainStyledAttributes(attrs, R.styleable.ActionButton,
defStyleAttr, defStyleRes);
try {
initType(attributes);
initSize(attrib... | public class class_name {
private void initActionButtonAttrs(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) {
TypedArray attributes = context.getTheme().obtainStyledAttributes(attrs, R.styleable.ActionButton,
defStyleAttr, defStyleRes);
try {
initType(attributes); // depends on cont... |
public class class_name {
private List getRetainedPagesWithTemplate(List xmlPages) {
// list of resources belongs to the selected template
List resourcesWithTemplate = new ArrayList();
TreeMap templates = null;
try {
templates = CmsNewResourceXmlPage.getTemplates(getCms(), ... | public class class_name {
private List getRetainedPagesWithTemplate(List xmlPages) {
// list of resources belongs to the selected template
List resourcesWithTemplate = new ArrayList();
TreeMap templates = null;
try {
templates = CmsNewResourceXmlPage.getTemplates(getCms(), ... |
public class class_name {
public void setScriptFile(final String scriptFile) {
this.scriptFile = scriptFile;
this.scriptType = determineScriptType(scriptFile);
if (scriptType != SCRIPT_TYPE.CONTENTS) {
// assume that if adjusting the file, engine name should also be re-calc'd
... | public class class_name {
public void setScriptFile(final String scriptFile) {
this.scriptFile = scriptFile;
this.scriptType = determineScriptType(scriptFile);
if (scriptType != SCRIPT_TYPE.CONTENTS) {
// assume that if adjusting the file, engine name should also be re-calc'd
... |
public class class_name {
protected static PrimitiveIterator.OfLong createDelayStream(Duration delay, Duration jitter) {
if (jitter.isZero()) {
// No jitter, return an infinite stream of the delay duration
long delayNanos = asClampedNanos(delay);
return LongStream.generate((... | public class class_name {
protected static PrimitiveIterator.OfLong createDelayStream(Duration delay, Duration jitter) {
if (jitter.isZero()) {
// No jitter, return an infinite stream of the delay duration
long delayNanos = asClampedNanos(delay);
return LongStream.generate((... |
public class class_name {
@Override
public void begin(String namespace, String name, Attributes attributes) throws Exception {
// not now: 6.0.0
// digester.setLogger(CmsLog.getLog(digester.getClass()));
// Push an array to capture the parameter values if necessary
if (m_paramCoun... | public class class_name {
@Override
public void begin(String namespace, String name, Attributes attributes) throws Exception {
// not now: 6.0.0
// digester.setLogger(CmsLog.getLog(digester.getClass()));
// Push an array to capture the parameter values if necessary
if (m_paramCoun... |
public class class_name {
public void setReferencedByResources(java.util.Collection<String> referencedByResources) {
if (referencedByResources == null) {
this.referencedByResources = null;
return;
}
this.referencedByResources = new java.util.ArrayList<String>(referenced... | public class class_name {
public void setReferencedByResources(java.util.Collection<String> referencedByResources) {
if (referencedByResources == null) {
this.referencedByResources = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [i... |
public class class_name {
public static Location location(List<Location> subLocations, String type) {
if (subLocations.size() == 1) {
return subLocations.get(0);
}
boolean circular = detectCicular(subLocations);
Strand strand = detectStrand(subLocations);
Point start = detectStart(subLocations);
Point ... | public class class_name {
public static Location location(List<Location> subLocations, String type) {
if (subLocations.size() == 1) {
return subLocations.get(0); // depends on control dependency: [if], data = [none]
}
boolean circular = detectCicular(subLocations);
Strand strand = detectStrand(subLocations... |
public class class_name {
public DisableEnhancedMonitoringResult withCurrentShardLevelMetrics(String... currentShardLevelMetrics) {
if (this.currentShardLevelMetrics == null) {
setCurrentShardLevelMetrics(new com.amazonaws.internal.SdkInternalList<String>(currentShardLevelMetrics.length));
... | public class class_name {
public DisableEnhancedMonitoringResult withCurrentShardLevelMetrics(String... currentShardLevelMetrics) {
if (this.currentShardLevelMetrics == null) {
setCurrentShardLevelMetrics(new com.amazonaws.internal.SdkInternalList<String>(currentShardLevelMetrics.length)); // depen... |
public class class_name {
private Node getNextSibling(Node node) {
if (node == null || node == root)
return null;
Node newNode = node.getNextSibling();
if (newNode == null) {
newNode = node.getParentNode();
if (newNode == null || node == root)
return null;
int parentAccept = acceptNode(newNode)... | public class class_name {
private Node getNextSibling(Node node) {
if (node == null || node == root)
return null;
Node newNode = node.getNextSibling();
if (newNode == null) {
newNode = node.getParentNode(); // depends on control dependency: [if], data = [none]
if (newNode == null || node == root)
... |
public class class_name {
private ClassLoader getDefaultClassLoader() {
ClassLoader classLoader;
try {
classLoader = Thread.currentThread().getContextClassLoader();
} catch (Throwable ex) {
classLoader = null;
}
if (classLoader == null) {
clas... | public class class_name {
private ClassLoader getDefaultClassLoader() {
ClassLoader classLoader;
try {
classLoader = Thread.currentThread().getContextClassLoader(); // depends on control dependency: [try], data = [none]
} catch (Throwable ex) {
classLoader = null;
... |
public class class_name {
public static Element getChild(Element parent, String name, String[] names, boolean firstToLast) {
Assert.isNotNull(parent);
Assert.isNotNull(name);
Assert.isNotNull(names);
boolean found = false;
for (int i = 0; !found && i < names.length; ++i) {
... | public class class_name {
public static Element getChild(Element parent, String name, String[] names, boolean firstToLast) {
Assert.isNotNull(parent);
Assert.isNotNull(name);
Assert.isNotNull(names);
boolean found = false;
for (int i = 0; !found && i < names.length; ++i) {
... |
public class class_name {
public Observable<ServiceResponse<WorkflowTriggerCallbackUrlInner>> listCallbackUrlWithServiceResponseAsync(String resourceGroupName, String workflowName, GetCallbackUrlParameters listCallbackUrl) {
if (this.client.subscriptionId() == null) {
throw new IllegalArgumentExcep... | public class class_name {
public Observable<ServiceResponse<WorkflowTriggerCallbackUrlInner>> listCallbackUrlWithServiceResponseAsync(String resourceGroupName, String workflowName, GetCallbackUrlParameters listCallbackUrl) {
if (this.client.subscriptionId() == null) {
throw new IllegalArgumentExcep... |
public class class_name {
@SuppressWarnings("deprecation")
public BUILDER addAccessConstraint(final AccessConstraintDefinition accessConstraint) {
if (accessConstraints == null) {
accessConstraints = new AccessConstraintDefinition[] {accessConstraint};
} else {
accessConstra... | public class class_name {
@SuppressWarnings("deprecation")
public BUILDER addAccessConstraint(final AccessConstraintDefinition accessConstraint) {
if (accessConstraints == null) {
accessConstraints = new AccessConstraintDefinition[] {accessConstraint}; // depends on control dependency: [if], da... |
public class class_name {
public static void loadDictionary(BufferedReader br, TreeMap<String, CoreDictionary.Attribute> storage, boolean isCSV, Nature defaultNature) throws IOException
{
String splitter = "\\s";
if (isCSV)
{
splitter = ",";
}
String line;
... | public class class_name {
public static void loadDictionary(BufferedReader br, TreeMap<String, CoreDictionary.Attribute> storage, boolean isCSV, Nature defaultNature) throws IOException
{
String splitter = "\\s";
if (isCSV)
{
splitter = ",";
}
String line;
... |
public class class_name {
public static Level normalize(Level level) {
if (levelMap.containsKey(level.intValue())) {
return levelMap.get(level.intValue());
} else if (level.intValue() >= Level.SEVERE.intValue()) {
return Level.SEVERE;
} else if (level.intValue() >= Level.WARNING.intValue()) {
... | public class class_name {
public static Level normalize(Level level) {
if (levelMap.containsKey(level.intValue())) {
return levelMap.get(level.intValue()); // depends on control dependency: [if], data = [none]
} else if (level.intValue() >= Level.SEVERE.intValue()) {
return Level.SEVERE; // depends... |
public class class_name {
public <T> T put(Object jsonObject, String key, Object value, Configuration configuration) {
notNull(jsonObject, "json can not be null");
notEmpty(key, "key can not be null or empty");
notNull(configuration, "configuration can not be null");
EvaluationContext e... | public class class_name {
public <T> T put(Object jsonObject, String key, Object value, Configuration configuration) {
notNull(jsonObject, "json can not be null");
notEmpty(key, "key can not be null or empty");
notNull(configuration, "configuration can not be null");
EvaluationContext e... |
public class class_name {
public void addPackageName(PackageDoc pkg, String parsedPackageName,
Content summariesTree) {
Content pkgNameContent;
if (parsedPackageName.length() == 0) {
summariesTree.addContent(getMarkerAnchor(
SectionName.UNNAMED_PACKAGE_ANCHOR... | public class class_name {
public void addPackageName(PackageDoc pkg, String parsedPackageName,
Content summariesTree) {
Content pkgNameContent;
if (parsedPackageName.length() == 0) {
summariesTree.addContent(getMarkerAnchor(
SectionName.UNNAMED_PACKAGE_ANCHOR... |
public class class_name {
public boolean initSenSegmenter(String modelDir){
System.out.println("Initilize JVnSenSegmenter ...");
//initialize sentence segmentation
vnSenSegmenter = new JVnSenSegmenter();
if (!vnSenSegmenter.init(modelDir)){
System.out.println("Error while initilizing JVnSenSegmen... | public class class_name {
public boolean initSenSegmenter(String modelDir){
System.out.println("Initilize JVnSenSegmenter ...");
//initialize sentence segmentation
vnSenSegmenter = new JVnSenSegmenter();
if (!vnSenSegmenter.init(modelDir)){
System.out.println("Error while initilizing JVnSenSegmen... |
public class class_name {
public void dropByIndex(int idx) {
SAXRecord entry = realTSindex.get(idx);
if (null != entry) {
realTSindex.remove(idx);
entry.removeIndex(idx);
if (entry.getIndexes().isEmpty()) {
records.remove(String.valueOf(entry.getPayload()));
}
}
} } | public class class_name {
public void dropByIndex(int idx) {
SAXRecord entry = realTSindex.get(idx);
if (null != entry) {
realTSindex.remove(idx); // depends on control dependency: [if], data = [none]
entry.removeIndex(idx); // depends on control dependency: [if], data = [none]
if (entry.getI... |
public class class_name {
private void doListRemove(final Message<JsonObject> message) {
final String name = message.body().getString("name");
if (name == null) {
message.reply(new JsonObject().putString("status", "error").putString("message", "No name specified."));
return;
}
if (message.... | public class class_name {
private void doListRemove(final Message<JsonObject> message) {
final String name = message.body().getString("name");
if (name == null) {
message.reply(new JsonObject().putString("status", "error").putString("message", "No name specified.")); // depends on control dependency: [if... |
public class class_name {
public int getConnectionRetryTimeout() {
int retval;
if (containsKey(CONNECTION_RETRY_TIMEOUT_MS_PROP)) {
retval = getInt(CONNECTION_RETRY_TIMEOUT_MS_PROP, CONNECTION_RETRY_TIMEOUT_MS_DEFAULT);
} else {
retval = getInt(CLIENT_RETRY_TIMEOUT_MS_PROP, CONNECTION_RETRY_TIM... | public class class_name {
public int getConnectionRetryTimeout() {
int retval;
if (containsKey(CONNECTION_RETRY_TIMEOUT_MS_PROP)) {
retval = getInt(CONNECTION_RETRY_TIMEOUT_MS_PROP, CONNECTION_RETRY_TIMEOUT_MS_DEFAULT); // depends on control dependency: [if], data = [none]
} else {
retval = get... |
public class class_name {
public static ExpectedCondition<Boolean> and(final ExpectedCondition<?>... conditions) {
return new ExpectedCondition<Boolean>() {
@Override
public Boolean apply(WebDriver driver) {
for (ExpectedCondition<?> condition : conditions) {
Object result = condition... | public class class_name {
public static ExpectedCondition<Boolean> and(final ExpectedCondition<?>... conditions) {
return new ExpectedCondition<Boolean>() {
@Override
public Boolean apply(WebDriver driver) {
for (ExpectedCondition<?> condition : conditions) {
Object result = condition... |
public class class_name {
public static ColumnInformation create(String name, ColumnType type) {
byte[] nameBytes = name.getBytes();
byte[] arr = new byte[23 + 2 * nameBytes.length];
int pos = 0;
//lenenc_str catalog
//lenenc_str schema
//lenenc_str table
//lenenc_str org_... | public class class_name {
public static ColumnInformation create(String name, ColumnType type) {
byte[] nameBytes = name.getBytes();
byte[] arr = new byte[23 + 2 * nameBytes.length];
int pos = 0;
//lenenc_str catalog
//lenenc_str schema
//lenenc_str table
//lenenc_str org_... |
public class class_name {
public Object createObjectCache(String reference) {
final String methodName = "createCacheInstance()";
if (tc.isEntryEnabled())
Tr.entry(tc, methodName + " cacheName=" + reference);
CacheConfig config = ServerCache.getCacheService().getCacheInstanceConfig... | public class class_name {
public Object createObjectCache(String reference) {
final String methodName = "createCacheInstance()";
if (tc.isEntryEnabled())
Tr.entry(tc, methodName + " cacheName=" + reference);
CacheConfig config = ServerCache.getCacheService().getCacheInstanceConfig... |
public class class_name {
@Override
public void inheritHistory(ConnectionWrapper wrapper) {
super.inheritHistory(wrapper);
if (wrapper instanceof HookedConnectionWrapper) {
final HookedConnectionWrapper inherited = (HookedConnectionWrapper) wrapper;
checkingOutRequestPath = ... | public class class_name {
@Override
public void inheritHistory(ConnectionWrapper wrapper) {
super.inheritHistory(wrapper);
if (wrapper instanceof HookedConnectionWrapper) {
final HookedConnectionWrapper inherited = (HookedConnectionWrapper) wrapper;
checkingOutRequestPath = ... |
public class class_name {
private static final <T extends Appendable> void encodeRun(T buffer, short value, int length) {
try {
char valueChar = (char) value;
if (length < 4) {
for (int j=0; j<length; ++j) {
if (valueChar == ESCAPE) {
... | public class class_name {
private static final <T extends Appendable> void encodeRun(T buffer, short value, int length) {
try {
char valueChar = (char) value;
if (length < 4) {
for (int j=0; j<length; ++j) {
if (valueChar == ESCAPE) {
... |
public class class_name {
private HashMap<String, String> parseProgressInfoLine(String line) {
HashMap<String, String> table = null;
Matcher m = PROGRESS_INFO_PATTERN.matcher(line);
while (m.find())
{
if (table == null)
{
table = new HashMap<>();
... | public class class_name {
private HashMap<String, String> parseProgressInfoLine(String line) {
HashMap<String, String> table = null;
Matcher m = PROGRESS_INFO_PATTERN.matcher(line);
while (m.find())
{
if (table == null)
{
table = new HashMap<>(); ... |
public class class_name {
public java.lang.String getReportCall() {
java.lang.Object ref = reportCall_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = ... | public class class_name {
public java.lang.String getReportCall() {
java.lang.Object ref = reportCall_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref; // depends on control dependency: [if], data = [none]
} else {
com.google.protobuf.ByteString bs =
(com.google... |
public class class_name {
public static Class<?> loadClass(
String name,
ClassLoader callerClassLoader) throws ClassNotFoundException
{
Class<?> clazz = null;
try
{
ClassLoader loader = getContextClassLoader();
if (loader != null)
{
clazz = loader.loadClass(name... | public class class_name {
public static Class<?> loadClass(
String name,
ClassLoader callerClassLoader) throws ClassNotFoundException
{
Class<?> clazz = null;
try
{
ClassLoader loader = getContextClassLoader();
if (loader != null)
{
clazz = loader.loadClass(name... |
public class class_name {
@Override
public void reconfigurePropertyImpl(String property, String newVal)
throws ReconfigurationException {
if (property.equals("dfs.data.dir")) {
try {
LOG.info("Reconfigure " + property + " to " + newVal);
this.refreshVolumes(newVal);
} catch (Exce... | public class class_name {
@Override
public void reconfigurePropertyImpl(String property, String newVal)
throws ReconfigurationException {
if (property.equals("dfs.data.dir")) {
try {
LOG.info("Reconfigure " + property + " to " + newVal); // depends on control dependency: [try], data = [none]
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.