code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
static String stripLeadingSlash(String path) {
if (path.endsWith("/")) {
return path.substring(0, path.length() - 1);
} else {
return path;
}
} } | public class class_name {
static String stripLeadingSlash(String path) {
if (path.endsWith("/")) {
return path.substring(0, path.length() - 1); // depends on control dependency: [if], data = [none]
} else {
return path; // depends on control dependency: [if], data = [none]
... |
public class class_name {
@Override
public boolean check(WyilFile wf) {
for (Decl decl : wf.getModule().getUnits()) {
checkDeclaration(decl);
}
return status;
} } | public class class_name {
@Override
public boolean check(WyilFile wf) {
for (Decl decl : wf.getModule().getUnits()) {
checkDeclaration(decl); // depends on control dependency: [for], data = [decl]
}
return status;
} } |
public class class_name {
public static String getFileExtension(String _fileName) {
if (_fileName == null) {
return null;
}
int lastDot = _fileName.lastIndexOf('.');
if (lastDot == -1) {
return "";
}
return _fileName.substring(lastDot + 1);
} ... | public class class_name {
public static String getFileExtension(String _fileName) {
if (_fileName == null) {
return null; // depends on control dependency: [if], data = [none]
}
int lastDot = _fileName.lastIndexOf('.');
if (lastDot == -1) {
return ""; // depends ... |
public class class_name {
public static URLConnection prepareForAuthentication( final URLConnection connection )
{
NullArgumentException.validateNotNull( connection, "url connection cannot be null" );
if( connection.getURL().getUserInfo() != null )
{
// Need to decode username/p... | public class class_name {
public static URLConnection prepareForAuthentication( final URLConnection connection )
{
NullArgumentException.validateNotNull( connection, "url connection cannot be null" );
if( connection.getURL().getUserInfo() != null )
{
// Need to decode username/p... |
public class class_name {
private static Map<String, String> getIntrospectedProperties(String clz, URLClassLoader cl, PrintStream error)
{
Map<String, String> result = null;
try
{
Class<?> c = Class.forName(clz, true, cl);
result = new TreeMap<String, String>();
Metho... | public class class_name {
private static Map<String, String> getIntrospectedProperties(String clz, URLClassLoader cl, PrintStream error)
{
Map<String, String> result = null;
try
{
Class<?> c = Class.forName(clz, true, cl);
result = new TreeMap<String, String>();
Metho... |
public class class_name {
@Override
public int compareTo(final RegistrationItem o) {
int priorityDiff = 0;
if (priority() != null) {
if (o.priority() != null) {
priorityDiff = priority().level(weight()) - o.priority().level(o.weight());
} else {
... | public class class_name {
@Override
public int compareTo(final RegistrationItem o) {
int priorityDiff = 0;
if (priority() != null) {
if (o.priority() != null) {
priorityDiff = priority().level(weight()) - o.priority().level(o.weight()); // depends on control dependency: ... |
public class class_name {
public static BufferedImage disparity(ImageGray disparity, BufferedImage dst,
int minDisparity, int maxDisparity, int invalidColor) {
if( dst == null )
dst = new BufferedImage(disparity.getWidth(),disparity.getHeight(),BufferedImage.TYPE_INT_RGB);
if (disparity.getDataType... | public class class_name {
public static BufferedImage disparity(ImageGray disparity, BufferedImage dst,
int minDisparity, int maxDisparity, int invalidColor) {
if( dst == null )
dst = new BufferedImage(disparity.getWidth(),disparity.getHeight(),BufferedImage.TYPE_INT_RGB);
if (disparity.getDataType... |
public class class_name {
public static Iterator getChildrenByTagName(Element element,
String tagName)
{
if (element == null) return null;
// getElementsByTagName gives the corresponding elements in the whole
// descendance. We want only children
... | public class class_name {
public static Iterator getChildrenByTagName(Element element,
String tagName)
{
if (element == null) return null;
// getElementsByTagName gives the corresponding elements in the whole
// descendance. We want only children
... |
public class class_name {
public static MigratePartitionLeaderInfo getMigratePartitionLeaderInfo(ZooKeeper zk) {
try {
byte[] data = zk.getData(migrate_partition_leader_info, null, null);
if (data != null) {
MigratePartitionLeaderInfo info = new MigratePartitionLeaderInf... | public class class_name {
public static MigratePartitionLeaderInfo getMigratePartitionLeaderInfo(ZooKeeper zk) {
try {
byte[] data = zk.getData(migrate_partition_leader_info, null, null);
if (data != null) {
MigratePartitionLeaderInfo info = new MigratePartitionLeaderInf... |
public class class_name {
@Override
public FeatureDao getFeatureDao(GeometryColumns geometryColumns) {
if (geometryColumns == null) {
throw new GeoPackageException("Non null "
+ GeometryColumns.class.getSimpleName()
+ " is required to create "
... | public class class_name {
@Override
public FeatureDao getFeatureDao(GeometryColumns geometryColumns) {
if (geometryColumns == null) {
throw new GeoPackageException("Non null "
+ GeometryColumns.class.getSimpleName()
+ " is required to create "
... |
public class class_name {
public static Logger getLogger(Class<?> clazz) {
Logger logger = getLogger(clazz.getName());
if (DETECT_LOGGER_NAME_MISMATCH) {
Class<?> autoComputedCallingClass = Util.getCallingClass();
if (autoComputedCallingClass != null && nonMatchingClasses(clazz,... | public class class_name {
public static Logger getLogger(Class<?> clazz) {
Logger logger = getLogger(clazz.getName());
if (DETECT_LOGGER_NAME_MISMATCH) {
Class<?> autoComputedCallingClass = Util.getCallingClass();
if (autoComputedCallingClass != null && nonMatchingClasses(clazz,... |
public class class_name {
public static int sum( InterleavedS32 img ) {
if( BoofConcurrency.USE_CONCURRENT ) {
return ImplImageStatistics_MT.sum(img);
} else {
return ImplImageStatistics.sum(img);
}
} } | public class class_name {
public static int sum( InterleavedS32 img ) {
if( BoofConcurrency.USE_CONCURRENT ) {
return ImplImageStatistics_MT.sum(img); // depends on control dependency: [if], data = [none]
} else {
return ImplImageStatistics.sum(img); // depends on control dependency: [if], data = [none]
}... |
public class class_name {
public void displaySuggestions(boolean display) {
// If nothing to change, return early
if (display == isDisplayingSuggestions() || mMentionsEditText == null) {
return;
}
// Change view depending on whether suggestions are being shown or not
... | public class class_name {
public void displaySuggestions(boolean display) {
// If nothing to change, return early
if (display == isDisplayingSuggestions() || mMentionsEditText == null) {
return; // depends on control dependency: [if], data = [none]
}
// Change view dependi... |
public class class_name {
private StyleFilter findStyleFilter(Object feature, List<StyleFilter> styles) {
for (StyleFilter styleFilter : styles) {
if (styleFilter.getFilter().evaluate(feature)) {
return styleFilter;
}
}
return new StyleFilterImpl();
} } | public class class_name {
private StyleFilter findStyleFilter(Object feature, List<StyleFilter> styles) {
for (StyleFilter styleFilter : styles) {
if (styleFilter.getFilter().evaluate(feature)) {
return styleFilter; // depends on control dependency: [if], data = [none]
}
}
return new StyleFilterImpl();... |
public class class_name {
@Override
public int getIconHeight(SynthContext context) {
if (context == null) {
return height;
}
JComponent c = context.getComponent();
if (c instanceof JToolBar) {
JToolBar toolbar = (JToolBar) c;
if (toolbar.getOri... | public class class_name {
@Override
public int getIconHeight(SynthContext context) {
if (context == null) {
return height; // depends on control dependency: [if], data = [none]
}
JComponent c = context.getComponent();
if (c instanceof JToolBar) {
JToolBar t... |
public class class_name {
public void register(String local, String alias) {
Map<String, String> map = local.contains("*") || local.contains("?") ? wildcardMap : aliasMap;
if (alias == null) {
map.remove(local);
return;
}
String oldAlias = map.g... | public class class_name {
public void register(String local, String alias) {
Map<String, String> map = local.contains("*") || local.contains("?") ? wildcardMap : aliasMap;
if (alias == null) {
map.remove(local); // depends on control dependency: [if], data = [none]
retu... |
public class class_name {
public void updateDistanceMatrix() {
// Reset the distance Matrix variable
distanceMatrix = new ArrayList<Matrix>();
for (int s = 0; s < size(); s++) {
Atom[] ca = atomArrays.get(s);
Matrix distMat = AlignUtils.getDistanceMatrix(ca, ca);
distanceMatrix.add(distMat);
}
} } | public class class_name {
public void updateDistanceMatrix() {
// Reset the distance Matrix variable
distanceMatrix = new ArrayList<Matrix>();
for (int s = 0; s < size(); s++) {
Atom[] ca = atomArrays.get(s);
Matrix distMat = AlignUtils.getDistanceMatrix(ca, ca);
distanceMatrix.add(distMat); // depend... |
public class class_name {
public static <T> Iterator<T> allSolutions(SearchMethod<T> method)
{
//return new Filterator<SearchNode<O, T>, T>(allSolutionNodes(method), new ExtractSearchNode<O, T>());
// Take a final reference to the search method to use from within the inner class.
final Sea... | public class class_name {
public static <T> Iterator<T> allSolutions(SearchMethod<T> method)
{
//return new Filterator<SearchNode<O, T>, T>(allSolutionNodes(method), new ExtractSearchNode<O, T>());
// Take a final reference to the search method to use from within the inner class.
final Sea... |
public class class_name {
private static int writeUncompressedLength(byte[] compressed, int compressedOffset, int uncompressedLength) {
int highBitMask = 0x80;
if (uncompressedLength < (1 << 7) && uncompressedLength >= 0) {
compressed[compressedOffset++] = (byte) (uncompressedLength);
... | public class class_name {
private static int writeUncompressedLength(byte[] compressed, int compressedOffset, int uncompressedLength) {
int highBitMask = 0x80;
if (uncompressedLength < (1 << 7) && uncompressedLength >= 0) {
compressed[compressedOffset++] = (byte) (uncompressedLength); // de... |
public class class_name {
public static <V> double getCohenD(final Map<V, Double> baselineMetricPerDimension, final Map<V, Double> testMetricPerDimension, final boolean doLeastSquares) {
SummaryStatistics statsBaseline = new SummaryStatistics();
for (double d : baselineMetricPerDimension.values()) {
... | public class class_name {
public static <V> double getCohenD(final Map<V, Double> baselineMetricPerDimension, final Map<V, Double> testMetricPerDimension, final boolean doLeastSquares) {
SummaryStatistics statsBaseline = new SummaryStatistics();
for (double d : baselineMetricPerDimension.values()) {
... |
public class class_name {
void unregisterKvState(KeyGroupRange keyGroupRange) {
if (keyGroupRange.getStartKeyGroup() < 0 || keyGroupRange.getEndKeyGroup() >= numKeyGroups) {
throw new IndexOutOfBoundsException("Key group index");
}
for (int kgIdx = keyGroupRange.getStartKeyGroup(); kgIdx <= keyGroupRange.get... | public class class_name {
void unregisterKvState(KeyGroupRange keyGroupRange) {
if (keyGroupRange.getStartKeyGroup() < 0 || keyGroupRange.getEndKeyGroup() >= numKeyGroups) {
throw new IndexOutOfBoundsException("Key group index");
}
for (int kgIdx = keyGroupRange.getStartKeyGroup(); kgIdx <= keyGroupRange.get... |
public class class_name {
@Override
public void serializePrimitive(IntSumRecord rec, String fieldName, Object value) {
/// only interested in int values.
if(value instanceof Integer) {
rec.addValue(((Integer) value).intValue());
}
} } | public class class_name {
@Override
public void serializePrimitive(IntSumRecord rec, String fieldName, Object value) {
/// only interested in int values.
if(value instanceof Integer) {
rec.addValue(((Integer) value).intValue()); // depends on control dependency: [if], data = [none]
... |
public class class_name {
protected void slowScan() {
synchronized (slowScanLock) {
if (haveSlowResults) {
return;
}
if (slowScanning) {
while (slowScanning) {
try {
slowScanLock.wait();
... | public class class_name {
protected void slowScan() {
synchronized (slowScanLock) {
if (haveSlowResults) {
return; // depends on control dependency: [if], data = [none]
}
if (slowScanning) {
while (slowScanning) {
try {
... |
public class class_name {
public static EUI64 fromString(String name) {
long bits = 0;
char sep = 0;
for (int n = 0;; ++n) {
if (n == name.length()) {
if (n == 23) {
return new EUI64(bits);
}
else {
... | public class class_name {
public static EUI64 fromString(String name) {
long bits = 0;
char sep = 0;
for (int n = 0;; ++n) {
if (n == name.length()) {
if (n == 23) {
return new EUI64(bits); // depends on control dependency: [if], data = [none]
... |
public class class_name {
public void push(AbstractDrawer drawer, AjaxRequestTarget target, String cssClass) {
ListItem item = new ListItem("next", drawer, this, cssClass);
drawers.push(item);
if (first == null) {
first = item;
addOrReplace(first);
} else {
ListItem iter = first;
while (iter.next ... | public class class_name {
public void push(AbstractDrawer drawer, AjaxRequestTarget target, String cssClass) {
ListItem item = new ListItem("next", drawer, this, cssClass);
drawers.push(item);
if (first == null) {
first = item; // depends on control dependency: [if], data = [none]
addOrReplace(first); // ... |
public class class_name {
public boolean checkPermission(Principal user, int operation)
{
if (tc.isEntryEnabled())
SibTr.entry(tc, "checkPermission", new Object[]{user, new Integer(operation)});
boolean allowed = false;
if(operation == 1) // a publish operation
{
// check whether... | public class class_name {
public boolean checkPermission(Principal user, int operation)
{
if (tc.isEntryEnabled())
SibTr.entry(tc, "checkPermission", new Object[]{user, new Integer(operation)});
boolean allowed = false;
if(operation == 1) // a publish operation
{
// check whether... |
public class class_name {
public int[] set(ReadablePartial partial, int fieldIndex, int[] values, int newValue) {
FieldUtils.verifyValueBounds(this, newValue, getMinimumValue(partial, values), getMaximumValue(partial, values));
values[fieldIndex] = newValue;
// may need to adjust small... | public class class_name {
public int[] set(ReadablePartial partial, int fieldIndex, int[] values, int newValue) {
FieldUtils.verifyValueBounds(this, newValue, getMinimumValue(partial, values), getMaximumValue(partial, values));
values[fieldIndex] = newValue;
// may need to adjust small... |
public class class_name {
private int fillLine(int maxLen)
throws IOException
{
_mark=_pos;
if (_pos>=_avail)
fill();
if (_pos>=_avail)
return -1;
byte b;
boolean cr=_lastCr;
boolean lf=false;
_lastCr=false;... | public class class_name {
private int fillLine(int maxLen)
throws IOException
{
_mark=_pos;
if (_pos>=_avail)
fill();
if (_pos>=_avail)
return -1;
byte b;
boolean cr=_lastCr;
boolean lf=false;
_lastCr=false;... |
public class class_name {
public Collection<String> getDeadNodes() {
List<String> activeHosts = new ArrayList<String>();
synchronized(taskTrackers) {
for (TaskTracker tt : taskTrackers.values()) {
activeHosts.add(tt.getStatus().getHost());
}
}
// dead hosts are the difference betwee... | public class class_name {
public Collection<String> getDeadNodes() {
List<String> activeHosts = new ArrayList<String>();
synchronized(taskTrackers) {
for (TaskTracker tt : taskTrackers.values()) {
activeHosts.add(tt.getStatus().getHost()); // depends on control dependency: [for], data = [tt]
... |
public class class_name {
public final void setCustomer(final DebtorCreditor pCustomer) {
this.customer = pCustomer;
if (this.itsId == null) {
this.itsId = new CustomerGoodsSeenId();
}
this.itsId.setCustomer(this.customer);
} } | public class class_name {
public final void setCustomer(final DebtorCreditor pCustomer) {
this.customer = pCustomer;
if (this.itsId == null) {
this.itsId = new CustomerGoodsSeenId(); // depends on control dependency: [if], data = [none]
}
this.itsId.setCustomer(this.customer);
} } |
public class class_name {
@Override
public JsonElement serialize(Date src, Type typeOfSrc, JsonSerializationContext context) {
if (src == null) {
return JsonNull.INSTANCE;
} else {
return new JsonPrimitive(apiClient.formatDatetime(src));
}
} } | public class class_name {
@Override
public JsonElement serialize(Date src, Type typeOfSrc, JsonSerializationContext context) {
if (src == null) {
return JsonNull.INSTANCE; // depends on control dependency: [if], data = [none]
} else {
return new JsonPrimitive(apiClient.forma... |
public class class_name {
public Type resolveType(Type type) {
checkNotNull(type);
if (type instanceof TypeVariable) {
return typeTable.resolve((TypeVariable<?>) type);
} else if (type instanceof ParameterizedType) {
return resolveParameterizedType((ParameterizedType) type);
} else if (type... | public class class_name {
public Type resolveType(Type type) {
checkNotNull(type);
if (type instanceof TypeVariable) {
return typeTable.resolve((TypeVariable<?>) type); // depends on control dependency: [if], data = [none]
} else if (type instanceof ParameterizedType) {
return resolveParameteri... |
public class class_name {
private String findLabelFor(Entity pe) {
// Use gene symbol of PE
for (Xref xref : pe.getXref()) {
String sym = extractGeneSymbol(xref);
if (sym != null) return sym;
}
// Use gene symbol of ER
EntityReference er = null;
if (pe instanceof SimplePhysicalEntity) {
er = ((S... | public class class_name {
private String findLabelFor(Entity pe) {
// Use gene symbol of PE
for (Xref xref : pe.getXref()) {
String sym = extractGeneSymbol(xref);
if (sym != null) return sym;
}
// Use gene symbol of ER
EntityReference er = null;
if (pe instanceof SimplePhysicalEntity) {
er = ((S... |
public class class_name {
public Cursor rawQuery(String sql, String[] makeArgListQueryString) throws SQLException {
Log.v("SQLiteDatabase rawQuery: " + Thread.currentThread().getId() + " \"" + Thread.currentThread().getName() + "\" " + sql);
long timeNow = System.currentTimeMillis();
long delta = 0;
do... | public class class_name {
public Cursor rawQuery(String sql, String[] makeArgListQueryString) throws SQLException {
Log.v("SQLiteDatabase rawQuery: " + Thread.currentThread().getId() + " \"" + Thread.currentThread().getName() + "\" " + sql);
long timeNow = System.currentTimeMillis();
long delta = 0;
do... |
public class class_name {
public void generateRandom( int nbPoints, float minX, float maxX, float minY, float maxY )
{
xs = new ArrayList<Float>();
ys = new ArrayList<Float>();
for( int i = 0; i < nbPoints; i++ )
{
float r = (float) Math.random();
r = (float) (((int) (r * 100)) / 100.0);
xs.add( min... | public class class_name {
public void generateRandom( int nbPoints, float minX, float maxX, float minY, float maxY )
{
xs = new ArrayList<Float>();
ys = new ArrayList<Float>();
for( int i = 0; i < nbPoints; i++ )
{
float r = (float) Math.random();
r = (float) (((int) (r * 100)) / 100.0); // depends on ... |
public class class_name {
private void buildDecoding(Mode mode,
CodeAssembler a,
StorableProperty<S>[] properties,
Direction[] directions,
LocalVariable instanceVar,
... | public class class_name {
private void buildDecoding(Mode mode,
CodeAssembler a,
StorableProperty<S>[] properties,
Direction[] directions,
LocalVariable instanceVar,
... |
public class class_name {
public void onDoubleClick(DoubleClickEvent event) {
tempLength = 0;
mapWidget.unregisterWorldPaintable(distanceLine);
mapWidget.unregisterWorldPaintable(lineSegment);
distanceLine.setGeometry(null);
lineSegment.setGeometry(null);
if (panel != null) {
panel.destroy();
}
disp... | public class class_name {
public void onDoubleClick(DoubleClickEvent event) {
tempLength = 0;
mapWidget.unregisterWorldPaintable(distanceLine);
mapWidget.unregisterWorldPaintable(lineSegment);
distanceLine.setGeometry(null);
lineSegment.setGeometry(null);
if (panel != null) {
panel.destroy(); // depends... |
public class class_name {
public static boolean isMessageContentToBeLogged(final Message message, final boolean logMessageContent,
boolean logMessageContentOverride) {
/*
* If controlling of logging behavior is not allowed externally
* then log according to global property value
... | public class class_name {
public static boolean isMessageContentToBeLogged(final Message message, final boolean logMessageContent,
boolean logMessageContentOverride) {
/*
* If controlling of logging behavior is not allowed externally
* then log according to global property value
... |
public class class_name {
public static int decompressBBitSlots(int[] outDecompSlots,
int[] inCompBlock, int blockSize, int bits) {
int compressedBitSize = 0;
int offset = HEADER_SIZE;
for (int i = 0; i < blockSize; i++) {
outDecom... | public class class_name {
public static int decompressBBitSlots(int[] outDecompSlots,
int[] inCompBlock, int blockSize, int bits) {
int compressedBitSize = 0;
int offset = HEADER_SIZE;
for (int i = 0; i < blockSize; i++) {
outDecom... |
public class class_name {
@Override
public EClass getIfcReference() {
if (ifcReferenceEClass == null) {
ifcReferenceEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI).getEClassifiers()
.get(507);
}
return ifcReferenceEClass;
} } | public class class_name {
@Override
public EClass getIfcReference() {
if (ifcReferenceEClass == null) {
ifcReferenceEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI).getEClassifiers()
.get(507);
// depends on control dependency: [if], data = [none]
}
return ifcReference... |
public class class_name {
public WordInfo getNextN(String[] data, int index, int N) {
StringBuilder sb = new StringBuilder();
int i = index;
while(sb.length()<N&&i<data.length){
sb.append(data[i]);
i++;
}
if(sb.length()<=N)
return new WordInfo(sb.toString(),i-index);
else
return n... | public class class_name {
public WordInfo getNextN(String[] data, int index, int N) {
StringBuilder sb = new StringBuilder();
int i = index;
while(sb.length()<N&&i<data.length){
sb.append(data[i]);
// depends on control dependency: [while], data = [none]
i++;
// depends on control dependency: [whi... |
public class class_name {
synchronized PollObj get_polled_obj_by_type_name(final int obj_type, final String obj_name)
throws DevFailed {
// Get vector and search for type and name.
final Vector po_list = get_poll_obj_list();
for (int i = 0; i < po_list.size(); i++) {
final PollObj polled_obj = (PollObj) p... | public class class_name {
synchronized PollObj get_polled_obj_by_type_name(final int obj_type, final String obj_name)
throws DevFailed {
// Get vector and search for type and name.
final Vector po_list = get_poll_obj_list();
for (int i = 0; i < po_list.size(); i++) {
final PollObj polled_obj = (PollObj) p... |
public class class_name {
@SuppressWarnings("unchecked")
public Future<Boolean> shutdown(long quietPeriod, long timeout, TimeUnit timeUnit) {
logger.debug("Initiate shutdown ({}, {}, {})", quietPeriod, timeout, timeUnit);
shutdownCalled = true;
DefaultPromise<Boolean> overall = new Defaul... | public class class_name {
@SuppressWarnings("unchecked")
public Future<Boolean> shutdown(long quietPeriod, long timeout, TimeUnit timeUnit) {
logger.debug("Initiate shutdown ({}, {}, {})", quietPeriod, timeout, timeUnit);
shutdownCalled = true;
DefaultPromise<Boolean> overall = new Defaul... |
public class class_name {
public void startSendingEvents () {
if (this.getOutputStream() == null)
throw new IllegalStateException("Try sending events from EntrancePI while outputStream is not set.");
while (!this.getProcessor().isFinished()) {
if (!this.injectNextEvent()) {
try {... | public class class_name {
public void startSendingEvents () {
if (this.getOutputStream() == null)
throw new IllegalStateException("Try sending events from EntrancePI while outputStream is not set.");
while (!this.getProcessor().isFinished()) {
if (!this.injectNextEvent()) {
try {... |
public class class_name {
static public int intToBytes(int i, byte[] buffer, int index) {
int length = buffer.length - index;
if (length > 4) length = 4;
for (int j = 0; j < length; j++) {
buffer[index + length - j - 1] = (byte) (i >> (j * 8));
}
return length;
}... | public class class_name {
static public int intToBytes(int i, byte[] buffer, int index) {
int length = buffer.length - index;
if (length > 4) length = 4;
for (int j = 0; j < length; j++) {
buffer[index + length - j - 1] = (byte) (i >> (j * 8)); // depends on control dependency: [for... |
public class class_name {
private Logger getLogger()
{
if ( logger != null )
{
return logger;
}
logger = LoggerFactory.getLogger( ResourceReaderImpl.class );
return logger;
} } | public class class_name {
private Logger getLogger()
{
if ( logger != null )
{
return logger; // depends on control dependency: [if], data = [none]
}
logger = LoggerFactory.getLogger( ResourceReaderImpl.class );
return logger;
} } |
public class class_name {
public CharSequence matchOnLength(final Supplier<CharSequence> one, final Supplier<CharSequence> many)
{
final int arrayLength = arrayLength();
if (arrayLength == 1)
{
return one.get();
}
else if (arrayLength > 1)
{
... | public class class_name {
public CharSequence matchOnLength(final Supplier<CharSequence> one, final Supplier<CharSequence> many)
{
final int arrayLength = arrayLength();
if (arrayLength == 1)
{
return one.get(); // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
public static String getExtension(String filename) {
if (filename == null) {
return null;
}
int index = indexOfExtension(filename);
if (index == -1) {
return StringUtils.EMPTY;
} else {
return filename.substring(index... | public class class_name {
public static String getExtension(String filename) {
if (filename == null) {
return null; // depends on control dependency: [if], data = [none]
}
int index = indexOfExtension(filename);
if (index == -1) {
return StringUtils.EMPTY; // dep... |
public class class_name {
public final void addAll (final SettingsMap textKeys) {
for (Map.Entry<OperationalTextKey , String> e : textKeys.entrySet()) {
add(e.getKey(), e.getValue());
}
isDirty = true;
} } | public class class_name {
public final void addAll (final SettingsMap textKeys) {
for (Map.Entry<OperationalTextKey , String> e : textKeys.entrySet()) {
add(e.getKey(), e.getValue()); // depends on control dependency: [for], data = [e]
}
isDirty = true;
} } |
public class class_name {
public int compare (IntWritable i, IntWritable j) {
// indicate we're making progress but do a batch update
if (progressCalls < progressUpdateFrequency) {
progressCalls++;
} else {
progressCalls = 0;
reporter.progress();
}
return comparator.compare(keyV... | public class class_name {
public int compare (IntWritable i, IntWritable j) {
// indicate we're making progress but do a batch update
if (progressCalls < progressUpdateFrequency) {
progressCalls++; // depends on control dependency: [if], data = [none]
} else {
progressCalls = 0; // depends on c... |
public class class_name {
private List<Double> getAngles() {
int n = subunits.getSubunitCount();
// for spherical symmetric cases, n cannot be higher than 60
if (n % 60 == 0 && isSpherical()) {
n = 60;
}
List<Integer> folds = subunits.getFolds();
List<Double> angles = new ArrayList<Double>(folds.size()... | public class class_name {
private List<Double> getAngles() {
int n = subunits.getSubunitCount();
// for spherical symmetric cases, n cannot be higher than 60
if (n % 60 == 0 && isSpherical()) {
n = 60; // depends on control dependency: [if], data = [none]
}
List<Integer> folds = subunits.getFolds();
Li... |
public class class_name {
protected void reset() {
this.ndx = 0;
this.textLen = 0;
this.path = new Path();
this.notFirstObject = false;
if (useAltPaths) {
path.altPath = new Path();
}
if (classMetadataName != null) {
mapToBean = createMapToBean(classMetadataName);
}
} } | public class class_name {
protected void reset() {
this.ndx = 0;
this.textLen = 0;
this.path = new Path();
this.notFirstObject = false;
if (useAltPaths) {
path.altPath = new Path(); // depends on control dependency: [if], data = [none]
}
if (classMetadataName != null) {
mapToBean = createMapToBean... |
public class class_name {
boolean canInsert(Table table, boolean[] columnCheckList) {
if (isFull || isFullInsert) {
return true;
}
return containsAllColumns(insertColumnSet, table, columnCheckList);
} } | public class class_name {
boolean canInsert(Table table, boolean[] columnCheckList) {
if (isFull || isFullInsert) {
return true; // depends on control dependency: [if], data = [none]
}
return containsAllColumns(insertColumnSet, table, columnCheckList);
} } |
public class class_name {
public static CharacterDescriptor getRandomDescriptor (
ComponentRepository crepo, String gender, String[] COMP_CLASSES,
ColorPository cpos, String[] COLOR_CLASSES)
{
// get all available classes
ArrayList<ComponentClass> classes = Lists.newArrayList();
... | public class class_name {
public static CharacterDescriptor getRandomDescriptor (
ComponentRepository crepo, String gender, String[] COMP_CLASSES,
ColorPository cpos, String[] COLOR_CLASSES)
{
// get all available classes
ArrayList<ComponentClass> classes = Lists.newArrayList();
... |
public class class_name {
private void startSpider() {
spider = new Spider(id, extension, spiderParams, extension.getModel().getOptionsParam()
.getConnectionParam(), extension.getModel(), this.scanContext);
// Register this thread as a Spider Listener, so it gets notified of events and is able
// to manipu... | public class class_name {
private void startSpider() {
spider = new Spider(id, extension, spiderParams, extension.getModel().getOptionsParam()
.getConnectionParam(), extension.getModel(), this.scanContext);
// Register this thread as a Spider Listener, so it gets notified of events and is able
// to manipu... |
public class class_name {
public static void bindProperties(Binder binder, Properties properties) {
binder = binder.skipSources(Names.class);
// use enumeration to include the default properties
for (Enumeration<?> e = properties.propertyNames(); e.hasMoreElements(); ) {
String propertyName = (Strin... | public class class_name {
public static void bindProperties(Binder binder, Properties properties) {
binder = binder.skipSources(Names.class);
// use enumeration to include the default properties
for (Enumeration<?> e = properties.propertyNames(); e.hasMoreElements(); ) {
String propertyName = (Strin... |
public class class_name {
public int getPathId(String pathName, int profileId) {
PreparedStatement queryStatement = null;
ResultSet results = null;
// first get the pathId for the pathName/profileId
int pathId = -1;
try (Connection sqlConnection = sqlService.getConnection()) {
... | public class class_name {
public int getPathId(String pathName, int profileId) {
PreparedStatement queryStatement = null;
ResultSet results = null;
// first get the pathId for the pathName/profileId
int pathId = -1;
try (Connection sqlConnection = sqlService.getConnection()) {
... |
public class class_name {
public void setStartDate(String startDate) {
if (StringUtils.isNotBlank(startDate)) {
this.startDate = Instant.parse(startDate);
}
} } | public class class_name {
public void setStartDate(String startDate) {
if (StringUtils.isNotBlank(startDate)) {
this.startDate = Instant.parse(startDate); // depends on control dependency: [if], data = [none]
}
} } |
public class class_name {
public Iterator<Operator<Term>> traverse(Functor functor, boolean reverse)
{
/*log.fine("Traversing functor " + functor.toString());*/
Queue<Operator<Term>> queue = (!reverse) ? new StackQueue<Operator<Term>>() : new LinkedList<Operator<Term>>();
Term[] arguments... | public class class_name {
public Iterator<Operator<Term>> traverse(Functor functor, boolean reverse)
{
/*log.fine("Traversing functor " + functor.toString());*/
Queue<Operator<Term>> queue = (!reverse) ? new StackQueue<Operator<Term>>() : new LinkedList<Operator<Term>>();
Term[] arguments... |
public class class_name {
@Override
public T resolve(String name, MediaType mediaType) {
if (this.cache != null) {
if (!this.cache.containsKey(name)) {
T t = this.resolve(name);
if (t != null)
this.cache.putIfAbsent(name, t);
}
... | public class class_name {
@Override
public T resolve(String name, MediaType mediaType) {
if (this.cache != null) {
if (!this.cache.containsKey(name)) {
T t = this.resolve(name);
if (t != null)
this.cache.putIfAbsent(name, t);
}
... |
public class class_name {
private void setCorsResponseHeaders(ServiceRequestContext ctx, HttpRequest req,
HttpHeaders headers) {
final CorsPolicy policy = setCorsOrigin(ctx, req, headers);
if (policy != null) {
policy.setCorsAllowCredentials(headers);... | public class class_name {
private void setCorsResponseHeaders(ServiceRequestContext ctx, HttpRequest req,
HttpHeaders headers) {
final CorsPolicy policy = setCorsOrigin(ctx, req, headers);
if (policy != null) {
policy.setCorsAllowCredentials(headers);... |
public class class_name {
private boolean isNotPrompt(String action, String expected, String perform) {
// wait for element to be present
if (!is.promptPresent()) {
waitFor.promptPresent();
}
if (!is.promptPresent()) {
reporter.fail(action, expected, "Unable to "... | public class class_name {
private boolean isNotPrompt(String action, String expected, String perform) {
// wait for element to be present
if (!is.promptPresent()) {
waitFor.promptPresent(); // depends on control dependency: [if], data = [none]
}
if (!is.promptPresent()) {
... |
public class class_name {
public void sort() {
if (IndexTerm.getTermLocale() == null ||
IndexTerm.getTermLocale().getLanguage().trim().length() == 0) {
IndexTerm.setTermLocale(new Locale(LANGUAGE_EN,
COUNTRY_US));
}
/*
* Sort all the ter... | public class class_name {
public void sort() {
if (IndexTerm.getTermLocale() == null ||
IndexTerm.getTermLocale().getLanguage().trim().length() == 0) {
IndexTerm.setTermLocale(new Locale(LANGUAGE_EN,
COUNTRY_US)); // depends on control dependency: [if], data = [n... |
public class class_name {
public Docket genericModelSubstitutes(Class... genericClasses) {
for (Class clz : genericClasses) {
this.ruleBuilders.add(newGenericSubstitutionFunction(clz));
}
return this;
} } | public class class_name {
public Docket genericModelSubstitutes(Class... genericClasses) {
for (Class clz : genericClasses) {
this.ruleBuilders.add(newGenericSubstitutionFunction(clz)); // depends on control dependency: [for], data = [clz]
}
return this;
} } |
public class class_name {
public List<JAXBElement<? extends AbstractPositionalAccuracyType>> get_PositionalAccuracy() {
if (_PositionalAccuracy == null) {
_PositionalAccuracy = new ArrayList<JAXBElement<? extends AbstractPositionalAccuracyType>>();
}
return this._PositionalAccuracy;... | public class class_name {
public List<JAXBElement<? extends AbstractPositionalAccuracyType>> get_PositionalAccuracy() {
if (_PositionalAccuracy == null) {
_PositionalAccuracy = new ArrayList<JAXBElement<? extends AbstractPositionalAccuracyType>>(); // depends on control dependency: [if], data = [no... |
public class class_name {
protected boolean sample() {
if (curr.increment() >= freq) {
curr.set(0);
target.set(rand.nextInt(freq));
}
return curr.get() == target.get();
} } | public class class_name {
protected boolean sample() {
if (curr.increment() >= freq) {
curr.set(0); // depends on control dependency: [if], data = [none]
target.set(rand.nextInt(freq)); // depends on control dependency: [if], data = [none]
}
return curr.get() == target.g... |
public class class_name {
private synchronized void changeState(PrimitiveState state) {
if (this.state != state) {
this.state = state;
stateChangeListeners.forEach(l -> threadContext.execute(() -> l.accept(state)));
}
} } | public class class_name {
private synchronized void changeState(PrimitiveState state) {
if (this.state != state) {
this.state = state; // depends on control dependency: [if], data = [none]
stateChangeListeners.forEach(l -> threadContext.execute(() -> l.accept(state))); // depends on control dependency:... |
public class class_name {
public String renderQualifiedName(String qualifiedName) {
Assert.notNull(qualifiedName, "No qualified name specified");
StringBuffer sb = new StringBuffer(qualifiedName.length() + 5);
char[] chars = qualifiedName.toCharArray();
sb.append(Character.toUpperCase(chars[0]));
boolean fou... | public class class_name {
public String renderQualifiedName(String qualifiedName) {
Assert.notNull(qualifiedName, "No qualified name specified");
StringBuffer sb = new StringBuffer(qualifiedName.length() + 5);
char[] chars = qualifiedName.toCharArray();
sb.append(Character.toUpperCase(chars[0]));
boolean fou... |
public class class_name {
public int getFirstChild(int nodeHandle) {
// ###shs worry about tracing/debug later
nodeHandle &= NODEHANDLE_MASK;
// Read node into variable
nodes.readSlot(nodeHandle, gotslot);
// type is the last half of fir... | public class class_name {
public int getFirstChild(int nodeHandle) {
// ###shs worry about tracing/debug later
nodeHandle &= NODEHANDLE_MASK;
// Read node into variable
nodes.readSlot(nodeHandle, gotslot);
// type is the last half of fir... |
public class class_name {
public List<T> keySetSorted() {
List<T> result = new ArrayList<>();
PriorityQueue<Pair<T, Double>> pq = asPriorityQueue();
while (!pq.isEmpty()) {
result.add(pq.poll().getFirst());
}
return result;
} } | public class class_name {
public List<T> keySetSorted() {
List<T> result = new ArrayList<>();
PriorityQueue<Pair<T, Double>> pq = asPriorityQueue();
while (!pq.isEmpty()) {
result.add(pq.poll().getFirst()); // depends on control dependency: [while], data = [none]
}
... |
public class class_name {
private boolean isVoidVariable(WAMInstruction instruction)
{
SymbolKey symbolKey = instruction.getSymbolKeyReg1();
if (symbolKey != null)
{
Integer count = (Integer) symbolTable.get(symbolKey, SymbolTableKeys.SYMKEY_VAR_OCCURRENCE_COUNT);
B... | public class class_name {
private boolean isVoidVariable(WAMInstruction instruction)
{
SymbolKey symbolKey = instruction.getSymbolKeyReg1();
if (symbolKey != null)
{
Integer count = (Integer) symbolTable.get(symbolKey, SymbolTableKeys.SYMKEY_VAR_OCCURRENCE_COUNT);
B... |
public class class_name {
private void setSessionContext(Object targetObject, TargetMetaRequest targetMetaRequest) {
if (isSessionContextAcceptables.contains(targetMetaRequest.getTargetMetaDef().getName())) {
SessionContextAcceptable myResult = (SessionContextAcceptable) targetObject;
SessionContext session... | public class class_name {
private void setSessionContext(Object targetObject, TargetMetaRequest targetMetaRequest) {
if (isSessionContextAcceptables.contains(targetMetaRequest.getTargetMetaDef().getName())) {
SessionContextAcceptable myResult = (SessionContextAcceptable) targetObject;
SessionContext session... |
public class class_name {
private boolean findAttribute(JsonParser parser, JsonPathCursor pathCursor) throws IOException {
JsonToken token = parser.getCurrentToken();
if (token != JsonToken.START_OBJECT) {
return false;
}
while (true) {
token = parser.nextToken()... | public class class_name {
private boolean findAttribute(JsonParser parser, JsonPathCursor pathCursor) throws IOException {
JsonToken token = parser.getCurrentToken();
if (token != JsonToken.START_OBJECT) {
return false;
}
while (true) {
token = parser.nextToken()... |
public class class_name {
public Post params(String ... namesAndValues){
if(namesAndValues == null ){
throw new NullPointerException("'names and values' cannot be null");
}
if(namesAndValues.length % 2 != 0){
throw new IllegalArgumentException("mus pas even number of a... | public class class_name {
public Post params(String ... namesAndValues){
if(namesAndValues == null ){
throw new NullPointerException("'names and values' cannot be null");
}
if(namesAndValues.length % 2 != 0){
throw new IllegalArgumentException("mus pas even number of a... |
public class class_name {
protected void parseOption(CliParserState parserState, String option, CliOptionContainer optionContainer, CliParameterConsumer parameterConsumer) {
CliValueContainer valueContainer = this.valueMap.getOrCreate(optionContainer);
PojoPropertyAccessorOneArg setter = optionContainer.getSe... | public class class_name {
protected void parseOption(CliParserState parserState, String option, CliOptionContainer optionContainer, CliParameterConsumer parameterConsumer) {
CliValueContainer valueContainer = this.valueMap.getOrCreate(optionContainer);
PojoPropertyAccessorOneArg setter = optionContainer.getSe... |
public class class_name {
public long count(String field, Object val) throws PersistenceException {
logger.debug("enter - count(String,Object)");
try {
if( logger.isDebugEnabled() ) {
logger.debug("For: " + cache.getTarget().getName() + "/" + field + "/" + val);
... | public class class_name {
public long count(String field, Object val) throws PersistenceException {
logger.debug("enter - count(String,Object)");
try {
if( logger.isDebugEnabled() ) {
logger.debug("For: " + cache.getTarget().getName() + "/" + field + "/" + val); // depends o... |
public class class_name {
private void isolateNextStep(String selector,
int start,
StepProperties stepProperties)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
tc.entry(cclass,
"isolateNextStep",
... | public class class_name {
private void isolateNextStep(String selector,
int start,
StepProperties stepProperties)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
tc.entry(cclass,
"isolateNextStep",
... |
public class class_name {
public String exportRules(Engine engine) {
StringBuilder result = new StringBuilder();
result.append("[Rules]\n");
for (RuleBlock ruleBlock : engine.getRuleBlocks()) {
if (engine.numberOfRuleBlocks() > 1) {
result.append(String.format("# Rul... | public class class_name {
public String exportRules(Engine engine) {
StringBuilder result = new StringBuilder();
result.append("[Rules]\n");
for (RuleBlock ruleBlock : engine.getRuleBlocks()) {
if (engine.numberOfRuleBlocks() > 1) {
result.append(String.format("# Rul... |
public class class_name {
protected List<Message> getMessages(int prefetchBatchSize) throws InterruptedException {
assert prefetchBatchSize > 0;
ReceiveMessageRequest receiveMessageRequest = new ReceiveMessageRequest(queueUrl)
.withMaxNumb... | public class class_name {
protected List<Message> getMessages(int prefetchBatchSize) throws InterruptedException {
assert prefetchBatchSize > 0;
ReceiveMessageRequest receiveMessageRequest = new ReceiveMessageRequest(queueUrl)
.withMaxNumb... |
public class class_name {
@FromString
public static Hours parse(CharSequence text) {
Objects.requireNonNull(text, "text");
Matcher matcher = PATTERN.matcher(text);
if (matcher.matches()) {
int negate = "-".equals(matcher.group(1)) ? -1 : 1;
String daysStr = matcher.g... | public class class_name {
@FromString
public static Hours parse(CharSequence text) {
Objects.requireNonNull(text, "text");
Matcher matcher = PATTERN.matcher(text);
if (matcher.matches()) {
int negate = "-".equals(matcher.group(1)) ? -1 : 1;
String daysStr = matcher.g... |
public class class_name {
protected void validateNew(final CmsAliasTableRow newEntry) {
CmsRpcAction<CmsAliasEditValidationReply> action = new CmsRpcAction<CmsAliasEditValidationReply>() {
@Override
public void execute() {
start(200, true);
Cms... | public class class_name {
protected void validateNew(final CmsAliasTableRow newEntry) {
CmsRpcAction<CmsAliasEditValidationReply> action = new CmsRpcAction<CmsAliasEditValidationReply>() {
@Override
public void execute() {
start(200, true);
Cms... |
public class class_name {
static String pidListKey(List<String> allJmxAclPids, ObjectName objectName) throws NoSuchAlgorithmException, UnsupportedEncodingException {
List<String> pidCandidates = iterateDownPids(nameSegments(objectName));
MessageDigest md = MessageDigest.getInstance("MD5");
for... | public class class_name {
static String pidListKey(List<String> allJmxAclPids, ObjectName objectName) throws NoSuchAlgorithmException, UnsupportedEncodingException {
List<String> pidCandidates = iterateDownPids(nameSegments(objectName));
MessageDigest md = MessageDigest.getInstance("MD5");
for... |
public class class_name {
private boolean sendErrorMail(String content, String title) {
String localName = "";
try {
InetAddress addr = InetAddress.getLocalHost();
localName = addr.getHostName().toString();
} catch (UnknownHostException e) {
LOG.warn("Wh... | public class class_name {
private boolean sendErrorMail(String content, String title) {
String localName = "";
try {
InetAddress addr = InetAddress.getLocalHost();
localName = addr.getHostName().toString(); // depends on control dependency: [try], data = [none]
} cat... |
public class class_name {
protected Response createResponse(Status status, NlsRuntimeException error, Map<String, List<String>> errorsMap) {
String message;
if (this.exposeInternalErrorDetails) {
message = getExposedErrorDetails(error);
} else {
message = error.getLocalizedMessage();
}
... | public class class_name {
protected Response createResponse(Status status, NlsRuntimeException error, Map<String, List<String>> errorsMap) {
String message;
if (this.exposeInternalErrorDetails) {
message = getExposedErrorDetails(error); // depends on control dependency: [if], data = [none]
} else {
... |
public class class_name {
public <T> Collection<T> getCollection(String prefix, Function<String, T> factory) {
Collection<T> collection = new ArrayList<>();
for (String property : properties.stringPropertyNames()) {
if (property.startsWith(prefix + ".")) {
collection.add(factory.apply(property));... | public class class_name {
public <T> Collection<T> getCollection(String prefix, Function<String, T> factory) {
Collection<T> collection = new ArrayList<>();
for (String property : properties.stringPropertyNames()) {
if (property.startsWith(prefix + ".")) {
collection.add(factory.apply(property));... |
public class class_name {
public final void removeDirectory(final File directory) {
try {
FileUtils.deleteDirectory(directory);
} catch (IOException e) {
LOGGER.error("Unable to delete directory '{}'", directory);
}
} } | public class class_name {
public final void removeDirectory(final File directory) {
try {
FileUtils.deleteDirectory(directory); // depends on control dependency: [try], data = [none]
} catch (IOException e) {
LOGGER.error("Unable to delete directory '{}'", directory);
} ... |
public class class_name {
public Result isUTF8(byte[] buffer, boolean rejectNulls) {
boolean onlyAscii = true;
for (int i = 0; i < buffer.length; i++) {
byte len;
// make it unsigned for the comparisons
int c = (0xFF) & buffer[i];
if (rejectNulls && c == 0) {
return Result.INV... | public class class_name {
public Result isUTF8(byte[] buffer, boolean rejectNulls) {
boolean onlyAscii = true;
for (int i = 0; i < buffer.length; i++) {
byte len;
// make it unsigned for the comparisons
int c = (0xFF) & buffer[i];
if (rejectNulls && c == 0) {
return Result.INV... |
public class class_name {
public static boolean containsThrowableOfType(Throwable throwable, Class<?>... throwableTypes) {
List<Throwable> alreadyProcessedThrowables = new ArrayList<Throwable>();
while (true) {
if (throwable == null) {
// end of the list of causes
... | public class class_name {
public static boolean containsThrowableOfType(Throwable throwable, Class<?>... throwableTypes) {
List<Throwable> alreadyProcessedThrowables = new ArrayList<Throwable>();
while (true) {
if (throwable == null) {
// end of the list of causes
... |
public class class_name {
public static IndexedContainer getAvailableGroupsContainerWithout(
CmsObject cms,
String ouFqn,
String propCaption,
String propIcon,
String propOu,
List<CmsGroup> blackList,
java.util.function.Function<CmsGroup, CmsCssIcon> iconProvider)... | public class class_name {
public static IndexedContainer getAvailableGroupsContainerWithout(
CmsObject cms,
String ouFqn,
String propCaption,
String propIcon,
String propOu,
List<CmsGroup> blackList,
java.util.function.Function<CmsGroup, CmsCssIcon> iconProvider)... |
public class class_name {
public Service withDurationHistogram(HistogramEntry... durationHistogram) {
if (this.durationHistogram == null) {
setDurationHistogram(new java.util.ArrayList<HistogramEntry>(durationHistogram.length));
}
for (HistogramEntry ele : durationHistogram) {
... | public class class_name {
public Service withDurationHistogram(HistogramEntry... durationHistogram) {
if (this.durationHistogram == null) {
setDurationHistogram(new java.util.ArrayList<HistogramEntry>(durationHistogram.length)); // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
protected WsByteBuffer[] putByte(byte data, WsByteBuffer[] inBuffers) {
WsByteBuffer[] buffers = inBuffers;
this.byteCache[this.bytePosition] = data;
this.bytePosition++;
if (this.bytePosition >= this.byteCacheSize) {
// full cache, flush it
... | public class class_name {
protected WsByteBuffer[] putByte(byte data, WsByteBuffer[] inBuffers) {
WsByteBuffer[] buffers = inBuffers;
this.byteCache[this.bytePosition] = data;
this.bytePosition++;
if (this.bytePosition >= this.byteCacheSize) {
// full cache, flush it
... |
public class class_name {
public void start(Map<String, Object> options) {
MethodCallFilter methodFilter = new MethodCallFilter();
ThreadRunFilter threadFilter = new ThreadRunFilter();
Map<String, Object> opts = new HashMap(defaultOptions);
opts.putAll(options);
methodFilter.add... | public class class_name {
public void start(Map<String, Object> options) {
MethodCallFilter methodFilter = new MethodCallFilter();
ThreadRunFilter threadFilter = new ThreadRunFilter();
Map<String, Object> opts = new HashMap(defaultOptions);
opts.putAll(options);
methodFilter.add... |
public class class_name {
@Override
public void generateSpecializedPart(SQLiteModelMethod method, TypeSpec.Builder classBuilder,
MethodSpec.Builder methodBuilder, Set<JQLProjection> fieldList, boolean mapFields) {
SQLiteEntity entity = method.getEntity();
ParameterizedTypeName listenerType = ParameterizedTy... | public class class_name {
@Override
public void generateSpecializedPart(SQLiteModelMethod method, TypeSpec.Builder classBuilder,
MethodSpec.Builder methodBuilder, Set<JQLProjection> fieldList, boolean mapFields) {
SQLiteEntity entity = method.getEntity();
ParameterizedTypeName listenerType = ParameterizedTy... |
public class class_name {
public static AssociationKeyMetadata getInverseAssociationKeyMetadata(OgmEntityPersister mainSidePersister, int propertyIndex) {
Type propertyType = mainSidePersister.getPropertyTypes()[propertyIndex];
SessionFactoryImplementor factory = mainSidePersister.getFactory();
// property repr... | public class class_name {
public static AssociationKeyMetadata getInverseAssociationKeyMetadata(OgmEntityPersister mainSidePersister, int propertyIndex) {
Type propertyType = mainSidePersister.getPropertyTypes()[propertyIndex];
SessionFactoryImplementor factory = mainSidePersister.getFactory();
// property repr... |
public class class_name {
public void setUrl(String url) {
Properties p = org.postgresql.Driver.parseURL(url, null);
if (p == null) {
throw new IllegalArgumentException("URL invalid " + url);
}
for (PGProperty property : PGProperty.values()) {
if (!this.properties.containsKey(property.get... | public class class_name {
public void setUrl(String url) {
Properties p = org.postgresql.Driver.parseURL(url, null);
if (p == null) {
throw new IllegalArgumentException("URL invalid " + url);
}
for (PGProperty property : PGProperty.values()) {
if (!this.properties.containsKey(property.get... |
public class class_name {
public FontChooser setSelectedFontStyle(int style) {
for (int i = 0; i < FONT_STYLE_CODES.length; i++) {
if (FONT_STYLE_CODES[i] == style) {
getFontStyleList().setSelectedIndex(i);
break;
}
}
updateSampleFont();
... | public class class_name {
public FontChooser setSelectedFontStyle(int style) {
for (int i = 0; i < FONT_STYLE_CODES.length; i++) {
if (FONT_STYLE_CODES[i] == style) {
getFontStyleList().setSelectedIndex(i); // depends on control dependency: [if], data = [none]
break;... |
public class class_name {
private static Provider getDefaultProvider() {
// approach 1
try {
String providerClass = System.getProperty("org.joda.time.DateTimeZone.Provider");
if (providerClass != null) {
try {
// do not initialize the class un... | public class class_name {
private static Provider getDefaultProvider() {
// approach 1
try {
String providerClass = System.getProperty("org.joda.time.DateTimeZone.Provider");
if (providerClass != null) {
try {
// do not initialize the class un... |
public class class_name {
public List<Type> getAllInterfaces(Type type,
Configuration configuration, boolean sort) {
Map<ClassDoc,Type> results = sort ?
new TreeMap<ClassDoc,Type>() :
new LinkedHashMap<ClassDoc,Type>();
Type[] interfaceTypes = null;
T... | public class class_name {
public List<Type> getAllInterfaces(Type type,
Configuration configuration, boolean sort) {
Map<ClassDoc,Type> results = sort ?
new TreeMap<ClassDoc,Type>() :
new LinkedHashMap<ClassDoc,Type>();
Type[] interfaceTypes = null;
T... |
public class class_name {
public void notifyClients()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "notifyClients");
// We'll only fire events if eventing is enabled or depths are being monitored
// (510343)
if (isThresholdNotificat... | public class class_name {
public void notifyClients()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "notifyClients");
// We'll only fire events if eventing is enabled or depths are being monitored
// (510343)
if (isThresholdNotificat... |
public class class_name {
@SuppressWarnings("unchecked")
public <T> T get(EventLocal<T> key) {
EventLocalMap<EventLocal<?>, Object> map = getMap(key);
if (null == map) {
return key.initialValue();
}
return (T) map.get(key);
} } | public class class_name {
@SuppressWarnings("unchecked")
public <T> T get(EventLocal<T> key) {
EventLocalMap<EventLocal<?>, Object> map = getMap(key);
if (null == map) {
return key.initialValue(); // depends on control dependency: [if], data = [none]
}
return (T) map.get... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.