code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
public OGCPoint getPoint(DeferredObject[] args) {
OGCGeometry geometry = getGeometry(args);
if (geometry instanceof OGCPoint) {
return (OGCPoint)geometry;
} else {
return null;
}
} } | public class class_name {
public OGCPoint getPoint(DeferredObject[] args) {
OGCGeometry geometry = getGeometry(args);
if (geometry instanceof OGCPoint) {
return (OGCPoint)geometry;
// depends on control dependency: [if], data = [none]
} else {
return null;
// depends on control dependency: [if], ... |
public class class_name {
private void addEmitEventCall(ExecutableElement originalMethod,
MethodSpec.Builder proxyMethodBuilder, String methodCallParameters) {
String methodName = "$emit";
if (methodCallParameters != null && !"".equals(methodCallParameters)) {
proxyMethodBuilder.addStatement("vue()... | public class class_name {
private void addEmitEventCall(ExecutableElement originalMethod,
MethodSpec.Builder proxyMethodBuilder, String methodCallParameters) {
String methodName = "$emit";
if (methodCallParameters != null && !"".equals(methodCallParameters)) {
proxyMethodBuilder.addStatement("vue()... |
public class class_name {
static String getClassSignature(String[] interfaces, String className, String apiName) {
StringBuilder signature;
signature = new StringBuilder("<Z::" + XsdSupportingStructure.elementTypeDesc + ">" + JAVA_OBJECT_DESC);
if (interfaces != null){
for (String... | public class class_name {
static String getClassSignature(String[] interfaces, String className, String apiName) {
StringBuilder signature;
signature = new StringBuilder("<Z::" + XsdSupportingStructure.elementTypeDesc + ">" + JAVA_OBJECT_DESC);
if (interfaces != null){
for (String... |
public class class_name {
public static boolean isValidJavaPackage(String packageName) {
if (isBlank(packageName)) {
return false;
}
final String[] parts = packageName.split("\\.");
for (String part : parts) {
if (!isValidJavaIdentifier(part)) {
r... | public class class_name {
public static boolean isValidJavaPackage(String packageName) {
if (isBlank(packageName)) {
return false; // depends on control dependency: [if], data = [none]
}
final String[] parts = packageName.split("\\.");
for (String part : parts) {
... |
public class class_name {
public ProgressStyle setIndeterminate(boolean value){
if(mProgressStyle == HORIZONTAL) {
mProgress.setIndeterminate(value);
mProgressText.setVisibility(value ? View.GONE : View.VISIBLE);
mProgressMax.setVisibility(value ? View.GONE : View.VISIBLE);
... | public class class_name {
public ProgressStyle setIndeterminate(boolean value){
if(mProgressStyle == HORIZONTAL) {
mProgress.setIndeterminate(value); // depends on control dependency: [if], data = [none]
mProgressText.setVisibility(value ? View.GONE : View.VISIBLE); // depends on contro... |
public class class_name {
private static IDisconfUpdatePipeline getIDisconfUpdatePipelineInstance(
Class<IDisconfUpdatePipeline> disconfUpdateServiceClass,
Registry registry) {
Object iDisconfUpdate = registry.getFirstByType(disconfUpdateServiceClass, true);
if (iDisconfUpdate ... | public class class_name {
private static IDisconfUpdatePipeline getIDisconfUpdatePipelineInstance(
Class<IDisconfUpdatePipeline> disconfUpdateServiceClass,
Registry registry) {
Object iDisconfUpdate = registry.getFirstByType(disconfUpdateServiceClass, true);
if (iDisconfUpdate ... |
public class class_name {
public Drawable decideIcon(Context ctx, int iconColor, boolean tint, int paddingDp) {
Drawable icon = getIcon();
if (mIIcon != null) {
icon = new IconicsDrawable(ctx, mIIcon).color(iconColor).sizeDp(24).paddingDp(paddingDp);
} else if (getIconRes() != -1) ... | public class class_name {
public Drawable decideIcon(Context ctx, int iconColor, boolean tint, int paddingDp) {
Drawable icon = getIcon();
if (mIIcon != null) {
icon = new IconicsDrawable(ctx, mIIcon).color(iconColor).sizeDp(24).paddingDp(paddingDp); // depends on control dependency: [if],... |
public class class_name {
public void marshall(ImagePermissions imagePermissions, ProtocolMarshaller protocolMarshaller) {
if (imagePermissions == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(imag... | public class class_name {
public void marshall(ImagePermissions imagePermissions, ProtocolMarshaller protocolMarshaller) {
if (imagePermissions == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(imag... |
public class class_name {
private synchronized void compareProgress(List<Long> processIds) {
if (CollectionUtils.isEmpty(processIds) == false) {
Long minProcessId = processIds.get(0);
// 对比一下progress中的记录,如果小于当前最小的processId,直接删除内存中的记录
// 因为发生跨机器调用或者出现restart指令,对应的process记录不会被... | public class class_name {
private synchronized void compareProgress(List<Long> processIds) {
if (CollectionUtils.isEmpty(processIds) == false) {
Long minProcessId = processIds.get(0);
// 对比一下progress中的记录,如果小于当前最小的processId,直接删除内存中的记录
// 因为发生跨机器调用或者出现restart指令,对应的process记录不会被... |
public class class_name {
public boolean add(final Process process) {
synchronized (processes) {
// if this list is empty, register the shutdown hook
if (processes.size() == 0) {
try {
if(shutDownHookExecuted) {
throw new IllegalStateException();
}
ad... | public class class_name {
public boolean add(final Process process) {
synchronized (processes) {
// if this list is empty, register the shutdown hook
if (processes.size() == 0) {
try {
if(shutDownHookExecuted) {
throw new IllegalStateException();
}
ad... |
public class class_name {
public static void putString(IoBuffer buf, String string) {
final byte[] encoded = encodeString(string);
if (encoded.length < AMF.LONG_STRING_LENGTH) {
// write unsigned short
buf.put((byte) ((encoded.length >> 8) & 0xff));
buf.put((byte) (e... | public class class_name {
public static void putString(IoBuffer buf, String string) {
final byte[] encoded = encodeString(string);
if (encoded.length < AMF.LONG_STRING_LENGTH) {
// write unsigned short
buf.put((byte) ((encoded.length >> 8) & 0xff)); // depends on control depende... |
public class class_name {
public void checkCacheMode(Boolean boolShouldBeCached)
{
try {
boolean bCurrentlyCached = (this.getRemoteTableType(CachedRemoteTable.class) != null);
if ((this.getRecord().getOpenMode() & DBConstants.OPEN_CACHE_RECORDS) == DBConstants.OPEN_CACHE_RECORDS)
... | public class class_name {
public void checkCacheMode(Boolean boolShouldBeCached)
{
try {
boolean bCurrentlyCached = (this.getRemoteTableType(CachedRemoteTable.class) != null);
if ((this.getRecord().getOpenMode() & DBConstants.OPEN_CACHE_RECORDS) == DBConstants.OPEN_CACHE_RECORDS)
... |
public class class_name {
private static int getMonomerCountFromMonomerNotation(MonomerNotation monomerNotation) {
int multiply;
try {
multiply = Integer.parseInt(monomerNotation.getCount());
if (multiply < 1) {
multiply = 1;
}
} catch (NumberFormatException e) {
mul... | public class class_name {
private static int getMonomerCountFromMonomerNotation(MonomerNotation monomerNotation) {
int multiply;
try {
multiply = Integer.parseInt(monomerNotation.getCount());
// depends on control dependency: [try], data = [none]
if (multiply < 1) {
multiply = 1;
// d... |
public class class_name {
public void addDataId(Object dataId) {
if (lock == SET) {
throw new IllegalStateException("EntryInfo is locked");
}
if (dataId != null && !dataId.equals("")) {
dataIds.add(dataId);
}
} } | public class class_name {
public void addDataId(Object dataId) {
if (lock == SET) {
throw new IllegalStateException("EntryInfo is locked");
}
if (dataId != null && !dataId.equals("")) {
dataIds.add(dataId); // depends on control dependency: [if], data = [(dataId]
}
} } |
public class class_name {
@Override
public Collection<CopyableFile> filter(FileSystem sourceFs, FileSystem targetFs,
Collection<CopyableFile> copyableFiles) {
Iterator<CopyableFile> cfIterator = copyableFiles.iterator();
ImmutableList.Builder<CopyableFile> filtered = ImmutableList.builder();
whil... | public class class_name {
@Override
public Collection<CopyableFile> filter(FileSystem sourceFs, FileSystem targetFs,
Collection<CopyableFile> copyableFiles) {
Iterator<CopyableFile> cfIterator = copyableFiles.iterator();
ImmutableList.Builder<CopyableFile> filtered = ImmutableList.builder();
whil... |
public class class_name {
public void validate () {
formInvalid = false;
errorMsgText = null;
for (CheckedButtonWrapper wrapper : buttons) {
if (wrapper.button.isChecked() != wrapper.mustBeChecked) {
wrapper.setButtonStateInvalid(true);
} else {
wrapper.setButtonStateInvalid(false);
}
}
fo... | public class class_name {
public void validate () {
formInvalid = false;
errorMsgText = null;
for (CheckedButtonWrapper wrapper : buttons) {
if (wrapper.button.isChecked() != wrapper.mustBeChecked) {
wrapper.setButtonStateInvalid(true); // depends on control dependency: [if], data = [none]
} else {
... |
public class class_name {
protected boolean
isWholeCompound(DapStructure dstruct)
{
int processed = 0;
List<DapVariable> fields = dstruct.getFields();
for(DapVariable field : fields) {
// not contractable if this field has non-original dimensions
Segment seg = fi... | public class class_name {
protected boolean
isWholeCompound(DapStructure dstruct)
{
int processed = 0;
List<DapVariable> fields = dstruct.getFields();
for(DapVariable field : fields) {
// not contractable if this field has non-original dimensions
Segment seg = fi... |
public class class_name {
private AstStrList parseStringList() {
ArrayList<String> strs = new ArrayList<>(10);
while (isQuote(skipWS())) {
strs.add(string());
if (skipWS() == ',') eatChar(',');
}
return new AstStrList(strs);
} } | public class class_name {
private AstStrList parseStringList() {
ArrayList<String> strs = new ArrayList<>(10);
while (isQuote(skipWS())) {
strs.add(string()); // depends on control dependency: [while], data = [none]
if (skipWS() == ',') eatChar(',');
}
return new AstStrList(strs);
} } |
public class class_name {
public Set<String> getAttributeNamesSkipId() {
if (attributeNamesNoId == null) {//no one cares about unfortunate multi-threading timing with 2 instances created
//if someone does, use DCL with volatile
Set<String> attributesNames = new CaseInsensitiveSet(getAtt... | public class class_name {
public Set<String> getAttributeNamesSkipId() {
if (attributeNamesNoId == null) {//no one cares about unfortunate multi-threading timing with 2 instances created
//if someone does, use DCL with volatile
Set<String> attributesNames = new CaseInsensitiveSet(getAtt... |
public class class_name {
public static String hash(String password) {
String result = null;
if (password != null) {
// Generate a random salt:
String salt = Generate.salt();
// Hash the password:
byte[] hash = hash(password, salt);
// Co... | public class class_name {
public static String hash(String password) {
String result = null;
if (password != null) {
// Generate a random salt:
String salt = Generate.salt();
// Hash the password:
byte[] hash = hash(password, salt);
// Co... |
public class class_name {
public DirEntry insert(RecordId dataRecordId) {
// search range must be a constant
if (!searchRange.isSingleValue())
throw new IllegalStateException();
// ccMgr.modifyLeafBlock(currentPage.currentBlk());
currentSlot++;
SearchKey searchKey = searchRange.asSearchKey();
... | public class class_name {
public DirEntry insert(RecordId dataRecordId) {
// search range must be a constant
if (!searchRange.isSingleValue())
throw new IllegalStateException();
// ccMgr.modifyLeafBlock(currentPage.currentBlk());
currentSlot++;
SearchKey searchKey = searchRange.asSearchKey();
... |
public class class_name {
@Override
public ParseResult parse(Reader reader, AttributeSource parent)
throws IOException {
ParseResult res = new ParseResult();
// get MtasUpdateRequestProcessorResult
StringBuilder sb = new StringBuilder();
char[] buf = new char[128];
int cnt;
while ((cnt... | public class class_name {
@Override
public ParseResult parse(Reader reader, AttributeSource parent)
throws IOException {
ParseResult res = new ParseResult();
// get MtasUpdateRequestProcessorResult
StringBuilder sb = new StringBuilder();
char[] buf = new char[128];
int cnt;
while ((cnt... |
public class class_name {
public boolean isStarving(long now) {
double starvingShare = getShare() * shareStarvingRatio;
if (getGranted() >= Math.ceil(starvingShare)) {
lastTimeAboveStarvingShare = now;
}
if (getGranted() >= Math.min(getShare(), getMinimum())) {
lastTimeAboveMinimum = now;
... | public class class_name {
public boolean isStarving(long now) {
double starvingShare = getShare() * shareStarvingRatio;
if (getGranted() >= Math.ceil(starvingShare)) {
lastTimeAboveStarvingShare = now; // depends on control dependency: [if], data = [none]
}
if (getGranted() >= Math.min(getShare(... |
public class class_name {
public byte getStatus(final int id, final String path) {
if (FileDownloader.getImpl().isServiceConnected()) {
return FileDownloader.getImpl().getStatus(id, path);
}
if (path != null && new File(path).exists()) {
return FileDownloadStatus.comple... | public class class_name {
public byte getStatus(final int id, final String path) {
if (FileDownloader.getImpl().isServiceConnected()) {
return FileDownloader.getImpl().getStatus(id, path); // depends on control dependency: [if], data = [none]
}
if (path != null && new File(path).ex... |
public class class_name {
public void setFaceIds(java.util.Collection<String> faceIds) {
if (faceIds == null) {
this.faceIds = null;
return;
}
this.faceIds = new java.util.ArrayList<String>(faceIds);
} } | public class class_name {
public void setFaceIds(java.util.Collection<String> faceIds) {
if (faceIds == null) {
this.faceIds = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
}
this.faceIds = new ... |
public class class_name {
private static String[] splitRange(final String str) {
if(StringUtils.isBlank(str)) {
return new String[]{""};
}
return str.split(RANGE_PATTERN);
} } | public class class_name {
private static String[] splitRange(final String str) {
if(StringUtils.isBlank(str)) {
return new String[]{""}; // depends on control dependency: [if], data = [none]
}
return str.split(RANGE_PATTERN);
} } |
public class class_name {
protected static void calculateSelectivityCoeffs(List<DoubleObjPair<DAFile>> daFiles, NumberVector query, double epsilon) {
final int dimensions = query.getDimensionality();
double[] lowerVals = new double[dimensions];
double[] upperVals = new double[dimensions];
VectorApprox... | public class class_name {
protected static void calculateSelectivityCoeffs(List<DoubleObjPair<DAFile>> daFiles, NumberVector query, double epsilon) {
final int dimensions = query.getDimensionality();
double[] lowerVals = new double[dimensions];
double[] upperVals = new double[dimensions];
VectorApprox... |
public class class_name {
public int checkCurrentCacheIsPhysical(Object data) throws DBException, RemoteException
{
int iErrorCode = Constants.NORMAL_RETURN;
Object objTargetRow = m_objCurrentCacheRecord;
if (objTargetRow != NONE)
{
if (m_mapCache != null)
{
... | public class class_name {
public int checkCurrentCacheIsPhysical(Object data) throws DBException, RemoteException
{
int iErrorCode = Constants.NORMAL_RETURN;
Object objTargetRow = m_objCurrentCacheRecord;
if (objTargetRow != NONE)
{
if (m_mapCache != null)
{
... |
public class class_name {
protected boolean hasValidVersionSpecified( EnforcerRuleHelper helper, Plugin source, List<PluginWrapper> pluginWrappers )
{
boolean found = false;
boolean status = false;
for ( PluginWrapper plugin : pluginWrappers )
{
// find the matching plug... | public class class_name {
protected boolean hasValidVersionSpecified( EnforcerRuleHelper helper, Plugin source, List<PluginWrapper> pluginWrappers )
{
boolean found = false;
boolean status = false;
for ( PluginWrapper plugin : pluginWrappers )
{
// find the matching plug... |
public class class_name {
private void applyWait(int emptyTimes) {
int newEmptyTimes = emptyTimes > maxEmptyTimes ? maxEmptyTimes : emptyTimes;
if (emptyTimes <= 3) { // 3次以内
Thread.yield();
} else { // 超过3次,最多只sleep 10ms
LockSupport.parkNanos(1000 * 1000L * newEmptyTime... | public class class_name {
private void applyWait(int emptyTimes) {
int newEmptyTimes = emptyTimes > maxEmptyTimes ? maxEmptyTimes : emptyTimes;
if (emptyTimes <= 3) { // 3次以内
Thread.yield(); // depends on control dependency: [if], data = [none]
} else { // 超过3次,最多只sleep 10ms
... |
public class class_name {
public InviteUsersResult withInvites(Invite... invites) {
if (this.invites == null) {
setInvites(new java.util.ArrayList<Invite>(invites.length));
}
for (Invite ele : invites) {
this.invites.add(ele);
}
return this;
} } | public class class_name {
public InviteUsersResult withInvites(Invite... invites) {
if (this.invites == null) {
setInvites(new java.util.ArrayList<Invite>(invites.length)); // depends on control dependency: [if], data = [none]
}
for (Invite ele : invites) {
this.invites.... |
public class class_name {
@Override
public void init() {
String packageName = getCommands().get(getCommand());
ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
String path = packageName.replace('.', '/');
URL url = null;
try {
final Enu... | public class class_name {
@Override
public void init() {
String packageName = getCommands().get(getCommand());
ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
String path = packageName.replace('.', '/');
URL url = null;
try {
final Enu... |
public class class_name {
private void applyUserAgent(PutMediaRequest request, Request<PutMediaRequest> marshalled) {
if (!marshalled.getHeaders().containsKey("User-Agent")) {
marshalled.addHeader("User-Agent",
RuntimeHttpUtils.getUserAgent(new ClientConfiguration()... | public class class_name {
private void applyUserAgent(PutMediaRequest request, Request<PutMediaRequest> marshalled) {
if (!marshalled.getHeaders().containsKey("User-Agent")) {
marshalled.addHeader("User-Agent",
RuntimeHttpUtils.getUserAgent(new ClientConfiguration()... |
public class class_name {
public static String extractNameFromSchema(String schema, String schemaName, String fallbackName) {
String resolvedName = null;
if (schema != null) {
// if we have an array type we need to recurse into it
int startIdx = 0;
String type = extractTopItem("type", schema, startIdx);
... | public class class_name {
public static String extractNameFromSchema(String schema, String schemaName, String fallbackName) {
String resolvedName = null;
if (schema != null) {
// if we have an array type we need to recurse into it
int startIdx = 0;
String type = extractTopItem("type", schema, startIdx);
... |
public class class_name {
public boolean isActive(final org.apache.tools.ant.Project p) {
if (this.value == null) {
return false;
}
if (this.ifCond != null && p.getProperty(this.ifCond) == null) {
return false;
} else if (this.unlessCond != null && p.getProperty(this.unlessCond) != null) {
... | public class class_name {
public boolean isActive(final org.apache.tools.ant.Project p) {
if (this.value == null) {
return false; // depends on control dependency: [if], data = [none]
}
if (this.ifCond != null && p.getProperty(this.ifCond) == null) {
return false; // depends on control dependen... |
public class class_name {
private void performInsertEOLogic(EngineeringObjectModelWrapper model) {
for (Field field : model.getForeignKeyFields()) {
mergeEngineeringObjectWithReferencedModel(field, model);
}
} } | public class class_name {
private void performInsertEOLogic(EngineeringObjectModelWrapper model) {
for (Field field : model.getForeignKeyFields()) {
mergeEngineeringObjectWithReferencedModel(field, model); // depends on control dependency: [for], data = [field]
}
} } |
public class class_name {
private void connected(final MemcachedNode node) {
assert node.getChannel().isConnected() : "Not connected.";
int rt = node.getReconnectCount();
node.connected();
for (ConnectionObserver observer : connObservers) {
observer.connectionEstablished(node.getSocketAddress(),... | public class class_name {
private void connected(final MemcachedNode node) {
assert node.getChannel().isConnected() : "Not connected.";
int rt = node.getReconnectCount();
node.connected();
for (ConnectionObserver observer : connObservers) {
observer.connectionEstablished(node.getSocketAddress(),... |
public class class_name {
@SuppressWarnings("unchecked")
public String generateDocumentId(String databaseName, Object entity) {
Class<?> clazz = entity.getClass();
for (Tuple<Class, BiFunction<String, Object, String>> listOfRegisteredIdConvention : _listOfRegisteredIdConventions) {
if ... | public class class_name {
@SuppressWarnings("unchecked")
public String generateDocumentId(String databaseName, Object entity) {
Class<?> clazz = entity.getClass();
for (Tuple<Class, BiFunction<String, Object, String>> listOfRegisteredIdConvention : _listOfRegisteredIdConventions) {
if ... |
public class class_name {
public char match(String str1, String str2) {
if (null == str1 || null == str2 || 0 == str1.length() || 0 == str2.length()) {
return IMappingElement.IDK;
}
String[] grams1 = generateNGrams(str1, gramlength);
String[] grams2 = generateNGrams(str... | public class class_name {
public char match(String str1, String str2) {
if (null == str1 || null == str2 || 0 == str1.length() || 0 == str2.length()) {
return IMappingElement.IDK;
// depends on control dependency: [if], data = [none]
}
String[] grams1 = generateNGrams(str1, gram... |
public class class_name {
public void updateGalleryData(CmsContainerPageGalleryData galleryData, boolean viewChanged) {
if (m_dialog != null) {
if (viewChanged) {
m_dialog.removeFromParent();
m_dialog = null;
} else {
m_dialog.updateGalle... | public class class_name {
public void updateGalleryData(CmsContainerPageGalleryData galleryData, boolean viewChanged) {
if (m_dialog != null) {
if (viewChanged) {
m_dialog.removeFromParent(); // depends on control dependency: [if], data = [none]
m_dialog = null; // ... |
public class class_name {
private static void formalTypeParameter(Result sb, TypeParameterElement typeParameter) throws IOException
{
sb.append(typeParameter.getSimpleName());
List<? extends TypeMirror> bounds = typeParameter.getBounds();
if (!bounds.isEmpty())
{
TypeMir... | public class class_name {
private static void formalTypeParameter(Result sb, TypeParameterElement typeParameter) throws IOException
{
sb.append(typeParameter.getSimpleName());
List<? extends TypeMirror> bounds = typeParameter.getBounds();
if (!bounds.isEmpty())
{
TypeMir... |
public class class_name {
public void setParameter(String name, Object value)
{
if (value == null) {
throw new IllegalArgumentException(XSLMessages.createMessage(XSLTErrorResources.ER_INVALID_SET_PARAM_VALUE, new Object[]{name}));
}
if (null == m_params)
{
m_params = new Hashtable();... | public class class_name {
public void setParameter(String name, Object value)
{
if (value == null) {
throw new IllegalArgumentException(XSLMessages.createMessage(XSLTErrorResources.ER_INVALID_SET_PARAM_VALUE, new Object[]{name}));
}
if (null == m_params)
{
m_params = new Hashtable();... |
public class class_name {
@Override
public Date getNextStart(long base, int prevRawOffset, int prevDSTSavings, boolean inclusive) {
int[] fields = Grego.timeToFields(base, null);
int year = fields[0];
if (year < startYear) {
return getFirstStart(prevRawOffset, prevDSTSavings);
... | public class class_name {
@Override
public Date getNextStart(long base, int prevRawOffset, int prevDSTSavings, boolean inclusive) {
int[] fields = Grego.timeToFields(base, null);
int year = fields[0];
if (year < startYear) {
return getFirstStart(prevRawOffset, prevDSTSavings); /... |
public class class_name {
public void marshall(BatchCreatePartitionRequest batchCreatePartitionRequest, ProtocolMarshaller protocolMarshaller) {
if (batchCreatePartitionRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... | public class class_name {
public void marshall(BatchCreatePartitionRequest batchCreatePartitionRequest, ProtocolMarshaller protocolMarshaller) {
if (batchCreatePartitionRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... |
public class class_name {
public ClassGraph blacklistClasspathElementsContainingResourcePath(final String... resourcePaths) {
for (final String resourcePath : resourcePaths) {
final String resourcePathNormalized = WhiteBlackList.normalizePath(resourcePath);
scanSpec.classpathElementReso... | public class class_name {
public ClassGraph blacklistClasspathElementsContainingResourcePath(final String... resourcePaths) {
for (final String resourcePath : resourcePaths) {
final String resourcePathNormalized = WhiteBlackList.normalizePath(resourcePath);
scanSpec.classpathElementReso... |
public class class_name {
private void put(String name, BeanDefine beanDefine) {
if (pool.put(name, beanDefine) != null) {
log.warn("Duplicated Bean: {}", name);
}
} } | public class class_name {
private void put(String name, BeanDefine beanDefine) {
if (pool.put(name, beanDefine) != null) {
log.warn("Duplicated Bean: {}", name); // depends on control dependency: [if], data = [none]
}
} } |
public class class_name {
@Service
public BulkResponse terminate(List<String> workflowIds, String reason) {
BulkResponse bulkResponse = new BulkResponse();
for (String workflowId : workflowIds) {
try {
workflowExecutor.terminateWorkflow(workflowId, reason);
... | public class class_name {
@Service
public BulkResponse terminate(List<String> workflowIds, String reason) {
BulkResponse bulkResponse = new BulkResponse();
for (String workflowId : workflowIds) {
try {
workflowExecutor.terminateWorkflow(workflowId, reason); // depends on co... |
public class class_name {
public long ping(final Connection connection) throws DevFailed {
long result = 0;
final int maxRetries = connection.transparent_reconnection ? 1 : 0;
int nbRetries = 0;
boolean retry;
do {
try {
result = doPing(connection);
retry = false;
} catch (fi... | public class class_name {
public long ping(final Connection connection) throws DevFailed {
long result = 0;
final int maxRetries = connection.transparent_reconnection ? 1 : 0;
int nbRetries = 0;
boolean retry;
do {
try {
result = doPing(connection); // depends on control dependency: [try], data = ... |
public class class_name {
protected void cleanup() {
int closed = 0;
SendBuffer buffer;
synchronized (buffers) {
int buffersToClose = buffers.size() - maxConnections;
if (buffersToClose < 1) {
return;
}
Iterator<SendBuffer> i = buffers.values().iterator();
while (i.hasNext()) {
b... | public class class_name {
protected void cleanup() {
int closed = 0;
SendBuffer buffer;
synchronized (buffers) {
int buffersToClose = buffers.size() - maxConnections;
if (buffersToClose < 1) {
return;
// depends on control dependency: [if], data = [none]
}
Iterator<SendBuffer> i = buffers... |
public class class_name {
@Override
protected MessageFormat resolveCode(String code, Locale locale)
{
String ret = null;
String country = locale.getCountry();
String language = locale.getLanguage();
String variant = locale.getVariant();
logger.debug("Code {} Initial loca... | public class class_name {
@Override
protected MessageFormat resolveCode(String code, Locale locale)
{
String ret = null;
String country = locale.getCountry();
String language = locale.getLanguage();
String variant = locale.getVariant();
logger.debug("Code {} Initial loca... |
public class class_name {
public static boolean sanityCheck(int flags) {
doCheck(flags, ConformanceFlags.CHECKED | ConformanceFlags.UNCHECKED);
if ((flags & ConformanceFlags.UNCHECKED) == 0) {
doCheck(flags, ConformanceFlags.CHECK_RESULTS);
} else if ((flags & (ConformanceFlags.SEALED | ConformanceFlags.CHECK... | public class class_name {
public static boolean sanityCheck(int flags) {
doCheck(flags, ConformanceFlags.CHECKED | ConformanceFlags.UNCHECKED);
if ((flags & ConformanceFlags.UNCHECKED) == 0) {
doCheck(flags, ConformanceFlags.CHECK_RESULTS); // depends on control dependency: [if], data = [none]
} else if ((fla... |
public class class_name {
public static boolean validateIdCard15(String idCard) {
if (idCard.length() != CHINA_ID_MIN_LENGTH) {
return false;
}
if (isNum(idCard)) {
String proCode = idCard.substring(0, 2);
if (cityCodes.get(proCode) == null) {
... | public class class_name {
public static boolean validateIdCard15(String idCard) {
if (idCard.length() != CHINA_ID_MIN_LENGTH) {
return false; // depends on control dependency: [if], data = [none]
}
if (isNum(idCard)) {
String proCode = idCard.substring(0, 2);
... |
public class class_name {
public static BundleContext getBundleContext(Class<?> clazz) {
BundleContext context = null; //we'll return null if not running inside an OSGi framework (e.g. unit test)
if (FrameworkState.isValid()) {
Bundle bundle = FrameworkUtil.getBundle(clazz);
if... | public class class_name {
public static BundleContext getBundleContext(Class<?> clazz) {
BundleContext context = null; //we'll return null if not running inside an OSGi framework (e.g. unit test)
if (FrameworkState.isValid()) {
Bundle bundle = FrameworkUtil.getBundle(clazz);
if... |
public class class_name {
public static void track(Window window) {
Preferences prefs = node().node("Windows");
String bounds = prefs.get(window.getName() + ".bounds", null);
if (bounds != null) {
Rectangle rect = (Rectangle) ConverterRegistry.instance().convert(
... | public class class_name {
public static void track(Window window) {
Preferences prefs = node().node("Windows");
String bounds = prefs.get(window.getName() + ".bounds", null);
if (bounds != null) {
Rectangle rect = (Rectangle) ConverterRegistry.instance().convert(
... |
public class class_name {
protected void processSelectBody(SelectBody selectBody, int level) {
if (selectBody instanceof PlainSelect) {
processPlainSelect((PlainSelect) selectBody, level + 1);
} else if (selectBody instanceof WithItem) {
WithItem withItem = (WithItem) selectBody... | public class class_name {
protected void processSelectBody(SelectBody selectBody, int level) {
if (selectBody instanceof PlainSelect) {
processPlainSelect((PlainSelect) selectBody, level + 1); // depends on control dependency: [if], data = [none]
} else if (selectBody instanceof WithItem) {... |
public class class_name {
private boolean isRunningOutOfMemory() {
StorageLevel level = raft.getStorage().storageLevel();
if (level == StorageLevel.MEMORY || level == StorageLevel.MAPPED) {
long freeMemory = raft.getStorage().statistics().getFreeMemory();
long totalMemory = raft.getStorage().statis... | public class class_name {
private boolean isRunningOutOfMemory() {
StorageLevel level = raft.getStorage().storageLevel();
if (level == StorageLevel.MEMORY || level == StorageLevel.MAPPED) {
long freeMemory = raft.getStorage().statistics().getFreeMemory();
long totalMemory = raft.getStorage().statis... |
public class class_name {
public List<TargetRelationship> getRelatedLevelRelationships() {
final ArrayList<TargetRelationship> relationships = new ArrayList<TargetRelationship>();
for (final TargetRelationship relationship : levelRelationships) {
if (relationship.getType() == RelationshipTy... | public class class_name {
public List<TargetRelationship> getRelatedLevelRelationships() {
final ArrayList<TargetRelationship> relationships = new ArrayList<TargetRelationship>();
for (final TargetRelationship relationship : levelRelationships) {
if (relationship.getType() == RelationshipTy... |
public class class_name {
public void drawArc(float x1, float y1, float width, float height,
int segments, float start, float end) {
predraw();
TextureImpl.bindNone();
currentColor.bind();
while (end < start) {
end += 360;
}
float cx = x1 + (width / 2.0f);
float cy = y1 + (height / 2.0... | public class class_name {
public void drawArc(float x1, float y1, float width, float height,
int segments, float start, float end) {
predraw();
TextureImpl.bindNone();
currentColor.bind();
while (end < start) {
end += 360;
// depends on control dependency: [while], data = [none]
}
float c... |
public class class_name {
protected BeanDefinition lookupBeanDefinitions(final BeanReferences beanReferences) {
final int total = beanReferences.size();
for (int i = 0; i < total; i++) {
final String name = beanReferences.name(i);
BeanDefinition beanDefinition = lookupBeanDefinition(name);
if (beanDefin... | public class class_name {
protected BeanDefinition lookupBeanDefinitions(final BeanReferences beanReferences) {
final int total = beanReferences.size();
for (int i = 0; i < total; i++) {
final String name = beanReferences.name(i);
BeanDefinition beanDefinition = lookupBeanDefinition(name);
if (beanDefin... |
public class class_name {
public Download resumeDownload(PersistableDownload persistableDownload) {
assertParameterNotNull(persistableDownload,
"PausedDownload is mandatory to resume a download.");
GetObjectRequest request = new GetObjectRequest(
persistableDownload.getB... | public class class_name {
public Download resumeDownload(PersistableDownload persistableDownload) {
assertParameterNotNull(persistableDownload,
"PausedDownload is mandatory to resume a download.");
GetObjectRequest request = new GetObjectRequest(
persistableDownload.getB... |
public class class_name {
private void asyncGetGlobalCapabilitities(final String[] domains,
final String interfaceName,
Collection<DiscoveryEntryWithMetaInfo> localDiscoveryEntries2,
... | public class class_name {
private void asyncGetGlobalCapabilitities(final String[] domains,
final String interfaceName,
Collection<DiscoveryEntryWithMetaInfo> localDiscoveryEntries2,
... |
public class class_name {
protected void initialize(final UUID _commandUUID,
final String _openerId)
throws CacheReloadException
{
this.openerId = _openerId;
if (_commandUUID != null) {
final AbstractCommand command = getCommand(_commandUUID);
... | public class class_name {
protected void initialize(final UUID _commandUUID,
final String _openerId)
throws CacheReloadException
{
this.openerId = _openerId;
if (_commandUUID != null) {
final AbstractCommand command = getCommand(_commandUUID);
... |
public class class_name {
@Override
public EClass getIfcMeasureValue() {
if (ifcMeasureValueEClass == null) {
ifcMeasureValueEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI)
.getEClassifiers().get(1141);
}
return ifcMeasureValueEClass;
} } | public class class_name {
@Override
public EClass getIfcMeasureValue() {
if (ifcMeasureValueEClass == null) {
ifcMeasureValueEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI)
.getEClassifiers().get(1141);
// depends on control dependency: [if], data = [none]
}
return if... |
public class class_name {
@VisibleForTesting
Path getWindowsPythonPath() {
String cloudSdkPython = System.getenv("CLOUDSDK_PYTHON");
if (cloudSdkPython != null) {
Path cloudSdkPythonPath = Paths.get(cloudSdkPython);
if (Files.exists(cloudSdkPythonPath)) {
return cloudSdkPythonPath;
... | public class class_name {
@VisibleForTesting
Path getWindowsPythonPath() {
String cloudSdkPython = System.getenv("CLOUDSDK_PYTHON");
if (cloudSdkPython != null) {
Path cloudSdkPythonPath = Paths.get(cloudSdkPython);
if (Files.exists(cloudSdkPythonPath)) {
return cloudSdkPythonPath; // dep... |
public class class_name {
public static <T> List<List<T>> split(final List<T> list, final int count) {
List<List<T>> subIdLists = CollectUtils.newArrayList();
if (list.size() < count) {
subIdLists.add(list);
} else {
int i = 0;
while (i < list.size()) {
int end = i + count;
... | public class class_name {
public static <T> List<List<T>> split(final List<T> list, final int count) {
List<List<T>> subIdLists = CollectUtils.newArrayList();
if (list.size() < count) {
subIdLists.add(list); // depends on control dependency: [if], data = [none]
} else {
int i = 0;
while (... |
public class class_name {
public Enumeration getResponses() throws MalformedElementException {
final Element firstResponse = getFirstChild(root, "response"); //$NON-NLS-1$
ensureNotNull(Policy.bind("ensure.missingResponseElmt"), firstResponse); //$NON-NLS-1$
Enumeration e = new Enumeration() ... | public class class_name {
public Enumeration getResponses() throws MalformedElementException {
final Element firstResponse = getFirstChild(root, "response"); //$NON-NLS-1$
ensureNotNull(Policy.bind("ensure.missingResponseElmt"), firstResponse); //$NON-NLS-1$
Enumeration e = new Enumeration() ... |
public class class_name {
public void stop() {
try {
this.monitor.stop();
} catch( final Exception e ) {
this.logger.warning("Cannot stop template watcher");
Utils.logException(this.logger, e);
}
} } | public class class_name {
public void stop() {
try {
this.monitor.stop(); // depends on control dependency: [try], data = [none]
} catch( final Exception e ) {
this.logger.warning("Cannot stop template watcher");
Utils.logException(this.logger, e);
} // depends on control dependency: [catch], data = [n... |
public class class_name {
public DomainQueryResult execute() {
DomainQueryResult ret = new DomainQueryResult(this);
Object so = this.queryExecutor.getMappingInfo().getInternalDomainAccess().getSyncObject();
if (so != null) {
synchronized (so) {
this.queryExecutor.execute();
}
} else
this.queryExec... | public class class_name {
public DomainQueryResult execute() {
DomainQueryResult ret = new DomainQueryResult(this);
Object so = this.queryExecutor.getMappingInfo().getInternalDomainAccess().getSyncObject();
if (so != null) {
synchronized (so) { // depends on control dependency: [if], data = [(so]
this.que... |
public class class_name {
private static boolean missingFormatArgs(String value) {
try {
Formatter.check(value);
} catch (MissingFormatArgumentException e) {
return true;
} catch (Exception ignored) {
// we don't care about other errors (it isn't supposed to be a format string)
}
... | public class class_name {
private static boolean missingFormatArgs(String value) {
try {
Formatter.check(value); // depends on control dependency: [try], data = [none]
} catch (MissingFormatArgumentException e) {
return true;
} catch (Exception ignored) { // depends on control dependency: [catc... |
public class class_name {
private Object exctractJsonifiedValue(ObjectToJsonConverter pConverter, Object pValue, Stack<String> pPathParts)
throws AttributeNotFoundException {
if (pValue.getClass().isPrimitive() || FINAL_CLASSES.contains(pValue.getClass()) || pValue instanceof JSONAware) {
... | public class class_name {
private Object exctractJsonifiedValue(ObjectToJsonConverter pConverter, Object pValue, Stack<String> pPathParts)
throws AttributeNotFoundException {
if (pValue.getClass().isPrimitive() || FINAL_CLASSES.contains(pValue.getClass()) || pValue instanceof JSONAware) {
... |
public class class_name {
private int removeTagByName(List<TagReference> tags, String tagName) {
List<TagReference> removeTags = new ArrayList<>();
for (TagReference tag : tags) {
if (Objects.equals(tagName, tag.getName())) {
removeTags.add(tag);
}
}
... | public class class_name {
private int removeTagByName(List<TagReference> tags, String tagName) {
List<TagReference> removeTags = new ArrayList<>();
for (TagReference tag : tags) {
if (Objects.equals(tagName, tag.getName())) {
removeTags.add(tag); // depends on control depend... |
public class class_name {
@SuppressWarnings({"rawtypes", "unchecked"})
public static BsonDocument asBsonDocument(final Object document, final CodecRegistry codecRegistry) {
if (document == null) {
return null;
}
if (document instanceof BsonDocument) {
return (BsonDoc... | public class class_name {
@SuppressWarnings({"rawtypes", "unchecked"})
public static BsonDocument asBsonDocument(final Object document, final CodecRegistry codecRegistry) {
if (document == null) {
return null; // depends on control dependency: [if], data = [none]
}
if (document ... |
public class class_name {
public Conditionals addIfMatch(Tag tag) {
Preconditions.checkArgument(!modifiedSince.isPresent(), String.format(ERROR_MESSAGE, HeaderConstants.IF_MATCH, HeaderConstants.IF_MODIFIED_SINCE));
Preconditions.checkArgument(noneMatch.isEmpty(), String.format(ERROR_MESSAGE, HeaderCon... | public class class_name {
public Conditionals addIfMatch(Tag tag) {
Preconditions.checkArgument(!modifiedSince.isPresent(), String.format(ERROR_MESSAGE, HeaderConstants.IF_MATCH, HeaderConstants.IF_MODIFIED_SINCE));
Preconditions.checkArgument(noneMatch.isEmpty(), String.format(ERROR_MESSAGE, HeaderCon... |
public class class_name {
private void checkSQL(MethodDeclaration method, AnnotationProcessorEnvironment env) {
final JdbcControl.SQL methodSQL = method.getAnnotation(JdbcControl.SQL.class);
if (methodSQL == null) {
return;
}
//
// check for empty SQL statement mem... | public class class_name {
private void checkSQL(MethodDeclaration method, AnnotationProcessorEnvironment env) {
final JdbcControl.SQL methodSQL = method.getAnnotation(JdbcControl.SQL.class);
if (methodSQL == null) {
return; // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
public final EObject entryRuleJvmParameterizedTypeReference() throws RecognitionException {
EObject current = null;
EObject iv_ruleJvmParameterizedTypeReference = null;
try {
// InternalXbase.g:5598:70: (iv_ruleJvmParameterizedTypeReference= ruleJvmParam... | public class class_name {
public final EObject entryRuleJvmParameterizedTypeReference() throws RecognitionException {
EObject current = null;
EObject iv_ruleJvmParameterizedTypeReference = null;
try {
// InternalXbase.g:5598:70: (iv_ruleJvmParameterizedTypeReference= ruleJvmParam... |
public class class_name {
public String getResult() {
String res;
CmsSite site = OpenCms.getSiteManager().getSiteForSiteRoot(m_siteRoot);
if (site == null) {
res = CmsVaadinUtils.getMessageText(Messages.GUI_DATABASEAPP_STATS_RESULTS_ROOT_1, new Integer(m_count));
} else {
... | public class class_name {
public String getResult() {
String res;
CmsSite site = OpenCms.getSiteManager().getSiteForSiteRoot(m_siteRoot);
if (site == null) {
res = CmsVaadinUtils.getMessageText(Messages.GUI_DATABASEAPP_STATS_RESULTS_ROOT_1, new Integer(m_count)); // depends on cont... |
public class class_name {
private List<Object> buildMetadataArgs(
String line,
String paramName,
String[] defaultValues) {
final List<Object> list = new ArrayList<>();
final String[][] ret = sqlLine.splitCompound(line);
String[] compound;
if (ret == null || ret.length != 2) {
if... | public class class_name {
private List<Object> buildMetadataArgs(
String line,
String paramName,
String[] defaultValues) {
final List<Object> list = new ArrayList<>();
final String[][] ret = sqlLine.splitCompound(line);
String[] compound;
if (ret == null || ret.length != 2) {
if... |
public class class_name {
@SuppressWarnings("rawtypes")
public boolean contains(Class exType) {
if (exType == null) {
return false;
}
if (exType.isInstance(this)) {
return true;
}
Throwable cause = getCause();
if (cause == this) {
return false;
}
if (cause instanceof NestedException) {
ret... | public class class_name {
@SuppressWarnings("rawtypes")
public boolean contains(Class exType) {
if (exType == null) {
return false; // depends on control dependency: [if], data = [none]
}
if (exType.isInstance(this)) {
return true; // depends on control dependency: [if], data = [none]
}
Throwable caus... |
public class class_name {
public int getRow() {
if(_currentRow != null) {
int row = _currentRow.intValue();
/* if the row is out of range, simply adjust to the last row */
if(_dataSetSize != null && (row > _dataSetSize.intValue()))
row = _dataSetSize.intValu... | public class class_name {
public int getRow() {
if(_currentRow != null) {
int row = _currentRow.intValue();
/* if the row is out of range, simply adjust to the last row */
if(_dataSetSize != null && (row > _dataSetSize.intValue()))
row = _dataSetSize.intValu... |
public class class_name {
public static boolean beginOrJoinTransaction()
{
boolean newTransaction = false;
try {
newTransaction = userTransaction.getStatus() == Status.STATUS_NO_TRANSACTION;
if (newTransaction) {
userTransaction.begin();
}
}
catch (Exce... | public class class_name {
public static boolean beginOrJoinTransaction()
{
boolean newTransaction = false;
try {
newTransaction = userTransaction.getStatus() == Status.STATUS_NO_TRANSACTION; // depends on control dependency: [try], data = [none]
if (newTransaction) {
userTr... |
public class class_name {
public final void additiveExpression() throws RecognitionException {
int additiveExpression_StartIndex = input.index();
try {
if ( state.backtracking>0 && alreadyParsedRule(input, 122) ) { return; }
// src/main/resources/org/drools/compiler/semantics/java/parser/Java.g:1188:5: ( m... | public class class_name {
public final void additiveExpression() throws RecognitionException {
int additiveExpression_StartIndex = input.index();
try {
if ( state.backtracking>0 && alreadyParsedRule(input, 122) ) { return; } // depends on control dependency: [if], data = [none]
// src/main/resources/org/dr... |
public class class_name {
public boolean hasNext() {
if(done) return false;
if(cachedNext != null) {
return true;
}
while(inner.hasNext()) {
String tmp = inner.next();
if(tmp.startsWith(prefix)) {
cachedNext = tmp;
return true;
} else if(tmp.compareTo(prefix) > 0) {
done = true;
ret... | public class class_name {
public boolean hasNext() {
if(done) return false;
if(cachedNext != null) {
return true; // depends on control dependency: [if], data = [none]
}
while(inner.hasNext()) {
String tmp = inner.next();
if(tmp.startsWith(prefix)) {
cachedNext = tmp; // depends on control depende... |
public class class_name {
private void initialize() {
if (locale == null) {
locale = ULocale.getDefault(Category.FORMAT);
}
if (formatData == null) {
formatData = new DateFormatSymbols(locale);
}
if (calendar == null) {
calendar = Calendar.get... | public class class_name {
private void initialize() {
if (locale == null) {
locale = ULocale.getDefault(Category.FORMAT); // depends on control dependency: [if], data = [none]
}
if (formatData == null) {
formatData = new DateFormatSymbols(locale); // depends on control d... |
public class class_name {
@UiHandler("m_seriesCheckBox")
void onSeriesChange(ValueChangeEvent<Boolean> event) {
if (handleChange()) {
m_controller.setIsSeries(event.getValue());
}
} } | public class class_name {
@UiHandler("m_seriesCheckBox")
void onSeriesChange(ValueChangeEvent<Boolean> event) {
if (handleChange()) {
m_controller.setIsSeries(event.getValue()); // depends on control dependency: [if], data = [none]
}
} } |
public class class_name {
@Override
public void put(double val) {
if(this.n == 0) {
n = 1.;
min = max = sum = val;
m2 = m3 = m4 = 0;
return;
}
final double nn = this.n + 1.0;
final double deltan = val * n - sum;
final double delta_nn = deltan / (n * nn);
final double d... | public class class_name {
@Override
public void put(double val) {
if(this.n == 0) {
n = 1.; // depends on control dependency: [if], data = [none]
min = max = sum = val; // depends on control dependency: [if], data = [none]
m2 = m3 = m4 = 0; // depends on control dependency: [if], data = [none]
... |
public class class_name {
void onItemsChanged(boolean structureChanged) {
if (!mPreventDispatchingItemsChanged) {
if (structureChanged) {
mIsVisibleItemsStale = true;
mIsActionItemsStale = true;
}
dispatchPresenterUpdate(structureChanged);
... | public class class_name {
void onItemsChanged(boolean structureChanged) {
if (!mPreventDispatchingItemsChanged) {
if (structureChanged) {
mIsVisibleItemsStale = true; // depends on control dependency: [if], data = [none]
mIsActionItemsStale = true; // depends on cont... |
public class class_name {
public void addRule(ElementSelector elementSelector, Action action) {
action.setContext(context);
List<Action> a4p = rules.get(elementSelector);
if (a4p == null) {
a4p = new ArrayList<Action>();
rules.put(elementSelector, a4p);
}
a4p.add(action);
} } | public class class_name {
public void addRule(ElementSelector elementSelector, Action action) {
action.setContext(context);
List<Action> a4p = rules.get(elementSelector);
if (a4p == null) {
a4p = new ArrayList<Action>(); // depends on control dependency: [if], data = [none]
rules.put(elementS... |
public class class_name {
public static byte[] decodeHex(final String value) {
// if string length is odd then throw exception
if (value.length() % 2 != 0) {
throw new NumberFormatException("odd number of characters in hex string");
}
byte[] bytes = new byte[value.length() ... | public class class_name {
public static byte[] decodeHex(final String value) {
// if string length is odd then throw exception
if (value.length() % 2 != 0) {
throw new NumberFormatException("odd number of characters in hex string");
}
byte[] bytes = new byte[value.length() ... |
public class class_name {
private <R> R tryTwice(Supplier<R> action) {
try {
return action.get();
} catch (UnknownIndexException e) {
waitForIndexToBeStable();
try {
return action.get();
} catch (UnknownIndexException e1) {
throw new MolgenisDataException(
fo... | public class class_name {
private <R> R tryTwice(Supplier<R> action) {
try {
return action.get(); // depends on control dependency: [try], data = [none]
} catch (UnknownIndexException e) {
waitForIndexToBeStable();
try {
return action.get(); // depends on control dependency: [try], da... |
public class class_name {
synchronized void execute(File root, Runnable task) {
if (executors == null) {
throw new RuntimeException("AsyncDiskService is already shutdown");
}
ThreadPoolExecutor executor = executors.get(root);
if (executor == null) {
throw new RuntimeException("Cannot find r... | public class class_name {
synchronized void execute(File root, Runnable task) {
if (executors == null) {
throw new RuntimeException("AsyncDiskService is already shutdown");
}
ThreadPoolExecutor executor = executors.get(root);
if (executor == null) {
throw new RuntimeException("Cannot find r... |
public class class_name {
protected HeartbeatResponse transmitHeartBeat(
InterTrackerProtocol jobClient, short heartbeatResponseId,
TaskTrackerStatus status) throws IOException {
//
// Check if we should ask for a new Task
//
boolean askForNewTask;
long localMinSpaceStart;
synchroni... | public class class_name {
protected HeartbeatResponse transmitHeartBeat(
InterTrackerProtocol jobClient, short heartbeatResponseId,
TaskTrackerStatus status) throws IOException {
//
// Check if we should ask for a new Task
//
boolean askForNewTask;
long localMinSpaceStart;
synchroni... |
public class class_name {
public EClass getIfc2DCompositeCurve() {
if (ifc2DCompositeCurveEClass == null) {
ifc2DCompositeCurveEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI)
.getEClassifiers().get(1);
}
return ifc2DCompositeCurveEClass;
} } | public class class_name {
public EClass getIfc2DCompositeCurve() {
if (ifc2DCompositeCurveEClass == null) {
ifc2DCompositeCurveEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI)
.getEClassifiers().get(1);
// depends on control dependency: [if], data = [none]
}
return ... |
public class class_name {
@Override
public EClass getIfcBuilding() {
if (ifcBuildingEClass == null) {
ifcBuildingEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI).getEClassifiers()
.get(57);
}
return ifcBuildingEClass;
} } | public class class_name {
@Override
public EClass getIfcBuilding() {
if (ifcBuildingEClass == null) {
ifcBuildingEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI).getEClassifiers()
.get(57);
// depends on control dependency: [if], data = [none]
}
return ifcBuildingEClas... |
public class class_name {
public boolean addFailOverListener(FailOverListener localListener) {
if (logger.isDebugEnabled()) {
logger.debug("Adding local listener " + localListener);
}
for(FailOverListener failOverListener : failOverListeners) {
if (failOverListener.getBaseFqn().getFqn().equals(localListene... | public class class_name {
public boolean addFailOverListener(FailOverListener localListener) {
if (logger.isDebugEnabled()) {
logger.debug("Adding local listener " + localListener); // depends on control dependency: [if], data = [none]
}
for(FailOverListener failOverListener : failOverListeners) {
if (fail... |
public class class_name {
private static MethodHandle selectNumberTransformer(Class param, Object arg) {
param = TypeHelper.getWrapperClass(param);
if (param == Byte.class) {
return TO_BYTE;
} else if (param == Character.class || param == Integer.class) {
return TO_INT;... | public class class_name {
private static MethodHandle selectNumberTransformer(Class param, Object arg) {
param = TypeHelper.getWrapperClass(param);
if (param == Byte.class) {
return TO_BYTE; // depends on control dependency: [if], data = [none]
} else if (param == Character.class |... |
public class class_name {
private static void flattenCategories(List<Category> flatList, List<Category> categories) {
categories.forEach(category -> {
flatList.add(category);
List<Category> children = category.getChildren();
if (children != null) {
flattenCategories(flatList, children);
... | public class class_name {
private static void flattenCategories(List<Category> flatList, List<Category> categories) {
categories.forEach(category -> {
flatList.add(category);
List<Category> children = category.getChildren();
if (children != null) {
flattenCategories(flatList, children); /... |
public class class_name {
public JSONObject exportConfigurationAndProfile(String oldExport) {
try {
BasicNameValuePair[] params = {
new BasicNameValuePair("oldExport", oldExport)
};
String url = BASE_BACKUP_PROFILE + "/" + uriEncode(this._profileName) + "/" +... | public class class_name {
public JSONObject exportConfigurationAndProfile(String oldExport) {
try {
BasicNameValuePair[] params = {
new BasicNameValuePair("oldExport", oldExport)
};
String url = BASE_BACKUP_PROFILE + "/" + uriEncode(this._profileName) + "/" +... |
public class class_name {
public static LinePolar2D_F64 polar( List<Point2D_F64> points , double weights[] , LinePolar2D_F64 ret ) {
final int N = points.size();
double totalWeight = 0;
for( int i = 0; i < N; i++ ) {
totalWeight += weights[i];
}
if( totalWeight == 0 )
return null;
if( ret == null ... | public class class_name {
public static LinePolar2D_F64 polar( List<Point2D_F64> points , double weights[] , LinePolar2D_F64 ret ) {
final int N = points.size();
double totalWeight = 0;
for( int i = 0; i < N; i++ ) {
totalWeight += weights[i]; // depends on control dependency: [for], data = [i]
}
if( to... |
public class class_name {
public static GeometryFactory init() {
try {
GeometryFactory theGeometryFactory = (GeometryFactory) EPackage.Registry.INSTANCE.getEFactory(GeometryPackage.eNS_URI);
if (theGeometryFactory != null) {
return theGeometryFactory;
}
} catch (Exception exception) {
EcoreP... | public class class_name {
public static GeometryFactory init() {
try {
GeometryFactory theGeometryFactory = (GeometryFactory) EPackage.Registry.INSTANCE.getEFactory(GeometryPackage.eNS_URI);
if (theGeometryFactory != null) {
return theGeometryFactory;
// depends on control dependency: [if], data = [no... |
public class class_name {
private Collection<TestClassResults> flattenResults(List<ISuite> suites)
{
Map<IClass, TestClassResults> flattenedResults = new HashMap<IClass, TestClassResults>();
for (ISuite suite : suites)
{
for (ISuiteResult suiteResult : suite.getResults().values(... | public class class_name {
private Collection<TestClassResults> flattenResults(List<ISuite> suites)
{
Map<IClass, TestClassResults> flattenedResults = new HashMap<IClass, TestClassResults>();
for (ISuite suite : suites)
{
for (ISuiteResult suiteResult : suite.getResults().values(... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.