code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
public NucleotideCompound getAmbiguity(NucleotideCompound... compounds) {
Set<NucleotideCompound> settedCompounds = new HashSet<NucleotideCompound>();
for(NucleotideCompound compound: compounds) {
for(NucleotideCompound subCompound: compound.getConstituents()) {
settedCompounds.add... | public class class_name {
public NucleotideCompound getAmbiguity(NucleotideCompound... compounds) {
Set<NucleotideCompound> settedCompounds = new HashSet<NucleotideCompound>();
for(NucleotideCompound compound: compounds) {
for(NucleotideCompound subCompound: compound.getConstituents()) {
settedCompounds.add... |
public class class_name {
private static final AbstractMessageParser createParser (final ProtocolDataUnit protocolDataUnit, final OperationCode operationCode) {
switch (operationCode) {
case LOGIN_REQUEST :
return new LoginRequestParser(protocolDataUnit);
case LOGIN_RES... | public class class_name {
private static final AbstractMessageParser createParser (final ProtocolDataUnit protocolDataUnit, final OperationCode operationCode) {
switch (operationCode) {
case LOGIN_REQUEST :
return new LoginRequestParser(protocolDataUnit);
case LOGIN_RES... |
public class class_name {
public final EObject ruleXBooleanLiteral() throws RecognitionException {
EObject current = null;
Token otherlv_1=null;
Token lv_isTrue_2_0=null;
enterRule();
try {
// InternalXbase.g:4670:2: ( ( () (otherlv_1= 'false' | ( (lv_isTrue_2_0... | public class class_name {
public final EObject ruleXBooleanLiteral() throws RecognitionException {
EObject current = null;
Token otherlv_1=null;
Token lv_isTrue_2_0=null;
enterRule();
try {
// InternalXbase.g:4670:2: ( ( () (otherlv_1= 'false' | ( (lv_isTrue_2_0... |
public class class_name {
public static String tryToTrimToSize(String s, int length, boolean trimSuffix) {
if (s == null || s.isEmpty()) {
return s;
} else if (s.length() <= length) {
return s;
} else if (s.contains(File.separator)) {
String before = s.substr... | public class class_name {
public static String tryToTrimToSize(String s, int length, boolean trimSuffix) {
if (s == null || s.isEmpty()) {
return s; // depends on control dependency: [if], data = [none]
} else if (s.length() <= length) {
return s; // depends on control dependenc... |
public class class_name {
public String convert(final String value, final boolean is4YearTerm) {
final Matcher matcher = PATTERN_NUM.matcher(value);
if(!matcher.matches()) {
// 一致しない場合は、単純に数値の変換
return replaceSimple(value);
}
final String before = match... | public class class_name {
public String convert(final String value, final boolean is4YearTerm) {
final Matcher matcher = PATTERN_NUM.matcher(value);
if(!matcher.matches()) {
// 一致しない場合は、単純に数値の変換
return replaceSimple(value);
// depends on control dependency: [if], data = [... |
public class class_name {
synchronized boolean updateKeystoreConfig(Dictionary<String, Object> props) {
properties = props;
if (id != null) {
properties.put(Constants.SSLPROP_ALIAS, id);
}
String location = (String) properties.get(LibertyConstants.KEY_KEYSTORE_LOCATION);
... | public class class_name {
synchronized boolean updateKeystoreConfig(Dictionary<String, Object> props) {
properties = props;
if (id != null) {
properties.put(Constants.SSLPROP_ALIAS, id); // depends on control dependency: [if], data = [none]
}
String location = (String) prope... |
public class class_name {
@Internal
private static void pushAnnotationAttributes(Type declaringType, ClassVisitor declaringClassWriter, GeneratorAdapter generatorAdapter, Map<? extends CharSequence, Object> annotationData, Map<String, GeneratorAdapter> loadTypeMethods) {
int totalSize = annotationData.size... | public class class_name {
@Internal
private static void pushAnnotationAttributes(Type declaringType, ClassVisitor declaringClassWriter, GeneratorAdapter generatorAdapter, Map<? extends CharSequence, Object> annotationData, Map<String, GeneratorAdapter> loadTypeMethods) {
int totalSize = annotationData.size... |
public class class_name {
@SuppressWarnings("unchecked")
private void updateXmlContents(
I_CmsReport report,
String resourcePath,
boolean inclSubFolder,
CmsObject cmsObject) {
// write parameters to report
report.println(Messages.get().container(Messages.RPT_UPDATEX... | public class class_name {
@SuppressWarnings("unchecked")
private void updateXmlContents(
I_CmsReport report,
String resourcePath,
boolean inclSubFolder,
CmsObject cmsObject) {
// write parameters to report
report.println(Messages.get().container(Messages.RPT_UPDATEX... |
public class class_name {
public EClass getIfcFaceBasedSurfaceModel() {
if (ifcFaceBasedSurfaceModelEClass == null) {
ifcFaceBasedSurfaceModelEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI)
.getEClassifiers().get(221);
}
return ifcFaceBasedSurfaceModelEClass;
} } | public class class_name {
public EClass getIfcFaceBasedSurfaceModel() {
if (ifcFaceBasedSurfaceModelEClass == null) {
ifcFaceBasedSurfaceModelEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI)
.getEClassifiers().get(221);
// depends on control dependency: [if], data = [non... |
public class class_name {
public CreatePhoneNumberOrderRequest withE164PhoneNumbers(String... e164PhoneNumbers) {
if (this.e164PhoneNumbers == null) {
setE164PhoneNumbers(new java.util.ArrayList<String>(e164PhoneNumbers.length));
}
for (String ele : e164PhoneNumbers) {
t... | public class class_name {
public CreatePhoneNumberOrderRequest withE164PhoneNumbers(String... e164PhoneNumbers) {
if (this.e164PhoneNumbers == null) {
setE164PhoneNumbers(new java.util.ArrayList<String>(e164PhoneNumbers.length)); // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
void close(boolean closeFromWebUI, boolean remoteJTFailure)
throws IOException, InterruptedException {
synchronized (closeLock) {
checkJTEnd1FailureEvent();
if (!running) {
return;
}
running = false;
if (job != null) {
job.close();
... | public class class_name {
void close(boolean closeFromWebUI, boolean remoteJTFailure)
throws IOException, InterruptedException {
synchronized (closeLock) {
checkJTEnd1FailureEvent();
if (!running) {
return;
}
running = false;
if (job != null) {
job.close();
... |
public class class_name {
public static String getLocalizedMessage(ResourceBundle bundle, String key, Object... args) {
String pattern;
try {
pattern = bundle.getString(key);
} catch (MissingResourceException e) {
pattern = key;
}
if (ArrayUtils.isNotEmp... | public class class_name {
public static String getLocalizedMessage(ResourceBundle bundle, String key, Object... args) {
String pattern;
try {
pattern = bundle.getString(key); // depends on control dependency: [try], data = [none]
} catch (MissingResourceException e) {
pa... |
public class class_name {
public void formatDecimal(BigDecimal n, StringBuilder destination, DecimalFormatOptions options) {
DigitBuffer dbuf = new DigitBuffer();
DecimalFormatStyle style = options.style();
boolean grouping = orDefault(options.grouping(), false);
boolean currency = false;
NumberFor... | public class class_name {
public void formatDecimal(BigDecimal n, StringBuilder destination, DecimalFormatOptions options) {
DigitBuffer dbuf = new DigitBuffer();
DecimalFormatStyle style = options.style();
boolean grouping = orDefault(options.grouping(), false);
boolean currency = false;
NumberFor... |
public class class_name {
public static String instructionListToString(InstructionList il, ConstantPoolGen pool) {
StringBuilder out = new StringBuilder();
for (Iterator<InstructionHandle> i = il.iterator(); i.hasNext(); ) {
InstructionHandle handle = i.next();
out.append(handle.getInstruction().t... | public class class_name {
public static String instructionListToString(InstructionList il, ConstantPoolGen pool) {
StringBuilder out = new StringBuilder();
for (Iterator<InstructionHandle> i = il.iterator(); i.hasNext(); ) {
InstructionHandle handle = i.next();
out.append(handle.getInstruction().t... |
public class class_name {
public Integer getInt(String name) {
Object o = get(name);
if (o instanceof Number) {
return ((Number)o).intValue();
}
if (o != null) {
try {
String string = o.toString();
if (string != null) {
... | public class class_name {
public Integer getInt(String name) {
Object o = get(name);
if (o instanceof Number) {
return ((Number)o).intValue(); // depends on control dependency: [if], data = [none]
}
if (o != null) {
try {
String string = o.toStri... |
public class class_name {
public static void closeContext(Context ctx) {
if (ctx instanceof DirContextAdapter) {
return;
}
try {
if (ctx != null) {
ctx.close();
}
}
catch (NamingException e) {
logger.error("Failed to close context.", e);
}
} } | public class class_name {
public static void closeContext(Context ctx) {
if (ctx instanceof DirContextAdapter) {
return; // depends on control dependency: [if], data = [none]
}
try {
if (ctx != null) {
ctx.close(); // depends on control dependency: [if], data = [none]
}
}
catch (NamingException... |
public class class_name {
@SuppressWarnings("unchecked")
public OGraphEdge link(final OGraphVertex iTargetVertex, final String iClassName) {
if (iTargetVertex == null)
throw new IllegalArgumentException("Missed the target vertex");
// CREATE THE EDGE BETWEEN ME AND THE TARGET
final OGraphEdge edge = n... | public class class_name {
@SuppressWarnings("unchecked")
public OGraphEdge link(final OGraphVertex iTargetVertex, final String iClassName) {
if (iTargetVertex == null)
throw new IllegalArgumentException("Missed the target vertex");
// CREATE THE EDGE BETWEEN ME AND THE TARGET
final OGraphEdge edge = n... |
public class class_name {
@TargetApi(Build.VERSION_CODES.HONEYCOMB)
public static void restartActivity(Activity activity) {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {
activity.recreate();
} else {
Intent intent = activity.getIntent();
intent.ad... | public class class_name {
@TargetApi(Build.VERSION_CODES.HONEYCOMB)
public static void restartActivity(Activity activity) {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {
activity.recreate(); // depends on control dependency: [if], data = [none]
} else {
Inten... |
public class class_name {
public static String getCellFontStyle(final Workbook wb,
final Cell poiCell) {
CellStyle cellStyle = poiCell.getCellStyle();
StringBuilder webStyle = new StringBuilder();
if (cellStyle != null) {
short fontIdx = cellStyle.getFontIndex();
Font font = wb.getFontAt(fontIdx... | public class class_name {
public static String getCellFontStyle(final Workbook wb,
final Cell poiCell) {
CellStyle cellStyle = poiCell.getCellStyle();
StringBuilder webStyle = new StringBuilder();
if (cellStyle != null) {
short fontIdx = cellStyle.getFontIndex();
Font font = wb.getFontAt(fontIdx... |
public class class_name {
@Override
public EClass getIfcPropertySet() {
if (ifcPropertySetEClass == null) {
ifcPropertySetEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI)
.getEClassifiers().get(473);
}
return ifcPropertySetEClass;
} } | public class class_name {
@Override
public EClass getIfcPropertySet() {
if (ifcPropertySetEClass == null) {
ifcPropertySetEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI)
.getEClassifiers().get(473);
// depends on control dependency: [if], data = [none]
}
return ifcPro... |
public class class_name {
public int onePhaseCommitRemoteTransaction(GlobalTransaction gtx, List<WriteCommand> modifications) {
RpcManager rpcManager = cache.getRpcManager();
CommandsFactory factory = cache.getComponentRegistry().getCommandsFactory();
try {
//only pessimistic tx are committe... | public class class_name {
public int onePhaseCommitRemoteTransaction(GlobalTransaction gtx, List<WriteCommand> modifications) {
RpcManager rpcManager = cache.getRpcManager();
CommandsFactory factory = cache.getComponentRegistry().getCommandsFactory();
try {
//only pessimistic tx are committe... |
public class class_name {
@Override
public boolean clientSelectByExampleWithoutBLOBsMethodGenerated(Method method, Interface interfaze, IntrospectedTable introspectedTable) {
// 方法生成 selectOneByExample
Method selectOneMethod = JavaElementGeneratorTools.generateMethod(
METHOD_SELECT_... | public class class_name {
@Override
public boolean clientSelectByExampleWithoutBLOBsMethodGenerated(Method method, Interface interfaze, IntrospectedTable introspectedTable) {
// 方法生成 selectOneByExample
Method selectOneMethod = JavaElementGeneratorTools.generateMethod(
METHOD_SELECT_... |
public class class_name {
protected void deliverSpeak (ChatChannel channel, UserMessage message, int[] bodyIds)
{
channel = intern(channel);
for (int bodyId : bodyIds) {
BodyObject bobj = getBodyObject(bodyId);
if (bobj != null && shouldDeliverSpeak(channel, message, bobj)) ... | public class class_name {
protected void deliverSpeak (ChatChannel channel, UserMessage message, int[] bodyIds)
{
channel = intern(channel);
for (int bodyId : bodyIds) {
BodyObject bobj = getBodyObject(bodyId);
if (bobj != null && shouldDeliverSpeak(channel, message, bobj)) ... |
public class class_name {
public void clearPages(ClassLoader cl) {
Iterator<PageSource> it = this.pageSources.values().iterator();
PageSourceImpl entry;
while (it.hasNext()) {
entry = (PageSourceImpl) it.next();
if (cl != null) entry.clear(cl);
else entry.clear();
}
} } | public class class_name {
public void clearPages(ClassLoader cl) {
Iterator<PageSource> it = this.pageSources.values().iterator();
PageSourceImpl entry;
while (it.hasNext()) {
entry = (PageSourceImpl) it.next(); // depends on control dependency: [while], data = [none]
if (cl != null) entry.clear(cl);
... |
public class class_name {
protected FluentModelTImpl prepareForFutureCommitOrPostRun(FluentModelTImpl childResource) {
if (this.isPostRunMode) {
if (!childResource.taskGroup().dependsOn(this.parentTaskGroup)) {
this.parentTaskGroup.addPostRunDependentTaskGroup(childResource.taskGrou... | public class class_name {
protected FluentModelTImpl prepareForFutureCommitOrPostRun(FluentModelTImpl childResource) {
if (this.isPostRunMode) {
if (!childResource.taskGroup().dependsOn(this.parentTaskGroup)) {
this.parentTaskGroup.addPostRunDependentTaskGroup(childResource.taskGrou... |
public class class_name {
public ObjectName build() {
final String name = nameStrBuilder.substring(0, nameStrBuilder.length() - 1);
try {
return new ObjectName(name);
} catch (MalformedObjectNameException e) {
LOG.warn("Invalid ObjectName provided: " + name);
throw Throwables.propagate(e)... | public class class_name {
public ObjectName build() {
final String name = nameStrBuilder.substring(0, nameStrBuilder.length() - 1);
try {
return new ObjectName(name); // depends on control dependency: [try], data = [none]
} catch (MalformedObjectNameException e) {
LOG.warn("Invalid ObjectName p... |
public class class_name {
public static void setOutputForms( ActionMapping mapping, ActionForm[] outputForms,
HttpServletRequest request, boolean overwrite )
{
try
{
//
// Now set any output forms in the request or session, as appropria... | public class class_name {
public static void setOutputForms( ActionMapping mapping, ActionForm[] outputForms,
HttpServletRequest request, boolean overwrite )
{
try
{
//
// Now set any output forms in the request or session, as appropria... |
public class class_name {
private void copyToOffset(int offset) {
final int minCapacity = 2 * (offset + nbrruns);
if (valueslength.capacity() < minCapacity) {
// expensive case where we need to reallocate
int newCapacity = valueslength.capacity();
while (newCapacity < minCapacity) {
n... | public class class_name {
private void copyToOffset(int offset) {
final int minCapacity = 2 * (offset + nbrruns);
if (valueslength.capacity() < minCapacity) {
// expensive case where we need to reallocate
int newCapacity = valueslength.capacity();
while (newCapacity < minCapacity) {
n... |
public class class_name {
public static String trimString(String string, int maxMessageLength) {
if (string == null) {
return null;
} else if (string.length() > maxMessageLength) {
// CHECKSTYLE.OFF: MagicNumber
return string.substring(0, maxMessageLength - 3) + "...... | public class class_name {
public static String trimString(String string, int maxMessageLength) {
if (string == null) {
return null; // depends on control dependency: [if], data = [none]
} else if (string.length() > maxMessageLength) {
// CHECKSTYLE.OFF: MagicNumber
r... |
public class class_name {
public static ISREInstall getDefaultSREInstall() {
final ISREInstall install = getSREFromId(getDefaultSREId());
if (install != null && install.getValidity().isOK()) {
return install;
}
// if the default SRE goes missing, re-detect
LOCK.lock();
try {
//defaultSREId = null;
... | public class class_name {
public static ISREInstall getDefaultSREInstall() {
final ISREInstall install = getSREFromId(getDefaultSREId());
if (install != null && install.getValidity().isOK()) {
return install; // depends on control dependency: [if], data = [none]
}
// if the default SRE goes missing, re-dete... |
public class class_name {
public static By getLocator(String applicationKey, String code, Object... args) {
By locator = null;
logger.debug("getLocator with this application key : {}", applicationKey);
logger.debug("getLocator with this locator file : {}", Context.iniFiles.get(applicationKey... | public class class_name {
public static By getLocator(String applicationKey, String code, Object... args) {
By locator = null;
logger.debug("getLocator with this application key : {}", applicationKey);
logger.debug("getLocator with this locator file : {}", Context.iniFiles.get(applicationKey... |
public class class_name {
protected boolean validateRuntimeManage(
SchedulerStateManagerAdaptor adaptor,
String topologyName) throws TopologyRuntimeManagementException {
// Check whether the topology has already been running
Boolean isTopologyRunning = adaptor.isTopologyRunning(topologyName);
b... | public class class_name {
protected boolean validateRuntimeManage(
SchedulerStateManagerAdaptor adaptor,
String topologyName) throws TopologyRuntimeManagementException {
// Check whether the topology has already been running
Boolean isTopologyRunning = adaptor.isTopologyRunning(topologyName);
b... |
public class class_name {
public static InputStream asBufferedInputStream(InputStream is) {
if (is instanceof BufferedInputStream || is instanceof ByteArrayInputStream) {
return is;
}
return new BufferedInputStream(is);
} } | public class class_name {
public static InputStream asBufferedInputStream(InputStream is) {
if (is instanceof BufferedInputStream || is instanceof ByteArrayInputStream) {
return is; // depends on control dependency: [if], data = [none]
}
return new BufferedInputStream(is);
} } |
public class class_name {
Object asJSON() {
final List<Object> json = new ArrayList<>();
json.add(limit.asJSON());
if (offset != null) { json.add(offset.asJSON()); }
return json;
} } | public class class_name {
Object asJSON() {
final List<Object> json = new ArrayList<>();
json.add(limit.asJSON());
if (offset != null) { json.add(offset.asJSON()); } // depends on control dependency: [if], data = [(offset]
return json;
} } |
public class class_name {
public void enableUniformSize(final boolean enable) {
if (mUniformSize != enable) {
mUniformSize = enable;
if (mContainer != null) {
mContainer.onLayoutChanged(this);
}
}
} } | public class class_name {
public void enableUniformSize(final boolean enable) {
if (mUniformSize != enable) {
mUniformSize = enable; // depends on control dependency: [if], data = [none]
if (mContainer != null) {
mContainer.onLayoutChanged(this); // depends on control de... |
public class class_name {
public static String removeLeadingZeros(final String str) {
String result = str;
if (str != null && str.length() != 0) {
int startIndex = 0;
while (startIndex < str.length() - 1) {
final char ch = str.charAt(startIndex);
if (ch != '0') {
break;
... | public class class_name {
public static String removeLeadingZeros(final String str) {
String result = str;
if (str != null && str.length() != 0) {
int startIndex = 0;
while (startIndex < str.length() - 1) {
final char ch = str.charAt(startIndex);
if (ch != '0') {
break;
... |
public class class_name {
protected List<User> executePaginatedQuery(UserQuery query, Integer firstResult, Integer maxResults) {
if (firstResult == null) {
firstResult = 0;
}
if (maxResults == null) {
maxResults = Integer.MAX_VALUE;
}
return query.listPage(firstResult, maxResults);
} ... | public class class_name {
protected List<User> executePaginatedQuery(UserQuery query, Integer firstResult, Integer maxResults) {
if (firstResult == null) {
firstResult = 0; // depends on control dependency: [if], data = [none]
}
if (maxResults == null) {
maxResults = Integer.MAX_VALUE; // depen... |
public class class_name {
public static void splitBySize(final File file, final long sizeOfPart, final File destDir) throws UncheckedIOException {
final int numOfParts = (int) ((file.length() % sizeOfPart) == 0 ? (file.length() / sizeOfPart) : (file.length() / sizeOfPart) + 1);
final String fileNam... | public class class_name {
public static void splitBySize(final File file, final long sizeOfPart, final File destDir) throws UncheckedIOException {
final int numOfParts = (int) ((file.length() % sizeOfPart) == 0 ? (file.length() / sizeOfPart) : (file.length() / sizeOfPart) + 1);
final String fileNam... |
public class class_name {
protected U convertAttributesToProfile(final List<Map<String, Object>> listStorageAttributes, final String username) {
if (listStorageAttributes == null || listStorageAttributes.size() == 0) {
return null;
}
final Map<String, Object> storageAttributes = lis... | public class class_name {
protected U convertAttributesToProfile(final List<Map<String, Object>> listStorageAttributes, final String username) {
if (listStorageAttributes == null || listStorageAttributes.size() == 0) {
return null; // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
public String getConfigBrowserBasedAuthentication() {
if (m_useBrowserBasedHttpAuthentication) {
return Boolean.TRUE.toString();
} else if (m_browserBasedAuthenticationMechanism != null) {
return m_browserBasedAuthenticationMechanism;
} else {
... | public class class_name {
public String getConfigBrowserBasedAuthentication() {
if (m_useBrowserBasedHttpAuthentication) {
return Boolean.TRUE.toString(); // depends on control dependency: [if], data = [none]
} else if (m_browserBasedAuthenticationMechanism != null) {
return m_... |
public class class_name {
public void initRemoteStub(ObjectOutputStream daOut)
{
try {
daOut.writeUTF(startFieldName != null ? startFieldName : ProxyConstants.NULL);
daOut.writeUTF(endFieldName != null ? endFieldName : ProxyConstants.NULL);
this.writeField(daOut, m_fld... | public class class_name {
public void initRemoteStub(ObjectOutputStream daOut)
{
try {
daOut.writeUTF(startFieldName != null ? startFieldName : ProxyConstants.NULL); // depends on control dependency: [try], data = [none]
daOut.writeUTF(endFieldName != null ? endFieldName : ProxyCo... |
public class class_name {
public void visitLdcInsn(final Object value) {
if (api < Opcodes.ASM5
&& (value instanceof Handle
|| (value instanceof Type && ((Type) value).getSort() == Type.METHOD))) {
throw new UnsupportedOperationException(REQUIRES_ASM5);
}
if (mv != null) {
m... | public class class_name {
public void visitLdcInsn(final Object value) {
if (api < Opcodes.ASM5
&& (value instanceof Handle
|| (value instanceof Type && ((Type) value).getSort() == Type.METHOD))) {
throw new UnsupportedOperationException(REQUIRES_ASM5);
}
if (mv != null) {
m... |
public class class_name {
private Object filterValue(Object value)
{
if (value instanceof Boolean && !((Boolean) value).booleanValue())
{
value = null;
}
if (value instanceof String && ((String) value).isEmpty())
{
value = null;
}
if (value instanceof Doub... | public class class_name {
private Object filterValue(Object value)
{
if (value instanceof Boolean && !((Boolean) value).booleanValue())
{
value = null; // depends on control dependency: [if], data = [none]
}
if (value instanceof String && ((String) value).isEmpty())
{
... |
public class class_name {
public WireFeed build(Reader reader) throws IllegalArgumentException, FeedException {
final SAXBuilder saxBuilder = createSAXBuilder();
try {
if (xmlHealerOn) {
reader = new XmlFixerReader(reader);
}
final Document document =... | public class class_name {
public WireFeed build(Reader reader) throws IllegalArgumentException, FeedException {
final SAXBuilder saxBuilder = createSAXBuilder();
try {
if (xmlHealerOn) {
reader = new XmlFixerReader(reader); // depends on control dependency: [if], data = [non... |
public class class_name {
private void configureHandlerMappings() {
Map<String, HandlerMapping> handlerMappings = this.factory.getBeansOfType(HandlerMapping.class);
if (handlerMappings.isEmpty()) {
defineBean(BeanNameUrlHandlerMapping.class);
defineBean(RequestMappingHandlerMapp... | public class class_name {
private void configureHandlerMappings() {
Map<String, HandlerMapping> handlerMappings = this.factory.getBeansOfType(HandlerMapping.class);
if (handlerMappings.isEmpty()) {
defineBean(BeanNameUrlHandlerMapping.class); // depends on control dependency: [if], data = [... |
public class class_name {
public void marshall(CloudWatchLogsConfig cloudWatchLogsConfig, ProtocolMarshaller protocolMarshaller) {
if (cloudWatchLogsConfig == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.m... | public class class_name {
public void marshall(CloudWatchLogsConfig cloudWatchLogsConfig, ProtocolMarshaller protocolMarshaller) {
if (cloudWatchLogsConfig == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.m... |
public class class_name {
public int[] mergeAllChunks() {
int[] merged = new int[chunkSize*numChunks];
int filledChunks = Math.min(numChunks,getFilledChunks()+1);
for (int i = 0; i < filledChunks ; i++) {
if (chunks[i]!=null) {
System.arraycopy(chunks[i],0,merged,i*c... | public class class_name {
public int[] mergeAllChunks() {
int[] merged = new int[chunkSize*numChunks];
int filledChunks = Math.min(numChunks,getFilledChunks()+1);
for (int i = 0; i < filledChunks ; i++) {
if (chunks[i]!=null) {
System.arraycopy(chunks[i],0,merged,i*c... |
public class class_name {
public String stem(String word) {
String ret = null;
try {
ret = getActualStemmer().getWordStem(word);
}
catch (PTStemmerException e) {
e.printStackTrace();
}
return ret;
} } | public class class_name {
public String stem(String word) {
String ret = null;
try {
ret = getActualStemmer().getWordStem(word); // depends on control dependency: [try], data = [none]
}
catch (PTStemmerException e) {
e.printStackTrace();
} // depends on control dependency: [catch], data = [none]
... |
public class class_name {
public TerminalSize withColumns(int columns) {
if(this.columns == columns) {
return this;
}
if(columns == 0 && this.rows == 0) {
return ZERO;
}
return new TerminalSize(columns, this.rows);
} } | public class class_name {
public TerminalSize withColumns(int columns) {
if(this.columns == columns) {
return this; // depends on control dependency: [if], data = [none]
}
if(columns == 0 && this.rows == 0) {
return ZERO; // depends on control dependency: [if], data = [n... |
public class class_name {
public static void setMultiSelectEditorValue(
CmsObject cms,
Map<String, String[]> formParameters,
I_CmsWidgetDialog widgetDialog,
I_CmsWidgetParameter param) {
String[] values = formParameters.get(param.getId());
if ((values != null) && (value... | public class class_name {
public static void setMultiSelectEditorValue(
CmsObject cms,
Map<String, String[]> formParameters,
I_CmsWidgetDialog widgetDialog,
I_CmsWidgetParameter param) {
String[] values = formParameters.get(param.getId());
if ((values != null) && (value... |
public class class_name {
public static void substituteDeprecatedConfigPrefix(
Configuration config,
String deprecatedPrefix,
String designatedPrefix) {
// set the designated key only if it is not set already
final int prefixLen = deprecatedPrefix.length();
Configuration replacement = new Configuratio... | public class class_name {
public static void substituteDeprecatedConfigPrefix(
Configuration config,
String deprecatedPrefix,
String designatedPrefix) {
// set the designated key only if it is not set already
final int prefixLen = deprecatedPrefix.length();
Configuration replacement = new Configuratio... |
public class class_name {
private void configureSessionManager(final ServletContextHandler context, final Integer minutes,
final String cookie, String domain, String path, final String url, final Boolean cookieHttpOnly,
final Boolean secure, final String workerName, final Boolean lazy, final Stri... | public class class_name {
private void configureSessionManager(final ServletContextHandler context, final Integer minutes,
final String cookie, String domain, String path, final String url, final Boolean cookieHttpOnly,
final Boolean secure, final String workerName, final Boolean lazy, final Stri... |
public class class_name {
public void init(Object env, Map<String,Object> properties, Object applet)
{
if (properties == null)
properties = new Hashtable<String,Object>();
if (m_properties == null)
m_properties = properties;
else
m_properties.putAll(prope... | public class class_name {
public void init(Object env, Map<String,Object> properties, Object applet)
{
if (properties == null)
properties = new Hashtable<String,Object>();
if (m_properties == null)
m_properties = properties;
else
m_properties.putAll(prope... |
public class class_name {
public void marshall(DeliveryChannel deliveryChannel, ProtocolMarshaller protocolMarshaller) {
if (deliveryChannel == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(deliver... | public class class_name {
public void marshall(DeliveryChannel deliveryChannel, ProtocolMarshaller protocolMarshaller) {
if (deliveryChannel == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(deliver... |
public class class_name {
@SuppressWarnings("unchecked")
public A replace(Property property) {
Data data = getData();
Data replaced = data.replace(property);
if (!replaced.isEmpty()) {
return copy(delegate.put("data", Property.toArrayNode(replaced)));
}
return (A... | public class class_name {
@SuppressWarnings("unchecked")
public A replace(Property property) {
Data data = getData();
Data replaced = data.replace(property);
if (!replaced.isEmpty()) {
return copy(delegate.put("data", Property.toArrayNode(replaced))); // depends on control depen... |
public class class_name {
public static ColorConverter newInstance(Configuration config, String[] options) {
if (options.length < 1) {
LOGGER.error("Incorrect number of options on style. "
+ "Expected at least 1, received {}", options.length);
return null;
}
if (options[0] == null) {
LOGGER.error("... | public class class_name {
public static ColorConverter newInstance(Configuration config, String[] options) {
if (options.length < 1) {
LOGGER.error("Incorrect number of options on style. "
+ "Expected at least 1, received {}", options.length); // depends on control dependency: [if], data = [none]
return n... |
public class class_name {
public void marshall(DescribeClusterRequest describeClusterRequest, ProtocolMarshaller protocolMarshaller) {
if (describeClusterRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarsha... | public class class_name {
public void marshall(DescribeClusterRequest describeClusterRequest, ProtocolMarshaller protocolMarshaller) {
if (describeClusterRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarsha... |
public class class_name {
public void resetDimensions() {
if (immutable) throw new IllegalStateException("Cant modify");
ArrayList<Dimension> newDimensions = new ArrayList<>();
for (Dimension dim : dimensions) {
if (dim.isShared()) {
Dimension newD = getParentGroup().findDimension(dim.getSho... | public class class_name {
public void resetDimensions() {
if (immutable) throw new IllegalStateException("Cant modify");
ArrayList<Dimension> newDimensions = new ArrayList<>();
for (Dimension dim : dimensions) {
if (dim.isShared()) {
Dimension newD = getParentGroup().findDimension(dim.getSho... |
public class class_name {
private static String getPoliciesDocType(PolicyType type) {
String docType = "planPolicies"; //$NON-NLS-1$
if (type == PolicyType.Api) {
docType = "apiPolicies"; //$NON-NLS-1$
} else if (type == PolicyType.Client) {
docType = "clientPolicies"; /... | public class class_name {
private static String getPoliciesDocType(PolicyType type) {
String docType = "planPolicies"; //$NON-NLS-1$
if (type == PolicyType.Api) {
docType = "apiPolicies"; //$NON-NLS-1$ // depends on control dependency: [if], data = [none]
} else if (type == PolicyTy... |
public class class_name {
public void marshall(CopyBackupToRegionRequest copyBackupToRegionRequest, ProtocolMarshaller protocolMarshaller) {
if (copyBackupToRegionRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
proto... | public class class_name {
public void marshall(CopyBackupToRegionRequest copyBackupToRegionRequest, ProtocolMarshaller protocolMarshaller) {
if (copyBackupToRegionRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
proto... |
public class class_name {
public final String entryRuleOpOr() throws RecognitionException {
String current = null;
AntlrDatatypeRuleToken iv_ruleOpOr = null;
try {
// InternalXbase.g:425:44: (iv_ruleOpOr= ruleOpOr EOF )
// InternalXbase.g:426:2: iv_ruleOpOr= ruleOpOr ... | public class class_name {
public final String entryRuleOpOr() throws RecognitionException {
String current = null;
AntlrDatatypeRuleToken iv_ruleOpOr = null;
try {
// InternalXbase.g:425:44: (iv_ruleOpOr= ruleOpOr EOF )
// InternalXbase.g:426:2: iv_ruleOpOr= ruleOpOr ... |
public class class_name {
protected void updateRepositoryBase(RepositoryBase value, String xmlTag, Counter counter, Element element)
{
boolean shouldExist = value != null;
Element root = updateElement(counter, element, xmlTag, shouldExist);
if (shouldExist)
{
Counter innerCount = ne... | public class class_name {
protected void updateRepositoryBase(RepositoryBase value, String xmlTag, Counter counter, Element element)
{
boolean shouldExist = value != null;
Element root = updateElement(counter, element, xmlTag, shouldExist);
if (shouldExist)
{
Counter innerCount = ne... |
public class class_name {
final boolean isExpired() throws SevereMessageStoreException
{ // 182086
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "isExpired");
if (isAvailable() && internalCanExpire())
{
// we can only expire ... | public class class_name {
final boolean isExpired() throws SevereMessageStoreException
{ // 182086
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "isExpired");
if (isAvailable() && internalCanExpire())
{
// we can only expire ... |
public class class_name {
public Observable<ServiceResponse<Page<JobResponseInner>>> listJobsWithServiceResponseAsync(final String resourceGroupName, final String resourceName) {
return listJobsSinglePageAsync(resourceGroupName, resourceName)
.concatMap(new Func1<ServiceResponse<Page<JobResponseInn... | public class class_name {
public Observable<ServiceResponse<Page<JobResponseInner>>> listJobsWithServiceResponseAsync(final String resourceGroupName, final String resourceName) {
return listJobsSinglePageAsync(resourceGroupName, resourceName)
.concatMap(new Func1<ServiceResponse<Page<JobResponseInn... |
public class class_name {
public boolean removeBuddy(Request req, long timeout) {
initErrorInfo();
if (parent.retireBuddy(targetUri) == null) {
setReturnCode(SipSession.INVALID_ARGUMENT);
setErrorMessage("Buddy removal for URI " + targetUri + " failed, not found in buddy list.");
retur... | public class class_name {
public boolean removeBuddy(Request req, long timeout) {
initErrorInfo();
if (parent.retireBuddy(targetUri) == null) {
setReturnCode(SipSession.INVALID_ARGUMENT);
// depends on control dependency: [if], data = [none]
setErrorMessage("Buddy removal for URI " + targetUr... |
public class class_name {
public String formatReduced(
IsoDateStyle dateStyle,
IsoDecimalStyle decimalStyle,
ClockUnit precision,
InfinityStyle infinityStyle
) {
TimestampInterval interval = this.toCanonical();
PlainTimestamp start = interval.getStartAsTimestamp();
... | public class class_name {
public String formatReduced(
IsoDateStyle dateStyle,
IsoDecimalStyle decimalStyle,
ClockUnit precision,
InfinityStyle infinityStyle
) {
TimestampInterval interval = this.toCanonical();
PlainTimestamp start = interval.getStartAsTimestamp();
... |
public class class_name {
public boolean isConsumerSuspended(int suspendFlag)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "isConsumerSuspended", Integer.valueOf(suspendFlag));
boolean suspended;
this.lock();
try
{
if (suspendFlag == 0)
... | public class class_name {
public boolean isConsumerSuspended(int suspendFlag)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "isConsumerSuspended", Integer.valueOf(suspendFlag));
boolean suspended;
this.lock();
try
{
if (suspendFlag == 0)
... |
public class class_name {
public boolean isEmbedLinkUrlExpired(){
Long urlCreationTime = getUrlCreationTime();
if (urlCreationTime == null){
return true;
}
return (System.currentTimeMillis() - urlCreationTime) < (60 * 1000);
} } | public class class_name {
public boolean isEmbedLinkUrlExpired(){
Long urlCreationTime = getUrlCreationTime();
if (urlCreationTime == null){
return true; // depends on control dependency: [if], data = [none]
}
return (System.currentTimeMillis() - urlCreationTime) < (60 * 100... |
public class class_name {
private Collection<String> getFileDirectory(String path)
throws Exception {
// If the crawler is being closed, we return
if (closed) {
return Collections.emptyList();
}
logger.trace("Querying elasticsearch for files in dir [{}:{}]", PA... | public class class_name {
private Collection<String> getFileDirectory(String path)
throws Exception {
// If the crawler is being closed, we return
if (closed) {
return Collections.emptyList();
}
logger.trace("Querying elasticsearch for files in dir [{}:{}]", PA... |
public class class_name {
public void setGroupId(final String groupId) {
if (groupId == null && this.groupId == null) {
return;
} else if (groupId == null) {
removeChild(this.groupId);
this.groupId = null;
} else if (this.groupId == null) {
this.g... | public class class_name {
public void setGroupId(final String groupId) {
if (groupId == null && this.groupId == null) {
return; // depends on control dependency: [if], data = [none]
} else if (groupId == null) {
removeChild(this.groupId); // depends on control dependency: [if], ... |
public class class_name {
public static <T> T[] join(final T[] base, final T... add) {
if (add == null) {
return base;
} else if (base == null) {
return add;
}
if (add.length == 0) {
return base;
}
final T[] result = Arrays.copyOf(base... | public class class_name {
public static <T> T[] join(final T[] base, final T... add) {
if (add == null) {
return base; // depends on control dependency: [if], data = [none]
} else if (base == null) {
return add; // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
protected void reschedule(long minTimeoutAt) {
if (minTimeoutAt == Long.MAX_VALUE) {
for (PendingPromise pending : promises.values()) {
if (pending.timeoutAt > 0 && pending.timeoutAt < minTimeoutAt) {
minTimeoutAt = pending.timeoutAt;
}
}
long timeoutAt;
requestStre... | public class class_name {
protected void reschedule(long minTimeoutAt) {
if (minTimeoutAt == Long.MAX_VALUE) {
for (PendingPromise pending : promises.values()) {
if (pending.timeoutAt > 0 && pending.timeoutAt < minTimeoutAt) {
minTimeoutAt = pending.timeoutAt; // depends on control dependency: [if], data... |
public class class_name {
public void marshall(ParallelismConfigurationUpdate parallelismConfigurationUpdate, ProtocolMarshaller protocolMarshaller) {
if (parallelismConfigurationUpdate == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... | public class class_name {
public void marshall(ParallelismConfigurationUpdate parallelismConfigurationUpdate, ProtocolMarshaller protocolMarshaller) {
if (parallelismConfigurationUpdate == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... |
public class class_name {
@RequestMapping(value = "/getThumbnail.action", method = RequestMethod.GET)
public ResponseEntity<?> getThumbnail(@RequestParam Integer id) {
final HttpHeaders responseHeaders = new HttpHeaders();
Map<String, Object> responseMap;
try {
// try to get t... | public class class_name {
@RequestMapping(value = "/getThumbnail.action", method = RequestMethod.GET)
public ResponseEntity<?> getThumbnail(@RequestParam Integer id) {
final HttpHeaders responseHeaders = new HttpHeaders();
Map<String, Object> responseMap;
try {
// try to get t... |
public class class_name {
public void setDescriptionColor(final Color COLOR) {
if (null == descriptionColor) {
_descriptionColor = COLOR;
fireTileEvent(REDRAW_EVENT);
} else {
descriptionColor.set(COLOR);
}
} } | public class class_name {
public void setDescriptionColor(final Color COLOR) {
if (null == descriptionColor) {
_descriptionColor = COLOR; // depends on control dependency: [if], data = [none]
fireTileEvent(REDRAW_EVENT); // depends on control dependency: [if], data = [none]
} el... |
public class class_name {
@NonNull
private static List<Point> coordAll(@NonNull List<Point> coords,
@NonNull MultiPolygon multiPolygon,
boolean excludeWrapCoord) {
int wrapShrink = excludeWrapCoord ? 1 : 0;
for (int i = 0; i < multiP... | public class class_name {
@NonNull
private static List<Point> coordAll(@NonNull List<Point> coords,
@NonNull MultiPolygon multiPolygon,
boolean excludeWrapCoord) {
int wrapShrink = excludeWrapCoord ? 1 : 0;
for (int i = 0; i < multiP... |
public class class_name {
public void addSecureMethod(Class<?> javaType, String mappedName,
List<ConfigAttribute> attr) {
String name = javaType.getName() + '.' + mappedName;
if (logger.isDebugEnabled()) {
logger.debug("Request to add secure method [" + name + "] with attributes ["
+ attr + "]");
}
... | public class class_name {
public void addSecureMethod(Class<?> javaType, String mappedName,
List<ConfigAttribute> attr) {
String name = javaType.getName() + '.' + mappedName;
if (logger.isDebugEnabled()) {
logger.debug("Request to add secure method [" + name + "] with attributes ["
+ attr + "]"); // de... |
public class class_name {
public Class<?> getNestedParameterType() {
if (this.nestingLevel > 1) {
Type type = getGenericParameterType();
for (int i = 2; i <= this.nestingLevel; i++) {
if (type instanceof ParameterizedType) {
Type[] args = ((Parameteri... | public class class_name {
public Class<?> getNestedParameterType() {
if (this.nestingLevel > 1) {
Type type = getGenericParameterType();
for (int i = 2; i <= this.nestingLevel; i++) {
if (type instanceof ParameterizedType) {
Type[] args = ((Parameteri... |
public class class_name {
ProjectionRect latLonToProjBB2(LatLonRect latlonRect) {
double minx, maxx, miny, maxy;
LatLonPointImpl llpt = latlonRect.getLowerLeftPoint();
LatLonPointImpl urpt = latlonRect.getUpperRightPoint();
LatLonPointImpl lrpt = latlonRect.getLowerRightPoint();
LatLonPointI... | public class class_name {
ProjectionRect latLonToProjBB2(LatLonRect latlonRect) {
double minx, maxx, miny, maxy;
LatLonPointImpl llpt = latlonRect.getLowerLeftPoint();
LatLonPointImpl urpt = latlonRect.getUpperRightPoint();
LatLonPointImpl lrpt = latlonRect.getLowerRightPoint();
LatLonPointI... |
public class class_name {
@SuppressWarnings("deprecation")
public static String urlEscape(String s) {
try {
return URLEncoder.encode(s,"UTF8");
} catch (UnsupportedEncodingException e) {
// should be impossible; all JVMs must support UTF8
// but have a fallback j... | public class class_name {
@SuppressWarnings("deprecation")
public static String urlEscape(String s) {
try {
return URLEncoder.encode(s,"UTF8"); // depends on control dependency: [try], data = [none]
} catch (UnsupportedEncodingException e) {
// should be impossible; all JVMs... |
public class class_name {
protected Map<Method, Object> getConsoleMethods() {
// search for declared command collections
final Iterator<OConsoleCommandCollection> ite = ServiceRegistry.lookupProviders(OConsoleCommandCollection.class);
final Collection<Object> candidates = new ArrayList<Object>();
... | public class class_name {
protected Map<Method, Object> getConsoleMethods() {
// search for declared command collections
final Iterator<OConsoleCommandCollection> ite = ServiceRegistry.lookupProviders(OConsoleCommandCollection.class);
final Collection<Object> candidates = new ArrayList<Object>();
... |
public class class_name {
private void refreshPartitionKeys(boolean topologyUpdate) {
long interval = System.currentTimeMillis() - m_lastPartitionKeyFetched.get();
if (!m_useClientAffinity && interval < PARTITION_KEYS_INFO_REFRESH_FREQUENCY) {
return;
}
try {
... | public class class_name {
private void refreshPartitionKeys(boolean topologyUpdate) {
long interval = System.currentTimeMillis() - m_lastPartitionKeyFetched.get();
if (!m_useClientAffinity && interval < PARTITION_KEYS_INFO_REFRESH_FREQUENCY) {
return; // depends on control dependency: [if... |
public class class_name {
public void startAsync() {
Thread thread = new Thread(new Runnable() {
@Override
public void run() {
try {
start();
} catch (Exception e) {
LOG.error("Failed to connect to kubernetes: " + e... | public class class_name {
public void startAsync() {
Thread thread = new Thread(new Runnable() {
@Override
public void run() {
try {
start(); // depends on control dependency: [try], data = [none]
} catch (Exception e) {
... |
public class class_name {
public static void fireFirstDeclared(Throwable t, Class... declaredTypes) {
Throwable cause = t;
while (cause != null) {
cause = cause.getCause();
if (cause == null) {
break;
}
if (declaredTypes != null) {
... | public class class_name {
public static void fireFirstDeclared(Throwable t, Class... declaredTypes) {
Throwable cause = t;
while (cause != null) {
cause = cause.getCause(); // depends on control dependency: [while], data = [none]
if (cause == null) {
break;
... |
public class class_name {
@Override
public void perform(final Wave wave) {
final JRebirthEvent event = wave.get(EditorWaves.EVENT);
LOGGER.trace("Process " + event.eventType() + " of type " + event.target());
final EditorModel editorModel = getModel(EditorModel.class);
... | public class class_name {
@Override
public void perform(final Wave wave) {
final JRebirthEvent event = wave.get(EditorWaves.EVENT);
LOGGER.trace("Process " + event.eventType() + " of type " + event.target());
final EditorModel editorModel = getModel(EditorModel.class);
... |
public class class_name {
private void process() {
if (hasExternsRoot()) {
sourceKind = SourceKind.EXTERN;
NodeTraversal.traverse(compiler, externsRoot, new BuildGlobalNamespace());
}
sourceKind = SourceKind.CODE;
NodeTraversal.traverse(compiler, root, new BuildGlobalNamespace());
gene... | public class class_name {
private void process() {
if (hasExternsRoot()) {
sourceKind = SourceKind.EXTERN; // depends on control dependency: [if], data = [none]
NodeTraversal.traverse(compiler, externsRoot, new BuildGlobalNamespace()); // depends on control dependency: [if], data = [none]
}
sou... |
public class class_name {
@Override
public String format(LogRecord log)
{
StringBuilder sb = new StringBuilder();
int mark = 0;
for (FormatItem item : _formatList) {
item.format(sb, log, mark);
if (item instanceof PrettyPrintMarkItem) {
mark = sb.length();
}
}... | public class class_name {
@Override
public String format(LogRecord log)
{
StringBuilder sb = new StringBuilder();
int mark = 0;
for (FormatItem item : _formatList) {
item.format(sb, log, mark); // depends on control dependency: [for], data = [item]
if (item instanceof PrettyPri... |
public class class_name {
@Override
protected int writeBytesWireFormat ( byte[] dst, int dstIndex ) {
int start = dstIndex;
if ( log.isDebugEnabled() ) {
log.debug("Opening " + this.name);
}
SMBUtil.writeInt2(57, dst, dstIndex);
dst[ dstIndex + 2 ] = this.secur... | public class class_name {
@Override
protected int writeBytesWireFormat ( byte[] dst, int dstIndex ) {
int start = dstIndex;
if ( log.isDebugEnabled() ) {
log.debug("Opening " + this.name); // depends on control dependency: [if], data = [none]
}
SMBUtil.writeInt2(57, ds... |
public class class_name {
public void createAccumulator(final OnDemandStatsProducer producer, final A annotation, final Method method) {
if (producer != null && annotation != null) {
final String statsName = (method == null) ? OnDemandStatsProducer.CUMULATED_STATS_NAME : method.getName();
String accumulatorN... | public class class_name {
public void createAccumulator(final OnDemandStatsProducer producer, final A annotation, final Method method) {
if (producer != null && annotation != null) {
final String statsName = (method == null) ? OnDemandStatsProducer.CUMULATED_STATS_NAME : method.getName();
String accumulatorN... |
public class class_name {
public void marshall(DescribeAggregationAuthorizationsRequest describeAggregationAuthorizationsRequest, ProtocolMarshaller protocolMarshaller) {
if (describeAggregationAuthorizationsRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)"... | public class class_name {
public void marshall(DescribeAggregationAuthorizationsRequest describeAggregationAuthorizationsRequest, ProtocolMarshaller protocolMarshaller) {
if (describeAggregationAuthorizationsRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)"... |
public class class_name {
public static void validateKeysInDataFile(List<String> keysToValidate, String dataFileName,
TestPlatform currentPlatform) {
for (String currentKey : keysToValidate) {
// For case: Invalid element inside a container, the key inside a container is split using de... | public class class_name {
public static void validateKeysInDataFile(List<String> keysToValidate, String dataFileName,
TestPlatform currentPlatform) {
for (String currentKey : keysToValidate) {
// For case: Invalid element inside a container, the key inside a container is split using de... |
public class class_name {
public void open() {
if (log.isTraceEnabled()) {
// dump memory stats
log.trace("Memory at open - free: {}K total: {}K", Runtime.getRuntime().freeMemory() / 1024, Runtime.getRuntime().totalMemory() / 1024);
}
} } | public class class_name {
public void open() {
if (log.isTraceEnabled()) {
// dump memory stats
log.trace("Memory at open - free: {}K total: {}K", Runtime.getRuntime().freeMemory() / 1024, Runtime.getRuntime().totalMemory() / 1024);
// depends on control dependency: [if], data = [no... |
public class class_name {
public static String getDescriptiveName( IDevice device )
{
// if any of this logic changes update javadoc for
// AbstractInstrumentationMojo#testCreateReport
StringBuilder identfier = new StringBuilder().append( device.getSerialNumber() );
if ( device.getA... | public class class_name {
public static String getDescriptiveName( IDevice device )
{
// if any of this logic changes update javadoc for
// AbstractInstrumentationMojo#testCreateReport
StringBuilder identfier = new StringBuilder().append( device.getSerialNumber() );
if ( device.getA... |
public class class_name {
protected boolean i_recordScannedClassName(String i_className) {
boolean didPlaceClass = annotationTargets.i_placeClass(i_getClassSourceName(), i_className);
if (!didPlaceClass) {
return false;
}
boolean didAddClass = annotationTargets.i_addScanned... | public class class_name {
protected boolean i_recordScannedClassName(String i_className) {
boolean didPlaceClass = annotationTargets.i_placeClass(i_getClassSourceName(), i_className);
if (!didPlaceClass) {
return false; // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
private InputStream httpCopyFromStream(String url, String post) {
HttpPost httpPost = new HttpPost(url);
if (post != null) {
StringEntity entity = new StringEntity(post, Consts.UTF_8);
httpPost.setEntity(entity);
}
try (Closeab... | public class class_name {
private InputStream httpCopyFromStream(String url, String post) {
HttpPost httpPost = new HttpPost(url);
if (post != null) {
StringEntity entity = new StringEntity(post, Consts.UTF_8);
httpPost.setEntity(entity);
// depends on control dependency:... |
public class class_name {
public ArrayList<String> getColumns() {
ArrayList<String> columns = new ArrayList<String>();
for (String col : columnLookup.keySet()) {
HeaderInfo hi = columnLookup.get(col);
if (!hi.isHide()) {
columns.add(col);
}
}
return columns;
} } | public class class_name {
public ArrayList<String> getColumns() {
ArrayList<String> columns = new ArrayList<String>();
for (String col : columnLookup.keySet()) {
HeaderInfo hi = columnLookup.get(col);
if (!hi.isHide()) {
columns.add(col); // depends on control dependency: [if], data = [none]
}
}
r... |
public class class_name {
private String[] getStringArray(final List<CharSequence> charSeqList) {
final int length = charSeqList.size();
final String[] stringArray = new String[length];
for (int i = 0; i < length; i++) {
stringArray[i] = getString(charSeqList.get(i));
}
return stringArray;
... | public class class_name {
private String[] getStringArray(final List<CharSequence> charSeqList) {
final int length = charSeqList.size();
final String[] stringArray = new String[length];
for (int i = 0; i < length; i++) {
stringArray[i] = getString(charSeqList.get(i)); // depends on control dependency... |
public class class_name {
@SuppressWarnings({"checkstyle:cyclomaticcomplexity", "checkstyle:npathcomplexity", "checkstyle:nestedifdepth"})
protected void checkSuperConstructor(
XtendTypeDeclaration container,
EStructuralFeature feature,
Collection<ActionParameterTypes> defaultSignatures) {
final JvmDeclare... | public class class_name {
@SuppressWarnings({"checkstyle:cyclomaticcomplexity", "checkstyle:npathcomplexity", "checkstyle:nestedifdepth"})
protected void checkSuperConstructor(
XtendTypeDeclaration container,
EStructuralFeature feature,
Collection<ActionParameterTypes> defaultSignatures) {
final JvmDeclare... |
public class class_name {
@Override
public CommerceShipmentItem fetchByCommerceShipment_Last(
long commerceShipmentId,
OrderByComparator<CommerceShipmentItem> orderByComparator) {
int count = countByCommerceShipment(commerceShipmentId);
if (count == 0) {
return null;
}
List<CommerceShipmentItem> list... | public class class_name {
@Override
public CommerceShipmentItem fetchByCommerceShipment_Last(
long commerceShipmentId,
OrderByComparator<CommerceShipmentItem> orderByComparator) {
int count = countByCommerceShipment(commerceShipmentId);
if (count == 0) {
return null; // depends on control dependency: [if]... |
public class class_name {
protected boolean shouldReuseId(HttpServletRequest _request, SessionAffinityContext sac)
{
boolean reuseId = sac.isResponseIdSet() || sac.isRequestedSessionIDFromSSL();
if (!reuseId)
{
if (_smc.getEnableUrlRewriting())
{
boolean useCookies = _smc.getEnableCoo... | public class class_name {
protected boolean shouldReuseId(HttpServletRequest _request, SessionAffinityContext sac)
{
boolean reuseId = sac.isResponseIdSet() || sac.isRequestedSessionIDFromSSL();
if (!reuseId)
{
if (_smc.getEnableUrlRewriting())
{
boolean useCookies = _smc.getEnableCoo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.