code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
@Beta
public EventGridEvent[] deserializeEventGridEvents(final String requestContent, final SerializerAdapter<ObjectMapper> serializerAdapter) throws IOException {
EventGridEvent[] eventGridEvents = serializerAdapter.<EventGridEvent[]>deserialize(requestContent, EventGridEvent[].c... | public class class_name {
@Beta
public EventGridEvent[] deserializeEventGridEvents(final String requestContent, final SerializerAdapter<ObjectMapper> serializerAdapter) throws IOException {
EventGridEvent[] eventGridEvents = serializerAdapter.<EventGridEvent[]>deserialize(requestContent, EventGridEvent[].c... |
public class class_name {
public String getNameAsSingleString() {
List<StringType> nameParts = new ArrayList<StringType>();
nameParts.addAll(getPrefix());
nameParts.addAll(getGiven());
nameParts.add(getFamilyElement());
nameParts.addAll(getSuffix());
if (nameParts.size() > 0) {
ret... | public class class_name {
public String getNameAsSingleString() {
List<StringType> nameParts = new ArrayList<StringType>();
nameParts.addAll(getPrefix());
nameParts.addAll(getGiven());
nameParts.add(getFamilyElement());
nameParts.addAll(getSuffix());
if (nameParts.size() > 0) {
ret... |
public class class_name {
public static double cdf(double val, double shape, double location, double scale) {
if(val < location) {
return 0;
}
val = (val - location) / scale;
return 1. / (1. + FastMath.pow(val, -shape));
} } | public class class_name {
public static double cdf(double val, double shape, double location, double scale) {
if(val < location) {
return 0; // depends on control dependency: [if], data = [none]
}
val = (val - location) / scale;
return 1. / (1. + FastMath.pow(val, -shape));
} } |
public class class_name {
public IpSet withIpAddresses(String... ipAddresses) {
if (this.ipAddresses == null) {
setIpAddresses(new java.util.ArrayList<String>(ipAddresses.length));
}
for (String ele : ipAddresses) {
this.ipAddresses.add(ele);
}
return thi... | public class class_name {
public IpSet withIpAddresses(String... ipAddresses) {
if (this.ipAddresses == null) {
setIpAddresses(new java.util.ArrayList<String>(ipAddresses.length)); // depends on control dependency: [if], data = [none]
}
for (String ele : ipAddresses) {
t... |
public class class_name {
public boolean process(LogProcessContext logCtx){
Boolean currentTrxStatus = logCtx.getFinalMasterTransStatus();
logCtx.getMasterTransactionStatusVotter().setTransactionStatus(currentTrxStatus);
LogCollection logCollection = logCtx.getLogCollection();
List<Content> ordered... | public class class_name {
public boolean process(LogProcessContext logCtx){
Boolean currentTrxStatus = logCtx.getFinalMasterTransStatus();
logCtx.getMasterTransactionStatusVotter().setTransactionStatus(currentTrxStatus);
LogCollection logCollection = logCtx.getLogCollection();
List<Content> ordered... |
public class class_name {
public void autoMap(final Datastore datastore) {
setDatastore(datastore);
try (DatastoreConnection con = datastore.openConnection()) {
final SchemaNavigator schemaNavigator = con.getSchemaNavigator();
for (final Entry<String, Column> entry : _map.entryS... | public class class_name {
public void autoMap(final Datastore datastore) {
setDatastore(datastore);
try (DatastoreConnection con = datastore.openConnection()) {
final SchemaNavigator schemaNavigator = con.getSchemaNavigator();
for (final Entry<String, Column> entry : _map.entryS... |
public class class_name {
public boolean put(T item) {
BucketAndTag pos = hasher.generate(item);
long curTag = pos.tag;
long curIndex = pos.index;
long altIndex = hasher.altIndex(curIndex, curTag);
bucketLocker.lockBucketsWrite(curIndex, altIndex);
try {
if (table.insertToBucket(curIndex, curTag)... | public class class_name {
public boolean put(T item) {
BucketAndTag pos = hasher.generate(item);
long curTag = pos.tag;
long curIndex = pos.index;
long altIndex = hasher.altIndex(curIndex, curTag);
bucketLocker.lockBucketsWrite(curIndex, altIndex);
try {
if (table.insertToBucket(curIndex, curTag)... |
public class class_name {
@Deprecated
public static PatternInfo genPatternInfo(String intervalPattern,
boolean laterDateFirst) {
int splitPoint = splitPatternInto2Part(intervalPattern);
String firstPart = intervalPattern.substring(0, splitPoint);
Strin... | public class class_name {
@Deprecated
public static PatternInfo genPatternInfo(String intervalPattern,
boolean laterDateFirst) {
int splitPoint = splitPatternInto2Part(intervalPattern);
String firstPart = intervalPattern.substring(0, splitPoint);
Strin... |
public class class_name {
@Override
public void rot(long N, INDArray X, INDArray Y, double c, double s) {
if (Nd4j.getExecutioner().getProfilingMode() == OpExecutioner.ProfilingMode.ALL)
OpProfiler.getInstance().processBlasCall(false, X, Y);
if (X.isSparse() && !Y.isSparse()) {
... | public class class_name {
@Override
public void rot(long N, INDArray X, INDArray Y, double c, double s) {
if (Nd4j.getExecutioner().getProfilingMode() == OpExecutioner.ProfilingMode.ALL)
OpProfiler.getInstance().processBlasCall(false, X, Y);
if (X.isSparse() && !Y.isSparse()) {
... |
public class class_name {
void addWorker(final VortexWorkerManager vortexWorkerManager) {
lock.lock();
try {
if (!terminated) {
if (!removedBeforeAddedWorkers.contains(vortexWorkerManager.getId())) {
this.runningWorkers.put(vortexWorkerManager.getId(), vortexWorkerManager);
th... | public class class_name {
void addWorker(final VortexWorkerManager vortexWorkerManager) {
lock.lock();
try {
if (!terminated) {
if (!removedBeforeAddedWorkers.contains(vortexWorkerManager.getId())) {
this.runningWorkers.put(vortexWorkerManager.getId(), vortexWorkerManager); // depends o... |
public class class_name {
public static Set<JType> getPossibleTypes(FieldOutline fieldOutline,
Aspect aspect) {
Validate.notNull(fieldOutline);
final ClassOutline classOutline = fieldOutline.parent();
final Outline outline = classOutline.parent();
final CPropertyInfo propertyInfo = fieldOutline.getPropertyI... | public class class_name {
public static Set<JType> getPossibleTypes(FieldOutline fieldOutline,
Aspect aspect) {
Validate.notNull(fieldOutline);
final ClassOutline classOutline = fieldOutline.parent();
final Outline outline = classOutline.parent();
final CPropertyInfo propertyInfo = fieldOutline.getPropertyI... |
public class class_name {
public static final boolean homeMethodEquals(Method homeMethod,
Properties beanMethodProps)
{
if ((homeMethod == null) || (beanMethodProps == null)) {
return false;
}
//----------------------
// ... | public class class_name {
public static final boolean homeMethodEquals(Method homeMethod,
Properties beanMethodProps)
{
if ((homeMethod == null) || (beanMethodProps == null)) {
return false; // depends on control dependency: [if], data = [none]
... |
public class class_name {
public void marshall(TracingConfig tracingConfig, ProtocolMarshaller protocolMarshaller) {
if (tracingConfig == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(tracingConfig... | public class class_name {
public void marshall(TracingConfig tracingConfig, ProtocolMarshaller protocolMarshaller) {
if (tracingConfig == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(tracingConfig... |
public class class_name {
public void cacheThreadLocalRawStore() {
Long threadId = this.getId();
RawStore threadLocalRawStore = HiveMetaStore.HMSHandler.getRawStore();
if (threadLocalRawStore != null && !threadRawStoreMap.containsKey(threadId)) {
LOG.debug("Adding RawStore: " + threadLocalRawStore + ... | public class class_name {
public void cacheThreadLocalRawStore() {
Long threadId = this.getId();
RawStore threadLocalRawStore = HiveMetaStore.HMSHandler.getRawStore();
if (threadLocalRawStore != null && !threadRawStoreMap.containsKey(threadId)) {
LOG.debug("Adding RawStore: " + threadLocalRawStore + ... |
public class class_name {
public String latencyHistoReport() {
ByteArrayOutputStream baos= new ByteArrayOutputStream();
PrintStream pw = null;
try {
pw = new PrintStream(baos, false, Charsets.UTF_8.name());
} catch (UnsupportedEncodingException e) {
Throwables.pr... | public class class_name {
public String latencyHistoReport() {
ByteArrayOutputStream baos= new ByteArrayOutputStream();
PrintStream pw = null;
try {
pw = new PrintStream(baos, false, Charsets.UTF_8.name()); // depends on control dependency: [try], data = [none]
} catch (Unsu... |
public class class_name {
private void callOnTextMessage(byte[] data)
{
if (mWebSocket.isDirectTextMessage())
{
mWebSocket.getListenerManager().callOnTextMessage(data);
return;
}
try
{
// Interpret the byte array as a string.
... | public class class_name {
private void callOnTextMessage(byte[] data)
{
if (mWebSocket.isDirectTextMessage())
{
mWebSocket.getListenerManager().callOnTextMessage(data); // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data... |
public class class_name {
HtmlTag attr(String name, String value) {
if (attrs == null) {
attrs = new HashMap<>();
}
attrs.put(name, value);
return this;
} } | public class class_name {
HtmlTag attr(String name, String value) {
if (attrs == null) {
attrs = new HashMap<>(); // depends on control dependency: [if], data = [none]
}
attrs.put(name, value);
return this;
} } |
public class class_name {
public Set<String> getSelected() {
Set<String> result = new HashSet<String>();
int i = 0;
for (Map.Entry<String, String> entry : m_items.entrySet()) {
String key = entry.getKey();
CmsCheckBox checkBox = m_checkboxes.get(i);
i... | public class class_name {
public Set<String> getSelected() {
Set<String> result = new HashSet<String>();
int i = 0;
for (Map.Entry<String, String> entry : m_items.entrySet()) {
String key = entry.getKey();
CmsCheckBox checkBox = m_checkboxes.get(i);
i... |
public class class_name {
protected boolean findPropertyAnnotations(PojoDescriptorBuilder descriptorBuilder) {
boolean annotationFound = false;
PojoDescriptor<?> descriptor = descriptorBuilder.getDescriptor(getStateClass());
for (PojoPropertyDescriptor propertyDescriptor : descriptor.getPropertyDescriptor... | public class class_name {
protected boolean findPropertyAnnotations(PojoDescriptorBuilder descriptorBuilder) {
boolean annotationFound = false;
PojoDescriptor<?> descriptor = descriptorBuilder.getDescriptor(getStateClass());
for (PojoPropertyDescriptor propertyDescriptor : descriptor.getPropertyDescriptor... |
public class class_name {
public void setDiskContainers(java.util.Collection<ImageDiskContainer> diskContainers) {
if (diskContainers == null) {
this.diskContainers = null;
return;
}
this.diskContainers = new com.amazonaws.internal.SdkInternalList<ImageDiskContainer>(di... | public class class_name {
public void setDiskContainers(java.util.Collection<ImageDiskContainer> diskContainers) {
if (diskContainers == null) {
this.diskContainers = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none... |
public class class_name {
public DescribeServices getAvailableServices() {
if (services == null) {
Set<String> keys = this.getRegisteredConfigurations().keySet();
Iterator<String> it = keys.iterator();
String id = null;
services = new DescribeServices();
while (it.hasNext()) {
id = it.next();
... | public class class_name {
public DescribeServices getAvailableServices() {
if (services == null) {
Set<String> keys = this.getRegisteredConfigurations().keySet();
Iterator<String> it = keys.iterator();
String id = null;
services = new DescribeServices(); // depends on control dependency: [if], data = [... |
public class class_name {
@Override
public Object getData() {
BeanAndProviderBoundComponentModel model = getComponentModel();
Object data = model.getData();
String beanProperty = getBeanProperty();
if (beanProperty != null) {
Object sharedData = ((BeanAndProviderBoundComponentModel) getDefaultModel()).get... | public class class_name {
@Override
public Object getData() {
BeanAndProviderBoundComponentModel model = getComponentModel();
Object data = model.getData();
String beanProperty = getBeanProperty();
if (beanProperty != null) {
Object sharedData = ((BeanAndProviderBoundComponentModel) getDefaultModel()).get... |
public class class_name {
private void compress() {
if (sample.size() < 2) {
return;
}
ListIterator<Item> it = sample.listIterator();
int removed = 0;
Item prev = null;
Item next = it.next();
while (it.hasNext()) {
prev = next;
... | public class class_name {
private void compress() {
if (sample.size() < 2) {
return; // depends on control dependency: [if], data = [none]
}
ListIterator<Item> it = sample.listIterator();
int removed = 0;
Item prev = null;
Item next = it.next();
wh... |
public class class_name {
public void restoreState(FacesContext context, Object state)
{
if (state != null)
{
methodExpression = (MethodExpression) state;
}
} } | public class class_name {
public void restoreState(FacesContext context, Object state)
{
if (state != null)
{
methodExpression = (MethodExpression) state; // depends on control dependency: [if], data = [none]
}
} } |
public class class_name {
public Boolean toBoolean(final Object value, final Boolean defaultValue) {
final Boolean result = toBoolean(value);
if (result == null) {
return defaultValue;
}
return result;
} } | public class class_name {
public Boolean toBoolean(final Object value, final Boolean defaultValue) {
final Boolean result = toBoolean(value);
if (result == null) {
return defaultValue; // depends on control dependency: [if], data = [none]
}
return result;
} } |
public class class_name {
private boolean nextSearchItemset(BitVector bv, int[] scratchi, int[] iters) {
final int last = scratchi.length - 1;
for(int j = last; j >= 0; j--) {
int n = bv.iterAdvance(iters[j]);
if(n >= 0 && (j == last || n != iters[j + 1])) {
iters[j] = n;
scratchi[j... | public class class_name {
private boolean nextSearchItemset(BitVector bv, int[] scratchi, int[] iters) {
final int last = scratchi.length - 1;
for(int j = last; j >= 0; j--) {
int n = bv.iterAdvance(iters[j]);
if(n >= 0 && (j == last || n != iters[j + 1])) {
iters[j] = n; // depends on cont... |
public class class_name {
public void parseLinkHeader(final String link) {
final String [] links = link.split(",");
for (final String part : links) {
final String[] segments = part.split(";");
if (segments.length < 2)
continue;
String linkPart = segments[0].trim();
if (!linkPart.startsWith("<") ... | public class class_name {
public void parseLinkHeader(final String link) {
final String [] links = link.split(",");
for (final String part : links) {
final String[] segments = part.split(";");
if (segments.length < 2)
continue;
String linkPart = segments[0].trim();
if (!linkPart.startsWith("<") ... |
public class class_name {
public ArrayList<JTSFeature> getFeaturesByCategory(String category, double lon, double lat, double distanceInMeters,
List<Param> optionalParams) throws Exception {
List<String> ids = serviceManager.getAvailableServices().getServicesIDByCategory(category);
ArrayList<JTSFeature> features... | public class class_name {
public ArrayList<JTSFeature> getFeaturesByCategory(String category, double lon, double lat, double distanceInMeters,
List<Param> optionalParams) throws Exception {
List<String> ids = serviceManager.getAvailableServices().getServicesIDByCategory(category);
ArrayList<JTSFeature> features... |
public class class_name {
public void initialize(OnNavigationReadyCallback onNavigationReadyCallback,
@NonNull CameraPosition initialMapCameraPosition) {
this.onNavigationReadyCallback = onNavigationReadyCallback;
this.initialMapCameraPosition = initialMapCameraPosition;
if (!isMap... | public class class_name {
public void initialize(OnNavigationReadyCallback onNavigationReadyCallback,
@NonNull CameraPosition initialMapCameraPosition) {
this.onNavigationReadyCallback = onNavigationReadyCallback;
this.initialMapCameraPosition = initialMapCameraPosition;
if (!isMap... |
public class class_name {
public static void closeQuietly(final Session session)
{
if (session != null) {
try {
session.close();
}
catch (JMSException je) {
if (je.getCause() instanceof InterruptedException) {
LOG.trace... | public class class_name {
public static void closeQuietly(final Session session)
{
if (session != null) {
try {
session.close(); // depends on control dependency: [try], data = [none]
}
catch (JMSException je) {
if (je.getCause() instanceo... |
public class class_name {
private final void step4() {
switch (b[k]) {
case 'e':
if (endWith("icate")) {
r("ic");
break;
}
if (endWith("ative")) {
r("");
break;
... | public class class_name {
private final void step4() {
switch (b[k]) {
case 'e':
if (endWith("icate")) {
r("ic"); // depends on control dependency: [if], data = [none]
break;
}
if (endWith("ative")) {
... |
public class class_name {
public boolean merge(Row other) throws IllegalArgumentException
{
if(canMerge(other))
{
occupancySet.or(other.occupancySet);
for(GridEvent e : other.events)
{
events.add(e);
}
return true;
}
else
{
return false;
}
} } | public class class_name {
public boolean merge(Row other) throws IllegalArgumentException
{
if(canMerge(other))
{
occupancySet.or(other.occupancySet);
for(GridEvent e : other.events)
{
events.add(e); // depends on control dependency: [for], data = [e]
}
return true;
... |
public class class_name {
public void marshall(DescribeOrganizationalUnitRequest describeOrganizationalUnitRequest, ProtocolMarshaller protocolMarshaller) {
if (describeOrganizationalUnitRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
... | public class class_name {
public void marshall(DescribeOrganizationalUnitRequest describeOrganizationalUnitRequest, ProtocolMarshaller protocolMarshaller) {
if (describeOrganizationalUnitRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
... |
public class class_name {
public static CmsSimpleSearchConfigurationParser createInstanceWithNoJsonConfig(
CmsObject cms,
CmsListManager.ListConfigurationBean config) {
try {
return new CmsSimpleSearchConfigurationParser(cms, config, null);
} catch (JSONException e) {
... | public class class_name {
public static CmsSimpleSearchConfigurationParser createInstanceWithNoJsonConfig(
CmsObject cms,
CmsListManager.ListConfigurationBean config) {
try {
return new CmsSimpleSearchConfigurationParser(cms, config, null); // depends on control dependency: [try], ... |
public class class_name {
private void addPrivateCredential(final Subject subject, final Object credential) {
if (!WildFlySecurityManager.isChecking()) {
subject.getPrivateCredentials().add(credential);
}
else {
AccessController.doPrivileged((PrivilegedAction<Void>) () -... | public class class_name {
private void addPrivateCredential(final Subject subject, final Object credential) {
if (!WildFlySecurityManager.isChecking()) {
subject.getPrivateCredentials().add(credential); // depends on control dependency: [if], data = [none]
}
else {
Acces... |
public class class_name {
public final EObject ruleXSwitchExpression() throws RecognitionException {
EObject current = null;
Token otherlv_1=null;
Token otherlv_2=null;
Token otherlv_4=null;
Token otherlv_6=null;
Token otherlv_8=null;
Token otherlv_10=null;
... | public class class_name {
public final EObject ruleXSwitchExpression() throws RecognitionException {
EObject current = null;
Token otherlv_1=null;
Token otherlv_2=null;
Token otherlv_4=null;
Token otherlv_6=null;
Token otherlv_8=null;
Token otherlv_10=null;
... |
public class class_name {
protected static String getCaptureTime(Metadata metadata) {
String captureTimeMillis = metadata.getFirstValue(REQUEST_TIME_KEY);
Instant capturedAt = Instant.now();
if (captureTimeMillis != null) {
try {
long millis = Long.parseLong(captureT... | public class class_name {
protected static String getCaptureTime(Metadata metadata) {
String captureTimeMillis = metadata.getFirstValue(REQUEST_TIME_KEY);
Instant capturedAt = Instant.now();
if (captureTimeMillis != null) {
try {
long millis = Long.parseLong(captureT... |
public class class_name {
protected void checkAndReplaceInput(List<IntrospectedColumn> columns, XmlElement xe){
for(Element element : xe.getElements()){
if(element instanceof XmlElement){
checkAndReplaceInput(columns, (XmlElement) element);
}
if(element instanceof TextElement){
TextElem... | public class class_name {
protected void checkAndReplaceInput(List<IntrospectedColumn> columns, XmlElement xe){
for(Element element : xe.getElements()){
if(element instanceof XmlElement){
checkAndReplaceInput(columns, (XmlElement) element); // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
private <T> Observable<T> asObservable(Executor<T> transaction) {
return Observable.create(emitter -> storeFactory.execute(new StoreTransaction<ChatStore>() {
@Override
protected void execute(ChatStore store) {
try {
transact... | public class class_name {
private <T> Observable<T> asObservable(Executor<T> transaction) {
return Observable.create(emitter -> storeFactory.execute(new StoreTransaction<ChatStore>() {
@Override
protected void execute(ChatStore store) {
try {
transact... |
public class class_name {
public T getMaximum() {
if (this.isEmpty()) {
throw new NoSuchElementException(
"Empty time windows have no maximum.");
}
int n = this.intervals.size();
Boundary<T> upper = this.intervals.get(n - 1).getEnd();
T max = upper.... | public class class_name {
public T getMaximum() {
if (this.isEmpty()) {
throw new NoSuchElementException(
"Empty time windows have no maximum.");
}
int n = this.intervals.size();
Boundary<T> upper = this.intervals.get(n - 1).getEnd();
T max = upper.... |
public class class_name {
protected void sendPageBreakToBottom(JRDesignBand band) {
JRElement[] elems = band.getElements();
JRElement aux = null;
for (JRElement elem : elems) {
if (("" + elem.getKey()).startsWith(PAGE_BREAK_FOR_)) {
aux = elem;
break;
}
}
if (aux != null)
((JRDesignElement)a... | public class class_name {
protected void sendPageBreakToBottom(JRDesignBand band) {
JRElement[] elems = band.getElements();
JRElement aux = null;
for (JRElement elem : elems) {
if (("" + elem.getKey()).startsWith(PAGE_BREAK_FOR_)) {
aux = elem; // depends on control dependency: [if], data = [none]
bre... |
public class class_name {
public static Class<?> getPrototypeClass(ItemRule ir, Object value) {
ItemValueType valueType = ir.getValueType();
if (ir.getType() == ItemType.ARRAY) {
if (valueType == ItemValueType.STRING) {
return String[].class;
} else if (valueType... | public class class_name {
public static Class<?> getPrototypeClass(ItemRule ir, Object value) {
ItemValueType valueType = ir.getValueType();
if (ir.getType() == ItemType.ARRAY) {
if (valueType == ItemValueType.STRING) {
return String[].class; // depends on control dependency... |
public class class_name {
public OobResponse getOobResponse(HttpServletRequest req, String gitkitToken)
throws GitkitServerException {
try {
String action = req.getParameter("action");
if ("resetPassword".equals(action)) {
String oobLink = buildOobLink(buildPasswordResetRequest(req), acti... | public class class_name {
public OobResponse getOobResponse(HttpServletRequest req, String gitkitToken)
throws GitkitServerException {
try {
String action = req.getParameter("action");
if ("resetPassword".equals(action)) {
String oobLink = buildOobLink(buildPasswordResetRequest(req), acti... |
public class class_name {
public void marshall(UpdateUserRequest updateUserRequest, ProtocolMarshaller protocolMarshaller) {
if (updateUserRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(u... | public class class_name {
public void marshall(UpdateUserRequest updateUserRequest, ProtocolMarshaller protocolMarshaller) {
if (updateUserRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(u... |
public class class_name {
public void setFilterGUIDs(List<String> filterGUIDs)
{
int i = 0;
for (String filterGUID : filterGUIDs)
{
// Remove filters (we're replacing them)
removeFilter("Filter_" + i);
// Build a new Filter_0 element
Element filter = buildFilterElement("Filter_" + i, filterGUID);
... | public class class_name {
public void setFilterGUIDs(List<String> filterGUIDs)
{
int i = 0;
for (String filterGUID : filterGUIDs)
{
// Remove filters (we're replacing them)
removeFilter("Filter_" + i); // depends on control dependency: [for], data = [none]
// Build a new Filter_0 element
Element f... |
public class class_name {
void showStopLine(Dim.StackFrame frame) {
String sourceName = frame.getUrl();
if (sourceName == null || sourceName.equals("<stdin>")) {
if (console.isVisible()) {
console.show();
}
} else {
showFileWindow(sourceName, ... | public class class_name {
void showStopLine(Dim.StackFrame frame) {
String sourceName = frame.getUrl();
if (sourceName == null || sourceName.equals("<stdin>")) {
if (console.isVisible()) {
console.show(); // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
public static Object parsePattern(String pattern) {
// Unfortunately, this method shares a fair amount of logic with Topic.parsePattern
// but it is hard to figure out how to factor them.
char[] accum = new char[pattern.length()];
int finger = 0;
List tokens = new ArrayLis... | public class class_name {
public static Object parsePattern(String pattern) {
// Unfortunately, this method shares a fair amount of logic with Topic.parsePattern
// but it is hard to figure out how to factor them.
char[] accum = new char[pattern.length()];
int finger = 0;
List tokens = new ArrayLis... |
public class class_name {
private List<CmsSelectWidgetOption> getSites() {
List<CmsSelectWidgetOption> sites = new ArrayList<CmsSelectWidgetOption>();
List<CmsSite> sitesList = OpenCms.getSiteManager().getAvailableSites(getCms(), true, false, getParamOufqn());
String defSite = null;
i... | public class class_name {
private List<CmsSelectWidgetOption> getSites() {
List<CmsSelectWidgetOption> sites = new ArrayList<CmsSelectWidgetOption>();
List<CmsSite> sitesList = OpenCms.getSiteManager().getAvailableSites(getCms(), true, false, getParamOufqn());
String defSite = null;
i... |
public class class_name {
private void convertOptions() throws TreeException {
options = new Properties();
ParseTreeNode optionList = parserTree.getChild("GrammarOptions").getChild(
"GrammarOptionList");
for (ParseTreeNode option : optionList.getChildren("GrammarOption")) {
String name = option.getChild("Pro... | public class class_name {
private void convertOptions() throws TreeException {
options = new Properties();
ParseTreeNode optionList = parserTree.getChild("GrammarOptions").getChild(
"GrammarOptionList");
for (ParseTreeNode option : optionList.getChildren("GrammarOption")) {
String name = option.getChild("Pro... |
public class class_name {
public static byte[] fromHexByteArray(final byte[] buffer)
{
final byte[] outputBuffer = new byte[buffer.length >> 1];
for (int i = 0; i < buffer.length; i += 2)
{
final int hi = FROM_HEX_DIGIT_TABLE[buffer[i]] << 4;
final int lo = FROM_HEX... | public class class_name {
public static byte[] fromHexByteArray(final byte[] buffer)
{
final byte[] outputBuffer = new byte[buffer.length >> 1];
for (int i = 0; i < buffer.length; i += 2)
{
final int hi = FROM_HEX_DIGIT_TABLE[buffer[i]] << 4;
final int lo = FROM_HEX... |
public class class_name {
public String lastWord() {
int size = 1;
while (pos - size > 0 && lcText[pos - size] == ' ') {
size++;
}
while (pos - size > 0 && lcText[pos - size] != ' ' && lcText[pos - size] != ';') {
size++;
}
return this.substring((pos - size + 1), (pos - 1));
} } | public class class_name {
public String lastWord() {
int size = 1;
while (pos - size > 0 && lcText[pos - size] == ' ') {
size++; // depends on control dependency: [while], data = [none]
}
while (pos - size > 0 && lcText[pos - size] != ' ' && lcText[pos - size] != ';') {
size++; // depends on control depe... |
public class class_name {
public static Period from(TemporalAmount amount) {
if (amount instanceof Period) {
return (Period) amount;
}
if (amount instanceof ChronoPeriod) {
if (IsoChronology.INSTANCE.equals(((ChronoPeriod) amount).getChronology()) == false) {
... | public class class_name {
public static Period from(TemporalAmount amount) {
if (amount instanceof Period) {
return (Period) amount; // depends on control dependency: [if], data = [none]
}
if (amount instanceof ChronoPeriod) {
if (IsoChronology.INSTANCE.equals(((ChronoPe... |
public class class_name {
public boolean process( T left , T right ) {
if( first ) {
associateL2R(left, right);
first = false;
} else {
// long time0 = System.currentTimeMillis();
associateL2R(left, right);
// long time1 = System.currentTimeMillis();
associateF2F();
// long time2 = System.curren... | public class class_name {
public boolean process( T left , T right ) {
if( first ) {
associateL2R(left, right); // depends on control dependency: [if], data = [none]
first = false; // depends on control dependency: [if], data = [none]
} else {
// long time0 = System.currentTimeMillis();
associateL2R(le... |
public class class_name {
public void setPriority(FaxJobPriority priority)
{
try
{
if(priority==FaxJobPriority.HIGH_PRIORITY)
{
this.JOB.setPriority(Job.PRIORITY_HIGH);
}
else
{
this.JOB.setPriority(Job.PRIO... | public class class_name {
public void setPriority(FaxJobPriority priority)
{
try
{
if(priority==FaxJobPriority.HIGH_PRIORITY)
{
this.JOB.setPriority(Job.PRIORITY_HIGH); // depends on control dependency: [if], data = [none]
}
else
... |
public class class_name {
public String generateTraceIndent(int delta)
{
if (!useIndent)
{
return "";
}
else
{
if (delta >= 1)
{
indentStack.push(delta);
}
else if (delta < 0)
{
... | public class class_name {
public String generateTraceIndent(int delta)
{
if (!useIndent)
{
return ""; // depends on control dependency: [if], data = [none]
}
else
{
if (delta >= 1)
{
indentStack.push(delta); // depends on c... |
public class class_name {
protected int serializeKeyValue(final JsonContext jsonContext, final Path currentPath, final Object key, final Object value, int count) {
if ((value == null) && jsonContext.isExcludeNulls()) {
return count;
}
if (key != null) {
currentPath.push(key.toString());
} else {
curr... | public class class_name {
protected int serializeKeyValue(final JsonContext jsonContext, final Path currentPath, final Object key, final Object value, int count) {
if ((value == null) && jsonContext.isExcludeNulls()) {
return count; // depends on control dependency: [if], data = [none]
}
if (key != null) {
... |
public class class_name {
public static Optional<MethodUsage> getFunctionalMethod(ResolvedType type) {
if (type.isReferenceType() && type.asReferenceType().getTypeDeclaration().isInterface()) {
return getFunctionalMethod(type.asReferenceType().getTypeDeclaration());
} else {
ret... | public class class_name {
public static Optional<MethodUsage> getFunctionalMethod(ResolvedType type) {
if (type.isReferenceType() && type.asReferenceType().getTypeDeclaration().isInterface()) {
return getFunctionalMethod(type.asReferenceType().getTypeDeclaration()); // depends on control dependency... |
public class class_name {
static Object getEntityFromJson(Class<?> entityClass, EntityMetadata m, JsonObject jsonObj, List<String> relations,
final KunderaMetadata kunderaMetadata)
{// Entity object
Object entity = null;
// Map to hold property-name=>foreign-entity relations
tr... | public class class_name {
static Object getEntityFromJson(Class<?> entityClass, EntityMetadata m, JsonObject jsonObj, List<String> relations,
final KunderaMetadata kunderaMetadata)
{// Entity object
Object entity = null;
// Map to hold property-name=>foreign-entity relations
tr... |
public class class_name {
private void loadClasspathInfo()
{
List<IDirectory> javaClassPath = _module.getJavaClassPath();
IDirectory[] paths = javaClassPath.toArray(new IDirectory[javaClassPath.size()]);
for (int i = paths.length - 1; i >= 0; i--) {
IDirectory path = paths[i];
addClassNames(p... | public class class_name {
private void loadClasspathInfo()
{
List<IDirectory> javaClassPath = _module.getJavaClassPath();
IDirectory[] paths = javaClassPath.toArray(new IDirectory[javaClassPath.size()]);
for (int i = paths.length - 1; i >= 0; i--) {
IDirectory path = paths[i];
addClassNames(p... |
public class class_name {
public static String unStudlyName (String name)
{
boolean seenLower = false;
StringBuilder nname = new StringBuilder();
int nlen = name.length();
for (int i = 0; i < nlen; i++) {
char c = name.charAt(i);
// if we see an upper case ch... | public class class_name {
public static String unStudlyName (String name)
{
boolean seenLower = false;
StringBuilder nname = new StringBuilder();
int nlen = name.length();
for (int i = 0; i < nlen; i++) {
char c = name.charAt(i);
// if we see an upper case ch... |
public class class_name {
private String contextName(Annotation annotation) {
if (annotation.annotationType().isAssignableFrom(FromContext.class)) {
return ((FromContext) annotation).value();
} else {
return null;
}
} } | public class class_name {
private String contextName(Annotation annotation) {
if (annotation.annotationType().isAssignableFrom(FromContext.class)) {
return ((FromContext) annotation).value(); // depends on control dependency: [if], data = [none]
} else {
return null; // depends ... |
public class class_name {
static <Input extends ImageBase<Input>>
ImageGradient<Input,GrayF32> createGradient( ImageType<Input> imageType ) {
ImageGradient<Input,GrayF32> gradient;
ImageType<GrayF32> typeF32 = ImageType.single(GrayF32.class);
if( imageType.getDataType() != ImageDataType.F32 )
throw new Ille... | public class class_name {
static <Input extends ImageBase<Input>>
ImageGradient<Input,GrayF32> createGradient( ImageType<Input> imageType ) {
ImageGradient<Input,GrayF32> gradient;
ImageType<GrayF32> typeF32 = ImageType.single(GrayF32.class);
if( imageType.getDataType() != ImageDataType.F32 )
throw new Ille... |
public class class_name {
private static void bisectTokeRange(
DeepTokenRange range, final IPartitioner partitioner, final int bisectFactor,
final List<DeepTokenRange> accumulator) {
final AbstractType tkValidator = partitioner.getTokenValidator();
Token leftToken = partitione... | public class class_name {
private static void bisectTokeRange(
DeepTokenRange range, final IPartitioner partitioner, final int bisectFactor,
final List<DeepTokenRange> accumulator) {
final AbstractType tkValidator = partitioner.getTokenValidator();
Token leftToken = partitione... |
public class class_name {
public long getPrice(Configuration configuration) {
long total = 0;
for (KnapsackItem knapsackItem : getKnapsackItems()) {
if (configuration.valueAt(knapsackItem.getIndex()) == 1) {
total += knapsackItem.getPrice();
}
}
r... | public class class_name {
public long getPrice(Configuration configuration) {
long total = 0;
for (KnapsackItem knapsackItem : getKnapsackItems()) {
if (configuration.valueAt(knapsackItem.getIndex()) == 1) {
total += knapsackItem.getPrice(); // depends on control dependency:... |
public class class_name {
public static String validador(final String paraValidar, final String info, Integer tamanho, Boolean exatamente, Boolean numerico) {
tamanho = ObjectUtils.defaultIfNull(tamanho, 1);
exatamente = ObjectUtils.defaultIfNull(exatamente, false);
numerico = ObjectUtils.defau... | public class class_name {
public static String validador(final String paraValidar, final String info, Integer tamanho, Boolean exatamente, Boolean numerico) {
tamanho = ObjectUtils.defaultIfNull(tamanho, 1);
exatamente = ObjectUtils.defaultIfNull(exatamente, false);
numerico = ObjectUtils.defau... |
public class class_name {
@Override
public void notifyChanged() {
if (getNotification() && getListenerCount() > 0) {
List<IChemObjectListener> listeners = lazyChemObjectListeners();
for (Object listener : listeners) {
((IChemObjectListener) listener).stateChanged(new... | public class class_name {
@Override
public void notifyChanged() {
if (getNotification() && getListenerCount() > 0) {
List<IChemObjectListener> listeners = lazyChemObjectListeners();
for (Object listener : listeners) {
((IChemObjectListener) listener).stateChanged(new... |
public class class_name {
public void setZoomFactor(double newZoomFactor) {
if (zoomFactor==newZoomFactor) return;
if (newZoomFactor<=0 || Double.isInfinite(newZoomFactor) || Double.isNaN(newZoomFactor))
throw new IllegalArgumentException("Invalid zoom factor: "+newZoomFactor);
if (getResizeStrategy()==Resize... | public class class_name {
public void setZoomFactor(double newZoomFactor) {
if (zoomFactor==newZoomFactor) return;
if (newZoomFactor<=0 || Double.isInfinite(newZoomFactor) || Double.isNaN(newZoomFactor))
throw new IllegalArgumentException("Invalid zoom factor: "+newZoomFactor);
if (getResizeStrategy()==Resize... |
public class class_name {
private void addDefaultServices(Set<String> serviceSet) {
List<String> defaultServices = ServerParams.instance().getModuleParamList("DoradusServer", "default_services");
if (defaultServices != null) {
serviceSet.addAll(defaultServices);
}
} } | public class class_name {
private void addDefaultServices(Set<String> serviceSet) {
List<String> defaultServices = ServerParams.instance().getModuleParamList("DoradusServer", "default_services");
if (defaultServices != null) {
serviceSet.addAll(defaultServices);
// depends on control de... |
public class class_name {
public void startup(@Observes(precedence = -100) final BeforeSuite event) {
if (extensionEnabled()) {
debug("Catching BeforeSuite event {0}", event.toString());
executeInClassScope(new Callable<Void>() {
@Override
public Void cal... | public class class_name {
public void startup(@Observes(precedence = -100) final BeforeSuite event) {
if (extensionEnabled()) {
debug("Catching BeforeSuite event {0}", event.toString()); // depends on control dependency: [if], data = [none]
executeInClassScope(new Callable<Void>() {
... |
public class class_name {
private ChartSeries buildChartSeriesInList(final ThemesTable themeTable,
final ChartObject ctObj, final Object ctObjSer, final int index) {
ChartSeries ctSer = new ChartSeries();
ctSer.setSeriesLabel(new ParsedCell(
ctObj.getSeriesLabelFromCTSer(ctObjSer)));
ctSer.setSeriesC... | public class class_name {
private ChartSeries buildChartSeriesInList(final ThemesTable themeTable,
final ChartObject ctObj, final Object ctObjSer, final int index) {
ChartSeries ctSer = new ChartSeries();
ctSer.setSeriesLabel(new ParsedCell(
ctObj.getSeriesLabelFromCTSer(ctObjSer)));
ctSer.setSeriesC... |
public class class_name {
private static String getWellFormPath(String path) {
if(null != path){
//去掉项目名部分,不去开头的"/"
final String contextPath = ActionContext.getContextPath();
if(null != contextPath && false == StrUtil.SLASH.equals(contextPath)){
path = StrUtil.removePrefix(path, contextPath);
}... | public class class_name {
private static String getWellFormPath(String path) {
if(null != path){
//去掉项目名部分,不去开头的"/"
final String contextPath = ActionContext.getContextPath();
if(null != contextPath && false == StrUtil.SLASH.equals(contextPath)){
path = StrUtil.removePrefix(path, contextPath);
// d... |
public class class_name {
public Observable<ServiceResponse<LocationCapabilitiesInner>> listByLocationWithServiceResponseAsync(String locationName) {
if (locationName == null) {
throw new IllegalArgumentException("Parameter locationName is required and cannot be null.");
}
if (this.... | public class class_name {
public Observable<ServiceResponse<LocationCapabilitiesInner>> listByLocationWithServiceResponseAsync(String locationName) {
if (locationName == null) {
throw new IllegalArgumentException("Parameter locationName is required and cannot be null.");
}
if (this.... |
public class class_name {
public static int findEndOfSubExpression(String expression, int start) {
int count = 0;
for (int i = start; i < expression.length(); i++) {
switch (expression.charAt(i)) {
case '(': {
count++;
break;
}
case ')': {
count--;
if (count == 0) {
return ... | public class class_name {
public static int findEndOfSubExpression(String expression, int start) {
int count = 0;
for (int i = start; i < expression.length(); i++) {
switch (expression.charAt(i)) {
case '(': {
count++;
break;
}
case ')': {
count--;
if (count == 0) {
return ... |
public class class_name {
@SuppressWarnings("unchecked")
public Collection<V> getValues(Object src) {
ArrayList<V> values = new ArrayList<V>();
if( src instanceof String ) {
String[] words = ((String)src).split(",");
if( words.length < 1 ) {
... | public class class_name {
@SuppressWarnings("unchecked")
public Collection<V> getValues(Object src) {
ArrayList<V> values = new ArrayList<V>();
if( src instanceof String ) {
String[] words = ((String)src).split(",");
if( words.length < 1 ) {
... |
public class class_name {
private static List<java.awt.Component> findComponents(java.awt.Container container,
Class<? extends java.awt.Component> componentClass) {
List<java.awt.Component> list = new ArrayList<java.awt.Component>();
for (java.... | public class class_name {
private static List<java.awt.Component> findComponents(java.awt.Container container,
Class<? extends java.awt.Component> componentClass) {
List<java.awt.Component> list = new ArrayList<java.awt.Component>();
for (java.... |
public class class_name {
public void setInputImage( BufferedImage image ) {
inputImage = image;
SwingUtilities.invokeLater(new Runnable() {
public void run() {
if( inputImage == null ) {
originalCheck.setEnabled(false);
} else {
originalCheck.setEnabled(true);
origPanel.setImage(inputIma... | public class class_name {
public void setInputImage( BufferedImage image ) {
inputImage = image;
SwingUtilities.invokeLater(new Runnable() {
public void run() {
if( inputImage == null ) {
originalCheck.setEnabled(false); // depends on control dependency: [if], data = [none]
} else {
originalCh... |
public class class_name {
private boolean isOneOfOurSupertypes(String type) {
String stypeName = typeDescriptor.getSupertypeName();
while (stypeName != null) {
// TODO [bug] should stop at the first one that has a field in it? and check the field is protected, yada yada yada
if (stypeName.equals(type)) {
... | public class class_name {
private boolean isOneOfOurSupertypes(String type) {
String stypeName = typeDescriptor.getSupertypeName();
while (stypeName != null) {
// TODO [bug] should stop at the first one that has a field in it? and check the field is protected, yada yada yada
if (stypeName.equals(type)) {
... |
public class class_name {
protected CmsXmlContentTypeManager getXmlContentTypeManager() {
if (m_xmlContentTypeManager != null) {
return m_xmlContentTypeManager;
}
if (getRunLevel() == OpenCms.RUNLEVEL_1_CORE_OBJECT) {
// this is only to enable test cases to run
... | public class class_name {
protected CmsXmlContentTypeManager getXmlContentTypeManager() {
if (m_xmlContentTypeManager != null) {
return m_xmlContentTypeManager; // depends on control dependency: [if], data = [none]
}
if (getRunLevel() == OpenCms.RUNLEVEL_1_CORE_OBJECT) {
... |
public class class_name {
public static <T> T assertValid(T context, Validator<T> validator) {
assertNotNull(context);
if(validator != null) {
validator.validate(context);
}
return context;
} } | public class class_name {
public static <T> T assertValid(T context, Validator<T> validator) {
assertNotNull(context);
if(validator != null) {
validator.validate(context); // depends on control dependency: [if], data = [none]
}
return context;
} } |
public class class_name {
private static Document loadXML(InputSource source, boolean useNamespace) {
try {
org.w3c.dom.Document doc = getDocumentBuilder(null, useNamespace).parse(source);
return new DocumentImpl(doc);
} catch (Exception e) {
throw new DomException(e);
} finally {
close(source... | public class class_name {
private static Document loadXML(InputSource source, boolean useNamespace) {
try {
org.w3c.dom.Document doc = getDocumentBuilder(null, useNamespace).parse(source);
return new DocumentImpl(doc);
// depends on control dependency: [try], data = [none]
} catch (Exception e) {
thr... |
public class class_name {
public java.util.List<CharacterSet> getSupportedCharacterSets() {
if (supportedCharacterSets == null) {
supportedCharacterSets = new com.amazonaws.internal.SdkInternalList<CharacterSet>();
}
return supportedCharacterSets;
} } | public class class_name {
public java.util.List<CharacterSet> getSupportedCharacterSets() {
if (supportedCharacterSets == null) {
supportedCharacterSets = new com.amazonaws.internal.SdkInternalList<CharacterSet>(); // depends on control dependency: [if], data = [none]
}
return suppo... |
public class class_name {
@SuppressWarnings("static-method")
protected void translateAnnotationsTo(List<JvmAnnotationReference> annotations, JvmAnnotationTarget target,
Class<?>... exceptions) {
final Set<String> excepts = new HashSet<>();
for (final Class<?> type : exceptions) {
excepts.add(type.getName())... | public class class_name {
@SuppressWarnings("static-method")
protected void translateAnnotationsTo(List<JvmAnnotationReference> annotations, JvmAnnotationTarget target,
Class<?>... exceptions) {
final Set<String> excepts = new HashSet<>();
for (final Class<?> type : exceptions) {
excepts.add(type.getName())... |
public class class_name {
private void cleanLogFilesIfNecessary() {
File logDir = new File(folderPath);
File[] files = logDir.listFiles();
if (files == null) {
return;
}
for (File file : files) {
if (cleanStrategy.shouldClean(file)) {
file.delete();
}
}
} } | public class class_name {
private void cleanLogFilesIfNecessary() {
File logDir = new File(folderPath);
File[] files = logDir.listFiles();
if (files == null) {
return; // depends on control dependency: [if], data = [none]
}
for (File file : files) {
if (cleanStrategy.shouldClean(file)) ... |
public class class_name {
private List<String> getSchemaStringsFromDir(File dir) {
List<String> schemaStrings = new ArrayList<String>();
Collection<File> schemaFiles = FileUtils.listFiles(dir,
new SuffixFileFilter(".avsc"), TrueFileFilter.INSTANCE);
for (File schemaFile : schemaFiles) {
schem... | public class class_name {
private List<String> getSchemaStringsFromDir(File dir) {
List<String> schemaStrings = new ArrayList<String>();
Collection<File> schemaFiles = FileUtils.listFiles(dir,
new SuffixFileFilter(".avsc"), TrueFileFilter.INSTANCE);
for (File schemaFile : schemaFiles) {
schem... |
public class class_name {
@Override
public void executeDemo(final String text) {
EntityUtils.getEntity(this, text, new EntityGetListener() {
@Override
public void onGet(Entity entity) {
handleBasicSocializeResult(entity);
}
@Override
public void onError(SocializeException error) {
if(i... | public class class_name {
@Override
public void executeDemo(final String text) {
EntityUtils.getEntity(this, text, new EntityGetListener() {
@Override
public void onGet(Entity entity) {
handleBasicSocializeResult(entity);
}
@Override
public void onError(SocializeException error) {
if(i... |
public class class_name {
public void addParameter(String pName, Object pValue) {
// Check that we haven't already saved this parameter
if (!parameterNames.contains(pName)) {
parameterNames.add(pName);
// Now check if this parameter already exists in the page.
... | public class class_name {
public void addParameter(String pName, Object pValue) {
// Check that we haven't already saved this parameter
if (!parameterNames.contains(pName)) {
parameterNames.add(pName);
// depends on control dependency: [if], data = [none]
// Now check if t... |
public class class_name {
public void releaseService(BeanContextChild child, Object requestor, Object service) {
if (!contains(child)) {
throw new IllegalArgumentException(child + "is not a child of this context!");
}
// todo: for multithreaded usage this block needs to be synchro... | public class class_name {
public void releaseService(BeanContextChild child, Object requestor, Object service) {
if (!contains(child)) {
throw new IllegalArgumentException(child + "is not a child of this context!");
}
// todo: for multithreaded usage this block needs to be synchro... |
public class class_name {
public static void copyAttributes(Map<String, String> source, Element dest) {
for (Entry<String, String> entry : source.entrySet()) {
dest.setAttribute(entry.getKey(), entry.getValue());
}
} } | public class class_name {
public static void copyAttributes(Map<String, String> source, Element dest) {
for (Entry<String, String> entry : source.entrySet()) {
dest.setAttribute(entry.getKey(), entry.getValue()); // depends on control dependency: [for], data = [entry]
}
} } |
public class class_name {
public Row select(Example example)
{
if (isARow(identifier(example)))
return instantiateRow(example);
try
{
if (Fit.isAnActionFitInterpreter(sud, identifier(example)))
{
timed = Fit.isATimedActionFitInterpreter(sud, identifier(example));
... | public class class_name {
public Row select(Example example)
{
if (isARow(identifier(example)))
return instantiateRow(example);
try
{
if (Fit.isAnActionFitInterpreter(sud, identifier(example)))
{
timed = Fit.isATimedActionFitInterpreter(sud, identifier(example)); // ... |
public class class_name {
public synchronized void enableAutomaticReconnection() {
if (automaticReconnectEnabled) {
return;
}
XMPPConnection connection = weakRefConnection.get();
if (connection == null) {
throw new IllegalStateException("Connection instance no lo... | public class class_name {
public synchronized void enableAutomaticReconnection() {
if (automaticReconnectEnabled) {
return; // depends on control dependency: [if], data = [none]
}
XMPPConnection connection = weakRefConnection.get();
if (connection == null) {
thro... |
public class class_name {
@Override
public void readIntegers(int total, WritableColumnVector c, int rowId) {
int left = total;
while (left > 0) {
if (this.currentCount == 0) this.readNextGroup();
int n = Math.min(left, this.currentCount);
switch (mode) {
case RLE:
c.putInt... | public class class_name {
@Override
public void readIntegers(int total, WritableColumnVector c, int rowId) {
int left = total;
while (left > 0) {
if (this.currentCount == 0) this.readNextGroup();
int n = Math.min(left, this.currentCount);
switch (mode) {
case RLE:
c.putInt... |
public class class_name {
protected FieldDescriptor resolvePayloadField(Message message) {
for (FieldDescriptor field : message.getDescriptorForType().getFields()) {
if (message.hasField(field)) {
return field;
}
}
throw new RuntimeException("No payload ... | public class class_name {
protected FieldDescriptor resolvePayloadField(Message message) {
for (FieldDescriptor field : message.getDescriptorForType().getFields()) {
if (message.hasField(field)) {
return field; // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
public void run(R row, String value, int distinctCount) {
final List<Token> tokens;
boolean match = false;
try {
tokens = _tokenizer.tokenize(value);
} catch (RuntimeException e) {
throw new IllegalStateException("Error occurred while to... | public class class_name {
public void run(R row, String value, int distinctCount) {
final List<Token> tokens;
boolean match = false;
try {
tokens = _tokenizer.tokenize(value); // depends on control dependency: [try], data = [none]
} catch (RuntimeException e) {
t... |
public class class_name {
protected String getHeaderValueText(Object value) {
if (value == null) {
return null;
}
// TODO: Type conversion based on provided config
if (value.getClass() == String.class) {
return (String) value;
} else if (value instanceof... | public class class_name {
protected String getHeaderValueText(Object value) {
if (value == null) {
return null; // depends on control dependency: [if], data = [none]
}
// TODO: Type conversion based on provided config
if (value.getClass() == String.class) {
retu... |
public class class_name {
private Role calculateRole() {
boolean isPartitionOwner = partitionService.isPartitionOwner(partitionId);
boolean isMapNamePartition = partitionId == mapNamePartition;
boolean isMapNamePartitionFirstReplica = false;
if (hasBackup && isMapNamePartition) {
... | public class class_name {
private Role calculateRole() {
boolean isPartitionOwner = partitionService.isPartitionOwner(partitionId);
boolean isMapNamePartition = partitionId == mapNamePartition;
boolean isMapNamePartitionFirstReplica = false;
if (hasBackup && isMapNamePartition) {
... |
public class class_name {
public MessageControl getMessageControl()
{
if (m_recMessageControl == null)
{
RecordOwner recordOwner = this.findRecordOwner();
m_recMessageControl = new MessageControl(recordOwner);
if (recordOwner != null)
recordOw... | public class class_name {
public MessageControl getMessageControl()
{
if (m_recMessageControl == null)
{
RecordOwner recordOwner = this.findRecordOwner();
m_recMessageControl = new MessageControl(recordOwner); // depends on control dependency: [if], data = [none]
... |
public class class_name {
private void cmdDuplicateMappingActionPerformed(java.awt.event.ActionEvent evt) {// GEN-FIRST:event_duplicateMappingButtonActionPerformed
Object[] currentSelection = mappingList.getSelectedValues();
if (currentSelection == null) {
JOptionPane.showMessageDialog(this, "No mappings have b... | public class class_name {
private void cmdDuplicateMappingActionPerformed(java.awt.event.ActionEvent evt) {// GEN-FIRST:event_duplicateMappingButtonActionPerformed
Object[] currentSelection = mappingList.getSelectedValues();
if (currentSelection == null) {
JOptionPane.showMessageDialog(this, "No mappings have b... |
public class class_name {
private void findSelections(final Request request, final MenuSelectContainer selectContainer,
final List<MenuItemSelectable> selections) {
// Don't bother checking disabled or invisible containers
if (!selectContainer.isVisible()
|| (selectContainer instanceof Disableable && ((Dis... | public class class_name {
private void findSelections(final Request request, final MenuSelectContainer selectContainer,
final List<MenuItemSelectable> selections) {
// Don't bother checking disabled or invisible containers
if (!selectContainer.isVisible()
|| (selectContainer instanceof Disableable && ((Dis... |
public class class_name {
public int executeRefresh(DatabaseConnection databaseConnection, T data, ObjectCache objectCache)
throws SQLException {
@SuppressWarnings("unchecked")
ID id = (ID) idField.extractJavaFieldValue(data);
// we don't care about the cache here
T result = super.execute(databaseConnection... | public class class_name {
public int executeRefresh(DatabaseConnection databaseConnection, T data, ObjectCache objectCache)
throws SQLException {
@SuppressWarnings("unchecked")
ID id = (ID) idField.extractJavaFieldValue(data);
// we don't care about the cache here
T result = super.execute(databaseConnection... |
public class class_name {
public void run() {
pollThread = Thread.currentThread();
if ( underway )
return;
underway = true;
try {
int count = 1;
while( count > 0 ) { // as long there are messages, keep sending them
count = onePoll();
... | public class class_name {
public void run() {
pollThread = Thread.currentThread();
if ( underway )
return;
underway = true;
try {
int count = 1;
while( count > 0 ) { // as long there are messages, keep sending them
count = onePoll(); /... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.