code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
private ReadResultEntryBase createDataNotAvailableRead(long streamSegmentOffset, int maxLength) {
maxLength = getLengthUntilNextEntry(streamSegmentOffset, maxLength);
long storageLength = this.metadata.getStorageLength();
if (streamSegmentOffset < storageLength) {
... | public class class_name {
private ReadResultEntryBase createDataNotAvailableRead(long streamSegmentOffset, int maxLength) {
maxLength = getLengthUntilNextEntry(streamSegmentOffset, maxLength);
long storageLength = this.metadata.getStorageLength();
if (streamSegmentOffset < storageLength) {
... |
public class class_name {
public synchronized static void setFormatter(Formatter formatter) {
java.util.logging.Logger root = java.util.logging.LogManager.getLogManager().getLogger(StringUtils.EMPTY);
for (Handler h : root.getHandlers()) {
h.setFormatter(formatter);
}
} } | public class class_name {
public synchronized static void setFormatter(Formatter formatter) {
java.util.logging.Logger root = java.util.logging.LogManager.getLogManager().getLogger(StringUtils.EMPTY);
for (Handler h : root.getHandlers()) {
h.setFormatter(formatter); // depends on control dependenc... |
public class class_name {
private void checkOrMarkPrivateAccess(Expression source, FieldNode fn) {
if (fn!=null && Modifier.isPrivate(fn.getModifiers()) &&
(fn.getDeclaringClass() != typeCheckingContext.getEnclosingClassNode() || typeCheckingContext.getEnclosingClosure()!=null) &&
fn.ge... | public class class_name {
private void checkOrMarkPrivateAccess(Expression source, FieldNode fn) {
if (fn!=null && Modifier.isPrivate(fn.getModifiers()) &&
(fn.getDeclaringClass() != typeCheckingContext.getEnclosingClassNode() || typeCheckingContext.getEnclosingClosure()!=null) &&
fn.ge... |
public class class_name {
private Map<String, Object> getScopeMap(Scope scope) {
switch(scope) {
case FLASH:
if(flashAttributesFactoryBean != null) {
return flashAttributesFactoryBean.getAttributesMap();
} else {
return getAttributesMap(flashAttributesFactoryBeanName);
}
case REQUEST:
... | public class class_name {
private Map<String, Object> getScopeMap(Scope scope) {
switch(scope) {
case FLASH:
if(flashAttributesFactoryBean != null) {
return flashAttributesFactoryBean.getAttributesMap(); // depends on control dependency: [if], data = [none]
} else {
return getAttributesMap(flash... |
public class class_name {
public List<T> hasValue(String property, String value) {
List<T> geoPackages = new ArrayList<>();
for (PropertiesCoreExtension<T, ?, ?, ?> properties : propertiesMap
.values()) {
if (properties.hasValue(property, value)) {
geoPackages.add(properties.getGeoPackage());
}
}
... | public class class_name {
public List<T> hasValue(String property, String value) {
List<T> geoPackages = new ArrayList<>();
for (PropertiesCoreExtension<T, ?, ?, ?> properties : propertiesMap
.values()) {
if (properties.hasValue(property, value)) {
geoPackages.add(properties.getGeoPackage()); // depends... |
public class class_name {
String getStatus(CmsUser user, boolean disabled, boolean newUser) {
if (disabled) {
return CmsVaadinUtils.getMessageText(Messages.GUI_USERMANAGEMENT_USER_DISABLED_0);
}
if (newUser) {
return CmsVaadinUtils.getMessageText(Messages.GUI_USERMANAGE... | public class class_name {
String getStatus(CmsUser user, boolean disabled, boolean newUser) {
if (disabled) {
return CmsVaadinUtils.getMessageText(Messages.GUI_USERMANAGEMENT_USER_DISABLED_0); // depends on control dependency: [if], data = [none]
}
if (newUser) {
return... |
public class class_name {
@Override
public Collection<Task> getAppTasks(ApplicationDefinition appDef) {
List<Task> appTasks = new ArrayList<>();
for (TableDefinition tableDef : appDef.getTableDefinitions().values()) {
String dataAgingFreq = getDataAgingFreq(tableDef);
i... | public class class_name {
@Override
public Collection<Task> getAppTasks(ApplicationDefinition appDef) {
List<Task> appTasks = new ArrayList<>();
for (TableDefinition tableDef : appDef.getTableDefinitions().values()) {
String dataAgingFreq = getDataAgingFreq(tableDef);
i... |
public class class_name {
public static boolean increment(byte[] value) {
for (int i=value.length; --i>=0; ) {
byte newValue = (byte) ((value[i] & 0xff) + 1);
value[i] = newValue;
if (newValue != 0) {
// No carry bit, so done adding.
ret... | public class class_name {
public static boolean increment(byte[] value) {
for (int i=value.length; --i>=0; ) {
byte newValue = (byte) ((value[i] & 0xff) + 1);
value[i] = newValue;
// depends on control dependency: [for], data = [i]
if (newValue != 0) {
/... |
public class class_name {
void insertDropElement(
CmsContainerElementData elementData,
I_CmsDropContainer container,
int index,
CmsContainerPageElementPanel draggable,
String modelReplaceId) {
try {
CmsContainerPageElementPanel containerElement = m_controlle... | public class class_name {
void insertDropElement(
CmsContainerElementData elementData,
I_CmsDropContainer container,
int index,
CmsContainerPageElementPanel draggable,
String modelReplaceId) {
try {
CmsContainerPageElementPanel containerElement = m_controlle... |
public class class_name {
@Override
public EEnum getIfcBuildingElementProxyTypeEnum() {
if (ifcBuildingElementProxyTypeEnumEEnum == null) {
ifcBuildingElementProxyTypeEnumEEnum = (EEnum) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI)
.getEClassifiers().get(925);
}
return ifcBuildingEl... | public class class_name {
@Override
public EEnum getIfcBuildingElementProxyTypeEnum() {
if (ifcBuildingElementProxyTypeEnumEEnum == null) {
ifcBuildingElementProxyTypeEnumEEnum = (EEnum) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI)
.getEClassifiers().get(925);
// depends on control depen... |
public class class_name {
public void broadcast(BehaviorEvent event)
throws AbortProcessingException {
if (null == event) {
throw new NullPointerException();
}
if (null != listeners) {
for (BehaviorListener listener : listeners) {
if (event.isAp... | public class class_name {
public void broadcast(BehaviorEvent event)
throws AbortProcessingException {
if (null == event) {
throw new NullPointerException();
}
if (null != listeners) {
for (BehaviorListener listener : listeners) {
if (event.isAp... |
public class class_name {
public Execution execute(Specification specification, SystemUnderTest systemUnderTest, boolean implementedVersion, String sections, String locale)
{
if(isRemote())
{
return executeRemotely(specification, systemUnderTest, implementedVersion, sections, locale);
}
e... | public class class_name {
public Execution execute(Specification specification, SystemUnderTest systemUnderTest, boolean implementedVersion, String sections, String locale)
{
if(isRemote())
{
return executeRemotely(specification, systemUnderTest, implementedVersion, sections, locale); // depends on... |
public class class_name {
static <T> void blockyTandemMergeSort(final T[] keyArr, final long[] valArr, final int arrLen,
final int blkSize, final Comparator<? super T> comparator) {
assert blkSize >= 1;
if (arrLen <= blkSize) { return; }
int numblks = arrLen / blkSize;
if ((numblks * blkSize) < a... | public class class_name {
static <T> void blockyTandemMergeSort(final T[] keyArr, final long[] valArr, final int arrLen,
final int blkSize, final Comparator<? super T> comparator) {
assert blkSize >= 1;
if (arrLen <= blkSize) { return; } // depends on control dependency: [if], data = [none]
int numbl... |
public class class_name {
@NonNull
public static Scheduler initSingleScheduler(@NonNull Callable<Scheduler> defaultScheduler) {
ObjectHelper.requireNonNull(defaultScheduler, "Scheduler Callable can't be null");
Function<? super Callable<Scheduler>, ? extends Scheduler> f = onInitSingleHandler;
... | public class class_name {
@NonNull
public static Scheduler initSingleScheduler(@NonNull Callable<Scheduler> defaultScheduler) {
ObjectHelper.requireNonNull(defaultScheduler, "Scheduler Callable can't be null");
Function<? super Callable<Scheduler>, ? extends Scheduler> f = onInitSingleHandler;
... |
public class class_name {
public DimensionGroup withDimensions(String... dimensions) {
if (this.dimensions == null) {
setDimensions(new java.util.ArrayList<String>(dimensions.length));
}
for (String ele : dimensions) {
this.dimensions.add(ele);
}
return t... | public class class_name {
public DimensionGroup withDimensions(String... dimensions) {
if (this.dimensions == null) {
setDimensions(new java.util.ArrayList<String>(dimensions.length)); // depends on control dependency: [if], data = [none]
}
for (String ele : dimensions) {
... |
public class class_name {
public boolean hasDeclaredMethodAnnotation(final String methodAnnotationName) {
for (final MethodInfo mi : getDeclaredMethodInfo()) {
if (mi.hasAnnotation(methodAnnotationName)) {
return true;
}
}
return false;
} } | public class class_name {
public boolean hasDeclaredMethodAnnotation(final String methodAnnotationName) {
for (final MethodInfo mi : getDeclaredMethodInfo()) {
if (mi.hasAnnotation(methodAnnotationName)) {
return true; // depends on control dependency: [if], data = [none]
... |
public class class_name {
private String constructMetricQueryKey(Long startTimeStampBoundary, MetricQuery query) {
StringBuilder sb = new StringBuilder();
sb.append(startTimeStampBoundary).append(":");
sb.append(query.getNamespace()).append(":");
sb.append(query.getScope()).append(":")... | public class class_name {
private String constructMetricQueryKey(Long startTimeStampBoundary, MetricQuery query) {
StringBuilder sb = new StringBuilder();
sb.append(startTimeStampBoundary).append(":");
sb.append(query.getNamespace()).append(":");
sb.append(query.getScope()).append(":")... |
public class class_name {
public static Configuration get() {
Configuration conf = new Configuration();
File cloudConfigPath;
if (isWindows()) {
cloudConfigPath = new File(getEnvironment().get("APPDATA"), "gcloud");
} else {
cloudConfigPath = new File(System.getProperty("user.home"), ".conf... | public class class_name {
public static Configuration get() {
Configuration conf = new Configuration();
File cloudConfigPath;
if (isWindows()) {
cloudConfigPath = new File(getEnvironment().get("APPDATA"), "gcloud"); // depends on control dependency: [if], data = [none]
} else {
cloudConfigP... |
public class class_name {
public static <T> T awaitOrCancel(RedisFuture<T> cmd, long timeout, TimeUnit unit) {
try {
if (!cmd.await(timeout, unit)) {
cmd.cancel(true);
throw ExceptionFactory.createTimeoutException(Duration.ofNanos(unit.toNanos(timeout)));
... | public class class_name {
public static <T> T awaitOrCancel(RedisFuture<T> cmd, long timeout, TimeUnit unit) {
try {
if (!cmd.await(timeout, unit)) {
cmd.cancel(true); // depends on control dependency: [if], data = [none]
throw ExceptionFactory.createTimeoutExceptio... |
public class class_name {
private static <N> boolean subgraphHasCycle(
Graph<N> graph,
Map<Object, NodeVisitState> visitedNodes,
N node,
@NullableDecl N previousNode) {
NodeVisitState state = visitedNodes.get(node);
if (state == NodeVisitState.COMPLETE) {
return false;
}
i... | public class class_name {
private static <N> boolean subgraphHasCycle(
Graph<N> graph,
Map<Object, NodeVisitState> visitedNodes,
N node,
@NullableDecl N previousNode) {
NodeVisitState state = visitedNodes.get(node);
if (state == NodeVisitState.COMPLETE) {
return false; // depends ... |
public class class_name {
public List<CrowdAgent> getActiveAgents() {
List<CrowdAgent> agents = new ArrayList<>(m_maxAgents);
for (int i = 0; i < m_maxAgents; ++i) {
if (m_agents[i].active) {
agents.add(m_agents[i]);
}
}
return agents;
} } | public class class_name {
public List<CrowdAgent> getActiveAgents() {
List<CrowdAgent> agents = new ArrayList<>(m_maxAgents);
for (int i = 0; i < m_maxAgents; ++i) {
if (m_agents[i].active) {
agents.add(m_agents[i]); // depends on control dependency: [if], data = [none]
... |
public class class_name {
public void marshall(RebootInstanceRequest rebootInstanceRequest, ProtocolMarshaller protocolMarshaller) {
if (rebootInstanceRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshalle... | public class class_name {
public void marshall(RebootInstanceRequest rebootInstanceRequest, ProtocolMarshaller protocolMarshaller) {
if (rebootInstanceRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshalle... |
public class class_name {
public void setRadarChartMode(final RadarChart.Mode MODE) {
if (null == radarChartMode) {
_radarChartMode = MODE;
fireTileEvent(RECALC_EVENT);
} else {
radarChartMode.set(MODE);
}
} } | public class class_name {
public void setRadarChartMode(final RadarChart.Mode MODE) {
if (null == radarChartMode) {
_radarChartMode = MODE; // depends on control dependency: [if], data = [none]
fireTileEvent(RECALC_EVENT); // depends on control dependency: [if], data = [none]
} ... |
public class class_name {
public static boolean isEqual(String string0, String string1, boolean caseSensitive) {
if (string0 == null && string1 == null) {
return true;
}
if (string0 == null && string1 != null) {
return false;
}
if (string0 != null && stri... | public class class_name {
public static boolean isEqual(String string0, String string1, boolean caseSensitive) {
if (string0 == null && string1 == null) {
return true; // depends on control dependency: [if], data = [none]
}
if (string0 == null && string1 != null) {
retur... |
public class class_name {
public void setHsmConfigurations(java.util.Collection<HsmConfiguration> hsmConfigurations) {
if (hsmConfigurations == null) {
this.hsmConfigurations = null;
return;
}
this.hsmConfigurations = new com.amazonaws.internal.SdkInternalList<HsmConfig... | public class class_name {
public void setHsmConfigurations(java.util.Collection<HsmConfiguration> hsmConfigurations) {
if (hsmConfigurations == null) {
this.hsmConfigurations = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], da... |
public class class_name {
private JsonToken readingConstant(JsonTokenType type, JsonToken token) {
try {
int numCharsToRead = ((String) type.getValidator()).length();
char[] chars = new char[numCharsToRead];
reader.read(chars);
String stringRead = new String(char... | public class class_name {
private JsonToken readingConstant(JsonTokenType type, JsonToken token) {
try {
int numCharsToRead = ((String) type.getValidator()).length();
char[] chars = new char[numCharsToRead];
reader.read(chars); // depends on control dependency: [try], data =... |
public class class_name {
public static void load(String confingFilename) {
try {
if (config == null) {
config = new AXUConfig();
logger.debug("create new AXUConfig instance");
}
// DEV ๋ชจ๋์ธ ๊ฒฝ์ฐ ๊ฐ ํ๊ทธ๋ง๋ค config๋ฅผ ์์ฒญํ๋ฏ๋ก 3์ด์ ํ ๋ฒ์ฉ๋ง ์ค์ ์ ๋ก๋ฉํ๋๋ก ํ๋ค.
long nowTime = (new Date()).getTime();
... | public class class_name {
public static void load(String confingFilename) {
try {
if (config == null) {
config = new AXUConfig(); // depends on control dependency: [if], data = [none]
logger.debug("create new AXUConfig instance"); // depends on control dependency: [if], data = [none]
}
// ... |
public class class_name {
public void updateLayout() {
// TODO: we should not do this kind of things...
if (!isAttached()) {
return;
}
int floatBoxWidth = getFloatBoxWidth();
m_primary.getElement().getStyle().setMarginLeft(floatBoxWidth, Unit.PX);
updateVert... | public class class_name {
public void updateLayout() {
// TODO: we should not do this kind of things...
if (!isAttached()) {
return; // depends on control dependency: [if], data = [none]
}
int floatBoxWidth = getFloatBoxWidth();
m_primary.getElement().getStyle().set... |
public class class_name {
public ServiceCall<Void> addWord(AddWordOptions addWordOptions) {
Validator.notNull(addWordOptions, "addWordOptions cannot be null");
String[] pathSegments = { "v1/customizations", "words" };
String[] pathParameters = { addWordOptions.customizationId(), addWordOptions.word() };
... | public class class_name {
public ServiceCall<Void> addWord(AddWordOptions addWordOptions) {
Validator.notNull(addWordOptions, "addWordOptions cannot be null");
String[] pathSegments = { "v1/customizations", "words" };
String[] pathParameters = { addWordOptions.customizationId(), addWordOptions.word() };
... |
public class class_name {
public void addBlackListedHost(final String spec) throws ConfigurationException, FileNotFoundException {
if (spec.length() == 0) return; // Skip empty specs
if (spec.startsWith("file:")) {
final LineIterator lineIterator = new LineIterator(new FastBufferedReader(new InputStreamReader(... | public class class_name {
public void addBlackListedHost(final String spec) throws ConfigurationException, FileNotFoundException {
if (spec.length() == 0) return; // Skip empty specs
if (spec.startsWith("file:")) {
final LineIterator lineIterator = new LineIterator(new FastBufferedReader(new InputStreamReader(... |
public class class_name {
private Date[] getBeforeDays(int year, int month) {
Calendar cal = Calendar.getInstance();
cal.set(year, month, 1);
int dayNum = getDayIndex(year, month, 1) - 1;
Date[] date = new Date[dayNum];
if (dayNum > 0)
for (int i = 0; i < dayNum; i++... | public class class_name {
private Date[] getBeforeDays(int year, int month) {
Calendar cal = Calendar.getInstance();
cal.set(year, month, 1);
int dayNum = getDayIndex(year, month, 1) - 1;
Date[] date = new Date[dayNum];
if (dayNum > 0)
for (int i = 0; i < dayNum; i++... |
public class class_name {
@Override
public int join(final OneSelect _oneSelect,
final SQLSelect _select,
final int _relIndex)
{
final int relIndex = super.join(_oneSelect, _select, _relIndex);
Integer ret;
ret = _oneSelect.getTableIndex(AbstractSt... | public class class_name {
@Override
public int join(final OneSelect _oneSelect,
final SQLSelect _select,
final int _relIndex)
{
final int relIndex = super.join(_oneSelect, _select, _relIndex);
Integer ret;
ret = _oneSelect.getTableIndex(AbstractSt... |
public class class_name {
public ServerGroupReplicationConfiguration withServerReplicationConfigurations(ServerReplicationConfiguration... serverReplicationConfigurations) {
if (this.serverReplicationConfigurations == null) {
setServerReplicationConfigurations(new java.util.ArrayList<ServerReplicat... | public class class_name {
public ServerGroupReplicationConfiguration withServerReplicationConfigurations(ServerReplicationConfiguration... serverReplicationConfigurations) {
if (this.serverReplicationConfigurations == null) {
setServerReplicationConfigurations(new java.util.ArrayList<ServerReplicat... |
public class class_name {
public Instruction find(double lat, double lon, double maxDistance) {
// handle special cases
if (size() == 0) {
return null;
}
PointList points = get(0).getPoints();
double prevLat = points.getLatitude(0);
double prevLon = points.ge... | public class class_name {
public Instruction find(double lat, double lon, double maxDistance) {
// handle special cases
if (size() == 0) {
return null; // depends on control dependency: [if], data = [none]
}
PointList points = get(0).getPoints();
double prevLat = poi... |
public class class_name {
public static String getMd5Hash(String topic, String[] partitions) {
ArrayList<String> elements = new ArrayList<String>();
elements.add(topic);
for (String partition : partitions) {
elements.add(partition);
}
String pathPrefix = StringUtils.join(elements,... | public class class_name {
public static String getMd5Hash(String topic, String[] partitions) {
ArrayList<String> elements = new ArrayList<String>();
elements.add(topic);
for (String partition : partitions) {
elements.add(partition); // depends on control dependency: [for], data = [partition]
... |
public class class_name {
private static String toChinese(int amountPart, boolean isUseTraditional) {
// if (amountPart < 0 || amountPart > 10000) {
// throw new IllegalArgumentException("Number must 0 < num < 10000๏ผ");
// }
String[] numArray = isUseTraditional ? traditionalDigits : simpleDigits;
String[] uni... | public class class_name {
private static String toChinese(int amountPart, boolean isUseTraditional) {
// if (amountPart < 0 || amountPart > 10000) {
// throw new IllegalArgumentException("Number must 0 < num < 10000๏ผ");
// }
String[] numArray = isUseTraditional ? traditionalDigits : simpleDigits;
String[] uni... |
public class class_name {
public static MonitorableRegistry getNamedInstance(String name) {
MonitorableRegistry instance = NAMED_INSTANCES.get(name);
if (instance == null) {
instance = new MonitorableRegistry();
MonitorableRegistry existing = NAMED_INSTANCES.putIfAbsent(name... | public class class_name {
public static MonitorableRegistry getNamedInstance(String name) {
MonitorableRegistry instance = NAMED_INSTANCES.get(name);
if (instance == null) {
instance = new MonitorableRegistry();
// depends on control dependency: [if], data = [none]
Monitorab... |
public class class_name {
@Override
public String[] getStringAttributes(String name) {
try {
List<String> objects = collectAttributeValuesAsList(name, String.class);
return objects.toArray(new String[objects.size()]);
}
catch (NoSuchAttributeException e) {
// The attribute does not ex... | public class class_name {
@Override
public String[] getStringAttributes(String name) {
try {
List<String> objects = collectAttributeValuesAsList(name, String.class);
return objects.toArray(new String[objects.size()]); // depends on control dependency: [try], data = [none]
}
catch (NoSuch... |
public class class_name {
private void setMonth(int newMonth, boolean select) {
if (!initialized || localInitialize) {
return;
}
int oldMonth = month;
month = newMonth;
if (select) {
comboBox.setSelectedIndex(month);
}
if (dayChooser != null) {
dayChooser.setMonth(month);
}
firePropertyC... | public class class_name {
private void setMonth(int newMonth, boolean select) {
if (!initialized || localInitialize) {
return; // depends on control dependency: [if], data = [none]
}
int oldMonth = month;
month = newMonth;
if (select) {
comboBox.setSelectedIndex(month); // depends on control dependen... |
public class class_name {
public synchronized static final IntervalLoggerController getControllerInstance() {
IntervalLoggerController ic = null;
// If no controller, create a bew instance.
if( instance == null ) {
instance = new DefaultIntervalLoggerController();
ic = new IntervalLoggerControllerW... | public class class_name {
public synchronized static final IntervalLoggerController getControllerInstance() {
IntervalLoggerController ic = null;
// If no controller, create a bew instance.
if( instance == null ) {
instance = new DefaultIntervalLoggerController(); // depends on control dependency: [if]... |
public class class_name {
private static String getLongLiteral(LiteralTree literalTree, VisitorState state) {
JCLiteral longLiteral = (JCLiteral) literalTree;
CharSequence sourceFile = state.getSourceCode();
if (sourceFile == null) {
return null;
}
int start = longLiteral.getStartPosition();
... | public class class_name {
private static String getLongLiteral(LiteralTree literalTree, VisitorState state) {
JCLiteral longLiteral = (JCLiteral) literalTree;
CharSequence sourceFile = state.getSourceCode();
if (sourceFile == null) {
return null; // depends on control dependency: [if], data = [none]
... |
public class class_name {
public void cacheBuiltins() {
ctors = new EnumMap<Builtins, BaseFunction>(Builtins.class);
for (Builtins builtin : Builtins.values()) {
Object value = ScriptableObject.getProperty(this, builtin.name());
if (value instanceof BaseFunction) {
... | public class class_name {
public void cacheBuiltins() {
ctors = new EnumMap<Builtins, BaseFunction>(Builtins.class);
for (Builtins builtin : Builtins.values()) {
Object value = ScriptableObject.getProperty(this, builtin.name());
if (value instanceof BaseFunction) {
... |
public class class_name {
protected String getVersionString(int sessionVersion) {
String sessionVersionString = _versionPrefix;
if (_versionPrefixLength > 0) {
if (sessionVersion > 0) {
StringBuffer sb = new StringBuffer();
sb.append(_versionPrefix).append(se... | public class class_name {
protected String getVersionString(int sessionVersion) {
String sessionVersionString = _versionPrefix;
if (_versionPrefixLength > 0) {
if (sessionVersion > 0) {
StringBuffer sb = new StringBuffer();
sb.append(_versionPrefix).append(se... |
public class class_name {
@Override
public void loadProperties(String restClientName){
enableDynamicProperties = true;
setClientName(restClientName);
loadDefaultValues();
Configuration props = ConfigurationManager.getConfigInstance().subset(restClientName);
for (Iterator<Str... | public class class_name {
@Override
public void loadProperties(String restClientName){
enableDynamicProperties = true;
setClientName(restClientName);
loadDefaultValues();
Configuration props = ConfigurationManager.getConfigInstance().subset(restClientName);
for (Iterator<Str... |
public class class_name {
public void setOperations(java.util.Collection<OperationSummary> operations) {
if (operations == null) {
this.operations = null;
return;
}
this.operations = new java.util.ArrayList<OperationSummary>(operations);
} } | public class class_name {
public void setOperations(java.util.Collection<OperationSummary> operations) {
if (operations == null) {
this.operations = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
public static URL asUrlOrResource(String s) {
if (Strings.isNullOrEmpty(s)) {
return null;
}
try {
return new URL(s);
} catch (MalformedURLException e) {
//If its not a valid URL try to treat it as a local resource.
... | public class class_name {
public static URL asUrlOrResource(String s) {
if (Strings.isNullOrEmpty(s)) {
return null; // depends on control dependency: [if], data = [none]
}
try {
return new URL(s); // depends on control dependency: [try], data = [none]
} catch (... |
public class class_name {
public static boolean isSyncSubscriber(SubscriberConfigProvider.SubscriberConfig subscribe, Class eventClass,
Class subscriberClass) {
if (subscribe.syncIfAllowed() && allowSyncSubs.get()) {
SetMultimap<String, String> whiteList =... | public class class_name {
public static boolean isSyncSubscriber(SubscriberConfigProvider.SubscriberConfig subscribe, Class eventClass,
Class subscriberClass) {
if (subscribe.syncIfAllowed() && allowSyncSubs.get()) {
SetMultimap<String, String> whiteList =... |
public class class_name {
public final void getAllTagsLemmasToNAF(final KAFDocument kaf) {
final List<List<WF>> sentences = kaf.getSentences();
for (final List<WF> wfs : sentences) {
final List<ixa.kaflib.Span<WF>> tokenSpans = new ArrayList<ixa.kaflib.Span<WF>>();
final String[] tokens = new Stri... | public class class_name {
public final void getAllTagsLemmasToNAF(final KAFDocument kaf) {
final List<List<WF>> sentences = kaf.getSentences();
for (final List<WF> wfs : sentences) {
final List<ixa.kaflib.Span<WF>> tokenSpans = new ArrayList<ixa.kaflib.Span<WF>>();
final String[] tokens = new Stri... |
public class class_name {
private static double parseResizeWeight(String token) {
if (token.equals("g") || token.equals("grow")) {
return DEFAULT_GROW;
}
if (token.equals("n") || token.equals("nogrow") || token.equals("none")) {
return NO_GROW;
}
// Must ... | public class class_name {
private static double parseResizeWeight(String token) {
if (token.equals("g") || token.equals("grow")) {
return DEFAULT_GROW; // depends on control dependency: [if], data = [none]
}
if (token.equals("n") || token.equals("nogrow") || token.equals("none")) {
... |
public class class_name {
public static void tripleToEdge(final long[] triple, final long seed, final int numVertices, final int partSize, final int e[]) {
if (numVertices == 0) {
e[0] = e[1] = e[2] = -1;
return;
}
final long[] hash = new long[3];
Hashes.spooky4(triple, seed, hash);
e[0] = (int)((hash[... | public class class_name {
public static void tripleToEdge(final long[] triple, final long seed, final int numVertices, final int partSize, final int e[]) {
if (numVertices == 0) {
e[0] = e[1] = e[2] = -1; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data... |
public class class_name {
public void showSitemapView(boolean showSitemap) {
if (showSitemap) {
setSortContainerPropertyId(CmsResourceTableProperty.PROPERTY_NAVIGATION_TEXT);
setSortAscending(true);
} else {
setSortContainerPropertyId(CAPTION_FOLDERS);
s... | public class class_name {
public void showSitemapView(boolean showSitemap) {
if (showSitemap) {
setSortContainerPropertyId(CmsResourceTableProperty.PROPERTY_NAVIGATION_TEXT); // depends on control dependency: [if], data = [none]
setSortAscending(true); // depends on control dependency:... |
public class class_name {
protected void createEncoding() {
if (encoding.startsWith("#")) {
specialMap = new IntHashtable();
StringTokenizer tok = new StringTokenizer(encoding.substring(1), " ,\t\n\r\f");
if (tok.nextToken().equals("full")) {
while (tok.hasMo... | public class class_name {
protected void createEncoding() {
if (encoding.startsWith("#")) {
specialMap = new IntHashtable(); // depends on control dependency: [if], data = [none]
StringTokenizer tok = new StringTokenizer(encoding.substring(1), " ,\t\n\r\f");
if (tok.nextToke... |
public class class_name {
public static void transform( Se3_F64 se, List<Point3D_F64> points ) {
for( Point3D_F64 p : points ) {
transform(se,p,p);
}
} } | public class class_name {
public static void transform( Se3_F64 se, List<Point3D_F64> points ) {
for( Point3D_F64 p : points ) {
transform(se,p,p); // depends on control dependency: [for], data = [p]
}
} } |
public class class_name {
@Override
public String encodeDiff(final RevisionCodecData codecData, final Diff diff)
throws UnsupportedEncodingException, EncodingException
{
String sEncoding;
byte[] bData = encode(codecData, diff);
if (MODE_ZIP_COMPRESSION) {
Deflater compresser = new Deflater();
compres... | public class class_name {
@Override
public String encodeDiff(final RevisionCodecData codecData, final Diff diff)
throws UnsupportedEncodingException, EncodingException
{
String sEncoding;
byte[] bData = encode(codecData, diff);
if (MODE_ZIP_COMPRESSION) {
Deflater compresser = new Deflater();
compres... |
public class class_name {
public boolean hasUsersInOtherOus() {
if (m_lazy) {
// if we use database-side paging, we have to assume that there may be users from other OUs
return true;
}
if (m_hasUsersInOtherOus == null) {
// lazzy initialization
m... | public class class_name {
public boolean hasUsersInOtherOus() {
if (m_lazy) {
// if we use database-side paging, we have to assume that there may be users from other OUs
return true; // depends on control dependency: [if], data = [none]
}
if (m_hasUsersInOtherOus == nul... |
public class class_name {
protected String buildSnapshotProps(Map<String, String> props) {
Properties snapshotProperties = new Properties();
for (String key : props.keySet()) {
snapshotProperties.setProperty(key, props.get(key));
}
StringWriter writer = new StringWriter();
... | public class class_name {
protected String buildSnapshotProps(Map<String, String> props) {
Properties snapshotProperties = new Properties();
for (String key : props.keySet()) {
snapshotProperties.setProperty(key, props.get(key)); // depends on control dependency: [for], data = [key]
... |
public class class_name {
@Override
public void visitClassContext(ClassContext classContext) {
currentClass = classContext.getJavaClass();
if (currentClass.getMajor() >= Const.MAJOR_1_8) {
try {
stack = new OpcodeStack();
activeStackOps = new ArrayDeque<... | public class class_name {
@Override
public void visitClassContext(ClassContext classContext) {
currentClass = classContext.getJavaClass();
if (currentClass.getMajor() >= Const.MAJOR_1_8) {
try {
stack = new OpcodeStack(); // depends on control dependency: [try], data = ... |
public class class_name {
public static Locale read(String localeString) {
if (localeString == null)
return null;
if (localeString.toLowerCase().equals("default"))
return Locale.getDefault();
int languageIndex = localeString.indexOf('_');
if (languageIndex == -1)
return null;
int countryIndex = loca... | public class class_name {
public static Locale read(String localeString) {
if (localeString == null)
return null;
if (localeString.toLowerCase().equals("default"))
return Locale.getDefault();
int languageIndex = localeString.indexOf('_');
if (languageIndex == -1)
return null;
int countryIndex = loca... |
public class class_name {
@Override
public void close() {
logger.debug("{} close()", logPrefix());
if (clusterChannelWriter != null) {
retriggerCommands(doExclusive(this::drainCommands));
}
super.close();
} } | public class class_name {
@Override
public void close() {
logger.debug("{} close()", logPrefix());
if (clusterChannelWriter != null) {
retriggerCommands(doExclusive(this::drainCommands)); // depends on control dependency: [if], data = [none]
}
super.close();
} } |
public class class_name {
protected Content createProcedureLambdaLabel(LinkInfoImpl linkInfo) {
final ParameterizedType type = linkInfo.type.asParameterizedType();
if (type != null) {
final Type[] arguments = type.typeArguments();
if (arguments != null && arguments.length > 0) {
return createLambdaLabel(... | public class class_name {
protected Content createProcedureLambdaLabel(LinkInfoImpl linkInfo) {
final ParameterizedType type = linkInfo.type.asParameterizedType();
if (type != null) {
final Type[] arguments = type.typeArguments();
if (arguments != null && arguments.length > 0) {
return createLambdaLabel(... |
public class class_name {
protected Session getProducerSession() throws JMSException {
if (producerSession == null) {
synchronized (this) {
if (producerSession == null) {
producerSession = createSession(Session.AUTO_ACKNOWLEDGE);
}
}
... | public class class_name {
protected Session getProducerSession() throws JMSException {
if (producerSession == null) {
synchronized (this) {
if (producerSession == null) {
producerSession = createSession(Session.AUTO_ACKNOWLEDGE); // depends on control dependency:... |
public class class_name {
public static Predicate<String> notEmptyString() {
return new Predicate<String>() {
@Override
public boolean test(String testValue) {
if (notNull().test(testValue)) {
for (Character c : testValue.toCharArray()) {
... | public class class_name {
public static Predicate<String> notEmptyString() {
return new Predicate<String>() {
@Override
public boolean test(String testValue) {
if (notNull().test(testValue)) {
for (Character c : testValue.toCharArray()) {
... |
public class class_name {
public EthBlock getFirstBlock(boolean includeTransactions)
{
try
{
return web3j.ethGetBlockByNumber(DefaultBlockParameterName.EARLIEST, includeTransactions).send();
}
catch (IOException ex)
{
LOGGER.error("Not able to find th... | public class class_name {
public EthBlock getFirstBlock(boolean includeTransactions)
{
try
{
return web3j.ethGetBlockByNumber(DefaultBlockParameterName.EARLIEST, includeTransactions).send(); // depends on control dependency: [try], data = [none]
}
catch (IOException ex)
... |
public class class_name {
@Override
public CommerceAccountOrganizationRel fetchByOrganizationId_Last(
long organizationId,
OrderByComparator<CommerceAccountOrganizationRel> orderByComparator) {
int count = countByOrganizationId(organizationId);
if (count == 0) {
return null;
}
List<CommerceAccountOrg... | public class class_name {
@Override
public CommerceAccountOrganizationRel fetchByOrganizationId_Last(
long organizationId,
OrderByComparator<CommerceAccountOrganizationRel> orderByComparator) {
int count = countByOrganizationId(organizationId);
if (count == 0) {
return null; // depends on control dependen... |
public class class_name {
private static Type substituteTypeVariables(final Type type, final Map<TypeVariable<?>, Type> typeVarAssigns) {
if (type instanceof TypeVariable<?> && typeVarAssigns != null) {
final Type replacementType = typeVarAssigns.get(type);
if (replacementType == null)... | public class class_name {
private static Type substituteTypeVariables(final Type type, final Map<TypeVariable<?>, Type> typeVarAssigns) {
if (type instanceof TypeVariable<?> && typeVarAssigns != null) {
final Type replacementType = typeVarAssigns.get(type);
if (replacementType == null)... |
public class class_name {
public String buildAcceptHeader() {
StringBuffer mimetypes = new StringBuffer();
Enumeration<ProvFormat> e = mimeTypeMap.keys();
String sep = "";
while (e.hasMoreElements()) {
ProvFormat f = e.nextElement();
if (isInputFormat(f)) {
... | public class class_name {
public String buildAcceptHeader() {
StringBuffer mimetypes = new StringBuffer();
Enumeration<ProvFormat> e = mimeTypeMap.keys();
String sep = "";
while (e.hasMoreElements()) {
ProvFormat f = e.nextElement();
if (isInputFormat(f)) {
... |
public class class_name {
final public void increment(long time, long value) {
if (!enabled)
return;
lastSampleTime = time;
if (!sync) {
count += value;
} else {
synchronized (this) {
count += value;
}
}
} } | public class class_name {
final public void increment(long time, long value) {
if (!enabled)
return;
lastSampleTime = time;
if (!sync) {
count += value; // depends on control dependency: [if], data = [none]
} else {
synchronized (this) { // depends o... |
public class class_name {
public EList<JvmFormalParameter> getImplicitFormalParameters()
{
if (implicitFormalParameters == null)
{
implicitFormalParameters = new EObjectContainmentEList<JvmFormalParameter>(JvmFormalParameter.class, this, XbasePackage.XCLOSURE__IMPLICIT_FORMAL_PARAMETERS);
}
return implicit... | public class class_name {
public EList<JvmFormalParameter> getImplicitFormalParameters()
{
if (implicitFormalParameters == null)
{
implicitFormalParameters = new EObjectContainmentEList<JvmFormalParameter>(JvmFormalParameter.class, this, XbasePackage.XCLOSURE__IMPLICIT_FORMAL_PARAMETERS); // depends on control... |
public class class_name {
public void deploy() {
if (isDeployed) {
LOG.alreadyDeployed();
} else {
// deploy the application
RuntimeContainerDelegate.INSTANCE.get().deployProcessApplication(this);
isDeployed = true;
}
} } | public class class_name {
public void deploy() {
if (isDeployed) {
LOG.alreadyDeployed(); // depends on control dependency: [if], data = [none]
} else {
// deploy the application
RuntimeContainerDelegate.INSTANCE.get().deployProcessApplication(this); // depends on control dependency: [if], da... |
public class class_name {
private void writeFrame() {
int clocalsSize = frame[1];
int cstackSize = frame[2];
if ((cw.version & 0xFFFF) < Opcodes.V1_6) {
stackMap.putShort(frame[0]).putShort(clocalsSize);
writeFrameTypes(3, 3 + clocalsSize);
stackMap.putShort(... | public class class_name {
private void writeFrame() {
int clocalsSize = frame[1];
int cstackSize = frame[2];
if ((cw.version & 0xFFFF) < Opcodes.V1_6) {
stackMap.putShort(frame[0]).putShort(clocalsSize); // depends on control dependency: [if], data = [none]
writeFrameTyp... |
public class class_name {
public static String encodeUri(final String uri, final String encoding) {
Matcher m = URI_PATTERN.matcher(uri);
if (m.matches()) {
String scheme = m.group(2);
String authority = m.group(3);
String userinfo = m.group(5);
String host = m.group(6);
String port = m.group(8);
... | public class class_name {
public static String encodeUri(final String uri, final String encoding) {
Matcher m = URI_PATTERN.matcher(uri);
if (m.matches()) {
String scheme = m.group(2);
String authority = m.group(3);
String userinfo = m.group(5);
String host = m.group(6);
String port = m.group(8);
... |
public class class_name {
public static int getNumParameters(String methodSignature) {
int start = methodSignature.indexOf('(') + 1;
int limit = methodSignature.lastIndexOf(')');
if ((limit - start) == 0) {
return 0;
}
int numParms = 0;
for (int i = start; ... | public class class_name {
public static int getNumParameters(String methodSignature) {
int start = methodSignature.indexOf('(') + 1;
int limit = methodSignature.lastIndexOf(')');
if ((limit - start) == 0) {
return 0; // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
public static void validateInterfaceBasics
(Class<?> remoteHome,
Class<?> remoteInterface,
Class<?> localHome,
Class<?> localInterface,
Class<?> webServiceEndpointInterface,
... | public class class_name {
public static void validateInterfaceBasics
(Class<?> remoteHome,
Class<?> remoteInterface,
Class<?> localHome,
Class<?> localInterface,
Class<?> webServiceEndpointInterface,
... |
public class class_name {
public void recordCheckoutTimeUs(SocketDestination dest, long checkoutTimeUs) {
if(dest != null) {
getOrCreateNodeStats(dest).recordCheckoutTimeUs(null, checkoutTimeUs);
recordCheckoutTimeUs(null, checkoutTimeUs);
} else {
this.checkoutTimeR... | public class class_name {
public void recordCheckoutTimeUs(SocketDestination dest, long checkoutTimeUs) {
if(dest != null) {
getOrCreateNodeStats(dest).recordCheckoutTimeUs(null, checkoutTimeUs); // depends on control dependency: [if], data = [(dest]
recordCheckoutTimeUs(null, checkoutT... |
public class class_name {
private void checkAndNotify(final FileStatusEntry parent, final FileStatusEntry[] previous, final Path[] currentPaths)
throws IOException {
int c = 0;
final FileStatusEntry[] current =
currentPaths.length > 0 ? new FileStatusEntry[currentPaths.length] : FileStatusEntry.... | public class class_name {
private void checkAndNotify(final FileStatusEntry parent, final FileStatusEntry[] previous, final Path[] currentPaths)
throws IOException {
int c = 0;
final FileStatusEntry[] current =
currentPaths.length > 0 ? new FileStatusEntry[currentPaths.length] : FileStatusEntry.... |
public class class_name {
public static ReposTag parseRepositoryTag(String name) {
int n = name.lastIndexOf(':');
if (n < 0) {
return new ReposTag(name, "");
}
String tag = name.substring(n + 1);
if (StringUtils.containsIgnoreCase(name, SHA256_SEPARATOR)) {
... | public class class_name {
public static ReposTag parseRepositoryTag(String name) {
int n = name.lastIndexOf(':');
if (n < 0) {
return new ReposTag(name, ""); // depends on control dependency: [if], data = [(n]
}
String tag = name.substring(n + 1);
if (StringUtils.con... |
public class class_name {
@Override
public Appendable append(CharSequence csq, int start, int end) {
final int otherLen = end - start;
grow(this.len + otherLen);
for (int pos = start; pos < end; pos++) {
this.value[this.len + pos] = csq.charAt(pos);
}
this.len += otherLen;
return this;
} } | public class class_name {
@Override
public Appendable append(CharSequence csq, int start, int end) {
final int otherLen = end - start;
grow(this.len + otherLen);
for (int pos = start; pos < end; pos++) {
this.value[this.len + pos] = csq.charAt(pos); // depends on control dependency: [for], data = [pos]
}
... |
public class class_name {
public int[] gridAt( double x, double y ) {
if (isInRaster(x, y)) {
GridGeometry2D gridGeometry = getGridGeometry();
int[] colRowFromCoordinate = CoverageUtilities.colRowFromCoordinate(new Coordinate(x, y), gridGeometry, null);
return colRowFromCoor... | public class class_name {
public int[] gridAt( double x, double y ) {
if (isInRaster(x, y)) {
GridGeometry2D gridGeometry = getGridGeometry();
int[] colRowFromCoordinate = CoverageUtilities.colRowFromCoordinate(new Coordinate(x, y), gridGeometry, null);
return colRowFromCoor... |
public class class_name {
public JobAddOptions withOcpDate(DateTime ocpDate) {
if (ocpDate == null) {
this.ocpDate = null;
} else {
this.ocpDate = new DateTimeRfc1123(ocpDate);
}
return this;
} } | public class class_name {
public JobAddOptions withOcpDate(DateTime ocpDate) {
if (ocpDate == null) {
this.ocpDate = null; // depends on control dependency: [if], data = [none]
} else {
this.ocpDate = new DateTimeRfc1123(ocpDate); // depends on control dependency: [if], data = [... |
public class class_name {
private static void drawLine(int... widths) {
for (int width : widths) {
for (int i = 1; i < width; i++) {
System.out.print('-');
}
System.out.print('+');
}
System.out.println();
} } | public class class_name {
private static void drawLine(int... widths) {
for (int width : widths) {
for (int i = 1; i < width; i++) {
System.out.print('-'); // depends on control dependency: [for], data = [none]
}
System.out.print('+'); // depends on control dependency: [for], data = [none... |
public class class_name {
@When("^I delete the text '(.+?)' on the element on index '(\\d+?)'( and replace it for '(.+?)')?$")
public void seleniumDelete(String text, Integer index, String foo, String replacement) {
assertThat(this.commonspec, commonspec.getPreviousWebElements()).as("There are less found e... | public class class_name {
@When("^I delete the text '(.+?)' on the element on index '(\\d+?)'( and replace it for '(.+?)')?$")
public void seleniumDelete(String text, Integer index, String foo, String replacement) {
assertThat(this.commonspec, commonspec.getPreviousWebElements()).as("There are less found e... |
public class class_name {
public static final MQLinkManager getInstance()
{
if(TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "getInstance");
if (mqLinkManager == null)
{
try
{
Class cls = Class.forName(CommsConstants.JS_COMMS_MQ_LINK_MA... | public class class_name {
public static final MQLinkManager getInstance()
{
if(TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "getInstance");
if (mqLinkManager == null)
{
try
{
Class cls = Class.forName(CommsConstants.JS_COMMS_MQ_LINK_MA... |
public class class_name {
public void marshall(KinesisStreamsInput kinesisStreamsInput, ProtocolMarshaller protocolMarshaller) {
if (kinesisStreamsInput == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.mars... | public class class_name {
public void marshall(KinesisStreamsInput kinesisStreamsInput, ProtocolMarshaller protocolMarshaller) {
if (kinesisStreamsInput == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.mars... |
public class class_name {
private void resolveNeutralTypes(int start, int limit, byte level, byte sor, byte eor) {
for (int i = start; i < limit; ++i) {
byte t = resultTypes[i];
if (t == WS || t == ON || t == B || t == S) {
// find bounds of run of neutrals
... | public class class_name {
private void resolveNeutralTypes(int start, int limit, byte level, byte sor, byte eor) {
for (int i = start; i < limit; ++i) {
byte t = resultTypes[i];
if (t == WS || t == ON || t == B || t == S) {
// find bounds of run of neutrals
... |
public class class_name {
public int indexOf(int[] sequence) {
int index = -1;
for (int i = 0; index == -1 && i <= currentSize - sequence.length;
i++) {
if (buffer[i] == sequence[0]) {
boolean matches = true;
for (int j = 1; matches && j < sequen... | public class class_name {
public int indexOf(int[] sequence) {
int index = -1;
for (int i = 0; index == -1 && i <= currentSize - sequence.length;
i++) {
if (buffer[i] == sequence[0]) {
boolean matches = true;
for (int j = 1; matches && j < sequen... |
public class class_name {
public static String getRDFNamespaceForJcrNamespace(
final String jcrNamespaceUri) {
if (jcrNamespacesToRDFNamespaces.containsKey(jcrNamespaceUri)) {
return jcrNamespacesToRDFNamespaces.get(jcrNamespaceUri);
}
return jcrNamespaceUri;
} } | public class class_name {
public static String getRDFNamespaceForJcrNamespace(
final String jcrNamespaceUri) {
if (jcrNamespacesToRDFNamespaces.containsKey(jcrNamespaceUri)) {
return jcrNamespacesToRDFNamespaces.get(jcrNamespaceUri); // depends on control dependency: [if], data = [none]... |
public class class_name {
private void loadProperties(File propFile) {
if (propFile == null) {
return;
}
try {
loadProperties(new FileInputStream(propFile), propFile.getAbsolutePath());
}
catch (FileNotFoundException e) {
Console.warn("Unable to find properties file ["+propFile.getAbsolutePa... | public class class_name {
private void loadProperties(File propFile) {
if (propFile == null) {
return;
// depends on control dependency: [if], data = [none]
}
try {
loadProperties(new FileInputStream(propFile), propFile.getAbsolutePath());
// depends on control dependency: [try], data = [none]
}
... |
public class class_name {
private void commentLinesAfter( String content, int line )
{
int offset = _root.getElement( line ).getEndOffset();
// End of comment not found, nothing to do
int endDelimiter = indexOf( content, getEndDelimiter(), offset );
if( endDelimiter < 0 )
{
return;
}
... | public class class_name {
private void commentLinesAfter( String content, int line )
{
int offset = _root.getElement( line ).getEndOffset();
// End of comment not found, nothing to do
int endDelimiter = indexOf( content, getEndDelimiter(), offset );
if( endDelimiter < 0 )
{
return; // depen... |
public class class_name {
public String getFlexCacheKeyDump() {
if (m_flexCache != null) {
StringBuffer buffer = new StringBuffer();
m_flexCache.dumpKeys(buffer);
return buffer.toString();
} else {
return null;
}
} } | public class class_name {
public String getFlexCacheKeyDump() {
if (m_flexCache != null) {
StringBuffer buffer = new StringBuffer();
m_flexCache.dumpKeys(buffer); // depends on control dependency: [if], data = [none]
return buffer.toString(); // depends on control dependenc... |
public class class_name {
public static List<Geometry> flatFeatureList(Geometry geom) {
final List<Geometry> singleGeoms = new ArrayList<>();
final Stack<Geometry> geomStack = new Stack<>();
Geometry nextGeom;
int nextGeomCount;
geomStack.push(geom);
while(!geomStack.i... | public class class_name {
public static List<Geometry> flatFeatureList(Geometry geom) {
final List<Geometry> singleGeoms = new ArrayList<>();
final Stack<Geometry> geomStack = new Stack<>();
Geometry nextGeom;
int nextGeomCount;
geomStack.push(geom);
while(!geomStack.i... |
public class class_name {
private boolean rsyncRecoveryIndexFromCoordinator() throws IOException
{
File indexDirectory = new File(handler.getContext().getIndexDirectory());
RSyncConfiguration rSyncConfiguration = handler.getRsyncConfiguration();
try
{
IndexRecovery indexRecovery =... | public class class_name {
private boolean rsyncRecoveryIndexFromCoordinator() throws IOException
{
File indexDirectory = new File(handler.getContext().getIndexDirectory());
RSyncConfiguration rSyncConfiguration = handler.getRsyncConfiguration();
try
{
IndexRecovery indexRecovery =... |
public class class_name {
private static boolean isSelector( StringBuilder builder ) {
int length = builder.length();
if( length == 0 ) {
return false;
}
switch( builder.charAt( 0 ) ) {
case '.': // Mixin
case '#': // Mixin
break;
... | public class class_name {
private static boolean isSelector( StringBuilder builder ) {
int length = builder.length();
if( length == 0 ) {
return false; // depends on control dependency: [if], data = [none]
}
switch( builder.charAt( 0 ) ) {
case '.': // Mixin
... |
public class class_name {
private Map<CtClass, Set<CtMethod>> find(final CtMethod declaredMethod, final int level, final Map<CtClass, Set<CtMethod>> dict) {
if (level < 0) {
throw new IllegalArgumentException("level < 0");
}
addToMap(declaredMethod.getDeclaringClass(), declaredMethod, dict);
if (level > 0) ... | public class class_name {
private Map<CtClass, Set<CtMethod>> find(final CtMethod declaredMethod, final int level, final Map<CtClass, Set<CtMethod>> dict) {
if (level < 0) {
throw new IllegalArgumentException("level < 0");
}
addToMap(declaredMethod.getDeclaringClass(), declaredMethod, dict);
if (level > 0) ... |
public class class_name {
@SuppressWarnings("unchecked")
public static <K, V> ImmutableSortedMap<K, V> copyOfSorted(SortedMap<K, ? extends V> map) {
Comparator<? super K> comparator = map.comparator();
if (comparator == null) {
// If map has a null comparator, the keys should have a natural ordering,
... | public class class_name {
@SuppressWarnings("unchecked")
public static <K, V> ImmutableSortedMap<K, V> copyOfSorted(SortedMap<K, ? extends V> map) {
Comparator<? super K> comparator = map.comparator();
if (comparator == null) {
// If map has a null comparator, the keys should have a natural ordering,
... |
public class class_name {
private int getStartingPoint(String buffer) {
for (int i = 0; i < buffer.length(); i++) {
if (!Character.isWhitespace(buffer.charAt(i))) {
return i;
}
}
return buffer.length();
} } | public class class_name {
private int getStartingPoint(String buffer) {
for (int i = 0; i < buffer.length(); i++) {
if (!Character.isWhitespace(buffer.charAt(i))) {
return i; // depends on control dependency: [if], data = [none]
}
}
return buffer.length();
} } |
public class class_name {
public void mergeWithProposedItems(final List<InvoiceItem> proposedItems) {
build();
for (SubscriptionItemTree tree : subscriptionItemTree.values()) {
tree.flatten(true);
}
for (InvoiceItem item : proposedItems) {
final UUID subscripti... | public class class_name {
public void mergeWithProposedItems(final List<InvoiceItem> proposedItems) {
build();
for (SubscriptionItemTree tree : subscriptionItemTree.values()) {
tree.flatten(true); // depends on control dependency: [for], data = [tree]
}
for (InvoiceItem it... |
public class class_name {
public PhotoContext getContext(String photoId, String userId) throws FlickrException {
Map<String, Object> parameters = new HashMap<String, Object>();
parameters.put("method", METHOD_GET_CONTEXT);
parameters.put("photo_id", photoId);
parameters.put("user_... | public class class_name {
public PhotoContext getContext(String photoId, String userId) throws FlickrException {
Map<String, Object> parameters = new HashMap<String, Object>();
parameters.put("method", METHOD_GET_CONTEXT);
parameters.put("photo_id", photoId);
parameters.put("user_... |
public class class_name {
@Override
public String[] getSheetNames()
{
String[] ret = null;
if(sheets != null)
{
ret = new String[sheets.size()];
for(int i = 0; i < sheets.size(); i++)
{
Sheet sheet = (Sheet)sheets.get(i);
... | public class class_name {
@Override
public String[] getSheetNames()
{
String[] ret = null;
if(sheets != null)
{
ret = new String[sheets.size()]; // depends on control dependency: [if], data = [none]
for(int i = 0; i < sheets.size(); i++)
{
... |
public class class_name {
private StageLibraryDelegate createInstance(StageLibraryDelegateDefinitition def) {
StageLibraryDelegate instance = null;
ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
try {
Thread.currentThread().setContextClassLoader(def.getClassLoader());
... | public class class_name {
private StageLibraryDelegate createInstance(StageLibraryDelegateDefinitition def) {
StageLibraryDelegate instance = null;
ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
try {
Thread.currentThread().setContextClassLoader(def.getClassLoader()); // ... |
public class class_name {
public void buildInterfaceSummary(XMLNode node, Content summaryContentTree) {
String interfaceTableSummary =
configuration.getText("doclet.Member_Table_Summary",
configuration.getText("doclet.Interface_Summary"),
configuration.getText("d... | public class class_name {
public void buildInterfaceSummary(XMLNode node, Content summaryContentTree) {
String interfaceTableSummary =
configuration.getText("doclet.Member_Table_Summary",
configuration.getText("doclet.Interface_Summary"),
configuration.getText("d... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.