code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
public static DataType largestOf(DataType... dataTypes) {
DataType widest = null;
for (DataType dataType : dataTypes) {
if (widest == null) {
widest = dataType;
} else if (rank(dataType) > rank(widest)) {
widest = dataType;
}
}
return... | public class class_name {
public static DataType largestOf(DataType... dataTypes) {
DataType widest = null;
for (DataType dataType : dataTypes) {
if (widest == null) {
widest = dataType;
// depends on control dependency: [if], data = [none]
} else if (rank(dataType) > rank(widest)) {
... |
public class class_name {
static Bitmap decodeStream(InputStream stream, int requestedWidth,
int requestedHeight, final boolean canShrink,
Bitmap possibleAlternative, boolean closeStream) {
BitmapFactory.Options options = standardBitmapFactoryOptions();
try {
Decode... | public class class_name {
static Bitmap decodeStream(InputStream stream, int requestedWidth,
int requestedHeight, final boolean canShrink,
Bitmap possibleAlternative, boolean closeStream) {
BitmapFactory.Options options = standardBitmapFactoryOptions();
try {
Decode... |
public class class_name {
@Override
public String getVirtualHostName() {
if (this.isNonSecurePortEnabled()) {
return configInstance.getStringProperty(namespace + VIRTUAL_HOSTNAME_KEY,
super.getVirtualHostName()).get();
} else {
return null;
}
... | public class class_name {
@Override
public String getVirtualHostName() {
if (this.isNonSecurePortEnabled()) {
return configInstance.getStringProperty(namespace + VIRTUAL_HOSTNAME_KEY,
super.getVirtualHostName()).get(); // depends on control dependency: [if], data = [none]
... |
public class class_name {
public static String randomAlphaNumString(int length) {
StringBuilder sb = new StringBuilder();
for (int i = 0; i < length; i++) {
sb.append(ALPHANUM.charAt(RANDOM.nextInt(ALPHANUM.length())));
}
return sb.toString();
} } | public class class_name {
public static String randomAlphaNumString(int length) {
StringBuilder sb = new StringBuilder();
for (int i = 0; i < length; i++) {
sb.append(ALPHANUM.charAt(RANDOM.nextInt(ALPHANUM.length()))); // depends on control dependency: [for], data = [none]
}
return sb.toString()... |
public class class_name {
public void marshall(HlsEncryption hlsEncryption, ProtocolMarshaller protocolMarshaller) {
if (hlsEncryption == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(hlsEncryption... | public class class_name {
public void marshall(HlsEncryption hlsEncryption, ProtocolMarshaller protocolMarshaller) {
if (hlsEncryption == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(hlsEncryption... |
public class class_name {
private static int resolveGravity(int gravity, int width, int height,
int intrinsicWidth, int intrinsicHeight) {
if (!Gravity.isHorizontal(gravity)) {
if (width < 0) {
gravity |= Gravity.FILL_HORIZONTAL;
} e... | public class class_name {
private static int resolveGravity(int gravity, int width, int height,
int intrinsicWidth, int intrinsicHeight) {
if (!Gravity.isHorizontal(gravity)) {
if (width < 0) {
gravity |= Gravity.FILL_HORIZONTAL; // depends on c... |
public class class_name {
@Override
public void putSystemContextItem(String name, Serializable item) throws IllegalArgumentException, IOException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "putSystemContextItem", new Object[] { name, item });
... | public class class_name {
@Override
public void putSystemContextItem(String name, Serializable item) throws IllegalArgumentException, IOException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "putSystemContextItem", new Object[] { name, item });
... |
public class class_name {
public String toGroupPath() {
RegistryEntry rootEntry = getRootEntry();
ResourceInformation resourceInformation = rootEntry.getResourceInformation();
String resourcePath;
if (parentField != null) {
// TODO nested resource can be queried through two means, nested or direct flat (ma... | public class class_name {
public String toGroupPath() {
RegistryEntry rootEntry = getRootEntry();
ResourceInformation resourceInformation = rootEntry.getResourceInformation();
String resourcePath;
if (parentField != null) {
// TODO nested resource can be queried through two means, nested or direct flat (ma... |
public class class_name {
private void send(JainMgcpResponseEvent event) {
cancelLongtranTimer();
// to send response we already should know the address and port
// number from which the original request was received
if (remoteAddress == null) {
throw new IllegalArgumentException("Unknown orinator address... | public class class_name {
private void send(JainMgcpResponseEvent event) {
cancelLongtranTimer();
// to send response we already should know the address and port
// number from which the original request was received
if (remoteAddress == null) {
throw new IllegalArgumentException("Unknown orinator address... |
public class class_name {
public ClassScanner scan(final URL... urls) {
for (final URL url : urls) {
final File file = FileUtil.toContainerFile(url);
if (file == null) {
if (!ignoreException) {
throw new FindFileException("URL is not a valid file: " + url);
}
}
else {
filesToScan.add(fil... | public class class_name {
public ClassScanner scan(final URL... urls) {
for (final URL url : urls) {
final File file = FileUtil.toContainerFile(url);
if (file == null) {
if (!ignoreException) {
throw new FindFileException("URL is not a valid file: " + url);
}
}
else {
filesToScan.add(fil... |
public class class_name {
public static ExpressionFactory getExpressionFactory(ELContext context) {
ExpressionFactory result = getContext(context, ExpressionFactory.class);
if (result == null) {
result = ExpressionFactory.newInstance();
context.putContext(ExpressionFactory.class... | public class class_name {
public static ExpressionFactory getExpressionFactory(ELContext context) {
ExpressionFactory result = getContext(context, ExpressionFactory.class);
if (result == null) {
result = ExpressionFactory.newInstance(); // depends on control dependency: [if], data = [none]
... |
public class class_name {
public static List<Method> getClassGetters(Class<?> beanClass) {
Map<String, Method> resultMap = new HashMap<>();
LinkedList<Method> results = new LinkedList<>();
Class<?> currentClass = beanClass;
while (currentClass != null && currentClass != Object.class) {
getDeclaredClassGett... | public class class_name {
public static List<Method> getClassGetters(Class<?> beanClass) {
Map<String, Method> resultMap = new HashMap<>();
LinkedList<Method> results = new LinkedList<>();
Class<?> currentClass = beanClass;
while (currentClass != null && currentClass != Object.class) {
getDeclaredClassGett... |
public class class_name {
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
{
orderNumber = in.readInt();
byte[] data = new byte[in.readInt()];
if (data.length > 0)
{
try
{
in.readFully(data);
value = new JCRDateFor... | public class class_name {
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
{
orderNumber = in.readInt();
byte[] data = new byte[in.readInt()];
if (data.length > 0)
{
try
{
in.readFully(data); // depends on control dependency: ... |
public class class_name {
public boolean isEffective(Tuple tuple,
RuleTerminalNode rtn,
WorkingMemory workingMemory) {
if ( !this.enabled.getValue( tuple,
rtn.getEnabledDeclarations(),
... | public class class_name {
public boolean isEffective(Tuple tuple,
RuleTerminalNode rtn,
WorkingMemory workingMemory) {
if ( !this.enabled.getValue( tuple,
rtn.getEnabledDeclarations(),
... |
public class class_name {
public void setCopyrightHolder(final String copyrightHolder) {
if (copyrightHolder == null && this.copyrightHolder == null) {
return;
} else if (copyrightHolder == null) {
removeChild(this.copyrightHolder);
this.copyrightHolder = null;
... | public class class_name {
public void setCopyrightHolder(final String copyrightHolder) {
if (copyrightHolder == null && this.copyrightHolder == null) {
return; // depends on control dependency: [if], data = [none]
} else if (copyrightHolder == null) {
removeChild(this.copyrightH... |
public class class_name {
public boolean setFilesChanged(String filesChangedStr) {
try {
this.filesChanged = Integer.parseInt(filesChangedStr);
return true;
} catch (NumberFormatException e) {
return false;
}
} } | public class class_name {
public boolean setFilesChanged(String filesChangedStr) {
try {
this.filesChanged = Integer.parseInt(filesChangedStr); // depends on control dependency: [try], data = [none]
return true; // depends on control dependency: [try], data = [none]
} catch (NumberFormatException e... |
public class class_name {
public static synchronized <A extends Audio> A loadAudio(Media media, Class<A> type)
{
Check.notNull(media);
Check.notNull(type);
final String extension = UtilFile.getExtension(media.getPath());
try
{
return type.cast(Optional.ofNullabl... | public class class_name {
public static synchronized <A extends Audio> A loadAudio(Media media, Class<A> type)
{
Check.notNull(media);
Check.notNull(type);
final String extension = UtilFile.getExtension(media.getPath());
try
{
return type.cast(Optional.ofNullabl... |
public class class_name {
protected Set<QName> getProperties(HierarchicalProperty body)
{
HashSet<QName> properties = new HashSet<QName>();
HierarchicalProperty prop = body.getChild(new QName("DAV:", "prop"));
if (prop == null)
{
return properties;
}
for (int... | public class class_name {
protected Set<QName> getProperties(HierarchicalProperty body)
{
HashSet<QName> properties = new HashSet<QName>();
HierarchicalProperty prop = body.getChild(new QName("DAV:", "prop"));
if (prop == null)
{
return properties;
// depends on control dep... |
public class class_name {
@Override
public void visitField(Field obj) {
if (obj.isPrivate()) {
String signature = obj.getSignature();
if (signature.startsWith(Values.SIG_QUALIFIED_CLASS_PREFIX)) {
try {
JavaClass cls = Repository.lookupClass(Signa... | public class class_name {
@Override
public void visitField(Field obj) {
if (obj.isPrivate()) {
String signature = obj.getSignature();
if (signature.startsWith(Values.SIG_QUALIFIED_CLASS_PREFIX)) {
try {
JavaClass cls = Repository.lookupClass(Signa... |
public class class_name {
private Object writeTable(SerIterator itemIterator) {
List<Object> result = new ArrayList<>();
while (itemIterator.hasNext()) {
itemIterator.next();
Object outputKey = writeObject(itemIterator.keyType(), itemIterator.key(), null);
Object out... | public class class_name {
private Object writeTable(SerIterator itemIterator) {
List<Object> result = new ArrayList<>();
while (itemIterator.hasNext()) {
itemIterator.next(); // depends on control dependency: [while], data = [none]
Object outputKey = writeObject(itemIterator.key... |
public class class_name {
protected void addProfilesList(Profiles profiles, String text,
String tableSummary, Content body) {
Content heading = HtmlTree.HEADING(HtmlConstants.PROFILE_HEADING, true,
profilesLabel);
Content div = HtmlTree.DIV(HtmlStyle.indexContainer, heading)... | public class class_name {
protected void addProfilesList(Profiles profiles, String text,
String tableSummary, Content body) {
Content heading = HtmlTree.HEADING(HtmlConstants.PROFILE_HEADING, true,
profilesLabel);
Content div = HtmlTree.DIV(HtmlStyle.indexContainer, heading)... |
public class class_name {
public void recordCheckoutQueueLength(SocketDestination dest, int queueLength) {
if(dest != null) {
getOrCreateNodeStats(dest).recordCheckoutQueueLength(null, queueLength);
recordCheckoutQueueLength(null, queueLength);
} else {
this.checkout... | public class class_name {
public void recordCheckoutQueueLength(SocketDestination dest, int queueLength) {
if(dest != null) {
getOrCreateNodeStats(dest).recordCheckoutQueueLength(null, queueLength); // depends on control dependency: [if], data = [(dest]
recordCheckoutQueueLength(null, q... |
public class class_name {
private boolean appendSet(StringBuilder builder, Object value)
{
boolean isPresent = false;
if (value instanceof Collection)
{
Collection collection = ((Collection) value);
isPresent = true;
builder.append(Constants.OPEN_CURLY_BR... | public class class_name {
private boolean appendSet(StringBuilder builder, Object value)
{
boolean isPresent = false;
if (value instanceof Collection)
{
Collection collection = ((Collection) value);
isPresent = true; // depends on control dependency: [if], data = [no... |
public class class_name {
protected boolean validOutcome(String outcome, Sequence sequence) {
if (outcome.equals(CONTINUE)) {
List tags = sequence.getOutcomes();
int li = tags.size() - 1;
if (li == -1) {
return false;
}
else if (((String) tags.get(li)).equals(OTHER)) {
... | public class class_name {
protected boolean validOutcome(String outcome, Sequence sequence) {
if (outcome.equals(CONTINUE)) {
List tags = sequence.getOutcomes();
int li = tags.size() - 1;
if (li == -1) {
return false; // depends on control dependency: [if], data = [none]
}
els... |
public class class_name {
private void inject(Object target, Field field) {
try {
/**
* Injection is actually quite a simple process. We resolve the
* field into a source of instances, and ask it to generate one.
*/
field.set(target, r... | public class class_name {
private void inject(Object target, Field field) {
try {
/**
* Injection is actually quite a simple process. We resolve the
* field into a source of instances, and ask it to generate one.
*/
field.set(target, r... |
public class class_name {
public String[] toSourceArray() {
return runInCompilerThread(
() -> {
Tracer tracer = newTracer("toSourceArray");
try {
int numInputs = moduleGraph.getInputCount();
String[] sources = new String[numInputs];
CodeBuilder cb = n... | public class class_name {
public String[] toSourceArray() {
return runInCompilerThread(
() -> {
Tracer tracer = newTracer("toSourceArray");
try {
int numInputs = moduleGraph.getInputCount();
String[] sources = new String[numInputs];
CodeBuilder cb = n... |
public class class_name {
private void fitImageToView() {
Drawable drawable = getDrawable();
if (drawable == null || drawable.getIntrinsicWidth() == 0 || drawable.getIntrinsicHeight() == 0) {
return;
}
if (matrix == null || prevMatrix == null) {
return;
}... | public class class_name {
private void fitImageToView() {
Drawable drawable = getDrawable();
if (drawable == null || drawable.getIntrinsicWidth() == 0 || drawable.getIntrinsicHeight() == 0) {
return; // depends on control dependency: [if], data = [none]
}
if (matrix == null ... |
public class class_name {
public static void main(final String... args) {
// Configure command line options
final Options options = new Options();
options.addOption("c", "config", true, "use service configuration file / classpath "
+ "resource (default '" + DEFAULT_CONFIG + "')... | public class class_name {
public static void main(final String... args) {
// Configure command line options
final Options options = new Options();
options.addOption("c", "config", true, "use service configuration file / classpath "
+ "resource (default '" + DEFAULT_CONFIG + "')... |
public class class_name {
private HttpEntity<?> createHttpEntity(HttpHeaders httpHeaders, Object payload, HttpMethod method) {
if (httpMethodSupportsBody(method)) {
return new HttpEntity<>(payload, httpHeaders);
} else {
return new HttpEntity<>(httpHeaders);
}
} } | public class class_name {
private HttpEntity<?> createHttpEntity(HttpHeaders httpHeaders, Object payload, HttpMethod method) {
if (httpMethodSupportsBody(method)) {
return new HttpEntity<>(payload, httpHeaders); // depends on control dependency: [if], data = [none]
} else {
retu... |
public class class_name {
public String getConfigAttributeWithDefaultValue(Map<String, Object> props, String key, String defaultValue) {
String result = getAndTrimConfigAttribute(props, key);
if (key != null && result == null) {
if (defaultValue != null) {
result = defaultVa... | public class class_name {
public String getConfigAttributeWithDefaultValue(Map<String, Object> props, String key, String defaultValue) {
String result = getAndTrimConfigAttribute(props, key);
if (key != null && result == null) {
if (defaultValue != null) {
result = defaultVa... |
public class class_name {
private FixedStringSearchInterpolator mainProjectInterpolator(MavenProject mainProject)
{
if (mainProject != null) {
// 5
return FixedStringSearchInterpolator.create(
new org.codehaus.plexus.interpolation.fixed.PrefixedObjectValueSource(
... | public class class_name {
private FixedStringSearchInterpolator mainProjectInterpolator(MavenProject mainProject)
{
if (mainProject != null) {
// 5
return FixedStringSearchInterpolator.create(
new org.codehaus.plexus.interpolation.fixed.PrefixedObjectValueSource(
... |
public class class_name {
public void read() {
String pid = "-1";
try {
pid = getProcessId();
_pid = pid;
}
catch (Exception ignore) {}
File f = new File ("/proc/stat");
if (! f.exists()) {
return;
}
try {
readSystemProcFile();
readProcessProcFile(pid);
... | public class class_name {
public void read() {
String pid = "-1";
try {
pid = getProcessId(); // depends on control dependency: [try], data = [none]
_pid = pid; // depends on control dependency: [try], data = [none]
}
catch (Exception ignore) {} // depends on control dependency: [catch], da... |
public class class_name {
@Override
public void started(Container moduleContainer) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(this, tc, "application started. moduleContainer: " + moduleContainer.getName());
WebAppConfiguration webAppConfig;
try... | public class class_name {
@Override
public void started(Container moduleContainer) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(this, tc, "application started. moduleContainer: " + moduleContainer.getName());
WebAppConfiguration webAppConfig;
try... |
public class class_name {
@Override
public Content getPropertyDetails(Content propertyDetailsTree) {
if (configuration.allowTag(HtmlTag.SECTION)) {
HtmlTree htmlTree = HtmlTree.SECTION(getMemberTree(propertyDetailsTree));
return htmlTree;
}
return getMemberTree(prope... | public class class_name {
@Override
public Content getPropertyDetails(Content propertyDetailsTree) {
if (configuration.allowTag(HtmlTag.SECTION)) {
HtmlTree htmlTree = HtmlTree.SECTION(getMemberTree(propertyDetailsTree));
return htmlTree; // depends on control dependency: [if], data... |
public class class_name {
private void parseGroupPattern(String groupPattern) {
List<String> patternList = StrUtil.split(groupPattern, '|');
for (String pattern : patternList) {
parseSinglePattern(pattern);
}
} } | public class class_name {
private void parseGroupPattern(String groupPattern) {
List<String> patternList = StrUtil.split(groupPattern, '|');
for (String pattern : patternList) {
parseSinglePattern(pattern);
// depends on control dependency: [for], data = [pattern]
}
} } |
public class class_name {
private WriterFlushResult updateStatePostFlush(FlushArgs flushArgs) {
// Update the metadata Storage Length.
long newLength = this.metadata.getStorageLength() + flushArgs.getLength();
this.metadata.setStorageLength(newLength);
// Remove operations from the out... | public class class_name {
private WriterFlushResult updateStatePostFlush(FlushArgs flushArgs) {
// Update the metadata Storage Length.
long newLength = this.metadata.getStorageLength() + flushArgs.getLength();
this.metadata.setStorageLength(newLength);
// Remove operations from the out... |
public class class_name {
public void marshall(EngineAttribute engineAttribute, ProtocolMarshaller protocolMarshaller) {
if (engineAttribute == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(engineA... | public class class_name {
public void marshall(EngineAttribute engineAttribute, ProtocolMarshaller protocolMarshaller) {
if (engineAttribute == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(engineA... |
public class class_name {
private void generateSheet(Workbook workbook, List<?> data, List<String> header, String sheetName) {
Sheet sheet;
if (null != sheetName && !"".equals(sheetName)) {
sheet = workbook.createSheet(sheetName);
} else {
sheet = workbook.createSheet()... | public class class_name {
private void generateSheet(Workbook workbook, List<?> data, List<String> header, String sheetName) {
Sheet sheet;
if (null != sheetName && !"".equals(sheetName)) {
sheet = workbook.createSheet(sheetName); // depends on control dependency: [if], data = [none]
... |
public class class_name {
private ClassReference processType(Type type, TypeReferenceLocation typeReferenceLocation, int lineNumber, int columnNumber, int length,
String line)
{
if (type == null)
return null;
ITypeBinding resolveBinding = type.resolveBinding();
... | public class class_name {
private ClassReference processType(Type type, TypeReferenceLocation typeReferenceLocation, int lineNumber, int columnNumber, int length,
String line)
{
if (type == null)
return null;
ITypeBinding resolveBinding = type.resolveBinding();
... |
public class class_name {
public void marshall(ListSqlInjectionMatchSetsRequest listSqlInjectionMatchSetsRequest, ProtocolMarshaller protocolMarshaller) {
if (listSqlInjectionMatchSetsRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
tr... | public class class_name {
public void marshall(ListSqlInjectionMatchSetsRequest listSqlInjectionMatchSetsRequest, ProtocolMarshaller protocolMarshaller) {
if (listSqlInjectionMatchSetsRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
tr... |
public class class_name {
public synchronized void reset(Reader input) {
this.input = input;
context.reset();
for(ISegmenter segmenter : segmenters){
segmenter.reset();
}
} } | public class class_name {
public synchronized void reset(Reader input) {
this.input = input;
context.reset();
for(ISegmenter segmenter : segmenters){
segmenter.reset();
// depends on control dependency: [for], data = [segmenter]
}
} } |
public class class_name {
public final AntlrDatatypeRuleToken ruleOpUnary() throws RecognitionException {
AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();
Token kw=null;
enterRule();
try {
// InternalPureXbase.g:2089:2: ( (kw= '!' | kw= '-' | kw= '+' ) )
... | public class class_name {
public final AntlrDatatypeRuleToken ruleOpUnary() throws RecognitionException {
AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();
Token kw=null;
enterRule();
try {
// InternalPureXbase.g:2089:2: ( (kw= '!' | kw= '-' | kw= '+' ) )
... |
public class class_name {
public Instant truncatedTo(TemporalUnit unit) {
if (unit == ChronoUnit.NANOS) {
return this;
}
Duration unitDur = unit.getDuration();
if (unitDur.getSeconds() > LocalTime.SECONDS_PER_DAY) {
throw new UnsupportedTemporalTypeException("Uni... | public class class_name {
public Instant truncatedTo(TemporalUnit unit) {
if (unit == ChronoUnit.NANOS) {
return this; // depends on control dependency: [if], data = [none]
}
Duration unitDur = unit.getDuration();
if (unitDur.getSeconds() > LocalTime.SECONDS_PER_DAY) {
... |
public class class_name {
protected void initSettingsObject() {
Object o;
if (CmsStringUtil.isEmpty(getParamAction())) {
o = new CmsSearchReplaceSettings();
} else {
// this is not the initial call, get the job object from session
o = getDialogObject();
... | public class class_name {
protected void initSettingsObject() {
Object o;
if (CmsStringUtil.isEmpty(getParamAction())) {
o = new CmsSearchReplaceSettings(); // depends on control dependency: [if], data = [none]
} else {
// this is not the initial call, get the job objec... |
public class class_name {
private IIOMetadataNode getNode(IIOMetadataNode rootNode, String nodeName) {
IIOMetadataNode[] nodes = new IIOMetadataNode[rootNode.getLength()];
for (int i = 0; i < rootNode.getLength(); i++) {
nodes[i] = (IIOMetadataNode) rootNode.item(i);
}
re... | public class class_name {
private IIOMetadataNode getNode(IIOMetadataNode rootNode, String nodeName) {
IIOMetadataNode[] nodes = new IIOMetadataNode[rootNode.getLength()];
for (int i = 0; i < rootNode.getLength(); i++) {
nodes[i] = (IIOMetadataNode) rootNode.item(i); // depends on control... |
public class class_name {
static String serialize(UUID uuid) {
StringBuilder sb = new StringBuilder();
// Get UUID type version
ByteBuffer bb = UUIDType.instance.decompose(uuid);
int version = (bb.get(bb.position() + 6) >> 4) & 0x0f;
// Add version at the beginning
sb... | public class class_name {
static String serialize(UUID uuid) {
StringBuilder sb = new StringBuilder();
// Get UUID type version
ByteBuffer bb = UUIDType.instance.decompose(uuid);
int version = (bb.get(bb.position() + 6) >> 4) & 0x0f;
// Add version at the beginning
sb... |
public class class_name {
@Override
public synchronized boolean removeHost(Host host, boolean refresh) {
HostConnectionPool<CL> pool = hosts.remove(host);
if (pool != null) {
topology.removePool(pool);
rebuildPartitions();
monitor.onHostRemoved(host);
... | public class class_name {
@Override
public synchronized boolean removeHost(Host host, boolean refresh) {
HostConnectionPool<CL> pool = hosts.remove(host);
if (pool != null) {
topology.removePool(pool); // depends on control dependency: [if], data = [(pool]
rebuildPartitions(... |
public class class_name {
private String getAccessLog(String ip, User visitor, Integer userId, String browser,
String url, long elapsedTime) {
StringBuilder sb = new StringBuilder();
sb.append(null != ip ? ip : "unknown").append("\t");
if (visitor == null) {
... | public class class_name {
private String getAccessLog(String ip, User visitor, Integer userId, String browser,
String url, long elapsedTime) {
StringBuilder sb = new StringBuilder();
sb.append(null != ip ? ip : "unknown").append("\t");
if (visitor == null) {
... |
public class class_name {
public void setRequestMethods(String... requestMethods) {
this.allowedMethods = requestMethods;
if (this.allowedMethods != null) {
for (int i = 0; i < this.allowedMethods.length; i++) {
this.allowedMethods[i] = this.allowedMethods[i].toUpperCase();
... | public class class_name {
public void setRequestMethods(String... requestMethods) {
this.allowedMethods = requestMethods;
if (this.allowedMethods != null) {
for (int i = 0; i < this.allowedMethods.length; i++) {
this.allowedMethods[i] = this.allowedMethods[i].toUpperCase(); ... |
public class class_name {
private void initialize(@StyleRes final int themeResourceId) {
int themeId = themeResourceId;
if (themeId == 0) {
TypedValue typedValue = new TypedValue();
getContext().getTheme().resolveAttribute(R.attr.materialDialogTheme, typedValue, true);
... | public class class_name {
private void initialize(@StyleRes final int themeResourceId) {
int themeId = themeResourceId;
if (themeId == 0) {
TypedValue typedValue = new TypedValue();
getContext().getTheme().resolveAttribute(R.attr.materialDialogTheme, typedValue, true); // depen... |
public class class_name {
public By getElementLocatorForElementReference(String elementReference, String apendix) {
Map<String, By> objectReferenceMap = getObjectReferenceMap(By.class);
By elementLocator = objectReferenceMap.get(elementReference);
if (elementLocator instanceof ById) {
... | public class class_name {
public By getElementLocatorForElementReference(String elementReference, String apendix) {
Map<String, By> objectReferenceMap = getObjectReferenceMap(By.class);
By elementLocator = objectReferenceMap.get(elementReference);
if (elementLocator instanceof ById) {
... |
public class class_name {
public void showNavMesh(boolean enabled) {
if (enabled) {
if (geoNavMesh == null) {
Geometry debugNavMesh = (Geometry) logicalEntities
.getChild("NavMesh");
this.geoNavMesh = SpatialFactory.createShape("NavMesh",
... | public class class_name {
public void showNavMesh(boolean enabled) {
if (enabled) {
if (geoNavMesh == null) {
Geometry debugNavMesh = (Geometry) logicalEntities
.getChild("NavMesh");
this.geoNavMesh = SpatialFactory.createShape("NavMesh",
... |
public class class_name {
public int calculateDyToMakeVisible(View view, int snapPreference) {
final RecyclerView.LayoutManager layoutManager = getLayoutManager();
if (!layoutManager.canScrollVertically()) {
return 0;
}
final RecyclerView.LayoutParams params = (RecyclerView.... | public class class_name {
public int calculateDyToMakeVisible(View view, int snapPreference) {
final RecyclerView.LayoutManager layoutManager = getLayoutManager();
if (!layoutManager.canScrollVertically()) {
return 0; // depends on control dependency: [if], data = [none]
}
f... |
public class class_name {
public final void shiftExpression() throws RecognitionException {
int shiftExpression_StartIndex = input.index();
try {
if ( state.backtracking>0 && alreadyParsedRule(input, 120) ) { return; }
// src/main/resources/org/drools/compiler/semantics/java/parser/Java.g:1178:5: ( additiv... | public class class_name {
public final void shiftExpression() throws RecognitionException {
int shiftExpression_StartIndex = input.index();
try {
if ( state.backtracking>0 && alreadyParsedRule(input, 120) ) { return; } // depends on control dependency: [if], data = [none]
// src/main/resources/org/drools/c... |
public class class_name {
public Optional<SectionHeader> maybeGetSectionHeaderByRVA(long rva) {
List<SectionHeader> headers = table.getSectionHeaders();
for (SectionHeader header : headers) {
VirtualLocation vLoc = getVirtualSectionLocation(header);
if (addressIsWithin(vLoc, rva... | public class class_name {
public Optional<SectionHeader> maybeGetSectionHeaderByRVA(long rva) {
List<SectionHeader> headers = table.getSectionHeaders();
for (SectionHeader header : headers) {
VirtualLocation vLoc = getVirtualSectionLocation(header);
if (addressIsWithin(vLoc, rva... |
public class class_name {
public void generateGetterForField(JavacNode fieldNode, DiagnosticPosition pos, AccessLevel level, boolean lazy, List<JCAnnotation> onMethod) {
if (hasAnnotation(Getter.class, fieldNode)) {
//The annotation will make it happen, so we can skip it.
return;
}
createGetterForField(lev... | public class class_name {
public void generateGetterForField(JavacNode fieldNode, DiagnosticPosition pos, AccessLevel level, boolean lazy, List<JCAnnotation> onMethod) {
if (hasAnnotation(Getter.class, fieldNode)) {
//The annotation will make it happen, so we can skip it.
return; // depends on control dependen... |
public class class_name {
@Override
public Logger getLogger(String name) {
// get the logger from the super impl
Logger logger = super.getLogger(name);
// At this point we don't know which concrete class to use until the
// ras/logging provider is initialized enough to provide a
... | public class class_name {
@Override
public Logger getLogger(String name) {
// get the logger from the super impl
Logger logger = super.getLogger(name);
// At this point we don't know which concrete class to use until the
// ras/logging provider is initialized enough to provide a
... |
public class class_name {
public User deActivateUser(User userParam)
{
if(userParam != null && this.serviceTicket != null)
{
userParam.setServiceTicket(this.serviceTicket);
}
return new User(this.postJson(
userParam,
WS.Path.User.Version1... | public class class_name {
public User deActivateUser(User userParam)
{
if(userParam != null && this.serviceTicket != null)
{
userParam.setServiceTicket(this.serviceTicket); // depends on control dependency: [if], data = [none]
}
return new User(this.postJson(
... |
public class class_name {
@Override
public RandomVariableInterface getVolatility(int timeIndex, int component) {
synchronized (volatility) {
if(volatility[timeIndex][component] == null) {
volatility[timeIndex][component] = randomVariableFactory.createRandomVariable(getTimeDiscretization().getTime(timeIndex),... | public class class_name {
@Override
public RandomVariableInterface getVolatility(int timeIndex, int component) {
synchronized (volatility) {
if(volatility[timeIndex][component] == null) {
volatility[timeIndex][component] = randomVariableFactory.createRandomVariable(getTimeDiscretization().getTime(timeIndex),... |
public class class_name {
public static double[] minusEquals(final double[] v1, final double[] v2) {
assert v1.length == v2.length : ERR_VEC_DIMENSIONS;
for(int i = 0; i < v1.length; i++) {
v1[i] -= v2[i];
}
return v1;
} } | public class class_name {
public static double[] minusEquals(final double[] v1, final double[] v2) {
assert v1.length == v2.length : ERR_VEC_DIMENSIONS;
for(int i = 0; i < v1.length; i++) {
v1[i] -= v2[i]; // depends on control dependency: [for], data = [i]
}
return v1;
} } |
public class class_name {
@CheckReturnValue
public Expression build(CodeChunk.Generator codeGenerator) {
ImmutableList<IfThenPair<Expression>> pairs = conditions.build();
Expression ternary = tryCreateTernary(pairs);
if (ternary != null) {
return ternary;
}
// Otherwise we need to introduce... | public class class_name {
@CheckReturnValue
public Expression build(CodeChunk.Generator codeGenerator) {
ImmutableList<IfThenPair<Expression>> pairs = conditions.build();
Expression ternary = tryCreateTernary(pairs);
if (ternary != null) {
return ternary; // depends on control dependency: [if], dat... |
public class class_name {
@Override
public CommerceNotificationTemplate fetchByG_E_First(long groupId,
boolean enabled,
OrderByComparator<CommerceNotificationTemplate> orderByComparator) {
List<CommerceNotificationTemplate> list = findByG_E(groupId, enabled,
0, 1, orderByComparator);
if (!list.isEmpty())... | public class class_name {
@Override
public CommerceNotificationTemplate fetchByG_E_First(long groupId,
boolean enabled,
OrderByComparator<CommerceNotificationTemplate> orderByComparator) {
List<CommerceNotificationTemplate> list = findByG_E(groupId, enabled,
0, 1, orderByComparator);
if (!list.isEmpty())... |
public class class_name {
@Override
public Result<Void> delAdminFromNS(AuthzTrans trans, HttpServletResponse resp, String ns, String id) {
TimeTaken tt = trans.start(DELETE_NS_ADMIN + ' ' + ns + ' ' + id, Env.SUB|Env.ALWAYS);
try {
Result<Void> rp = service.delAdminNS(trans, ns, id);
switch(rp.status) ... | public class class_name {
@Override
public Result<Void> delAdminFromNS(AuthzTrans trans, HttpServletResponse resp, String ns, String id) {
TimeTaken tt = trans.start(DELETE_NS_ADMIN + ' ' + ns + ' ' + id, Env.SUB|Env.ALWAYS);
try {
Result<Void> rp = service.delAdminNS(trans, ns, id);
switch(rp.status) ... |
public class class_name {
private ColorRgba getTileColor(Tile tile)
{
final ColorRgba color;
if (tile == null)
{
color = NO_TILE;
}
else
{
final TileRef ref = new TileRef(tile.getSheet(), tile.getNumber());
if (!pixels.co... | public class class_name {
private ColorRgba getTileColor(Tile tile)
{
final ColorRgba color;
if (tile == null)
{
color = NO_TILE;
// depends on control dependency: [if], data = [none]
}
else
{
final TileRef ref = new TileRef(tile.getS... |
public class class_name {
public final EObject ruleXMultiplicativeExpression() throws RecognitionException {
EObject current = null;
EObject this_XUnaryOperation_0 = null;
EObject lv_rightOperand_3_0 = null;
enterRule();
try {
// InternalPureXbase.g:1890:2: ( ... | public class class_name {
public final EObject ruleXMultiplicativeExpression() throws RecognitionException {
EObject current = null;
EObject this_XUnaryOperation_0 = null;
EObject lv_rightOperand_3_0 = null;
enterRule();
try {
// InternalPureXbase.g:1890:2: ( ... |
public class class_name {
@Override
public String getPrefixedKey(final String key, final boolean useOnlyLocalPrefixes) {
lock.readLock().lock();
try {
final String prefix = (useOnlyLocalPrefixes) ? getLocalPrefix() : getPrefix();
return (prefix != null) ? getPrefixedKey(prefix, key) : key;
} finally {
... | public class class_name {
@Override
public String getPrefixedKey(final String key, final boolean useOnlyLocalPrefixes) {
lock.readLock().lock();
try {
final String prefix = (useOnlyLocalPrefixes) ? getLocalPrefix() : getPrefix();
return (prefix != null) ? getPrefixedKey(prefix, key) : key; // depends on con... |
public class class_name {
public ListRegexPatternSetsResult withRegexPatternSets(RegexPatternSetSummary... regexPatternSets) {
if (this.regexPatternSets == null) {
setRegexPatternSets(new java.util.ArrayList<RegexPatternSetSummary>(regexPatternSets.length));
}
for (RegexPatternSetSu... | public class class_name {
public ListRegexPatternSetsResult withRegexPatternSets(RegexPatternSetSummary... regexPatternSets) {
if (this.regexPatternSets == null) {
setRegexPatternSets(new java.util.ArrayList<RegexPatternSetSummary>(regexPatternSets.length)); // depends on control dependency: [if], ... |
public class class_name {
protected void postInstantiate(Object name, Map attributes, Object node) {
for (Closure postInstantiateDelegate : getProxyBuilder().getPostInstantiateDelegates()) {
(postInstantiateDelegate).call(new Object[]{this, attributes, node});
}
} } | public class class_name {
protected void postInstantiate(Object name, Map attributes, Object node) {
for (Closure postInstantiateDelegate : getProxyBuilder().getPostInstantiateDelegates()) {
(postInstantiateDelegate).call(new Object[]{this, attributes, node}); // depends on control dependency: [for... |
public class class_name {
@Override
public T decode(final String s) {
checkNotNull(s);
try {
return Enum.valueOf(type, s);
} catch (final IllegalArgumentException ignored) {
}
try {
return Enum.valueOf(type, s.toUpperCase());
} catch (final IllegalArgumentException ignored) {
... | public class class_name {
@Override
public T decode(final String s) {
checkNotNull(s);
try {
return Enum.valueOf(type, s); // depends on control dependency: [try], data = [none]
} catch (final IllegalArgumentException ignored) {
} // depends on control dependency: [catch], data = [none]
try... |
public class class_name {
public void setAsText(final String text)
{
if (PropertyEditors.isNull(text))
{
setValue(null);
return;
}
Object newValue = Byte.decode(text);
setValue(newValue);
} } | public class class_name {
public void setAsText(final String text)
{
if (PropertyEditors.isNull(text))
{
setValue(null); // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
}
Object newValue = Byte.decode(text)... |
public class class_name {
@Override
public PropertyDescriptor[] getPropertyDescriptors() {
List<PropertyDescriptor> proplist = new ArrayList<>();
try {
proplist.add(new PropertyDescriptor("type", ELJavascriptBundleTag.class, null, "setTypeExpr"));
} catch (IntrospectionException ex) {
}
try {
propli... | public class class_name {
@Override
public PropertyDescriptor[] getPropertyDescriptors() {
List<PropertyDescriptor> proplist = new ArrayList<>();
try {
proplist.add(new PropertyDescriptor("type", ELJavascriptBundleTag.class, null, "setTypeExpr")); // depends on control dependency: [try], data = [none]
} ca... |
public class class_name {
private synchronized Map<String, Map<String, Collection<Index<Node>>>> initIndexConfiguration() {
Map<String, Map<String, Collection<Index<Node>>>> indexesByLabelAndProperty = new HashMap<>();
try (Transaction tx = graphDatabaseService.beginTx() ) {
final IndexMan... | public class class_name {
private synchronized Map<String, Map<String, Collection<Index<Node>>>> initIndexConfiguration() {
Map<String, Map<String, Collection<Index<Node>>>> indexesByLabelAndProperty = new HashMap<>();
try (Transaction tx = graphDatabaseService.beginTx() ) {
final IndexMan... |
public class class_name {
public void setRenderingHint(Key arg0, Object arg1) {
if (arg1 != null) {
rhints.put(arg0, arg1);
} else {
if (arg0 instanceof HyperLinkKey)
{
rhints.put(arg0, HyperLinkKey.VALUE_HYPERLINKKEY_OFF);
}
else
{
... | public class class_name {
public void setRenderingHint(Key arg0, Object arg1) {
if (arg1 != null) {
rhints.put(arg0, arg1); // depends on control dependency: [if], data = [none]
} else {
if (arg0 instanceof HyperLinkKey)
{
rhints.put(arg0, HyperLinkKey.VALUE_HYPE... |
public class class_name {
public final void ruleXSetLiteral() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalXbase.g:746:2: ( ( ( rule__XSetLiteral__Group__0 ) ) )
// InternalXbase.g:747:2: ( ( rule__XSetLiteral__Group__0 ) )
... | public class class_name {
public final void ruleXSetLiteral() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalXbase.g:746:2: ( ( ( rule__XSetLiteral__Group__0 ) ) )
// InternalXbase.g:747:2: ( ( rule__XSetLiteral__Group__0 ) )
... |
public class class_name {
public static boolean osSensitiveEquals( String s1, String s2 )
{
if ( OS_CASE_SENSITIVE )
{
return s1.equals( s2 );
}
else
{
return s1.equalsIgnoreCase( s2 );
}
} } | public class class_name {
public static boolean osSensitiveEquals( String s1, String s2 )
{
if ( OS_CASE_SENSITIVE )
{
return s1.equals( s2 ); // depends on control dependency: [if], data = [none]
}
else
{
return s1.equalsIgnoreCase( s2 ); // depends... |
public class class_name {
public static Iterator<ImageWriter> getImageWriters(ImageTypeSpecifier type, String formatName) {
if (type == null) {
throw new IllegalArgumentException("type == null!");
}
if (formatName == null) {
throw new IllegalArgumentException("formatName == null!");
}
Iterator... | public class class_name {
public static Iterator<ImageWriter> getImageWriters(ImageTypeSpecifier type, String formatName) {
if (type == null) {
throw new IllegalArgumentException("type == null!");
}
if (formatName == null) {
throw new IllegalArgumentException("formatName == null!");
}
Iterator... |
public class class_name {
private void loadLastSavedPreferences() {
fLastSelectedTemplateName = ""; //$NON-NLS-1$
boolean setSelection = false;
String templateName = GlassmakerUIPlugin.getDefault().getPreferenceStore().getString(HTMLUIPreferenceNames.NEW_FILE_TEMPLATE_NAME);
if (templateName == null || templat... | public class class_name {
private void loadLastSavedPreferences() {
fLastSelectedTemplateName = ""; //$NON-NLS-1$
boolean setSelection = false;
String templateName = GlassmakerUIPlugin.getDefault().getPreferenceStore().getString(HTMLUIPreferenceNames.NEW_FILE_TEMPLATE_NAME);
if (templateName == null || templat... |
public class class_name {
public boolean removeFieldsFromPage(int page) {
if (page < 1)
return false;
String names[] = new String[fields.size()];
fields.keySet().toArray(names);
boolean found = false;
for (int k = 0; k < names.length; ++k) {
boolean fr = ... | public class class_name {
public boolean removeFieldsFromPage(int page) {
if (page < 1)
return false;
String names[] = new String[fields.size()];
fields.keySet().toArray(names);
boolean found = false;
for (int k = 0; k < names.length; ++k) {
boolean fr = ... |
public class class_name {
public void setBaseEndpointDnsNames(java.util.Collection<String> baseEndpointDnsNames) {
if (baseEndpointDnsNames == null) {
this.baseEndpointDnsNames = null;
return;
}
this.baseEndpointDnsNames = new com.amazonaws.internal.SdkInternalList<Stri... | public class class_name {
public void setBaseEndpointDnsNames(java.util.Collection<String> baseEndpointDnsNames) {
if (baseEndpointDnsNames == null) {
this.baseEndpointDnsNames = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], ... |
public class class_name {
public List<FacesConfigAttributeType<FacesConfigRendererType<T>>> getAllAttribute()
{
List<FacesConfigAttributeType<FacesConfigRendererType<T>>> list = new ArrayList<FacesConfigAttributeType<FacesConfigRendererType<T>>>();
List<Node> nodeList = childNode.get("attribute");
... | public class class_name {
public List<FacesConfigAttributeType<FacesConfigRendererType<T>>> getAllAttribute()
{
List<FacesConfigAttributeType<FacesConfigRendererType<T>>> list = new ArrayList<FacesConfigAttributeType<FacesConfigRendererType<T>>>();
List<Node> nodeList = childNode.get("attribute");
... |
public class class_name {
public void add(ESRIPoint point) {
if (point.getX() < this.minx) {
this.minx = point.getX();
}
if (point.getX() > this.maxx) {
this.maxx = point.getX();
}
if (point.getY() < this.miny) {
this.miny = point.getY();
}
if (point.getY() > this.maxy) {
this.maxy = point.ge... | public class class_name {
public void add(ESRIPoint point) {
if (point.getX() < this.minx) {
this.minx = point.getX(); // depends on control dependency: [if], data = [none]
}
if (point.getX() > this.maxx) {
this.maxx = point.getX(); // depends on control dependency: [if], data = [none]
}
if (point.getY... |
public class class_name {
public Map<String, Map<String, List<DColumn>>> getColumnUpdatesMap() {
Map<String, Map<String, List<DColumn>>> storeMap = new HashMap<>();
for(ColumnUpdate mutation: getColumnUpdates()) {
String storeName = mutation.getStoreName();
String rowKey = m... | public class class_name {
public Map<String, Map<String, List<DColumn>>> getColumnUpdatesMap() {
Map<String, Map<String, List<DColumn>>> storeMap = new HashMap<>();
for(ColumnUpdate mutation: getColumnUpdates()) {
String storeName = mutation.getStoreName();
String rowKey = m... |
public class class_name {
@Override
public void setFromCorners(double x1, double y1, double z1, double x2, double y2, double z2) {
if (x1<x2) {
this.minxProperty.set(x1);
this.maxxProperty.set(x2);
}
else {
this.minxProperty.set(x2);
this.maxxProperty.set(x1);
}
if (y1<y2) {
this.minyProperty... | public class class_name {
@Override
public void setFromCorners(double x1, double y1, double z1, double x2, double y2, double z2) {
if (x1<x2) {
this.minxProperty.set(x1); // depends on control dependency: [if], data = [(x1]
this.maxxProperty.set(x2); // depends on control dependency: [if], data = [x2)]
}
... |
public class class_name {
private void verifiedCopyFile(File sourceFile, File destFile) throws IOException {
if(!destFile.exists()) {
destFile.createNewFile();
}
FileInputStream source = null;
FileOutputStream destination = null;
LogVerificationInputStream verifyStr... | public class class_name {
private void verifiedCopyFile(File sourceFile, File destFile) throws IOException {
if(!destFile.exists()) {
destFile.createNewFile();
}
FileInputStream source = null;
FileOutputStream destination = null;
LogVerificationInputStream verifyStr... |
public class class_name {
static GVRPickedObject makeObjectHit(long colliderPointer, int collidableIndex, float distance, float hitx, float hity, float hitz)
{
GVRCollider collider = GVRCollider.lookup(colliderPointer);
if (collider == null)
{
Log.d("GVRBoundsPicker", "makeObjec... | public class class_name {
static GVRPickedObject makeObjectHit(long colliderPointer, int collidableIndex, float distance, float hitx, float hity, float hitz)
{
GVRCollider collider = GVRCollider.lookup(colliderPointer);
if (collider == null)
{
Log.d("GVRBoundsPicker", "makeObjec... |
public class class_name {
@Override
public void gbmv(char order, char TransA, int KL, int KU, double alpha, INDArray A, INDArray X, double beta,
INDArray Y) {
if (Nd4j.getExecutioner().getProfilingMode() == OpExecutioner.ProfilingMode.ALL)
OpProfiler.getInstance().processBla... | public class class_name {
@Override
public void gbmv(char order, char TransA, int KL, int KU, double alpha, INDArray A, INDArray X, double beta,
INDArray Y) {
if (Nd4j.getExecutioner().getProfilingMode() == OpExecutioner.ProfilingMode.ALL)
OpProfiler.getInstance().processBla... |
public class class_name {
private void calculateMinimapAreaBounds() {
if (minimapBounds == null) {
return;
}
if (zoom == 1f) {
miniMapRequired = false;
} else {
// Calculates the bounds of the current displayed area
float x = (-c... | public class class_name {
private void calculateMinimapAreaBounds() {
if (minimapBounds == null) {
return;
// depends on control dependency: [if], data = [none]
}
if (zoom == 1f) {
miniMapRequired = false;
// depends on control dependency: [if], data = [none]
... |
public class class_name {
public void marshall(Service service, ProtocolMarshaller protocolMarshaller) {
if (service == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(service.getServiceCode(), SERVI... | public class class_name {
public void marshall(Service service, ProtocolMarshaller protocolMarshaller) {
if (service == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(service.getServiceCode(), SERVI... |
public class class_name {
private void doGribIndex(Formatter f, MCollection dcm, boolean eachFile) throws IOException {
Counters counters = new Counters();
// must open collection again without gbx filtering
try (MCollection dcm2 = getCollectionUnfiltered(spec, f)) {
for (MFile mfile : dcm2.getFile... | public class class_name {
private void doGribIndex(Formatter f, MCollection dcm, boolean eachFile) throws IOException {
Counters counters = new Counters();
// must open collection again without gbx filtering
try (MCollection dcm2 = getCollectionUnfiltered(spec, f)) {
for (MFile mfile : dcm2.getFile... |
public class class_name {
private static Collection<String> getFromAppliesTo(final Asset asset, final AppliesToFilterGetter getter) {
Collection<AppliesToFilterInfo> atfis = asset.getWlpInformation().getAppliesToFilterInfo();
Collection<String> ret = new ArrayList<String>();
if (atfis != null) ... | public class class_name {
private static Collection<String> getFromAppliesTo(final Asset asset, final AppliesToFilterGetter getter) {
Collection<AppliesToFilterInfo> atfis = asset.getWlpInformation().getAppliesToFilterInfo();
Collection<String> ret = new ArrayList<String>();
if (atfis != null) ... |
public class class_name {
public void setWaveform(WaveformDetail waveform, TrackMetadata metadata, BeatGrid beatGrid) {
this.waveform.set(waveform);
if (metadata != null) {
cueList.set(metadata.getCueList());
} else {
cueList.set(null);
}
this.beatGrid.se... | public class class_name {
public void setWaveform(WaveformDetail waveform, TrackMetadata metadata, BeatGrid beatGrid) {
this.waveform.set(waveform);
if (metadata != null) {
cueList.set(metadata.getCueList()); // depends on control dependency: [if], data = [(metadata]
} else {
... |
public class class_name {
private void iterateGroupNodes(long groupdId, NodeReader nodeReader)
{
// while the index can be a long, the value is always an int
int currentPointer = (int) headPointers.get(groupdId);
checkArgument(currentPointer != NULL, "valid group must have non-null head poi... | public class class_name {
private void iterateGroupNodes(long groupdId, NodeReader nodeReader)
{
// while the index can be a long, the value is always an int
int currentPointer = (int) headPointers.get(groupdId);
checkArgument(currentPointer != NULL, "valid group must have non-null head poi... |
public class class_name {
public static boolean isKindOf(Type t, Type... typesToMatch) throws IllegalArgumentException
{
Params.notNullOrEmpty(typesToMatch, "Types to match");
for(Type typeToMatch : typesToMatch) {
if(isKindOf(t, typeToMatch)) {
return true;
}
}
return fal... | public class class_name {
public static boolean isKindOf(Type t, Type... typesToMatch) throws IllegalArgumentException
{
Params.notNullOrEmpty(typesToMatch, "Types to match");
for(Type typeToMatch : typesToMatch) {
if(isKindOf(t, typeToMatch)) {
return true;
// depends on control dependen... |
public class class_name {
public OperableTrigger build() {
// if (scheduleBuilder == null) {
// scheduleBuilder = SimpleScheduleBuilder.simpleScheduleBuilder();
// }
// get a trigger impl. but without the meta data filled in yet
// OperableTrigger operableTrigger = operableTrigger;
... | public class class_name {
public OperableTrigger build() {
// if (scheduleBuilder == null) {
// scheduleBuilder = SimpleScheduleBuilder.simpleScheduleBuilder();
// }
// get a trigger impl. but without the meta data filled in yet
// OperableTrigger operableTrigger = operableTrigger;
... |
public class class_name {
private void init(final Map<DistributedDataSetPartition, InputSplit[]> splitsPerPartition) {
final Pair<InputSplit[], DistributedDataSetPartition[]>
splitsAndPartitions = getSplitsAndPartitions(splitsPerPartition);
final InputSplit[] splits = spli... | public class class_name {
private void init(final Map<DistributedDataSetPartition, InputSplit[]> splitsPerPartition) {
final Pair<InputSplit[], DistributedDataSetPartition[]>
splitsAndPartitions = getSplitsAndPartitions(splitsPerPartition);
final InputSplit[] splits = spli... |
public class class_name {
public BigInteger getPrivKey() {
if (privKey == null) {
throw new MissingPrivateKeyException();
} else if (privKey instanceof BCECPrivateKey) {
return ((BCECPrivateKey) privKey).getD();
} else {
throw new MissingPrivateKeyException()... | public class class_name {
public BigInteger getPrivKey() {
if (privKey == null) {
throw new MissingPrivateKeyException();
} else if (privKey instanceof BCECPrivateKey) {
return ((BCECPrivateKey) privKey).getD(); // depends on control dependency: [if], data = [none]
} els... |
public class class_name {
public byte[] toByteArray() {
ByteArrayOutputStream outputStream = new ByteArrayOutputStream(32);
outputStream.write(commandByte);
if (serialize(outputStream)) {
return outputStream.toByteArray();
}
return null;
} } | public class class_name {
public byte[] toByteArray() {
ByteArrayOutputStream outputStream = new ByteArrayOutputStream(32);
outputStream.write(commandByte);
if (serialize(outputStream)) {
return outputStream.toByteArray(); // depends on control dependency: [if], data = [none]
... |
public class class_name {
protected String guessDefaultLanguage(File file, Collection<File> xwikiXmlFiles)
{
String fileName = file.getName();
// Note that we need to check for content pages before technical pages because some pages are both content
// pages (Translation pages for example)... | public class class_name {
protected String guessDefaultLanguage(File file, Collection<File> xwikiXmlFiles)
{
String fileName = file.getName();
// Note that we need to check for content pages before technical pages because some pages are both content
// pages (Translation pages for example)... |
public class class_name {
public int findCellX(int x)
{
int ofs = abspos.getX1();
for (int i = 0; i < cols.length; i++)
{
ofs += cols[i];
if (x < ofs)
return i;
}
return -1;
} } | public class class_name {
public int findCellX(int x)
{
int ofs = abspos.getX1();
for (int i = 0; i < cols.length; i++)
{
ofs += cols[i]; // depends on control dependency: [for], data = [i]
if (x < ofs)
return i;
}
return -1;
} } |
public class class_name {
public static <T> T fromJSON(final Class<T> targetClass, final String json) {
if (targetClass.equals(Bson.class) || targetClass.equals(Document.class)) {
final Document doc = new Document();
jsonParser.readString(doc, json);
return (T) doc;
... | public class class_name {
public static <T> T fromJSON(final Class<T> targetClass, final String json) {
if (targetClass.equals(Bson.class) || targetClass.equals(Document.class)) {
final Document doc = new Document();
jsonParser.readString(doc, json);
// depends on control dependency... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.