code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
public final DataMapping toDataConfig(Class dataClass, String id, Datamappingstype datamappingstype) throws ClassNotFoundException {
if (!dataMappings.containsKey(dataClass.getName() + id)) {
boolean useAnnotations = datamappingstype == null || datamappingstype.isUseannotation... | public class class_name {
public final DataMapping toDataConfig(Class dataClass, String id, Datamappingstype datamappingstype) throws ClassNotFoundException {
if (!dataMappings.containsKey(dataClass.getName() + id)) {
boolean useAnnotations = datamappingstype == null || datamappingstype.isUseannotation... |
public class class_name {
public static void generateFieldPersistance(BindTypeContext context, List<? extends ManagedModelProperty> collection, PersistType persistType, boolean forceName, Modifier... modifiers) {
for (ManagedModelProperty property : collection) {
if (property.bindProperty != null && !property.ha... | public class class_name {
public static void generateFieldPersistance(BindTypeContext context, List<? extends ManagedModelProperty> collection, PersistType persistType, boolean forceName, Modifier... modifiers) {
for (ManagedModelProperty property : collection) {
if (property.bindProperty != null && !property.ha... |
public class class_name {
public static URL constructResourceURL(Class<?> c, String resName) {
String strUrl = "";
if (resName.startsWith("/")) // 资源名称以"/"开头,从类所在的Class Path根目录开始定位资源
strUrl = getClassRootPath(c) + resName.substring(1);
else
// 资源名称不以"/"开头,从类所在的目录开始定位资源
strUrl = getClassPath(c) +... | public class class_name {
public static URL constructResourceURL(Class<?> c, String resName) {
String strUrl = "";
if (resName.startsWith("/")) // 资源名称以"/"开头,从类所在的Class Path根目录开始定位资源
strUrl = getClassRootPath(c) + resName.substring(1);
else
// 资源名称不以"/"开头,从类所在的目录开始定位资源
strUrl = getClassPath(c) +... |
public class class_name {
private static void insertPolitician(final KieSession ksession, final ViewRiksdagenPolitician politicianData,
final List<ViewRiksdagenVoteDataBallotPoliticianSummaryDaily> dailyList,
final List<ViewRiksdagenVoteDataBallotPoliticianSummaryMonthly> monthlyList,
final List<ViewRiksdagen... | public class class_name {
private static void insertPolitician(final KieSession ksession, final ViewRiksdagenPolitician politicianData,
final List<ViewRiksdagenVoteDataBallotPoliticianSummaryDaily> dailyList,
final List<ViewRiksdagenVoteDataBallotPoliticianSummaryMonthly> monthlyList,
final List<ViewRiksdagen... |
public class class_name {
private void setProperties(final JSONObject jsonObject, final List<Object> paramlist, final StringBuilder sql) {
final Iterator<String> keys = jsonObject.keys();
final StringBuilder insertString = new StringBuilder();
final StringBuilder wildcardString = new StringBui... | public class class_name {
private void setProperties(final JSONObject jsonObject, final List<Object> paramlist, final StringBuilder sql) {
final Iterator<String> keys = jsonObject.keys();
final StringBuilder insertString = new StringBuilder();
final StringBuilder wildcardString = new StringBui... |
public class class_name {
public static Status printNodesResults(Map<Status, List<String>> map, PrintWriter reportWriter) {
boolean canFindClass = true;
boolean canFindFS = true;
for (Map.Entry<Status, List<String>> entry : map.entrySet()) {
String nodeAddresses = String.join(" ", entry.getValue());... | public class class_name {
public static Status printNodesResults(Map<Status, List<String>> map, PrintWriter reportWriter) {
boolean canFindClass = true;
boolean canFindFS = true;
for (Map.Entry<Status, List<String>> entry : map.entrySet()) {
String nodeAddresses = String.join(" ", entry.getValue());... |
public class class_name {
public static int parseNumber(String text, int[] pos, int radix) {
// assert(pos[0] >= 0);
// assert(radix >= 2);
// assert(radix <= 36);
int n = 0;
int p = pos[0];
while (p < text.length()) {
int ch = Character.codePointAt(text, p);... | public class class_name {
public static int parseNumber(String text, int[] pos, int radix) {
// assert(pos[0] >= 0);
// assert(radix >= 2);
// assert(radix <= 36);
int n = 0;
int p = pos[0];
while (p < text.length()) {
int ch = Character.codePointAt(text, p);... |
public class class_name {
protected int computeGandE_border(KltFeature feature, float cx, float cy) {
computeSubImageBounds(feature, cx, cy);
ImageMiscOps.fill(currDesc, Float.NaN);
currDesc.subimage(dstX0, dstY0, dstX1, dstY1, subimage);
interpInput.setImage(image);
interpInput.region(srcX0, srcY0, subima... | public class class_name {
protected int computeGandE_border(KltFeature feature, float cx, float cy) {
computeSubImageBounds(feature, cx, cy);
ImageMiscOps.fill(currDesc, Float.NaN);
currDesc.subimage(dstX0, dstY0, dstX1, dstY1, subimage);
interpInput.setImage(image);
interpInput.region(srcX0, srcY0, subima... |
public class class_name {
private void writeCompletionFile() {
File completionFile = getCompletionFile();
try {
if (completionFile.createNewFile()) {
log.info("successfully created completion marker file: {}",
completionFile.getAbsolutePath());
... | public class class_name {
private void writeCompletionFile() {
File completionFile = getCompletionFile();
try {
if (completionFile.createNewFile()) {
log.info("successfully created completion marker file: {}",
completionFile.getAbsolutePath()); // de... |
public class class_name {
@SuppressWarnings("unchecked")
public static void readModuleConfig(Properties properties, boolean isDev) {
logger.info(Messages.get("info.module.load.conf"));
//读取模块配置
Enumeration<URL> moduleUrls = IOUtils.getResources("conf/module.conf");
List<String> read... | public class class_name {
@SuppressWarnings("unchecked")
public static void readModuleConfig(Properties properties, boolean isDev) {
logger.info(Messages.get("info.module.load.conf"));
//读取模块配置
Enumeration<URL> moduleUrls = IOUtils.getResources("conf/module.conf");
List<String> read... |
public class class_name {
public void set(String name, Object obj) throws IOException {
if (name.equalsIgnoreCase(SKIP_CERTS)) {
if (!(obj instanceof Integer))
throw new IOException("Attribute value should be of type Integer.");
int skipCertsValue = ((Integer)obj).intVal... | public class class_name {
public void set(String name, Object obj) throws IOException {
if (name.equalsIgnoreCase(SKIP_CERTS)) {
if (!(obj instanceof Integer))
throw new IOException("Attribute value should be of type Integer.");
int skipCertsValue = ((Integer)obj).intVal... |
public class class_name {
protected synchronized void checkRollOver ()
{
// check to see if we should roll over the log
String newDayStamp = _dayFormat.format(new Date());
// hey! we need to roll it over!
if (!newDayStamp.equals(_dayStamp)) {
log("log_closed");
... | public class class_name {
protected synchronized void checkRollOver ()
{
// check to see if we should roll over the log
String newDayStamp = _dayFormat.format(new Date());
// hey! we need to roll it over!
if (!newDayStamp.equals(_dayStamp)) {
log("log_closed"); // depen... |
public class class_name {
public Format getFormatForContainer(CmsObject cms, String type, int width) {
IdentityHashMap<CmsFormatterBean, Format> formatsByFormatter = new IdentityHashMap<CmsFormatterBean, Format>();
// relate formatters to formats so we can pick the corresponding format after a form... | public class class_name {
public Format getFormatForContainer(CmsObject cms, String type, int width) {
IdentityHashMap<CmsFormatterBean, Format> formatsByFormatter = new IdentityHashMap<CmsFormatterBean, Format>();
// relate formatters to formats so we can pick the corresponding format after a form... |
public class class_name {
private Double fetchInstancesOnlineRatio(ObjectId collectorItemId) {
int totalInstances = 0, totalInstancesOnline = 0;
Double instancesOnlineScore = null;
List<EnvironmentStatus> statuses = environmentStatusRepository
.findByCollectorItemId(collectorItemId);
if (null =... | public class class_name {
private Double fetchInstancesOnlineRatio(ObjectId collectorItemId) {
int totalInstances = 0, totalInstancesOnline = 0;
Double instancesOnlineScore = null;
List<EnvironmentStatus> statuses = environmentStatusRepository
.findByCollectorItemId(collectorItemId);
if (null =... |
public class class_name {
public String getRow(final File file) {
StringBuilder builder = new StringBuilder();
Counts counts = get(file);
builder.append("<tr bgcolor=\"");
builder.append(color(counts));
builder.append("\"><td>");
int depth = dirHelper.dirDepth(file);
indent(depth, builder);
builder... | public class class_name {
public String getRow(final File file) {
StringBuilder builder = new StringBuilder();
Counts counts = get(file);
builder.append("<tr bgcolor=\"");
builder.append(color(counts));
builder.append("\"><td>");
int depth = dirHelper.dirDepth(file);
indent(depth, builder);
builder... |
public class class_name {
public void setWorkGroups(java.util.Collection<WorkGroupSummary> workGroups) {
if (workGroups == null) {
this.workGroups = null;
return;
}
this.workGroups = new java.util.ArrayList<WorkGroupSummary>(workGroups);
} } | public class class_name {
public void setWorkGroups(java.util.Collection<WorkGroupSummary> workGroups) {
if (workGroups == null) {
this.workGroups = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
public static String executeSubstring(String text, String parseExpression) {
LOGGER.debug("substring抽取函数之前:" + text);
String parameter = parseExpression.replace("substring(", "");
parameter = parameter.substring(0, parameter.length() - 1);
String[] attr = param... | public class class_name {
public static String executeSubstring(String text, String parseExpression) {
LOGGER.debug("substring抽取函数之前:" + text);
String parameter = parseExpression.replace("substring(", "");
parameter = parameter.substring(0, parameter.length() - 1);
String[] attr = param... |
public class class_name {
public Observable<ServiceResponse<JobAgentInner>> beginUpdateWithServiceResponseAsync(String resourceGroupName, String serverName, String jobAgentName) {
if (resourceGroupName == null) {
throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot... | public class class_name {
public Observable<ServiceResponse<JobAgentInner>> beginUpdateWithServiceResponseAsync(String resourceGroupName, String serverName, String jobAgentName) {
if (resourceGroupName == null) {
throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot... |
public class class_name {
public String listJs() {
StringBuffer js = new StringBuffer(1024);
CmsMessages messages = Messages.get().getBundle(getWp().getLocale());
js.append("<script type='text/javascript' src='");
js.append(CmsWorkplace.getSkinUri());
js.append("jquery/unpacked... | public class class_name {
public String listJs() {
StringBuffer js = new StringBuffer(1024);
CmsMessages messages = Messages.get().getBundle(getWp().getLocale());
js.append("<script type='text/javascript' src='");
js.append(CmsWorkplace.getSkinUri());
js.append("jquery/unpacked... |
public class class_name {
protected void setupForWar() {
// Identify the war file that contains this class
ProtectionDomain protectionDomain = RunWar.class.getProtectionDomain();
URL location = protectionDomain.getCodeSource().getLocation();
String warFilePath = trimToFile(location.toExternalForm());
... | public class class_name {
protected void setupForWar() {
// Identify the war file that contains this class
ProtectionDomain protectionDomain = RunWar.class.getProtectionDomain();
URL location = protectionDomain.getCodeSource().getLocation();
String warFilePath = trimToFile(location.toExternalForm());
... |
public class class_name {
private Stream<MemberId> getSubscriberNodes(String topicName) {
InternalTopic topic = topics.get(topicName);
if (topic == null) {
return Stream.empty();
}
return topic.remoteSubscriptions().stream()
.filter(s -> !s.isTombstone())
.map(s -> s.memberId())
... | public class class_name {
private Stream<MemberId> getSubscriberNodes(String topicName) {
InternalTopic topic = topics.get(topicName);
if (topic == null) {
return Stream.empty(); // depends on control dependency: [if], data = [none]
}
return topic.remoteSubscriptions().stream()
.filter(s ... |
public class class_name {
protected boolean appendColName(TableAlias aTableAlias, PathInfo aPathInfo, boolean translate, StringBuffer buf)
{
String prefix = aPathInfo.prefix;
String suffix = aPathInfo.suffix;
String colName = getColName(aTableAlias, aPathInfo, translate);
if ... | public class class_name {
protected boolean appendColName(TableAlias aTableAlias, PathInfo aPathInfo, boolean translate, StringBuffer buf)
{
String prefix = aPathInfo.prefix;
String suffix = aPathInfo.suffix;
String colName = getColName(aTableAlias, aPathInfo, translate);
if ... |
public class class_name {
public void setCurrentValue(double curValue, boolean fireEvent) {
// Confine the value to the range
this.curValue = Math.max(minValue, Math.min(maxValue, curValue));
double remainder = (this.curValue - minValue) % stepSize;
this.curValue -= remainder;
// Go to next step if mo... | public class class_name {
public void setCurrentValue(double curValue, boolean fireEvent) {
// Confine the value to the range
this.curValue = Math.max(minValue, Math.min(maxValue, curValue));
double remainder = (this.curValue - minValue) % stepSize;
this.curValue -= remainder;
// Go to next step if mo... |
public class class_name {
private void addExportMethod(Map<String, Node> exports, String export, Node context) {
// We can export as a property if any of the following conditions holds:
// a) ES6 class members, which the above `addExportForEs6Method` handles
// b) this is a property on a name which is also... | public class class_name {
private void addExportMethod(Map<String, Node> exports, String export, Node context) {
// We can export as a property if any of the following conditions holds:
// a) ES6 class members, which the above `addExportForEs6Method` handles
// b) this is a property on a name which is also... |
public class class_name {
public static void reset() {
ScheduledExecutor ex = INSTANCE.executor.getAndSet(null);
if (ex != null && ex.getThreadPool() != null) {
ex.getThreadPool().shutdownNow();
}
} } | public class class_name {
public static void reset() {
ScheduledExecutor ex = INSTANCE.executor.getAndSet(null);
if (ex != null && ex.getThreadPool() != null) {
ex.getThreadPool().shutdownNow(); // depends on control dependency: [if], data = [none]
}
} } |
public class class_name {
public EClass getIfcPropertyBoundedValue() {
if (ifcPropertyBoundedValueEClass == null) {
ifcPropertyBoundedValueEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI)
.getEClassifiers().get(398);
}
return ifcPropertyBoundedValueEClass;
} } | public class class_name {
public EClass getIfcPropertyBoundedValue() {
if (ifcPropertyBoundedValueEClass == null) {
ifcPropertyBoundedValueEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI)
.getEClassifiers().get(398);
// depends on control dependency: [if], data = [none]
... |
public class class_name {
public void setDeprecatedProperties() {
DeprecationContext deprecations = deprecationContext.get();
Properties props = getProps();
Properties overlay = getOverlay();
for (Map.Entry<String, DeprecatedKeyInfo> entry :
deprecations.getDeprecatedKeyMap().entrySet()) {
String depKey... | public class class_name {
public void setDeprecatedProperties() {
DeprecationContext deprecations = deprecationContext.get();
Properties props = getProps();
Properties overlay = getOverlay();
for (Map.Entry<String, DeprecatedKeyInfo> entry :
deprecations.getDeprecatedKeyMap().entrySet()) {
String depKey... |
public class class_name {
private CommandFaceDescriptor getOrCreateFaceDescriptor() {
if (!isFaceConfigured()) {
if (logger.isInfoEnabled()) {
logger.info("Lazily instantiating default face descriptor on behalf of caller to prevent npe; "
+ "command is being configured manually, right?");
}
if(Val... | public class class_name {
private CommandFaceDescriptor getOrCreateFaceDescriptor() {
if (!isFaceConfigured()) {
if (logger.isInfoEnabled()) {
logger.info("Lazily instantiating default face descriptor on behalf of caller to prevent npe; "
+ "command is being configured manually, right?"); // depends on ... |
public class class_name {
final JsMsgMap getJmsSystemPropertyMap() {
if (jmsSystemPropertyMap == null) {
List<String> keys = (List<String>) getApi().getField(JsApiAccess.SYSTEMPROPERTY_NAME);
List<Object> values = (List<Object>) getApi().getField(JsApiAccess.SYSTEMPROPERTY_VALUE);
... | public class class_name {
final JsMsgMap getJmsSystemPropertyMap() {
if (jmsSystemPropertyMap == null) {
List<String> keys = (List<String>) getApi().getField(JsApiAccess.SYSTEMPROPERTY_NAME);
List<Object> values = (List<Object>) getApi().getField(JsApiAccess.SYSTEMPROPERTY_VALUE);
... |
public class class_name {
public com.google.protobuf.ByteString
getSummaryBytes() {
java.lang.Object ref = summary_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
summary... | public class class_name {
public com.google.protobuf.ByteString
getSummaryBytes() {
java.lang.Object ref = summary_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
summary... |
public class class_name {
public Object repushContextClassLoaderForUnprivileged(Object origLoader, ClassLoader loader) {
if (origLoader == UNCHANGED) {
return pushContextClassLoaderForUnprivileged(loader);
}
setContextClassLoaderForUnprivileged(Thread.currentThread(), loader);
... | public class class_name {
public Object repushContextClassLoaderForUnprivileged(Object origLoader, ClassLoader loader) {
if (origLoader == UNCHANGED) {
return pushContextClassLoaderForUnprivileged(loader); // depends on control dependency: [if], data = [none]
}
setContextClassLoade... |
public class class_name {
private void clearParentsCache(Entity entity) {
try {
String xpath = null;
if (entity instanceof DataSource) {
// find all reports and charts with this DataSource
xpath = "//nextServer//*[@dataSource='" + entity.getId() + "']";
} else if (entity instanceof Report) {
// ... | public class class_name {
private void clearParentsCache(Entity entity) {
try {
String xpath = null;
if (entity instanceof DataSource) {
// find all reports and charts with this DataSource
xpath = "//nextServer//*[@dataSource='" + entity.getId() + "']";
} else if (entity instanceof Report) {
// ... |
public class class_name {
protected final String getForPrint(final Class<?> pClass) {
if (pClass == PayMd.class) {
return null;
}
if (pClass == ServiceSpecifics.class || pClass == GoodsSpecifics.class) {
return PrcItemSpecificsRetrieve.class.getSimpleName();
}
return PrcEntityRetrieve.c... | public class class_name {
protected final String getForPrint(final Class<?> pClass) {
if (pClass == PayMd.class) {
return null; // depends on control dependency: [if], data = [none]
}
if (pClass == ServiceSpecifics.class || pClass == GoodsSpecifics.class) {
return PrcItemSpecificsRetrieve.class... |
public class class_name {
public Element discardByKey(Object key)
{
int i = findIndexByKey(key);
Element element = null;
if (i != -1) {
element = (Element) get(i);
if (element.pinned > 0) {
return null;
}
remove(i);
}... | public class class_name {
public Element discardByKey(Object key)
{
int i = findIndexByKey(key);
Element element = null;
if (i != -1) {
element = (Element) get(i); // depends on control dependency: [if], data = [(i]
if (element.pinned > 0) {
return ... |
public class class_name {
public synchronized Properties determineIfCSIv2SettingsApply(Properties config, Map<String, Object> connectionInfo) throws SSLException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
Tr.entry(tc, "determineIfCSIv2SettingsApply", new Object[] { connectio... | public class class_name {
public synchronized Properties determineIfCSIv2SettingsApply(Properties config, Map<String, Object> connectionInfo) throws SSLException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
Tr.entry(tc, "determineIfCSIv2SettingsApply", new Object[] { connectio... |
public class class_name {
public void marshall(DeleteVirtualServiceRequest deleteVirtualServiceRequest, ProtocolMarshaller protocolMarshaller) {
if (deleteVirtualServiceRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... | public class class_name {
public void marshall(DeleteVirtualServiceRequest deleteVirtualServiceRequest, ProtocolMarshaller protocolMarshaller) {
if (deleteVirtualServiceRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... |
public class class_name {
protected String htmlTitle() {
boolean showTitle = isShowTitle();
Iterator<I_CmsListAction> itIndepActions = getMetadata().getIndependentActions().iterator();
while (!showTitle && itIndepActions.hasNext()) {
I_CmsListAction indepAction = itIndepActions.nex... | public class class_name {
protected String htmlTitle() {
boolean showTitle = isShowTitle();
Iterator<I_CmsListAction> itIndepActions = getMetadata().getIndependentActions().iterator();
while (!showTitle && itIndepActions.hasNext()) {
I_CmsListAction indepAction = itIndepActions.nex... |
public class class_name {
public Long indexOf(File f, byte[] searchBytes, long fromPosition) {
final List<Long> result;
if (USE_NIO) {
result = searchPartiallyUsingNIO(f, searchBytes, fromPosition, -1, new BinFileProgressListener() {
@Override
public void onProgress(List<Long> pointerList, float prog... | public class class_name {
public Long indexOf(File f, byte[] searchBytes, long fromPosition) {
final List<Long> result;
if (USE_NIO) {
result = searchPartiallyUsingNIO(f, searchBytes, fromPosition, -1, new BinFileProgressListener() {
@Override
public void onProgress(List<Long> pointerList, float prog... |
public class class_name {
public static void tag(Object key, Object value)
{
Thread currentThread = Thread.currentThread();
if (currentThread instanceof TaggableThread)
{
TaggableThread taggableThread = (TaggableThread) currentThread;
taggableThread.tagMe(key, ... | public class class_name {
public static void tag(Object key, Object value)
{
Thread currentThread = Thread.currentThread();
if (currentThread instanceof TaggableThread)
{
TaggableThread taggableThread = (TaggableThread) currentThread;
taggableThread.tagMe(key, ... |
public class class_name {
private void sawSwitch(int pc) {
int[] offsets = getSwitchOffsets();
List<Integer> targets = new ArrayList<>(offsets.length);
for (int offset : offsets) {
targets.add(Integer.valueOf(offset + pc));
}
Integer defOffset = Integer.valueOf(getDe... | public class class_name {
private void sawSwitch(int pc) {
int[] offsets = getSwitchOffsets();
List<Integer> targets = new ArrayList<>(offsets.length);
for (int offset : offsets) {
targets.add(Integer.valueOf(offset + pc)); // depends on control dependency: [for], data = [offset]
... |
public class class_name {
public Number doParse(String text, ParsePosition parsePosition, double baseValue,
double upperBound, boolean lenientParse) {
// if we're not in byDigits mode, we can just use the inherited
// doParse()
if (!byDigits) {
return super.d... | public class class_name {
public Number doParse(String text, ParsePosition parsePosition, double baseValue,
double upperBound, boolean lenientParse) {
// if we're not in byDigits mode, we can just use the inherited
// doParse()
if (!byDigits) {
return super.d... |
public class class_name {
private JScrollPane getJScrollPane() {
if (jScrollPane == null) {
jScrollPane = new JScrollPane();
jScrollPane.setViewportView(getTableTest());
jScrollPane.setBorder(javax.swing.BorderFactory.createEtchedBorder(javax.swing.border.EtchedBorder.RA... | public class class_name {
private JScrollPane getJScrollPane() {
if (jScrollPane == null) {
jScrollPane = new JScrollPane();
// depends on control dependency: [if], data = [none]
jScrollPane.setViewportView(getTableTest());
// depends on control dependency: [if], data = [none]
... |
public class class_name {
@Override
public final synchronized void removePropertyChangeListener(
String propertyName,
PropertyChangeListener listener) {
if (listener == null || changeSupport == null) {
return;
}
changeSupport.removePropertyChangeListener(... | public class class_name {
@Override
public final synchronized void removePropertyChangeListener(
String propertyName,
PropertyChangeListener listener) {
if (listener == null || changeSupport == null) {
return; // depends on control dependency: [if], data = [none]
... |
public class class_name {
private List<List<String>> processAcceptLanguage(String acceptLanguage) {
StringTokenizer languageTokenizer = new StringTokenizer(acceptLanguage, ",");
TreeMap<Double, List<String>> map = new TreeMap<Double, List<String>>(Collections.reverseOrder());
List<String> list;... | public class class_name {
private List<List<String>> processAcceptLanguage(String acceptLanguage) {
StringTokenizer languageTokenizer = new StringTokenizer(acceptLanguage, ",");
TreeMap<Double, List<String>> map = new TreeMap<Double, List<String>>(Collections.reverseOrder());
List<String> list;... |
public class class_name {
public void initTransfer(Properties properties)
{
super.initTransfer(properties);
String strPathname = properties.getProperty(ZIPOUT_PATHNAME_PARAM);
if ((strPathname != null)
&& (strPathname.length() > 0)
&& (strPathname.lastIndexOf(System.getProperties().getProperty("file.sepa... | public class class_name {
public void initTransfer(Properties properties)
{
super.initTransfer(properties);
String strPathname = properties.getProperty(ZIPOUT_PATHNAME_PARAM);
if ((strPathname != null)
&& (strPathname.length() > 0)
&& (strPathname.lastIndexOf(System.getProperties().getProperty("file.sepa... |
public class class_name {
private static boolean onlyRemoteExceptions(Method method)
{
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); // d576626
Class<?>[] exceptions = method.getExceptionTypes();
for (Class<?> exception : exceptions)
{
if (!(RemoteExce... | public class class_name {
private static boolean onlyRemoteExceptions(Method method)
{
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); // d576626
Class<?>[] exceptions = method.getExceptionTypes();
for (Class<?> exception : exceptions)
{
if (!(RemoteExce... |
public class class_name {
@Override
public void closeSession(Throwable e) throws SIConnectionLostException, SIResourceException, SIErrorException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "closeSession", e);
if (e == null)
{
... | public class class_name {
@Override
public void closeSession(Throwable e) throws SIConnectionLostException, SIResourceException, SIErrorException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "closeSession", e);
if (e == null)
{
... |
public class class_name {
public ByteBuffer getElement(ByteBuffer serializedList, int index)
{
try
{
ByteBuffer input = serializedList.duplicate();
int n = readCollectionSize(input, Server.VERSION_3);
if (n <= index)
return null;
for ... | public class class_name {
public ByteBuffer getElement(ByteBuffer serializedList, int index)
{
try
{
ByteBuffer input = serializedList.duplicate();
int n = readCollectionSize(input, Server.VERSION_3);
if (n <= index)
return null;
for ... |
public class class_name {
private void endCurrentBasicBlockWithNoSuccessor() {
if (compute == COMPUTE_ALL_FRAMES) {
Label nextBasicBlock = new Label();
nextBasicBlock.frame = new Frame(nextBasicBlock);
nextBasicBlock.resolve(code.data, code.length);
lastBasicBlock.nextBasicBlock = nextBasic... | public class class_name {
private void endCurrentBasicBlockWithNoSuccessor() {
if (compute == COMPUTE_ALL_FRAMES) {
Label nextBasicBlock = new Label();
nextBasicBlock.frame = new Frame(nextBasicBlock); // depends on control dependency: [if], data = [none]
nextBasicBlock.resolve(code.data, code.le... |
public class class_name {
static void updateOverlayColorRounding(
DrawableParent parent,
@Nullable RoundingParams roundingParams) {
Drawable child = parent.getDrawable();
if (roundingParams != null &&
roundingParams.getRoundingMethod() == RoundingParams.RoundingMethod.OVERLAY_COLOR) {
... | public class class_name {
static void updateOverlayColorRounding(
DrawableParent parent,
@Nullable RoundingParams roundingParams) {
Drawable child = parent.getDrawable();
if (roundingParams != null &&
roundingParams.getRoundingMethod() == RoundingParams.RoundingMethod.OVERLAY_COLOR) {
... |
public class class_name {
public void marshall(PublicWorkforceTaskPrice publicWorkforceTaskPrice, ProtocolMarshaller protocolMarshaller) {
if (publicWorkforceTaskPrice == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocol... | public class class_name {
public void marshall(PublicWorkforceTaskPrice publicWorkforceTaskPrice, ProtocolMarshaller protocolMarshaller) {
if (publicWorkforceTaskPrice == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocol... |
public class class_name {
public static void premain(String args, Instrumentation inst) {
GagTransformer transformer = new GagTransformer();
if (args == null || args.length() == 0) {
transformer.addAllGenerators();
} else {
for (String key : args.split(",")) {
... | public class class_name {
public static void premain(String args, Instrumentation inst) {
GagTransformer transformer = new GagTransformer();
if (args == null || args.length() == 0) {
transformer.addAllGenerators();
// depends on control dependency: [if], data = [none]
} else {
... |
public class class_name {
public static <T, U extends T> int safeWrite(ArrayWritable<U> aw, T[] array) {
int num = aw.size();
if (num <= 0) {
return 0;
}
if (num > array.length) {
num = array.length;
}
aw.writeToArray(0, array, 0, num);
re... | public class class_name {
public static <T, U extends T> int safeWrite(ArrayWritable<U> aw, T[] array) {
int num = aw.size();
if (num <= 0) {
return 0; // depends on control dependency: [if], data = [none]
}
if (num > array.length) {
num = array.length; // depend... |
public class class_name {
@Deprecated
private static ArrayList<FrequencyTableEntry> hashToFreqEntries(
HashMap<String, ArrayList<Integer>> hash) {
ArrayList<FrequencyTableEntry> res = new ArrayList<FrequencyTableEntry>();
for (Entry<String, ArrayList<Integer>> e : hash.entrySet()) {
char[] payloa... | public class class_name {
@Deprecated
private static ArrayList<FrequencyTableEntry> hashToFreqEntries(
HashMap<String, ArrayList<Integer>> hash) {
ArrayList<FrequencyTableEntry> res = new ArrayList<FrequencyTableEntry>();
for (Entry<String, ArrayList<Integer>> e : hash.entrySet()) {
char[] payloa... |
public class class_name {
private static int getChunkSizeFromInputStream(final InputStream in)
throws IOException {
ByteArrayOutputStream baos = new ByteArrayOutputStream();
// States: 0=normal, 1=\r was scanned, 2=inside quoted string, -1=end
int state = 0;
while (state != -1) {... | public class class_name {
private static int getChunkSizeFromInputStream(final InputStream in)
throws IOException {
ByteArrayOutputStream baos = new ByteArrayOutputStream();
// States: 0=normal, 1=\r was scanned, 2=inside quoted string, -1=end
int state = 0;
while (state != -1) {... |
public class class_name {
public Result execute(@NonNull Search search) throws Exception {
if (search.getOffset() >= search.getMaxNotes()) {
throw new IllegalArgumentException("offset must be less than max notes");
}
Result result = new Result(search.getScopes());
for (Sco... | public class class_name {
public Result execute(@NonNull Search search) throws Exception {
if (search.getOffset() >= search.getMaxNotes()) {
throw new IllegalArgumentException("offset must be less than max notes");
}
Result result = new Result(search.getScopes());
for (Sco... |
public class class_name {
protected Map<String,Object> prepareEnv(Map<String, String> pTargetConfig) {
if (pTargetConfig == null || pTargetConfig.size() == 0) {
return null;
}
Map<String,Object> ret = new HashMap<String, Object>(pTargetConfig);
String user = (String) ret.rem... | public class class_name {
protected Map<String,Object> prepareEnv(Map<String, String> pTargetConfig) {
if (pTargetConfig == null || pTargetConfig.size() == 0) {
return null; // depends on control dependency: [if], data = [none]
}
Map<String,Object> ret = new HashMap<String, Object>(... |
public class class_name {
@Override
public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) {
int result = -1;
if (!controller.hasPreinitialized()) {
throw new IllegalStateException("Controller has not been initialized.");
}
int patte... | public class class_name {
@Override
public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) {
int result = -1;
if (!controller.hasPreinitialized()) {
throw new IllegalStateException("Controller has not been initialized.");
}
int patte... |
public class class_name {
public java.util.List<NotificationConfiguration> getNotificationConfigurations() {
if (notificationConfigurations == null) {
notificationConfigurations = new com.amazonaws.internal.SdkInternalList<NotificationConfiguration>();
}
return notificationConfigura... | public class class_name {
public java.util.List<NotificationConfiguration> getNotificationConfigurations() {
if (notificationConfigurations == null) {
notificationConfigurations = new com.amazonaws.internal.SdkInternalList<NotificationConfiguration>(); // depends on control dependency: [if], data =... |
public class class_name {
public SDVariable[] generateOutputVariableForOp(DifferentialFunction function, String baseName) {
//xyz ops only have 1 output
//if there is already a base name defined, use that
if (baseName == null || baseName.isEmpty() && getBaseNameForFunction(function) != null)
... | public class class_name {
public SDVariable[] generateOutputVariableForOp(DifferentialFunction function, String baseName) {
//xyz ops only have 1 output
//if there is already a base name defined, use that
if (baseName == null || baseName.isEmpty() && getBaseNameForFunction(function) != null)
... |
public class class_name {
public void visitObjects (ObjectVisitor visitor, boolean interestingOnly)
{
for (Iterator<Section> iter = getSections(); iter.hasNext(); ) {
Section sect = iter.next();
for (ObjectInfo oinfo : sect.objectInfo) {
visitor.visit(oinfo);
... | public class class_name {
public void visitObjects (ObjectVisitor visitor, boolean interestingOnly)
{
for (Iterator<Section> iter = getSections(); iter.hasNext(); ) {
Section sect = iter.next();
for (ObjectInfo oinfo : sect.objectInfo) {
visitor.visit(oinfo); // depe... |
public class class_name {
public Observable<ServiceResponse<ContainerExecResponseInner>> executeCommandWithServiceResponseAsync(String resourceGroupName, String containerGroupName, String containerName, ContainerExecRequest containerExecRequest) {
if (this.client.subscriptionId() == null) {
throw n... | public class class_name {
public Observable<ServiceResponse<ContainerExecResponseInner>> executeCommandWithServiceResponseAsync(String resourceGroupName, String containerGroupName, String containerName, ContainerExecRequest containerExecRequest) {
if (this.client.subscriptionId() == null) {
throw n... |
public class class_name {
private void addIssuerNameInternal(Object name, X500Principal principal) {
if (issuerNames == null) {
issuerNames = new HashSet<Object>();
}
if (issuerX500Principals == null) {
issuerX500Principals = new HashSet<X500Principal>();
}
... | public class class_name {
private void addIssuerNameInternal(Object name, X500Principal principal) {
if (issuerNames == null) {
issuerNames = new HashSet<Object>(); // depends on control dependency: [if], data = [none]
}
if (issuerX500Principals == null) {
issuerX500Prin... |
public class class_name {
private void processInternalListener(Class<?> listenerClass) {
InternalListenerMetadata listenerMetadata = InternalListenerIntrospector
.introspect(listenerClass);
Map<CallbackType, Method> callbacks = listenerMetadata.getCallbacks();
if (callbacks != null) {
for (Ma... | public class class_name {
private void processInternalListener(Class<?> listenerClass) {
InternalListenerMetadata listenerMetadata = InternalListenerIntrospector
.introspect(listenerClass);
Map<CallbackType, Method> callbacks = listenerMetadata.getCallbacks();
if (callbacks != null) {
for (Ma... |
public class class_name {
public final T single() {
Iterator<T> it = iterator();
if (it.hasNext()) {
T v = it.next();
if (it.hasNext()) {
throw new IndexOutOfBoundsException("The source has more than one element.");
}
return v;
}
... | public class class_name {
public final T single() {
Iterator<T> it = iterator();
if (it.hasNext()) {
T v = it.next();
if (it.hasNext()) {
throw new IndexOutOfBoundsException("The source has more than one element.");
}
return v; // depends ... |
public class class_name {
public static void addTray(final Image image, final String name,
final PopupMenu popup)
{
final Class[] trayIconArgTypes = new Class[] {
java.awt.Image.class,
java.lang.String.class,
java.awt.PopupMenu.class
};
... | public class class_name {
public static void addTray(final Image image, final String name,
final PopupMenu popup)
{
final Class[] trayIconArgTypes = new Class[] {
java.awt.Image.class,
java.lang.String.class,
java.awt.PopupMenu.class
};
... |
public class class_name {
public void insertAll(List<E> entries) {
if(!initialized && !entries.isEmpty()) {
initialize(entries.get(0));
}
for(E entry : entries) {
insert(entry, false);
}
} } | public class class_name {
public void insertAll(List<E> entries) {
if(!initialized && !entries.isEmpty()) {
initialize(entries.get(0)); // depends on control dependency: [if], data = [none]
}
for(E entry : entries) {
insert(entry, false); // depends on control dependency: [for], data = [entry]
... |
public class class_name {
static Map<Point, Object> addHighlights(JTextComponent textComponent,
Iterable<? extends Point> appearances, Color color)
{
Highlighter.HighlightPainter painter =
new DefaultHighlighter.DefaultHighlightPainter(color);
Highlighter highlighter = text... | public class class_name {
static Map<Point, Object> addHighlights(JTextComponent textComponent,
Iterable<? extends Point> appearances, Color color)
{
Highlighter.HighlightPainter painter =
new DefaultHighlighter.DefaultHighlightPainter(color);
Highlighter highlighter = text... |
public class class_name {
@Override
public EClass getIfcPreDefinedTextFont() {
if (ifcPreDefinedTextFontEClass == null) {
ifcPreDefinedTextFontEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI)
.getEClassifiers().get(445);
}
return ifcPreDefinedTextFontEClass;
} } | public class class_name {
@Override
public EClass getIfcPreDefinedTextFont() {
if (ifcPreDefinedTextFontEClass == null) {
ifcPreDefinedTextFontEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI)
.getEClassifiers().get(445);
// depends on control dependency: [if], data = [none]... |
public class class_name {
@TargetApi(11)
public void setNavigationBarAlpha(float alpha) {
if (mNavBarAvailable && Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {
mNavBarTintView.setAlpha(alpha);
}
} } | public class class_name {
@TargetApi(11)
public void setNavigationBarAlpha(float alpha) {
if (mNavBarAvailable && Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {
mNavBarTintView.setAlpha(alpha); // depends on control dependency: [if], data = [none]
}
} } |
public class class_name {
public Node[] toArray() {
// logger.info("count " + count);
Node[] array = new Node[count];
int i = 0;
// System.out.print("node:");
Iterator it = iterator();
while (it.hasNext()) {
Entry e = (Entry) it.next();
// System... | public class class_name {
public Node[] toArray() {
// logger.info("count " + count);
Node[] array = new Node[count];
int i = 0;
// System.out.print("node:");
Iterator it = iterator();
while (it.hasNext()) {
Entry e = (Entry) it.next();
// System... |
public class class_name {
public void setName(String name) {
this.name = name;
List<Token> tokens = Tokenizer.tokenize(name, true);
int tokenCount = 0;
for (Token t : tokens) {
if (t.getType() != TokenType.TEXT) {
tokenCount++;
}
}
... | public class class_name {
public void setName(String name) {
this.name = name;
List<Token> tokens = Tokenizer.tokenize(name, true);
int tokenCount = 0;
for (Token t : tokens) {
if (t.getType() != TokenType.TEXT) {
tokenCount++; // depends on control depende... |
public class class_name {
@Override
public synchronized void delete(Context context, AuthProviderType type) {
SharedPreferences prefs = context.getSharedPreferences(PREFERENCES, Context.MODE_PRIVATE);
String authData = prefs.getString(USER_AUTH_DATA, null);
Editor editor = prefs.edit();
if(!String... | public class class_name {
@Override
public synchronized void delete(Context context, AuthProviderType type) {
SharedPreferences prefs = context.getSharedPreferences(PREFERENCES, Context.MODE_PRIVATE);
String authData = prefs.getString(USER_AUTH_DATA, null);
Editor editor = prefs.edit();
if(!String... |
public class class_name {
public static void runExample(AdManagerServices adManagerServices, AdManagerSession session)
throws RemoteException {
ActivityServiceInterface activityService =
adManagerServices.get(session, ActivityServiceInterface.class);
// Create a statement to select activities.
... | public class class_name {
public static void runExample(AdManagerServices adManagerServices, AdManagerSession session)
throws RemoteException {
ActivityServiceInterface activityService =
adManagerServices.get(session, ActivityServiceInterface.class);
// Create a statement to select activities.
... |
public class class_name {
@Override
public String getValue(URI uri, String url, String fieldId, String defaultValue, List<String> definedValues, Map<String, String> envAttributes, Map<String, String> fieldAttributes) {
//If there is a default value provided, return it
if (!defaultValue.isEmpty()){
return... | public class class_name {
@Override
public String getValue(URI uri, String url, String fieldId, String defaultValue, List<String> definedValues, Map<String, String> envAttributes, Map<String, String> fieldAttributes) {
//If there is a default value provided, return it
if (!defaultValue.isEmpty()){
return... |
public class class_name {
private static void initLookAndFeelIntern(final String className) {
try {
UIManager.setLookAndFeel(className);
} catch (final Exception e) {
throw new RuntimeException("Error initializing the Look And Feel!", e);
}
} } | public class class_name {
private static void initLookAndFeelIntern(final String className) {
try {
UIManager.setLookAndFeel(className);
// depends on control dependency: [try], data = [none]
} catch (final Exception e) {
throw new RuntimeException("Error initializing the Lo... |
public class class_name {
@Override
public int unregisterTopicSession(String topic, Session session) {
if (isInconsistenceContext(topic, session)) {
return 0;
}
logger.debug("'{}' unsubscribe to '{}'", session.getId(), topic);
if (Constants.Topic.ALL.equals(topic)) {
for (Map.Entry<String, Collec... | public class class_name {
@Override
public int unregisterTopicSession(String topic, Session session) {
if (isInconsistenceContext(topic, session)) {
return 0;
// depends on control dependency: [if], data = [none]
}
logger.debug("'{}' unsubscribe to '{}'", session.getId(), topic);
if (Constants.Topic.... |
public class class_name {
public static Object getRealTarget(Object target) {
if (target instanceof ProxyTarget) {
return ((ProxyTarget) target).getTarget();
}
return target;
} } | public class class_name {
public static Object getRealTarget(Object target) {
if (target instanceof ProxyTarget) {
return ((ProxyTarget) target).getTarget(); // depends on control dependency: [if], data = [none]
}
return target;
} } |
public class class_name {
public String convertArrayClassName(String className,
int bracketIndex) {
String dimensions = "";
String brackets = className.substring(bracketIndex).trim();
char[] chars = brackets.toCharArray();
for (int i = 0; i < c... | public class class_name {
public String convertArrayClassName(String className,
int bracketIndex) {
String dimensions = "";
String brackets = className.substring(bracketIndex).trim();
char[] chars = brackets.toCharArray();
for (int i = 0; i < c... |
public class class_name {
public java.util.List<String> getTaskDefinitionArns() {
if (taskDefinitionArns == null) {
taskDefinitionArns = new com.amazonaws.internal.SdkInternalList<String>();
}
return taskDefinitionArns;
} } | public class class_name {
public java.util.List<String> getTaskDefinitionArns() {
if (taskDefinitionArns == null) {
taskDefinitionArns = new com.amazonaws.internal.SdkInternalList<String>(); // depends on control dependency: [if], data = [none]
}
return taskDefinitionArns;
} } |
public class class_name {
public static RuntimeFieldFactory<?> getFieldFactory(Class<?> clazz,
IdStrategy strategy)
{
if (strategy.isDelegateRegistered(clazz))
return DELEGATE;
final RuntimeFieldFactory<?> inline = __inlineValues.get(clazz
.getName())... | public class class_name {
public static RuntimeFieldFactory<?> getFieldFactory(Class<?> clazz,
IdStrategy strategy)
{
if (strategy.isDelegateRegistered(clazz))
return DELEGATE;
final RuntimeFieldFactory<?> inline = __inlineValues.get(clazz
.getName())... |
public class class_name {
public <T extends View> boolean waitForView(final Class<T> viewClass, final int index, boolean sleep, boolean scroll){
Set<T> uniqueViews = new HashSet<T>();
boolean foundMatchingView;
while(true){
if(sleep)
sleeper.sleep();
foundMatchingView = searcher.searchFor(uniqueView... | public class class_name {
public <T extends View> boolean waitForView(final Class<T> viewClass, final int index, boolean sleep, boolean scroll){
Set<T> uniqueViews = new HashSet<T>();
boolean foundMatchingView;
while(true){
if(sleep)
sleeper.sleep();
foundMatchingView = searcher.searchFor(uniqueView... |
public class class_name {
public ListMetricsRequest withDimensions(DimensionFilter... dimensions) {
if (this.dimensions == null) {
setDimensions(new com.amazonaws.internal.SdkInternalList<DimensionFilter>(dimensions.length));
}
for (DimensionFilter ele : dimensions) {
th... | public class class_name {
public ListMetricsRequest withDimensions(DimensionFilter... dimensions) {
if (this.dimensions == null) {
setDimensions(new com.amazonaws.internal.SdkInternalList<DimensionFilter>(dimensions.length)); // depends on control dependency: [if], data = [none]
}
f... |
public class class_name {
public void initializeSitemapTab() {
String siteRoot = m_controller.getPreselectOption(
m_controller.getStartSiteRoot(),
m_controller.getSitemapSiteSelectorOptions());
getTab().setSortSelectBoxValue(siteRoot, true);
m_controller.getDefaul... | public class class_name {
public void initializeSitemapTab() {
String siteRoot = m_controller.getPreselectOption(
m_controller.getStartSiteRoot(),
m_controller.getSitemapSiteSelectorOptions());
getTab().setSortSelectBoxValue(siteRoot, true);
m_controller.getDefaul... |
public class class_name {
ModelNode toModelNode() {
ModelNode result = null;
if (map != null) {
result = new ModelNode();
for (Map.Entry<PathAddress, ResourceData> entry : map.entrySet()) {
ModelNode item = new ModelNode();
PathAddress pa = entry.... | public class class_name {
ModelNode toModelNode() {
ModelNode result = null;
if (map != null) {
result = new ModelNode(); // depends on control dependency: [if], data = [none]
for (Map.Entry<PathAddress, ResourceData> entry : map.entrySet()) {
ModelNode item = ne... |
public class class_name {
public SeleniumAssert hasAtLeast(Integer size) {
if (actual instanceof List) {
Integers.instance().assertGreaterThan(info, ((List<WebElement>) actual).size(), size);
} else if (actual instanceof PreviousWebElements) {
Integers.instance().assertGreaterTh... | public class class_name {
public SeleniumAssert hasAtLeast(Integer size) {
if (actual instanceof List) {
Integers.instance().assertGreaterThan(info, ((List<WebElement>) actual).size(), size); // depends on control dependency: [if], data = [none]
} else if (actual instanceof PreviousWebEleme... |
public class class_name {
public void init() {
String fileName = null;
try {
fileName = System.getProperty(SYSTEM_PROPERTY);
if (fileName == null) {
LOG.info("User file configuration not provided, reading default file.");
readConfiguration(getClass().getResourceAsStream(DEFAULT_FILE... | public class class_name {
public void init() {
String fileName = null;
try {
fileName = System.getProperty(SYSTEM_PROPERTY); // depends on control dependency: [try], data = [none]
if (fileName == null) {
LOG.info("User file configuration not provided, reading default file."); // depends on ... |
public class class_name {
public void setInitialClusters(List<? extends Cluster<? extends MeanModel>> initialMeans) {
double[][] vecs = new double[initialMeans.size()][];
for(int i = 0; i < vecs.length; i++) {
vecs[i] = initialMeans.get(i).getModel().getMean();
}
this.initialMeans = vecs;
} } | public class class_name {
public void setInitialClusters(List<? extends Cluster<? extends MeanModel>> initialMeans) {
double[][] vecs = new double[initialMeans.size()][];
for(int i = 0; i < vecs.length; i++) {
vecs[i] = initialMeans.get(i).getModel().getMean(); // depends on control dependency: [for], da... |
public class class_name {
public Assignments cluster(Matrix matrix, int numClusters,
Method clusterMethod,
Criterion criterionMethod) {
try {
String clmethod = clusterMethod.getClutoName();
String crtmethod = criterionMeth... | public class class_name {
public Assignments cluster(Matrix matrix, int numClusters,
Method clusterMethod,
Criterion criterionMethod) {
try {
String clmethod = clusterMethod.getClutoName();
String crtmethod = criterionMeth... |
public class class_name {
public static IMolecularFormula getMaxOccurrenceElements(IMolecularFormulaSet mfSet) {
IMolecularFormula molecularFormula = mfSet.getBuilder().newInstance(IMolecularFormula.class);
for (IMolecularFormula mf : mfSet.molecularFormulas()) {
for (IIsotope isotope : mf... | public class class_name {
public static IMolecularFormula getMaxOccurrenceElements(IMolecularFormulaSet mfSet) {
IMolecularFormula molecularFormula = mfSet.getBuilder().newInstance(IMolecularFormula.class);
for (IMolecularFormula mf : mfSet.molecularFormulas()) {
for (IIsotope isotope : mf... |
public class class_name {
@Override
public MutableCapabilities merge(Capabilities extraCapabilities) {
if (extraCapabilities == null) {
return this;
}
extraCapabilities.asMap().forEach(this::setCapability);
return this;
} } | public class class_name {
@Override
public MutableCapabilities merge(Capabilities extraCapabilities) {
if (extraCapabilities == null) {
return this; // depends on control dependency: [if], data = [none]
}
extraCapabilities.asMap().forEach(this::setCapability);
return this;
} } |
public class class_name {
private I_CmsListDateRestriction parseFromToday(CmsXmlContentValueLocation dateRestriction) {
CmsXmlContentValueLocation location = dateRestriction.getSubValue(N_FROM_TODAY);
if (location == null) {
return null;
}
CmsXmlContentValueLocation countLo... | public class class_name {
private I_CmsListDateRestriction parseFromToday(CmsXmlContentValueLocation dateRestriction) {
CmsXmlContentValueLocation location = dateRestriction.getSubValue(N_FROM_TODAY);
if (location == null) {
return null; // depends on control dependency: [if], data = [none... |
public class class_name {
public static boolean contains(Pattern pattern, CharSequence content) {
if (null == pattern || null == content) {
return false;
}
return pattern.matcher(content).find();
} } | public class class_name {
public static boolean contains(Pattern pattern, CharSequence content) {
if (null == pattern || null == content) {
return false;
// depends on control dependency: [if], data = [none]
}
return pattern.matcher(content).find();
} } |
public class class_name {
public boolean isResult() {
if (StringUtils.isNotBlank(serverResponse)) {
try {
return fromJson.castTo(Result.class) != null;
} catch (Exception e) {
log.warn("isResult: exception occurred - {}", e);
}
}
... | public class class_name {
public boolean isResult() {
if (StringUtils.isNotBlank(serverResponse)) {
try {
return fromJson.castTo(Result.class) != null; // depends on control dependency: [try], data = [none]
} catch (Exception e) {
log.warn("isResult: exce... |
public class class_name {
private void updateBounds()
{
if (npoints >= MIN_POINTS)
{
double boundsMinX = Double.MAX_VALUE;
double boundsMinY = Double.MAX_VALUE;
double boundsMaxX = -Double.MAX_VALUE;
double boundsMaxY = -Double.MAX_VALUE;
... | public class class_name {
private void updateBounds()
{
if (npoints >= MIN_POINTS)
{
double boundsMinX = Double.MAX_VALUE;
double boundsMinY = Double.MAX_VALUE;
double boundsMaxX = -Double.MAX_VALUE;
double boundsMaxY = -Double.MAX_VALUE;
... |
public class class_name {
private void addCommands() {
boolean dividerRequired = false;
if (creationEnabled) {
boolean newGroupEnabled = isNewGroupEnabled();
if (newGroupEnabled) {
this.addCommand(view.i18nNewItem(getGroupLiteral()), this::newGroup);
... | public class class_name {
private void addCommands() {
boolean dividerRequired = false;
if (creationEnabled) {
boolean newGroupEnabled = isNewGroupEnabled();
if (newGroupEnabled) {
this.addCommand(view.i18nNewItem(getGroupLiteral()), this::newGroup); // depends ... |
public class class_name {
private static String getUsername(String url) {
int atIndex = url.lastIndexOf(USERNAME_INDICATOR);
if (atIndex < 0) {
return null;
}
String username = url.substring(0, atIndex + 1);
int slashIndex = username.lastIndexOf('/');
if (sla... | public class class_name {
private static String getUsername(String url) {
int atIndex = url.lastIndexOf(USERNAME_INDICATOR);
if (atIndex < 0) {
return null; // depends on control dependency: [if], data = [none]
}
String username = url.substring(0, atIndex + 1);
int s... |
public class class_name {
@Override
public void visitClassContext(ClassContext classContext) {
try {
stack = new OpcodeStack();
nameOfThisClass = SignatureUtils.getNonAnonymousPortion(classContext.getJavaClass().getClassName());
formatterLoggers = new HashSet<>();
... | public class class_name {
@Override
public void visitClassContext(ClassContext classContext) {
try {
stack = new OpcodeStack(); // depends on control dependency: [try], data = [none]
nameOfThisClass = SignatureUtils.getNonAnonymousPortion(classContext.getJavaClass().getClassName());... |
public class class_name {
private static int[] compressedSizes(List formSpecs,
int totalSize, int totalMinSize, int totalPrefSize,
int[] minSizes, int[] prefSizes) {
// If we have less space than the total min size, answer the min sizes.
if (totalSize < totalMinSize) {
... | public class class_name {
private static int[] compressedSizes(List formSpecs,
int totalSize, int totalMinSize, int totalPrefSize,
int[] minSizes, int[] prefSizes) {
// If we have less space than the total min size, answer the min sizes.
if (totalSize < totalMinSize) {
... |
public class class_name {
public final Mono<T> timeout(Duration timeout, @Nullable Mono<? extends T> fallback,
Scheduler timer) {
final Mono<Long> _timer = Mono.delay(timeout, timer).onErrorReturn(0L);
if(fallback == null) {
return onAssembly(new MonoTimeout<>(this, _timer, timeout.toMillis() + "ms"));
}
... | public class class_name {
public final Mono<T> timeout(Duration timeout, @Nullable Mono<? extends T> fallback,
Scheduler timer) {
final Mono<Long> _timer = Mono.delay(timeout, timer).onErrorReturn(0L);
if(fallback == null) {
return onAssembly(new MonoTimeout<>(this, _timer, timeout.toMillis() + "ms")); // d... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.