code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
private ParsedResultAccumulator getBestCostPlanForEphemeralScans(List<StmtEphemeralTableScan> scans) {
int nextPlanId = m_planSelector.m_planId;
boolean orderIsDeterministic = true;
boolean hasSignificantOffsetOrLimit = false;
String contentNonDeterminismMessag... | public class class_name {
private ParsedResultAccumulator getBestCostPlanForEphemeralScans(List<StmtEphemeralTableScan> scans) {
int nextPlanId = m_planSelector.m_planId;
boolean orderIsDeterministic = true;
boolean hasSignificantOffsetOrLimit = false;
String contentNonDeterminismMessag... |
public class class_name {
public T increaseHitRect(final int top, final int left, final int bottom, final int right) {
final View parent = (View) view.getParent();
if (parent != null && view.getContext() != null) {
parent.post(new Runnable() {
// Post in the parent's message... | public class class_name {
public T increaseHitRect(final int top, final int left, final int bottom, final int right) {
final View parent = (View) view.getParent();
if (parent != null && view.getContext() != null) {
parent.post(new Runnable() {
// Post in the parent's message... |
public class class_name {
public CmsPublishList mergePublishLists(CmsRequestContext context, CmsPublishList pubList1, CmsPublishList pubList2)
throws CmsException {
CmsPublishList ret = null;
CmsDbContext dbc = m_dbContextFactory.getDbContext(context);
try {
// get all resource... | public class class_name {
public CmsPublishList mergePublishLists(CmsRequestContext context, CmsPublishList pubList1, CmsPublishList pubList2)
throws CmsException {
CmsPublishList ret = null;
CmsDbContext dbc = m_dbContextFactory.getDbContext(context);
try {
// get all resource... |
public class class_name {
public void cache(Identity oid, Object obj)
{
try
{
jcsCache.put(oid.toString(), obj);
}
catch (CacheException e)
{
throw new RuntimeCacheException(e);
}
} } | public class class_name {
public void cache(Identity oid, Object obj)
{
try
{
jcsCache.put(oid.toString(), obj);
// depends on control dependency: [try], data = [none]
}
catch (CacheException e)
{
throw new RuntimeCacheException(e);
}... |
public class class_name {
public void setAttributesToDelete(java.util.Collection<String> attributesToDelete) {
if (attributesToDelete == null) {
this.attributesToDelete = null;
return;
}
this.attributesToDelete = new java.util.ArrayList<String>(attributesToDelete);
... | public class class_name {
public void setAttributesToDelete(java.util.Collection<String> attributesToDelete) {
if (attributesToDelete == null) {
this.attributesToDelete = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [... |
public class class_name {
public String getJSONMessages() {
StringBuilder builder = new StringBuilder();
builder.append("{");
boolean first = true;
Enumeration<String> keys = this.bundle.getKeys();
while (keys.hasMoreElements()) {
if (!first)
builder.append(",");
else
first = false;
Strin... | public class class_name {
public String getJSONMessages() {
StringBuilder builder = new StringBuilder();
builder.append("{");
boolean first = true;
Enumeration<String> keys = this.bundle.getKeys();
while (keys.hasMoreElements()) {
if (!first)
builder.append(",");
else
first = false;
Strin... |
public class class_name {
@Override
public Trigger.TriggerState getTriggerState(TriggerKey triggerKey, JedisCluster jedis) {
final String triggerHashKey = redisSchema.triggerHashKey(triggerKey);
Map<RedisTriggerState, Double> scores = new HashMap<>(RedisTriggerState.values().length);
for (R... | public class class_name {
@Override
public Trigger.TriggerState getTriggerState(TriggerKey triggerKey, JedisCluster jedis) {
final String triggerHashKey = redisSchema.triggerHashKey(triggerKey);
Map<RedisTriggerState, Double> scores = new HashMap<>(RedisTriggerState.values().length);
for (R... |
public class class_name {
public static int multiply( int a , int b ) {
int z = 0;
for (int i = 0; (b>>i) > 0; i++) {
if( (b & (1 << i)) != 0 ) {
z ^= a << i;
}
}
return z;
} } | public class class_name {
public static int multiply( int a , int b ) {
int z = 0;
for (int i = 0; (b>>i) > 0; i++) {
if( (b & (1 << i)) != 0 ) {
z ^= a << i; // depends on control dependency: [if], data = [none]
}
}
return z;
} } |
public class class_name {
public boolean consume(int ch){
offset++;
if(ch==0x0D){
skipLF = true;
line++;
col = 0;
return true;
}else if(ch==0x0A){
if(skipLF){
skipLF = false;
return false;
}e... | public class class_name {
public boolean consume(int ch){
offset++;
if(ch==0x0D){
skipLF = true; // depends on control dependency: [if], data = [none]
line++; // depends on control dependency: [if], data = [none]
col = 0; // depends on control dependency: [if], data ... |
public class class_name {
final Serializable fetchValue(String columnName, int columnIndex, int type, final int meta, boolean isBinary) {
int len = 0;
if (type == LogEvent.MYSQL_TYPE_STRING) {
if (meta >= 256) {
int byte0 = meta >> 8;
int byte1 = meta ... | public class class_name {
final Serializable fetchValue(String columnName, int columnIndex, int type, final int meta, boolean isBinary) {
int len = 0;
if (type == LogEvent.MYSQL_TYPE_STRING) {
if (meta >= 256) {
int byte0 = meta >> 8;
int byte1 = meta ... |
public class class_name {
public static String toParams(Map<String, ?> paramMap, Charset charset) {
if (CollectionUtil.isEmpty(paramMap)) {
return StrUtil.EMPTY;
}
if (null == charset) {// 默认编码为系统编码
charset = CharsetUtil.CHARSET_UTF_8;
}
final StringBuilder sb = new StringBuilder();
boolean... | public class class_name {
public static String toParams(Map<String, ?> paramMap, Charset charset) {
if (CollectionUtil.isEmpty(paramMap)) {
return StrUtil.EMPTY;
// depends on control dependency: [if], data = [none]
}
if (null == charset) {// 默认编码为系统编码
charset = CharsetUtil.CHARSET_UTF_8;
// depends ... |
public class class_name {
public static boolean preOrderTraversal(File root, FileVisitor visitor) throws Exception {
if (!visitor.visit(root)) {
return false;
}
if (root.isDirectory()) {
for (File child : root.listFiles()) {
if (!preOrderTraversal(child, visitor)) {
return fal... | public class class_name {
public static boolean preOrderTraversal(File root, FileVisitor visitor) throws Exception {
if (!visitor.visit(root)) {
return false;
}
if (root.isDirectory()) {
for (File child : root.listFiles()) {
if (!preOrderTraversal(child, visitor)) {
return fal... |
public class class_name {
public StrBuilder getChars(int srcBegin, int srcEnd, char[] dst, int dstBegin) {
if (srcBegin < 0) {
srcBegin = 0;
}
if (srcEnd < 0) {
srcEnd = 0;
} else if (srcEnd > this.position) {
srcEnd = this.position;
}
if (srcBegin > srcEnd) {
throw new StringIndexOutOfBoundsEx... | public class class_name {
public StrBuilder getChars(int srcBegin, int srcEnd, char[] dst, int dstBegin) {
if (srcBegin < 0) {
srcBegin = 0; // depends on control dependency: [if], data = [none]
}
if (srcEnd < 0) {
srcEnd = 0; // depends on control dependency: [if], data = [none]
} else if (srcEnd > this... |
public class class_name {
public static UnicodeSet parseGlobalFilter(String id, int[] pos, int dir,
int[] withParens,
StringBuffer canonID) {
UnicodeSet filter = null;
int start = pos[0];
if (withPare... | public class class_name {
public static UnicodeSet parseGlobalFilter(String id, int[] pos, int dir,
int[] withParens,
StringBuffer canonID) {
UnicodeSet filter = null;
int start = pos[0];
if (withPare... |
public class class_name {
@Override
@SuppressWarnings("unchecked")
public Handle<K, V> deleteMax() {
if (size == 0) {
throw new NoSuchElementException();
} else if (size == 1) {
Handle<K, V> max = free;
free = null;
size--;
return max;... | public class class_name {
@Override
@SuppressWarnings("unchecked")
public Handle<K, V> deleteMax() {
if (size == 0) {
throw new NoSuchElementException();
} else if (size == 1) {
Handle<K, V> max = free;
free = null; // depends on control dependency: [if], dat... |
public class class_name {
@Override
public Sequence<T> next() {
Sequence<T> sequence = new Sequence<>();
int startPosition = position.getAndIncrement();
int lastId = -1;
int currentPoint = order[startPosition];
int startPoint = currentPoint;
for (int i = 0; i < walk... | public class class_name {
@Override
public Sequence<T> next() {
Sequence<T> sequence = new Sequence<>();
int startPosition = position.getAndIncrement();
int lastId = -1;
int currentPoint = order[startPosition];
int startPoint = currentPoint;
for (int i = 0; i < walk... |
public class class_name {
public void setNumber(String number) {
try {
String iso = null;
if (mSelectedCountry != null) {
iso = mSelectedCountry.getIso();
}
Phonenumber.PhoneNumber phoneNumber = mPhoneUtil.parse(number, iso);
int c... | public class class_name {
public void setNumber(String number) {
try {
String iso = null;
if (mSelectedCountry != null) {
iso = mSelectedCountry.getIso(); // depends on control dependency: [if], data = [none]
}
Phonenumber.PhoneNumber phoneNumber ... |
public class class_name {
public String getSourceLine(File file, int line, String sep)
{
SourceFile source = sourceFiles.get(file);
if (source == null)
{
try
{
source = new SourceFile(file);
sourceFiles.put(file, source);
} catch (IOException e)
{
return "Cannot open source file: " + fi... | public class class_name {
public String getSourceLine(File file, int line, String sep)
{
SourceFile source = sourceFiles.get(file);
if (source == null)
{
try
{
source = new SourceFile(file); // depends on control dependency: [try], data = [none]
sourceFiles.put(file, source); // depends on contro... |
public class class_name {
public void marshall(Session session, ProtocolMarshaller protocolMarshaller) {
if (session == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(session.getDuration(), DURATION... | public class class_name {
public void marshall(Session session, ProtocolMarshaller protocolMarshaller) {
if (session == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(session.getDuration(), DURATION... |
public class class_name {
public static <I extends ImageGray<I>, O extends ImageGray<O>>
void hessian(O[] derivX, O[] derivY , ImageHessian<O> hessian , O[] derivXX, O[] derivYY , O[] derivXY )
{
for( int i = 0; i < derivX.length; i++ ) {
hessian.process(derivX[i],derivY[i],derivXX[i],derivYY[i],derivXY[i]);
... | public class class_name {
public static <I extends ImageGray<I>, O extends ImageGray<O>>
void hessian(O[] derivX, O[] derivY , ImageHessian<O> hessian , O[] derivXX, O[] derivYY , O[] derivXY )
{
for( int i = 0; i < derivX.length; i++ ) {
hessian.process(derivX[i],derivY[i],derivXX[i],derivYY[i],derivXY[i]); //... |
public class class_name {
private List<Row> createExceptionAssignmentRowList(String exceptionData)
{
List<Row> list = new ArrayList<Row>();
String[] exceptions = exceptionData.split(",|:");
int index = 1;
while (index < exceptions.length)
{
Date startDate = DatatypeConverter.p... | public class class_name {
private List<Row> createExceptionAssignmentRowList(String exceptionData)
{
List<Row> list = new ArrayList<Row>();
String[] exceptions = exceptionData.split(",|:");
int index = 1;
while (index < exceptions.length)
{
Date startDate = DatatypeConverter.p... |
public class class_name {
public boolean requestShouldBeHandledByTAI(HttpServletRequest request, SocialTaiRequest socialTaiRequest) {
// 241526 don't process jmx requests with this interceptor
if (isJmxConnectorRequest(request)) {
return false;
}
String loginHint = webUtils.... | public class class_name {
public boolean requestShouldBeHandledByTAI(HttpServletRequest request, SocialTaiRequest socialTaiRequest) {
// 241526 don't process jmx requests with this interceptor
if (isJmxConnectorRequest(request)) {
return false; // depends on control dependency: [if], data =... |
public class class_name {
public static Date read(String value) {
String pattern = getPattern(value);
Date date=null;
try {
date = ThreadLocalDateFormatter.parse(value, pattern);
} catch (ParseException e) {
e.printStackTrace();
}
return date;
} } | public class class_name {
public static Date read(String value) {
String pattern = getPattern(value);
Date date=null;
try {
date = ThreadLocalDateFormatter.parse(value, pattern); // depends on control dependency: [try], data = [none]
} catch (ParseException e) {
e.printStackTrace();
} // depends on con... |
public class class_name {
void formatLocalWeekday(StringBuilder b, ZonedDateTime d, int width, FieldVariants weekdays, int firstDay) {
if (width > 2) {
formatWeekday(b, d, width, weekdays);
return;
}
if (width == 2) {
b.append('0');
}
formatWeekdayNumeric(b, d, firstDay);
} } | public class class_name {
void formatLocalWeekday(StringBuilder b, ZonedDateTime d, int width, FieldVariants weekdays, int firstDay) {
if (width > 2) {
formatWeekday(b, d, width, weekdays); // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [non... |
public class class_name {
public final GridParameter getParameter(GridRecord gr) {
McIDASGridRecord mgr = (McIDASGridRecord) gr;
String name = mgr.getParameterName();
String desc = mgr.getGridDescription();
if (desc.trim().equals("")) {
desc = name;
}
String unit = visad.jmet.MetUnits.mak... | public class class_name {
public final GridParameter getParameter(GridRecord gr) {
McIDASGridRecord mgr = (McIDASGridRecord) gr;
String name = mgr.getParameterName();
String desc = mgr.getGridDescription();
if (desc.trim().equals("")) {
desc = name; // depends on control dependency: [if], data = ... |
public class class_name {
static BootstrapText resolveMarkdown(Context context, String markdown, boolean editMode) {
if (markdown == null) {
return null;
}
else { // detect {fa_*} and split into spannable, ignore escaped chars
BootstrapText.Builder builder = new Bootstra... | public class class_name {
static BootstrapText resolveMarkdown(Context context, String markdown, boolean editMode) {
if (markdown == null) {
return null; // depends on control dependency: [if], data = [none]
}
else { // detect {fa_*} and split into spannable, ignore escaped chars
... |
public class class_name {
private void setSelectPosition(int posX, int posY, int height, int width) {
int useWidth = Window.getClientWidth();
int bodyWidth = RootPanel.getBodyElement().getClientWidth() + RootPanel.getBodyElement().getOffsetLeft();
if (bodyWidth > useWidth) {
u... | public class class_name {
private void setSelectPosition(int posX, int posY, int height, int width) {
int useWidth = Window.getClientWidth();
int bodyWidth = RootPanel.getBodyElement().getClientWidth() + RootPanel.getBodyElement().getOffsetLeft();
if (bodyWidth > useWidth) {
u... |
public class class_name {
public INDArray symmetrized(INDArray rowP, INDArray colP, INDArray valP) {
INDArray rowCounts = Nd4j.create(N);
MemoryWorkspace workspace =
workspaceMode == WorkspaceMode.NONE ? new DummyWorkspace()
: Nd4j.getWorkspaceManager().getWorks... | public class class_name {
public INDArray symmetrized(INDArray rowP, INDArray colP, INDArray valP) {
INDArray rowCounts = Nd4j.create(N);
MemoryWorkspace workspace =
workspaceMode == WorkspaceMode.NONE ? new DummyWorkspace()
: Nd4j.getWorkspaceManager().getWorks... |
public class class_name {
static DataBlock[] getDataBlocks(byte[] rawCodewords,
Version version) {
// Figure out the number and size of data blocks used by this version
Version.ECBlocks ecBlocks = version.getECBlocks();
// First count the total number of data blocks
... | public class class_name {
static DataBlock[] getDataBlocks(byte[] rawCodewords,
Version version) {
// Figure out the number and size of data blocks used by this version
Version.ECBlocks ecBlocks = version.getECBlocks();
// First count the total number of data blocks
... |
public class class_name {
protected int executeApplication(Object svc, String[] args, String orig){
if(svc!=null && (svc instanceof ExecS_Application)){
if(svc instanceof Gen_RunScripts){
//hook for GenRunScripts to get current class map - registered applications
((Gen_RunScripts)svc).setClassMap(this.cla... | public class class_name {
protected int executeApplication(Object svc, String[] args, String orig){
if(svc!=null && (svc instanceof ExecS_Application)){
if(svc instanceof Gen_RunScripts){
//hook for GenRunScripts to get current class map - registered applications
((Gen_RunScripts)svc).setClassMap(this.cla... |
public class class_name {
public void setConfig( String key, String value ) {
if ( config == null ) {
config = new HashMap<String, String>();
}
config.put( key, value );
} } | public class class_name {
public void setConfig( String key, String value ) {
if ( config == null ) {
config = new HashMap<String, String>(); // depends on control dependency: [if], data = [none]
}
config.put( key, value );
} } |
public class class_name {
public Object execute(final Map<Object, Object> iArgs) {
if (attribute == null)
throw new OCommandExecutionException("Cannot execute the command because it has not been parsed yet");
final List<OCluster> clusters = getClusters();
if (clusters.isEmpty())
throw ... | public class class_name {
public Object execute(final Map<Object, Object> iArgs) {
if (attribute == null)
throw new OCommandExecutionException("Cannot execute the command because it has not been parsed yet");
final List<OCluster> clusters = getClusters();
if (clusters.isEmpty())
throw ... |
public class class_name {
private String getSingleSlotHtml(TestSlot s, String icon) {
StringBuilder builder = new StringBuilder();
TestSession session = s.getSession();
if (icon != null) {
builder.append("<img ");
builder.append("src='").append(icon).append("' width='16' height='16'");
} el... | public class class_name {
private String getSingleSlotHtml(TestSlot s, String icon) {
StringBuilder builder = new StringBuilder();
TestSession session = s.getSession();
if (icon != null) {
builder.append("<img "); // depends on control dependency: [if], data = [none]
builder.append("src='").app... |
public class class_name {
public CustomCommandLine<?> getActiveCustomCommandLine(CommandLine commandLine) {
for (CustomCommandLine<?> cli : customCommandLines) {
if (cli.isActive(commandLine)) {
return cli;
}
}
throw new IllegalStateException("No command-line ran.");
} } | public class class_name {
public CustomCommandLine<?> getActiveCustomCommandLine(CommandLine commandLine) {
for (CustomCommandLine<?> cli : customCommandLines) {
if (cli.isActive(commandLine)) {
return cli; // depends on control dependency: [if], data = [none]
}
}
throw new IllegalStateException("No co... |
public class class_name {
@Override
public void sendMetrics(final UnifiedPushMetricsMessage metricsMessage,
final Callback<UnifiedPushMetricsMessage> callback) {
new AsyncTask<Void, Void, Exception>() {
@Override
protected Exception doInBackground(Void... params) {
... | public class class_name {
@Override
public void sendMetrics(final UnifiedPushMetricsMessage metricsMessage,
final Callback<UnifiedPushMetricsMessage> callback) {
new AsyncTask<Void, Void, Exception>() {
@Override
protected Exception doInBackground(Void... params) {
... |
public class class_name {
static UnitPatterns of(Locale lang) {
if (lang == null) {
throw new NullPointerException("Missing language.");
}
UnitPatterns p = CACHE.get(lang);
if (p == null) {
p = new UnitPatterns(lang);
UnitPatterns old = CACHE.putIf... | public class class_name {
static UnitPatterns of(Locale lang) {
if (lang == null) {
throw new NullPointerException("Missing language.");
}
UnitPatterns p = CACHE.get(lang);
if (p == null) {
p = new UnitPatterns(lang); // depends on control dependency: [if], da... |
public class class_name {
public void write(ByteBuffer bb, VBucketCoordinates coords) {
if (!enabled) {
return;
}
bb.putLong(24, coords.getUuid());
bb.putLong(32, coords.getSeqno());
} } | public class class_name {
public void write(ByteBuffer bb, VBucketCoordinates coords) {
if (!enabled) {
return; // depends on control dependency: [if], data = [none]
}
bb.putLong(24, coords.getUuid());
bb.putLong(32, coords.getSeqno());
} } |
public class class_name {
public void marshall(InstancesCount instancesCount, ProtocolMarshaller protocolMarshaller) {
if (instancesCount == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(instancesC... | public class class_name {
public void marshall(InstancesCount instancesCount, ProtocolMarshaller protocolMarshaller) {
if (instancesCount == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(instancesC... |
public class class_name {
public static CharBuf sputl(CharBuf buf, Object... messages) {
for (Object message : messages) {
if (message == null) {
buf.add("<NULL>");
} else if (message.getClass().isArray()) {
buf.add(toListOrSingletonList(message).toStrin... | public class class_name {
public static CharBuf sputl(CharBuf buf, Object... messages) {
for (Object message : messages) {
if (message == null) {
buf.add("<NULL>"); // depends on control dependency: [if], data = [none]
} else if (message.getClass().isArray()) {
... |
public class class_name {
public DescribeServicesRequest withInclude(ServiceField... include) {
com.amazonaws.internal.SdkInternalList<String> includeCopy = new com.amazonaws.internal.SdkInternalList<String>(include.length);
for (ServiceField value : include) {
includeCopy.add(value.toStrin... | public class class_name {
public DescribeServicesRequest withInclude(ServiceField... include) {
com.amazonaws.internal.SdkInternalList<String> includeCopy = new com.amazonaws.internal.SdkInternalList<String>(include.length);
for (ServiceField value : include) {
includeCopy.add(value.toStrin... |
public class class_name {
private void condenseTree(IndexTreePath<E> subtree, Stack<N> stack) {
N node = getNode(subtree.getEntry());
// node is not root
if(!isRoot(node)) {
N parent = getNode(subtree.getParentPath().getEntry());
int index = subtree.getIndex();
if(hasUnderflow(node)) {
... | public class class_name {
private void condenseTree(IndexTreePath<E> subtree, Stack<N> stack) {
N node = getNode(subtree.getEntry());
// node is not root
if(!isRoot(node)) {
N parent = getNode(subtree.getParentPath().getEntry());
int index = subtree.getIndex();
if(hasUnderflow(node)) {
... |
public class class_name {
@Nullable
static String parseResourceType(@Nullable String rawEnvType) {
if (rawEnvType != null && !rawEnvType.isEmpty()) {
Utils.checkArgument(isValidAndNotEmpty(rawEnvType), "Type" + ERROR_MESSAGE_INVALID_CHARS);
return rawEnvType.trim();
}
return rawEnvType;
} } | public class class_name {
@Nullable
static String parseResourceType(@Nullable String rawEnvType) {
if (rawEnvType != null && !rawEnvType.isEmpty()) {
Utils.checkArgument(isValidAndNotEmpty(rawEnvType), "Type" + ERROR_MESSAGE_INVALID_CHARS); // depends on control dependency: [if], data = [(rawEnvType]
... |
public class class_name {
public synchronized void printStatistics() {
ClientStats stats = m_periodicStatsContext.fetchAndResetBaseline().getStats();
long time = Math.round((stats.getEndTimestamp() - m_startTS) / 1000.0);
StringBuilder statsBuilder = new StringBuilder();
statsBuilder.a... | public class class_name {
public synchronized void printStatistics() {
ClientStats stats = m_periodicStatsContext.fetchAndResetBaseline().getStats();
long time = Math.round((stats.getEndTimestamp() - m_startTS) / 1000.0);
StringBuilder statsBuilder = new StringBuilder();
statsBuilder.a... |
public class class_name {
public static boolean applyTo(ImageHolder imageHolder, ImageView imageView, String tag) {
if (imageHolder != null && imageView != null) {
return imageHolder.applyTo(imageView, tag);
}
return false;
} } | public class class_name {
public static boolean applyTo(ImageHolder imageHolder, ImageView imageView, String tag) {
if (imageHolder != null && imageView != null) {
return imageHolder.applyTo(imageView, tag); // depends on control dependency: [if], data = [none]
}
return false;
}... |
public class class_name {
private void outputDocTypeDecl(String name) throws SAXException {
if (true == m_needToOutputDocTypeDecl)
{
String doctypeSystem = getDoctypeSystem();
String doctypePublic = getDoctypePublic();
if ((null != doctypeSystem) || (null != doctypeP... | public class class_name {
private void outputDocTypeDecl(String name) throws SAXException {
if (true == m_needToOutputDocTypeDecl)
{
String doctypeSystem = getDoctypeSystem();
String doctypePublic = getDoctypePublic();
if ((null != doctypeSystem) || (null != doctypeP... |
public class class_name {
@RequestMapping("/async")
public void asynch(HttpServletRequest request, HttpServletResponse response) {
final AsyncContext async = request.startAsync();
async.start(new Runnable() {
public void run() {
Authentication authentication = SecurityContextHolder.getContext()
.getA... | public class class_name {
@RequestMapping("/async")
public void asynch(HttpServletRequest request, HttpServletResponse response) {
final AsyncContext async = request.startAsync();
async.start(new Runnable() {
public void run() {
Authentication authentication = SecurityContextHolder.getContext()
.getA... |
public class class_name {
@Override
protected CollectionMatch getCollectionMatchForWebResourceCollection(WebResourceCollection webResourceCollection, String resourceName, String method) {
CollectionMatch match = null;
CollectionMatch collectionMatchFound = webResourceCollection.performUrlMatch(reso... | public class class_name {
@Override
protected CollectionMatch getCollectionMatchForWebResourceCollection(WebResourceCollection webResourceCollection, String resourceName, String method) {
CollectionMatch match = null;
CollectionMatch collectionMatchFound = webResourceCollection.performUrlMatch(reso... |
public class class_name {
public static boolean isAlphanumeric(String str) {
if (str == null) {
return false;
}
int sz = str.length();
for (int i = 0; i < sz; i++) {
if (Character.isLetterOrDigit(str.charAt(i)) == false) {
return false;
}
}
... | public class class_name {
public static boolean isAlphanumeric(String str) {
if (str == null) {
return false; // depends on control dependency: [if], data = [none]
}
int sz = str.length();
for (int i = 0; i < sz; i++) {
if (Character.isLetterOrDigit(str.charAt(i)) == false) ... |
public class class_name {
protected State checkState() throws IOException {
State localState;
synchronized (lock) {
if (first) {
firstInit();
updateCollection(state, config.updateConfig.updateType);
// makeDatasetTop(state);
first = false;
}
localState = state... | public class class_name {
protected State checkState() throws IOException {
State localState;
synchronized (lock) {
if (first) {
firstInit(); // depends on control dependency: [if], data = [none]
updateCollection(state, config.updateConfig.updateType); // depends on control dependency: [... |
public class class_name {
public Observable<ServiceResponse<OperationStatus>> deleteRegexEntityRoleWithServiceResponseAsync(UUID appId, String versionId, UUID entityId, UUID roleId) {
if (this.client.endpoint() == null) {
throw new IllegalArgumentException("Parameter this.client.endpoint() is requi... | public class class_name {
public Observable<ServiceResponse<OperationStatus>> deleteRegexEntityRoleWithServiceResponseAsync(UUID appId, String versionId, UUID entityId, UUID roleId) {
if (this.client.endpoint() == null) {
throw new IllegalArgumentException("Parameter this.client.endpoint() is requi... |
public class class_name {
private boolean jobHasScheduledStatus() {
final Iterator<ExecutionVertex> it = new ExecutionGraphIterator(this, true);
while (it.hasNext()) {
final ExecutionState s = it.next().getExecutionState();
if (s != ExecutionState.CREATED && s != ExecutionState.SCHEDULED && s != Execution... | public class class_name {
private boolean jobHasScheduledStatus() {
final Iterator<ExecutionVertex> it = new ExecutionGraphIterator(this, true);
while (it.hasNext()) {
final ExecutionState s = it.next().getExecutionState();
if (s != ExecutionState.CREATED && s != ExecutionState.SCHEDULED && s != Execution... |
public class class_name {
public void setDialogCopyFolderMode(String mode) {
CmsResourceCopyMode copyMode = CmsResource.COPY_AS_NEW;
if (mode.equalsIgnoreCase(COPYMODE_SIBLING)) {
copyMode = CmsResource.COPY_AS_SIBLING;
} else if (mode.equalsIgnoreCase(COPYMODE_PRESERVE)) {
... | public class class_name {
public void setDialogCopyFolderMode(String mode) {
CmsResourceCopyMode copyMode = CmsResource.COPY_AS_NEW;
if (mode.equalsIgnoreCase(COPYMODE_SIBLING)) {
copyMode = CmsResource.COPY_AS_SIBLING; // depends on control dependency: [if], data = [none]
} else i... |
public class class_name {
void digReplaceContent(Map<String, Object> map) {
map.entrySet().stream().forEach(entry -> {
Object value = entry.getValue();
if (value instanceof Map) {
digReplaceContent((Map<String, Object>) value);
} else {
LO... | public class class_name {
void digReplaceContent(Map<String, Object> map) {
map.entrySet().stream().forEach(entry -> {
Object value = entry.getValue();
if (value instanceof Map) {
digReplaceContent((Map<String, Object>) value); // depends on control dependency: [if], ... |
public class class_name {
private XmlElement generateSetsSelective(List<IntrospectedColumn> columns, IntrospectedColumn versionColumn) {
XmlElement setsChooseEle = new XmlElement("choose");
XmlElement setWhenEle = new XmlElement("when");
setWhenEle.addAttribute(new Attribute("test", "selective... | public class class_name {
private XmlElement generateSetsSelective(List<IntrospectedColumn> columns, IntrospectedColumn versionColumn) {
XmlElement setsChooseEle = new XmlElement("choose");
XmlElement setWhenEle = new XmlElement("when");
setWhenEle.addAttribute(new Attribute("test", "selective... |
public class class_name {
public MeteoExtrasLongTermForecast createLongTermForecast() {
List<MeteoExtrasForecastDay> forecastDays = new ArrayList<>();
ZonedDateTime dt = toZeroHMSN(getLocationForecast().getCreated().plusDays(1));
for (int i = 0; i < series.getSeries().size(); i++) {
... | public class class_name {
public MeteoExtrasLongTermForecast createLongTermForecast() {
List<MeteoExtrasForecastDay> forecastDays = new ArrayList<>();
ZonedDateTime dt = toZeroHMSN(getLocationForecast().getCreated().plusDays(1));
for (int i = 0; i < series.getSeries().size(); i++) {
... |
public class class_name {
@Override
public void sync(List<Dml> dmls) {
if (dmls == null || dmls.isEmpty()) {
return;
}
try {
rdbSyncService.sync(mappingConfigCache, dmls, envProperties);
rdbMirrorDbSyncService.sync(dmls);
} catch (Exception e) {
... | public class class_name {
@Override
public void sync(List<Dml> dmls) {
if (dmls == null || dmls.isEmpty()) {
return; // depends on control dependency: [if], data = [none]
}
try {
rdbSyncService.sync(mappingConfigCache, dmls, envProperties); // depends on control depe... |
public class class_name {
private Response<Bitmap> doParse(NetworkResponse response) {
byte[] data = response.data;
BitmapFactory.Options decodeOptions = new BitmapFactory.Options();
Bitmap bitmap = null;
if (mMaxWidth == 0 && mMaxHeight == 0) {
decodeOptions.inPreferredConf... | public class class_name {
private Response<Bitmap> doParse(NetworkResponse response) {
byte[] data = response.data;
BitmapFactory.Options decodeOptions = new BitmapFactory.Options();
Bitmap bitmap = null;
if (mMaxWidth == 0 && mMaxHeight == 0) {
decodeOptions.inPreferredConf... |
public class class_name {
public void marshall(DeprecateDomainRequest deprecateDomainRequest, ProtocolMarshaller protocolMarshaller) {
if (deprecateDomainRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarsha... | public class class_name {
public void marshall(DeprecateDomainRequest deprecateDomainRequest, ProtocolMarshaller protocolMarshaller) {
if (deprecateDomainRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarsha... |
public class class_name {
public void setSupportedUserNames(Collection<String> supportedUserNames) {
if (supportedUserNames == null) {
this.supportedUserNames = null;
} else {
this.supportedUserNames = ImmutableSet.copyOf(supportedUserNames);
}
} } | public class class_name {
public void setSupportedUserNames(Collection<String> supportedUserNames) {
if (supportedUserNames == null) {
this.supportedUserNames = null; // depends on control dependency: [if], data = [none]
} else {
this.supportedUserNames = ImmutableSet.copyOf(sup... |
public class class_name {
@Override
public JsonNode visit(Comparator op, JsonNode input) {
JsonNode lhsNode = op.getLhsExpr().accept(this, input);
JsonNode rhsNode = op.getRhsExpr().accept(this, input);
if (op.matches(lhsNode, rhsNode)) {
return BooleanNode.TRUE;
}
... | public class class_name {
@Override
public JsonNode visit(Comparator op, JsonNode input) {
JsonNode lhsNode = op.getLhsExpr().accept(this, input);
JsonNode rhsNode = op.getRhsExpr().accept(this, input);
if (op.matches(lhsNode, rhsNode)) {
return BooleanNode.TRUE; // depends on ... |
public class class_name {
@Override
protected boolean _validate(StringBuffer buff) {
try {
new DateType(tf.getText(), null, null);
return true;
} catch (java.text.ParseException e) {
if (null != buff) buff.append(name).append(": ").append(e.getMessage());
return false;
}
} } | public class class_name {
@Override
protected boolean _validate(StringBuffer buff) {
try {
new DateType(tf.getText(), null, null); // depends on control dependency: [try], data = [none]
return true; // depends on control dependency: [try], data = [none]
} catch (java.text.ParseException e) {
... |
public class class_name {
public List<Relationship> getRelatedRelationships() {
final List<Relationship> relatedRelationships = new LinkedList<Relationship>();
for (final Relationship r : relationships) {
if (r.getType() == RelationshipType.REFER_TO) {
relatedRelationships.a... | public class class_name {
public List<Relationship> getRelatedRelationships() {
final List<Relationship> relatedRelationships = new LinkedList<Relationship>();
for (final Relationship r : relationships) {
if (r.getType() == RelationshipType.REFER_TO) {
relatedRelationships.a... |
public class class_name {
public void setConnections(java.util.Collection<ClientVpnConnection> connections) {
if (connections == null) {
this.connections = null;
return;
}
this.connections = new com.amazonaws.internal.SdkInternalList<ClientVpnConnection>(connections);
... | public class class_name {
public void setConnections(java.util.Collection<ClientVpnConnection> connections) {
if (connections == null) {
this.connections = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
}... |
public class class_name {
public boolean readUserInfo(boolean bRefreshOnChange, boolean bForceRead)
{
String strUserID = this.getProperty(DBParams.USER_ID);
if (strUserID == null)
strUserID = this.getProperty(DBParams.USER_NAME);
if (strUserID == null)
strUserID = Co... | public class class_name {
public boolean readUserInfo(boolean bRefreshOnChange, boolean bForceRead)
{
String strUserID = this.getProperty(DBParams.USER_ID);
if (strUserID == null)
strUserID = this.getProperty(DBParams.USER_NAME);
if (strUserID == null)
strUserID = Co... |
public class class_name {
public synchronized boolean open(final boolean readOnly) {
if (isOpen()) {
close();
}
if (log.isDebugEnabled()) {
log.debug("open(" + file + ", " + (readOnly ? "r" : "rw") + ")");
}
try {
if (!readOnly) {
osOutput = new FileOutputStream(file, true);
fcOutput = osOut... | public class class_name {
public synchronized boolean open(final boolean readOnly) {
if (isOpen()) {
close(); // depends on control dependency: [if], data = [none]
}
if (log.isDebugEnabled()) {
log.debug("open(" + file + ", " + (readOnly ? "r" : "rw") + ")");
}
try {
if (!readOnly) {
osOutput = ... |
public class class_name {
@PublicEvolving
public static ExecutionEnvironment createLocalEnvironmentWithWebUI(Configuration conf) {
checkNotNull(conf, "conf");
conf.setBoolean(ConfigConstants.LOCAL_START_WEBSERVER, true);
if (!conf.contains(RestOptions.PORT)) {
// explicitly set this option so that it's not... | public class class_name {
@PublicEvolving
public static ExecutionEnvironment createLocalEnvironmentWithWebUI(Configuration conf) {
checkNotNull(conf, "conf");
conf.setBoolean(ConfigConstants.LOCAL_START_WEBSERVER, true);
if (!conf.contains(RestOptions.PORT)) {
// explicitly set this option so that it's not... |
public class class_name {
public T get() {
T value = object;
if (value == null) {
synchronized (this) {
value = object;
if (object == null) {
object = value = supplier.get();
}
}
}
return value;
} } | public class class_name {
public T get() {
T value = object;
if (value == null) {
synchronized (this) { // depends on control dependency: [if], data = [none]
value = object;
if (object == null) {
object = value = supplier.get(); // depends on control dependency: [if], data = [no... |
public class class_name {
public void validate(Object o)
{
if (o != null && o instanceof Comparable)
{
compareMinExclusive((Comparable<?>)o);
compareMinInclusive((Comparable<?>)o);
compareMaxExclusive((Comparable<?>)o);
compareMaxInclusive((Comparable... | public class class_name {
public void validate(Object o)
{
if (o != null && o instanceof Comparable)
{
compareMinExclusive((Comparable<?>)o); // depends on control dependency: [if], data = [none]
compareMinInclusive((Comparable<?>)o); // depends on control dependency: [if], ... |
public class class_name {
protected List<Tuple<TextLayout,Rectangle2D>> computeLines (
LineBreakMeasurer measurer, int targetWidth, Dimension size, boolean keepWordsWhole)
{
// start with a size of zero
double width = 0, height = 0;
List<Tuple<TextLayout,Rectangle2D>> layouts = new ... | public class class_name {
protected List<Tuple<TextLayout,Rectangle2D>> computeLines (
LineBreakMeasurer measurer, int targetWidth, Dimension size, boolean keepWordsWhole)
{
// start with a size of zero
double width = 0, height = 0;
List<Tuple<TextLayout,Rectangle2D>> layouts = new ... |
public class class_name {
@SuppressWarnings("UnusedParameters")
protected String createDescriptionMetaData(String parameterName, DatabaseChangeProperty changePropertyAnnotation) {
if (changePropertyAnnotation == null) {
return null;
}
return StringUtil.trimToNull(changePropertyA... | public class class_name {
@SuppressWarnings("UnusedParameters")
protected String createDescriptionMetaData(String parameterName, DatabaseChangeProperty changePropertyAnnotation) {
if (changePropertyAnnotation == null) {
return null; // depends on control dependency: [if], data = [none]
... |
public class class_name {
protected void fillMissingParameters() {
if (dest == null) {
dest = Key.make();
}
if (seed == -1) {
seed = new Random().nextLong();
Log.info("Generated seed: " + seed);
}
} } | public class class_name {
protected void fillMissingParameters() {
if (dest == null) {
dest = Key.make(); // depends on control dependency: [if], data = [none]
}
if (seed == -1) {
seed = new Random().nextLong(); // depends on control dependency: [if], data = [none]
Log.info("Generated see... |
public class class_name {
private void checkArgumentFormat(CommandLineOption optionInfo, CharSequence matchedArg)
{
// Check if this option enforces a format for its argument.
if (optionInfo.argumentFormatRegexp != null)
{
Pattern pattern = Pattern.compile(optionInfo.argumentFor... | public class class_name {
private void checkArgumentFormat(CommandLineOption optionInfo, CharSequence matchedArg)
{
// Check if this option enforces a format for its argument.
if (optionInfo.argumentFormatRegexp != null)
{
Pattern pattern = Pattern.compile(optionInfo.argumentFor... |
public class class_name {
public static void extract(URL sourceURL, File targetFolder)
throws IOException {
if (sourceURL.getProtocol().equals("file")) {
if (sourceURL.getFile().indexOf(".zip") > 0) {
extractZipDistribution(sourceURL, targetFolder);
}
... | public class class_name {
public static void extract(URL sourceURL, File targetFolder)
throws IOException {
if (sourceURL.getProtocol().equals("file")) {
if (sourceURL.getFile().indexOf(".zip") > 0) {
extractZipDistribution(sourceURL, targetFolder); // depends on control dep... |
public class class_name {
public void close() {
try {
unmmap.invoke(null, addr, this.size);
if (!file.delete()) {
throw new RuntimeException("could not delete " + file);
}
} catch (IllegalAccessException e) {
throw new RuntimeException(e);... | public class class_name {
public void close() {
try {
unmmap.invoke(null, addr, this.size); // depends on control dependency: [try], data = [none]
if (!file.delete()) {
throw new RuntimeException("could not delete " + file);
}
} catch (IllegalAccessEx... |
public class class_name {
public static String convertToDebianVersion( String version, boolean apply, String envName, String template, Date timestamp ) {
Matcher matcher = SNAPSHOT_PATTERN.matcher(version);
if (matcher.matches()) {
version = matcher.group(1) + "~";
if (apply) {... | public class class_name {
public static String convertToDebianVersion( String version, boolean apply, String envName, String template, Date timestamp ) {
Matcher matcher = SNAPSHOT_PATTERN.matcher(version);
if (matcher.matches()) {
version = matcher.group(1) + "~"; // depends on control dep... |
public class class_name {
public void setText (String text)
{
if (_label.setText(text)) {
_dirty = true;
// clear out our constrained size where appropriate
if (_constrain == HORIZONTAL || _constrain == VERTICAL) {
_constrainedSize = 0;
_l... | public class class_name {
public void setText (String text)
{
if (_label.setText(text)) {
_dirty = true; // depends on control dependency: [if], data = [none]
// clear out our constrained size where appropriate
if (_constrain == HORIZONTAL || _constrain == VERTICAL) {
... |
public class class_name {
@RequestMapping(value = "changelog/export/{projectId}/formats", method = RequestMethod.GET)
public Resources<ExportFormat> changeLogExportFormats(@PathVariable ID projectId) {
// Gets the project
Project project = structureService.getProject(projectId);
// Gets the... | public class class_name {
@RequestMapping(value = "changelog/export/{projectId}/formats", method = RequestMethod.GET)
public Resources<ExportFormat> changeLogExportFormats(@PathVariable ID projectId) {
// Gets the project
Project project = structureService.getProject(projectId);
// Gets the... |
public class class_name {
public boolean isPermittedAll(Collection<String> permissions) {
for (boolean permitted : isPermitted(permissions.toArray(new String[permissions.size()]))) {
if (!permitted) {
return false;
}
}
return true;
} } | public class class_name {
public boolean isPermittedAll(Collection<String> permissions) {
for (boolean permitted : isPermitted(permissions.toArray(new String[permissions.size()]))) {
if (!permitted) {
return false; // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
public CmsResourceTranslator getXsdTranslator() {
String[] array = m_xsdTranslationEnabled ? new String[m_xsdTranslations.size()] : new String[0];
for (int i = 0; i < m_xsdTranslations.size(); i++) {
array[i] = m_xsdTranslations.get(i);
}
return ne... | public class class_name {
public CmsResourceTranslator getXsdTranslator() {
String[] array = m_xsdTranslationEnabled ? new String[m_xsdTranslations.size()] : new String[0];
for (int i = 0; i < m_xsdTranslations.size(); i++) {
array[i] = m_xsdTranslations.get(i); // depends on control depen... |
public class class_name {
public void updateConfig(AbstractInterfaceConfig config, String configPath, ChildData data) {
if (data == null) {
if (LOGGER.isInfoEnabled(config.getAppName())) {
LOGGER.infoWithApp(config.getAppName(), "Receive update data is null");
}
... | public class class_name {
public void updateConfig(AbstractInterfaceConfig config, String configPath, ChildData data) {
if (data == null) {
if (LOGGER.isInfoEnabled(config.getAppName())) {
LOGGER.infoWithApp(config.getAppName(), "Receive update data is null"); // depends on control ... |
public class class_name {
private void addOuToTable(CmsOrganizationalUnit ou) {
if (m_app.isParentOfManagableOU(ou.getName())) {
Item item = m_container.addItem(ou.getName());
if (item != null) {
item.getItemProperty(TableProperty.Name).setValue(ou.getName());
... | public class class_name {
private void addOuToTable(CmsOrganizationalUnit ou) {
if (m_app.isParentOfManagableOU(ou.getName())) {
Item item = m_container.addItem(ou.getName());
if (item != null) {
item.getItemProperty(TableProperty.Name).setValue(ou.getName()); // depend... |
public class class_name {
@Override
public final String getSeriesLabelFromCTSer(final Object ctObjSer) {
if (ctObjSer instanceof CTAreaSer) {
return ((CTAreaSer) ctObjSer).getTx().getStrRef().getF();
}
return null;
} } | public class class_name {
@Override
public final String getSeriesLabelFromCTSer(final Object ctObjSer) {
if (ctObjSer instanceof CTAreaSer) {
return ((CTAreaSer) ctObjSer).getTx().getStrRef().getF();
// depends on control dependency: [if], data = [none]
}
return null;
} } |
public class class_name {
public void setZeroColor(final Color COLOR) {
if (null == zeroColor) {
_zeroColor = COLOR;
fireUpdateEvent(REDRAW_EVENT);
} else {
zeroColor.set(COLOR);
}
} } | public class class_name {
public void setZeroColor(final Color COLOR) {
if (null == zeroColor) {
_zeroColor = COLOR; // depends on control dependency: [if], data = [none]
fireUpdateEvent(REDRAW_EVENT); // depends on control dependency: [if], data = [none]
} else {
ze... |
public class class_name {
protected boolean isParam(ExpressionNode expr)
{
while(null != expr)
{
if(expr instanceof ElemTemplateElement)
break;
expr = expr.exprGetParent();
}
if(null != expr)
{
ElemTemplateElement ete = (ElemTemplateElement)expr;
while(null != ete)
{
int ... | public class class_name {
protected boolean isParam(ExpressionNode expr)
{
while(null != expr)
{
if(expr instanceof ElemTemplateElement)
break;
expr = expr.exprGetParent(); // depends on control dependency: [while], data = [none]
}
if(null != expr)
{
ElemTemplateElement ete = (ElemTem... |
public class class_name {
@Override
protected void emitStartManualElement(final long mVersion) {
try {
write("<tt revision=\"");
write(Long.toString(mVersion));
write("\">");
} catch (final IOException exc) {
exc.printStackTrace();
}
} } | public class class_name {
@Override
protected void emitStartManualElement(final long mVersion) {
try {
write("<tt revision=\""); // depends on control dependency: [try], data = [none]
write(Long.toString(mVersion)); // depends on control dependency: [try], data = [none]
... |
public class class_name {
@Override
protected void writeValue(String column, int line, String value) {
logger.info("Writing: [{}] at line [{}] in column [{}]", value, line, column);
final int colIndex = columns.indexOf(column);
final String url = this.norauiWebServicesApi + scenarioName + C... | public class class_name {
@Override
protected void writeValue(String column, int line, String value) {
logger.info("Writing: [{}] at line [{}] in column [{}]", value, line, column);
final int colIndex = columns.indexOf(column);
final String url = this.norauiWebServicesApi + scenarioName + C... |
public class class_name {
public void sessionLastAccessTimeSet(ISession session, long old, long newaccess) {
// ArrayList sessionStateObservers = null;
/*
* Check to see if there is a non-empty list of sessionStateObservers.
*/
if (_sessionStateObservers == null || _sessionSt... | public class class_name {
public void sessionLastAccessTimeSet(ISession session, long old, long newaccess) {
// ArrayList sessionStateObservers = null;
/*
* Check to see if there is a non-empty list of sessionStateObservers.
*/
if (_sessionStateObservers == null || _sessionSt... |
public class class_name {
private void generateTemplateIndices(WikipediaTemplateInfo info,
Set<String> templateNames)
{
try {
for (String name : templateNames) {
int id = info.checkTemplateId(name);
if (id != -1) {
tplNameToTplId.put(name, id);
}
}
}
catch (WikiApiException e) {
}
... | public class class_name {
private void generateTemplateIndices(WikipediaTemplateInfo info,
Set<String> templateNames)
{
try {
for (String name : templateNames) {
int id = info.checkTemplateId(name);
if (id != -1) {
tplNameToTplId.put(name, id); // depends on control dependency: [if], data = [none... |
public class class_name {
public Integer getMinPoolSize()
{
if (childNode.getTextValueForPatternName("min-pool-size") != null && !childNode.getTextValueForPatternName("min-pool-size").equals("null")) {
return Integer.valueOf(childNode.getTextValueForPatternName("min-pool-size"));
}
return... | public class class_name {
public Integer getMinPoolSize()
{
if (childNode.getTextValueForPatternName("min-pool-size") != null && !childNode.getTextValueForPatternName("min-pool-size").equals("null")) {
return Integer.valueOf(childNode.getTextValueForPatternName("min-pool-size")); // depends on contro... |
public class class_name {
public static String to(String str, NamingStyle namingStyle) {
NamingStyle ns = namingStyle;
if (str == null) {
return null;
}
if (ns == null) {
ns = NamingStyle.CAMEL;
}
String formatStr;
switch (ns) {
... | public class class_name {
public static String to(String str, NamingStyle namingStyle) {
NamingStyle ns = namingStyle;
if (str == null) {
return null;
// depends on control dependency: [if], data = [none]
}
if (ns == null) {
ns = NamingStyle.CAMEL;
// depe... |
public class class_name {
@Override
public Collection<KamEdge> getEdges(EdgeFilter filter) {
Set<KamEdge> kamEdges = new LinkedHashSet<KamEdge>();
for (KamEdge kamEdge : edgeIdMap.keySet()) {
// Check for an edge filter
if (null != filter) {
if (!filter.acce... | public class class_name {
@Override
public Collection<KamEdge> getEdges(EdgeFilter filter) {
Set<KamEdge> kamEdges = new LinkedHashSet<KamEdge>();
for (KamEdge kamEdge : edgeIdMap.keySet()) {
// Check for an edge filter
if (null != filter) {
if (!filter.acce... |
public class class_name {
@Override
public void visitClassContext(final ClassContext classContext) {
JavaClass cls = classContext.getJavaClass();
Field[] flds = cls.getFields();
for (Field f : flds) {
String sig = f.getSignature();
if (sig.startsWith(Values.SIG_QUALIFIED_CLASS_PREFIX)) {
if (sig.start... | public class class_name {
@Override
public void visitClassContext(final ClassContext classContext) {
JavaClass cls = classContext.getJavaClass();
Field[] flds = cls.getFields();
for (Field f : flds) {
String sig = f.getSignature();
if (sig.startsWith(Values.SIG_QUALIFIED_CLASS_PREFIX)) {
if (sig.start... |
public class class_name {
private void fillDetailProject(CmsListItem item, String detailId) {
StringBuffer html = new StringBuffer();
// search /read for the corresponding history project: it's tag id transmitted from getListItems()
// in a hidden column
Object tagIdObj = item.get(LIS... | public class class_name {
private void fillDetailProject(CmsListItem item, String detailId) {
StringBuffer html = new StringBuffer();
// search /read for the corresponding history project: it's tag id transmitted from getListItems()
// in a hidden column
Object tagIdObj = item.get(LIS... |
public class class_name {
public static boolean match(String keyword, String mappingId) {
if (mappingId.indexOf(keyword) != -1) { // match found!
return true;
}
return false;
} } | public class class_name {
public static boolean match(String keyword, String mappingId) {
if (mappingId.indexOf(keyword) != -1) { // match found!
return true; // depends on control dependency: [if], data = [none]
}
return false;
} } |
public class class_name {
public static boolean deleteRecursive(final File file) {
boolean result = true;
if (file.isDirectory()) {
for (final File inner : file.listFiles()) {
result &= deleteRecursive(inner);
}
}
return result & file.delete();
} } | public class class_name {
public static boolean deleteRecursive(final File file) {
boolean result = true;
if (file.isDirectory()) {
for (final File inner : file.listFiles()) {
result &= deleteRecursive(inner); // depends on control dependency: [for], data = [inner]
}
}
return result & file.delete();
... |
public class class_name {
public String get(String key, Charset charset)
{
BinaryValue wrappedKey = BinaryValue.unsafeCreate(key.getBytes(charset));
BinaryValue value = meta.get(wrappedKey);
if (value != null)
{
return value.toString(charset);
}
else
... | public class class_name {
public String get(String key, Charset charset)
{
BinaryValue wrappedKey = BinaryValue.unsafeCreate(key.getBytes(charset));
BinaryValue value = meta.get(wrappedKey);
if (value != null)
{
return value.toString(charset); // depends on control depen... |
public class class_name {
private void computeIntersection() {
final ByteMap<ExpressionDataPoint[]> ordered_intersection =
new ByteMap<ExpressionDataPoint[]>();
final Iterator<ITimeSyncedIterator> it = queries.values().iterator();
// assume we have at least on query in our set
ITimeSynce... | public class class_name {
private void computeIntersection() {
final ByteMap<ExpressionDataPoint[]> ordered_intersection =
new ByteMap<ExpressionDataPoint[]>();
final Iterator<ITimeSyncedIterator> it = queries.values().iterator();
// assume we have at least on query in our set
ITimeSynce... |
public class class_name {
public Object javaToSql(Object source)
{
if (source == null)
return null;
try
{
return SerializationUtils.serialize((Serializable) source);
}
catch(Throwable t)
{
throw new ConversionException(t)... | public class class_name {
public Object javaToSql(Object source)
{
if (source == null)
return null;
try
{
return SerializationUtils.serialize((Serializable) source);
// depends on control dependency: [try], data = [none]
}
catch(Throwable t)
... |
public class class_name {
public void addScalar(int k) {
Set<O> remove = new HashSet<>();
for (O o : multiplicities.keySet()) {
setMultiplicity(o, multiplicity(o) + k);
if (multiplicity(o) < 1) {
remove.add(o);
}
}
for (O o : remove) {
remove(o);
}
} } | public class class_name {
public void addScalar(int k) {
Set<O> remove = new HashSet<>();
for (O o : multiplicities.keySet()) {
setMultiplicity(o, multiplicity(o) + k); // depends on control dependency: [for], data = [o]
if (multiplicity(o) < 1) {
remove.add(o); // depends on control dependency: [if], da... |
public class class_name {
public CreatePresetResponse createPreset(CreatePresetRequest request) {
checkNotNull(request, "The parameter request should NOT be null.");
checkStringNotEmpty(request.getName(),
"The parameter name should NOT be null or empty string.");
if (request.g... | public class class_name {
public CreatePresetResponse createPreset(CreatePresetRequest request) {
checkNotNull(request, "The parameter request should NOT be null.");
checkStringNotEmpty(request.getName(),
"The parameter name should NOT be null or empty string.");
if (request.g... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.