code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
protected double[][] extractFeaturesInternal(BufferedImage image) {
double[][] features = super.extractFeaturesInternal(image);
for (int i = 0; i < features.length; i++) {
Normalization.normalizePower(features[i], 0.5);
Normalization.normalizeL2(features[i]);
}
return feat... | public class class_name {
protected double[][] extractFeaturesInternal(BufferedImage image) {
double[][] features = super.extractFeaturesInternal(image);
for (int i = 0; i < features.length; i++) {
Normalization.normalizePower(features[i], 0.5);
// depends on control dependency: [for], data = [i]
Normali... |
public class class_name {
public void setVTLDeviceARNs(java.util.Collection<String> vTLDeviceARNs) {
if (vTLDeviceARNs == null) {
this.vTLDeviceARNs = null;
return;
}
this.vTLDeviceARNs = new com.amazonaws.internal.SdkInternalList<String>(vTLDeviceARNs);
} } | public class class_name {
public void setVTLDeviceARNs(java.util.Collection<String> vTLDeviceARNs) {
if (vTLDeviceARNs == null) {
this.vTLDeviceARNs = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
private SICoreConnection remoteBootstrap(CredentialType credentialType, ClientAttachProperties cap)
throws SIAuthenticationException, SIErrorException, SIIncorrectCallException, SINotAuthorizedException, SINotPossibleInCurrentConfigurationException, SIResourceException {
... | public class class_name {
private SICoreConnection remoteBootstrap(CredentialType credentialType, ClientAttachProperties cap)
throws SIAuthenticationException, SIErrorException, SIIncorrectCallException, SINotAuthorizedException, SINotPossibleInCurrentConfigurationException, SIResourceException {
... |
public class class_name {
private boolean matchesTemplateShape(Node template, Node ast) {
while (template != null) {
if (ast == null || !matchesNodeShape(template, ast)) {
return false;
}
template = template.getNext();
ast = ast.getNext();
}
return true;
} } | public class class_name {
private boolean matchesTemplateShape(Node template, Node ast) {
while (template != null) {
if (ast == null || !matchesNodeShape(template, ast)) {
return false; // depends on control dependency: [if], data = [none]
}
template = template.getNext(); // depends on co... |
public class class_name {
public final String replaceAll(String s, char replacementCharacter) {
final StringBuilder sb = new StringBuilder();
for (int offset = 0; offset < s.length(); ) {
final int codePoint = s.codePointAt(offset);
if (matches(codePoint)) {
sb.append(replacementCharacter)... | public class class_name {
public final String replaceAll(String s, char replacementCharacter) {
final StringBuilder sb = new StringBuilder();
for (int offset = 0; offset < s.length(); ) {
final int codePoint = s.codePointAt(offset);
if (matches(codePoint)) {
sb.append(replacementCharacter)... |
public class class_name {
public CLIQUESubspace join(CLIQUESubspace other, double all, double tau) {
long[] dimensions = joinLastDimensions(other);
if(dimensions == null) {
return null;
}
CLIQUESubspace s = new CLIQUESubspace(dimensions);
for(CLIQUEUnit u1 : this.denseUnits) {
for(CLIQ... | public class class_name {
public CLIQUESubspace join(CLIQUESubspace other, double all, double tau) {
long[] dimensions = joinLastDimensions(other);
if(dimensions == null) {
return null; // depends on control dependency: [if], data = [none]
}
CLIQUESubspace s = new CLIQUESubspace(dimensions);
... |
public class class_name {
public static boolean isHdfsUri(URI endpoint)
{
final String path = endpoint.getPath();
if (path != null && path.indexOf('/', 1) != -1) {
return path.substring(1, path.indexOf('/', 1)).equalsIgnoreCase("webhdfs");
} else {
return false;
... | public class class_name {
public static boolean isHdfsUri(URI endpoint)
{
final String path = endpoint.getPath();
if (path != null && path.indexOf('/', 1) != -1) {
return path.substring(1, path.indexOf('/', 1)).equalsIgnoreCase("webhdfs"); // depends on control dependency: [if], data = ... |
public class class_name {
public static Map<String, String> getMetadataFromSequenceFile(FileSystem fs, Path path) {
try {
Configuration conf = new Configuration();
conf.setInt("io.file.buffer.size", 4096);
SequenceFile.Reader reader = new SequenceFile.Reader(fs, path, new Co... | public class class_name {
public static Map<String, String> getMetadataFromSequenceFile(FileSystem fs, Path path) {
try {
Configuration conf = new Configuration();
conf.setInt("io.file.buffer.size", 4096); // depends on control dependency: [try], data = [none]
SequenceFile.R... |
public class class_name {
private ServiceInfo generateServiceInfo(ServiceReference reference)
{
Map<String, String> map = Utils.toMap(reference);
Set<String> keys = map.keySet();
String slpUrl = Utils.subst((String)reference.getProperty(SLP_URL), map);
ServiceURL serviceURL;
... | public class class_name {
private ServiceInfo generateServiceInfo(ServiceReference reference)
{
Map<String, String> map = Utils.toMap(reference);
Set<String> keys = map.keySet();
String slpUrl = Utils.subst((String)reference.getProperty(SLP_URL), map);
ServiceURL serviceURL;
... |
public class class_name {
@Override
public boolean decompose( DMatrixRMaj A ) {
commonSetup(A);
for( int j = 0; j < minLength; j++ ) {
householder(j);
updateA(j);
}
return !error;
} } | public class class_name {
@Override
public boolean decompose( DMatrixRMaj A ) {
commonSetup(A);
for( int j = 0; j < minLength; j++ ) {
householder(j); // depends on control dependency: [for], data = [j]
updateA(j); // depends on control dependency: [for], data = [j]
... |
public class class_name {
public void addAndSimplify(double x, double y) {
// simplify curve when possible:
final int len = data.size();
if (len >= 4) {
// Look at the previous 2 points
final double l1x = data.get(len - 4);
final double l1y = data.get(len - 3);
final double l2x = da... | public class class_name {
public void addAndSimplify(double x, double y) {
// simplify curve when possible:
final int len = data.size();
if (len >= 4) {
// Look at the previous 2 points
final double l1x = data.get(len - 4);
final double l1y = data.get(len - 3);
final double l2x = da... |
public class class_name {
protected synchronized void fireAttributeAddedEvent(String name, AttributeValue attr) {
if (this.listenerList != null && isEventFirable()) {
final AttributeChangeListener[] list = new AttributeChangeListener[this.listenerList.size()];
this.listenerList.toArray(list);
final Attribut... | public class class_name {
protected synchronized void fireAttributeAddedEvent(String name, AttributeValue attr) {
if (this.listenerList != null && isEventFirable()) {
final AttributeChangeListener[] list = new AttributeChangeListener[this.listenerList.size()];
this.listenerList.toArray(list); // depends on con... |
public class class_name {
public byte[] write(Bean bean, boolean rootType) {
ByteArrayOutputStream baos = new ByteArrayOutputStream(1024);
try {
write(bean, rootType, baos);
} catch (IOException ex) {
throw new IllegalStateException(ex);
}
return baos.toB... | public class class_name {
public byte[] write(Bean bean, boolean rootType) {
ByteArrayOutputStream baos = new ByteArrayOutputStream(1024);
try {
write(bean, rootType, baos); // depends on control dependency: [try], data = [none]
} catch (IOException ex) {
throw new Illeg... |
public class class_name {
@Nonnull
public ParametersAction createUpdated(Collection<? extends ParameterValue> overrides) {
if(overrides == null) {
ParametersAction parametersAction = new ParametersAction(parameters);
parametersAction.safeParameters = this.safeParameters;
... | public class class_name {
@Nonnull
public ParametersAction createUpdated(Collection<? extends ParameterValue> overrides) {
if(overrides == null) {
ParametersAction parametersAction = new ParametersAction(parameters);
parametersAction.safeParameters = this.safeParameters; // depends ... |
public class class_name {
public void setNavigationAddonEnabled(boolean enabled) {
navigationAddonEnabled = enabled;
final String panId = "panBTNCollection";
final String zoomId = "zoomAddon";
final String zoomRectId = "zoomRectAddon";
if (enabled) {
if (!getMapAddons().containsKey(panId)) {
PanButto... | public class class_name {
public void setNavigationAddonEnabled(boolean enabled) {
navigationAddonEnabled = enabled;
final String panId = "panBTNCollection";
final String zoomId = "zoomAddon";
final String zoomRectId = "zoomRectAddon";
if (enabled) {
if (!getMapAddons().containsKey(panId)) {
PanButto... |
public class class_name {
@Override
protected void onStartObject(String fieldName, JsonParser jp) {
log.trace(fieldName);
if ("result".equals(fieldName)) {
resultStarted = true;
}
} } | public class class_name {
@Override
protected void onStartObject(String fieldName, JsonParser jp) {
log.trace(fieldName);
if ("result".equals(fieldName)) {
resultStarted = true; // depends on control dependency: [if], data = [none]
}
} } |
public class class_name {
Table ENABLED_ROLES() {
Table t = sysTables[ENABLED_ROLES];
if (t == null) {
t = createBlankTable(sysTableHsqlNames[ENABLED_ROLES]);
addColumn(t, "ROLE_NAME", SQL_IDENTIFIER);
// true PK
HsqlName name = HsqlNameManager.newInf... | public class class_name {
Table ENABLED_ROLES() {
Table t = sysTables[ENABLED_ROLES];
if (t == null) {
t = createBlankTable(sysTableHsqlNames[ENABLED_ROLES]); // depends on control dependency: [if], data = [none]
addColumn(t, "ROLE_NAME", SQL_IDENTIFIER); // depends on contro... |
public class class_name {
public static boolean deleteRecursive(@NonNull File item)
{
boolean ok = true;
if (item.isDirectory()) {
for (File child : item.listFiles()) {
ok = ok && deleteRecursive(child);
}
}
ok = ok && item.delete();
r... | public class class_name {
public static boolean deleteRecursive(@NonNull File item)
{
boolean ok = true;
if (item.isDirectory()) {
for (File child : item.listFiles()) {
ok = ok && deleteRecursive(child); // depends on control dependency: [for], data = [child]
... |
public class class_name {
public String getFullName() {
String fullName;
if (tagLib != null) {
fullName = tagLib.getNameSpaceAndSeparator() + name;
}
else {
fullName = name;
}
return fullName;
} } | public class class_name {
public String getFullName() {
String fullName;
if (tagLib != null) {
fullName = tagLib.getNameSpaceAndSeparator() + name; // depends on control dependency: [if], data = [none]
}
else {
fullName = name; // depends on control dependency: [if], data = [none]
}
return fullName;
... |
public class class_name {
protected Object invokeExecuteMethod(Method executeMethod, Object[] requestArgs) {
Object result = null;
try {
result = executeMethod.invoke(action, requestArgs); // #to_action just here
redCardableAssist.checkValidatorCalled();
} catch (Invocat... | public class class_name {
protected Object invokeExecuteMethod(Method executeMethod, Object[] requestArgs) {
Object result = null;
try {
result = executeMethod.invoke(action, requestArgs); // #to_action just here // depends on control dependency: [try], data = [none]
redCardable... |
public class class_name {
@Deprecated
public void trans(VoidFunc1<Session> func) {
try {
beginTransaction();
func.call(this);
commit();
} catch (Exception e) {
quietRollback();
throw new DbRuntimeException(e);
}
} } | public class class_name {
@Deprecated
public void trans(VoidFunc1<Session> func) {
try {
beginTransaction(); // depends on control dependency: [try], data = [none]
func.call(this); // depends on control dependency: [try], data = [none]
commit(); // depends on control dependency: [try], data = [none]
} ca... |
public class class_name {
public List<GcEvent> getLogs() {
final List<GcEvent> logs = new ArrayList<>();
for (CircularBuffer<GcEvent> buffer : gcLogs.values()) {
logs.addAll(buffer.toList());
}
Collections.sort(logs, GcEvent.REVERSE_TIME_ORDER);
return logs;
} } | public class class_name {
public List<GcEvent> getLogs() {
final List<GcEvent> logs = new ArrayList<>();
for (CircularBuffer<GcEvent> buffer : gcLogs.values()) {
logs.addAll(buffer.toList()); // depends on control dependency: [for], data = [buffer]
}
Collections.sort(logs, GcEvent.REVERSE_TIME_OR... |
public class class_name {
public ResourceFormatParser getParserForMIMEType(final String mimeType) throws UnsupportedFormatException {
//clean up encoding
final String cleanMime;
if (null != mimeType && mimeType.indexOf(";") > 0) {
cleanMime = mimeType.substring(0, mimeType.indexOf("... | public class class_name {
public ResourceFormatParser getParserForMIMEType(final String mimeType) throws UnsupportedFormatException {
//clean up encoding
final String cleanMime;
if (null != mimeType && mimeType.indexOf(";") > 0) {
cleanMime = mimeType.substring(0, mimeType.indexOf("... |
public class class_name {
public static AccessToken createFromNativeLinkingIntent(Intent intent) {
Validate.notNull(intent, "intent");
if (intent.getExtras() == null) {
return null;
}
return createFromBundle(null, intent.getExtras(), AccessTokenSource.FACEBOOK_APPLICATION_... | public class class_name {
public static AccessToken createFromNativeLinkingIntent(Intent intent) {
Validate.notNull(intent, "intent");
if (intent.getExtras() == null) {
return null; // depends on control dependency: [if], data = [none]
}
return createFromBundle(null, inten... |
public class class_name {
public void init(ScreenLocation itsLocation, BasePanel parentScreen, Converter fieldConverter, int iDisplayFieldDesc, String strValue, String strDesc, String strImage, String strCommand, String strToolTip)
{
m_strImageButton = strImage; // Image for this button
m_st... | public class class_name {
public void init(ScreenLocation itsLocation, BasePanel parentScreen, Converter fieldConverter, int iDisplayFieldDesc, String strValue, String strDesc, String strImage, String strCommand, String strToolTip)
{
m_strImageButton = strImage; // Image for this button
m_st... |
public class class_name {
protected void parseNegOp(TokenList tokens, Sequence sequence) {
if( tokens.size == 0 )
return;
TokenList.Token token = tokens.first;
while( token != null ) {
TokenList.Token next = token.next;
escape:
if( token.getSymb... | public class class_name {
protected void parseNegOp(TokenList tokens, Sequence sequence) {
if( tokens.size == 0 )
return;
TokenList.Token token = tokens.first;
while( token != null ) {
TokenList.Token next = token.next;
escape:
if( token.getSymb... |
public class class_name {
static String toNumeral(
NumberSystem numsys,
char zeroDigit,
int number
) {
if (numsys.isDecimal()) {
int delta = zeroDigit - '0';
String standard = Integer.toString(number);
if (delta == 0) {
return st... | public class class_name {
static String toNumeral(
NumberSystem numsys,
char zeroDigit,
int number
) {
if (numsys.isDecimal()) {
int delta = zeroDigit - '0';
String standard = Integer.toString(number);
if (delta == 0) {
return st... |
public class class_name {
public static void createPurelyNonPolyEntities(List<List<Chain>> nonPolyModels, List<List<Chain>> waterModels, List<EntityInfo> entities) {
if (nonPolyModels.isEmpty()) return;
// let's find first the max entity id to assign entity ids to the newly found entities
int maxMolId = 0;
i... | public class class_name {
public static void createPurelyNonPolyEntities(List<List<Chain>> nonPolyModels, List<List<Chain>> waterModels, List<EntityInfo> entities) {
if (nonPolyModels.isEmpty()) return;
// let's find first the max entity id to assign entity ids to the newly found entities
int maxMolId = 0;
i... |
public class class_name {
public String nextSnapshotVersion(final Integer index) {
List<String> digits = getDigits();
String nextVersion = null;
if (digits != null) {
if (index != null && index >= 0 && index < digits.size()) {
int origDigitsLength = joinDigitString... | public class class_name {
public String nextSnapshotVersion(final Integer index) {
List<String> digits = getDigits();
String nextVersion = null;
if (digits != null) {
if (index != null && index >= 0 && index < digits.size()) {
int origDigitsLength = joinDigitString... |
public class class_name {
private RowKeyAndTuple createAndPutAssociationRowForInsert(Serializable key, PersistentCollection collection,
AssociationPersister associationPersister, SharedSessionContractImplementor session, int i, Object entry) {
RowKeyBuilder rowKeyBuilder = initializeRowKeyBuilder();
Tuple assoc... | public class class_name {
private RowKeyAndTuple createAndPutAssociationRowForInsert(Serializable key, PersistentCollection collection,
AssociationPersister associationPersister, SharedSessionContractImplementor session, int i, Object entry) {
RowKeyBuilder rowKeyBuilder = initializeRowKeyBuilder();
Tuple assoc... |
public class class_name {
public void setState(int newState) throws SystemException
{
if (tc.isEntryEnabled())
Tr.entry(tc, "setState", "from " + stateToString(_state) + " to " + stateToString(newState));
final int oldState = _state;
// Check that the state change is valid
... | public class class_name {
public void setState(int newState) throws SystemException
{
if (tc.isEntryEnabled())
Tr.entry(tc, "setState", "from " + stateToString(_state) + " to " + stateToString(newState));
final int oldState = _state;
// Check that the state change is valid
... |
public class class_name {
public static void constraintMatrix6x6( DMatrixRMaj L_6x10 , DMatrixRMaj L_6x6 ) {
int index = 0;
for( int i = 0; i < 6; i++ ) {
L_6x6.data[index++] = L_6x10.get(i,0);
L_6x6.data[index++] = L_6x10.get(i,1);
L_6x6.data[index++] = L_6x10.get(i,2);
L_6x6.data[index++] = L_6x10.g... | public class class_name {
public static void constraintMatrix6x6( DMatrixRMaj L_6x10 , DMatrixRMaj L_6x6 ) {
int index = 0;
for( int i = 0; i < 6; i++ ) {
L_6x6.data[index++] = L_6x10.get(i,0); // depends on control dependency: [for], data = [i]
L_6x6.data[index++] = L_6x10.get(i,1); // depends on control d... |
public class class_name {
public Tuple shiftLeft() {
if (degree() < 2) {
return Tuple0.INSTANCE;
}
Object[] copy = new Object[degree() - 1];
System.arraycopy(array(), 1, copy, 0, copy.length);
return NTuple.of(copy);
} } | public class class_name {
public Tuple shiftLeft() {
if (degree() < 2) {
return Tuple0.INSTANCE; // depends on control dependency: [if], data = [none]
}
Object[] copy = new Object[degree() - 1];
System.arraycopy(array(), 1, copy, 0, copy.length);
return NTuple.of(copy);
} } |
public class class_name {
public InetSocketAddress updateConnectAddr(
String hostProperty,
String addressProperty,
String defaultAddressValue,
InetSocketAddress addr) {
final String host = get(hostProperty);
final String connectHostPort = getTrimmed(addressProperty, defaultAddressValue);
if (host =... | public class class_name {
public InetSocketAddress updateConnectAddr(
String hostProperty,
String addressProperty,
String defaultAddressValue,
InetSocketAddress addr) {
final String host = get(hostProperty);
final String connectHostPort = getTrimmed(addressProperty, defaultAddressValue);
if (host =... |
public class class_name {
protected
void parse(Element element) {
String rootElementName = element.getTagName();
if (!rootElementName.equals(CONFIGURATION_TAG)) {
if(rootElementName.equals(OLD_CONFIGURATION_TAG)) {
LogLog.warn("The <"+OLD_CONFIGURATION_TAG+
"> element has been deprecated.");
... | public class class_name {
protected
void parse(Element element) {
String rootElementName = element.getTagName();
if (!rootElementName.equals(CONFIGURATION_TAG)) {
if(rootElementName.equals(OLD_CONFIGURATION_TAG)) {
LogLog.warn("The <"+OLD_CONFIGURATION_TAG+
"> element has been deprecated."); ... |
public class class_name {
public PropertiesAdapter filter(Filter<String> filter) {
Properties properties = new Properties();
for (String propertyName : this) {
if (filter.accept(propertyName)) {
properties.setProperty(propertyName, get(propertyName));
}
}
return from(properties);
... | public class class_name {
public PropertiesAdapter filter(Filter<String> filter) {
Properties properties = new Properties();
for (String propertyName : this) {
if (filter.accept(propertyName)) {
properties.setProperty(propertyName, get(propertyName)); // depends on control dependency: [if], data... |
public class class_name {
private Attributes getMainAttributes() {
if (null == mainAttributes) {
mainAttributes = getJarMainAttributes(pluginJar);
String pluginName = mainAttributes.getValue(RUNDECK_PLUGIN_NAME);
if(pluginName == null) {
//Fallback to somethi... | public class class_name {
private Attributes getMainAttributes() {
if (null == mainAttributes) {
mainAttributes = getJarMainAttributes(pluginJar); // depends on control dependency: [if], data = [none]
String pluginName = mainAttributes.getValue(RUNDECK_PLUGIN_NAME);
if(plugi... |
public class class_name {
@FFDCIgnore(Throwable.class)
@Override
public <R> MethodResult<R> run(Callable<R> callable) {
try {
return MethodResult.success(callable.call());
} catch (Throwable t) {
return MethodResult.failure(t);
}
} } | public class class_name {
@FFDCIgnore(Throwable.class)
@Override
public <R> MethodResult<R> run(Callable<R> callable) {
try {
return MethodResult.success(callable.call()); // depends on control dependency: [try], data = [none]
} catch (Throwable t) {
return MethodResult.... |
public class class_name {
public static TypeDesc forDescriptor(String desc)
throws IllegalArgumentException
{
// TODO: Figure out how to cache these. Using a plain IdentityMap poses
// a problem. The back reference to the key causes a memory leak.
TypeDesc td;
int cursor = ... | public class class_name {
public static TypeDesc forDescriptor(String desc)
throws IllegalArgumentException
{
// TODO: Figure out how to cache these. Using a plain IdentityMap poses
// a problem. The back reference to the key causes a memory leak.
TypeDesc td;
int cursor = ... |
public class class_name {
@Override
public void rollback() {
try {
if (conn.isClosed()) {
throw new TransactionException("the connection is closed in transaction.");
}
conn.rollback();
conn.setAutoCommit(true);
} catch (SQLException e)... | public class class_name {
@Override
public void rollback() {
try {
if (conn.isClosed()) {
throw new TransactionException("the connection is closed in transaction.");
}
conn.rollback(); // depends on control dependency: [try], data = [none]
con... |
public class class_name {
private boolean matches(EvaluationContext ctx, Object[] params, DTDecisionRule rule) {
for( int i = 0; i < params.length; i++ ) {
CompiledExpression compiledInput = inputs.get(i).getCompiledInput();
if ( compiledInput instanceof CompiledFEELExpression) {
... | public class class_name {
private boolean matches(EvaluationContext ctx, Object[] params, DTDecisionRule rule) {
for( int i = 0; i < params.length; i++ ) {
CompiledExpression compiledInput = inputs.get(i).getCompiledInput();
if ( compiledInput instanceof CompiledFEELExpression) {
... |
public class class_name {
@Override
public File findArtifact(final Artifact artifact) {
String type = artifact.getProperty("type", "jar");
if ("ceylon-jar".equals(type) || "car".equals(type)) {
if ("ceylon-jar".equals(type)) {
type = "jar";
}
... | public class class_name {
@Override
public File findArtifact(final Artifact artifact) {
String type = artifact.getProperty("type", "jar");
if ("ceylon-jar".equals(type) || "car".equals(type)) {
if ("ceylon-jar".equals(type)) {
type = "jar";
// depends on control de... |
public class class_name {
public static ObjectMethodMatchConf match(Method method, Class[] paras)
{
Class[] metodParaTypes = method.getParameterTypes();
if (paras.length < metodParaTypes.length)
{
return null;
}
else if (paras.length == metodParaTypes.length)
{
//精确匹配或者可变参数
}
else i... | public class class_name {
public static ObjectMethodMatchConf match(Method method, Class[] paras)
{
Class[] metodParaTypes = method.getParameterTypes();
if (paras.length < metodParaTypes.length)
{
return null;
// depends on control dependency: [if], data = [none]
}
else if (paras.length == metod... |
public class class_name {
public static <T> List<T> filtered(Collection<T> data, Filter<T> filter) {
List<T> list = new ArrayList<>();
if (!Utils.isEmpty(data)) {
for (T item : data) {
if (filter.accept(item)) {
list.add(item);
}
... | public class class_name {
public static <T> List<T> filtered(Collection<T> data, Filter<T> filter) {
List<T> list = new ArrayList<>();
if (!Utils.isEmpty(data)) {
for (T item : data) {
if (filter.accept(item)) {
list.add(item); // depends on control depen... |
public class class_name {
public static int cardinality(long[] bits) {
int card = 0;
for (int i = bits.length - 1; i >= 0; i--) {
long a = bits[i];
if (a == 0)
continue;
if (a == -1) {
card += 64;
continue;
}
// Successively collapse alternating bit groups ... | public class class_name {
public static int cardinality(long[] bits) {
int card = 0;
for (int i = bits.length - 1; i >= 0; i--) {
long a = bits[i];
if (a == 0)
continue;
if (a == -1) {
card += 64; // depends on control dependency: [if], data = [none]
continue;
}
... |
public class class_name {
private static boolean isConnectionSpecific(ConnectionNotation connectionNotation) {
String connection = connectionNotation.getSourceUnit() + ":" + connectionNotation.getrGroupSource() + "-"
+ connectionNotation.getTargetUnit() + ":" + connectionNotation.getrGroupTarget();
/* check... | public class class_name {
private static boolean isConnectionSpecific(ConnectionNotation connectionNotation) {
String connection = connectionNotation.getSourceUnit() + ":" + connectionNotation.getrGroupSource() + "-"
+ connectionNotation.getTargetUnit() + ":" + connectionNotation.getrGroupTarget();
/* check... |
public class class_name {
@SuppressWarnings("rawtypes")
@Override
public EntityManagerFactory createEntityManagerFactory(final String unit, final Map map) {
initJpaCounter();
final PersistenceProvider persistenceProvider = findDelegate(map);
final ClassLoader tccl = tccl();
final ClassLoader hack = A... | public class class_name {
@SuppressWarnings("rawtypes")
@Override
public EntityManagerFactory createEntityManagerFactory(final String unit, final Map map) {
initJpaCounter();
final PersistenceProvider persistenceProvider = findDelegate(map);
final ClassLoader tccl = tccl();
final ClassLoader hack = A... |
public class class_name {
public VoltTable startSnapshotting(
final String file_path, final String pathType, final String file_nonce, final SnapshotFormat format, final byte block,
final long multiPartTxnId, final long partitionTxnId, final long legacyPerPartitionTxnIds[],
final Str... | public class class_name {
public VoltTable startSnapshotting(
final String file_path, final String pathType, final String file_nonce, final SnapshotFormat format, final byte block,
final long multiPartTxnId, final long partitionTxnId, final long legacyPerPartitionTxnIds[],
final Str... |
public class class_name {
private void initRepositoryFeatures()
{
if (this.repositoryVersion == null) {
// Default features
this.repositoryVersion = new DefaultVersion(Resources.VERSION10);
this.filterable = false;
this.sortable = false;
// Get ... | public class class_name {
private void initRepositoryFeatures()
{
if (this.repositoryVersion == null) {
// Default features
this.repositoryVersion = new DefaultVersion(Resources.VERSION10); // depends on control dependency: [if], data = [none]
this.filterable = false; /... |
public class class_name {
public void generateBackgroundEdgeFromForegroundEdge() {
backgroundEdgePixels.clear();
Point p, p2;
Iterator<Point> it = foregroundEdgePixels.iterator();
while( it.hasNext() ) {
p = new Point(it.next());
for( int j = -1; j < 2; ++j ) {
... | public class class_name {
public void generateBackgroundEdgeFromForegroundEdge() {
backgroundEdgePixels.clear();
Point p, p2;
Iterator<Point> it = foregroundEdgePixels.iterator();
while( it.hasNext() ) {
p = new Point(it.next()); // depends on control dependency: [while], da... |
public class class_name {
public void registerListener(ResponseListener listener) {
if (! listeners.contains(listener)) {
boolean unique = true;
for (ResponseListener existing : listeners) {
if (existing.getClass().equals(listener.getClass())) {
unique = false;
break;
}
}
if (un... | public class class_name {
public void registerListener(ResponseListener listener) {
if (! listeners.contains(listener)) {
boolean unique = true;
for (ResponseListener existing : listeners) {
if (existing.getClass().equals(listener.getClass())) {
unique = false; // depends on control dependency: [i... |
public class class_name {
protected void runPollingCycle()
{
synchronized(this.LOCK)
{
Set<Entry<FaxClientSpi,Map<FaxJob,FaxJobStatus>>> entrySet=this.data.entrySet();
Iterator<Entry<FaxClientSpi,Map<FaxJob,FaxJobStatus>>> faxClientSpiIterator=entrySet.iterator();
... | public class class_name {
protected void runPollingCycle()
{
synchronized(this.LOCK)
{
Set<Entry<FaxClientSpi,Map<FaxJob,FaxJobStatus>>> entrySet=this.data.entrySet();
Iterator<Entry<FaxClientSpi,Map<FaxJob,FaxJobStatus>>> faxClientSpiIterator=entrySet.iterator();
... |
public class class_name {
public String getFirstExistingParamName(String[] paramNames) {
for (final String paramName : paramNames) {
if (isPresent(paramName)) {
return paramName;
}
}
throw new ParameterException("One of " + Arrays.toString(paramNames)
+ " must be present");
} ... | public class class_name {
public String getFirstExistingParamName(String[] paramNames) {
for (final String paramName : paramNames) {
if (isPresent(paramName)) {
return paramName; // depends on control dependency: [if], data = [none]
}
}
throw new ParameterException("One of " + Arrays.to... |
public class class_name {
public Observable<ServiceResponse<GetPersonalPreferencesResponseInner>> getPersonalPreferencesWithServiceResponseAsync(String userName, PersonalPreferencesOperationsPayload personalPreferencesOperationsPayload) {
if (userName == null) {
throw new IllegalArgumentException("... | public class class_name {
public Observable<ServiceResponse<GetPersonalPreferencesResponseInner>> getPersonalPreferencesWithServiceResponseAsync(String userName, PersonalPreferencesOperationsPayload personalPreferencesOperationsPayload) {
if (userName == null) {
throw new IllegalArgumentException("... |
public class class_name {
private <T> QueuedCallback<T> checkConcurrentAssignment(String segmentName, Function<Long, CompletableFuture<T>> thenCompose) {
QueuedCallback<T> queuedCallback = null;
synchronized (this.pendingRequests) {
PendingRequest pendingRequest = this.pendingRequests.getOr... | public class class_name {
private <T> QueuedCallback<T> checkConcurrentAssignment(String segmentName, Function<Long, CompletableFuture<T>> thenCompose) {
QueuedCallback<T> queuedCallback = null;
synchronized (this.pendingRequests) {
PendingRequest pendingRequest = this.pendingRequests.getOr... |
public class class_name {
private Properties parseProperties(String propertiesString) {
Properties properties = null;
String[] propPairs = propertiesString.split(";");
if (propPairs.length > 0) {
properties = new Properties();
for (String propPair : propPairs) {
... | public class class_name {
private Properties parseProperties(String propertiesString) {
Properties properties = null;
String[] propPairs = propertiesString.split(";");
if (propPairs.length > 0) {
properties = new Properties(); // depends on control dependency: [if], data = [none]
... |
public class class_name {
public static String getTextContent(Document document, boolean individualTokens) {
String textContent = null;
if (individualTokens) {
List<String> tokens = getTextTokens(document);
textContent = StringUtils.join(tokens, ",");
} else {
... | public class class_name {
public static String getTextContent(Document document, boolean individualTokens) {
String textContent = null;
if (individualTokens) {
List<String> tokens = getTextTokens(document);
textContent = StringUtils.join(tokens, ","); // depends on control depen... |
public class class_name {
public static AppLinkData createFromActivity(Activity activity) {
Validate.notNull(activity, "activity");
Intent intent = activity.getIntent();
if (intent == null) {
return null;
}
AppLinkData appLinkData = createFromAlApplinkData(intent);
... | public class class_name {
public static AppLinkData createFromActivity(Activity activity) {
Validate.notNull(activity, "activity");
Intent intent = activity.getIntent();
if (intent == null) {
return null; // depends on control dependency: [if], data = [none]
}
AppLi... |
public class class_name {
public void setMobileData(Boolean turnedOn){
ConnectivityManager dataManager=(ConnectivityManager)instrumentation.getTargetContext().getSystemService(Context.CONNECTIVITY_SERVICE);
Method dataClass = null;
try {
dataClass = ConnectivityManager.class.getDeclaredMethod("setMobileDataE... | public class class_name {
public void setMobileData(Boolean turnedOn){
ConnectivityManager dataManager=(ConnectivityManager)instrumentation.getTargetContext().getSystemService(Context.CONNECTIVITY_SERVICE);
Method dataClass = null;
try {
dataClass = ConnectivityManager.class.getDeclaredMethod("setMobileDataE... |
public class class_name {
public void marshall(BatchAttachTypedLinkResponse batchAttachTypedLinkResponse, ProtocolMarshaller protocolMarshaller) {
if (batchAttachTypedLinkResponse == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... | public class class_name {
public void marshall(BatchAttachTypedLinkResponse batchAttachTypedLinkResponse, ProtocolMarshaller protocolMarshaller) {
if (batchAttachTypedLinkResponse == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... |
public class class_name {
@Nullable
public static String getTableName(Path rootPath, Path path) {
path = qualified(rootPath, path);
if (rootPath.equals(path)) {
// Path is root, no table
return null;
}
Path tablePath;
Path parent = path.getParent();
... | public class class_name {
@Nullable
public static String getTableName(Path rootPath, Path path) {
path = qualified(rootPath, path);
if (rootPath.equals(path)) {
// Path is root, no table
return null; // depends on control dependency: [if], data = [none]
}
Pa... |
public class class_name {
@Override
public void stop(ShutdownModeAmp mode)
throws Exception
{
super.stop(mode);
Alarm alarm = _alarm;
_alarm = null;
if (alarm != null) {
alarm.dequeue();
}
for (PortTcp port : _ports) {
try {
port.close();
} catch (Throwa... | public class class_name {
@Override
public void stop(ShutdownModeAmp mode)
throws Exception
{
super.stop(mode);
Alarm alarm = _alarm;
_alarm = null;
if (alarm != null) {
alarm.dequeue();
}
for (PortTcp port : _ports) {
try {
port.close(); // depends on control... |
public class class_name {
private UnicodeSet xor(int[] other, int otherLen, int polarity) {
ensureBufferCapacity(len + otherLen);
int i = 0, j = 0, k = 0;
int a = list[i++];
int b;
// TODO: Based on the call hierarchy, polarity of 1 or 2 is never used
// so the foll... | public class class_name {
private UnicodeSet xor(int[] other, int otherLen, int polarity) {
ensureBufferCapacity(len + otherLen);
int i = 0, j = 0, k = 0;
int a = list[i++];
int b;
// TODO: Based on the call hierarchy, polarity of 1 or 2 is never used
// so the foll... |
public class class_name {
public void setSymbolMapsDirectory(String symbolMapsDir) {
if (deobfuscator == null) {
deobfuscator = new StackTraceDeobfuscator(symbolMapsDir);
} else {
deobfuscator.setSymbolMapsDirectory(symbolMapsDir);
}
} } | public class class_name {
public void setSymbolMapsDirectory(String symbolMapsDir) {
if (deobfuscator == null) {
deobfuscator = new StackTraceDeobfuscator(symbolMapsDir); // depends on control dependency: [if], data = [none]
} else {
deobfuscator.setSymbolMapsDirectory(symbolMapsDir); // depends on control d... |
public class class_name {
public double normSq() {
double total = 0;
int N = getDimension();
for( int i = 0; i < N; i++ ) {
double a = getIdx( i );
total += a * a;
}
return total;
} } | public class class_name {
public double normSq() {
double total = 0;
int N = getDimension();
for( int i = 0; i < N; i++ ) {
double a = getIdx( i );
total += a * a; // depends on control dependency: [for], data = [none]
}
return total;
} } |
public class class_name {
private Content.Type getContentType(String suffix) {
List<Content.Type<?>> cts = project.getParent().getContentTypes();
//
for (int i = 0; i != cts.size(); ++i) {
Content.Type<?> ct = cts.get(i);
if (ct.getSuffix().equals(suffix)) {
// hit
return ct;
}
}
// miss
t... | public class class_name {
private Content.Type getContentType(String suffix) {
List<Content.Type<?>> cts = project.getParent().getContentTypes();
//
for (int i = 0; i != cts.size(); ++i) {
Content.Type<?> ct = cts.get(i);
if (ct.getSuffix().equals(suffix)) {
// hit
return ct; // depends on control ... |
public class class_name {
private Object bindResolve(Object o, JSONObject src) {
if (o instanceof DataBoundResolvable) {
DataBoundResolvable dbr = (DataBoundResolvable) o;
o = dbr.bindResolve(this,src);
}
return o;
} } | public class class_name {
private Object bindResolve(Object o, JSONObject src) {
if (o instanceof DataBoundResolvable) {
DataBoundResolvable dbr = (DataBoundResolvable) o;
o = dbr.bindResolve(this,src); // depends on control dependency: [if], data = [none]
}
return o;
... |
public class class_name {
@CheckReturnValue
public RoleAction setPermissions(Permission... permissions)
{
if (permissions != null)
{
for (Permission p : permissions)
{
Checks.notNull(p, "Permissions");
checkPermission(p);
}
... | public class class_name {
@CheckReturnValue
public RoleAction setPermissions(Permission... permissions)
{
if (permissions != null)
{
for (Permission p : permissions)
{
Checks.notNull(p, "Permissions"); // depends on control dependency: [for], data = [p]
... |
public class class_name {
public static boolean containRegexGreaterThan(String srcString,
String desString, int number) {
boolean res = false;
int totalNumber = containRegexStatistics(srcString, desString);
if (totalNumber > number) {
... | public class class_name {
public static boolean containRegexGreaterThan(String srcString,
String desString, int number) {
boolean res = false;
int totalNumber = containRegexStatistics(srcString, desString);
if (totalNumber > number) {
... |
public class class_name {
@Override
protected boolean isForAction(Method actionMethod, Class<?> controllerClazz) {
for (Class<?> paramType : actionMethod.getParameterTypes()) {
if (paramType == Portal.class) {
return true;
}
}
return false;
... | public class class_name {
@Override
protected boolean isForAction(Method actionMethod, Class<?> controllerClazz) {
for (Class<?> paramType : actionMethod.getParameterTypes()) {
if (paramType == Portal.class) {
return true;
// depends on control dependency: [if], data = [non... |
public class class_name {
public JobService getJobService() {
if (service == null) {
try {
Registry registry = LocateRegistry.getRegistry(host, JdcpUtil.DEFAULT_PORT);
AuthenticationService auth = (AuthenticationService) registry.lookup("AuthenticationService");
service = auth.authent... | public class class_name {
public JobService getJobService() {
if (service == null) {
try {
Registry registry = LocateRegistry.getRegistry(host, JdcpUtil.DEFAULT_PORT);
AuthenticationService auth = (AuthenticationService) registry.lookup("AuthenticationService");
service = auth.authent... |
public class class_name {
private void resetContentLocale(Locale defaultLocale) {
m_resetting = true;
m_localeSelect.removeAllItems();
if (m_currentConfig.getFolders().isEmpty()) {
m_localeSelect.addItem(defaultLocale);
m_localeSelect.setItemCaption(defaultLocale, defau... | public class class_name {
private void resetContentLocale(Locale defaultLocale) {
m_resetting = true;
m_localeSelect.removeAllItems();
if (m_currentConfig.getFolders().isEmpty()) {
m_localeSelect.addItem(defaultLocale); // depends on control dependency: [if], data = [none]
... |
public class class_name {
@Override
public OAuth2TokenValidatorResult validate(T token) {
Collection<OAuth2Error> errors = new ArrayList<>();
for ( OAuth2TokenValidator<T> validator : this.tokenValidators) {
errors.addAll(validator.validate(token).getErrors());
}
return OAuth2TokenValidatorResult.failure... | public class class_name {
@Override
public OAuth2TokenValidatorResult validate(T token) {
Collection<OAuth2Error> errors = new ArrayList<>();
for ( OAuth2TokenValidator<T> validator : this.tokenValidators) {
errors.addAll(validator.validate(token).getErrors()); // depends on control dependency: [for], data = ... |
public class class_name {
@Nullable
public static Object unwrapOptional(@Nullable final Object obj) {
if (obj instanceof Optional) {
final Optional<?> optional = (Optional<?>) obj;
if (!optional.isPresent()) {
return null;
}
final Object result = optional.get();
Assert.isTru... | public class class_name {
@Nullable
public static Object unwrapOptional(@Nullable final Object obj) {
if (obj instanceof Optional) {
final Optional<?> optional = (Optional<?>) obj;
if (!optional.isPresent()) {
return null; // depends on control dependency: [if], data = [none]
}
fi... |
public class class_name {
@Override
public JvmIdentifiableElement getLinkedFeature(/* @Nullable */ XConstructorCall constructorCall) {
if (!shared.allLinking.contains(constructorCall)) {
return null;
}
return doGetLinkedFeature(constructorCall);
} } | public class class_name {
@Override
public JvmIdentifiableElement getLinkedFeature(/* @Nullable */ XConstructorCall constructorCall) {
if (!shared.allLinking.contains(constructorCall)) {
return null; // depends on control dependency: [if], data = [none]
}
return doGetLinkedFeature(constructorCall);
} } |
public class class_name {
protected void processDeletions(CmsObject cms, List<CmsResource> toDelete) throws CmsException {
Collections.sort(toDelete, (a, b) -> b.getRootPath().compareTo(a.getRootPath()));
for (CmsResource deleteRes : toDelete) {
m_report.print(
org.opencms.... | public class class_name {
protected void processDeletions(CmsObject cms, List<CmsResource> toDelete) throws CmsException {
Collections.sort(toDelete, (a, b) -> b.getRootPath().compareTo(a.getRootPath()));
for (CmsResource deleteRes : toDelete) {
m_report.print(
org.opencms.... |
public class class_name {
private void injectFreemarkerTags() {
if(!tagsInjected){
AbstractFreeMarkerConfig freeMarkerConfig = Configuration.getFreeMarkerConfig();
Injector injector = Configuration.getInjector();
tagsInjected = true;
if(injector == null || freeM... | public class class_name {
private void injectFreemarkerTags() {
if(!tagsInjected){
AbstractFreeMarkerConfig freeMarkerConfig = Configuration.getFreeMarkerConfig();
Injector injector = Configuration.getInjector();
tagsInjected = true; // depends on control dependency: [if], ... |
public class class_name {
public boolean set(long index, String newValue) {
try {
return getJedisCommands(groupName).lset(key, index, newValue).equals(RESP_OK);
} finally {
getJedisProvider(groupName).release();
}
} } | public class class_name {
public boolean set(long index, String newValue) {
try {
return getJedisCommands(groupName).lset(key, index, newValue).equals(RESP_OK); // depends on control dependency: [try], data = [none]
} finally {
getJedisProvider(groupName).release();
}
} } |
public class class_name {
public ICredentialRepository getCredentialRepository()
{
if (this.credentialRepositorySearched) return this.credentialRepository;
this.credentialRepositorySearched = true;
ServiceLoader<ICredentialRepository> loader =
ServiceLoader.load(ICredentia... | public class class_name {
public ICredentialRepository getCredentialRepository()
{
if (this.credentialRepositorySearched) return this.credentialRepository;
this.credentialRepositorySearched = true;
ServiceLoader<ICredentialRepository> loader =
ServiceLoader.load(ICredentia... |
public class class_name {
public DBObject toDBObject() {
BasicDBObject cmd = new BasicDBObject();
cmd.put("mapreduce", mapReduce);
cmd.put("map", map);
cmd.put("reduce", reduce);
if (verbose != null) {
cmd.put("verbose", verbose);
}
BasicDBObject o... | public class class_name {
public DBObject toDBObject() {
BasicDBObject cmd = new BasicDBObject();
cmd.put("mapreduce", mapReduce);
cmd.put("map", map);
cmd.put("reduce", reduce);
if (verbose != null) {
cmd.put("verbose", verbose); // depends on control dependency: ... |
public class class_name {
public static String toQualifiedName(char[][] typeName) {
int len = typeName.length - 1; // number of dots
if (len == 0) return new String(typeName[0]);
for (char[] c : typeName) len += c.length;
char[] ret = new char[len];
char[] part = typeName[0];
System.arraycopy(part, 0, r... | public class class_name {
public static String toQualifiedName(char[][] typeName) {
int len = typeName.length - 1; // number of dots
if (len == 0) return new String(typeName[0]);
for (char[] c : typeName) len += c.length;
char[] ret = new char[len];
char[] part = typeName[0];
System.arraycopy(part, 0, r... |
public class class_name {
private void checkBeginSelection(Cursor cursor, SelectorModel model)
{
final boolean canClick = !model.getClickableArea().contains(cursor.getScreenX(), cursor.getScreenY());
if (!model.isSelecting() && !canClick)
{
model.setSelecting(true);
... | public class class_name {
private void checkBeginSelection(Cursor cursor, SelectorModel model)
{
final boolean canClick = !model.getClickableArea().contains(cursor.getScreenX(), cursor.getScreenY());
if (!model.isSelecting() && !canClick)
{
model.setSelecting(true); // depends o... |
public class class_name {
public void removeProvider(UserTransactionProvider provider)
{
UserTransactionProviderImpl impl = providers.get(provider);
if (impl != null)
{
delegator.removeProvider(impl);
providers.remove(provider);
}
} } | public class class_name {
public void removeProvider(UserTransactionProvider provider)
{
UserTransactionProviderImpl impl = providers.get(provider);
if (impl != null)
{
delegator.removeProvider(impl); // depends on control dependency: [if], data = [(impl]
providers.remove(provid... |
public class class_name {
private void collectFeatureInfos(Map<String, ProductInfo> productInfos,
Map<String, FeatureInfo> featuresBySymbolicName) {
ManifestFileProcessor manifestFileProcessor = new ManifestFileProcessor();
for (Map.Entry<String, Map<String, Provisi... | public class class_name {
private void collectFeatureInfos(Map<String, ProductInfo> productInfos,
Map<String, FeatureInfo> featuresBySymbolicName) {
ManifestFileProcessor manifestFileProcessor = new ManifestFileProcessor();
for (Map.Entry<String, Map<String, Provisi... |
public class class_name {
public static void printMessage (String message, boolean force) {
if (isDebugEnabled () || force) {
String toOutput = "log-helper DEBUG: " + message.replaceAll ("\n", "\nlog-helper DEBUG: ");
System.out.println (toOutput);
}
} } | public class class_name {
public static void printMessage (String message, boolean force) {
if (isDebugEnabled () || force) {
String toOutput = "log-helper DEBUG: " + message.replaceAll ("\n", "\nlog-helper DEBUG: ");
System.out.println (toOutput); // depends on control dependency: [if], data = [none]
}
} } |
public class class_name {
protected int getInternalDayFromLocation(float x, float y) {
int dayStart = mEdgePadding;
if (x < dayStart || x > mWidth - mEdgePadding) {
return -1;
}
// Selection is (x - start) / (pixels/day) == (x -s) * day / pixels
int row = (int) (y - ... | public class class_name {
protected int getInternalDayFromLocation(float x, float y) {
int dayStart = mEdgePadding;
if (x < dayStart || x > mWidth - mEdgePadding) {
return -1; // depends on control dependency: [if], data = [none]
}
// Selection is (x - start) / (pixels/day) ... |
public class class_name {
public void setup() {
LogActivator.logToFile(logger, this.getName(), Level.ALL);
introspector = JadeAgentIntrospector.getMyInstance(this);
// introspector.storeBeliefValue(this, Definitions.RECEIVED_MESSAGE_COUNT, 0);
MockConfiguration configuration = (... | public class class_name {
public void setup() {
LogActivator.logToFile(logger, this.getName(), Level.ALL);
introspector = JadeAgentIntrospector.getMyInstance(this);
// introspector.storeBeliefValue(this, Definitions.RECEIVED_MESSAGE_COUNT, 0);
MockConfiguration configuration = (... |
public class class_name {
public AsciiSet union(AsciiSet set) {
final boolean[] unionMembers = new boolean[128];
for (int i = 0; i < unionMembers.length; ++i) {
unionMembers[i] = members[i] || set.members[i];
}
return new AsciiSet(unionMembers);
} } | public class class_name {
public AsciiSet union(AsciiSet set) {
final boolean[] unionMembers = new boolean[128];
for (int i = 0; i < unionMembers.length; ++i) {
unionMembers[i] = members[i] || set.members[i]; // depends on control dependency: [for], data = [i]
}
return new AsciiSet(unionMembers);... |
public class class_name {
@Override
public double getWeight(double distance, double max, double stddev) {
if(max <= 0) {
return 1.0;
}
double relativedistance = distance / max;
// -2.303 is log(.1) to suit the intended range of 1.0-0.1
return FastMath.exp(-2.3025850929940455 * relativedista... | public class class_name {
@Override
public double getWeight(double distance, double max, double stddev) {
if(max <= 0) {
return 1.0; // depends on control dependency: [if], data = [none]
}
double relativedistance = distance / max;
// -2.303 is log(.1) to suit the intended range of 1.0-0.1
r... |
public class class_name {
final Table SYSTEM_PRIMARYKEYS() {
Table t = sysTables[SYSTEM_PRIMARYKEYS];
if (t == null) {
t = createBlankTable(sysTableHsqlNames[SYSTEM_PRIMARYKEYS]);
addColumn(t, "TABLE_CAT", SQL_IDENTIFIER);
addColumn(t, "TABLE_SCHEM", SQL_IDENTIFIE... | public class class_name {
final Table SYSTEM_PRIMARYKEYS() {
Table t = sysTables[SYSTEM_PRIMARYKEYS];
if (t == null) {
t = createBlankTable(sysTableHsqlNames[SYSTEM_PRIMARYKEYS]); // depends on control dependency: [if], data = [none]
addColumn(t, "TABLE_CAT", SQL_IDENTIFIER);... |
public class class_name {
public void setTableModel(final TableModel tableModel) {
getOrCreateComponentModel().tableModel = tableModel;
getOrCreateComponentModel().rowIndexMapping = null;
setSelectedRows(null);
setExpandedRows(null);
clearPrevExpandedRows();
clearPrevRenderedRows();
if (tableModel insta... | public class class_name {
public void setTableModel(final TableModel tableModel) {
getOrCreateComponentModel().tableModel = tableModel;
getOrCreateComponentModel().rowIndexMapping = null;
setSelectedRows(null);
setExpandedRows(null);
clearPrevExpandedRows();
clearPrevRenderedRows();
if (tableModel insta... |
public class class_name {
private void addUV(String data)
{
String coords[] = data.split("\\s+");
float u = 0;
float v = 0;
if (coords.length != 2)
{
MalisisCore.log.error( "[ObjFileImporter] Wrong UV coordinates number {} at line {} : {}",
coords.length,
lineNumber,
currentLin... | public class class_name {
private void addUV(String data)
{
String coords[] = data.split("\\s+");
float u = 0;
float v = 0;
if (coords.length != 2)
{
MalisisCore.log.error( "[ObjFileImporter] Wrong UV coordinates number {} at line {} : {}",
coords.length,
lineNumber,
currentLin... |
public class class_name {
public DifferentialFunction[] functions() {
List<DifferentialFunction> out = new ArrayList<>(ops.size());
for(SameDiffOp op : ops.values()){
out.add(op.getOp());
}
return out.toArray(new DifferentialFunction[out.size()]);
} } | public class class_name {
public DifferentialFunction[] functions() {
List<DifferentialFunction> out = new ArrayList<>(ops.size());
for(SameDiffOp op : ops.values()){
out.add(op.getOp()); // depends on control dependency: [for], data = [op]
}
return out.toArray(new Different... |
public class class_name {
public void setByteMatchTuples(java.util.Collection<ByteMatchTuple> byteMatchTuples) {
if (byteMatchTuples == null) {
this.byteMatchTuples = null;
return;
}
this.byteMatchTuples = new java.util.ArrayList<ByteMatchTuple>(byteMatchTuples);
} ... | public class class_name {
public void setByteMatchTuples(java.util.Collection<ByteMatchTuple> byteMatchTuples) {
if (byteMatchTuples == null) {
this.byteMatchTuples = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none... |
public class class_name {
private CmsListItem createListItem(CmsResourceInfoBean resourceInfo, CmsDNDHandler dndHandler) {
CmsListInfoBean infoBean = new CmsListInfoBean();
infoBean.setTitle(
CmsStringUtil.isNotEmptyOrWhitespaceOnly(resourceInfo.getProperties().get(CmsClientProperty.PROPER... | public class class_name {
private CmsListItem createListItem(CmsResourceInfoBean resourceInfo, CmsDNDHandler dndHandler) {
CmsListInfoBean infoBean = new CmsListInfoBean();
infoBean.setTitle(
CmsStringUtil.isNotEmptyOrWhitespaceOnly(resourceInfo.getProperties().get(CmsClientProperty.PROPER... |
public class class_name {
protected OAuthToken getOAuthTokenFromRequest(final HttpServletRequest request) {
val token = getOAuthConfigurationContext().getTicketRegistry().getTicket(getOAuthParameter(request), OAuthToken.class);
if (token == null || token.isExpired()) {
LOGGER.error("OAuth t... | public class class_name {
protected OAuthToken getOAuthTokenFromRequest(final HttpServletRequest request) {
val token = getOAuthConfigurationContext().getTicketRegistry().getTicket(getOAuthParameter(request), OAuthToken.class);
if (token == null || token.isExpired()) {
LOGGER.error("OAuth t... |
public class class_name {
public Observable<ServiceResponse<RecoveryWalkResponseInner>> forceRecoveryServiceFabricPlatformUpdateDomainWalkWithServiceResponseAsync(String resourceGroupName, String vmScaleSetName, int platformUpdateDomain) {
if (resourceGroupName == null) {
throw new IllegalArgumentE... | public class class_name {
public Observable<ServiceResponse<RecoveryWalkResponseInner>> forceRecoveryServiceFabricPlatformUpdateDomainWalkWithServiceResponseAsync(String resourceGroupName, String vmScaleSetName, int platformUpdateDomain) {
if (resourceGroupName == null) {
throw new IllegalArgumentE... |
public class class_name {
public void updateContentList(List<CmsTreeItem> treeItemsToShow) {
m_scrollList.clearList();
if ((treeItemsToShow != null) && !treeItemsToShow.isEmpty()) {
for (CmsTreeItem dataValue : treeItemsToShow) {
dataValue.removeOpener();
... | public class class_name {
public void updateContentList(List<CmsTreeItem> treeItemsToShow) {
m_scrollList.clearList();
if ((treeItemsToShow != null) && !treeItemsToShow.isEmpty()) {
for (CmsTreeItem dataValue : treeItemsToShow) {
dataValue.removeOpener();
// depends o... |
public class class_name {
private void buildMappings(final CronDefinition from, final CronDefinition to) {
final Map<CronFieldName, FieldDefinition> sourceFieldDefinitions = getFieldDefinitions(from);
final Map<CronFieldName, FieldDefinition> destFieldDefinitions = getFieldDefinitions(to);
bool... | public class class_name {
private void buildMappings(final CronDefinition from, final CronDefinition to) {
final Map<CronFieldName, FieldDefinition> sourceFieldDefinitions = getFieldDefinitions(from);
final Map<CronFieldName, FieldDefinition> destFieldDefinitions = getFieldDefinitions(to);
bool... |
public class class_name {
public Address createAddress(URI uri) {
if (logger.isDebugEnabled()) {
logger.debug("Creating Address fromm URI[" + uri.toString()
+ "]");
}
URIImpl uriImpl = (URIImpl) uri;
return new AddressImpl(SipFactoryImpl.addressFactory
.createAddress(uriImpl.getURI()), null, Modifi... | public class class_name {
public Address createAddress(URI uri) {
if (logger.isDebugEnabled()) {
logger.debug("Creating Address fromm URI[" + uri.toString()
+ "]"); // depends on control dependency: [if], data = [none]
}
URIImpl uriImpl = (URIImpl) uri;
return new AddressImpl(SipFactoryImpl.addressFact... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.