code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
FormatStep quickPath(ChronoFormatter<?> formatter) {
AttributeSet as = formatter.getAttributes0();
if (this.sectionalAttrs != null) {
Attributes attrs =
new Attributes.Builder()
.setAll(as.getAttributes())
.... | public class class_name {
FormatStep quickPath(ChronoFormatter<?> formatter) {
AttributeSet as = formatter.getAttributes0();
if (this.sectionalAttrs != null) {
Attributes attrs =
new Attributes.Builder()
.setAll(as.getAttributes())
.... |
public class class_name {
private void initGraphics() {
if (Double.compare(getPrefWidth(), 0.0) <= 0 || Double.compare(getPrefHeight(), 0.0) <= 0 ||
Double.compare(getWidth(), 0.0) <= 0 || Double.compare(getHeight(), 0.0) <= 0) {
if (getPrefWidth() > 0 && getPrefHeight() > 0) {
... | public class class_name {
private void initGraphics() {
if (Double.compare(getPrefWidth(), 0.0) <= 0 || Double.compare(getPrefHeight(), 0.0) <= 0 ||
Double.compare(getWidth(), 0.0) <= 0 || Double.compare(getHeight(), 0.0) <= 0) {
if (getPrefWidth() > 0 && getPrefHeight() > 0) {
... |
public class class_name {
public void marshall(StartOutboundVoiceContactRequest startOutboundVoiceContactRequest, ProtocolMarshaller protocolMarshaller) {
if (startOutboundVoiceContactRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
tr... | public class class_name {
public void marshall(StartOutboundVoiceContactRequest startOutboundVoiceContactRequest, ProtocolMarshaller protocolMarshaller) {
if (startOutboundVoiceContactRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
tr... |
public class class_name {
public static void runExample(
AdWordsServicesInterface adWordsServices, AdWordsSession session, Long labelId)
throws RemoteException {
// Get the CampaignService.
CampaignServiceInterface campaignService =
adWordsServices.get(session, CampaignServiceInterface.clas... | public class class_name {
public static void runExample(
AdWordsServicesInterface adWordsServices, AdWordsSession session, Long labelId)
throws RemoteException {
// Get the CampaignService.
CampaignServiceInterface campaignService =
adWordsServices.get(session, CampaignServiceInterface.clas... |
public class class_name {
@Override
public void format(final LoggingEvent event, final StringBuffer toAppendTo) {
final ThrowableInformation information = event.getThrowableInformation();
if (information != null) {
final String[] stringRep = information.getThrowableStrRep();
int length = 0;
if (option... | public class class_name {
@Override
public void format(final LoggingEvent event, final StringBuffer toAppendTo) {
final ThrowableInformation information = event.getThrowableInformation();
if (information != null) {
final String[] stringRep = information.getThrowableStrRep();
int length = 0;
if (option... |
public class class_name {
public void marshall(SetDataRetrievalPolicyRequest setDataRetrievalPolicyRequest, ProtocolMarshaller protocolMarshaller) {
if (setDataRetrievalPolicyRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... | public class class_name {
public void marshall(SetDataRetrievalPolicyRequest setDataRetrievalPolicyRequest, ProtocolMarshaller protocolMarshaller) {
if (setDataRetrievalPolicyRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... |
public class class_name {
protected void addModifiers(MemberDoc member, Content htmltree) {
String mod = modifierString(member);
// According to JLS, we should not be showing public modifier for
// interface methods.
if ((member.isField() || member.isMethod()) &&
writer inst... | public class class_name {
protected void addModifiers(MemberDoc member, Content htmltree) {
String mod = modifierString(member);
// According to JLS, we should not be showing public modifier for
// interface methods.
if ((member.isField() || member.isMethod()) &&
writer inst... |
public class class_name {
public void writeTo(Object t, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String, Object> httpHeaders,
OutputStream entityStream) throws IOException, WebApplicationException {
SerializeFilter filter = null;
if(pretty) {
if (f... | public class class_name {
public void writeTo(Object t, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String, Object> httpHeaders,
OutputStream entityStream) throws IOException, WebApplicationException {
SerializeFilter filter = null;
if(pretty) {
if (f... |
public class class_name {
public ListFunctionsResult withFunctions(FunctionConfiguration... functions) {
if (this.functions == null) {
setFunctions(new com.amazonaws.internal.SdkInternalList<FunctionConfiguration>(functions.length));
}
for (FunctionConfiguration ele : functions) {
... | public class class_name {
public ListFunctionsResult withFunctions(FunctionConfiguration... functions) {
if (this.functions == null) {
setFunctions(new com.amazonaws.internal.SdkInternalList<FunctionConfiguration>(functions.length)); // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
public void lock(final CmsUUID structureId, final I_CmsSimpleCallback<Boolean> callback) {
CmsRpcAction<String> lockAction = new CmsRpcAction<String>() {
/**
* @see org.opencms.gwt.client.rpc.CmsRpcAction#execute()
*/
@Override
... | public class class_name {
public void lock(final CmsUUID structureId, final I_CmsSimpleCallback<Boolean> callback) {
CmsRpcAction<String> lockAction = new CmsRpcAction<String>() {
/**
* @see org.opencms.gwt.client.rpc.CmsRpcAction#execute()
*/
@Override
... |
public class class_name {
public static void horizontal(GrayF32 input, GrayF32 output, int radius) {
InputSanityCheck.checkSameShape(input , output);
Kernel1D_F32 kernel = FactoryKernel.table1D_F32(radius,false);
ConvolveJustBorder_General_SB.horizontal(kernel,ImageBorderValue.wrap(input,0),output);
if(BoofCo... | public class class_name {
public static void horizontal(GrayF32 input, GrayF32 output, int radius) {
InputSanityCheck.checkSameShape(input , output);
Kernel1D_F32 kernel = FactoryKernel.table1D_F32(radius,false);
ConvolveJustBorder_General_SB.horizontal(kernel,ImageBorderValue.wrap(input,0),output);
if(BoofCo... |
public class class_name {
@Override
public void setText(String value) {
String oldValue = getText();
if (!oldValue.equals(value)) {
super.setText(value);
DomEvent.fireNativeEvent(Document.get().createChangeEvent(), this);
}
} } | public class class_name {
@Override
public void setText(String value) {
String oldValue = getText();
if (!oldValue.equals(value)) {
super.setText(value); // depends on control dependency: [if], data = [none]
DomEvent.fireNativeEvent(Document.get().createChangeEvent(), this);... |
public class class_name {
public void start() {
this.stateCache = cacheManager
.<ScopedState, CounterConfiguration>getCache(GlobalConfigurationManager.CONFIG_STATE_CACHE_NAME)
.getAdvancedCache();
listener = new CounterConfigurationListener();
Map<String, CounterConfiguration>... | public class class_name {
public void start() {
this.stateCache = cacheManager
.<ScopedState, CounterConfiguration>getCache(GlobalConfigurationManager.CONFIG_STATE_CACHE_NAME)
.getAdvancedCache();
listener = new CounterConfigurationListener();
Map<String, CounterConfiguration>... |
public class class_name {
public static Type detect(final String payload) {
final Matcher m = ROOT_NAME.matcher(payload);
if (m.find() && m.groupCount() >= 1) {
final String root = m.group(1);
try {
return Type.valueOf(CaseFormat.LOWER_UNDERSCORE.to(CaseFormat.UP... | public class class_name {
public static Type detect(final String payload) {
final Matcher m = ROOT_NAME.matcher(payload);
if (m.find() && m.groupCount() >= 1) {
final String root = m.group(1);
try {
return Type.valueOf(CaseFormat.LOWER_UNDERSCORE.to(CaseFormat.UP... |
public class class_name {
public boolean isAuthorized(ChargingStationId chargingStationId, UserIdentity userIdentity, Class commandClass) {
// first search for this specific authorization
boolean isAuthorized = commandAuthorizationRepository.find(chargingStationId.getId(), userIdentity.getId(), command... | public class class_name {
public boolean isAuthorized(ChargingStationId chargingStationId, UserIdentity userIdentity, Class commandClass) {
// first search for this specific authorization
boolean isAuthorized = commandAuthorizationRepository.find(chargingStationId.getId(), userIdentity.getId(), command... |
public class class_name {
public static IoBufferEx getBufferForFile(IoBufferAllocatorEx<?> allocator, File requestFile) throws IOException {
FileInputStream in = new FileInputStream(requestFile);
IoBufferEx out = allocator.wrap(allocator.allocate(in.available())).setAutoExpander(allocator);
try... | public class class_name {
public static IoBufferEx getBufferForFile(IoBufferAllocatorEx<?> allocator, File requestFile) throws IOException {
FileInputStream in = new FileInputStream(requestFile);
IoBufferEx out = allocator.wrap(allocator.allocate(in.available())).setAutoExpander(allocator);
try... |
public class class_name {
private boolean willWriteBean(Bean bean) {
for (MetaProperty<?> prop : bean.metaBean().metaPropertyIterable()) {
if (prop.style().isSerializable() || (prop.style().isDerived() && settings.isIncludeDerived())) {
return true;
}
}
r... | public class class_name {
private boolean willWriteBean(Bean bean) {
for (MetaProperty<?> prop : bean.metaBean().metaPropertyIterable()) {
if (prop.style().isSerializable() || (prop.style().isDerived() && settings.isIncludeDerived())) {
return true; // depends on control dependency:... |
public class class_name {
@Override
public final T process(
final Map<String, Object> pAddParam,
final T pEntity, final IRequestData pRequestData) throws Exception {
String fileToUploadName = (String) pRequestData
.getAttribute("fileToUploadName");
String fieldNameFilePath = pRequestData.getP... | public class class_name {
@Override
public final T process(
final Map<String, Object> pAddParam,
final T pEntity, final IRequestData pRequestData) throws Exception {
String fileToUploadName = (String) pRequestData
.getAttribute("fileToUploadName");
String fieldNameFilePath = pRequestData.getP... |
public class class_name {
public ListCompilationJobsResult withCompilationJobSummaries(CompilationJobSummary... compilationJobSummaries) {
if (this.compilationJobSummaries == null) {
setCompilationJobSummaries(new java.util.ArrayList<CompilationJobSummary>(compilationJobSummaries.length));
... | public class class_name {
public ListCompilationJobsResult withCompilationJobSummaries(CompilationJobSummary... compilationJobSummaries) {
if (this.compilationJobSummaries == null) {
setCompilationJobSummaries(new java.util.ArrayList<CompilationJobSummary>(compilationJobSummaries.length)); // depen... |
public class class_name {
public TrxMessageHeader createProcessMessageHeader(MessageDetailTarget recMessageDetailTarget, String strMessageTransport)
{
if ((this.getEditMode() != DBConstants.EDIT_CURRENT) && (this.getEditMode() != DBConstants.EDIT_IN_PROGRESS))
return null; // Must have a val... | public class class_name {
public TrxMessageHeader createProcessMessageHeader(MessageDetailTarget recMessageDetailTarget, String strMessageTransport)
{
if ((this.getEditMode() != DBConstants.EDIT_CURRENT) && (this.getEditMode() != DBConstants.EDIT_IN_PROGRESS))
return null; // Must have a val... |
public class class_name {
@Override
public double membership(double x) {
if (this.root == null) {
throw new RuntimeException(String.format(
"[function error] function <%s> not loaded.", formula));
}
if (this.engine != null) {
for (InputVariable in... | public class class_name {
@Override
public double membership(double x) {
if (this.root == null) {
throw new RuntimeException(String.format(
"[function error] function <%s> not loaded.", formula));
}
if (this.engine != null) {
for (InputVariable in... |
public class class_name {
@Override
public DefaultHttpClientConfigurator configure(Config httpClientConfig) {
Optional<HttpHost> proxy = getProxyAddr(httpClientConfig);
if (proxy.isPresent()) {
getBuilder().setProxy(proxy.get());
}
return this;
} } | public class class_name {
@Override
public DefaultHttpClientConfigurator configure(Config httpClientConfig) {
Optional<HttpHost> proxy = getProxyAddr(httpClientConfig);
if (proxy.isPresent()) {
getBuilder().setProxy(proxy.get()); // depends on control dependency: [if], data = [none]
}
return th... |
public class class_name {
public boolean selectionChanged(Object source, int iStartRow, int iEndRow, int iSelectType)
{
boolean bChanged = super.selectionChanged(source, iStartRow, iEndRow, iSelectType);
if (bChanged)
{ // Notify all the listSelectionListeners
this.fireMySelecti... | public class class_name {
public boolean selectionChanged(Object source, int iStartRow, int iEndRow, int iSelectType)
{
boolean bChanged = super.selectionChanged(source, iStartRow, iEndRow, iSelectType);
if (bChanged)
{ // Notify all the listSelectionListeners
this.fireMySelecti... |
public class class_name {
public void setDatabaseVariables() {
if (isPropertyTrue(db_readonly)) {
database.setReadOnly();
}
if (isPropertyTrue(hsqldb_files_readonly)) {
database.setFilesReadOnly();
}
database.sqlEnforceStrictSize =
isProper... | public class class_name {
public void setDatabaseVariables() {
if (isPropertyTrue(db_readonly)) {
database.setReadOnly(); // depends on control dependency: [if], data = [none]
}
if (isPropertyTrue(hsqldb_files_readonly)) {
database.setFilesReadOnly(); // depends on con... |
public class class_name {
private HashMap<DatanodeDescriptor, Integer> directoryDataNodeUsage(INodeDirectory dir,
int threshold) {
HashMap<DatanodeDescriptor, Integer> dataNodeUsage = new HashMap<DatanodeDescriptor, Integer>();
List<INode> children;
nameSystem.readLock();
try {
if (dir.get... | public class class_name {
private HashMap<DatanodeDescriptor, Integer> directoryDataNodeUsage(INodeDirectory dir,
int threshold) {
HashMap<DatanodeDescriptor, Integer> dataNodeUsage = new HashMap<DatanodeDescriptor, Integer>();
List<INode> children;
nameSystem.readLock();
try {
if (dir.get... |
public class class_name {
@Override
protected ApplicationContext createPortletApplicationContext(ApplicationContext parent) {
final PortletContext portletContext = this.getPortletContext();
final PortletApplicationContext parentPortletApplicationContext = PortletApplicationContextUtils2.getPortletA... | public class class_name {
@Override
protected ApplicationContext createPortletApplicationContext(ApplicationContext parent) {
final PortletContext portletContext = this.getPortletContext();
final PortletApplicationContext parentPortletApplicationContext = PortletApplicationContextUtils2.getPortletA... |
public class class_name {
@Value("${studentSuccessPlanService.sspContext:/ssp}")
public void setSspContext(String sspContext) {
// ensure leading '/'
if (!sspContext.startsWith("/")) {
sspContext = "/" + sspContext;
}
// remove any trailing '/'
if (sspContext.en... | public class class_name {
@Value("${studentSuccessPlanService.sspContext:/ssp}")
public void setSspContext(String sspContext) {
// ensure leading '/'
if (!sspContext.startsWith("/")) {
sspContext = "/" + sspContext; // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
@ThreadSafe public void stringEncode(String s, Writer writer) throws IOException {
char[] carr = s.toCharArray();
int len = carr.length;
for(int i = 0; i < len; i++) {
char c = carr[i];
switch (c) {
case '"':
writer.write("\\\"");
break;
case '/':
writer.write(es... | public class class_name {
@ThreadSafe public void stringEncode(String s, Writer writer) throws IOException {
char[] carr = s.toCharArray();
int len = carr.length;
for(int i = 0; i < len; i++) {
char c = carr[i];
switch (c) {
case '"':
writer.write("\\\"");
break;
case '/':
writer.write(es... |
public class class_name {
@SneakyThrows
public static String getCasServerHostName() {
val hostName = InetAddress.getLocalHost().getHostName();
val index = hostName.indexOf('.');
if (index > 0) {
return hostName.substring(0, index);
}
return hostName;
} } | public class class_name {
@SneakyThrows
public static String getCasServerHostName() {
val hostName = InetAddress.getLocalHost().getHostName();
val index = hostName.indexOf('.');
if (index > 0) {
return hostName.substring(0, index); // depends on control dependency: [if], data = ... |
public class class_name {
public List<App> getUserApps(long id) throws OAuthSystemException, OAuthProblemException, URISyntaxException {
cleanError();
prepareToken();
URIBuilder url = new URIBuilder(settings.getURL(Constants.GET_APPS_FOR_USER_URL, Long.toString(id)));
OneloginURLConnectionClient httpClient =... | public class class_name {
public List<App> getUserApps(long id) throws OAuthSystemException, OAuthProblemException, URISyntaxException {
cleanError();
prepareToken();
URIBuilder url = new URIBuilder(settings.getURL(Constants.GET_APPS_FOR_USER_URL, Long.toString(id)));
OneloginURLConnectionClient httpClient =... |
public class class_name {
public void addListeners()
{
super.addListeners();
Record record = this.getMainRecord();
Record recClassInfo = this.getRecord(ClassInfo.CLASS_INFO_FILE);
if (recClassInfo != null)
{
record.setKeyArea(Issue.CLASS_INFO_ID_KEY);
... | public class class_name {
public void addListeners()
{
super.addListeners();
Record record = this.getMainRecord();
Record recClassInfo = this.getRecord(ClassInfo.CLASS_INFO_FILE);
if (recClassInfo != null)
{
record.setKeyArea(Issue.CLASS_INFO_ID_KEY); // depends ... |
public class class_name {
@Override
protected void visitMsgNode(MsgNode node) {
MsgPartsAndIds msgPartsAndIds = MsgUtils.buildMsgPartsAndComputeMsgIdForDualFormat(node);
SoyMsg.Builder builder = SoyMsg.builder().setId(msgPartsAndIds.id);
if (node.getMeaning() != null) {
builder.setMeaning(node.getM... | public class class_name {
@Override
protected void visitMsgNode(MsgNode node) {
MsgPartsAndIds msgPartsAndIds = MsgUtils.buildMsgPartsAndComputeMsgIdForDualFormat(node);
SoyMsg.Builder builder = SoyMsg.builder().setId(msgPartsAndIds.id);
if (node.getMeaning() != null) {
builder.setMeaning(node.getM... |
public class class_name {
private void initializeAuthority(String p_uriSpec)
throws MalformedURIException {
int index = 0;
int start = 0;
int end = p_uriSpec.length();
char testChar = '\0';
String userinfo = null;
// userinfo is everything up @
if (p_uriSpec.indexOf('@', start) != -1) {
w... | public class class_name {
private void initializeAuthority(String p_uriSpec)
throws MalformedURIException {
int index = 0;
int start = 0;
int end = p_uriSpec.length();
char testChar = '\0';
String userinfo = null;
// userinfo is everything up @
if (p_uriSpec.indexOf('@', start) != -1) {
w... |
public class class_name {
public static byte[] fromHexa(String s ) {
byte[] ret = new byte[s.length()/2];
for(int i=0;i<ret.length;i++){
ret[i] = (byte) Integer.parseInt(s.substring(i*2,i*2+2),16);
}
return ret;
} } | public class class_name {
public static byte[] fromHexa(String s ) {
byte[] ret = new byte[s.length()/2];
for(int i=0;i<ret.length;i++){
ret[i] = (byte) Integer.parseInt(s.substring(i*2,i*2+2),16); // depends on control dependency: [for], data = [i]
}
return ret;
} } |
public class class_name {
public <E extends Exception> E findWrapped(Class<E> exceptionType) {
if (exceptionType == null) {
return null;
}
Throwable cause = getCause();
while (true) {
if (cause == null) {
return null;
}
if (exceptionType.isInstance(cause)) {
@SuppressW... | public class class_name {
public <E extends Exception> E findWrapped(Class<E> exceptionType) {
if (exceptionType == null) {
return null; // depends on control dependency: [if], data = [none]
}
Throwable cause = getCause();
while (true) {
if (cause == null) {
return null; // depends on co... |
public class class_name {
public static Query parameterExists(final String name)
{
Assert.notNull(name, "Parameter name pattern must not be null.");
return new Query() {
final ParameterizedPatternParser pattern = new RegexParameterizedPatternParser("{" + name + "}");
final String para... | public class class_name {
public static Query parameterExists(final String name)
{
Assert.notNull(name, "Parameter name pattern must not be null.");
return new Query() {
final ParameterizedPatternParser pattern = new RegexParameterizedPatternParser("{" + name + "}");
final String para... |
public class class_name {
public void grantPolicy(@NonNull ComponentName admin, int usesPolicy) {
enforceActiveAdmin(admin);
Set<Integer> policyGrantedSet = adminPolicyGrantedMap.get(admin);
if (policyGrantedSet == null) {
policyGrantedSet = new HashSet<>();
policyGrantedSet.add(usesPolicy);
... | public class class_name {
public void grantPolicy(@NonNull ComponentName admin, int usesPolicy) {
enforceActiveAdmin(admin);
Set<Integer> policyGrantedSet = adminPolicyGrantedMap.get(admin);
if (policyGrantedSet == null) {
policyGrantedSet = new HashSet<>(); // depends on control dependency: [if], da... |
public class class_name {
public final void mFUNCT() throws RecognitionException {
try {
int _type = FUNCT;
int _channel = DEFAULT_TOKEN_CHANNEL;
// C:\\Project\\Obdalib\\obdalib-parent\\obdalib-core\\src\\main\\java\\it\\unibz\\inf\\obda\\gui\\swing\\utils\\MappingFilter.g:... | public class class_name {
public final void mFUNCT() throws RecognitionException {
try {
int _type = FUNCT;
int _channel = DEFAULT_TOKEN_CHANNEL;
// C:\\Project\\Obdalib\\obdalib-parent\\obdalib-core\\src\\main\\java\\it\\unibz\\inf\\obda\\gui\\swing\\utils\\MappingFilter.g:... |
public class class_name {
@Override
public void configure(String parameters) {
if (parameters.isEmpty()) {
return;
}
setValue(Op.toDouble(parameters));
} } | public class class_name {
@Override
public void configure(String parameters) {
if (parameters.isEmpty()) {
return; // depends on control dependency: [if], data = [none]
}
setValue(Op.toDouble(parameters));
} } |
public class class_name {
@SuppressWarnings("unused")
public Template getTemplate(String path) {
ActContext.Base ctx = ActContext.Base.currentContext();
if (null != ctx) {
String curPath = ctx.templatePath();
ctx.templateLiteral(path);
try {
retur... | public class class_name {
@SuppressWarnings("unused")
public Template getTemplate(String path) {
ActContext.Base ctx = ActContext.Base.currentContext();
if (null != ctx) {
String curPath = ctx.templatePath();
ctx.templateLiteral(path); // depends on control dependency: [if],... |
public class class_name {
protected void sortIndexMap() {
for (Iterator<List<Doc>> it = indexmap.values().iterator(); it.hasNext(); ) {
Collections.sort(it.next(), new DocComparator());
}
} } | public class class_name {
protected void sortIndexMap() {
for (Iterator<List<Doc>> it = indexmap.values().iterator(); it.hasNext(); ) {
Collections.sort(it.next(), new DocComparator()); // depends on control dependency: [for], data = [it]
}
} } |
public class class_name {
protected PdfDictionary mergeAttrib(PdfDictionary parent, PdfDictionary child) {
PdfDictionary targ = new PdfDictionary();
if (parent != null) targ.putAll(parent);
for (Iterator it = child.getKeys().iterator(); it.hasNext();) {
PdfName key = (PdfNa... | public class class_name {
protected PdfDictionary mergeAttrib(PdfDictionary parent, PdfDictionary child) {
PdfDictionary targ = new PdfDictionary();
if (parent != null) targ.putAll(parent);
for (Iterator it = child.getKeys().iterator(); it.hasNext();) {
PdfName key = (PdfNa... |
public class class_name {
@Override
public List<IndexableField> indexableFields(Columns columns) {
Date fromDate = readFrom(columns);
Date toDate = readTo(columns);
if (fromDate == null && toDate == null) {
return Collections.emptyList();
}
validate(fromDate, ... | public class class_name {
@Override
public List<IndexableField> indexableFields(Columns columns) {
Date fromDate = readFrom(columns);
Date toDate = readTo(columns);
if (fromDate == null && toDate == null) {
return Collections.emptyList(); // depends on control dependency: [if]... |
public class class_name {
static void unescapeBraceFormat(StringBuilder out, String message, int start, int end) {
int pos = start;
boolean isQuoted = false;
while (pos < end) {
char c = message.charAt(pos++);
// We catch single quotes and escaped single quotes.
if (c != '\\' && c != '\''... | public class class_name {
static void unescapeBraceFormat(StringBuilder out, String message, int start, int end) {
int pos = start;
boolean isQuoted = false;
while (pos < end) {
char c = message.charAt(pos++);
// We catch single quotes and escaped single quotes.
if (c != '\\' && c != '\''... |
public class class_name {
public int verify(Request request, Response response) {
String authValue = request.getHeaders().getValues("Authorization");
log.debug("Auth header value is: "+ authValue);
if (authValue == null) {
return Verifier.RESULT_MISSING;
}
String[] tokenValues = authValue.split(" ");
if... | public class class_name {
public int verify(Request request, Response response) {
String authValue = request.getHeaders().getValues("Authorization");
log.debug("Auth header value is: "+ authValue);
if (authValue == null) {
return Verifier.RESULT_MISSING; // depends on control dependency: [if], data = [none]
... |
public class class_name {
private Object manageMapIfNecessary(Map<Object, Object> value) {
boolean containsRuntimeRefs = false;
for (Entry<Object, Object> e : value.entrySet()) {
Object v = e.getValue();
if (v instanceof RuntimeBeanReference) {
containsRuntimeRefs = tr... | public class class_name {
private Object manageMapIfNecessary(Map<Object, Object> value) {
boolean containsRuntimeRefs = false;
for (Entry<Object, Object> e : value.entrySet()) {
Object v = e.getValue();
if (v instanceof RuntimeBeanReference) {
containsRuntimeRefs = tr... |
public class class_name {
public String shortKey(String keyName) {
String value = keyDefault(keyName + CmsMessages.KEY_SHORT_SUFFIX, (String)null);
if (value == null) {
// short key value not found, return "long" key value
return key(keyName);
}
return value;
... | public class class_name {
public String shortKey(String keyName) {
String value = keyDefault(keyName + CmsMessages.KEY_SHORT_SUFFIX, (String)null);
if (value == null) {
// short key value not found, return "long" key value
return key(keyName); // depends on control dependency: ... |
public class class_name {
public double incBy(K o, double inc) {
Counter c = countMap.get(o);
if (c == null) {
c = new Counter();
countMap.put(o, c);
}
c.count += inc;
return c.count;
} } | public class class_name {
public double incBy(K o, double inc) {
Counter c = countMap.get(o);
if (c == null) {
c = new Counter(); // depends on control dependency: [if], data = [none]
countMap.put(o, c); // depends on control dependency: [if], data = [none]
}
c.c... |
public class class_name {
@Override
protected boolean isCompressionAllowed() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "isCompressionAllowed");
}
// 1.1 will always allow compression, but 1.0 will only work with one
// single finis... | public class class_name {
@Override
protected boolean isCompressionAllowed() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "isCompressionAllowed"); // depends on control dependency: [if], data = [none]
}
// 1.1 will always allow compression, b... |
public class class_name {
private void compareToAparList(ExecutionContext context, CommandConsole console, Map<String, Set<String>> installedIFixes, File wlpInstallationDirectory) {
// console.printlnInfoMessage("WLP Directory [ " + wlpInstallationDirectory.getPath() + " ]");
// console.printlnInfoMess... | public class class_name {
private void compareToAparList(ExecutionContext context, CommandConsole console, Map<String, Set<String>> installedIFixes, File wlpInstallationDirectory) {
// console.printlnInfoMessage("WLP Directory [ " + wlpInstallationDirectory.getPath() + " ]");
// console.printlnInfoMess... |
public class class_name {
@Override
public void getResult(final ContentHandler retBuf) throws SAXException {
final String templateFilePath = paramTable.get(FileGenerator.PARAM_TEMPLATE);
for (final Value value: valueSet) {
final String resolvedValue = FileUtils.getRelativeUnixPath(templ... | public class class_name {
@Override
public void getResult(final ContentHandler retBuf) throws SAXException {
final String templateFilePath = paramTable.get(FileGenerator.PARAM_TEMPLATE);
for (final Value value: valueSet) {
final String resolvedValue = FileUtils.getRelativeUnixPath(templ... |
public class class_name {
public CmsJspResourceWrapper getPageResource() {
try {
if (m_pageResource == null) {
// get the container page itself, checking the history first
m_pageResource = CmsJspResourceWrapper.wrap(
m_cms,
(C... | public class class_name {
public CmsJspResourceWrapper getPageResource() {
try {
if (m_pageResource == null) {
// get the container page itself, checking the history first
m_pageResource = CmsJspResourceWrapper.wrap(
m_cms,
(C... |
public class class_name {
private void connectCTENodesIfAny(SeqScanPlanNode node) {
if (! node.isCommonTableScan()) {
return;
}
Integer CTEBaseNodeId = node.getCTEBaseNodeId();
assert(CTEBaseNodeId != null);
AbstractPlanNode CTEBaseNode = m_planNodesListMap.get(CTEBa... | public class class_name {
private void connectCTENodesIfAny(SeqScanPlanNode node) {
if (! node.isCommonTableScan()) {
return; // depends on control dependency: [if], data = [none]
}
Integer CTEBaseNodeId = node.getCTEBaseNodeId();
assert(CTEBaseNodeId != null);
Abstr... |
public class class_name {
private List<File> locateModules() {
File[] files = modRoot.listFiles();
List<File> modFiles = new ArrayList<>();
for (File file : files) {
if (file.isDirectory()) {
// Check to determine whether the directory is a valid module directory.
boolean isValid = tr... | public class class_name {
private List<File> locateModules() {
File[] files = modRoot.listFiles();
List<File> modFiles = new ArrayList<>();
for (File file : files) {
if (file.isDirectory()) {
// Check to determine whether the directory is a valid module directory.
boolean isValid = tr... |
public class class_name {
@Override
public boolean validate(final Problems problems, final String compName, final String model) {
if (model.length() % 2 != 0) {
problems.add(ValidationBundle.getMessage(ValidHexadecimalNumberValidator.class, "ODD_LENGTH_HEX", compName)); // NOI18N
return false;
}
for (fina... | public class class_name {
@Override
public boolean validate(final Problems problems, final String compName, final String model) {
if (model.length() % 2 != 0) {
problems.add(ValidationBundle.getMessage(ValidHexadecimalNumberValidator.class, "ODD_LENGTH_HEX", compName)); // NOI18N // depends on control dependency... |
public class class_name {
public static String getAbsolutePath(String servletPath, String relativeUrlPath) throws MalformedURLException {
char firstChar;
if(
relativeUrlPath.length() > 0
&& (firstChar=relativeUrlPath.charAt(0)) != '/'
&& firstChar != '#' // Skip anchor-only paths
&& !relativeUrlPath.st... | public class class_name {
public static String getAbsolutePath(String servletPath, String relativeUrlPath) throws MalformedURLException {
char firstChar;
if(
relativeUrlPath.length() > 0
&& (firstChar=relativeUrlPath.charAt(0)) != '/'
&& firstChar != '#' // Skip anchor-only paths
&& !relativeUrlPath.st... |
public class class_name {
public static synchronized void initialise()
{
// Only initialise if it has not already been created
if (_instance == null)
{
// Check what environment we are running in. If we are in server mode we must use the
// server diagnostic module.
//Libe... | public class class_name {
public static synchronized void initialise()
{
// Only initialise if it has not already been created
if (_instance == null)
{
// Check what environment we are running in. If we are in server mode we must use the
// server diagnostic module.
//Libe... |
public class class_name {
static int[] shiftLeftMultiPrecision(int[] number, int length, int shifts)
{
if (shifts == 0) {
return number;
}
// wordShifts = shifts / 32
int wordShifts = shifts >>> 5;
// we don't wan't to loose any leading bits
for (int i = ... | public class class_name {
static int[] shiftLeftMultiPrecision(int[] number, int length, int shifts)
{
if (shifts == 0) {
return number; // depends on control dependency: [if], data = [none]
}
// wordShifts = shifts / 32
int wordShifts = shifts >>> 5;
// we don't... |
public class class_name {
public Set<String> setEscapeJavaScript(final Set<?> target) {
if (target == null) {
return null;
}
final Set<String> result = new LinkedHashSet<String>(target.size() + 2);
for (final Object element : target) {
result.add(escapeJavaScript... | public class class_name {
public Set<String> setEscapeJavaScript(final Set<?> target) {
if (target == null) {
return null; // depends on control dependency: [if], data = [none]
}
final Set<String> result = new LinkedHashSet<String>(target.size() + 2);
for (final Object eleme... |
public class class_name {
public final EObject ruleXFeatureCall() throws RecognitionException {
EObject current = null;
Token otherlv_1=null;
Token otherlv_3=null;
Token otherlv_5=null;
Token lv_explicitOperationCall_7_0=null;
Token otherlv_10=null;
Token otherl... | public class class_name {
public final EObject ruleXFeatureCall() throws RecognitionException {
EObject current = null;
Token otherlv_1=null;
Token otherlv_3=null;
Token otherlv_5=null;
Token lv_explicitOperationCall_7_0=null;
Token otherlv_10=null;
Token otherl... |
public class class_name {
@Override
public <T> T get(String name, T defaultValue) {
if (!containsKey(name)) {
return defaultValue;
}
return get(name);
} } | public class class_name {
@Override
public <T> T get(String name, T defaultValue) {
if (!containsKey(name)) {
return defaultValue; // depends on control dependency: [if], data = [none]
}
return get(name);
} } |
public class class_name {
public void elemMultiply(VTensor other) {
checkEqualSize(this, other);
for (int c = 0; c < this.size(); c++) {
multiplyValue(c, other.getValue(c));
}
} } | public class class_name {
public void elemMultiply(VTensor other) {
checkEqualSize(this, other);
for (int c = 0; c < this.size(); c++) {
multiplyValue(c, other.getValue(c)); // depends on control dependency: [for], data = [c]
}
} } |
public class class_name {
public void setUsers(java.util.Collection<UserType> users) {
if (users == null) {
this.users = null;
return;
}
this.users = new java.util.ArrayList<UserType>(users);
} } | public class class_name {
public void setUsers(java.util.Collection<UserType> users) {
if (users == null) {
this.users = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
}
this.users = new java.uti... |
public class class_name {
private static List<String> parseACLArray(String aclString) {
List<String> acls = new ArrayList<String>();
if (aclString == null || aclString.isEmpty()) {
return acls;
}
boolean inQuotes = false;
// start at 1 because of leading "{"
int beginIndex = 1;
char p... | public class class_name {
private static List<String> parseACLArray(String aclString) {
List<String> acls = new ArrayList<String>();
if (aclString == null || aclString.isEmpty()) {
return acls; // depends on control dependency: [if], data = [none]
}
boolean inQuotes = false;
// start at 1 bec... |
public class class_name {
public String getCloseReason()
{
if (mPayload == null || mPayload.length < 3)
{
return null;
}
return Misc.toStringUTF8(mPayload, 2, mPayload.length - 2);
} } | public class class_name {
public String getCloseReason()
{
if (mPayload == null || mPayload.length < 3)
{
return null; // depends on control dependency: [if], data = [none]
}
return Misc.toStringUTF8(mPayload, 2, mPayload.length - 2);
} } |
public class class_name {
public void update(Map conf) {
for (IUpdater updater : updaters) {
try {
updater.update(conf);
} catch (Exception e) {
LOG.error(e.getMessage(), e);
}
}
} } | public class class_name {
public void update(Map conf) {
for (IUpdater updater : updaters) {
try {
updater.update(conf); // depends on control dependency: [try], data = [none]
} catch (Exception e) {
LOG.error(e.getMessage(), e);
} // depends ... |
public class class_name {
public void setExternalDiagram(Diagram diagram) {
for (int i=0;i<figures.size();i++) {
Figure figure = (Figure) figures.get(i);
for (int j=0;j<diagram.getFigureCount();j++) {
Figure newBase = diagram.getFigure(j);
if (newBase.getData().getMetaData().equals(figure.get... | public class class_name {
public void setExternalDiagram(Diagram diagram) {
for (int i=0;i<figures.size();i++) {
Figure figure = (Figure) figures.get(i);
for (int j=0;j<diagram.getFigureCount();j++) {
Figure newBase = diagram.getFigure(j);
if (newBase.getData().getMetaData().equals(figure.get... |
public class class_name {
private String parseValue(String value) {
m_croppingParam = CmsCroppingParamBean.parseImagePath(value);
String path = "";
String params = "";
if (value.indexOf("?") > -1) {
path = value.substring(0, value.indexOf("?"));
params = value.s... | public class class_name {
private String parseValue(String value) {
m_croppingParam = CmsCroppingParamBean.parseImagePath(value);
String path = "";
String params = "";
if (value.indexOf("?") > -1) {
path = value.substring(0, value.indexOf("?")); // depends on control depend... |
public class class_name {
@Override
public EClass getIfcPlacement() {
if (ifcPlacementEClass == null) {
ifcPlacementEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI).getEClassifiers()
.get(424);
}
return ifcPlacementEClass;
} } | public class class_name {
@Override
public EClass getIfcPlacement() {
if (ifcPlacementEClass == null) {
ifcPlacementEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI).getEClassifiers()
.get(424);
// depends on control dependency: [if], data = [none]
}
return ifcPlacement... |
public class class_name {
public void store(Activations metadata, XMLStreamWriter writer) throws Exception
{
if (metadata != null && writer != null)
{
writer.writeStartElement(XML.ELEMENT_RESOURCE_ADAPTERS);
for (Activation a : metadata.getActivations())
{
writer.w... | public class class_name {
public void store(Activations metadata, XMLStreamWriter writer) throws Exception
{
if (metadata != null && writer != null)
{
writer.writeStartElement(XML.ELEMENT_RESOURCE_ADAPTERS);
for (Activation a : metadata.getActivations())
{
writer.w... |
public class class_name {
public static void main(String[] args) {
if (args.length == 0) {
System.out.println(
"Usage: SplittingBAMIndex [splitting BAM indices...]\n\n"+
"Writes a few statistics about each splitting BAM index.");
return;
}
for (String arg : args) {
final File f = new File(arg)... | public class class_name {
public static void main(String[] args) {
if (args.length == 0) {
System.out.println(
"Usage: SplittingBAMIndex [splitting BAM indices...]\n\n"+
"Writes a few statistics about each splitting BAM index.");
return;
}
for (String arg : args) {
final File f = new File(arg)... |
public class class_name {
public ColumnMapperSingle<?> getMapperSingle(String field) {
ColumnMapper columnMapper = getMapper(field);
if (columnMapper != null && columnMapper instanceof ColumnMapperSingle<?>) {
return (ColumnMapperSingle<?>) columnMapper;
} else {
return ... | public class class_name {
public ColumnMapperSingle<?> getMapperSingle(String field) {
ColumnMapper columnMapper = getMapper(field);
if (columnMapper != null && columnMapper instanceof ColumnMapperSingle<?>) {
return (ColumnMapperSingle<?>) columnMapper; // depends on control dependency: [i... |
public class class_name {
public BufferedImage getBufferedImage(int width, int height, int type) {
int wDif,
hDif,
fWidth = 0,
fHeight = 0;
double imgWidth,
imgHeight;
double factor;
imgWidth = image.getWidth();
i... | public class class_name {
public BufferedImage getBufferedImage(int width, int height, int type) {
int wDif,
hDif,
fWidth = 0,
fHeight = 0;
double imgWidth,
imgHeight;
double factor;
imgWidth = image.getWidth();
i... |
public class class_name {
private void markInstanceExecutionFailed(WSJobInstance jobInstance, WSJobExecution jobExecution, String correlationId) {
//Disregard any attempted transitions out of the ABANDONED state.
if (jobInstance.getBatchStatus() == BatchStatus.ABANDONED) {
if (logger.isLo... | public class class_name {
private void markInstanceExecutionFailed(WSJobInstance jobInstance, WSJobExecution jobExecution, String correlationId) {
//Disregard any attempted transitions out of the ABANDONED state.
if (jobInstance.getBatchStatus() == BatchStatus.ABANDONED) {
if (logger.isLo... |
public class class_name {
private int[] findArrayDimensions(List<?> list, Class<?> arrayType) {
List<int[]> elementDims = new LinkedList<int[]>();
int dimCount = 0;
for (Object o : list) {
if (o != null && o.getClass().isArray() &&
isAssignableFromArray(arrayType, o... | public class class_name {
private int[] findArrayDimensions(List<?> list, Class<?> arrayType) {
List<int[]> elementDims = new LinkedList<int[]>();
int dimCount = 0;
for (Object o : list) {
if (o != null && o.getClass().isArray() &&
isAssignableFromArray(arrayType, o... |
public class class_name {
public synchronized boolean getAttribute(String key, boolean defaultValue)
{
if(attributes.containsKey(key))
{
Object obj = attributes.get(key);
if(obj instanceof Boolean)
{
return (Boolean) obj;
}
}
return defaultValue;
} } | public class class_name {
public synchronized boolean getAttribute(String key, boolean defaultValue)
{
if(attributes.containsKey(key))
{
Object obj = attributes.get(key);
if(obj instanceof Boolean)
{
return (Boolean) obj; // depends on control dependency: [if], data = [none]
}
}
return default... |
public class class_name {
@SuppressWarnings("unchecked")
public static <E extends SpecificRecord, S extends SpecificRecord> Dao<E> buildCompositeDao(
HTablePool tablePool, String tableName,
List<String> subEntitySchemaStrings, Class<E> entityClass) {
List<EntityMapper<S>> entityMappers = new ArrayLi... | public class class_name {
@SuppressWarnings("unchecked")
public static <E extends SpecificRecord, S extends SpecificRecord> Dao<E> buildCompositeDao(
HTablePool tablePool, String tableName,
List<String> subEntitySchemaStrings, Class<E> entityClass) {
List<EntityMapper<S>> entityMappers = new ArrayLi... |
public class class_name {
public Object get(final String key) {
int i = _getInt(key);
if (i < 0) {
return null;
}
if (i >= size()) {
return null;
}
return get(i);
} } | public class class_name {
public Object get(final String key) {
int i = _getInt(key);
if (i < 0) {
return null; // depends on control dependency: [if], data = [none]
}
if (i >= size()) {
return null; // depends on control dependency: [if], data = [none]
}... |
public class class_name {
protected void afterEndDocument() {
if (stack[depth = 0] == WROTE_MARKUP) { // but not data
try {
writeNewLine(0);
} catch (Exception ignored) {
ignored.printStackTrace();
}
}
stack[depth] = 0; // star... | public class class_name {
protected void afterEndDocument() {
if (stack[depth = 0] == WROTE_MARKUP) { // but not data
try {
writeNewLine(0); // depends on control dependency: [try], data = [none]
} catch (Exception ignored) {
ignored.printStackTrace();
... |
public class class_name {
public synchronized void onContextStatusMessages(final Iterable<ContextStatusPOJO>
contextStatusPOJOs,
final boolean notifyClientOnNewActiveContext) {
for (final ContextStatusPOJO con... | public class class_name {
public synchronized void onContextStatusMessages(final Iterable<ContextStatusPOJO>
contextStatusPOJOs,
final boolean notifyClientOnNewActiveContext) {
for (final ContextStatusPOJO con... |
public class class_name {
public void addTeamGraphicCommand(XPMImage xpm) {
for (int x = 0; x < xpm.getArrayWidth(); x++) {
for (int y = 0; y < xpm.getArrayHeight(); y++) {
StringBuilder buf = new StringBuilder();
String tile = xpm.getTile(x, y);
... | public class class_name {
public void addTeamGraphicCommand(XPMImage xpm) {
for (int x = 0; x < xpm.getArrayWidth(); x++) {
for (int y = 0; y < xpm.getArrayHeight(); y++) {
StringBuilder buf = new StringBuilder();
String tile = xpm.getTile(x, y);
... |
public class class_name {
public CBConnection header(Map<String, String> header) {
if (header != null) {
this.header = header;
} else {
header.clear();
}
return this;
} } | public class class_name {
public CBConnection header(Map<String, String> header) {
if (header != null) {
this.header = header; // depends on control dependency: [if], data = [none]
} else {
header.clear(); // depends on control dependency: [if], data = [none]
}
r... |
public class class_name {
private MilestoneManager getHalfKilometerManager() {
final Path arrowPath = new Path(); // a simple arrow towards the right
arrowPath.moveTo(-5, -5);
arrowPath.lineTo(5, 0);
arrowPath.lineTo(-5, 5);
arrowPath.close();
final Paint backgroundPaint... | public class class_name {
private MilestoneManager getHalfKilometerManager() {
final Path arrowPath = new Path(); // a simple arrow towards the right
arrowPath.moveTo(-5, -5);
arrowPath.lineTo(5, 0);
arrowPath.lineTo(-5, 5);
arrowPath.close();
final Paint backgroundPaint... |
public class class_name {
public static long fix(FileSystem fs, Path dir,
Class<? extends Writable> keyClass,
Class<? extends Writable> valueClass, boolean dryrun,
Configuration conf) throws Exception {
String dr = (dryrun ? "[DRY RUN ] " :... | public class class_name {
public static long fix(FileSystem fs, Path dir,
Class<? extends Writable> keyClass,
Class<? extends Writable> valueClass, boolean dryrun,
Configuration conf) throws Exception {
String dr = (dryrun ? "[DRY RUN ] " :... |
public class class_name {
public void addNewSimpleCustomTag(String tagName, String header, String locations) {
if (tagName == null || locations == null) {
return;
}
Taglet tag = customTags.get(tagName);
locations = StringUtils.toLowerCase(locations);
if (tag == null ... | public class class_name {
public void addNewSimpleCustomTag(String tagName, String header, String locations) {
if (tagName == null || locations == null) {
return; // depends on control dependency: [if], data = [none]
}
Taglet tag = customTags.get(tagName);
locations = String... |
public class class_name {
public int compareTo(ExtensionComponent<T> that) {
double a = this.ordinal();
double b = that.ordinal();
if (a>b) return -1;
if (a<b) return 1;
// make the order bit more deterministic among extensions of the same ordinal
if (this.instanc... | public class class_name {
public int compareTo(ExtensionComponent<T> that) {
double a = this.ordinal();
double b = that.ordinal();
if (a>b) return -1;
if (a<b) return 1;
// make the order bit more deterministic among extensions of the same ordinal
if (this.instanc... |
public class class_name {
public TupleCombinerBuilder exclude( String... varNamePatterns)
{
for( String varNamePattern : varNamePatterns)
{
tupleCombiner_.addExcludedVar( varNamePattern);
}
return this;
} } | public class class_name {
public TupleCombinerBuilder exclude( String... varNamePatterns)
{
for( String varNamePattern : varNamePatterns)
{
tupleCombiner_.addExcludedVar( varNamePattern); // depends on control dependency: [for], data = [varNamePattern]
}
return this;
} } |
public class class_name {
@Override
public synchronized void release() throws Exception
{
Exception baseException = null;
for ( InterProcessLock lock : reverse(locks) )
{
try
{
lock.release();
}
catch ( Exception e )... | public class class_name {
@Override
public synchronized void release() throws Exception
{
Exception baseException = null;
for ( InterProcessLock lock : reverse(locks) )
{
try
{
lock.release(); // depends on control dependency: [try], data =... |
public class class_name {
public Object toObject(String pStr){
String decoded = null;
try{
decoded = decoder.decode(pStr);
}catch(DecoderException ex){
ex.printStackTrace();
throw new TranslationException(ex.getMessage());
}
return decoded;
... | public class class_name {
public Object toObject(String pStr){
String decoded = null;
try{
decoded = decoder.decode(pStr); // depends on control dependency: [try], data = [none]
}catch(DecoderException ex){
ex.printStackTrace();
throw new TranslationExcepti... |
public class class_name {
AbstractJcrNode node( CachedNode cachedNode,
SessionCache cache,
AbstractJcrNode.Type expectedType,
NodeKey parentKey ) {
assert cachedNode != null;
NodeKey nodeKey = cachedNode.getKey();
Abs... | public class class_name {
AbstractJcrNode node( CachedNode cachedNode,
SessionCache cache,
AbstractJcrNode.Type expectedType,
NodeKey parentKey ) {
assert cachedNode != null;
NodeKey nodeKey = cachedNode.getKey();
Abs... |
public class class_name {
public synchronized Set<Vulnerability> getSuppressedVulnerabilities(boolean sorted) {
final Set<Vulnerability> vulnerabilitySet;
if (sorted) {
vulnerabilitySet = new TreeSet<>(suppressedVulnerabilities);
} else {
vulnerabilitySet = suppressedVul... | public class class_name {
public synchronized Set<Vulnerability> getSuppressedVulnerabilities(boolean sorted) {
final Set<Vulnerability> vulnerabilitySet;
if (sorted) {
vulnerabilitySet = new TreeSet<>(suppressedVulnerabilities); // depends on control dependency: [if], data = [none]
... |
public class class_name {
protected void requestPermission(final PermissionModel model) {
new AlertDialog.Builder(this)
.setTitle(model.getTitle())
.setMessage(model.getExplanationMessage())
.setPositiveButton("Request", new DialogInterface.OnClickListener() {
... | public class class_name {
protected void requestPermission(final PermissionModel model) {
new AlertDialog.Builder(this)
.setTitle(model.getTitle())
.setMessage(model.getExplanationMessage())
.setPositiveButton("Request", new DialogInterface.OnClickListener() {
... |
public class class_name {
private final String getFilename(Context context, String pid, String dsid, Date asOfDateTime, String MIMETYPE) throws Exception {
String filename = "";
String extension = "";
// check sources in order
for (String source : m_datastreamFilenameSource.split(" "))... | public class class_name {
private final String getFilename(Context context, String pid, String dsid, Date asOfDateTime, String MIMETYPE) throws Exception {
String filename = "";
String extension = "";
// check sources in order
for (String source : m_datastreamFilenameSource.split(" "))... |
public class class_name {
public void setConvertLinks(boolean convert) {
try {
runner.callMethod("setConvertLinks", engine, convert);
} catch (ScriptRunnerException e) {
throw new IllegalArgumentException("Could not set option", e);
}
} } | public class class_name {
public void setConvertLinks(boolean convert) {
try {
runner.callMethod("setConvertLinks", engine, convert); // depends on control dependency: [try], data = [none]
} catch (ScriptRunnerException e) {
throw new IllegalArgumentException("Could not set option", e);
} // depends on con... |
public class class_name {
@Override
public double getDistance(S solution, L solutionList) {
List<Double> listOfDistances = knnDistances(solution, solutionList) ;
listOfDistances.sort(Comparator.naturalOrder());
int limit = Math.min(k, listOfDistances.size()) ;
double result ;
if (limit == 0) {
... | public class class_name {
@Override
public double getDistance(S solution, L solutionList) {
List<Double> listOfDistances = knnDistances(solution, solutionList) ;
listOfDistances.sort(Comparator.naturalOrder());
int limit = Math.min(k, listOfDistances.size()) ;
double result ;
if (limit == 0) {
... |
public class class_name {
public void setActionNames(java.util.Collection<String> actionNames) {
if (actionNames == null) {
this.actionNames = null;
return;
}
this.actionNames = new java.util.ArrayList<String>(actionNames);
} } | public class class_name {
public void setActionNames(java.util.Collection<String> actionNames) {
if (actionNames == null) {
this.actionNames = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
}
thi... |
public class class_name {
public void marshall(RemediationConfiguration remediationConfiguration, ProtocolMarshaller protocolMarshaller) {
if (remediationConfiguration == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocol... | public class class_name {
public void marshall(RemediationConfiguration remediationConfiguration, ProtocolMarshaller protocolMarshaller) {
if (remediationConfiguration == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocol... |
public class class_name {
public void addOrCriteria(Criteria pc)
{
if (!m_criteria.isEmpty())
{
pc.setEmbraced(true);
pc.setType(OR);
addCriteria(pc);
}
else
{
setEmbraced(false);
pc.setType(OR);
... | public class class_name {
public void addOrCriteria(Criteria pc)
{
if (!m_criteria.isEmpty())
{
pc.setEmbraced(true);
// depends on control dependency: [if], data = [none]
pc.setType(OR);
// depends on control dependency: [if], data = [none]
addCriteria(pc)... |
public class class_name {
@Pure
public double[] toDoubleArray(Transform3D transform) {
double[] clone = new double[this.numCoordsProperty.get()];
if (transform==null) {
for(int i=0; i<this.numCoordsProperty.get(); ++i) {
clone[i] = this.coordsProperty[i].get();
}
}
else {
Point3f p = new Point3f(... | public class class_name {
@Pure
public double[] toDoubleArray(Transform3D transform) {
double[] clone = new double[this.numCoordsProperty.get()];
if (transform==null) {
for(int i=0; i<this.numCoordsProperty.get(); ++i) {
clone[i] = this.coordsProperty[i].get(); // depends on control dependency: [for], data... |
public class class_name {
public static boolean makeSureMsgId(Map<String, Object> map) {
boolean newMsgIdGenerated = false;
if (StringUtil.isEmpty(map.get("$msgId"))) {
if (MsgIdHolder.get() == null) {
MsgIdHolder.init();
newMsgIdGenerated = true;
... | public class class_name {
public static boolean makeSureMsgId(Map<String, Object> map) {
boolean newMsgIdGenerated = false;
if (StringUtil.isEmpty(map.get("$msgId"))) {
if (MsgIdHolder.get() == null) {
MsgIdHolder.init(); // depends on control dependency: [if], data = [none]... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.