code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
@Override
protected Properties createSessionProperties() {
final Properties props = super.createSessionProperties();
props.setProperty(MAIL_TRANSPORT_PROTOCOL, PROTOCOL_SMTP);
props.setProperty(MAIL_HOST, host);
props.setProperty(MAIL_SMTP_HOST, host);
props.setProperty(MAIL_SMTP_... | public class class_name {
@Override
protected Properties createSessionProperties() {
final Properties props = super.createSessionProperties();
props.setProperty(MAIL_TRANSPORT_PROTOCOL, PROTOCOL_SMTP);
props.setProperty(MAIL_HOST, host);
props.setProperty(MAIL_SMTP_HOST, host);
props.setProperty(MAIL_SMTP_... |
public class class_name {
@RequirePOST
public synchronized void doCreateItem( StaplerRequest req, StaplerResponse rsp,
@QueryParameter String name, @QueryParameter String mode,
@QueryParameter String from ) throws IOException, Se... | public class class_name {
@RequirePOST
public synchronized void doCreateItem( StaplerRequest req, StaplerResponse rsp,
@QueryParameter String name, @QueryParameter String mode,
@QueryParameter String from ) throws IOException, Se... |
public class class_name {
public void handle(final WebSocketSession session, byte[] bytes) {
if (session == null) {
throw new NullPointerException("session");
}
try {
JsonRpcMessage msg = jsonRpcControl.receive(bytes);
if (msg instanceof JsonRpcRequest)... | public class class_name {
public void handle(final WebSocketSession session, byte[] bytes) {
if (session == null) {
throw new NullPointerException("session");
}
try {
JsonRpcMessage msg = jsonRpcControl.receive(bytes);
if (msg instanceof JsonRpcRequest)... |
public class class_name {
private String getBaseUri(HttpServletRequest req, CmsObject cms) {
String baseUri = req.getParameter(PARAM_BASE_URI);
if (CmsStringUtil.isEmptyOrWhitespaceOnly(baseUri)) {
String referer = req.getHeader(HEADER_REFERER_KEY);
CmsSite site = OpenCms.getSi... | public class class_name {
private String getBaseUri(HttpServletRequest req, CmsObject cms) {
String baseUri = req.getParameter(PARAM_BASE_URI);
if (CmsStringUtil.isEmptyOrWhitespaceOnly(baseUri)) {
String referer = req.getHeader(HEADER_REFERER_KEY);
CmsSite site = OpenCms.getSi... |
public class class_name {
public static boolean isPublicMethodFinal(Class clazz, String name,
TypeDesc retType, TypeDesc[] params)
{
if (!clazz.isInterface()) {
Class[] paramClasses;
if (params == null || params.length == 0) {
... | public class class_name {
public static boolean isPublicMethodFinal(Class clazz, String name,
TypeDesc retType, TypeDesc[] params)
{
if (!clazz.isInterface()) {
Class[] paramClasses;
if (params == null || params.length == 0) {
... |
public class class_name {
private InputStream locateStreamFromJar(final String uri, final File jarPath)
throws IOException {
JarFile jarFile = null;
try {
LOG.debug("Locating stream from jar: {}", jarPath);
final WildcardContext wildcardContext = new WildcardContext(uri, jarPath);
Strin... | public class class_name {
private InputStream locateStreamFromJar(final String uri, final File jarPath)
throws IOException {
JarFile jarFile = null;
try {
LOG.debug("Locating stream from jar: {}", jarPath);
final WildcardContext wildcardContext = new WildcardContext(uri, jarPath);
Strin... |
public class class_name {
@Action(name = "Invoke AWS Lambda Function",
outputs = {
@Output(Outputs.RETURN_CODE),
@Output(Outputs.RETURN_RESULT),
@Output(Outputs.EXCEPTION)
},
responses = {
@Response(text... | public class class_name {
@Action(name = "Invoke AWS Lambda Function",
outputs = {
@Output(Outputs.RETURN_CODE),
@Output(Outputs.RETURN_RESULT),
@Output(Outputs.EXCEPTION)
},
responses = {
@Response(text... |
public class class_name {
public void marshall(ApplySchemaRequest applySchemaRequest, ProtocolMarshaller protocolMarshaller) {
if (applySchemaRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshal... | public class class_name {
public void marshall(ApplySchemaRequest applySchemaRequest, ProtocolMarshaller protocolMarshaller) {
if (applySchemaRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshal... |
public class class_name {
public LocalDateTime getStartDateTime() {
if (startDateTime == null) {
startDateTime = LocalDateTime.of(getStartDate(), getStartTime());
}
return startDateTime;
} } | public class class_name {
public LocalDateTime getStartDateTime() {
if (startDateTime == null) {
startDateTime = LocalDateTime.of(getStartDate(), getStartTime()); // depends on control dependency: [if], data = [none]
}
return startDateTime;
} } |
public class class_name {
private static String replaceChars(String e, String chars1, String chars2) {
assert chars1.length() == chars2.length();
String[] parts = e.split(",");
for (int i = 0; i < parts.length; ++i) {
String[] elems = parts[i].split("/");
for (int j = 0; j < chars1.length(); ++j) ... | public class class_name {
private static String replaceChars(String e, String chars1, String chars2) {
assert chars1.length() == chars2.length();
String[] parts = e.split(",");
for (int i = 0; i < parts.length; ++i) {
String[] elems = parts[i].split("/");
for (int j = 0; j < chars1.length(); ++j) ... |
public class class_name {
private JsonError handleObject(final ObjectNode node, final OutputStream output) throws IOException {
logger.debug("Request: {}", node);
if (!isValidRequest(node)) {
return writeAndFlushValueError(output, createResponseError(VERSION, NULL, JsonError.INVALID_REQUEST));
}
Object i... | public class class_name {
private JsonError handleObject(final ObjectNode node, final OutputStream output) throws IOException {
logger.debug("Request: {}", node);
if (!isValidRequest(node)) {
return writeAndFlushValueError(output, createResponseError(VERSION, NULL, JsonError.INVALID_REQUEST));
}
Object i... |
public class class_name {
public static void populateDefaultsAndExtensions(
Map<String, Descriptors.FileDescriptor> fileDescriptorMap,
Map<String, Set<Descriptors.FieldDescriptor>> typeToExtensionMap,
Map<String, Object> defaultValueMap
) {
for (Descriptors.FileDescriptor f : fileDescriptorMap.... | public class class_name {
public static void populateDefaultsAndExtensions(
Map<String, Descriptors.FileDescriptor> fileDescriptorMap,
Map<String, Set<Descriptors.FieldDescriptor>> typeToExtensionMap,
Map<String, Object> defaultValueMap
) {
for (Descriptors.FileDescriptor f : fileDescriptorMap.... |
public class class_name {
protected Bucket getBucketForValue(long value) {
Bucket bucket;
if (value < min) {
bucket = buckets[0];
} else {
if (value >= max) {
bucket = buckets[bucketNb + 1];
} else {
// Linear interpolation
int bucketIndex = 1 + (int) ((value - min) * (bucketNb - 1)... | public class class_name {
protected Bucket getBucketForValue(long value) {
Bucket bucket;
if (value < min) {
bucket = buckets[0];
// depends on control dependency: [if], data = [none]
} else {
if (value >= max) {
bucket = buckets[bucketNb + 1];
// depends on control dependency: [if], data = [non... |
public class class_name {
public List<Blob> get(String blobName1, String blobName2, String... blobNames) {
List<BlobId> blobIds = Lists.newArrayListWithCapacity(blobNames.length + 2);
blobIds.add(BlobId.of(getName(), blobName1));
blobIds.add(BlobId.of(getName(), blobName2));
for (String blobName : blob... | public class class_name {
public List<Blob> get(String blobName1, String blobName2, String... blobNames) {
List<BlobId> blobIds = Lists.newArrayListWithCapacity(blobNames.length + 2);
blobIds.add(BlobId.of(getName(), blobName1));
blobIds.add(BlobId.of(getName(), blobName2));
for (String blobName : blob... |
public class class_name {
public void setEnvironmentNames(java.util.Collection<String> environmentNames) {
if (environmentNames == null) {
this.environmentNames = null;
return;
}
this.environmentNames = new com.amazonaws.internal.SdkInternalList<String>(environmentNames... | public class class_name {
public void setEnvironmentNames(java.util.Collection<String> environmentNames) {
if (environmentNames == null) {
this.environmentNames = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
... |
public class class_name {
protected Template load(Class<?> pageClass, Show methodShow) {
//
// try to find the template name
//
String template = null;
String extension = null;
Show show = pageClass.getAnnotation(Show.class);
if (null != show) {
template = show.value();
}
... | public class class_name {
protected Template load(Class<?> pageClass, Show methodShow) {
//
// try to find the template name
//
String template = null;
String extension = null;
Show show = pageClass.getAnnotation(Show.class);
if (null != show) {
template = show.value(); // depends on... |
public class class_name {
Expression XreadRowValueConstructor() {
Expression e;
e = XreadExplicitRowValueConstructorOrNull();
if (e != null) {
return e;
}
e = XreadRowOrCommonValueExpression();
if (e != null) {
return e;
}
re... | public class class_name {
Expression XreadRowValueConstructor() {
Expression e;
e = XreadExplicitRowValueConstructorOrNull();
if (e != null) {
return e; // depends on control dependency: [if], data = [none]
}
e = XreadRowOrCommonValueExpression();
if (e ... |
public class class_name {
public static byte[] desTemplate(byte[] data, byte[] key, String algorithm, String transformation, boolean isEncrypt) {
if (data == null || data.length == 0 || key == null || key.length == 0) return null;
try {
SecretKeySpec keySpec = new SecretKeySpec(key, algorit... | public class class_name {
public static byte[] desTemplate(byte[] data, byte[] key, String algorithm, String transformation, boolean isEncrypt) {
if (data == null || data.length == 0 || key == null || key.length == 0) return null;
try {
SecretKeySpec keySpec = new SecretKeySpec(key, algorit... |
public class class_name {
private static String getLeadingZeros(int i, int size)
{
assert i <= size;
int w1 = (int) Math.floor(Math.log10(size));
int w2 = (int) Math.floor(Math.log10(i));
String s = "";
for (int j = w2; j < w1; j++)
{
s += "0";
}
return s;
} } | public class class_name {
private static String getLeadingZeros(int i, int size)
{
assert i <= size;
int w1 = (int) Math.floor(Math.log10(size));
int w2 = (int) Math.floor(Math.log10(i));
String s = "";
for (int j = w2; j < w1; j++)
{
s += "0"; // depends on control dependency: [for], data = [none]... |
public class class_name {
private String[] createDisplayedValues() {
int steps = 1 + (int) Math.ceil((double) getRange() / (double) getStepSize());
String[] values = new String[steps];
int current = getMinNumber();
for (int i = 0; i < steps; i++) {
values[i] = String.valueO... | public class class_name {
private String[] createDisplayedValues() {
int steps = 1 + (int) Math.ceil((double) getRange() / (double) getStepSize());
String[] values = new String[steps];
int current = getMinNumber();
for (int i = 0; i < steps; i++) {
values[i] = String.valueO... |
public class class_name {
public <T> Iterator<T> limit(final Iterator<T> iter) {
return new AbstractIterator<T>() {
@Override
protected T computeNext() {
if (_remaining > 0 && iter.hasNext()) {
_remaining--;
return iter.next();
... | public class class_name {
public <T> Iterator<T> limit(final Iterator<T> iter) {
return new AbstractIterator<T>() {
@Override
protected T computeNext() {
if (_remaining > 0 && iter.hasNext()) {
_remaining--; // depends on control dependency: [if], dat... |
public class class_name {
public static <E> Counter<E> multiplyInPlace(Counter<E> target, double multiplier) {
for (Entry<E, Double> entry : target.entrySet()) {
target.setCount(entry.getKey(), entry.getValue() * multiplier);
}
return target;
} } | public class class_name {
public static <E> Counter<E> multiplyInPlace(Counter<E> target, double multiplier) {
for (Entry<E, Double> entry : target.entrySet()) {
target.setCount(entry.getKey(), entry.getValue() * multiplier);
// depends on control dependency: [for], data = [entry]
}
return target... |
public class class_name {
public String replaceAll(String replacement) {
reset();
StringBuffer buffer = new StringBuffer(input.length());
while (find()) {
appendReplacement(buffer, replacement);
}
return appendTail(buffer).toString();
} } | public class class_name {
public String replaceAll(String replacement) {
reset();
StringBuffer buffer = new StringBuffer(input.length());
while (find()) {
appendReplacement(buffer, replacement); // depends on control dependency: [while], data = [none]
}
return append... |
public class class_name {
public void parseClassificationsFiles(List<String> propertiesFiles) {
if (isNotEmpty(propertiesFiles)) {
for (String propertyFile : propertiesFiles) {
if (StringUtils.isNotEmpty(propertyFile)) {
processClassificationFile(propertyFile);
... | public class class_name {
public void parseClassificationsFiles(List<String> propertiesFiles) {
if (isNotEmpty(propertiesFiles)) {
for (String propertyFile : propertiesFiles) {
if (StringUtils.isNotEmpty(propertyFile)) {
processClassificationFile(propertyFile); /... |
public class class_name {
public static boolean intArrayContains(int[] array, int numToCheck) {
for (int i = 0; i < array.length; i++) {
if (array[i] == numToCheck) {
return true;
}
}
return false;
} } | public class class_name {
public static boolean intArrayContains(int[] array, int numToCheck) {
for (int i = 0; i < array.length; i++) {
if (array[i] == numToCheck) {
return true; // depends on control dependency: [if], data = [none]
}
}
return false;
... |
public class class_name {
@Override
public void begin(String namespaceURI, String name, Attributes attributes)
throws Exception {
XMLReader xmlReader = getDigester().getXMLReader();
Document doc = documentBuilder.newDocument();
NodeBuilder builder = null;
if (nodeTyp... | public class class_name {
@Override
public void begin(String namespaceURI, String name, Attributes attributes)
throws Exception {
XMLReader xmlReader = getDigester().getXMLReader();
Document doc = documentBuilder.newDocument();
NodeBuilder builder = null;
if (nodeTyp... |
public class class_name {
protected Boolean _hasSideEffects(XForLoopExpression expression, ISideEffectContext context) {
context.open();
if (hasSideEffects(expression.getForExpression(), context)) {
return true;
}
context.close();
return hasSideEffects(expression.getEachExpression(), context.branch());
}... | public class class_name {
protected Boolean _hasSideEffects(XForLoopExpression expression, ISideEffectContext context) {
context.open();
if (hasSideEffects(expression.getForExpression(), context)) {
return true; // depends on control dependency: [if], data = [none]
}
context.close();
return hasSideEffects... |
public class class_name {
public static void download(String type, int unitCount, String path) {
int timeout = 300000;
Set<String> hrefs = new HashSet<>();
System.out.println("【"+type+"】*** starting... ");
for(int i=1; i<=unitCount; i++) {
int times=0;
boolean su... | public class class_name {
public static void download(String type, int unitCount, String path) {
int timeout = 300000;
Set<String> hrefs = new HashSet<>();
System.out.println("【"+type+"】*** starting... ");
for(int i=1; i<=unitCount; i++) {
int times=0;
boolean su... |
public class class_name {
public void addToCell(int index, int element) {
if (cells.size() < index + 1) {
addSingletonCell(element);
} else {
cells.get(index).add(element);
}
} } | public class class_name {
public void addToCell(int index, int element) {
if (cells.size() < index + 1) {
addSingletonCell(element); // depends on control dependency: [if], data = [none]
} else {
cells.get(index).add(element); // depends on control dependency: [if], data = [none... |
public class class_name {
private BufferedImage resample(BufferedImage pSource, BufferedImage pDest, InterpolationFilter pFilter) {
final int dstWidth = pDest.getWidth();
final int dstHeight = pDest.getHeight();
final int srcWidth = pSource.getWidth();
final int srcHeight = pSourc... | public class class_name {
private BufferedImage resample(BufferedImage pSource, BufferedImage pDest, InterpolationFilter pFilter) {
final int dstWidth = pDest.getWidth();
final int dstHeight = pDest.getHeight();
final int srcWidth = pSource.getWidth();
final int srcHeight = pSourc... |
public class class_name {
@RequestMapping(method = RequestMethod.POST, value = "/workflowInstance/{woinRefNum}",
produces = {MediaType.APPLICATION_JSON_VALUE, MediaType.TEXT_XML_VALUE})
public ResponseEntity<WorkflowInstanceRestModel> updateIntance( @PathVariable long woinRefNum, @RequestBody UpdateIns... | public class class_name {
@RequestMapping(method = RequestMethod.POST, value = "/workflowInstance/{woinRefNum}",
produces = {MediaType.APPLICATION_JSON_VALUE, MediaType.TEXT_XML_VALUE})
public ResponseEntity<WorkflowInstanceRestModel> updateIntance( @PathVariable long woinRefNum, @RequestBody UpdateIns... |
public class class_name {
private static By getBy(By currentBy, SearchContext currentContent) {
if (!ContentMappedBy.class.isAssignableFrom(currentBy.getClass())) {
return currentBy;
}
return ContentMappedBy.class.cast(currentBy)
.useContent(getCurrentContentType(cu... | public class class_name {
private static By getBy(By currentBy, SearchContext currentContent) {
if (!ContentMappedBy.class.isAssignableFrom(currentBy.getClass())) {
return currentBy; // depends on control dependency: [if], data = [none]
}
return ContentMappedBy.class.cast(currentBy... |
public class class_name {
private int parseListItem (int start) {
start = skipSpacesToNewline(start, wikiLength); // skip spaces
int end=parseItem(start, null, ContextType.LIST_ITEM);
if ((listLevels[listLevel]=='>' || listLevels[listLevel]==':') &&
wikiText.substring(start, end).tr... | public class class_name {
private int parseListItem (int start) {
start = skipSpacesToNewline(start, wikiLength); // skip spaces
int end=parseItem(start, null, ContextType.LIST_ITEM);
if ((listLevels[listLevel]=='>' || listLevels[listLevel]==':') &&
wikiText.substring(start, end).tr... |
public class class_name {
@Override
public void deenrichResponse(HttpRequest request, HttpResponse response) {
final WarpContext context = WarpContextStore.get();
try {
long serialId = getSerialId(request);
ResponsePayload payload = retrieveResponsePayload(serialId);
... | public class class_name {
@Override
public void deenrichResponse(HttpRequest request, HttpResponse response) {
final WarpContext context = WarpContextStore.get();
try {
long serialId = getSerialId(request);
ResponsePayload payload = retrieveResponsePayload(serialId);
... |
public class class_name {
public static synchronized IDGenerator generatorFor(ZooKeeperConnection zooKeeperConnection,
String znode,
Mode mode)
throws IOException {
if (!instances.contai... | public class class_name {
public static synchronized IDGenerator generatorFor(ZooKeeperConnection zooKeeperConnection,
String znode,
Mode mode)
throws IOException {
if (!instances.contai... |
public class class_name {
public void marshall(TagsModel tagsModel, ProtocolMarshaller protocolMarshaller) {
if (tagsModel == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(tagsModel.getTags(), TAGS... | public class class_name {
public void marshall(TagsModel tagsModel, ProtocolMarshaller protocolMarshaller) {
if (tagsModel == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(tagsModel.getTags(), TAGS... |
public class class_name {
public void undeploy(String deploymentName, Set<String> serverGroups, boolean removeContent) {
if (serverGroups == null) {
serverGroups = Collections.emptySet();
}
DeploymentResult result = null;
try {
DeploymentManager dm = Deployment... | public class class_name {
public void undeploy(String deploymentName, Set<String> serverGroups, boolean removeContent) {
if (serverGroups == null) {
serverGroups = Collections.emptySet(); // depends on control dependency: [if], data = [none]
}
DeploymentResult result = null;
... |
public class class_name {
public Observable<ServiceResponse<Page<JobExecutionInner>>> listByStepNextWithServiceResponseAsync(final String nextPageLink) {
return listByStepNextSinglePageAsync(nextPageLink)
.concatMap(new Func1<ServiceResponse<Page<JobExecutionInner>>, Observable<ServiceResponse<Page... | public class class_name {
public Observable<ServiceResponse<Page<JobExecutionInner>>> listByStepNextWithServiceResponseAsync(final String nextPageLink) {
return listByStepNextSinglePageAsync(nextPageLink)
.concatMap(new Func1<ServiceResponse<Page<JobExecutionInner>>, Observable<ServiceResponse<Page... |
public class class_name {
public synchronized void put(String path, long value, String taskId) {
Point p;
int last = windowNum - 1;
if (value == RECOVERY_FAIL) {
p = new Point(value, path, System.currentTimeMillis(), taskId);
AtomicInteger counter = failedRecoveredFiles.get(path);
if (cou... | public class class_name {
public synchronized void put(String path, long value, String taskId) {
Point p;
int last = windowNum - 1;
if (value == RECOVERY_FAIL) {
p = new Point(value, path, System.currentTimeMillis(), taskId); // depends on control dependency: [if], data = [(value]
AtomicInteger... |
public class class_name {
protected UrlState determineUrlState(
final IPortletWindow portletWindow,
final IPortletUrlBuilder targetedPortletUrlBuilder) {
final WindowState requestedWindowState;
if (targetedPortletUrlBuilder == null) {
requestedWindowState = null;
... | public class class_name {
protected UrlState determineUrlState(
final IPortletWindow portletWindow,
final IPortletUrlBuilder targetedPortletUrlBuilder) {
final WindowState requestedWindowState;
if (targetedPortletUrlBuilder == null) {
requestedWindowState = null; // ... |
public class class_name {
protected List<Date> loadAttempts(File home) {
List<Date> dates = new ArrayList<>();
if (home!=null) {
File f = getBootFailureFile(home);
try {
if (f.exists()) {
try (BufferedReader failureFileReader = new BufferedRea... | public class class_name {
protected List<Date> loadAttempts(File home) {
List<Date> dates = new ArrayList<>();
if (home!=null) {
File f = getBootFailureFile(home);
try {
if (f.exists()) {
try (BufferedReader failureFileReader = new BufferedRea... |
public class class_name {
public void setLaunchTemplateVersions(java.util.Collection<LaunchTemplateVersion> launchTemplateVersions) {
if (launchTemplateVersions == null) {
this.launchTemplateVersions = null;
return;
}
this.launchTemplateVersions = new com.amazonaws.inte... | public class class_name {
public void setLaunchTemplateVersions(java.util.Collection<LaunchTemplateVersion> launchTemplateVersions) {
if (launchTemplateVersions == null) {
this.launchTemplateVersions = null; // depends on control dependency: [if], data = [none]
return; // depends on con... |
public class class_name {
public void addSplit(long timestampInMs, long durationInNs) {
last = durationInNs;
total += durationInNs;
squareTotal += durationInNs * durationInNs;
if (durationInNs > max) {
max = durationInNs;
}
if (durationInNs < min) {
min = durationInNs;
}
counter++;
lastTimestam... | public class class_name {
public void addSplit(long timestampInMs, long durationInNs) {
last = durationInNs;
total += durationInNs;
squareTotal += durationInNs * durationInNs;
if (durationInNs > max) {
max = durationInNs; // depends on control dependency: [if], data = [none]
}
if (durationInNs < min) {
... |
public class class_name {
private String getModuleFromClass(Class<?> klass, Map<String, ModuleProperties> moduleMap) {
String file = getClassFileLocation(klass);
if (tc.isDebugEnabled()) {
Tr.debug(tc, "File name : " + file);
}
String moduleName = null;
for (Map.Entr... | public class class_name {
private String getModuleFromClass(Class<?> klass, Map<String, ModuleProperties> moduleMap) {
String file = getClassFileLocation(klass);
if (tc.isDebugEnabled()) {
Tr.debug(tc, "File name : " + file); // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
@Override
public void render(Graphic g)
{
for (final MessageData messageData : messages)
{
text.draw(g, messageData.x, messageData.y, messageData.message);
}
} } | public class class_name {
@Override
public void render(Graphic g)
{
for (final MessageData messageData : messages)
{
text.draw(g, messageData.x, messageData.y, messageData.message);
// depends on control dependency: [for], data = [messageData]
}
} } |
public class class_name {
private Token doctype() {
String val = scan1("^!!! *([^\\n]+)?");
if (StringUtils.isNotBlank(val)) {
throw new JadeLexerException("`!!!` is deprecated, you must now use `doctype`", filename, getLineno(), templateLoader);
}
Matcher matcher = scanner.... | public class class_name {
private Token doctype() {
String val = scan1("^!!! *([^\\n]+)?");
if (StringUtils.isNotBlank(val)) {
throw new JadeLexerException("`!!!` is deprecated, you must now use `doctype`", filename, getLineno(), templateLoader);
}
Matcher matcher = scanner.... |
public class class_name {
protected Component getRoot (Component comp)
{
for (Component c = comp; c != null; c = c.getParent()) {
boolean hidden = !c.isDisplayable();
// on the mac, the JRootPane is invalidated before it is visible and is never again
// invalidated or re... | public class class_name {
protected Component getRoot (Component comp)
{
for (Component c = comp; c != null; c = c.getParent()) {
boolean hidden = !c.isDisplayable();
// on the mac, the JRootPane is invalidated before it is visible and is never again
// invalidated or re... |
public class class_name {
public void marshall(RedshiftDatabaseCredentials redshiftDatabaseCredentials, ProtocolMarshaller protocolMarshaller) {
if (redshiftDatabaseCredentials == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... | public class class_name {
public void marshall(RedshiftDatabaseCredentials redshiftDatabaseCredentials, ProtocolMarshaller protocolMarshaller) {
if (redshiftDatabaseCredentials == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... |
public class class_name {
private LogRepositoryBrowser findNext(long cur, long timelimit) {
File[] files = listFiles(instanceFilter);
if (files == null) {
return null;
}
File result = null;
long min = Long.MAX_VALUE;
for (File file : files) {
lon... | public class class_name {
private LogRepositoryBrowser findNext(long cur, long timelimit) {
File[] files = listFiles(instanceFilter);
if (files == null) {
return null; // depends on control dependency: [if], data = [none]
}
File result = null;
long min = Long.MAX_VA... |
public class class_name {
@Override
public DescriptorValue calculate(IAtomContainer atomContainer) {
int nSpiro = 0;
try {
IAtomContainer local = atomContainer.clone();
Cycles.markRingAtomsAndBonds(local);
for (IAtom atom : local.atoms()) {
if (g... | public class class_name {
@Override
public DescriptorValue calculate(IAtomContainer atomContainer) {
int nSpiro = 0;
try {
IAtomContainer local = atomContainer.clone();
Cycles.markRingAtomsAndBonds(local); // depends on control dependency: [try], data = [none]
f... |
public class class_name {
@Deprecated
public static RoaringBitmap flip(RoaringBitmap rb, final int rangeStart, final int rangeEnd) {
if (rangeStart >= 0) {
return flip(rb, (long) rangeStart, (long) rangeEnd);
}
// rangeStart being -ve and rangeEnd being positive is not expected)
// so assume bo... | public class class_name {
@Deprecated
public static RoaringBitmap flip(RoaringBitmap rb, final int rangeStart, final int rangeEnd) {
if (rangeStart >= 0) {
return flip(rb, (long) rangeStart, (long) rangeEnd); // depends on control dependency: [if], data = [none]
}
// rangeStart being -ve and rangeE... |
public class class_name {
static public byte[] getPreNTLMResponse( String password, byte[] challenge ) {
byte[] p14 = new byte[14];
byte[] p21 = new byte[21];
byte[] p24 = new byte[24];
byte[] passwordBytes;
try {
passwordBytes = password.toUpperCase().getBytes( Serv... | public class class_name {
static public byte[] getPreNTLMResponse( String password, byte[] challenge ) {
byte[] p14 = new byte[14];
byte[] p21 = new byte[21];
byte[] p24 = new byte[24];
byte[] passwordBytes;
try {
passwordBytes = password.toUpperCase().getBytes( Serv... |
public class class_name {
private String getDatabaseProductName(WSDataSource dataSource) throws Exception {
String dbProductName = dataSource.getDatabaseProductName();
if (dbProductName == null) {
// Query the metadata under a new transaction and commit right away
LocalTransacti... | public class class_name {
private String getDatabaseProductName(WSDataSource dataSource) throws Exception {
String dbProductName = dataSource.getDatabaseProductName();
if (dbProductName == null) {
// Query the metadata under a new transaction and commit right away
LocalTransacti... |
public class class_name {
public void initScheme() {
// set the scheme based on whether the socket is secure or not
if (null == getServiceContext() || null == getServiceContext().getTSC()) {
// discrimination path, not ready for this yet
return;
}
if (getServiceC... | public class class_name {
public void initScheme() {
// set the scheme based on whether the socket is secure or not
if (null == getServiceContext() || null == getServiceContext().getTSC()) {
// discrimination path, not ready for this yet
return; // depends on control dependency:... |
public class class_name {
public static <S extends Storable> Filter<S> filterFor(Class<S> type, String expression) {
SoftValuedCache<Object, Filter<S>> filterCache = getFilterCache(type);
synchronized (filterCache) {
Filter<S> filter = filterCache.get(expression);
if (filter... | public class class_name {
public static <S extends Storable> Filter<S> filterFor(Class<S> type, String expression) {
SoftValuedCache<Object, Filter<S>> filterCache = getFilterCache(type);
synchronized (filterCache) {
Filter<S> filter = filterCache.get(expression);
if (filter... |
public class class_name {
@Override
public SetAttribute<? super X, ?> getSet(String paramName)
{
PluralAttribute<? super X, ?, ?> declaredAttrib = getDeclaredPluralAttribute(paramName);
if (isSetAttribute(declaredAttrib))
{
return (SetAttribute<X, ?>) declaredAttrib;
... | public class class_name {
@Override
public SetAttribute<? super X, ?> getSet(String paramName)
{
PluralAttribute<? super X, ?, ?> declaredAttrib = getDeclaredPluralAttribute(paramName);
if (isSetAttribute(declaredAttrib))
{
return (SetAttribute<X, ?>) declaredAttrib; // dep... |
public class class_name {
private Long getLanguageId(final String _language)
{
Long ret = null;
try {
final QueryBuilder queryBldr = new QueryBuilder(CIAdmin.Language);
queryBldr.addWhereAttrEqValue(CIAdmin.Language.Language, _language);
final InstanceQuery query... | public class class_name {
private Long getLanguageId(final String _language)
{
Long ret = null;
try {
final QueryBuilder queryBldr = new QueryBuilder(CIAdmin.Language);
queryBldr.addWhereAttrEqValue(CIAdmin.Language.Language, _language); // depends on control dependency: [tr... |
public class class_name {
public boolean removePolicy(String sec, String ptype, List<String> rule) {
for (int i = 0; i < model.get(sec).get(ptype).policy.size(); i ++) {
List<String> r = model.get(sec).get(ptype).policy.get(i);
if (Util.arrayEquals(rule, r)) {
model.get(... | public class class_name {
public boolean removePolicy(String sec, String ptype, List<String> rule) {
for (int i = 0; i < model.get(sec).get(ptype).policy.size(); i ++) {
List<String> r = model.get(sec).get(ptype).policy.get(i);
if (Util.arrayEquals(rule, r)) {
model.get(... |
public class class_name {
private void setConsistencylevel(Object value)
{
if (value instanceof String)
{
this.cassandraClientBase.setConsistencyLevel(ConsistencyLevel.valueOf((String) value));
}
else if (value instanceof ConsistencyLevel)
{
this.cass... | public class class_name {
private void setConsistencylevel(Object value)
{
if (value instanceof String)
{
this.cassandraClientBase.setConsistencyLevel(ConsistencyLevel.valueOf((String) value)); // depends on control dependency: [if], data = [none]
}
else if (value instan... |
public class class_name {
private void mergeForceCollapse() {
while (stackSize > 1) {
int n = stackSize - 2;
if (n > 0 && runLen[n - 1] < runLen[n + 1])
n--;
mergeAt(n);
}
} } | public class class_name {
private void mergeForceCollapse() {
while (stackSize > 1) {
int n = stackSize - 2;
if (n > 0 && runLen[n - 1] < runLen[n + 1])
n--;
mergeAt(n); // depends on control dependency: [while], data = [none]
}
} } |
public class class_name {
@Override
public void write (@Nonnull final String sStr, @Nonnegative final int nOfs, @Nonnegative final int nLen)
{
if (nLen > 0)
{
final int newcount = m_nCount + nLen;
if (newcount > m_aBuf.length)
{
m_aBuf = Arrays.copyOf (m_aBuf, Math.max (m_aBuf.len... | public class class_name {
@Override
public void write (@Nonnull final String sStr, @Nonnegative final int nOfs, @Nonnegative final int nLen)
{
if (nLen > 0)
{
final int newcount = m_nCount + nLen;
if (newcount > m_aBuf.length)
{
m_aBuf = Arrays.copyOf (m_aBuf, Math.max (m_aBuf.len... |
public class class_name {
public final boolean addConstraints(Constraint... c) {
if (c == null || c.length == 0){
return true;
}
ArrayList<Constraint> incomp = new ArrayList<Constraint>(c.length);
for (Constraint con : c) {
if (isCompatible(con) && !con.isSkippableSolver(this)) { }
else
... | public class class_name {
public final boolean addConstraints(Constraint... c) {
if (c == null || c.length == 0){
return true;
// depends on control dependency: [if], data = [none]
}
ArrayList<Constraint> incomp = new ArrayList<Constraint>(c.length);
for (Constraint con : c) {
if (isCompatible(con... |
public class class_name {
public Object remove(Object locator) {
if (locator == null)
return null;
synchronized (_lock) {
for (int index = _references.size() - 1; index >= 0; index--) {
Reference reference = _references.get(index);
if (reference.match(locator)) {
_references.remove(index);
... | public class class_name {
public Object remove(Object locator) {
if (locator == null)
return null;
synchronized (_lock) {
for (int index = _references.size() - 1; index >= 0; index--) {
Reference reference = _references.get(index);
if (reference.match(locator)) {
_references.remove(index); // d... |
public class class_name {
protected int checkJournals(String status) throws IOException {
boolean abort = false;
int journalsAvailable = 0;
int nonLocalJournalsAvailable = 0;
for(JournalAndStream jas : journals) {
if(jas.isDisabled() && jas.isRequired()) {
abort = true;
} else if (j... | public class class_name {
protected int checkJournals(String status) throws IOException {
boolean abort = false;
int journalsAvailable = 0;
int nonLocalJournalsAvailable = 0;
for(JournalAndStream jas : journals) {
if(jas.isDisabled() && jas.isRequired()) {
abort = true; // depends on cont... |
public class class_name {
public List<Locale> getDefaultLocales(CmsObject cms, CmsResource resource) {
String defaultNames = null;
try {
defaultNames = cms.readPropertyObject(resource, CmsPropertyDefinition.PROPERTY_LOCALE, true).getValue();
} catch (CmsException e) {
L... | public class class_name {
public List<Locale> getDefaultLocales(CmsObject cms, CmsResource resource) {
String defaultNames = null;
try {
defaultNames = cms.readPropertyObject(resource, CmsPropertyDefinition.PROPERTY_LOCALE, true).getValue(); // depends on control dependency: [try], data = ... |
public class class_name {
private InstanceType matchHardwareDescriptionWithInstanceType(final HardwareDescription hardwareDescription) {
// Assumes that the available instance types are ordered by number of CPU cores in descending order
for (int i = 0; i < this.availableInstanceTypes.length; i++) {
final Inst... | public class class_name {
private InstanceType matchHardwareDescriptionWithInstanceType(final HardwareDescription hardwareDescription) {
// Assumes that the available instance types are ordered by number of CPU cores in descending order
for (int i = 0; i < this.availableInstanceTypes.length; i++) {
final Inst... |
public class class_name {
public java.util.List<LogGroupField> getLogGroupFields() {
if (logGroupFields == null) {
logGroupFields = new com.amazonaws.internal.SdkInternalList<LogGroupField>();
}
return logGroupFields;
} } | public class class_name {
public java.util.List<LogGroupField> getLogGroupFields() {
if (logGroupFields == null) {
logGroupFields = new com.amazonaws.internal.SdkInternalList<LogGroupField>(); // depends on control dependency: [if], data = [none]
}
return logGroupFields;
} } |
public class class_name {
private BeanConfiguration invokeBeanDefiningMethod(String name, Object[] args) {
BeanConfiguration old = currentBeanConfig;
try {
if(args[0] instanceof Class) {
Class beanClass = args[0] instanceof Class ? (Class)args[0] : args[0].getClass();
... | public class class_name {
private BeanConfiguration invokeBeanDefiningMethod(String name, Object[] args) {
BeanConfiguration old = currentBeanConfig;
try {
if(args[0] instanceof Class) {
Class beanClass = args[0] instanceof Class ? (Class)args[0] : args[0].getClass(); // dep... |
public class class_name {
public Principal getLocalPrincipal()
{
Principal principal;
try {
principal = session.getLocalPrincipal();
} catch (AbstractMethodError e) {
principal = null;
// if the provider does not support it, fallback to local certs.
... | public class class_name {
public Principal getLocalPrincipal()
{
Principal principal;
try {
principal = session.getLocalPrincipal(); // depends on control dependency: [try], data = [none]
} catch (AbstractMethodError e) {
principal = null;
// if the provi... |
public class class_name {
@Override
public void setUserLayout(
IPerson person,
IUserProfile profile,
Document layoutXML,
boolean channelsAdded,
boolean updateFragmentCache) {
final Document plf = (Document) person.getAttribute(Constants.PLF);
... | public class class_name {
@Override
public void setUserLayout(
IPerson person,
IUserProfile profile,
Document layoutXML,
boolean channelsAdded,
boolean updateFragmentCache) {
final Document plf = (Document) person.getAttribute(Constants.PLF);
... |
public class class_name {
private int bucketLowInterval(final int index) {
if (index <= num_linear_buckets) {
return index * interval;
} else {
return cutoff + (1 << (index - num_linear_buckets + exp_bucket_shift));
}
} } | public class class_name {
private int bucketLowInterval(final int index) {
if (index <= num_linear_buckets) {
return index * interval; // depends on control dependency: [if], data = [none]
} else {
return cutoff + (1 << (index - num_linear_buckets + exp_bucket_shift)); // depends on control depende... |
public class class_name {
@Override
public void queueEvent(final FacesEvent event) {
final FacesContext fc = FacesContext.getCurrentInstance();
if (isSelfRequest(fc) && event instanceof AjaxBehaviorEvent) {
final Map<String, String> params = fc.getExternalContext().getRequestParameterM... | public class class_name {
@Override
public void queueEvent(final FacesEvent event) {
final FacesContext fc = FacesContext.getCurrentInstance();
if (isSelfRequest(fc) && event instanceof AjaxBehaviorEvent) {
final Map<String, String> params = fc.getExternalContext().getRequestParameterM... |
public class class_name {
public boolean deselectFeature(Feature feature) {
if (selectedFeatures.containsKey(feature.getId())) {
Feature org = selectedFeatures.remove(feature.getId());
handlerManager.fireEvent(new FeatureDeselectedEvent(org));
return true;
} else {
return false;
}
} } | public class class_name {
public boolean deselectFeature(Feature feature) {
if (selectedFeatures.containsKey(feature.getId())) {
Feature org = selectedFeatures.remove(feature.getId());
handlerManager.fireEvent(new FeatureDeselectedEvent(org)); // depends on control dependency: [if], data = [none]
return tru... |
public class class_name {
public Deployment deploy(URL url, Context context, ClassLoader parent) throws DeployException
{
File archive = (File)context.get(Constants.ATTACHMENT_ARCHIVE);
if (archive == null)
throw new DeployException("Deployment " + url.toExternalForm() + " not found");
... | public class class_name {
public Deployment deploy(URL url, Context context, ClassLoader parent) throws DeployException
{
File archive = (File)context.get(Constants.ATTACHMENT_ARCHIVE);
if (archive == null)
throw new DeployException("Deployment " + url.toExternalForm() + " not found");
... |
public class class_name {
@Override
public void removeByGroupId(long groupId) {
for (CommerceUserSegmentEntry commerceUserSegmentEntry : findByGroupId(
groupId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
remove(commerceUserSegmentEntry);
}
} } | public class class_name {
@Override
public void removeByGroupId(long groupId) {
for (CommerceUserSegmentEntry commerceUserSegmentEntry : findByGroupId(
groupId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
remove(commerceUserSegmentEntry); // depends on control dependency: [for], data = [commerceUserSegmen... |
public class class_name {
private String pathToKey(Path path) {
if (!path.isAbsolute()) {
path = new Path(workingDir, path);
}
if (path.toUri().getScheme() != null && path.toUri().getPath().isEmpty()) {
return "";
}
return path.toUri().getPath().substring(1);
} } | public class class_name {
private String pathToKey(Path path) {
if (!path.isAbsolute()) {
path = new Path(workingDir, path); // depends on control dependency: [if], data = [none]
}
if (path.toUri().getScheme() != null && path.toUri().getPath().isEmpty()) {
return ""; // depends on control depe... |
public class class_name {
public void warnIfOpen() {
if (allocationSite == null || !ENABLED) {
return;
}
String message =
("A resource was acquired at attached stack trace but never released. "
+ "See java.io.Closeable for information on avoiding re... | public class class_name {
public void warnIfOpen() {
if (allocationSite == null || !ENABLED) {
return; // depends on control dependency: [if], data = [none]
}
String message =
("A resource was acquired at attached stack trace but never released. "
+... |
public class class_name {
public int writeTemplateEntry(String template, Object entry) {
int returnCode = htod.writeTemplateEntry(template, entry);
if (returnCode == HTODDynacache.DISK_EXCEPTION) {
stopOnError(this.htod.diskCacheException);
}
return returnCode;
} } | public class class_name {
public int writeTemplateEntry(String template, Object entry) {
int returnCode = htod.writeTemplateEntry(template, entry);
if (returnCode == HTODDynacache.DISK_EXCEPTION) {
stopOnError(this.htod.diskCacheException); // depends on control dependency: [if], data = [no... |
public class class_name {
public void addImportExportHandler(I_CmsImportExportHandler handler) {
if (LOG.isDebugEnabled()) {
LOG.debug(Messages.get().getBundle().key(Messages.LOG_IMPORTEXPORT_ADDED_IMPORTEXPORT_HANDLER_1, handler));
}
m_importExportHandlers.add(handler);
} } | public class class_name {
public void addImportExportHandler(I_CmsImportExportHandler handler) {
if (LOG.isDebugEnabled()) {
LOG.debug(Messages.get().getBundle().key(Messages.LOG_IMPORTEXPORT_ADDED_IMPORTEXPORT_HANDLER_1, handler)); // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
public void serializeInternally( JsonWriter writer, T value, JsonSerializationContext ctx, JsonSerializerParameters params,
IdentitySerializationInfo<T> defaultIdentityInfo, TypeSerializationInfo<T> defaultTypeInfo ) {
// Processing the parameters... | public class class_name {
public void serializeInternally( JsonWriter writer, T value, JsonSerializationContext ctx, JsonSerializerParameters params,
IdentitySerializationInfo<T> defaultIdentityInfo, TypeSerializationInfo<T> defaultTypeInfo ) {
// Processing the parameters... |
public class class_name {
public static boolean npmVersionsMatch(String current, String next) {
String left = current;
String right = next;
if (left == null || right == null) {
return false;
}
if (left.equals(right) || "*".equals(left) || "*".equals(right)) {
... | public class class_name {
public static boolean npmVersionsMatch(String current, String next) {
String left = current;
String right = next;
if (left == null || right == null) {
return false; // depends on control dependency: [if], data = [none]
}
if (left.equals(righ... |
public class class_name {
public void marshall(CreateRule createRule, ProtocolMarshaller protocolMarshaller) {
if (createRule == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(createRule.getInterval... | public class class_name {
public void marshall(CreateRule createRule, ProtocolMarshaller protocolMarshaller) {
if (createRule == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(createRule.getInterval... |
public class class_name {
public Policies withAppCookieStickinessPolicies(AppCookieStickinessPolicy... appCookieStickinessPolicies) {
if (this.appCookieStickinessPolicies == null) {
setAppCookieStickinessPolicies(new com.amazonaws.internal.SdkInternalList<AppCookieStickinessPolicy>(appCookieStickin... | public class class_name {
public Policies withAppCookieStickinessPolicies(AppCookieStickinessPolicy... appCookieStickinessPolicies) {
if (this.appCookieStickinessPolicies == null) {
setAppCookieStickinessPolicies(new com.amazonaws.internal.SdkInternalList<AppCookieStickinessPolicy>(appCookieStickin... |
public class class_name {
@Override
public EList<JvmTypeReference> getFiredEvents()
{
if (firedEvents == null)
{
firedEvents = new EObjectContainmentEList<JvmTypeReference>(JvmTypeReference.class, this, SarlPackage.SARL_ACTION__FIRED_EVENTS);
}
return firedEvents;
} } | public class class_name {
@Override
public EList<JvmTypeReference> getFiredEvents()
{
if (firedEvents == null)
{
firedEvents = new EObjectContainmentEList<JvmTypeReference>(JvmTypeReference.class, this, SarlPackage.SARL_ACTION__FIRED_EVENTS); // depends on control dependency: [if], data = [none]
}
return ... |
public class class_name {
public void marshall(UserPoolDescriptionType userPoolDescriptionType, ProtocolMarshaller protocolMarshaller) {
if (userPoolDescriptionType == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMar... | public class class_name {
public void marshall(UserPoolDescriptionType userPoolDescriptionType, ProtocolMarshaller protocolMarshaller) {
if (userPoolDescriptionType == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMar... |
public class class_name {
String formatUnits(int units) {
switch (unitType) {
case ENGLISH:
return NumberFormat.getDecimalFormat().format(units) + (widthInUnitsIsMiles ? " mi" : " yd");
case ENGLISH_FOOT:
return NumberFormat.getDecimalFormat().format(units) + (widthInUnitsIsMiles ? " mi" : " ft");
c... | public class class_name {
String formatUnits(int units) {
switch (unitType) {
case ENGLISH:
return NumberFormat.getDecimalFormat().format(units) + (widthInUnitsIsMiles ? " mi" : " yd");
case ENGLISH_FOOT:
return NumberFormat.getDecimalFormat().format(units) + (widthInUnitsIsMiles ? " mi" : " ft");
c... |
public class class_name {
public final void mDecimalLiteral() throws RecognitionException {
try {
int _type = DecimalLiteral;
int _channel = DEFAULT_TOKEN_CHANNEL;
// src/main/resources/org/drools/compiler/semantics/java/parser/Java.g:1304:16: ( ( '0' | NonZeroDigit ( ( Digits )? | Underscores Digits ) ) ( ... | public class class_name {
public final void mDecimalLiteral() throws RecognitionException {
try {
int _type = DecimalLiteral;
int _channel = DEFAULT_TOKEN_CHANNEL;
// src/main/resources/org/drools/compiler/semantics/java/parser/Java.g:1304:16: ( ( '0' | NonZeroDigit ( ( Digits )? | Underscores Digits ) ) ( ... |
public class class_name {
private void getSubArray(byte[] b, int traceDataOffset) {
for (int x = 0; x <= b.length - 1; x++) {
b[x] = traceData[traceDataOffset + x];
}
} } | public class class_name {
private void getSubArray(byte[] b, int traceDataOffset) {
for (int x = 0; x <= b.length - 1; x++) {
b[x] = traceData[traceDataOffset + x]; // depends on control dependency: [for], data = [x]
}
} } |
public class class_name {
public void appendAllParametersDetails(StringBuilder out, int indentCount, String indent,
List<ParameterDescription> sortedParameters) {
if (sortedParameters.size() > 0) {
out.append(indent).append(" Options:\n");
}
for (ParameterDescription p... | public class class_name {
public void appendAllParametersDetails(StringBuilder out, int indentCount, String indent,
List<ParameterDescription> sortedParameters) {
if (sortedParameters.size() > 0) {
out.append(indent).append(" Options:\n"); // depends on control dependency: [if], data =... |
public class class_name {
public void acceptDbgpThread(IDbgpSession session, IProgressMonitor monitor)
{
SubMonitor sub = SubMonitor.convert(monitor, 100);
try
{
DbgpException error = session.getInfo().getError();
if (error != null)
{
throw error;
}
session.configure(target.getOptions());
... | public class class_name {
public void acceptDbgpThread(IDbgpSession session, IProgressMonitor monitor)
{
SubMonitor sub = SubMonitor.convert(monitor, 100);
try
{
DbgpException error = session.getInfo().getError();
if (error != null)
{
throw error;
}
session.configure(target.getOptions()); // ... |
public class class_name {
@Nullable
public static <T extends Annotation> T extract(Class<?> targetClass, Class<T> annotationClass) {
T annotation = null;
if (targetClass.isAnnotationPresent(annotationClass)) {
annotation = targetClass.getAnnotation(annotationClass);
if (anno... | public class class_name {
@Nullable
public static <T extends Annotation> T extract(Class<?> targetClass, Class<T> annotationClass) {
T annotation = null;
if (targetClass.isAnnotationPresent(annotationClass)) {
annotation = targetClass.getAnnotation(annotationClass); // depends on contro... |
public class class_name {
private static Node buildNodeForPath( String path ) {
// The path cannot be empty, guaranteed by AllHelper
final String[] elements = path.split(PATH_SEPARATOR, -1);
final int last = elements.length - 1;
// Iterate in reverse order, as the instances we want are those on the right sid... | public class class_name {
private static Node buildNodeForPath( String path ) {
// The path cannot be empty, guaranteed by AllHelper
final String[] elements = path.split(PATH_SEPARATOR, -1);
final int last = elements.length - 1;
// Iterate in reverse order, as the instances we want are those on the right sid... |
public class class_name {
public URLConnection getResourceConnection(String resourceName) throws ResourceException {
// Get the URLConnection
URLConnection groovyScriptConn = null;
ResourceException se = null;
for (URL root : roots) {
URL scriptURL = null;
try {... | public class class_name {
public URLConnection getResourceConnection(String resourceName) throws ResourceException {
// Get the URLConnection
URLConnection groovyScriptConn = null;
ResourceException se = null;
for (URL root : roots) {
URL scriptURL = null;
try {... |
public class class_name {
public void setParallelized(boolean parallelized) {
for(Trainable t : bundle.values()) {
if (t !=null && t instanceof Parallelizable) {
((Parallelizable)t).setParallelized(parallelized);
}
}
} } | public class class_name {
public void setParallelized(boolean parallelized) {
for(Trainable t : bundle.values()) {
if (t !=null && t instanceof Parallelizable) {
((Parallelizable)t).setParallelized(parallelized); // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
protected RequestInfoInstanceList convertToRequestInfoList(List<RequestInfo> requests, boolean withErrors, boolean withData) {
RequestInfoInstance[] requestInfos = new RequestInfoInstance[requests.size()];
int index = 0;
for (RequestInfo request : requests) {
... | public class class_name {
protected RequestInfoInstanceList convertToRequestInfoList(List<RequestInfo> requests, boolean withErrors, boolean withData) {
RequestInfoInstance[] requestInfos = new RequestInfoInstance[requests.size()];
int index = 0;
for (RequestInfo request : requests) {
... |
public class class_name {
public boolean isPermit(boolean reload) {
if (reload) {// 判断是否需要重新reload
reload();
}
boolean result = channelStatus.isStart() && mainStemStatus.isOverTake();
if (existOpposite) {// 判断是否存在反向同步
result &= oppositeMainStemStatus.isOverTake(... | public class class_name {
public boolean isPermit(boolean reload) {
if (reload) {// 判断是否需要重新reload
reload(); // depends on control dependency: [if], data = [none]
}
boolean result = channelStatus.isStart() && mainStemStatus.isOverTake();
if (existOpposite) {// 判断是否存在反向同步
... |
public class class_name {
public static URI concatPath(URI base, String relPath) {
String resultPath = base.getPath() + StringUtils.stripStart(relPath, "/");
try {
return new URI(base.getScheme(), base.getUserInfo(), base.getHost(), base.getPort(), resultPath, null, null);
} catch (... | public class class_name {
public static URI concatPath(URI base, String relPath) {
String resultPath = base.getPath() + StringUtils.stripStart(relPath, "/");
try {
return new URI(base.getScheme(), base.getUserInfo(), base.getHost(), base.getPort(), resultPath, null, null); // depends on con... |
public class class_name {
public static BitfinexCurrencyPair fromSymbolString(final String symbolString) {
for (final BitfinexCurrencyPair currency : BitfinexCurrencyPair.values()) {
if (currency.toBitfinexString().equalsIgnoreCase(symbolString)) {
return currency;
}
}
throw new IllegalArgumentExceptio... | public class class_name {
public static BitfinexCurrencyPair fromSymbolString(final String symbolString) {
for (final BitfinexCurrencyPair currency : BitfinexCurrencyPair.values()) {
if (currency.toBitfinexString().equalsIgnoreCase(symbolString)) {
return currency; // depends on control dependency: [if], data... |
public class class_name {
public void classifyIncremental() {
if(as.isEmpty()) return;
// Clear any state from previous incremental classifications
newContexts.clear();
affectedContexts.clear();
int numNewConcepts = 0;
// Determine which contexts are affected
... | public class class_name {
public void classifyIncremental() {
if(as.isEmpty()) return;
// Clear any state from previous incremental classifications
newContexts.clear();
affectedContexts.clear();
int numNewConcepts = 0;
// Determine which contexts are affected
... |
public class class_name {
private void dispatchLegacyEventIfNeeded(ManagerEvent event)
{
if (event instanceof DialBeginEvent)
{
DialEvent legacyEvent = new DialEvent((DialBeginEvent) event);
dispatchEvent(legacyEvent);
}
} } | public class class_name {
private void dispatchLegacyEventIfNeeded(ManagerEvent event)
{
if (event instanceof DialBeginEvent)
{
DialEvent legacyEvent = new DialEvent((DialBeginEvent) event);
dispatchEvent(legacyEvent); // 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.