code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
public static void sortByQualityValue(List<MediaType> mediaTypes) {
checkNotNull(mediaTypes, "'mediaTypes' must not be null");
if (mediaTypes.size() > 1) {
Collections.sort(mediaTypes, QUALITY_VALUE_COMPARATOR);
}
} } | public class class_name {
public static void sortByQualityValue(List<MediaType> mediaTypes) {
checkNotNull(mediaTypes, "'mediaTypes' must not be null");
if (mediaTypes.size() > 1) {
Collections.sort(mediaTypes, QUALITY_VALUE_COMPARATOR); // depends on control dependency: [if], data = [none]... |
public class class_name {
public FacesConfigFlowDefinitionFacesMethodCallType<FacesConfigFlowDefinitionType<T>> getOrCreateMethodCall()
{
List<Node> nodeList = childNode.get("method-call");
if (nodeList != null && nodeList.size() > 0)
{
return new FacesConfigFlowDefinitionFacesMethodCall... | public class class_name {
public FacesConfigFlowDefinitionFacesMethodCallType<FacesConfigFlowDefinitionType<T>> getOrCreateMethodCall()
{
List<Node> nodeList = childNode.get("method-call");
if (nodeList != null && nodeList.size() > 0)
{
return new FacesConfigFlowDefinitionFacesMethodCall... |
public class class_name {
private static List<HostAddress> sortSRVRecords(List<SRVRecord> records) {
// RFC 2782, Usage rules: "If there is precisely one SRV RR, and its Target is "."
// (the root domain), abort."
if (records.size() == 1 && records.get(0).getFQDN().isRootLabel())
re... | public class class_name {
private static List<HostAddress> sortSRVRecords(List<SRVRecord> records) {
// RFC 2782, Usage rules: "If there is precisely one SRV RR, and its Target is "."
// (the root domain), abort."
if (records.size() == 1 && records.get(0).getFQDN().isRootLabel())
re... |
public class class_name {
@Override
public void onPositiveButtonClicked(int requestCode) {
if (requestCode == REQUEST_SIMPLE_DIALOG) {
Toast.makeText(c, "Positive button clicked", Toast.LENGTH_SHORT).show();
}
} } | public class class_name {
@Override
public void onPositiveButtonClicked(int requestCode) {
if (requestCode == REQUEST_SIMPLE_DIALOG) {
Toast.makeText(c, "Positive button clicked", Toast.LENGTH_SHORT).show(); // depends on control dependency: [if], data = [none]
}
} } |
public class class_name {
private static void pushOp(String operation, Stack<MetricExpression> expressions, Stack<String> operations) {
if (operation.equals("(")) {
operations.push(operation);
return;
}
if (operation.equals(")")) {
while (!operations.... | public class class_name {
private static void pushOp(String operation, Stack<MetricExpression> expressions, Stack<String> operations) {
if (operation.equals("(")) {
operations.push(operation);
// depends on control dependency: [if], data = [none]
return;
// depends on control depend... |
public class class_name {
public DescribeOptionGroupOptionsResult withOptionGroupOptions(OptionGroupOption... optionGroupOptions) {
if (this.optionGroupOptions == null) {
setOptionGroupOptions(new com.amazonaws.internal.SdkInternalList<OptionGroupOption>(optionGroupOptions.length));
}
... | public class class_name {
public DescribeOptionGroupOptionsResult withOptionGroupOptions(OptionGroupOption... optionGroupOptions) {
if (this.optionGroupOptions == null) {
setOptionGroupOptions(new com.amazonaws.internal.SdkInternalList<OptionGroupOption>(optionGroupOptions.length)); // depends on c... |
public class class_name {
protected static void dumpInstance (
PrintStream out, Object object, boolean includeToString, String indent)
{
// summarize the current object
summarizeObject(out, object, includeToString, indent);
// increment the indentation level
indent += " ";
... | public class class_name {
protected static void dumpInstance (
PrintStream out, Object object, boolean includeToString, String indent)
{
// summarize the current object
summarizeObject(out, object, includeToString, indent);
// increment the indentation level
indent += " ";
... |
public class class_name {
protected void invoke (Connection connection, Object target, InvokeMethod invokeMethod) {
if (DEBUG) {
String argString = "";
if (invokeMethod.args != null) {
argString = Arrays.deepToString(invokeMethod.args);
argString = argString.substring(1, argString.length() - 1);
}
... | public class class_name {
protected void invoke (Connection connection, Object target, InvokeMethod invokeMethod) {
if (DEBUG) {
String argString = "";
if (invokeMethod.args != null) {
argString = Arrays.deepToString(invokeMethod.args); // depends on control dependency: [if], data = [(invokeMethod.args]
... |
public class class_name {
String eglErrorToString(int errorCode) {
if (errorCode >= 0x3000 && errorCode < 0x3020) {
for (Field field : EGL.class.getFields()) {
try {
if (field.getName().startsWith("EGL_")
&& field.getType() == Integer.... | public class class_name {
String eglErrorToString(int errorCode) {
if (errorCode >= 0x3000 && errorCode < 0x3020) {
for (Field field : EGL.class.getFields()) {
try {
if (field.getName().startsWith("EGL_")
&& field.getType() == Integer.... |
public class class_name {
public byte[] getEncodedPKCS7(byte secondDigest[], Calendar signingTime, TSAClient tsaClient, byte[] ocsp) {
try {
if (externalDigest != null) {
digest = externalDigest;
if (RSAdata != null)
RSAdata = externalRSAdata;
... | public class class_name {
public byte[] getEncodedPKCS7(byte secondDigest[], Calendar signingTime, TSAClient tsaClient, byte[] ocsp) {
try {
if (externalDigest != null) {
digest = externalDigest; // depends on control dependency: [if], data = [none]
if (RSAdata != nu... |
public class class_name {
protected void onMessage(final ODistributedRequest iRequest) {
String senderNodeName = null;
for (int retry = 0; retry < 10; retry++) {
senderNodeName = manager.getNodeNameById(iRequest.getId().getNodeId());
if (senderNodeName != null)
break;
try {
T... | public class class_name {
protected void onMessage(final ODistributedRequest iRequest) {
String senderNodeName = null;
for (int retry = 0; retry < 10; retry++) {
senderNodeName = manager.getNodeNameById(iRequest.getId().getNodeId()); // depends on control dependency: [for], data = [none]
if (sender... |
public class class_name {
void removeInternal(Node<K, V> node, boolean unlink) {
if (unlink) {
node.prev.next = node.next;
node.next.prev = node.prev;
}
Node<K, V> left = node.left;
Node<K, V> right = node.right;
Node<K, V> originalParent = node.parent;
if (left != null && right !=... | public class class_name {
void removeInternal(Node<K, V> node, boolean unlink) {
if (unlink) {
node.prev.next = node.next; // depends on control dependency: [if], data = [none]
node.next.prev = node.prev; // depends on control dependency: [if], data = [none]
}
Node<K, V> left = node.left;
... |
public class class_name {
@Override
public CommerceShipment fetchByPrimaryKey(Serializable primaryKey) {
Serializable serializable = entityCache.getResult(CommerceShipmentModelImpl.ENTITY_CACHE_ENABLED,
CommerceShipmentImpl.class, primaryKey);
if (serializable == nullModel) {
return null;
}
CommerceS... | public class class_name {
@Override
public CommerceShipment fetchByPrimaryKey(Serializable primaryKey) {
Serializable serializable = entityCache.getResult(CommerceShipmentModelImpl.ENTITY_CACHE_ENABLED,
CommerceShipmentImpl.class, primaryKey);
if (serializable == nullModel) {
return null; // depends on co... |
public class class_name {
private FieldDoc[] fields(boolean filter, boolean enumConstants) {
List<FieldDocImpl> fields = List.nil();
for (Symbol sym : tsym.members().getSymbols(NON_RECURSIVE)) {
if (sym != null && sym.kind == VAR) {
VarSymbol s = (VarSymbol)sym;
... | public class class_name {
private FieldDoc[] fields(boolean filter, boolean enumConstants) {
List<FieldDocImpl> fields = List.nil();
for (Symbol sym : tsym.members().getSymbols(NON_RECURSIVE)) {
if (sym != null && sym.kind == VAR) {
VarSymbol s = (VarSymbol)sym;
... |
public class class_name {
private String generateAbbreviatedExceptionMessage(final Throwable throwable) {
final StringBuilder builder = new StringBuilder();
builder.append(": ");
builder.append(throwable.getClass().getCanonicalName());
builder.append(": ");
builder.append(throwable.getMessage());
Throwab... | public class class_name {
private String generateAbbreviatedExceptionMessage(final Throwable throwable) {
final StringBuilder builder = new StringBuilder();
builder.append(": ");
builder.append(throwable.getClass().getCanonicalName());
builder.append(": ");
builder.append(throwable.getMessage());
Throwab... |
public class class_name {
@SuppressWarnings("unused")
public boolean isInRestoreState(View view) {
//noinspection SimplifiableIfStatement
if (mViewState != null) {
return mViewState.isInRestoreState(view);
}
return false;
} } | public class class_name {
@SuppressWarnings("unused")
public boolean isInRestoreState(View view) {
//noinspection SimplifiableIfStatement
if (mViewState != null) {
return mViewState.isInRestoreState(view); // depends on control dependency: [if], data = [none]
}
return false;
} } |
public class class_name {
protected final Vertex addIntent(final E proposed, Vertex generator) {
generator = supremum(proposed, generator);
if (filter(generator, proposed) && filter(proposed, generator)) {
return generator;
}
List parents = new ArrayList<>();
... | public class class_name {
protected final Vertex addIntent(final E proposed, Vertex generator) {
generator = supremum(proposed, generator);
if (filter(generator, proposed) && filter(proposed, generator)) {
return generator; // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
static final int match(String text, int pos, String str) {
for (int i = 0; i < str.length() && pos >= 0;) {
int ch = UTF16.charAt(str, i);
i += UTF16.getCharCount(ch);
if (isBidiMark(ch)) {
continue;
}
pos = m... | public class class_name {
static final int match(String text, int pos, String str) {
for (int i = 0; i < str.length() && pos >= 0;) {
int ch = UTF16.charAt(str, i);
i += UTF16.getCharCount(ch); // depends on control dependency: [for], data = [i]
if (isBidiMark(ch)) {
... |
public class class_name {
private ManagementVertex getCandidateVertex(final TraversalEntry te, final boolean forward) {
if (forward) {
while (true) {
if (this.confinedToStage && te.getCurrentChannel() == 0) {
while (currentGateLeadsToOtherStage(te, this.forward)) {
te.increaseCurrentGate();
... | public class class_name {
private ManagementVertex getCandidateVertex(final TraversalEntry te, final boolean forward) {
if (forward) {
while (true) {
if (this.confinedToStage && te.getCurrentChannel() == 0) {
while (currentGateLeadsToOtherStage(te, this.forward)) {
te.increaseCurrentGate(); // d... |
public class class_name {
private boolean isSSLRequired(HttpConstraintElement httpConstraint) {
boolean sslRequired = false;
TransportGuarantee transportGuarantee = httpConstraint.getTransportGuarantee();
if (transportGuarantee != TransportGuarantee.NONE) {
sslRequired = true;
... | public class class_name {
private boolean isSSLRequired(HttpConstraintElement httpConstraint) {
boolean sslRequired = false;
TransportGuarantee transportGuarantee = httpConstraint.getTransportGuarantee();
if (transportGuarantee != TransportGuarantee.NONE) {
sslRequired = true; // de... |
public class class_name {
public void marshall(MessageConfiguration messageConfiguration, ProtocolMarshaller protocolMarshaller) {
if (messageConfiguration == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.m... | public class class_name {
public void marshall(MessageConfiguration messageConfiguration, ProtocolMarshaller protocolMarshaller) {
if (messageConfiguration == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.m... |
public class class_name {
private int scale(SynthContext context, int size) {
if (context == null || context.getComponent() == null) {
return size;
}
// The key "JComponent.sizeVariant" is used to match Apple's LAF
String scaleKey = SeaGlassStyle.getSizeVariant(context.getC... | public class class_name {
private int scale(SynthContext context, int size) {
if (context == null || context.getComponent() == null) {
return size; // depends on control dependency: [if], data = [none]
}
// The key "JComponent.sizeVariant" is used to match Apple's LAF
Strin... |
public class class_name {
public static void runExample(AdManagerServices adManagerServices, AdManagerSession session)
throws RemoteException {
// Get the OrderService.
OrderServiceInterface orderService =
adManagerServices.get(session, OrderServiceInterface.class);
// Create a statement to ... | public class class_name {
public static void runExample(AdManagerServices adManagerServices, AdManagerSession session)
throws RemoteException {
// Get the OrderService.
OrderServiceInterface orderService =
adManagerServices.get(session, OrderServiceInterface.class);
// Create a statement to ... |
public class class_name {
@Override
public File call() throws Exception {
try {
latch.await();
if (isTimeoutEnabled()) {
timedExecutor.schedule(new Runnable() {
public void run() {
try {
if (abo... | public class class_name {
@Override
public File call() throws Exception {
try {
latch.await();
if (isTimeoutEnabled()) {
timedExecutor.schedule(new Runnable() {
public void run() {
try {
if (abo... |
public class class_name {
int binarySearch(int fromIndex, int toIndex, long key, long value) {
if (ind.isUnique()) {
return binarySearchUnique(fromIndex, toIndex, key);
}
return binarySearchNonUnique(fromIndex, toIndex, key, value);
} } | public class class_name {
int binarySearch(int fromIndex, int toIndex, long key, long value) {
if (ind.isUnique()) {
return binarySearchUnique(fromIndex, toIndex, key); // depends on control dependency: [if], data = [none]
}
return binarySearchNonUnique(fromIndex, toIndex, key, value);
} } |
public class class_name {
public LoginConfigType<WebAppDescriptor> getOrCreateLoginConfig()
{
List<Node> nodeList = model.get("login-config");
if (nodeList != null && nodeList.size() > 0)
{
return new LoginConfigTypeImpl<WebAppDescriptor>(this, "login-config", model, nodeList.get(0));
... | public class class_name {
public LoginConfigType<WebAppDescriptor> getOrCreateLoginConfig()
{
List<Node> nodeList = model.get("login-config");
if (nodeList != null && nodeList.size() > 0)
{
return new LoginConfigTypeImpl<WebAppDescriptor>(this, "login-config", model, nodeList.get(0)); //... |
public class class_name {
@Override
public void sawOpcode(int seen) {
try {
stack.precomputation(this);
if (OpcodeUtils.isStandardInvoke(seen)) {
String clsName = getClassConstantOperand();
if (!safeClasses.contains(clsName)) {
t... | public class class_name {
@Override
public void sawOpcode(int seen) {
try {
stack.precomputation(this); // depends on control dependency: [try], data = [none]
if (OpcodeUtils.isStandardInvoke(seen)) {
String clsName = getClassConstantOperand();
if (... |
public class class_name {
public double cur(Element elem, String prop, boolean force) {
if (JsUtils.isWindow(elem)) {
if ("width".equals(prop)) {
return getContentDocument(elem).getClientWidth();
}
if ("height".equals(prop)) {
return getContentDocument(elem).getClientHeight();
... | public class class_name {
public double cur(Element elem, String prop, boolean force) {
if (JsUtils.isWindow(elem)) {
if ("width".equals(prop)) {
return getContentDocument(elem).getClientWidth(); // depends on control dependency: [if], data = [none]
}
if ("height".equals(prop)) {
... |
public class class_name {
public Association getAssociation() {
if ( association == null ) {
AssociationKey key = getAssociationKey();
if ( hostingEntity != null ) {
OgmEntityEntryState entryState = OgmEntityEntryState.getStateFor( session, hostingEntity );
if ( entryState.hasAssociation( associationK... | public class class_name {
public Association getAssociation() {
if ( association == null ) {
AssociationKey key = getAssociationKey();
if ( hostingEntity != null ) {
OgmEntityEntryState entryState = OgmEntityEntryState.getStateFor( session, hostingEntity );
if ( entryState.hasAssociation( associationK... |
public class class_name {
public void marshall(CompliantSummary compliantSummary, ProtocolMarshaller protocolMarshaller) {
if (compliantSummary == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(comp... | public class class_name {
public void marshall(CompliantSummary compliantSummary, ProtocolMarshaller protocolMarshaller) {
if (compliantSummary == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(comp... |
public class class_name {
public static Logger getLogger( String name )
{
PaxLogger paxLogger;
if( m_paxLogging == null )
{
paxLogger = FallbackLogFactory.createFallbackLog( null, name );
}
else
{
paxLogger = m_paxLogging.getLogger( name, LOG4... | public class class_name {
public static Logger getLogger( String name )
{
PaxLogger paxLogger;
if( m_paxLogging == null )
{
paxLogger = FallbackLogFactory.createFallbackLog( null, name ); // depends on control dependency: [if], data = [none]
}
else
{
... |
public class class_name {
public static Object getProperty(Object bean, List<String> propertyPath) {
Object current = bean;
for (String propertyName : propertyPath) {
if (current == null) {
return null;
}
if (current instanceof Iterable) {
// follow multi-valued property
List<Object> result = ... | public class class_name {
public static Object getProperty(Object bean, List<String> propertyPath) {
Object current = bean;
for (String propertyName : propertyPath) {
if (current == null) {
return null; // depends on control dependency: [if], data = [none]
}
if (current instanceof Iterable) {
// f... |
public class class_name {
private ThriftRow constructIndexTableThriftRow(String columnFamily, String embeddedFieldName, Object obj,
Attribute column, byte[] rowKey, String ecValue)
{
// Column Name
Field columnField = (Field) column.getJavaMember();
byte[] indexColumnName = Prop... | public class class_name {
private ThriftRow constructIndexTableThriftRow(String columnFamily, String embeddedFieldName, Object obj,
Attribute column, byte[] rowKey, String ecValue)
{
// Column Name
Field columnField = (Field) column.getJavaMember();
byte[] indexColumnName = Prop... |
public class class_name {
public void add(Container container, boolean addRelationships) {
if (container != null && !container.equals(getContainer())) {
addElement(container, addRelationships);
}
} } | public class class_name {
public void add(Container container, boolean addRelationships) {
if (container != null && !container.equals(getContainer())) {
addElement(container, addRelationships); // depends on control dependency: [if], data = [(container]
}
} } |
public class class_name {
private Mode lookupCreateMode(String name) {
if (name == null)
return null;
name = name.trim();
Mode mode = (Mode)modeMap.get(name);
if (mode == null) {
mode = new Mode(name, defaultBaseMode);
modeMap.put(name, mode);
}
return mode;
} } | public class class_name {
private Mode lookupCreateMode(String name) {
if (name == null)
return null;
name = name.trim();
Mode mode = (Mode)modeMap.get(name);
if (mode == null) {
mode = new Mode(name, defaultBaseMode); // depends on control dependency: [if], data = [none]
modeMap.put(... |
public class class_name {
private static void tred(DenseMatrix V, double[] d, double[] e) {
int n = V.nrows();
for (int i = 0; i < n; i++) {
d[i] = V.get(n - 1, i);
}
// Householder reduction to tridiagonal form.
for (int i = n - 1; i > 0; i--) {
// Sca... | public class class_name {
private static void tred(DenseMatrix V, double[] d, double[] e) {
int n = V.nrows();
for (int i = 0; i < n; i++) {
d[i] = V.get(n - 1, i); // depends on control dependency: [for], data = [i]
}
// Householder reduction to tridiagonal form.
f... |
public class class_name {
public void run(){
while(true){
String cmd = null;
try {
cmd = commandQueue.take();
} catch (InterruptedException e) {
continue;
}
if ("exit".equals(cmd)){
log.info("CamelContextController for '" + context.getName() + "' received '" + cmd + "' command.");... | public class class_name {
public void run(){
while(true){
String cmd = null;
try {
cmd = commandQueue.take();
// depends on control dependency: [try], data = [none]
} catch (InterruptedException e) {
continue;
}
// depends on control dependency: [catch], data = [none]
if ("exit".equals... |
public class class_name {
@Override
public Map<String, Object> getPropertiesForUpdate() {
if (!readOnly && membersModified) {
modifiedMap.put(MEMBERS_FIELD, StringUtils.join(members, ';'));
}
Map<String, Object> propertiesForUpdate = super.getPropertiesForUpdate();
retur... | public class class_name {
@Override
public Map<String, Object> getPropertiesForUpdate() {
if (!readOnly && membersModified) {
modifiedMap.put(MEMBERS_FIELD, StringUtils.join(members, ';')); // depends on control dependency: [if], data = [none]
}
Map<String, Object> propertiesFor... |
public class class_name {
@Override
public EEnum getIfcValveTypeEnum() {
if (ifcValveTypeEnumEEnum == null) {
ifcValveTypeEnumEEnum = (EEnum) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI)
.getEClassifiers().get(1097);
}
return ifcValveTypeEnumEEnum;
} } | public class class_name {
@Override
public EEnum getIfcValveTypeEnum() {
if (ifcValveTypeEnumEEnum == null) {
ifcValveTypeEnumEEnum = (EEnum) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI)
.getEClassifiers().get(1097);
// depends on control dependency: [if], data = [none]
}
return ifc... |
public class class_name {
public List<TaxonomyTerm> selectPostTerms(final long postId, final String taxonomy) throws SQLException {
Connection conn = null;
PreparedStatement stmt = null;
ResultSet rs = null;
List<Long> termIds = Lists.newArrayListWithExpectedSize(8);
Timer.Context ctx = m... | public class class_name {
public List<TaxonomyTerm> selectPostTerms(final long postId, final String taxonomy) throws SQLException {
Connection conn = null;
PreparedStatement stmt = null;
ResultSet rs = null;
List<Long> termIds = Lists.newArrayListWithExpectedSize(8);
Timer.Context ctx = m... |
public class class_name {
private Segment currentSegment() {
Segment segment = segments.currentSegment();
if (segment.isFull()) {
segments.currentSegment().flush();
segment = segments.nextSegment();
}
return segment;
} } | public class class_name {
private Segment currentSegment() {
Segment segment = segments.currentSegment();
if (segment.isFull()) {
segments.currentSegment().flush(); // depends on control dependency: [if], data = [none]
segment = segments.nextSegment(); // depends on control dependency: [if], data =... |
public class class_name {
final void put(final ByteVector out) {
final int FACTOR = ClassWriter.TO_ACC_SYNTHETIC;
int mask = ACC_CONSTRUCTOR | Opcodes.ACC_DEPRECATED
| ClassWriter.ACC_SYNTHETIC_ATTRIBUTE
| ((access & ClassWriter.ACC_SYNTHETIC_ATTRIBUTE) / FACTOR);
... | public class class_name {
final void put(final ByteVector out) {
final int FACTOR = ClassWriter.TO_ACC_SYNTHETIC;
int mask = ACC_CONSTRUCTOR | Opcodes.ACC_DEPRECATED
| ClassWriter.ACC_SYNTHETIC_ATTRIBUTE
| ((access & ClassWriter.ACC_SYNTHETIC_ATTRIBUTE) / FACTOR);
... |
public class class_name {
@Deprecated
public static int indexOf(CharSequence s, int codePoint) {
int cp;
for (int i = 0; i < s.length(); i += Character.charCount(cp)) {
cp = Character.codePointAt(s, i);
if (cp == codePoint) {
return i;
}
}... | public class class_name {
@Deprecated
public static int indexOf(CharSequence s, int codePoint) {
int cp;
for (int i = 0; i < s.length(); i += Character.charCount(cp)) {
cp = Character.codePointAt(s, i); // depends on control dependency: [for], data = [i]
if (cp == codePoint)... |
public class class_name {
public void putAll(Map<? extends K, ? extends V> map) {
int mapSize = map.size();
if (mapSize == 0) {
return;
}
int newSize = (int) ((size + mapSize) / loadFactor + 1);
ensureCapacity(calculateNewCapacity(newSize));
// Have to cast h... | public class class_name {
public void putAll(Map<? extends K, ? extends V> map) {
int mapSize = map.size();
if (mapSize == 0) {
return; // depends on control dependency: [if], data = [none]
}
int newSize = (int) ((size + mapSize) / loadFactor + 1);
ensureCapacity(cal... |
public class class_name {
private List<Entry> removeValues( Collection<?> values,
boolean ifMatch ) {
LinkedList<Entry> results = null;
// Record the list of entries that are removed, but start at the end of the values (so the indexes are correct)
ListIter... | public class class_name {
private List<Entry> removeValues( Collection<?> values,
boolean ifMatch ) {
LinkedList<Entry> results = null;
// Record the list of entries that are removed, but start at the end of the values (so the indexes are correct)
ListIter... |
public class class_name {
public void put(ElementType x) {
if (full()) {
getIdx = (getIdx + 1) % elements.length;
} else {
size++;
}
elements[putIdx] = x;
putIdx = (putIdx + 1) % elements.length;
} } | public class class_name {
public void put(ElementType x) {
if (full()) {
getIdx = (getIdx + 1) % elements.length; // depends on control dependency: [if], data = [none]
} else {
size++; // depends on control dependency: [if], data = [none]
}
elements[putIdx] = x;... |
public class class_name {
public String createToken(Map<String, Object> data, TokenOptions options) {
if ((data == null || data.size() == 0) && (options == null || (!options.isAdmin() && !options.isDebug()))) {
throw new IllegalArgumentException("TokenGenerator.createToken: data is empty and no opt... | public class class_name {
public String createToken(Map<String, Object> data, TokenOptions options) {
if ((data == null || data.size() == 0) && (options == null || (!options.isAdmin() && !options.isDebug()))) {
throw new IllegalArgumentException("TokenGenerator.createToken: data is empty and no opt... |
public class class_name {
private synchronized void checkTimeout(final long timeoutMs) {
final Entry<Integer, SendWork> oldest = m_outstandingWork.firstEntry();
if (oldest != null) {
final long now = System.currentTimeMillis();
SendWork work = oldest.getValue();
if (... | public class class_name {
private synchronized void checkTimeout(final long timeoutMs) {
final Entry<Integer, SendWork> oldest = m_outstandingWork.firstEntry();
if (oldest != null) {
final long now = System.currentTimeMillis();
SendWork work = oldest.getValue();
if (... |
public class class_name {
private void generateCommunity(final Metadata m, final Element e) {
if (m.getCommunity() == null) {
return;
}
final Element communityElement = new Element("community", NS);
if (m.getCommunity().getStarRating() != null) {
final Element st... | public class class_name {
private void generateCommunity(final Metadata m, final Element e) {
if (m.getCommunity() == null) {
return; // depends on control dependency: [if], data = [none]
}
final Element communityElement = new Element("community", NS);
if (m.getCommunity().g... |
public class class_name {
@Override
public Stream<List<T>> combinations() {
if (this instanceof ArrayStream) {
@SuppressWarnings("resource")
final ArrayStream<T> s = ((ArrayStream<T>) this);
final int count = s.toIndex - s.fromIndex;
return newStream(... | public class class_name {
@Override
public Stream<List<T>> combinations() {
if (this instanceof ArrayStream) {
@SuppressWarnings("resource")
final ArrayStream<T> s = ((ArrayStream<T>) this);
final int count = s.toIndex - s.fromIndex;
return newStream(... |
public class class_name {
private XmlElement generateSelectiveElement(IntrospectedTable introspectedTable) {
XmlElement chooseEle = new XmlElement("choose");
XmlElement whenEle = new XmlElement("when");
whenEle.addAttribute(new Attribute("test", "selective != null and selective.length > 0"));
... | public class class_name {
private XmlElement generateSelectiveElement(IntrospectedTable introspectedTable) {
XmlElement chooseEle = new XmlElement("choose");
XmlElement whenEle = new XmlElement("when");
whenEle.addAttribute(new Attribute("test", "selective != null and selective.length > 0"));
... |
public class class_name {
public void validate(Context context, Date asOfDateTime, DOReader currentObjectReader,
Validation validation) throws ServerException {
OWLOntologyManager owlManager = OWLManager.createOWLOntologyManager();
List<String> contentmodels = currentObjectR... | public class class_name {
public void validate(Context context, Date asOfDateTime, DOReader currentObjectReader,
Validation validation) throws ServerException {
OWLOntologyManager owlManager = OWLManager.createOWLOntologyManager();
List<String> contentmodels = currentObjectR... |
public class class_name {
private static int arrayMemberHash(final Class<?> componentType, final Object o) {
if (componentType.equals(Byte.TYPE)) {
return Arrays.hashCode((byte[]) o);
}
if (componentType.equals(Short.TYPE)) {
return Arrays.hashCode((short[]) o);
... | public class class_name {
private static int arrayMemberHash(final Class<?> componentType, final Object o) {
if (componentType.equals(Byte.TYPE)) {
return Arrays.hashCode((byte[]) o); // depends on control dependency: [if], data = [none]
}
if (componentType.equals(Short.TYPE)) {
... |
public class class_name {
public String getXML()
{
if (m_message != null)
{
BaseMessage message = m_message.getMessage();
return message.getXML(false);
}
return super.getXML(); // Null
} } | public class class_name {
public String getXML()
{
if (m_message != null)
{
BaseMessage message = m_message.getMessage();
return message.getXML(false); // depends on control dependency: [if], data = [none]
}
return super.getXML(); // Null
} } |
public class class_name {
public void marshall(CreateCrawlerRequest createCrawlerRequest, ProtocolMarshaller protocolMarshaller) {
if (createCrawlerRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.m... | public class class_name {
public void marshall(CreateCrawlerRequest createCrawlerRequest, ProtocolMarshaller protocolMarshaller) {
if (createCrawlerRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.m... |
public class class_name {
private static List<File> findFilesInDirectory(File directory,
Pattern pattern, boolean scanRecursive) {
List<File> files = new ArrayList<File>();
String[] filesInDirectory = directory.list();
if (filesInDirectory == null) {
return files;
}
for (String fileToCheck : filesInDir... | public class class_name {
private static List<File> findFilesInDirectory(File directory,
Pattern pattern, boolean scanRecursive) {
List<File> files = new ArrayList<File>();
String[] filesInDirectory = directory.list();
if (filesInDirectory == null) {
return files; // depends on control dependency: [if], da... |
public class class_name {
public synchronized void removeContextAttribute(String name)
{
Object old= super.getContextAttribute(name);
super.removeContextAttribute(name);
if (old != null && _contextAttributeListeners != null)
{
ServletContextAttributeEvent event= new Ser... | public class class_name {
public synchronized void removeContextAttribute(String name)
{
Object old= super.getContextAttribute(name);
super.removeContextAttribute(name);
if (old != null && _contextAttributeListeners != null)
{
ServletContextAttributeEvent event= new Ser... |
public class class_name {
public void marshall(InviteMembersRequest inviteMembersRequest, ProtocolMarshaller protocolMarshaller) {
if (inviteMembersRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.m... | public class class_name {
public void marshall(InviteMembersRequest inviteMembersRequest, ProtocolMarshaller protocolMarshaller) {
if (inviteMembersRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.m... |
public class class_name {
public static SelectionSpec[] buildFullTraversal() {
List<TraversalSpec> tSpecs = buildFullTraversalV2NoFolder();
// Recurse through the folders
TraversalSpec visitFolders = createTraversalSpec("visitFolders",
"Folder", "childEntity",
new... | public class class_name {
public static SelectionSpec[] buildFullTraversal() {
List<TraversalSpec> tSpecs = buildFullTraversalV2NoFolder();
// Recurse through the folders
TraversalSpec visitFolders = createTraversalSpec("visitFolders",
"Folder", "childEntity",
new... |
public class class_name {
public void replaceOrAdd(String name, String value) {
boolean found = false;
for (Param param : params) {
if (param.getKey().equals(name)) {
param.setValue(value);
found = true;
break;
}
}
... | public class class_name {
public void replaceOrAdd(String name, String value) {
boolean found = false;
for (Param param : params) {
if (param.getKey().equals(name)) {
param.setValue(value); // depends on control dependency: [if], data = [none]
found = true; /... |
public class class_name {
public static String Replace(String aSrcStr, String aSearchStr, String aReplaceStr) {
if (aSrcStr == null || aSearchStr == null || aReplaceStr == null)
return aSrcStr;
if (aSearchStr.length() == 0
|| aSrcStr.length() == 0
|| aSrcStr.indexOf... | public class class_name {
public static String Replace(String aSrcStr, String aSearchStr, String aReplaceStr) {
if (aSrcStr == null || aSearchStr == null || aReplaceStr == null)
return aSrcStr;
if (aSearchStr.length() == 0
|| aSrcStr.length() == 0
|| aSrcStr.indexOf... |
public class class_name {
public synchronized EventBus once(Class<? extends EventObject> eventType, OnceEventListenerBase listener) {
if (null != onceBus) {
onceBus.bind(eventType, listener);
} else {
bind(eventType, listener);
}
return this;
} } | public class class_name {
public synchronized EventBus once(Class<? extends EventObject> eventType, OnceEventListenerBase listener) {
if (null != onceBus) {
onceBus.bind(eventType, listener); // depends on control dependency: [if], data = [none]
} else {
bind(eventType, listener... |
public class class_name {
static WebAppClassLoader createWebAppClassLoader(final ClassLoader cl, final WebAppContext wac)
{
return AccessController.doPrivileged(new PrivilegedAction<WebAppClassLoader>()
{
public WebAppClassLoader run()
{
try
{
re... | public class class_name {
static WebAppClassLoader createWebAppClassLoader(final ClassLoader cl, final WebAppContext wac)
{
return AccessController.doPrivileged(new PrivilegedAction<WebAppClassLoader>()
{
public WebAppClassLoader run()
{
try
{
re... |
public class class_name {
public void marshall(ExtendedKeyUsage extendedKeyUsage, ProtocolMarshaller protocolMarshaller) {
if (extendedKeyUsage == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(exte... | public class class_name {
public void marshall(ExtendedKeyUsage extendedKeyUsage, ProtocolMarshaller protocolMarshaller) {
if (extendedKeyUsage == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(exte... |
public class class_name {
double getBetheFreeEnergy() {
//
// G_{Bethe} = \sum_a \sum_{x_a} - b(x_a) ln \chi(x_a)
// + \sum_a \sum_{x_a} b(x_a) ln b(x_a)
// + \sum_i (n_i - 1) \sum_{x_i} b(x_i) ln b(x_i)
// = \sum_a \sum_{x_a} b(x_a) ln (b(x_... | public class class_name {
double getBetheFreeEnergy() {
//
// G_{Bethe} = \sum_a \sum_{x_a} - b(x_a) ln \chi(x_a)
// + \sum_a \sum_{x_a} b(x_a) ln b(x_a)
// + \sum_i (n_i - 1) \sum_{x_i} b(x_i) ln b(x_i)
// = \sum_a \sum_{x_a} b(x_a) ln (b(x_... |
public class class_name {
@Override public synchronized Long append(final String key, final String value) throws WrongTypeException {
checkType(key, "string");
if (!exists(key)) {
try {
set(key, value);
}
catch (Exception e) {
}
}
... | public class class_name {
@Override public synchronized Long append(final String key, final String value) throws WrongTypeException {
checkType(key, "string");
if (!exists(key)) {
try {
set(key, value); // depends on control dependency: [try], data = [none]
}
... |
public class class_name {
public void marshall(ListHapgsRequest listHapgsRequest, ProtocolMarshaller protocolMarshaller) {
if (listHapgsRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(list... | public class class_name {
public void marshall(ListHapgsRequest listHapgsRequest, ProtocolMarshaller protocolMarshaller) {
if (listHapgsRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(list... |
public class class_name {
public void addComponentListeners() {
// avoid duplicate registration
removeListeners();
for (final AbstractField<?> field : allComponents) {
if (field instanceof TextChangeNotifier) {
((TextChangeNotifier) field).addTextChangeListener(new ... | public class class_name {
public void addComponentListeners() {
// avoid duplicate registration
removeListeners();
for (final AbstractField<?> field : allComponents) {
if (field instanceof TextChangeNotifier) {
((TextChangeNotifier) field).addTextChangeListener(new ... |
public class class_name {
protected void injectValueIntoObject(final Object target, final PropertyDescriptor pd, final Object value) {
Object convertedValue = value;
if (value != null) {
Class targetClass = pd.getType();
convertedValue = convertType(value, targetClass);
}
try {
Setter setter = pd.g... | public class class_name {
protected void injectValueIntoObject(final Object target, final PropertyDescriptor pd, final Object value) {
Object convertedValue = value;
if (value != null) {
Class targetClass = pd.getType();
convertedValue = convertType(value, targetClass); // depends on control dependency: [i... |
public class class_name {
public static Recipient[] toRecipient(PhoneNumber[] to) {
Recipient[] addresses = new Recipient[to.length];
int i = 0;
for (PhoneNumber t : to) {
addresses[i++] = new Recipient(t);
}
return addresses;
} } | public class class_name {
public static Recipient[] toRecipient(PhoneNumber[] to) {
Recipient[] addresses = new Recipient[to.length];
int i = 0;
for (PhoneNumber t : to) {
addresses[i++] = new Recipient(t); // depends on control dependency: [for], data = [t]
}
return addresses;
} } |
public class class_name {
private Priority determinePriority(final Matcher matcher) {
if (isOfType(matcher, "note") || isOfType(matcher, "info")) {
return Priority.LOW;
}
else if (isOfType(matcher, "warning")) {
return Priority.NORMAL;
}
return Priority.H... | public class class_name {
private Priority determinePriority(final Matcher matcher) {
if (isOfType(matcher, "note") || isOfType(matcher, "info")) {
return Priority.LOW; // depends on control dependency: [if], data = [none]
}
else if (isOfType(matcher, "warning")) {
retur... |
public class class_name {
public static Anchor getAnchor(Properties attributes) {
Anchor anchor = new Anchor(getPhrase(attributes));
String value;
value = attributes.getProperty(ElementTags.NAME);
if (value != null) {
anchor.setName(value);
}
value = (String) attributes.remove(ElementTags.REFERENCE);
... | public class class_name {
public static Anchor getAnchor(Properties attributes) {
Anchor anchor = new Anchor(getPhrase(attributes));
String value;
value = attributes.getProperty(ElementTags.NAME);
if (value != null) {
anchor.setName(value); // depends on control dependency: [if], data = [(value]
}
value... |
public class class_name {
public static <T> T[] map(Class<T> c, Function<Long, T> f) {
@SuppressWarnings("unchecked")
T[] values = (T[]) Array.newInstance(c, BUCKET_VALUES.length);
for (int i = 0; i < BUCKET_VALUES.length; ++i) {
values[i] = f.apply(BUCKET_VALUES[i]);
}
return values;
} } | public class class_name {
public static <T> T[] map(Class<T> c, Function<Long, T> f) {
@SuppressWarnings("unchecked")
T[] values = (T[]) Array.newInstance(c, BUCKET_VALUES.length);
for (int i = 0; i < BUCKET_VALUES.length; ++i) {
values[i] = f.apply(BUCKET_VALUES[i]); // depends on control dependency... |
public class class_name {
private void unpackRules(byte[] rules)
{
startDay = rules[0];
startDayOfWeek = rules[1];
endDay = rules[2];
endDayOfWeek = rules[3];
// As of serial version 2, include time modes
if (rules.length >= 6) {
startTim... | public class class_name {
private void unpackRules(byte[] rules)
{
startDay = rules[0];
startDayOfWeek = rules[1];
endDay = rules[2];
endDayOfWeek = rules[3];
// As of serial version 2, include time modes
if (rules.length >= 6) {
startTim... |
public class class_name {
public void setVersions(java.util.Collection<String> versions) {
if (versions == null) {
this.versions = null;
return;
}
this.versions = new com.amazonaws.internal.SdkInternalList<String>(versions);
} } | public class class_name {
public void setVersions(java.util.Collection<String> versions) {
if (versions == null) {
this.versions = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
}
this.versions =... |
public class class_name {
@Override
public void add(int value) {
int key = toIntUnsigned(highbits(value));
if (key != currentKey) {
if (key < currentKey) {
underlying.add(value);
return;
} else {
appendToUnderlying();
currentKey = key;
}
}
int low = t... | public class class_name {
@Override
public void add(int value) {
int key = toIntUnsigned(highbits(value));
if (key != currentKey) {
if (key < currentKey) {
underlying.add(value); // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data =... |
public class class_name {
public void updateByteMetrics() {
try {
for (Optional<Fork> fork : this.forks.keySet()) {
if (fork.isPresent()) {
fork.get().updateByteMetrics();
}
}
} catch (IOException ioe) {
LOG.error("Failed to update byte-level metrics for task " + thi... | public class class_name {
public void updateByteMetrics() {
try {
for (Optional<Fork> fork : this.forks.keySet()) {
if (fork.isPresent()) {
fork.get().updateByteMetrics(); // depends on control dependency: [if], data = [none]
}
}
} catch (IOException ioe) {
LOG.error... |
public class class_name {
private void putRecursive(Class<?> type, E element, Class<?> elementType) {
Class<?> clazz = type;
while (clazz != null) {
if (isAccepted(clazz)) {
E existing = this.classMap.get(clazz);
boolean add = (existing == null);
if (existing != null) {
... | public class class_name {
private void putRecursive(Class<?> type, E element, Class<?> elementType) {
Class<?> clazz = type;
while (clazz != null) {
if (isAccepted(clazz)) {
E existing = this.classMap.get(clazz);
boolean add = (existing == null);
if (existing != null) {
... |
public class class_name {
public void marshall(DeleteInstanceRequest deleteInstanceRequest, ProtocolMarshaller protocolMarshaller) {
if (deleteInstanceRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshalle... | public class class_name {
public void marshall(DeleteInstanceRequest deleteInstanceRequest, ProtocolMarshaller protocolMarshaller) {
if (deleteInstanceRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshalle... |
public class class_name {
public Rectangle getBarcodeSize() {
float fontX = 0;
float fontY = 0;
String fCode = code;
if (extended)
fCode = getCode39Ex(code);
if (font != null) {
if (baseline > 0)
fontY = baseline - font.getFontDescriptor(B... | public class class_name {
public Rectangle getBarcodeSize() {
float fontX = 0;
float fontY = 0;
String fCode = code;
if (extended)
fCode = getCode39Ex(code);
if (font != null) {
if (baseline > 0)
fontY = baseline - font.getFontDescriptor(B... |
public class class_name {
public synchronized void clear(boolean redraw) {
for (Layer layer : this.layersList) {
layer.unassign();
}
this.layersList.clear();
if (redraw) {
this.redrawer.redrawLayers();
}
} } | public class class_name {
public synchronized void clear(boolean redraw) {
for (Layer layer : this.layersList) {
layer.unassign(); // depends on control dependency: [for], data = [layer]
}
this.layersList.clear();
if (redraw) {
this.redrawer.redrawLayers(); // de... |
public class class_name {
protected void buildBeginTimeIfNeeds(StringBuilder sb) {
final Object beginTime = findBeginTime();
if (beginTime != null) {
sb.append(LF).append(" beginTime: ");
final String beginExp;
if (beginTime instanceof LocalDateTime) { // basically h... | public class class_name {
protected void buildBeginTimeIfNeeds(StringBuilder sb) {
final Object beginTime = findBeginTime();
if (beginTime != null) {
sb.append(LF).append(" beginTime: "); // depends on control dependency: [if], data = [none]
final String beginExp;
if... |
public class class_name {
private List<Integer> getBondNosForRingGroup(IAtomContainer molecule, List<Integer> ringGroup, IRingSet ringSet) {
List<Integer> btc = new ArrayList<Integer>();
for (Integer i : ringGroup) {
for (IBond bond : ringSet.getAtomContainer(i).bonds()) {
i... | public class class_name {
private List<Integer> getBondNosForRingGroup(IAtomContainer molecule, List<Integer> ringGroup, IRingSet ringSet) {
List<Integer> btc = new ArrayList<Integer>();
for (Integer i : ringGroup) {
for (IBond bond : ringSet.getAtomContainer(i).bonds()) {
i... |
public class class_name {
public static boolean isFloat(final byte[] qualifier, final int offset) {
validateQualifier(qualifier, offset);
if ((qualifier[offset] & Const.MS_BYTE_FLAG) == Const.MS_BYTE_FLAG) {
return (qualifier[offset + 3] & Const.FLAG_FLOAT) == Const.FLAG_FLOAT;
} else {
return... | public class class_name {
public static boolean isFloat(final byte[] qualifier, final int offset) {
validateQualifier(qualifier, offset);
if ((qualifier[offset] & Const.MS_BYTE_FLAG) == Const.MS_BYTE_FLAG) {
return (qualifier[offset + 3] & Const.FLAG_FLOAT) == Const.FLAG_FLOAT; // depends on control dep... |
public class class_name {
public <T> HttpAuthServiceBuilder addTokenAuthorizer(
Function<HttpHeaders, T> tokenExtractor, Authorizer<? super T> authorizer) {
requireNonNull(tokenExtractor, "tokenExtractor");
requireNonNull(authorizer, "authorizer");
final Authorizer<HttpRequest> requ... | public class class_name {
public <T> HttpAuthServiceBuilder addTokenAuthorizer(
Function<HttpHeaders, T> tokenExtractor, Authorizer<? super T> authorizer) {
requireNonNull(tokenExtractor, "tokenExtractor");
requireNonNull(authorizer, "authorizer");
final Authorizer<HttpRequest> requ... |
public class class_name {
static <T> T maybeGet(Record record, TableField<Record, T> field, T defaultValue) {
if (record.fieldsRow().indexOf(field) < 0) {
return defaultValue;
} else {
T result = record.get(field);
return result != null ? result : defaultValue;
}
} } | public class class_name {
static <T> T maybeGet(Record record, TableField<Record, T> field, T defaultValue) {
if (record.fieldsRow().indexOf(field) < 0) {
return defaultValue; // depends on control dependency: [if], data = [none]
} else {
T result = record.get(field);
return result != null ? ... |
public class class_name {
@Override
public JsonEntityBean getRootEntity(String groupType) {
EntityEnum type = EntityEnum.getEntityEnum(groupType);
String rootKey;
if (EntityEnum.GROUP.equals(type)) {
rootKey = "local.0";
} else if (EntityEnum.CATEGORY.equals(type)) {
... | public class class_name {
@Override
public JsonEntityBean getRootEntity(String groupType) {
EntityEnum type = EntityEnum.getEntityEnum(groupType);
String rootKey;
if (EntityEnum.GROUP.equals(type)) {
rootKey = "local.0"; // depends on control dependency: [if], data = [none]
... |
public class class_name {
public OutlierResult run(Relation<V> relation) {
final DBIDs ids = relation.getDBIDs();
ArrayList<ArrayDBIDs> subspaceIndex = buildOneDimIndexes(relation);
Set<HiCSSubspace> subspaces = calculateSubspaces(relation, subspaceIndex, rnd.getSingleThreadedRandom());
if(LOG.isVerb... | public class class_name {
public OutlierResult run(Relation<V> relation) {
final DBIDs ids = relation.getDBIDs();
ArrayList<ArrayDBIDs> subspaceIndex = buildOneDimIndexes(relation);
Set<HiCSSubspace> subspaces = calculateSubspaces(relation, subspaceIndex, rnd.getSingleThreadedRandom());
if(LOG.isVerb... |
public class class_name {
@Nonnull
public static <ELEMENTTYPE> String getImplodedMappedNonEmpty (@Nonnull final String sSep,
@Nullable final ELEMENTTYPE [] aElements,
@Nonnegative final int... | public class class_name {
@Nonnull
public static <ELEMENTTYPE> String getImplodedMappedNonEmpty (@Nonnull final String sSep,
@Nullable final ELEMENTTYPE [] aElements,
@Nonnegative final int... |
public class class_name {
protected MClassRef<NType, NClass> getTypeInfo(CClassRef info) {
MClassRef<NType, NClass> classInfo = classRefs.get(info);
if (classInfo == null) {
classInfo = createClassRef(info);
classRefs.put(info, classInfo);
}
return classInfo;
} } | public class class_name {
protected MClassRef<NType, NClass> getTypeInfo(CClassRef info) {
MClassRef<NType, NClass> classInfo = classRefs.get(info);
if (classInfo == null) {
classInfo = createClassRef(info); // depends on control dependency: [if], data = [none]
classRefs.put(info, classInfo); // depends o... |
public class class_name {
public void marshall(BatchGetDeploymentTargetsRequest batchGetDeploymentTargetsRequest, ProtocolMarshaller protocolMarshaller) {
if (batchGetDeploymentTargetsRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
tr... | public class class_name {
public void marshall(BatchGetDeploymentTargetsRequest batchGetDeploymentTargetsRequest, ProtocolMarshaller protocolMarshaller) {
if (batchGetDeploymentTargetsRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
tr... |
public class class_name {
@SuppressWarnings("Duplicates")
protected void upgradeEnergiepassElements(Document doc) throws JaxenException {
Map<String, String> fields = new HashMap<>();
fields.put("hwbwert", "user_defined_simplefield[@feldname='epass_hwbwert']");
fields.put("hwbklasse", "user... | public class class_name {
@SuppressWarnings("Duplicates")
protected void upgradeEnergiepassElements(Document doc) throws JaxenException {
Map<String, String> fields = new HashMap<>();
fields.put("hwbwert", "user_defined_simplefield[@feldname='epass_hwbwert']");
fields.put("hwbklasse", "user... |
public class class_name {
public void setSendDataPoints(java.util.Collection<SendDataPoint> sendDataPoints) {
if (sendDataPoints == null) {
this.sendDataPoints = null;
return;
}
this.sendDataPoints = new com.amazonaws.internal.SdkInternalList<SendDataPoint>(sendDataPoin... | public class class_name {
public void setSendDataPoints(java.util.Collection<SendDataPoint> sendDataPoints) {
if (sendDataPoints == null) {
this.sendDataPoints = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
... |
public class class_name {
public static MutableRoaringBitmap priorityqueue_or(
@SuppressWarnings("rawtypes") Iterator bitmaps) {
if (!bitmaps.hasNext()) {
return new MutableRoaringBitmap();
}
// we buffer the call to getLongSizeInBytes(), hence the code complexity
ArrayList<ImmutableRoaring... | public class class_name {
public static MutableRoaringBitmap priorityqueue_or(
@SuppressWarnings("rawtypes") Iterator bitmaps) {
if (!bitmaps.hasNext()) {
return new MutableRoaringBitmap(); // depends on control dependency: [if], data = [none]
}
// we buffer the call to getLongSizeInBytes(), he... |
public class class_name {
public void setModelMatrix(float[] mat) {
if (mat.length != 16) {
throw new IllegalArgumentException("Size not equal to 16.");
}
getTransform().setModelMatrix(mat);
if (mTransformCache.setModelMatrix(mat)) {
onTransformChanged();
... | public class class_name {
public void setModelMatrix(float[] mat) {
if (mat.length != 16) {
throw new IllegalArgumentException("Size not equal to 16.");
}
getTransform().setModelMatrix(mat);
if (mTransformCache.setModelMatrix(mat)) {
onTransformChanged(); // depe... |
public class class_name {
@Override
public void perform(Rewrite event, EvaluationContext context)
{
/*
* Highly optimized loop - for performance reasons. Think before you change this!
*/
List<Rule> rules = config.getRules();
Rule rule = null;
final EvaluationContextImpl sub... | public class class_name {
@Override
public void perform(Rewrite event, EvaluationContext context)
{
/*
* Highly optimized loop - for performance reasons. Think before you change this!
*/
List<Rule> rules = config.getRules();
Rule rule = null;
final EvaluationContextImpl sub... |
public class class_name {
@Override
public long alloc(int chunks, long prevPos, int prevChunks) {
long ret = s.allocReturnCode(chunks);
if (prevPos >= 0)
s.free(prevPos, prevChunks);
if (ret >= 0)
return ret;
while (true) {
s.nextTier();
... | public class class_name {
@Override
public long alloc(int chunks, long prevPos, int prevChunks) {
long ret = s.allocReturnCode(chunks);
if (prevPos >= 0)
s.free(prevPos, prevChunks);
if (ret >= 0)
return ret;
while (true) {
s.nextTier(); // depend... |
public class class_name {
@Override
public int rename(String oldPath, String newPath) {
final AlluxioURI oldUri = mPathResolverCache.getUnchecked(oldPath);
final AlluxioURI newUri = mPathResolverCache.getUnchecked(newPath);
LOG.trace("rename({}, {}) [Alluxio: {}, {}]", oldPath, newPath, oldUri, newUri);
... | public class class_name {
@Override
public int rename(String oldPath, String newPath) {
final AlluxioURI oldUri = mPathResolverCache.getUnchecked(oldPath);
final AlluxioURI newUri = mPathResolverCache.getUnchecked(newPath);
LOG.trace("rename({}, {}) [Alluxio: {}, {}]", oldPath, newPath, oldUri, newUri);
... |
public class class_name {
private void addPropsForPublisher(QueryBasedHiveConversionEntity hiveConversionEntity) {
if (!hiveConversionEntity.getPartition().isPresent()) {
return;
}
ConvertibleHiveDataset convertibleHiveDataset = hiveConversionEntity.getConvertibleHiveDataset();
for (String format... | public class class_name {
private void addPropsForPublisher(QueryBasedHiveConversionEntity hiveConversionEntity) {
if (!hiveConversionEntity.getPartition().isPresent()) {
return; // depends on control dependency: [if], data = [none]
}
ConvertibleHiveDataset convertibleHiveDataset = hiveConversionEnti... |
public class class_name {
private long put(K key, long value, boolean ifNew)
{
if (key == null) {
long old = _nullValue;
_nullValue = value;
return old;
}
int hash = key.hashCode() & _mask;
while (true) {
K testKey = _keys[hash];
if (testKey == null || (_flags[hash] &... | public class class_name {
private long put(K key, long value, boolean ifNew)
{
if (key == null) {
long old = _nullValue;
_nullValue = value; // depends on control dependency: [if], data = [none]
return old; // depends on control dependency: [if], data = [none]
}
int hash = key.hashCode... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.